diff --git a/docs/dist/404.html b/docs/dist/404.html index 3e39bca9..93c34f98 100644 --- a/docs/dist/404.html +++ b/docs/dist/404.html @@ -3,21 +3,22 @@ -Introduction to Machine Learning - Slidev +Real Obsidian Test - Slidev - - - - - - - - - + + + + + + + + + +
diff --git a/docs/dist/README.md b/docs/dist/README.md deleted file mode 100644 index abc872ce..00000000 --- a/docs/dist/README.md +++ /dev/null @@ -1,244 +0,0 @@ -# Slidev Build Output Directory - -This directory contains the build output from Slidev presentation exports. - -## Files - -### Production Output - -**`index-standalone.html`** ⭐ -- **Size:** 727KB -- **Type:** Single-file bundle (standalone mode) -- **Usage:** Double-click to view in browser -- **Protocol:** Works under `file://`, `http://`, `https://` -- **Status:** Production-ready ✅ - -**`index.html`** -- **Size:** 1.6KB -- **Type:** Multi-file build (server-script mode) -- **Usage:** Requires local HTTP server -- **Protocol:** `http://` only -- **Dependencies:** `assets/` directory - -**`assets/`** -- JavaScript modules (ES modules) -- CSS stylesheets -- Slidev components -- Total size: ~700KB - -### Development Files - -**`test-*.html`** -- Development and debugging builds -- Used for testing bundler transformations -- Not for production use - -**`404.html`** -- Error page for hosted deployments -- Used when file not found - -**`_redirects`** -- Netlify/hosting configuration -- Handles SPA routing - -## Build Process - -### Standalone Mode -```bash -# Build Slidev with Vite -cd docs && npm run build - -# Transform to standalone bundle -node ../test-bundle-FIXED.js - -# Output: index-standalone.html -``` - -### Server-Script Mode -```bash -# Build Slidev with Vite -cd docs && npm run build - -# Output: index.html + assets/ -# Server scripts generated by plugin -``` - -## Testing - -### Verify Standalone Bundle -```bash -# Method 1: Double-click -open index-standalone.html - -# Method 2: HTTP server -python3 -m http.server 8888 & -# Open http://localhost:8888/index-standalone.html -``` - -### Verify Server-Script Build -```bash -python3 -m http.server 8888 & -# Open http://localhost:8888/index.html -``` - -### Automated Verification -```bash -# Start server -cd docs/dist -python3 -m http.server 8888 & - -# Run verification script -node /tmp/final-verify.js - -# Expected output: -# Status: ✅ SUCCESS -# Slide exists: true -# Has content: true -``` - -## File Structure - -``` -docs/dist/ -├── index-standalone.html ⭐ Production standalone -├── index.html Production multi-file -├── assets/ JavaScript & CSS modules -│ ├── index-*.js -│ ├── modules/ -│ └── slidev/ -├── test-*.html Development builds -├── 404.html Error page -└── _redirects Hosting config -``` - -## Size Analysis - -| File | Size | Type | -|------|------|------| -| `index-standalone.html` | 727KB | All-in-one | -| `index.html` | 1.6KB | Entry point | -| `assets/` (total) | ~700KB | Split modules | -| **Total multi-file** | ~701KB | | - -**Note:** Standalone bundle is only 4% larger than multi-file due to deduplication. - -## Browser Testing - -Test both builds in: -- ✅ Chrome/Chromium -- ✅ Firefox -- ✅ Edge -- ✅ Safari - -**Standalone:** Works with `file://` protocol -**Multi-file:** Requires `http://` protocol - -## Troubleshooting - -### Standalone Bundle Issues - -**Empty slides (shows ``)** -- Old bug: Fixed in test-bundle-FIXED.js (2026-06-16) -- Solution: Regenerate with `node test-bundle-FIXED.js` -- Verify: Check "Introduction to Machine Learning" is visible - -**File size wrong** -- Expected: ~727KB -- If much smaller: Export transformation failed -- If much larger: Extra content or duplication - -**Console errors** -- Check browser DevTools (F12) -- Look for module loading errors -- Verify all imports transformed correctly - -### Multi-File Build Issues - -**CORS errors on file://** -- Expected: Multi-file build requires HTTP server -- Solution: Use `python3 -m http.server 8888` -- Or use standalone bundle instead - -**Module not found errors** -- Check `assets/` directory exists -- Verify relative paths are correct -- Ensure HTTP server is serving from correct directory - -## Deployment - -### Standalone Bundle -```bash -# Copy single file anywhere -cp index-standalone.html ~/Desktop/presentation.html - -# Works immediately by double-clicking -``` - -### Multi-File Build -```bash -# Copy entire directory -cp -r docs/dist/* /var/www/html/presentation/ - -# Or create archive -tar -czf presentation.tar.gz index.html assets/ 404.html _redirects -``` - -## Development - -### Rebuild After Changes -```bash -# 1. Update Slidev source (docs/*.md) -# 2. Rebuild -cd docs && npm run build - -# 3. Regenerate standalone -cd .. && node test-bundle-FIXED.js - -# 4. Test -open docs/dist/index-standalone.html -``` - -### Debug Build Issues -```bash -# Check Vite output -cd docs && npm run build -- --debug - -# Check bundler logs -node test-bundle-FIXED.js 2>&1 | tee bundle.log - -# Verify module structure -node -e " -const fs = require('fs'); -const html = fs.readFileSync('docs/dist/index-standalone.html', 'utf8'); -const scriptMatch = html.match(/]*>([\s\S]+)<\/script>/); -const moduleCode = scriptMatch[1]; -console.log('Script size:', moduleCode.length); -console.log('Module count:', (moduleCode.match(/"\.\//g) || []).length); -" -``` - -## Related Documentation - -- [../STANDALONE_BUNDLE_FIX.md](../STANDALONE_BUNDLE_FIX.md) - Fix details -- [../SINGLE_FILE_BUNDLER.md](../SINGLE_FILE_BUNDLER.md) - Architecture -- [../export/README.md](../export/README.md) - User-facing docs -- [../../BUNDLE_SCRIPTS_README.md](../../BUNDLE_SCRIPTS_README.md) - Script reference - -## Maintenance - -**Clean build artifacts:** -```bash -rm -f test-*.html -# Keep: index-standalone.html, index.html, assets/, 404.html, _redirects -``` - -**Verify production build:** -```bash -ls -lh index-standalone.html # Should be ~727KB -node /tmp/final-verify.js # Should pass all checks -``` - ---- - -**Last Updated:** 2026-06-16 -**Current Production:** `index-standalone.html` (standalone mode) diff --git a/docs/dist/_redirects b/docs/dist/_redirects index bdc8a08e..ad37e2c2 100644 --- a/docs/dist/_redirects +++ b/docs/dist/_redirects @@ -1 +1 @@ -./* ./index.html 200 +/* /index.html 200 diff --git a/docs/dist/assets/404-CSzoupeA.css b/docs/dist/assets/404-CSzoupeA.css new file mode 100644 index 00000000..4ee59ff2 --- /dev/null +++ b/docs/dist/assets/404-CSzoupeA.css @@ -0,0 +1 @@ +.page-link[data-v-1cb65413]{background-color:#9ca3af1a;border-radius:.25rem;padding:.5rem 1rem}.page-link[data-v-1cb65413]:hover{background-color:#9ca3af33} diff --git a/docs/dist/assets/404-CehP3Tu7.css b/docs/dist/assets/404-CehP3Tu7.css deleted file mode 100644 index a2abc65d..00000000 --- a/docs/dist/assets/404-CehP3Tu7.css +++ /dev/null @@ -1 +0,0 @@ -.page-link[data-v-b1d9b4aa]{background-color:#9ca3af1a;border-radius:.25rem;padding:.5rem 1rem}.page-link[data-v-b1d9b4aa]:hover{background-color:#9ca3af33} diff --git a/docs/dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 b/docs/dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 new file mode 100644 index 00000000..0acaaff0 Binary files /dev/null and b/docs/dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 differ diff --git a/docs/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff b/docs/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff new file mode 100644 index 00000000..b804d7b3 Binary files /dev/null and b/docs/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff differ diff --git a/docs/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf b/docs/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf new file mode 100644 index 00000000..c6f9a5e7 Binary files /dev/null and b/docs/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf differ diff --git a/docs/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf b/docs/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf new file mode 100644 index 00000000..9ff4a5e0 Binary files /dev/null and b/docs/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf differ diff --git a/docs/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff b/docs/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff new file mode 100644 index 00000000..9759710d Binary files /dev/null and b/docs/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff differ diff --git a/docs/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 b/docs/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 new file mode 100644 index 00000000..f390922e Binary files /dev/null and b/docs/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 differ diff --git a/docs/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff b/docs/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff new file mode 100644 index 00000000..9bdd534f Binary files /dev/null and b/docs/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff differ diff --git a/docs/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 b/docs/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 new file mode 100644 index 00000000..75344a1f Binary files /dev/null and b/docs/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 differ diff --git a/docs/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf b/docs/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf new file mode 100644 index 00000000..f522294f Binary files /dev/null and b/docs/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf differ diff --git a/docs/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf b/docs/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf new file mode 100644 index 00000000..4e98259c Binary files /dev/null and b/docs/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf differ diff --git a/docs/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff b/docs/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff new file mode 100644 index 00000000..e7730f66 Binary files /dev/null and b/docs/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff differ diff --git a/docs/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 b/docs/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 new file mode 100644 index 00000000..395f28be Binary files /dev/null and b/docs/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 differ diff --git a/docs/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf b/docs/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf new file mode 100644 index 00000000..b8461b27 Binary files /dev/null and b/docs/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf differ diff --git a/docs/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 b/docs/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 new file mode 100644 index 00000000..735f6948 Binary files /dev/null and b/docs/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 differ diff --git a/docs/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff b/docs/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff new file mode 100644 index 00000000..acab069f Binary files /dev/null and b/docs/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff differ diff --git a/docs/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 b/docs/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 new file mode 100644 index 00000000..ab2ad21d Binary files /dev/null and b/docs/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 differ diff --git a/docs/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff b/docs/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff new file mode 100644 index 00000000..f38136ac Binary files /dev/null and b/docs/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff differ diff --git a/docs/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf b/docs/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf new file mode 100644 index 00000000..4060e627 Binary files /dev/null and b/docs/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf differ diff --git a/docs/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 b/docs/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 new file mode 100644 index 00000000..5931794d Binary files /dev/null and b/docs/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 differ diff --git a/docs/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf b/docs/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf new file mode 100644 index 00000000..dc007977 Binary files /dev/null and b/docs/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf differ diff --git a/docs/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff b/docs/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff new file mode 100644 index 00000000..67807b0b Binary files /dev/null and b/docs/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff differ diff --git a/docs/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf b/docs/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf new file mode 100644 index 00000000..0e9b0f35 Binary files /dev/null and b/docs/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf differ diff --git a/docs/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff b/docs/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff new file mode 100644 index 00000000..6f43b594 Binary files /dev/null and b/docs/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff differ diff --git a/docs/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 b/docs/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 new file mode 100644 index 00000000..b50920e1 Binary files /dev/null and b/docs/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 differ diff --git a/docs/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 b/docs/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 new file mode 100644 index 00000000..eb24a7ba Binary files /dev/null and b/docs/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 differ diff --git a/docs/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff b/docs/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff new file mode 100644 index 00000000..21f58129 Binary files /dev/null and b/docs/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff differ diff --git a/docs/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf b/docs/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf new file mode 100644 index 00000000..dd45e1ed Binary files /dev/null and b/docs/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf differ diff --git a/docs/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf b/docs/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf new file mode 100644 index 00000000..728ce7a1 Binary files /dev/null and b/docs/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf differ diff --git a/docs/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 b/docs/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 new file mode 100644 index 00000000..29657023 Binary files /dev/null and b/docs/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 differ diff --git a/docs/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff b/docs/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff new file mode 100644 index 00000000..0ae390d7 Binary files /dev/null and b/docs/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff differ diff --git a/docs/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff b/docs/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff new file mode 100644 index 00000000..eb5159d4 Binary files /dev/null and b/docs/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff differ diff --git a/docs/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf b/docs/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf new file mode 100644 index 00000000..70d559b4 Binary files /dev/null and b/docs/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf differ diff --git a/docs/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 b/docs/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 new file mode 100644 index 00000000..215c143f Binary files /dev/null and b/docs/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 differ diff --git a/docs/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf b/docs/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf new file mode 100644 index 00000000..2f65a8a3 Binary files /dev/null and b/docs/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf differ diff --git a/docs/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 b/docs/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 new file mode 100644 index 00000000..cfaa3bda Binary files /dev/null and b/docs/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 differ diff --git a/docs/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff b/docs/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff new file mode 100644 index 00000000..8d47c02d Binary files /dev/null and b/docs/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff differ diff --git a/docs/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 b/docs/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 new file mode 100644 index 00000000..349c06dc Binary files /dev/null and b/docs/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 differ diff --git a/docs/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff b/docs/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff new file mode 100644 index 00000000..7e02df96 Binary files /dev/null and b/docs/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff differ diff --git a/docs/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf b/docs/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf new file mode 100644 index 00000000..d5850df9 Binary files /dev/null and b/docs/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf differ diff --git a/docs/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf b/docs/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf new file mode 100644 index 00000000..537279f6 Binary files /dev/null and b/docs/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf differ diff --git a/docs/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff b/docs/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff new file mode 100644 index 00000000..31b84829 Binary files /dev/null and b/docs/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff differ diff --git a/docs/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 b/docs/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 new file mode 100644 index 00000000..a90eea85 Binary files /dev/null and b/docs/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 differ diff --git a/docs/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf b/docs/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf new file mode 100644 index 00000000..fd679bf3 Binary files /dev/null and b/docs/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf differ diff --git a/docs/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 b/docs/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 new file mode 100644 index 00000000..b3048fc1 Binary files /dev/null and b/docs/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 differ diff --git a/docs/dist/assets/KaTeX_Script-Regular-D5yQViql.woff b/docs/dist/assets/KaTeX_Script-Regular-D5yQViql.woff new file mode 100644 index 00000000..0e7da821 Binary files /dev/null and b/docs/dist/assets/KaTeX_Script-Regular-D5yQViql.woff differ diff --git a/docs/dist/assets/KaTeX_Size1-Regular-C195tn64.woff b/docs/dist/assets/KaTeX_Size1-Regular-C195tn64.woff new file mode 100644 index 00000000..7f292d91 Binary files /dev/null and b/docs/dist/assets/KaTeX_Size1-Regular-C195tn64.woff differ diff --git a/docs/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf b/docs/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf new file mode 100644 index 00000000..871fd7d1 Binary files /dev/null and b/docs/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf differ diff --git a/docs/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 b/docs/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 new file mode 100644 index 00000000..c5a8462f Binary files /dev/null and b/docs/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 differ diff --git a/docs/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf b/docs/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf new file mode 100644 index 00000000..7a212caf Binary files /dev/null and b/docs/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf differ diff --git a/docs/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 b/docs/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 new file mode 100644 index 00000000..e1bccfe2 Binary files /dev/null and b/docs/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 differ diff --git a/docs/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff b/docs/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff new file mode 100644 index 00000000..d241d9be Binary files /dev/null and b/docs/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff differ diff --git a/docs/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff b/docs/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff new file mode 100644 index 00000000..e6e9b658 Binary files /dev/null and b/docs/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff differ diff --git a/docs/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf b/docs/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf new file mode 100644 index 00000000..00bff349 Binary files /dev/null and b/docs/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf differ diff --git a/docs/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff b/docs/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff new file mode 100644 index 00000000..e1ec5457 Binary files /dev/null and b/docs/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff differ diff --git a/docs/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf b/docs/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf new file mode 100644 index 00000000..74f08921 Binary files /dev/null and b/docs/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf differ diff --git a/docs/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 b/docs/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 new file mode 100644 index 00000000..680c1308 Binary files /dev/null and b/docs/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 differ diff --git a/docs/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff b/docs/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff new file mode 100644 index 00000000..2432419f Binary files /dev/null and b/docs/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff differ diff --git a/docs/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 b/docs/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 new file mode 100644 index 00000000..771f1af7 Binary files /dev/null and b/docs/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 differ diff --git a/docs/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf b/docs/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf new file mode 100644 index 00000000..c83252c5 Binary files /dev/null and b/docs/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf differ diff --git a/docs/dist/assets/SlideWrapper-BclWpJbK.js b/docs/dist/assets/SlideWrapper-BclWpJbK.js deleted file mode 100644 index 85fc76b7..00000000 --- a/docs/dist/assets/SlideWrapper-BclWpJbK.js +++ /dev/null @@ -1 +0,0 @@ -import{B as e,C as t,K as n,O as r,P as i,Q as a,R as o,T as s,U as c,X as l,Z as u,_ as d,b as f,ct as p,ht as m,i as h,ot as g,ut as _,v,vt as y,x as b,xt as x,y as S,yt as C,z as w}from"./modules/shiki-yoNnvMyB.js";import{E as T,M as E,f as D,h as O}from"./modules/vue-ejhLULwH.js";import{$ as k,A,St as j,W as M,_ as N,a as P,at as ee,bt as F,c as te,ct as ne,d as I,dt as re,f as ie,h as ae,it as oe,l as se,lt as ce,mt as le,ot as ue,s as L,st as de,u as fe,ut as pe,vt as me,yt as he}from"./index-hODKC6Hw.js";var ge=()=>({emit(e,...t){for(let n=this.events[e]||[],r=0,i=n.length;r{this.events[e]=this.events[e]?.filter(e=>t!==e)}}});function R(e,t){return e-t}function _e(e){return e<0?-1:1}function z(e){return[Math.abs(e),_e(e)]}function B(){let e=()=>((1+Math.random())*65536|0).toString(16).substring(1);return`${e()+e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}var V=2;function ve(e,t){let n=document.createElementNS(`http://www.w3.org/2000/svg`,`defs`),r=document.createElementNS(`http://www.w3.org/2000/svg`,`marker`),i=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return i.setAttribute(`fill`,t),r.setAttribute(`id`,e),r.setAttribute(`viewBox`,`0 -5 10 10`),r.setAttribute(`refX`,`5`),r.setAttribute(`refY`,`0`),r.setAttribute(`markerWidth`,`4`),r.setAttribute(`markerHeight`,`4`),r.setAttribute(`orient`,`auto`),i.setAttribute(`d`,`M0,-5L10,0L0,5`),r.appendChild(i),n.appendChild(r),n}function ye(e,t){let n=e.x-t.x,r=e.y-t.y;return n*n+r*r}function be(e,t,n){let r=t.x,i=t.y,a=n.x-r,o=n.y-i;if(a!==0||o!==0){let t=((e.x-r)*a+(e.y-i)*o)/(a*a+o*o);t>1?(r=n.x,i=n.y):t>0&&(r+=a*t,i+=o*t)}return a=e.x-r,o=e.y-i,a*a+o*o}function xe(e,t){let n=e[0],r=[n],i;for(let a=1,o=e.length;at&&(r.push(i),n=i);return n!==i&&i&&r.push(i),r}function H(e,t,n,r,i){let a=r,o=0;for(let r=t+1;ra&&(o=r,a=i)}a>r&&(o-t>1&&H(e,t,o,r,i),i.push(e[o]),n-o>1&&H(e,o,n,r,i))}function Se(e,t){let n=e.length-1,r=[e[0]];return H(e,0,n,t,r),r.push(e[n]),r}function Ce(e,t,n=!1){if(e.length<=2)return e;let r=t===void 0?1:t*t;return e=n?e:xe(e,r),e=Se(e,r),e}var U=class{constructor(e){this.drauu=e,this.event=void 0,this.point=void 0,this.start=void 0,this.el=null}onSelected(e){}onUnselected(){}onStart(e){}onMove(e){return!1}onEnd(e){}get brush(){return this.drauu.brush}get shiftPressed(){return this.drauu.shiftPressed}get altPressed(){return this.drauu.altPressed}get svgElement(){return this.drauu.el}getMousePosition(e){let t=this.drauu.el,n=this.drauu.options.cssZoom??1,r=this.drauu.options.coordinateScale??1,i=this.drauu.options.offset??{x:0,y:0};if(this.drauu.options.coordinateTransform===!1){let t=this.drauu.el.getBoundingClientRect();return{x:(e.pageX/n-t.left+i.x)*r,y:(e.pageY/n-t.top+i.y)*r,pressure:e.pressure}}else{let a=this.drauu.svgPoint;a.x=e.clientX/n+i.x,a.y=e.clientY/n+i.y;let o=a.matrixTransform(t.getScreenCTM()?.inverse());return{x:o.x*r,y:o.y*r,pressure:e.pressure}}}createElement(e,t){let n=document.createElementNS(`http://www.w3.org/2000/svg`,e),r=t?{...this.brush,...t}:this.brush;return n.setAttribute(`fill`,r.fill??`transparent`),n.setAttribute(`stroke`,r.color),n.setAttribute(`stroke-width`,r.size.toString()),n.setAttribute(`stroke-linecap`,`round`),r.dasharray&&n.setAttribute(`stroke-dasharray`,r.dasharray),n}attr(e,t){this.el.setAttribute(e,typeof t==`string`?t:t.toFixed(V))}_setEvent(e){this.event=e,this.point=this.getMousePosition(e)}_eventDown(e){return this._setEvent(e),this.start=this.point,this.onStart(this.point)}_eventMove(e){return this._setEvent(e),this.onMove(this.point)}_eventUp(e){return this._setEvent(e),this.onEnd(this.point)}},we=class e extends U{constructor(...e){super(...e),this.points=[],this.count=0}onStart(e){if(this.el=this.createElement(`path`,{fill:`transparent`}),this.points=[e],this.brush.arrowEnd){this.arrowId=B();let e=ve(this.arrowId,this.brush.color);this.el.appendChild(e)}return this.el}onMove(t){return this.el||this.onStart(t),this.points[this.points.length-1]!==t&&(this.points.push(t),this.count+=1),this.count>5&&(this.points=Ce(this.points,1,!0),this.count=0),this.attr(`d`,e.toSvgData(this.points)),!0}onEnd(){let t=this.el;if(this.el=null,!t)return!1;if(t.setAttribute(`d`,e.toSvgData(Ce(this.points,1,!0))),!t.getTotalLength()){let{x:e,y:n}=this.points[0],r=this.brush.size/2;t.setAttribute(`d`,`M ${e-r} ${n} a ${r},${r} 0 1,0 ${r*2},0 a ${r},${r} 0 1,0 ${-r*2},0`),t.setAttribute(`fill`,this.brush.color),t.setAttribute(`stroke-width`,`0`)}return!0}static line(e,t){let n=t.x-e.x,r=t.y-e.y;return{length:Math.sqrt(n**2+r**2),angle:Math.atan2(r,n)}}static controlPoint(t,n,r,i){let a=n||t,o=r||t,s=e.line(a,o),c=s.angle+(i?Math.PI:0),l=s.length*.2;return{x:t.x+Math.cos(c)*l,y:t.y+Math.sin(c)*l}}static bezierCommand(t,n,r){let i=e.controlPoint(r[n-1],r[n-2],t),a=e.controlPoint(t,r[n-1],r[n+1],!0);return`C ${i.x.toFixed(V)},${i.y.toFixed(V)} ${a.x.toFixed(V)},${a.y.toFixed(V)} ${t.x.toFixed(V)},${t.y.toFixed(V)}`}static toSvgData(t){return t.reduce((t,n,r,i)=>r===0?`M ${n.x.toFixed(V)},${n.y.toFixed(V)}`:`${t} ${e.bezierCommand(n,r,i)}`,``)}},Te=class extends U{onStart(e){return this.el=this.createElement(`ellipse`),this.attr(`cx`,e.x),this.attr(`cy`,e.y),this.el}onMove(e){if(!this.el||!this.start)return!1;let[t,n]=z(e.x-this.start.x),[r,i]=z(e.y-this.start.y);if(this.shiftPressed){let e=Math.min(t,r);t=e,r=e}if(this.altPressed)this.attr(`cx`,this.start.x),this.attr(`cy`,this.start.y),this.attr(`rx`,t),this.attr(`ry`,r);else{let[e,a]=[this.start.x,this.start.x+t*n].sort(R),[o,s]=[this.start.y,this.start.y+r*i].sort(R);this.attr(`cx`,(e+a)/2),this.attr(`cy`,(o+s)/2),this.attr(`rx`,(a-e)/2),this.attr(`ry`,(s-o)/2)}return!0}onEnd(){let e=this.el;if(this.el=null,!e)return!1;try{if(!e.getTotalLength())return!1}catch{return!1}return!0}},Ee=class extends U{constructor(...e){super(...e),this.pathSubFactor=20,this.pathFragments=[],this._erased=[]}onSelected(e){let t=(e,n)=>{if(e&&e.length)for(let r=0;re.forEach(e=>this.drauu._restoreNode(e)),redo:()=>e.forEach(e=>this.drauu._removeNode(e))}}checkAndEraseElement(){if(this.pathFragments.length)for(let e=0;e!this._erased.includes(e.element))),this._erased.length>0}lineLineIntersect(e,t){let n=e.x1,r=e.x2,i=t.x1,a=t.x2,o=e.y1,s=e.y2,c=t.y1,l=t.y2,u=(n-r)*(c-l)-(o-s)*(i-a),d=(n*s-o*r)*(i-a)-(n-r)*(i*l-c*a),f=(n*s-o*r)*(c-l)-(o-s)*(i*l-c*a),p=(e,t,n)=>e>=t&&e<=n?!0:e>=n&&e<=t;if(u===0)return!1;{let e={x:d/u,y:f/u};return p(e.x,n,r)&&p(e.y,o,s)&&p(e.x,i,a)&&p(e.y,c,l)}}},De=class extends U{onStart(e){if(this.el=this.createElement(`line`,{fill:`transparent`}),this.attr(`x1`,e.x),this.attr(`y1`,e.y),this.attr(`x2`,e.x),this.attr(`y2`,e.y),this.brush.arrowEnd){let e=B(),t=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);return t.append(ve(e,this.brush.color)),t.append(this.el),this.attr(`marker-end`,`url(#${e})`),t}return this.el}onMove(e){if(!this.el)return!1;let{x:t,y:n}=e;if(this.shiftPressed){let r=e.x-this.start.x,i=e.y-this.start.y;if(i!==0){let e=r/i;e=Math.round(e),Math.abs(e)<=1?(t=this.start.x+i*e,n=this.start.y+i):(t=this.start.x+r,n=this.start.y)}}return this.altPressed?(this.attr(`x1`,this.start.x*2-t),this.attr(`y1`,this.start.y*2-n),this.attr(`x2`,t),this.attr(`y2`,n)):(this.attr(`x1`,this.start.x),this.attr(`y1`,this.start.y),this.attr(`x2`,t),this.attr(`y2`,n)),!0}onEnd(){let e=this.el;if(this.el=null,!e)return!1;try{if(e.getTotalLength()<5)return!1}catch{return!1}return!0}},Oe=class extends U{onStart(e){return this.el=this.createElement(`rect`),this.brush.cornerRadius&&(this.attr(`rx`,this.brush.cornerRadius),this.attr(`ry`,this.brush.cornerRadius)),this.attr(`x`,e.x),this.attr(`y`,e.y),this.el}onMove(e){if(!this.el||!this.start)return!1;let[t,n]=z(e.x-this.start.x),[r,i]=z(e.y-this.start.y);if(this.shiftPressed){let e=Math.min(t,r);t=e,r=e}if(this.altPressed)this.attr(`x`,this.start.x-t),this.attr(`y`,this.start.y-r),this.attr(`width`,t*2),this.attr(`height`,r*2);else{let[e,a]=[this.start.x,this.start.x+t*n].sort(R),[o,s]=[this.start.y,this.start.y+r*i].sort(R);this.attr(`x`,e),this.attr(`y`,o),this.attr(`width`,a-e),this.attr(`height`,s-o)}return!0}onEnd(){let e=this.el;if(this.el=null,!e)return!1;try{if(!e.getTotalLength())return!1}catch{return!1}return!0}};function ke(e,t,n,r=e=>e){return e*r(.5-t*(.5-n))}function Ae(e){return[-e[0],-e[1]]}function W(e,t){return[e[0]+t[0],e[1]+t[1]]}function G(e,t){return[e[0]-t[0],e[1]-t[1]]}function K(e,t){return[e[0]*t,e[1]*t]}function je(e,t){return[e[0]/t,e[1]/t]}function q(e){return[e[1],-e[0]]}function Me(e,t){return e[0]*t[0]+e[1]*t[1]}function Ne(e,t){return e[0]===t[0]&&e[1]===t[1]}function Pe(e){return Math.hypot(e[0],e[1])}function Fe(e){return e[0]*e[0]+e[1]*e[1]}function Ie(e,t){return Fe(G(e,t))}function Le(e){return je(e,Pe(e))}function Re(e,t){return Math.hypot(e[1]-t[1],e[0]-t[0])}function J(e,t,n){let r=Math.sin(n),i=Math.cos(n),a=e[0]-t[0],o=e[1]-t[1],s=a*i-o*r,c=a*r+o*i;return[s+t[0],c+t[1]]}function Y(e,t,n){return W(e,K(G(t,e),n))}function ze(e,t,n){return W(e,K(t,n))}var{min:X,PI:Be}=Math,Ve=.275,Z=Be+1e-4;function He(e,t={}){let{size:n=16,smoothing:r=.5,thinning:i=.5,simulatePressure:a=!0,easing:o=e=>e,start:s={},end:c={},last:l=!1}=t,{cap:u=!0,easing:d=e=>e*(2-e)}=s,{cap:f=!0,easing:p=e=>--e*e*e+1}=c;if(e.length===0||n<=0)return[];let m=e[e.length-1].runningLength,h=s.taper===!1?0:s.taper===!0?Math.max(n,m):s.taper,g=c.taper===!1?0:c.taper===!0?Math.max(n,m):c.taper,_=(n*r)**2,v=[],y=[],b=e.slice(0,10).reduce((e,t)=>{let r=t.pressure;if(a){let i=X(1,t.distance/n);r=X(1,e+(X(1,1-i)-e)*(i*Ve))}return(e+r)/2},e[0].pressure),x=ke(n,i,e[e.length-1].pressure,o),S,C=e[0].vector,w=e[0].point,T=w,E=w,D=T,O=!1;for(let t=0;t_)&&(v.push(E),w=E),D=W(s,P),(t<=1||Ie(T,D)>_)&&(y.push(D),T=D),b=r,C=c}let k=e[0].point.slice(0,2),A=e.length>1?e[e.length-1].point.slice(0,2):W(e[0].point,[1,1]),j=[],M=[];if(e.length===1){if(!(h||g)||l){let e=ze(k,Le(q(G(k,A))),-(S||x)),t=[];for(let n=1/13,r=n;r<=1;r+=n)t.push(J(e,k,Z*2*r));return t}}else{if(!(h||g&&e.length===1))if(u)for(let e=1/13,t=e;t<=1;t+=e){let e=J(y[0],k,Z*t);j.push(e)}else{let e=G(v[0],y[0]),t=K(e,.5),n=K(e,.51);j.push(G(k,t),G(k,n),W(k,n),W(k,t))}let t=q(Ae(e[e.length-1].vector));if(g||h&&e.length===1)M.push(A);else if(f){let e=ze(A,t,x);for(let t=1/29,n=t;n<1;n+=t)M.push(J(e,A,Z*3*n))}else M.push(W(A,K(t,x)),W(A,K(t,x*.99)),G(A,K(t,x*.99)),G(A,K(t,x)))}return v.concat(M,y.reverse(),j)}function Ue(e,t={}){let{streamline:n=.5,size:r=16,last:i=!1}=t;if(e.length===0)return[];let a=.15+(1-n)*.85,o=Array.isArray(e[0])?e:e.map(({x:e,y:t,pressure:n=.5})=>[e,t,n]);if(o.length===2){let e=o[1];o=o.slice(0,-1);for(let t=1;t<5;t++)o.push(Y(o[0],e,t/4))}o.length===1&&(o=[...o,[...W(o[0],[1,1]),...o[0].slice(2)]]);let s=[{point:[o[0][0],o[0][1]],pressure:o[0][2]>=0?o[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],c=!1,l=0,u=s[0],d=o.length-1;for(let e=1;e=0?o[e][2]:.5,vector:Le(G(u.point,t)),distance:n,runningLength:l},s.push(u)}return s[0].vector=s[1]?.vector||[0,0],s}function We(e,t={}){return He(Ue(e,t),t)}var Ge=class e extends U{constructor(...e){super(...e),this.points=[]}onStart(e){return this.el=document.createElementNS(`http://www.w3.org/2000/svg`,`path`),this.points=[e],this.attr(`fill`,this.brush.color),this.attr(`d`,this.getSvgData(this.points)),this.el}onMove(e){return this.el||this.onStart(e),this.points[this.points.length-1]!==e&&this.points.push(e),this.attr(`d`,this.getSvgData(this.points)),!0}onEnd(){let e=this.el;return this.el=null,!!e}getSvgData(t){return e.getSvgData(t,this.brush)}static getSvgData(e,t){let n=We(e,{size:t.size,thinning:.9,simulatePressure:!1,start:{taper:5},end:{taper:5},...t.stylusOptions});if(!n.length)return``;let r=n.reduce((e,[t,n],r,i)=>{let[a,o]=i[(r+1)%i.length];return e.push(t,n,(t+a)/2,(n+o)/2),e},[`M`,...n[0],`Q`]);return r.push(`Z`),r.map(e=>typeof e==`number`?e.toFixed(2):e).join(` `)}};function Ke(e){return{draw:new we(e),stylus:new Ge(e),line:new De(e),rectangle:new Oe(e),ellipse:new Te(e),eraseLine:new Ee(e)}}var qe=class{constructor(e={}){this.options=e,this.el=null,this.svgPoint=null,this.eventEl=null,this.shiftPressed=!1,this.altPressed=!1,this.drawing=!1,this._emitter=ge(),this._originalPointerId=null,this._models=Ke(this),this._opStack=[],this._opIndex=0,this._disposables=[],this._elements=[],this.options.brush||(this.options.brush={color:`black`,size:3,mode:`stylus`}),e.el&&this.mount(e.el,e.eventTarget,e.window)}get model(){return this._models[this.mode]}get mounted(){return!!this.el}get mode(){return this.options.brush.mode||`stylus`}set mode(e){this._models[this.mode].onUnselected(),this.options.brush.mode=e,this.model.onSelected(this.el)}get brush(){return this.options.brush}set brush(e){this.options.brush=e}resolveSelector(e){return typeof e==`string`?document.querySelector(e):e||null}mount(e,t,n=window){if(this.el)throw Error(`[drauu] already mounted, unmount previous target first`);if(this.el=this.resolveSelector(e),!this.el)throw Error(`[drauu] target element not found`);if(this.el.tagName.toLocaleLowerCase()!==`svg`)throw Error(`[drauu] can only mount to a SVG element`);if(!this.el.createSVGPoint)throw Error(`[drauu] SVG element must be create by document.createElementNS('http://www.w3.org/2000/svg', 'svg')`);this.svgPoint=this.el.createSVGPoint();let r=this.resolveSelector(t)||this.el,i=this.eventStart.bind(this),a=this.eventMove.bind(this),o=this.eventEnd.bind(this),s=this.eventKeyboard.bind(this),c=this.touchMove.bind(this);r.addEventListener(`pointerdown`,i,{passive:!1}),n.addEventListener(`pointermove`,a,{passive:!1}),n.addEventListener(`pointerup`,o,{passive:!1}),n.addEventListener(`pointercancel`,o,{passive:!1}),n.addEventListener(`keydown`,s,!1),n.addEventListener(`keyup`,s,!1),n.addEventListener(`touchmove`,c,{passive:!1}),this._disposables.push(()=>{r.removeEventListener(`pointerdown`,i),n.removeEventListener(`pointermove`,a),n.removeEventListener(`pointerup`,o),n.removeEventListener(`pointercancel`,o),n.removeEventListener(`keydown`,s,!1),n.removeEventListener(`keyup`,s,!1),n.removeEventListener(`touchmove`,c)}),this._emitter.emit(`mounted`)}unmount(){this._disposables.forEach(e=>e()),this._disposables.length=0,this._elements.length=0,this.el=null,this._emitter.emit(`unmounted`)}on(e,t){return this._emitter.on(e,t)}undo(){return!this.canUndo()||this.drawing?!1:(this._opStack[--this._opIndex].undo(),this._emitter.emit(`changed`),!0)}redo(){return!this.canRedo()||this.drawing?!1:(this._opStack[this._opIndex++].redo(),this._emitter.emit(`changed`),!0)}canRedo(){return this._opIndex0}eventMove(e){!this.acceptsInput(e)||!this.drawing||this.model._eventMove(e)&&(e.stopPropagation(),e.preventDefault(),this._emitter.emit(`changed`))}eventStart(e){this.acceptsInput(e)&&(e.stopPropagation(),e.preventDefault(),this._currentNode&&this.cancel(),this.drawing=!0,this._originalPointerId=e.pointerId,this._emitter.emit(`start`),this._currentNode=this.model._eventDown(e),this._currentNode&&this.mode!==`eraseLine`&&this.el.appendChild(this._currentNode),this._emitter.emit(`changed`))}eventEnd(e){if(!this.acceptsInput(e)||!this.drawing)return;let t=this.model._eventUp(e);if(!t)this.cancel();else if(t===!0){let e=this._currentNode;e&&(this._appendNode(e),this.commit({undo:()=>this._removeNode(e),redo:()=>this._restoreNode(e)}))}else this.commit(t);this.drawing=!1,this._emitter.emit(`end`),this._emitter.emit(`changed`),this._originalPointerId=null}touchMove(e){Array.from(e.touches).some(e=>e.touchType===`stylus`&&e.identifier===this._originalPointerId)&&e.preventDefault()}acceptsInput(e){return(!this.options.acceptsInputTypes||this.options.acceptsInputTypes.includes(e.pointerType))&&!(this._originalPointerId&&this._originalPointerId!==e.pointerId)}eventKeyboard(e){this.shiftPressed===e.shiftKey&&this.altPressed===e.altKey||(this.shiftPressed=e.shiftKey,this.altPressed=e.altKey,this.model.point&&this.model.onMove(this.model.point)&&this._emitter.emit(`changed`))}commit(e){this._opStack.length=this._opIndex,this._opStack.push(e),this._opIndex++;let t=this._currentNode;this._currentNode=void 0,this._emitter.emit(`committed`,t)}clear(){this._opStack.length=0,this._opIndex=0,this._elements=[],this.cancel(),this.el.innerHTML=``,this._emitter.emit(`changed`)}cancel(){this._currentNode&&(this.el.removeChild(this._currentNode),this._currentNode=void 0,this._emitter.emit(`canceled`))}dump(){return this.el.innerHTML}load(e){this.clear(),this.el.innerHTML=e}_appendNode(e){let t=this._elements.at(-1);t?t.after(e):this.el.append(e);let n=this._elements.push(e)-1;e.dataset.drauu_index=n.toString()}_removeNode(e){e.remove(),this._elements[+e.dataset.drauu_index]=null}_restoreNode(e){let t=+e.dataset.drauu_index;this._elements[t]=e;for(let n=t-1;n>=0;n--){let t=this._elements[n];if(t){t.after(e);return}}this.el.prepend(e)}};function Je(e){return new qe(e)}var Q=T(()=>{let{currentSlideNo:e,isPresenter:t}=N(),n=[`#ff595e`,`#ffca3a`,`#8ac926`,`#1982c4`,`#6a4c93`,`#ffffff`,`#000000`],r=O(`slidev-drawing-enabled`,!1),a=O(`slidev-drawing-pinned`,!1),o=O(`slidev-drawing-brush`,{color:n[0],size:4,mode:`stylus`}),s=_(!1),c=_(!1),u=_(!1),f=_(!1),m=_(`stylus`),h=d(()=>j.drawings.syncAll||t.value),v=!1,y=d({get(){return m.value},set(e){m.value=e,e===`arrow`?(x.mode=`line`,o.value.arrowEnd=!0):(x.mode=e,o.value.arrowEnd=!1)}}),b=p({brush:o,acceptsInputTypes:d(()=>r.value&&(!j.drawings.presenterOnly||t.value)?void 0:[`pen`]),coordinateTransform:!1}),x=g(Je(b));function S(){x.clear(),h.value&&se(e.value,``)}function C(){u.value=x.canRedo(),c.value=x.canUndo(),f.value=!!x.el?.children.length}function w(t){v=!0;let n=L[t||e.value];n==null?x.clear():x.load(n),C(),v=!1}return x.on(`changed`,()=>{if(C(),!v){let t=x.dump(),n=e.value;(L[n]||``)!==t&&h.value&&se(n,x.dump())}}),te(t=>{v=!0,t[e.value]!=null&&x.load(t[e.value]||``),v=!1,C()}),i(()=>{l(e,()=>{x.mounted&&w()},{immediate:!0})}),x.on(`start`,()=>s.value=!0),x.on(`end`,()=>s.value=!1),window.addEventListener(`keydown`,e=>{if(!r.value||A.value)return;let t=!e.ctrlKey&&!e.altKey&&!e.shiftKey&&!e.metaKey,i=!0;e.code===`KeyZ`&&(e.ctrlKey||e.metaKey)?e.shiftKey?x.redo():x.undo():e.code===`Escape`?r.value=!1:e.code===`KeyL`&&t?y.value=`line`:e.code===`KeyA`&&t?y.value=`arrow`:e.code===`KeyS`&&t?y.value=`stylus`:e.code===`KeyR`&&t?y.value=`rectangle`:e.code===`KeyE`&&t?y.value=`ellipse`:e.code===`KeyC`&&t?S():e.code.startsWith(`Digit`)&&t&&+e.code[5]<=n.length?o.value.color=n[e.code[5]-1]:i=!1,i&&(e.preventDefault(),e.stopPropagation())},!1),{brush:o,brushColors:n,canClear:f,canRedo:u,canUndo:c,clear:S,drauu:x,drauuOptions:b,drawingEnabled:r,drawingMode:y,drawingPinned:a,drawingState:L,isDrawing:s,loadCanvas:w}}),Ye=[`innerHTML`],Xe=s({__name:`DrawingPreview`,props:{page:{}},setup(t){let{drawingState:n}=Q();return(r,i)=>y(n)[t.page]?(e(),b(`svg`,{key:0,class:`w-full h-full absolute top-0 pointer-events-none`,innerHTML:y(n)[t.page]},null,8,Ye)):f(``,!0)}}),$=p({}),Ze=[],Qe=[];I($,`$syncUp`,!0),I($,`$syncDown`,!0),I($,`$paused`,!1),I($,`$onSet`,e=>Ze.push(e)),I($,`$onPatch`,e=>Qe.push(e)),ie(),I($,`$patch`,async()=>!1);var $e=fe($,$,!0),et=window.navigator.userAgent.match(/Chrome\/(\d+)/)?.[1];et&&Number(et);var tt=window.navigator.userAgent.match(/Chrome\/(\d+)/)?.[1];tt&&Number(tt);var nt=new class{_screenshotSession=null;getSnapshot(e,t){let n=e+(t?`-dark`:`-light`),r=$e.state[n];if(!r)return;let i=k(e);if(i&&r?.revision===i?.meta.slide.revision)return r.image}async saveSnapshot(e,t,n){return!1}async startCapturing(e){return!1}},rt=[`id`],it=[`id`],at={key:1,class:`slidev-slide-container w-full h-full relative`},ot=[`src`],st=_(null),ct=le(s({__name:`SlideContainer`,props:{width:{type:Number},meta:{default:()=>({})},isMain:{type:Boolean,default:!1},no:{type:Number,required:!1},useSnapshot:{type:Boolean,default:!1},contentStyle:{type:Object,default:()=>({})}},setup(t){let n=t,{isPrintMode:r}=N(),i=_(null),s=D(i),f=_(null),p=d(()=>n.width??s.width.value),m=d(()=>n.width?n.width/me.value:s.height.value),g=d(()=>M.value&&!r.value?+M.value:Math.min(p.value/F.value,m.value/he.value)),y=d(()=>({...n.contentStyle,height:`${he.value}px`,width:`${F.value}px`,"--slidev-slide-scale":g.value})),S=d(()=>n.width?{width:`${n.width}px`,height:`${n.width/me.value}px`}:{});if(n.isMain){let e=document.documentElement.style;u(()=>e.setProperty(`--slidev-slide-scale`,g.value.toString())),w(()=>e.removeProperty(`--slidev-slide-scale`))}E(pe,g),E(ce,f),a(()=>{n.isMain&&(st.value=f.value)}),o(()=>{l(()=>n.isMain&&g.value,()=>{h()})});let C=d(()=>{if(!(n.no==null||!n.useSnapshot))return nt.getSnapshot(n.no,ae.value)});return(n,r)=>C.value?(e(),b(`div`,at,[v(`img`,{src:C.value,class:`w-full h-full object-cover`,style:x(S.value)},null,12,ot),r[0]||=v(`div`,{absolute:``,"bottom-1":``,"right-1":``,"p0.5":``,"text-cyan:75":``,"bg-cyan:10":``,rounded:``,title:`Snapshot`},[v(`div`,{class:`i-carbon-camera`})],-1)])):(e(),b(`div`,{key:0,id:t.isMain?`slide-container`:void 0,ref_key:`container`,ref:i,class:`slidev-slide-container`,style:x(S.value)},[v(`div`,{id:t.isMain?`slide-content`:void 0,ref_key:`slideElement`,ref:f,class:`slidev-slide-content`,style:x(y.value)},[c(n.$slots,`default`,{},void 0,!0)],12,it),c(n.$slots,`controls`,{},void 0,!0)],12,rt))}}),[[`__scopeId`,`data-v-1c3c0b8e`]]),lt=Object.assign({}),ut=Object.assign({}),dt=Object.assign({}),ft=Object.assign({}),pt=Object.assign({}),mt=Object.assign({}),ht=Object.assign({}),gt=Object.assign({}),_t=[Object.values(lt)[0],Object.values(ut)[0]].filter(Boolean),vt={render:()=>_t.map(e=>r(e))},yt=[Object.values(dt)[0],Object.values(ft)[0]].filter(Boolean),bt={render:()=>yt.map(e=>r(e))},xt=[Object.values(pt)[0],Object.values(mt)[0]].filter(Boolean),St={render:()=>xt.map(e=>r(e))},Ct=[Object.values(ht)[0],Object.values(gt)[0]].filter(Boolean),wt={render:()=>Ct.map(e=>r(e))},Tt=[`data-slidev-no`,`lang`],Et=le(s({__name:`SlideWrapper`,props:{clicksContext:{type:Object,required:!0},renderContext:{type:String,default:`slide`},route:{type:Object,required:!0}},setup(r){let i=r,a=d(()=>i.route.meta?.slide?.frontmatter.zoom??1);E(ne,i.route),E(ue,i.route.meta.slide.frontmatter),E(ee,_(i.route.no)),E(de,_(i.renderContext)),E(oe,m(i,`clicksContext`)),E(re,a);let o=d(()=>({"user-select":j.selectable?void 0:`none`,"--slidev-slide-zoom-scale":a.value===1?void 0:a.value}));return(a,s)=>(e(),b(`div`,{"data-slidev-no":i.route.no,class:C(y(P)(r.route,[`slide`,`presenter`].includes(i.renderContext)?``:`disable-view-transition`)),style:x(o.value),lang:i.route.meta.slide.frontmatter.lang},[t(y(wt)),(e(),S(n(i.route.component))),t(y(St))],14,Tt))}}),[[`__scopeId`,`data-v-55a3a6cb`]]);export{st as a,ct as i,bt as n,Xe as o,vt as r,Q as s,Et as t}; \ No newline at end of file diff --git a/docs/dist/assets/SlideWrapper-cGPNHQX8.css b/docs/dist/assets/SlideWrapper-D_cqB02h.css similarity index 58% rename from docs/dist/assets/SlideWrapper-cGPNHQX8.css rename to docs/dist/assets/SlideWrapper-D_cqB02h.css index 2fb7b627..4eb21e8a 100644 --- a/docs/dist/assets/SlideWrapper-cGPNHQX8.css +++ b/docs/dist/assets/SlideWrapper-D_cqB02h.css @@ -1 +1 @@ -.slidev-slide-container[data-v-1c3c0b8e]{width:100%;height:100%;position:relative;overflow:hidden}.slidev-slide-content[data-v-1c3c0b8e]{--slidev-slide-container-scale:var(--slidev-slide-scale);transform:translate(-50%, -50%) scale(var(--slidev-slide-scale));--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity)) ;position:absolute;top:50%;left:50%;overflow:hidden}.dark .slidev-slide-content[data-v-1c3c0b8e]{--un-bg-opacity:1;background-color:rgb(18 18 18/var(--un-bg-opacity)) }.disable-view-transition[data-v-55a3a6cb] *{view-transition-name:none!important}.slidev-page[data-v-55a3a6cb]{--slidev-slide-zoom-scale:1;width:calc(100% / var(--slidev-slide-zoom-scale));height:calc(100% / var(--slidev-slide-zoom-scale));transform-origin:0 0;scale:var(--slidev-slide-zoom-scale);--slidev-slide-scale:calc(var(--slidev-slide-container-scale) * var(--slidev-slide-zoom-scale));position:absolute;inset:0} +.slidev-slide-container[data-v-f9a69392]{width:100%;height:100%;position:relative;overflow:hidden}.slidev-slide-content[data-v-f9a69392]{--slidev-slide-container-scale:var(--slidev-slide-scale);transform:translate(-50%, -50%) scale(var(--slidev-slide-scale));--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity)) ;position:absolute;top:50%;left:50%;overflow:hidden}.dark .slidev-slide-content[data-v-f9a69392]{--un-bg-opacity:1;background-color:rgb(18 18 18/var(--un-bg-opacity)) }.disable-view-transition[data-v-4ce610b6] *{view-transition-name:none!important}.slidev-page[data-v-4ce610b6]{--slidev-slide-zoom-scale:1;width:calc(100% / var(--slidev-slide-zoom-scale));height:calc(100% / var(--slidev-slide-zoom-scale));transform-origin:0 0;scale:var(--slidev-slide-zoom-scale);--slidev-slide-scale:calc(var(--slidev-slide-container-scale) * var(--slidev-slide-zoom-scale));position:absolute;inset:0} diff --git a/docs/dist/assets/SlideWrapper-IFU3LLlv.js b/docs/dist/assets/SlideWrapper-IFU3LLlv.js new file mode 100644 index 00000000..0ab5ace0 --- /dev/null +++ b/docs/dist/assets/SlideWrapper-IFU3LLlv.js @@ -0,0 +1 @@ +import{D as e,G as t,H as n,L as r,N as i,R as a,S as o,X as s,Y as c,Z as l,_ as u,_t as d,at as f,b as p,bt as m,g as h,i as g,lt as _,mt as v,st as y,v as b,vt as x,w as S,y as C,z as w}from"./modules/shiki-BmLmNVDB.js";import{i as T,n as E,r as D,s as O}from"./slidev/env-DWr22PMh.js";import{D as k,N as A,g as j,p as M}from"./modules/vue-5vwy5Re_.js";import{t as N}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{G as P,a as ee,c as te,ct as ne,d as F,dt as re,et as ie,f as ae,ft as oe,g as se,j as ce,l as I,lt as le,ot as ue,pt as de,s as L,st as fe,u as pe,ut as me,v as R}from"./index-BEBAY2Mg.js";var he=()=>({emit(e,...t){for(let n=this.events[e]||[],r=0,i=n.length;r{this.events[e]=this.events[e]?.filter(e=>t!==e)}}});function z(e,t){return e-t}function ge(e){return e<0?-1:1}function B(e){return[Math.abs(e),ge(e)]}function _e(){let e=()=>((1+Math.random())*65536|0).toString(16).substring(1);return`${e()+e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}var V=2;function ve(e,t){let n=document.createElementNS(`http://www.w3.org/2000/svg`,`defs`),r=document.createElementNS(`http://www.w3.org/2000/svg`,`marker`),i=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return i.setAttribute(`fill`,t),r.setAttribute(`id`,e),r.setAttribute(`viewBox`,`0 -5 10 10`),r.setAttribute(`refX`,`5`),r.setAttribute(`refY`,`0`),r.setAttribute(`markerWidth`,`4`),r.setAttribute(`markerHeight`,`4`),r.setAttribute(`orient`,`auto`),i.setAttribute(`d`,`M0,-5L10,0L0,5`),r.appendChild(i),n.appendChild(r),n}function ye(e,t){let n=e.x-t.x,r=e.y-t.y;return n*n+r*r}function be(e,t,n){let r=t.x,i=t.y,a=n.x-r,o=n.y-i;if(a!==0||o!==0){let t=((e.x-r)*a+(e.y-i)*o)/(a*a+o*o);t>1?(r=n.x,i=n.y):t>0&&(r+=a*t,i+=o*t)}return a=e.x-r,o=e.y-i,a*a+o*o}function xe(e,t){let n=e[0],r=[n],i;for(let a=1,o=e.length;at&&(r.push(i),n=i);return n!==i&&i&&r.push(i),r}function H(e,t,n,r,i){let a=r,o=0;for(let r=t+1;ra&&(o=r,a=i)}a>r&&(o-t>1&&H(e,t,o,r,i),i.push(e[o]),n-o>1&&H(e,o,n,r,i))}function Se(e,t){let n=e.length-1,r=[e[0]];return H(e,0,n,t,r),r.push(e[n]),r}function Ce(e,t,n=!1){if(e.length<=2)return e;let r=t===void 0?1:t*t;return e=n?e:xe(e,r),e=Se(e,r),e}var U=class{constructor(e){this.drauu=e,this.event=void 0,this.point=void 0,this.start=void 0,this.el=null}onSelected(e){}onUnselected(){}onStart(e){}onMove(e){return!1}onEnd(e){}get brush(){return this.drauu.brush}get shiftPressed(){return this.drauu.shiftPressed}get altPressed(){return this.drauu.altPressed}get svgElement(){return this.drauu.el}getMousePosition(e){let t=this.drauu.el,n=this.drauu.options.cssZoom??1,r=this.drauu.options.coordinateScale??1,i=this.drauu.options.offset??{x:0,y:0};if(this.drauu.options.coordinateTransform===!1){let t=this.drauu.el.getBoundingClientRect();return{x:(e.pageX/n-t.left+i.x)*r,y:(e.pageY/n-t.top+i.y)*r,pressure:e.pressure}}else{let a=this.drauu.svgPoint;a.x=e.clientX/n+i.x,a.y=e.clientY/n+i.y;let o=a.matrixTransform(t.getScreenCTM()?.inverse());return{x:o.x*r,y:o.y*r,pressure:e.pressure}}}createElement(e,t){let n=document.createElementNS(`http://www.w3.org/2000/svg`,e),r=t?{...this.brush,...t}:this.brush;return n.setAttribute(`fill`,r.fill??`transparent`),n.setAttribute(`stroke`,r.color),n.setAttribute(`stroke-width`,r.size.toString()),n.setAttribute(`stroke-linecap`,`round`),r.dasharray&&n.setAttribute(`stroke-dasharray`,r.dasharray),n}attr(e,t){this.el.setAttribute(e,typeof t==`string`?t:t.toFixed(V))}_setEvent(e){this.event=e,this.point=this.getMousePosition(e)}_eventDown(e){return this._setEvent(e),this.start=this.point,this.onStart(this.point)}_eventMove(e){return this._setEvent(e),this.onMove(this.point)}_eventUp(e){return this._setEvent(e),this.onEnd(this.point)}},we=class e extends U{constructor(...e){super(...e),this.points=[],this.count=0}onStart(e){if(this.el=this.createElement(`path`,{fill:`transparent`}),this.points=[e],this.brush.arrowEnd){this.arrowId=_e();let e=ve(this.arrowId,this.brush.color);this.el.appendChild(e)}return this.el}onMove(t){return this.el||this.onStart(t),this.points[this.points.length-1]!==t&&(this.points.push(t),this.count+=1),this.count>5&&(this.points=Ce(this.points,1,!0),this.count=0),this.attr(`d`,e.toSvgData(this.points)),!0}onEnd(){let t=this.el;if(this.el=null,!t)return!1;if(t.setAttribute(`d`,e.toSvgData(Ce(this.points,1,!0))),!t.getTotalLength()){let{x:e,y:n}=this.points[0],r=this.brush.size/2;t.setAttribute(`d`,`M ${e-r} ${n} a ${r},${r} 0 1,0 ${r*2},0 a ${r},${r} 0 1,0 ${-r*2},0`),t.setAttribute(`fill`,this.brush.color),t.setAttribute(`stroke-width`,`0`)}return!0}static line(e,t){let n=t.x-e.x,r=t.y-e.y;return{length:Math.sqrt(n**2+r**2),angle:Math.atan2(r,n)}}static controlPoint(t,n,r,i){let a=n||t,o=r||t,s=e.line(a,o),c=s.angle+(i?Math.PI:0),l=s.length*.2;return{x:t.x+Math.cos(c)*l,y:t.y+Math.sin(c)*l}}static bezierCommand(t,n,r){let i=e.controlPoint(r[n-1],r[n-2],t),a=e.controlPoint(t,r[n-1],r[n+1],!0);return`C ${i.x.toFixed(V)},${i.y.toFixed(V)} ${a.x.toFixed(V)},${a.y.toFixed(V)} ${t.x.toFixed(V)},${t.y.toFixed(V)}`}static toSvgData(t){return t.reduce((t,n,r,i)=>r===0?`M ${n.x.toFixed(V)},${n.y.toFixed(V)}`:`${t} ${e.bezierCommand(n,r,i)}`,``)}},Te=class extends U{onStart(e){return this.el=this.createElement(`ellipse`),this.attr(`cx`,e.x),this.attr(`cy`,e.y),this.el}onMove(e){if(!this.el||!this.start)return!1;let[t,n]=B(e.x-this.start.x),[r,i]=B(e.y-this.start.y);if(this.shiftPressed){let e=Math.min(t,r);t=e,r=e}if(this.altPressed)this.attr(`cx`,this.start.x),this.attr(`cy`,this.start.y),this.attr(`rx`,t),this.attr(`ry`,r);else{let[e,a]=[this.start.x,this.start.x+t*n].sort(z),[o,s]=[this.start.y,this.start.y+r*i].sort(z);this.attr(`cx`,(e+a)/2),this.attr(`cy`,(o+s)/2),this.attr(`rx`,(a-e)/2),this.attr(`ry`,(s-o)/2)}return!0}onEnd(){let e=this.el;if(this.el=null,!e)return!1;try{if(!e.getTotalLength())return!1}catch{return!1}return!0}},Ee=class extends U{constructor(...e){super(...e),this.pathSubFactor=20,this.pathFragments=[],this._erased=[]}onSelected(e){let t=(e,n)=>{if(e&&e.length)for(let r=0;re.forEach(e=>this.drauu._restoreNode(e)),redo:()=>e.forEach(e=>this.drauu._removeNode(e))}}checkAndEraseElement(){if(this.pathFragments.length)for(let e=0;e!this._erased.includes(e.element))),this._erased.length>0}lineLineIntersect(e,t){let n=e.x1,r=e.x2,i=t.x1,a=t.x2,o=e.y1,s=e.y2,c=t.y1,l=t.y2,u=(n-r)*(c-l)-(o-s)*(i-a),d=(n*s-o*r)*(i-a)-(n-r)*(i*l-c*a),f=(n*s-o*r)*(c-l)-(o-s)*(i*l-c*a),p=(e,t,n)=>e>=t&&e<=n?!0:e>=n&&e<=t;if(u===0)return!1;{let e={x:d/u,y:f/u};return p(e.x,n,r)&&p(e.y,o,s)&&p(e.x,i,a)&&p(e.y,c,l)}}},De=class extends U{onStart(e){if(this.el=this.createElement(`line`,{fill:`transparent`}),this.attr(`x1`,e.x),this.attr(`y1`,e.y),this.attr(`x2`,e.x),this.attr(`y2`,e.y),this.brush.arrowEnd){let e=_e(),t=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);return t.append(ve(e,this.brush.color)),t.append(this.el),this.attr(`marker-end`,`url(#${e})`),t}return this.el}onMove(e){if(!this.el)return!1;let{x:t,y:n}=e;if(this.shiftPressed){let r=e.x-this.start.x,i=e.y-this.start.y;if(i!==0){let e=r/i;e=Math.round(e),Math.abs(e)<=1?(t=this.start.x+i*e,n=this.start.y+i):(t=this.start.x+r,n=this.start.y)}}return this.altPressed?(this.attr(`x1`,this.start.x*2-t),this.attr(`y1`,this.start.y*2-n),this.attr(`x2`,t),this.attr(`y2`,n)):(this.attr(`x1`,this.start.x),this.attr(`y1`,this.start.y),this.attr(`x2`,t),this.attr(`y2`,n)),!0}onEnd(){let e=this.el;if(this.el=null,!e)return!1;try{if(e.getTotalLength()<5)return!1}catch{return!1}return!0}},Oe=class extends U{onStart(e){return this.el=this.createElement(`rect`),this.brush.cornerRadius&&(this.attr(`rx`,this.brush.cornerRadius),this.attr(`ry`,this.brush.cornerRadius)),this.attr(`x`,e.x),this.attr(`y`,e.y),this.el}onMove(e){if(!this.el||!this.start)return!1;let[t,n]=B(e.x-this.start.x),[r,i]=B(e.y-this.start.y);if(this.shiftPressed){let e=Math.min(t,r);t=e,r=e}if(this.altPressed)this.attr(`x`,this.start.x-t),this.attr(`y`,this.start.y-r),this.attr(`width`,t*2),this.attr(`height`,r*2);else{let[e,a]=[this.start.x,this.start.x+t*n].sort(z),[o,s]=[this.start.y,this.start.y+r*i].sort(z);this.attr(`x`,e),this.attr(`y`,o),this.attr(`width`,a-e),this.attr(`height`,s-o)}return!0}onEnd(){let e=this.el;if(this.el=null,!e)return!1;try{if(!e.getTotalLength())return!1}catch{return!1}return!0}};function W(e,t,n,r=e=>e){return e*r(.5-t*(.5-n))}function ke(e){return[-e[0],-e[1]]}function G(e,t){return[e[0]+t[0],e[1]+t[1]]}function K(e,t){return[e[0]-t[0],e[1]-t[1]]}function q(e,t){return[e[0]*t,e[1]*t]}function Ae(e,t){return[e[0]/t,e[1]/t]}function J(e){return[e[1],-e[0]]}function je(e,t){return e[0]*t[0]+e[1]*t[1]}function Me(e,t){return e[0]===t[0]&&e[1]===t[1]}function Ne(e){return Math.hypot(e[0],e[1])}function Pe(e){return e[0]*e[0]+e[1]*e[1]}function Fe(e,t){return Pe(K(e,t))}function Ie(e){return Ae(e,Ne(e))}function Le(e,t){return Math.hypot(e[1]-t[1],e[0]-t[0])}function Y(e,t,n){let r=Math.sin(n),i=Math.cos(n),a=e[0]-t[0],o=e[1]-t[1],s=a*i-o*r,c=a*r+o*i;return[s+t[0],c+t[1]]}function X(e,t,n){return G(e,q(K(t,e),n))}function Re(e,t,n){return G(e,q(t,n))}var{min:Z,PI:ze}=Math,Be=.275,Q=ze+1e-4;function Ve(e,t={}){let{size:n=16,smoothing:r=.5,thinning:i=.5,simulatePressure:a=!0,easing:o=e=>e,start:s={},end:c={},last:l=!1}=t,{cap:u=!0,easing:d=e=>e*(2-e)}=s,{cap:f=!0,easing:p=e=>--e*e*e+1}=c;if(e.length===0||n<=0)return[];let m=e[e.length-1].runningLength,h=s.taper===!1?0:s.taper===!0?Math.max(n,m):s.taper,g=c.taper===!1?0:c.taper===!0?Math.max(n,m):c.taper,_=(n*r)**2,v=[],y=[],b=e.slice(0,10).reduce((e,t)=>{let r=t.pressure;if(a){let i=Z(1,t.distance/n);r=Z(1,e+(Z(1,1-i)-e)*(i*Be))}return(e+r)/2},e[0].pressure),x=W(n,i,e[e.length-1].pressure,o),S,C=e[0].vector,w=e[0].point,T=w,E=w,D=T,O=!1;for(let t=0;t_)&&(v.push(E),w=E),D=G(s,P),(t<=1||Fe(T,D)>_)&&(y.push(D),T=D),b=r,C=c}let k=e[0].point.slice(0,2),A=e.length>1?e[e.length-1].point.slice(0,2):G(e[0].point,[1,1]),j=[],M=[];if(e.length===1){if(!(h||g)||l){let e=Re(k,Ie(J(K(k,A))),-(S||x)),t=[];for(let n=1/13,r=n;r<=1;r+=n)t.push(Y(e,k,Q*2*r));return t}}else{if(!(h||g&&e.length===1))if(u)for(let e=1/13,t=e;t<=1;t+=e){let e=Y(y[0],k,Q*t);j.push(e)}else{let e=K(v[0],y[0]),t=q(e,.5),n=q(e,.51);j.push(K(k,t),K(k,n),G(k,n),G(k,t))}let t=J(ke(e[e.length-1].vector));if(g||h&&e.length===1)M.push(A);else if(f){let e=Re(A,t,x);for(let t=1/29,n=t;n<1;n+=t)M.push(Y(e,A,Q*3*n))}else M.push(G(A,q(t,x)),G(A,q(t,x*.99)),K(A,q(t,x*.99)),K(A,q(t,x)))}return v.concat(M,y.reverse(),j)}function He(e,t={}){let{streamline:n=.5,size:r=16,last:i=!1}=t;if(e.length===0)return[];let a=.15+(1-n)*.85,o=Array.isArray(e[0])?e:e.map(({x:e,y:t,pressure:n=.5})=>[e,t,n]);if(o.length===2){let e=o[1];o=o.slice(0,-1);for(let t=1;t<5;t++)o.push(X(o[0],e,t/4))}o.length===1&&(o=[...o,[...G(o[0],[1,1]),...o[0].slice(2)]]);let s=[{point:[o[0][0],o[0][1]],pressure:o[0][2]>=0?o[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],c=!1,l=0,u=s[0],d=o.length-1;for(let e=1;e=0?o[e][2]:.5,vector:Ie(K(u.point,t)),distance:n,runningLength:l},s.push(u)}return s[0].vector=s[1]?.vector||[0,0],s}function Ue(e,t={}){return Ve(He(e,t),t)}var We=class e extends U{constructor(...e){super(...e),this.points=[]}onStart(e){return this.el=document.createElementNS(`http://www.w3.org/2000/svg`,`path`),this.points=[e],this.attr(`fill`,this.brush.color),this.attr(`d`,this.getSvgData(this.points)),this.el}onMove(e){return this.el||this.onStart(e),this.points[this.points.length-1]!==e&&this.points.push(e),this.attr(`d`,this.getSvgData(this.points)),!0}onEnd(){let e=this.el;return this.el=null,!!e}getSvgData(t){return e.getSvgData(t,this.brush)}static getSvgData(e,t){let n=Ue(e,{size:t.size,thinning:.9,simulatePressure:!1,start:{taper:5},end:{taper:5},...t.stylusOptions});if(!n.length)return``;let r=n.reduce((e,[t,n],r,i)=>{let[a,o]=i[(r+1)%i.length];return e.push(t,n,(t+a)/2,(n+o)/2),e},[`M`,...n[0],`Q`]);return r.push(`Z`),r.map(e=>typeof e==`number`?e.toFixed(2):e).join(` `)}};function Ge(e){return{draw:new we(e),stylus:new We(e),line:new De(e),rectangle:new Oe(e),ellipse:new Te(e),eraseLine:new Ee(e)}}var Ke=class{constructor(e={}){this.options=e,this.el=null,this.svgPoint=null,this.eventEl=null,this.shiftPressed=!1,this.altPressed=!1,this.drawing=!1,this._emitter=he(),this._originalPointerId=null,this._models=Ge(this),this._opStack=[],this._opIndex=0,this._disposables=[],this._elements=[],this.options.brush||(this.options.brush={color:`black`,size:3,mode:`stylus`}),e.el&&this.mount(e.el,e.eventTarget,e.window)}get model(){return this._models[this.mode]}get mounted(){return!!this.el}get mode(){return this.options.brush.mode||`stylus`}set mode(e){this._models[this.mode].onUnselected(),this.options.brush.mode=e,this.model.onSelected(this.el)}get brush(){return this.options.brush}set brush(e){this.options.brush=e}resolveSelector(e){return typeof e==`string`?document.querySelector(e):e||null}mount(e,t,n=window){if(this.el)throw Error(`[drauu] already mounted, unmount previous target first`);if(this.el=this.resolveSelector(e),!this.el)throw Error(`[drauu] target element not found`);if(this.el.tagName.toLocaleLowerCase()!==`svg`)throw Error(`[drauu] can only mount to a SVG element`);if(!this.el.createSVGPoint)throw Error(`[drauu] SVG element must be create by document.createElementNS('http://www.w3.org/2000/svg', 'svg')`);this.svgPoint=this.el.createSVGPoint();let r=this.resolveSelector(t)||this.el,i=this.eventStart.bind(this),a=this.eventMove.bind(this),o=this.eventEnd.bind(this),s=this.eventKeyboard.bind(this),c=this.touchMove.bind(this);r.addEventListener(`pointerdown`,i,{passive:!1}),n.addEventListener(`pointermove`,a,{passive:!1}),n.addEventListener(`pointerup`,o,{passive:!1}),n.addEventListener(`pointercancel`,o,{passive:!1}),n.addEventListener(`keydown`,s,!1),n.addEventListener(`keyup`,s,!1),n.addEventListener(`touchmove`,c,{passive:!1}),this._disposables.push(()=>{r.removeEventListener(`pointerdown`,i),n.removeEventListener(`pointermove`,a),n.removeEventListener(`pointerup`,o),n.removeEventListener(`pointercancel`,o),n.removeEventListener(`keydown`,s,!1),n.removeEventListener(`keyup`,s,!1),n.removeEventListener(`touchmove`,c)}),this._emitter.emit(`mounted`)}unmount(){this._disposables.forEach(e=>e()),this._disposables.length=0,this._elements.length=0,this.el=null,this._emitter.emit(`unmounted`)}on(e,t){return this._emitter.on(e,t)}undo(){return!this.canUndo()||this.drawing?!1:(this._opStack[--this._opIndex].undo(),this._emitter.emit(`changed`),!0)}redo(){return!this.canRedo()||this.drawing?!1:(this._opStack[this._opIndex++].redo(),this._emitter.emit(`changed`),!0)}canRedo(){return this._opIndex0}eventMove(e){!this.acceptsInput(e)||!this.drawing||this.model._eventMove(e)&&(e.stopPropagation(),e.preventDefault(),this._emitter.emit(`changed`))}eventStart(e){this.acceptsInput(e)&&(e.stopPropagation(),e.preventDefault(),this._currentNode&&this.cancel(),this.drawing=!0,this._originalPointerId=e.pointerId,this._emitter.emit(`start`),this._currentNode=this.model._eventDown(e),this._currentNode&&this.mode!==`eraseLine`&&this.el.appendChild(this._currentNode),this._emitter.emit(`changed`))}eventEnd(e){if(!this.acceptsInput(e)||!this.drawing)return;let t=this.model._eventUp(e);if(!t)this.cancel();else if(t===!0){let e=this._currentNode;e&&(this._appendNode(e),this.commit({undo:()=>this._removeNode(e),redo:()=>this._restoreNode(e)}))}else this.commit(t);this.drawing=!1,this._emitter.emit(`end`),this._emitter.emit(`changed`),this._originalPointerId=null}touchMove(e){Array.from(e.touches).some(e=>e.touchType===`stylus`&&e.identifier===this._originalPointerId)&&e.preventDefault()}acceptsInput(e){return(!this.options.acceptsInputTypes||this.options.acceptsInputTypes.includes(e.pointerType))&&!(this._originalPointerId&&this._originalPointerId!==e.pointerId)}eventKeyboard(e){this.shiftPressed===e.shiftKey&&this.altPressed===e.altKey||(this.shiftPressed=e.shiftKey,this.altPressed=e.altKey,this.model.point&&this.model.onMove(this.model.point)&&this._emitter.emit(`changed`))}commit(e){this._opStack.length=this._opIndex,this._opStack.push(e),this._opIndex++;let t=this._currentNode;this._currentNode=void 0,this._emitter.emit(`committed`,t)}clear(){this._opStack.length=0,this._opIndex=0,this._elements=[],this.cancel(),this.el.innerHTML=``,this._emitter.emit(`changed`)}cancel(){this._currentNode&&(this.el.removeChild(this._currentNode),this._currentNode=void 0,this._emitter.emit(`canceled`))}dump(){return this.el.innerHTML}load(e){this.clear(),this.el.innerHTML=e}_appendNode(e){let t=this._elements.at(-1);t?t.after(e):this.el.append(e);let n=this._elements.push(e)-1;e.dataset.drauu_index=n.toString()}_removeNode(e){e.remove(),this._elements[+e.dataset.drauu_index]=null}_restoreNode(e){let t=+e.dataset.drauu_index;this._elements[t]=e;for(let n=t-1;n>=0;n--){let t=this._elements[n];if(t){t.after(e);return}}this.el.prepend(e)}};function qe(e){return new Ke(e)}var Je=k(()=>{let{currentSlideNo:e,isPresenter:t}=R(),n=[`#ff595e`,`#ffca3a`,`#8ac926`,`#1982c4`,`#6a4c93`,`#ffffff`,`#000000`],r=j(`slidev-drawing-enabled`,!1),a=j(`slidev-drawing-pinned`,!1),o=j(`slidev-drawing-brush`,{color:n[0],size:4,mode:`stylus`}),s=_(!1),l=_(!1),u=_(!1),d=_(!1),p=_(`stylus`),m=h(()=>O.drawings.syncAll||t.value),g=!1,v=h({get(){return p.value},set(e){p.value=e,e===`arrow`?(x.mode=`line`,o.value.arrowEnd=!0):(x.mode=e,o.value.arrowEnd=!1)}}),b=y({brush:o,acceptsInputTypes:h(()=>r.value&&(!O.drawings.presenterOnly||t.value)?void 0:[`pen`]),coordinateTransform:!1}),x=f(qe(b));function S(){x.clear(),m.value&&I(e.value,``)}function C(){u.value=x.canRedo(),l.value=x.canUndo(),d.value=!!x.el?.children.length}function w(t){g=!0;let n=L[t||e.value];n==null?x.clear():x.load(n),C(),g=!1}return x.on(`changed`,()=>{if(C(),!g){let t=x.dump(),n=e.value;(L[n]||``)!==t&&m.value&&I(n,x.dump())}}),te(t=>{g=!0,t[e.value]!=null&&x.load(t[e.value]||``),g=!1,C()}),i(()=>{c(e,()=>{x.mounted&&w()},{immediate:!0})}),x.on(`start`,()=>s.value=!0),x.on(`end`,()=>s.value=!1),window.addEventListener(`keydown`,e=>{if(!r.value||ce.value)return;let t=!e.ctrlKey&&!e.altKey&&!e.shiftKey&&!e.metaKey,i=!0;e.code===`KeyZ`&&(e.ctrlKey||e.metaKey)?e.shiftKey?x.redo():x.undo():e.code===`Escape`?r.value=!1:e.code===`KeyL`&&t?v.value=`line`:e.code===`KeyA`&&t?v.value=`arrow`:e.code===`KeyS`&&t?v.value=`stylus`:e.code===`KeyR`&&t?v.value=`rectangle`:e.code===`KeyE`&&t?v.value=`ellipse`:e.code===`KeyC`&&t?S():e.code.startsWith(`Digit`)&&t&&+e.code[5]<=n.length?o.value.color=n[e.code[5]-1]:i=!1,i&&(e.preventDefault(),e.stopPropagation())},!1),{brush:o,brushColors:n,canClear:d,canRedo:u,canUndo:l,clear:S,drauu:x,drauuOptions:b,drawingEnabled:r,drawingMode:v,drawingPinned:a,drawingState:L,isDrawing:s,loadCanvas:w}}),Ye=[`innerHTML`],Xe=S({__name:`DrawingPreview`,props:{page:{}},setup(e){let{drawingState:t}=Je();return(n,r)=>d(t)[e.page]?(w(),p(`svg`,{key:0,class:`w-full h-full absolute top-0 pointer-events-none`,innerHTML:d(t)[e.page]},null,8,Ye)):C(``,!0)}}),$=y({}),Ze=[],Qe=[];F($,`$syncUp`,!0),F($,`$syncDown`,!0),F($,`$paused`,!1),F($,`$onSet`,e=>Ze.push(e)),F($,`$onPatch`,e=>Qe.push(e)),ae(),F($,`$patch`,async()=>!1);var $e=pe($,$,!0),et=window.navigator.userAgent.match(/Chrome\/(\d+)/)?.[1];et&&Number(et);var tt=window.navigator.userAgent.match(/Chrome\/(\d+)/)?.[1];tt&&Number(tt);var nt=new class{_screenshotSession=null;getSnapshot(e,t){let n=e+(t?`-dark`:`-light`),r=$e.state[n];if(!r)return;let i=ie(e);if(i&&r?.revision===i?.meta.slide.revision)return r.image}async saveSnapshot(e,t,n){return!1}async startCapturing(e){return!1}},rt=[`id`],it=[`id`],at={key:1,class:`slidev-slide-container w-full h-full relative`},ot=[`src`],st=_(null),ct=N(S({__name:`SlideContainer`,props:{width:{type:Number},meta:{default:()=>({})},isMain:{type:Boolean,default:!1},no:{type:Number,required:!1},useSnapshot:{type:Boolean,default:!1},contentStyle:{type:Object,default:()=>({})}},setup(e){let t=e,{isPrintMode:i}=R(),o=_(null),d=M(o),f=_(null),v=h(()=>t.width??d.width.value),y=h(()=>t.width?t.width/E.value:d.height.value),b=h(()=>P.value&&!i.value?+P.value:Math.min(v.value/T.value,y.value/D.value)),x=h(()=>({...t.contentStyle,height:`${D.value}px`,width:`${T.value}px`,"--slidev-slide-scale":b.value})),S=h(()=>t.width?{width:`${t.width}px`,height:`${t.width/E.value}px`}:{});if(t.isMain){let e=document.documentElement.style;s(()=>e.setProperty(`--slidev-slide-scale`,b.value.toString())),a(()=>e.removeProperty(`--slidev-slide-scale`))}A(oe,b),A(re,f),l(()=>{t.isMain&&(st.value=f.value)}),r(()=>{c(()=>t.isMain&&b.value,()=>{g()})});let C=h(()=>{if(!(t.no==null||!t.useSnapshot))return nt.getSnapshot(t.no,se.value)});return(t,r)=>C.value?(w(),p(`div`,at,[u(`img`,{src:C.value,class:`w-full h-full object-cover`,style:m(S.value)},null,12,ot),r[0]||=u(`div`,{absolute:``,"bottom-1":``,"right-1":``,"p0.5":``,"text-cyan:75":``,"bg-cyan:10":``,rounded:``,title:`Snapshot`},[u(`div`,{class:`i-carbon-camera`})],-1)])):(w(),p(`div`,{key:0,id:e.isMain?`slide-container`:void 0,ref_key:`container`,ref:o,class:`slidev-slide-container`,style:m(S.value)},[u(`div`,{id:e.isMain?`slide-content`:void 0,ref_key:`slideElement`,ref:f,class:`slidev-slide-content`,style:m(x.value)},[n(t.$slots,`default`,{},void 0,!0)],12,it),n(t.$slots,`controls`,{},void 0,!0)],12,rt))}}),[[`__scopeId`,`data-v-f9a69392`]]),lt=Object.assign({}),ut=Object.assign({}),dt=Object.assign({}),ft=Object.assign({}),pt=Object.assign({}),mt=Object.assign({}),ht=Object.assign({}),gt=Object.assign({}),_t=[Object.values(lt)[0],Object.values(ut)[0]].filter(Boolean),vt={render:()=>_t.map(t=>e(t))},yt=[Object.values(dt)[0],Object.values(ft)[0]].filter(Boolean),bt={render:()=>yt.map(t=>e(t))},xt=[Object.values(pt)[0],Object.values(mt)[0]].filter(Boolean),St={render:()=>xt.map(t=>e(t))},Ct=[Object.values(ht)[0],Object.values(gt)[0]].filter(Boolean),wt={render:()=>Ct.map(t=>e(t))},Tt=[`data-slidev-no`,`lang`],Et=N(S({__name:`SlideWrapper`,props:{clicksContext:{type:Object,required:!0},renderContext:{type:String,default:`slide`},route:{type:Object,required:!0}},setup(e){let n=e,r=h(()=>n.route.meta?.slide?.frontmatter.zoom??1);A(me,n.route),A(ne,n.route.meta.slide.frontmatter),A(fe,_(n.route.no)),A(le,_(n.renderContext)),A(ue,v(n,`clicksContext`)),A(de,r);let i=h(()=>({"user-select":O.selectable?void 0:`none`,"--slidev-slide-zoom-scale":r.value===1?void 0:r.value}));return(r,a)=>(w(),p(`div`,{"data-slidev-no":n.route.no,class:x(d(ee)(e.route,[`slide`,`presenter`].includes(n.renderContext)?``:`disable-view-transition`)),style:m(i.value),lang:n.route.meta.slide.frontmatter.lang},[o(d(wt)),(w(),b(t(n.route.component))),o(d(St))],14,Tt))}}),[[`__scopeId`,`data-v-4ce610b6`]]);export{st as a,ct as i,bt as n,Xe as o,vt as r,Je as s,Et as t}; \ No newline at end of file diff --git a/docs/dist/assets/_plugin-vue_export-helper-BDNMzG2s.js b/docs/dist/assets/_plugin-vue_export-helper-BDNMzG2s.js new file mode 100644 index 00000000..4374bdd0 --- /dev/null +++ b/docs/dist/assets/_plugin-vue_export-helper-BDNMzG2s.js @@ -0,0 +1 @@ +var e=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};export{e as t}; \ No newline at end of file diff --git a/docs/dist/assets/architecture-7EHR7CIX-OP562TCL-CNmektv-.js b/docs/dist/assets/architecture-7EHR7CIX-OP562TCL-CNmektv-.js new file mode 100644 index 00000000..d5c418e4 --- /dev/null +++ b/docs/dist/assets/architecture-7EHR7CIX-OP562TCL-CNmektv-.js @@ -0,0 +1 @@ +import{x as e}from"./chunk-BBDM4ZFP-DhnAO8sj.js";export{e as createArchitectureServices}; \ No newline at end of file diff --git a/docs/dist/assets/architectureDiagram-BSNNHI6N-zY0Hknmz.js b/docs/dist/assets/architectureDiagram-BSNNHI6N-zY0Hknmz.js new file mode 100644 index 00000000..e4bbdaf6 --- /dev/null +++ b/docs/dist/assets/architectureDiagram-BSNNHI6N-zY0Hknmz.js @@ -0,0 +1,36 @@ +import{i as e,r as t,t as n}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{I as r,T as i}from"./chunk-V7P66DNM-D246Sefn.js";import{C as a,E as o,G as s,J as c,Q as l,S as u,Y as d,b as f,et as p,m,o as h,x as g}from"./chunk-Q52JI7PB-BeSPinqD.js";import{t as _}from"./chunk-PUIB63ON-iBBh92CL.js";import"./chunk-7TFACZ55-BO7C1qvL.js";import{i as v,l as y}from"./chunk-BSZA5ISF-LqNHBHyp.js";import{a as b,i as x,n as S,o as C}from"./chunk-YSJUE5HW-eH4JtoEG.js";import{y as w}from"./chunk-BBDM4ZFP-DhnAO8sj.js";import{t as T}from"./chunk-6ZKBGPIT-B4RTUexp.js";import{t as E}from"./chunk-234R4QNB-By2FNiLO.js";var D=n({"../../node_modules/.pnpm/layout-base@2.0.1/node_modules/layout-base/layout-base.js"(e,n){t((function(t,r){typeof e==`object`&&typeof n==`object`?n.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.layoutBase=r():t.layoutBase=r()}),`webpackUniversalModuleDefinition`)(e,function(){return(function(e){var n={};function r(t){if(n[t])return n[t].exports;var i=n[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return t(r,`__webpack_require__`),r.m=e,r.c=n,r.i=function(e){return e},r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var n=e&&e.__esModule?t(function(){return e.default},`getDefault`):t(function(){return e},`getModuleExports`);return r.d(n,`a`,n),n},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=``,r(r.s=28)})([(function(e,n,r){function i(){}t(i,`LayoutConstants`),i.QUALITY=1,i.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,i.DEFAULT_INCREMENTAL=!1,i.DEFAULT_ANIMATION_ON_LAYOUT=!0,i.DEFAULT_ANIMATION_DURING_LAYOUT=!1,i.DEFAULT_ANIMATION_PERIOD=50,i.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,i.DEFAULT_GRAPH_MARGIN=15,i.NODE_DIMENSIONS_INCLUDE_LABELS=!1,i.SIMPLE_NODE_SIZE=40,i.SIMPLE_NODE_HALF_SIZE=i.SIMPLE_NODE_SIZE/2,i.EMPTY_COMPOUND_NODE_SIZE=40,i.MIN_EDGE_LENGTH=1,i.WORLD_BOUNDARY=1e6,i.INITIAL_WORLD_BOUNDARY=i.WORLD_BOUNDARY/1e3,i.WORLD_CENTER_X=1200,i.WORLD_CENTER_Y=900,e.exports=i}),(function(e,n,r){var i=r(2),a=r(8),o=r(9);function s(e,t,n){i.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=e,this.target=t}for(var c in t(s,`LEdge`),s.prototype=Object.create(i.prototype),i)s[c]=i[c];s.prototype.getSource=function(){return this.source},s.prototype.getTarget=function(){return this.target},s.prototype.isInterGraph=function(){return this.isInterGraph},s.prototype.getLength=function(){return this.length},s.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},s.prototype.getBendpoints=function(){return this.bendpoints},s.prototype.getLca=function(){return this.lca},s.prototype.getSourceInLca=function(){return this.sourceInLca},s.prototype.getTargetInLca=function(){return this.targetInLca},s.prototype.getOtherEnd=function(e){if(this.source===e)return this.target;if(this.target===e)return this.source;throw`Node is not incident with this edge`},s.prototype.getOtherEndInGraph=function(e,t){for(var n=this.getOtherEnd(e),r=t.getGraphManager().getRoot();;){if(n.getOwner()==t)return n;if(n.getOwner()==r)break;n=n.getOwner().getParent()}return null},s.prototype.updateLength=function(){var e=[,,,,];this.isOverlapingSourceAndTarget=a.getIntersection(this.target.getRect(),this.source.getRect(),e),this.isOverlapingSourceAndTarget||(this.lengthX=e[0]-e[2],this.lengthY=e[1]-e[3],Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},s.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},e.exports=s}),(function(e,n,r){function i(e){this.vGraphObject=e}t(i,`LGraphObject`),e.exports=i}),(function(e,n,r){var i=r(2),a=r(10),o=r(13),s=r(0),c=r(16),l=r(5);function u(e,t,n,r){n==null&&r==null&&(r=t),i.call(this,r),e.graphManager!=null&&(e=e.graphManager),this.estimatedSize=a.MIN_VALUE,this.inclusionTreeDepth=a.MAX_VALUE,this.vGraphObject=r,this.edges=[],this.graphManager=e,n!=null&&t!=null?this.rect=new o(t.x,t.y,n.width,n.height):this.rect=new o}for(var d in t(u,`LNode`),u.prototype=Object.create(i.prototype),i)u[d]=i[d];u.prototype.getEdges=function(){return this.edges},u.prototype.getChild=function(){return this.child},u.prototype.getOwner=function(){return this.owner},u.prototype.getWidth=function(){return this.rect.width},u.prototype.setWidth=function(e){this.rect.width=e},u.prototype.getHeight=function(){return this.rect.height},u.prototype.setHeight=function(e){this.rect.height=e},u.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},u.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},u.prototype.getCenter=function(){return new l(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},u.prototype.getLocation=function(){return new l(this.rect.x,this.rect.y)},u.prototype.getRect=function(){return this.rect},u.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},u.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},u.prototype.setRect=function(e,t){this.rect.x=e.x,this.rect.y=e.y,this.rect.width=t.width,this.rect.height=t.height},u.prototype.setCenter=function(e,t){this.rect.x=e-this.rect.width/2,this.rect.y=t-this.rect.height/2},u.prototype.setLocation=function(e,t){this.rect.x=e,this.rect.y=t},u.prototype.moveBy=function(e,t){this.rect.x+=e,this.rect.y+=t},u.prototype.getEdgeListToNode=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.target==e){if(r.source!=n)throw`Incorrect edge source!`;t.push(r)}}),t},u.prototype.getEdgesBetween=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(!(r.source==n||r.target==n))throw`Incorrect edge source and/or target`;(r.target==e||r.source==e)&&t.push(r)}),t},u.prototype.getNeighborsList=function(){var e=new Set,t=this;return t.edges.forEach(function(n){if(n.source==t)e.add(n.target);else{if(n.target!=t)throw`Incorrect incidency!`;e.add(n.source)}}),e},u.prototype.withChildren=function(){var e=new Set,t,n;if(e.add(this),this.child!=null)for(var r=this.child.getNodes(),i=0;it?(this.rect.x-=(this.labelWidth-t)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal==`right`&&this.setWidth(t+this.labelWidth)),this.labelHeight&&(this.labelPosVertical==`top`?(this.rect.y-=this.labelHeight,this.setHeight(n+this.labelHeight)):this.labelPosVertical==`center`&&this.labelHeight>n?(this.rect.y-=(this.labelHeight-n)/2,this.setHeight(this.labelHeight)):this.labelPosVertical==`bottom`&&this.setHeight(n+this.labelHeight))}}},u.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==a.MAX_VALUE)throw`assert failed`;return this.inclusionTreeDepth},u.prototype.transform=function(e){var t=this.rect.x;t>s.WORLD_BOUNDARY?t=s.WORLD_BOUNDARY:t<-s.WORLD_BOUNDARY&&(t=-s.WORLD_BOUNDARY);var n=this.rect.y;n>s.WORLD_BOUNDARY?n=s.WORLD_BOUNDARY:n<-s.WORLD_BOUNDARY&&(n=-s.WORLD_BOUNDARY);var r=new l(t,n),i=e.inverseTransformPoint(r);this.setLocation(i.x,i.y)},u.prototype.getLeft=function(){return this.rect.x},u.prototype.getRight=function(){return this.rect.x+this.rect.width},u.prototype.getTop=function(){return this.rect.y},u.prototype.getBottom=function(){return this.rect.y+this.rect.height},u.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},e.exports=u}),(function(e,n,r){var i=r(0);function a(){}for(var o in t(a,`FDLayoutConstants`),i)a[o]=i[o];a.MAX_ITERATIONS=2500,a.DEFAULT_EDGE_LENGTH=50,a.DEFAULT_SPRING_STRENGTH=.45,a.DEFAULT_REPULSION_STRENGTH=4500,a.DEFAULT_GRAVITY_STRENGTH=.4,a.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,a.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,a.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,a.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,a.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,a.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,a.COOLING_ADAPTATION_FACTOR=.33,a.ADAPTATION_LOWER_NODE_LIMIT=1e3,a.ADAPTATION_UPPER_NODE_LIMIT=5e3,a.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,a.MAX_NODE_DISPLACEMENT=a.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,a.MIN_REPULSION_DIST=a.DEFAULT_EDGE_LENGTH/10,a.CONVERGENCE_CHECK_PERIOD=100,a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,a.MIN_EDGE_LENGTH=1,a.GRID_CALCULATION_CHECK_PERIOD=10,e.exports=a}),(function(e,n,r){function i(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}t(i,`PointD`),i.prototype.getX=function(){return this.x},i.prototype.getY=function(){return this.y},i.prototype.setX=function(e){this.x=e},i.prototype.setY=function(e){this.y=e},i.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},i.prototype.getCopy=function(){return new i(this.x,this.y)},i.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},e.exports=i}),(function(e,n,r){var i=r(2),a=r(10),o=r(0),s=r(7),c=r(3),l=r(1),u=r(13),d=r(12),f=r(11);function p(e,t,n){i.call(this,n),this.estimatedSize=a.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=e,t!=null&&t instanceof s?this.graphManager=t:t!=null&&t instanceof Layout&&(this.graphManager=t.graphManager)}for(var m in t(p,`LGraph`),p.prototype=Object.create(i.prototype),i)p[m]=i[m];p.prototype.getNodes=function(){return this.nodes},p.prototype.getEdges=function(){return this.edges},p.prototype.getGraphManager=function(){return this.graphManager},p.prototype.getParent=function(){return this.parent},p.prototype.getLeft=function(){return this.left},p.prototype.getRight=function(){return this.right},p.prototype.getTop=function(){return this.top},p.prototype.getBottom=function(){return this.bottom},p.prototype.isConnected=function(){return this.isConnected},p.prototype.add=function(e,t,n){if(t==null&&n==null){var r=e;if(this.graphManager==null)throw`Graph has no graph mgr!`;if(this.getNodes().indexOf(r)>-1)throw`Node already in graph!`;return r.owner=this,this.getNodes().push(r),r}else{var i=e;if(!(this.getNodes().indexOf(t)>-1&&this.getNodes().indexOf(n)>-1))throw`Source or target not in graph!`;if(!(t.owner==n.owner&&t.owner==this))throw`Both owners must be this graph!`;return t.owner==n.owner?(i.source=t,i.target=n,i.isInterGraph=!1,this.getEdges().push(i),t.edges.push(i),n!=t&&n.edges.push(i),i):null}},p.prototype.remove=function(e){var t=e;if(e instanceof c){if(t==null)throw`Node is null!`;if(!(t.owner!=null&&t.owner==this))throw`Owner graph is invalid!`;if(this.graphManager==null)throw`Owner graph manager is invalid!`;for(var n=t.edges.slice(),r,i=n.length,a=0;a-1&&u>-1))throw`Source and/or target doesn't know this edge!`;r.source.edges.splice(s,1),r.target!=r.source&&r.target.edges.splice(u,1);var o=r.source.owner.getEdges().indexOf(r);if(o==-1)throw`Not in owner's edge list!`;r.source.owner.getEdges().splice(o,1)}},p.prototype.updateLeftTop=function(){for(var e=a.MAX_VALUE,t=a.MAX_VALUE,n,r,i,o=this.getNodes(),s=o.length,c=0;cn&&(e=n),t>r&&(t=r)}return e==a.MAX_VALUE?null:(i=o[0].getParent().paddingLeft==null?this.margin:o[0].getParent().paddingLeft,this.left=t-i,this.top=e-i,new d(this.left,this.top))},p.prototype.updateBounds=function(e){for(var t=a.MAX_VALUE,n=-a.MAX_VALUE,r=a.MAX_VALUE,i=-a.MAX_VALUE,o,s,c,l,d,f=this.nodes,p=f.length,m=0;mo&&(t=o),nc&&(r=c),io&&(t=o),nc&&(r=c),i=this.nodes.length){var c=0;n.forEach(function(t){t.owner==e&&c++}),c==this.nodes.length&&(this.isConnected=!0)}},e.exports=p}),(function(e,n,r){var i,a=r(1);function o(e){i=r(6),this.layout=e,this.graphs=[],this.edges=[]}t(o,`LGraphManager`),o.prototype.addRoot=function(){var e=this.layout.newGraph(),t=this.layout.newNode(null),n=this.add(e,t);return this.setRootGraph(n),this.rootGraph},o.prototype.add=function(e,t,n,r,i){if(n==null&&r==null&&i==null){if(e==null)throw`Graph is null!`;if(t==null)throw`Parent node is null!`;if(this.graphs.indexOf(e)>-1)throw`Graph already in this graph mgr!`;if(this.graphs.push(e),e.parent!=null)throw`Already has a parent!`;if(t.child!=null)throw`Already has a child!`;return e.parent=t,t.child=e,e}else{i=n,r=t,n=e;var a=r.getOwner(),o=i.getOwner();if(!(a!=null&&a.getGraphManager()==this))throw`Source not in this graph mgr!`;if(!(o!=null&&o.getGraphManager()==this))throw`Target not in this graph mgr!`;if(a==o)return n.isInterGraph=!1,a.add(n,r,i);if(n.isInterGraph=!0,n.source=r,n.target=i,this.edges.indexOf(n)>-1)throw`Edge already in inter-graph edge list!`;if(this.edges.push(n),!(n.source!=null&&n.target!=null))throw`Edge source and/or target is null!`;if(!(n.source.edges.indexOf(n)==-1&&n.target.edges.indexOf(n)==-1))throw`Edge already in source and/or target incidency list!`;return n.source.edges.push(n),n.target.edges.push(n),n}},o.prototype.remove=function(e){if(e instanceof i){var t=e;if(t.getGraphManager()!=this)throw`Graph not in this graph mgr`;if(!(t==this.rootGraph||t.parent!=null&&t.parent.graphManager==this))throw`Invalid parent node!`;var n=[];n=n.concat(t.getEdges());for(var r,o=n.length,s=0;s=t.getRight()?n[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight()):t.getX()<=e.getX()&&t.getRight()>=e.getRight()&&(n[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight())),e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()?n[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()):t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()&&(n[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()));var a=Math.abs((t.getCenterY()-e.getCenterY())/(t.getCenterX()-e.getCenterX()));t.getCenterY()===e.getCenterY()&&t.getCenterX()===e.getCenterX()&&(a=1);var o=a*n[0],s=n[1]/a;n[0]o)return n[0]=r,n[1]=c,n[2]=a,n[3]=y,!1;if(ia)return n[0]=s,n[1]=i,n[2]=_,n[3]=o,!1;if(ra?(n[0]=u,n[1]=d,C=!0):(n[0]=l,n[1]=c,C=!0):T===D&&(r>a?(n[0]=s,n[1]=c,C=!0):(n[0]=f,n[1]=d,C=!0)),-E===D?a>r?(n[2]=v,n[3]=y,w=!0):(n[2]=_,n[3]=g,w=!0):E===D&&(a>r?(n[2]=h,n[3]=g,w=!0):(n[2]=b,n[3]=y,w=!0)),C&&w)return!1;if(r>a?i>o?(O=this.getCardinalDirection(T,D,4),k=this.getCardinalDirection(E,D,2)):(O=this.getCardinalDirection(-T,D,3),k=this.getCardinalDirection(-E,D,1)):i>o?(O=this.getCardinalDirection(-T,D,1),k=this.getCardinalDirection(-E,D,3)):(O=this.getCardinalDirection(T,D,2),k=this.getCardinalDirection(E,D,4)),!C)switch(O){case 1:j=c,A=r+-m/D,n[0]=A,n[1]=j;break;case 2:A=f,j=i+p*D,n[0]=A,n[1]=j;break;case 3:j=d,A=r+m/D,n[0]=A,n[1]=j;break;case 4:A=u,j=i+-p*D,n[0]=A,n[1]=j;break}if(!w)switch(k){case 1:N=g,M=a+-S/D,n[2]=M,n[3]=N;break;case 2:M=b,N=o+x*D,n[2]=M,n[3]=N;break;case 3:N=y,M=a+S/D,n[2]=M,n[3]=N;break;case 4:M=v,N=o+-x*D,n[2]=M,n[3]=N;break}}return!1},a.getCardinalDirection=function(e,t,n){return e>t?n:1+n%4},a.getIntersection=function(e,t,n,r){if(r==null)return this.getIntersection2(e,t,n);var a=e.x,o=e.y,s=t.x,c=t.y,l=n.x,u=n.y,d=r.x,f=r.y,p=void 0,m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0;return h=c-o,_=a-s,y=s*o-a*c,g=f-u,v=l-d,b=d*u-l*f,x=h*v-g*_,x===0?null:(p=(_*b-v*y)/x,m=(g*y-h*b)/x,new i(p,m))},a.angleOfVector=function(e,t,n,r){var i=void 0;return e===n?i=r=0){var u=(-c+Math.sqrt(c*c-4*s*l))/(2*s),d=(-c-Math.sqrt(c*c-4*s*l))/(2*s);return u>=0&&u<=1?[u]:d>=0&&d<=1?[d]:null}else return null},a.HALF_PI=.5*Math.PI,a.ONE_AND_HALF_PI=1.5*Math.PI,a.TWO_PI=2*Math.PI,a.THREE_PI=3*Math.PI,e.exports=a}),(function(e,n,r){function i(){}t(i,`IMath`),i.sign=function(e){return e>0?1:e<0?-1:0},i.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},i.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},e.exports=i}),(function(e,n,r){function i(){}t(i,`Integer`),i.MAX_VALUE=2147483647,i.MIN_VALUE=-2147483648,e.exports=i}),(function(e,n,r){var i=(function(){function e(e,t){for(var n=0;n0&&t;){for(s.push(l[0]);s.length>0&&t;){var u=s[0];s.splice(0,1),o.add(u);for(var d=u.getEdges(),a=0;a-1&&l.splice(h,1)}o=new Set,c=new Map}}return e},p.prototype.createDummyNodesForBendpoints=function(e){for(var t=[],n=e.source,r=this.graphManager.calcLowestCommonAncestor(e.source,e.target),i=0;i0){for(var r=this.edgeToDummyNodes.get(n),a=0;a=0&&t.splice(d,1),s.getNeighborsList().forEach(function(e){if(n.indexOf(e)<0){var t=r.get(e)-1;t==1&&l.push(e),r.set(e,t)}})}n=n.concat(l),(t.length==1||t.length==2)&&(i=!0,a=t[0])}return a},p.prototype.setGraphManager=function(e){this.graphManager=e},e.exports=p}),(function(e,n,r){function i(){}t(i,`RandomSeed`),i.seed=1,i.x=0,i.nextDouble=function(){return i.x=Math.sin(i.seed++)*1e4,i.x-Math.floor(i.x)},e.exports=i}),(function(e,n,r){var i=r(5);function a(e,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}t(a,`Transform`),a.prototype.getWorldOrgX=function(){return this.lworldOrgX},a.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},a.prototype.getWorldOrgY=function(){return this.lworldOrgY},a.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},a.prototype.getWorldExtX=function(){return this.lworldExtX},a.prototype.setWorldExtX=function(e){this.lworldExtX=e},a.prototype.getWorldExtY=function(){return this.lworldExtY},a.prototype.setWorldExtY=function(e){this.lworldExtY=e},a.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},a.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},a.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},a.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},a.prototype.getDeviceExtX=function(){return this.ldeviceExtX},a.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},a.prototype.getDeviceExtY=function(){return this.ldeviceExtY},a.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},a.prototype.transformX=function(e){var t=0,n=this.lworldExtX;return n!=0&&(t=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/n),t},a.prototype.transformY=function(e){var t=0,n=this.lworldExtY;return n!=0&&(t=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/n),t},a.prototype.inverseTransformX=function(e){var t=0,n=this.ldeviceExtX;return n!=0&&(t=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/n),t},a.prototype.inverseTransformY=function(e){var t=0,n=this.ldeviceExtY;return n!=0&&(t=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/n),t},a.prototype.inverseTransformPoint=function(e){return new i(this.inverseTransformX(e.x),this.inverseTransformY(e.y))},e.exports=a}),(function(e,n,r){function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);to.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*o.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(e-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-o.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT_INCREMENTAL):(e>o.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(o.COOLING_ADAPTATION_FACTOR,1-(e-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*(1-o.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*o.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},u.prototype.calcSpringForces=function(){for(var e=this.getAllEdges(),t,n=0;n0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n,r,i,a,s=this.getAllNodes(),c;if(this.useFRGridVariant)for(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&e&&this.updateGrid(),c=new Set,n=0;nc||s>c)&&(e.gravitationForceX=-this.gravityConstant*i,e.gravitationForceY=-this.gravityConstant*a)):(c=t.getEstimatedSize()*this.compoundGravityRangeFactor,(o>c||s>c)&&(e.gravitationForceX=-this.gravityConstant*i*this.compoundGravityConstant,e.gravitationForceY=-this.gravityConstant*a*this.compoundGravityConstant))},u.prototype.isConverged=function(){var e,t=!1;return this.totalIterations>this.maxIterations/3&&(t=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),e=this.totalDisplacement=c.length||u>=c[0].length)){for(var d=0;de},`_defaultCompareFunction`)}]),e})()}),(function(e,n,r){function i(){}t(i,`SVD`),i.svd=function(e){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=e.length,this.n=e[0].length;var n=Math.min(this.m,this.n);this.s=(function(e){for(var t=[];e-- >0;)t.push(0);return t})(Math.min(this.m+1,this.n)),this.U=(function(e){return t(function e(t){if(t.length==0)return 0;for(var n=[],r=0;r0;)t.push(0);return t})(this.n),a=(function(e){for(var t=[];e-- >0;)t.push(0);return t})(this.m),o=!0,s=!0,c=Math.min(this.m-1,this.n),l=Math.max(0,Math.min(this.n-2,this.m)),u=0;u=0;A--)if(this.s[A]!==0){for(var j=A+1;j=0;R--){if((function(e,t){return e&&t})(R0;){var G=void 0,K=void 0;for(G=D-2;G>=-1&&G!==-1;G--)if(Math.abs(r[G])<=W+ne*(Math.abs(this.s[G])+Math.abs(this.s[G+1]))){r[G]=0;break}if(G===D-2)K=4;else{var q=void 0;for(q=D-1;q>=G&&q!==G;q--){var re=(q===D?0:Math.abs(r[q]))+(q===G+1?0:Math.abs(r[q-1]));if(Math.abs(this.s[q])<=W+ne*re){this.s[q]=0;break}}q===G?K=3:q===D-1?K=1:(K=2,G=q)}switch(G++,K){case 1:var J=r[D-2];r[D-2]=0;for(var Y=D-2;Y>=G;Y--){var X=i.hypot(this.s[Y],J),Z=this.s[Y]/X,ie=J/X;if(this.s[Y]=X,Y!==G&&(J=-ie*r[Y-1],r[Y-1]=Z*r[Y-1]),s)for(var Q=0;Q=this.s[G+1]);){var Oe=this.s[G];if(this.s[G]=this.s[G+1],this.s[G+1]=Oe,s&&GMath.abs(t)?(n=t/e,n=Math.abs(e)*Math.sqrt(1+n*n)):t==0?n=0:(n=e/t,n=Math.abs(t)*Math.sqrt(1+n*n)),n},e.exports=i}),(function(e,n,r){var i=(function(){function e(e,t){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;a(this,e),this.sequence1=t,this.sequence2=n,this.match_score=r,this.mismatch_penalty=i,this.gap_penalty=o,this.iMax=t.length+1,this.jMax=n.length+1,this.grid=Array(this.iMax);for(var s=0;s=0;n--){var r=this.listeners[n];r.event===e&&r.callback===t&&this.listeners.splice(n,1)}},a.emit=function(e,t){for(var n=0;n{var n={45:((e,t,n)=>{var r={};r.layoutBase=n(551),r.CoSEConstants=n(806),r.CoSEEdge=n(767),r.CoSEGraph=n(880),r.CoSEGraphManager=n(578),r.CoSELayout=n(765),r.CoSENode=n(991),r.ConstraintHandler=n(902),e.exports=r}),806:((e,n,r)=>{var i=r(551).FDLayoutConstants;function a(){}for(var o in t(a,`CoSEConstants`),i)a[o]=i[o];a.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,a.DEFAULT_RADIAL_SEPARATION=i.DEFAULT_EDGE_LENGTH,a.DEFAULT_COMPONENT_SEPERATION=60,a.TILE=!0,a.TILING_PADDING_VERTICAL=10,a.TILING_PADDING_HORIZONTAL=10,a.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,a.ENFORCE_CONSTRAINTS=!0,a.APPLY_LAYOUT=!0,a.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,a.TREE_REDUCTION_ON_INCREMENTAL=!0,a.PURE_INCREMENTAL=a.DEFAULT_INCREMENTAL,e.exports=a}),767:((e,n,r)=>{var i=r(551).FDLayoutEdge;function a(e,t,n){i.call(this,e,t,n)}for(var o in t(a,`CoSEEdge`),a.prototype=Object.create(i.prototype),i)a[o]=i[o];e.exports=a}),880:((e,n,r)=>{var i=r(551).LGraph;function a(e,t,n){i.call(this,e,t,n)}for(var o in t(a,`CoSEGraph`),a.prototype=Object.create(i.prototype),i)a[o]=i[o];e.exports=a}),578:((e,n,r)=>{var i=r(551).LGraphManager;function a(e){i.call(this,e)}for(var o in t(a,`CoSEGraphManager`),a.prototype=Object.create(i.prototype),i)a[o]=i[o];e.exports=a}),765:((e,n,r)=>{var i=r(551).FDLayout,a=r(578),o=r(880),s=r(991),c=r(767),l=r(806),u=r(902),d=r(551).FDLayoutConstants,f=r(551).LayoutConstants,p=r(551).Point,m=r(551).PointD,h=r(551).DimensionD,g=r(551).Layout,_=r(551).Integer,v=r(551).IGeometry,y=r(551).LGraph,b=r(551).Transform,x=r(551).LinkedList;function S(){i.call(this),this.toBeTiled={},this.constraints={}}for(var C in t(S,`CoSELayout`),S.prototype=Object.create(i.prototype),i)S[C]=i[C];S.prototype.newGraphManager=function(){var e=new a(this);return this.graphManager=e,e},S.prototype.newGraph=function(e){return new o(null,this.graphManager,e)},S.prototype.newNode=function(e){return new s(this.graphManager,e)},S.prototype.newEdge=function(e){return new c(null,null,e)},S.prototype.initParameters=function(){i.prototype.initParameters.call(this,arguments),this.isSubLayout||(l.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=l.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=l.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=d.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=d.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=d.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},S.prototype.initSpringEmbedder=function(){i.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/d.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},S.prototype.layout=function(){return f.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},S.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),!this.incremental){var e=this.getFlatForest();if(e.length>0)this.positionNodesRadially(e);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n),this.positionNodesRandomly()}}else if(l.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n)}return Object.keys(this.constraints).length>0&&(u.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),l.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},S.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-this.coolingCycle**+(Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var e=new Set(this.getAllNodes()),t=this.nodesWithGravity.filter(function(t){return e.has(t)});this.graphManager.setAllNodesToApplyGravitation(t),this.graphManager.updateBounds(),this.updateGrid(),l.PURE_INCREMENTAL?this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),l.PURE_INCREMENTAL?this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var n=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(n,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},S.prototype.getPositionsData=function(){for(var e=this.graphManager.getAllNodes(),t={},n=0;n0&&this.updateDisplacements();for(var n=0;n0&&(i.fixedNodeWeight=o)}}if(this.constraints.relativePlacementConstraint){var s=new Map,c=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(t){e.fixedNodesOnHorizontal.add(t),e.fixedNodesOnVertical.add(t)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var u=this.constraints.alignmentConstraint.vertical,r=0;r=2*e.length/3;r--)t=Math.floor(Math.random()*(r+1)),n=e[r],e[r]=e[t],e[t]=n;return e},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(t){if(t.left){var n=s.has(t.left)?s.get(t.left):t.left,r=s.has(t.right)?s.get(t.right):t.right;e.nodesInRelativeHorizontal.includes(n)||(e.nodesInRelativeHorizontal.push(n),e.nodeToRelativeConstraintMapHorizontal.set(n,[]),e.dummyToNodeForVerticalAlignment.has(n)?e.nodeToTempPositionMapHorizontal.set(n,e.idToNodeMap.get(e.dummyToNodeForVerticalAlignment.get(n)[0]).getCenterX()):e.nodeToTempPositionMapHorizontal.set(n,e.idToNodeMap.get(n).getCenterX())),e.nodesInRelativeHorizontal.includes(r)||(e.nodesInRelativeHorizontal.push(r),e.nodeToRelativeConstraintMapHorizontal.set(r,[]),e.dummyToNodeForVerticalAlignment.has(r)?e.nodeToTempPositionMapHorizontal.set(r,e.idToNodeMap.get(e.dummyToNodeForVerticalAlignment.get(r)[0]).getCenterX()):e.nodeToTempPositionMapHorizontal.set(r,e.idToNodeMap.get(r).getCenterX())),e.nodeToRelativeConstraintMapHorizontal.get(n).push({right:r,gap:t.gap}),e.nodeToRelativeConstraintMapHorizontal.get(r).push({left:n,gap:t.gap})}else{var i=c.has(t.top)?c.get(t.top):t.top,a=c.has(t.bottom)?c.get(t.bottom):t.bottom;e.nodesInRelativeVertical.includes(i)||(e.nodesInRelativeVertical.push(i),e.nodeToRelativeConstraintMapVertical.set(i,[]),e.dummyToNodeForHorizontalAlignment.has(i)?e.nodeToTempPositionMapVertical.set(i,e.idToNodeMap.get(e.dummyToNodeForHorizontalAlignment.get(i)[0]).getCenterY()):e.nodeToTempPositionMapVertical.set(i,e.idToNodeMap.get(i).getCenterY())),e.nodesInRelativeVertical.includes(a)||(e.nodesInRelativeVertical.push(a),e.nodeToRelativeConstraintMapVertical.set(a,[]),e.dummyToNodeForHorizontalAlignment.has(a)?e.nodeToTempPositionMapVertical.set(a,e.idToNodeMap.get(e.dummyToNodeForHorizontalAlignment.get(a)[0]).getCenterY()):e.nodeToTempPositionMapVertical.set(a,e.idToNodeMap.get(a).getCenterY())),e.nodeToRelativeConstraintMapVertical.get(i).push({bottom:a,gap:t.gap}),e.nodeToRelativeConstraintMapVertical.get(a).push({top:i,gap:t.gap})}});else{var f=new Map,p=new Map;this.constraints.relativePlacementConstraint.forEach(function(e){if(e.left){var t=s.has(e.left)?s.get(e.left):e.left,n=s.has(e.right)?s.get(e.right):e.right;f.has(t)?f.get(t).push(n):f.set(t,[n]),f.has(n)?f.get(n).push(t):f.set(n,[t])}else{var r=c.has(e.top)?c.get(e.top):e.top,i=c.has(e.bottom)?c.get(e.bottom):e.bottom;p.has(r)?p.get(r).push(i):p.set(r,[i]),p.has(i)?p.get(i).push(r):p.set(i,[r])}});var m=t(function(e,t){var n=[],r=[],i=new x,a=new Set,o=0;return e.forEach(function(s,c){if(!a.has(c)){n[o]=[],r[o]=!1;var l=c;for(i.push(l),a.add(l),n[o].push(l);i.length!=0;)l=i.shift(),t.has(l)&&(r[o]=!0),e.get(l).forEach(function(e){a.has(e)||(i.push(e),a.add(e),n[o].push(e))});o++}}),{components:n,isFixed:r}},`constructComponents`),h=m(f,e.fixedNodesOnHorizontal);this.componentsOnHorizontal=h.components,this.fixedComponentsOnHorizontal=h.isFixed;var g=m(p,e.fixedNodesOnVertical);this.componentsOnVertical=g.components,this.fixedComponentsOnVertical=g.isFixed}}},S.prototype.updateDisplacements=function(){var e=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(t){var n=e.idToNodeMap.get(t.nodeId);n.displacementX=0,n.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var t=this.constraints.alignmentConstraint.vertical,n=0;n1){var s;for(s=0;sr&&(r=Math.floor(o.y)),a=Math.floor(o.x+l.DEFAULT_COMPONENT_SEPERATION)}this.transform(new m(f.WORLD_CENTER_X-o.x/2,f.WORLD_CENTER_Y-o.y/2))},S.radialLayout=function(e,t,n){var r=Math.max(this.maxDiagonalInTree(e),l.DEFAULT_RADIAL_SEPARATION);S.branchRadialLayout(t,null,0,359,0,r);var i=y.calculateBounds(e),a=new b;a.setDeviceOrgX(i.getMinX()),a.setDeviceOrgY(i.getMinY()),a.setWorldOrgX(n.x),a.setWorldOrgY(n.y);for(var o=0;o1;){var g=h[0];h.splice(0,1);var _=u.indexOf(g);_>=0&&u.splice(_,1),p--,d--}m=t==null?0:(u.indexOf(h[0])+1)%p;for(var y=Math.abs(r-n)/d,b=m;f!=d;b=++b%p){var x=u[b].getOtherEnd(e);if(x!=t){var C=(n+f*y)%360,w=(C+y)%360;S.branchRadialLayout(x,e,C,w,i+a,a),f++}}},S.maxDiagonalInTree=function(e){for(var t=_.MIN_VALUE,n=0;nt&&(t=r)}return t},S.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},S.prototype.groupZeroDegreeMembers=function(){var e=this,t={};this.memberGroups={},this.idToDummyNode={};for(var n=[],r=this.graphManager.getAllNodes(),i=0;i1){var r=`DummyCompound_`+n;e.memberGroups[r]=t[n];var i=t[n][0].getParent(),a=new s(e.graphManager);a.id=r,a.paddingLeft=i.paddingLeft||0,a.paddingRight=i.paddingRight||0,a.paddingBottom=i.paddingBottom||0,a.paddingTop=i.paddingTop||0,e.idToDummyNode[r]=a;var o=e.getGraphManager().add(e.newGraph(),a),c=i.getChild();c.add(a);for(var l=0;li?(r.rect.x-=(r.labelWidth-i)/2,r.setWidth(r.labelWidth),r.labelMarginLeft=(r.labelWidth-i)/2):r.labelPosHorizontal==`right`&&r.setWidth(i+r.labelWidth)),r.labelHeight&&(r.labelPosVertical==`top`?(r.rect.y-=r.labelHeight,r.setHeight(a+r.labelHeight),r.labelMarginTop=r.labelHeight):r.labelPosVertical==`center`&&r.labelHeight>a?(r.rect.y-=(r.labelHeight-a)/2,r.setHeight(r.labelHeight),r.labelMarginTop=(r.labelHeight-a)/2):r.labelPosVertical==`bottom`&&r.setHeight(a+r.labelHeight))}})},S.prototype.repopulateCompounds=function(){for(var e=this.compoundOrder.length-1;e>=0;e--){var t=this.compoundOrder[e],n=t.id,r=t.paddingLeft,i=t.paddingTop,a=t.labelMarginLeft,o=t.labelMarginTop;this.adjustLocations(this.tiledMemberPack[n],t.rect.x,t.rect.y,r,i,a,o)}},S.prototype.repopulateZeroDegreeMembers=function(){var e=this,t=this.tiledZeroDegreePack;Object.keys(t).forEach(function(n){var r=e.idToDummyNode[n],i=r.paddingLeft,a=r.paddingTop,o=r.labelMarginLeft,s=r.labelMarginTop;e.adjustLocations(t[n],r.rect.x,r.rect.y,i,a,o,s)})},S.prototype.getToBeTiled=function(e){var t=e.id;if(this.toBeTiled[t]!=null)return this.toBeTiled[t];var n=e.getChild();if(n==null)return this.toBeTiled[t]=!1,!1;for(var r=n.getNodes(),i=0;i0)return this.toBeTiled[t]=!1,!1;if(a.getChild()==null){this.toBeTiled[a.id]=!1;continue}if(!this.getToBeTiled(a))return this.toBeTiled[t]=!1,!1}return this.toBeTiled[t]=!0,!0},S.prototype.getNodeDegree=function(e){e.id;for(var t=e.getEdges(),n=0,r=0;ru&&(u=f.rect.height)}n+=u+e.verticalPadding}},S.prototype.tileCompoundMembers=function(e,t){var n=this;this.tiledMemberPack=[],Object.keys(e).forEach(function(r){var i=t[r];if(n.tiledMemberPack[r]=n.tileNodes(e[r],i.paddingLeft+i.paddingRight),i.rect.width=n.tiledMemberPack[r].width,i.rect.height=n.tiledMemberPack[r].height,i.setCenter(n.tiledMemberPack[r].centerX,n.tiledMemberPack[r].centerY),i.labelMarginLeft=0,i.labelMarginTop=0,l.NODE_DIMENSIONS_INCLUDE_LABELS){var a=i.rect.width,o=i.rect.height;i.labelWidth&&(i.labelPosHorizontal==`left`?(i.rect.x-=i.labelWidth,i.setWidth(a+i.labelWidth),i.labelMarginLeft=i.labelWidth):i.labelPosHorizontal==`center`&&i.labelWidth>a?(i.rect.x-=(i.labelWidth-a)/2,i.setWidth(i.labelWidth),i.labelMarginLeft=(i.labelWidth-a)/2):i.labelPosHorizontal==`right`&&i.setWidth(a+i.labelWidth)),i.labelHeight&&(i.labelPosVertical==`top`?(i.rect.y-=i.labelHeight,i.setHeight(o+i.labelHeight),i.labelMarginTop=i.labelHeight):i.labelPosVertical==`center`&&i.labelHeight>o?(i.rect.y-=(i.labelHeight-o)/2,i.setHeight(i.labelHeight),i.labelMarginTop=(i.labelHeight-o)/2):i.labelPosVertical==`bottom`&&i.setHeight(o+i.labelHeight))}})},S.prototype.tileNodes=function(e,t){var n=this.tileNodesByFavoringDim(e,t,!0),r=this.tileNodesByFavoringDim(e,t,!1),i=this.getOrgRatio(n);return this.getOrgRatio(r)s&&(s=e.getWidth())});var c=a/i,u=o/i,d=(n-r)**2+4*(c+r)*(u+n)*i,f=(r-n+Math.sqrt(d))/(2*(c+r)),p;t?(p=Math.ceil(f),p==f&&p++):p=Math.floor(f);var m=p*(c+r)-r;return s>m&&(m=s),m+=r*2,m},S.prototype.tileNodesByFavoringDim=function(e,n,r){var i=l.TILING_PADDING_VERTICAL,a=l.TILING_PADDING_HORIZONTAL,o=l.TILING_COMPARE_BY,s={rows:[],rowWidth:[],rowHeight:[],width:0,height:n,verticalPadding:i,horizontalPadding:a,centerX:0,centerY:0};o&&(s.idealRowWidth=this.calcIdealRowWidth(e,r));var c=t(function(e){return e.rect.width*e.rect.height},`getNodeArea`),u=t(function(e,t){return c(t)-c(e)},`areaCompareFcn`);e.sort(function(e,t){var n=u;return s.idealRowWidth?(n=o,n(e.id,t.id)):n(e,t)});for(var d=0,f=0,p=0;p0&&(a+=e.horizontalPadding),e.rowWidth[n]=a,e.width0&&(o+=e.verticalPadding);var s=0;o>e.rowHeight[n]&&(s=e.rowHeight[n],e.rowHeight[n]=o,s=e.rowHeight[n]-s),e.height+=s,e.rows[n].push(t)},S.prototype.getShortestRowIndex=function(e){for(var t=-1,n=Number.MAX_VALUE,r=0;rn&&(t=r,n=e.rowWidth[r]);return t},S.prototype.canAddHorizontal=function(e,t,n){if(e.idealRowWidth){var r=e.rows.length-1;return e.rowWidth[r]+t+e.horizontalPadding<=e.idealRowWidth}var i=this.getShortestRowIndex(e);if(i<0)return!0;var a=e.rowWidth[i];if(a+e.horizontalPadding+t<=e.width)return!0;var o=0;e.rowHeight[i]0&&(o=n+e.verticalPadding-e.rowHeight[i]);var s=e.width-a>=t+e.horizontalPadding?(e.height+o)/(a+t+e.horizontalPadding):(e.height+o)/e.width;o=n+e.verticalPadding;var c=e.widtha&&t!=n){r.splice(-1,1),e.rows[n].push(i),e.rowWidth[t]=e.rowWidth[t]-a,e.rowWidth[n]=e.rowWidth[n]+a,e.width=e.rowWidth[instance.getLongestRowIndex(e)];for(var o=Number.MIN_VALUE,s=0;so&&(o=r[s].height);t>0&&(o+=e.verticalPadding);var c=e.rowHeight[t]+e.rowHeight[n];e.rowHeight[t]=o,e.rowHeight[n]0)for(var u=i;u<=a;u++)c[0]+=this.grid[u][o-1].length+this.grid[u][o].length-1;if(a0)for(var u=o;u<=s;u++)c[3]+=this.grid[i-1][u].length+this.grid[i][u].length-1;for(var f=_.MAX_VALUE,p,m,h=0;h{var i=r(551).FDLayoutNode,a=r(551).IMath;function o(e,t,n,r){i.call(this,e,t,n,r)}for(var s in t(o,`CoSENode`),o.prototype=Object.create(i.prototype),i)o[s]=i[s];o.prototype.calculateDisplacement=function(){var e=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementX=e.coolingFactor*e.maxNodeDisplacement*a.sign(this.displacementX)),Math.abs(this.displacementY)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementY=e.coolingFactor*e.maxNodeDisplacement*a.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},o.prototype.propogateDisplacementToChildren=function(e,t){for(var n=this.getChild().getNodes(),r,i=0;i{function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0){var i=0;t.forEach(function(e){n==`horizontal`?(p.set(e,l.has(e)?u[l.get(e)]:a.get(e)),i+=p.get(e)):(p.set(e,l.has(e)?d[l.get(e)]:a.get(e)),i+=p.get(e))}),i/=t.length,e.forEach(function(e){r.has(e)||p.set(e,i)})}else{var o=0;e.forEach(function(e){n==`horizontal`?o+=l.has(e)?u[l.get(e)]:a.get(e):o+=l.has(e)?d[l.get(e)]:a.get(e)}),o/=e.length,e.forEach(function(e){p.set(e,o)})}});for(var g=t(function(){var t=h.shift();e.get(t).forEach(function(e){if(p.get(e.id)o&&(o=v),ys&&(s=y)}}catch(e){f=!0,m=e}finally{try{!c&&h.return&&h.return()}finally{if(f)throw m}}var b=(r+o)/2-(i+s)/2,x=!0,S=!1,C=void 0;try{for(var w=e[Symbol.iterator](),T;!(x=(T=w.next()).done);x=!0){var E=T.value;p.set(E,p.get(E)+b)}}catch(e){S=!0,C=e}finally{try{!x&&w.return&&w.return()}finally{if(S)throw C}}})}return p},`findAppropriatePositionForRelativePlacement`),y=t(function(e){var t=0,n=0,r=0,i=0;if(e.forEach(function(e){e.left?u[l.get(e.left)]-u[l.get(e.right)]>=0?t++:n++:d[l.get(e.top)]-d[l.get(e.bottom)]>=0?r++:i++}),t>n&&r>i)for(var a=0;an)for(var o=0;oi)for(var s=0;s1)n.fixedNodeConstraint.forEach(function(e,t){C[t]=[e.position.x,e.position.y],w[t]=[u[l.get(e.nodeId)],d[l.get(e.nodeId)]]}),T=!0;else if(n.alignmentConstraint)(function(){var e=0;if(n.alignmentConstraint.vertical){for(var r=n.alignmentConstraint.vertical,a=t(function(t){var n=new Set;r[t].forEach(function(e){n.add(e)});var a=new Set([].concat(i(n)).filter(function(e){return D.has(e)})),o=void 0;o=a.size>0?u[l.get(a.values().next().value)]:_(n).x,r[t].forEach(function(t){C[e]=[o,d[l.get(t)]],w[e]=[u[l.get(t)],d[l.get(t)]],e++})},`_loop2`),o=0;o0?u[l.get(r.values().next().value)]:_(n).y,s[t].forEach(function(t){C[e]=[u[l.get(t)],a],w[e]=[u[l.get(t)],d[l.get(t)]],e++})},`_loop3`),f=0;fj&&(j=A[N].length,M=N);if(j0){var K={x:0,y:0};n.fixedNodeConstraint.forEach(function(e,t){var n={x:u[l.get(e.nodeId)],y:d[l.get(e.nodeId)]},r=e.position,i=g(r,n);K.x+=i.x,K.y+=i.y}),K.x/=n.fixedNodeConstraint.length,K.y/=n.fixedNodeConstraint.length,u.forEach(function(e,t){u[t]+=K.x}),d.forEach(function(e,t){d[t]+=K.y}),n.fixedNodeConstraint.forEach(function(e){u[l.get(e.nodeId)]=e.position.x,d[l.get(e.nodeId)]=e.position.y})}if(n.alignmentConstraint){if(n.alignmentConstraint.vertical)for(var q=n.alignmentConstraint.vertical,re=t(function(e){var t=new Set;q[e].forEach(function(e){t.add(e)});var n=new Set([].concat(i(t)).filter(function(e){return D.has(e)})),r=void 0;r=n.size>0?u[l.get(n.values().next().value)]:_(t).x,t.forEach(function(e){D.has(e)||(u[l.get(e)]=r)})},`_loop4`),J=0;J0?d[l.get(n.values().next().value)]:_(t).y,t.forEach(function(e){D.has(e)||(d[l.get(e)]=r)})},`_loop5`),Z=0;Z{t.exports=e})},r={};function i(e){var t=r[e];if(t!==void 0)return t.exports;var a=r[e]={exports:{}};return n[e](a,a.exports,i),a.exports}return t(i,`__webpack_require__`),i(45)})()})}}),k=n({"../../node_modules/.pnpm/cytoscape-fcose@2.2.0_cytoscape@3.33.1/node_modules/cytoscape-fcose/cytoscape-fcose.js"(e,n){t((function(t,r){typeof e==`object`&&typeof n==`object`?n.exports=r(O()):typeof define==`function`&&define.amd?define([`cose-base`],r):typeof e==`object`?e.cytoscapeFcose=r(O()):t.cytoscapeFcose=r(t.coseBase)}),`webpackUniversalModuleDefinition`)(e,function(e){return(()=>{var n={658:(e=>{e.exports=Object.assign==null?function(e){return[...arguments].slice(1).forEach(function(t){Object.keys(t).forEach(function(n){return e[n]=t[n]})}),e}:Object.assign.bind(Object)}),548:((e,n,r)=>{var i=(function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw a}}return n}return t(e,`sliceIterator`),function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw TypeError(`Invalid attempt to destructure non-iterable instance`)}})(),a=r(140).layoutBase.LinkedList,o={};o.getTopMostNodes=function(e){for(var t={},n=0;n0&&t.merge(e)});for(var u=0;u1){u=c[0],d=u.connectedEdges().length,c.forEach(function(e){e.connectedEdges().length0&&i.set(`dummy`+(i.size+1),m),h},o.relocateComponent=function(e,t,n){if(!n.fixedNodeConstraint){var r=1/0,a=-1/0,o=1/0,s=-1/0;if(n.quality==`draft`){var c=!0,l=!1,u=void 0;try{for(var d=t.nodeIndexes[Symbol.iterator](),f;!(c=(f=d.next()).done);c=!0){var p=f.value,m=i(p,2),h=m[0],g=m[1],_=n.cy.getElementById(h);if(_){var v=_.boundingBox(),y=t.xCoords[g]-v.w/2,b=t.xCoords[g]+v.w/2,x=t.yCoords[g]-v.h/2,S=t.yCoords[g]+v.h/2;ya&&(a=b),xs&&(s=S)}}}catch(e){l=!0,u=e}finally{try{!c&&d.return&&d.return()}finally{if(l)throw u}}var C=e.x-(a+r)/2,w=e.y-(s+o)/2;t.xCoords=t.xCoords.map(function(e){return e+C}),t.yCoords=t.yCoords.map(function(e){return e+w})}else{Object.keys(t).forEach(function(e){var n=t[e],i=n.getRect().x,c=n.getRect().x+n.getRect().width,l=n.getRect().y,u=n.getRect().y+n.getRect().height;ia&&(a=c),ls&&(s=u)});var T=e.x-(a+r)/2,E=e.y-(s+o)/2;Object.keys(t).forEach(function(e){var n=t[e];n.setCenter(n.getCenterX()+T,n.getCenterY()+E)})}}},o.calcBoundingBox=function(e,t,n,r){for(var i=2**53-1,a=-(2**53-1),o=2**53-1,s=-(2**53-1),c=void 0,l=void 0,u=void 0,d=void 0,f=e.descendants().not(`:parent`),p=f.length,m=0;mc&&(i=c),au&&(o=u),s{var i=r(548),a=r(140).CoSELayout,o=r(140).CoSENode,s=r(140).layoutBase.PointD,c=r(140).layoutBase.DimensionD,l=r(140).layoutBase.LayoutConstants,u=r(140).layoutBase.FDLayoutConstants,d=r(140).CoSEConstants;e.exports={coseLayout:t(function(e,n){var r=e.cy,f=e.eles,p=f.nodes(),m=f.edges(),h=void 0,g=void 0,_=void 0,v={};e.randomize&&(h=n.nodeIndexes,g=n.xCoords,_=n.yCoords);var y=t(function(e){return typeof e==`function`},`isFn`),b=t(function(e,t){return y(e)?e(t):e},`optFn`),x=i.calcParentsWithoutChildren(r,f),S=t(function e(t,n,r,a){for(var l=n.length,u=0;u0){var S=void 0;S=r.getGraphManager().add(r.newGraph(),p),e(S,f,r,a)}}},`processChildrenList`),C=t(function(t,n,r){for(var i=0,a=0,o=0;o0?d.DEFAULT_EDGE_LENGTH=u.DEFAULT_EDGE_LENGTH=i/a:y(e.idealEdgeLength)?d.DEFAULT_EDGE_LENGTH=u.DEFAULT_EDGE_LENGTH=50:d.DEFAULT_EDGE_LENGTH=u.DEFAULT_EDGE_LENGTH=e.idealEdgeLength,d.MIN_REPULSION_DIST=u.MIN_REPULSION_DIST=u.DEFAULT_EDGE_LENGTH/10,d.DEFAULT_RADIAL_SEPARATION=u.DEFAULT_EDGE_LENGTH)},`processEdges`),w=t(function(e,t){t.fixedNodeConstraint&&(e.constraints.fixedNodeConstraint=t.fixedNodeConstraint),t.alignmentConstraint&&(e.constraints.alignmentConstraint=t.alignmentConstraint),t.relativePlacementConstraint&&(e.constraints.relativePlacementConstraint=t.relativePlacementConstraint)},`processConstraints`);e.nestingFactor!=null&&(d.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=u.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.nestingFactor),e.gravity!=null&&(d.DEFAULT_GRAVITY_STRENGTH=u.DEFAULT_GRAVITY_STRENGTH=e.gravity),e.numIter!=null&&(d.MAX_ITERATIONS=u.MAX_ITERATIONS=e.numIter),e.gravityRange!=null&&(d.DEFAULT_GRAVITY_RANGE_FACTOR=u.DEFAULT_GRAVITY_RANGE_FACTOR=e.gravityRange),e.gravityCompound!=null&&(d.DEFAULT_COMPOUND_GRAVITY_STRENGTH=u.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.gravityCompound),e.gravityRangeCompound!=null&&(d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=u.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.gravityRangeCompound),e.initialEnergyOnIncremental!=null&&(d.DEFAULT_COOLING_FACTOR_INCREMENTAL=u.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.initialEnergyOnIncremental),e.tilingCompareBy!=null&&(d.TILING_COMPARE_BY=e.tilingCompareBy),e.quality==`proof`?l.QUALITY=2:l.QUALITY=0,d.NODE_DIMENSIONS_INCLUDE_LABELS=u.NODE_DIMENSIONS_INCLUDE_LABELS=l.NODE_DIMENSIONS_INCLUDE_LABELS=e.nodeDimensionsIncludeLabels,d.DEFAULT_INCREMENTAL=u.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=!e.randomize,d.ANIMATE=u.ANIMATE=l.ANIMATE=e.animate,d.TILE=e.tile,d.TILING_PADDING_VERTICAL=typeof e.tilingPaddingVertical==`function`?e.tilingPaddingVertical.call():e.tilingPaddingVertical,d.TILING_PADDING_HORIZONTAL=typeof e.tilingPaddingHorizontal==`function`?e.tilingPaddingHorizontal.call():e.tilingPaddingHorizontal,d.DEFAULT_INCREMENTAL=u.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=!0,d.PURE_INCREMENTAL=!e.randomize,l.DEFAULT_UNIFORM_LEAF_NODE_SIZES=e.uniformNodeDimensions,e.step==`transformed`&&(d.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,d.ENFORCE_CONSTRAINTS=!1,d.APPLY_LAYOUT=!1),e.step==`enforced`&&(d.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,d.ENFORCE_CONSTRAINTS=!0,d.APPLY_LAYOUT=!1),e.step==`cose`&&(d.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,d.ENFORCE_CONSTRAINTS=!1,d.APPLY_LAYOUT=!0),e.step==`all`&&(e.randomize?d.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:d.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,d.ENFORCE_CONSTRAINTS=!0,d.APPLY_LAYOUT=!0),e.fixedNodeConstraint||e.alignmentConstraint||e.relativePlacementConstraint?d.TREE_REDUCTION_ON_INCREMENTAL=!1:d.TREE_REDUCTION_ON_INCREMENTAL=!0;var T=new a,E=T.newGraphManager();return S(E.addRoot(),i.getTopMostNodes(p),T,e),C(T,E,m),w(T,e),T.runLayout(),v},`coseLayout`)}}),212:((e,n,r)=>{var i=(function(){function e(e,t){for(var n=0;n0)if(p){var m=s.getTopMostNodes(n.eles.nodes());if(u=s.connectComponents(r,n.eles,m),u.forEach(function(e){var t=e.boundingBox();d.push({x:t.x1+t.w/2,y:t.y1+t.h/2})}),n.randomize&&u.forEach(function(e){n.eles=e,a.push(c(n))}),n.quality=="default"||n.quality==`proof`){var h=r.collection();if(n.tile){var g=new Map,_=[],v=[],y=0,b={nodeIndexes:g,xCoords:_,yCoords:v},x=[];if(u.forEach(function(e,t){e.edges().length==0&&(e.nodes().forEach(function(t,n){h.merge(e.nodes()[n]),t.isParent()||(b.nodeIndexes.set(e.nodes()[n].id(),y++),b.xCoords.push(e.nodes()[0].position().x),b.yCoords.push(e.nodes()[0].position().y))}),x.push(t))}),h.length>1){var S=h.boundingBox();d.push({x:S.x1+S.w/2,y:S.y1+S.h/2}),u.push(h),a.push(b);for(var C=x.length-1;C>=0;C--)u.splice(x[C],1),a.splice(x[C],1),d.splice(x[C],1)}}u.forEach(function(e,t){n.eles=e,o.push(l(n,a[t])),s.relocateComponent(d[t],o[t],n)})}else u.forEach(function(e,t){s.relocateComponent(d[t],a[t],n)});var w=new Set;if(u.length>1){var T=[],E=i.filter(function(e){return e.css(`display`)==`none`});u.forEach(function(e,t){var r=void 0;if(n.quality==`draft`&&(r=a[t].nodeIndexes),e.nodes().not(E).length>0){var i={};i.edges=[],i.nodes=[];var c=void 0;e.nodes().not(E).forEach(function(e){if(n.quality==`draft`)if(!e.isParent())c=r.get(e.id()),i.nodes.push({x:a[t].xCoords[c]-e.boundingbox().w/2,y:a[t].yCoords[c]-e.boundingbox().h/2,width:e.boundingbox().w,height:e.boundingbox().h});else{var l=s.calcBoundingBox(e,a[t].xCoords,a[t].yCoords,r);i.nodes.push({x:l.topLeftX,y:l.topLeftY,width:l.width,height:l.height})}else o[t][e.id()]&&i.nodes.push({x:o[t][e.id()].getLeft(),y:o[t][e.id()].getTop(),width:o[t][e.id()].getWidth(),height:o[t][e.id()].getHeight()})}),e.edges().forEach(function(e){var c=e.source(),l=e.target();if(c.css(`display`)!=`none`&&l.css(`display`)!=`none`)if(n.quality==`draft`){var u=r.get(c.id()),d=r.get(l.id()),f=[],p=[];if(c.isParent()){var m=s.calcBoundingBox(c,a[t].xCoords,a[t].yCoords,r);f.push(m.topLeftX+m.width/2),f.push(m.topLeftY+m.height/2)}else f.push(a[t].xCoords[u]),f.push(a[t].yCoords[u]);if(l.isParent()){var h=s.calcBoundingBox(l,a[t].xCoords,a[t].yCoords,r);p.push(h.topLeftX+h.width/2),p.push(h.topLeftY+h.height/2)}else p.push(a[t].xCoords[d]),p.push(a[t].yCoords[d]);i.edges.push({startX:f[0],startY:f[1],endX:p[0],endY:p[1]})}else o[t][c.id()]&&o[t][l.id()]&&i.edges.push({startX:o[t][c.id()].getCenterX(),startY:o[t][c.id()].getCenterY(),endX:o[t][l.id()].getCenterX(),endY:o[t][l.id()].getCenterY()})}),i.nodes.length>0&&(T.push(i),w.add(t))}});var D=f.packComponents(T,n.randomize).shifts;if(n.quality==`draft`)a.forEach(function(e,t){var n=e.xCoords.map(function(e){return e+D[t].dx}),r=e.yCoords.map(function(e){return e+D[t].dy});e.xCoords=n,e.yCoords=r});else{var O=0;w.forEach(function(e){Object.keys(o[e]).forEach(function(t){var n=o[e][t];n.setCenter(n.getCenterX()+D[O].dx,n.getCenterY()+D[O].dy)}),O++})}}}else{var k=n.eles.boundingBox();if(d.push({x:k.x1+k.w/2,y:k.y1+k.h/2}),n.randomize){var A=c(n);a.push(A)}n.quality=="default"||n.quality==`proof`?(o.push(l(n,a[0])),s.relocateComponent(d[0],o[0],n)):s.relocateComponent(d[0],a[0],n)}var j=t(function(e,t){if(n.quality=="default"||n.quality==`proof`){typeof e==`number`&&(e=t);var r=void 0,i=void 0,s=e.data(`id`);return o.forEach(function(e){s in e&&(r={x:e[s].getRect().getCenterX(),y:e[s].getRect().getCenterY()},i=e[s])}),n.nodeDimensionsIncludeLabels&&(i.labelWidth&&(i.labelPosHorizontal==`left`?r.x+=i.labelWidth/2:i.labelPosHorizontal==`right`&&(r.x-=i.labelWidth/2)),i.labelHeight&&(i.labelPosVertical==`top`?r.y+=i.labelHeight/2:i.labelPosVertical==`bottom`&&(r.y-=i.labelHeight/2))),r??={x:e.position(`x`),y:e.position(`y`)},{x:r.x,y:r.y}}else{var c=void 0;return a.forEach(function(t){var n=t.nodeIndexes.get(e.id());n!=null&&(c={x:t.xCoords[n],y:t.yCoords[n]})}),c??={x:e.position(`x`),y:e.position(`y`)},{x:c.x,y:c.y}}},`getPositions`);if(n.quality=="default"||n.quality==`proof`||n.randomize){var M=s.calcParentsWithoutChildren(r,i),N=i.filter(function(e){return e.css(`display`)==`none`});n.eles=i.not(N),i.nodes().not(`:parent`).not(N).layoutPositions(e,n,j),M.length>0&&M.forEach(function(e){e.position(j(e))})}else console.log(`If randomize option is set to false, then quality option must be 'default' or 'proof'.`)},`run`)}]),e})()}),657:((e,n,r)=>{var i=r(548),a=r(140).layoutBase.Matrix,o=r(140).layoutBase.SVD;e.exports={spectralLayout:t(function(e){var n=e.cy,r=e.eles,s=r.nodes(),c=r.nodes(`:parent`),l=new Map,u=new Map,d=new Map,f=[],p=[],m=[],h=[],g=[],_=[],v=[],y=[],b=void 0,x=1e8,S=1e-9,C=e.piTol,w=e.samplingType,T=e.nodeSeparation,E=void 0,D=t(function(){for(var e=0,t=0,n=!1;t=i;){o=r[i++];for(var m=f[o],h=0;hl&&(l=g[y],d=y)}return d},`BFS`),k=t(function(e){var t=void 0;if(e){t=Math.floor(Math.random()*b);for(var n=0;n=1)break;u=l}for(var h=0;h=1)break;u=l}for(var v=0;v0&&(n.isParent()?f[t].push(d.get(n.id())):f[t].push(n.id()))})});var V=t(function(e){var t=u.get(e),r=void 0;l.get(e).forEach(function(i){r=n.getElementById(i).isParent()?d.get(i):i,f[t].push(r),f[u.get(r)].push(e)})},`_loop`),H=!0,ee=!1,te=void 0;try{for(var U=l.keys()[Symbol.iterator](),ne;!(H=(ne=U.next()).done);H=!0){var W=ne.value;V(W)}}catch(e){ee=!0,te=e}finally{try{!H&&U.return&&U.return()}finally{if(ee)throw te}}b=u.size;var G=void 0;if(b>2){E=b{var i=r(212),a=t(function(e){e&&e(`layout`,`fcose`,i)},`register`);typeof cytoscape<`u`&&a(cytoscape),e.exports=a}),140:(t=>{t.exports=e})},r={};function i(e){var t=r[e];if(t!==void 0)return t.exports;var a=r[e]={exports:{}};return n[e](a,a.exports,i),a.exports}return t(i,`__webpack_require__`),i(579)})()})}}),A={L:`left`,R:`right`,T:`top`,B:`bottom`},j={L:t(e=>`${e},${e/2} 0,${e} 0,0`,`L`),R:t(e=>`0,${e/2} ${e},0 ${e},${e}`,`R`),T:t(e=>`0,0 ${e},0 ${e/2},${e}`,`T`),B:t(e=>`${e/2},0 ${e},${e} 0,${e}`,`B`)},M={L:t((e,t)=>e-t+2,`L`),R:t((e,t)=>e-2,`R`),T:t((e,t)=>e-t+2,`T`),B:t((e,t)=>e-2,`B`)},N=t(function(e){return F(e)?e===`L`?`R`:`L`:e===`T`?`B`:`T`},`getOppositeArchitectureDirection`),P=t(function(e){let t=e;return t===`L`||t===`R`||t===`T`||t===`B`},`isArchitectureDirection`),F=t(function(e){let t=e;return t===`L`||t===`R`},`isArchitectureDirectionX`),I=t(function(e){let t=e;return t===`T`||t===`B`},`isArchitectureDirectionY`),L=t(function(e,t){let n=F(e)&&I(t),r=I(e)&&F(t);return n||r},`isArchitectureDirectionXY`),R=t(function(e){let t=e[0],n=e[1],r=F(t)&&I(n),i=I(t)&&F(n);return r||i},`isArchitecturePairXY`),z=t(function(e){return e!==`LL`&&e!==`RR`&&e!==`TT`&&e!==`BB`},`isValidArchitectureDirectionPair`),B=t(function(e,t){let n=`${e}${t}`;return z(n)?n:void 0},`getArchitectureDirectionPair`),V=t(function([e,t],n){let r=n[0],i=n[1];return F(r)?I(i)?[e+(r===`L`?-1:1),t+(i===`T`?1:-1)]:[e+(r===`L`?-1:1),t]:F(i)?[e+(i===`L`?1:-1),t+(r===`T`?1:-1)]:[e,t+(r===`T`?1:-1)]},`shiftPositionByArchitectureDirectionPair`),H=t(function(e){return e===`LT`||e===`TL`?[1,1]:e===`BL`||e===`LB`?[1,-1]:e===`BR`||e===`RB`?[-1,-1]:[-1,1]},`getArchitectureDirectionXYFactors`),ee=t(function(e,t){return L(e,t)?`bend`:F(e)?`horizontal`:`vertical`},`getArchitectureDirectionAlignment`),te=t(function(e){return e.type===`service`},`isArchitectureService`),U=t(function(e){return e.type===`junction`},`isArchitectureJunction`),ne=t(e=>e.data(),`edgeData`),W=t(e=>e.data(),`nodeData`),G=m.architecture,K=class{constructor(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.elements={},this.diagramId=``,this.setAccTitle=d,this.getAccTitle=g,this.setDiagramTitle=l,this.getDiagramTitle=o,this.getAccDescription=f,this.setAccDescription=c,this.clear()}static{t(this,`ArchitectureDB`)}setDiagramId(e){this.diagramId=e}getDiagramId(){return this.diagramId}clear(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.dataStructures=void 0,this.elements={},this.diagramId=``,h()}addService({id:e,icon:t,in:n,title:r,iconText:i}){if(this.registeredIds[e]!==void 0)throw Error(`The service id [${e}] is already in use by another ${this.registeredIds[e]}`);if(n!==void 0){if(e===n)throw Error(`The service [${e}] cannot be placed within itself`);if(this.registeredIds[n]===void 0)throw Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds[n]===`node`)throw Error(`The service [${e}]'s parent is not a group`)}this.registeredIds[e]=`node`,this.nodes[e]={id:e,type:`service`,icon:t,iconText:i,title:r,edges:[],in:n}}getServices(){return Object.values(this.nodes).filter(te)}addJunction({id:e,in:t}){if(this.registeredIds[e]!==void 0)throw Error(`The junction id [${e}] is already in use by another ${this.registeredIds[e]}`);if(t!==void 0){if(e===t)throw Error(`The junction [${e}] cannot be placed within itself`);if(this.registeredIds[t]===void 0)throw Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds[t]===`node`)throw Error(`The junction [${e}]'s parent is not a group`)}this.registeredIds[e]=`node`,this.nodes[e]={id:e,type:`junction`,edges:[],in:t}}getJunctions(){return Object.values(this.nodes).filter(U)}getNodes(){return Object.values(this.nodes)}getNode(e){return this.nodes[e]??null}addGroup({id:e,icon:t,in:n,title:r}){if(this.registeredIds?.[e]!==void 0)throw Error(`The group id [${e}] is already in use by another ${this.registeredIds[e]}`);if(n!==void 0){if(e===n)throw Error(`The group [${e}] cannot be placed within itself`);if(this.registeredIds?.[n]===void 0)throw Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds?.[n]===`node`)throw Error(`The group [${e}]'s parent is not a group`)}this.registeredIds[e]=`group`,this.groups[e]={id:e,icon:t,title:r,in:n}}getGroups(){return Object.values(this.groups)}addEdge({lhsId:e,rhsId:t,lhsDir:n,rhsDir:r,lhsInto:i,rhsInto:a,lhsGroup:o,rhsGroup:s,title:c}){if(!P(n))throw Error(`Invalid direction given for left hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(n)}`);if(!P(r))throw Error(`Invalid direction given for right hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(r)}`);if(this.nodes[e]===void 0&&this.groups[e]===void 0)throw Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(this.nodes[t]===void 0&&this.groups[t]===void 0)throw Error(`The right-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);let l=this.nodes[e].in,u=this.nodes[t].in;if(o&&l&&u&&l==u)throw Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(s&&l&&u&&l==u)throw Error(`The right-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);let d={lhsId:e,lhsDir:n,lhsInto:i,lhsGroup:o,rhsId:t,rhsDir:r,rhsInto:a,rhsGroup:s,title:c};this.edges.push(d),this.nodes[e]&&this.nodes[t]&&(this.nodes[e].edges.push(this.edges[this.edges.length-1]),this.nodes[t].edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}getDataStructures(){if(this.dataStructures===void 0){let e={},n=Object.entries(this.nodes).reduce((t,[n,r])=>(t[n]=r.edges.reduce((t,r)=>{let i=this.getNode(r.lhsId)?.in,a=this.getNode(r.rhsId)?.in;if(i&&a&&i!==a){let t=ee(r.lhsDir,r.rhsDir);t!==`bend`&&(e[i]??={},e[i][a]=t,e[a]??={},e[a][i]=t)}if(r.lhsId===n){let e=B(r.lhsDir,r.rhsDir);e&&(t[e]=r.rhsId)}else{let e=B(r.rhsDir,r.lhsDir);e&&(t[e]=r.lhsId)}return t},{}),t),{}),r=Object.keys(n)[0],i={[r]:1},a=Object.keys(n).reduce((e,t)=>t===r?e:{...e,[t]:1},{}),o=t(e=>{let t={[e]:[0,0]},r=[e];for(;r.length>0;){let e=r.shift();if(e){i[e]=1,delete a[e];let o=n[e],[s,c]=t[e];Object.entries(o).forEach(([e,n])=>{i[n]||(t[n]=V([s,c],e),r.push(n))})}}return t},`BFS`),s=[o(r)];for(;Object.keys(a).length>0;)s.push(o(Object.keys(a)[0]));this.dataStructures={adjList:n,spatialMaps:s,groupAlignments:e}}return this.dataStructures}setElementForId(e,t){this.elements[e]=t}getElementById(e){return this.elements[e]}getConfig(){return v({...G,...u().architecture})}getConfigField(e){return this.getConfig()[e]}},q=t((e,t)=>{T(e,t),e.groups.map(e=>t.addGroup(e)),e.services.map(e=>t.addService({...e,type:`service`})),e.junctions.map(e=>t.addJunction({...e,type:`junction`})),e.edges.map(e=>t.addEdge(e))},`populateDb`),re={parser:{yy:void 0},parse:t(async e=>{let t=await w(`architecture`,e);i.debug(t);let n=re.parser?.yy;if(!(n instanceof K))throw Error(`parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);q(t,n)},`parse`)},J=t(e=>` + .edge { + stroke-width: ${e.archEdgeWidth}; + stroke: ${e.archEdgeColor}; + fill: none; + } + + .arrow { + fill: ${e.archEdgeArrowColor}; + } + + .node-bkg { + fill: none; + stroke: ${e.archGroupBorderColor}; + stroke-width: ${e.archGroupBorderWidth}; + stroke-dasharray: 8; + } + .node-icon-text { + display: flex; + align-items: center; + } + + .node-icon-text > div { + color: #fff; + margin: 1px; + height: fit-content; + text-align: center; + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + } +`,`getStyles`),Y=e(k(),1),X=t(e=>`${e}`,`wrapIcon`),Z={prefix:`mermaid-architecture`,height:80,width:80,icons:{database:{body:X(``)},server:{body:X(``)},disk:{body:X(``)},internet:{body:X(``)},cloud:{body:X(``)},unknown:C,blank:{body:X(``)}}},ie=t(async function(e,t,n,r){let i=n.getConfigField(`padding`),o=n.getConfigField(`iconSize`),s=o/2,c=o/6,l=c/2;await Promise.all(t.edges().map(async t=>{let{source:o,sourceDir:u,sourceArrow:d,sourceGroup:f,target:p,targetDir:m,targetArrow:h,targetGroup:g,label:_}=ne(t),{x:v,y:b}=t[0].sourceEndpoint(),{x,y:C}=t[0].midpoint(),{x:w,y:T}=t[0].targetEndpoint(),E=i+4;if(f&&(F(u)?v+=u===`L`?-E:E:b+=u===`T`?-E:E+18),g&&(F(m)?w+=m===`L`?-E:E:T+=m===`T`?-E:E+18),!f&&n.getNode(o)?.type===`junction`&&(F(u)?v+=u===`L`?s:-s:b+=u===`T`?s:-s),!g&&n.getNode(p)?.type===`junction`&&(F(m)?w+=m===`L`?s:-s:T+=m===`T`?s:-s),t[0]._private.rscratch){let t=e.insert(`g`);if(t.insert(`path`).attr(`d`,`M ${v},${b} L ${x},${C} L${w},${T} `).attr(`class`,`edge`).attr(`id`,`${r}-${y(o,p,{prefix:`L`})}`),d){let e=F(u)?M[u](v,c):v-l,n=I(u)?M[u](b,c):b-l;t.insert(`polygon`).attr(`points`,j[u](c)).attr(`transform`,`translate(${e},${n})`).attr(`class`,`arrow`)}if(h){let e=F(m)?M[m](w,c):w-l,n=I(m)?M[m](T,c):T-l;t.insert(`polygon`).attr(`points`,j[m](c)).attr(`transform`,`translate(${e},${n})`).attr(`class`,`arrow`)}if(_){let e=L(u,m)?`XY`:F(u)?`X`:`Y`,n=0;n=e===`X`?Math.abs(v-w):e===`Y`?Math.abs(b-T)/1.5:Math.abs(v-w)/2;let r=t.append(`g`);if(await S(r,_,{useHtmlLabels:!1,width:n,classes:`architecture-service-label`},a()),r.attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`),e===`X`)r.attr(`transform`,`translate(`+x+`, `+C+`)`);else if(e===`Y`)r.attr(`transform`,`translate(`+x+`, `+C+`) rotate(-90)`);else if(e===`XY`){let e=B(u,m);if(e&&R(e)){let t=r.node().getBoundingClientRect(),[n,i]=H(e);r.attr(`dominant-baseline`,`auto`).attr(`transform`,`rotate(${-1*n*i*45})`);let a=r.node().getBoundingClientRect();r.attr(`transform`,` + translate(${x}, ${C-t.height/2}) + translate(${n*a.width/2}, ${i*a.height/2}) + rotate(${-1*n*i*45}, 0, ${t.height/2}) + `)}}}}}))},`drawEdges`),Q=t(async function(e,t,n,r){let i=n.getConfigField(`padding`)*.75,o=n.getConfigField(`fontSize`),s=n.getConfigField(`iconSize`)/2;await Promise.all(t.nodes().map(async t=>{let c=W(t);if(c.type===`group`){let{h:l,w:u,x1:d,y1:f}=t.boundingBox(),p=e.append(`rect`);p.attr(`id`,`${r}-group-${c.id}`).attr(`x`,d+s).attr(`y`,f+s).attr(`width`,u).attr(`height`,l).attr(`class`,`node-bkg`);let m=e.append(`g`),h=d,g=f;if(c.icon){let e=m.append(`g`);e.html(`${await x(c.icon,{height:i,width:i,fallbackPrefix:Z.prefix})}`),e.attr(`transform`,`translate(`+(h+s+1)+`, `+(g+s+1)+`)`),h+=i,g+=o/2-1-2}if(c.label){let e=m.append(`g`);await S(e,c.label,{useHtmlLabels:!1,width:u,classes:`architecture-service-label`},a()),e.attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`start`).attr(`text-anchor`,`start`),e.attr(`transform`,`translate(`+(h+s+4)+`, `+(g+s+2)+`)`)}n.setElementForId(c.id,p)}}))},`drawGroups`),ae=t(async function(e,t,n,r){let i=a();for(let a of n){let n=t.append(`g`),o=e.getConfigField(`iconSize`);if(a.title){let e=n.append(`g`);await S(e,a.title,{useHtmlLabels:!1,width:o*1.5,classes:`architecture-service-label`},i),e.attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`),e.attr(`transform`,`translate(`+o/2+`, `+o+`)`)}let c=n.append(`g`);if(a.icon)c.html(`${await x(a.icon,{height:o,width:o,fallbackPrefix:Z.prefix})}`);else if(a.iconText){c.html(`${await x(`blank`,{height:o,width:o,fallbackPrefix:Z.prefix})}`);let e=c.append(`g`).append(`foreignObject`).attr(`width`,o).attr(`height`,o).append(`div`).attr(`class`,`node-icon-text`).attr(`style`,`height: ${o}px;`).append(`div`).html(s(a.iconText,i)),t=parseInt(window.getComputedStyle(e.node(),null).getPropertyValue(`font-size`).replace(/\D/g,``))??16;e.attr(`style`,`-webkit-line-clamp: ${Math.floor((o-2)/t)};`)}else c.append(`path`).attr(`class`,`node-bkg`).attr(`id`,`${r}-node-${a.id}`).attr(`d`,`M0,${o} V5 Q0,0 5,0 H${o-5} Q${o},0 ${o},5 V${o} Z`);n.attr(`id`,`${r}-service-${a.id}`).attr(`class`,`architecture-service`);let{width:l,height:u}=n.node().getBBox();a.width=l,a.height=u,e.setElementForId(a.id,n)}return 0},`drawServices`),oe=t(function(e,t,n,r){n.forEach(n=>{let i=t.append(`g`),a=e.getConfigField(`iconSize`);i.append(`g`).append(`rect`).attr(`id`,`${r}-node-${n.id}`).attr(`fill-opacity`,`0`).attr(`width`,a).attr(`height`,a),i.attr(`class`,`architecture-junction`);let{width:o,height:s}=i._groups[0][0].getBBox();i.width=o,i.height=s,e.setElementForId(n.id,i)})},`drawJunctions`);b([{name:Z.prefix,icons:Z}]),E.use(Y.default);function se(e,t,n){e.forEach(e=>{t.add({group:`nodes`,data:{type:`service`,id:e.id,icon:e.icon,label:e.title,parent:e.in,width:n.getConfigField(`iconSize`),height:n.getConfigField(`iconSize`)},classes:`node-service`})})}t(se,`addServices`);function ce(e,t,n){e.forEach(e=>{t.add({group:`nodes`,data:{type:`junction`,id:e.id,parent:e.in,width:n.getConfigField(`iconSize`),height:n.getConfigField(`iconSize`)},classes:`node-junction`})})}t(ce,`addJunctions`);function le(e,t){t.nodes().map(t=>{let n=W(t);n.type!==`group`&&(n.x=t.position().x,n.y=t.position().y,e.getElementById(n.id).attr(`transform`,`translate(`+(n.x||0)+`,`+(n.y||0)+`)`))})}t(le,`positionNodes`);function ue(e,t){e.forEach(e=>{t.add({group:`nodes`,data:{type:`group`,id:e.id,icon:e.icon,label:e.title,parent:e.in},classes:`node-group`})})}t(ue,`addGroups`);function de(e,t){e.forEach(e=>{let{lhsId:n,rhsId:r,lhsInto:i,lhsGroup:a,rhsInto:o,lhsDir:s,rhsDir:c,rhsGroup:l,title:u}=e,d=L(e.lhsDir,e.rhsDir)?`segments`:`straight`,f={id:`${n}-${r}`,label:u,source:n,sourceDir:s,sourceArrow:i,sourceGroup:a,sourceEndpoint:s===`L`?`0 50%`:s===`R`?`100% 50%`:s===`T`?`50% 0`:`50% 100%`,target:r,targetDir:c,targetArrow:o,targetGroup:l,targetEndpoint:c===`L`?`0 50%`:c===`R`?`100% 50%`:c===`T`?`50% 0`:`50% 100%`};t.add({group:`edges`,data:f,classes:d})})}t(de,`addEdges`);function fe(e,n,r){let i=t((e,t)=>Object.entries(e).reduce((e,[n,i])=>{let a=0,o=Object.entries(i);if(o.length===1)return e[n]=o[0][1],e;for(let i=0;i{let n={},r={};return Object.entries(t).forEach(([t,[i,a]])=>{let o=e.getNode(t)?.in??`default`;n[a]??={},n[a][o]??=[],n[a][o].push(t),r[i]??={},r[i][o]??=[],r[i][o].push(t)}),{horiz:Object.values(i(n,`horizontal`)).filter(e=>e.length>1),vert:Object.values(i(r,`vertical`)).filter(e=>e.length>1)}}).reduce(([e,t],{horiz:n,vert:r})=>[[...e,...n],[...t,...r]],[[],[]]);return{horizontal:a,vertical:o}}t(fe,`getAlignments`);function pe(e,n){let r=[],i=t(e=>`${e[0]},${e[1]}`,`posToStr`),a=t(e=>e.split(`,`).map(e=>parseInt(e)),`strToPos`);return e.forEach(e=>{let t=Object.fromEntries(Object.entries(e).map(([e,t])=>[i(t),e])),o=[i([0,0])],s={},c={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;o.length>0;){let e=o.shift();if(e){s[e]=1;let l=t[e];if(l){let u=a(e);Object.entries(c).forEach(([e,a])=>{let c=i([u[0]+a[0],u[1]+a[1]]),d=t[c];d&&!s[c]&&(o.push(c),r.push({[A[e]]:d,[A[N(e)]]:l,gap:1.5*n.getConfigField(`iconSize`)}))})}}}}),r}t(pe,`getRelativeConstraints`);function me(e,n,a,o,s,{spatialMaps:c,groupAlignments:l}){return new Promise(u=>{let d=r(`body`).append(`div`).attr(`id`,`cy`).attr(`style`,`display:none`),f=E({container:document.getElementById(`cy`),style:[{selector:`edge`,style:{"curve-style":`straight`,"source-endpoint":`data(sourceEndpoint)`,"target-endpoint":`data(targetEndpoint)`}},{selector:`edge[label]`,style:{label:`data(label)`}},{selector:`edge.segments`,style:{"curve-style":`segments`,"segment-weights":`0`,"segment-distances":[.5],"edge-distances":`endpoints`,"source-endpoint":`data(sourceEndpoint)`,"target-endpoint":`data(targetEndpoint)`}},{selector:`node`,style:{"compound-sizing-wrt-labels":`include`}},{selector:`node[label]`,style:{"text-valign":`bottom`,"text-halign":`center`,"font-size":`${s.getConfigField(`fontSize`)}px`}},{selector:`.node-service`,style:{label:`data(label)`,width:`data(width)`,height:`data(height)`}},{selector:`.node-junction`,style:{width:`data(width)`,height:`data(height)`}},{selector:`.node-group`,style:{padding:`${s.getConfigField(`padding`)}px`}}],layout:{name:`grid`,boundingBox:{x1:0,x2:100,y1:0,y2:100}}});d.remove(),ue(a,f),se(e,f,s),ce(n,f,s),de(o,f);let p=fe(s,c,l),m=pe(c,s),h=s.getConfigField(`iconSize`),g=s.getConfigField(`idealEdgeLengthMultiplier`)*h,_=.5*h,v=s.getConfigField(`edgeElasticity`),y=f.layout({name:`fcose`,quality:`proof`,randomize:s.getConfigField(`randomize`),nodeSeparation:s.getConfigField(`nodeSeparation`),numIter:s.getConfigField(`numIter`),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(e){let[t,n]=e.connectedNodes(),{parent:r}=W(t),{parent:i}=W(n);return r===i?g:_},edgeElasticity(e){let[t,n]=e.connectedNodes(),{parent:r}=W(t),{parent:i}=W(n);return r===i?v:.001},alignmentConstraint:p,relativePlacementConstraint:m});y.one(`layoutstop`,()=>{function e(e,t,n,r){let i,a,{x:o,y:s}=e,{x:c,y:l}=t;a=(r-s+(o-n)*(s-l)/(o-c))/Math.sqrt(1+((s-l)/(o-c))**2),i=Math.sqrt((r-s)**2+(n-o)**2-a**2);let u=Math.sqrt((c-o)**2+(l-s)**2);i/=u;let d=(c-o)*(r-s)-(l-s)*(n-o);switch(!0){case d>=0:d=1;break;case d<0:d=-1;break}let f=(c-o)*(n-o)+(l-s)*(r-s);switch(!0){case f>=0:f=1;break;case f<0:f=-1;break}return a=Math.abs(a)*d,i*=f,{distances:a,weights:i}}t(e,`getSegmentWeights`),f.startBatch();for(let t of Object.values(f.edges()))if(t.data?.()){let{x:n,y:r}=t.source().position(),{x:i,y:a}=t.target().position();if(n!==i&&r!==a){let n=t.sourceEndpoint(),r=t.targetEndpoint(),{sourceDir:i}=ne(t),[a,o]=I(i)?[n.x,r.y]:[r.x,n.y],{weights:s,distances:c}=e(n,r,a,o);t.style(`segment-distances`,c),t.style(`segment-weights`,s)}}f.endBatch(),y.run()}),y.run(),f.ready(e=>{i.info(`Ready`,e),u(f)})})}t(me,`layoutArchitecture`);var he={parser:re,get db(){return new K},renderer:{draw:t(async(e,t,n,r)=>{let i=r.db;i.setDiagramId(t);let a=i.getServices(),o=i.getJunctions(),s=i.getGroups(),c=i.getEdges(),l=i.getDataStructures(),u=_(t),d=u.append(`g`);d.attr(`class`,`architecture-edges`);let f=u.append(`g`);f.attr(`class`,`architecture-services`);let m=u.append(`g`);m.attr(`class`,`architecture-groups`),await ae(i,f,a,t),oe(i,f,o,t);let h=await me(a,o,s,c,i,l);await ie(d,h,i,t),await Q(m,h,i,t),le(i,h),p(void 0,u,i.getConfigField(`padding`),i.getConfigField(`useMaxWidth`))},`draw`)},styles:J};export{he as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/blockDiagram-DM4EUEQ4-DWhoBwG_.js b/docs/dist/assets/blockDiagram-DM4EUEQ4-DWhoBwG_.js new file mode 100644 index 00000000..4c73ed69 --- /dev/null +++ b/docs/dist/assets/blockDiagram-DM4EUEQ4-DWhoBwG_.js @@ -0,0 +1,132 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{I as t,T as n,c as r,x as i}from"./chunk-V7P66DNM-D246Sefn.js";import{A as a,C as o,D as s,G as c,H as l,S as u,a as d,c as f,l as p,o as m}from"./chunk-Q52JI7PB-BeSPinqD.js";import"./chunk-7TFACZ55-BO7C1qvL.js";import{a as h,o as g,u as _,v}from"./chunk-BSZA5ISF-LqNHBHyp.js";import{n as y,t as b}from"./chunk-SZ5Y56Q4-Bki2Aicm.js";import{n as x}from"./chunk-YSJUE5HW-eH4JtoEG.js";import{n as S,t as C}from"./chunk-RTI7CJYH-CrTK6TD7.js";import{t as w}from"./chunk-XAKTCX7R-ChjAedyW.js";import{t as T}from"./chunk-RTBOCTTP-BZPyT8j-.js";var E=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,15],r=[1,7],i=[1,13],a=[1,14],o=[1,19],s=[1,16],c=[1,17],l=[1,18],u=[8,30],d=[8,10,21,28,29,30,31,39,43,46],f=[1,23],p=[1,24],m=[8,10,15,16,21,28,29,30,31,39,43,46],h=[8,10,15,16,21,27,28,29,30,31,39,43,46],g=[1,49],_={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACELINE`,5:`NL`,7:`SPACE`,8:`EOF`,10:`BLOCK_DIAGRAM_KEY`,15:`LINK`,16:`START_LINK`,17:`LINK_LABEL`,18:`STR`,21:`SPACE_BLOCK`,27:`SIZE`,28:`COLUMNS`,29:`id-block`,30:`end`,31:`NODE_ID`,34:`DIR`,35:`NODE_DSTART`,36:`NODE_DEND`,37:`BLOCK_ARROW_START`,38:`BLOCK_ARROW_END`,39:`classDef`,40:`CLASSDEF_ID`,41:`CLASSDEF_STYLEOPTS`,42:`DEFAULT`,43:`class`,44:`CLASSENTITY_IDS`,45:`STYLECLASS`,46:`style`,47:`STYLE_ENTITY_IDS`,48:`STYLE_DEFINITION_DATA`},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.getLogger().debug(`Rule: separator (NL) `);break;case 5:r.getLogger().debug(`Rule: separator (Space) `);break;case 6:r.getLogger().debug(`Rule: separator (EOF) `);break;case 7:r.getLogger().debug(`Rule: hierarchy: `,a[s-1]),r.setHierarchy(a[s-1]);break;case 8:r.getLogger().debug(`Stop NL `);break;case 9:r.getLogger().debug(`Stop EOF `);break;case 10:r.getLogger().debug(`Stop NL2 `);break;case 11:r.getLogger().debug(`Stop EOF2 `);break;case 12:r.getLogger().debug(`Rule: statement: `,a[s]),typeof a[s].length==`number`?this.$=a[s]:this.$=[a[s]];break;case 13:r.getLogger().debug(`Rule: statement #2: `,a[s-1]),this.$=[a[s-1]].concat(a[s]);break;case 14:r.getLogger().debug(`Rule: link: `,a[s],e),this.$={edgeTypeStr:a[s],label:``};break;case 15:r.getLogger().debug(`Rule: LABEL link: `,a[s-3],a[s-1],a[s]),this.$={edgeTypeStr:a[s],label:a[s-1]};break;case 18:let t=parseInt(a[s]),n=r.generateId();this.$={id:n,type:`space`,label:``,width:t,children:[]};break;case 23:r.getLogger().debug(`Rule: (nodeStatement link node) `,a[s-2],a[s-1],a[s],` typestr: `,a[s-1].edgeTypeStr);let i=r.edgeStrToEdgeData(a[s-1].edgeTypeStr),o=r.edgeStrToEdgeStartData(a[s-1].edgeTypeStr),c=r.edgeStrToThickness(a[s-1].edgeTypeStr),l=r.edgeStrToPattern(a[s-1].edgeTypeStr);this.$=[{id:a[s-2].id,label:a[s-2].label,type:a[s-2].type,directions:a[s-2].directions},{id:a[s-2].id+`-`+a[s].id,start:a[s-2].id,end:a[s].id,label:a[s-1].label,type:`edge`,thickness:c,pattern:l,directions:a[s].directions,arrowTypeEnd:i,arrowTypeStart:o},{id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions}];break;case 24:r.getLogger().debug(`Rule: nodeStatement (abc88 node size) `,a[s-1],a[s]),this.$={id:a[s-1].id,label:a[s-1].label,type:r.typeStr2Type(a[s-1].typeStr),directions:a[s-1].directions,widthInColumns:parseInt(a[s],10)};break;case 25:r.getLogger().debug(`Rule: nodeStatement (node) `,a[s]),this.$={id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions,widthInColumns:1};break;case 26:r.getLogger().debug(`APA123`,this?this:`na`),r.getLogger().debug(`COLUMNS: `,a[s]),this.$={type:`column-setting`,columns:a[s]===`auto`?-1:parseInt(a[s])};break;case 27:r.getLogger().debug(`Rule: id-block statement : `,a[s-2],a[s-1]),r.generateId(),this.$={...a[s-2],type:`composite`,children:a[s-1]};break;case 28:r.getLogger().debug(`Rule: blockStatement : `,a[s-2],a[s-1],a[s]);let u=r.generateId();this.$={id:u,type:`composite`,label:``,children:a[s-1]};break;case 29:r.getLogger().debug(`Rule: node (NODE_ID separator): `,a[s]),this.$={id:a[s]};break;case 30:r.getLogger().debug(`Rule: node (NODE_ID nodeShapeNLabel separator): `,a[s-1],a[s]),this.$={id:a[s-1],label:a[s].label,typeStr:a[s].typeStr,directions:a[s].directions};break;case 31:r.getLogger().debug(`Rule: dirList: `,a[s]),this.$=[a[s]];break;case 32:r.getLogger().debug(`Rule: dirList: `,a[s-1],a[s]),this.$=[a[s-1]].concat(a[s]);break;case 33:r.getLogger().debug(`Rule: nodeShapeNLabel: `,a[s-2],a[s-1],a[s]),this.$={typeStr:a[s-2]+a[s],label:a[s-1]};break;case 34:r.getLogger().debug(`Rule: BLOCK_ARROW nodeShapeNLabel: `,a[s-3],a[s-2],` #3:`,a[s-1],a[s]),this.$={typeStr:a[s-3]+a[s],label:a[s-2],directions:a[s-1]};break;case 35:case 36:this.$={type:`classDef`,id:a[s-1].trim(),css:a[s].trim()};break;case 37:this.$={type:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:this.$={type:`applyStyles`,id:a[s-1].trim(),stylesStr:a[s].trim()};break}},`anonymous`),table:[{9:1,10:[1,2]},{1:[3]},{10:n,11:3,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:a,31:o,39:s,43:c,46:l},{8:[1,20]},t(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:n,21:r,28:i,29:a,31:o,39:s,43:c,46:l}),t(d,[2,16],{14:22,15:f,16:p}),t(d,[2,17]),t(d,[2,18]),t(d,[2,19]),t(d,[2,20]),t(d,[2,21]),t(d,[2,22]),t(m,[2,25],{27:[1,25]}),t(d,[2,26]),{19:26,26:12,31:o},{10:n,11:27,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:a,31:o,39:s,43:c,46:l},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},t(h,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},t(u,[2,13]),{26:35,31:o},{31:[2,14]},{17:[1,36]},t(m,[2,24]),{10:n,11:37,13:4,14:22,15:f,16:p,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:a,31:o,39:s,43:c,46:l},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},t(h,[2,30]),{18:[1,43]},{18:[1,44]},t(m,[2,23]),{18:[1,45]},{30:[1,46]},t(d,[2,28]),t(d,[2,35]),t(d,[2,36]),t(d,[2,37]),t(d,[2,38]),{36:[1,47]},{33:48,34:g},{15:[1,50]},t(d,[2,27]),t(h,[2,33]),{38:[1,51]},{33:52,34:g,38:[2,31]},{31:[2,15]},t(h,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};_.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:e(function(e,t,n,r){switch(n){case 0:return e.getLogger().debug(`Found block-beta`),10;case 1:return e.getLogger().debug(`Found id-block`),29;case 2:return e.getLogger().debug(`Found block`),10;case 3:e.getLogger().debug(`.`,t.yytext);break;case 4:e.getLogger().debug(`_`,t.yytext);break;case 5:return 5;case 6:return t.yytext=-1,28;case 7:return t.yytext=t.yytext.replace(/columns\s+/,``),e.getLogger().debug(`COLUMNS (LEX)`,t.yytext),28;case 8:this.pushState(`md_string`);break;case 9:return`MD_STR`;case 10:this.popState();break;case 11:this.pushState(`string`);break;case 12:e.getLogger().debug(`LEX: POPPING STR:`,t.yytext),this.popState();break;case 13:return e.getLogger().debug(`LEX: STR end:`,t.yytext),`STR`;case 14:return t.yytext=t.yytext.replace(/space\:/,``),e.getLogger().debug(`SPACE NUM (LEX)`,t.yytext),21;case 15:return t.yytext=`1`,e.getLogger().debug(`COLUMNS (LEX)`,t.yytext),21;case 16:return 42;case 17:return`LINKSTYLE`;case 18:return`INTERPOLATE`;case 19:return this.pushState(`CLASSDEF`),39;case 20:return this.popState(),this.pushState(`CLASSDEFID`),`DEFAULT_CLASSDEF_ID`;case 21:return this.popState(),this.pushState(`CLASSDEFID`),40;case 22:return this.popState(),41;case 23:return this.pushState(`CLASS`),43;case 24:return this.popState(),this.pushState(`CLASS_STYLE`),44;case 25:return this.popState(),45;case 26:return this.pushState(`STYLE_STMNT`),46;case 27:return this.popState(),this.pushState(`STYLE_DEFINITION`),47;case 28:return this.popState(),48;case 29:return this.pushState(`acc_title`),`acc_title`;case 30:return this.popState(),`acc_title_value`;case 31:return this.pushState(`acc_descr`),`acc_descr`;case 32:return this.popState(),`acc_descr_value`;case 33:this.pushState(`acc_descr_multiline`);break;case 34:this.popState();break;case 35:return`acc_descr_multiline_value`;case 36:return 30;case 37:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 38:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 39:return this.popState(),e.getLogger().debug(`Lex: ))`),`NODE_DEND`;case 40:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 41:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 42:return this.popState(),e.getLogger().debug(`Lex: (-`),`NODE_DEND`;case 43:return this.popState(),e.getLogger().debug(`Lex: -)`),`NODE_DEND`;case 44:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 45:return this.popState(),e.getLogger().debug(`Lex: ]]`),`NODE_DEND`;case 46:return this.popState(),e.getLogger().debug(`Lex: (`),`NODE_DEND`;case 47:return this.popState(),e.getLogger().debug(`Lex: ])`),`NODE_DEND`;case 48:return this.popState(),e.getLogger().debug(`Lex: /]`),`NODE_DEND`;case 49:return this.popState(),e.getLogger().debug(`Lex: /]`),`NODE_DEND`;case 50:return this.popState(),e.getLogger().debug(`Lex: )]`),`NODE_DEND`;case 51:return this.popState(),e.getLogger().debug(`Lex: )`),`NODE_DEND`;case 52:return this.popState(),e.getLogger().debug(`Lex: ]>`),`NODE_DEND`;case 53:return this.popState(),e.getLogger().debug(`Lex: ]`),`NODE_DEND`;case 54:return e.getLogger().debug(`Lexa: -)`),this.pushState(`NODE`),35;case 55:return e.getLogger().debug(`Lexa: (-`),this.pushState(`NODE`),35;case 56:return e.getLogger().debug(`Lexa: ))`),this.pushState(`NODE`),35;case 57:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 58:return e.getLogger().debug(`Lex: (((`),this.pushState(`NODE`),35;case 59:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 60:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 61:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 62:return e.getLogger().debug(`Lexc: >`),this.pushState(`NODE`),35;case 63:return e.getLogger().debug(`Lexa: ([`),this.pushState(`NODE`),35;case 64:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 65:return this.pushState(`NODE`),35;case 66:return this.pushState(`NODE`),35;case 67:return this.pushState(`NODE`),35;case 68:return this.pushState(`NODE`),35;case 69:return this.pushState(`NODE`),35;case 70:return this.pushState(`NODE`),35;case 71:return this.pushState(`NODE`),35;case 72:return e.getLogger().debug(`Lexa: [`),this.pushState(`NODE`),35;case 73:return this.pushState(`BLOCK_ARROW`),e.getLogger().debug(`LEX ARR START`),37;case 74:return e.getLogger().debug(`Lex: NODE_ID`,t.yytext),31;case 75:return e.getLogger().debug(`Lex: EOF`,t.yytext),8;case 76:this.pushState(`md_string`);break;case 77:this.pushState(`md_string`);break;case 78:return`NODE_DESCR`;case 79:this.popState();break;case 80:e.getLogger().debug(`Lex: Starting string`),this.pushState(`string`);break;case 81:e.getLogger().debug(`LEX ARR: Starting string`),this.pushState(`string`);break;case 82:return e.getLogger().debug(`LEX: NODE_DESCR:`,t.yytext),`NODE_DESCR`;case 83:e.getLogger().debug(`LEX POPPING`),this.popState();break;case 84:e.getLogger().debug(`Lex: =>BAE`),this.pushState(`ARROW_DIR`);break;case 85:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (right): dir:`,t.yytext),`DIR`;case 86:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (left):`,t.yytext),`DIR`;case 87:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (x):`,t.yytext),`DIR`;case 88:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (y):`,t.yytext),`DIR`;case 89:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (up):`,t.yytext),`DIR`;case 90:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (down):`,t.yytext),`DIR`;case 91:return t.yytext=`]>`,e.getLogger().debug(`Lex (ARROW_DIR end):`,t.yytext),this.popState(),this.popState(),`BLOCK_ARROW_END`;case 92:return e.getLogger().debug(`Lex: LINK`,`#`+t.yytext+`#`),15;case 93:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 94:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 95:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 96:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 97:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 98:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 99:this.pushState(`md_string`);break;case 100:return e.getLogger().debug(`Lex: Starting string`),this.pushState(`string`),`LINK_LABEL`;case 101:return this.popState(),e.getLogger().debug(`Lex: LINK`,`#`+t.yytext+`#`),15;case 102:return this.popState(),e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 103:return this.popState(),e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 104:return e.getLogger().debug(`Lex: COLON`,t.yytext),t.yytext=t.yytext.slice(1),27}},`anonymous`),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}}})();function v(){this.yy={}}return e(v,`Parser`),v.prototype=_,_.Parser=v,new v})();E.parser=E;var D=E,O=new Map,k=[],A=new Map,j=`color`,M=`fill`,ee=`bgFill`,te=`,`,ne=o(),N=new Map,re=``,ie=e(e=>f.sanitizeText(e,ne),`sanitizeText`),ae=e(function(e,t=``){let n=N.get(e);n||(n={id:e,styles:[],textStyles:[]},N.set(e,n)),t?.split(te).forEach(e=>{let t=e.replace(/([^;]*);/,`$1`).trim();if(RegExp(j).exec(e)){let e=t.replace(M,ee).replace(j,M);n.textStyles.push(e)}n.styles.push(t)})},`addStyleClass`),oe=e(function(e,t=``){let n=O.get(e);t!=null&&(n.styles=t.split(te))},`addStyle2Node`),se=e(function(e,t){e.split(`,`).forEach(function(e){let n=O.get(e);if(n===void 0){let t=e.trim();n={id:t,type:`na`,children:[]},O.set(t,n)}n.classes||=[],n.classes.push(t)})},`setCssClass`),ce=e((e,t)=>{let r=e.flat(),i=[],a=r.find(e=>e?.type===`column-setting`)?.columns??-1;for(let e of r){if(typeof a==`number`&&a>0&&e.type!==`column-setting`&&typeof e.widthInColumns==`number`&&e.widthInColumns>a&&n.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${a}`),e.label&&=ie(e.label),e.type===`classDef`){ae(e.id,e.css);continue}if(e.type===`applyClass`){se(e.id,e?.styleClass??``);continue}if(e.type===`applyStyles`){e?.stylesStr&&oe(e.id,e?.stylesStr);continue}if(e.type===`column-setting`)t.columns=e.columns??-1;else if(e.type===`edge`){let t=(A.get(e.id)??0)+1;A.set(e.id,t),e.id=t+`-`+e.id,k.push(e)}else{e.label||(e.type===`composite`?e.label=``:e.label=e.id);let t=O.get(e.id);if(t===void 0?O.set(e.id,e):(e.type!==`na`&&(t.type=e.type),e.label!==e.id&&(t.label=e.label)),e.children&&ce(e.children,e),e.type===`space`){let t=e.width??1;for(let n=0;n{n.debug(`Clear called`),m(),F={id:`root`,type:`composite`,children:[],columns:-1},O=new Map([[`root`,F]]),P=[],N=new Map,k=[],A=new Map,re=``},`clear`);function ue(e){switch(n.debug(`typeStr2Type`,e),e){case`[]`:return`square`;case`()`:return n.debug(`we have a round`),`round`;case`(())`:return`circle`;case`>]`:return`rect_left_inv_arrow`;case`{}`:return`diamond`;case`{{}}`:return`hexagon`;case`([])`:return`stadium`;case`[[]]`:return`subroutine`;case`[()]`:return`cylinder`;case`((()))`:return`doublecircle`;case`[//]`:return`lean_right`;case`[\\\\]`:return`lean_left`;case`[/\\]`:return`trapezoid`;case`[\\/]`:return`inv_trapezoid`;case`<[]>`:return`block_arrow`;default:return`na`}}e(ue,`typeStr2Type`);function de(e){switch(n.debug(`typeStr2Type`,e),e){case`==`:return`thick`;default:return`normal`}}e(de,`edgeTypeStr2Type`);function fe(e){switch(e.trim().slice(-1)){case`x`:return`arrow_cross`;case`o`:return`arrow_circle`;case`>`:return`arrow_point`;default:return``}}e(fe,`edgeStrToEdgeData`);function pe(e){switch(e.trim().charAt(0)){case`x`:return`arrow_cross`;case`o`:return`arrow_circle`;case`<`:return`arrow_point`;default:return`arrow_open`}}e(pe,`edgeStrToEdgeStartData`);function me(e){return e.includes(`==`)?`thick`:`normal`}e(me,`edgeStrToThickness`);function he(e){return e.includes(`.-`)?`dotted`:`solid`}e(he,`edgeStrToPattern`);var ge=0,_e={getConfig:e(()=>u().block,`getConfig`),typeStr2Type:ue,edgeTypeStr2Type:de,edgeStrToEdgeData:fe,edgeStrToEdgeStartData:pe,edgeStrToThickness:me,edgeStrToPattern:he,getLogger:e(()=>n,`getLogger`),getBlocksFlat:e(()=>[...O.values()],`getBlocksFlat`),getBlocks:e(()=>P||[],`getBlocks`),getEdges:e(()=>k,`getEdges`),setHierarchy:e(e=>{F.children=e,ce(e,F),P=F.children},`setHierarchy`),getBlock:e(e=>O.get(e),`getBlock`),setBlock:e(e=>{O.set(e.id,e)},`setBlock`),getColumns:e(e=>{let t=O.get(e);return t?t.columns?t.columns:t.children?t.children.length:-1:-1},`getColumns`),getClasses:e(function(){return N},`getClasses`),clear:le,generateId:e(()=>(ge++,`id-`+Math.random().toString(36).substr(2,12)+`-`+ge),`generateId`),setDiagramId:e(e=>{re=e},`setDiagramId`),getDiagramId:e(()=>re,`getDiagramId`)},I=e((e,t)=>{let n=d;return l(n(e,`r`),n(e,`g`),n(e,`b`),t)},`fade`),ve=e(e=>`.label { + font-family: ${e.fontFamily}; + color: ${e.nodeTextColor||e.textColor}; + } + .cluster-label text { + fill: ${e.titleColor}; + } + .cluster-label span,p { + color: ${e.titleColor}; + } + + + + .label text,span,p { + fill: ${e.nodeTextColor||e.textColor}; + color: ${e.nodeTextColor||e.textColor}; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; + stroke-width: 1px; + } + .flowchart-label text { + text-anchor: middle; + } + // .flowchart-label .text-outer-tspan { + // text-anchor: middle; + // } + // .flowchart-label .text-inner-tspan { + // text-anchor: start; + // } + + .node .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + .arrowheadPath { + fill: ${e.arrowheadColor}; + } + + .edgePath .path { + stroke: ${e.lineColor}; + stroke-width: 2.0px; + } + + .flowchart-link { + stroke: ${e.lineColor}; + fill: none; + } + + .edgeLabel { + background-color: ${e.edgeLabelBackground}; + /* + * This is for backward compatibility with existing code that didn't + * add a \`

\` around edge labels. + * + * TODO: We should probably remove this in a future release. + */ + p { + margin: 0; + padding: 0; + display: inline; + } + rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; + } + + /* For html labels only */ + .labelBkg { + background-color: ${e.edgeLabelBackground}; + } + + .node .cluster { + // fill: ${I(e.mainBkg,.5)}; + fill: ${I(e.clusterBkg,.5)}; + stroke: ${I(e.clusterBorder,.2)}; + box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px; + stroke-width: 1px; + } + + .cluster text { + fill: ${e.titleColor}; + } + + .cluster span,p { + color: ${e.titleColor}; + } + /* .cluster div { + color: ${e.titleColor}; + } */ + + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: ${e.fontFamily}; + font-size: 12px; + background: ${e.tertiaryColor}; + border: 1px solid ${e.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .flowchartTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.textColor}; + } + ${T()} +`,`getStyles`),ye=e((e,t,n,r)=>{t.forEach(t=>{be[t](e,n,r)})},`insertMarkers`),be={extension:e((e,t,r)=>{n.trace(`Making markers for `,r),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+t+`-extensionStart`).attr(`class`,`marker extension `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,7 L18,13 V 1 Z`),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+t+`-extensionEnd`).attr(`class`,`marker extension `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 V 13 L18,7 Z`)},`extension`),composition:e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart`).attr(`class`,`marker composition `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd`).attr(`class`,`marker composition `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`composition`),aggregation:e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart`).attr(`class`,`marker aggregation `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`aggregation`),dependency:e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart`).attr(`class`,`marker dependency `+t).attr(`refX`,6).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd`).attr(`class`,`marker dependency `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`)},`dependency`),lollipop:e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`circle`).attr(`stroke`,`black`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`circle`).attr(`stroke`,`black`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6)},`lollipop`),point:e((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,6).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,4.5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 5 L 10 10 L 10 0 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`)},`point`),circle:e((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,11).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-1).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`)},`circle`),cross:e((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,12).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,-1).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`)},`cross`),barb:e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`strokeWidth`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`barb`)},xe=ye,L=o()?.block?.padding??8;function R(e,t){if(e===0||!Number.isInteger(e))throw Error(`Columns must be an integer !== 0.`);if(t<0||!Number.isInteger(t))throw Error(`Position must be a non-negative integer.`+t);return e<0?{px:t,py:0}:e===1?{px:0,py:t}:{px:t%e,py:Math.floor(t/e)}}e(R,`calculateBlockPosition`);var Se=e(e=>{let t=0,r=0;for(let i of e.children){let{width:e,height:a,x:o,y:s}=i.size??{width:0,height:0,x:0,y:0};if(n.debug(`getMaxChildSize abc95 child:`,i.id,`width:`,e,`height:`,a,`x:`,o,`y:`,s,i.type),i.type===`space`)continue;let c=e/(i.widthInColumns??1);c>t&&(t=c),a>r&&(r=a)}return{width:t,height:r}},`getMaxChildSize`);function z(e,t,r=0,i=0){n.debug(`setBlockSizes abc95 (start)`,e.id,e?.size?.x,`block width =`,e?.size,`siblingWidth`,r),e?.size?.width||(e.size={width:r,height:i,x:0,y:0});let a=0,o=0;if(e.children?.length>0){for(let n of e.children)z(n,t);let s=Se(e);a=s.width,o=s.height,n.debug(`setBlockSizes abc95 maxWidth of`,e.id,`:s children is `,a,o);for(let t of e.children)t.size&&(n.debug(`abc95 Setting size of children of ${e.id} id=${t.id} ${a} ${o} ${JSON.stringify(t.size)}`),t.size.width=a*(t.widthInColumns??1)+L*((t.widthInColumns??1)-1),t.size.height=o,t.size.x=0,t.size.y=0,n.debug(`abc95 updating size of ${e.id} children child:${t.id} maxWidth:${a} maxHeight:${o}`));for(let n of e.children)z(n,t,a,o);let c=e.columns??-1,l=0;for(let t of e.children)l+=t.widthInColumns??1;let u=e.children.length;c>0&&c0?Math.min(e.children.length,c):e.children.length;if(t>0){let r=(f-t*L-L)/t;n.debug(`abc95 (growing to fit) width`,e.id,f,e.size?.width,r);for(let t of e.children)t.size&&(t.size.width=r)}}e.size={width:f,height:p,x:0,y:0}}n.debug(`setBlockSizes abc94 (done)`,e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}e(z,`setBlockSizes`);function B(e,t){n.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);let r=e.columns??-1;if(n.debug(`layoutBlocks columns abc95`,e.id,`=>`,r,e),e.children&&e.children.length>0){let i=e?.children[0]?.size?.width??0,a=e.children.length*i+(e.children.length-1)*L;n.debug(`widthOfChildren 88`,a,`posX`);let o=new Map;{let t=0;for(let n of e.children){if(!n.size)continue;let{py:e}=R(r,t),i=o.get(e)??0;n.size.height>i&&o.set(e,n.size.height);let a=n?.widthInColumns??1;r>0&&(a=Math.min(a,r-t%r)),t+=a}}let s=new Map;{let e=0,t=[...o.keys()].sort((e,t)=>e-t);for(let n of t)s.set(n,e),e+=(o.get(n)??0)+L}let c=0;n.debug(`abc91 block?.size?.x`,e.id,e?.size?.x);let l=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-L,u=0;for(let i of e.children){let a=e;if(!i.size)continue;let{width:d,height:f}=i.size,{px:p,py:m}=R(r,c);if(m!=u&&(u=m,l=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-L,n.debug(`New row in layout for block`,e.id,` and child `,i.id,u)),n.debug(`abc89 layout blocks (child) id: ${i.id} Pos: ${c} (px, py) ${p},${m} (${a?.size?.x},${a?.size?.y}) parent: ${a.id} width: ${d}${L}`),a.size){let e=d/2;i.size.x=l+L+e,n.debug(`abc91 layout blocks (calc) px, pyid:${i.id} startingPos=X${l} new startingPosX${i.size.x} ${e} padding=${L} width=${d} halfWidth=${e} => x:${i.size.x} y:${i.size.y} ${i.widthInColumns} (width * (child?.w || 1)) / 2 ${d*(i?.widthInColumns??1)/2}`),l=i.size.x+e;let t=s.get(m)??0,r=o.get(m)??f;i.size.y=a.size.y-a.size.height/2+t+r/2+L,n.debug(`abc88 layout blocks (calc) px, pyid:${i.id}startingPosX${l}${L}${e}=>x:${i.size.x}y:${i.size.y}${i.widthInColumns}(width * (child?.w || 1)) / 2${d*(i?.widthInColumns??1)/2}`)}i.children&&B(i,t);let h=i?.widthInColumns??1;r>0&&(h=Math.min(h,r-c%r)),c+=h,n.debug(`abc88 columnsPos`,i,c)}}n.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}e(B,`layoutBlocks`);function Ce(e,{minX:t,minY:n,maxX:r,maxY:i}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!==`root`){let{x:a,y:o,width:s,height:c}=e.size;a-s/2r&&(r=a+s/2),o+c/2>i&&(i=o+c/2)}if(e.children)for(let a of e.children)({minX:t,minY:n,maxX:r,maxY:i}=Ce(a,{minX:t,minY:n,maxX:r,maxY:i}));return{minX:t,minY:n,maxX:r,maxY:i}}e(Ce,`findBounds`);function we(e){let t=e.getBlock(`root`);if(!t)return;z(t,e,0,0),B(t,e),n.debug(`getBlocks`,JSON.stringify(t,null,2));let{minX:r,minY:i,maxX:a,maxY:o}=Ce(t),s=o-i;return{x:r,y:i,width:a-r,height:s}}e(we,`layout`);var V=e(async(e,t,n,r=!1,i=!1)=>{let a=t||``;typeof a==`object`&&(a=a[0]);let c=o(),l=s(c);return await x(e,a,{style:n,isTitle:r,useHtmlLabels:l,markdown:!1,isNode:i,width:1/0},c)},`createLabel`),Te=e((e,t,n,r,i)=>{t.arrowTypeStart&&De(e,`start`,t.arrowTypeStart,n,r,i),t.arrowTypeEnd&&De(e,`end`,t.arrowTypeEnd,n,r,i)},`addEdgeMarkers`),Ee={arrow_cross:`cross`,arrow_point:`point`,arrow_barb:`barb`,arrow_circle:`circle`,aggregation:`aggregation`,extension:`extension`,composition:`composition`,dependency:`dependency`,lollipop:`lollipop`},De=e((e,t,r,i,a,o)=>{let s=Ee[r];if(!s){n.warn(`Unknown arrow type: ${r}`);return}let c=t===`start`?`Start`:`End`;e.attr(`marker-${t}`,`url(${i}#${a}_${o}-${s}${c})`)},`addEdgeMarker`),H={},U={},Oe=e(async(e,n)=>{let r=o(),i=s(r),a=e.insert(`g`).attr(`class`,`edgeLabel`),c=a.insert(`g`).attr(`class`,`label`),l=n.labelType===`markdown`,u=await x(e,n.label,{style:n.labelStyle,useHtmlLabels:i,addSvgBackground:l,isNode:!1,markdown:l,width:l?void 0:1/0},r);c.node().appendChild(u);let d=u.getBBox(),f=d;if(i){let e=u.children[0],n=t(u);d=e.getBoundingClientRect(),f=d,n.attr(`width`,d.width),n.attr(`height`,d.height)}else{let e=t(u).select(`text`).node();e&&typeof e.getBBox==`function`&&(f=e.getBBox())}c.attr(`transform`,C(f,i)),H[n.id]=a,n.width=d.width,n.height=d.height;let p;if(n.startLabelLeft){let r=e.insert(`g`).attr(`class`,`edgeTerminals`),a=r.insert(`g`).attr(`class`,`inner`),o=await V(a,n.startLabelLeft,n.labelStyle);p=o;let s=o.getBBox();if(i){let e=o.children[0],n=t(o);s=e.getBoundingClientRect(),n.attr(`width`,s.width),n.attr(`height`,s.height)}a.attr(`transform`,C(s,i)),U[n.id]||(U[n.id]={}),U[n.id].startLeft=r,W(p,n.startLabelLeft)}if(n.startLabelRight){let r=e.insert(`g`).attr(`class`,`edgeTerminals`),a=r.insert(`g`).attr(`class`,`inner`),o=await V(a,n.startLabelRight,n.labelStyle);p=o;let s=o.getBBox();if(i){let e=o.children[0],n=t(o);s=e.getBoundingClientRect(),n.attr(`width`,s.width),n.attr(`height`,s.height)}a.attr(`transform`,C(s,i)),U[n.id]||(U[n.id]={}),U[n.id].startRight=r,W(p,n.startLabelRight)}if(n.endLabelLeft){let r=e.insert(`g`).attr(`class`,`edgeTerminals`),a=r.insert(`g`).attr(`class`,`inner`),o=await V(r,n.endLabelLeft,n.labelStyle);p=o;let s=o.getBBox();if(i){let e=o.children[0],n=t(o);s=e.getBoundingClientRect(),n.attr(`width`,s.width),n.attr(`height`,s.height)}a.attr(`transform`,C(s,i)),U[n.id]||(U[n.id]={}),U[n.id].endLeft=r,W(p,n.endLabelLeft)}if(n.endLabelRight){let r=e.insert(`g`).attr(`class`,`edgeTerminals`),a=r.insert(`g`).attr(`class`,`inner`),o=await V(r,n.endLabelRight,n.labelStyle);p=o;let s=o.getBBox();if(i){let e=o.children[0],n=t(o);s=e.getBoundingClientRect(),n.attr(`width`,s.width),n.attr(`height`,s.height)}a.attr(`transform`,C(s,i)),U[n.id]||(U[n.id]={}),U[n.id].endRight=r,W(p,n.endLabelRight)}return u},`insertEdgeLabel`);function W(e,t){s(o())&&e&&(e.style.width=t.length*9+`px`,e.style.height=`12px`)}e(W,`setTerminalWidth`);var ke=e((e,t)=>{n.debug(`Moving label abc88 `,e.id,e.label,H[e.id],t);let r=t.updatedPath?t.updatedPath:t.originalPath,{subGraphTitleTotalMargin:i}=y(o());if(e.label){let a=H[e.id],o=e.x,s=e.y;if(r){let i=v.calcLabelPosition(r);n.debug(`Moving label `+e.label+` from (`,o,`,`,s,`) to (`,i.x,`,`,i.y,`) abc88`),t.updatedPath&&(o=i.x,s=i.y)}a.attr(`transform`,`translate(${o}, ${s+i/2})`)}if(e.startLabelLeft){let t=U[e.id].startLeft,n=e.x,i=e.y;if(r){let t=v.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_left`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.startLabelRight){let t=U[e.id].startRight,n=e.x,i=e.y;if(r){let t=v.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_right`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.endLabelLeft){let t=U[e.id].endLeft,n=e.x,i=e.y;if(r){let t=v.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_left`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.endLabelRight){let t=U[e.id].endRight,n=e.x,i=e.y;if(r){let t=v.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_right`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}},`positionEdgeLabel`),Ae=e((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},`outsideNode`),je=e((e,t,r)=>{n.debug(`intersection calc abc89: + outsidePoint: ${JSON.stringify(t)} + insidePoint : ${JSON.stringify(r)} + node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let i=e.x,a=e.y,o=Math.abs(i-r.x),s=e.width/2,c=r.xMath.abs(i-t.x)*l){let e=r.y{n.debug(`abc88 cutPathAtIntersect`,e,t);let r=[],i=e[0],a=!1;return e.forEach(e=>{if(!Ae(t,e)&&!a){let n=je(t,i,e),o=!1;r.forEach(e=>{o||=e.x===n.x&&e.y===n.y}),r.some(e=>e.x===n.x&&e.y===n.y)||r.push(n),a=!0}else i=e,a||r.push(e)}),r},`cutPathAtIntersect`),Ne=e(function(e,t,s,c,l,u,d){let f=s.points;n.debug(`abc88 InsertEdge: edge=`,s,`e=`,t);let p=!1,m=u.node(t.v);var h=u.node(t.w);h?.intersect&&m?.intersect&&(f=f.slice(1,s.points.length-1),f.unshift(m.intersect(f[0])),f.push(h.intersect(f[f.length-1]))),s.toCluster&&(n.debug(`to cluster abc88`,c[s.toCluster]),f=Me(s.points,c[s.toCluster].node),p=!0),s.fromCluster&&(n.debug(`from cluster abc88`,c[s.fromCluster]),f=Me(f.reverse(),c[s.fromCluster].node).reverse(),p=!0);let g=f.filter(e=>!Number.isNaN(e.y)),_=r;s.curve&&(l===`graph`||l===`flowchart`)&&(_=s.curve);let{x:v,y}=S(s),b=i().x(v).y(y).curve(_),x;switch(s.thickness){case`normal`:x=`edge-thickness-normal`;break;case`thick`:x=`edge-thickness-thick`;break;case`invisible`:x=`edge-thickness-thick`;break;default:x=``}switch(s.pattern){case`solid`:x+=` edge-pattern-solid`;break;case`dotted`:x+=` edge-pattern-dotted`;break;case`dashed`:x+=` edge-pattern-dashed`;break}let C=e.append(`path`).attr(`d`,b(g)).attr(`id`,s.id).attr(`class`,` `+x+(s.classes?` `+s.classes:``)).attr(`style`,s.style),w=``;(o().flowchart.arrowMarkerAbsolute||o().state.arrowMarkerAbsolute)&&(w=a(!0)),Te(C,s,w,d,l);let T={};return p&&(T.updatedPath=f),T.originalPath=s.points,T},`insertEdge`),Pe=e(e=>{let t=new Set;for(let n of e)switch(n){case`x`:t.add(`right`),t.add(`left`);break;case`y`:t.add(`up`),t.add(`down`);break;default:t.add(n);break}return t},`expandAndDeduplicateDirections`),Fe=e((e,t,n,r)=>{let i=Pe(e),a=t.height+2*n.padding,o=a/2,s=r??t.width+2*o+n.padding,c=n.padding/2;return i.has(`right`)&&i.has(`left`)&&i.has(`up`)&&i.has(`down`)?[{x:0,y:0},{x:o,y:0},{x:s/2,y:2*c},{x:s-o,y:0},{x:s,y:0},{x:s,y:-a/3},{x:s+2*c,y:-a/2},{x:s,y:-2*a/3},{x:s,y:-a},{x:s-o,y:-a},{x:s/2,y:-a-2*c},{x:o,y:-a},{x:0,y:-a},{x:0,y:-2*a/3},{x:-2*c,y:-a/2},{x:0,y:-a/3}]:i.has(`right`)&&i.has(`left`)&&i.has(`up`)?[{x:o,y:0},{x:s-o,y:0},{x:s,y:-a/2},{x:s-o,y:-a},{x:o,y:-a},{x:0,y:-a/2}]:i.has(`right`)&&i.has(`left`)&&i.has(`down`)?[{x:0,y:0},{x:o,y:-a},{x:s-o,y:-a},{x:s,y:0}]:i.has(`right`)&&i.has(`up`)&&i.has(`down`)?[{x:0,y:0},{x:s,y:-o},{x:s,y:-a+o},{x:0,y:-a}]:i.has(`left`)&&i.has(`up`)&&i.has(`down`)?[{x:s,y:0},{x:0,y:-o},{x:0,y:-a+o},{x:s,y:-a}]:i.has(`right`)&&i.has(`left`)?[{x:o,y:0},{x:o,y:-c},{x:s-o,y:-c},{x:s-o,y:0},{x:s,y:-a/2},{x:s-o,y:-a},{x:s-o,y:-a+c},{x:o,y:-a+c},{x:o,y:-a},{x:0,y:-a/2}]:i.has(`up`)&&i.has(`down`)?[{x:s/2,y:0},{x:0,y:-c},{x:o,y:-c},{x:o,y:-a+c},{x:0,y:-a+c},{x:s/2,y:-a},{x:s,y:-a+c},{x:s-o,y:-a+c},{x:s-o,y:-c},{x:s,y:-c}]:i.has(`right`)&&i.has(`up`)?[{x:0,y:0},{x:s,y:-o},{x:0,y:-a}]:i.has(`right`)&&i.has(`down`)?[{x:0,y:0},{x:s,y:0},{x:0,y:-a}]:i.has(`left`)&&i.has(`up`)?[{x:s,y:0},{x:0,y:-o},{x:s,y:-a}]:i.has(`left`)&&i.has(`down`)?[{x:s,y:0},{x:0,y:0},{x:s,y:-a}]:i.has(`right`)?[{x:o,y:-c},{x:o,y:-c},{x:s-o,y:-c},{x:s-o,y:0},{x:s,y:-a/2},{x:s-o,y:-a},{x:s-o,y:-a+c},{x:o,y:-a+c},{x:o,y:-a+c}]:i.has(`left`)?[{x:o,y:0},{x:o,y:-c},{x:s-o,y:-c},{x:s-o,y:-a+c},{x:o,y:-a+c},{x:o,y:-a},{x:0,y:-a/2}]:i.has(`up`)?[{x:o,y:-c},{x:o,y:-a+c},{x:0,y:-a+c},{x:s/2,y:-a},{x:s,y:-a+c},{x:s-o,y:-a+c},{x:s-o,y:-c}]:i.has(`down`)?[{x:s/2,y:0},{x:0,y:-c},{x:o,y:-c},{x:o,y:-a+c},{x:s-o,y:-a+c},{x:s-o,y:-c},{x:s,y:-c}]:[{x:0,y:0}]},`getArrowPoints`);function Ie(e,t){return e.intersect(t)}e(Ie,`intersectNode`);var Le=Ie;function Re(e,t,n,r){var i=e.x,a=e.y,o=i-r.x,s=a-r.y,c=Math.sqrt(t*t*s*s+n*n*o*o),l=Math.abs(t*n*o/c);r.x0}e(G,`sameSign`);var Ue=He,We=Ge;function Ge(e,t,n){var r=e.x,i=e.y,a=[],o=1/0,s=1/0;typeof t.forEach==`function`?t.forEach(function(e){o=Math.min(o,e.x),s=Math.min(s,e.y)}):(o=Math.min(o,t.x),s=Math.min(s,t.y));for(var c=r-e.width/2-o,l=i-e.height/2-s,u=0;u1&&a.sort(function(e,t){var r=e.x-n.x,i=e.y-n.y,a=Math.sqrt(r*r+i*i),o=t.x-n.x,s=t.y-n.y,c=Math.sqrt(o*o+s*s);return a{var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2,c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=a===0?0:s*i/a,l=s):(i<0&&(o=-o),c=o,l=i===0?0:o*a/i),{x:n+c,y:r+l}},`intersectRect`)},q=e(async(e,n,r,i)=>{let a=o(),l,u=n.useHtmlLabels||s(a);l=r||`node default`;let d=e.insert(`g`).attr(`class`,l).attr(`id`,n.domId||n.id),f=d.insert(`g`).attr(`class`,`label`).attr(`style`,n.labelStyle),p;p=n.labelText===void 0?``:typeof n.labelText==`string`?n.labelText:n.labelText[0];let m;m=n.labelType===`markdown`?x(f,c(g(p),a),{useHtmlLabels:u,width:n.width||a.flowchart.wrappingWidth,classes:`markdown-node-label`},a):await V(f,c(g(p),a),n.labelStyle,!1,i);let h=m.getBBox(),_=n.padding/2;if(s(a)){let e=m.children[0],n=t(m);await b(e,p),h=e.getBoundingClientRect(),n.attr(`width`,h.width),n.attr(`height`,h.height)}return u?f.attr(`transform`,`translate(`+-h.width/2+`, `+-h.height/2+`)`):f.attr(`transform`,`translate(0, `+-h.height/2+`)`),n.centerLabel&&f.attr(`transform`,`translate(`+-h.width/2+`, `+-h.height/2+`)`),f.insert(`rect`,`:first-child`),{shapeSvg:d,bbox:h,halfPadding:_,label:f}},`labelHelper`),J=e((e,t)=>{let n=t.node().getBBox();e.width=n.width,e.height=n.height},`updateNodeBounds`);function Y(e,t,n,r){return e.insert(`polygon`,`:first-child`).attr(`points`,r.map(function(e){return e.x+`,`+e.y}).join(` `)).attr(`class`,`label-container`).attr(`transform`,`translate(`+-t/2+`,`+n/2+`)`)}e(Y,`insertPolygonShape`);var Ke=e(async(e,t)=>{t.useHtmlLabels||s(o())||(t.centerLabel=!0);let{shapeSvg:r,bbox:i,halfPadding:a}=await q(e,t,`node `+t.classes,!0);n.info(`Classes = `,t.classes);let c=r.insert(`rect`,`:first-child`);return c.attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,-i.width/2-a).attr(`y`,-i.height/2-a).attr(`width`,i.width+t.padding).attr(`height`,i.height+t.padding),J(t,c),t.intersect=function(e){return K.rect(t,e)},r},`note`),qe=e(e=>e?` `+e:``,`formatClass`),X=e((e,t)=>`${t||`node default`}${qe(e.classes)} ${qe(e.class)}`,`getClassesFromNode`),Je=e(async(e,t)=>{let{shapeSvg:r,bbox:i}=await q(e,t,X(t,void 0),!0),a=i.width+t.padding+(i.height+t.padding),o=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}];n.info(`Question main (Circle)`);let s=Y(r,a,a,o);return s.attr(`style`,t.style),J(t,s),t.intersect=function(e){return n.warn(`Intersect called`),K.polygon(t,o,e)},r},`question`),Ye=e((e,t)=>{let n=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id);return n.insert(`polygon`,`:first-child`).attr(`points`,[{x:0,y:28/2},{x:28/2,y:0},{x:0,y:-28/2},{x:-28/2,y:0}].map(function(e){return e.x+`,`+e.y}).join(` `)).attr(`class`,`state-start`).attr(`r`,7).attr(`width`,28).attr(`height`,28),t.width=28,t.height=28,t.intersect=function(e){return K.circle(t,14,e)},n},`choice`),Xe=e(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=t.positioned?t.height:r.height+t.padding,a=i/4,o=t.positioned?t.width:r.width+2*a+t.padding,s=[{x:a,y:0},{x:o-a,y:0},{x:o,y:-i/2},{x:o-a,y:-i},{x:a,y:-i},{x:0,y:-i/2}],c=Y(n,o,i,s);return c.attr(`style`,t.style),J(t,c),t.intersect=function(e){return K.polygon(t,s,e)},n},`hexagon`),Ze=e(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,void 0,!0),i=r.height+2*t.padding,a=i/2,o=r.width+2*a+t.padding,s=t.positioned&&(t.widthInColumns??1)>1&&t.width>o?t.width:o,c=Fe(t.directions,r,t,s),l=Y(n,s,i,c);return l.attr(`style`,t.style),J(t,l),t.intersect=function(e){return K.polygon(t,c,e)},n},`block_arrow`),Qe=e(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:-a/2,y:0},{x:i,y:0},{x:i,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}];return Y(n,i,a,o).attr(`style`,t.style),t.width=i+a,t.height=a,t.intersect=function(e){return K.polygon(t,o,e)},n},`rect_left_inv_arrow`),$e=e(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:-2*a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:a/6,y:-a}],s=Y(n,i,a,o);return s.attr(`style`,t.style),J(t,s),t.intersect=function(e){return K.polygon(t,o,e)},n},`lean_right`),et=e(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:2*a/6,y:0},{x:i+a/6,y:0},{x:i-2*a/6,y:-a},{x:-a/6,y:-a}],s=Y(n,i,a,o);return s.attr(`style`,t.style),J(t,s),t.intersect=function(e){return K.polygon(t,o,e)},n},`lean_left`),tt=e(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:-2*a/6,y:0},{x:i+2*a/6,y:0},{x:i-a/6,y:-a},{x:a/6,y:-a}],s=Y(n,i,a,o);return s.attr(`style`,t.style),J(t,s),t.intersect=function(e){return K.polygon(t,o,e)},n},`trapezoid`),nt=e(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:-2*a/6,y:-a}],s=Y(n,i,a,o);return s.attr(`style`,t.style),J(t,s),t.intersect=function(e){return K.polygon(t,o,e)},n},`inv_trapezoid`),rt=e(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:0,y:0},{x:i+a/2,y:0},{x:i,y:-a/2},{x:i+a/2,y:-a},{x:0,y:-a}],s=Y(n,i,a,o);return s.attr(`style`,t.style),J(t,s),t.intersect=function(e){return K.polygon(t,o,e)},n},`rect_right_inv_arrow`),it=e(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=i/2,o=a/(2.5+i/50),s=r.height+o+t.padding,c=`M 0,`+o+` a `+a+`,`+o+` 0,0,0 `+i+` 0 a `+a+`,`+o+` 0,0,0 `+-i+` 0 l 0,`+s+` a `+a+`,`+o+` 0,0,0 `+i+` 0 l 0,`+-s;return J(t,n.attr(`label-offset-y`,o).insert(`path`,`:first-child`).attr(`style`,t.style).attr(`d`,c).attr(`transform`,`translate(`+-i/2+`,`+-(s/2+o)+`)`)),t.intersect=function(e){let n=K.rect(t,e),r=n.x-t.x;if(a!=0&&(Math.abs(r)t.height/2-o)){let i=o*o*(1-r*r/(a*a));i!=0&&(i=Math.sqrt(i)),i=o-i,e.y-t.y>0&&(i=-i),n.y+=i}return n},n},`cylinder`),at=e(async(e,t)=>{let{shapeSvg:r,bbox:i,halfPadding:a}=await q(e,t,`node `+t.classes+` `+t.class,!0),o=r.insert(`rect`,`:first-child`),s=t.positioned?t.width:i.width+t.padding,c=t.positioned?t.height:i.height+t.padding,l=t.positioned?-s/2:-i.width/2-a,u=t.positioned?-c/2:-i.height/2-a;if(o.attr(`class`,`basic label-container`).attr(`style`,t.style).attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,l).attr(`y`,u).attr(`width`,s).attr(`height`,c),t.props){let e=new Set(Object.keys(t.props));t.props.borders&&(Z(o,t.props.borders,s,c),e.delete(`borders`)),e.forEach(e=>{n.warn(`Unknown node property ${e}`)})}return J(t,o),t.intersect=function(e){return K.rect(t,e)},r},`rect`),ot=e(async(e,t)=>{let{shapeSvg:r,bbox:i,halfPadding:a}=await q(e,t,`node `+t.classes,!0),o=r.insert(`rect`,`:first-child`),s=t.positioned?t.width:i.width+t.padding,c=t.positioned?t.height:i.height+t.padding,l=t.positioned?-s/2:-i.width/2-a,u=t.positioned?-c/2:-i.height/2-a;if(o.attr(`class`,`basic cluster composite label-container`).attr(`style`,t.style).attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,l).attr(`y`,u).attr(`width`,s).attr(`height`,c),t.props){let e=new Set(Object.keys(t.props));t.props.borders&&(Z(o,t.props.borders,s,c),e.delete(`borders`)),e.forEach(e=>{n.warn(`Unknown node property ${e}`)})}return J(t,o),t.intersect=function(e){return K.rect(t,e)},r},`composite`),st=e(async(e,t)=>{let{shapeSvg:r}=await q(e,t,`label`,!0);n.trace(`Classes = `,t.class);let i=r.insert(`rect`,`:first-child`);if(i.attr(`width`,0).attr(`height`,0),r.attr(`class`,`label edgeLabel`),t.props){let e=new Set(Object.keys(t.props));t.props.borders&&(Z(i,t.props.borders,0,0),e.delete(`borders`)),e.forEach(e=>{n.warn(`Unknown node property ${e}`)})}return J(t,i),t.intersect=function(e){return K.rect(t,e)},r},`labelRect`);function Z(t,r,i,a){let o=[],s=e(e=>{o.push(e,0)},`addBorder`),c=e(e=>{o.push(0,e)},`skipBorder`);r.includes(`t`)?(n.debug(`add top border`),s(i)):c(i),r.includes(`r`)?(n.debug(`add right border`),s(a)):c(a),r.includes(`b`)?(n.debug(`add bottom border`),s(i)):c(i),r.includes(`l`)?(n.debug(`add left border`),s(a)):c(a),t.attr(`stroke-dasharray`,o.join(` `))}e(Z,`applyNodePropertyBorders`);var ct=e(async(e,r)=>{let i;i=r.classes?`node `+r.classes:`node default`;let a=e.insert(`g`).attr(`class`,i).attr(`id`,r.domId||r.id),c=a.insert(`rect`,`:first-child`),l=a.insert(`line`),u=a.insert(`g`).attr(`class`,`label`),d=r.labelText.flat?r.labelText.flat():r.labelText,f=``;f=typeof d==`object`?d[0]:d,n.info(`Label text abc79`,f,d,typeof d==`object`);let p=await V(u,f,r.labelStyle,!0,!0),m={width:0,height:0};if(s(o())){let e=p.children[0],n=t(p);m=e.getBoundingClientRect(),n.attr(`width`,m.width),n.attr(`height`,m.height)}n.info(`Text 2`,d);let h=d.slice(1,d.length),g=p.getBBox(),_=await V(u,h.join?h.join(`
`):h,r.labelStyle,!0,!0);if(s(o())){let e=_.children[0],n=t(_);m=e.getBoundingClientRect(),n.attr(`width`,m.width),n.attr(`height`,m.height)}let v=r.padding/2;return t(_).attr(`transform`,`translate( `+(m.width>g.width?0:(g.width-m.width)/2)+`, `+(g.height+v+5)+`)`),t(p).attr(`transform`,`translate( `+(m.width{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.height+t.padding,a=r.width+i/4+t.padding;return J(t,n.insert(`rect`,`:first-child`).attr(`style`,t.style).attr(`rx`,i/2).attr(`ry`,i/2).attr(`x`,-a/2).attr(`y`,-i/2).attr(`width`,a).attr(`height`,i)),t.intersect=function(e){return K.rect(t,e)},n},`stadium`),ut=e(async(e,t)=>{let{shapeSvg:r,bbox:i,halfPadding:a}=await q(e,t,X(t,void 0),!0),o=r.insert(`circle`,`:first-child`);return o.attr(`style`,t.style).attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`r`,i.width/2+a).attr(`width`,i.width+t.padding).attr(`height`,i.height+t.padding),n.info(`Circle main`),J(t,o),t.intersect=function(e){return n.info(`Circle intersect`,t,i.width/2+a,e),K.circle(t,i.width/2+a,e)},r},`circle`),dt=e(async(e,t)=>{let{shapeSvg:r,bbox:i,halfPadding:a}=await q(e,t,X(t,void 0),!0),o=r.insert(`g`,`:first-child`),s=o.insert(`circle`),c=o.insert(`circle`);return o.attr(`class`,t.class),s.attr(`style`,t.style).attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`r`,i.width/2+a+5).attr(`width`,i.width+t.padding+10).attr(`height`,i.height+t.padding+10),c.attr(`style`,t.style).attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`r`,i.width/2+a).attr(`width`,i.width+t.padding).attr(`height`,i.height+t.padding),n.info(`DoubleCircle main`),J(t,s),t.intersect=function(e){return n.info(`DoubleCircle intersect`,t,i.width/2+a+5,e),K.circle(t,i.width/2+a+5,e)},r},`doublecircle`),ft=e(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:0,y:0},{x:i,y:0},{x:i,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],s=Y(n,i,a,o);return s.attr(`style`,t.style),J(t,s),t.intersect=function(e){return K.polygon(t,o,e)},n},`subroutine`),pt=e((e,t)=>{let n=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),r=n.insert(`circle`,`:first-child`);return r.attr(`class`,`state-start`).attr(`r`,7).attr(`width`,14).attr(`height`,14),J(t,r),t.intersect=function(e){return K.circle(t,7,e)},n},`start`),mt=e((e,t,n)=>{let r=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),i=70,a=10;return n===`LR`&&(i=10,a=70),J(t,r.append(`rect`).attr(`x`,-1*i/2).attr(`y`,-1*a/2).attr(`width`,i).attr(`height`,a).attr(`class`,`fork-join`)),t.height+=t.padding/2,t.width+=t.padding/2,t.intersect=function(e){return K.rect(t,e)},r},`forkJoin`),ht={rhombus:Je,composite:ot,question:Je,rect:at,labelRect:st,rectWithTitle:ct,choice:Ye,circle:ut,doublecircle:dt,stadium:lt,hexagon:Xe,block_arrow:Ze,rect_left_inv_arrow:Qe,lean_right:$e,lean_left:et,trapezoid:tt,inv_trapezoid:nt,rect_right_inv_arrow:rt,cylinder:it,start:pt,end:e((e,t)=>{let n=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),r=n.insert(`circle`,`:first-child`),i=n.insert(`circle`,`:first-child`);return i.attr(`class`,`state-start`).attr(`r`,7).attr(`width`,14).attr(`height`,14),r.attr(`class`,`state-end`).attr(`r`,5).attr(`width`,10).attr(`height`,10),J(t,i),t.intersect=function(e){return K.circle(t,7,e)},n},`end`),note:Ke,subroutine:ft,fork:mt,join:mt,class_box:e(async(e,n)=>{let r=n.padding/2,i;i=n.classes?`node `+n.classes:`node default`;let a=e.insert(`g`).attr(`class`,i).attr(`id`,n.domId||n.id),c=a.insert(`rect`,`:first-child`),l=a.insert(`line`),u=a.insert(`line`),d=0,f=4,p=a.insert(`g`).attr(`class`,`label`),m=0,h=n.classData.annotations?.[0],g=await V(p,n.classData.annotations[0]?`«`+n.classData.annotations[0]+`»`:``,n.labelStyle,!0,!0),_=g.getBBox();if(s(o())){let e=g.children[0],n=t(g);_=e.getBoundingClientRect(),n.attr(`width`,_.width),n.attr(`height`,_.height)}n.classData.annotations[0]&&(f+=_.height+4,d+=_.width);let v=n.classData.label;n.classData.type!==void 0&&n.classData.type!==``&&(s(o())?v+=`<`+n.classData.type+`>`:v+=`<`+n.classData.type+`>`);let y=await V(p,v,n.labelStyle,!0,!0);t(y).attr(`class`,`classTitle`);let b=y.getBBox();if(s(o())){let e=y.children[0],n=t(y);b=e.getBoundingClientRect(),n.attr(`width`,b.width),n.attr(`height`,b.height)}f+=b.height+4,b.width>d&&(d=b.width);let x=[];n.classData.members.forEach(async e=>{let r=e.getDisplayDetails(),i=r.displayText;s(o())&&(i=i.replace(//g,`>`));let a=await V(p,i,r.cssStyle?r.cssStyle:n.labelStyle,!0,!0),c=a.getBBox();if(s(o())){let e=a.children[0],n=t(a);c=e.getBoundingClientRect(),n.attr(`width`,c.width),n.attr(`height`,c.height)}c.width>d&&(d=c.width),f+=c.height+4,x.push(a)}),f+=8;let S=[];if(n.classData.methods.forEach(async e=>{let r=e.getDisplayDetails(),i=r.displayText;s(o())&&(i=i.replace(//g,`>`));let a=await V(p,i,r.cssStyle?r.cssStyle:n.labelStyle,!0,!0),c=a.getBBox();if(s(o())){let e=a.children[0],n=t(a);c=e.getBoundingClientRect(),n.attr(`width`,c.width),n.attr(`height`,c.height)}c.width>d&&(d=c.width),f+=c.height+4,S.push(a)}),f+=8,h){let e=(d-_.width)/2;t(g).attr(`transform`,`translate( `+(-1*d/2+e)+`, `+-1*f/2+`)`),m=_.height+4}let C=(d-b.width)/2;return t(y).attr(`transform`,`translate( `+(-1*d/2+C)+`, `+(-1*f/2+m)+`)`),m+=b.height+4,l.attr(`class`,`divider`).attr(`x1`,-d/2-r).attr(`x2`,d/2+r).attr(`y1`,-f/2-r+8+m).attr(`y2`,-f/2-r+8+m),m+=8,x.forEach(e=>{t(e).attr(`transform`,`translate( `+-d/2+`, `+(-1*f/2+m+8/2)+`)`);let n=e?.getBBox();m+=(n?.height??0)+4}),m+=8,u.attr(`class`,`divider`).attr(`x1`,-d/2-r).attr(`x2`,d/2+r).attr(`y1`,-f/2-r+8+m).attr(`y2`,-f/2-r+8+m),m+=8,S.forEach(e=>{t(e).attr(`transform`,`translate( `+-d/2+`, `+(-1*f/2+m)+`)`);let n=e?.getBBox();m+=(n?.height??0)+4}),c.attr(`style`,n.style).attr(`class`,`outer title-state`).attr(`x`,-d/2-r).attr(`y`,-(f/2)-r).attr(`width`,d+n.padding).attr(`height`,f+n.padding),J(n,c),n.intersect=function(e){return K.rect(n,e)},a},`class_box`)},Q={},gt=e(async(e,t,n)=>{let r,i;if(t.link){let a;o().securityLevel===`sandbox`?a=`_top`:t.linkTarget&&(a=t.linkTarget||`_blank`),r=e.insert(`svg:a`).attr(`xlink:href`,t.link).attr(`target`,a),i=await ht[t.shape](r,t,n)}else i=await ht[t.shape](e,t,n),r=i;return t.tooltip&&i.attr(`title`,t.tooltip),t.class&&i.attr(`class`,`node default `+t.class),Q[t.id]=r,t.haveCallback&&Q[t.id].attr(`class`,Q[t.id].attr(`class`)+` clickable`),r},`insertNode`),_t=e(e=>{let t=Q[e.id];n.trace(`Transforming node`,e.diff,e,`translate(`+(e.x-e.width/2-5)+`, `+e.width/2+`)`);let r=e.diff||0;return e.clusterNode?t.attr(`transform`,`translate(`+(e.x+r-e.width/2)+`, `+(e.y-e.height/2-8)+`)`):t.attr(`transform`,`translate(`+e.x+`, `+e.y+`)`),r},`positionNode`);function vt(e,t,n=!1){let r=e,i=`default`;(r?.classes?.length||0)>0&&(i=(r?.classes??[]).join(` `)),i+=` flowchart-label`;let a=0,o=``,s;switch(r.type){case`round`:a=5,o=`rect`;break;case`composite`:a=0,o=`composite`,s=0;break;case`square`:o=`rect`;break;case`diamond`:o=`question`;break;case`hexagon`:o=`hexagon`;break;case`block_arrow`:o=`block_arrow`;break;case`odd`:o=`rect_left_inv_arrow`;break;case`lean_right`:o=`lean_right`;break;case`lean_left`:o=`lean_left`;break;case`trapezoid`:o=`trapezoid`;break;case`inv_trapezoid`:o=`inv_trapezoid`;break;case`rect_left_inv_arrow`:o=`rect_left_inv_arrow`;break;case`circle`:o=`circle`;break;case`ellipse`:o=`ellipse`;break;case`stadium`:o=`stadium`;break;case`subroutine`:o=`subroutine`;break;case`cylinder`:o=`cylinder`;break;case`group`:o=`rect`;break;case`doublecircle`:o=`doublecircle`;break;default:o=`rect`}let c=_(r?.styles??[]),l=r.label,d=r.size??{width:0,height:0,x:0,y:0},f=t.getDiagramId();return{labelStyle:c.labelStyle,shape:o,labelText:l,rx:a,ry:a,class:i,style:c.style,id:r.id,domId:f?`${f}-${r.id}`:r.id,directions:r.directions,width:d.width,height:d.height,x:d.x,y:d.y,positioned:n,intersect:void 0,type:r.type,padding:s??u()?.block?.padding??0,widthInColumns:r.widthInColumns??1}}e(vt,`getNodeFromBlock`);async function yt(e,t,n){let r=vt(t,n,!1);if(r.type===`group`)return;let i=await gt(e,r,{config:u()}),a=i.node().getBBox(),o=n.getBlock(r.id);o.size={width:a.width,height:a.height,x:0,y:0,node:i},n.setBlock(o),i.remove()}e(yt,`calculateBlockSize`);async function bt(e,t,n){let r=vt(t,n,!0);n.getBlock(r.id).type!==`space`&&(await gt(e,r,{config:u()}),t.intersect=r?.intersect,_t(r))}e(bt,`insertBlockPositioned`);async function $(e,t,n,r){for(let i of t)await r(e,i,n),i.children&&await $(e,i.children,n,r)}e($,`performOperations`);async function xt(e,t,n){await $(e,t,n,yt)}e(xt,`calculateBlockSizes`);async function St(e,t,n){await $(e,t,n,bt)}e(St,`insertBlocks`);async function Ct(e,t,n,r,i){let a=new w({multigraph:!0,compound:!0});a.setGraph({rankdir:`TB`,nodesep:10,ranksep:10,marginx:8,marginy:8});for(let e of n)e.size&&a.setNode(e.id,{width:e.size.width,height:e.size.height,intersect:e.intersect});for(let n of t)if(n.start&&n.end){let t=r.getBlock(n.start),o=r.getBlock(n.end);if(t?.size&&o?.size){let r=t.size,s=o.size,c=[{x:r.x,y:r.y},{x:r.x+(s.x-r.x)/2,y:r.y+(s.y-r.y)/2},{x:s.x,y:s.y}],l=i?`${i}-${n.id}`:n.id,u=`${n.thickness===`thick`?`edge-thickness-thick`:`edge-thickness-normal`} ${n.pattern===`dotted`?`edge-pattern-dotted`:`edge-pattern-solid`} flowchart-link LS-a1 LE-b1`;Ne(e,{v:n.start,w:n.end,name:l},{...n,id:l,arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:c,classes:u},void 0,`block`,a,i),n.label&&(await Oe(e,{...n,label:n.label,labelStyle:`stroke: #333; stroke-width: 1.5px;fill:none;`,arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:c,classes:u}),ke({...n,x:c[1].x,y:c[1].y},{originalPath:c}))}}}e(Ct,`insertEdges`);var wt={parser:D,db:_e,renderer:{draw:e(async function(e,r,i,a){let{securityLevel:o,block:s}=u(),c=a.db;c.setDiagramId(r);let l;o===`sandbox`&&(l=t(`#i`+r));let d=t(o===`sandbox`?l.nodes()[0].contentDocument.body:`body`),f=o===`sandbox`?d.select(`[id="${r}"]`):t(`[id="${r}"]`);xe(f,[`point`,`circle`,`cross`],a.type,r);let m=c.getBlocks(),h=c.getBlocksFlat(),g=c.getEdges(),_=f.insert(`g`).attr(`class`,`block`);await xt(_,m,c);let v=we(c);if(await St(_,m,c),await Ct(_,g,h,c,r),v){let e=v,t=Math.max(1,Math.round(.125*(e.width/e.height))),r=e.height+t+10,i=e.width+10,{useMaxWidth:a}=s;p(f,r,i,!!a),n.debug(`Here Bounds`,v,e),f.attr(`viewBox`,`${e.x-5} ${e.y-5} ${e.width+10} ${e.height+10}`)}},`draw`),getClasses:e(function(e,t){return t.db.getClasses()},`getClasses`)},styles:ve};export{wt as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/c4Diagram-MWKDPP7W-B4gqPfDM.js b/docs/dist/assets/c4Diagram-MWKDPP7W-B4gqPfDM.js new file mode 100644 index 00000000..8f44386f --- /dev/null +++ b/docs/dist/assets/c4Diagram-MWKDPP7W-B4gqPfDM.js @@ -0,0 +1,10 @@ +import{i as e,r as t}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{I as n,T as r}from"./chunk-V7P66DNM-D246Sefn.js";import{C as i,G as a,J as o,Y as s,b as l,c as u,l as d,r as f,x as p}from"./chunk-Q52JI7PB-BeSPinqD.js";import{t as m}from"./chunk-7TFACZ55-BO7C1qvL.js";import{n as h,r as g,y as _}from"./chunk-BSZA5ISF-LqNHBHyp.js";import{a as v,s as y}from"./chunk-O4A3IS3O-BIKKhWCb.js";var b=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,24],r=[1,25],i=[1,26],a=[1,27],o=[1,28],s=[1,63],l=[1,64],u=[1,65],d=[1,66],f=[1,67],p=[1,68],m=[1,69],h=[1,29],g=[1,30],_=[1,31],v=[1,32],y=[1,33],b=[1,34],x=[1,35],S=[1,36],C=[1,37],w=[1,38],T=[1,39],E=[1,40],D=[1,41],O=[1,42],k=[1,43],A=[1,44],j=[1,45],M=[1,46],N=[1,47],P=[1,48],F=[1,50],I=[1,51],L=[1,52],R=[1,53],z=[1,54],B=[1,55],V=[1,56],H=[1,57],ee=[1,58],te=[1,59],ne=[1,60],re=[14,42],ie=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ae=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],U=[1,82],W=[1,83],G=[1,84],K=[1,85],q=[12,14,42],oe=[12,14,33,42],se=[12,14,33,42,76,77,79,80],ce=[12,33],le=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],J={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:`error`,6:`direction_tb`,7:`direction_bt`,8:`direction_rl`,9:`direction_lr`,11:`C4_CONTEXT`,12:`NEWLINE`,14:`EOF`,15:`C4_CONTAINER`,16:`C4_COMPONENT`,17:`C4_DYNAMIC`,18:`C4_DEPLOYMENT`,22:`title`,23:`accDescription`,24:`acc_title`,25:`acc_title_value`,26:`acc_descr`,27:`acc_descr_value`,28:`acc_descr_multiline_value`,33:`LBRACE`,34:`ENTERPRISE_BOUNDARY`,36:`SYSTEM_BOUNDARY`,37:`BOUNDARY`,38:`CONTAINER_BOUNDARY`,39:`NODE`,40:`NODE_L`,41:`NODE_R`,42:`RBRACE`,44:`PERSON`,45:`PERSON_EXT`,46:`SYSTEM`,47:`SYSTEM_DB`,48:`SYSTEM_QUEUE`,49:`SYSTEM_EXT`,50:`SYSTEM_EXT_DB`,51:`SYSTEM_EXT_QUEUE`,52:`CONTAINER`,53:`CONTAINER_DB`,54:`CONTAINER_QUEUE`,55:`CONTAINER_EXT`,56:`CONTAINER_EXT_DB`,57:`CONTAINER_EXT_QUEUE`,58:`COMPONENT`,59:`COMPONENT_DB`,60:`COMPONENT_QUEUE`,61:`COMPONENT_EXT`,62:`COMPONENT_EXT_DB`,63:`COMPONENT_EXT_QUEUE`,64:`REL`,65:`BIREL`,66:`REL_U`,67:`REL_D`,68:`REL_L`,69:`REL_R`,70:`REL_B`,71:`REL_INDEX`,72:`UPDATE_EL_STYLE`,73:`UPDATE_REL_STYLE`,74:`UPDATE_LAYOUT_CONFIG`,76:`STR`,77:`STR_KEY`,78:`STR_VALUE`,79:`ATTRIBUTE`,80:`ATTRIBUTE_EMPTY`},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:r.setDirection(`TB`);break;case 4:r.setDirection(`BT`);break;case 5:r.setDirection(`RL`);break;case 6:r.setDirection(`LR`);break;case 8:case 9:case 10:case 11:case 12:r.setC4Type(a[s-3]);break;case 19:r.setTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 20:r.setAccDescription(a[s].substring(15)),this.$=a[s].substring(15);break;case 21:this.$=a[s].trim(),r.setTitle(this.$);break;case 22:case 23:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 28:a[s].splice(2,0,`ENTERPRISE`),r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 29:a[s].splice(2,0,`SYSTEM`),r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 30:r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 31:a[s].splice(2,0,`CONTAINER`),r.addContainerBoundary(...a[s]),this.$=a[s];break;case 32:r.addDeploymentNode(`node`,...a[s]),this.$=a[s];break;case 33:r.addDeploymentNode(`nodeL`,...a[s]),this.$=a[s];break;case 34:r.addDeploymentNode(`nodeR`,...a[s]),this.$=a[s];break;case 35:r.popBoundaryParseStack();break;case 39:r.addPersonOrSystem(`person`,...a[s]),this.$=a[s];break;case 40:r.addPersonOrSystem(`external_person`,...a[s]),this.$=a[s];break;case 41:r.addPersonOrSystem(`system`,...a[s]),this.$=a[s];break;case 42:r.addPersonOrSystem(`system_db`,...a[s]),this.$=a[s];break;case 43:r.addPersonOrSystem(`system_queue`,...a[s]),this.$=a[s];break;case 44:r.addPersonOrSystem(`external_system`,...a[s]),this.$=a[s];break;case 45:r.addPersonOrSystem(`external_system_db`,...a[s]),this.$=a[s];break;case 46:r.addPersonOrSystem(`external_system_queue`,...a[s]),this.$=a[s];break;case 47:r.addContainer(`container`,...a[s]),this.$=a[s];break;case 48:r.addContainer(`container_db`,...a[s]),this.$=a[s];break;case 49:r.addContainer(`container_queue`,...a[s]),this.$=a[s];break;case 50:r.addContainer(`external_container`,...a[s]),this.$=a[s];break;case 51:r.addContainer(`external_container_db`,...a[s]),this.$=a[s];break;case 52:r.addContainer(`external_container_queue`,...a[s]),this.$=a[s];break;case 53:r.addComponent(`component`,...a[s]),this.$=a[s];break;case 54:r.addComponent(`component_db`,...a[s]),this.$=a[s];break;case 55:r.addComponent(`component_queue`,...a[s]),this.$=a[s];break;case 56:r.addComponent(`external_component`,...a[s]),this.$=a[s];break;case 57:r.addComponent(`external_component_db`,...a[s]),this.$=a[s];break;case 58:r.addComponent(`external_component_queue`,...a[s]),this.$=a[s];break;case 60:r.addRel(`rel`,...a[s]),this.$=a[s];break;case 61:r.addRel(`birel`,...a[s]),this.$=a[s];break;case 62:r.addRel(`rel_u`,...a[s]),this.$=a[s];break;case 63:r.addRel(`rel_d`,...a[s]),this.$=a[s];break;case 64:r.addRel(`rel_l`,...a[s]),this.$=a[s];break;case 65:r.addRel(`rel_r`,...a[s]),this.$=a[s];break;case 66:r.addRel(`rel_b`,...a[s]),this.$=a[s];break;case 67:a[s].splice(0,1),r.addRel(`rel`,...a[s]),this.$=a[s];break;case 68:r.updateElStyle(`update_el_style`,...a[s]),this.$=a[s];break;case 69:r.updateRelStyle(`update_rel_style`,...a[s]),this.$=a[s];break;case 70:r.updateLayoutConfig(`update_layout_config`,...a[s]),this.$=a[s];break;case 71:this.$=[a[s]];break;case 72:a[s].unshift(a[s-1]),this.$=a[s];break;case 73:case 75:this.$=a[s].trim();break;case 74:let e={};e[a[s-1].trim()]=a[s].trim(),this.$=e;break;case 76:this.$=``;break}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:n,23:r,24:i,26:a,28:o,29:49,30:61,32:62,34:s,36:l,37:u,38:d,39:f,40:p,41:m,43:23,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:z,69:B,70:V,71:H,72:ee,73:te,74:ne},{13:70,19:20,20:21,21:22,22:n,23:r,24:i,26:a,28:o,29:49,30:61,32:62,34:s,36:l,37:u,38:d,39:f,40:p,41:m,43:23,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:z,69:B,70:V,71:H,72:ee,73:te,74:ne},{13:71,19:20,20:21,21:22,22:n,23:r,24:i,26:a,28:o,29:49,30:61,32:62,34:s,36:l,37:u,38:d,39:f,40:p,41:m,43:23,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:z,69:B,70:V,71:H,72:ee,73:te,74:ne},{13:72,19:20,20:21,21:22,22:n,23:r,24:i,26:a,28:o,29:49,30:61,32:62,34:s,36:l,37:u,38:d,39:f,40:p,41:m,43:23,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:z,69:B,70:V,71:H,72:ee,73:te,74:ne},{13:73,19:20,20:21,21:22,22:n,23:r,24:i,26:a,28:o,29:49,30:61,32:62,34:s,36:l,37:u,38:d,39:f,40:p,41:m,43:23,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:z,69:B,70:V,71:H,72:ee,73:te,74:ne},{14:[1,74]},e(re,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:l,37:u,38:d,39:f,40:p,41:m,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:z,69:B,70:V,71:H,72:ee,73:te,74:ne}),e(re,[2,14]),e(ie,[2,16],{12:[1,76]}),e(re,[2,36],{12:[1,77]}),e(ae,[2,19]),e(ae,[2,20]),{25:[1,78]},{27:[1,79]},e(ae,[2,23]),{35:80,75:81,76:U,77:W,79:G,80:K},{35:86,75:81,76:U,77:W,79:G,80:K},{35:87,75:81,76:U,77:W,79:G,80:K},{35:88,75:81,76:U,77:W,79:G,80:K},{35:89,75:81,76:U,77:W,79:G,80:K},{35:90,75:81,76:U,77:W,79:G,80:K},{35:91,75:81,76:U,77:W,79:G,80:K},{35:92,75:81,76:U,77:W,79:G,80:K},{35:93,75:81,76:U,77:W,79:G,80:K},{35:94,75:81,76:U,77:W,79:G,80:K},{35:95,75:81,76:U,77:W,79:G,80:K},{35:96,75:81,76:U,77:W,79:G,80:K},{35:97,75:81,76:U,77:W,79:G,80:K},{35:98,75:81,76:U,77:W,79:G,80:K},{35:99,75:81,76:U,77:W,79:G,80:K},{35:100,75:81,76:U,77:W,79:G,80:K},{35:101,75:81,76:U,77:W,79:G,80:K},{35:102,75:81,76:U,77:W,79:G,80:K},{35:103,75:81,76:U,77:W,79:G,80:K},{35:104,75:81,76:U,77:W,79:G,80:K},e(q,[2,59]),{35:105,75:81,76:U,77:W,79:G,80:K},{35:106,75:81,76:U,77:W,79:G,80:K},{35:107,75:81,76:U,77:W,79:G,80:K},{35:108,75:81,76:U,77:W,79:G,80:K},{35:109,75:81,76:U,77:W,79:G,80:K},{35:110,75:81,76:U,77:W,79:G,80:K},{35:111,75:81,76:U,77:W,79:G,80:K},{35:112,75:81,76:U,77:W,79:G,80:K},{35:113,75:81,76:U,77:W,79:G,80:K},{35:114,75:81,76:U,77:W,79:G,80:K},{35:115,75:81,76:U,77:W,79:G,80:K},{20:116,29:49,30:61,32:62,34:s,36:l,37:u,38:d,39:f,40:p,41:m,43:23,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:z,69:B,70:V,71:H,72:ee,73:te,74:ne},{12:[1,118],33:[1,117]},{35:119,75:81,76:U,77:W,79:G,80:K},{35:120,75:81,76:U,77:W,79:G,80:K},{35:121,75:81,76:U,77:W,79:G,80:K},{35:122,75:81,76:U,77:W,79:G,80:K},{35:123,75:81,76:U,77:W,79:G,80:K},{35:124,75:81,76:U,77:W,79:G,80:K},{35:125,75:81,76:U,77:W,79:G,80:K},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(re,[2,15]),e(ie,[2,17],{21:22,19:130,22:n,23:r,24:i,26:a,28:o}),e(re,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:n,23:r,24:i,26:a,28:o,34:s,36:l,37:u,38:d,39:f,40:p,41:m,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:z,69:B,70:V,71:H,72:ee,73:te,74:ne}),e(ae,[2,21]),e(ae,[2,22]),e(q,[2,39]),e(oe,[2,71],{75:81,35:132,76:U,77:W,79:G,80:K}),e(se,[2,73]),{78:[1,133]},e(se,[2,75]),e(se,[2,76]),e(q,[2,40]),e(q,[2,41]),e(q,[2,42]),e(q,[2,43]),e(q,[2,44]),e(q,[2,45]),e(q,[2,46]),e(q,[2,47]),e(q,[2,48]),e(q,[2,49]),e(q,[2,50]),e(q,[2,51]),e(q,[2,52]),e(q,[2,53]),e(q,[2,54]),e(q,[2,55]),e(q,[2,56]),e(q,[2,57]),e(q,[2,58]),e(q,[2,60]),e(q,[2,61]),e(q,[2,62]),e(q,[2,63]),e(q,[2,64]),e(q,[2,65]),e(q,[2,66]),e(q,[2,67]),e(q,[2,68]),e(q,[2,69]),e(q,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(ce,[2,28]),e(ce,[2,29]),e(ce,[2,30]),e(ce,[2,31]),e(ce,[2,32]),e(ce,[2,33]),e(ce,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(ie,[2,18]),e(re,[2,38]),e(oe,[2,72]),e(se,[2,74]),e(q,[2,24]),e(q,[2,35]),e(le,[2,25]),e(le,[2,26],{12:[1,138]}),e(le,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,l=``,u=0,d=0,f=0,p=2,m=1,h=o.slice.call(arguments,1),g=Object.create(this.lexer),_={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(_.yy[v]=this.yy[v]);g.setInput(e,_.yy),_.yy.lexer=g,_.yy.parser=this,g.yylloc===void 0&&(g.yylloc={});var y=g.yylloc;o.push(y);var b=g.options&&g.options.ranges;typeof _.yy.parseError==`function`?this.parseError=_.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function x(e){r.length-=2*e,a.length-=e,o.length-=e}t(x,`popStack`);function S(){var e=i.pop()||g.lex()||m;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(S,`lex`);for(var C,w,T,E,D,O={},k,A,j,M;;){if(T=r[r.length-1],this.defaultActions[T]?E=this.defaultActions[T]:(C??=S(),E=s[T]&&s[T][C]),E===void 0||!E.length||!E[0]){var N=``;for(k in M=[],s[T])this.terminals_[k]&&k>p&&M.push(`'`+this.terminals_[k]+`'`);N=g.showPosition?`Parse error on line `+(u+1)+`: +`+g.showPosition()+` +Expecting `+M.join(`, `)+`, got '`+(this.terminals_[C]||C)+`'`:`Parse error on line `+(u+1)+`: Unexpected `+(C==m?`end of input`:`'`+(this.terminals_[C]||C)+`'`),this.parseError(N,{text:g.match,token:this.terminals_[C]||C,line:g.yylineno,loc:y,expected:M})}if(E[0]instanceof Array&&E.length>1)throw Error(`Parse Error: multiple actions possible at state: `+T+`, token: `+C);switch(E[0]){case 1:r.push(C),a.push(g.yytext),o.push(g.yylloc),r.push(E[1]),C=null,w?(C=w,w=null):(d=g.yyleng,l=g.yytext,u=g.yylineno,y=g.yylloc,f>0&&f--);break;case 2:if(A=this.productions_[E[1]][1],O.$=a[a.length-A],O._$={first_line:o[o.length-(A||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(A||1)].first_column,last_column:o[o.length-1].last_column},b&&(O._$.range=[o[o.length-(A||1)].range[0],o[o.length-1].range[1]]),D=this.performAction.apply(O,[l,d,u,_.yy,E[1],a,o].concat(h)),D!==void 0)return D;A&&(r=r.slice(0,-1*A*2),a=a.slice(0,-1*A),o=o.slice(0,-1*A)),r.push(this.productions_[E[1]][0]),a.push(O.$),o.push(O._$),j=s[r[r.length-2]][r[r.length-1]],r.push(j);break;case 3:return!0}}return!0},`parse`)};J.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:t(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t(function(){return this.next()||this.lex()},`lex`),begin:t(function(e){this.conditionStack.push(e)},`begin`),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t(function(e){this.begin(e)},`pushState`),stateStackSize:t(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:t(function(e,t,n,r){switch(n){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin(`acc_title`),24;case 7:return this.popState(),`acc_title_value`;case 8:return this.begin(`acc_descr`),26;case 9:return this.popState(),`acc_descr_value`;case 10:this.begin(`acc_descr_multiline`);break;case 11:this.popState();break;case 12:return`acc_descr_multiline_value`;case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin(`person_ext`),45;case 23:return this.begin(`person`),44;case 24:return this.begin(`system_ext_queue`),51;case 25:return this.begin(`system_ext_db`),50;case 26:return this.begin(`system_ext`),49;case 27:return this.begin(`system_queue`),48;case 28:return this.begin(`system_db`),47;case 29:return this.begin(`system`),46;case 30:return this.begin(`boundary`),37;case 31:return this.begin(`enterprise_boundary`),34;case 32:return this.begin(`system_boundary`),36;case 33:return this.begin(`container_ext_queue`),57;case 34:return this.begin(`container_ext_db`),56;case 35:return this.begin(`container_ext`),55;case 36:return this.begin(`container_queue`),54;case 37:return this.begin(`container_db`),53;case 38:return this.begin(`container`),52;case 39:return this.begin(`container_boundary`),38;case 40:return this.begin(`component_ext_queue`),63;case 41:return this.begin(`component_ext_db`),62;case 42:return this.begin(`component_ext`),61;case 43:return this.begin(`component_queue`),60;case 44:return this.begin(`component_db`),59;case 45:return this.begin(`component`),58;case 46:return this.begin(`node`),39;case 47:return this.begin(`node`),39;case 48:return this.begin(`node_l`),40;case 49:return this.begin(`node_r`),41;case 50:return this.begin(`rel`),64;case 51:return this.begin(`birel`),65;case 52:return this.begin(`rel_u`),66;case 53:return this.begin(`rel_u`),66;case 54:return this.begin(`rel_d`),67;case 55:return this.begin(`rel_d`),67;case 56:return this.begin(`rel_l`),68;case 57:return this.begin(`rel_l`),68;case 58:return this.begin(`rel_r`),69;case 59:return this.begin(`rel_r`),69;case 60:return this.begin(`rel_b`),70;case 61:return this.begin(`rel_index`),71;case 62:return this.begin(`update_el_style`),72;case 63:return this.begin(`update_rel_style`),73;case 64:return this.begin(`update_layout_config`),74;case 65:return`EOF_IN_STRUCT`;case 66:return this.begin(`attribute`),`ATTRIBUTE_EMPTY`;case 67:this.begin(`attribute`);break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin(`string`);break;case 73:this.popState();break;case 74:return`STR`;case 75:this.begin(`string_kv`);break;case 76:return this.begin(`string_kv_key`),`STR_KEY`;case 77:this.popState(),this.begin(`string_kv_value`);break;case 78:return`STR_VALUE`;case 79:this.popState(),this.popState();break;case 80:return`STR`;case 81:return`LBRACE`;case 82:return`RBRACE`;case 83:return`SPACE`;case 84:return`EOL`;case 85:return 14}},`anonymous`),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}}})();function ue(){this.yy={}}return t(ue,`Parser`),ue.prototype=J,J.Parser=ue,new ue})();b.parser=b;var x=b,S=[],C=[``],w=`global`,T=``,E=[{alias:`global`,label:{text:`global`},type:{text:`global`},tags:null,link:null,parentBoundary:``}],D=[],O=``,k=!1,A=4,j=2,M,N=t(function(){return M},`getC4Type`),P=t(function(e){M=a(e,i())},`setC4Type`),F=t(function(e,t,n,r,i,a,o,s,l){if(e==null||t==null||n==null||r==null)return;let u={},d=D.find(e=>e.from===t&&e.to===n);if(d?u=d:D.push(u),u.type=e,u.from=t,u.to=n,u.label={text:r},i==null)u.techn={text:``};else if(typeof i==`object`){let[e,t]=Object.entries(i)[0];u[e]={text:t}}else u.techn={text:i};if(a==null)u.descr={text:``};else if(typeof a==`object`){let[e,t]=Object.entries(a)[0];u[e]={text:t}}else u.descr={text:a};if(typeof o==`object`){let[e,t]=Object.entries(o)[0];u[e]=t}else u.sprite=o;if(typeof s==`object`){let[e,t]=Object.entries(s)[0];u[e]=t}else u.tags=s;if(typeof l==`object`){let[e,t]=Object.entries(l)[0];u[e]=t}else u.link=l;u.wrap=J()},`addRel`),I=t(function(e,t,n,r,i,a,o){if(t===null||n===null)return;let s={},l=S.find(e=>e.alias===t);if(l&&t===l.alias?s=l:(s.alias=t,S.push(s)),n==null?s.label={text:``}:s.label={text:n},r==null)s.descr={text:``};else if(typeof r==`object`){let[e,t]=Object.entries(r)[0];s[e]={text:t}}else s.descr={text:r};if(typeof i==`object`){let[e,t]=Object.entries(i)[0];s[e]=t}else s.sprite=i;if(typeof a==`object`){let[e,t]=Object.entries(a)[0];s[e]=t}else s.tags=a;if(typeof o==`object`){let[e,t]=Object.entries(o)[0];s[e]=t}else s.link=o;s.typeC4Shape={text:e},s.parentBoundary=w,s.wrap=J()},`addPersonOrSystem`),L=t(function(e,t,n,r,i,a,o,s){if(t===null||n===null)return;let l={},u=S.find(e=>e.alias===t);if(u&&t===u.alias?l=u:(l.alias=t,S.push(l)),n==null?l.label={text:``}:l.label={text:n},r==null)l.techn={text:``};else if(typeof r==`object`){let[e,t]=Object.entries(r)[0];l[e]={text:t}}else l.techn={text:r};if(i==null)l.descr={text:``};else if(typeof i==`object`){let[e,t]=Object.entries(i)[0];l[e]={text:t}}else l.descr={text:i};if(typeof a==`object`){let[e,t]=Object.entries(a)[0];l[e]=t}else l.sprite=a;if(typeof o==`object`){let[e,t]=Object.entries(o)[0];l[e]=t}else l.tags=o;if(typeof s==`object`){let[e,t]=Object.entries(s)[0];l[e]=t}else l.link=s;l.wrap=J(),l.typeC4Shape={text:e},l.parentBoundary=w},`addContainer`),R=t(function(e,t,n,r,i,a,o,s){if(t===null||n===null)return;let l={},u=S.find(e=>e.alias===t);if(u&&t===u.alias?l=u:(l.alias=t,S.push(l)),n==null?l.label={text:``}:l.label={text:n},r==null)l.techn={text:``};else if(typeof r==`object`){let[e,t]=Object.entries(r)[0];l[e]={text:t}}else l.techn={text:r};if(i==null)l.descr={text:``};else if(typeof i==`object`){let[e,t]=Object.entries(i)[0];l[e]={text:t}}else l.descr={text:i};if(typeof a==`object`){let[e,t]=Object.entries(a)[0];l[e]=t}else l.sprite=a;if(typeof o==`object`){let[e,t]=Object.entries(o)[0];l[e]=t}else l.tags=o;if(typeof s==`object`){let[e,t]=Object.entries(s)[0];l[e]=t}else l.link=s;l.wrap=J(),l.typeC4Shape={text:e},l.parentBoundary=w},`addComponent`),z=t(function(e,t,n,r,i){if(e===null||t===null)return;let a={},o=E.find(t=>t.alias===e);if(o&&e===o.alias?a=o:(a.alias=e,E.push(a)),t==null?a.label={text:``}:a.label={text:t},n==null)a.type={text:`system`};else if(typeof n==`object`){let[e,t]=Object.entries(n)[0];a[e]={text:t}}else a.type={text:n};if(typeof r==`object`){let[e,t]=Object.entries(r)[0];a[e]=t}else a.tags=r;if(typeof i==`object`){let[e,t]=Object.entries(i)[0];a[e]=t}else a.link=i;a.parentBoundary=w,a.wrap=J(),T=w,w=e,C.push(T)},`addPersonOrSystemBoundary`),B=t(function(e,t,n,r,i){if(e===null||t===null)return;let a={},o=E.find(t=>t.alias===e);if(o&&e===o.alias?a=o:(a.alias=e,E.push(a)),t==null?a.label={text:``}:a.label={text:t},n==null)a.type={text:`container`};else if(typeof n==`object`){let[e,t]=Object.entries(n)[0];a[e]={text:t}}else a.type={text:n};if(typeof r==`object`){let[e,t]=Object.entries(r)[0];a[e]=t}else a.tags=r;if(typeof i==`object`){let[e,t]=Object.entries(i)[0];a[e]=t}else a.link=i;a.parentBoundary=w,a.wrap=J(),T=w,w=e,C.push(T)},`addContainerBoundary`),V=t(function(e,t,n,r,i,a,o,s){if(t===null||n===null)return;let l={},u=E.find(e=>e.alias===t);if(u&&t===u.alias?l=u:(l.alias=t,E.push(l)),n==null?l.label={text:``}:l.label={text:n},r==null)l.type={text:`node`};else if(typeof r==`object`){let[e,t]=Object.entries(r)[0];l[e]={text:t}}else l.type={text:r};if(i==null)l.descr={text:``};else if(typeof i==`object`){let[e,t]=Object.entries(i)[0];l[e]={text:t}}else l.descr={text:i};if(typeof o==`object`){let[e,t]=Object.entries(o)[0];l[e]=t}else l.tags=o;if(typeof s==`object`){let[e,t]=Object.entries(s)[0];l[e]=t}else l.link=s;l.nodeType=e,l.parentBoundary=w,l.wrap=J(),T=w,w=t,C.push(T)},`addDeploymentNode`),H=t(function(){w=T,C.pop(),T=C.pop(),C.push(T)},`popBoundaryParseStack`),ee=t(function(e,t,n,r,i,a,o,s,l,u,d){let f=S.find(e=>e.alias===t);if(!(f===void 0&&(f=E.find(e=>e.alias===t),f===void 0))){if(n!=null)if(typeof n==`object`){let[e,t]=Object.entries(n)[0];f[e]=t}else f.bgColor=n;if(r!=null)if(typeof r==`object`){let[e,t]=Object.entries(r)[0];f[e]=t}else f.fontColor=r;if(i!=null)if(typeof i==`object`){let[e,t]=Object.entries(i)[0];f[e]=t}else f.borderColor=i;if(a!=null)if(typeof a==`object`){let[e,t]=Object.entries(a)[0];f[e]=t}else f.shadowing=a;if(o!=null)if(typeof o==`object`){let[e,t]=Object.entries(o)[0];f[e]=t}else f.shape=o;if(s!=null)if(typeof s==`object`){let[e,t]=Object.entries(s)[0];f[e]=t}else f.sprite=s;if(l!=null)if(typeof l==`object`){let[e,t]=Object.entries(l)[0];f[e]=t}else f.techn=l;if(u!=null)if(typeof u==`object`){let[e,t]=Object.entries(u)[0];f[e]=t}else f.legendText=u;if(d!=null)if(typeof d==`object`){let[e,t]=Object.entries(d)[0];f[e]=t}else f.legendSprite=d}},`updateElStyle`),te=t(function(e,t,n,r,i,a,o){let s=D.find(e=>e.from===t&&e.to===n);if(s!==void 0){if(r!=null)if(typeof r==`object`){let[e,t]=Object.entries(r)[0];s[e]=t}else s.textColor=r;if(i!=null)if(typeof i==`object`){let[e,t]=Object.entries(i)[0];s[e]=t}else s.lineColor=i;if(a!=null)if(typeof a==`object`){let[e,t]=Object.entries(a)[0];s[e]=parseInt(t)}else s.offsetX=parseInt(a);if(o!=null)if(typeof o==`object`){let[e,t]=Object.entries(o)[0];s[e]=parseInt(t)}else s.offsetY=parseInt(o)}},`updateRelStyle`),ne=t(function(e,t,n){let r=A,i=j;if(typeof t==`object`){let e=Object.values(t)[0];r=parseInt(e)}else r=parseInt(t);if(typeof n==`object`){let e=Object.values(n)[0];i=parseInt(e)}else i=parseInt(n);r>=1&&(A=r),i>=1&&(j=i)},`updateLayoutConfig`),re=t(function(){return A},`getC4ShapeInRow`),ie=t(function(){return j},`getC4BoundaryInRow`),ae=t(function(){return w},`getCurrentBoundaryParse`),U=t(function(){return T},`getParentBoundaryParse`),W=t(function(e){return e==null?S:S.filter(t=>t.parentBoundary===e)},`getC4ShapeArray`),G=t(function(e){return S.find(t=>t.alias===e)},`getC4Shape`),K=t(function(e){return Object.keys(W(e))},`getC4ShapeKeys`),q=t(function(e){return e==null?E:E.filter(t=>t.parentBoundary===e)},`getBoundaries`),oe=q,se=t(function(){return D},`getRels`),ce=t(function(){return O},`getTitle`),le=t(function(e){k=e},`setWrap`),J=t(function(){return k},`autoWrap`),ue={addPersonOrSystem:I,addPersonOrSystemBoundary:z,addContainer:L,addContainerBoundary:B,addComponent:R,addDeploymentNode:V,popBoundaryParseStack:H,addRel:F,updateElStyle:ee,updateRelStyle:te,updateLayoutConfig:ne,autoWrap:J,setWrap:le,getC4ShapeArray:W,getC4Shape:G,getC4ShapeKeys:K,getBoundaries:q,getBoundarys:oe,getCurrentBoundaryParse:ae,getParentBoundaryParse:U,getRels:se,getTitle:ce,getC4Type:N,getC4ShapeInRow:re,getC4BoundaryInRow:ie,setAccTitle:s,getAccTitle:p,getAccDescription:l,setAccDescription:o,getConfig:t(()=>i().c4,`getConfig`),clear:t(function(){S=[],E=[{alias:`global`,label:{text:`global`},type:{text:`global`},tags:null,link:null,parentBoundary:``}],T=``,w=`global`,C=[``],D=[],C=[``],O=``,k=!1,A=4,j=2},`clear`),LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:t(function(e){O=a(e,i())},`setTitle`),setC4Type:P},de=e(m(),1),fe=t(function(e,t){return v(e,t)},`drawRect`),pe=t(function(e,t,n,r,i,a){let o=e.append(`image`);o.attr(`width`,t),o.attr(`height`,n),o.attr(`x`,r),o.attr(`y`,i);let s=a.startsWith(`data:image/png;base64`)?a:(0,de.sanitizeUrl)(a);o.attr(`xlink:href`,s)},`drawImage`),me=t((e,t,n,r)=>{let i=e.append(`g`),a=0;for(let e of t){let t=e.textColor?e.textColor:`#444444`,o=e.lineColor?e.lineColor:`#444444`,s=e.offsetX?parseInt(e.offsetX):0,l=e.offsetY?parseInt(e.offsetY):0;if(a===0){let t=i.append(`line`);t.attr(`x1`,e.startPoint.x),t.attr(`y1`,e.startPoint.y),t.attr(`x2`,e.endPoint.x),t.attr(`y2`,e.endPoint.y),t.attr(`stroke-width`,`1`),t.attr(`stroke`,o),t.style(`fill`,`none`),e.type!==`rel_b`&&t.attr(`marker-end`,`url(#`+r+`-arrowhead)`),(e.type===`birel`||e.type===`rel_b`)&&t.attr(`marker-start`,`url(#`+r+`-arrowend)`),a=-1}else{let t=i.append(`path`);t.attr(`fill`,`none`).attr(`stroke-width`,`1`).attr(`stroke`,o).attr(`d`,`Mstartx,starty Qcontrolx,controly stopx,stopy `.replaceAll(`startx`,e.startPoint.x).replaceAll(`starty`,e.startPoint.y).replaceAll(`controlx`,e.startPoint.x+(e.endPoint.x-e.startPoint.x)/2-(e.endPoint.x-e.startPoint.x)/4).replaceAll(`controly`,e.startPoint.y+(e.endPoint.y-e.startPoint.y)/2).replaceAll(`stopx`,e.endPoint.x).replaceAll(`stopy`,e.endPoint.y)),e.type!==`rel_b`&&t.attr(`marker-end`,`url(#`+r+`-arrowhead)`),(e.type===`birel`||e.type===`rel_b`)&&t.attr(`marker-start`,`url(#`+r+`-arrowend)`)}let u=n.messageFont();Y(n)(e.label.text,i,Math.min(e.startPoint.x,e.endPoint.x)+Math.abs(e.endPoint.x-e.startPoint.x)/2+s,Math.min(e.startPoint.y,e.endPoint.y)+Math.abs(e.endPoint.y-e.startPoint.y)/2+l,e.label.width,e.label.height,{fill:t},u),e.techn&&e.techn.text!==``&&(u=n.messageFont(),Y(n)(`[`+e.techn.text+`]`,i,Math.min(e.startPoint.x,e.endPoint.x)+Math.abs(e.endPoint.x-e.startPoint.x)/2+s,Math.min(e.startPoint.y,e.endPoint.y)+Math.abs(e.endPoint.y-e.startPoint.y)/2+n.messageFontSize+5+l,Math.max(e.label.width,e.techn.width),e.techn.height,{fill:t,"font-style":`italic`},u))}},`drawRels`),he=t(function(e,t,n){let r=e.append(`g`),i=t.bgColor?t.bgColor:`none`,a=t.borderColor?t.borderColor:`#444444`,o=t.fontColor?t.fontColor:`black`,s={"stroke-width":1,"stroke-dasharray":`7.0,7.0`};t.nodeType&&(s={"stroke-width":1}),fe(r,{x:t.x,y:t.y,fill:i,stroke:a,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:s});let l=n.boundaryFont();l.fontWeight=`bold`,l.fontSize+=2,l.fontColor=o,Y(n)(t.label.text,r,t.x,t.y+t.label.Y,t.width,t.height,{fill:`#444444`},l),t.type&&t.type.text!==``&&(l=n.boundaryFont(),l.fontColor=o,Y(n)(t.type.text,r,t.x,t.y+t.type.Y,t.width,t.height,{fill:`#444444`},l)),t.descr&&t.descr.text!==``&&(l=n.boundaryFont(),l.fontSize-=2,l.fontColor=o,Y(n)(t.descr.text,r,t.x,t.y+t.descr.Y,t.width,t.height,{fill:`#444444`},l))},`drawBoundary`),ge=t(function(e,t,n){let r=t.bgColor?t.bgColor:n[t.typeC4Shape.text+`_bg_color`],i=t.borderColor?t.borderColor:n[t.typeC4Shape.text+`_border_color`],a=t.fontColor?t.fontColor:`#FFFFFF`,o=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=`;switch(t.typeC4Shape.text){case`person`:o=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=`;break;case`external_person`:o=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=`;break}let s=e.append(`g`);s.attr(`class`,`person-man`);let l=y();switch(t.typeC4Shape.text){case`person`:case`external_person`:case`system`:case`external_system`:case`container`:case`external_container`:case`component`:case`external_component`:l.x=t.x,l.y=t.y,l.fill=r,l.width=t.width,l.height=t.height,l.stroke=i,l.rx=2.5,l.ry=2.5,l.attrs={"stroke-width":.5},fe(s,l);break;case`system_db`:case`external_system_db`:case`container_db`:case`external_container_db`:case`component_db`:case`external_component_db`:s.append(`path`).attr(`fill`,r).attr(`stroke-width`,`0.5`).attr(`stroke`,i).attr(`d`,`Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height`.replaceAll(`startx`,t.x).replaceAll(`starty`,t.y).replaceAll(`half`,t.width/2).replaceAll(`height`,t.height)),s.append(`path`).attr(`fill`,`none`).attr(`stroke-width`,`0.5`).attr(`stroke`,i).attr(`d`,`Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10`.replaceAll(`startx`,t.x).replaceAll(`starty`,t.y).replaceAll(`half`,t.width/2));break;case`system_queue`:case`external_system_queue`:case`container_queue`:case`external_container_queue`:case`component_queue`:case`external_component_queue`:s.append(`path`).attr(`fill`,r).attr(`stroke-width`,`0.5`).attr(`stroke`,i).attr(`d`,`Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half`.replaceAll(`startx`,t.x).replaceAll(`starty`,t.y).replaceAll(`width`,t.width).replaceAll(`half`,t.height/2)),s.append(`path`).attr(`fill`,`none`).attr(`stroke-width`,`0.5`).attr(`stroke`,i).attr(`d`,`Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half`.replaceAll(`startx`,t.x+t.width).replaceAll(`starty`,t.y).replaceAll(`half`,t.height/2));break}let u=we(n,t.typeC4Shape.text);switch(s.append(`text`).attr(`fill`,a).attr(`font-family`,u.fontFamily).attr(`font-size`,u.fontSize-2).attr(`font-style`,`italic`).attr(`lengthAdjust`,`spacing`).attr(`textLength`,t.typeC4Shape.width).attr(`x`,t.x+t.width/2-t.typeC4Shape.width/2).attr(`y`,t.y+t.typeC4Shape.Y).text(`<<`+t.typeC4Shape.text+`>>`),t.typeC4Shape.text){case`person`:case`external_person`:pe(s,48,48,t.x+t.width/2-24,t.y+t.image.Y,o);break}let d=n[t.typeC4Shape.text+`Font`]();return d.fontWeight=`bold`,d.fontSize+=2,d.fontColor=a,Y(n)(t.label.text,s,t.x,t.y+t.label.Y,t.width,t.height,{fill:a},d),d=n[t.typeC4Shape.text+`Font`](),d.fontColor=a,t.techn&&t.techn?.text!==``?Y(n)(t.techn.text,s,t.x,t.y+t.techn.Y,t.width,t.height,{fill:a,"font-style":`italic`},d):t.type&&t.type.text!==``&&Y(n)(t.type.text,s,t.x,t.y+t.type.Y,t.width,t.height,{fill:a,"font-style":`italic`},d),t.descr&&t.descr.text!==``&&(d=n.personFont(),d.fontColor=a,Y(n)(t.descr.text,s,t.x,t.y+t.descr.Y,t.width,t.height,{fill:a},d)),t.height},`drawC4Shape`),_e=t(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-database`).attr(`fill-rule`,`evenodd`).attr(`clip-rule`,`evenodd`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z`)},`insertDatabaseIcon`),ve=t(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-computer`).attr(`width`,`24`).attr(`height`,`24`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z`)},`insertComputerIcon`),ye=t(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-clock`).attr(`width`,`24`).attr(`height`,`24`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z`)},`insertClockIcon`),be=t(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-arrowhead`).attr(`refX`,9).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`)},`insertArrowHead`),xe=t(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-arrowend`).attr(`refX`,1).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 10 0 L 0 5 L 10 10 z`)},`insertArrowEnd`),Se=t(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-filled-head`).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`)},`insertArrowFilledHead`),Ce=t(function(e,t){let n=e.append(`defs`).append(`marker`).attr(`id`,t+`-crosshead`).attr(`markerWidth`,15).attr(`markerHeight`,8).attr(`orient`,`auto`).attr(`refX`,16).attr(`refY`,4);n.append(`path`).attr(`fill`,`black`).attr(`stroke`,`#000000`).style(`stroke-dasharray`,`0, 0`).attr(`stroke-width`,`1px`).attr(`d`,`M 9,2 V 6 L16,4 Z`),n.append(`path`).attr(`fill`,`none`).attr(`stroke`,`#000000`).style(`stroke-dasharray`,`0, 0`).attr(`stroke-width`,`1px`).attr(`d`,`M 0,1 L 6,7 M 6,1 L 0,7`)},`insertArrowCrossHead`),we=t((e,t)=>({fontFamily:e[t+`FontFamily`],fontSize:e[t+`FontSize`],fontWeight:e[t+`FontWeight`]}),`getC4ShapeFont`),Y=(function(){function e(e,t,n,r,a,o,s){i(t.append(`text`).attr(`x`,n+a/2).attr(`y`,r+o/2+5).style(`text-anchor`,`middle`).text(e),s)}t(e,`byText`);function n(e,t,n,r,a,o,s,l){let{fontSize:d,fontFamily:f,fontWeight:p}=l,m=e.split(u.lineBreakRegex);for(let e=0;e=this.data.widthLimit||n>=this.data.widthLimit||this.nextData.cnt>De)&&(t=this.nextData.startx+e.margin+Z.nextLinePaddingX,r=this.nextData.stopy+e.margin*2,this.nextData.stopx=n=t+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=i=r+e.height,this.nextData.cnt=1),e.x=t,e.y=r,this.updateVal(this.data,`startx`,t,Math.min),this.updateVal(this.data,`starty`,r,Math.min),this.updateVal(this.data,`stopx`,n,Math.max),this.updateVal(this.data,`stopy`,i,Math.max),this.updateVal(this.nextData,`startx`,t,Math.min),this.updateVal(this.nextData,`starty`,r,Math.min),this.updateVal(this.nextData,`stopx`,n,Math.max),this.updateVal(this.nextData,`stopy`,i,Math.max)}init(e){this.name=``,this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},Ae(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},Ae=t(function(e){f(Z,e),e.fontFamily&&(Z.personFontFamily=Z.systemFontFamily=Z.messageFontFamily=e.fontFamily),e.fontSize&&(Z.personFontSize=Z.systemFontSize=Z.messageFontSize=e.fontSize),e.fontWeight&&(Z.personFontWeight=Z.systemFontWeight=Z.messageFontWeight=e.fontWeight)},`setConf`),je=t((e,t)=>({fontFamily:e[t+`FontFamily`],fontSize:e[t+`FontSize`],fontWeight:e[t+`FontWeight`]}),`c4ShapeFont`),Me=t(e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),`boundaryFont`),Ne=t(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),`messageFont`);function Q(e,t,n,r,i){if(!t[e].width)if(n)t[e].text=_(t[e].text,i,r),t[e].textLines=t[e].text.split(u.lineBreakRegex).length,t[e].width=i,t[e].height=h(t[e].text,r);else{let n=t[e].text.split(u.lineBreakRegex);t[e].textLines=n.length;let i=0;t[e].height=0,t[e].width=0;for(let a of n)t[e].width=Math.max(g(a,r),t[e].width),i=h(a,r),t[e].height=t[e].height+i}}t(Q,`calcC4ShapeTextWH`);var Pe=t(function(e,t,n){t.x=n.data.startx,t.y=n.data.starty,t.width=n.data.stopx-n.data.startx,t.height=n.data.stopy-n.data.starty,t.label.y=Z.c4ShapeMargin-35;let r=t.wrap&&Z.wrap,i=Me(Z);i.fontSize+=2,i.fontWeight=`bold`,Q(`label`,t,r,i,g(t.label.text,i)),X.drawBoundary(e,t,Z)},`drawBoundary`),Fe=t(function(e,t,n,r){let i=0;for(let a of r){i=0;let r=n[a],o=je(Z,r.typeC4Shape.text);switch(o.fontSize-=2,r.typeC4Shape.width=g(`«`+r.typeC4Shape.text+`»`,o),r.typeC4Shape.height=o.fontSize+2,r.typeC4Shape.Y=Z.c4ShapePadding,i=r.typeC4Shape.Y+r.typeC4Shape.height-4,r.image={width:0,height:0,Y:0},r.typeC4Shape.text){case`person`:case`external_person`:r.image.width=48,r.image.height=48,r.image.Y=i,i=r.image.Y+r.image.height;break}r.sprite&&(r.image.width=48,r.image.height=48,r.image.Y=i,i=r.image.Y+r.image.height);let s=r.wrap&&Z.wrap,l=Z.width-Z.c4ShapePadding*2,u=je(Z,r.typeC4Shape.text);u.fontSize+=2,u.fontWeight=`bold`,Q(`label`,r,s,u,l),r.label.Y=i+8,i=r.label.Y+r.label.height,r.type&&r.type.text!==``?(r.type.text=`[`+r.type.text+`]`,Q(`type`,r,s,je(Z,r.typeC4Shape.text),l),r.type.Y=i+5,i=r.type.Y+r.type.height):r.techn&&r.techn.text!==``&&(r.techn.text=`[`+r.techn.text+`]`,Q(`techn`,r,s,je(Z,r.techn.text),l),r.techn.Y=i+5,i=r.techn.Y+r.techn.height);let d=i,f=r.label.width;r.descr&&r.descr.text!==``&&(Q(`descr`,r,s,je(Z,r.typeC4Shape.text),l),r.descr.Y=i+20,i=r.descr.Y+r.descr.height,f=Math.max(r.label.width,r.descr.width),d=i-r.descr.textLines*5),f+=Z.c4ShapePadding,r.width=Math.max(r.width||Z.width,f,Z.width),r.height=Math.max(r.height||Z.height,d,Z.height),r.margin=r.margin||Z.c4ShapeMargin,e.insert(r),X.drawC4Shape(t,r,Z)}e.bumpLastMargin(Z.c4ShapeMargin)},`drawC4ShapeArray`),$=class{static{t(this,`Point`)}constructor(e,t){this.x=e,this.y=t}},Ie=t(function(e,t){let n=e.x,r=e.y,i=t.x,a=t.y,o=n+e.width/2,s=r+e.height/2,l=Math.abs(n-i),u=Math.abs(r-a),d=u/l,f=e.height/e.width,p=null;return r==a&&ni?p=new $(n,s):n==i&&ra&&(p=new $(o,r)),n>i&&r=d?new $(n,s+d*e.width/2):new $(o-l/u*e.height/2,r+e.height):n=d?new $(n+e.width,s+d*e.width/2):new $(o+l/u*e.height/2,r+e.height):na?p=f>=d?new $(n+e.width,s-d*e.width/2):new $(o+e.height/2*l/u,r):n>i&&r>a&&(p=f>=d?new $(n,s-e.width/2*d):new $(o-e.height/2*l/u,r)),p},`getIntersectPoint`),Le=t(function(e,t){let n={x:0,y:0};n.x=t.x+t.width/2,n.y=t.y+t.height/2;let r=Ie(e,n);return n.x=e.x+e.width/2,n.y=e.y+e.height/2,{startPoint:r,endPoint:Ie(t,n)}},`getIntersectPoints`),Re=t(function(e,t,n,r,i){let a=0;for(let e of t){a+=1;let t=e.wrap&&Z.wrap,i=Ne(Z);r.db.getC4Type()===`C4Dynamic`&&(e.label.text=a+`: `+e.label.text);let o=g(e.label.text,i);Q(`label`,e,t,i,o),e.techn&&e.techn.text!==``&&(o=g(e.techn.text,i),Q(`techn`,e,t,i,o)),e.descr&&e.descr.text!==``&&(o=g(e.descr.text,i),Q(`descr`,e,t,i,o));let s=Le(n(e.from),n(e.to));e.startPoint=s.startPoint,e.endPoint=s.endPoint}X.drawRels(e,t,Z,i)},`drawRels`);function ze(e,t,n,r,i){let a=new ke(i);a.data.widthLimit=n.data.widthLimit/Math.min(Oe,r.length);for(let[o,s]of r.entries()){let r=0;s.image={width:0,height:0,Y:0},s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=r,r=s.image.Y+s.image.height);let l=s.wrap&&Z.wrap,u=Me(Z);if(u.fontSize+=2,u.fontWeight=`bold`,Q(`label`,s,l,u,a.data.widthLimit),s.label.Y=r+8,r=s.label.Y+s.label.height,s.type&&s.type.text!==``&&(s.type.text=`[`+s.type.text+`]`,Q(`type`,s,l,Me(Z),a.data.widthLimit),s.type.Y=r+5,r=s.type.Y+s.type.height),s.descr&&s.descr.text!==``){let e=Me(Z);e.fontSize-=2,Q(`descr`,s,l,e,a.data.widthLimit),s.descr.Y=r+20,r=s.descr.Y+s.descr.height}if(o==0||o%Oe===0){let e=n.data.startx+Z.diagramMarginX,t=n.data.stopy+Z.diagramMarginY+r;a.setData(e,e,t,t)}else{let e=a.data.stopx===a.data.startx?a.data.startx:a.data.stopx+Z.diagramMarginX,t=a.data.starty;a.setData(e,e,t,t)}a.name=s.alias;let d=i.db.getC4ShapeArray(s.alias),f=i.db.getC4ShapeKeys(s.alias);f.length>0&&Fe(a,e,d,f),t=s.alias;let p=i.db.getBoundaries(t);p.length>0&&ze(e,t,a,p,i),s.alias!==`global`&&Pe(e,s,a),n.data.stopy=Math.max(a.data.stopy+Z.c4ShapeMargin,n.data.stopy),n.data.stopx=Math.max(a.data.stopx+Z.c4ShapeMargin,n.data.stopx),Te=Math.max(Te,n.data.stopx),Ee=Math.max(Ee,n.data.stopy)}}t(ze,`drawInsideBoundary`);var Be={drawPersonOrSystemArray:Fe,drawBoundary:Pe,setConf:Ae,draw:t(function(e,t,a,o){Z=i().c4;let s=i().securityLevel,l;s===`sandbox`&&(l=n(`#i`+t));let u=n(s===`sandbox`?l.nodes()[0].contentDocument.body:`body`),f=o.db;o.db.setWrap(Z.wrap),De=f.getC4ShapeInRow(),Oe=f.getC4BoundaryInRow(),r.debug(`C:${JSON.stringify(Z,null,2)}`);let p=s===`sandbox`?u.select(`[id="${t}"]`):n(`[id="${t}"]`);X.insertComputerIcon(p,t),X.insertDatabaseIcon(p,t),X.insertClockIcon(p,t);let m=new ke(o);m.setData(Z.diagramMarginX,Z.diagramMarginX,Z.diagramMarginY,Z.diagramMarginY),m.data.widthLimit=screen.availWidth,Te=Z.diagramMarginX,Ee=Z.diagramMarginY;let h=o.db.getTitle();ze(p,``,m,o.db.getBoundaries(``),o),X.insertArrowHead(p,t),X.insertArrowEnd(p,t),X.insertArrowCrossHead(p,t),X.insertArrowFilledHead(p,t),Re(p,o.db.getRels(),o.db.getC4Shape,o,t),m.data.stopx=Te,m.data.stopy=Ee;let g=m.data,_=g.stopy-g.starty+2*Z.diagramMarginY,v=g.stopx-g.startx+2*Z.diagramMarginX;h&&p.append(`text`).text(h).attr(`x`,(g.stopx-g.startx)/2-4*Z.diagramMarginX).attr(`y`,g.starty+Z.diagramMarginY),d(p,_,v,Z.useMaxWidth);let y=h?60:0;p.attr(`viewBox`,g.startx-Z.diagramMarginX+` -`+(Z.diagramMarginY+y)+` `+v+` `+(_+y)),r.debug(`models:`,g)},`draw`)},Ve={parser:x,db:ue,renderer:Be,styles:t(e=>`.person { + stroke: ${e.personBorder}; + fill: ${e.personBkg}; + } +`,`getStyles`),init:t(({c4:e,wrap:t})=>{Be.setConf(e),ue.setWrap(t)},`init`)};export{Ve as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/chunk-234R4QNB-By2FNiLO.js b/docs/dist/assets/chunk-234R4QNB-By2FNiLO.js new file mode 100644 index 00000000..534bdfcb --- /dev/null +++ b/docs/dist/assets/chunk-234R4QNB-By2FNiLO.js @@ -0,0 +1,321 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";function t(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=t.length?{done:!0}:{done:!1,value:t[i++]}},`n`),e:e(function(e){throw e},`e`),f:a}}throw TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,s=!0,c=!1;return{s:e(function(){r=r.call(t)},`s`),n:e(function(){var e=r.next();return s=e.done,e},`n`),e:e(function(e){c=!0,o=e},`e`),f:e(function(){try{s||r.return==null||r.return()}finally{if(c)throw o}},`f`)}}e(s,`_createForOfIteratorHelper`);function c(e,t,n){return(t=g(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e(c,`_defineProperty$1`);function l(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}e(l,`_iterableToArray`);function u(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}e(u,`_iterableToArrayLimit`);function d(){throw TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e(d,`_nonIterableRest`);function f(){throw TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e(f,`_nonIterableSpread`);function p(e,t){return n(e)||u(e,t)||v(e,t)||d()}e(p,`_slicedToArray`);function m(e){return r(e)||l(e)||v(e)||f()}e(m,`_toConsumableArray`);function h(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}e(h,`_toPrimitive`);function g(e){var t=h(e,`string`);return typeof t==`symbol`?t:t+``}e(g,`_toPropertyKey`);function _(e){"@babel/helpers - typeof";return _=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},_(e)}e(_,`_typeof`);function v(e,n){if(e){if(typeof e==`string`)return t(e,n);var r={}.toString.call(e).slice(8,-1);return r===`Object`&&e.constructor&&(r=e.constructor.name),r===`Map`||r===`Set`?Array.from(e):r===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}e(v,`_unsupportedIterableToArray`);var y=typeof window>`u`?null:window,b=y?y.navigator:null;y&&y.document;var x=_(``),S=_({}),C=_(function(){}),w=typeof HTMLElement>`u`?`undefined`:_(HTMLElement),T=e(function(e){return e&&e.instanceString&&D(e.instanceString)?e.instanceString():null},`instanceStr`),E=e(function(e){return e!=null&&_(e)==x},`string`),D=e(function(e){return e!=null&&_(e)===C},`fn`),O=e(function(e){return!P(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},`array`),k=e(function(e){return e!=null&&_(e)===S&&!O(e)&&e.constructor===Object},`plainObject`),A=e(function(e){return e!=null&&_(e)===S},`object`),j=e(function(e){return e!=null&&_(e)===_(1)&&!isNaN(e)},`number`),M=e(function(e){return j(e)&&Math.floor(e)===e},`integer`),N=e(function(e){if(w!==`undefined`)return e!=null&&e instanceof HTMLElement},`htmlElement`),P=e(function(e){return F(e)||I(e)},`elementOrCollection`),F=e(function(e){return T(e)===`collection`&&e._private.single},`element`),I=e(function(e){return T(e)===`collection`&&!e._private.single},`collection`),L=e(function(e){return T(e)===`core`},`core`),R=e(function(e){return T(e)===`stylesheet`},`stylesheet`),z=e(function(e){return T(e)===`event`},`event`),B=e(function(e){return e==null?!0:!!(e===``||e.match(/^\s+$/))},`emptyString`),V=e(function(e){return typeof HTMLElement>`u`?!1:e instanceof HTMLElement},`domElement`),H=e(function(e){return k(e)&&j(e.x1)&&j(e.x2)&&j(e.y1)&&j(e.y2)},`boundingBox`),U=e(function(e){return A(e)&&D(e.then)},`promise`),W=e(function(){return b&&b.userAgent.match(/msie|trident|edge/i)},`ms`),G=e(function(t,n){n||=e(function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return`undefined`;for(var e=[],t=0;tt)},`ascending`),ce=e(function(e,t){return-1*se(e,t)},`descending`),Z=Object.assign==null?function(e){for(var t=arguments,n=1;n1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}e(u,`hue2rgb`);var d=RegExp(`^`+re+`$`).exec(t);if(d){if(r=parseInt(d[1]),r<0?r=(360- -1*r%360)%360:r>360&&(r%=360),r/=360,i=parseFloat(d[2]),i<0||i>100||(i/=100,a=parseFloat(d[3]),a<0||a>100)||(a/=100,o=d[4],o!==void 0&&(o=parseFloat(o),o<0||o>1)))return;if(i===0)s=c=l=Math.round(a*255);else{var f=a<.5?a*(1+i):a+i-a*i,p=2*a-f;s=Math.round(255*u(p,f,r+1/3)),c=Math.round(255*u(p,f,r)),l=Math.round(255*u(p,f,r-1/3))}n=[s,c,l,o]}return n},`hsl2tuple`),de=e(function(e){var t,n=RegExp(`^`+te+`$`).exec(e);if(n){t=[];for(var r=[],i=1;i<=3;i++){var a=n[i];if(a[a.length-1]===`%`&&(r[i]=!0),a=parseFloat(a),r[i]&&(a=a/100*255),a<0||a>255)return;t.push(Math.floor(a))}var o=r[1]||r[2]||r[3],s=r[1]&&r[2]&&r[3];if(o&&!s)return;var c=n[4];if(c!==void 0){if(c=parseFloat(c),c<0||c>1)return;t.push(c)}}return t},`rgb2tuple`),fe=e(function(e){return me[e.toLowerCase()]},`colorname2tuple`),pe=e(function(e){return(O(e)?e:null)||fe(e)||le(e)||de(e)||ue(e)},`color2tuple`),me={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},he=e(function(e){for(var t=e.map,n=e.keys,r=n.length,i=0;i=c||t<0||v&&n>=f}e(C,`shouldInvoke`);function w(){var e=n();if(C(e))return T(e);m=setTimeout(w,S(e))}e(w,`timerExpired`);function T(e){return m=void 0,y&&u?b(e):(u=d=void 0,p)}e(T,`trailingEdge`);function E(){m!==void 0&&clearTimeout(m),g=0,u=h=d=m=void 0}e(E,`cancel`);function D(){return m===void 0?p:T(n())}e(D,`flush`);function O(){var e=n(),t=C(e);if(u=arguments,d=this,h=e,t){if(m===void 0)return x(h);if(v)return clearTimeout(m),m=setTimeout(w,c),b(h)}return m===void 0&&(m=setTimeout(w,c)),p}return e(O,`debounced`),O.cancel=E,O.flush=D,O}return e(s,`debounce`),it=s,it}e(ot,`requireDebounce`);var st=ve(ot()),ct=y?y.performance:null,lt=ct&&ct.now?function(){return ct.now()}:function(){return Date.now()},ut=(function(){if(y){if(y.requestAnimationFrame)return function(e){y.requestAnimationFrame(e)};if(y.mozRequestAnimationFrame)return function(e){y.mozRequestAnimationFrame(e)};if(y.webkitRequestAnimationFrame)return function(e){y.webkitRequestAnimationFrame(e)};if(y.msRequestAnimationFrame)return function(e){y.msRequestAnimationFrame(e)}}return function(e){e&&setTimeout(function(){e(lt())},1e3/60)}})(),dt=e(function(e){return ut(e)},`requestAnimationFrame`),ft=lt,pt=9261,mt=65599,ht=5381,gt=e(function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pt,n;n=e.next(),!n.done;)t=t*mt+n.value|0;return t},`hashIterableInts`),_t=e(function(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:pt)*mt+e|0},`hashInt`),vt=e(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ht;return(t<<5)+t+e|0},`hashIntAlt`),yt=e(function(e,t){return e*2097152+t},`combineHashes`),bt=e(function(e){return e[0]*2097152+e[1]},`combineHashesArray`),xt=e(function(e,t){return[_t(e[0],t[0]),vt(e[1],t[1])]},`hashArrays`),St=e(function(t,n){var r={value:0,done:!1},i=0,a=t.length;return gt({next:e(function(){return i=0;r--)e[r]===t&&e.splice(r,1)},`removeFromArray`),Jt=e(function(e){e.splice(0,e.length)},`clearArray`),Yt=e(function(e,t){for(var n=0;n`u`?`undefined`:_(Set))===$t?en:Set,nn=e(function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||t===void 0||!L(e)){Lt(`An element must have a core reference and parameters set`);return}var r=t.group;if(r??=t.data&&t.data.source!=null&&t.data.target!=null?`edges`:`nodes`,r!==`nodes`&&r!==`edges`){Lt("An element must be of type `nodes` or `edges`; you specified `"+r+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:t.data||{},position:t.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:r,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!t.selected,selectable:t.selectable===void 0?!0:!!t.selectable,locked:!!t.locked,grabbed:!1,grabbable:t.grabbable===void 0?!0:!!t.grabbable,pannable:t.pannable===void 0?r===`edges`:!!t.pannable,active:!1,classes:new tn,animation:{current:[],queue:[]},rscratch:{},scratch:t.scratch||{},edges:[],children:[],parent:t.parent&&t.parent.isNode()?t.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(i.position.x??(i.position.x=0),i.position.y??(i.position.y=0),t.renderedPosition){var a=t.renderedPosition,o=e.pan(),s=e.zoom();i.position={x:(a.x-o.x)/s,y:(a.y-o.y)/s}}var c=[];O(t.classes)?c=t.classes:E(t.classes)&&(c=t.classes.split(/\s+/));for(var l=0,u=c.length;lt)},`defaultCmp`),u=e(function(e,t,n,a,o){var s;if(n??=0,o??=r,n<0)throw Error(`lo must be non-negative`);for(a??=e.length;nn;0<=n?t++:t--)l.push(t);return l}).apply(this).reverse(),c=[],a=0,o=s.length;ah;0<=h?++f:--f)g.push(o(e,n));return g},`nsmallest`),h=e(function(e,t,n,i){var a,o,s;for(i??=r,a=e[n];n>t;){if(s=n-1>>1,o=e[s],i(a,o)<0){e[n]=o,n=s;continue}break}return e[n]=a},`_siftdown`),g=e(function(e,t,n){var i,a,o,s,c;for(n??=r,a=e.length,c=t,o=e[t],i=2*t+1;i0;){var S=v.pop(),C=g(S),w=S.id();if(f[w]=C,C!==1/0)for(var T=S.neighborhood().intersect(m),D=0;D0)for(n.unshift(t);d[i];){var a=d[i];n.unshift(a.edge),n.unshift(a.node),r=a.node,i=r.id()}return s.spawn(n)},`pathTo`)}},`dijkstra`)},gn={kruskal:e(function(t){t||=function(e){return 1};for(var n=this.byGroup(),r=n.nodes,i=n.edges,a=r.length,o=Array(a),s=r,c=e(function(e){for(var t=0;t0;){if(x(),C++,b===u){for(var w=[],T=a,E=u,D=_[E];w.unshift(T),D!=null&&w.unshift(D),T=g[E],T!=null;)E=T.id(),D=_[E];return{found:!0,distance:d[b],path:this.spawn(w),steps:C}}p[b]=!0;for(var O=y._private.edges,k=0;kD&&(m[T]=D,_[T]=w,v[T]=b),!a){var O=w*u+C;!a&&m[O]>D&&(m[O]=D,_[O]=C,v[O]=b)}}}for(var k=0;k1&&arguments[1]!==void 0?arguments[1]:o,r=y(e),i=[],a=r;;){if(a==null)return n.spawn();var s=v(a),l=s.edge,u=s.pred;if(i.unshift(a[0]),a.same(t)&&i.length>0)break;l!=null&&i.unshift(l),a=u}return c.spawn(i)},`pathTo`),S=0;S=0;l--){var u=c[l],d=u[1],f=u[2];(t[d]===o&&t[f]===s||t[d]===s&&t[f]===o)&&c.splice(l,1)}for(var p=0;pr;)t=wn(Math.floor(Math.random()*t.length),e,t),n--;return t},`contractUntil`),En={kargerStein:e(function(){var t=this,n=this.byGroup(),r=n.nodes,i=n.edges;i.unmergeBy(function(e){return e.isLoop()});var a=r.length,o=i.length,s=Math.ceil((Math.log(a)/Math.LN2)**2),c=Math.floor(a/Cn);if(a<2){Lt(`At least 2 nodes are required for Karger-Stein algorithm`);return}for(var l=[],u=0;u1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=1/0,i=t;i1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=-1/0,i=t;i1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=0,i=0,a=t;a1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;r?e=e.slice(t,n):(n0&&e.splice(0,t));for(var o=0,s=e.length-1;s>=0;s--){var c=e[s];a?isFinite(c)||(e[s]=-1/0,o++):e.splice(s,1)}i&&e.sort(function(e,t){return e-t});var l=e.length,u=Math.floor(l/2);return l%2==0?(e[u-1+o]+e[u+o])/2:e[u+1+o]},`median`),Fn=e(function(e){return Math.PI*e/180},`deg2rad`),In=e(function(e,t){return Math.atan2(t,e)-Math.PI/2},`getAngleFromDisp`),Ln=Math.log2||function(e){return Math.log(e)/Math.log(2)},Rn=e(function(e){return e>0?1:e<0?-1:0},`signum`),zn=e(function(e,t){return Math.sqrt(Bn(e,t))},`dist`),Bn=e(function(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r},`sqdist`),Vn=e(function(e){for(var t=e.length,n=0,r=0;r=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},`makeBoundingBox`),qn=e(function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},`copyBoundingBox`),Jn=e(function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},`clearBoundingBox`),Yn=e(function(e,t){e.x1=Math.min(e.x1,t.x1),e.x2=Math.max(e.x2,t.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,t.y1),e.y2=Math.max(e.y2,t.y2),e.h=e.y2-e.y1},`updateBoundingBox`),Xn=e(function(e,t,n){e.x1=Math.min(e.x1,t),e.x2=Math.max(e.x2,t),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,n),e.y2=Math.max(e.y2,n),e.h=e.y2-e.y1},`expandBoundingBoxByPoint`),Zn=e(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=t,e.x2+=t,e.y1-=t,e.y2+=t,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},`expandBoundingBox`),Qn=e(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],n,r,i,a;if(t.length===1)n=r=i=a=t[0];else if(t.length===2)n=i=t[0],a=r=t[1];else if(t.length===4){var o=p(t,4);n=o[0],r=o[1],i=o[2],a=o[3]}return e.x1-=a,e.x2+=r,e.y1-=n,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},`expandBoundingBoxSides`),$n=e(function(e,t){e.x1=t.x1,e.y1=t.y1,e.x2=t.x2,e.y2=t.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},`assignBoundingBox`),er=e(function(e,t){return!(e.x1>t.x2||t.x1>e.x2||e.x2t.y2||t.y1>e.y2)},`boundingBoxesIntersect`),tr=e(function(e,t,n){return e.x1<=t&&t<=e.x2&&e.y1<=n&&n<=e.y2},`inBoundingBox`),nr=e(function(e,t){return tr(e,t.x,t.y)},`pointInBoundingBox`),rr=e(function(e,t){return tr(e,t.x1,t.y1)&&tr(e,t.x2,t.y2)},`boundingBoxInBoundingBox`),ir=Math.hypot??function(e,t){return Math.sqrt(e*e+t*t)};function ar(t,n){if(t.length<3)throw Error(`Need at least 3 vertices`);var r=e(function(e,t){return{x:e.x+t.x,y:e.y+t.y}},`add`),i=e(function(e,t){return{x:e.x-t.x,y:e.y-t.y}},`sub`),a=e(function(e,t){return{x:e.x*t,y:e.y*t}},`scale`),o=e(function(e,t){return e.x*t.y-e.y*t.x},`cross`),s=e(function(e){var t=ir(e.x,e.y);return t===0?{x:0,y:0}:{x:e.x/t,y:e.y/t}},`normalize`),c=e(function(e){for(var t=0,n=0;n7&&arguments[7]!==void 0?arguments[7]:`auto`,c=s===`auto`?jr(i,a):s,l=i/2,u=a/2;c=Math.min(c,l,u);var d=c!==l,f=c!==u,p;if(d){var m=n-l+c-o,h=r-u-o;if(p=Cr(e,t,n,r,m,h,n+l-c+o,h,!1),p.length>0)return p}if(f){var g=n+l+o;if(p=Cr(e,t,n,r,g,r-u+c-o,g,r+u-c+o,!1),p.length>0)return p}if(d){var _=n-l+c-o,v=r+u+o;if(p=Cr(e,t,n,r,_,v,n+l-c+o,v,!1),p.length>0)return p}if(f){var y=n-l-o;if(p=Cr(e,t,n,r,y,r-u+c-o,y,r+u-c+o,!1),p.length>0)return p}var b,x=n-l+c,S=r-u+c;if(b=xr(e,t,n,r,x,S,c+o),b.length>0&&b[0]<=x&&b[1]<=S)return[b[0],b[1]];var C=n+l-c,w=r-u+c;if(b=xr(e,t,n,r,C,w,c+o),b.length>0&&b[0]>=C&&b[1]<=w)return[b[0],b[1]];var T=n+l-c,E=r+u-c;if(b=xr(e,t,n,r,T,E,c+o),b.length>0&&b[0]>=T&&b[1]>=E)return[b[0],b[1]];var D=n-l+c,O=r+u-c;return b=xr(e,t,n,r,D,O,c+o),b.length>0&&b[0]<=D&&b[1]>=O?[b[0],b[1]]:[]},`roundRectangleIntersectLine`),cr=e(function(e,t,n,r,i,a,o){var s=o,c=Math.min(n,i),l=Math.max(n,i),u=Math.min(r,a),d=Math.max(r,a);return c-s<=e&&e<=l+s&&u-s<=t&&t<=d+s},`inLineVicinity`),lr=e(function(e,t,n,r,i,a,o,s,c){var l={x1:Math.min(n,o,i)-c,x2:Math.max(n,o,i)+c,y1:Math.min(r,s,a)-c,y2:Math.max(r,s,a)+c};return!(el.x2||tl.y2)},`inBezierVicinity`),ur=e(function(e,t,n,r){n-=r;var i=t*t-4*e*n;if(i<0)return[];var a=Math.sqrt(i),o=2*e;return[(-t+a)/o,(-t-a)/o]},`solveQuadratic`),dr=e(function(e,t,n,r,i){e===0&&(e=1e-5),t/=e,n/=e,r/=e;var a,o=(3*n-t*t)/9,s=-(27*r)+t*(9*n-t*t*2),c,l,u,d,f;if(s/=54,a=o*o*o+s*s,i[1]=0,d=t/3,a>0){l=s+Math.sqrt(a),l=l<0?-((-l)**(1/3)):l**(1/3),u=s-Math.sqrt(a),u=u<0?-((-u)**(1/3)):u**(1/3),i[0]=-d+l+u,d+=(l+u)/2,i[4]=i[2]=-d,d=Math.sqrt(3)*(-u+l)/2,i[3]=d,i[5]=-d;return}if(i[5]=i[3]=0,a===0){f=s<0?-((-s)**(1/3)):s**(1/3),i[0]=-d+2*f,i[4]=i[2]=-(f+d);return}o=-o,c=o*o*o,c=Math.acos(s/Math.sqrt(c)),f=2*Math.sqrt(o),i[0]=-d+f*Math.cos(c/3),i[2]=-d+f*Math.cos((c+2*Math.PI)/3),i[4]=-d+f*Math.cos((c+4*Math.PI)/3)},`solveCubic`),fr=e(function(e,t,n,r,i,a,o,s){var c=1*n*n-4*n*i+2*n*o+4*i*i-4*i*o+o*o+r*r-4*r*a+2*r*s+4*a*a-4*a*s+s*s,l=9*n*i-3*n*n-3*n*o-6*i*i+3*i*o+9*r*a-3*r*r-3*r*s-6*a*a+3*a*s,u=3*n*n-6*n*i+n*o-n*e+2*i*i+2*i*e-o*e+3*r*r-6*r*a+r*s-r*t+2*a*a+2*a*t-s*t,d=1*n*i-n*n+n*e-i*e+r*a-r*r+r*t-a*t,f=[];dr(c,l,u,d,f);for(var p=1e-7,m=[],h=0;h<6;h+=2)Math.abs(f[h+1])=0&&f[h]<=1&&m.push(f[h]);m.push(1),m.push(0);for(var g=-1,_,v,y,b=0;b=0?yc?(e-i)*(e-i)+(t-a)*(t-a):l-d},`sqdistToFiniteLine`),mr=e(function(e,t,n){for(var r,i,a,o,s,c=0,l=0;l=e&&e>=a||r<=e&&e<=a)s=(e-r)/(a-r)*(o-i)+i,s>t&&c++;else continue;return c%2!=0},`pointInsidePolygonPoints`),hr=e(function(e,t,n,r,i,a,o,s,c){var l=Array(n.length),u;s[0]==null?u=s:(u=Math.atan(s[1]/s[0]),s[0]<0?u+=Math.PI/2:u=-u-Math.PI/2);for(var d=Math.cos(-u),f=Math.sin(-u),p=0;p0?_r(vr(l,-c)):l)},`pointInsidePolygon`),gr=e(function(e,t,n,r,i,a,o,s){for(var c=Array(n.length*2),l=0;l=0&&h<=1&&_.push(h),g>=0&&g<=1&&_.push(g),_.length===0)return[];var v=_[0]*s[0]+e,y=_[0]*s[1]+t;return _.length>1?_[0]==_[1]?[v,y]:[v,y,_[1]*s[0]+e,_[1]*s[1]+t]:[v,y]},`intersectLineCircle`),Sr=e(function(e,t,n){return t<=e&&e<=n||n<=e&&e<=t?e:e<=t&&t<=n||n<=t&&t<=e?t:n},`midOfThree`),Cr=e(function(e,t,n,r,i,a,o,s,c){var l=e-i,u=n-e,d=o-i,f=t-a,p=r-t,m=s-a,h=d*f-m*l,g=u*f-p*l,_=m*u-d*p;if(_!==0){var v=h/_,y=g/_,b=.001,x=0-b,S=1+b;return x<=v&&v<=S&&x<=y&&y<=S||c?[e+v*u,t+v*p]:[]}else if(h===0||g===0)return Sr(e,n,o)===o?[o,s]:Sr(e,n,i)===i?[i,a]:Sr(i,o,n)===n?[n,r]:[];else return[]},`finiteLinesIntersect`),wr=e(function(e,t,n,r,i){var a=[],o=r/2,s=i/2,c=t,l=n;a.push({x:c+o*e[0],y:l+s*e[1]});for(var u=1;u0?_r(vr(u,-s)):u}else f=n;for(var m,h,g,_,v=0;v2){for(var p=[l[0],l[1]],m=(p[0]-e)**2+(p[1]-t)**2,h=1;hu&&(u=t)},`set`),get:e(function(e){return l[e]},`get`)},f=0;f0?v.edgesTo(_)[0]:_.edgesTo(v)[0];var b=i(y);_=_.id(),l[_]>l[m]+b&&(l[_]=l[m]+b,u.nodes.indexOf(_)<0?u.push(_):u.updateItem(_),r[_]=0,n[_]=[]),l[_]==l[m]+b&&(r[_]=r[_]+r[m],n[_].push(m))}else for(var x=0;x0;){for(var T=t.pop(),E=0;E0&&o.push(n[s]);o.length!==0&&i.push(r.collection(o))}return i},`assign`),ti=e(function(e,t){for(var n=0;n5&&arguments[5]!==void 0?arguments[5]:ai,o=r,s,c,l=0;l=2?di(e,t,n,0,ci,li):di(e,t,n,0,si)},`euclidean`),squaredEuclidean:e(function(e,t,n){return di(e,t,n,0,ci)},`squaredEuclidean`),manhattan:e(function(e,t,n){return di(e,t,n,0,si)},`manhattan`),max:e(function(e,t,n){return di(e,t,n,-1/0,ui)},`max`)};fi[`squared-euclidean`]=fi.squaredEuclidean,fi.squaredeuclidean=fi.squaredEuclidean;function pi(e,t,n,r,i,a){var o=D(e)?e:fi[e]||fi.euclidean;return t===0&&D(e)?o(i,a):o(t,n,r,i,a)}e(pi,`clusteringDistance`);var mi=Kt({k:2,m:2,sensitivityThreshold:1e-4,distance:`euclidean`,maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),hi=e(function(e){return mi(e)},`setOptions`),gi=e(function(t,n,r,i,a){var o=a===`kMedoids`?function(e){return i[e](r)}:function(e){return r[e]},s=e(function(e){return i[e](n)},`getQ`),c=r,l=n;return pi(t,i.length,o,s,c,l)},`getDist`),_i=e(function(e,t,n){for(var r=n.length,i=Array(r),a=Array(r),o=Array(t),s=null,c=0;cn)return!1;return!0},`haveMatricesConverged`),Si=e(function(e,t,n){for(var r=0;ro&&(o=t[c][l],s=l);i[s].push(e[c])}for(var u=0;u=a.threshold||a.mode===`dendrogram`&&t.length===1)return!1;var m=n[o],h=n[i[o]],g=a.mode===`dendrogram`?{left:m,right:h,key:m.key}:{value:m.value.concat(h.value),key:m.key};t[m.index]=g,t.splice(h.index,1),n[m.key]=g;for(var _=0;_r[h.key][v.key]&&(c=r[h.key][v.key])):a.linkage===`max`?(c=r[m.key][v.key],r[m.key][v.key]0&&r.push(i);return r},`findExemplars`),Ki=e(function(e,t,n){for(var r=[],i=0;io&&(a=c,o=t[i*e+c])}a>0&&r.push(a)}for(var l=0;lc&&(s=l,c=u)}n[i]=a[s]}return r=Ki(e,t,n),r},`assign`),Ji=e(function(e){for(var t=this.cy(),n=this.nodes(),r=Hi(e),i={},a=0;a=E?(D=E,E=k,O=A):k>D&&(D=k);for(var j=0;j0);S[w%r.minIterations*o+L]=R,I+=R}if(I>0&&(w>=r.minIterations-1||w==r.maxIterations-1)){for(var z=0,B=0;B1||i>1)&&(s=!0),d[t]=[],e.outgoers().forEach(function(e){e.isEdge()&&d[t].push(e.id())})}else f[t]=[void 0,e.target().id()]}):o.forEach(function(e){var t=e.id();e.isNode()?(e.degree(!0)%2&&(c?l?s=!0:l=t:c=t),d[t]=[],e.connectedEdges().forEach(function(e){return d[t].push(e.id())})):f[t]=[e.source().id(),e.target().id()]});var p={found:!1,trail:void 0};if(s)return p;if(l&&c)if(a){if(u&&l!=u)return p;u=l}else if(u&&l!=u&&c!=u)return p;else u||=l;else u||=o[0].id();var m=e(function(e){for(var t=e,n=[e],r,i,o;d[t].length;)r=d[t].shift(),i=f[r][0],o=f[r][1],t==o?!a&&t!=i&&(d[i]=d[i].filter(function(e){return e!=r}),t=i):(d[o]=d[o].filter(function(e){return e!=r}),t=o),n.unshift(r),n.unshift(t);return n},`walk`),h=[],g=[];for(g=m(u);g.length!=1;)d[g[0]].length==0?(h.unshift(o.getElementById(g.shift())),h.unshift(o.getElementById(g.shift()))):g=m(g.shift()).concat(g);for(var _ in h.unshift(o.getElementById(g.shift())),d)if(d[_].length)return p;return p.found=!0,p.trail=this.spawn(h,!0),p},`hierholzer`)},Qi=e(function(){var t=this,n={},r=0,i=0,a=[],o=[],s={},c=e(function(e,r){for(var i=o.length-1,s=[],c=t.spawn();o[i].x!=e||o[i].y!=r;)s.push(o.pop().edge),i--;s.push(o.pop().edge),s.forEach(function(e){var r=e.connectedNodes().intersection(t);c.merge(e),r.forEach(function(e){var r=e.id(),i=e.connectedEdges().intersection(t);c.merge(e),n[r].cutVertex?c.merge(i.filter(function(e){return e.isLoop()})):c.merge(i)})}),a.push(c)},`buildComponent`),l=e(function(e,u,d){e===d&&(i+=1),n[u]={id:r,low:r++,cutVertex:!1};var f=t.getElementById(u).connectedEdges().intersection(t);if(f.size()===0)a.push(t.spawn(t.getElementById(u)));else{var p,m,h,g;f.forEach(function(t){p=t.source().id(),m=t.target().id(),h=p===u?m:p,h!==d&&(g=t.id(),s[g]||(s[g]=!0,o.push({x:u,y:h,edge:t})),h in n?n[u].low=Math.min(n[u].low,n[h].id):(l(e,h,u),n[u].low=Math.min(n[u].low,n[h].low),n[u].id<=n[h].low&&(n[u].cutVertex=!0,c(u,h))))})}},`biconnectedSearch`);t.forEach(function(e){if(e.isNode()){var t=e.id();t in n||(i=0,l(t,t),n[t].cutVertex=i>1)}});var u=Object.keys(n).filter(function(e){return n[e].cutVertex}).map(function(e){return t.getElementById(e)});return{cut:t.spawn(u),components:a}},`hopcroftTarjanBiconnected`),$i={hopcroftTarjanBiconnected:Qi,htbc:Qi,htb:Qi,hopcroftTarjanBiconnectedComponents:Qi},ea=e(function(){var t=this,n={},r=0,i=[],a=[],o=t.spawn(t),s=e(function(e){if(a.push(e),n[e]={index:r,low:r++,explored:!1},t.getElementById(e).connectedEdges().intersection(t).forEach(function(t){var r=t.target().id();r!==e&&(r in n||s(r),n[r].explored||(n[e].low=Math.min(n[e].low,n[r].low)))}),n[e].index===n[e].low){for(var c=t.spawn();;){var l=a.pop();if(c.merge(t.getElementById(l)),n[l].low=n[e].index,n[l].explored=!0,l===e)break}var u=c.edgesWith(c),d=c.merge(u);i.push(d),o=o.difference(d)}},`stronglyConnectedSearch`);return t.forEach(function(e){if(e.isNode()){var t=e.id();t in n||s(t)}}),{cut:o,components:i}},`tarjanStronglyConnected`),ta={tarjanStronglyConnected:ea,tsc:ea,tscc:ea,tarjanStronglyConnectedComponents:ea},na={};[an,hn,gn,vn,bn,Sn,En,Rr,Br,Hr,Wr,ii,ji,Bi,Yi,Zi,$i,ta].forEach(function(e){Z(na,e)});var ra=0,ia=1,aa=2,oa=e(function(e){if(!(this instanceof oa))return new oa(e);this.id=`Thenable/1.0.7`,this.state=ra,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof e==`function`&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))},`api`);oa.prototype={fulfill:e(function(e){return sa(this,ia,`fulfillValue`,e)},`fulfill`),reject:e(function(e){return sa(this,aa,`rejectReason`,e)},`reject`),then:e(function(e,t){var n=this,r=new oa;return n.onFulfilled.push(ua(e,r,`fulfill`)),n.onRejected.push(ua(t,r,`reject`)),ca(n),r.proxy},`then`)};var sa=e(function(e,t,n,r){return e.state===ra&&(e.state=t,e[n]=r,ca(e)),e},`deliver`),ca=e(function(e){e.state===ia?la(e,`onFulfilled`,e.fulfillValue):e.state===aa&&la(e,`onRejected`,e.rejectReason)},`execute`),la=e(function(t,n,r){if(t[n].length!==0){var i=t[n];t[n]=[];var a=e(function(){for(var e=0;e0},`animatedImpl`)},`animated`),clearQueue:e(function(){return e(function(){var e=this,t=e.length===void 0?[e]:e;if(!(this._private.cy||this).styleEnabled())return this;for(var n=0;n-1}return e(n,`listCacheHas`),Eo=n,Eo}e(Oo,`require_listCacheHas`);var ko,Ao;function jo(){if(Ao)return ko;Ao=1;var t=yo();function n(e,n){var r=this.__data__,i=t(r,e);return i<0?(++this.size,r.push([e,n])):r[i][1]=n,this}return e(n,`listCacheSet`),ko=n,ko}e(jo,`require_listCacheSet`);var Mo,No;function Po(){if(No)return Mo;No=1;var t=po(),n=So(),r=To(),i=Oo(),a=jo();function o(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e0&&this.spawn(r).updateStyle().emit(`class`),t},`classes`),addClass:e(function(e){return this.toggleClass(e,!0)},`addClass`),hasClass:e(function(e){var t=this[0];return t!=null&&t._private.classes.has(e)},`hasClass`),toggleClass:e(function(e,t){O(e)||(e=e.match(/\S+/g)||[]);for(var n=this,r=t===void 0,i=[],a=0,o=n.length;a0&&this.spawn(i).updateStyle().emit(`class`),n},`toggleClass`),removeClass:e(function(e){return this.toggleClass(e,!1)},`removeClass`),flashClass:e(function(e,t){var n=this;if(t==null)t=250;else if(t===0)return n;return n.addClass(e),setTimeout(function(){n.removeClass(e)},t),n},`flashClass`)};hc.className=hc.classNames=hc.classes;var gc={metaChar:`[\\!\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\\`\\{\\|\\}\\~]`,comparatorOp:`=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=`,boolOp:`\\?|\\!|\\^`,string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:X,meta:`degree|indegree|outdegree`,separator:`\\s*,\\s*`,descendant:`\\s+`,child:`\\s+>\\s+`,subject:`\\$`,group:`node|edge|\\*`,directedEdge:`\\s+->\\s+`,undirectedEdge:`\\s+<->\\s+`};gc.variable=`(?:[\\w-.]|(?:\\\\`+gc.metaChar+`))+`,gc.className=`(?:[\\w-]|(?:\\\\`+gc.metaChar+`))+`,gc.value=gc.string+`|`+gc.number,gc.id=gc.variable,(function(){var e=gc.comparatorOp.split(`|`),t,n;for(n=0;n=0)&&t!==`=`&&(gc.comparatorOp+=`|\\!`+t)})();var _c=e(function(){return{checks:[]}},`newQuery`),Q={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},vc=[{selector:`:selected`,matches:e(function(e){return e.selected()},`matches`)},{selector:`:unselected`,matches:e(function(e){return!e.selected()},`matches`)},{selector:`:selectable`,matches:e(function(e){return e.selectable()},`matches`)},{selector:`:unselectable`,matches:e(function(e){return!e.selectable()},`matches`)},{selector:`:locked`,matches:e(function(e){return e.locked()},`matches`)},{selector:`:unlocked`,matches:e(function(e){return!e.locked()},`matches`)},{selector:`:visible`,matches:e(function(e){return e.visible()},`matches`)},{selector:`:hidden`,matches:e(function(e){return!e.visible()},`matches`)},{selector:`:transparent`,matches:e(function(e){return e.transparent()},`matches`)},{selector:`:grabbed`,matches:e(function(e){return e.grabbed()},`matches`)},{selector:`:free`,matches:e(function(e){return!e.grabbed()},`matches`)},{selector:`:removed`,matches:e(function(e){return e.removed()},`matches`)},{selector:`:inside`,matches:e(function(e){return!e.removed()},`matches`)},{selector:`:grabbable`,matches:e(function(e){return e.grabbable()},`matches`)},{selector:`:ungrabbable`,matches:e(function(e){return!e.grabbable()},`matches`)},{selector:`:animated`,matches:e(function(e){return e.animated()},`matches`)},{selector:`:unanimated`,matches:e(function(e){return!e.animated()},`matches`)},{selector:`:parent`,matches:e(function(e){return e.isParent()},`matches`)},{selector:`:childless`,matches:e(function(e){return e.isChildless()},`matches`)},{selector:`:child`,matches:e(function(e){return e.isChild()},`matches`)},{selector:`:orphan`,matches:e(function(e){return e.isOrphan()},`matches`)},{selector:`:nonorphan`,matches:e(function(e){return e.isChild()},`matches`)},{selector:`:compound`,matches:e(function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()},`matches`)},{selector:`:loop`,matches:e(function(e){return e.isLoop()},`matches`)},{selector:`:simple`,matches:e(function(e){return e.isSimple()},`matches`)},{selector:`:active`,matches:e(function(e){return e.active()},`matches`)},{selector:`:inactive`,matches:e(function(e){return!e.active()},`matches`)},{selector:`:backgrounding`,matches:e(function(e){return e.backgrounding()},`matches`)},{selector:`:nonbackgrounding`,matches:e(function(e){return!e.backgrounding()},`matches`)}].sort(function(e,t){return ce(e.selector,t.selector)}),yc=(function(){for(var e={},t,n=0;n0&&l.edgeCount>0)return zt("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(l.edgeCount>1)return zt("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;l.edgeCount===1&&zt("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},`parse`),toString:e(function(){if(this.toStringCache!=null)return this.toStringCache;for(var t=e(function(e){return e??``},`clean`),n=e(function(e){return E(e)?`"`+e+`"`:t(e)},`cleanVal`),r=e(function(e){return` `+e+` `},`space`),i=e(function(e,i){var o=e.type,s=e.value;switch(o){case Q.GROUP:var c=t(s);return c.substring(0,c.length-1);case Q.DATA_COMPARE:var l=e.field,u=e.operator;return`[`+l+r(t(u))+n(s)+`]`;case Q.DATA_BOOL:var d=e.operator,f=e.field;return`[`+t(d)+f+`]`;case Q.DATA_EXIST:return`[`+e.field+`]`;case Q.META_COMPARE:var p=e.operator;return`[[`+e.field+r(t(p))+n(s)+`]]`;case Q.STATE:return s;case Q.ID:return`#`+s;case Q.CLASS:return`.`+s;case Q.PARENT:case Q.CHILD:return a(e.parent,i)+r(`>`)+a(e.child,i);case Q.ANCESTOR:case Q.DESCENDANT:return a(e.ancestor,i)+` `+a(e.descendant,i);case Q.COMPOUND_SPLIT:var m=a(e.left,i),h=a(e.subject,i),g=a(e.right,i);return m+(m.length>0?` `:``)+h+g;case Q.TRUE:return``}},`checkToString`),a=e(function(e,t){return e.checks.reduce(function(n,r,a){return n+(t===e&&a===0?`$`:``)+i(r,t)},``)},`queryToString`),o=``,s=0;s1&&s=0&&(t=t.replace(`!`,``),u=!0),t.indexOf(`@`)>=0&&(t=t.replace(`@`,``),l=!0),(i||o||l)&&(s=!i&&!a?``:``+e,c=``+n),l&&(e=s=s.toLowerCase(),n=c=c.toLowerCase()),t){case`*=`:r=s.indexOf(c)>=0;break;case`$=`:r=s.indexOf(c,s.length-c.length)>=0;break;case`^=`:r=s.indexOf(c)===0;break;case`=`:r=e===n;break;case`>`:d=!0,r=e>n;break;case`>=`:d=!0,r=e>=n;break;case`<`:d=!0,r=e0;){var l=i.shift();t(l),a.add(l.id()),o&&r(i,a,l)}return e}e(Vc,`forEachCompound`);function Hc(e,t,n){if(n.isParent())for(var r=n._private.children,i=0;i1&&arguments[1]!==void 0?arguments[1]:!0;return Vc(this,e,t,Hc)};function Uc(e,t,n){if(n.isChild()){var r=n._private.parent;t.has(r.id())||e.push(r)}}e(Uc,`addParent`),Bc.forEachUp=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Vc(this,e,t,Uc)};function Wc(e,t,n){Uc(e,t,n),Hc(e,t,n)}e(Wc,`addParentAndChildren`),Bc.forEachUpAndDown=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Vc(this,e,t,Wc)},Bc.ancestors=Bc.parents;var Gc=Kc={data:pc.data({field:`data`,bindingEvent:`data`,allowBinding:!0,allowSetting:!0,settingEvent:`data`,settingTriggersEvent:!0,triggerFnName:`trigger`,allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:pc.removeData({field:`data`,event:`data`,triggerFnName:`trigger`,triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:pc.data({field:`scratch`,bindingEvent:`scratch`,allowBinding:!0,allowSetting:!0,settingEvent:`scratch`,settingTriggersEvent:!0,triggerFnName:`trigger`,allowGetting:!0,updateStyle:!0}),removeScratch:pc.removeData({field:`scratch`,event:`scratch`,triggerFnName:`trigger`,triggerEvent:!0,updateStyle:!0}),rscratch:pc.data({field:`rscratch`,allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:pc.removeData({field:`rscratch`,triggerEvent:!1}),id:e(function(){var e=this[0];if(e)return e._private.data.id},`id`)},Kc;Gc.attr=Gc.data,Gc.removeAttr=Gc.removeData;var qc=Kc,Jc={};function Yc(e){return function(t){var n=this;if(t===void 0&&(t=!0),n.length!==0)if(n.isNode()&&!n.removed()){for(var r=0,i=n[0],a=i._private.edges,o=0;ot}),minIndegree:Xc(`indegree`,function(e,t){return et}),minOutdegree:Xc(`outdegree`,function(e,t){return et})}),Z(Jc,{totalDegree:e(function(e){for(var t=0,n=this.nodes(),r=0;r0,d=u;u&&(l=l[0]);var f=d?l.position():{x:0,y:0};t===void 0?i!==void 0&&c.position({x:i.x+f.x,y:i.y+f.y}):c.position(e,t+f[e])}else{var p=n.position(),m=o?n.parent():null,h=m&&m.length>0,g=h;h&&(m=m[0]);var _=g?m.position():{x:0,y:0};return i={x:p.x-_.x,y:p.y-_.y},e===void 0?i:i[e]}else if(!a)return;return this},`relativePosition`)},Zc.modelPosition=Zc.point=Zc.position,Zc.modelPositions=Zc.points=Zc.positions,Zc.renderedPoint=Zc.renderedPosition,Zc.relativePoint=Zc.relativePosition;var tl=Qc,nl=rl={},rl;rl.renderedBoundingBox=function(e){var t=this.boundingBox(e),n=this.cy(),r=n.zoom(),i=n.pan(),a=t.x1*r+i.x,o=t.x2*r+i.x,s=t.y1*r+i.y,c=t.y2*r+i.y;return{x1:a,x2:o,y1:s,y2:c,w:o-a,h:c-s}},rl.dirtyCompoundBoundsCache=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.cy();return!t.styleEnabled()||!t.hasCompoundNodes()||this.forEachUp(function(t){if(t.isParent()){var n=t._private;n.compoundBoundsClean=!1,n.bbCache=null,e||t.emitAndNotify(`bounds`)}}),this},rl.updateCompoundBounds=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.cy();if(!n.styleEnabled()||!n.hasCompoundNodes()||!t&&n.batching())return this;function r(t){if(!t.isParent())return;var n=t._private,r=t.children(),i=t.pstyle(`compound-sizing-wrt-labels`).value===`include`,a={width:{val:t.pstyle(`min-width`).pfValue,left:t.pstyle(`min-width-bias-left`),right:t.pstyle(`min-width-bias-right`)},height:{val:t.pstyle(`min-height`).pfValue,top:t.pstyle(`min-height-bias-top`),bottom:t.pstyle(`min-height-bias-bottom`)}},o=r.boundingBox({includeLabels:i,includeOverlays:!1,useCache:!1}),s=n.position;(o.w===0||o.h===0)&&(o={w:t.pstyle(`width`).pfValue,h:t.pstyle(`height`).pfValue},o.x1=s.x-o.w/2,o.x2=s.x+o.w/2,o.y1=s.y-o.h/2,o.y2=s.y+o.h/2);function c(e,t,n){var r=0,i=0,a=t+n;return e>0&&a>0&&(r=t/a*e,i=n/a*e),{biasDiff:r,biasComplementDiff:i}}e(c,`computeBiasValues`);function l(e,t,n,r){if(n.units===`%`)switch(r){case`width`:return e>0?n.pfValue*e:0;case`height`:return t>0?n.pfValue*t:0;case`average`:return e>0&&t>0?n.pfValue*(e+t)/2:0;case`min`:return e>0&&t>0?e>t?n.pfValue*t:n.pfValue*e:0;case`max`:return e>0&&t>0?e>t?n.pfValue*e:n.pfValue*t:0;default:return 0}else if(n.units===`px`)return n.pfValue;else return 0}e(l,`computePaddingValues`);var u=a.width.left.value;a.width.left.units===`px`&&a.width.val>0&&(u=u*100/a.width.val);var d=a.width.right.value;a.width.right.units===`px`&&a.width.val>0&&(d=d*100/a.width.val);var f=a.height.top.value;a.height.top.units===`px`&&a.height.val>0&&(f=f*100/a.height.val);var p=a.height.bottom.value;a.height.bottom.units===`px`&&a.height.val>0&&(p=p*100/a.height.val);var m=c(a.width.val-o.w,u,d),h=m.biasDiff,g=m.biasComplementDiff,_=c(a.height.val-o.h,f,p),v=_.biasDiff,y=_.biasComplementDiff;n.autoPadding=l(o.w,o.h,t.pstyle(`padding`),t.pstyle(`padding-relative-to`).value),n.autoWidth=Math.max(o.w,a.width.val),s.x=(-h+o.x1+o.x2+g)/2,n.autoHeight=Math.max(o.h,a.height.val),s.y=(-v+o.y1+o.y2+y)/2}e(r,`update`);for(var i=0;ie.x2?r:e.x2,e.y1=ne.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},`updateBounds`),ol=e(function(e,t){return t==null?e:al(e,t.x1,t.y1,t.x2,t.y2)},`updateBoundsFromBox`),sl=e(function(e,t,n){return Xt(e,t,n)},`prefixedProperty`),cl=e(function(e,t,n){if(!t.cy().headless()){var r=t._private,i=r.rstyle,a=i.arrowWidth/2,o=t.pstyle(n+`-arrow-shape`).value,s,c;if(o!==`none`){n===`source`?(s=i.srcX,c=i.srcY):n===`target`?(s=i.tgtX,c=i.tgtY):(s=i.midX,c=i.midY);var l=r.arrowBounds=r.arrowBounds||{},u=l[n]=l[n]||{};u.x1=s-a,u.y1=c-a,u.x2=s+a,u.y2=c+a,u.w=u.x2-u.x1,u.h=u.y2-u.y1,Zn(u,1),al(e,u.x1,u.y1,u.x2,u.y2)}}},`updateBoundsFromArrow`),ll=e(function(t,n,r){if(!n.cy().headless()){var i=r?r+`-`:``,a=n._private,o=a.rstyle;if(n.pstyle(i+`label`).strValue){var s=n.pstyle(`text-halign`),c=n.pstyle(`text-valign`),l=sl(o,`labelWidth`,r),u=sl(o,`labelHeight`,r),d=sl(o,`labelX`,r),f=sl(o,`labelY`,r),p=n.pstyle(i+`text-margin-x`).pfValue,m=n.pstyle(i+`text-margin-y`).pfValue,h=n.isEdge(),g=n.pstyle(i+`text-rotation`),_=n.pstyle(`text-outline-width`).pfValue,v=n.pstyle(`text-border-width`).pfValue/2,y=n.pstyle(`text-background-padding`).pfValue,b=2,x=u,S=l,C=S/2,w=x/2,T,E,D,O;if(h)T=d-C,E=d+C,D=f-w,O=f+w;else{switch(s.value){case`left`:T=d-S,E=d;break;case`center`:T=d-C,E=d+C;break;case`right`:T=d,E=d+S;break}switch(c.value){case`top`:D=f-x,O=f;break;case`center`:D=f-w,O=f+w;break;case`bottom`:D=f,O=f+x;break}}var k=p-Math.max(_,v)-y-b,A=p+Math.max(_,v)+y+b,j=m-Math.max(_,v)-y-b,M=m+Math.max(_,v)+y+b;T+=k,E+=A,D+=j,O+=M;var N=r||`main`,P=a.labelBounds,F=P[N]=P[N]||{};F.x1=T,F.y1=D,F.x2=E,F.y2=O,F.w=E-T,F.h=O-D,F.leftPad=k,F.rightPad=A,F.topPad=j,F.botPad=M;var I=h&&g.strValue===`autorotate`,L=g.pfValue!=null&&g.pfValue!==0;if(I||L){var R=I?sl(a.rstyle,`labelAngle`,r):g.pfValue,z=Math.cos(R),B=Math.sin(R),V=(T+E)/2,H=(D+O)/2;if(!h){switch(s.value){case`left`:V=E;break;case`right`:V=T;break}switch(c.value){case`top`:H=O;break;case`bottom`:H=D;break}}var U=e(function(e,t){return e-=V,t-=H,{x:e*z-t*B+V,y:e*B+t*z+H}},`rotate`),W=U(T,D),G=U(T,O),K=U(E,D),q=U(E,O);T=Math.min(W.x,G.x,K.x,q.x),E=Math.max(W.x,G.x,K.x,q.x),D=Math.min(W.y,G.y,K.y,q.y),O=Math.max(W.y,G.y,K.y,q.y)}var J=N+`Rot`,Y=P[J]=P[J]||{};Y.x1=T,Y.y1=D,Y.x2=E,Y.y2=O,Y.w=E-T,Y.h=O-D,al(t,T,D,E,O),al(a.labelBounds.all,T,D,E,O)}return t}},`updateBoundsFromLabel`),ul=e(function(e,t){if(!t.cy().headless()){var n=t.pstyle(`outline-opacity`).value,r=t.pstyle(`outline-width`).value+t.pstyle(`outline-offset`).value;dl(e,t,n,r,`outside`,r/2)}},`updateBoundsFromOutline`),dl=e(function(e,t,n,r,i,a){if(!(n===0||r<=0||i===`inside`)){var o=t.cy(),s=t.pstyle(`shape`).value,c=o.renderer().nodeShapes[s],l=t.position(),u=l.x,d=l.y,f=t.width(),p=t.height();c.hasMiterBounds?(i===`center`&&(r/=2),ol(e,c.miterBounds(u,d,f,p,r))):a!=null&&a>0&&Qn(e,[a,a,a,a])}},`updateBoundsFromMiter`),fl=e(function(e,t){if(!t.cy().headless()){var n=t.pstyle(`border-opacity`).value,r=t.pstyle(`border-width`).pfValue,i=t.pstyle(`border-position`).value;dl(e,t,n,r,i)}},`updateBoundsFromMiterBorder`),pl=e(function(t,n){var r=t._private.cy,i=r.styleEnabled(),a=r.headless(),o=Kn(),s=t._private,c=t.isNode(),l=t.isEdge(),u,d,f,p,m,h,g=s.rstyle,_=c&&i?t.pstyle(`bounds-expansion`).pfValue:[0],v=e(function(e){return e.pstyle(`display`).value!==`none`},`isDisplayed`),y=!i||v(t)&&(!l||v(t.source())&&v(t.target()));if(y){var b=0,x=0;i&&n.includeOverlays&&(b=t.pstyle(`overlay-opacity`).value,b!==0&&(x=t.pstyle(`overlay-padding`).value));var S=0,C=0;i&&n.includeUnderlays&&(S=t.pstyle(`underlay-opacity`).value,S!==0&&(C=t.pstyle(`underlay-padding`).value));var w=Math.max(x,C),T=0,E=0;if(i&&(T=t.pstyle(`width`).pfValue,E=T/2),c&&n.includeNodes){var D=t.position();m=D.x,h=D.y;var O=t.outerWidth()/2,k=t.outerHeight()/2;u=m-O,d=m+O,f=h-k,p=h+k,al(o,u,f,d,p),i&&ul(o,t),i&&n.includeOutlines&&!a&&ul(o,t),i&&fl(o,t)}else if(l&&n.includeEdges)if(i&&!a){var A=t.pstyle(`curve-style`).strValue;if(u=Math.min(g.srcX,g.midX,g.tgtX),d=Math.max(g.srcX,g.midX,g.tgtX),f=Math.min(g.srcY,g.midY,g.tgtY),p=Math.max(g.srcY,g.midY,g.tgtY),u-=E,d+=E,f-=E,p+=E,al(o,u,f,d,p),A===`haystack`){var j=g.haystackPts;if(j&&j.length===2){if(u=j[0].x,f=j[0].y,d=j[1].x,p=j[1].y,u>d){var M=u;u=d,d=M}if(f>p){var N=f;f=p,p=N}al(o,u-E,f-E,d+E,p+E)}}else if(A===`bezier`||A===`unbundled-bezier`||ee(A,`segments`)||ee(A,`taxi`)){var P;switch(A){case`bezier`:case`unbundled-bezier`:P=g.bezierPts;break;case`segments`:case`taxi`:case`round-segments`:case`round-taxi`:P=g.linePts;break}if(P!=null)for(var F=0;Fd){var z=u;u=d,d=z}if(f>p){var B=f;f=p,p=B}u-=E,d+=E,f-=E,p+=E,al(o,u,f,d,p)}if(i&&n.includeEdges&&l&&(cl(o,t,`mid-source`),cl(o,t,`mid-target`),cl(o,t,`source`),cl(o,t,`target`)),i&&t.pstyle(`ghost`).value===`yes`){var V=t.pstyle(`ghost-offset-x`).pfValue,H=t.pstyle(`ghost-offset-y`).pfValue;al(o,o.x1+V,o.y1+H,o.x2+V,o.y2+H)}var U=s.bodyBounds=s.bodyBounds||{};$n(U,o),Qn(U,_),Zn(U,1),i&&(u=o.x1,d=o.x2,f=o.y1,p=o.y2,al(o,u-w,f-w,d+w,p+w));var W=s.overlayBounds=s.overlayBounds||{};$n(W,o),Qn(W,_),Zn(W,1);var G=s.labelBounds=s.labelBounds||{};G.all==null?G.all=Kn():Jn(G.all),i&&n.includeLabels&&(n.includeMainLabels&&ll(o,t,null),l&&(n.includeSourceLabels&&ll(o,t,`source`),n.includeTargetLabels&&ll(o,t,`target`)))}return o.x1=il(o.x1),o.y1=il(o.y1),o.x2=il(o.x2),o.y2=il(o.y2),o.w=il(o.x2-o.x1),o.h=il(o.y2-o.y1),o.w>0&&o.h>0&&y&&(Qn(o,_),Zn(o,1)),o},`boundingBoxImpl`),ml=e(function(t){var n=0,r=e(function(e){return+!!e<0&&arguments[0]!==void 0?arguments[0]:Rl,t=arguments.length>1?arguments[1]:void 0,n=0;n=0;c--)s(c);return this},Bl.removeAllListeners=function(){return this.removeListener(`*`)},Bl.emit=Bl.trigger=function(t,n,r){var i=this.listeners,a=i.length;return this.emitting++,O(n)||(n=[n]),Ul(this,function(t,o){r!=null&&(i=[{event:o.event,type:o.type,namespace:o.namespace,callback:r}],a=i.length);for(var s=e(function(){var e=i[c];if(e.type===o.type&&(!e.namespace||e.namespace===o.namespace||e.namespace===Fl)&&t.eventMatches(t.context,e,o)){var r=[o];n!=null&&Yt(r,n),t.beforeEmit(t.context,e,o),e.conf&&e.conf.one&&(t.listeners=t.listeners.filter(function(t){return t!==e}));var a=t.callbackContext(t.context,e,o),s=e.callback.apply(a,r);t.afterEmit(t.context,e,o),s===!1&&(o.stopPropagation(),o.preventDefault())}},`_loop2`),c=0;c1&&!r){var i=this.length-1,a=this[i],o=a._private.data.id;this[i]=void 0,this[e]=a,n.set(o,{ele:a,index:e})}return this.length--,this},`unmergeAt`),unmergeOne:e(function(e){e=e[0];var t=this._private,n=e._private.data.id,r=t.map.get(n);if(!r)return this;var i=r.index;return this.unmergeAt(i),this},`unmergeOne`),unmerge:e(function(e){var t=this._private.cy;if(!e)return this;if(e&&E(e)){var n=e;e=t.mutableElements().filter(n)}for(var r=0;r=0;t--){var n=this[t];e(n)&&this.unmergeAt(t)}return this},`unmergeBy`),map:e(function(e,t){for(var n=[],r=this,i=0;in&&(n=s,r=o)}return{value:n,ele:r}},`max`),min:e(function(e,t){for(var n=1/0,r,i=this,a=0;a=0&&i`u`?`undefined`:_(Symbol))!=t&&_(Symbol.iterator)!=t&&(Zl[Symbol.iterator]=function(){var t=this,n={value:void 0,done:!1},r=0,i=this.length;return c({next:e(function(){return r1&&arguments[1]!==void 0?arguments[1]:!0,n=this[0],r=n.cy();if(r.styleEnabled()&&n)return n._private.styleDirty&&(n._private.styleDirty=!1,r.style().apply(n)),n._private.style[e]??(t?r.style().getDefaultProperty(e):null)},`parsedStyle`),numericStyle:e(function(e){var t=this[0];if(t.cy().styleEnabled()&&t){var n=t.pstyle(e);return n.pfValue===void 0?n.value:n.pfValue}},`numericStyle`),numericStyleUnits:e(function(e){var t=this[0];if(t.cy().styleEnabled()&&t)return t.pstyle(e).units},`numericStyleUnits`),renderedStyle:e(function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=this[0];if(n)return t.style().getRenderedStyle(n,e)},`renderedStyle`),style:e(function(e,t){var n=this.cy();if(!n.styleEnabled())return this;var r=!1,i=n.style();if(k(e)){var a=e;i.applyBypass(this,a,r),this.emitAndNotify(`style`)}else if(E(e))if(t===void 0){var o=this[0];return o?i.getStylePropertyValue(o,e):void 0}else i.applyBypass(this,e,t,r),this.emitAndNotify(`style`);else if(e===void 0){var s=this[0];return s?i.getRawStyle(s):void 0}return this},`style`),removeStyle:e(function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=!1,r=t.style(),i=this;if(e===void 0)for(var a=0;a0&&t.push(u[0]),t.push(s[0])}return this.spawn(t,!0).filter(e)},`neighborhood`),closedNeighborhood:e(function(e){return this.neighborhood().add(this).filter(e)},`closedNeighborhood`),openNeighborhood:e(function(e){return this.neighborhood(e)},`openNeighborhood`)}),uu.neighbourhood=uu.neighborhood,uu.closedNeighbourhood=uu.closedNeighborhood,uu.openNeighbourhood=uu.openNeighborhood,Z(uu,{source:zc(e(function(e){var t=this[0],n;return t&&(n=t._private.source||t.cy().collection()),n&&e?n.filter(e):n},`sourceImpl`),`source`),target:zc(e(function(e){var t=this[0],n;return t&&(n=t._private.target||t.cy().collection()),n&&e?n.filter(e):n},`targetImpl`),`target`),sources:mu({attr:`source`}),targets:mu({attr:`target`})});function mu(t){return e(function(e){for(var n=[],r=0;r0);return o},`components`),component:e(function(){var e=this[0];return e.cy().mutableElements().components(e)[0]},`component`)}),uu.componentsOf=uu.components;var _u=e(function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(t===void 0){Lt(`A collection must have a reference to the core`);return}var a=new Qt,o=!1;if(!n)n=[];else if(n.length>0&&k(n[0])&&!F(n[0])){o=!0;for(var s=[],c=new tn,l=0,u=n.length;l0&&arguments[0]!==void 0?arguments[0]:!0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,i=r.cy(),a=i._private,o=[],s=[],c,l=0,u=r.length;l0){for(var L=c.length===r.length?r:new _u(i,c),R=0;R0&&arguments[0]!==void 0?arguments[0]:!0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,i=[],a={},o=r._private.cy;function s(e){for(var t=e._private.edges,n=0;n0&&(t?D.emitAndNotify(`remove`):n&&D.emit(`remove`));for(var O=0;O0?i=o:n=o;while(Math.abs(a)>s&&++l=o?y(e,c):d===0?c:x(e,n,n+u)}e(S,`getTForX`);var C=!1;function w(){C=!0,(t!==n||r!==i)&&b()}e(w,`precompute`);var T=e(function(e){return C||w(),t===n&&r===i?e:e===0?0:e===1?1:_(S(e),n,i)},`f`);T.getControlPoints=function(){return[{x:t,y:n},{x:r,y:i}]};var E=`generateBezier(`+[t,n,r,i]+`)`;return T.toString=function(){return E},T}e(bu,`generateCubicBezier`);var xu=(function(){function t(e){return-e.tension*e.x-e.friction*e.v}e(t,`springAccelerationForState`);function n(e,n,r){var i={x:e.x+r.dx*n,v:e.v+r.dv*n,tension:e.tension,friction:e.friction};return{dx:i.v,dv:t(i)}}e(n,`springEvaluateStateWithDerivative`);function r(e,r){var i={dx:e.v,dv:t(e)},a=n(e,r*.5,i),o=n(e,r*.5,a),s=n(e,r,o),c=1/6*(i.dx+2*(a.dx+o.dx)+s.dx),l=1/6*(i.dv+2*(a.dv+o.dv)+s.dv);return e.x+=c*r,e.v+=l*r,e}return e(r,`springIntegrateState`),e(function e(t,n,i){var a={x:-1,v:0,tension:null,friction:null},o=[0],s=0,c=1/1e4,l=16/1e3,u,d,f;for(t=parseFloat(t)||500,n=parseFloat(n)||20,i||=null,a.tension=t,a.friction=n,u=i!==null,u?(s=e(t,n),d=s/i*l):d=l;f=r(f||a,d),o.push(1+f.x),s+=16,Math.abs(f.x)>c&&Math.abs(f.v)>c;);return u?function(e){return o[e*(o.length-1)|0]}:s},`springRK4Factory`)})(),Su=e(function(e,t,n,r){var i=bu(e,t,n,r);return function(e,t,n){return e+(t-e)*i(n)}},`cubicBezier`),Cu={linear:e(function(e,t,n){return e+(t-e)*n},`linear`),ease:Su(.25,.1,.25,1),"ease-in":Su(.42,0,1,1),"ease-out":Su(0,0,.58,1),"ease-in-out":Su(.42,0,.58,1),"ease-in-sine":Su(.47,0,.745,.715),"ease-out-sine":Su(.39,.575,.565,1),"ease-in-out-sine":Su(.445,.05,.55,.95),"ease-in-quad":Su(.55,.085,.68,.53),"ease-out-quad":Su(.25,.46,.45,.94),"ease-in-out-quad":Su(.455,.03,.515,.955),"ease-in-cubic":Su(.55,.055,.675,.19),"ease-out-cubic":Su(.215,.61,.355,1),"ease-in-out-cubic":Su(.645,.045,.355,1),"ease-in-quart":Su(.895,.03,.685,.22),"ease-out-quart":Su(.165,.84,.44,1),"ease-in-out-quart":Su(.77,0,.175,1),"ease-in-quint":Su(.755,.05,.855,.06),"ease-out-quint":Su(.23,1,.32,1),"ease-in-out-quint":Su(.86,0,.07,1),"ease-in-expo":Su(.95,.05,.795,.035),"ease-out-expo":Su(.19,1,.22,1),"ease-in-out-expo":Su(1,0,0,1),"ease-in-circ":Su(.6,.04,.98,.335),"ease-out-circ":Su(.075,.82,.165,1),"ease-in-out-circ":Su(.785,.135,.15,.86),spring:e(function(e,t,n){if(n===0)return Cu.linear;var r=xu(e,t,n);return function(e,t,n){return e+(t-e)*r(n)}},`spring`),"cubic-bezier":Su};function wu(e,t,n,r,i){if(r===1||t===n)return n;var a=i(t,n,r);return e==null?a:((e.roundValue||e.color)&&(a=Math.round(a)),e.min!==void 0&&(a=Math.max(a,e.min)),e.max!==void 0&&(a=Math.min(a,e.max)),a)}e(wu,`getEasedValue`);function Tu(e,t){return e.pfValue!=null||e.value!=null?e.pfValue!=null&&(t==null||t.type.units!==`%`)?e.pfValue:e.value:e}e(Tu,`getValue`);function Eu(e,t,n,r,i){var a=i==null?null:i.type;n<0?n=0:n>1&&(n=1);var o=Tu(e,i),s=Tu(t,i);if(j(o)&&j(s))return wu(a,o,s,n,r);if(O(o)&&O(s)){for(var c=[],l=0;l0?(d===`spring`&&f.push(o.duration),o.easingImpl=Cu[d].apply(null,f)):o.easingImpl=Cu[d]}var p=o.easingImpl,m=o.duration===0?1:(n-c)/o.duration;if(o.applying&&(m=o.progress),m<0?m=0:m>1&&(m=1),o.delay==null){var h=o.startPosition,g=o.position;if(g&&i&&!e.locked()){var _={};Ou(h.x,g.x)&&(_.x=Eu(h.x,g.x,m,p)),Ou(h.y,g.y)&&(_.y=Eu(h.y,g.y,m,p)),e.position(_)}var v=o.startPan,y=o.pan,b=a.pan,x=y!=null&&r;x&&(Ou(v.x,y.x)&&(b.x=Eu(v.x,y.x,m,p)),Ou(v.y,y.y)&&(b.y=Eu(v.y,y.y,m,p)),e.emit(`pan`));var S=o.startZoom,C=o.zoom,w=C!=null&&r;w&&(Ou(S,C)&&(a.zoom=Gn(a.minZoom,Eu(S,C,m,p),a.maxZoom)),e.emit(`zoom`)),(x||w)&&e.emit(`viewport`);var T=o.style;if(T&&T.length>0&&i){for(var D=0;D=0;t--){var n=e[t];n()}e.splice(0,e.length)},`callbacks`),d=o.length-1;d>=0;d--){var f=o[d],p=f._private;if(p.stopped){o.splice(d,1),p.hooked=!1,p.playing=!1,p.started=!1,u(p.frames);continue}!p.playing&&!p.applying||(p.playing&&p.applying&&(p.applying=!1),p.started||ku(n,f,t),Du(n,f,t,r),p.applying&&=!1,u(p.frames),p.step!=null&&p.step(t),f.completed()&&(o.splice(d,1),p.hooked=!1,p.playing=!1,p.started=!1,u(p.completes)),c=!0)}return!r&&o.length===0&&s.length===0&&i.push(n),c}e(a,`stepOne`);for(var o=!1,s=0;s0?n.notify(`draw`,r):n.notify(`draw`)),r.unmerge(i),n.emit(`step`)}e(Au,`stepAll`);var ju={animate:pc.animate(),animation:pc.animation(),animated:pc.animated(),clearQueue:pc.clearQueue(),delay:pc.delay(),delayAnimation:pc.delayAnimation(),stop:pc.stop(),addToAnimationPool:e(function(e){var t=this;t.styleEnabled()&&t._private.aniEles.merge(e)},`addToAnimationPool`),stopAnimationLoop:e(function(){this._private.animationsRunning=!1},`stopAnimationLoop`),startAnimationLoop:e(function(){var t=this;if(t._private.animationsRunning=!0,!t.styleEnabled())return;function n(){t._private.animationsRunning&&dt(e(function(e){Au(e,t),n()},`animationStep`))}e(n,`headlessStep`);var r=t.renderer();r&&r.beforeRender?r.beforeRender(e(function(e,n){Au(n,t)},`rendererAnimationStep`),r.beforeRenderPriorities.animations):n()},`startAnimationLoop`)},Mu={qualifierCompare:e(function(e,t){return e==null||t==null?e==null&&t==null:e.sameText(t)},`qualifierCompare`),eventMatches:e(function(e,t,n){var r=t.qualifier;return r==null?!0:e!==n.target&&F(n.target)&&r.matches(n.target)},`eventMatches`),addEventFields:e(function(e,t){t.cy=e,t.target=e},`addEventFields`),callbackContext:e(function(e,t,n){return t.qualifier==null?e:n.target},`callbackContext`)},Nu=e(function(e){return E(e)?new Ic(e):e},`argSelector`),Pu={createEmitter:e(function(){var e=this._private;return e.emitter||=new zl(Mu,this),this},`createEmitter`),emitter:e(function(){return this._private.emitter},`emitter`),on:e(function(e,t,n){return this.emitter().on(e,Nu(t),n),this},`on`),removeListener:e(function(e,t,n){return this.emitter().removeListener(e,Nu(t),n),this},`removeListener`),removeAllListeners:e(function(){return this.emitter().removeAllListeners(),this},`removeAllListeners`),one:e(function(e,t,n){return this.emitter().one(e,Nu(t),n),this},`one`),once:e(function(e,t,n){return this.emitter().one(e,Nu(t),n),this},`once`),emit:e(function(e,t){return this.emitter().emit(e,t),this},`emit`),emitAndNotify:e(function(e,t){return this.emit(e),this.notify(e,t),this},`emitAndNotify`)};pc.eventAliasesOn(Pu);var Fu={png:e(function(e){var t=this._private.renderer;return e||={},t.png(e)},`png`),jpg:e(function(e){var t=this._private.renderer;return e||={},e.bg=e.bg||`#fff`,t.jpg(e)},`jpg`)};Fu.jpeg=Fu.jpg;var Iu={layout:e(function(e){var t=this;if(e==null){Lt(`Layout options must be specified to make a layout`);return}if(e.name==null){Lt("A `name` must be specified to make a layout");return}var n=e.name,r=t.extension(`layout`,n);if(r==null){Lt("No such layout `"+n+"` found. Did you forget to import it and `cytoscape.use()` it?");return}return new r(Z({},e,{cy:t,eles:E(e.eles)?t.$(e.eles):e.eles==null?t.$():e.eles}))},`layout`)};Iu.createLayout=Iu.makeLayout=Iu.layout;var Lu={notify:e(function(e,t){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var r=n.batchNotifications[e]=n.batchNotifications[e]||this.collection();t!=null&&r.merge(t);return}if(n.notificationsEnabled){var i=this.renderer();this.destroyed()||!i||i.notify(e,t)}},`notify`),notifications:e(function(e){var t=this._private;return e===void 0?t.notificationsEnabled:(t.notificationsEnabled=!!e,this)},`notifications`),noNotifications:e(function(e){this.notifications(!1),e(),this.notifications(!0)},`noNotifications`),batching:e(function(){return this._private.batchCount>0},`batching`),startBatch:e(function(){var e=this._private;return e.batchCount??=0,e.batchCount===0&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},`startBatch`),endBatch:e(function(){var e=this._private;if(e.batchCount===0)return this;if(e.batchCount--,e.batchCount===0){e.batchStyleEles.updateStyle();var t=this.renderer();Object.keys(e.batchNotifications).forEach(function(n){var r=e.batchNotifications[n];r.empty()?t.notify(n):t.notify(n,r)})}return this},`endBatch`),batch:e(function(e){return this.startBatch(),e(),this.endBatch(),this},`batch`),batchData:e(function(e){var t=this;return this.batch(function(){for(var n=Object.keys(e),r=0;r0;)t.removeChild(t.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(e){var t=e._private;t.rscratch={},t.rstyle={},t.animation.current=[],t.animation.queue=[]})},`destroyRenderer`),onRender:e(function(e){return this.on(`render`,e)},`onRender`),offRender:e(function(e){return this.off(`render`,e)},`offRender`)};zu.invalidateDimensions=zu.resize;var Bu={collection:e(function(e,t){return E(e)?this.$(e):P(e)?e.collection():O(e)?(t||={},new _u(this,e,t.unique,t.removed)):new _u(this)},`collection`),nodes:e(function(e){var t=this.$(function(e){return e.isNode()});return e?t.filter(e):t},`nodes`),edges:e(function(e){var t=this.$(function(e){return e.isEdge()});return e?t.filter(e):t},`edges`),$:e(function(e){var t=this._private.elements;return e?t.filter(e):t.spawnSelf()},`$`),mutableElements:e(function(){return this._private.elements},`mutableElements`)};Bu.elements=Bu.filter=Bu.$;var Vu={},Hu=`t`,Uu=`f`;Vu.apply=function(e){for(var t=this,n=t._private.cy.collection(),r=0;r0;if(f||d&&p){var m=void 0;f&&p||f?m=l.properties:p&&(m=l.mappedProperties);for(var h=0;h1&&(x=1),c.color){var C=i.valueMin[0],w=i.valueMax[0],T=i.valueMin[1],E=i.valueMax[1],D=i.valueMin[2],O=i.valueMax[2],k=i.valueMin[3]==null?1:i.valueMin[3],A=i.valueMax[3]==null?1:i.valueMax[3],M=[Math.round(C+(w-C)*x),Math.round(T+(E-T)*x),Math.round(D+(O-D)*x),Math.round(k+(A-k)*x)];o={bypass:i.bypass,name:i.name,value:M,strValue:`rgb(`+M[0]+`, `+M[1]+`, `+M[2]+`)`}}else if(c.number){var N=i.valueMin+(i.valueMax-i.valueMin)*x;o=this.parse(i.name,N,i.bypass,p)}else return!1;if(!o)return g(),!1;o.mapping=i,i=o;break;case s.data:for(var P=i.field.split(`.`),F=f.data,I=0;I0&&a>0){for(var s={},c=!1,l=0;l0?e.delayAnimation(o).play().promise().then(t):t()}).then(function(){return e.animation({style:s,duration:a,easing:e.pstyle(`transition-timing-function`).value,queue:!1}).play().promise()}).then(function(){n.removeBypasses(e,i),e.emitAndNotify(`style`),r.transitioning=!1})}else r.transitioning&&=(this.removeBypasses(e,i),e.emitAndNotify(`style`),!1)},Vu.checkTrigger=function(e,t,n,r,i,a){var o=this.properties[t],s=i(o);e.removed()||s!=null&&s(n,r,e)&&a(o)},Vu.checkZOrderTrigger=function(e,t,n,r){var i=this;this.checkTrigger(e,t,n,r,function(e){return e.triggersZOrder},function(){i._private.cy.notify(`zorder`,e)})},Vu.checkBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBounds},function(t){e.dirtyCompoundBoundsCache(),e.dirtyBoundingBoxCache()})},Vu.checkConnectedEdgesBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBoundsOfConnectedEdges},function(t){e.connectedEdges().forEach(function(e){e.dirtyBoundingBoxCache()})})},Vu.checkParallelEdgesBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBoundsOfParallelEdges},function(t){e.parallelEdges().forEach(function(e){e.dirtyBoundingBoxCache()})})},Vu.checkTriggers=function(e,t,n,r){e.dirtyStyleCache(),this.checkZOrderTrigger(e,t,n,r),this.checkBoundsTrigger(e,t,n,r),this.checkConnectedEdgesBoundsTrigger(e,t,n,r),this.checkParallelEdgesBoundsTrigger(e,t,n,r)};var Wu={};Wu.applyBypass=function(e,t,n,r){var i=this,a=[],o=!0;if(t===`*`||t===`**`){if(n!==void 0)for(var s=0;sa.length?i.substr(a.length):``}e(c,`removeSelAndBlockFromRemaining`);function l(){o=o.length>s.length?o.substr(s.length):``}for(e(l,`removePropAndValFromRem`);!i.match(/^\s*$/);){var u=i.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!u){zt(`Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: `+i);break}a=u[0];var d=u[1];if(d!==`core`&&new Ic(d).invalid){zt(`Skipping parsing of block: Invalid selector found in string stylesheet: `+d),c();continue}var f=u[2],p=!1;o=f;for(var m=[];!o.match(/^\s*$/);){var h=o.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!h){zt(`Skipping parsing of block: Invalid formatting of style property and value definitions found in:`+f),p=!0;break}s=h[0];var g=h[1],_=h[2];if(!n.properties[g]){zt(`Skipping property: Invalid property name in: `+s),l();continue}if(!r.parse(g,_)){zt(`Skipping property: Invalid property definition in: `+s),l();continue}m.push({name:g,val:_}),l()}if(p){c();break}r.selector(d);for(var v=0;v=7&&n[0]===`d`&&(d=new RegExp(c.data.regex).exec(n))){if(r)return!1;var p=c.data;return{name:t,value:d,strValue:``+n,mapped:p,field:d[1],bypass:r}}else if(n.length>=10&&n[0]===`m`&&(f=new RegExp(c.mapData.regex).exec(n))){if(r||u.multiple)return!1;var m=c.mapData;if(!(u.color||u.number))return!1;var h=this.parse(t,f[4]);if(!h||h.mapped)return!1;var g=this.parse(t,f[5]);if(!g||g.mapped)return!1;if(h.pfValue===g.pfValue||h.strValue===g.strValue)return zt("`"+t+`: `+n+"` is not a valid mapper because the output range is zero; converting to `"+t+`: `+h.strValue+"`"),this.parse(t,h.strValue);if(u.color){var _=h.value,v=g.value;if(_[0]===v[0]&&_[1]===v[1]&&_[2]===v[2]&&(_[3]===v[3]||(_[3]==null||_[3]===1)&&(v[3]==null||v[3]===1)))return!1}return{name:t,value:f,strValue:``+n,mapped:m,field:f[1],fieldMin:parseFloat(f[2]),fieldMax:parseFloat(f[3]),valueMin:h.value,valueMax:g.value,bypass:r}}}if(u.multiple&&i!==`multiple`){var y=l?n.split(/\s+/):O(n)?n:[n];if(u.evenMultiple&&y.length%2!=0)return null;for(var b=[],x=[],S=[],C=``,w=!1,T=0;T0?` `:``)+k.strValue}return u.validate&&!u.validate(b,x)?null:u.singleEnum&&w?b.length===1&&E(b[0])?{name:t,value:b[0],strValue:b[0],bypass:r}:null:{name:t,value:b,pfValue:S,strValue:C,bypass:r,units:x}}var A=e(function(){for(var e=0;eu.max||u.strictMax&&n===u.max))return null;var I={name:t,value:n,strValue:``+n+(j||``),units:j,bypass:r};return u.unitless||j!==`px`&&j!==`em`?I.pfValue=n:I.pfValue=j===`px`||!j?n:this.getEmSizeInPixels()*n,(j===`ms`||j===`s`)&&(I.pfValue=j===`ms`?n:1e3*n),(j===`deg`||j===`rad`)&&(I.pfValue=j===`rad`?n:Fn(n)),j===`%`&&(I.pfValue=n/100),I}else if(u.propList){var L=[],R=``+n;if(R!==`none`){for(var z=R.split(/\s*,\s*|\s+/),B=0;B0&&o>0&&!isNaN(n.w)&&!isNaN(n.h)&&n.w>0&&n.h>0){s=Math.min((a-2*t)/n.w,(o-2*t)/n.h),s=s>this._private.maxZoom?this._private.maxZoom:s,s=s=n.minZoom&&(n.maxZoom=t),this},`zoomRange`),minZoom:e(function(e){return e===void 0?this._private.minZoom:this.zoomRange({min:e})},`minZoom`),maxZoom:e(function(e){return e===void 0?this._private.maxZoom:this.zoomRange({max:e})},`maxZoom`),getZoomedViewport:e(function(e){var t=this._private,n=t.pan,r=t.zoom,i,a,o=!1;if(t.zoomingEnabled||(o=!0),j(e)?a=e:k(e)&&(a=e.level,e.position==null?e.renderedPosition!=null&&(i=e.renderedPosition):i=On(e.position,r,n),i!=null&&!t.panningEnabled&&(o=!0)),a=a>t.maxZoom?t.maxZoom:a,a=at.maxZoom||!t.zoomingEnabled?a=!0:(t.zoom=s,i.push(`zoom`))}if(r&&(!a||!e.cancelOnFailedZoom)&&t.panningEnabled){var c=e.pan;j(c.x)&&(t.pan.x=c.x,o=!1),j(c.y)&&(t.pan.y=c.y,o=!1),o||i.push(`pan`)}return i.length>0&&(i.push(`viewport`),this.emit(i.join(` `)),this.notify(`viewport`)),this},`viewport`),center:e(function(e){var t=this.getCenterPan(e);return t&&(this._private.pan=t,this.emit(`pan viewport`),this.notify(`viewport`)),this},`center`),getCenterPan:e(function(e,t){if(this._private.panningEnabled){if(E(e)){var n=e;e=this.mutableElements().filter(n)}else P(e)||(e=this.mutableElements());if(e.length!==0){var r=e.boundingBox(),i=this.width(),a=this.height();return t=t===void 0?this._private.zoom:t,{x:(i-t*(r.x1+r.x2))/2,y:(a-t*(r.y1+r.y2))/2}}}},`getCenterPan`),reset:e(function(){return!this._private.panningEnabled||!this._private.zoomingEnabled||this.viewport({pan:{x:0,y:0},zoom:1}),this},`reset`),invalidateSize:e(function(){this._private.sizeCache=null},`invalidateSize`),size:e(function(){var t=this._private,n=t.container,r=this;return t.sizeCache=t.sizeCache||(n?(function(){var t=r.window().getComputedStyle(n),i=e(function(e){return parseFloat(t.getPropertyValue(e))},`val`);return{width:n.clientWidth-i(`padding-left`)-i(`padding-right`),height:n.clientHeight-i(`padding-top`)-i(`padding-bottom`)}})():{width:1,height:1})},`size`),width:e(function(){return this.size().width},`width`),height:e(function(){return this.size().height},`height`),extent:e(function(){var e=this._private.pan,t=this._private.zoom,n=this.renderedExtent(),r={x1:(n.x1-e.x)/t,x2:(n.x2-e.x)/t,y1:(n.y1-e.y)/t,y2:(n.y2-e.y)/t};return r.w=r.x2-r.x1,r.h=r.y2-r.y1,r},`extent`),renderedExtent:e(function(){var e=this.width(),t=this.height();return{x1:0,y1:0,x2:e,y2:t,w:e,h:t}},`renderedExtent`),multiClickDebounceTime:e(function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this},`multiClickDebounceTime`)};td.centre=td.center,td.autolockNodes=td.autolock,td.autoungrabifyNodes=td.autoungrabify;var nd={data:pc.data({field:`data`,bindingEvent:`data`,allowBinding:!0,allowSetting:!0,settingEvent:`data`,settingTriggersEvent:!0,triggerFnName:`trigger`,allowGetting:!0,updateStyle:!0}),removeData:pc.removeData({field:`data`,event:`data`,triggerFnName:`trigger`,triggerEvent:!0,updateStyle:!0}),scratch:pc.data({field:`scratch`,bindingEvent:`scratch`,allowBinding:!0,allowSetting:!0,settingEvent:`scratch`,settingTriggersEvent:!0,triggerFnName:`trigger`,allowGetting:!0,updateStyle:!0}),removeScratch:pc.removeData({field:`scratch`,event:`scratch`,triggerFnName:`trigger`,triggerEvent:!0,updateStyle:!0})};nd.attr=nd.data,nd.removeAttr=nd.removeData;var rd=e(function(t){var n=this;t=Z({},t);var r=t.container;r&&!N(r)&&N(r[0])&&(r=r[0]);var i=r?r._cyreg:null;i||={},i&&i.cy&&(i.cy.destroy(),i={});var a=i.readies=i.readies||[];r&&(r._cyreg=i),i.cy=n;var o=y!==void 0&&r!==void 0&&!t.headless,s=t;s.layout=Z({name:o?`grid`:`null`},s.layout),s.renderer=Z({name:o?`canvas`:`null`},s.renderer);var c=e(function(e,t,n){return t===void 0?n===void 0?e:n:t},`defVal`),l=this._private={container:r,ready:!1,options:s,elements:new _u(this),listeners:[],aniEles:new _u(this),data:s.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:c(!0,s.zoomingEnabled),userZoomingEnabled:c(!0,s.userZoomingEnabled),panningEnabled:c(!0,s.panningEnabled),userPanningEnabled:c(!0,s.userPanningEnabled),boxSelectionEnabled:c(!0,s.boxSelectionEnabled),autolock:c(!1,s.autolock,s.autolockNodes),autoungrabify:c(!1,s.autoungrabify,s.autoungrabifyNodes),autounselectify:c(!1,s.autounselectify),styleEnabled:s.styleEnabled===void 0?o:s.styleEnabled,zoom:j(s.zoom)?s.zoom:1,pan:{x:k(s.pan)&&j(s.pan.x)?s.pan.x:0,y:k(s.pan)&&j(s.pan.y)?s.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:c(250,s.multiClickDebounceTime)};this.createEmitter(),this.selectionType(s.selectionType),this.zoomRange({min:s.minZoom,max:s.maxZoom});var u=e(function(e,t){if(e.some(U))return fa.all(e).then(t);t(e)},`loadExtData`);l.styleEnabled&&n.setStyle([]);var d=Z({},s,s.renderer);n.initRenderer(d);var f=e(function(e,t,r){n.notifications(!1);var i=n.mutableElements();i.length>0&&i.remove(),e!=null&&(k(e)||O(e))&&n.add(e),n.one(`layoutready`,function(e){n.notifications(!0),n.emit(e),n.one(`load`,t),n.emitAndNotify(`load`)}).one(`layoutstop`,function(){n.one(`done`,r),n.emit(`done`)});var a=Z({},n._private.options.layout);a.eles=n.elements(),n.layout(a).run()},`setElesAndLayout`);u([s.style,s.elements],function(e){var t=e[0],r=e[1];l.styleEnabled&&n.style().append(t),f(r,function(){n.startAnimationLoop(),l.ready=!0,D(s.ready)&&n.on(`ready`,s.ready);for(var e=0;e0,c=!!t.boundingBox,l=Kn(c?t.boundingBox:structuredClone(n.extent())),u;if(P(t.roots))u=t.roots;else if(O(t.roots)){for(var d=[],f=0;f0;){var N=M(),F=D(N,A);if(F)N.outgoers().filter(function(e){return e.isNode()&&r.has(e)}).forEach(j);else if(F===null){zt("Detected double maximal shift for node `"+N.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}var I=0;if(t.avoidOverlap)for(var L=0;L0&&v[0].length<=3?a/2:0),s=2*Math.PI/v[r].length*i;return r===0&&v[0].length===1&&(o=1),{x:X.x+o*Math.cos(s),y:X.y+o*Math.sin(s)}}else{var u=v[r].length,d=Math.max(u===1?0:c?(l.w-t.padding*2-te.w)/((t.grid?re:u)-1):(l.w-t.padding*2-te.w)/((t.grid?re:u)+1),I);return{x:X.x+(i+1-(u+1)/2)*d,y:X.y+(r+1-(W+1)/2)*ne}}},`getPositionTopBottom`),ae={downward:0,leftward:90,upward:180,rightward:-90};Object.keys(ae).indexOf(t.direction)===-1&&Lt(`Invalid direction '${t.direction}' specified for breadthfirst layout. Valid values are: ${Object.keys(ae).join(`, `)}`);var oe=e(function(e){return Ot(ie(e),l,ae[t.direction])},`getPosition`);return r.nodes().layoutPositions(this,t,oe),this};var ud={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:e(function(e,t){return!0},`animateFilter`),ready:void 0,stop:void 0,transform:e(function(e,t){return t},`transform`)};function dd(e){this.options=Z({},ud,e)}e(dd,`CircleLayout`),dd.prototype.run=function(){var t=this.options,n=t,r=t.cy,i=n.eles,a=n.counterclockwise===void 0?n.clockwise:!n.counterclockwise,o=i.nodes().not(`:parent`);n.sort&&(o=o.sort(n.sort));for(var s=Kn(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),c={x:s.x1+s.w/2,y:s.y1+s.h/2},l=(n.sweep===void 0?2*Math.PI-2*Math.PI/o.length:n.sweep)/Math.max(1,o.length-1),u,d=0,f=0;f1&&n.avoidOverlap){d*=1.75;var g=Math.cos(l)-Math.cos(0),_=Math.sin(l)-Math.sin(0),v=Math.sqrt(d*d/(g*g+_*_));u=Math.max(v,u)}var y=e(function(e,t){var r=n.startAngle+t*l*(a?1:-1),i=u*Math.cos(r),o=u*Math.sin(r);return{x:c.x+i,y:c.y+o}},`getPos`);return i.nodes().layoutPositions(this,n,y),this};var fd={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:e(function(e){return e.degree()},`concentric`),levelWidth:e(function(e){return e.maxDegree()/4},`levelWidth`),animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:e(function(e,t){return!0},`animateFilter`),ready:void 0,stop:void 0,transform:e(function(e,t){return t},`transform`)};function pd(e){this.options=Z({},fd,e)}e(pd,`ConcentricLayout`),pd.prototype.run=function(){for(var e=this.options,t=e,n=t.counterclockwise===void 0?t.clockwise:!t.counterclockwise,r=e.cy,i=t.eles,a=i.nodes().not(`:parent`),o=Kn(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},c=[],l=0,u=0;u0&&Math.abs(_[0].value-y.value)>=h&&(_=[],g.push(_)),_.push(y)}var b=l+t.minNodeSpacing;if(!t.avoidOverlap){var x=g.length>0&&g[0].length>1,S=(Math.min(o.w,o.h)/2-b)/(g.length+x?1:0);b=Math.min(b,S)}for(var C=0,w=0;w1&&t.avoidOverlap){var D=Math.cos(E)-Math.cos(0),O=Math.sin(E)-Math.sin(0),k=Math.sqrt(b*b/(D*D+O*O));C=Math.max(k,C)}T.r=C,C+=b}if(t.equidistant){for(var A=0,j=0,M=0;M=t.numIter||(wd(i,t),i.temperature*=t.coolingFactor,i.temperature=t.animationThreshold&&o(),dt(d)):(Id(i,t),c())},`frame`);d()}else{for(;u;)u=s(l),l++;Id(i,t),c()}return this},gd.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit(`layoutstop`),this},gd.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var _d=e(function(e,t,n){for(var r=n.eles.edges(),i=n.eles.nodes(),a=Kn(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),o={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:r.size(),temperature:n.initialTemp,clientWidth:a.w,clientHeight:a.h,boundingBox:a},s=n.eles.components(),c={},l=0;l0){o.graphSet.push(C);for(var l=0;lr.count?0:r.graph},`findLCA`),yd=e(function(e,t,n,r){var i=r.graphSet[n];if(-10)var c=r.nodeOverlap*s,l=Math.sqrt(i*i+a*a),u=c*i/l,d=c*a/l;else var f=kd(e,i,a),p=kd(t,-1*i,-1*a),m=p.x-f.x,h=p.y-f.y,g=m*m+h*h,l=Math.sqrt(g),c=(e.nodeRepulsion+t.nodeRepulsion)/g,u=c*m/l,d=c*h/l;e.isLocked||(e.offsetX-=u,e.offsetY-=d),t.isLocked||(t.offsetX+=u,t.offsetY+=d)}},`nodeRepulsion`),Od=e(function(e,t,n,r){if(n>0)var i=e.maxX-t.minX;else var i=t.maxX-e.minX;if(r>0)var a=e.maxY-t.minY;else var a=t.maxY-e.minY;return i>=0&&a>=0?Math.sqrt(i*i+a*a):0},`nodesOverlap`),kd=e(function(e,t,n){var r=e.positionX,i=e.positionY,a=e.height||1,o=e.width||1,s=n/t,c=a/o,l={};return t===0&&0n?(l.x=r,l.y=i+a/2,l):0t&&-1*c<=s&&s<=c?(l.x=r-o/2,l.y=i-o*n/2/t,l):0=c)?(l.x=r+a*t/2/n,l.y=i+a/2,l):0>n&&(s<=-1*c||s>=c)?(l.x=r-a*t/2/n,l.y=i-a/2,l):l},`findClippingPoint`),Ad=e(function(e,t){for(var n=0;nn){var h=t.gravity*f/m,g=t.gravity*p/m;d.offsetX+=h,d.offsetY+=g}}}}},`calculateGravityForces`),Md=e(function(e,t){var n=[],r=0,i=-1;for(n.push.apply(n,e.graphSet[0]),i+=e.graphSet[0].length;r<=i;){var a=n[r++],o=e.idToIndex[a],s=e.layoutNodes[o],c=s.children;if(0n)var i={x:n*e/r,y:n*t/r};else var i={x:e,y:t};return i},`limitForce`),Fd=e(function(e,t){var n=e.parentId;if(n!=null){var r=t.layoutNodes[t.idToIndex[n]],i=!1;if((r.maxX==null||e.maxX+r.padRight>r.maxX)&&(r.maxX=e.maxX+r.padRight,i=!0),(r.minX==null||e.minX-r.padLeftr.maxY)&&(r.maxY=e.maxY+r.padBottom,i=!0),(r.minY==null||e.minY-r.padToph&&(f+=m+t.componentSpacing,d=0,p=0,m=0)}}},`separateComponents`),Ld={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:e(function(e){},`position`),sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:e(function(e,t){return!0},`animateFilter`),ready:void 0,stop:void 0,transform:e(function(e,t){return t},`transform`)};function Rd(e){this.options=Z({},Ld,e)}e(Rd,`GridLayout`),Rd.prototype.run=function(){var t=this.options,n=t,r=t.cy,i=n.eles,a=i.nodes().not(`:parent`);n.sort&&(a=a.sort(n.sort));var o=Kn(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(o.h===0||o.w===0)i.nodes().layoutPositions(this,n,function(e){return{x:o.x1,y:o.y1}});else{var s=a.size(),c=Math.sqrt(s*o.h/o.w),l=Math.round(c),u=Math.round(o.w/o.h*c),d=e(function(e){if(e==null)return Math.min(l,u);Math.min(l,u)==l?l=e:u=e},`small`),f=e(function(e){if(e==null)return Math.max(l,u);Math.max(l,u)==l?l=e:u=e},`large`),p=n.rows,m=n.cols==null?n.columns:n.cols;if(p!=null&&m!=null)l=p,u=m;else if(p!=null&&m==null)l=p,u=Math.ceil(s/l);else if(p==null&&m!=null)u=m,l=Math.ceil(s/u);else if(u*l>s){var h=d(),g=f();(h-1)*g>=s?d(h-1):(g-1)*h>=s&&f(g-1)}else for(;u*l=s?f(v+1):d(_+1)}var y=o.w/u,b=o.h/l;if(n.condense&&(y=0,b=0),n.avoidOverlap)for(var x=0;x=u&&(M=0,j++)},`moveToNextCell`),P={},F=0;F(y=pr(t,n,b[x],b[x+1],b[x+2],b[x+3])))return _(e,y),!0}else if(i.edgeType===`bezier`||i.edgeType===`multibezier`||i.edgeType===`self`||i.edgeType===`compound`){for(var b=i.allpts,x=0;x+5(y=fr(t,n,b[x],b[x+1],b[x+2],b[x+3],b[x+4],b[x+5])))return _(e,y),!0}for(var h=h||r.source,g=g||r.target,S=a.getArrowWidth(s,l),C=[{name:`source`,x:i.arrowStartX,y:i.arrowStartY,angle:i.srcArrowAngle},{name:`target`,x:i.arrowEndX,y:i.arrowEndY,angle:i.tgtArrowAngle},{name:`mid-source`,x:i.midX,y:i.midY,angle:i.midsrcArrowAngle},{name:`mid-target`,x:i.midX,y:i.midY,angle:i.midtgtArrowAngle}],x=0;x0&&(v(h),v(g))}e(y,`checkEdge`);function b(e,t,n){return Xt(e,t,n)}e(b,`preprop`);function x(r,i){var a=r._private,o=p,s=i?i+`-`:``;r.boundingBox();var c=a.labelBounds[i||`main`],l=r.pstyle(s+`label`).value;if(!(r.pstyle(`text-events`).strValue!==`yes`||!l)){var u=b(a.rscratch,`labelX`,i),d=b(a.rscratch,`labelY`,i),f=b(a.rscratch,`labelAngle`,i),m=r.pstyle(s+`text-margin-x`).pfValue,h=r.pstyle(s+`text-margin-y`).pfValue,g=c.x1-o-m,v=c.x2+o-m,y=c.y1-o-h,x=c.y2+o-h;if(f){var S=Math.cos(f),C=Math.sin(f),w=e(function(e,t){return e-=u,t-=d,{x:e*S-t*C+u,y:e*C+t*S+d}},`rotate`),T=w(g,y),E=w(g,x),D=w(v,y),O=w(v,x);if(mr(t,n,[T.x+m,T.y+h,D.x+m,D.y+h,O.x+m,O.y+h,E.x+m,E.y+h]))return _(r),!0}else if(tr(c,t,n))return _(r),!0}}e(x,`checkLabel`);for(var S=s.length-1;S>=0;S--){var C=s[S];C.isNode()?v(C)||x(C):y(C)||x(C)||x(C,`source`)||x(C,`target`)}return c},Xd.getAllInBox=function(t,n,r,i){var a=this.getCachedZSortedEles().interactive,o=2/this.cy.zoom(),s=[],c=Math.min(t,r),l=Math.max(t,r),u=Math.min(n,i),d=Math.max(n,i);t=c,r=l,n=u,i=d;var f=Kn({x1:t,y1:n,x2:r,y2:i}),m=[{x:f.x1,y:f.y1},{x:f.x2,y:f.y1},{x:f.x2,y:f.y2},{x:f.x1,y:f.y2}],h=[[m[0],m[1]],[m[1],m[2]],[m[2],m[3]],[m[3],m[0]]];function g(e,t,n){return Xt(e,t,n)}e(g,`preprop`);function _(t,n){var r=t._private,i=o,a=``;t.boundingBox();var s=r.labelBounds.main;if(!s)return null;var c=g(r.rscratch,`labelX`,n),l=g(r.rscratch,`labelY`,n),u=g(r.rscratch,`labelAngle`,n),d=t.pstyle(a+`text-margin-x`).pfValue,f=t.pstyle(a+`text-margin-y`).pfValue,p=s.x1-i-d,m=s.x2+i-d,h=s.y1-i-f,_=s.y2+i-f;if(u){var v=Math.cos(u),y=Math.sin(u),b=e(function(e,t){return e-=c,t-=l,{x:e*v-t*y+c,y:e*y+t*v+l}},`rotate`);return[b(p,h),b(m,h),b(m,_),b(p,_)]}else return[{x:p,y:h},{x:m,y:h},{x:m,y:_},{x:p,y:_}]}e(_,`getRotatedLabelBox`);function v(t,n,r,i){function a(e,t,n){return(n.y-e.y)*(t.x-e.x)>(t.y-e.y)*(n.x-e.x)}return e(a,`ccw`),a(t,r,i)!==a(n,r,i)&&a(t,n,r)!==a(t,n,i)}e(v,`doLinesIntersect`);for(var y=0;y0?-(Math.PI-e.ang):Math.PI+e.ang},`invertVec`),bf=e(function(e,t,n,r,i){if(e===_f?yf(tf,ef):vf(t,e,ef),vf(t,n,tf),nf=ef.nx*tf.ny-ef.ny*tf.nx,rf=ef.nx*tf.nx-ef.ny*-tf.ny,sf=Math.asin(Math.max(-1,Math.min(1,nf))),Math.abs(sf)<1e-6){Qd=t.x,$d=t.y,lf=df=0;return}af=1,of=!1,rf<0?sf<0?sf=Math.PI+sf:(sf=Math.PI-sf,af=-1,of=!0):sf>0&&(af=-1,of=!0),df=t.radius===void 0?r:t.radius,cf=sf/2,ff=Math.min(ef.len/2,tf.len/2),i?(uf=Math.abs(Math.cos(cf)*df/Math.sin(cf)),uf>ff?(uf=ff,lf=Math.abs(uf*Math.sin(cf)/Math.cos(cf))):lf=df):(uf=Math.min(ff,df),lf=Math.abs(uf*Math.sin(cf)/Math.cos(cf))),hf=t.x+tf.nx*uf,gf=t.y+tf.ny*uf,Qd=hf-tf.ny*lf*af,$d=gf+tf.nx*lf*af,pf=t.x+ef.nx*uf,mf=t.y+ef.ny*uf,_f=t},`calcCornerArc`);function xf(e,t){t.radius===0?e.lineTo(t.cx,t.cy):e.arc(t.cx,t.cy,t.radius,t.startAngle,t.endAngle,t.counterClockwise)}e(xf,`drawPreparedRoundCorner`);function Sf(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return r===0||t.radius===0?{cx:t.x,cy:t.y,radius:0,startX:t.x,startY:t.y,stopX:t.x,stopY:t.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(bf(e,t,n,r,i),{cx:Qd,cy:$d,radius:lf,startX:pf,startY:mf,stopX:hf,stopY:gf,startAngle:ef.ang+Math.PI/2*af,endAngle:tf.ang-Math.PI/2*af,counterClockwise:of})}e(Sf,`getRoundCorner`);var Cf=.01,wf=Math.sqrt(2*Cf),Tf={};Tf.findMidptPtsEtc=function(t,n){var r=n.posPts,i=n.intersectionPts,a=n.vectorNormInverse,o,s=t.pstyle(`source-endpoint`),c=t.pstyle(`target-endpoint`),l=s.units!=null&&c.units!=null,u=e(function(e,t,n,r){var i=r-t,a=n-e,o=Math.sqrt(a*a+i*i);return{x:-i/o,y:a/o}},`recalcVectorNormInverse`);switch(t.pstyle(`edge-distances`).value){case`node-position`:o=r;break;case`intersection`:o=i;break;case`endpoints`:if(l){var d=p(this.manualEndptToPx(t.source()[0],s),2),f=d[0],m=d[1],h=p(this.manualEndptToPx(t.target()[0],c),2),g=h[0],_=h[1],v={x1:f,y1:m,x2:g,y2:_};a=u(f,m,g,_),o=v}else zt(`Edge ${t.id()} has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).`),o=i;break}return{midptPts:o,vectorNormInverse:a}},Tf.findHaystackPoints=function(e){for(var t=0;t0?Math.max(e-t,0):Math.min(e+t,0)},`subDWH`),k=O(E,w),A=O(D,T),j=!1;v===u?_=Math.abs(k)>Math.abs(A)?a:i:v===l||v===c?(_=i,j=!0):(v===o||v===s)&&(_=a,j=!0);var M=_===i,N=M?A:k,P=M?D:E,F=Rn(P),I=!1;!(j&&(b||S))&&(v===c&&P<0||v===l&&P>0||v===o&&P>0||v===s&&P<0)&&(F*=-1,N=F*Math.abs(N),I=!0);var L=b?(x<0?1+x:x)*N:(x<0?N:0)+x*F,R=e(function(e){return Math.abs(e)=Math.abs(N)},`getIsTooClose`),z=R(L),B=R(Math.abs(N)-Math.abs(L));if((z||B)&&!I)if(M){var V=Math.abs(P)<=p/2,H=Math.abs(E)<=m/2;if(V){var U=(d.x1+d.x2)/2;r.segpts=[U,d.y1,U,d.y2]}else if(H){var W=(d.y1+d.y2)/2;r.segpts=[d.x1,W,d.x2,W]}else r.segpts=[d.x1,d.y2]}else{var G=Math.abs(P)<=f/2,K=Math.abs(D)<=h/2;if(G){var q=(d.y1+d.y2)/2;r.segpts=[d.x1,q,d.x2,q]}else if(K){var J=(d.x1+d.x2)/2;r.segpts=[J,d.y1,J,d.y2]}else r.segpts=[d.x2,d.y1]}else if(M){var Y=d.y1+L+(g?p/2*F:0);r.segpts=[d.x1,Y,d.x2,Y]}else{var ee=d.x1+L+(g?f/2*F:0);r.segpts=[ee,d.y1,ee,d.y2]}if(r.isRound){var X=t.pstyle(`taxi-radius`).value,te=t.pstyle(`radius-type`).value[0]===`arc-radius`;r.radii=Array(r.segpts.length/2).fill(X),r.isArcRadius=Array(r.segpts.length/2).fill(te)}},Tf.tryToCorrectInvalidPoints=function(e,t){var n=e._private.rscratch;if(n.edgeType===`bezier`){var r=t.srcPos,i=t.tgtPos,a=t.srcW,o=t.srcH,s=t.tgtW,c=t.tgtH,l=t.srcShape,u=t.tgtShape,d=t.srcCornerRadius,f=t.tgtCornerRadius,p=t.srcRs,m=t.tgtRs,h=!j(n.startX)||!j(n.startY),g=!j(n.arrowStartX)||!j(n.arrowStartY),_=!j(n.endX)||!j(n.endY),v=!j(n.arrowEndX)||!j(n.arrowEndY),y=3*(this.getArrowWidth(e.pstyle(`width`).pfValue,e.pstyle(`arrow-scale`).value)*this.arrowShapeWidth),b=zn({x:n.ctrlpts[0],y:n.ctrlpts[1]},{x:n.startX,y:n.startY}),x=bh.poolIndex()){var g=m;m=h,h=g}var _=u.srcPos=m.position(),v=u.tgtPos=h.position(),y=u.srcW=m.outerWidth(),b=u.srcH=m.outerHeight(),x=u.tgtW=h.outerWidth(),C=u.tgtH=h.outerHeight(),w=u.srcShape=r.nodeShapes[n.getNodeShape(m)],T=u.tgtShape=r.nodeShapes[n.getNodeShape(h)],E=u.srcCornerRadius=m.pstyle(`corner-radius`).value===`auto`?`auto`:m.pstyle(`corner-radius`).pfValue,D=u.tgtCornerRadius=h.pstyle(`corner-radius`).value===`auto`?`auto`:h.pstyle(`corner-radius`).pfValue,O=u.tgtRs=h._private.rscratch,k=u.srcRs=m._private.rscratch;u.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var A=0;A=wf||(G=Math.sqrt(Math.max(W*W,Cf)+Math.max(U*U,Cf)));var K=u.vector={x:W,y:U},q=u.vectorNorm={x:K.x/G,y:K.y/G},J={x:-q.y,y:q.x};u.nodesOverlap=!j(G)||T.checkPoint(L[0],L[1],0,x,C,v.x,v.y,D,O)||w.checkPoint(z[0],z[1],0,y,b,_.x,_.y,E,k),u.vectorNormInverse=J,d={nodesOverlap:u.nodesOverlap,dirCounts:u.dirCounts,calculatedIntersection:!0,hasBezier:u.hasBezier,hasUnbundled:u.hasUnbundled,eles:u.eles,srcPos:v,srcRs:O,tgtPos:_,tgtRs:k,srcW:x,srcH:C,tgtW:y,tgtH:b,srcIntn:B,tgtIntn:R,srcShape:T,tgtShape:w,posPts:{x1:H.x2,y1:H.y2,x2:H.x1,y2:H.y1},intersectionPts:{x1:V.x2,y1:V.y2,x2:V.x1,y2:V.y1},vector:{x:-K.x,y:-K.y},vectorNorm:{x:-q.x,y:-q.y},vectorNormInverse:{x:-J.x,y:-J.y}}}var Y=I?d:u;N.nodesOverlap=Y.nodesOverlap,N.srcIntn=Y.srcIntn,N.tgtIntn=Y.tgtIntn,N.isRound=P.startsWith(`round`),i&&(m.isParent()||m.isChild()||h.isParent()||h.isChild())&&(m.parents().anySame(h)||h.parents().anySame(m)||m.same(h)&&m.isParent())?n.findCompoundLoopPoints(M,Y,A,F):m===h?n.findLoopPoints(M,Y,A,F):P.endsWith(`segments`)?n.findSegmentsPoints(M,Y):P.endsWith(`taxi`)?n.findTaxiPoints(M,Y):P===`straight`||!F&&u.eles.length%2==1&&A===Math.floor(u.eles.length/2)?n.findStraightEdgePoints(M):n.findBezierPoints(M,Y,A,F,I),n.findEndpoints(M),n.tryToCorrectInvalidPoints(M,Y),n.checkForInvalidEdgeWarning(M),n.storeAllpts(M),n.storeEdgeProjections(M),n.calculateArrowAngles(M),n.recalculateEdgeLabelProjections(M),n.calculateLabelAngles(M)}},`_loop`),S=0;S0){var te=s,ne=Bn(te,An(i)),re=Bn(te,An(X)),ie=ne;re2&&Bn(te,{x:X[2],y:X[3]})0){var ge=c,_e=Bn(ge,An(i)),ve=Bn(ge,An(he)),ye=_e;ve<_e&&(i=[he[0],he[1]],ye=ve),he.length>2&&Bn(ge,{x:he[2],y:he[3]})=l||v){d={cp:h,segment:_};break}}if(d)break}var y=d.cp,b=d.segment,x=(l-f)/b.length,S=b.t1-b.t0,C=a?b.t0+S*x:b.t1-S*x;C=Gn(0,C,1),n=Un(y.p0,y.p1,y.p2,C),r=Nf(y.p0,y.p1,y.p2,C);break;case`straight`:case`segments`:case`haystack`:for(var w=0,T,E,D,O,k=i.allpts.length,A=0;A+3=l));A+=2);var j=(l-E)/T;j=Gn(0,j,1),n=Wn(D,O,j),r=Mf(D,O);break}s(`labelX`,e,n.x),s(`labelY`,e,n.y),s(`labelAutoAngle`,e,r)}},`calculateEndProjection`);l(`source`),l(`target`),this.applyLabelDimensions(t)}},Af.applyLabelDimensions=function(e){this.applyPrefixedLabelDimensions(e),e.isEdge()&&(this.applyPrefixedLabelDimensions(e,`source`),this.applyPrefixedLabelDimensions(e,`target`))},Af.applyPrefixedLabelDimensions=function(e,t){var n=e._private,r=this.getLabelText(e,t),i=Ct(r,e._private.labelDimsKey);if(Xt(n.rscratch,`prefixedLabelDimsKey`,t)!==i){Zt(n.rscratch,`prefixedLabelDimsKey`,t,i);var a=this.calculateLabelDimensions(e,r),o=e.pstyle(`line-height`).pfValue,s=e.pstyle(`text-wrap`).strValue,c=Xt(n.rscratch,`labelWrapCachedLines`,t)||[],l=s===`wrap`?Math.max(c.length,1):1,u=a.height/l,d=u*o,f=a.width,p=a.height+(l-1)*(o-1)*u;Zt(n.rstyle,`labelWidth`,t,f),Zt(n.rscratch,`labelWidth`,t,f),Zt(n.rstyle,`labelHeight`,t,p),Zt(n.rscratch,`labelHeight`,t,p),Zt(n.rscratch,`labelLineHeight`,t,d)}},Af.getLabelText=function(t,n){var r=t._private,i=n?n+`-`:``,a=t.pstyle(i+`label`).strValue,o=t.pstyle(`text-transform`).value,c=e(function(e,t){return t?(Zt(r.rscratch,e,n,t),t):Xt(r.rscratch,e,n)},`rscratch`);if(!a)return``;o==`none`||(o==`uppercase`?a=a.toUpperCase():o==`lowercase`&&(a=a.toLowerCase()));var l=t.pstyle(`text-wrap`).value;if(l===`wrap`){var u=c(`labelKey`);if(u!=null&&c(`labelWrapKey`)===u)return c(`labelWrapCachedText`);for(var d=`​`,f=a.split(` +`),p=t.pstyle(`text-max-width`).pfValue,m=t.pstyle(`text-overflow-wrap`).value===`anywhere`,h=[],g=/[\s\u200b]+|$/g,_=0;_p){var b=v.matchAll(g),x=``,S=0,C=s(b),w;try{for(C.s();!(w=C.n()).done;){var T=w.value,E=T[0],D=v.substring(S,T.index);S=T.index+E.length;var O=x.length===0?D:x+D+E;this.calculateLabelDimensions(t,O).width<=p?x+=D+E:(x&&h.push(x),x=D+E)}}catch(e){C.e(e)}finally{C.f()}x.match(/^[\s\u200b]+$/)||h.push(x)}else h.push(v)}c(`labelWrapCachedLines`,h),a=c(`labelWrapCachedText`,h.join(` +`)),c(`labelWrapKey`,u)}else if(l===`ellipsis`){var k=t.pstyle(`text-max-width`).pfValue,A=``,j=`…`,M=!1;if(this.calculateLabelDimensions(t,a).widthk);N++)A+=a[N],N===a.length-1&&(M=!0);return M||(A+=j),A}return a},Af.getLabelJustification=function(e){var t=e.pstyle(`text-justification`).strValue,n=e.pstyle(`text-halign`).strValue;if(t===`auto`)if(e.isNode())switch(n){case`left`:return`right`;case`right`:return`left`;default:return`center`}else return`center`;else return t},Af.calculateLabelDimensions=function(e,t){var n=this.cy.window().document,r=0,i=e.pstyle(`font-style`).strValue,a=e.pstyle(`font-size`).pfValue,o=e.pstyle(`font-family`).strValue,s=e.pstyle(`font-weight`).strValue,c=this.labelCalcCanvas,l=this.labelCalcCanvasContext;if(!c){c=this.labelCalcCanvas=n.createElement(`canvas`),l=this.labelCalcCanvasContext=c.getContext(`2d`);var u=c.style;u.position=`absolute`,u.left=`-9999px`,u.top=`-9999px`,u.zIndex=`-1`,u.visibility=`hidden`,u.pointerEvents=`none`}l.font=`${i} ${s} ${a}px ${o}`;for(var d=0,f=0,p=t.split(` +`),m=0;m1&&arguments[1]!==void 0?arguments[1]:!0;if(n.merge(e),t)for(var r=0;r=t.desktopTapThreshold2}var E=o(n);x&&(t.hoverData.tapholdCancelled=!0);var O=e(function(){var e=t.hoverData.dragDelta=t.hoverData.dragDelta||[];e.length===0?(e.push(y[0]),e.push(y[1])):(e[0]+=y[0],e[1]+=y[1])},`updateDragDelta`);r=!0,a(m,[`mousemove`,`vmousemove`,`tapdrag`],n,{x:u[0],y:u[1]});var k=e(function(e){return{originalEvent:n,type:e,position:{x:u[0],y:u[1]}}},`makeEvent`),A=e(function(){t.data.bgActivePosistion=void 0,t.hoverData.selecting||i.emit(k(`boxstart`)),p[4]=1,t.hoverData.selecting=!0,t.redrawHint(`select`,!0),t.redraw()},`goIntoBoxMode`);if(t.hoverData.which===3){if(x){var M=k(`cxtdrag`);_?_.emit(M):i.emit(M),t.hoverData.cxtDragged=!0,(!t.hoverData.cxtOver||m!==t.hoverData.cxtOver)&&(t.hoverData.cxtOver&&t.hoverData.cxtOver.emit(k(`cxtdragout`)),t.hoverData.cxtOver=m,m&&m.emit(k(`cxtdragover`)))}}else if(t.hoverData.dragging){if(r=!0,i.panningEnabled()&&i.userPanningEnabled()){var N;if(t.hoverData.justStartedPan){var P=t.hoverData.mdownPos;N={x:(u[0]-P[0])*c,y:(u[1]-P[1])*c},t.hoverData.justStartedPan=!1}else N={x:y[0]*c,y:y[1]*c};i.panBy(N),i.emit(k(`dragpan`)),t.hoverData.dragged=!0}u=t.projectIntoViewport(n.clientX,n.clientY)}else if(p[4]==1&&(_==null||_.pannable()))x&&(!t.hoverData.dragging&&i.boxSelectionEnabled()&&(E||!i.panningEnabled()||!i.userPanningEnabled())?A():!t.hoverData.selecting&&i.panningEnabled()&&i.userPanningEnabled()&&s(_,t.hoverData.downs)&&(t.hoverData.dragging=!0,t.hoverData.justStartedPan=!0,p[4]=0,t.data.bgActivePosistion=An(d),t.redrawHint(`select`,!0),t.redraw()),_&&_.pannable()&&_.active()&&_.unactivate());else{if(_&&_.pannable()&&_.active()&&_.unactivate(),(!_||!_.grabbed())&&m!=h&&(h&&a(h,[`mouseout`,`tapdragout`],n,{x:u[0],y:u[1]}),m&&a(m,[`mouseover`,`tapdragover`],n,{x:u[0],y:u[1]}),t.hoverData.last=m),_)if(x){if(i.boxSelectionEnabled()&&E)_&&_.grabbed()&&(v(b),_.emit(k(`freeon`)),b.emit(k(`free`)),t.dragData.didDrag&&(_.emit(k(`dragfreeon`)),b.emit(k(`dragfree`)))),A();else if(_&&_.grabbed()&&t.nodeIsDraggable(_)){var F=!t.dragData.didDrag;F&&t.redrawHint(`eles`,!0),t.dragData.didDrag=!0,t.hoverData.draggingEles||g(b,{inDragLayer:!0});var I={x:0,y:0};if(j(y[0])&&j(y[1])&&(I.x+=y[0],I.y+=y[1],F)){var L=t.hoverData.dragDelta;L&&j(L[0])&&j(L[1])&&(I.x+=L[0],I.y+=L[1])}t.hoverData.draggingEles=!0,b.silentShift(I).emit(k(`position`)).emit(k(`drag`)),t.redrawHint(`drag`,!0),t.redraw()}}else O();r=!0}if(p[2]=u[0],p[3]=u[1],r)return n.stopPropagation&&n.stopPropagation(),n.preventDefault&&n.preventDefault(),!1}},`mousemoveHandler`),!1);var k,A,M;t.registerBinding(n,`mouseup`,e(function(n){if(!(t.hoverData.which===1&&n.which!==1&&t.hoverData.capture)&&t.hoverData.capture){t.hoverData.capture=!1;var i=t.cy,s=t.projectIntoViewport(n.clientX,n.clientY),c=t.selection,l=t.findNearestElement(s[0],s[1],!0,!1),u=t.dragData.possibleDragElements,d=t.hoverData.down,f=o(n);t.data.bgActivePosistion&&(t.redrawHint(`select`,!0),t.redraw()),t.hoverData.tapholdCancelled=!0,t.data.bgActivePosistion=void 0,d&&d.unactivate();var p=e(function(e){return{originalEvent:n,type:e,position:{x:s[0],y:s[1]}}},`makeEvent`);if(t.hoverData.which===3){var m=p(`cxttapend`);if(d?d.emit(m):i.emit(m),!t.hoverData.cxtDragged){var h=p(`cxttap`);d?d.emit(h):i.emit(h)}t.hoverData.cxtDragged=!1,t.hoverData.which=null}else if(t.hoverData.which===1){if(a(l,[`mouseup`,`tapend`,`vmouseup`],n,{x:s[0],y:s[1]}),!t.dragData.didDrag&&!t.hoverData.dragged&&!t.hoverData.selecting&&!t.hoverData.isOverThresholdDrag&&(a(d,[`click`,`tap`,`vclick`],n,{x:s[0],y:s[1]}),A=!1,n.timeStamp-M<=i.multiClickDebounceTime()?(k&&clearTimeout(k),A=!0,M=null,a(d,[`dblclick`,`dbltap`,`vdblclick`],n,{x:s[0],y:s[1]})):(k=setTimeout(function(){A||a(d,[`oneclick`,`onetap`,`voneclick`],n,{x:s[0],y:s[1]})},i.multiClickDebounceTime()),M=n.timeStamp)),d==null&&!t.dragData.didDrag&&!t.hoverData.selecting&&!t.hoverData.dragged&&!o(n)&&(i.$(r).unselect([`tapunselect`]),u.length>0&&t.redrawHint(`eles`,!0),t.dragData.possibleDragElements=u=i.collection()),l==d&&!t.dragData.didDrag&&!t.hoverData.selecting&&l!=null&&l._private.selectable&&(t.hoverData.dragging||(i.selectionType()===`additive`||f?l.selected()?l.unselect([`tapunselect`]):l.select([`tapselect`]):f||(i.$(r).unmerge(l).unselect([`tapunselect`]),l.select([`tapselect`]))),t.redrawHint(`eles`,!0)),t.hoverData.selecting){var g=i.collection(t.getAllInBox(c[0],c[1],c[2],c[3]));t.redrawHint(`select`,!0),g.length>0&&t.redrawHint(`eles`,!0),i.emit(p(`boxend`));var _=e(function(e){return e.selectable()&&!e.selected()},`eleWouldBeSelected`);i.selectionType()===`additive`||f||i.$(r).unmerge(g).unselect(),g.emit(p(`box`)).stdFilter(_).select().emit(p(`boxselect`)),t.redraw()}if(t.hoverData.dragging&&(t.hoverData.dragging=!1,t.redrawHint(`select`,!0),t.redrawHint(`eles`,!0),t.redraw()),!c[4]){t.redrawHint(`drag`,!0),t.redrawHint(`eles`,!0);var y=d&&d.grabbed();v(u),y&&(d.emit(p(`freeon`)),u.emit(p(`free`)),t.dragData.didDrag&&(d.emit(p(`dragfreeon`)),u.emit(p(`dragfree`))))}}c[4]=0,t.hoverData.down=null,t.hoverData.cxtStarted=!1,t.hoverData.draggingEles=!1,t.hoverData.selecting=!1,t.hoverData.isOverThresholdDrag=!1,t.dragData.didDrag=!1,t.hoverData.dragged=!1,t.hoverData.dragDelta=[],t.hoverData.mdownPos=null,t.hoverData.mdownGPos=null,t.hoverData.which=null}},`mouseupHandler`),!1);var N=[],P=4,F,I=1e5,L=e(function(e,t){for(var n=0;n=P){var i=N;if(F=L(i,5),!F){var a=Math.abs(i[0]);F=R(i)&&a>5}if(F)for(var o=0;o5&&(r=Rn(r)*5),f=r/-250,F&&(f/=I,f*=3),f*=t.wheelSensitivity,e.deltaMode===1&&(f*=33);var p=s.zoom()*10**f;e.type===`gesturechange`&&(p=t.gestureStartZoom*e.scale),s.zoom({level:p,renderedPosition:{x:d[0],y:d[1]}}),s.emit({type:e.type===`gesturechange`?`pinchzoom`:`scrollzoom`,originalEvent:e,position:{x:u[0],y:u[1]}})}}}},`wheelHandler`);t.registerBinding(t.container,`wheel`,z,!0),t.registerBinding(n,`scroll`,e(function(e){t.scrollingPage=!0,clearTimeout(t.scrollingPageTimeout),t.scrollingPageTimeout=setTimeout(function(){t.scrollingPage=!1},250)},`scrollHandler`),!0),t.registerBinding(t.container,`gesturestart`,e(function(e){t.gestureStartZoom=t.cy.zoom(),t.hasTouchStarted||e.preventDefault()},`gestureStartHandler`),!0),t.registerBinding(t.container,`gesturechange`,function(e){t.hasTouchStarted||z(e)},!0),t.registerBinding(t.container,`mouseout`,e(function(e){var n=t.projectIntoViewport(e.clientX,e.clientY);t.cy.emit({originalEvent:e,type:`mouseout`,position:{x:n[0],y:n[1]}})},`mouseOutHandler`),!1),t.registerBinding(t.container,`mouseover`,e(function(e){var n=t.projectIntoViewport(e.clientX,e.clientY);t.cy.emit({originalEvent:e,type:`mouseover`,position:{x:n[0],y:n[1]}})},`mouseOverHandler`),!1);var B,V,H,U,W,G,K,q,J,Y,ee,X,te,ne=e(function(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))},`distance`),re=e(function(e,t,n,r){return(n-e)*(n-e)+(r-t)*(r-t)},`distanceSq`),ie;t.registerBinding(t.container,`touchstart`,ie=e(function(n){if(t.hasTouchStarted=!0,D(n)){b(),t.touchData.capture=!0,t.data.bgActivePosistion=void 0;var r=t.cy,i=t.touchData.now,o=t.touchData.earlier;if(n.touches[0]){var s=t.projectIntoViewport(n.touches[0].clientX,n.touches[0].clientY);i[0]=s[0],i[1]=s[1]}if(n.touches[1]){var s=t.projectIntoViewport(n.touches[1].clientX,n.touches[1].clientY);i[2]=s[0],i[3]=s[1]}if(n.touches[2]){var s=t.projectIntoViewport(n.touches[2].clientX,n.touches[2].clientY);i[4]=s[0],i[5]=s[1]}var c=e(function(e){return{originalEvent:n,type:e,position:{x:i[0],y:i[1]}}},`makeEvent`);if(n.touches[1]){t.touchData.singleTouchMoved=!0,v(t.dragData.touchDragEles);var l=t.findContainerClientCoords();J=l[0],Y=l[1],ee=l[2],X=l[3],B=n.touches[0].clientX-J,V=n.touches[0].clientY-Y,H=n.touches[1].clientX-J,U=n.touches[1].clientY-Y,te=0<=B&&B<=ee&&0<=H&&H<=ee&&0<=V&&V<=X&&0<=U&&U<=X;var u=r.pan(),d=r.zoom();W=ne(B,V,H,U),G=re(B,V,H,U),K=[(B+H)/2,(V+U)/2],q=[(K[0]-u.x)/d,(K[1]-u.y)/d];var p=200,m=p*p;if(G=1){for(var T=t.touchData.startPosition=[null,null,null,null,null,null],E=0;E=t.touchTapThreshold2}if(r&&t.touchData.cxt){n.preventDefault();var S=n.touches[0].clientX-J,C=n.touches[0].clientY-Y,w=n.touches[1].clientX-J,T=n.touches[1].clientY-Y,E=re(S,C,w,T),O=E/G,k=150,A=k*k,M=1.5;if(O>=M*M||E>=A){t.touchData.cxt=!1,t.data.bgActivePosistion=void 0,t.redrawHint(`select`,!0);var N=f(`cxttapend`);t.touchData.start?(t.touchData.start.unactivate().emit(N),t.touchData.start=null):o.emit(N)}}if(r&&t.touchData.cxt){var N=f(`cxtdrag`);t.data.bgActivePosistion=void 0,t.redrawHint(`select`,!0),t.touchData.start?t.touchData.start.emit(N):o.emit(N),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxtDragged=!0;var P=t.findNearestElement(c[0],c[1],!0,!0);(!t.touchData.cxtOver||P!==t.touchData.cxtOver)&&(t.touchData.cxtOver&&t.touchData.cxtOver.emit(f(`cxtdragout`)),t.touchData.cxtOver=P,P&&P.emit(f(`cxtdragover`)))}else if(r&&n.touches[2]&&o.boxSelectionEnabled())n.preventDefault(),t.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,t.touchData.selecting||o.emit(f(`boxstart`)),t.touchData.selecting=!0,t.touchData.didSelect=!0,i[4]=1,!i||i.length===0||i[0]===void 0?(i[0]=(c[0]+c[2]+c[4])/3,i[1]=(c[1]+c[3]+c[5])/3,i[2]=(c[0]+c[2]+c[4])/3+1,i[3]=(c[1]+c[3]+c[5])/3+1):(i[2]=(c[0]+c[2]+c[4])/3,i[3]=(c[1]+c[3]+c[5])/3),t.redrawHint(`select`,!0),t.redraw();else if(r&&n.touches[1]&&!t.touchData.didSelect&&o.zoomingEnabled()&&o.panningEnabled()&&o.userZoomingEnabled()&&o.userPanningEnabled()){n.preventDefault(),t.data.bgActivePosistion=void 0,t.redrawHint(`select`,!0);var F=t.dragData.touchDragEles;if(F){t.redrawHint(`drag`,!0);for(var I=0;I0&&!t.hoverData.draggingEles&&!t.swipePanning&&t.data.bgActivePosistion!=null&&(t.data.bgActivePosistion=void 0,t.redrawHint(`select`,!0),t.redraw())}},`touchmoveHandler`),!1);var oe;t.registerBinding(n,`touchcancel`,oe=e(function(e){var n=t.touchData.start;t.touchData.capture=!1,n&&n.unactivate()},`touchcancelHandler`));var se,ce,Z,le;if(t.registerBinding(n,`touchend`,se=e(function(n){var i=t.touchData.start;if(t.touchData.capture)n.touches.length===0&&(t.touchData.capture=!1),n.preventDefault();else return;var o=t.selection;t.swipePanning=!1,t.hoverData.draggingEles=!1;var s=t.cy,c=s.zoom(),l=t.touchData.now,u=t.touchData.earlier;if(n.touches[0]){var d=t.projectIntoViewport(n.touches[0].clientX,n.touches[0].clientY);l[0]=d[0],l[1]=d[1]}if(n.touches[1]){var d=t.projectIntoViewport(n.touches[1].clientX,n.touches[1].clientY);l[2]=d[0],l[3]=d[1]}if(n.touches[2]){var d=t.projectIntoViewport(n.touches[2].clientX,n.touches[2].clientY);l[4]=d[0],l[5]=d[1]}var f=e(function(e){return{originalEvent:n,type:e,position:{x:l[0],y:l[1]}}},`makeEvent`);i&&i.unactivate();var p;if(t.touchData.cxt){if(p=f(`cxttapend`),i?i.emit(p):s.emit(p),!t.touchData.cxtDragged){var m=f(`cxttap`);i?i.emit(m):s.emit(m)}t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!1,t.touchData.start=null,t.redraw();return}if(!n.touches[2]&&s.boxSelectionEnabled()&&t.touchData.selecting){t.touchData.selecting=!1;var h=s.collection(t.getAllInBox(o[0],o[1],o[2],o[3]));o[0]=void 0,o[1]=void 0,o[2]=void 0,o[3]=void 0,o[4]=0,t.redrawHint(`select`,!0),s.emit(f(`boxend`));var g=e(function(e){return e.selectable()&&!e.selected()},`eleWouldBeSelected`);h.emit(f(`box`)).stdFilter(g).select().emit(f(`boxselect`)),h.nonempty()&&t.redrawHint(`eles`,!0),t.redraw()}if(i?.unactivate(),n.touches[2])t.data.bgActivePosistion=void 0,t.redrawHint(`select`,!0);else if(!n.touches[1]&&!n.touches[0]&&!n.touches[0]){t.data.bgActivePosistion=void 0,t.redrawHint(`select`,!0);var _=t.dragData.touchDragEles;if(i!=null){var y=i._private.grabbed;v(_),t.redrawHint(`drag`,!0),t.redrawHint(`eles`,!0),y&&(i.emit(f(`freeon`)),_.emit(f(`free`)),t.dragData.didDrag&&(i.emit(f(`dragfreeon`)),_.emit(f(`dragfree`)))),a(i,[`touchend`,`tapend`,`vmouseup`,`tapdragout`],n,{x:l[0],y:l[1]}),i.unactivate(),t.touchData.start=null}else a(t.findNearestElement(l[0],l[1],!0,!0),[`touchend`,`tapend`,`vmouseup`,`tapdragout`],n,{x:l[0],y:l[1]});var b=t.touchData.startPosition[0]-l[0],x=b*b,S=t.touchData.startPosition[1]-l[1],C=(x+S*S)*c*c;t.touchData.singleTouchMoved||(i||s.$(`:selected`).unselect([`tapunselect`]),a(i,[`tap`,`vclick`],n,{x:l[0],y:l[1]}),ce=!1,n.timeStamp-le<=s.multiClickDebounceTime()?(Z&&clearTimeout(Z),ce=!0,le=null,a(i,[`dbltap`,`vdblclick`],n,{x:l[0],y:l[1]})):(Z=setTimeout(function(){ce||a(i,[`onetap`,`voneclick`],n,{x:l[0],y:l[1]})},s.multiClickDebounceTime()),le=n.timeStamp)),i!=null&&!t.dragData.didDrag&&i._private.selectable&&C`u`){var ue=[],de=e(function(e){return{clientX:e.clientX,clientY:e.clientY,force:1,identifier:e.pointerId,pageX:e.pageX,pageY:e.pageY,radiusX:e.width/2,radiusY:e.height/2,screenX:e.screenX,screenY:e.screenY,target:e.target}},`makeTouch`),fe=e(function(e){return{event:e,touch:de(e)}},`makePointer`),pe=e(function(e){ue.push(fe(e))},`addPointer`),me=e(function(e){for(var t=0;t0)return l[0]}return null},`getCurveT`),m=Object.keys(f),h=0;h0?d:sr(i,a,e,t,n,r,o,s)},`intersectLine`),checkPoint:e(function(e,t,n,r,i,a,o,s){s=s===`auto`?jr(r,i):s;var c=2*s;if(hr(e,t,this.points,a,o,r,i-c,[0,-1],n)||hr(e,t,this.points,a,o,r-c,i,[0,-1],n))return!0;var l=r/2+2*n,u=i/2+2*n;return!!(mr(e,t,[a-l,o-u,a-l,o,a+l,o,a+l,o-u])||br(e,t,c,c,a+r/2-s,o+i/2-s,n)||br(e,t,c,c,a-r/2+s,o+i/2-s,n))},`checkPoint`)}},Hf.registerNodeShapes=function(){var e=this.nodeShapes={},t=this;this.generateEllipse(),this.generatePolygon(`triangle`,Or(3,0)),this.generateRoundPolygon(`round-triangle`,Or(3,0)),this.generatePolygon(`rectangle`,Or(4,0)),e.square=e.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();var n=[0,1,1,0,0,-1,-1,0];this.generatePolygon(`diamond`,n),this.generateRoundPolygon(`round-diamond`,n),this.generatePolygon(`pentagon`,Or(5,0)),this.generateRoundPolygon(`round-pentagon`,Or(5,0)),this.generatePolygon(`hexagon`,Or(6,0)),this.generateRoundPolygon(`round-hexagon`,Or(6,0)),this.generatePolygon(`heptagon`,Or(7,0)),this.generateRoundPolygon(`round-heptagon`,Or(7,0)),this.generatePolygon(`octagon`,Or(8,0)),this.generateRoundPolygon(`round-octagon`,Or(8,0));var r=Array(20),i=Ar(5,0),a=Ar(5,Math.PI/5),o=.5*(3-Math.sqrt(5));o*=1.57;for(var s=0;s=t.deqFastCost*h)break}else if(e){if(p>=t.deqCost*c||p>=t.deqAvgCost*s)break}else if(m>=t.deqNoDrawCost*qf)break;var g=t.deq(n,d,u);if(g.length>0)for(var _=0;_0&&(t.onDeqd(n,l),!e&&t.shouldRedraw(n,l,d,u)&&i())},`dequeue`),o=t.priority||It;r.beforeRender(a,o(n))}},`setupDequeueingImpl`)},`setupDequeueing`)},Yf=(function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pt;i(this,t),this.idsByKey=new Qt,this.keyForId=new Qt,this.cachesByLvl=new Qt,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=n}return e(t,`ElementTextureCacheLookup`),o(t,[{key:`getIdsFor`,value:e(function(e){e??Lt(`Can not get id list for null key`);var t=this.idsByKey,n=this.idsByKey.get(e);return n||(n=new tn,t.set(e,n)),n},`getIdsFor`)},{key:`addIdForKey`,value:e(function(e,t){e!=null&&this.getIdsFor(e).add(t)},`addIdForKey`)},{key:`deleteIdForKey`,value:e(function(e,t){e!=null&&this.getIdsFor(e).delete(t)},`deleteIdForKey`)},{key:`getNumberOfIdsForKey`,value:e(function(e){return e==null?0:this.getIdsFor(e).size},`getNumberOfIdsForKey`)},{key:`updateKeyMappingFor`,value:e(function(e){var t=e.id(),n=this.keyForId.get(t),r=this.getKey(e);this.deleteIdForKey(n,t),this.addIdForKey(r,t),this.keyForId.set(t,r)},`updateKeyMappingFor`)},{key:`deleteKeyMappingFor`,value:e(function(e){var t=e.id(),n=this.keyForId.get(t);this.deleteIdForKey(n,t),this.keyForId.delete(t)},`deleteKeyMappingFor`)},{key:`keyHasChangedFor`,value:e(function(e){var t=e.id();return this.keyForId.get(t)!==this.getKey(e)},`keyHasChangedFor`)},{key:`isInvalid`,value:e(function(e){return this.keyHasChangedFor(e)||this.doesEleInvalidateKey(e)},`isInvalid`)},{key:`getCachesAt`,value:e(function(e){var t=this.cachesByLvl,n=this.lvls,r=t.get(e);return r||(r=new Qt,t.set(e,r),n.push(e)),r},`getCachesAt`)},{key:`getCache`,value:e(function(e,t){return this.getCachesAt(t).get(e)},`getCache`)},{key:`get`,value:e(function(e,t){var n=this.getKey(e),r=this.getCache(n,t);return r!=null&&this.updateKeyMappingFor(e),r},`get`)},{key:`getForCachedKey`,value:e(function(e,t){var n=this.keyForId.get(e.id());return this.getCache(n,t)},`getForCachedKey`)},{key:`hasCache`,value:e(function(e,t){return this.getCachesAt(t).has(e)},`hasCache`)},{key:`has`,value:e(function(e,t){var n=this.getKey(e);return this.hasCache(n,t)},`has`)},{key:`setCache`,value:e(function(e,t,n){n.key=e,this.getCachesAt(t).set(e,n)},`setCache`)},{key:`set`,value:e(function(e,t,n){var r=this.getKey(e);this.setCache(r,t,n),this.updateKeyMappingFor(e)},`set`)},{key:`deleteCache`,value:e(function(e,t){this.getCachesAt(t).delete(e)},`deleteCache`)},{key:`delete`,value:e(function(e,t){var n=this.getKey(e);this.deleteCache(n,t)},`_delete`)},{key:`invalidateKey`,value:e(function(e){var t=this;this.lvls.forEach(function(n){return t.deleteCache(e,n)})},`invalidateKey`)},{key:`invalidate`,value:e(function(e){var t=e.id(),n=this.keyForId.get(t);this.deleteKeyMappingFor(e);var r=this.doesEleInvalidateKey(e);return r&&this.invalidateKey(n),r||this.getNumberOfIdsForKey(n)===0},`invalidate`)}])})(),Xf=25,Zf=50,Qf=-4,$f=3,ep=7.99,tp=8,np=1024,rp=1024,ip=1024,ap=.2,op=.8,sp=10,cp=.15,lp=.1,up=.9,dp=.9,fp=100,pp=1,mp={dequeue:`dequeue`,downscale:`downscale`,highQuality:`highQuality`},hp=Kt({getKey:null,doesEleInvalidateKey:Pt,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:Nt,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),gp=e(function(e,t){var n=this;n.renderer=e,n.onDequeues=[];var r=hp(t);Z(n,r),n.lookup=new Yf(r.getKey,r.doesEleInvalidateKey),n.setupDequeueing()},`ElementTextureCache`),_p=gp.prototype;_p.reasons=mp,_p.getTextureQueue=function(e){var t=this;return t.eleImgCaches=t.eleImgCaches||{},t.eleImgCaches[e]=t.eleImgCaches[e]||[]},_p.getRetiredTextureQueue=function(e){var t=this,n=t.eleImgCaches.retired=t.eleImgCaches.retired||{};return n[e]=n[e]||[]},_p.getElementQueue=function(){var e=this;return e.eleCacheQueue=e.eleCacheQueue||new pn(function(e,t){return t.reqs-e.reqs})},_p.getElementKeyToQueue=function(){var e=this;return e.eleKeyToCacheQueue=e.eleKeyToCacheQueue||{}},_p.getElement=function(t,n,r,i,a){var o=this,s=this.renderer,c=s.cy.zoom(),l=this.lookup;if(!n||n.w===0||n.h===0||isNaN(n.w)||isNaN(n.h)||!t.visible()||t.removed()||!o.allowEdgeTxrCaching&&t.isEdge()||!o.allowParentTxrCaching&&t.isParent())return null;if(i??=Math.ceil(Ln(c*r)),i=ep||i>$f)return null;var u=2**i,d=n.h*u,f=n.w*u,p=s.eleTextBiggerThanMin(t,u);if(!this.isVisible(t,p))return null;var m=l.get(t,i);if(m&&m.invalidated&&(m.invalidated=!1,m.texture.invalidatedWidth-=m.width),m)return m;var h=d<=Xf?Xf:d<=Zf?Zf:Math.ceil(d/Zf)*Zf;if(d>ip||f>rp)return null;var g=o.getTextureQueue(h),_=g[g.length-2],v=e(function(){return o.recycleTexture(h,f)||o.addTexture(h,f)},`addNewTxr`);_||=g[g.length-1],_||=v(),_.width-_.usedWidthi;O--)E=o.getElement(t,n,r,O,mp.downscale);D()}else return o.queueElement(t,C.level-1),C;else{var k;if(!b&&!x&&!S)for(var A=i-1;A>=Qf;A--){var j=l.get(t,A);if(j){k=j;break}}if(y(k))return o.queueElement(t,i),k;_.context.translate(_.usedWidth,0),_.context.scale(u,u),this.drawElement(_.context,t,n,p,!1),_.context.scale(1/u,1/u),_.context.translate(-_.usedWidth,0)}return m={x:_.usedWidth,texture:_,level:i,scale:u,width:f,height:d,scaledLabelShown:p},_.usedWidth+=Math.ceil(f+tp),_.eleCaches.push(m),l.set(t,i,m),o.checkTextureFullness(_),m},_p.invalidateElements=function(e){for(var t=0;t=ap*e.width&&this.retireTexture(e)},_p.checkTextureFullness=function(e){var t=this.getTextureQueue(e.height);e.usedWidth/e.width>op&&e.fullnessChecks>=sp?qt(t,e):e.fullnessChecks++},_p.retireTexture=function(e){var t=this,n=e.height,r=t.getTextureQueue(n),i=this.lookup;qt(r,e),e.retired=!0;for(var a=e.eleCaches,o=0;o=t)return o.retired=!1,o.usedWidth=0,o.invalidatedWidth=0,o.fullnessChecks=0,Jt(o.eleCaches),o.context.setTransform(1,0,0,1,0,0),o.context.clearRect(0,0,o.width,o.height),qt(i,o),r.push(o),o}},_p.queueElement=function(e,t){var n=this,r=n.getElementQueue(),i=n.getElementKeyToQueue(),a=this.getKey(e),o=i[a];if(o)o.level=Math.max(o.level,t),o.eles.merge(e),o.reqs++,r.updateItem(o);else{var s={eles:e.spawn().merge(e),level:t,reqs:1,key:a};r.push(s),i[a]=s}},_p.dequeue=function(e){for(var t=this,n=t.getElementQueue(),r=t.getElementKeyToQueue(),i=[],a=t.lookup,o=0;o0;o++){var s=n.pop(),c=s.key,l=s.eles[0],u=a.hasCache(l,s.level);if(r[c]=null,!u){i.push(s);var d=t.getBoundingBox(l);t.getElement(l,d,e,s.level,mp.dequeue)}}return i},_p.removeFromQueue=function(e){var t=this,n=t.getElementQueue(),r=t.getElementKeyToQueue(),i=this.getKey(e),a=r[i];a!=null&&(a.eles.length===1?(a.reqs=Mt,n.updateItem(a),n.pop(),r[i]=null):a.eles.unmerge(e))},_p.onDequeue=function(e){this.onDequeues.push(e)},_p.offDequeue=function(e){qt(this.onDequeues,e)},_p.setupDequeueing=Jf.setupDequeueing({deqRedrawThreshold:fp,deqCost:cp,deqAvgCost:lp,deqNoDrawCost:up,deqFastCost:dp,deq:e(function(e,t,n){return e.dequeue(t,n)},`deq`),onDeqd:e(function(e,t){for(var n=0;n=xp||r>bp)return null}i.validateLayersElesOrdering(r,t);var s=i.layersByLevel,c=2**r,l=s[r]=s[r]||[],u,d=i.levelIsComplete(r,t),f,p=e(function(){var n=e(function(e){if(i.validateLayersElesOrdering(e,t),i.levelIsComplete(e,t))return f=s[e],!0},`canUseAsTmpLvl`),a=e(function(e){if(!f)for(var t=r+e;yp<=t&&t<=bp&&!n(t);t+=e);},`checkLvls`);a(1),a(-1);for(var o=l.length-1;o>=0;o--){var c=l[o];c.invalid&&qt(l,c)}},`checkTempLevels`);if(!d)p();else return l;var m=e(function(){if(!u){u=Kn();for(var e=0;ejp||a>jp||n*a>Ap)return null;var o=i.makeLayer(u,r);if(t!=null){var s=l.indexOf(t)+1;l.splice(s,0,o)}else (e.insert===void 0||e.insert)&&l.unshift(o);return o},`makeLayer`);if(i.skipping&&!o)return null;for(var g=null,_=t.length/vp,v=!o,y=0;y=_||!rr(g.bb,b.boundingBox()))&&(g=h({insert:!0,after:g}),!g))return null;f||v?i.queueLayer(g,b):i.drawEleInLayer(g,b,r,n),g.eles.push(b),S[r]=g}return f||(v?null:l)},Pp.getEleLevelForLayerLevel=function(e,t){return e},Pp.drawEleInLayer=function(e,t,n,r){var i=this,a=this.renderer,o=e.context,s=t.boundingBox();s.w===0||s.h===0||!t.visible()||(n=i.getEleLevelForLayerLevel(n,r),a.setImgSmoothing(o,!1),a.drawCachedElement(o,t,null,null,n,Mp),a.setImgSmoothing(o,!0))},Pp.levelIsComplete=function(e,t){var n=this.layersByLevel[e];if(!n||n.length===0)return!1;for(var r=0,i=0;i0||a.invalid)return!1;r+=a.eles.length}return r===t.length},Pp.validateLayersElesOrdering=function(e,t){var n=this.layersByLevel[e];if(n)for(var r=0;r0){t=!0;break}}return t},Pp.invalidateElements=function(t){var n=this;t.length!==0&&(n.lastInvalidationTime=ft(),!(t.length===0||!n.haveLayers())&&n.updateElementsInLayers(t,e(function(e,t,r){n.invalidateLayer(e)},`invalAssocLayers`)))},Pp.invalidateLayer=function(e){if(this.lastInvalidationTime=ft(),!e.invalid){var t=e.level,n=e.eles,r=this.layersByLevel[t];qt(r,e),e.elesQueue=[],e.invalid=!0,e.replacement&&(e.replacement.invalid=!0);for(var i=0;i3&&arguments[3]!==void 0?arguments[3]:!0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this,c=n._private.rscratch;if(!(o&&!n.visible())&&!(c.badLine||c.allpts==null||isNaN(c.allpts[0]))){var l;r&&(l=r,t.translate(-l.x1,-l.y1));var u=o?n.pstyle(`opacity`).value:1,d=o?n.pstyle(`line-opacity`).value:1,f=n.pstyle(`curve-style`).value,p=n.pstyle(`line-style`).value,m=n.pstyle(`width`).pfValue,h=n.pstyle(`line-cap`).value,g=n.pstyle(`line-outline-width`).value,_=n.pstyle(`line-outline-color`).value,v=u*d,y=u*d,b=e(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v;f===`straight-triangle`?(s.eleStrokeStyle(t,n,e),s.drawEdgeTrianglePath(n,t,c.allpts)):(t.lineWidth=m,t.lineCap=h,s.eleStrokeStyle(t,n,e),s.drawEdgePath(n,t,c.allpts,p),t.lineCap=`butt`)},`drawLine`),x=e(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v;if(t.lineWidth=m+g,t.lineCap=h,g>0)s.colorStrokeStyle(t,_[0],_[1],_[2],e);else{t.lineCap=`butt`;return}f===`straight-triangle`?s.drawEdgeTrianglePath(n,t,c.allpts):(s.drawEdgePath(n,t,c.allpts,p),t.lineCap=`butt`)},`drawLineOutline`),S=e(function(){a&&s.drawEdgeOverlay(t,n)},`drawOverlay`),C=e(function(){a&&s.drawEdgeUnderlay(t,n)},`drawUnderlay`),w=e(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y;s.drawArrowheads(t,n,e)},`drawArrows`),T=e(function(){s.drawElementText(t,n,null,i)},`drawText`);if(t.lineJoin=`round`,n.pstyle(`ghost`).value===`yes`){var E=n.pstyle(`ghost-offset-x`).pfValue,D=n.pstyle(`ghost-offset-y`).pfValue,O=v*n.pstyle(`ghost-opacity`).value;t.translate(E,D),b(O),w(O),t.translate(-E,-D)}else x();C(),b(),w(),S(),T(),r&&t.translate(l.x1,l.y1)}};var Qp=e(function(e){if(![`overlay`,`underlay`].includes(e))throw Error(`Invalid state`);return function(t,n){if(n.visible()){var r=n.pstyle(`${e}-opacity`).value;if(r!==0){var i=this,a=i.usePaths(),o=n._private.rscratch,s=2*n.pstyle(`${e}-padding`).pfValue,c=n.pstyle(`${e}-color`).value;t.lineWidth=s,o.edgeType===`self`&&!a?t.lineCap=`butt`:t.lineCap=`round`,i.colorStrokeStyle(t,c[0],c[1],c[2],r),i.drawEdgePath(n,t,o.allpts,`solid`)}}}},`drawEdgeOverlayUnderlay`);Zp.drawEdgeOverlay=Qp(`overlay`),Zp.drawEdgeUnderlay=Qp(`underlay`),Zp.drawEdgePath=function(e,t,n,r){var i=e._private.rscratch,a=t,o,c=!1,l=this.usePaths(),u=e.pstyle(`line-dash-pattern`).pfValue,d=e.pstyle(`line-dash-offset`).pfValue;if(l){var f=n.join(`$`);i.pathCacheKey&&i.pathCacheKey===f?(o=t=i.pathCache,c=!0):(o=t=new Path2D,i.pathCacheKey=f,i.pathCache=o)}if(a.setLineDash)switch(r){case`dotted`:a.setLineDash([1,1]);break;case`dashed`:a.setLineDash(u),a.lineDashOffset=d;break;case`solid`:a.setLineDash([]);break}if(!c&&!i.badLine)switch(t.beginPath&&t.beginPath(),t.moveTo(n[0],n[1]),i.edgeType){case`bezier`:case`self`:case`compound`:case`multibezier`:for(var p=2;p+35&&arguments[5]!==void 0?arguments[5]:!0,o=this;if(r==null){if(a&&!o.eleTextBiggerThanMin(t))return}else if(r===!1)return;if(t.isNode()){var s=t.pstyle(`label`);if(!s||!s.value)return;e.textAlign=o.getLabelJustification(t),e.textBaseline=`bottom`}else{var c=t.element()._private.rscratch.badLine,l=t.pstyle(`label`),u=t.pstyle(`source-label`),d=t.pstyle(`target-label`);if(c||(!l||!l.value)&&(!u||!u.value)&&(!d||!d.value))return;e.textAlign=`center`,e.textBaseline=`bottom`}var f=!n,p;n&&(p=n,e.translate(-p.x1,-p.y1)),i==null?(o.drawText(e,t,null,f,a),t.isEdge()&&(o.drawText(e,t,`source`,f,a),o.drawText(e,t,`target`,f,a))):o.drawText(e,t,i,f,a),n&&e.translate(p.x1,p.y1)},em.getFontCache=function(e){var t;this.fontCaches=this.fontCaches||[];for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:!0,r=t.pstyle(`font-style`).strValue,i=t.pstyle(`font-size`).pfValue+`px`,a=t.pstyle(`font-family`).strValue,o=t.pstyle(`font-weight`).strValue,s=n?t.effectiveOpacity()*t.pstyle(`text-opacity`).value:1,c=t.pstyle(`text-outline-opacity`).value*s,l=t.pstyle(`color`).value,u=t.pstyle(`text-outline-color`).value;e.font=r+` `+o+` `+i+` `+a,e.lineJoin=`round`,this.colorFillStyle(e,l[0],l[1],l[2],s),this.colorStrokeStyle(e,u[0],u[1],u[2],c)};function tm(e,t,n,r,i){var a=Math.min(r,i)/2,o=t+r/2,s=n+i/2;e.beginPath(),e.arc(o,s,a,0,Math.PI*2),e.closePath()}e(tm,`circle`);function nm(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,o=Math.min(a,r/2,i/2);e.beginPath(),e.moveTo(t+o,n),e.lineTo(t+r-o,n),e.quadraticCurveTo(t+r,n,t+r,n+o),e.lineTo(t+r,n+i-o),e.quadraticCurveTo(t+r,n+i,t+r-o,n+i),e.lineTo(t+o,n+i),e.quadraticCurveTo(t,n+i,t,n+i-o),e.lineTo(t,n+o),e.quadraticCurveTo(t,n,t+o,n),e.closePath()}e(nm,`roundRect`),em.getTextAngle=function(e,t){var n,r=e._private.rscratch,i=t?t+`-`:``,a=e.pstyle(i+`text-rotation`);if(a.strValue===`autorotate`){var o=Xt(r,`labelAngle`,t);n=e.isEdge()?o:0}else n=a.strValue===`none`?0:a.pfValue;return n},em.drawText=function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=t._private.rscratch,o=i?t.effectiveOpacity():1;if(!(i&&(o===0||t.pstyle(`text-opacity`).value===0))){n===`main`&&(n=null);var s=Xt(a,`labelX`,n),c=Xt(a,`labelY`,n),l,u,d=this.getLabelText(t,n);if(d!=null&&d!==``&&!isNaN(s)&&!isNaN(c)){this.setupTextStyle(e,t,i);var f=n?n+`-`:``,p=Xt(a,`labelWidth`,n),m=Xt(a,`labelHeight`,n),h=t.pstyle(f+`text-margin-x`).pfValue,g=t.pstyle(f+`text-margin-y`).pfValue,_=t.isEdge(),v=t.pstyle(`text-halign`).value,y=t.pstyle(`text-valign`).value;_&&(v=`center`,y=`center`),s+=h,c+=g;var b=r?this.getTextAngle(t,n):0;switch(b!==0&&(l=s,u=c,e.translate(l,u),e.rotate(b),s=0,c=0),y){case`top`:break;case`center`:c+=m/2;break;case`bottom`:c+=m;break}var x=t.pstyle(`text-background-opacity`).value,S=t.pstyle(`text-border-opacity`).value,C=t.pstyle(`text-border-width`).pfValue,w=t.pstyle(`text-background-padding`).pfValue,T=t.pstyle(`text-background-shape`).strValue,E=T===`round-rectangle`||T===`roundrectangle`,D=T===`circle`,O=2;if(x>0||C>0&&S>0){var k=e.fillStyle,A=e.strokeStyle,j=e.lineWidth,M=t.pstyle(`text-background-color`).value,N=t.pstyle(`text-border-color`).value,P=t.pstyle(`text-border-style`).value,F=x>0,I=C>0&&S>0,L=s-w;switch(v){case`left`:L-=p;break;case`center`:L-=p/2;break}var R=c-m-w,z=p+2*w,B=m+2*w;if(F&&(e.fillStyle=`rgba(${M[0]},${M[1]},${M[2]},${x*o})`),I&&(e.strokeStyle=`rgba(${N[0]},${N[1]},${N[2]},${S*o})`,e.lineWidth=C,e.setLineDash))switch(P){case`dotted`:e.setLineDash([1,1]);break;case`dashed`:e.setLineDash([4,2]);break;case`double`:e.lineWidth=C/4,e.setLineDash([]);break;default:e.setLineDash([]);break}if(E?(e.beginPath(),nm(e,L,R,z,B,O)):D?(e.beginPath(),tm(e,L,R,z,B)):(e.beginPath(),e.rect(L,R,z,B)),F&&e.fill(),I&&e.stroke(),I&&P===`double`){var V=C/2;e.beginPath(),E?nm(e,L+V,R+V,z-2*V,B-2*V,O):e.rect(L+V,R+V,z-2*V,B-2*V),e.stroke()}e.fillStyle=k,e.strokeStyle=A,e.lineWidth=j,e.setLineDash&&e.setLineDash([])}var H=2*t.pstyle(`text-outline-width`).pfValue;if(H>0&&(e.lineWidth=H),t.pstyle(`text-wrap`).value===`wrap`){var U=Xt(a,`labelWrapCachedLines`,n),W=Xt(a,`labelLineHeight`,n),G=p/2,K=this.getLabelJustification(t);switch(K===`auto`||(v===`left`?K===`left`?s+=-p:K===`center`&&(s+=-G):v===`center`?K===`left`?s+=-G:K===`right`&&(s+=G):v===`right`&&(K===`center`?s+=G:K===`right`&&(s+=p))),y){case`top`:c-=(U.length-1)*W;break;case`center`:case`bottom`:c-=(U.length-1)*W;break}for(var q=0;q0&&e.strokeText(U[q],s,c),e.fillText(U[q],s,c),c+=W}else H>0&&e.strokeText(d,s,c),e.fillText(d,s,c);b!==0&&(e.rotate(-b),e.translate(-l,-u))}}};var rm={};rm.drawNode=function(t,n,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this,c,l,u=n._private,d=u.rscratch,f=n.position();if(!(!j(f.x)||!j(f.y))&&!(o&&!n.visible())){var p=o?n.effectiveOpacity():1,m=s.usePaths(),h,g=!1,_=n.padding();c=n.width()+2*_,l=n.height()+2*_;var v;r&&(v=r,t.translate(-v.x1,-v.y1));for(var y=n.pstyle(`background-image`).value,b=Array(y.length),x=Array(y.length),S=0,C=0;C0&&arguments[0]!==void 0?arguments[0]:O;s.eleFillStyle(t,n,e)},`setupShapeColor`),G=e(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:L;s.colorStrokeStyle(t,k[0],k[1],k[2],e)},`setupBorderColor`),K=e(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:V;s.colorStrokeStyle(t,z[0],z[1],z[2],e)},`setupOutlineColor`),q=e(function(e,t,n,r){var i=s.nodePathCache=s.nodePathCache||[],a=wt(n===`polygon`?n+`,`+r.join(`,`):n,``+t,``+e,``+U),o=i[a],c,l=!1;return o==null?(c=new Path2D,i[a]=d.pathCache=c):(c=o,l=!0,d.pathCache=c),{path:c,cacheHit:l}},`getPath`),J=n.pstyle(`shape`).strValue,Y=n.pstyle(`shape-polygon-points`).pfValue;if(m){t.translate(f.x,f.y);var ee=q(c,l,J,Y);h=ee.path,g=ee.cacheHit}var X=e(function(){if(!g){var e=f;m&&(e={x:0,y:0}),s.nodeShapes[s.getNodeShape(n)].draw(h||t,e.x,e.y,c,l,U,d)}m?t.fill(h):t.fill()},`drawShape`),te=e(function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=u.backgrounding,a=0,o=0;o0&&arguments[0]!==void 0?arguments[0]:!1,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p;s.hasPie(n)&&(s.drawPie(t,n,r),e&&(m||s.nodeShapes[s.getNodeShape(n)].draw(t,f.x,f.y,c,l,U,d)))},`drawPie`),re=e(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p;s.hasStripe(n)&&(t.save(),m?t.clip(d.pathCache):(s.nodeShapes[s.getNodeShape(n)].draw(t,f.x,f.y,c,l,U,d),t.clip()),s.drawStripe(t,n,r),t.restore(),e&&(m||s.nodeShapes[s.getNodeShape(n)].draw(t,f.x,f.y,c,l,U,d)))},`drawStripe`),ie=e(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p,n=(E>0?E:-E)*e,r=E>0?0:255;E!==0&&(s.colorFillStyle(t,r,r,r,n),m?t.fill(h):t.fill())},`darken`),ae=e(function(){if(D>0){if(t.lineWidth=D,t.lineCap=N,t.lineJoin=M,t.setLineDash)switch(A){case`dotted`:t.setLineDash([1,1]);break;case`dashed`:t.setLineDash(F),t.lineDashOffset=I;break;case`solid`:case`double`:t.setLineDash([]);break}if(P!==`center`){if(t.save(),t.lineWidth*=2,P===`inside`)m?t.clip(h):t.clip();else{var e=new Path2D;e.rect(-c/2-D,-l/2-D,c+2*D,l+2*D),e.addPath(h),t.clip(e,`evenodd`)}m?t.stroke(h):t.stroke(),t.restore()}else m?t.stroke(h):t.stroke();if(A===`double`){t.lineWidth=D/3;var n=t.globalCompositeOperation;t.globalCompositeOperation=`destination-out`,m?t.stroke(h):t.stroke(),t.globalCompositeOperation=n}t.setLineDash&&t.setLineDash([])}},`drawBorder`),oe=e(function(){if(R>0){if(t.lineWidth=R,t.lineCap=`butt`,t.setLineDash)switch(B){case`dotted`:t.setLineDash([1,1]);break;case`dashed`:t.setLineDash([4,2]);break;case`solid`:case`double`:t.setLineDash([]);break}var e=f;m&&(e={x:0,y:0});var r=s.getNodeShape(n),i=D;P===`inside`&&(i=0),P===`outside`&&(i*=2);var a=(c+i+(R+H))/c,o=(l+i+(R+H))/l,u=c*a,d=l*o,p=s.nodeShapes[r].points,h;if(m&&(h=q(u,d,r,p).path),r===`ellipse`)s.drawEllipsePath(h||t,e.x,e.y,u,d);else if([`round-diamond`,`round-heptagon`,`round-hexagon`,`round-octagon`,`round-pentagon`,`round-polygon`,`round-triangle`,`round-tag`].includes(r)){var g=0,_=0,v=0;r===`round-diamond`?g=(i+H+R)*1.4:r===`round-heptagon`?(g=(i+H+R)*1.075,v=-(i/2+H+R)/35):r===`round-hexagon`?g=(i+H+R)*1.12:r===`round-pentagon`?(g=(i+H+R)*1.13,v=-(i/2+H+R)/15):r===`round-tag`?(g=(i+H+R)*1.12,_=(i/2+R+H)*.07):r===`round-triangle`&&(g=(i+H+R)*(Math.PI/2),v=-(i+H/2+R)/Math.PI),g!==0&&(a=(c+g)/c,u=c*a,[`round-hexagon`,`round-tag`].includes(r)||(o=(l+g)/l,d=l*o)),U=U===`auto`?Mr(u,d):U;for(var y=u/2,b=d/2,x=U+(i+R+H)/2,S=Array(p.length/2),C=Array(p.length/2),w=0;w0){if(r||=n.position(),i==null||a==null){var f=n.padding();i=n.width()+2*f,a=n.height()+2*f}o.colorFillStyle(t,l[0],l[1],l[2],c),o.nodeShapes[u].draw(t,r.x,r.y,i+s*2,a+s*2,d),t.fill()}}}},`drawNodeOverlayUnderlay`);rm.drawNodeOverlay=im(`overlay`),rm.drawNodeUnderlay=im(`underlay`),rm.hasPie=function(e){return e=e[0],e._private.hasPie},rm.hasStripe=function(e){return e=e[0],e._private.hasStripe},rm.drawPie=function(e,t,n,r){t=t[0],r||=t.position();var i=t.cy().style(),a=t.pstyle(`pie-size`),o=t.pstyle(`pie-hole`),s=t.pstyle(`pie-start-angle`).pfValue,c=r.x,l=r.y,u=t.width(),d=t.height(),f=Math.min(u,d)/2,p,m=0;if(this.usePaths()&&(c=0,l=0),a.units===`%`?f*=a.pfValue:a.pfValue!==void 0&&(f=a.pfValue/2),o.units===`%`?p=f*o.pfValue:o.pfValue!==void 0&&(p=o.pfValue/2),!(p>=f))for(var h=1;h<=i.pieBackgroundN;h++){var g=t.pstyle(`pie-`+h+`-background-size`).value,_=t.pstyle(`pie-`+h+`-background-color`).value,v=t.pstyle(`pie-`+h+`-background-opacity`).value*n,y=g/100;y+m>1&&(y=1-m);var b=1.5*Math.PI+2*Math.PI*m;b+=s;var x=2*Math.PI*y,S=b+x;g===0||m>=1||m+y>1||(p===0?(e.beginPath(),e.moveTo(c,l),e.arc(c,l,f,b,S),e.closePath()):(e.beginPath(),e.arc(c,l,f,b,S),e.arc(c,l,p,S,b,!0),e.closePath()),this.colorFillStyle(e,_[0],_[1],_[2],v),e.fill(),m+=y)}},rm.drawStripe=function(e,t,n,r){t=t[0],r||=t.position();var i=t.cy().style(),a=r.x,o=r.y,s=t.width(),c=t.height(),l=0,u=this.usePaths();e.save();var d=t.pstyle(`stripe-direction`).value,f=t.pstyle(`stripe-size`);switch(d){case`vertical`:break;case`righward`:e.rotate(-Math.PI/2);break}var p=s,m=c;f.units===`%`?(p*=f.pfValue,m*=f.pfValue):f.pfValue!==void 0&&(p=f.pfValue,m=f.pfValue),u&&(a=0,o=0),o-=p/2,a-=m/2;for(var h=1;h<=i.stripeBackgroundN;h++){var g=t.pstyle(`stripe-`+h+`-background-size`).value,_=t.pstyle(`stripe-`+h+`-background-color`).value,v=t.pstyle(`stripe-`+h+`-background-opacity`).value*n,y=g/100;y+l>1&&(y=1-l),!(g===0||l>=1||l+y>1)&&(e.beginPath(),e.rect(a,o+m*l,p,m*y),e.closePath(),this.colorFillStyle(e,_[0],_[1],_[2],v),e.fill(),l+=y)}e.restore()};var am={},om=100;am.getPixelRatio=function(){var e=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var t=this.cy.window(),n=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(t.devicePixelRatio||1)/n},am.paintCache=function(e){for(var t=this.paintCaches=this.paintCaches||[],n=!0,r,i=0;in.minMbLowQualFrames&&(n.motionBlurPxRatio=n.mbPxRBlurry)),n.clearingMotionBlur&&(n.motionBlurPxRatio=1),n.textureDrawLastFrame&&!f&&(d[n.NODE]=!0,d[n.SELECT_BOX]=!0);var y=r.style(),b=r.zoom(),x=s===void 0?b:s,S=r.pan(),C={x:S.x,y:S.y},w={zoom:b,pan:{x:S.x,y:S.y}},T=n.prevViewport;!(T===void 0||w.zoom!==T.zoom||w.pan.x!==T.pan.x||w.pan.y!==T.pan.y)&&!(g&&!h)&&(n.motionBlurPxRatio=1),c&&(C=c),x*=l,C.x*=l,C.y*=l;var E=n.getCachedZSortedEles();function D(e,t,r,i,a){var o=e.globalCompositeOperation;e.globalCompositeOperation=`destination-out`,n.colorFillStyle(e,255,255,255,n.motionBlurTransparency),e.fillRect(t,r,i,a),e.globalCompositeOperation=o}e(D,`mbclear`);function O(e,t){var r,o,l,d;!n.clearingMotionBlur&&(e===u.bufferContexts[n.MOTIONBLUR_BUFFER_NODE]||e===u.bufferContexts[n.MOTIONBLUR_BUFFER_DRAG])?(r={x:S.x*m,y:S.y*m},o=b*m,l=n.canvasWidth*m,d=n.canvasHeight*m):(r=C,o=x,l=n.canvasWidth,d=n.canvasHeight),e.setTransform(1,0,0,1,0,0),t===`motionBlur`?D(e,0,0,l,d):!i&&(t===void 0||t)&&e.clearRect(0,0,l,d),a||(e.translate(r.x,r.y),e.scale(o,o)),c&&e.translate(c.x,c.y),s&&e.scale(s,s)}if(e(O,`setContextTransform`),f||(n.textureDrawLastFrame=!1),f){if(n.textureDrawLastFrame=!0,!n.textureCache){n.textureCache={},n.textureCache.bb=r.mutableElements().boundingBox(),n.textureCache.texture=n.data.bufferCanvases[n.TEXTURE_BUFFER];var k=n.data.bufferContexts[n.TEXTURE_BUFFER];k.setTransform(1,0,0,1,0,0),k.clearRect(0,0,n.canvasWidth*n.textureMult,n.canvasHeight*n.textureMult),n.render({forcedContext:k,drawOnlyNodeLayer:!0,forcedPxRatio:l*n.textureMult});var w=n.textureCache.viewport={zoom:r.zoom(),pan:r.pan(),width:n.canvasWidth,height:n.canvasHeight};w.mpan={x:(0-w.pan.x)/w.zoom,y:(0-w.pan.y)/w.zoom}}d[n.DRAG]=!1,d[n.NODE]=!1;var A=u.contexts[n.NODE],j=n.textureCache.texture,w=n.textureCache.viewport;A.setTransform(1,0,0,1,0,0),p?D(A,0,0,w.width,w.height):A.clearRect(0,0,w.width,w.height);var M=y.core(`outside-texture-bg-color`).value,N=y.core(`outside-texture-bg-opacity`).value;n.colorFillStyle(A,M[0],M[1],M[2],N),A.fillRect(0,0,w.width,w.height);var b=r.zoom();O(A,!1),A.clearRect(w.mpan.x,w.mpan.y,w.width/w.zoom/l,w.height/w.zoom/l),A.drawImage(j,w.mpan.x,w.mpan.y,w.width/w.zoom/l,w.height/w.zoom/l)}else n.textureOnViewport&&!i&&(n.textureCache=null);var P=r.extent(),F=n.pinching||n.hoverData.dragging||n.swipePanning||n.data.wheelZooming||n.hoverData.draggingEles||n.cy.animated(),I=n.hideEdgesOnViewport&&F,L=[];if(L[n.NODE]=!d[n.NODE]&&p&&!n.clearedForMotionBlur[n.NODE]||n.clearingMotionBlur,L[n.NODE]&&(n.clearedForMotionBlur[n.NODE]=!0),L[n.DRAG]=!d[n.DRAG]&&p&&!n.clearedForMotionBlur[n.DRAG]||n.clearingMotionBlur,L[n.DRAG]&&(n.clearedForMotionBlur[n.DRAG]=!0),d[n.NODE]||a||o||L[n.NODE]){var R=p&&!L[n.NODE]&&m!==1,A=i||(R?n.data.bufferContexts[n.MOTIONBLUR_BUFFER_NODE]:u.contexts[n.NODE]);O(A,p&&!R?`motionBlur`:void 0),I?n.drawCachedNodes(A,E.nondrag,l,P):n.drawLayeredElements(A,E.nondrag,l,P),n.debug&&n.drawDebugPoints(A,E.nondrag),!a&&!p&&(d[n.NODE]=!1)}if(!o&&(d[n.DRAG]||a||L[n.DRAG])){var R=p&&!L[n.DRAG]&&m!==1,A=i||(R?n.data.bufferContexts[n.MOTIONBLUR_BUFFER_DRAG]:u.contexts[n.DRAG]);O(A,p&&!R?`motionBlur`:void 0),I?n.drawCachedNodes(A,E.drag,l,P):n.drawCachedElements(A,E.drag,l,P),n.debug&&n.drawDebugPoints(A,E.drag),!a&&!p&&(d[n.DRAG]=!1)}if(this.drawSelectionRectangle(t,O),p&&m!==1){var z=u.contexts[n.NODE],B=n.data.bufferCanvases[n.MOTIONBLUR_BUFFER_NODE],V=u.contexts[n.DRAG],H=n.data.bufferCanvases[n.MOTIONBLUR_BUFFER_DRAG],U=e(function(e,t,r){e.setTransform(1,0,0,1,0,0),r||!v?e.clearRect(0,0,n.canvasWidth,n.canvasHeight):D(e,0,0,n.canvasWidth,n.canvasHeight);var i=m;e.drawImage(t,0,0,n.canvasWidth*i,n.canvasHeight*i,0,0,n.canvasWidth,n.canvasHeight)},`drawMotionBlur`);(d[n.NODE]||L[n.NODE])&&(U(z,B,L[n.NODE]),d[n.NODE]=!1),(d[n.DRAG]||L[n.DRAG])&&(U(V,H,L[n.DRAG]),d[n.DRAG]=!1)}n.prevViewport=w,n.clearingMotionBlur&&(n.clearingMotionBlur=!1,n.motionBlurCleared=!0,n.motionBlur=!0),p&&(n.motionBlurTimeout=setTimeout(function(){n.motionBlurTimeout=null,n.clearedForMotionBlur[n.NODE]=!1,n.clearedForMotionBlur[n.DRAG]=!1,n.motionBlur=!1,n.clearingMotionBlur=!f,n.mbFrames=0,d[n.NODE]=!0,d[n.DRAG]=!0,n.redraw()},om)),i||r.emit(`render`)};var sm;am.drawSelectionRectangle=function(e,t){var n=this,r=n.cy,i=n.data,a=r.style(),o=e.drawOnlyNodeLayer,s=e.drawAllLayers,c=i.canvasNeedsRedraw,l=e.forcedContext;if(n.showFps||!o&&c[n.SELECT_BOX]&&!s){var u=l||i.contexts[n.SELECT_BOX];if(t(u),n.selection[4]==1&&(n.hoverData.selecting||n.touchData.selecting)){var d=n.cy.zoom(),f=a.core(`selection-box-border-width`).value/d;u.lineWidth=f,u.fillStyle=`rgba(`+a.core(`selection-box-color`).value[0]+`,`+a.core(`selection-box-color`).value[1]+`,`+a.core(`selection-box-color`).value[2]+`,`+a.core(`selection-box-opacity`).value+`)`,u.fillRect(n.selection[0],n.selection[1],n.selection[2]-n.selection[0],n.selection[3]-n.selection[1]),f>0&&(u.strokeStyle=`rgba(`+a.core(`selection-box-border-color`).value[0]+`,`+a.core(`selection-box-border-color`).value[1]+`,`+a.core(`selection-box-border-color`).value[2]+`,`+a.core(`selection-box-opacity`).value+`)`,u.strokeRect(n.selection[0],n.selection[1],n.selection[2]-n.selection[0],n.selection[3]-n.selection[1]))}if(i.bgActivePosistion&&!n.hoverData.selecting){var d=n.cy.zoom(),p=i.bgActivePosistion;u.fillStyle=`rgba(`+a.core(`active-bg-color`).value[0]+`,`+a.core(`active-bg-color`).value[1]+`,`+a.core(`active-bg-color`).value[2]+`,`+a.core(`active-bg-opacity`).value+`)`,u.beginPath(),u.arc(p.x,p.y,a.core(`active-bg-size`).pfValue/d,0,2*Math.PI),u.fill()}var m=n.lastRedrawTime;if(n.showFps&&m){m=Math.round(m);var h=Math.round(1e3/m),g=`1 frame = `+m+` ms = `+h+` fps`;u.setTransform(1,0,0,1,0,0),u.fillStyle=`rgba(255, 0, 0, 0.75)`,u.strokeStyle=`rgba(255, 0, 0, 0.75)`,u.font=`30px Arial`,sm||=u.measureText(g).actualBoundingBoxAscent,u.fillText(g,0,sm),u.strokeRect(0,sm+10,250,20),u.fillRect(0,sm+10,250*Math.min(h/60,1),20)}s||(c[n.SELECT_BOX]=!1)}};function cm(e,t,n){var r=e.createShader(t);if(e.shaderSource(r,n),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS))throw Error(e.getShaderInfoLog(r));return r}e(cm,`compileShader`);function lm(e,t,n){var r=cm(e,e.VERTEX_SHADER,t),i=cm(e,e.FRAGMENT_SHADER,n),a=e.createProgram();if(e.attachShader(a,r),e.attachShader(a,i),e.linkProgram(a),!e.getProgramParameter(a,e.LINK_STATUS))throw Error(`Could not initialize shaders`);return a}e(lm,`createProgram`);function um(e,t,n){n===void 0&&(n=t);var r=e.makeOffscreenCanvas(t,n),i=r.context=r.getContext(`2d`);return r.clear=function(){return i.clearRect(0,0,r.width,r.height)},r.clear(),r}e(um,`createTextureCanvas`);function dm(e){var t=e.pixelRatio,n=e.cy.zoom(),r=e.cy.pan();return{zoom:n*t,pan:{x:r.x*t,y:r.y*t}}}e(dm,`getEffectivePanZoom`);function fm(e){var t=e.pixelRatio;return e.cy.zoom()*t}e(fm,`getEffectiveZoom`);function pm(e,t,n,r,i){var a=r*n+t.x,o=i*n+t.y;return o=Math.round(e.canvasHeight-o),[a,o]}e(pm,`modelToRenderedPosition`);function mm(e){return e.pstyle(`background-fill`).value!==`solid`||e.pstyle(`background-image`).strValue!==`none`?!1:e.pstyle(`border-width`).value===0||e.pstyle(`border-opacity`).value===0?!0:e.pstyle(`border-style`).value===`solid`}e(mm,`isSimpleShape`);function hm(e,t){if(e.length!==t.length)return!1;for(var n=0;n>0&255)/255,n[1]=(e>>8&255)/255,n[2]=(e>>16&255)/255,n[3]=(e>>24&255)/255,n}e(_m,`indexToVec4`);function vm(e){return e[0]+(e[1]<<8)+(e[2]<<16)+(e[3]<<24)}e(vm,`vec4ToIndex`);function ym(e,t){var n=e.createTexture();return n.buffer=function(t){e.bindTexture(e.TEXTURE_2D,n),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_NEAREST),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t),e.generateMipmap(e.TEXTURE_2D),e.bindTexture(e.TEXTURE_2D,null)},n.deleteTexture=function(){e.deleteTexture(n)},n}e(ym,`createTexture`);function bm(e,t){switch(t){case`float`:return[1,e.FLOAT,4];case`vec2`:return[2,e.FLOAT,4];case`vec3`:return[3,e.FLOAT,4];case`vec4`:return[4,e.FLOAT,4];case`int`:return[1,e.INT,4];case`ivec2`:return[2,e.INT,4]}}e(bm,`getTypeInfo`);function xm(e,t,n){switch(t){case e.FLOAT:return new Float32Array(n);case e.INT:return new Int32Array(n)}}e(xm,`createTypedArray`);function Sm(e,t,n,r,i,a){switch(t){case e.FLOAT:return new Float32Array(n.buffer,a*r,i);case e.INT:return new Int32Array(n.buffer,a*r,i)}}e(Sm,`createTypedArrayView`);function Cm(e,t,n,r){var i=p(bm(e,t),2),a=i[0],o=i[1],s=xm(e,o,r),c=e.createBuffer();return e.bindBuffer(e.ARRAY_BUFFER,c),e.bufferData(e.ARRAY_BUFFER,s,e.STATIC_DRAW),o===e.FLOAT?e.vertexAttribPointer(n,a,o,!1,0,0):o===e.INT&&e.vertexAttribIPointer(n,a,o,0,0),e.enableVertexAttribArray(n),e.bindBuffer(e.ARRAY_BUFFER,null),c}e(Cm,`createBufferStaticDraw`);function wm(e,t,n,r){var i=p(bm(e,n),3),a=i[0],o=i[1],s=i[2],c=xm(e,o,t*a),l=a*s,u=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,u),e.bufferData(e.ARRAY_BUFFER,t*l,e.DYNAMIC_DRAW),e.enableVertexAttribArray(r),o===e.FLOAT?e.vertexAttribPointer(r,a,o,!1,l,0):o===e.INT&&e.vertexAttribIPointer(r,a,o,l,0),e.vertexAttribDivisor(r,1),e.bindBuffer(e.ARRAY_BUFFER,null);for(var d=Array(t),f=0;fi&&(a=i/t,o=t*a,s=n*a),{scale:a,texW:o,texH:s}},`getScale`)},{key:`draw`,value:e(function(t,n,r){var i=this;if(this.locked)throw Error(`can't draw, atlas is locked`);var a=this.texSize,o=this.texRows,s=this.texHeight,c=this.getScale(n),l=c.scale,u=c.texW,d=c.texH,f=e(function(e,t){if(r&&t){var i=t.context,a=e.x,o=e.row,c=a,u=s*o;i.save(),i.translate(c,u),i.scale(l,l),r(i,n),i.restore()}},`drawAt`),p=[null,null],m=e(function(){f(i.freePointer,i.canvas),p[0]={x:i.freePointer.x,y:i.freePointer.row*s,w:u,h:d},p[1]={x:i.freePointer.x+u,y:i.freePointer.row*s,w:0,h:d},i.freePointer.x+=u,i.freePointer.x==a&&(i.freePointer.x=0,i.freePointer.row++)},`drawNormal`),h=e(function(){var e=i.scratch,t=i.canvas;e.clear(),f({x:0,row:0},e);var n=a-i.freePointer.x,r=u-n,o=s,c=i.freePointer.x,l=i.freePointer.row*s,m=n;t.context.drawImage(e,0,0,m,o,c,l,m,o),p[0]={x:c,y:l,w:m,h:d};var h=n,g=(i.freePointer.row+1)*s,_=r;t&&t.context.drawImage(e,h,0,_,o,0,g,_,o),p[1]={x:0,y:g,w:_,h:d},i.freePointer.x=r,i.freePointer.row++},`drawWrapped`),g=e(function(){i.freePointer.x=0,i.freePointer.row++},`moveToStartOfNextRow`);if(this.freePointer.x+u<=a)m();else if(this.freePointer.row>=o-1)return!1;else this.freePointer.x===a?(g(),m()):this.enableWrapping?h():(g(),m());return this.keyToLocation.set(t,p),this.needsBuffer=!0,p},`draw`)},{key:`getOffsets`,value:e(function(e){return this.keyToLocation.get(e)},`getOffsets`)},{key:`isEmpty`,value:e(function(){return this.freePointer.x===0&&this.freePointer.row===0},`isEmpty`)},{key:`canFit`,value:e(function(e){if(this.locked)return!1;var t=this.texSize,n=this.texRows,r=this.getScale(e).texW;return this.freePointer.x+r>t?this.freePointer.row1&&arguments[1]!==void 0?arguments[1]:{},i=r.forceRedraw,a=i===void 0?!1:i,o=r.filterEle,c=o===void 0?function(){return!0}:o,l=r.filterType,u=l===void 0?function(){return!0}:l,d=!1,f=!1,p=s(t),m;try{for(p.s();!(m=p.n()).done;){var h=m.value;if(c(h)){var g=s(this.renderTypes.values()),_;try{var v=e(function(){var e=_.value,t=e.type;if(u(t)){var r=n.collections.get(e.collection),i=e.getKey(h),o=Array.isArray(i)?i:[i];if(a)o.forEach(function(e){return r.markKeyForGC(e)}),f=!0;else{var s=e.getID?e.getID(h):h.id(),c=n._key(t,s),l=n.typeAndIdToKey.get(c);l!==void 0&&!hm(o,l)&&(d=!0,n.typeAndIdToKey.delete(c),l.forEach(function(e){return r.markKeyForGC(e)}))}}},`_loop2`);for(g.s();!(_=g.n()).done;)v()}catch(e){g.e(e)}finally{g.f()}}}}catch(e){p.e(e)}finally{p.f()}return f&&(this.gc(),d=!1),d},`invalidate`)},{key:`gc`,value:e(function(){var e=s(this.collections.values()),t;try{for(e.s();!(t=e.n()).done;)t.value.gc()}catch(t){e.e(t)}finally{e.f()}},`gc`)},{key:`getOrCreateAtlas`,value:e(function(e,t,n,r){var i=this.renderTypes.get(t),a=this.collections.get(i.collection),o=!1,s=a.draw(r,n,function(t){i.drawClipped?(t.save(),t.beginPath(),t.rect(0,0,n.w,n.h),t.clip(),i.drawElement(t,e,n,!0,!0),t.restore()):i.drawElement(t,e,n,!0,!0),o=!0});if(o){var c=i.getID?i.getID(e):e.id(),l=this._key(t,c);this.typeAndIdToKey.has(l)?this.typeAndIdToKey.get(l).push(r):this.typeAndIdToKey.set(l,[r])}return s},`getOrCreateAtlas`)},{key:`getAtlasInfo`,value:e(function(e,t){var n=this,r=this.renderTypes.get(t),i=r.getKey(e);return(Array.isArray(i)?i:[i]).map(function(i){var a=r.getBoundingBox(e,i),o=n.getOrCreateAtlas(e,t,a,i),s=p(o.getOffsets(i),2),c=s[0];return{atlas:o,tex:c,tex1:c,tex2:s[1],bb:a}})},`getAtlasInfo`)},{key:`getDebugInfo`,value:e(function(){var e=[],t=s(this.collections),n;try{for(t.s();!(n=t.n()).done;){var r=p(n.value,2),i=r[0],a=r[1].getCounts(),o=a.keyCount,c=a.atlasCount;e.push({type:i,keyCount:o,atlasCount:c})}}catch(e){t.e(e)}finally{t.f()}return e},`getDebugInfo`)}])})(),zm=(function(){function t(e){i(this,t),this.globalOptions=e,this.atlasSize=e.webglTexSize,this.maxAtlasesPerBatch=e.webglTexPerBatch,this.batchAtlases=[]}return e(t,`AtlasBatchManager`),o(t,[{key:`getMaxAtlasesPerBatch`,value:e(function(){return this.maxAtlasesPerBatch},`getMaxAtlasesPerBatch`)},{key:`getAtlasSize`,value:e(function(){return this.atlasSize},`getAtlasSize`)},{key:`getIndexArray`,value:e(function(){return Array.from({length:this.maxAtlasesPerBatch},function(e,t){return t})},`getIndexArray`)},{key:`startBatch`,value:e(function(){this.batchAtlases=[]},`startBatch`)},{key:`getAtlasCount`,value:e(function(){return this.batchAtlases.length},`getAtlasCount`)},{key:`getAtlases`,value:e(function(){return this.batchAtlases},`getAtlases`)},{key:`canAddToCurrentBatch`,value:e(function(e){return this.batchAtlases.length===this.maxAtlasesPerBatch?this.batchAtlases.includes(e):!0},`canAddToCurrentBatch`)},{key:`getAtlasIndexForBatch`,value:e(function(e){var t=this.batchAtlases.indexOf(e);if(t<0){if(this.batchAtlases.length===this.maxAtlasesPerBatch)throw Error(`cannot add more atlases to batch`);this.batchAtlases.push(e),t=this.batchAtlases.length-1}return t},`getAtlasIndexForBatch`)}])})(),Bm=` + float circleSD(vec2 p, float r) { + return distance(vec2(0), p) - r; // signed distance + } +`,Vm=` + float rectangleSD(vec2 p, vec2 b) { + vec2 d = abs(p)-b; + return distance(vec2(0),max(d,0.0)) + min(max(d.x,d.y),0.0); + } +`,Hm=` + float roundRectangleSD(vec2 p, vec2 b, vec4 cr) { + cr.xy = (p.x > 0.0) ? cr.xy : cr.zw; + cr.x = (p.y > 0.0) ? cr.x : cr.y; + vec2 q = abs(p) - b + cr.x; + return min(max(q.x, q.y), 0.0) + distance(vec2(0), max(q, 0.0)) - cr.x; + } +`,Um=` + float ellipseSD(vec2 p, vec2 ab) { + p = abs( p ); // symmetry + + // find root with Newton solver + vec2 q = ab*(p-ab); + float w = (q.x1.0) ? d : -d; + } +`,Wm={SCREEN:{name:`screen`,screen:!0},PICKING:{name:`picking`,picking:!0}},Gm={IGNORE:1,USE_BB:2},Km=0,qm=1,Jm=2,Ym=3,Xm=4,Zm=5,Qm=6,$m=7,eh=(function(){function t(e,n,r){i(this,t),this.r=e,this.gl=n,this.maxInstances=r.webglBatchSize,this.atlasSize=r.webglTexSize,this.bgColor=r.bgColor,this.debug=r.webglDebug,this.batchDebugInfo=[],r.enableWrapping=!0,r.createTextureCanvas=um,this.atlasManager=new Rm(e,r),this.batchManager=new zm(r),this.simpleShapeOptions=new Map,this.program=this._createShaderProgram(Wm.SCREEN),this.pickingProgram=this._createShaderProgram(Wm.PICKING),this.vao=this._createVAO()}return e(t,`ElementDrawingWebGL`),o(t,[{key:`addAtlasCollection`,value:e(function(e,t){this.atlasManager.addAtlasCollection(e,t)},`addAtlasCollection`)},{key:`addTextureAtlasRenderType`,value:e(function(e,t){this.atlasManager.addRenderType(e,t)},`addTextureAtlasRenderType`)},{key:`addSimpleShapeRenderType`,value:e(function(e,t){this.simpleShapeOptions.set(e,t)},`addSimpleShapeRenderType`)},{key:`invalidate`,value:e(function(t){var n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).type,r=this.atlasManager;return n?r.invalidate(t,{filterType:e(function(e){return e===n},`filterType`),forceRedraw:!0}):r.invalidate(t)},`invalidate`)},{key:`gc`,value:e(function(){this.atlasManager.gc()},`gc`)},{key:`_createShaderProgram`,value:e(function(e){var t=this.gl,n=`#version 300 es + precision highp float; + + uniform mat3 uPanZoomMatrix; + uniform int uAtlasSize; + + // instanced + in vec2 aPosition; // a vertex from the unit square + + in mat3 aTransform; // used to transform verticies, eg into a bounding box + in int aVertType; // the type of thing we are rendering + + // the z-index that is output when using picking mode + in vec4 aIndex; + + // For textures + in int aAtlasId; // which shader unit/atlas to use + in vec4 aTex; // x/y/w/h of texture in atlas + + // for edges + in vec4 aPointAPointB; + in vec4 aPointCPointD; + in vec2 aLineWidth; // also used for node border width + + // simple shapes + in vec4 aCornerRadius; // for round-rectangle [top-right, bottom-right, top-left, bottom-left] + in vec4 aColor; // also used for edges + in vec4 aBorderColor; // aLineWidth is used for border width + + // output values passed to the fragment shader + out vec2 vTexCoord; + out vec4 vColor; + out vec2 vPosition; + // flat values are not interpolated + flat out int vAtlasId; + flat out int vVertType; + flat out vec2 vTopRight; + flat out vec2 vBotLeft; + flat out vec4 vCornerRadius; + flat out vec4 vBorderColor; + flat out vec2 vBorderWidth; + flat out vec4 vIndex; + + void main(void) { + int vid = gl_VertexID; + vec2 position = aPosition; // TODO make this a vec3, simplifies some code below + + if(aVertType == ${Km}) { + float texX = aTex.x; // texture coordinates + float texY = aTex.y; + float texW = aTex.z; + float texH = aTex.w; + + if(vid == 1 || vid == 2 || vid == 4) { + texX += texW; + } + if(vid == 2 || vid == 4 || vid == 5) { + texY += texH; + } + + float d = float(uAtlasSize); + vTexCoord = vec2(texX / d, texY / d); // tex coords must be between 0 and 1 + + gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); + } + else if(aVertType == ${Xm} || aVertType == ${$m} + || aVertType == ${Zm} || aVertType == ${Qm}) { // simple shapes + + // the bounding box is needed by the fragment shader + vBotLeft = (aTransform * vec3(0, 0, 1)).xy; // flat + vTopRight = (aTransform * vec3(1, 1, 1)).xy; // flat + vPosition = (aTransform * vec3(position, 1)).xy; // will be interpolated + + // calculations are done in the fragment shader, just pass these along + vColor = aColor; + vCornerRadius = aCornerRadius; + vBorderColor = aBorderColor; + vBorderWidth = aLineWidth; + + gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); + } + else if(aVertType == ${qm}) { + vec2 source = aPointAPointB.xy; + vec2 target = aPointAPointB.zw; + + // adjust the geometry so that the line is centered on the edge + position.y = position.y - 0.5; + + // stretch the unit square into a long skinny rectangle + vec2 xBasis = target - source; + vec2 yBasis = normalize(vec2(-xBasis.y, xBasis.x)); + vec2 point = source + xBasis * position.x + yBasis * aLineWidth[0] * position.y; + + gl_Position = vec4(uPanZoomMatrix * vec3(point, 1.0), 1.0); + vColor = aColor; + } + else if(aVertType == ${Jm}) { + vec2 pointA = aPointAPointB.xy; + vec2 pointB = aPointAPointB.zw; + vec2 pointC = aPointCPointD.xy; + vec2 pointD = aPointCPointD.zw; + + // adjust the geometry so that the line is centered on the edge + position.y = position.y - 0.5; + + vec2 p0, p1, p2, pos; + if(position.x == 0.0) { // The left side of the unit square + p0 = pointA; + p1 = pointB; + p2 = pointC; + pos = position; + } else { // The right side of the unit square, use same approach but flip the geometry upside down + p0 = pointD; + p1 = pointC; + p2 = pointB; + pos = vec2(0.0, -position.y); + } + + vec2 p01 = p1 - p0; + vec2 p12 = p2 - p1; + vec2 p21 = p1 - p2; + + // Find the normal vector. + vec2 tangent = normalize(normalize(p12) + normalize(p01)); + vec2 normal = vec2(-tangent.y, tangent.x); + + // Find the vector perpendicular to p0 -> p1. + vec2 p01Norm = normalize(vec2(-p01.y, p01.x)); + + // Determine the bend direction. + float sigma = sign(dot(p01 + p21, normal)); + float width = aLineWidth[0]; + + if(sign(pos.y) == -sigma) { + // This is an intersecting vertex. Adjust the position so that there's no overlap. + vec2 point = 0.5 * width * normal * -sigma / dot(normal, p01Norm); + gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0); + } else { + // This is a non-intersecting vertex. Treat it like a mitre join. + vec2 point = 0.5 * width * normal * sigma * dot(normal, p01Norm); + gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0); + } + + vColor = aColor; + } + else if(aVertType == ${Ym} && vid < 3) { + // massage the first triangle into an edge arrow + if(vid == 0) + position = vec2(-0.15, -0.3); + if(vid == 1) + position = vec2( 0.0, 0.0); + if(vid == 2) + position = vec2( 0.15, -0.3); + + gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); + vColor = aColor; + } + else { + gl_Position = vec4(2.0, 0.0, 0.0, 1.0); // discard vertex by putting it outside webgl clip space + } + + vAtlasId = aAtlasId; + vVertType = aVertType; + vIndex = aIndex; + } + `,r=this.batchManager.getIndexArray(),i=lm(t,n,`#version 300 es + precision highp float; + + // declare texture unit for each texture atlas in the batch + ${r.map(function(e){return`uniform sampler2D uTexture${e};`}).join(` + `)} + + uniform vec4 uBGColor; + uniform float uZoom; + + in vec2 vTexCoord; + in vec4 vColor; + in vec2 vPosition; // model coordinates + + flat in int vAtlasId; + flat in vec4 vIndex; + flat in int vVertType; + flat in vec2 vTopRight; + flat in vec2 vBotLeft; + flat in vec4 vCornerRadius; + flat in vec4 vBorderColor; + flat in vec2 vBorderWidth; + + out vec4 outColor; + + ${Bm} + ${Vm} + ${Hm} + ${Um} + + vec4 blend(vec4 top, vec4 bot) { // blend colors with premultiplied alpha + return vec4( + top.rgb + (bot.rgb * (1.0 - top.a)), + top.a + (bot.a * (1.0 - top.a)) + ); + } + + vec4 distInterp(vec4 cA, vec4 cB, float d) { // interpolate color using Signed Distance + // scale to the zoom level so that borders don't look blurry when zoomed in + // note 1.5 is an aribitrary value chosen because it looks good + return mix(cA, cB, 1.0 - smoothstep(0.0, 1.5 / uZoom, abs(d))); + } + + void main(void) { + if(vVertType == ${Km}) { + // look up the texel from the texture unit + ${r.map(function(e){return`if(vAtlasId == ${e}) outColor = texture(uTexture${e}, vTexCoord);`}).join(` + else `)} + } + else if(vVertType == ${Ym}) { + // mimics how canvas renderer uses context.globalCompositeOperation = 'destination-out'; + outColor = blend(vColor, uBGColor); + outColor.a = 1.0; // make opaque, masks out line under arrow + } + else if(vVertType == ${Xm} && vBorderWidth == vec2(0.0)) { // simple rectangle with no border + outColor = vColor; // unit square is already transformed to the rectangle, nothing else needs to be done + } + else if(vVertType == ${Xm} || vVertType == ${$m} + || vVertType == ${Zm} || vVertType == ${Qm}) { // use SDF + + float outerBorder = vBorderWidth[0]; + float innerBorder = vBorderWidth[1]; + float borderPadding = outerBorder * 2.0; + float w = vTopRight.x - vBotLeft.x - borderPadding; + float h = vTopRight.y - vBotLeft.y - borderPadding; + vec2 b = vec2(w/2.0, h/2.0); // half width, half height + vec2 p = vPosition - vec2(vTopRight.x - b[0] - outerBorder, vTopRight.y - b[1] - outerBorder); // translate to center + + float d; // signed distance + if(vVertType == ${Xm}) { + d = rectangleSD(p, b); + } else if(vVertType == ${$m} && w == h) { + d = circleSD(p, b.x); // faster than ellipse + } else if(vVertType == ${$m}) { + d = ellipseSD(p, b); + } else { + d = roundRectangleSD(p, b, vCornerRadius.wzyx); + } + + // use the distance to interpolate a color to smooth the edges of the shape, doesn't need multisampling + // we must smooth colors inwards, because we can't change pixels outside the shape's bounding box + if(d > 0.0) { + if(d > outerBorder) { + discard; + } else { + outColor = distInterp(vBorderColor, vec4(0), d - outerBorder); + } + } else { + if(d > innerBorder) { + vec4 outerColor = outerBorder == 0.0 ? vec4(0) : vBorderColor; + vec4 innerBorderColor = blend(vBorderColor, vColor); + outColor = distInterp(innerBorderColor, outerColor, d); + } + else { + vec4 outerColor; + if(innerBorder == 0.0 && outerBorder == 0.0) { + outerColor = vec4(0); + } else if(innerBorder == 0.0) { + outerColor = vBorderColor; + } else { + outerColor = blend(vBorderColor, vColor); + } + outColor = distInterp(vColor, outerColor, d - innerBorder); + } + } + } + else { + outColor = vColor; + } + + ${e.picking?`if(outColor.a == 0.0) discard; + else outColor = vIndex;`:``} + } + `);i.aPosition=t.getAttribLocation(i,`aPosition`),i.aIndex=t.getAttribLocation(i,`aIndex`),i.aVertType=t.getAttribLocation(i,`aVertType`),i.aTransform=t.getAttribLocation(i,`aTransform`),i.aAtlasId=t.getAttribLocation(i,`aAtlasId`),i.aTex=t.getAttribLocation(i,`aTex`),i.aPointAPointB=t.getAttribLocation(i,`aPointAPointB`),i.aPointCPointD=t.getAttribLocation(i,`aPointCPointD`),i.aLineWidth=t.getAttribLocation(i,`aLineWidth`),i.aColor=t.getAttribLocation(i,`aColor`),i.aCornerRadius=t.getAttribLocation(i,`aCornerRadius`),i.aBorderColor=t.getAttribLocation(i,`aBorderColor`),i.uPanZoomMatrix=t.getUniformLocation(i,`uPanZoomMatrix`),i.uAtlasSize=t.getUniformLocation(i,`uAtlasSize`),i.uBGColor=t.getUniformLocation(i,`uBGColor`),i.uZoom=t.getUniformLocation(i,`uZoom`),i.uTextures=[];for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:Wm.SCREEN;this.panZoomMatrix=e,this.renderTarget=t,this.batchDebugInfo=[],this.wrappedCount=0,this.simpleCount=0,this.startBatch()},`startFrame`)},{key:`startBatch`,value:e(function(){this.instanceCount=0,this.batchManager.startBatch()},`startBatch`)},{key:`endFrame`,value:e(function(){this.endBatch()},`endFrame`)},{key:`_isVisible`,value:e(function(e,t){return e.visible()?t&&t.isVisible?t.isVisible(e):!0:!1},`_isVisible`)},{key:`drawTexture`,value:e(function(e,t,n){var r=this.atlasManager,i=this.batchManager,a=r.getRenderTypeOpts(n);if(this._isVisible(e,a)&&!(e.isEdge()&&!this._isValidEdge(e))){if(this.renderTarget.picking&&a.getTexPickingMode){var o=a.getTexPickingMode(e);if(o===Gm.IGNORE)return;if(o==Gm.USE_BB){this.drawPickingRectangle(e,t,n);return}}var c=s(r.getAtlasInfo(e,n)),l;try{for(c.s();!(l=c.n()).done;){var u=l.value,d=u.atlas,f=u.tex1,m=u.tex2;i.canAddToCurrentBatch(d)||this.endBatch();for(var h=i.getAtlasIndexForBatch(d),g=0,_=[[f,!0],[m,!1]];g<_.length;g++){var v=p(_[g],2),y=v[0],b=v[1];if(y.w!=0){var x=this.instanceCount;this.vertTypeBuffer.getView(x)[0]=Km,_m(t,this.indexBuffer.getView(x));var S=this.atlasIdBuffer.getView(x);S[0]=h;var C=this.texBuffer.getView(x);C[0]=y.x,C[1]=y.y,C[2]=y.w,C[3]=y.h;var w=this.transformBuffer.getMatrixView(x);this.setTransformMatrix(e,w,a,u,b),this.instanceCount++,b||this.wrappedCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}catch(e){c.e(e)}finally{c.f()}}},`drawTexture`)},{key:`setTransformMatrix`,value:e(function(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=0;if(n.shapeProps&&n.shapeProps.padding&&(a=e.pstyle(n.shapeProps.padding).pfValue),r){var o=r.bb,s=r.tex1,c=r.tex2,l=s.w/(s.w+c.w);i||(l=1-l);var u=this._getAdjustedBB(o,a,i,l);this._applyTransformMatrix(t,u,n,e)}else{var d=n.getBoundingBox(e),f=this._getAdjustedBB(d,a,!0,1);this._applyTransformMatrix(t,f,n,e)}},`setTransformMatrix`)},{key:`_applyTransformMatrix`,value:e(function(e,t,n,r){var i,a;km(e);var o=n.getRotation?n.getRotation(r):0;if(o!==0){var s=n.getRotationPoint(r),c=s.x,l=s.y;jm(e,e,[c,l]),Mm(e,e,o);var u=n.getRotationOffset(r);i=u.x+(t.xOffset||0),a=u.y+(t.yOffset||0)}else i=t.x1,a=t.y1;jm(e,e,[i,a]),Nm(e,e,[t.w,t.h])},`_applyTransformMatrix`)},{key:`_getAdjustedBB`,value:e(function(e,t,n,r){var i=e.x1,a=e.y1,o=e.w,s=e.h,c=e.yOffset;t&&(i-=t,a-=t,o+=2*t,s+=2*t);var l=0,u=o*r;return n&&r<1?o=u:!n&&r<1&&(l=o-u,i+=l,o=u),{x1:i,y1:a,w:o,h:s,xOffset:l,yOffset:c}},`_getAdjustedBB`)},{key:`drawPickingRectangle`,value:e(function(e,t,n){var r=this.atlasManager.getRenderTypeOpts(n),i=this.instanceCount;this.vertTypeBuffer.getView(i)[0]=Xm,_m(t,this.indexBuffer.getView(i)),gm([0,0,0],1,this.colorBuffer.getView(i));var a=this.transformBuffer.getMatrixView(i);this.setTransformMatrix(e,a,r),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()},`drawPickingRectangle`)},{key:`drawNode`,value:e(function(e,t,n){var r=this.simpleShapeOptions.get(n);if(this._isVisible(e,r)){var i=r.shapeProps,a=this._getVertTypeForShape(e,i.shape);if(a===void 0||r.isSimple&&!r.isSimple(e)){this.drawTexture(e,t,n);return}var o=this.instanceCount;if(this.vertTypeBuffer.getView(o)[0]=a,a===Zm||a===Qm){var s=r.getBoundingBox(e),c=this._getCornerRadius(e,i.radius,s),l=this.cornerRadiusBuffer.getView(o);l[0]=c,l[1]=c,l[2]=c,l[3]=c,a===Qm&&(l[0]=0,l[2]=0)}_m(t,this.indexBuffer.getView(o));var u=e.pstyle(i.color).value,d=e.pstyle(i.opacity).value;gm(u,d,this.colorBuffer.getView(o));var f=this.lineWidthBuffer.getView(o);if(f[0]=0,f[1]=0,i.border){var p=e.pstyle(`border-width`).value;if(p>0){var m=e.pstyle(`border-color`).value,h=e.pstyle(`border-opacity`).value;gm(m,h,this.borderColorBuffer.getView(o));var g=e.pstyle(`border-position`).value;if(g===`inside`)f[0]=0,f[1]=-p;else if(g===`outside`)f[0]=p,f[1]=0;else{var _=p/2;f[0]=_,f[1]=-_}}}var v=this.transformBuffer.getMatrixView(o);this.setTransformMatrix(e,v,r),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},`drawNode`)},{key:`_getVertTypeForShape`,value:e(function(e,t){switch(e.pstyle(t).value){case`rectangle`:return Xm;case`ellipse`:return $m;case`roundrectangle`:case`round-rectangle`:return Zm;case`bottom-round-rectangle`:return Qm;default:return}},`_getVertTypeForShape`)},{key:`_getCornerRadius`,value:e(function(e,t,n){var r=n.w,i=n.h;if(e.pstyle(t).value===`auto`)return jr(r,i);var a=e.pstyle(t).pfValue,o=r/2,s=i/2;return Math.min(a,s,o)},`_getCornerRadius`)},{key:`drawEdgeArrow`,value:e(function(e,t,n){if(e.visible()){var r=e._private.rscratch,i,a,o;if(n===`source`?(i=r.arrowStartX,a=r.arrowStartY,o=r.srcArrowAngle):(i=r.arrowEndX,a=r.arrowEndY,o=r.tgtArrowAngle),!(isNaN(i)||i==null||isNaN(a)||a==null||isNaN(o)||o==null)&&e.pstyle(n+`-arrow-shape`).value!==`none`){var s=e.pstyle(n+`-arrow-color`).value,c=e.pstyle(`opacity`).value*e.pstyle(`line-opacity`).value,l=e.pstyle(`width`).pfValue,u=e.pstyle(`arrow-scale`).value,d=this.r.getArrowWidth(l,u),f=this.instanceCount,p=this.transformBuffer.getMatrixView(f);km(p),jm(p,p,[i,a]),Nm(p,p,[d,d]),Mm(p,p,o),this.vertTypeBuffer.getView(f)[0]=Ym,_m(t,this.indexBuffer.getView(f)),gm(s,c,this.colorBuffer.getView(f)),this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}},`drawEdgeArrow`)},{key:`drawEdgeLine`,value:e(function(e,t){if(e.visible()){var n=this._getEdgePoints(e);if(n){var r=e.pstyle(`opacity`).value,i=e.pstyle(`line-opacity`).value,a=e.pstyle(`width`).pfValue,o=e.pstyle(`line-color`).value,s=r*i;if(n.length/2+this.instanceCount>this.maxInstances&&this.endBatch(),n.length==4){var c=this.instanceCount;this.vertTypeBuffer.getView(c)[0]=qm,_m(t,this.indexBuffer.getView(c)),gm(o,s,this.colorBuffer.getView(c));var l=this.lineWidthBuffer.getView(c);l[0]=a;var u=this.pointAPointBBuffer.getView(c);u[0]=n[0],u[1]=n[1],u[2]=n[2],u[3]=n[3],this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}else for(var d=0;d=this.maxInstances&&this.endBatch()}}}},`drawEdgeLine`)},{key:`_isValidEdge`,value:e(function(e){var t=e._private.rscratch;return!(t.badLine||t.allpts==null||isNaN(t.allpts[0]))},`_isValidEdge`)},{key:`_getEdgePoints`,value:e(function(e){var t=e._private.rscratch;if(this._isValidEdge(e)){var n=t.allpts;if(n.length==4)return n;var r=this._getNumSegments(e);return this._getCurveSegmentPoints(n,r)}},`_getEdgePoints`)},{key:`_getNumSegments`,value:e(function(e){return Math.min(15,this.maxInstances)},`_getNumSegments`)},{key:`_getCurveSegmentPoints`,value:e(function(e,t){if(e.length==4)return e;for(var n=Array((t+1)*2),r=0;r<=t;r++)if(r==0)n[0]=e[0],n[1]=e[1];else if(r==t)n[r*2]=e[e.length-2],n[r*2+1]=e[e.length-1];else{var i=r/t;this._setCurvePoint(e,i,n,r*2)}return n},`_getCurveSegmentPoints`)},{key:`_setCurvePoint`,value:e(function(e,t,n,r){if(e.length<=2)n[r]=e[0],n[r+1]=e[1];else{for(var i=Array(e.length-2),a=0;a0}},`isLayerVisible`),c=e(function(e){return e.pstyle(`text-events`).strValue===`yes`?Gm.USE_BB:Gm.IGNORE},`getTexPickingMode`),l=e(function(e){var t=e.position(),n=t.x,r=t.y,i=e.outerWidth(),a=e.outerHeight();return{w:i,h:a,x1:n-i/2,y1:r-a/2}},`getBBForSimpleShape`);r.drawing.addAtlasCollection(`node`,{texRows:t.webglTexRowsNodes}),r.drawing.addAtlasCollection(`label`,{texRows:t.webglTexRows}),r.drawing.addTextureAtlasRenderType(`node-body`,{collection:`node`,getKey:n.getStyleKey,getBoundingBox:n.getElementBox,drawElement:n.drawElement}),r.drawing.addSimpleShapeRenderType(`node-body`,{getBoundingBox:l,isSimple:mm,shapeProps:{shape:`shape`,color:`background-color`,opacity:`background-opacity`,radius:`corner-radius`,border:!0}}),r.drawing.addSimpleShapeRenderType(`node-overlay`,{getBoundingBox:l,isVisible:s(`overlay`),shapeProps:{shape:`overlay-shape`,color:`overlay-color`,opacity:`overlay-opacity`,padding:`overlay-padding`,radius:`overlay-corner-radius`}}),r.drawing.addSimpleShapeRenderType(`node-underlay`,{getBoundingBox:l,isVisible:s(`underlay`),shapeProps:{shape:`underlay-shape`,color:`underlay-color`,opacity:`underlay-opacity`,padding:`underlay-padding`,radius:`underlay-corner-radius`}}),r.drawing.addTextureAtlasRenderType(`label`,{collection:`label`,getTexPickingMode:c,getKey:ih(n.getLabelKey,null),getBoundingBox:ah(n.getLabelBox,null),drawClipped:!0,drawElement:n.drawLabel,getRotation:a(null),getRotationPoint:n.getLabelRotationPoint,getRotationOffset:n.getLabelRotationOffset,isVisible:o(`label`)}),r.drawing.addTextureAtlasRenderType(`edge-source-label`,{collection:`label`,getTexPickingMode:c,getKey:ih(n.getSourceLabelKey,`source`),getBoundingBox:ah(n.getSourceLabelBox,`source`),drawClipped:!0,drawElement:n.drawSourceLabel,getRotation:a(`source`),getRotationPoint:n.getSourceLabelRotationPoint,getRotationOffset:n.getSourceLabelRotationOffset,isVisible:o(`source-label`)}),r.drawing.addTextureAtlasRenderType(`edge-target-label`,{collection:`label`,getTexPickingMode:c,getKey:ih(n.getTargetLabelKey,`target`),getBoundingBox:ah(n.getTargetLabelBox,`target`),drawClipped:!0,drawElement:n.drawTargetLabel,getRotation:a(`target`),getRotationPoint:n.getTargetLabelRotationPoint,getRotationOffset:n.getTargetLabelRotationOffset,isVisible:o(`target-label`)});var u=st(function(){console.log(`garbage collect flag set`),r.data.gc=!0},1e4);r.onUpdateEleCalcs(function(e,t){var n=!1;t&&t.length>0&&(n|=r.drawing.invalidate(t)),n&&u()}),oh(r)};function nh(e){var t=e.cy.container();return pe(t&&t.style&&t.style.backgroundColor||`white`)}e(nh,`getBGColor`);function rh(e,t){var n=e._private.rscratch;return Xt(n,`labelWrapCachedLines`,t)||[]}e(rh,`getLabelLines`);var ih=e(function(e,t){return function(n){var r=e(n),i=rh(n,t);return i.length>1?i.map(function(e,t){return`${r}_${t}`}):r}},`getStyleKeysForLabel`),ah=e(function(e,t){return function(n,r){var i=e(n);if(typeof r==`string`){var a=r.indexOf(`_`);if(a>0){var o=Number(r.substring(a+1)),s=rh(n,t),c=i.h/s.length,l=c*o,u=i.y1+l;return{x1:i.x1,w:i.w,y1:u,h:c,yOffset:l}}}return i}},`getBoundingBoxForLabel`);function oh(e){var t=e.render;e.render=function(n){n||={};var r=e.cy;e.webgl&&(r.zoom()>ep?(sh(e),t.call(e,n)):(ch(e),_h(e,n,Wm.SCREEN)))};var n=e.matchCanvasSize;e.matchCanvasSize=function(t){n.call(e,t),e.pickingFrameBuffer.setFramebufferAttachmentSizes(e.canvasWidth,e.canvasHeight),e.pickingFrameBuffer.needsDraw=!0},e.findNearestElements=function(t,n,r,i){return hh(e,t,n)};var r=e.invalidateCachedZSortedEles;e.invalidateCachedZSortedEles=function(){r.call(e),e.pickingFrameBuffer.needsDraw=!0};var i=e.notify;e.notify=function(t,n){i.call(e,t,n),t===`viewport`||t===`bounds`?e.pickingFrameBuffer.needsDraw=!0:t===`background`&&e.drawing.invalidate(n,{type:`node-body`})}}e(oh,`overrideCanvasRendererFunctions`);function sh(e){var t=e.data.contexts[e.WEBGL];t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}e(sh,`clearWebgl`);function ch(t){var n=e(function(e){e.save(),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,t.canvasWidth,t.canvasHeight),e.restore()},`clear`);n(t.data.contexts[t.NODE]),n(t.data.contexts[t.DRAG])}e(ch,`clearCanvas`);function lh(e){var t=e.canvasWidth,n=e.canvasHeight,r=dm(e),i=r.pan,a=r.zoom,o=Om();jm(o,o,[i.x,i.y]),Nm(o,o,[a,a]);var s=Om();Pm(s,t,n);var c=Om();return Am(c,s,o),c}e(lh,`createPanZoomMatrix`);function uh(e,t){var n=e.canvasWidth,r=e.canvasHeight,i=dm(e),a=i.pan,o=i.zoom;t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,n,r),t.translate(a.x,a.y),t.scale(o,o)}e(uh,`setContextTransform`);function dh(e,t){e.drawSelectionRectangle(t,function(t){return uh(e,t)})}e(dh,`drawSelectionRectangle`);function fh(e){var t=e.data.contexts[e.NODE];t.save(),uh(e,t),t.strokeStyle=`rgba(0, 0, 0, 0.3)`,t.beginPath(),t.moveTo(-1e3,0),t.lineTo(1e3,0),t.stroke(),t.beginPath(),t.moveTo(0,-1e3),t.lineTo(0,1e3),t.stroke(),t.restore()}e(fh,`drawAxes`);function ph(t){var n=e(function(e,n,r){for(var i=e.atlasManager.getAtlasCollection(n),a=t.data.contexts[t.NODE],o=i.atlases,s=0;s=0&&b.add(S)}return b}e(mh,`getPickingIndexes`);function hh(e,t,n){var r=mh(e,t,n),i=e.getCachedZSortedEles(),a,o,c=s(r),l;try{for(c.s();!(l=c.n()).done;){var u=i[l.value];if(!a&&u.isNode()&&(a=u),!o&&u.isEdge()&&(o=u),a&&o)break}}catch(e){c.e(e)}finally{c.f()}return[a,o].filter(Boolean)}e(hh,`findNearestElementsWebgl`);function gh(e,t,n){var r=e.drawing;t+=1,n.isNode()?(r.drawNode(n,t,`node-underlay`),r.drawNode(n,t,`node-body`),r.drawTexture(n,t,`label`),r.drawNode(n,t,`node-overlay`)):(r.drawEdgeLine(n,t),r.drawEdgeArrow(n,t,`source`),r.drawEdgeArrow(n,t,`target`),r.drawTexture(n,t,`label`),r.drawTexture(n,t,`edge-source-label`),r.drawTexture(n,t,`edge-target-label`))}e(gh,`drawEle`);function _h(e,t,n){var r;e.webglDebug&&(r=performance.now());var i=e.drawing,a=0;if(n.screen&&e.data.canvasNeedsRedraw[e.SELECT_BOX]&&dh(e,t),e.data.canvasNeedsRedraw[e.NODE]||n.picking){var o=e.data.contexts[e.WEBGL];n.screen?(o.clearColor(0,0,0,0),o.enable(o.BLEND),o.blendFunc(o.ONE,o.ONE_MINUS_SRC_ALPHA)):o.disable(o.BLEND),o.clear(o.COLOR_BUFFER_BIT|o.DEPTH_BUFFER_BIT),o.viewport(0,0,o.canvas.width,o.canvas.height);var c=lh(e),l=e.getCachedZSortedEles();if(a=l.length,i.startFrame(c,n),n.screen){for(var u=0;u0&&a>0){f.clearRect(0,0,i,a),f.globalCompositeOperation=`source-over`;var p=this.getCachedZSortedEles();if(e.full)f.translate(-n.x1*c,-n.y1*c),f.scale(c,c),this.drawElements(f,p),f.scale(1/c,1/c),f.translate(n.x1*c,n.y1*c);else{var m=t.pan(),h={x:m.x*c,y:m.y*c};c*=t.zoom(),f.translate(h.x,h.y),f.scale(c,c),this.drawElements(f,p),f.scale(1/c,1/c),f.translate(-h.x,-h.y)}e.bg&&(f.globalCompositeOperation=`destination-over`,f.fillStyle=e.bg,f.rect(0,0,i,a),f.fill())}return d};function Eh(e,t){for(var n=atob(e),r=new ArrayBuffer(n.length),i=new Uint8Array(r),a=0;a`u`?`undefined`:_(OffscreenCanvas))===`undefined`?(n=this.cy.window().document.createElement(`canvas`),n.width=e,n.height=t):n=new OffscreenCanvas(e,t),n},[Lp,Wp,Zp,$p,em,rm,am,th,vh,Th,kh].forEach(function(e){Z($,e)});var Nh=[{type:`layout`,extensions:Gd},{type:`renderer`,extensions:[{name:`null`,impl:Kd},{name:`base`,impl:Gf},{name:`canvas`,impl:Ah}]}],Ph={},Fh={};function Ih(t,n,r){var i=r,a=e(function(e){zt("Can not register `"+n+"` for `"+t+"` since `"+e+"` already exists in the prototype and can not be overridden")},`overrideErr`);if(t===`core`){if(rd.prototype[n])return a(n);rd.prototype[n]=r}else if(t===`collection`){if(_u.prototype[n])return a(n);_u.prototype[n]=r}else if(t===`layout`){for(var o=e(function(e){this.options=e,r.call(this,e),k(this._private)||(this._private={}),this._private.cy=e.cy,this._private.listeners=[],this.createEmitter()},`Layout`),s=o.prototype=Object.create(r.prototype),c=[],l=0;l{let r;return n===`sandbox`&&(r=t(`#i`+e)),t(n===`sandbox`?r.nodes()[0].contentDocument.body:`body`).select(`[id="${e}"]`)},`getDiagramElement`);export{n as t}; \ No newline at end of file diff --git a/docs/dist/assets/chunk-7TFACZ55-BO7C1qvL.js b/docs/dist/assets/chunk-7TFACZ55-BO7C1qvL.js new file mode 100644 index 00000000..4caffafd --- /dev/null +++ b/docs/dist/assets/chunk-7TFACZ55-BO7C1qvL.js @@ -0,0 +1 @@ +import{r as e,t}from"./chunk-PTVI3W5X-DVfdoxm6.js";var n=t({"../../node_modules/.pnpm/@braintree+sanitize-url@7.1.1/node_modules/@braintree/sanitize-url/dist/constants.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|:)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[`.`,`/`],e.BLANK_URL=`about:blank`}}),r=t({"../../node_modules/.pnpm/@braintree+sanitize-url@7.1.1/node_modules/@braintree/sanitize-url/dist/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeUrl=void 0;var r=n();function i(e){return r.relativeFirstCharacters.indexOf(e[0])>-1}e(i,`isRelativeUrlWithoutProtocol`);function a(e){return e.replace(r.ctrlCharactersRegex,``).replace(r.htmlEntitiesRegex,function(e,t){return String.fromCharCode(t)})}e(a,`decodeHtmlCharacters`);function o(e){return URL.canParse(e)}e(o,`isValidUrl`);function s(e){try{return decodeURIComponent(e)}catch{return e}}e(s,`decodeURI`);function c(e){if(!e)return r.BLANK_URL;var t,n=s(e.trim());do n=a(n).replace(r.htmlCtrlEntityRegex,``).replace(r.ctrlCharactersRegex,``).replace(r.whitespaceEscapeCharsRegex,``).trim(),n=s(n),t=n.match(r.ctrlCharactersRegex)||n.match(r.htmlEntitiesRegex)||n.match(r.htmlCtrlEntityRegex)||n.match(r.whitespaceEscapeCharsRegex);while(t&&t.length>0);var c=n;if(!c)return r.BLANK_URL;if(i(c))return c;var l=c.trimStart(),u=l.match(r.urlSchemeRegex);if(!u)return c;var d=u[0].toLowerCase().trim();if(r.invalidProtocolRegex.test(d))return r.BLANK_URL;var f=l.replace(/\\/g,`/`);if(d===`mailto:`||d.includes(`://`))return f;if(d===`http:`||d===`https:`){if(!o(f))return r.BLANK_URL;var p=new URL(f);return p.protocol=p.protocol.toLowerCase(),p.hostname=p.hostname.toLowerCase(),p.toString()}return f}e(c,`sanitizeUrl`),t.sanitizeUrl=c}});export{r as t}; \ No newline at end of file diff --git a/docs/dist/assets/chunk-BBDM4ZFP-DhnAO8sj.js b/docs/dist/assets/chunk-BBDM4ZFP-DhnAO8sj.js new file mode 100644 index 00000000..aead6ced --- /dev/null +++ b/docs/dist/assets/chunk-BBDM4ZFP-DhnAO8sj.js @@ -0,0 +1,161 @@ +import{ht as e}from"./index-BEBAY2Mg.js";import{r as t}from"./chunk-PTVI3W5X-DVfdoxm6.js";var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=t((e,t)=>r(e,`name`,{value:t,configurable:!0}),`__name`),l=t((e,n)=>t(function(){return e&&(n=(0,e[a(e)[0]])(e=0)),n},`__init`),`__esm`),u=t((e,n)=>t(function(){return n||(0,e[a(e)[0]])((n={exports:{}}).exports,n),n.exports},`__require`),`__commonJS`),d=t((e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},`__export`),f=t((e,n,o,c)=>{if(n&&typeof n==`object`||typeof n==`function`)for(let l of a(n))!s.call(e,l)&&l!==o&&r(e,l,{get:t(()=>n[l],`get`),enumerable:!(c=i(n,l))||c.enumerable});return e},`__copyProps`),p=t((e,t,n)=>(f(e,t,`default`),n&&f(n,t,`default`)),`__reExport`),m=t((e,t,i)=>(i=e==null?{}:n(o(e)),f(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e)),`__toESM`),h=t(e=>f(r({},`__esModule`,{value:!0}),e),`__toCommonJS`),g={};d(g,{AnnotatedTextEdit:t(()=>fe,`AnnotatedTextEdit`),ChangeAnnotation:t(()=>de,`ChangeAnnotation`),ChangeAnnotationIdentifier:t(()=>E,`ChangeAnnotationIdentifier`),CodeAction:t(()=>Ke,`CodeAction`),CodeActionContext:t(()=>Ge,`CodeActionContext`),CodeActionKind:t(()=>Ue,`CodeActionKind`),CodeActionTriggerKind:t(()=>We,`CodeActionTriggerKind`),CodeDescription:t(()=>se,`CodeDescription`),CodeLens:t(()=>qe,`CodeLens`),Color:t(()=>ee,`Color`),ColorInformation:t(()=>te,`ColorInformation`),ColorPresentation:t(()=>T,`ColorPresentation`),Command:t(()=>le,`Command`),CompletionItem:t(()=>Ae,`CompletionItem`),CompletionItemKind:t(()=>we,`CompletionItemKind`),CompletionItemLabelDetails:t(()=>ke,`CompletionItemLabelDetails`),CompletionItemTag:t(()=>Ee,`CompletionItemTag`),CompletionList:t(()=>je,`CompletionList`),CreateFile:t(()=>O,`CreateFile`),DeleteFile:t(()=>k,`DeleteFile`),Diagnostic:t(()=>ce,`Diagnostic`),DiagnosticRelatedInformation:t(()=>ie,`DiagnosticRelatedInformation`),DiagnosticSeverity:t(()=>ae,`DiagnosticSeverity`),DiagnosticTag:t(()=>oe,`DiagnosticTag`),DocumentHighlight:t(()=>Le,`DocumentHighlight`),DocumentHighlightKind:t(()=>Ie,`DocumentHighlightKind`),DocumentLink:t(()=>Ye,`DocumentLink`),DocumentSymbol:t(()=>He,`DocumentSymbol`),DocumentUri:t(()=>_,`DocumentUri`),EOL:t(()=>mt,`EOL`),FoldingRange:t(()=>re,`FoldingRange`),FoldingRangeKind:t(()=>ne,`FoldingRangeKind`),FormattingOptions:t(()=>Je,`FormattingOptions`),Hover:t(()=>Ne,`Hover`),InlayHint:t(()=>ot,`InlayHint`),InlayHintKind:t(()=>it,`InlayHintKind`),InlayHintLabelPart:t(()=>at,`InlayHintLabelPart`),InlineCompletionContext:t(()=>ft,`InlineCompletionContext`),InlineCompletionItem:t(()=>ct,`InlineCompletionItem`),InlineCompletionList:t(()=>lt,`InlineCompletionList`),InlineCompletionTriggerKind:t(()=>ut,`InlineCompletionTriggerKind`),InlineValueContext:t(()=>rt,`InlineValueContext`),InlineValueEvaluatableExpression:t(()=>nt,`InlineValueEvaluatableExpression`),InlineValueText:t(()=>et,`InlineValueText`),InlineValueVariableLookup:t(()=>tt,`InlineValueVariableLookup`),InsertReplaceEdit:t(()=>De,`InsertReplaceEdit`),InsertTextFormat:t(()=>Te,`InsertTextFormat`),InsertTextMode:t(()=>Oe,`InsertTextMode`),Location:t(()=>C,`Location`),LocationLink:t(()=>w,`LocationLink`),MarkedString:t(()=>Me,`MarkedString`),MarkupContent:t(()=>Ce,`MarkupContent`),MarkupKind:t(()=>Se,`MarkupKind`),OptionalVersionedTextDocumentIdentifier:t(()=>be,`OptionalVersionedTextDocumentIdentifier`),ParameterInformation:t(()=>Pe,`ParameterInformation`),Position:t(()=>x,`Position`),Range:t(()=>S,`Range`),RenameFile:t(()=>pe,`RenameFile`),SelectedCompletionInfo:t(()=>dt,`SelectedCompletionInfo`),SelectionRange:t(()=>Xe,`SelectionRange`),SemanticTokenModifiers:t(()=>Qe,`SemanticTokenModifiers`),SemanticTokenTypes:t(()=>Ze,`SemanticTokenTypes`),SemanticTokens:t(()=>$e,`SemanticTokens`),SignatureInformation:t(()=>Fe,`SignatureInformation`),StringValue:t(()=>st,`StringValue`),SymbolInformation:t(()=>Be,`SymbolInformation`),SymbolKind:t(()=>Re,`SymbolKind`),SymbolTag:t(()=>ze,`SymbolTag`),TextDocument:t(()=>ht,`TextDocument`),TextDocumentEdit:t(()=>D,`TextDocumentEdit`),TextDocumentIdentifier:t(()=>ve,`TextDocumentIdentifier`),TextDocumentItem:t(()=>xe,`TextDocumentItem`),TextEdit:t(()=>ue,`TextEdit`),URI:t(()=>v,`URI`),VersionedTextDocumentIdentifier:t(()=>ye,`VersionedTextDocumentIdentifier`),WorkspaceChange:t(()=>_e,`WorkspaceChange`),WorkspaceEdit:t(()=>me,`WorkspaceEdit`),WorkspaceFolder:t(()=>pt,`WorkspaceFolder`),WorkspaceSymbol:t(()=>Ve,`WorkspaceSymbol`),integer:t(()=>y,`integer`),uinteger:t(()=>b,`uinteger`)});var _,v,y,b,x,S,C,w,ee,te,T,ne,re,ie,ae,oe,se,ce,le,ue,de,E,fe,D,O,pe,k,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He,Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,rt,it,at,ot,st,ct,lt,ut,dt,ft,pt,mt,ht,gt,A,_t=l({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){(function(e){function n(e){return typeof e==`string`}t(n,`is`),c(n,`is`),e.is=n})(_||={}),(function(e){function n(e){return typeof e==`string`}t(n,`is`),c(n,`is`),e.is=n})(v||={}),(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function n(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}t(n,`is`),c(n,`is`),e.is=n})(y||={}),(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function n(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}t(n,`is`),c(n,`is`),e.is=n})(b||={}),(function(e){function n(e,t){return e===Number.MAX_VALUE&&(e=b.MAX_VALUE),t===Number.MAX_VALUE&&(t=b.MAX_VALUE),{line:e,character:t}}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return A.objectLiteral(t)&&A.uinteger(t.line)&&A.uinteger(t.character)}t(r,`is`),c(r,`is`),e.is=r})(x||={}),(function(e){function n(e,t,n,r){if(A.uinteger(e)&&A.uinteger(t)&&A.uinteger(n)&&A.uinteger(r))return{start:x.create(e,t),end:x.create(n,r)};if(x.is(e)&&x.is(t))return{start:e,end:t};throw Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return A.objectLiteral(t)&&x.is(t.start)&&x.is(t.end)}t(r,`is`),c(r,`is`),e.is=r})(S||={}),(function(e){function n(e,t){return{uri:e,range:t}}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return A.objectLiteral(t)&&S.is(t.range)&&(A.string(t.uri)||A.undefined(t.uri))}t(r,`is`),c(r,`is`),e.is=r})(C||={}),(function(e){function n(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return A.objectLiteral(t)&&S.is(t.targetRange)&&A.string(t.targetUri)&&S.is(t.targetSelectionRange)&&(S.is(t.originSelectionRange)||A.undefined(t.originSelectionRange))}t(r,`is`),c(r,`is`),e.is=r})(w||={}),(function(e){function n(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return A.objectLiteral(t)&&A.numberRange(t.red,0,1)&&A.numberRange(t.green,0,1)&&A.numberRange(t.blue,0,1)&&A.numberRange(t.alpha,0,1)}t(r,`is`),c(r,`is`),e.is=r})(ee||={}),(function(e){function n(e,t){return{range:e,color:t}}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return A.objectLiteral(t)&&S.is(t.range)&&ee.is(t.color)}t(r,`is`),c(r,`is`),e.is=r})(te||={}),(function(e){function n(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return A.objectLiteral(t)&&A.string(t.label)&&(A.undefined(t.textEdit)||ue.is(t))&&(A.undefined(t.additionalTextEdits)||A.typedArray(t.additionalTextEdits,ue.is))}t(r,`is`),c(r,`is`),e.is=r})(T||={}),(function(e){e.Comment=`comment`,e.Imports=`imports`,e.Region=`region`})(ne||={}),(function(e){function n(e,t,n,r,i,a){let o={startLine:e,endLine:t};return A.defined(n)&&(o.startCharacter=n),A.defined(r)&&(o.endCharacter=r),A.defined(i)&&(o.kind=i),A.defined(a)&&(o.collapsedText=a),o}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return A.objectLiteral(t)&&A.uinteger(t.startLine)&&A.uinteger(t.startLine)&&(A.undefined(t.startCharacter)||A.uinteger(t.startCharacter))&&(A.undefined(t.endCharacter)||A.uinteger(t.endCharacter))&&(A.undefined(t.kind)||A.string(t.kind))}t(r,`is`),c(r,`is`),e.is=r})(re||={}),(function(e){function n(e,t){return{location:e,message:t}}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return A.defined(t)&&C.is(t.location)&&A.string(t.message)}t(r,`is`),c(r,`is`),e.is=r})(ie||={}),(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(ae||={}),(function(e){e.Unnecessary=1,e.Deprecated=2})(oe||={}),(function(e){function n(e){let t=e;return A.objectLiteral(t)&&A.string(t.href)}t(n,`is`),c(n,`is`),e.is=n})(se||={}),(function(e){function n(e,t,n,r,i,a){let o={range:e,message:t};return A.defined(n)&&(o.severity=n),A.defined(r)&&(o.code=r),A.defined(i)&&(o.source=i),A.defined(a)&&(o.relatedInformation=a),o}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return A.defined(t)&&S.is(t.range)&&A.string(t.message)&&(A.number(t.severity)||A.undefined(t.severity))&&(A.integer(t.code)||A.string(t.code)||A.undefined(t.code))&&(A.undefined(t.codeDescription)||A.string(t.codeDescription?.href))&&(A.string(t.source)||A.undefined(t.source))&&(A.undefined(t.relatedInformation)||A.typedArray(t.relatedInformation,ie.is))}t(r,`is`),c(r,`is`),e.is=r})(ce||={}),(function(e){function n(e,t,...n){let r={title:e,command:t};return A.defined(n)&&n.length>0&&(r.arguments=n),r}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return A.defined(t)&&A.string(t.title)&&A.string(t.command)}t(r,`is`),c(r,`is`),e.is=r})(le||={}),(function(e){function n(e,t){return{range:e,newText:t}}t(n,`replace`),c(n,`replace`),e.replace=n;function r(e,t){return{range:{start:e,end:e},newText:t}}t(r,`insert`),c(r,`insert`),e.insert=r;function i(e){return{range:e,newText:``}}t(i,`del`),c(i,`del`),e.del=i;function a(e){let t=e;return A.objectLiteral(t)&&A.string(t.newText)&&S.is(t.range)}t(a,`is`),c(a,`is`),e.is=a})(ue||={}),(function(e){function n(e,t,n){let r={label:e};return t!==void 0&&(r.needsConfirmation=t),n!==void 0&&(r.description=n),r}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return A.objectLiteral(t)&&A.string(t.label)&&(A.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(A.string(t.description)||t.description===void 0)}t(r,`is`),c(r,`is`),e.is=r})(de||={}),(function(e){function n(e){let t=e;return A.string(t)}t(n,`is`),c(n,`is`),e.is=n})(E||={}),(function(e){function n(e,t,n){return{range:e,newText:t,annotationId:n}}t(n,`replace`),c(n,`replace`),e.replace=n;function r(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}}t(r,`insert`),c(r,`insert`),e.insert=r;function i(e,t){return{range:e,newText:``,annotationId:t}}t(i,`del`),c(i,`del`),e.del=i;function a(e){let t=e;return ue.is(t)&&(de.is(t.annotationId)||E.is(t.annotationId))}t(a,`is`),c(a,`is`),e.is=a})(fe||={}),(function(e){function n(e,t){return{textDocument:e,edits:t}}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return A.defined(t)&&be.is(t.textDocument)&&Array.isArray(t.edits)}t(r,`is`),c(r,`is`),e.is=r})(D||={}),(function(e){function n(e,t,n){let r={kind:`create`,uri:e};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return t&&t.kind===`create`&&A.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||A.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||A.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||E.is(t.annotationId))}t(r,`is`),c(r,`is`),e.is=r})(O||={}),(function(e){function n(e,t,n,r){let i={kind:`rename`,oldUri:e,newUri:t};return n!==void 0&&(n.overwrite!==void 0||n.ignoreIfExists!==void 0)&&(i.options=n),r!==void 0&&(i.annotationId=r),i}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return t&&t.kind===`rename`&&A.string(t.oldUri)&&A.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||A.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||A.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||E.is(t.annotationId))}t(r,`is`),c(r,`is`),e.is=r})(pe||={}),(function(e){function n(e,t,n){let r={kind:`delete`,uri:e};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return t&&t.kind===`delete`&&A.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||A.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||A.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||E.is(t.annotationId))}t(r,`is`),c(r,`is`),e.is=r})(k||={}),(function(e){function n(e){let t=e;return t&&(t.changes!==void 0||t.documentChanges!==void 0)&&(t.documentChanges===void 0||t.documentChanges.every(e=>A.string(e.kind)?O.is(e)||pe.is(e)||k.is(e):D.is(e)))}t(n,`is`),c(n,`is`),e.is=n})(me||={}),he=class{static{t(this,`TextEditChangeImpl`)}static{c(this,`TextEditChangeImpl`)}constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,n){let r,i;if(n===void 0?r=ue.insert(e,t):E.is(n)?(i=n,r=fe.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=fe.insert(e,t,i)),this.edits.push(r),i!==void 0)return i}replace(e,t,n){let r,i;if(n===void 0?r=ue.replace(e,t):E.is(n)?(i=n,r=fe.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=fe.replace(e,t,i)),this.edits.push(r),i!==void 0)return i}delete(e,t){let n,r;if(t===void 0?n=ue.del(e):E.is(t)?(r=t,n=fe.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=fe.del(e,r)),this.edits.push(n),r!==void 0)return r}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(e===void 0)throw Error(`Text edit change is not configured to manage change annotations.`)}},ge=class{static{t(this,`ChangeAnnotations`)}static{c(this,`ChangeAnnotations`)}constructor(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,t){let n;if(E.is(e)?n=e:(n=this.nextId(),t=e),this._annotations[n]!==void 0)throw Error(`Id ${n} is already in use.`);if(t===void 0)throw Error(`No annotation provided for id ${n}`);return this._annotations[n]=t,this._size++,n}nextId(){return this._counter++,this._counter.toString()}},_e=class{static{t(this,`WorkspaceChange`)}static{c(this,`WorkspaceChange`)}constructor(e){this._textEditChanges=Object.create(null),e===void 0?this._workspaceEdit={}:(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new ge(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(e=>{if(D.is(e)){let t=new he(e.edits,this._changeAnnotations);this._textEditChanges[e.textDocument.uri]=t}})):e.changes&&Object.keys(e.changes).forEach(t=>{let n=new he(e.changes[t]);this._textEditChanges[t]=n}))}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(be.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let t={uri:e.uri,version:e.version},n=this._textEditChanges[t.uri];if(!n){let e=[],r={textDocument:t,edits:e};this._workspaceEdit.documentChanges.push(r),n=new he(e,this._changeAnnotations),this._textEditChanges[t.uri]=n}return n}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw Error(`Workspace edit is not configured for normal text edit changes.`);let t=this._textEditChanges[e];if(!t){let n=[];this._workspaceEdit.changes[e]=n,t=new he(n),this._textEditChanges[e]=t}return t}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ge,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,t,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let r;de.is(t)||E.is(t)?r=t:n=t;let i,a;if(r===void 0?i=O.create(e,n):(a=E.is(r)?r:this._changeAnnotations.manage(r),i=O.create(e,n,a)),this._workspaceEdit.documentChanges.push(i),a!==void 0)return a}renameFile(e,t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let i;de.is(n)||E.is(n)?i=n:r=n;let a,o;if(i===void 0?a=pe.create(e,t,r):(o=E.is(i)?i:this._changeAnnotations.manage(i),a=pe.create(e,t,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o}deleteFile(e,t,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let r;de.is(t)||E.is(t)?r=t:n=t;let i,a;if(r===void 0?i=k.create(e,n):(a=E.is(r)?r:this._changeAnnotations.manage(r),i=k.create(e,n,a)),this._workspaceEdit.documentChanges.push(i),a!==void 0)return a}},(function(e){function n(e){return{uri:e}}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return A.defined(t)&&A.string(t.uri)}t(r,`is`),c(r,`is`),e.is=r})(ve||={}),(function(e){function n(e,t){return{uri:e,version:t}}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return A.defined(t)&&A.string(t.uri)&&A.integer(t.version)}t(r,`is`),c(r,`is`),e.is=r})(ye||={}),(function(e){function n(e,t){return{uri:e,version:t}}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return A.defined(t)&&A.string(t.uri)&&(t.version===null||A.integer(t.version))}t(r,`is`),c(r,`is`),e.is=r})(be||={}),(function(e){function n(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return A.defined(t)&&A.string(t.uri)&&A.string(t.languageId)&&A.integer(t.version)&&A.string(t.text)}t(r,`is`),c(r,`is`),e.is=r})(xe||={}),(function(e){e.PlainText=`plaintext`,e.Markdown=`markdown`;function n(t){let n=t;return n===e.PlainText||n===e.Markdown}t(n,`is`),c(n,`is`),e.is=n})(Se||={}),(function(e){function n(e){let t=e;return A.objectLiteral(e)&&Se.is(t.kind)&&A.string(t.value)}t(n,`is`),c(n,`is`),e.is=n})(Ce||={}),(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(we||={}),(function(e){e.PlainText=1,e.Snippet=2})(Te||={}),(function(e){e.Deprecated=1})(Ee||={}),(function(e){function n(e,t,n){return{newText:e,insert:t,replace:n}}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return t&&A.string(t.newText)&&S.is(t.insert)&&S.is(t.replace)}t(r,`is`),c(r,`is`),e.is=r})(De||={}),(function(e){e.asIs=1,e.adjustIndentation=2})(Oe||={}),(function(e){function n(e){let t=e;return t&&(A.string(t.detail)||t.detail===void 0)&&(A.string(t.description)||t.description===void 0)}t(n,`is`),c(n,`is`),e.is=n})(ke||={}),(function(e){function n(e){return{label:e}}t(n,`create`),c(n,`create`),e.create=n})(Ae||={}),(function(e){function n(e,t){return{items:e||[],isIncomplete:!!t}}t(n,`create`),c(n,`create`),e.create=n})(je||={}),(function(e){function n(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,`\\$&`)}t(n,`fromPlainText`),c(n,`fromPlainText`),e.fromPlainText=n;function r(e){let t=e;return A.string(t)||A.objectLiteral(t)&&A.string(t.language)&&A.string(t.value)}t(r,`is`),c(r,`is`),e.is=r})(Me||={}),(function(e){function n(e){let t=e;return!!t&&A.objectLiteral(t)&&(Ce.is(t.contents)||Me.is(t.contents)||A.typedArray(t.contents,Me.is))&&(e.range===void 0||S.is(e.range))}t(n,`is`),c(n,`is`),e.is=n})(Ne||={}),(function(e){function n(e,t){return t?{label:e,documentation:t}:{label:e}}t(n,`create`),c(n,`create`),e.create=n})(Pe||={}),(function(e){function n(e,t,...n){let r={label:e};return A.defined(t)&&(r.documentation=t),A.defined(n)?r.parameters=n:r.parameters=[],r}t(n,`create`),c(n,`create`),e.create=n})(Fe||={}),(function(e){e.Text=1,e.Read=2,e.Write=3})(Ie||={}),(function(e){function n(e,t){let n={range:e};return A.number(t)&&(n.kind=t),n}t(n,`create`),c(n,`create`),e.create=n})(Le||={}),(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Re||={}),(function(e){e.Deprecated=1})(ze||={}),(function(e){function n(e,t,n,r,i){let a={name:e,kind:t,location:{uri:r,range:n}};return i&&(a.containerName=i),a}t(n,`create`),c(n,`create`),e.create=n})(Be||={}),(function(e){function n(e,t,n,r){return r===void 0?{name:e,kind:t,location:{uri:n}}:{name:e,kind:t,location:{uri:n,range:r}}}t(n,`create`),c(n,`create`),e.create=n})(Ve||={}),(function(e){function n(e,t,n,r,i,a){let o={name:e,detail:t,kind:n,range:r,selectionRange:i};return a!==void 0&&(o.children=a),o}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return t&&A.string(t.name)&&A.number(t.kind)&&S.is(t.range)&&S.is(t.selectionRange)&&(t.detail===void 0||A.string(t.detail))&&(t.deprecated===void 0||A.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}t(r,`is`),c(r,`is`),e.is=r})(He||={}),(function(e){e.Empty=``,e.QuickFix=`quickfix`,e.Refactor=`refactor`,e.RefactorExtract=`refactor.extract`,e.RefactorInline=`refactor.inline`,e.RefactorRewrite=`refactor.rewrite`,e.Source=`source`,e.SourceOrganizeImports=`source.organizeImports`,e.SourceFixAll=`source.fixAll`})(Ue||={}),(function(e){e.Invoked=1,e.Automatic=2})(We||={}),(function(e){function n(e,t,n){let r={diagnostics:e};return t!=null&&(r.only=t),n!=null&&(r.triggerKind=n),r}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return A.defined(t)&&A.typedArray(t.diagnostics,ce.is)&&(t.only===void 0||A.typedArray(t.only,A.string))&&(t.triggerKind===void 0||t.triggerKind===We.Invoked||t.triggerKind===We.Automatic)}t(r,`is`),c(r,`is`),e.is=r})(Ge||={}),(function(e){function n(e,t,n){let r={title:e},i=!0;return typeof t==`string`?(i=!1,r.kind=t):le.is(t)?r.command=t:r.edit=t,i&&n!==void 0&&(r.kind=n),r}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return t&&A.string(t.title)&&(t.diagnostics===void 0||A.typedArray(t.diagnostics,ce.is))&&(t.kind===void 0||A.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||le.is(t.command))&&(t.isPreferred===void 0||A.boolean(t.isPreferred))&&(t.edit===void 0||me.is(t.edit))}t(r,`is`),c(r,`is`),e.is=r})(Ke||={}),(function(e){function n(e,t){let n={range:e};return A.defined(t)&&(n.data=t),n}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return A.defined(t)&&S.is(t.range)&&(A.undefined(t.command)||le.is(t.command))}t(r,`is`),c(r,`is`),e.is=r})(qe||={}),(function(e){function n(e,t){return{tabSize:e,insertSpaces:t}}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return A.defined(t)&&A.uinteger(t.tabSize)&&A.boolean(t.insertSpaces)}t(r,`is`),c(r,`is`),e.is=r})(Je||={}),(function(e){function n(e,t,n){return{range:e,target:t,data:n}}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return A.defined(t)&&S.is(t.range)&&(A.undefined(t.target)||A.string(t.target))}t(r,`is`),c(r,`is`),e.is=r})(Ye||={}),(function(e){function n(e,t){return{range:e,parent:t}}t(n,`create`),c(n,`create`),e.create=n;function r(t){let n=t;return A.objectLiteral(n)&&S.is(n.range)&&(n.parent===void 0||e.is(n.parent))}t(r,`is`),c(r,`is`),e.is=r})(Xe||={}),(function(e){e.namespace=`namespace`,e.type=`type`,e.class=`class`,e.enum=`enum`,e.interface=`interface`,e.struct=`struct`,e.typeParameter=`typeParameter`,e.parameter=`parameter`,e.variable=`variable`,e.property=`property`,e.enumMember=`enumMember`,e.event=`event`,e.function=`function`,e.method=`method`,e.macro=`macro`,e.keyword=`keyword`,e.modifier=`modifier`,e.comment=`comment`,e.string=`string`,e.number=`number`,e.regexp=`regexp`,e.operator=`operator`,e.decorator=`decorator`})(Ze||={}),(function(e){e.declaration=`declaration`,e.definition=`definition`,e.readonly=`readonly`,e.static=`static`,e.deprecated=`deprecated`,e.abstract=`abstract`,e.async=`async`,e.modification=`modification`,e.documentation=`documentation`,e.defaultLibrary=`defaultLibrary`})(Qe||={}),(function(e){function n(e){let t=e;return A.objectLiteral(t)&&(t.resultId===void 0||typeof t.resultId==`string`)&&Array.isArray(t.data)&&(t.data.length===0||typeof t.data[0]==`number`)}t(n,`is`),c(n,`is`),e.is=n})($e||={}),(function(e){function n(e,t){return{range:e,text:t}}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return t!=null&&S.is(t.range)&&A.string(t.text)}t(r,`is`),c(r,`is`),e.is=r})(et||={}),(function(e){function n(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return t!=null&&S.is(t.range)&&A.boolean(t.caseSensitiveLookup)&&(A.string(t.variableName)||t.variableName===void 0)}t(r,`is`),c(r,`is`),e.is=r})(tt||={}),(function(e){function n(e,t){return{range:e,expression:t}}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return t!=null&&S.is(t.range)&&(A.string(t.expression)||t.expression===void 0)}t(r,`is`),c(r,`is`),e.is=r})(nt||={}),(function(e){function n(e,t){return{frameId:e,stoppedLocation:t}}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return A.defined(t)&&S.is(e.stoppedLocation)}t(r,`is`),c(r,`is`),e.is=r})(rt||={}),(function(e){e.Type=1,e.Parameter=2;function n(e){return e===1||e===2}t(n,`is`),c(n,`is`),e.is=n})(it||={}),(function(e){function n(e){return{value:e}}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return A.objectLiteral(t)&&(t.tooltip===void 0||A.string(t.tooltip)||Ce.is(t.tooltip))&&(t.location===void 0||C.is(t.location))&&(t.command===void 0||le.is(t.command))}t(r,`is`),c(r,`is`),e.is=r})(at||={}),(function(e){function n(e,t,n){let r={position:e,label:t};return n!==void 0&&(r.kind=n),r}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return A.objectLiteral(t)&&x.is(t.position)&&(A.string(t.label)||A.typedArray(t.label,at.is))&&(t.kind===void 0||it.is(t.kind))&&t.textEdits===void 0||A.typedArray(t.textEdits,ue.is)&&(t.tooltip===void 0||A.string(t.tooltip)||Ce.is(t.tooltip))&&(t.paddingLeft===void 0||A.boolean(t.paddingLeft))&&(t.paddingRight===void 0||A.boolean(t.paddingRight))}t(r,`is`),c(r,`is`),e.is=r})(ot||={}),(function(e){function n(e){return{kind:`snippet`,value:e}}t(n,`createSnippet`),c(n,`createSnippet`),e.createSnippet=n})(st||={}),(function(e){function n(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}t(n,`create`),c(n,`create`),e.create=n})(ct||={}),(function(e){function n(e){return{items:e}}t(n,`create`),c(n,`create`),e.create=n})(lt||={}),(function(e){e.Invoked=0,e.Automatic=1})(ut||={}),(function(e){function n(e,t){return{range:e,text:t}}t(n,`create`),c(n,`create`),e.create=n})(dt||={}),(function(e){function n(e,t){return{triggerKind:e,selectedCompletionInfo:t}}t(n,`create`),c(n,`create`),e.create=n})(ft||={}),(function(e){function n(e){let t=e;return A.objectLiteral(t)&&v.is(t.uri)&&A.string(t.name)}t(n,`is`),c(n,`is`),e.is=n})(pt||={}),mt=[` +`,`\r +`,`\r`],(function(e){function n(e,t,n,r){return new gt(e,t,n,r)}t(n,`create`),c(n,`create`),e.create=n;function r(e){let t=e;return!!(A.defined(t)&&A.string(t.uri)&&(A.undefined(t.languageId)||A.string(t.languageId))&&A.uinteger(t.lineCount)&&A.func(t.getText)&&A.func(t.positionAt)&&A.func(t.offsetAt))}t(r,`is`),c(r,`is`),e.is=r;function i(e,t){let n=e.getText(),r=a(t,(e,t)=>{let n=e.range.start.line-t.range.start.line;return n===0?e.range.start.character-t.range.start.character:n}),i=n.length;for(let t=r.length-1;t>=0;t--){let a=r[t],o=e.offsetAt(a.range.start),s=e.offsetAt(a.range.end);if(s<=i)n=n.substring(0,o)+a.newText+n.substring(s,n.length);else throw Error(`Overlapping edit`);i=o}return n}t(i,`applyEdits`),c(i,`applyEdits`),e.applyEdits=i;function a(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);a(r,t),a(i,t);let o=0,s=0,c=0;for(;o0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(r===0)return x.create(0,e);for(;ne?r=i:n=i+1}let i=n-1;return x.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1r(e))}t(l,`stringArray`),c(l,`stringArray`),e.stringArray=l}}),bt=u({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/events.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;var n=vt(),r;(function(e){let t={dispose(){}};e.None=function(){return t}})(r||(e.Event=r={}));var i=class{static{t(this,`CallbackList`)}static{c(this,`CallbackList`)}add(e,t=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:c(()=>this.remove(e,t),`dispose`)})}remove(e,t=null){if(!this._callbacks)return;let n=!1;for(let r=0,i=this._callbacks.length;r{this._callbacks||=new i,this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,n);let a={dispose:c(()=>{this._callbacks&&(this._callbacks.remove(t,n),a.dispose=e._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},`dispose`)};return Array.isArray(r)&&r.push(a),a},this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&=(this._callbacks.dispose(),void 0)}};e.Emitter=a,a._noop=function(){}}}),xt=u({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;var n=vt(),r=yt(),i=bt(),a;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:i.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:i.Event.None});function n(t){let n=t;return n&&(n===e.None||n===e.Cancelled||r.boolean(n.isCancellationRequested)&&!!n.onCancellationRequested)}t(n,`is`),c(n,`is`),e.is=n})(a||(e.CancellationToken=a={}));var o=Object.freeze(function(e,t){let r=(0,n.default)().timer.setTimeout(e.bind(t),0);return{dispose(){r.dispose()}}}),s=class{static{t(this,`MutableToken`)}static{c(this,`MutableToken`)}constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?o:(this._emitter||=new i.Emitter,this._emitter.event)}dispose(){this._emitter&&=(this._emitter.dispose(),void 0)}};e.CancellationTokenSource=class{static{t(this,`CancellationTokenSource3`)}static{c(this,`CancellationTokenSource`)}get token(){return this._token||=new s,this._token}cancel(){this._token?this._token.cancel():this._token=a.Cancelled}dispose(){this._token?this._token instanceof s&&this._token.dispose():this._token=a.None}}}}),St=u({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messages.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Message=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType=e.RequestType0=e.AbstractMessageSignature=e.ParameterStructures=e.ResponseError=e.ErrorCodes=void 0;var n=yt(),r;(function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3})(r||(e.ErrorCodes=r={})),e.ResponseError=class e extends Error{static{t(this,`_ResponseError`)}static{c(this,`ResponseError`)}constructor(t,i,a){super(i),this.code=n.number(t)?t:r.UnknownErrorCode,this.data=a,Object.setPrototypeOf(this,e.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};var i=class e{static{t(this,`_ParameterStructures`)}static{c(this,`ParameterStructures`)}constructor(e){this.kind=e}static is(t){return t===e.auto||t===e.byName||t===e.byPosition}toString(){return this.kind}};e.ParameterStructures=i,i.auto=new i(`auto`),i.byPosition=new i(`byPosition`),i.byName=new i(`byName`);var a=class{static{t(this,`AbstractMessageSignature`)}static{c(this,`AbstractMessageSignature`)}constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return i.auto}};e.AbstractMessageSignature=a,e.RequestType0=class extends a{static{t(this,`RequestType0`)}static{c(this,`RequestType0`)}constructor(e){super(e,0)}},e.RequestType=class extends a{static{t(this,`RequestType`)}static{c(this,`RequestType`)}constructor(e,t=i.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.RequestType1=class extends a{static{t(this,`RequestType1`)}static{c(this,`RequestType1`)}constructor(e,t=i.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.RequestType2=class extends a{static{t(this,`RequestType2`)}static{c(this,`RequestType2`)}constructor(e){super(e,2)}},e.RequestType3=class extends a{static{t(this,`RequestType3`)}static{c(this,`RequestType3`)}constructor(e){super(e,3)}},e.RequestType4=class extends a{static{t(this,`RequestType4`)}static{c(this,`RequestType4`)}constructor(e){super(e,4)}},e.RequestType5=class extends a{static{t(this,`RequestType5`)}static{c(this,`RequestType5`)}constructor(e){super(e,5)}},e.RequestType6=class extends a{static{t(this,`RequestType6`)}static{c(this,`RequestType6`)}constructor(e){super(e,6)}},e.RequestType7=class extends a{static{t(this,`RequestType7`)}static{c(this,`RequestType7`)}constructor(e){super(e,7)}},e.RequestType8=class extends a{static{t(this,`RequestType8`)}static{c(this,`RequestType8`)}constructor(e){super(e,8)}},e.RequestType9=class extends a{static{t(this,`RequestType9`)}static{c(this,`RequestType9`)}constructor(e){super(e,9)}},e.NotificationType=class extends a{static{t(this,`NotificationType`)}static{c(this,`NotificationType`)}constructor(e,t=i.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.NotificationType0=class extends a{static{t(this,`NotificationType0`)}static{c(this,`NotificationType0`)}constructor(e){super(e,0)}},e.NotificationType1=class extends a{static{t(this,`NotificationType1`)}static{c(this,`NotificationType1`)}constructor(e,t=i.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.NotificationType2=class extends a{static{t(this,`NotificationType2`)}static{c(this,`NotificationType2`)}constructor(e){super(e,2)}},e.NotificationType3=class extends a{static{t(this,`NotificationType3`)}static{c(this,`NotificationType3`)}constructor(e){super(e,3)}},e.NotificationType4=class extends a{static{t(this,`NotificationType4`)}static{c(this,`NotificationType4`)}constructor(e){super(e,4)}},e.NotificationType5=class extends a{static{t(this,`NotificationType5`)}static{c(this,`NotificationType5`)}constructor(e){super(e,5)}},e.NotificationType6=class extends a{static{t(this,`NotificationType6`)}static{c(this,`NotificationType6`)}constructor(e){super(e,6)}},e.NotificationType7=class extends a{static{t(this,`NotificationType7`)}static{c(this,`NotificationType7`)}constructor(e){super(e,7)}},e.NotificationType8=class extends a{static{t(this,`NotificationType8`)}static{c(this,`NotificationType8`)}constructor(e){super(e,8)}},e.NotificationType9=class extends a{static{t(this,`NotificationType9`)}static{c(this,`NotificationType9`)}constructor(e){super(e,9)}};var o;(function(e){function r(e){let t=e;return t&&n.string(t.method)&&(n.string(t.id)||n.number(t.id))}t(r,`isRequest`),c(r,`isRequest`),e.isRequest=r;function i(e){let t=e;return t&&n.string(t.method)&&e.id===void 0}t(i,`isNotification`),c(i,`isNotification`),e.isNotification=i;function a(e){let t=e;return t&&(t.result!==void 0||!!t.error)&&(n.string(t.id)||n.number(t.id)||t.id===null)}t(a,`isResponse`),c(a,`isResponse`),e.isResponse=a})(o||(e.Message=o={}))}}),Ct=u({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(e){var n;Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.Touch=void 0;var r;(function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last})(r||(e.Touch=r={}));var i=class{static{t(this,`LinkedMap`)}static{c(this,`LinkedMap`)}constructor(){this[n]=`LinkedMap`,this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=r.None){let n=this._map.get(e);if(n)return t!==r.None&&this.touch(n,t),n.value}set(e,t,n=r.None){let i=this._map.get(e);if(i)i.value=t,n!==r.None&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case r.None:this.addItemLast(i);break;case r.First:this.addItemFirst(i);break;case r.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error(`Invalid list`);let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let n=this._state,r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==n)throw Error(`LinkedMap got modified during iteration.`);r=r.next}}keys(){let e=this._state,t=this._head,n={[Symbol.iterator]:()=>n,next:c(()=>{if(this._state!==e)throw Error(`LinkedMap got modified during iteration.`);if(t){let e={value:t.key,done:!1};return t=t.next,e}else return{value:void 0,done:!0}},`next`)};return n}values(){let e=this._state,t=this._head,n={[Symbol.iterator]:()=>n,next:c(()=>{if(this._state!==e)throw Error(`LinkedMap got modified during iteration.`);if(t){let e={value:t.value,done:!1};return t=t.next,e}else return{value:void 0,done:!0}},`next`)};return n}entries(){let e=this._state,t=this._head,n={[Symbol.iterator]:()=>n,next:c(()=>{if(this._state!==e)throw Error(`LinkedMap got modified during iteration.`);if(t){let e={value:[t.key,t.value],done:!1};return t=t.next,e}else return{value:void 0,done:!0}},`next`)};return n}[(n=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw Error(`Invalid list`);this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw Error(`Invalid list`);this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw Error(`Invalid list`);e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw Error(`Invalid list`);e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,n=e.previous;if(!t||!n)throw Error(`Invalid list`);t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw Error(`Invalid list`);if(!(t!==r.First&&t!==r.Last)){if(t===r.First){if(e===this._head)return;let t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===r.Last){if(e===this._tail)return;let t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(let[t,n]of e)this.set(t,n)}};e.LinkedMap=i,e.LRUCache=class extends i{static{t(this,`LRUCache`)}static{c(this,`LRUCache`)}constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=r.AsNew){return super.get(e,t)}peek(e){return super.get(e,r.None)}set(e,t){return super.set(e,t,r.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}}}),wt=u({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/disposable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Disposable=void 0;var n;(function(e){function n(e){return{dispose:e}}t(n,`create`),c(n,`create`),e.create=n})(n||(e.Disposable=n={}))}}),Tt=u({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=void 0;var n=xt(),r;(function(e){e.Continue=0,e.Cancelled=1})(r||={}),e.SharedArraySenderStrategy=class{static{t(this,`SharedArraySenderStrategy`)}static{c(this,`SharedArraySenderStrategy`)}constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;let t=new SharedArrayBuffer(4),n=new Int32Array(t,0,1);n[0]=r.Continue,this.buffers.set(e.id,t),e.$cancellationData=t}async sendCancellation(e,t){let n=this.buffers.get(t);if(n===void 0)return;let i=new Int32Array(n,0,1);Atomics.store(i,0,r.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};var i=class{static{t(this,`SharedArrayBufferCancellationToken`)}static{c(this,`SharedArrayBufferCancellationToken`)}constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw Error(`Cancellation over SharedArrayBuffer doesn't support cancellation events`)}},a=class{static{t(this,`SharedArrayBufferCancellationTokenSource`)}static{c(this,`SharedArrayBufferCancellationTokenSource`)}constructor(e){this.token=new i(e)}cancel(){}dispose(){}};e.SharedArrayReceiverStrategy=class{static{t(this,`SharedArrayReceiverStrategy`)}static{c(this,`SharedArrayReceiverStrategy`)}constructor(){this.kind=`request`}createCancellationTokenSource(e){let t=e.$cancellationData;return t===void 0?new n.CancellationTokenSource:new a(t)}}}}),Et=u({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Semaphore=void 0;var n=vt();e.Semaphore=class{static{t(this,`Semaphore`)}static{c(this,`Semaphore`)}constructor(e=1){if(e<=0)throw Error(`Capacity must be greater than 0`);this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((t,n)=>{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,n.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw Error(`To many thunks active`);try{let t=e.thunk();t instanceof Promise?t.then(t=>{this._active--,e.resolve(t),this.runNext()},t=>{this._active--,e.reject(t),this.runNext()}):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}}}}),Dt=u({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=void 0;var n=vt(),r=yt(),i=bt(),a=Et(),o;(function(e){function n(e){let t=e;return t&&r.func(t.listen)&&r.func(t.dispose)&&r.func(t.onError)&&r.func(t.onClose)&&r.func(t.onPartialMessage)}t(n,`is`),c(n,`is`),e.is=n})(o||(e.MessageReader=o={}));var s=class{static{t(this,`AbstractMessageReader`)}static{c(this,`AbstractMessageReader`)}constructor(){this.errorEmitter=new i.Emitter,this.closeEmitter=new i.Emitter,this.partialMessageEmitter=new i.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:Error(`Reader received error. Reason: ${r.string(e.message)?e.message:`unknown`}`)}};e.AbstractMessageReader=s;var l;(function(e){function r(e){let t,r,i=new Map,a,o=new Map;if(e===void 0||typeof e==`string`)t=e??`utf-8`;else{if(t=e.charset??`utf-8`,e.contentDecoder!==void 0&&(r=e.contentDecoder,i.set(r.name,r)),e.contentDecoders!==void 0)for(let t of e.contentDecoders)i.set(t.name,t);if(e.contentTypeDecoder!==void 0&&(a=e.contentTypeDecoder,o.set(a.name,a)),e.contentTypeDecoders!==void 0)for(let t of e.contentTypeDecoders)o.set(t.name,t)}return a===void 0&&(a=(0,n.default)().applicationJson.decoder,o.set(a.name,a)),{charset:t,contentDecoder:r,contentDecoders:i,contentTypeDecoder:a,contentTypeDecoders:o}}t(r,`fromOptions`),c(r,`fromOptions`),e.fromOptions=r})(l||={}),e.ReadableStreamMessageReader=class extends s{static{t(this,`ReadableStreamMessageReader`)}static{c(this,`ReadableStreamMessageReader`)}constructor(e,t){super(),this.readable=e,this.options=l.fromOptions(t),this.buffer=(0,n.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new a.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let t=this.readable.onData(e=>{this.onData(e)});return this.readable.onError(e=>this.fireError(e)),this.readable.onClose(()=>this.fireClose()),t}onData(e){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let e=this.buffer.tryReadHeaders(!0);if(!e)return;let t=e.get(`content-length`);if(!t){this.fireError(Error(`Header must provide a Content-Length property. +${JSON.stringify(Object.fromEntries(e))}`));return}let n=parseInt(t);if(isNaN(n)){this.fireError(Error(`Content-Length value must be a number. Got ${t}`));return}this.nextMessageLength=n}let e=this.buffer.tryReadBody(this.nextMessageLength);if(e===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let t=this.options.contentDecoder===void 0?e:await this.options.contentDecoder.decode(e),n=await this.options.contentTypeDecoder.decode(t,this.options);this.callback(n)}).catch(e=>{this.fireError(e)})}}catch(e){this.fireError(e)}}clearPartialMessageTimer(){this.partialMessageTimer&&=(this.partialMessageTimer.dispose(),void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,n.default)().timer.setTimeout((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}}}),Ot=u({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=void 0;var n=vt(),r=yt(),i=Et(),a=bt(),o=`Content-Length: `,s=`\r +`,l;(function(e){function n(e){let t=e;return t&&r.func(t.dispose)&&r.func(t.onClose)&&r.func(t.onError)&&r.func(t.write)}t(n,`is`),c(n,`is`),e.is=n})(l||(e.MessageWriter=l={}));var u=class{static{t(this,`AbstractMessageWriter`)}static{c(this,`AbstractMessageWriter`)}constructor(){this.errorEmitter=new a.Emitter,this.closeEmitter=new a.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,n){this.errorEmitter.fire([this.asError(e),t,n])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:Error(`Writer received error. Reason: ${r.string(e.message)?e.message:`unknown`}`)}};e.AbstractMessageWriter=u;var d;(function(e){function r(e){return e===void 0||typeof e==`string`?{charset:e??`utf-8`,contentTypeEncoder:(0,n.default)().applicationJson.encoder}:{charset:e.charset??`utf-8`,contentEncoder:e.contentEncoder,contentTypeEncoder:e.contentTypeEncoder??(0,n.default)().applicationJson.encoder}}t(r,`fromOptions`),c(r,`fromOptions`),e.fromOptions=r})(d||={}),e.WriteableStreamMessageWriter=class extends u{static{t(this,`WriteableStreamMessageWriter`)}static{c(this,`WriteableStreamMessageWriter`)}constructor(e,t){super(),this.writable=e,this.options=d.fromOptions(t),this.errorCount=0,this.writeSemaphore=new i.Semaphore(1),this.writable.onError(e=>this.fireError(e)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(e=>this.options.contentEncoder===void 0?e:this.options.contentEncoder.encode(e)).then(t=>{let n=[];return n.push(o,t.byteLength.toString(),s),n.push(s),this.doWrite(e,n,t)},e=>{throw this.fireError(e),e}))}async doWrite(e,t,n){try{return await this.writable.write(t.join(``),`ascii`),this.writable.write(n)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}}}),kt=u({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMessageBuffer=void 0;var n=13,r=10,i=`\r +`;e.AbstractMessageBuffer=class{static{t(this,`AbstractMessageBuffer`)}static{c(this,`AbstractMessageBuffer`)}constructor(e=`utf-8`){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let t=typeof e==`string`?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(e=!1){if(this._chunks.length===0)return;let t=0,a=0,o=0,s=0;row:for(;athis._totalLength)throw Error(`Cannot read so many bytes!`);if(this._chunks[0].byteLength===e){let t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){let t=this._chunks[0],n=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,n}let t=this.allocNative(e),n=0;for(;e>0;){let r=this._chunks[0];if(r.byteLength>e){let i=r.slice(0,e);t.set(i,n),n+=e,this._chunks[0]=r.slice(e),this._totalLength-=e,e-=e}else t.set(r,n),n+=r.byteLength,this._chunks.shift(),this._totalLength-=r.byteLength,e-=r.byteLength}return t}}}}),At=u({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/connection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createMessageConnection=e.ConnectionOptions=e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.RequestCancellationReceiverStrategy=e.IdCancellationReceiverStrategy=e.ConnectionStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=e.NullLogger=e.ProgressType=e.ProgressToken=void 0;var n=vt(),r=yt(),i=St(),a=Ct(),o=bt(),s=xt(),l;(function(e){e.type=new i.NotificationType(`$/cancelRequest`)})(l||={});var u;(function(e){function n(e){return typeof e==`string`||typeof e==`number`}t(n,`is`),c(n,`is`),e.is=n})(u||(e.ProgressToken=u={}));var d;(function(e){e.type=new i.NotificationType(`$/progress`)})(d||={}),e.ProgressType=class{static{t(this,`ProgressType`)}static{c(this,`ProgressType`)}constructor(){}};var f;(function(e){function n(e){return r.func(e)}t(n,`is`),c(n,`is`),e.is=n})(f||={}),e.NullLogger=Object.freeze({error:c(()=>{},`error`),warn:c(()=>{},`warn`),info:c(()=>{},`info`),log:c(()=>{},`log`)});var p;(function(e){e[e.Off=0]=`Off`,e[e.Messages=1]=`Messages`,e[e.Compact=2]=`Compact`,e[e.Verbose=3]=`Verbose`})(p||(e.Trace=p={}));var m;(function(e){e.Off=`off`,e.Messages=`messages`,e.Compact=`compact`,e.Verbose=`verbose`})(m||(e.TraceValues=m={})),(function(e){function n(t){if(!r.string(t))return e.Off;switch(t=t.toLowerCase(),t){case`off`:return e.Off;case`messages`:return e.Messages;case`compact`:return e.Compact;case`verbose`:return e.Verbose;default:return e.Off}}t(n,`fromString`),c(n,`fromString`),e.fromString=n;function i(t){switch(t){case e.Off:return`off`;case e.Messages:return`messages`;case e.Compact:return`compact`;case e.Verbose:return`verbose`;default:return`off`}}t(i,`toString4`),c(i,`toString`),e.toString=i})(p||(e.Trace=p={}));var h;(function(e){e.Text=`text`,e.JSON=`json`})(h||(e.TraceFormat=h={})),(function(e){function n(t){return r.string(t)?(t=t.toLowerCase(),t===`json`?e.JSON:e.Text):e.Text}t(n,`fromString`),c(n,`fromString`),e.fromString=n})(h||(e.TraceFormat=h={}));var g;(function(e){e.type=new i.NotificationType(`$/setTrace`)})(g||(e.SetTraceNotification=g={}));var _;(function(e){e.type=new i.NotificationType(`$/logTrace`)})(_||(e.LogTraceNotification=_={}));var v;(function(e){e[e.Closed=1]=`Closed`,e[e.Disposed=2]=`Disposed`,e[e.AlreadyListening=3]=`AlreadyListening`})(v||(e.ConnectionErrors=v={}));var y=class e extends Error{static{t(this,`_ConnectionError`)}static{c(this,`ConnectionError`)}constructor(t,n){super(n),this.code=t,Object.setPrototypeOf(this,e.prototype)}};e.ConnectionError=y;var b;(function(e){function n(e){let t=e;return t&&r.func(t.cancelUndispatched)}t(n,`is`),c(n,`is`),e.is=n})(b||(e.ConnectionStrategy=b={}));var x;(function(e){function n(e){let t=e;return t&&(t.kind===void 0||t.kind===`id`)&&r.func(t.createCancellationTokenSource)&&(t.dispose===void 0||r.func(t.dispose))}t(n,`is`),c(n,`is`),e.is=n})(x||(e.IdCancellationReceiverStrategy=x={}));var S;(function(e){function n(e){let t=e;return t&&t.kind===`request`&&r.func(t.createCancellationTokenSource)&&(t.dispose===void 0||r.func(t.dispose))}t(n,`is`),c(n,`is`),e.is=n})(S||(e.RequestCancellationReceiverStrategy=S={}));var C;(function(e){e.Message=Object.freeze({createCancellationTokenSource(e){return new s.CancellationTokenSource}});function n(e){return x.is(e)||S.is(e)}t(n,`is`),c(n,`is`),e.is=n})(C||(e.CancellationReceiverStrategy=C={}));var w;(function(e){e.Message=Object.freeze({sendCancellation(e,t){return e.sendNotification(l.type,{id:t})},cleanup(e){}});function n(e){let t=e;return t&&r.func(t.sendCancellation)&&r.func(t.cleanup)}t(n,`is`),c(n,`is`),e.is=n})(w||(e.CancellationSenderStrategy=w={}));var ee;(function(e){e.Message=Object.freeze({receiver:C.Message,sender:w.Message});function n(e){let t=e;return t&&C.is(t.receiver)&&w.is(t.sender)}t(n,`is`),c(n,`is`),e.is=n})(ee||(e.CancellationStrategy=ee={}));var te;(function(e){function n(e){let t=e;return t&&r.func(t.handleMessage)}t(n,`is`),c(n,`is`),e.is=n})(te||(e.MessageStrategy=te={}));var T;(function(e){function n(e){let t=e;return t&&(ee.is(t.cancellationStrategy)||b.is(t.connectionStrategy)||te.is(t.messageStrategy))}t(n,`is`),c(n,`is`),e.is=n})(T||(e.ConnectionOptions=T={}));var ne;(function(e){e[e.New=1]=`New`,e[e.Listening=2]=`Listening`,e[e.Closed=3]=`Closed`,e[e.Disposed=4]=`Disposed`})(ne||={});function re(m,b,S,C){let w=S===void 0?e.NullLogger:S,T=0,re=0,ie=0,ae,oe=new Map,se,ce=new Map,le=new Map,ue,de=new a.LinkedMap,E=new Map,fe=new Set,D=new Map,O=p.Off,pe=h.Text,k,me=ne.New,he=new o.Emitter,ge=new o.Emitter,_e=new o.Emitter,ve=new o.Emitter,ye=new o.Emitter,be=C&&C.cancellationStrategy?C.cancellationStrategy:ee.Message;function xe(e){if(e===null)throw Error(`Can't send requests with id null since the response can't be correlated.`);return`req-`+e.toString()}t(xe,`createRequestQueueKey`),c(xe,`createRequestQueueKey`);function Se(e){return e===null?`res-unknown-`+(++ie).toString():`res-`+e.toString()}t(Se,`createResponseQueueKey`),c(Se,`createResponseQueueKey`);function Ce(){return`not-`+(++re).toString()}t(Ce,`createNotificationQueueKey`),c(Ce,`createNotificationQueueKey`);function we(e,t){i.Message.isRequest(t)?e.set(xe(t.id),t):i.Message.isResponse(t)?e.set(Se(t.id),t):e.set(Ce(),t)}t(we,`addMessageToQueue`),c(we,`addMessageToQueue`);function Te(e){}t(Te,`cancelUndispatched`),c(Te,`cancelUndispatched`);function Ee(){return me===ne.Listening}t(Ee,`isListening`),c(Ee,`isListening`);function De(){return me===ne.Closed}t(De,`isClosed`),c(De,`isClosed`);function Oe(){return me===ne.Disposed}t(Oe,`isDisposed`),c(Oe,`isDisposed`);function ke(){(me===ne.New||me===ne.Listening)&&(me=ne.Closed,ge.fire(void 0))}t(ke,`closeHandler`),c(ke,`closeHandler`);function Ae(e){he.fire([e,void 0,void 0])}t(Ae,`readErrorHandler`),c(Ae,`readErrorHandler`);function je(e){he.fire(e)}t(je,`writeErrorHandler`),c(je,`writeErrorHandler`),m.onClose(ke),m.onError(Ae),b.onClose(ke),b.onError(je);function Me(){ue||de.size===0||(ue=(0,n.default)().timer.setImmediate(()=>{ue=void 0,Pe()}))}t(Me,`triggerMessageQueue`),c(Me,`triggerMessageQueue`);function Ne(e){i.Message.isRequest(e)?Ie(e):i.Message.isNotification(e)?Re(e):i.Message.isResponse(e)?Le(e):ze(e)}t(Ne,`handleMessage`),c(Ne,`handleMessage`);function Pe(){if(de.size===0)return;let e=de.shift();try{let t=C?.messageStrategy;te.is(t)?t.handleMessage(e,Ne):Ne(e)}finally{Me()}}t(Pe,`processMessageQueue`),c(Pe,`processMessageQueue`);let Fe=c(e=>{try{if(i.Message.isNotification(e)&&e.method===l.type.method){let t=e.params.id,n=xe(t),r=de.get(n);if(i.Message.isRequest(r)){let i=C?.connectionStrategy,a=i&&i.cancelUndispatched?i.cancelUndispatched(r,Te):void 0;if(a&&(a.error!==void 0||a.result!==void 0)){de.delete(n),D.delete(t),a.id=r.id,Ue(a,e.method,Date.now()),b.write(a).catch(()=>w.error(`Sending response for canceled message failed.`));return}}let a=D.get(t);if(a!==void 0){a.cancel(),Ge(e);return}else fe.add(t)}we(de,e)}finally{Me()}},`callback`);function Ie(e){if(Oe())return;function n(t,n,r){let a={jsonrpc:`2.0`,id:e.id};t instanceof i.ResponseError?a.error=t.toJson():a.result=t===void 0?null:t,Ue(a,n,r),b.write(a).catch(()=>w.error(`Sending response failed.`))}t(n,`reply`),c(n,`reply`);function a(t,n,r){let i={jsonrpc:`2.0`,id:e.id,error:t.toJson()};Ue(i,n,r),b.write(i).catch(()=>w.error(`Sending response failed.`))}t(a,`replyError`),c(a,`replyError`);function o(t,n,r){t===void 0&&(t=null);let i={jsonrpc:`2.0`,id:e.id,result:t};Ue(i,n,r),b.write(i).catch(()=>w.error(`Sending response failed.`))}t(o,`replySuccess`),c(o,`replySuccess`),We(e);let s=oe.get(e.method),l,u;s&&(l=s.type,u=s.handler);let d=Date.now();if(u||ae){let t=e.id??String(Date.now()),s=x.is(be.receiver)?be.receiver.createCancellationTokenSource(t):be.receiver.createCancellationTokenSource(e);e.id!==null&&fe.has(e.id)&&s.cancel(),e.id!==null&&D.set(t,s);try{let c;if(u)if(e.params===void 0){if(l!==void 0&&l.numberOfParams!==0){a(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${e.method} defines ${l.numberOfParams} params but received none.`),e.method,d);return}c=u(s.token)}else if(Array.isArray(e.params)){if(l!==void 0&&l.parameterStructures===i.ParameterStructures.byName){a(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,d);return}c=u(...e.params,s.token)}else{if(l!==void 0&&l.parameterStructures===i.ParameterStructures.byPosition){a(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,d);return}c=u(e.params,s.token)}else ae&&(c=ae(e.method,e.params,s.token));let f=c;c?f.then?f.then(r=>{D.delete(t),n(r,e.method,d)},n=>{D.delete(t),n instanceof i.ResponseError?a(n,e.method,d):n&&r.string(n.message)?a(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${n.message}`),e.method,d):a(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,d)}):(D.delete(t),n(c,e.method,d)):(D.delete(t),o(c,e.method,d))}catch(o){D.delete(t),o instanceof i.ResponseError?n(o,e.method,d):o&&r.string(o.message)?a(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${o.message}`),e.method,d):a(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,d)}}else a(new i.ResponseError(i.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,d)}t(Ie,`handleRequest`),c(Ie,`handleRequest`);function Le(e){if(!Oe())if(e.id===null)e.error?w.error(`Received response message without id: Error is: +${JSON.stringify(e.error,void 0,4)}`):w.error(`Received response message without id. No further error information provided.`);else{let t=e.id,n=E.get(t);if(Ke(e,n),n!==void 0){E.delete(t);try{if(e.error){let t=e.error;n.reject(new i.ResponseError(t.code,t.message,t.data))}else if(e.result!==void 0)n.resolve(e.result);else throw Error(`Should never happen.`)}catch(e){e.message?w.error(`Response handler '${n.method}' failed with message: ${e.message}`):w.error(`Response handler '${n.method}' failed unexpectedly.`)}}}}t(Le,`handleResponse`),c(Le,`handleResponse`);function Re(e){if(Oe())return;let t,n;if(e.method===l.type.method){let t=e.params.id;fe.delete(t),Ge(e);return}else{let r=ce.get(e.method);r&&(n=r.handler,t=r.type)}if(n||se)try{if(Ge(e),n)if(e.params===void 0)t!==void 0&&t.numberOfParams!==0&&t.parameterStructures!==i.ParameterStructures.byName&&w.error(`Notification ${e.method} defines ${t.numberOfParams} params but received none.`),n();else if(Array.isArray(e.params)){let r=e.params;e.method===d.type.method&&r.length===2&&u.is(r[0])?n({token:r[0],value:r[1]}):(t!==void 0&&(t.parameterStructures===i.ParameterStructures.byName&&w.error(`Notification ${e.method} defines parameters by name but received parameters by position`),t.numberOfParams!==e.params.length&&w.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${r.length} arguments`)),n(...r))}else t!==void 0&&t.parameterStructures===i.ParameterStructures.byPosition&&w.error(`Notification ${e.method} defines parameters by position but received parameters by name`),n(e.params);else se&&se(e.method,e.params)}catch(t){t.message?w.error(`Notification handler '${e.method}' failed with message: ${t.message}`):w.error(`Notification handler '${e.method}' failed unexpectedly.`)}else _e.fire(e)}t(Re,`handleNotification`),c(Re,`handleNotification`);function ze(e){if(!e){w.error(`Received empty message.`);return}w.error(`Received message which is neither a response nor a notification message: +${JSON.stringify(e,null,4)}`);let t=e;if(r.string(t.id)||r.number(t.id)){let e=t.id,n=E.get(e);n&&n.reject(Error(`The received response has neither a result nor an error property.`))}}t(ze,`handleInvalidMessage`),c(ze,`handleInvalidMessage`);function Be(e){if(e!=null)switch(O){case p.Verbose:return JSON.stringify(e,null,4);case p.Compact:return JSON.stringify(e);default:return}}t(Be,`stringifyTrace`),c(Be,`stringifyTrace`);function Ve(e){if(!(O===p.Off||!k))if(pe===h.Text){let t;(O===p.Verbose||O===p.Compact)&&e.params&&(t=`Params: ${Be(e.params)} + +`),k.log(`Sending request '${e.method} - (${e.id})'.`,t)}else qe(`send-request`,e)}t(Ve,`traceSendingRequest`),c(Ve,`traceSendingRequest`);function He(e){if(!(O===p.Off||!k))if(pe===h.Text){let t;(O===p.Verbose||O===p.Compact)&&(t=e.params?`Params: ${Be(e.params)} + +`:`No parameters provided. + +`),k.log(`Sending notification '${e.method}'.`,t)}else qe(`send-notification`,e)}t(He,`traceSendingNotification`),c(He,`traceSendingNotification`);function Ue(e,t,n){if(!(O===p.Off||!k))if(pe===h.Text){let r;(O===p.Verbose||O===p.Compact)&&(e.error&&e.error.data?r=`Error data: ${Be(e.error.data)} + +`:e.result?r=`Result: ${Be(e.result)} + +`:e.error===void 0&&(r=`No result returned. + +`)),k.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-n}ms`,r)}else qe(`send-response`,e)}t(Ue,`traceSendingResponse`),c(Ue,`traceSendingResponse`);function We(e){if(!(O===p.Off||!k))if(pe===h.Text){let t;(O===p.Verbose||O===p.Compact)&&e.params&&(t=`Params: ${Be(e.params)} + +`),k.log(`Received request '${e.method} - (${e.id})'.`,t)}else qe(`receive-request`,e)}t(We,`traceReceivedRequest`),c(We,`traceReceivedRequest`);function Ge(e){if(!(O===p.Off||!k||e.method===_.type.method))if(pe===h.Text){let t;(O===p.Verbose||O===p.Compact)&&(t=e.params?`Params: ${Be(e.params)} + +`:`No parameters provided. + +`),k.log(`Received notification '${e.method}'.`,t)}else qe(`receive-notification`,e)}t(Ge,`traceReceivedNotification`),c(Ge,`traceReceivedNotification`);function Ke(e,t){if(!(O===p.Off||!k))if(pe===h.Text){let n;if((O===p.Verbose||O===p.Compact)&&(e.error&&e.error.data?n=`Error data: ${Be(e.error.data)} + +`:e.result?n=`Result: ${Be(e.result)} + +`:e.error===void 0&&(n=`No result returned. + +`)),t){let r=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:``;k.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${r}`,n)}else k.log(`Received response ${e.id} without active response promise.`,n)}else qe(`receive-response`,e)}t(Ke,`traceReceivedResponse`),c(Ke,`traceReceivedResponse`);function qe(e,t){if(!k||O===p.Off)return;let n={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};k.log(n)}t(qe,`logLSPMessage`),c(qe,`logLSPMessage`);function Je(){if(De())throw new y(v.Closed,`Connection is closed.`);if(Oe())throw new y(v.Disposed,`Connection is disposed.`)}t(Je,`throwIfClosedOrDisposed`),c(Je,`throwIfClosedOrDisposed`);function Ye(){if(Ee())throw new y(v.AlreadyListening,`Connection is already listening`)}t(Ye,`throwIfListening`),c(Ye,`throwIfListening`);function Xe(){if(!Ee())throw Error(`Call listen() first.`)}t(Xe,`throwIfNotListening`),c(Xe,`throwIfNotListening`);function Ze(e){return e===void 0?null:e}t(Ze,`undefinedToNull`),c(Ze,`undefinedToNull`);function Qe(e){if(e!==null)return e}t(Qe,`nullToUndefined`),c(Qe,`nullToUndefined`);function $e(e){return e!=null&&!Array.isArray(e)&&typeof e==`object`}t($e,`isNamedParam`),c($e,`isNamedParam`);function et(e,t){switch(e){case i.ParameterStructures.auto:return $e(t)?Qe(t):[Ze(t)];case i.ParameterStructures.byName:if(!$e(t))throw Error(`Received parameters by name but param is not an object literal.`);return Qe(t);case i.ParameterStructures.byPosition:return[Ze(t)];default:throw Error(`Unknown parameter structure ${e.toString()}`)}}t(et,`computeSingleParam`),c(et,`computeSingleParam`);function tt(e,t){let n,r=e.numberOfParams;switch(r){case 0:n=void 0;break;case 1:n=et(e.parameterStructures,t[0]);break;default:n=[];for(let e=0;e{Je();let n,a;if(r.string(e)){n=e;let r=t[0],o=0,s=i.ParameterStructures.auto;i.ParameterStructures.is(r)&&(o=1,s=r);let c=t.length,l=c-o;switch(l){case 0:a=void 0;break;case 1:a=et(s,t[o]);break;default:if(s===i.ParameterStructures.byName)throw Error(`Received ${l} parameters for 'by Name' notification parameter structure.`);a=t.slice(o,c).map(e=>Ze(e));break}}else{let r=t;n=e.method,a=tt(e,r)}let o={jsonrpc:`2.0`,method:n,params:a};return He(o),b.write(o).catch(e=>{throw w.error(`Sending notification failed.`),e})},`sendNotification`),onNotification:c((e,t)=>{Je();let n;return r.func(e)?se=e:t&&(r.string(e)?(n=e,ce.set(e,{type:void 0,handler:t})):(n=e.method,ce.set(e.method,{type:e,handler:t}))),{dispose:c(()=>{n===void 0?se=void 0:ce.delete(n)},`dispose`)}},`onNotification`),onProgress:c((e,t,n)=>{if(le.has(t))throw Error(`Progress handler for token ${t} already registered`);return le.set(t,n),{dispose:c(()=>{le.delete(t)},`dispose`)}},`onProgress`),sendProgress:c((e,t,n)=>nt.sendNotification(d.type,{token:t,value:n}),`sendProgress`),onUnhandledProgress:ve.event,sendRequest:c((e,...t)=>{Je(),Xe();let n,a,o;if(r.string(e)){n=e;let r=t[0],c=t[t.length-1],l=0,u=i.ParameterStructures.auto;i.ParameterStructures.is(r)&&(l=1,u=r);let d=t.length;s.CancellationToken.is(c)&&(--d,o=c);let f=d-l;switch(f){case 0:a=void 0;break;case 1:a=et(u,t[l]);break;default:if(u===i.ParameterStructures.byName)throw Error(`Received ${f} parameters for 'by Name' request parameter structure.`);a=t.slice(l,d).map(e=>Ze(e));break}}else{let r=t;n=e.method,a=tt(e,r);let i=e.numberOfParams;o=s.CancellationToken.is(r[i])?r[i]:void 0}let l=T++,u;o&&(u=o.onCancellationRequested(()=>{let e=be.sender.sendCancellation(nt,l);return e===void 0?(w.log(`Received no promise from cancellation strategy when cancelling id ${l}`),Promise.resolve()):e.catch(()=>{w.log(`Sending cancellation messages for id ${l} failed`)})}));let d={jsonrpc:`2.0`,id:l,method:n,params:a};return Ve(d),typeof be.sender.enableCancellation==`function`&&be.sender.enableCancellation(d),new Promise(async(e,t)=>{let r=c(t=>{e(t),be.sender.cleanup(l),u?.dispose()},`resolveWithCleanup`),a=c(e=>{t(e),be.sender.cleanup(l),u?.dispose()},`rejectWithCleanup`),o={method:n,timerStart:Date.now(),resolve:r,reject:a};try{await b.write(d),E.set(l,o)}catch(e){throw w.error(`Sending request failed.`),o.reject(new i.ResponseError(i.ErrorCodes.MessageWriteError,e.message?e.message:`Unknown reason`)),e}})},`sendRequest`),onRequest:c((e,t)=>{Je();let n=null;return f.is(e)?(n=void 0,ae=e):r.string(e)?(n=null,t!==void 0&&(n=e,oe.set(e,{handler:t,type:void 0}))):t!==void 0&&(n=e.method,oe.set(e.method,{type:e,handler:t})),{dispose:c(()=>{n!==null&&(n===void 0?ae=void 0:oe.delete(n))},`dispose`)}},`onRequest`),hasPendingResponse:c(()=>E.size>0,`hasPendingResponse`),trace:c(async(e,t,n)=>{let i=!1,a=h.Text;n!==void 0&&(r.boolean(n)?i=n:(i=n.sendNotification||!1,a=n.traceFormat||h.Text)),O=e,pe=a,k=O===p.Off?void 0:t,i&&!De()&&!Oe()&&await nt.sendNotification(g.type,{value:p.toString(e)})},`trace`),onError:he.event,onClose:ge.event,onUnhandledNotification:_e.event,onDispose:ye.event,end:c(()=>{b.end()},`end`),dispose:c(()=>{if(Oe())return;me=ne.Disposed,ye.fire(void 0);let e=new i.ResponseError(i.ErrorCodes.PendingResponseRejected,`Pending response rejected since connection got disposed`);for(let t of E.values())t.reject(e);E=new Map,D=new Map,fe=new Set,de=new a.LinkedMap,r.func(b.dispose)&&b.dispose(),r.func(m.dispose)&&m.dispose()},`dispose`),listen:c(()=>{Je(),Ye(),me=ne.Listening,m.listen(Fe)},`listen`),inspect:c(()=>{(0,n.default)().console.log(`inspect`)},`inspect`)};return nt.onNotification(_.type,e=>{if(O===p.Off||!k)return;let t=O===p.Verbose||O===p.Compact;k.log(e.message,t?e.verbose:void 0)}),nt.onNotification(d.type,e=>{let t=le.get(e.token);t?t(e.value):ve.fire(e)}),nt}t(re,`createMessageConnection`),c(re,`createMessageConnection`),e.createMessageConnection=re}}),jt=u({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/api.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProgressType=e.ProgressToken=e.createMessageConnection=e.NullLogger=e.ConnectionOptions=e.ConnectionStrategy=e.AbstractMessageBuffer=e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=e.CancellationToken=e.CancellationTokenSource=e.Emitter=e.Event=e.Disposable=e.LRUCache=e.Touch=e.LinkedMap=e.ParameterStructures=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.ErrorCodes=e.ResponseError=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType0=e.RequestType=e.Message=e.RAL=void 0,e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=void 0;var t=St();Object.defineProperty(e,"Message",{enumerable:!0,get:c(function(){return t.Message},`get`)}),Object.defineProperty(e,"RequestType",{enumerable:!0,get:c(function(){return t.RequestType},`get`)}),Object.defineProperty(e,"RequestType0",{enumerable:!0,get:c(function(){return t.RequestType0},`get`)}),Object.defineProperty(e,"RequestType1",{enumerable:!0,get:c(function(){return t.RequestType1},`get`)}),Object.defineProperty(e,"RequestType2",{enumerable:!0,get:c(function(){return t.RequestType2},`get`)}),Object.defineProperty(e,"RequestType3",{enumerable:!0,get:c(function(){return t.RequestType3},`get`)}),Object.defineProperty(e,"RequestType4",{enumerable:!0,get:c(function(){return t.RequestType4},`get`)}),Object.defineProperty(e,"RequestType5",{enumerable:!0,get:c(function(){return t.RequestType5},`get`)}),Object.defineProperty(e,"RequestType6",{enumerable:!0,get:c(function(){return t.RequestType6},`get`)}),Object.defineProperty(e,"RequestType7",{enumerable:!0,get:c(function(){return t.RequestType7},`get`)}),Object.defineProperty(e,"RequestType8",{enumerable:!0,get:c(function(){return t.RequestType8},`get`)}),Object.defineProperty(e,"RequestType9",{enumerable:!0,get:c(function(){return t.RequestType9},`get`)}),Object.defineProperty(e,"ResponseError",{enumerable:!0,get:c(function(){return t.ResponseError},`get`)}),Object.defineProperty(e,"ErrorCodes",{enumerable:!0,get:c(function(){return t.ErrorCodes},`get`)}),Object.defineProperty(e,"NotificationType",{enumerable:!0,get:c(function(){return t.NotificationType},`get`)}),Object.defineProperty(e,"NotificationType0",{enumerable:!0,get:c(function(){return t.NotificationType0},`get`)}),Object.defineProperty(e,"NotificationType1",{enumerable:!0,get:c(function(){return t.NotificationType1},`get`)}),Object.defineProperty(e,"NotificationType2",{enumerable:!0,get:c(function(){return t.NotificationType2},`get`)}),Object.defineProperty(e,"NotificationType3",{enumerable:!0,get:c(function(){return t.NotificationType3},`get`)}),Object.defineProperty(e,"NotificationType4",{enumerable:!0,get:c(function(){return t.NotificationType4},`get`)}),Object.defineProperty(e,"NotificationType5",{enumerable:!0,get:c(function(){return t.NotificationType5},`get`)}),Object.defineProperty(e,"NotificationType6",{enumerable:!0,get:c(function(){return t.NotificationType6},`get`)}),Object.defineProperty(e,"NotificationType7",{enumerable:!0,get:c(function(){return t.NotificationType7},`get`)}),Object.defineProperty(e,"NotificationType8",{enumerable:!0,get:c(function(){return t.NotificationType8},`get`)}),Object.defineProperty(e,"NotificationType9",{enumerable:!0,get:c(function(){return t.NotificationType9},`get`)}),Object.defineProperty(e,"ParameterStructures",{enumerable:!0,get:c(function(){return t.ParameterStructures},`get`)});var n=Ct();Object.defineProperty(e,"LinkedMap",{enumerable:!0,get:c(function(){return n.LinkedMap},`get`)}),Object.defineProperty(e,"LRUCache",{enumerable:!0,get:c(function(){return n.LRUCache},`get`)}),Object.defineProperty(e,"Touch",{enumerable:!0,get:c(function(){return n.Touch},`get`)});var r=wt();Object.defineProperty(e,"Disposable",{enumerable:!0,get:c(function(){return r.Disposable},`get`)});var i=bt();Object.defineProperty(e,"Event",{enumerable:!0,get:c(function(){return i.Event},`get`)}),Object.defineProperty(e,"Emitter",{enumerable:!0,get:c(function(){return i.Emitter},`get`)});var a=xt();Object.defineProperty(e,"CancellationTokenSource",{enumerable:!0,get:c(function(){return a.CancellationTokenSource},`get`)}),Object.defineProperty(e,"CancellationToken",{enumerable:!0,get:c(function(){return a.CancellationToken},`get`)});var o=Tt();Object.defineProperty(e,"SharedArraySenderStrategy",{enumerable:!0,get:c(function(){return o.SharedArraySenderStrategy},`get`)}),Object.defineProperty(e,"SharedArrayReceiverStrategy",{enumerable:!0,get:c(function(){return o.SharedArrayReceiverStrategy},`get`)});var s=Dt();Object.defineProperty(e,"MessageReader",{enumerable:!0,get:c(function(){return s.MessageReader},`get`)}),Object.defineProperty(e,"AbstractMessageReader",{enumerable:!0,get:c(function(){return s.AbstractMessageReader},`get`)}),Object.defineProperty(e,"ReadableStreamMessageReader",{enumerable:!0,get:c(function(){return s.ReadableStreamMessageReader},`get`)});var l=Ot();Object.defineProperty(e,"MessageWriter",{enumerable:!0,get:c(function(){return l.MessageWriter},`get`)}),Object.defineProperty(e,"AbstractMessageWriter",{enumerable:!0,get:c(function(){return l.AbstractMessageWriter},`get`)}),Object.defineProperty(e,"WriteableStreamMessageWriter",{enumerable:!0,get:c(function(){return l.WriteableStreamMessageWriter},`get`)});var u=kt();Object.defineProperty(e,"AbstractMessageBuffer",{enumerable:!0,get:c(function(){return u.AbstractMessageBuffer},`get`)});var d=At();Object.defineProperty(e,"ConnectionStrategy",{enumerable:!0,get:c(function(){return d.ConnectionStrategy},`get`)}),Object.defineProperty(e,"ConnectionOptions",{enumerable:!0,get:c(function(){return d.ConnectionOptions},`get`)}),Object.defineProperty(e,"NullLogger",{enumerable:!0,get:c(function(){return d.NullLogger},`get`)}),Object.defineProperty(e,"createMessageConnection",{enumerable:!0,get:c(function(){return d.createMessageConnection},`get`)}),Object.defineProperty(e,"ProgressToken",{enumerable:!0,get:c(function(){return d.ProgressToken},`get`)}),Object.defineProperty(e,"ProgressType",{enumerable:!0,get:c(function(){return d.ProgressType},`get`)}),Object.defineProperty(e,"Trace",{enumerable:!0,get:c(function(){return d.Trace},`get`)}),Object.defineProperty(e,"TraceValues",{enumerable:!0,get:c(function(){return d.TraceValues},`get`)}),Object.defineProperty(e,"TraceFormat",{enumerable:!0,get:c(function(){return d.TraceFormat},`get`)}),Object.defineProperty(e,"SetTraceNotification",{enumerable:!0,get:c(function(){return d.SetTraceNotification},`get`)}),Object.defineProperty(e,"LogTraceNotification",{enumerable:!0,get:c(function(){return d.LogTraceNotification},`get`)}),Object.defineProperty(e,"ConnectionErrors",{enumerable:!0,get:c(function(){return d.ConnectionErrors},`get`)}),Object.defineProperty(e,"ConnectionError",{enumerable:!0,get:c(function(){return d.ConnectionError},`get`)}),Object.defineProperty(e,"CancellationReceiverStrategy",{enumerable:!0,get:c(function(){return d.CancellationReceiverStrategy},`get`)}),Object.defineProperty(e,"CancellationSenderStrategy",{enumerable:!0,get:c(function(){return d.CancellationSenderStrategy},`get`)}),Object.defineProperty(e,"CancellationStrategy",{enumerable:!0,get:c(function(){return d.CancellationStrategy},`get`)}),Object.defineProperty(e,"MessageStrategy",{enumerable:!0,get:c(function(){return d.MessageStrategy},`get`)}),e.RAL=vt().default}}),Mt=u({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/ril.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var n=jt(),r=class e extends n.AbstractMessageBuffer{static{t(this,`_MessageBuffer`)}static{c(this,`MessageBuffer`)}constructor(e=`utf-8`){super(e),this.asciiDecoder=new TextDecoder(`ascii`)}emptyBuffer(){return e.emptyBuffer}fromString(e,t){return new TextEncoder().encode(e)}toString(e,t){return t===`ascii`?this.asciiDecoder.decode(e):new TextDecoder(t).decode(e)}asNative(e,t){return t===void 0?e:e.slice(0,t)}allocNative(e){return new Uint8Array(e)}};r.emptyBuffer=new Uint8Array;var i=class{static{t(this,`ReadableStreamWrapper`)}static{c(this,`ReadableStreamWrapper`)}constructor(e){this.socket=e,this._onData=new n.Emitter,this._messageListener=e=>{e.data.arrayBuffer().then(e=>{this._onData.fire(new Uint8Array(e))},()=>{(0,n.RAL)().console.error(`Converting blob to array buffer failed.`)})},this.socket.addEventListener(`message`,this._messageListener)}onClose(e){return this.socket.addEventListener(`close`,e),n.Disposable.create(()=>this.socket.removeEventListener(`close`,e))}onError(e){return this.socket.addEventListener(`error`,e),n.Disposable.create(()=>this.socket.removeEventListener(`error`,e))}onEnd(e){return this.socket.addEventListener(`end`,e),n.Disposable.create(()=>this.socket.removeEventListener(`end`,e))}onData(e){return this._onData.event(e)}},a=class{static{t(this,`WritableStreamWrapper`)}static{c(this,`WritableStreamWrapper`)}constructor(e){this.socket=e}onClose(e){return this.socket.addEventListener(`close`,e),n.Disposable.create(()=>this.socket.removeEventListener(`close`,e))}onError(e){return this.socket.addEventListener(`error`,e),n.Disposable.create(()=>this.socket.removeEventListener(`error`,e))}onEnd(e){return this.socket.addEventListener(`end`,e),n.Disposable.create(()=>this.socket.removeEventListener(`end`,e))}write(e,t){if(typeof e==`string`){if(t!==void 0&&t!==`utf-8`)throw Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t}`);this.socket.send(e)}else this.socket.send(e);return Promise.resolve()}end(){this.socket.close()}},o=new TextEncoder,s=Object.freeze({messageBuffer:Object.freeze({create:c(e=>new r(e),`create`)}),applicationJson:Object.freeze({encoder:Object.freeze({name:`application/json`,encode:c((e,t)=>{if(t.charset!==`utf-8`)throw Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t.charset}`);return Promise.resolve(o.encode(JSON.stringify(e,void 0,0)))},`encode`)}),decoder:Object.freeze({name:`application/json`,decode:c((e,t)=>{if(!(e instanceof Uint8Array))throw Error(`In a Browser environments only Uint8Arrays are supported.`);return Promise.resolve(JSON.parse(new TextDecoder(t.charset).decode(e)))},`decode`)})}),stream:Object.freeze({asReadableStream:c(e=>new i(e),`asReadableStream`),asWritableStream:c(e=>new a(e),`asWritableStream`)}),console,timer:Object.freeze({setTimeout(e,t,...n){let r=setTimeout(e,t,...n);return{dispose:c(()=>clearTimeout(r),`dispose`)}},setImmediate(e,...t){let n=setTimeout(e,0,...t);return{dispose:c(()=>clearTimeout(n),`dispose`)}},setInterval(e,t,...n){let r=setInterval(e,t,...n);return{dispose:c(()=>clearInterval(r),`dispose`)}}})});function l(){return s}t(l,`RIL`),c(l,`RIL`),(function(e){function r(){n.RAL.install(s)}t(r,`install`),c(r,`install`),e.install=r})(l||={}),e.default=l}}),Nt=u({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/main.js"(e){var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:c(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.createMessageConnection=e.BrowserMessageWriter=e.BrowserMessageReader=void 0,Mt().default.install();var i=jt();r(jt(),e),e.BrowserMessageReader=class extends i.AbstractMessageReader{static{t(this,`BrowserMessageReader`)}static{c(this,`BrowserMessageReader`)}constructor(e){super(),this._onData=new i.Emitter,this._messageListener=e=>{this._onData.fire(e.data)},e.addEventListener(`error`,e=>this.fireError(e)),e.onmessage=this._messageListener}listen(e){return this._onData.event(e)}},e.BrowserMessageWriter=class extends i.AbstractMessageWriter{static{t(this,`BrowserMessageWriter`)}static{c(this,`BrowserMessageWriter`)}constructor(e){super(),this.port=e,this.errorCount=0,e.addEventListener(`error`,e=>this.fireError(e))}write(e){try{return this.port.postMessage(e),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}};function a(e,t,n,r){return n===void 0&&(n=i.NullLogger),i.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,i.createMessageConnection)(e,t,n,r)}t(a,`createMessageConnection`),c(a,`createMessageConnection`),e.createMessageConnection=a}}),Pt=u({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/browser.js"(e,t){t.exports=Nt()}}),j=u({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/messages.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProtocolNotificationType=e.ProtocolNotificationType0=e.ProtocolRequestType=e.ProtocolRequestType0=e.RegistrationType=e.MessageDirection=void 0;var n=Nt(),r;(function(e){e.clientToServer=`clientToServer`,e.serverToClient=`serverToClient`,e.both=`both`})(r||(e.MessageDirection=r={})),e.RegistrationType=class{static{t(this,`RegistrationType`)}static{c(this,`RegistrationType`)}constructor(e){this.method=e}},e.ProtocolRequestType0=class extends n.RequestType0{static{t(this,`ProtocolRequestType0`)}static{c(this,`ProtocolRequestType0`)}constructor(e){super(e)}},e.ProtocolRequestType=class extends n.RequestType{static{t(this,`ProtocolRequestType`)}static{c(this,`ProtocolRequestType`)}constructor(e){super(e,n.ParameterStructures.byName)}},e.ProtocolNotificationType0=class extends n.NotificationType0{static{t(this,`ProtocolNotificationType0`)}static{c(this,`ProtocolNotificationType0`)}constructor(e){super(e)}},e.ProtocolNotificationType=class extends n.NotificationType{static{t(this,`ProtocolNotificationType`)}static{c(this,`ProtocolNotificationType`)}constructor(e){super(e,n.ParameterStructures.byName)}}}}),Ft=u({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.objectLiteral=e.typedArray=e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0;function n(e){return e===!0||e===!1}t(n,`boolean`),c(n,`boolean`),e.boolean=n;function r(e){return typeof e==`string`||e instanceof String}t(r,`string`),c(r,`string`),e.string=r;function i(e){return typeof e==`number`||e instanceof Number}t(i,`number`),c(i,`number`),e.number=i;function a(e){return e instanceof Error}t(a,`error`),c(a,`error`),e.error=a;function o(e){return typeof e==`function`}t(o,`func`),c(o,`func`),e.func=o;function s(e){return Array.isArray(e)}t(s,`array`),c(s,`array`),e.array=s;function l(e){return s(e)&&e.every(e=>r(e))}t(l,`stringArray`),c(l,`stringArray`),e.stringArray=l;function u(e,t){return Array.isArray(e)&&e.every(t)}t(u,`typedArray`),c(u,`typedArray`),e.typedArray=u;function d(e){return typeof e==`object`&&!!e}t(d,`objectLiteral`),c(d,`objectLiteral`),e.objectLiteral=d}}),It=u({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ImplementationRequest=void 0;var t=j(),n;(function(e){e.method=`textDocument/implementation`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.ImplementationRequest=n={}))}}),Lt=u({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TypeDefinitionRequest=void 0;var t=j(),n;(function(e){e.method=`textDocument/typeDefinition`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.TypeDefinitionRequest=n={}))}}),Rt=u({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=void 0;var t=j(),n;(function(e){e.method=`workspace/workspaceFolders`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(n||(e.WorkspaceFoldersRequest=n={}));var r;(function(e){e.method=`workspace/didChangeWorkspaceFolders`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(r||(e.DidChangeWorkspaceFoldersNotification=r={}))}}),zt=u({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigurationRequest=void 0;var t=j(),n;(function(e){e.method=`workspace/configuration`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType(e.method)})(n||(e.ConfigurationRequest=n={}))}}),Bt=u({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ColorPresentationRequest=e.DocumentColorRequest=void 0;var t=j(),n;(function(e){e.method=`textDocument/documentColor`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.DocumentColorRequest=n={}));var r;(function(e){e.method=`textDocument/colorPresentation`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.ColorPresentationRequest=r={}))}}),Vt=u({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FoldingRangeRefreshRequest=e.FoldingRangeRequest=void 0;var t=j(),n;(function(e){e.method=`textDocument/foldingRange`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.FoldingRangeRequest=n={}));var r;(function(e){e.method=`workspace/foldingRange/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(r||(e.FoldingRangeRefreshRequest=r={}))}}),Ht=u({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeclarationRequest=void 0;var t=j(),n;(function(e){e.method=`textDocument/declaration`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.DeclarationRequest=n={}))}}),Ut=u({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionRangeRequest=void 0;var t=j(),n;(function(e){e.method=`textDocument/selectionRange`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.SelectionRangeRequest=n={}))}}),Wt=u({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=void 0;var n=Nt(),r=j(),i;(function(e){e.type=new n.ProgressType;function r(t){return t===e.type}t(r,`is`),c(r,`is`),e.is=r})(i||(e.WorkDoneProgress=i={}));var a;(function(e){e.method=`window/workDoneProgress/create`,e.messageDirection=r.MessageDirection.serverToClient,e.type=new r.ProtocolRequestType(e.method)})(a||(e.WorkDoneProgressCreateRequest=a={}));var o;(function(e){e.method=`window/workDoneProgress/cancel`,e.messageDirection=r.MessageDirection.clientToServer,e.type=new r.ProtocolNotificationType(e.method)})(o||(e.WorkDoneProgressCancelNotification=o={}))}}),Gt=u({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.CallHierarchyPrepareRequest=void 0;var t=j(),n;(function(e){e.method=`textDocument/prepareCallHierarchy`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.CallHierarchyPrepareRequest=n={}));var r;(function(e){e.method=`callHierarchy/incomingCalls`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.CallHierarchyIncomingCallsRequest=r={}));var i;(function(e){e.method=`callHierarchy/outgoingCalls`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(i||(e.CallHierarchyOutgoingCallsRequest=i={}))}}),Kt=u({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.SemanticTokensRegistrationType=e.TokenFormat=void 0;var t=j(),n;(function(e){e.Relative=`relative`})(n||(e.TokenFormat=n={}));var r;(function(e){e.method=`textDocument/semanticTokens`,e.type=new t.RegistrationType(e.method)})(r||(e.SemanticTokensRegistrationType=r={}));var i;(function(e){e.method=`textDocument/semanticTokens/full`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.registrationMethod=r.method})(i||(e.SemanticTokensRequest=i={}));var a;(function(e){e.method=`textDocument/semanticTokens/full/delta`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.registrationMethod=r.method})(a||(e.SemanticTokensDeltaRequest=a={}));var o;(function(e){e.method=`textDocument/semanticTokens/range`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.registrationMethod=r.method})(o||(e.SemanticTokensRangeRequest=o={}));var s;(function(e){e.method=`workspace/semanticTokens/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(s||(e.SemanticTokensRefreshRequest=s={}))}}),qt=u({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ShowDocumentRequest=void 0;var t=j(),n;(function(e){e.method=`window/showDocument`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType(e.method)})(n||(e.ShowDocumentRequest=n={}))}}),Jt=u({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedEditingRangeRequest=void 0;var t=j(),n;(function(e){e.method=`textDocument/linkedEditingRange`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.LinkedEditingRangeRequest=n={}))}}),Yt=u({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.DidRenameFilesNotification=e.WillRenameFilesRequest=e.DidCreateFilesNotification=e.WillCreateFilesRequest=e.FileOperationPatternKind=void 0;var t=j(),n;(function(e){e.file=`file`,e.folder=`folder`})(n||(e.FileOperationPatternKind=n={}));var r;(function(e){e.method=`workspace/willCreateFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.WillCreateFilesRequest=r={}));var i;(function(e){e.method=`workspace/didCreateFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(i||(e.DidCreateFilesNotification=i={}));var a;(function(e){e.method=`workspace/willRenameFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(a||(e.WillRenameFilesRequest=a={}));var o;(function(e){e.method=`workspace/didRenameFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(o||(e.DidRenameFilesNotification=o={}));var s;(function(e){e.method=`workspace/didDeleteFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(s||(e.DidDeleteFilesNotification=s={}));var c;(function(e){e.method=`workspace/willDeleteFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(c||(e.WillDeleteFilesRequest=c={}))}}),Xt=u({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=void 0;var t=j(),n;(function(e){e.document=`document`,e.project=`project`,e.group=`group`,e.scheme=`scheme`,e.global=`global`})(n||(e.UniquenessLevel=n={}));var r;(function(e){e.$import=`import`,e.$export=`export`,e.local=`local`})(r||(e.MonikerKind=r={}));var i;(function(e){e.method=`textDocument/moniker`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(i||(e.MonikerRequest=i={}))}}),Zt=u({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TypeHierarchySubtypesRequest=e.TypeHierarchySupertypesRequest=e.TypeHierarchyPrepareRequest=void 0;var t=j(),n;(function(e){e.method=`textDocument/prepareTypeHierarchy`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.TypeHierarchyPrepareRequest=n={}));var r;(function(e){e.method=`typeHierarchy/supertypes`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.TypeHierarchySupertypesRequest=r={}));var i;(function(e){e.method=`typeHierarchy/subtypes`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(i||(e.TypeHierarchySubtypesRequest=i={}))}}),Qt=u({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlineValueRefreshRequest=e.InlineValueRequest=void 0;var t=j(),n;(function(e){e.method=`textDocument/inlineValue`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.InlineValueRequest=n={}));var r;(function(e){e.method=`workspace/inlineValue/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(r||(e.InlineValueRefreshRequest=r={}))}}),$t=u({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=void 0;var t=j(),n;(function(e){e.method=`textDocument/inlayHint`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.InlayHintRequest=n={}));var r;(function(e){e.method=`inlayHint/resolve`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.InlayHintResolveRequest=r={}));var i;(function(e){e.method=`workspace/inlayHint/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(i||(e.InlayHintRefreshRequest=i={}))}}),en=u({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiagnosticRefreshRequest=e.WorkspaceDiagnosticRequest=e.DocumentDiagnosticRequest=e.DocumentDiagnosticReportKind=e.DiagnosticServerCancellationData=void 0;var n=Nt(),r=Ft(),i=j(),a;(function(e){function n(e){let t=e;return t&&r.boolean(t.retriggerRequest)}t(n,`is`),c(n,`is`),e.is=n})(a||(e.DiagnosticServerCancellationData=a={}));var o;(function(e){e.Full=`full`,e.Unchanged=`unchanged`})(o||(e.DocumentDiagnosticReportKind=o={}));var s;(function(e){e.method=`textDocument/diagnostic`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.partialResult=new n.ProgressType})(s||(e.DocumentDiagnosticRequest=s={}));var l;(function(e){e.method=`workspace/diagnostic`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.partialResult=new n.ProgressType})(l||(e.WorkspaceDiagnosticRequest=l={}));var u;(function(e){e.method=`workspace/diagnostic/refresh`,e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType0(e.method)})(u||(e.DiagnosticRefreshRequest=u={}))}}),tn=u({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DidCloseNotebookDocumentNotification=e.DidSaveNotebookDocumentNotification=e.DidChangeNotebookDocumentNotification=e.NotebookCellArrayChange=e.DidOpenNotebookDocumentNotification=e.NotebookDocumentSyncRegistrationType=e.NotebookDocument=e.NotebookCell=e.ExecutionSummary=e.NotebookCellKind=void 0;var n=(_t(),h(g)),r=Ft(),i=j(),a;(function(e){e.Markup=1,e.Code=2;function n(e){return e===1||e===2}t(n,`is`),c(n,`is`),e.is=n})(a||(e.NotebookCellKind=a={}));var o;(function(e){function i(e,t){let n={executionOrder:e};return(t===!0||t===!1)&&(n.success=t),n}t(i,`create`),c(i,`create`),e.create=i;function a(e){let t=e;return r.objectLiteral(t)&&n.uinteger.is(t.executionOrder)&&(t.success===void 0||r.boolean(t.success))}t(a,`is`),c(a,`is`),e.is=a;function o(e,t){return e===t?!0:e==null||t==null?!1:e.executionOrder===t.executionOrder&&e.success===t.success}t(o,`equals`),c(o,`equals`),e.equals=o})(o||(e.ExecutionSummary=o={}));var s;(function(e){function i(e,t){return{kind:e,document:t}}t(i,`create`),c(i,`create`),e.create=i;function s(e){let t=e;return r.objectLiteral(t)&&a.is(t.kind)&&n.DocumentUri.is(t.document)&&(t.metadata===void 0||r.objectLiteral(t.metadata))}t(s,`is`),c(s,`is`),e.is=s;function l(e,t){let n=new Set;return e.document!==t.document&&n.add(`document`),e.kind!==t.kind&&n.add(`kind`),e.executionSummary!==t.executionSummary&&n.add(`executionSummary`),(e.metadata!==void 0||t.metadata!==void 0)&&!u(e.metadata,t.metadata)&&n.add(`metadata`),(e.executionSummary!==void 0||t.executionSummary!==void 0)&&!o.equals(e.executionSummary,t.executionSummary)&&n.add(`executionSummary`),n}t(l,`diff`),c(l,`diff`),e.diff=l;function u(e,t){if(e===t)return!0;if(e==null||t==null||typeof e!=typeof t||typeof e!=`object`)return!1;let n=Array.isArray(e),i=Array.isArray(t);if(n!==i)return!1;if(n&&i){if(e.length!==t.length)return!1;for(let n=0;n0}t(n,`hasId`),c(n,`hasId`),e.hasId=n})(E||(e.StaticRegistrationOptions=E={}));var fe;(function(e){function n(e){let t=e;return t&&(t.documentSelector===null||oe.is(t.documentSelector))}t(n,`is`),c(n,`is`),e.is=n})(fe||(e.TextDocumentRegistrationOptions=fe={}));var D;(function(e){function n(e){let t=e;return i.objectLiteral(t)&&(t.workDoneProgress===void 0||i.boolean(t.workDoneProgress))}t(n,`is`),c(n,`is`),e.is=n;function r(e){let t=e;return t&&i.boolean(t.workDoneProgress)}t(r,`hasWorkDoneProgress`),c(r,`hasWorkDoneProgress`),e.hasWorkDoneProgress=r})(D||(e.WorkDoneProgressOptions=D={}));var O;(function(e){e.method=`initialize`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(O||(e.InitializeRequest=O={}));var pe;(function(e){e.unknownProtocolVersion=1})(pe||(e.InitializeErrorCodes=pe={}));var k;(function(e){e.method=`initialized`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method)})(k||(e.InitializedNotification=k={}));var me;(function(e){e.method=`shutdown`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType0(e.method)})(me||(e.ShutdownRequest=me={}));var he;(function(e){e.method=`exit`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType0(e.method)})(he||(e.ExitNotification=he={}));var ge;(function(e){e.method=`workspace/didChangeConfiguration`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method)})(ge||(e.DidChangeConfigurationNotification=ge={}));var _e;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(_e||(e.MessageType=_e={}));var ve;(function(e){e.method=`window/showMessage`,e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolNotificationType(e.method)})(ve||(e.ShowMessageNotification=ve={}));var ye;(function(e){e.method=`window/showMessageRequest`,e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType(e.method)})(ye||(e.ShowMessageRequest=ye={}));var be;(function(e){e.method=`window/logMessage`,e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolNotificationType(e.method)})(be||(e.LogMessageNotification=be={}));var xe;(function(e){e.method=`telemetry/event`,e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolNotificationType(e.method)})(xe||(e.TelemetryEventNotification=xe={}));var Se;(function(e){e.None=0,e.Full=1,e.Incremental=2})(Se||(e.TextDocumentSyncKind=Se={}));var Ce;(function(e){e.method=`textDocument/didOpen`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method)})(Ce||(e.DidOpenTextDocumentNotification=Ce={}));var we;(function(e){function n(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range!==void 0&&(t.rangeLength===void 0||typeof t.rangeLength==`number`)}t(n,`isIncremental`),c(n,`isIncremental`),e.isIncremental=n;function r(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range===void 0&&t.rangeLength===void 0}t(r,`isFull`),c(r,`isFull`),e.isFull=r})(we||(e.TextDocumentContentChangeEvent=we={}));var Te;(function(e){e.method=`textDocument/didChange`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method)})(Te||(e.DidChangeTextDocumentNotification=Te={}));var Ee;(function(e){e.method=`textDocument/didClose`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method)})(Ee||(e.DidCloseTextDocumentNotification=Ee={}));var De;(function(e){e.method=`textDocument/didSave`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method)})(De||(e.DidSaveTextDocumentNotification=De={}));var Oe;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(Oe||(e.TextDocumentSaveReason=Oe={}));var ke;(function(e){e.method=`textDocument/willSave`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method)})(ke||(e.WillSaveTextDocumentNotification=ke={}));var Ae;(function(e){e.method=`textDocument/willSaveWaitUntil`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Ae||(e.WillSaveTextDocumentWaitUntilRequest=Ae={}));var je;(function(e){e.method=`workspace/didChangeWatchedFiles`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method)})(je||(e.DidChangeWatchedFilesNotification=je={}));var Me;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(Me||(e.FileChangeType=Me={}));var Ne;(function(e){function n(e){let t=e;return i.objectLiteral(t)&&(r.URI.is(t.baseUri)||r.WorkspaceFolder.is(t.baseUri))&&i.string(t.pattern)}t(n,`is`),c(n,`is`),e.is=n})(Ne||(e.RelativePattern=Ne={}));var Pe;(function(e){e.Create=1,e.Change=2,e.Delete=4})(Pe||(e.WatchKind=Pe={}));var Fe;(function(e){e.method=`textDocument/publishDiagnostics`,e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolNotificationType(e.method)})(Fe||(e.PublishDiagnosticsNotification=Fe={}));var Ie;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(Ie||(e.CompletionTriggerKind=Ie={}));var Le;(function(e){e.method=`textDocument/completion`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Le||(e.CompletionRequest=Le={}));var Re;(function(e){e.method=`completionItem/resolve`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Re||(e.CompletionResolveRequest=Re={}));var ze;(function(e){e.method=`textDocument/hover`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(ze||(e.HoverRequest=ze={}));var Be;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Be||(e.SignatureHelpTriggerKind=Be={}));var Ve;(function(e){e.method=`textDocument/signatureHelp`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Ve||(e.SignatureHelpRequest=Ve={}));var He;(function(e){e.method=`textDocument/definition`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(He||(e.DefinitionRequest=He={}));var Ue;(function(e){e.method=`textDocument/references`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Ue||(e.ReferencesRequest=Ue={}));var We;(function(e){e.method=`textDocument/documentHighlight`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(We||(e.DocumentHighlightRequest=We={}));var Ge;(function(e){e.method=`textDocument/documentSymbol`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Ge||(e.DocumentSymbolRequest=Ge={}));var Ke;(function(e){e.method=`textDocument/codeAction`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Ke||(e.CodeActionRequest=Ke={}));var qe;(function(e){e.method=`codeAction/resolve`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(qe||(e.CodeActionResolveRequest=qe={}));var Je;(function(e){e.method=`workspace/symbol`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Je||(e.WorkspaceSymbolRequest=Je={}));var Ye;(function(e){e.method=`workspaceSymbol/resolve`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Ye||(e.WorkspaceSymbolResolveRequest=Ye={}));var Xe;(function(e){e.method=`textDocument/codeLens`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Xe||(e.CodeLensRequest=Xe={}));var Ze;(function(e){e.method=`codeLens/resolve`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Ze||(e.CodeLensResolveRequest=Ze={}));var Qe;(function(e){e.method=`workspace/codeLens/refresh`,e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType0(e.method)})(Qe||(e.CodeLensRefreshRequest=Qe={}));var $e;(function(e){e.method=`textDocument/documentLink`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})($e||(e.DocumentLinkRequest=$e={}));var et;(function(e){e.method=`documentLink/resolve`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(et||(e.DocumentLinkResolveRequest=et={}));var tt;(function(e){e.method=`textDocument/formatting`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(tt||(e.DocumentFormattingRequest=tt={}));var nt;(function(e){e.method=`textDocument/rangeFormatting`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(nt||(e.DocumentRangeFormattingRequest=nt={}));var rt;(function(e){e.method=`textDocument/rangesFormatting`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(rt||(e.DocumentRangesFormattingRequest=rt={}));var it;(function(e){e.method=`textDocument/onTypeFormatting`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(it||(e.DocumentOnTypeFormattingRequest=it={}));var at;(function(e){e.Identifier=1})(at||(e.PrepareSupportDefaultBehavior=at={}));var ot;(function(e){e.method=`textDocument/rename`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(ot||(e.RenameRequest=ot={}));var st;(function(e){e.method=`textDocument/prepareRename`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(st||(e.PrepareRenameRequest=st={}));var ct;(function(e){e.method=`workspace/executeCommand`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(ct||(e.ExecuteCommandRequest=ct={}));var lt;(function(e){e.method=`workspace/applyEdit`,e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType(`workspace/applyEdit`)})(lt||(e.ApplyWorkspaceEditRequest=lt={}))}}),an=u({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/connection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=void 0;var n=Nt();function r(e,t,r,i){return n.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,n.createMessageConnection)(e,t,r,i)}t(r,`createProtocolConnection`),c(r,`createProtocolConnection`),e.createProtocolConnection=r}}),on=u({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/api.js"(e){var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:c(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.LSPErrorCodes=e.createProtocolConnection=void 0,n(Nt(),e),n((_t(),h(g)),e),n(j(),e),n(rn(),e);var r=an();Object.defineProperty(e,"createProtocolConnection",{enumerable:!0,get:c(function(){return r.createProtocolConnection},`get`)});var i;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(i||(e.LSPErrorCodes=i={}))}}),sn=u({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/browser/main.js"(e){var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:c(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=void 0;var i=Pt();r(Pt(),e),r(on(),e);function a(e,t,n,r){return(0,i.createMessageConnection)(e,t,n,r)}t(a,`createProtocolConnection`),c(a,`createProtocolConnection`),e.createProtocolConnection=a}}),cn={};d(cn,{AbstractAstReflection:t(()=>mn,`AbstractAstReflection`),AbstractCstNode:t(()=>tj,`AbstractCstNode`),AbstractLangiumParser:t(()=>uj,`AbstractLangiumParser`),AbstractParserErrorMessageProvider:t(()=>fj,`AbstractParserErrorMessageProvider`),AbstractThreadedAsyncParser:t(()=>PN,`AbstractThreadedAsyncParser`),AstUtils:t(()=>Tn,`AstUtils`),BiMap:t(()=>_M,`BiMap`),Cancellation:t(()=>Z,`Cancellation`),CompositeCstNodeImpl:t(()=>rj,`CompositeCstNodeImpl`),ContextCache:t(()=>TM,`ContextCache`),CstNodeBuilder:t(()=>ej,`CstNodeBuilder`),CstUtils:t(()=>ln,`CstUtils`),DEFAULT_TOKENIZE_OPTIONS:t(()=>$M,`DEFAULT_TOKENIZE_OPTIONS`),DONE_RESULT:t(()=>Sn,`DONE_RESULT`),DatatypeSymbol:t(()=>oj,`DatatypeSymbol`),DefaultAstNodeDescriptionProvider:t(()=>HM,`DefaultAstNodeDescriptionProvider`),DefaultAstNodeLocator:t(()=>WM,`DefaultAstNodeLocator`),DefaultAsyncParser:t(()=>NN,`DefaultAsyncParser`),DefaultCommentProvider:t(()=>MN,`DefaultCommentProvider`),DefaultConfigurationProvider:t(()=>KM,`DefaultConfigurationProvider`),DefaultDocumentBuilder:t(()=>YM,`DefaultDocumentBuilder`),DefaultDocumentValidator:t(()=>LM,`DefaultDocumentValidator`),DefaultHydrator:t(()=>LN,`DefaultHydrator`),DefaultIndexManager:t(()=>XM,`DefaultIndexManager`),DefaultJsonSerializer:t(()=>jM,`DefaultJsonSerializer`),DefaultLangiumDocumentFactory:t(()=>lM,`DefaultLangiumDocumentFactory`),DefaultLangiumDocuments:t(()=>uM,`DefaultLangiumDocuments`),DefaultLangiumProfiler:t(()=>iP,`DefaultLangiumProfiler`),DefaultLexer:t(()=>eN,`DefaultLexer`),DefaultLexerErrorMessageProvider:t(()=>QM,`DefaultLexerErrorMessageProvider`),DefaultLinker:t(()=>fM,`DefaultLinker`),DefaultNameProvider:t(()=>mM,`DefaultNameProvider`),DefaultReferenceDescriptionProvider:t(()=>UM,`DefaultReferenceDescriptionProvider`),DefaultReferences:t(()=>hM,`DefaultReferences`),DefaultScopeComputation:t(()=>vM,`DefaultScopeComputation`),DefaultScopeProvider:t(()=>OM,`DefaultScopeProvider`),DefaultServiceRegistry:t(()=>MM,`DefaultServiceRegistry`),DefaultTokenBuilder:t(()=>zj,`DefaultTokenBuilder`),DefaultValueConverter:t(()=>Bj,`DefaultValueConverter`),DefaultWorkspaceLock:t(()=>IN,`DefaultWorkspaceLock`),DefaultWorkspaceManager:t(()=>ZM,`DefaultWorkspaceManager`),Deferred:t(()=>Xj,`Deferred`),Disposable:t(()=>JM,`Disposable`),DisposableCache:t(()=>CM,`DisposableCache`),DocumentCache:t(()=>EM,`DocumentCache`),DocumentState:t(()=>Q,`DocumentState`),DocumentValidator:t(()=>VM,`DocumentValidator`),EMPTY_SCOPE:t(()=>SM,`EMPTY_SCOPE`),EMPTY_STREAM:t(()=>xn,`EMPTY_STREAM`),EmptyFileSystem:t(()=>$N,`EmptyFileSystem`),EmptyFileSystemProvider:t(()=>QN,`EmptyFileSystemProvider`),ErrorWithLocation:t(()=>oa,`ErrorWithLocation`),GrammarAST:t(()=>Bn,`GrammarAST`),GrammarUtils:t(()=>aa,`GrammarUtils`),IndentationAwareLexer:t(()=>XN,`IndentationAwareLexer`),IndentationAwareTokenBuilder:t(()=>YN,`IndentationAwareTokenBuilder`),JSDocDocumentationProvider:t(()=>jN,`JSDocDocumentationProvider`),LangiumCompletionParser:t(()=>mj,`LangiumCompletionParser`),LangiumParser:t(()=>dj,`LangiumParser`),LangiumParserErrorMessageProvider:t(()=>pj,`LangiumParserErrorMessageProvider`),LeafCstNodeImpl:t(()=>nj,`LeafCstNodeImpl`),LexingMode:t(()=>JN,`LexingMode`),MapScope:t(()=>bM,`MapScope`),Module:t(()=>BN,`Module`),MultiMap:t(()=>gM,`MultiMap`),MultiMapScope:t(()=>xM,`MultiMapScope`),OperationCancelled:t(()=>qj,`OperationCancelled`),ParserWorker:t(()=>FN,`ParserWorker`),ProfilingTask:t(()=>aP,`ProfilingTask`),Reduction:t(()=>wn,`Reduction`),RefResolving:t(()=>dM,`RefResolving`),RegExpUtils:t(()=>la,`RegExpUtils`),RootCstNodeImpl:t(()=>aj,`RootCstNodeImpl`),SimpleCache:t(()=>wM,`SimpleCache`),StreamImpl:t(()=>vn,`StreamImpl`),StreamScope:t(()=>yM,`StreamScope`),TextDocument:t(()=>Qj,`TextDocument`),TreeStreamImpl:t(()=>Cn,`TreeStreamImpl`),URI:t(()=>aM,`URI`),UriTrie:t(()=>cM,`UriTrie`),UriUtils:t(()=>sM,`UriUtils`),VALIDATE_EACH_NODE:t(()=>IM,`VALIDATE_EACH_NODE`),ValidationCategory:t(()=>PM,`ValidationCategory`),ValidationRegistry:t(()=>FM,`ValidationRegistry`),ValueConverter:t(()=>Vj,`ValueConverter`),WorkspaceCache:t(()=>DM,`WorkspaceCache`),assertCondition:t(()=>ca,`assertCondition`),assertUnreachable:t(()=>sa,`assertUnreachable`),createCompletionParser:t(()=>Ij,`createCompletionParser`),createDefaultCoreModule:t(()=>RN,`createDefaultCoreModule`),createDefaultSharedCoreModule:t(()=>zN,`createDefaultSharedCoreModule`),createGrammarConfig:t(()=>yo,`createGrammarConfig`),createLangiumParser:t(()=>Lj,`createLangiumParser`),createParser:t(()=>vj,`createParser`),delayNextTick:t(()=>Hj,`delayNextTick`),diagnosticData:t(()=>NM,`diagnosticData`),eagerLoad:t(()=>HN,`eagerLoad`),getDiagnosticRange:t(()=>RM,`getDiagnosticRange`),indentationBuilderDefaultOptions:t(()=>qN,`indentationBuilderDefaultOptions`),inject:t(()=>$,`inject`),interruptAndCheck:t(()=>Yj,`interruptAndCheck`),isAstNode:t(()=>M,`isAstNode`),isAstNodeDescription:t(()=>fn,`isAstNodeDescription`),isAstNodeWithComment:t(()=>kM,`isAstNodeWithComment`),isCompositeCstNode:t(()=>hn,`isCompositeCstNode`),isIMultiModeLexerDefinition:t(()=>nN,`isIMultiModeLexerDefinition`),isJSDoc:t(()=>aN,`isJSDoc`),isLeafCstNode:t(()=>gn,`isLeafCstNode`),isLinkingError:t(()=>pn,`isLinkingError`),isMultiReference:t(()=>dn,`isMultiReference`),isNamed:t(()=>pM,`isNamed`),isOperationCancelled:t(()=>Jj,`isOperationCancelled`),isReference:t(()=>un,`isReference`),isRootCstNode:t(()=>_n,`isRootCstNode`),isTokenTypeArray:t(()=>tN,`isTokenTypeArray`),isTokenTypeDictionary:t(()=>rN,`isTokenTypeDictionary`),loadGrammarFromJson:t(()=>rP,`loadGrammarFromJson`),parseJSDoc:t(()=>iN,`parseJSDoc`),prepareLangiumParser:t(()=>Rj,`prepareLangiumParser`),setInterruptionPeriod:t(()=>Kj,`setInterruptionPeriod`),startCancelableOperation:t(()=>Gj,`startCancelableOperation`),stream:t(()=>N,`stream`),toDiagnosticData:t(()=>BM,`toDiagnosticData`),toDiagnosticSeverity:t(()=>zM,`toDiagnosticSeverity`)});var ln={};d(ln,{DefaultNameRegexp:t(()=>Ki,`DefaultNameRegexp`),RangeComparison:t(()=>Ui,`RangeComparison`),compareRange:t(()=>Wi,`compareRange`),findCommentNode:t(()=>Ji,`findCommentNode`),findDeclarationNodeAtOffset:t(()=>qi,`findDeclarationNodeAtOffset`),findLeafNodeAtOffset:t(()=>Xi,`findLeafNodeAtOffset`),findLeafNodeBeforeOffset:t(()=>Zi,`findLeafNodeBeforeOffset`),flattenCst:t(()=>zi,`flattenCst`),getDatatypeNode:t(()=>Li,`getDatatypeNode`),getInteriorNodes:t(()=>na,`getInteriorNodes`),getNextNode:t(()=>ea,`getNextNode`),getPreviousNode:t(()=>$i,`getPreviousNode`),getStartlineNode:t(()=>ta,`getStartlineNode`),inRange:t(()=>Gi,`inRange`),isChildNode:t(()=>Bi,`isChildNode`),isCommentNode:t(()=>Yi,`isCommentNode`),streamCst:t(()=>Ri,`streamCst`),toDocumentSegment:t(()=>Hi,`toDocumentSegment`),tokenToRange:t(()=>Vi,`tokenToRange`)});function M(e){return typeof e==`object`&&!!e&&typeof e.$type==`string`}t(M,`isAstNode`),c(M,`isAstNode`);function un(e){return typeof e==`object`&&!!e&&typeof e.$refText==`string`&&`ref`in e}t(un,`isReference`),c(un,`isReference`);function dn(e){return typeof e==`object`&&!!e&&typeof e.$refText==`string`&&`items`in e}t(dn,`isMultiReference`),c(dn,`isMultiReference`);function fn(e){return typeof e==`object`&&!!e&&typeof e.name==`string`&&typeof e.type==`string`&&typeof e.path==`string`}t(fn,`isAstNodeDescription`),c(fn,`isAstNodeDescription`);function pn(e){return typeof e==`object`&&!!e&&typeof e.info==`object`&&typeof e.message==`string`}t(pn,`isLinkingError`),c(pn,`isLinkingError`);var mn=class{static{t(this,`AbstractAstReflection`)}static{c(this,`AbstractAstReflection`)}constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){let t=this.types[e.container.$type];if(!t)throw Error(`Type ${e.container.$type||`undefined`} not found.`);let n=t.properties[e.property]?.referenceType;if(!n)throw Error(`Property ${e.property||`undefined`} of type ${e.container.$type} is not a reference.`);return n}getTypeMetaData(e){return this.types[e]||{name:e,properties:{},superTypes:[]}}isInstance(e,t){return M(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let n=this.subtypes[e];n||=this.subtypes[e]={};let r=n[t];if(r!==void 0)return r;{let r=this.types[e],i=r?r.superTypes.some(e=>this.isSubtype(e,t)):!1;return n[t]=i,i}}getAllSubTypes(e){let t=this.allSubtypes[e];if(t)return t;{let t=this.getAllTypes(),n=[];for(let r of t)this.isSubtype(r,e)&&n.push(r);return this.allSubtypes[e]=n,n}}};function hn(e){return typeof e==`object`&&!!e&&Array.isArray(e.content)}t(hn,`isCompositeCstNode`),c(hn,`isCompositeCstNode`);function gn(e){return typeof e==`object`&&!!e&&typeof e.tokenType==`object`}t(gn,`isLeafCstNode`),c(gn,`isLeafCstNode`);function _n(e){return hn(e)&&typeof e.fullText==`string`}t(_n,`isRootCstNode`),c(_n,`isRootCstNode`);var vn=class e{static{t(this,`_StreamImpl`)}static{c(this,`StreamImpl`)}constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){let e={state:this.startFn(),next:c(()=>this.nextFn(e.state),`next`),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let e=this.iterator(),t=0,n=e.next();for(;!n.done;)t++,n=e.next();return t}toArray(){let e=[],t=this.iterator(),n;do n=t.next(),n.value!==void 0&&e.push(n.value);while(!n.done);return e}toSet(){return new Set(this)}toMap(e,t){let n=this.map(n=>[e?e(n):n,t?t(n):n]);return new Map(n)}toString(){return this.join()}concat(t){return new e(()=>({first:this.startFn(),firstDone:!1,iterator:t[Symbol.iterator]()}),e=>{let t;if(!e.firstDone){do if(t=this.nextFn(e.first),!t.done)return t;while(!t.done);e.firstDone=!0}do if(t=e.iterator.next(),!t.done)return t;while(!t.done);return Sn})}join(e=`,`){let t=this.iterator(),n=``,r,i=!1;do r=t.next(),r.done||(i&&(n+=e),n+=yn(r.value)),i=!0;while(!r.done);return n}indexOf(e,t=0){let n=this.iterator(),r=0,i=n.next();for(;!i.done;){if(r>=t&&i.value===e)return r;i=n.next(),r++}return-1}every(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(!e(n.value))return!1;n=t.next()}return!0}some(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(e(n.value))return!0;n=t.next()}return!1}forEach(e){let t=this.iterator(),n=0,r=t.next();for(;!r.done;)e(r.value,n),r=t.next(),n++}map(t){return new e(this.startFn,e=>{let{done:n,value:r}=this.nextFn(e);return n?Sn:{done:!1,value:t(r)}})}filter(t){return new e(this.startFn,e=>{let n;do if(n=this.nextFn(e),!n.done&&t(n.value))return n;while(!n.done);return Sn})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,t){let n=this.iterator(),r=t,i=n.next();for(;!i.done;)r=r===void 0?i.value:e(r,i.value),i=n.next();return r}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,n){let r=e.next();if(r.done)return n;let i=this.recursiveReduce(e,t,n);return i===void 0?r.value:t(i,r.value)}find(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(e(n.value))return n.value;n=t.next()}}findIndex(e){let t=this.iterator(),n=0,r=t.next();for(;!r.done;){if(e(r.value))return n;r=t.next(),n++}return-1}includes(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(n.value===e)return!0;n=t.next()}return!1}flatMap(t){return new e(()=>({this:this.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(t.done)e.iterator=void 0;else return t}let{done:n,value:r}=this.nextFn(e.this);if(!n){let n=t(r);if(bn(n))e.iterator=n[Symbol.iterator]();else return{done:!1,value:n}}}while(e.iterator);return Sn})}flat(t){if(t===void 0&&(t=1),t<=0)return this;let n=t>1?this.flat(t-1):this;return new e(()=>({this:n.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(t.done)e.iterator=void 0;else return t}let{done:t,value:r}=n.nextFn(e.this);if(!t)if(bn(r))e.iterator=r[Symbol.iterator]();else return{done:!1,value:r}}while(e.iterator);return Sn})}head(){let e=this.iterator().next();if(!e.done)return e.value}tail(t=1){return new e(()=>{let e=this.startFn();for(let n=0;n({size:0,state:this.startFn()}),e=>(e.size++,e.size>t?Sn:this.nextFn(e.state)))}distinct(t){return new e(()=>({set:new Set,internalState:this.startFn()}),e=>{let n;do if(n=this.nextFn(e.internalState),!n.done){let r=t?t(n.value):n.value;if(!e.set.has(r))return e.set.add(r),n}while(!n.done);return Sn})}exclude(e,t){let n=new Set;for(let r of e){let e=t?t(r):r;n.add(e)}return this.filter(e=>{let r=t?t(e):e;return!n.has(r)})}};function yn(e){return typeof e==`string`?e:e===void 0?`undefined`:typeof e.toString==`function`?e.toString():Object.prototype.toString.call(e)}t(yn,`toString`),c(yn,`toString`);function bn(e){return!!e&&typeof e[Symbol.iterator]==`function`}t(bn,`isIterable`),c(bn,`isIterable`);var xn=new vn(()=>void 0,()=>Sn),Sn=Object.freeze({done:!0,value:void 0});function N(...e){if(e.length===1){let t=e[0];if(t instanceof vn)return t;if(bn(t))return new vn(()=>t[Symbol.iterator](),e=>e.next());if(typeof t.length==`number`)return new vn(()=>({index:0}),e=>e.index1?new vn(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){let e=t.iterator.next();if(!e.done)return e;t.iterator=void 0}if(t.array){if(t.arrIndex({iterators:n?.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),e=>{for(e.pruned&&=(e.iterators.pop(),!1);e.iterators.length>0;){let n=e.iterators[e.iterators.length-1].next();if(n.done)e.iterators.pop();else return e.iterators.push(t(n.value)[Symbol.iterator]()),n}return Sn})}iterator(){let e={state:this.startFn(),next:c(()=>this.nextFn(e.state),`next`),prune:c(()=>{e.state.pruned=!0},`prune`),[Symbol.iterator]:()=>e};return e}},wn;(function(e){function n(e){return e.reduce((e,t)=>e+t,0)}t(n,`sum`),c(n,`sum`),e.sum=n;function r(e){return e.reduce((e,t)=>e*t,0)}t(r,`product`),c(r,`product`),e.product=r;function i(e){return e.reduce((e,t)=>Math.min(e,t))}t(i,`min2`),c(i,`min`),e.min=i;function a(e){return e.reduce((e,t)=>Math.max(e,t))}t(a,`max`),c(a,`max`),e.max=a})(wn||={});var Tn={};d(Tn,{assignMandatoryProperties:t(()=>Ln,`assignMandatoryProperties`),copyAstNode:t(()=>zn,`copyAstNode`),findRootNode:t(()=>An,`findRootNode`),getContainerOfType:t(()=>Dn,`getContainerOfType`),getDocument:t(()=>kn,`getDocument`),getReferenceNodes:t(()=>jn,`getReferenceNodes`),hasContainerOfType:t(()=>On,`hasContainerOfType`),linkContentToContainer:t(()=>En,`linkContentToContainer`),streamAllContents:t(()=>Nn,`streamAllContents`),streamAst:t(()=>Pn,`streamAst`),streamContents:t(()=>Mn,`streamContents`),streamReferences:t(()=>In,`streamReferences`)});function En(e,t={}){for(let[n,r]of Object.entries(e))n.startsWith(`$`)||(Array.isArray(r)?r.forEach((r,i)=>{M(r)&&(r.$container=e,r.$containerProperty=n,r.$containerIndex=i,t.deep&&En(r,t))}):M(r)&&(r.$container=e,r.$containerProperty=n,t.deep&&En(r,t)))}t(En,`linkContentToContainer`),c(En,`linkContentToContainer`);function Dn(e,t){let n=e;for(;n;){if(t(n))return n;n=n.$container}}t(Dn,`getContainerOfType`),c(Dn,`getContainerOfType`);function On(e,t){let n=e;for(;n;){if(t(n))return!0;n=n.$container}return!1}t(On,`hasContainerOfType`),c(On,`hasContainerOfType`);function kn(e){let t=An(e).$document;if(!t)throw Error(`AST node has no document.`);return t}t(kn,`getDocument`),c(kn,`getDocument`);function An(e){for(;e.$container;)e=e.$container;return e}t(An,`findRootNode`),c(An,`findRootNode`);function jn(e){return un(e)?e.ref?[e.ref]:[]:dn(e)?e.items.map(e=>e.ref):[]}t(jn,`getReferenceNodes`),c(jn,`getReferenceNodes`);function Mn(e,t){if(!e)throw Error(`Node must be an AstNode.`);let n=t?.range;return new vn(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndexMn(e,t))}t(Nn,`streamAllContents`),c(Nn,`streamAllContents`);function Pn(e,t){if(!e)throw Error(`Root node must be an AstNode.`);return t?.range&&!Fn(e,t.range)?new Cn(e,()=>[]):new Cn(e,e=>Mn(e,t),{includeRoot:!0})}t(Pn,`streamAst`),c(Pn,`streamAst`);function Fn(e,t){if(!t)return!0;let n=e.$cstNode?.range;return n?Gi(n,t):!1}t(Fn,`isAstNodeInRange`),c(Fn,`isAstNodeInRange`);function In(e){return new vn(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndexHn,`AbstractElement`),AbstractParserRule:t(()=>Wn,`AbstractParserRule`),AbstractRule:t(()=>Kn,`AbstractRule`),AbstractType:t(()=>Jn,`AbstractType`),Action:t(()=>Xn,`Action`),Alternatives:t(()=>Qn,`Alternatives`),ArrayLiteral:t(()=>er,`ArrayLiteral`),ArrayType:t(()=>nr,`ArrayType`),Assignment:t(()=>ir,`Assignment`),BooleanLiteral:t(()=>or,`BooleanLiteral`),CharacterRange:t(()=>cr,`CharacterRange`),Condition:t(()=>ur,`Condition`),Conjunction:t(()=>fr,`Conjunction`),CrossReference:t(()=>mr,`CrossReference`),Disjunction:t(()=>gr,`Disjunction`),EndOfFile:t(()=>vr,`EndOfFile`),Grammar:t(()=>br,`Grammar`),GrammarImport:t(()=>Sr,`GrammarImport`),Group:t(()=>wr,`Group`),InferredType:t(()=>Er,`InferredType`),InfixRule:t(()=>Or,`InfixRule`),InfixRuleOperatorList:t(()=>Ar,`InfixRuleOperatorList`),InfixRuleOperators:t(()=>Mr,`InfixRuleOperators`),Interface:t(()=>Pr,`Interface`),Keyword:t(()=>Ir,`Keyword`),LangiumGrammarAstReflection:t(()=>Ii,`LangiumGrammarAstReflection`),LangiumGrammarTerminals:t(()=>Vn,`LangiumGrammarTerminals`),NamedArgument:t(()=>Rr,`NamedArgument`),NegatedToken:t(()=>Br,`NegatedToken`),Negation:t(()=>Hr,`Negation`),NumberLiteral:t(()=>Wr,`NumberLiteral`),Parameter:t(()=>Kr,`Parameter`),ParameterReference:t(()=>Jr,`ParameterReference`),ParserRule:t(()=>Xr,`ParserRule`),ReferenceType:t(()=>Qr,`ReferenceType`),RegexToken:t(()=>ei,`RegexToken`),ReturnType:t(()=>ni,`ReturnType`),RuleCall:t(()=>ii,`RuleCall`),SimpleType:t(()=>oi,`SimpleType`),StringLiteral:t(()=>ci,`StringLiteral`),TerminalAlternatives:t(()=>ui,`TerminalAlternatives`),TerminalElement:t(()=>fi,`TerminalElement`),TerminalGroup:t(()=>mi,`TerminalGroup`),TerminalRule:t(()=>gi,`TerminalRule`),TerminalRuleCall:t(()=>vi,`TerminalRuleCall`),Type:t(()=>bi,`Type`),TypeAttribute:t(()=>Si,`TypeAttribute`),TypeDefinition:t(()=>wi,`TypeDefinition`),UnionType:t(()=>Ei,`UnionType`),UnorderedGroup:t(()=>Oi,`UnorderedGroup`),UntilToken:t(()=>Ai,`UntilToken`),ValueLiteral:t(()=>Mi,`ValueLiteral`),Wildcard:t(()=>Pi,`Wildcard`),isAbstractElement:t(()=>Un,`isAbstractElement`),isAbstractParserRule:t(()=>Gn,`isAbstractParserRule`),isAbstractRule:t(()=>qn,`isAbstractRule`),isAbstractType:t(()=>Yn,`isAbstractType`),isAction:t(()=>Zn,`isAction`),isAlternatives:t(()=>$n,`isAlternatives`),isArrayLiteral:t(()=>tr,`isArrayLiteral`),isArrayType:t(()=>rr,`isArrayType`),isAssignment:t(()=>ar,`isAssignment`),isBooleanLiteral:t(()=>sr,`isBooleanLiteral`),isCharacterRange:t(()=>lr,`isCharacterRange`),isCondition:t(()=>dr,`isCondition`),isConjunction:t(()=>pr,`isConjunction`),isCrossReference:t(()=>hr,`isCrossReference`),isDisjunction:t(()=>_r,`isDisjunction`),isEndOfFile:t(()=>yr,`isEndOfFile`),isGrammar:t(()=>xr,`isGrammar`),isGrammarImport:t(()=>Cr,`isGrammarImport`),isGroup:t(()=>Tr,`isGroup`),isInferredType:t(()=>Dr,`isInferredType`),isInfixRule:t(()=>kr,`isInfixRule`),isInfixRuleOperatorList:t(()=>jr,`isInfixRuleOperatorList`),isInfixRuleOperators:t(()=>Nr,`isInfixRuleOperators`),isInterface:t(()=>Fr,`isInterface`),isKeyword:t(()=>Lr,`isKeyword`),isNamedArgument:t(()=>zr,`isNamedArgument`),isNegatedToken:t(()=>Vr,`isNegatedToken`),isNegation:t(()=>Ur,`isNegation`),isNumberLiteral:t(()=>Gr,`isNumberLiteral`),isParameter:t(()=>qr,`isParameter`),isParameterReference:t(()=>Yr,`isParameterReference`),isParserRule:t(()=>Zr,`isParserRule`),isReferenceType:t(()=>$r,`isReferenceType`),isRegexToken:t(()=>ti,`isRegexToken`),isReturnType:t(()=>ri,`isReturnType`),isRuleCall:t(()=>ai,`isRuleCall`),isSimpleType:t(()=>si,`isSimpleType`),isStringLiteral:t(()=>li,`isStringLiteral`),isTerminalAlternatives:t(()=>di,`isTerminalAlternatives`),isTerminalElement:t(()=>pi,`isTerminalElement`),isTerminalGroup:t(()=>hi,`isTerminalGroup`),isTerminalRule:t(()=>_i,`isTerminalRule`),isTerminalRuleCall:t(()=>yi,`isTerminalRuleCall`),isType:t(()=>xi,`isType`),isTypeAttribute:t(()=>Ci,`isTypeAttribute`),isTypeDefinition:t(()=>Ti,`isTypeDefinition`),isUnionType:t(()=>Di,`isUnionType`),isUnorderedGroup:t(()=>ki,`isUnorderedGroup`),isUntilToken:t(()=>ji,`isUntilToken`),isValueLiteral:t(()=>Ni,`isValueLiteral`),isWildcard:t(()=>Fi,`isWildcard`),reflection:t(()=>P,`reflection`)});var Vn={ID:/\^?[_a-zA-Z][\w_]*/,STRING:/"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/,NUMBER:/NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity)/,RegexLiteral:/\/(?![*+?])(?:[^\r\n\[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*\])+\/[a-z]*/,WS:/\s+/,ML_COMMENT:/\/\*[\s\S]*?\*\//,SL_COMMENT:/\/\/[^\n\r]*/},Hn={$type:`AbstractElement`,cardinality:`cardinality`};function Un(e){return P.isInstance(e,Hn.$type)}t(Un,`isAbstractElement`),c(Un,`isAbstractElement`);var Wn={$type:`AbstractParserRule`};function Gn(e){return P.isInstance(e,Wn.$type)}t(Gn,`isAbstractParserRule`),c(Gn,`isAbstractParserRule`);var Kn={$type:`AbstractRule`};function qn(e){return P.isInstance(e,Kn.$type)}t(qn,`isAbstractRule`),c(qn,`isAbstractRule`);var Jn={$type:`AbstractType`};function Yn(e){return P.isInstance(e,Jn.$type)}t(Yn,`isAbstractType`),c(Yn,`isAbstractType`);var Xn={$type:`Action`,cardinality:`cardinality`,feature:`feature`,inferredType:`inferredType`,operator:`operator`,type:`type`};function Zn(e){return P.isInstance(e,Xn.$type)}t(Zn,`isAction`),c(Zn,`isAction`);var Qn={$type:`Alternatives`,cardinality:`cardinality`,elements:`elements`};function $n(e){return P.isInstance(e,Qn.$type)}t($n,`isAlternatives`),c($n,`isAlternatives`);var er={$type:`ArrayLiteral`,elements:`elements`};function tr(e){return P.isInstance(e,er.$type)}t(tr,`isArrayLiteral`),c(tr,`isArrayLiteral`);var nr={$type:`ArrayType`,elementType:`elementType`};function rr(e){return P.isInstance(e,nr.$type)}t(rr,`isArrayType`),c(rr,`isArrayType`);var ir={$type:`Assignment`,cardinality:`cardinality`,feature:`feature`,operator:`operator`,predicate:`predicate`,terminal:`terminal`};function ar(e){return P.isInstance(e,ir.$type)}t(ar,`isAssignment`),c(ar,`isAssignment`);var or={$type:`BooleanLiteral`,true:`true`};function sr(e){return P.isInstance(e,or.$type)}t(sr,`isBooleanLiteral`),c(sr,`isBooleanLiteral`);var cr={$type:`CharacterRange`,cardinality:`cardinality`,left:`left`,lookahead:`lookahead`,parenthesized:`parenthesized`,right:`right`};function lr(e){return P.isInstance(e,cr.$type)}t(lr,`isCharacterRange`),c(lr,`isCharacterRange`);var ur={$type:`Condition`};function dr(e){return P.isInstance(e,ur.$type)}t(dr,`isCondition`),c(dr,`isCondition`);var fr={$type:`Conjunction`,left:`left`,right:`right`};function pr(e){return P.isInstance(e,fr.$type)}t(pr,`isConjunction`),c(pr,`isConjunction`);var mr={$type:`CrossReference`,cardinality:`cardinality`,deprecatedSyntax:`deprecatedSyntax`,isMulti:`isMulti`,terminal:`terminal`,type:`type`};function hr(e){return P.isInstance(e,mr.$type)}t(hr,`isCrossReference`),c(hr,`isCrossReference`);var gr={$type:`Disjunction`,left:`left`,right:`right`};function _r(e){return P.isInstance(e,gr.$type)}t(_r,`isDisjunction`),c(_r,`isDisjunction`);var vr={$type:`EndOfFile`,cardinality:`cardinality`};function yr(e){return P.isInstance(e,vr.$type)}t(yr,`isEndOfFile`),c(yr,`isEndOfFile`);var br={$type:`Grammar`,imports:`imports`,interfaces:`interfaces`,isDeclared:`isDeclared`,name:`name`,rules:`rules`,types:`types`};function xr(e){return P.isInstance(e,br.$type)}t(xr,`isGrammar`),c(xr,`isGrammar`);var Sr={$type:`GrammarImport`,path:`path`};function Cr(e){return P.isInstance(e,Sr.$type)}t(Cr,`isGrammarImport`),c(Cr,`isGrammarImport`);var wr={$type:`Group`,cardinality:`cardinality`,elements:`elements`,guardCondition:`guardCondition`,predicate:`predicate`};function Tr(e){return P.isInstance(e,wr.$type)}t(Tr,`isGroup`),c(Tr,`isGroup`);var Er={$type:`InferredType`,name:`name`};function Dr(e){return P.isInstance(e,Er.$type)}t(Dr,`isInferredType`),c(Dr,`isInferredType`);var Or={$type:`InfixRule`,call:`call`,dataType:`dataType`,inferredType:`inferredType`,name:`name`,operators:`operators`,parameters:`parameters`,returnType:`returnType`};function kr(e){return P.isInstance(e,Or.$type)}t(kr,`isInfixRule`),c(kr,`isInfixRule`);var Ar={$type:`InfixRuleOperatorList`,associativity:`associativity`,operators:`operators`};function jr(e){return P.isInstance(e,Ar.$type)}t(jr,`isInfixRuleOperatorList`),c(jr,`isInfixRuleOperatorList`);var Mr={$type:`InfixRuleOperators`,precedences:`precedences`};function Nr(e){return P.isInstance(e,Mr.$type)}t(Nr,`isInfixRuleOperators`),c(Nr,`isInfixRuleOperators`);var Pr={$type:`Interface`,attributes:`attributes`,name:`name`,superTypes:`superTypes`};function Fr(e){return P.isInstance(e,Pr.$type)}t(Fr,`isInterface`),c(Fr,`isInterface`);var Ir={$type:`Keyword`,cardinality:`cardinality`,predicate:`predicate`,value:`value`};function Lr(e){return P.isInstance(e,Ir.$type)}t(Lr,`isKeyword`),c(Lr,`isKeyword`);var Rr={$type:`NamedArgument`,calledByName:`calledByName`,parameter:`parameter`,value:`value`};function zr(e){return P.isInstance(e,Rr.$type)}t(zr,`isNamedArgument`),c(zr,`isNamedArgument`);var Br={$type:`NegatedToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,terminal:`terminal`};function Vr(e){return P.isInstance(e,Br.$type)}t(Vr,`isNegatedToken`),c(Vr,`isNegatedToken`);var Hr={$type:`Negation`,value:`value`};function Ur(e){return P.isInstance(e,Hr.$type)}t(Ur,`isNegation`),c(Ur,`isNegation`);var Wr={$type:`NumberLiteral`,value:`value`};function Gr(e){return P.isInstance(e,Wr.$type)}t(Gr,`isNumberLiteral`),c(Gr,`isNumberLiteral`);var Kr={$type:`Parameter`,name:`name`};function qr(e){return P.isInstance(e,Kr.$type)}t(qr,`isParameter`),c(qr,`isParameter`);var Jr={$type:`ParameterReference`,parameter:`parameter`};function Yr(e){return P.isInstance(e,Jr.$type)}t(Yr,`isParameterReference`),c(Yr,`isParameterReference`);var Xr={$type:`ParserRule`,dataType:`dataType`,definition:`definition`,entry:`entry`,fragment:`fragment`,inferredType:`inferredType`,name:`name`,parameters:`parameters`,returnType:`returnType`};function Zr(e){return P.isInstance(e,Xr.$type)}t(Zr,`isParserRule`),c(Zr,`isParserRule`);var Qr={$type:`ReferenceType`,isMulti:`isMulti`,referenceType:`referenceType`};function $r(e){return P.isInstance(e,Qr.$type)}t($r,`isReferenceType`),c($r,`isReferenceType`);var ei={$type:`RegexToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,regex:`regex`};function ti(e){return P.isInstance(e,ei.$type)}t(ti,`isRegexToken`),c(ti,`isRegexToken`);var ni={$type:`ReturnType`,name:`name`};function ri(e){return P.isInstance(e,ni.$type)}t(ri,`isReturnType`),c(ri,`isReturnType`);var ii={$type:`RuleCall`,arguments:`arguments`,cardinality:`cardinality`,predicate:`predicate`,rule:`rule`};function ai(e){return P.isInstance(e,ii.$type)}t(ai,`isRuleCall`),c(ai,`isRuleCall`);var oi={$type:`SimpleType`,primitiveType:`primitiveType`,stringType:`stringType`,typeRef:`typeRef`};function si(e){return P.isInstance(e,oi.$type)}t(si,`isSimpleType`),c(si,`isSimpleType`);var ci={$type:`StringLiteral`,value:`value`};function li(e){return P.isInstance(e,ci.$type)}t(li,`isStringLiteral`),c(li,`isStringLiteral`);var ui={$type:`TerminalAlternatives`,cardinality:`cardinality`,elements:`elements`,lookahead:`lookahead`,parenthesized:`parenthesized`};function di(e){return P.isInstance(e,ui.$type)}t(di,`isTerminalAlternatives`),c(di,`isTerminalAlternatives`);var fi={$type:`TerminalElement`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`};function pi(e){return P.isInstance(e,fi.$type)}t(pi,`isTerminalElement`),c(pi,`isTerminalElement`);var mi={$type:`TerminalGroup`,cardinality:`cardinality`,elements:`elements`,lookahead:`lookahead`,parenthesized:`parenthesized`};function hi(e){return P.isInstance(e,mi.$type)}t(hi,`isTerminalGroup`),c(hi,`isTerminalGroup`);var gi={$type:`TerminalRule`,definition:`definition`,fragment:`fragment`,hidden:`hidden`,name:`name`,type:`type`};function _i(e){return P.isInstance(e,gi.$type)}t(_i,`isTerminalRule`),c(_i,`isTerminalRule`);var vi={$type:`TerminalRuleCall`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,rule:`rule`};function yi(e){return P.isInstance(e,vi.$type)}t(yi,`isTerminalRuleCall`),c(yi,`isTerminalRuleCall`);var bi={$type:`Type`,name:`name`,type:`type`};function xi(e){return P.isInstance(e,bi.$type)}t(xi,`isType`),c(xi,`isType`);var Si={$type:`TypeAttribute`,defaultValue:`defaultValue`,isOptional:`isOptional`,name:`name`,type:`type`};function Ci(e){return P.isInstance(e,Si.$type)}t(Ci,`isTypeAttribute`),c(Ci,`isTypeAttribute`);var wi={$type:`TypeDefinition`};function Ti(e){return P.isInstance(e,wi.$type)}t(Ti,`isTypeDefinition`),c(Ti,`isTypeDefinition`);var Ei={$type:`UnionType`,types:`types`};function Di(e){return P.isInstance(e,Ei.$type)}t(Di,`isUnionType`),c(Di,`isUnionType`);var Oi={$type:`UnorderedGroup`,cardinality:`cardinality`,elements:`elements`};function ki(e){return P.isInstance(e,Oi.$type)}t(ki,`isUnorderedGroup`),c(ki,`isUnorderedGroup`);var Ai={$type:`UntilToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,terminal:`terminal`};function ji(e){return P.isInstance(e,Ai.$type)}t(ji,`isUntilToken`),c(ji,`isUntilToken`);var Mi={$type:`ValueLiteral`};function Ni(e){return P.isInstance(e,Mi.$type)}t(Ni,`isValueLiteral`),c(Ni,`isValueLiteral`);var Pi={$type:`Wildcard`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`};function Fi(e){return P.isInstance(e,Pi.$type)}t(Fi,`isWildcard`),c(Fi,`isWildcard`);var Ii=class extends mn{static{t(this,`LangiumGrammarAstReflection`)}static{c(this,`LangiumGrammarAstReflection`)}constructor(){super(...arguments),this.types={AbstractElement:{name:Hn.$type,properties:{cardinality:{name:Hn.cardinality}},superTypes:[]},AbstractParserRule:{name:Wn.$type,properties:{},superTypes:[Kn.$type,Jn.$type]},AbstractRule:{name:Kn.$type,properties:{},superTypes:[]},AbstractType:{name:Jn.$type,properties:{},superTypes:[]},Action:{name:Xn.$type,properties:{cardinality:{name:Xn.cardinality},feature:{name:Xn.feature},inferredType:{name:Xn.inferredType},operator:{name:Xn.operator},type:{name:Xn.type,referenceType:Jn.$type}},superTypes:[Hn.$type]},Alternatives:{name:Qn.$type,properties:{cardinality:{name:Qn.cardinality},elements:{name:Qn.elements,defaultValue:[]}},superTypes:[Hn.$type]},ArrayLiteral:{name:er.$type,properties:{elements:{name:er.elements,defaultValue:[]}},superTypes:[Mi.$type]},ArrayType:{name:nr.$type,properties:{elementType:{name:nr.elementType}},superTypes:[wi.$type]},Assignment:{name:ir.$type,properties:{cardinality:{name:ir.cardinality},feature:{name:ir.feature},operator:{name:ir.operator},predicate:{name:ir.predicate},terminal:{name:ir.terminal}},superTypes:[Hn.$type]},BooleanLiteral:{name:or.$type,properties:{true:{name:or.true,defaultValue:!1}},superTypes:[ur.$type,Mi.$type]},CharacterRange:{name:cr.$type,properties:{cardinality:{name:cr.cardinality},left:{name:cr.left},lookahead:{name:cr.lookahead},parenthesized:{name:cr.parenthesized,defaultValue:!1},right:{name:cr.right}},superTypes:[fi.$type]},Condition:{name:ur.$type,properties:{},superTypes:[]},Conjunction:{name:fr.$type,properties:{left:{name:fr.left},right:{name:fr.right}},superTypes:[ur.$type]},CrossReference:{name:mr.$type,properties:{cardinality:{name:mr.cardinality},deprecatedSyntax:{name:mr.deprecatedSyntax,defaultValue:!1},isMulti:{name:mr.isMulti,defaultValue:!1},terminal:{name:mr.terminal},type:{name:mr.type,referenceType:Jn.$type}},superTypes:[Hn.$type]},Disjunction:{name:gr.$type,properties:{left:{name:gr.left},right:{name:gr.right}},superTypes:[ur.$type]},EndOfFile:{name:vr.$type,properties:{cardinality:{name:vr.cardinality}},superTypes:[Hn.$type]},Grammar:{name:br.$type,properties:{imports:{name:br.imports,defaultValue:[]},interfaces:{name:br.interfaces,defaultValue:[]},isDeclared:{name:br.isDeclared,defaultValue:!1},name:{name:br.name},rules:{name:br.rules,defaultValue:[]},types:{name:br.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:Sr.$type,properties:{path:{name:Sr.path}},superTypes:[]},Group:{name:wr.$type,properties:{cardinality:{name:wr.cardinality},elements:{name:wr.elements,defaultValue:[]},guardCondition:{name:wr.guardCondition},predicate:{name:wr.predicate}},superTypes:[Hn.$type]},InferredType:{name:Er.$type,properties:{name:{name:Er.name}},superTypes:[Jn.$type]},InfixRule:{name:Or.$type,properties:{call:{name:Or.call},dataType:{name:Or.dataType},inferredType:{name:Or.inferredType},name:{name:Or.name},operators:{name:Or.operators},parameters:{name:Or.parameters,defaultValue:[]},returnType:{name:Or.returnType,referenceType:Jn.$type}},superTypes:[Wn.$type]},InfixRuleOperatorList:{name:Ar.$type,properties:{associativity:{name:Ar.associativity},operators:{name:Ar.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:Mr.$type,properties:{precedences:{name:Mr.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:Pr.$type,properties:{attributes:{name:Pr.attributes,defaultValue:[]},name:{name:Pr.name},superTypes:{name:Pr.superTypes,defaultValue:[],referenceType:Jn.$type}},superTypes:[Jn.$type]},Keyword:{name:Ir.$type,properties:{cardinality:{name:Ir.cardinality},predicate:{name:Ir.predicate},value:{name:Ir.value}},superTypes:[Hn.$type]},NamedArgument:{name:Rr.$type,properties:{calledByName:{name:Rr.calledByName,defaultValue:!1},parameter:{name:Rr.parameter,referenceType:Kr.$type},value:{name:Rr.value}},superTypes:[]},NegatedToken:{name:Br.$type,properties:{cardinality:{name:Br.cardinality},lookahead:{name:Br.lookahead},parenthesized:{name:Br.parenthesized,defaultValue:!1},terminal:{name:Br.terminal}},superTypes:[fi.$type]},Negation:{name:Hr.$type,properties:{value:{name:Hr.value}},superTypes:[ur.$type]},NumberLiteral:{name:Wr.$type,properties:{value:{name:Wr.value}},superTypes:[Mi.$type]},Parameter:{name:Kr.$type,properties:{name:{name:Kr.name}},superTypes:[]},ParameterReference:{name:Jr.$type,properties:{parameter:{name:Jr.parameter,referenceType:Kr.$type}},superTypes:[ur.$type]},ParserRule:{name:Xr.$type,properties:{dataType:{name:Xr.dataType},definition:{name:Xr.definition},entry:{name:Xr.entry,defaultValue:!1},fragment:{name:Xr.fragment,defaultValue:!1},inferredType:{name:Xr.inferredType},name:{name:Xr.name},parameters:{name:Xr.parameters,defaultValue:[]},returnType:{name:Xr.returnType,referenceType:Jn.$type}},superTypes:[Wn.$type]},ReferenceType:{name:Qr.$type,properties:{isMulti:{name:Qr.isMulti,defaultValue:!1},referenceType:{name:Qr.referenceType}},superTypes:[wi.$type]},RegexToken:{name:ei.$type,properties:{cardinality:{name:ei.cardinality},lookahead:{name:ei.lookahead},parenthesized:{name:ei.parenthesized,defaultValue:!1},regex:{name:ei.regex}},superTypes:[fi.$type]},ReturnType:{name:ni.$type,properties:{name:{name:ni.name}},superTypes:[]},RuleCall:{name:ii.$type,properties:{arguments:{name:ii.arguments,defaultValue:[]},cardinality:{name:ii.cardinality},predicate:{name:ii.predicate},rule:{name:ii.rule,referenceType:Kn.$type}},superTypes:[Hn.$type]},SimpleType:{name:oi.$type,properties:{primitiveType:{name:oi.primitiveType},stringType:{name:oi.stringType},typeRef:{name:oi.typeRef,referenceType:Jn.$type}},superTypes:[wi.$type]},StringLiteral:{name:ci.$type,properties:{value:{name:ci.value}},superTypes:[Mi.$type]},TerminalAlternatives:{name:ui.$type,properties:{cardinality:{name:ui.cardinality},elements:{name:ui.elements,defaultValue:[]},lookahead:{name:ui.lookahead},parenthesized:{name:ui.parenthesized,defaultValue:!1}},superTypes:[fi.$type]},TerminalElement:{name:fi.$type,properties:{cardinality:{name:fi.cardinality},lookahead:{name:fi.lookahead},parenthesized:{name:fi.parenthesized,defaultValue:!1}},superTypes:[Hn.$type]},TerminalGroup:{name:mi.$type,properties:{cardinality:{name:mi.cardinality},elements:{name:mi.elements,defaultValue:[]},lookahead:{name:mi.lookahead},parenthesized:{name:mi.parenthesized,defaultValue:!1}},superTypes:[fi.$type]},TerminalRule:{name:gi.$type,properties:{definition:{name:gi.definition},fragment:{name:gi.fragment,defaultValue:!1},hidden:{name:gi.hidden,defaultValue:!1},name:{name:gi.name},type:{name:gi.type}},superTypes:[Kn.$type]},TerminalRuleCall:{name:vi.$type,properties:{cardinality:{name:vi.cardinality},lookahead:{name:vi.lookahead},parenthesized:{name:vi.parenthesized,defaultValue:!1},rule:{name:vi.rule,referenceType:gi.$type}},superTypes:[fi.$type]},Type:{name:bi.$type,properties:{name:{name:bi.name},type:{name:bi.type}},superTypes:[Jn.$type]},TypeAttribute:{name:Si.$type,properties:{defaultValue:{name:Si.defaultValue},isOptional:{name:Si.isOptional,defaultValue:!1},name:{name:Si.name},type:{name:Si.type}},superTypes:[]},TypeDefinition:{name:wi.$type,properties:{},superTypes:[]},UnionType:{name:Ei.$type,properties:{types:{name:Ei.types,defaultValue:[]}},superTypes:[wi.$type]},UnorderedGroup:{name:Oi.$type,properties:{cardinality:{name:Oi.cardinality},elements:{name:Oi.elements,defaultValue:[]}},superTypes:[Hn.$type]},UntilToken:{name:Ai.$type,properties:{cardinality:{name:Ai.cardinality},lookahead:{name:Ai.lookahead},parenthesized:{name:Ai.parenthesized,defaultValue:!1},terminal:{name:Ai.terminal}},superTypes:[fi.$type]},ValueLiteral:{name:Mi.$type,properties:{},superTypes:[]},Wildcard:{name:Pi.$type,properties:{cardinality:{name:Pi.cardinality},lookahead:{name:Pi.lookahead},parenthesized:{name:Pi.parenthesized,defaultValue:!1}},superTypes:[fi.$type]}}}},P=new Ii;function Li(e){let t=e,n=!1;for(;t;){let e=Dn(t.grammarSource,Zr);if(e&&e.dataType)t=t.container,n=!0;else if(n)return t;else return}}t(Li,`getDatatypeNode`),c(Li,`getDatatypeNode`);function Ri(e){return new Cn(e,e=>hn(e)?e.content:[],{includeRoot:!0})}t(Ri,`streamCst`),c(Ri,`streamCst`);function zi(e){return Ri(e).filter(gn)}t(zi,`flattenCst`),c(zi,`flattenCst`);function Bi(e,t){for(;e.container;)if(e=e.container,e===t)return!0;return!1}t(Bi,`isChildNode`),c(Bi,`isChildNode`);function Vi(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}t(Vi,`tokenToRange`),c(Vi,`tokenToRange`);function Hi(e){if(!e)return;let{offset:t,end:n,range:r}=e;return{range:r,offset:t,end:n,length:n-t}}t(Hi,`toDocumentSegment`),c(Hi,`toDocumentSegment`);var Ui;(function(e){e[e.Before=0]=`Before`,e[e.After=1]=`After`,e[e.OverlapFront=2]=`OverlapFront`,e[e.OverlapBack=3]=`OverlapBack`,e[e.Inside=4]=`Inside`,e[e.Outside=5]=`Outside`})(Ui||={});function Wi(e,t){if(e.end.linet.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character)return Ui.After;let n=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,r=e.end.lineUi.After}t(Gi,`inRange`),c(Gi,`inRange`);var Ki=/^[\w\p{L}]$/u;function qi(e,t,n=Ki){if(e){if(t>0){let r=t-e.offset,i=e.text.charAt(r);n.test(i)||t--}return Xi(e,t)}}t(qi,`findDeclarationNodeAtOffset`),c(qi,`findDeclarationNodeAtOffset`);function Ji(e,t){if(e){let n=$i(e,!0);if(n&&Yi(n,t))return n;if(_n(e)){let n=e.content.findIndex(e=>!e.hidden);for(let r=n-1;r>=0;r--){let n=e.content[r];if(Yi(n,t))return n}}}}t(Ji,`findCommentNode`),c(Ji,`findCommentNode`);function Yi(e,t){return gn(e)&&t.includes(e.tokenType.name)}t(Yi,`isCommentNode`),c(Yi,`isCommentNode`);function Xi(e,t){if(gn(e))return e;if(hn(e)){let n=Qi(e,t,!1);if(n)return Xi(n,t)}}t(Xi,`findLeafNodeAtOffset`),c(Xi,`findLeafNodeAtOffset`);function Zi(e,t){if(gn(e))return e;if(hn(e)){let n=Qi(e,t,!0);if(n)return Zi(n,t)}}t(Zi,`findLeafNodeBeforeOffset`),c(Zi,`findLeafNodeBeforeOffset`);function Qi(e,t,n){let r=0,i=e.content.length-1,a;for(;r<=i;){let o=Math.floor((r+i)/2),s=e.content[o];if(s.offset<=t&&s.end>t)return s;s.end<=t?(a=n?s:void 0,r=o+1):i=o-1}return a}t(Qi,`binarySearch`),c(Qi,`binarySearch`);function $i(e,t=!0){for(;e.container;){let n=e.container,r=n.content.indexOf(e);for(;r>0;){r--;let e=n.content[r];if(t||!e.hidden)return e}e=n}}t($i,`getPreviousNode`),c($i,`getPreviousNode`);function ea(e,t=!0){for(;e.container;){let n=e.container,r=n.content.indexOf(e),i=n.content.length-1;for(;rKa,`findAssignment`),findNameAssignment:t(()=>qa,`findNameAssignment`),findNodeForKeyword:t(()=>Wa,`findNodeForKeyword`),findNodeForProperty:t(()=>Va,`findNodeForProperty`),findNodesForKeyword:t(()=>Ua,`findNodesForKeyword`),findNodesForKeywordInternal:t(()=>Ga,`findNodesForKeywordInternal`),findNodesForProperty:t(()=>Ba,`findNodesForProperty`),getActionAtElement:t(()=>Ya,`getActionAtElement`),getActionType:t(()=>ao,`getActionType`),getAllReachableRules:t(()=>Fa,`getAllReachableRules`),getAllRulesUsedForCrossReferences:t(()=>La,`getAllRulesUsedForCrossReferences`),getCrossReferenceTerminal:t(()=>Ra,`getCrossReferenceTerminal`),getEntryRule:t(()=>Na,`getEntryRule`),getExplicitRuleType:t(()=>ro,`getExplicitRuleType`),getHiddenRules:t(()=>Pa,`getHiddenRules`),getRuleType:t(()=>so,`getRuleType`),getRuleTypeName:t(()=>oo,`getRuleTypeName`),getTypeName:t(()=>io,`getTypeName`),isArrayCardinality:t(()=>Za,`isArrayCardinality`),isArrayOperator:t(()=>Qa,`isArrayOperator`),isCommentTerminal:t(()=>za,`isCommentTerminal`),isDataType:t(()=>to,`isDataType`),isDataTypeRule:t(()=>$a,`isDataTypeRule`),isOptionalCardinality:t(()=>Xa,`isOptionalCardinality`),terminalRegex:t(()=>co,`terminalRegex`)});var oa=class extends Error{static{t(this,`ErrorWithLocation`)}static{c(this,`ErrorWithLocation`)}constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}};function sa(e,t=`Error: Got unexpected value.`){throw Error(t)}t(sa,`assertUnreachable`),c(sa,`assertUnreachable`);function ca(e,t=`Error: Condition is violated.`){if(!e)throw Error(t)}t(ca,`assertCondition`),c(ca,`assertCondition`);var la={};d(la,{NEWLINE_REGEXP:t(()=>Ca,`NEWLINE_REGEXP`),escapeRegExp:t(()=>Aa,`escapeRegExp`),getTerminalParts:t(()=>Ea,`getTerminalParts`),isMultilineComment:t(()=>Da,`isMultilineComment`),isWhitespace:t(()=>ka,`isWhitespace`),partialMatches:t(()=>ja,`partialMatches`),partialRegExp:t(()=>Ma,`partialRegExp`),whitespaceCharacters:t(()=>Oa,`whitespaceCharacters`)});function F(e){return e.charCodeAt(0)}t(F,`cc`),c(F,`cc`);function ua(e,t){Array.isArray(e)?e.forEach(function(e){t.push(e)}):t.push(e)}t(ua,`insertToSet`),c(ua,`insertToSet`);function da(e,t){if(e[t]===!0)throw`duplicate flag `+t;e[t],e[t]=!0}t(da,`addFlag`),c(da,`addFlag`);function fa(e){if(e===void 0)throw Error(`Internal Error - Should never get here!`);return!0}t(fa,`ASSERT_EXISTS`),c(fa,`ASSERT_EXISTS`);function pa(){throw Error(`Internal Error - Should never get here!`)}t(pa,`ASSERT_NEVER_REACH_HERE`),c(pa,`ASSERT_NEVER_REACH_HERE`);function ma(e){return e.type===`Character`}t(ma,`isCharacter`),c(ma,`isCharacter`);var ha=[];for(let e=F(`0`);e<=F(`9`);e++)ha.push(e);var ga=[F(`_`)].concat(ha);for(let e=F(`a`);e<=F(`z`);e++)ga.push(e);for(let e=F(`A`);e<=F(`Z`);e++)ga.push(e);var _a=[F(` `),F(`\f`),F(` +`),F(`\r`),F(` `),F(`\v`),F(` `),F(`\xA0`),F(` `),F(` `),F(` `),F(` `),F(` `),F(` `),F(` `),F(` `),F(` `),F(` `),F(` `),F(` `),F(`\u2028`),F(`\u2029`),F(` `),F(` `),F(` `),F(``)],va=/[0-9a-fA-F]/,ya=/[0-9]/,ba=/[1-9]/,xa=class{static{t(this,`RegExpParser`)}static{c(this,`RegExpParser`)}constructor(){this.idx=0,this.input=``,this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar(`/`);let t=this.disjunction();this.consumeChar(`/`);let n={type:`Flags`,loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case`g`:da(n,`global`);break;case`i`:da(n,`ignoreCase`);break;case`m`:da(n,`multiLine`);break;case`u`:da(n,`unicode`);break;case`y`:da(n,`sticky`);break}if(this.idx!==this.input.length)throw Error(`Redundant input: `+this.input.substring(this.idx));return{type:`Pattern`,flags:n,value:t,loc:this.loc(0)}}disjunction(){let e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()===`|`;)this.consumeChar(`|`),e.push(this.alternative());return{type:`Disjunction`,value:e,loc:this.loc(t)}}alternative(){let e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:`Alternative`,value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let e=this.idx;switch(this.popChar()){case`^`:return{type:`StartAnchor`,loc:this.loc(e)};case`$`:return{type:`EndAnchor`,loc:this.loc(e)};case`\\`:switch(this.popChar()){case`b`:return{type:`WordBoundary`,loc:this.loc(e)};case`B`:return{type:`NonWordBoundary`,loc:this.loc(e)}}throw Error(`Invalid Assertion Escape`);case`(`:this.consumeChar(`?`);let t;switch(this.popChar()){case`=`:t=`Lookahead`;break;case`!`:t=`NegativeLookahead`;break;case`<`:switch(this.popChar()){case`=`:t=`Lookbehind`;break;case`!`:t=`NegativeLookbehind`}break}fa(t);let n=this.disjunction();return this.consumeChar(`)`),{type:t,value:n,loc:this.loc(e)}}return pa()}quantifier(e=!1){let t,n=this.idx;switch(this.popChar()){case`*`:t={atLeast:0,atMost:1/0};break;case`+`:t={atLeast:1,atMost:1/0};break;case`?`:t={atLeast:0,atMost:1};break;case`{`:let n=this.integerIncludingZero();switch(this.popChar()){case`}`:t={atLeast:n,atMost:n};break;case`,`:let e;this.isDigit()?(e=this.integerIncludingZero(),t={atLeast:n,atMost:e}):t={atLeast:n,atMost:1/0},this.consumeChar(`}`);break}if(e===!0&&t===void 0)return;fa(t);break}if(!(e===!0&&t===void 0)&&fa(t))return this.peekChar(0)===`?`?(this.consumeChar(`?`),t.greedy=!1):t.greedy=!0,t.type=`Quantifier`,t.loc=this.loc(n),t}atom(){let e,t=this.idx;switch(this.peekChar()){case`.`:e=this.dotAll();break;case`\\`:e=this.atomEscape();break;case`[`:e=this.characterClass();break;case`(`:e=this.group();break}return e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),fa(e)?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):pa()}dotAll(){return this.consumeChar(`.`),{type:`Set`,complement:!0,value:[F(` +`),F(`\r`),F(`\u2028`),F(`\u2029`)]}}atomEscape(){switch(this.consumeChar(`\\`),this.peekChar()){case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:return this.decimalEscapeAtom();case`d`:case`D`:case`s`:case`S`:case`w`:case`W`:return this.characterClassEscape();case`f`:case`n`:case`r`:case`t`:case`v`:return this.controlEscapeAtom();case`c`:return this.controlLetterEscapeAtom();case`0`:return this.nulCharacterAtom();case`x`:return this.hexEscapeSequenceAtom();case`u`:return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:`GroupBackReference`,value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case`d`:e=ha;break;case`D`:e=ha,t=!0;break;case`s`:e=_a;break;case`S`:e=_a,t=!0;break;case`w`:e=ga;break;case`W`:e=ga,t=!0;break}return fa(e)?{type:`Set`,value:e,complement:t}:pa()}controlEscapeAtom(){let e;switch(this.popChar()){case`f`:e=F(`\f`);break;case`n`:e=F(` +`);break;case`r`:e=F(`\r`);break;case`t`:e=F(` `);break;case`v`:e=F(`\v`);break}return fa(e)?{type:`Character`,value:e}:pa()}controlLetterEscapeAtom(){this.consumeChar(`c`);let e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error(`Invalid `);return{type:`Character`,value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar(`0`),{type:`Character`,value:F(`\0`)}}hexEscapeSequenceAtom(){return this.consumeChar(`x`),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar(`u`),this.parseHexDigits(4)}identityEscapeAtom(){return{type:`Character`,value:F(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case` +`:case`\r`:case`\u2028`:case`\u2029`:case`\\`:case`]`:throw Error(`TBD`);default:return{type:`Character`,value:F(this.popChar())}}}characterClass(){let e=[],t=!1;for(this.consumeChar(`[`),this.peekChar(0)===`^`&&(this.consumeChar(`^`),t=!0);this.isClassAtom();){let t=this.classAtom();if(t.type,ma(t)&&this.isRangeDash()){this.consumeChar(`-`);let n=this.classAtom();if(n.type,ma(n)){if(n.value=this.input.length)throw Error(`Unexpected end of input`);this.idx++}loc(e){return{begin:e,end:this.idx}}},Sa=class{static{t(this,`BaseRegExpVisitor`)}static{c(this,`BaseRegExpVisitor`)}visitChildren(e){for(let t in e){let n=e[t];e.hasOwnProperty(t)&&(n.type===void 0?Array.isArray(n)&&n.forEach(e=>{this.visit(e)},this):this.visit(n))}}visit(e){switch(e.type){case`Pattern`:this.visitPattern(e);break;case`Flags`:this.visitFlags(e);break;case`Disjunction`:this.visitDisjunction(e);break;case`Alternative`:this.visitAlternative(e);break;case`StartAnchor`:this.visitStartAnchor(e);break;case`EndAnchor`:this.visitEndAnchor(e);break;case`WordBoundary`:this.visitWordBoundary(e);break;case`NonWordBoundary`:this.visitNonWordBoundary(e);break;case`Lookahead`:this.visitLookahead(e);break;case`NegativeLookahead`:this.visitNegativeLookahead(e);break;case`Lookbehind`:this.visitLookbehind(e);break;case`NegativeLookbehind`:this.visitNegativeLookbehind(e);break;case`Character`:this.visitCharacter(e);break;case`Set`:this.visitSet(e);break;case`Group`:this.visitGroup(e);break;case`GroupBackReference`:this.visitGroupBackReference(e);break;case`Quantifier`:this.visitQuantifier(e);break}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitLookbehind(e){}visitNegativeLookbehind(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}},Ca=/\r?\n/gm,wa=new xa,Ta=new class extends Sa{static{t(this,`TerminalRegExpVisitor`)}static{c(this,`TerminalRegExpVisitor`)}constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join(``)}reset(e){this.multiline=!1,this.regex=e,this.startRegexp=``,this.isStarting=!0,this.endRegexpStack=[]}visitGroup(e){e.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(e){let t=String.fromCharCode(e.value);if(!this.multiline&&t===` +`&&(this.multiline=!0),e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let e=Aa(t);this.endRegexpStack.push(e),this.isStarting&&(this.startRegexp+=e)}}visitSet(e){if(!this.multiline){let t=this.regex.substring(e.loc.begin,e.loc.end),n=new RegExp(t);this.multiline=!!` +`.match(n)}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let t=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(t),this.isStarting&&(this.startRegexp+=t)}}visitChildren(e){e.type===`Group`&&e.quantifier||super.visitChildren(e)}};function Ea(e){try{typeof e!=`string`&&(e=e.source),e=`/${e}/`;let t=wa.pattern(e),n=[];for(let r of t.value.value)Ta.reset(e),Ta.visit(r),n.push({start:Ta.startRegexp,end:Ta.endRegex});return n}catch{return[]}}t(Ea,`getTerminalParts`),c(Ea,`getTerminalParts`);function Da(e){try{return typeof e==`string`&&(e=new RegExp(e)),e=e.toString(),Ta.reset(e),Ta.visit(wa.pattern(e)),Ta.multiline}catch{return!1}}t(Da,`isMultilineComment`),c(Da,`isMultilineComment`);var Oa=`\f +\r \v \xA0            \u2028\u2029   `.split(``);function ka(e){let t=typeof e==`string`?new RegExp(e):e;return Oa.some(e=>t.test(e))}t(ka,`isWhitespace`),c(ka,`isWhitespace`);function Aa(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}t(Aa,`escapeRegExp`),c(Aa,`escapeRegExp`);function ja(e,t){let n=Ma(e),r=t.match(n);return!!r&&r[0].length>0}t(ja,`partialMatches`),c(ja,`partialMatches`);function Ma(e){typeof e==`string`&&(e=new RegExp(e));let n=e,r=e.source,i=0;function a(){let e=``,o;function s(t){e+=r.substr(i,t),i+=t}t(s,`appendRaw`),c(s,`appendRaw`);function l(t){e+=`(?:`+r.substr(i,t)+`|$)`,i+=t}for(t(l,`appendOptional`),c(l,`appendOptional`);i`,i)-i+1);break;default:l(2);break}break;case`[`:o=/\[(?:\\.|.)*?\]/g,o.lastIndex=i,o=o.exec(r)||[],l(o[0].length);break;case`|`:case`^`:case`$`:case`*`:case`+`:case`?`:s(1);break;case`{`:o=/\{\d+,?\d*\}/g,o.lastIndex=i,o=o.exec(r),o?s(o[0].length):l(1);break;case`(`:if(r[i+1]===`?`)switch(r[i+2]){case`:`:e+=`(?:`,i+=3,e+=a()+`|$)`;break;case`=`:e+=`(?=`,i+=3,e+=a()+`)`;break;case`!`:o=i,i+=3,a(),e+=r.substr(o,i-o);break;case`<`:switch(r[i+3]){case`=`:case`!`:o=i,i+=4,a(),e+=r.substr(o,i-o);break;default:s(r.indexOf(`>`,i)-i+1),e+=a()+`|$)`;break}break}else s(1),e+=a()+`|$)`;break;case`)`:return++i,e;default:l(1);break}return e}return t(a,`process2`),c(a,`process`),new RegExp(a(),e.flags)}t(Ma,`partialRegExp`),c(Ma,`partialRegExp`);function Na(e){return e.rules.find(e=>Zr(e)&&e.entry)}t(Na,`getEntryRule`),c(Na,`getEntryRule`);function Pa(e){return e.rules.filter(e=>_i(e)&&e.hidden)}t(Pa,`getHiddenRules`),c(Pa,`getHiddenRules`);function Fa(e,t){let n=new Set,r=Na(e);if(!r)return new Set(e.rules);let i=[r].concat(Pa(e));for(let e of i)Ia(e,n,t);let a=new Set;for(let t of e.rules)(n.has(t.name)||_i(t)&&t.hidden)&&a.add(t);return a}t(Fa,`getAllReachableRules`),c(Fa,`getAllReachableRules`);function Ia(e,t,n){t.add(e.name),Nn(e).forEach(e=>{if(ai(e)||n&&yi(e)){let r=e.rule.ref;r&&!t.has(r.name)&&Ia(r,t,n)}})}t(Ia,`ruleDfs`),c(Ia,`ruleDfs`);function La(e){let t=new Set;return Nn(e).forEach(e=>{hr(e)&&(Zr(e.type.ref)&&t.add(e.type.ref),Dr(e.type.ref)&&Zr(e.type.ref.$container)&&t.add(e.type.ref.$container))}),t}t(La,`getAllRulesUsedForCrossReferences`),c(La,`getAllRulesUsedForCrossReferences`);function Ra(e){if(e.terminal)return e.terminal;if(e.type.ref)return qa(e.type.ref)?.terminal}t(Ra,`getCrossReferenceTerminal`),c(Ra,`getCrossReferenceTerminal`);function za(e){return e.hidden&&!ka(co(e))}t(za,`isCommentTerminal`),c(za,`isCommentTerminal`);function Ba(e,t){return!e||!t?[]:Ha(e,t,e.astNode,!0)}t(Ba,`findNodesForProperty`),c(Ba,`findNodesForProperty`);function Va(e,t,n){if(!e||!t)return;let r=Ha(e,t,e.astNode,!0);if(r.length!==0)return n=n===void 0?0:Math.max(0,Math.min(n,r.length-1)),r[n]}t(Va,`findNodeForProperty`),c(Va,`findNodeForProperty`);function Ha(e,t,n,r){if(!r){let n=Dn(e.grammarSource,ar);if(n&&n.feature===t)return[e]}return hn(e)&&e.astNode===n?e.content.flatMap(e=>Ha(e,t,n,!1)):[]}t(Ha,`findNodesForPropertyInternal`),c(Ha,`findNodesForPropertyInternal`);function Ua(e,t){return e?Ga(e,t,e?.astNode):[]}t(Ua,`findNodesForKeyword`),c(Ua,`findNodesForKeyword`);function Wa(e,t,n){if(!e)return;let r=Ga(e,t,e?.astNode);if(r.length!==0)return n=n===void 0?0:Math.max(0,Math.min(n,r.length-1)),r[n]}t(Wa,`findNodeForKeyword`),c(Wa,`findNodeForKeyword`);function Ga(e,t,n){if(e.astNode!==n)return[];if(Lr(e.grammarSource)&&e.grammarSource.value===t)return[e];let r=Ri(e).iterator(),i,a=[];do if(i=r.next(),!i.done){let e=i.value;e.astNode===n?Lr(e.grammarSource)&&e.grammarSource.value===t&&a.push(e):r.prune()}while(!i.done);return a}t(Ga,`findNodesForKeywordInternal`),c(Ga,`findNodesForKeywordInternal`);function Ka(e){let t=e.astNode;for(;t===e.container?.astNode;){let t=Dn(e.grammarSource,ar);if(t)return t;e=e.container}}t(Ka,`findAssignment`),c(Ka,`findAssignment`);function qa(e){let t=e;return Dr(t)&&(Zn(t.$container)?t=t.$container.$container:Gn(t.$container)?t=t.$container:sa(t.$container)),Ja(e,t,new Map)}t(qa,`findNameAssignment`),c(qa,`findNameAssignment`);function Ja(e,n,r){function i(t,n){let i;return Dn(t,ar)||(i=Ja(n,n,r)),r.set(e,i),i}if(t(i,`go`),c(i,`go`),r.has(e))return r.get(e);r.set(e,void 0);for(let t of Nn(n))if(ar(t)&&t.feature.toLowerCase()===`name`)return r.set(e,t),t;else if(ai(t)&&Zr(t.rule.ref))return i(t,t.rule.ref);else if(si(t)&&t.typeRef?.ref)return i(t,t.typeRef.ref)}t(Ja,`findNameAssignmentInternal`),c(Ja,`findNameAssignmentInternal`);function Ya(e){let t=e.$container;if(Tr(t)){let n=t.elements,r=n.indexOf(e);for(let e=r-1;e>=0;e--){let t=n[e];if(Zn(t))return t;{let t=Nn(n[e]).find(Zn);if(t)return t}}}if(Un(t))return Ya(t)}t(Ya,`getActionAtElement`),c(Ya,`getActionAtElement`);function Xa(e,t){return e===`?`||e===`*`||Tr(t)&&!!t.guardCondition}t(Xa,`isOptionalCardinality`),c(Xa,`isOptionalCardinality`);function Za(e){return e===`*`||e===`+`}t(Za,`isArrayCardinality`),c(Za,`isArrayCardinality`);function Qa(e){return e===`+=`}t(Qa,`isArrayOperator`),c(Qa,`isArrayOperator`);function $a(e){return eo(e,new Set)}t($a,`isDataTypeRule`),c($a,`isDataTypeRule`);function eo(e,t){if(t.has(e))return!0;t.add(e);for(let n of Nn(e))if(ai(n)){if(!n.rule.ref||Zr(n.rule.ref)&&!eo(n.rule.ref,t)||kr(n.rule.ref))return!1}else if(ar(n))return!1;else if(Zn(n))return!1;return!!e.definition}t(eo,`isDataTypeRuleInternal`),c(eo,`isDataTypeRuleInternal`);function to(e){return no(e.type,new Set)}t(to,`isDataType`),c(to,`isDataType`);function no(e,t){if(t.has(e))return!0;if(t.add(e),rr(e)||$r(e))return!1;if(Di(e))return e.types.every(e=>no(e,t));if(si(e)){if(e.primitiveType!==void 0||e.stringType!==void 0)return!0;if(e.typeRef!==void 0){let n=e.typeRef.ref;return xi(n)?no(n.type,t):!1}else return!1}else return!1}t(no,`isDataTypeInternal`),c(no,`isDataTypeInternal`);function ro(e){if(!_i(e)){if(e.inferredType)return e.inferredType.name;if(e.dataType)return e.dataType;if(e.returnType){let t=e.returnType.ref;if(t)return t.name}}}t(ro,`getExplicitRuleType`),c(ro,`getExplicitRuleType`);function io(e){if(Gn(e))return Zr(e)&&$a(e)?e.name:ro(e)??e.name;if(Fr(e)||xi(e)||ri(e))return e.name;if(Zn(e)){let t=ao(e);if(t)return t}else if(Dr(e))return e.name;throw Error(`Cannot get name of Unknown Type`)}t(io,`getTypeName`),c(io,`getTypeName`);function ao(e){if(e.inferredType)return e.inferredType.name;if(e.type?.ref)return io(e.type.ref)}t(ao,`getActionType`),c(ao,`getActionType`);function oo(e){return _i(e)?e.type?.name??`string`:Zr(e)&&$a(e)?e.name:ro(e)??e.name}t(oo,`getRuleTypeName`),c(oo,`getRuleTypeName`);function so(e){return _i(e)?e.type?.name??`string`:ro(e)??e.name}t(so,`getRuleType`),c(so,`getRuleType`);function co(e){let t={s:!1,i:!1,u:!1},n=uo(e.definition,t),r=Object.entries(t).filter(([,e])=>e).map(([e])=>e).join(``);return new RegExp(n,r)}t(co,`terminalRegex`),c(co,`terminalRegex`);var lo=`[\\s\\S]`;function uo(e,t){if(di(e))return fo(e);if(hi(e))return po(e);if(lr(e))return go(e);if(yi(e)){let t=e.rule.ref;if(!t)throw Error(`Missing rule reference.`);return vo(uo(t.definition),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}else if(Vr(e))return ho(e);else if(ji(e))return mo(e);else if(ti(e)){let n=e.regex.lastIndexOf(`/`),r=e.regex.substring(1,n),i=e.regex.substring(n+1);return t&&(t.i=i.includes(`i`),t.s=i.includes(`s`),t.u=i.includes(`u`)),vo(r,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}else if(Fi(e))return vo(lo,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized});else throw Error(`Invalid terminal element: ${e?.$type}, ${e?.$cstNode?.text}`)}t(uo,`abstractElementToRegex`),c(uo,`abstractElementToRegex`);function fo(e){return vo(e.elements.map(e=>uo(e)).join(`|`),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}t(fo,`terminalAlternativesToRegex`),c(fo,`terminalAlternativesToRegex`);function po(e){return vo(e.elements.map(e=>uo(e)).join(``),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}t(po,`terminalGroupToRegex`),c(po,`terminalGroupToRegex`);function mo(e){return vo(`${lo}*?${uo(e.terminal)}`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}t(mo,`untilTokenToRegex`),c(mo,`untilTokenToRegex`);function ho(e){return vo(`(?!${uo(e.terminal)})${lo}*?`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}t(ho,`negateTokenToRegex`),c(ho,`negateTokenToRegex`);function go(e){return e.right?vo(`[${_o(e.left)}-${_o(e.right)}]`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1}):vo(_o(e.left),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}t(go,`characterRangeToRegex`),c(go,`characterRangeToRegex`);function _o(e){return Aa(e.value)}t(_o,`keywordToRegex`),c(_o,`keywordToRegex`);function vo(e,t){return(t.parenthesized||t.lookahead||t.wrap!==!1)&&(e=`(${t.lookahead??(t.parenthesized?``:`?:`)}${e})`),t.cardinality?`${e}${t.cardinality}`:e}t(vo,`withCardinality`),c(vo,`withCardinality`);function yo(e){let t=[],n=e.Grammar;for(let e of n.rules)_i(e)&&za(e)&&Da(co(e))&&t.push(e.name);return{multilineCommentRules:t,nameRegexp:Ki}}t(yo,`createGrammarConfig`),c(yo,`createGrammarConfig`);var bo=typeof global==`object`&&global&&global.Object===Object&&global,xo=typeof self==`object`&&self&&self.Object===Object&&self,So=bo||xo||Function(`return this`)(),Co=So.Symbol,wo=Object.prototype,To=wo.hasOwnProperty,Eo=wo.toString,Do=Co?Co.toStringTag:void 0;function Oo(e){var t=To.call(e,Do),n=e[Do];try{e[Do]=void 0;var r=!0}catch{}var i=Eo.call(e);return r&&(t?e[Do]=n:delete e[Do]),i}t(Oo,`getRawTag`),c(Oo,`getRawTag`);var ko=Oo,Ao=Object.prototype.toString;function jo(e){return Ao.call(e)}t(jo,`objectToString`),c(jo,`objectToString`);var Mo=jo,No=`[object Null]`,Po=`[object Undefined]`,Fo=Co?Co.toStringTag:void 0;function Io(e){return e==null?e===void 0?Po:No:Fo&&Fo in Object(e)?ko(e):Mo(e)}t(Io,`baseGetTag`),c(Io,`baseGetTag`);var Lo=Io;function Ro(e){return typeof e==`object`&&!!e}t(Ro,`isObjectLike`),c(Ro,`isObjectLike`);var zo=Ro,Bo=`[object Symbol]`;function Vo(e){return typeof e==`symbol`||zo(e)&&Lo(e)==Bo}t(Vo,`isSymbol`),c(Vo,`isSymbol`);var Ho=Vo;function Uo(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n0){if(++t>=ec)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}t(rc,`shortOut`),c(rc,`shortOut`);var ic=rc;function ac(e){return function(){return e}}t(ac,`constant`),c(ac,`constant`);var oc=ac,sc=(function(){try{var e=Ws(Object,`defineProperty`);return e({},``,{}),e}catch{}})(),cc=ic(sc?function(e,t){return sc(e,`toString`,{configurable:!0,enumerable:!1,value:oc(t),writable:!0})}:vs);function lc(e,t){for(var n=-1,r=e==null?0:e.length;++n-1}t(yc,`arrayIncludes`),c(yc,`arrayIncludes`);var bc=yc,xc=9007199254740991,Sc=/^(?:0|[1-9]\d*)$/;function Cc(e,t){var n=typeof e;return t??=xc,!!t&&(n==`number`||n!=`symbol`&&Sc.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=zc}t(Bc,`isLength`),c(Bc,`isLength`);var Vc=Bc;function Hc(e){return e!=null&&Vc(e.length)&&!ws(e)}t(Hc,`isArrayLike`),c(Hc,`isArrayLike`);var Uc=Hc;function Wc(e,t,n){if(!rs(n))return!1;var r=typeof t;return(r==`number`?Uc(n)&&wc(t,n.length):r==`string`&&t in n)?Oc(n[t],e):!1}t(Wc,`isIterateeCall`),c(Wc,`isIterateeCall`);var Gc=Wc;function Kc(e){return Rc(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&Gc(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r-1}t(Hu,`listCacheHas`),c(Hu,`listCacheHas`);var Uu=Hu;function Wu(e,t){var n=this.__data__,r=Iu(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}t(Wu,`listCacheSet`),c(Wu,`listCacheSet`);var Gu=Wu;function Ku(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(s)?t>1?Id(s,t-1,n,r,i):Md(i,s):r||(i[i.length]=s)}return i}t(Id,`baseFlatten`),c(Id,`baseFlatten`);var Ld=Id;function Rd(e){return e!=null&&e.length?Ld(e,1):[]}t(Rd,`flatten`),c(Rd,`flatten`);var zd=Rd,Bd=Xl(Object.getPrototypeOf,Object);function Vd(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++rs))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&zm?new Nm:void 0;for(a.set(e,t),a.set(t,e);++d2?t[2]:void 0;for(i&&Gc(t[0],t[1],i)&&(r=1);++n=_g&&(a=Lm,o=!1,t=new Nm(t));outer:for(;++i-1?i[a?t[o]:o]:void 0}}t(Bg,`createFind`),c(Bg,`createFind`);var Vg=Bg,Hg=Math.max;function Ug(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:gs(n);return i<0&&(i=Hg(r+i,0)),fc(e,Zh(t,3),i)}t(Ug,`findIndex`),c(Ug,`findIndex`);var Wg=Vg(Ug);function Gg(e){return e&&e.length?e[0]:void 0}t(Gg,`head`),c(Gg,`head`);var Kg=Gg;function qg(e,t){var n=-1,r=Uc(e)?Array(e.length):[];return ag(e,function(e,i,a){r[++n]=t(e,i,a)}),r}t(qg,`baseMap`),c(qg,`baseMap`);var Jg=qg;function Yg(e,t){return(I(e)?Wo:Jg)(e,Zh(t,3))}t(Yg,`map`),c(Yg,`map`);var B=Yg;function Xg(e,t){return Ld(B(e,t),1)}t(Xg,`flatMap`),c(Xg,`flatMap`);var Zg=Xg,Qg=Object.prototype.hasOwnProperty,$g=lg(function(e,t,n){Qg.call(e,n)?e[n].push(t):Ec(e,n,[t])}),e_=Object.prototype.hasOwnProperty;function t_(e,t){return e!=null&&e_.call(e,t)}t(t_,`baseHas`),c(t_,`baseHas`);var n_=t_;function r_(e,t){return e!=null&&Lh(e,t,n_)}t(r_,`has`),c(r_,`has`);var V=r_,i_=`[object String]`;function a_(e){return typeof e==`string`||!I(e)&&zo(e)&&Lo(e)==i_}t(a_,`isString`),c(a_,`isString`);var o_=a_;function s_(e,t){return Wo(t,function(t){return e[t]})}t(s_,`baseValues`),c(s_,`baseValues`);var c_=s_;function l_(e){return e==null?[]:c_(e,nu(e))}t(l_,`values`),c(l_,`values`);var H=l_,u_=Math.max;function d_(e,t,n,r){e=Uc(e)?e:H(e),n=n&&!r?gs(n):0;var i=e.length;return n<0&&(n=u_(i+n,0)),o_(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&vc(e,t,n)>-1}t(d_,`includes`),c(d_,`includes`);var f_=d_,p_=Math.max;function m_(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:gs(n);return i<0&&(i=p_(r+i,0)),vc(e,t,i)}t(m_,`indexOf`),c(m_,`indexOf`);var h_=m_,g_=`[object Map]`,__=`[object Set]`,v_=Object.prototype.hasOwnProperty;function y_(e){if(e==null)return!0;if(Uc(e)&&(I(e)||typeof e==`string`||typeof e.splice==`function`||dl(e)||Gl(e)||al(e)))return!e.length;var t=Jf(e);if(t==g_||t==__)return!e.size;if(Xc(e))return!eu(e).length;for(var n in e)if(v_.call(e,n))return!1;return!0}t(y_,`isEmpty`),c(y_,`isEmpty`);var U=y_,b_=`[object RegExp]`;function x_(e){return zo(e)&&Lo(e)==b_}t(x_,`baseIsRegExp`),c(x_,`baseIsRegExp`);var S_=x_,C_=Ul&&Ul.isRegExp,w_=C_?zl(C_):S_;function T_(e){return e===void 0}t(T_,`isUndefined`),c(T_,`isUndefined`);var E_=T_,D_=`Expected a function`;function O_(e){if(typeof e!=`function`)throw TypeError(D_);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}t(O_,`negate`),c(O_,`negate`);var k_=O_;function A_(e,t,n,r){if(!rs(e))return e;t=Cd(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i=q_){var l=t?null:K_(e);if(l)return Gm(l);o=!1,i=Lm,c=new Nm}else c=t?[]:s;outer:for(;++r{t.accept(e)})}},av=class extends iv{static{t(this,`NonTerminal`)}static{c(this,`NonTerminal`)}constructor(e){super([]),this.idx=1,iu(this,F_(e,e=>e!==void 0))}set definition(e){}get definition(){return this.referencedRule===void 0?[]:this.referencedRule.definition}accept(e){e.visit(this)}},ov=class extends iv{static{t(this,`Rule`)}static{c(this,`Rule`)}constructor(e){super(e.definition),this.orgText=``,iu(this,F_(e,e=>e!==void 0))}},sv=class extends iv{static{t(this,`Alternative`)}static{c(this,`Alternative`)}constructor(e){super(e.definition),this.ignoreAmbiguities=!1,iu(this,F_(e,e=>e!==void 0))}},cv=class extends iv{static{t(this,`Option`)}static{c(this,`Option`)}constructor(e){super(e.definition),this.idx=1,iu(this,F_(e,e=>e!==void 0))}},lv=class extends iv{static{t(this,`RepetitionMandatory`)}static{c(this,`RepetitionMandatory`)}constructor(e){super(e.definition),this.idx=1,iu(this,F_(e,e=>e!==void 0))}},uv=class extends iv{static{t(this,`RepetitionMandatoryWithSeparator`)}static{c(this,`RepetitionMandatoryWithSeparator`)}constructor(e){super(e.definition),this.idx=1,iu(this,F_(e,e=>e!==void 0))}},W=class extends iv{static{t(this,`Repetition`)}static{c(this,`Repetition`)}constructor(e){super(e.definition),this.idx=1,iu(this,F_(e,e=>e!==void 0))}},dv=class extends iv{static{t(this,`RepetitionWithSeparator`)}static{c(this,`RepetitionWithSeparator`)}constructor(e){super(e.definition),this.idx=1,iu(this,F_(e,e=>e!==void 0))}},fv=class extends iv{static{t(this,`Alternation`)}static{c(this,`Alternation`)}get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,iu(this,F_(e,e=>e!==void 0))}},G=class{static{t(this,`Terminal`)}static{c(this,`Terminal`)}constructor(e){this.idx=1,iu(this,F_(e,e=>e!==void 0))}accept(e){e.visit(this)}};function pv(e){return B(e,mv)}t(pv,`serializeGrammar`),c(pv,`serializeGrammar`);function mv(e){function n(e){return B(e,mv)}if(t(n,`convertDefinition`),c(n,`convertDefinition`),e instanceof av){let t={type:`NonTerminal`,name:e.nonTerminalName,idx:e.idx};return o_(e.label)&&(t.label=e.label),t}else if(e instanceof sv)return{type:`Alternative`,definition:n(e.definition)};else if(e instanceof cv)return{type:`Option`,idx:e.idx,definition:n(e.definition)};else if(e instanceof lv)return{type:`RepetitionMandatory`,idx:e.idx,definition:n(e.definition)};else if(e instanceof uv)return{type:`RepetitionMandatoryWithSeparator`,idx:e.idx,separator:mv(new G({terminalType:e.separator})),definition:n(e.definition)};else if(e instanceof dv)return{type:`RepetitionWithSeparator`,idx:e.idx,separator:mv(new G({terminalType:e.separator})),definition:n(e.definition)};else if(e instanceof W)return{type:`Repetition`,idx:e.idx,definition:n(e.definition)};else if(e instanceof fv)return{type:`Alternation`,idx:e.idx,definition:n(e.definition)};else if(e instanceof G){let t={type:`Terminal`,name:e.terminalType.name,label:nv(e.terminalType),idx:e.idx};o_(e.label)&&(t.terminalLabel=e.label);let n=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(t.pattern=w_(n)?n.source:n),t}else if(e instanceof ov)return{type:`Rule`,name:e.name,orgText:e.orgText,definition:n(e.definition)};else throw Error(`non exhaustive match`)}t(mv,`serializeProduction`),c(mv,`serializeProduction`);var hv=class{static{t(this,`GAstVisitor`)}static{c(this,`GAstVisitor`)}visit(e){let t=e;switch(t.constructor){case av:return this.visitNonTerminal(t);case sv:return this.visitAlternative(t);case cv:return this.visitOption(t);case lv:return this.visitRepetitionMandatory(t);case uv:return this.visitRepetitionMandatoryWithSeparator(t);case dv:return this.visitRepetitionWithSeparator(t);case W:return this.visitRepetition(t);case fv:return this.visitAlternation(t);case G:return this.visitTerminal(t);case ov:return this.visitRule(t);default:throw Error(`non exhaustive match`)}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}};function gv(e){return e instanceof sv||e instanceof cv||e instanceof W||e instanceof lv||e instanceof uv||e instanceof dv||e instanceof G||e instanceof ov}t(gv,`isSequenceProd`),c(gv,`isSequenceProd`);function _v(e,t=[]){return e instanceof cv||e instanceof W||e instanceof dv?!0:e instanceof fv?G_(e.definition,e=>_v(e,t)):e instanceof av&&f_(t,e)?!1:e instanceof iv?(e instanceof av&&t.push(e),Fg(e.definition,e=>_v(e,t))):!1}t(_v,`isOptionalProd`),c(_v,`isOptionalProd`);function vv(e){return e instanceof fv}t(vv,`isBranchingProd`),c(vv,`isBranchingProd`);function yv(e){if(e instanceof av)return`SUBRULE`;if(e instanceof cv)return`OPTION`;if(e instanceof fv)return`OR`;if(e instanceof lv)return`AT_LEAST_ONE`;if(e instanceof uv)return`AT_LEAST_ONE_SEP`;if(e instanceof dv)return`MANY_SEP`;if(e instanceof W)return`MANY`;if(e instanceof G)return`CONSUME`;throw Error(`non exhaustive match`)}t(yv,`getProductionDslName`),c(yv,`getProductionDslName`);var bv=class{static{t(this,`RestWalker`)}static{c(this,`RestWalker`)}walk(e,t=[]){z(e.definition,(n,r)=>{let i=wg(e.definition,r+1);if(n instanceof av)this.walkProdRef(n,i,t);else if(n instanceof G)this.walkTerminal(n,i,t);else if(n instanceof sv)this.walkFlat(n,i,t);else if(n instanceof cv)this.walkOption(n,i,t);else if(n instanceof lv)this.walkAtLeastOne(n,i,t);else if(n instanceof uv)this.walkAtLeastOneSep(n,i,t);else if(n instanceof dv)this.walkManySep(n,i,t);else if(n instanceof W)this.walkMany(n,i,t);else if(n instanceof fv)this.walkOr(n,i,t);else throw Error(`non exhaustive match`)})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){let r=t.concat(n);this.walk(e,r)}walkOption(e,t,n){let r=t.concat(n);this.walk(e,r)}walkAtLeastOne(e,t,n){let r=[new cv({definition:e.definition})].concat(t,n);this.walk(e,r)}walkAtLeastOneSep(e,t,n){let r=xv(e,t,n);this.walk(e,r)}walkMany(e,t,n){let r=[new cv({definition:e.definition})].concat(t,n);this.walk(e,r)}walkManySep(e,t,n){let r=xv(e,t,n);this.walk(e,r)}walkOr(e,t,n){let r=t.concat(n);z(e.definition,e=>{let t=new sv({definition:[e]});this.walk(t,r)})}};function xv(e,t,n){return[new cv({definition:[new G({terminalType:e.separator})].concat(e.definition)})].concat(t,n)}t(xv,`restForRepetitionWithSeparator`),c(xv,`restForRepetitionWithSeparator`);function Sv(e){if(e instanceof av)return Sv(e.referencedRule);if(e instanceof G)return Tv(e);if(gv(e))return Cv(e);if(vv(e))return wv(e);throw Error(`non exhaustive match`)}t(Sv,`first`),c(Sv,`first`);function Cv(e){let t=[],n=e.definition,r=0,i=n.length>r,a,o=!0;for(;i&&o;)a=n[r],o=_v(a),t=t.concat(Sv(a)),r+=1,i=n.length>r;return Z_(t)}t(Cv,`firstForSequence`),c(Cv,`firstForSequence`);function wv(e){return Z_(zd(B(e.definition,e=>Sv(e))))}t(wv,`firstForBranching`),c(wv,`firstForBranching`);function Tv(e){return[e.terminalType]}t(Tv,`firstForTerminal`),c(Tv,`firstForTerminal`);var Ev=`_~IN~_`,Dv=class extends bv{static{t(this,`ResyncFollowsWalker`)}static{c(this,`ResyncFollowsWalker`)}constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){let r=kv(e.referencedRule,e.idx)+this.topProd.name,i=Sv(new sv({definition:t.concat(n)}));this.follows[r]=i}};function Ov(e){let t={};return z(e,e=>{iu(t,new Dv(e).startWalking())}),t}t(Ov,`computeAllProdsFollows`),c(Ov,`computeAllProdsFollows`);function kv(e,t){return e.name+t+Ev}t(kv,`buildBetweenProdsFollowPrefix`),c(kv,`buildBetweenProdsFollowPrefix`);var Av={},jv=new xa;function Mv(e){let t=e.toString();if(Av.hasOwnProperty(t))return Av[t];{let e=jv.pattern(t);return Av[t]=e,e}}t(Mv,`getRegExpAst`),c(Mv,`getRegExpAst`);function Nv(){Av={}}t(Nv,`clearRegExpParserCache`),c(Nv,`clearRegExpParserCache`);var Pv=`Complement Sets are not supported for first char optimization`,Fv=`Unable to use "first char" lexer optimizations: +`;function Iv(e,t=!1){try{let t=Mv(e);return Lv(t.value,{},t.flags.ignoreCase)}catch(n){if(n.message===Pv)t&&$_(`${Fv} Unable to optimize: < ${e.toString()} > + Complement Sets cannot be automatically optimized. + This will disable the lexer's first char optimizations. + See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let n=``;t&&(n=` + This will disable the lexer's first char optimizations. + See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),Q_(`${Fv} + Failed parsing: < ${e.toString()} > + Using the @chevrotain/regexp-to-ast library + Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+n)}}return[]}t(Iv,`getOptimizedStartCodesIndices`),c(Iv,`getOptimizedStartCodesIndices`);function Lv(e,t,n){switch(e.type){case`Disjunction`:for(let r=0;r{if(typeof e==`number`)Rv(e,t,n);else{let r=e;if(n===!0)for(let e=r.from;e<=r.to;e++)Rv(e,t,n);else{for(let e=r.from;e<=r.to&&e=wy){let e=r.from>=wy?r.from:wy,n=r.to,i=Ey(e),a=Ey(n);for(let e=i;e<=a;e++)t[e]=e}}}});break;case`Group`:Lv(a.value,t,n);break;default:throw Error(`Non Exhaustive Match`)}let o=a.quantifier!==void 0&&a.quantifier.atLeast===0;if(a.type===`Group`&&Vv(a)===!1||a.type!==`Group`&&o===!1)break}break;default:throw Error(`non exhaustive match!`)}return H(t)}t(Lv,`firstCharOptimizedIndices`),c(Lv,`firstCharOptimizedIndices`);function Rv(e,t,n){let r=Ey(e);t[r]=r,n===!0&&zv(e,t)}t(Rv,`addOptimizedIdxToResult`),c(Rv,`addOptimizedIdxToResult`);function zv(e,t){let n=String.fromCharCode(e),r=n.toUpperCase();if(r!==n){let e=Ey(r.charCodeAt(0));t[e]=e}else{let e=n.toLowerCase();if(e!==n){let n=Ey(e.charCodeAt(0));t[n]=n}}}t(zv,`handleIgnoreCase`),c(zv,`handleIgnoreCase`);function Bv(e,t){return Wg(e.value,e=>{if(typeof e==`number`)return f_(t,e);{let n=e;return Wg(t,e=>n.from<=e&&e<=n.to)!==void 0}})}t(Bv,`findCode`),c(Bv,`findCode`);function Vv(e){let t=e.quantifier;return t&&t.atLeast===0?!0:e.value?I(e.value)?Fg(e.value,Vv):Vv(e.value):!1}t(Vv,`isWholeOptional`),c(Vv,`isWholeOptional`);var Hv=class extends Sa{static{t(this,`CharCodeFinder`)}static{c(this,`CharCodeFinder`)}constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(this.found!==!0){switch(e.type){case`Lookahead`:this.visitLookahead(e);return;case`NegativeLookahead`:this.visitNegativeLookahead(e);return;case`Lookbehind`:this.visitLookbehind(e);return;case`NegativeLookbehind`:this.visitNegativeLookbehind(e);return}super.visitChildren(e)}}visitCharacter(e){f_(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?Bv(e,this.targetCharCodes)===void 0&&(this.found=!0):Bv(e,this.targetCharCodes)!==void 0&&(this.found=!0)}};function Uv(e,t){if(t instanceof RegExp){let n=Mv(t),r=new Hv(e);return r.visit(n),r.found}else return Wg(t,t=>f_(e,t.charCodeAt(0)))!==void 0}t(Uv,`canMatchCharCode`),c(Uv,`canMatchCharCode`);var Wv=`PATTERN`,Gv=`defaultMode`,Kv=`modes`,qv=typeof RegExp(`(?:)`).sticky==`boolean`;function Jv(e,t){t=fg(t,{useSticky:qv,debug:!1,safeMode:!1,positionTracking:`full`,lineTerminatorCharacters:[`\r`,` +`],tracer:c((e,t)=>t(),`tracer`)});let n=t.tracer;n(`initCharCodeToOptimizedIndexMap`,()=>{Dy()});let r;n(`Reject Lexer.NA`,()=>{r=V_(e,e=>e[Wv]===Gy.NA)});let i=!1,a;n(`Transform Patterns`,()=>{i=!1,a=B(r,e=>{let n=e[Wv];if(w_(n)){let e=n.source;return e.length===1&&e!==`^`&&e!==`$`&&e!==`.`&&!n.ignoreCase?e:e.length===2&&e[0]===`\\`&&!f_([`d`,`D`,`s`,`S`,`t`,`r`,`n`,`t`,`0`,`c`,`b`,`B`,`f`,`v`,`w`,`W`],e[1])?e[1]:t.useSticky?py(n):fy(n)}else if(ws(n))return i=!0,{exec:n};else if(typeof n==`object`)return i=!0,n;else if(typeof n==`string`){if(n.length===1)return n;{let e=n.replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`),r=new RegExp(e);return t.useSticky?py(r):fy(r)}}else throw Error(`non exhaustive match`)})});let o,s,l,u,d;n(`misc mapping`,()=>{o=B(r,e=>e.tokenTypeIdx),s=B(r,e=>{let t=e.GROUP;if(t!==Gy.SKIPPED){if(o_(t))return t;if(E_(t))return!1;throw Error(`non exhaustive match`)}}),l=B(r,e=>{let t=e.LONGER_ALT;if(t)return I(t)?B(t,e=>h_(r,e)):[h_(r,t)]}),u=B(r,e=>e.PUSH_MODE),d=B(r,e=>V(e,`POP_MODE`))});let f;n(`Line Terminator Handling`,()=>{let e=Sy(t.lineTerminatorCharacters);f=B(r,e=>!1),t.positionTracking!==`onlyOffset`&&(f=B(r,t=>V(t,`LINE_BREAKS`)?!!t.LINE_BREAKS:by(t,e)===!1&&Uv(e,t.PATTERN)))});let p,m,h,g;n(`Misc Mapping #2`,()=>{p=B(r,_y),m=B(a,vy),h=z_(r,(e,t)=>{let n=t.GROUP;return o_(n)&&n!==Gy.SKIPPED&&(e[n]=[]),e},{}),g=B(a,(e,t)=>({pattern:a[t],longerAlt:l[t],canLineTerminator:f[t],isCustom:p[t],short:m[t],group:s[t],push:u[t],pop:d[t],tokenTypeIdx:o[t],tokenType:r[t]}))});let _=!0,v=[];return t.safeMode||n(`First Char Optimization`,()=>{v=z_(r,(e,n,r)=>{if(typeof n.PATTERN==`string`)Cy(e,Ey(n.PATTERN.charCodeAt(0)),g[r]);else if(I(n.START_CHARS_HINT)){let t;z(n.START_CHARS_HINT,n=>{let i=Ey(typeof n==`string`?n.charCodeAt(0):n);t!==i&&(t=i,Cy(e,i,g[r]))})}else if(w_(n.PATTERN))if(n.PATTERN.unicode)_=!1,t.ensureOptimizations&&Q_(`${Fv} Unable to analyze < ${n.PATTERN.toString()} > pattern. + The regexp unicode flag is not currently supported by the regexp-to-ast library. + This will disable the lexer's first char optimizations. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{let i=Iv(n.PATTERN,t.ensureOptimizations);U(i)&&(_=!1),z(i,t=>{Cy(e,t,g[r])})}else t.ensureOptimizations&&Q_(`${Fv} TokenType: <${n.name}> is using a custom token pattern without providing parameter. + This will disable the lexer's first char optimizations. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),_=!1;return e},[])}),{emptyGroups:h,patternIdxToConfig:g,charCodeToPatternIdxToConfig:v,hasCustom:i,canBeOptimized:_}}t(Jv,`analyzeTokenTypes`),c(Jv,`analyzeTokenTypes`);function Yv(e,t){let n=[],r=Zv(e);n=n.concat(r.errors);let i=Qv(r.valid),a=i.valid;return n=n.concat(i.errors),n=n.concat(Xv(a)),n=n.concat(oy(a)),n=n.concat(sy(a,t)),n=n.concat(cy(a)),n}t(Yv,`validatePatterns`),c(Yv,`validatePatterns`);function Xv(e){let t=[],n=zg(e,e=>w_(e[Wv]));return t=t.concat(ey(n)),t=t.concat(ry(n)),t=t.concat(iy(n)),t=t.concat(ay(n)),t=t.concat(ty(n)),t}t(Xv,`validateRegExpPattern`),c(Xv,`validateRegExpPattern`);function Zv(e){let t=zg(e,e=>!V(e,Wv));return{errors:B(t,e=>({message:`Token Type: ->`+e.name+`<- missing static 'PATTERN' property`,type:K.MISSING_PATTERN,tokenTypes:[e]})),valid:bg(e,t)}}t(Zv,`findMissingPatterns`),c(Zv,`findMissingPatterns`);function Qv(e){let t=zg(e,e=>{let t=e[Wv];return!w_(t)&&!ws(t)&&!V(t,`exec`)&&!o_(t)});return{errors:B(t,e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.`,type:K.INVALID_PATTERN,tokenTypes:[e]})),valid:bg(e,t)}}t(Qv,`findInvalidPatterns`),c(Qv,`findInvalidPatterns`);var $v=/[^\\][$]/;function ey(e){class n extends Sa{static{t(this,`EndAnchorFinder`)}static{c(this,`EndAnchorFinder`)}constructor(){super(...arguments),this.found=!1}visitEndAnchor(e){this.found=!0}}return B(zg(e,e=>{let t=e.PATTERN;try{let e=Mv(t),r=new n;return r.visit(e),r.found}catch{return $v.test(t.source)}}),e=>({message:`Unexpected RegExp Anchor Error: + Token Type: ->`+e.name+`<- static 'PATTERN' cannot contain end of input anchor '$' + See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:K.EOI_ANCHOR_FOUND,tokenTypes:[e]}))}t(ey,`findEndOfInputAnchor`),c(ey,`findEndOfInputAnchor`);function ty(e){return B(zg(e,e=>e.PATTERN.test(``)),e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' must not match an empty string`,type:K.EMPTY_MATCH_PATTERN,tokenTypes:[e]}))}t(ty,`findEmptyMatchRegExps`),c(ty,`findEmptyMatchRegExps`);var ny=/[^\\[][\^]|^\^/;function ry(e){class n extends Sa{static{t(this,`StartAnchorFinder`)}static{c(this,`StartAnchorFinder`)}constructor(){super(...arguments),this.found=!1}visitStartAnchor(e){this.found=!0}}return B(zg(e,e=>{let t=e.PATTERN;try{let e=Mv(t),r=new n;return r.visit(e),r.found}catch{return ny.test(t.source)}}),e=>({message:`Unexpected RegExp Anchor Error: + Token Type: ->`+e.name+`<- static 'PATTERN' cannot contain start of input anchor '^' + See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:K.SOI_ANCHOR_FOUND,tokenTypes:[e]}))}t(ry,`findStartOfInputAnchor`),c(ry,`findStartOfInputAnchor`);function iy(e){return B(zg(e,e=>{let t=e[Wv];return t instanceof RegExp&&(t.multiline||t.global)}),e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' may NOT contain global('g') or multiline('m')`,type:K.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]}))}t(iy,`findUnsupportedFlags`),c(iy,`findUnsupportedFlags`);function ay(e){let t=[],n=B(e,n=>z_(e,(e,r)=>n.PATTERN.source===r.PATTERN.source&&!f_(t,r)&&r.PATTERN!==Gy.NA?(t.push(r),e.push(r),e):e,[]));return n=Em(n),B(zg(n,e=>e.length>1),e=>{let t=B(e,e=>e.name);return{message:`The same RegExp pattern ->${Kg(e).PATTERN}<-has been used in all of the following Token Types: ${t.join(`, `)} <-`,type:K.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}})}t(ay,`findDuplicatePatterns`),c(ay,`findDuplicatePatterns`);function oy(e){return B(zg(e,e=>{if(!V(e,`GROUP`))return!1;let t=e.GROUP;return t!==Gy.SKIPPED&&t!==Gy.NA&&!o_(t)}),e=>({message:`Token Type: ->`+e.name+`<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String`,type:K.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]}))}t(oy,`findInvalidGroupType`),c(oy,`findInvalidGroupType`);function sy(e,t){return B(zg(e,e=>e.PUSH_MODE!==void 0&&!f_(t,e.PUSH_MODE)),e=>({message:`Token Type: ->${e.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${e.PUSH_MODE}<-which does not exist`,type:K.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}))}t(sy,`findModesThatDoNotExist`),c(sy,`findModesThatDoNotExist`);function cy(e){let t=[],n=z_(e,(e,t,n)=>{let r=t.PATTERN;return r===Gy.NA||(o_(r)?e.push({str:r,idx:n,tokenType:t}):w_(r)&&uy(r)&&e.push({str:r.source,idx:n,tokenType:t})),e},[]);return z(e,(e,r)=>{z(n,({str:n,idx:i,tokenType:a})=>{if(r${a.name}<- can never be matched. +Because it appears AFTER the Token Type ->${e.name}<-in the lexer's definition. +See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:n,type:K.UNREACHABLE_PATTERN,tokenTypes:[e,a]})}})}),t}t(cy,`findUnreachablePatterns`),c(cy,`findUnreachablePatterns`);function ly(e,t){if(w_(t)){if(dy(t))return!1;let n=t.exec(e);return n!==null&&n.index===0}else if(ws(t))return t(e,0,[],{});else if(V(t,`exec`))return t.exec(e,0,[],{});else if(typeof t==`string`)return t===e;else throw Error(`non exhaustive match`)}t(ly,`tryToMatchStrToPattern`),c(ly,`tryToMatchStrToPattern`);function uy(e){return Wg([`.`,`\\`,`[`,`]`,`|`,`^`,`$`,`(`,`)`,`?`,`*`,`+`,`{`],t=>e.source.indexOf(t)!==-1)===void 0}t(uy,`noMetaChar`),c(uy,`noMetaChar`);function dy(e){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\? property in its definition +`,type:K.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),V(e,Kv)||r.push({message:`A MultiMode Lexer cannot be initialized without a <`+Kv+`> property in its definition +`,type:K.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),V(e,Kv)&&V(e,Gv)&&!V(e.modes,e.defaultMode)&&r.push({message:`A MultiMode Lexer cannot be initialized with a ${Gv}: <${e.defaultMode}>which does not exist +`,type:K.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),V(e,Kv)&&z(e.modes,(e,t)=>{z(e,(n,i)=>{E_(n)?r.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${t}> at index: <${i}> +`,type:K.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED}):V(n,`LONGER_ALT`)&&z(I(n.LONGER_ALT)?n.LONGER_ALT:[n.LONGER_ALT],i=>{!E_(i)&&!f_(e,i)&&r.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${i.name}> on token <${n.name}> outside of mode <${t}> +`,type:K.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})})}),r}t(my,`performRuntimeChecks`),c(my,`performRuntimeChecks`);function hy(e,t,n){let r=[],i=!1,a=V_(Em(zd(H(e.modes))),e=>e[Wv]===Gy.NA),o=Sy(n);return t&&z(a,e=>{let t=by(e,o);if(t!==!1){let n={message:xy(e,t),type:t.issue,tokenType:e};r.push(n)}else V(e,`LINE_BREAKS`)?e.LINE_BREAKS===!0&&(i=!0):Uv(o,e.PATTERN)&&(i=!0)}),t&&!i&&r.push({message:`Warning: No LINE_BREAKS Found. + This Lexer has been defined to track line and column information, + But none of the Token Types can be identified as matching a line terminator. + See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS + for details.`,type:K.NO_LINE_BREAKS_FLAGS}),r}t(hy,`performWarningRuntimeChecks`),c(hy,`performWarningRuntimeChecks`);function gy(e){let t={};return z(nu(e),n=>{let r=e[n];if(I(r))t[n]=[];else throw Error(`non exhaustive match`)}),t}t(gy,`cloneEmptyGroups`),c(gy,`cloneEmptyGroups`);function _y(e){let t=e.PATTERN;if(w_(t))return!1;if(ws(t)||V(t,`exec`))return!0;if(o_(t))return!1;throw Error(`non exhaustive match`)}t(_y,`isCustomPattern`),c(_y,`isCustomPattern`);function vy(e){return o_(e)&&e.length===1?e.charCodeAt(0):!1}t(vy,`isShortPattern`),c(vy,`isShortPattern`);var yy={test:c(function(e){let t=e.length;for(let n=this.lastIndex;n Token Type + Root cause: ${t.errMsg}. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===K.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the option. + The problem is in the <${e.name}> Token Type + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error(`non exhaustive match`)}t(xy,`buildLineBreakIssueMessage`),c(xy,`buildLineBreakIssueMessage`);function Sy(e){return B(e,e=>o_(e)?e.charCodeAt(0):e)}t(Sy,`getCharCodes`),c(Sy,`getCharCodes`);function Cy(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}t(Cy,`addToMapOfArrays`),c(Cy,`addToMapOfArrays`);var wy=256,Ty=[];function Ey(e){return e255?255+~~(e/255):e}}t(Dy,`initCharCodeToOptimizedIndexMap`),c(Dy,`initCharCodeToOptimizedIndexMap`);function Oy(e,t){let n=e.tokenTypeIdx;return n===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[n]===!0}t(Oy,`tokenStructuredMatcher`),c(Oy,`tokenStructuredMatcher`);function ky(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}t(ky,`tokenStructuredMatcherNoCategories`),c(ky,`tokenStructuredMatcherNoCategories`);var Ay=1,jy={};function My(e){let t=Ny(e);Py(t),Iy(t),Fy(t),z(t,e=>{e.isParent=e.categoryMatches.length>0})}t(My,`augmentTokenTypes`),c(My,`augmentTokenTypes`);function Ny(e){let t=wm(e),n=e,r=!0;for(;r;){n=Em(zd(B(n,e=>e.CATEGORIES)));let e=bg(n,t);t=t.concat(e),U(e)?r=!1:n=e}return t}t(Ny,`expandCategories`),c(Ny,`expandCategories`);function Py(e){z(e,e=>{Ry(e)||(jy[Ay]=e,e.tokenTypeIdx=Ay++),zy(e)&&!I(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),zy(e)||(e.CATEGORIES=[]),By(e)||(e.categoryMatches=[]),Vy(e)||(e.categoryMatchesMap={})})}t(Py,`assignTokenDefaultProps`),c(Py,`assignTokenDefaultProps`);function Fy(e){z(e,e=>{e.categoryMatches=[],z(e.categoryMatchesMap,(t,n)=>{e.categoryMatches.push(jy[n].tokenTypeIdx)})})}t(Fy,`assignCategoriesTokensProp`),c(Fy,`assignCategoriesTokensProp`);function Iy(e){z(e,e=>{Ly([],e)})}t(Iy,`assignCategoriesMapProp`),c(Iy,`assignCategoriesMapProp`);function Ly(e,t){z(e,e=>{t.categoryMatchesMap[e.tokenTypeIdx]=!0}),z(t.CATEGORIES,n=>{let r=e.concat(t);f_(r,n)||Ly(r,n)})}t(Ly,`singleAssignCategoriesToksMap`),c(Ly,`singleAssignCategoriesToksMap`);function Ry(e){return V(e,`tokenTypeIdx`)}t(Ry,`hasShortKeyProperty`),c(Ry,`hasShortKeyProperty`);function zy(e){return V(e,`CATEGORIES`)}t(zy,`hasCategoriesProperty`),c(zy,`hasCategoriesProperty`);function By(e){return V(e,`categoryMatches`)}t(By,`hasExtendingTokensTypesProperty`),c(By,`hasExtendingTokensTypesProperty`);function Vy(e){return V(e,`categoryMatchesMap`)}t(Vy,`hasExtendingTokensTypesMapProperty`),c(Vy,`hasExtendingTokensTypesMapProperty`);function Hy(e){return V(e,`tokenTypeIdx`)}t(Hy,`isTokenType`),c(Hy,`isTokenType`);var Uy={buildUnableToPopLexerModeMessage(e){return`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,t,n,r,i,a){return`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${n} characters.`}},K;(function(e){e[e.MISSING_PATTERN=0]=`MISSING_PATTERN`,e[e.INVALID_PATTERN=1]=`INVALID_PATTERN`,e[e.EOI_ANCHOR_FOUND=2]=`EOI_ANCHOR_FOUND`,e[e.UNSUPPORTED_FLAGS_FOUND=3]=`UNSUPPORTED_FLAGS_FOUND`,e[e.DUPLICATE_PATTERNS_FOUND=4]=`DUPLICATE_PATTERNS_FOUND`,e[e.INVALID_GROUP_TYPE_FOUND=5]=`INVALID_GROUP_TYPE_FOUND`,e[e.PUSH_MODE_DOES_NOT_EXIST=6]=`PUSH_MODE_DOES_NOT_EXIST`,e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]=`MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE`,e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]=`MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY`,e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]=`MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST`,e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]=`LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED`,e[e.SOI_ANCHOR_FOUND=11]=`SOI_ANCHOR_FOUND`,e[e.EMPTY_MATCH_PATTERN=12]=`EMPTY_MATCH_PATTERN`,e[e.NO_LINE_BREAKS_FLAGS=13]=`NO_LINE_BREAKS_FLAGS`,e[e.UNREACHABLE_PATTERN=14]=`UNREACHABLE_PATTERN`,e[e.IDENTIFY_TERMINATOR=15]=`IDENTIFY_TERMINATOR`,e[e.CUSTOM_LINE_BREAK=16]=`CUSTOM_LINE_BREAK`,e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]=`MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE`})(K||={});var Wy={deferDefinitionErrorsHandling:!1,positionTracking:`full`,lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[` +`,`\r`],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Uy,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(Wy);var Gy=class{static{t(this,`Lexer`)}static{c(this,`Lexer`)}constructor(e,t=Wy){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(e,t)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;let n=Array(this.traceInitIndent+1).join(` `);this.traceInitIndent <${e}>`);let{time:r,value:i}=ev(t),a=r>10?console.warn:console.log;return this.traceInitIndent time: ${r}ms`),this.traceInitIndent--,i}else return t()},typeof t==`boolean`)throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object. +a boolean 2nd argument is no longer supported`);this.config=iu({},Wy,t);let n=this.config.traceInitPerf;n===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof n==`number`&&(this.traceInitMaxIdent=n,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT(`Lexer Constructor`,()=>{let n,r=!0;this.TRACE_INIT(`Lexer Config handling`,()=>{if(this.config.lineTerminatorsPattern===Wy.lineTerminatorsPattern)this.config.lineTerminatorsPattern=yy;else if(this.config.lineTerminatorCharacters===Wy.lineTerminatorCharacters)throw Error(`Error: Missing property on the Lexer config. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(t.safeMode&&t.ensureOptimizations)throw Error(`"safeMode" and "ensureOptimizations" flags are mutually exclusive.`);this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),I(e)?n={modes:{defaultMode:wm(e)},defaultMode:Gv}:(r=!1,n=wm(e))}),this.config.skipValidations===!1&&(this.TRACE_INIT(`performRuntimeChecks`,()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(my(n,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT(`performWarningRuntimeChecks`,()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(hy(n,this.trackStartLines,this.config.lineTerminatorCharacters))})),n.modes=n.modes?n.modes:{},z(n.modes,(e,t)=>{n.modes[t]=V_(e,e=>E_(e))});let i=nu(n.modes);if(z(n.modes,(e,n)=>{this.TRACE_INIT(`Mode: <${n}> processing`,()=>{if(this.modes.push(n),this.config.skipValidations===!1&&this.TRACE_INIT(`validatePatterns`,()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(Yv(e,i))}),U(this.lexerDefinitionErrors)){My(e);let r;this.TRACE_INIT(`analyzeTokenTypes`,()=>{r=Jv(e,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[n]=r.patternIdxToConfig,this.charCodeToPatternIdxToConfig[n]=r.charCodeToPatternIdxToConfig,this.emptyGroups=iu({},this.emptyGroups,r.emptyGroups),this.hasCustom=r.hasCustom||this.hasCustom,this.canModeBeOptimized[n]=r.canBeOptimized}})}),this.defaultMode=n.defaultMode,!U(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){let e=B(this.lexerDefinitionErrors,e=>e.message).join(`----------------------- +`);throw Error(`Errors detected in definition of Lexer: +`+e)}z(this.lexerDefinitionWarning,e=>{$_(e.message)}),this.TRACE_INIT(`Choosing sub-methods implementations`,()=>{if(qv?(this.chopInput=vs,this.match=this.matchWithTest):(this.updateLastIndex=Zs,this.match=this.matchWithExec),r&&(this.handleModes=Zs),this.trackStartLines===!1&&(this.computeNewColumn=vs),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=Zs),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT(`Failed Optimization Warnings`,()=>{let e=z_(this.canModeBeOptimized,(e,t,n)=>(t===!1&&e.push(n),e),[]);if(t.ensureOptimizations&&!U(e))throw Error(`Lexer Modes: < ${e.join(`, `)} > cannot be optimized. + Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode. + Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT(`clearRegExpParserCache`,()=>{Nv()}),this.TRACE_INIT(`toFastProperties`,()=>{tv(this)})})}tokenize(e,t=this.defaultMode){if(!U(this.lexerDefinitionErrors)){let e=B(this.lexerDefinitionErrors,e=>e.message).join(`----------------------- +`);throw Error(`Unable to Tokenize because Errors detected in definition of Lexer: +`+e)}return this.tokenizeInternal(e,t)}tokenizeInternal(e,n){let r,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y=e,b=y.length,x=0,S=0,C=this.hasCustom?0:Math.floor(e.length/10),w=Array(C),ee=[],te=this.trackStartLines?1:void 0,T=this.trackStartLines?1:void 0,ne=gy(this.emptyGroups),re=this.trackStartLines,ie=this.config.lineTerminatorsPattern,ae=0,oe=[],se=[],ce=[],le=[];Object.freeze(le);let ue;function de(){return oe}t(de,`getPossiblePatternsSlow`),c(de,`getPossiblePatternsSlow`);function E(e){let t=Ey(e),n=se[t];return n===void 0?le:n}t(E,`getPossiblePatternsOptimized`),c(E,`getPossiblePatternsOptimized`);let fe=c(e=>{if(ce.length===1&&e.tokenType.PUSH_MODE===void 0){let t=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e);ee.push({offset:e.startOffset,line:e.startLine,column:e.startColumn,length:e.image.length,message:t})}else{ce.pop();let e=Sg(ce);oe=this.patternIdxToConfig[e],se=this.charCodeToPatternIdxToConfig[e],ae=oe.length;let t=this.canModeBeOptimized[e]&&this.config.safeMode===!1;ue=se&&t?E:de}},`pop_mode`);function D(e){ce.push(e),se=this.charCodeToPatternIdxToConfig[e],oe=this.patternIdxToConfig[e],ae=oe.length,ae=oe.length;let t=this.canModeBeOptimized[e]&&this.config.safeMode===!1;ue=se&&t?E:de}t(D,`push_mode`),c(D,`push_mode`),D.call(this,n);let O,pe=this.config.recoveryEnabled;for(;xl.length){l=o,u=d,O=t;break}}}break}}if(l!==null){if(f=l.length,p=O.group,p!==void 0&&(m=O.tokenTypeIdx,h=this.createTokenInstance(l,x,m,O.tokenType,te,T,f),this.handlePayload(h,u),p===!1?S=this.addToken(w,S,h):ne[p].push(h)),e=this.chopInput(e,f),x+=f,T=this.computeNewColumn(T,f),re===!0&&O.canLineTerminator===!0){let e=0,t,n;ie.lastIndex=0;do t=ie.test(l),t===!0&&(n=ie.lastIndex-1,e++);while(t===!0);e!==0&&(te+=e,T=f-n,this.updateTokenEndLineColumnLocation(h,p,n,e,te,T,f))}this.handleModes(O,fe,D,h)}else{let t=x,n=te,r=T,a=pe===!1;for(;a===!1&&x ${Ky(e)} <--`:`token of type --> ${e.name} <--`} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:e,ruleName:t}){return`Redundant input, expecting EOF but found: `+e.image},buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,previous:n,customUserDescription:r,ruleName:i}){let a=` +but found: '`+Kg(t).image+`'`;return r?`Expecting: `+r+a:`Expecting: one of these possible Token sequences: +${B(B(z_(e,(e,t)=>e.concat(t),[]),e=>`[${B(e,e=>Ky(e)).join(`, `)}]`),(e,t)=>` ${t+1}. ${e}`).join(` +`)}`+a},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:n,ruleName:r}){let i=` +but found: '`+Kg(t).image+`'`;return n?`Expecting: `+n+i:`Expecting: expecting at least one iteration which starts with one of these possible Token sequences:: + <${B(e,e=>`[${B(e,e=>Ky(e)).join(`,`)}]`).join(` ,`)}>`+i}};Object.freeze(cb);var lb={buildRuleNotFoundError(e,t){return`Invalid grammar, reference to a rule which is not defined: ->`+t.nonTerminalName+`<- +inside top level rule: ->`+e.name+`<-`}},ub={buildDuplicateFoundError(e,n){function r(e){return e instanceof G?e.terminalType.name:e instanceof av?e.nonTerminalName:``}t(r,`getExtraProductionArgument2`),c(r,`getExtraProductionArgument`);let i=e.name,a=Kg(n),o=a.idx,s=yv(a),l=r(a),u=`->${s}${o>0?o:``}<- ${l?`with argument: ->${l}<-`:``} + appears more than once (${n.length} times) in the top level rule: ->${i}<-. + For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES + `;return u=u.replace(/[ \t]+/g,` `),u=u.replace(/\s\s+/g,` +`),u},buildNamespaceConflictError(e){return`Namespace conflict found in grammar. +The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>. +To resolve this make sure each Terminal and Non-Terminal names are unique +This is easy to accomplish by using the convention that Terminal names start with an uppercase letter +and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(e){let t=B(e.prefixPath,e=>Ky(e)).join(`, `),n=e.alternation.idx===0?``:e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(` ,`)}> due to common lookahead prefix +in inside <${e.topLevelRule.name}> Rule, +<${t}> may appears as a prefix path in all these alternatives. +See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX +For Further details.`},buildAlternationAmbiguityError(e){let t=B(e.prefixPath,e=>Ky(e)).join(`, `),n=e.alternation.idx===0?``:e.alternation.idx,r=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(` ,`)}> in inside <${e.topLevelRule.name}> Rule, +<${t}> may appears as a prefix path in all these alternatives. +`;return r+=`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES +For Further details.`,r},buildEmptyRepetitionError(e){let t=yv(e.repetition);return e.repetition.idx!==0&&(t+=e.repetition.idx),`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens. +This could lead to an infinite loop.`},buildTokenNameError(e){return`deprecated`},buildEmptyAlternationError(e){return`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in inside <${e.topLevelRule.name}> Rule. +Only the last alternative may be an empty alternative.`},buildTooManyAlternativesError(e){return`An Alternation cannot have more than 256 alternatives: + inside <${e.topLevelRule.name}> Rule. + has ${e.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(e){let t=e.topLevelRule.name;return`Left Recursion found in grammar. +rule: <${t}> can be invoked from itself (directly or indirectly) +without consuming any Tokens. The grammar path that causes this is: + ${`${t} --> ${B(e.leftRecursionPath,e=>e.name).concat([t]).join(` --> `)}`} + To fix this refactor your grammar to remove the left recursion. +see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return`deprecated`},buildDuplicateRuleNameError(e){let t;return t=e.topLevelRule instanceof ov?e.topLevelRule.name:e.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}};function db(e,t){let n=new fb(e,t);return n.resolveRefs(),n.errors}t(db,`resolveGrammar`),c(db,`resolveGrammar`);var fb=class extends hv{static{t(this,`GastRefResolverVisitor`)}static{c(this,`GastRefResolverVisitor`)}constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){z(H(this.nameToTopRule),e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{let t=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:t,type:_S.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}},pb=class extends bv{static{t(this,`AbstractNextPossibleTokensWalker`)}static{c(this,`AbstractNextPossibleTokensWalker`)}constructor(e,t){super(),this.topProd=e,this.path=t,this.possibleTokTypes=[],this.nextProductionName=``,this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error(`The path does not start with the walker's top Rule!`);return this.ruleStack=wm(this.path.ruleStack).reverse(),this.occurrenceStack=wm(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,t=[]){this.found||super.walk(e,t)}walkProdRef(e,t,n){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){let r=t.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,r)}}updateExpectedNext(){U(this.ruleStack)?(this.nextProductionName=``,this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},mb=class extends pb{static{t(this,`NextAfterTokenWalker`)}static{c(this,`NextAfterTokenWalker`)}constructor(e,t){super(e,t),this.path=t,this.nextTerminalName=``,this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,t,n){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){let e=new sv({definition:t.concat(n)});this.possibleTokTypes=Sv(e),this.found=!0}}},hb=class extends bv{static{t(this,`AbstractNextTerminalAfterProductionWalker`)}static{c(this,`AbstractNextTerminalAfterProductionWalker`)}constructor(e,t){super(),this.topRule=e,this.occurrence=t,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},gb=class extends hb{static{t(this,`NextTerminalAfterManyWalker`)}static{c(this,`NextTerminalAfterManyWalker`)}walkMany(e,t,n){if(e.idx===this.occurrence){let e=Kg(t.concat(n));this.result.isEndOfRule=e===void 0,e instanceof G&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkMany(e,t,n)}},_b=class extends hb{static{t(this,`NextTerminalAfterManySepWalker`)}static{c(this,`NextTerminalAfterManySepWalker`)}walkManySep(e,t,n){if(e.idx===this.occurrence){let e=Kg(t.concat(n));this.result.isEndOfRule=e===void 0,e instanceof G&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkManySep(e,t,n)}},vb=class extends hb{static{t(this,`NextTerminalAfterAtLeastOneWalker`)}static{c(this,`NextTerminalAfterAtLeastOneWalker`)}walkAtLeastOne(e,t,n){if(e.idx===this.occurrence){let e=Kg(t.concat(n));this.result.isEndOfRule=e===void 0,e instanceof G&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOne(e,t,n)}},yb=class extends hb{static{t(this,`NextTerminalAfterAtLeastOneSepWalker`)}static{c(this,`NextTerminalAfterAtLeastOneSepWalker`)}walkAtLeastOneSep(e,t,n){if(e.idx===this.occurrence){let e=Kg(t.concat(n));this.result.isEndOfRule=e===void 0,e instanceof G&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOneSep(e,t,n)}};function bb(e,n,r=[]){r=wm(r);let i=[],a=0;function o(t){return t.concat(wg(e,a+1))}t(o,`remainingPathWith`),c(o,`remainingPathWith`);function s(e){let t=bb(o(e),n,r);return i.concat(t)}for(t(s,`getAlternativesForProd`),c(s,`getAlternativesForProd`);r.length{U(e.definition)===!1&&(i=s(e.definition))}),i;else if(t instanceof G)r.push(t.terminalType);else throw Error(`non exhaustive match`);a++}return i.push({partialPath:r,suffixDef:wg(e,a)}),i}t(bb,`possiblePathsFrom`),c(bb,`possiblePathsFrom`);function xb(e,t,n,r){let i=`EXIT_NONE_TERMINAL`,a=[i],o=`EXIT_ALTERNATIVE`,s=!1,c=t.length,l=c-r-1,u=[],d=[];for(d.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!U(d);){let e=d.pop();if(e===o){s&&Sg(d).idx<=l&&d.pop();continue}let r=e.def,f=e.idx,p=e.ruleStack,m=e.occurrenceStack;if(U(r))continue;let h=r[0];if(h===i){let e={idx:f,def:wg(r),ruleStack:Eg(p),occurrenceStack:Eg(m)};d.push(e)}else if(h instanceof G)if(f=0;e--){let t={idx:f,def:h.definition[e].definition.concat(wg(r)),ruleStack:p,occurrenceStack:m};d.push(t),d.push(o)}else if(h instanceof sv)d.push({idx:f,def:h.definition.concat(wg(r)),ruleStack:p,occurrenceStack:m});else if(h instanceof ov)d.push(Sb(h,f,p,m));else throw Error(`non exhaustive match`)}return u}t(xb,`nextPossibleTokensAfter`),c(xb,`nextPossibleTokensAfter`);function Sb(e,t,n,r){let i=wm(n);i.push(e.name);let a=wm(r);return a.push(1),{idx:t,def:e.definition,ruleStack:i,occurrenceStack:a}}t(Sb,`expandTopLevelRule`),c(Sb,`expandTopLevelRule`);var q;(function(e){e[e.OPTION=0]=`OPTION`,e[e.REPETITION=1]=`REPETITION`,e[e.REPETITION_MANDATORY=2]=`REPETITION_MANDATORY`,e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]=`REPETITION_MANDATORY_WITH_SEPARATOR`,e[e.REPETITION_WITH_SEPARATOR=4]=`REPETITION_WITH_SEPARATOR`,e[e.ALTERNATION=5]=`ALTERNATION`})(q||={});function Cb(e){if(e instanceof cv||e===`Option`)return q.OPTION;if(e instanceof W||e===`Repetition`)return q.REPETITION;if(e instanceof lv||e===`RepetitionMandatory`)return q.REPETITION_MANDATORY;if(e instanceof uv||e===`RepetitionMandatoryWithSeparator`)return q.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof dv||e===`RepetitionWithSeparator`)return q.REPETITION_WITH_SEPARATOR;if(e instanceof fv||e===`Alternation`)return q.ALTERNATION;throw Error(`non exhaustive match`)}t(Cb,`getProdType`),c(Cb,`getProdType`);function wb(e){let{occurrence:t,rule:n,prodType:r,maxLookahead:i}=e,a=Cb(r);return a===q.ALTERNATION?Fb(t,n,i):Ib(t,n,a,i)}t(wb,`getLookaheadPaths`),c(wb,`getLookaheadPaths`);function Tb(e,t,n,r,i,a){let o=Fb(e,t,n);return a(o,r,zb(o)?ky:Oy,i)}t(Tb,`buildLookaheadFuncForOr`),c(Tb,`buildLookaheadFuncForOr`);function Eb(e,t,n,r,i,a){let o=Ib(e,t,i,n),s=zb(o)?ky:Oy;return a(o[0],s,r)}t(Eb,`buildLookaheadFuncForOptionalProd`),c(Eb,`buildLookaheadFuncForOptionalProd`);function Db(e,t,n,r){let i=e.length,a=Fg(e,e=>Fg(e,e=>e.length===1));if(t)return function(t){let r=B(t,e=>e.GATE);for(let t=0;tzd(e)),(e,t,n)=>(z(t,t=>{V(e,t.tokenTypeIdx)||(e[t.tokenTypeIdx]=n),z(t.categoryMatches,t=>{V(e,t)||(e[t]=n)})}),e),{});return function(){return t[this.LA(1).tokenTypeIdx]}}else return function(){for(let t=0;te.length===1),i=e.length;if(r&&!n){let t=zd(e);if(t.length===1&&U(t[0].categoryMatches)){let e=t[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===e}}else{let e=z_(t,(e,t,n)=>(e[t.tokenTypeIdx]=!0,z(t.categoryMatches,t=>{e[t]=!0}),e),[]);return function(){return e[this.LA(1).tokenTypeIdx]===!0}}}else return function(){nextPath:for(let n=0;nbb([e],1)),r=jb(n.length),i=B(n,e=>{let t={};return z(e,e=>{z(Mb(e.partialPath),e=>{t[e]=!0})}),t}),a=n;for(let e=1;e<=t;e++){let n=a;a=jb(n.length);for(let o=0;o{z(Mb(e.partialPath),e=>{i[o][e]=!0})})}}}}return r}t(Pb,`lookAheadSequenceFromAlternatives`),c(Pb,`lookAheadSequenceFromAlternatives`);function Fb(e,t,n,r){let i=new Ab(e,q.ALTERNATION,r);return t.accept(i),Pb(i.result,n)}t(Fb,`getLookaheadPathsForOr`),c(Fb,`getLookaheadPathsForOr`);function Ib(e,t,n,r){let i=new Ab(e,n);t.accept(i);let a=i.result,o=new kb(t,e,n).startWalking();return Pb([new sv({definition:a}),new sv({definition:o})],r)}t(Ib,`getLookaheadPathsForOptionalProd`),c(Ib,`getLookaheadPathsForOptionalProd`);function Lb(e,t){compareOtherPath:for(let n=0;n{let r=t[n];return e===r||r.categoryMatchesMap[e.tokenTypeIdx]})}t(Rb,`isStrictPrefixOfPath`),c(Rb,`isStrictPrefixOfPath`);function zb(e){return Fg(e,e=>Fg(e,e=>Fg(e,e=>U(e.categoryMatches))))}t(zb,`areTokenCategoriesNotUsed`),c(zb,`areTokenCategoriesNotUsed`);function Bb(e){return B(e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName}),e=>Object.assign({type:_S.CUSTOM_LOOKAHEAD_VALIDATION},e))}t(Bb,`validateLookahead`),c(Bb,`validateLookahead`);function Vb(e,t,n,r){let i=Zg(e,e=>Hb(e,n)),a=ix(e,t,n),o=Zg(e,e=>ex(e,n)),s=Zg(e,t=>Kb(t,e,r,n));return i.concat(a,o,s)}t(Vb,`validateGrammar`),c(Vb,`validateGrammar`);function Hb(e,t){let n=new Gb;e.accept(n);let r=n.allProductions;return B(H(F_($g(r,Ub),e=>e.length>1)),n=>{let r=Kg(n),i=t.buildDuplicateFoundError(e,n),a=yv(r),o={message:i,type:_S.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:a,occurrence:r.idx},s=Wb(r);return s&&(o.parameter=s),o})}t(Hb,`validateDuplicateProductions`),c(Hb,`validateDuplicateProductions`);function Ub(e){return`${yv(e)}_#_${e.idx}_#_${Wb(e)}`}t(Ub,`identifyProductionForDuplicates`),c(Ub,`identifyProductionForDuplicates`);function Wb(e){return e instanceof G?e.terminalType.name:e instanceof av?e.nonTerminalName:``}t(Wb,`getExtraProductionArgument`),c(Wb,`getExtraProductionArgument`);var Gb=class extends hv{static{t(this,`OccurrenceValidationCollector`)}static{c(this,`OccurrenceValidationCollector`)}constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}};function Kb(e,t,n,r){let i=[];if(z_(t,(t,n)=>n.name===e.name?t+1:t,0)>1){let t=r.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});i.push({message:t,type:_S.DUPLICATE_RULE_NAME,ruleName:e.name})}return i}t(Kb,`validateRuleDoesNotAlreadyExist`),c(Kb,`validateRuleDoesNotAlreadyExist`);function qb(e,t,n){let r=[],i;return f_(t,e)||(i=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${n}<-as it is not defined in any of the super grammars `,r.push({message:i,type:_S.INVALID_RULE_OVERRIDE,ruleName:e})),r}t(qb,`validateRuleIsOverridden`),c(qb,`validateRuleIsOverridden`);function Jb(e,t,n,r=[]){let i=[],a=Yb(t.definition);if(U(a))return[];{let t=e.name;f_(a,e)&&i.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:r}),type:_S.LEFT_RECURSION,ruleName:t});let o=Zg(bg(a,r.concat([e])),t=>{let i=wm(r);return i.push(t),Jb(e,t,n,i)});return i.concat(o)}}t(Jb,`validateNoLeftRecursion`),c(Jb,`validateNoLeftRecursion`);function Yb(e){let t=[];if(U(e))return t;let n=Kg(e);if(n instanceof av)t.push(n.referencedRule);else if(n instanceof sv||n instanceof cv||n instanceof lv||n instanceof uv||n instanceof dv||n instanceof W)t=t.concat(Yb(n.definition));else if(n instanceof fv)t=zd(B(n.definition,e=>Yb(e.definition)));else if(!(n instanceof G))throw Error(`non exhaustive match`);let r=_v(n),i=e.length>1;if(r&&i){let n=wg(e);return t.concat(Yb(n))}else return t}t(Yb,`getFirstNoneTerminal`),c(Yb,`getFirstNoneTerminal`);var Xb=class extends hv{static{t(this,`OrCollector`)}static{c(this,`OrCollector`)}constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}};function Zb(e,t){let n=new Xb;e.accept(n);let r=n.alternations;return Zg(r,n=>Zg(Eg(n.definition),(r,i)=>U(xb([r],[],Oy,1))?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:n,emptyChoiceIdx:i}),type:_S.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:n.idx,alternative:i+1}]:[]))}t(Zb,`validateEmptyOrAlternative`),c(Zb,`validateEmptyOrAlternative`);function Qb(e,t,n){let r=new Xb;e.accept(r);let i=r.alternations;return i=V_(i,e=>e.ignoreAmbiguities===!0),Zg(i,r=>{let i=r.idx,a=Fb(i,e,r.maxLookahead||t,r),o=nx(a,r,e,n),s=rx(a,r,e,n);return o.concat(s)})}t(Qb,`validateAmbiguousAlternationAlternatives`),c(Qb,`validateAmbiguousAlternationAlternatives`);var $b=class extends hv{static{t(this,`RepetitionCollector`)}static{c(this,`RepetitionCollector`)}constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}};function ex(e,t){let n=new Xb;e.accept(n);let r=n.alternations;return Zg(r,n=>n.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:n}),type:_S.TOO_MANY_ALTS,ruleName:e.name,occurrence:n.idx}]:[])}t(ex,`validateTooManyAlts`),c(ex,`validateTooManyAlts`);function tx(e,t,n){let r=[];return z(e,e=>{let i=new $b;e.accept(i);let a=i.allProductions;z(a,i=>{let a=Cb(i),o=i.maxLookahead||t,s=i.idx,c=Ib(s,e,a,o)[0];if(U(zd(c))){let t=n.buildEmptyRepetitionError({topLevelRule:e,repetition:i});r.push({message:t,type:_S.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}})}),r}t(tx,`validateSomeNonEmptyLookaheadPath`),c(tx,`validateSomeNonEmptyLookaheadPath`);function nx(e,t,n,r){let i=[];return B(z_(e,(n,r,a)=>(t.definition[a].ignoreAmbiguities===!0||z(r,r=>{let o=[a];z(e,(e,n)=>{a!==n&&Lb(e,r)&&t.definition[n].ignoreAmbiguities!==!0&&o.push(n)}),o.length>1&&!Lb(i,r)&&(i.push(r),n.push({alts:o,path:r}))}),n),[]),e=>{let i=B(e.alts,e=>e+1);return{message:r.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:_S.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:e.alts}})}t(nx,`checkAlternativesAmbiguities`),c(nx,`checkAlternativesAmbiguities`);function rx(e,t,n,r){let i=z_(e,(e,t,n)=>{let r=B(t,e=>({idx:n,path:e}));return e.concat(r)},[]);return Em(Zg(i,e=>{if(t.definition[e.idx].ignoreAmbiguities===!0)return[];let a=e.idx,o=e.path;return B(zg(i,e=>t.definition[e.idx].ignoreAmbiguities!==!0&&e.idx{let i=[e.idx+1,a+1],o=t.idx===0?``:t.idx;return{message:r.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:_S.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:o,alternatives:i}})}))}t(rx,`checkPrefixAlternativesAmbiguities`),c(rx,`checkPrefixAlternativesAmbiguities`);function ix(e,t,n){let r=[],i=B(t,e=>e.name);return z(e,e=>{let t=e.name;if(f_(i,t)){let i=n.buildNamespaceConflictError(e);r.push({message:i,type:_S.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}}),r}t(ix,`checkTerminalAndNoneTerminalsNameSpace`),c(ix,`checkTerminalAndNoneTerminalsNameSpace`);function ax(e){let t=fg(e,{errMsgProvider:lb}),n={};return z(e.rules,e=>{n[e.name]=e}),db(n,t.errMsgProvider)}t(ax,`resolveGrammar2`),c(ax,`resolveGrammar`);function ox(e){return e=fg(e,{errMsgProvider:ub}),Vb(e.rules,e.tokenTypes,e.errMsgProvider,e.grammarName)}t(ox,`validateGrammar2`),c(ox,`validateGrammar`);var sx=`MismatchedTokenException`,cx=`NoViableAltException`,lx=`EarlyExitException`,ux=`NotAllInputParsedException`,dx=[sx,cx,lx,ux];Object.freeze(dx);function fx(e){return f_(dx,e.name)}t(fx,`isRecognitionException`),c(fx,`isRecognitionException`);var px=class extends Error{static{t(this,`RecognitionException`)}static{c(this,`RecognitionException`)}constructor(e,t){super(e),this.token=t,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},mx=class extends px{static{t(this,`MismatchedTokenException`)}static{c(this,`MismatchedTokenException`)}constructor(e,t,n){super(e,t),this.previousToken=n,this.name=sx}},hx=class extends px{static{t(this,`NoViableAltException`)}static{c(this,`NoViableAltException`)}constructor(e,t,n){super(e,t),this.previousToken=n,this.name=cx}},gx=class extends px{static{t(this,`NotAllInputParsedException`)}static{c(this,`NotAllInputParsedException`)}constructor(e,t){super(e,t),this.name=ux}},_x=class extends px{static{t(this,`EarlyExitException`)}static{c(this,`EarlyExitException`)}constructor(e,t,n){super(e,t),this.previousToken=n,this.name=lx}},vx={},yx=`InRuleRecoveryException`,bx=class extends Error{static{t(this,`InRuleRecoveryException`)}static{c(this,`InRuleRecoveryException`)}constructor(e){super(e),this.name=yx}},xx=class{static{t(this,`Recoverable`)}static{c(this,`Recoverable`)}initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=V(e,`recoveryEnabled`)?e.recoveryEnabled:hS.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=Sx)}getTokenToInsert(e){let t=ob(e,``,NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,t,n,r){let i=this.findReSyncTokenType(),a=this.exportLexerState(),o=[],s=!1,l=this.LA(1),u=this.LA(1),d=c(()=>{let e=this.LA(0),t=new mx(this.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:l,previous:e,ruleName:this.getCurrRuleFullName()}),l,this.LA(0));t.resyncedTokens=Eg(o),this.SAVE_ERROR(t)},`generateErrorMessage`);for(;!s;)if(this.tokenMatcher(u,r)){d();return}else if(n.call(this)){d(),e.apply(this,t);return}else this.tokenMatcher(u,i)?s=!0:(u=this.SKIP_TOKEN(),this.addToResyncTokens(u,o));this.importLexerState(a)}shouldInRepetitionRecoveryBeTried(e,t,n){return!(n===!1||this.tokenMatcher(this.LA(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))}getFollowsForInRuleRecovery(e,t){let n=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(n)}tryInRuleRecovery(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){let e=this.SKIP_TOKEN();return this.consumeToken(),e}throw new bx(`sad sad panda`)}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e)||U(t))return!1;let n=this.LA(1);return Wg(t,e=>this.tokenMatcher(n,e))!==void 0}canRecoverWithSingleTokenDeletion(e){return this.canTokenTypeBeDeletedInRecovery(e)?this.tokenMatcher(this.LA(2),e):!1}isInCurrentRuleReSyncSet(e){let t=this.getCurrFollowKey();return f_(this.getFollowSetFromFollowKey(t),e)}findReSyncTokenType(){let e=this.flattenFollowSet(),t=this.LA(1),n=2;for(;;){let r=Wg(e,e=>sb(t,e));if(r!==void 0)return r;t=this.LA(n),n++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return vx;let e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(n)}}buildFullFollowKeyStack(){let e=this.RULE_STACK,t=this.RULE_OCCURRENCE_STACK;return B(e,(n,r)=>r===0?vx:{ruleName:this.shortRuleNameToFullName(n),idxInCallingRule:t[r],inRule:this.shortRuleNameToFullName(e[r-1])})}flattenFollowSet(){return zd(B(this.buildFullFollowKeyStack(),e=>this.getFollowSetFromFollowKey(e)))}getFollowSetFromFollowKey(e){if(e===vx)return[ab];let t=e.ruleName+e.idxInCallingRule+Ev+e.inRule;return this.resyncFollows[t]}addToResyncTokens(e,t){return this.tokenMatcher(e,ab)||t.push(e),t}reSyncTo(e){let t=[],n=this.LA(1);for(;this.tokenMatcher(n,e)===!1;)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,t);return Eg(t)}attemptInRepetitionRecovery(e,t,n,r,i,a,o){}getCurrentGrammarPath(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:wm(this.RULE_OCCURRENCE_STACK),lastTok:e,lastTokOccurrence:t}}getHumanReadableRuleStack(){return B(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}};function Sx(e,t,n,r,i,a,o){let s=this.getKeyForAutomaticLookahead(r,i),c=this.firstAfterRepMap[s];if(c===void 0){let e=this.getCurrRuleFullName(),t=this.getGAstProductions()[e];c=new a(t,i).startWalking(),this.firstAfterRepMap[s]=c}let l=c.token,u=c.occurrence,d=c.isEndOfRule;this.RULE_STACK.length===1&&d&&l===void 0&&(l=ab,u=1),!(l===void 0||u===void 0)&&this.shouldInRepetitionRecoveryBeTried(l,u,o)&&this.tryInRepetitionRecovery(e,t,n,l)}t(Sx,`attemptInRepetitionRecovery`),c(Sx,`attemptInRepetitionRecovery`);var Cx=4,wx=8,Tx=8,Ex=1<Jb(e,e,ub))}validateEmptyOrAlternatives(e){return Zg(e,e=>Zb(e,ub))}validateAmbiguousAlternationAlternatives(e,t){return Zg(e,e=>Qb(e,t,ub))}validateSomeNonEmptyLookaheadPath(e,t){return tx(e,t,ub)}buildLookaheadForAlternation(e){return Tb(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,Db)}buildLookaheadForOptional(e){return Eb(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,Cb(e.prodType),Ob)}},Px=class{static{t(this,`LooksAhead`)}static{c(this,`LooksAhead`)}initLooksAhead(e){this.dynamicTokensEnabled=V(e,`dynamicTokensEnabled`)?e.dynamicTokensEnabled:hS.dynamicTokensEnabled,this.maxLookahead=V(e,`maxLookahead`)?e.maxLookahead:hS.maxLookahead,this.lookaheadStrategy=V(e,`lookaheadStrategy`)?e.lookaheadStrategy:new Nx({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){z(e,e=>{this.TRACE_INIT(`${e.name} Rule Lookahead`,()=>{let{alternation:t,repetition:n,option:r,repetitionMandatory:i,repetitionMandatoryWithSeparator:a,repetitionWithSeparator:o}=Ix(e);z(t,t=>{let n=t.idx===0?``:t.idx;this.TRACE_INIT(`${yv(t)}${n}`,()=>{let n=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:t.idx,rule:e,maxLookahead:t.maxLookahead||this.maxLookahead,hasPredicates:t.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),r=Mx(this.fullRuleNameToShort[e.name],Ex,t.idx);this.setLaFuncCache(r,n)})}),z(n,t=>{this.computeLookaheadFunc(e,t.idx,Ox,`Repetition`,t.maxLookahead,yv(t))}),z(r,t=>{this.computeLookaheadFunc(e,t.idx,Dx,`Option`,t.maxLookahead,yv(t))}),z(i,t=>{this.computeLookaheadFunc(e,t.idx,kx,`RepetitionMandatory`,t.maxLookahead,yv(t))}),z(a,t=>{this.computeLookaheadFunc(e,t.idx,jx,`RepetitionMandatoryWithSeparator`,t.maxLookahead,yv(t))}),z(o,t=>{this.computeLookaheadFunc(e,t.idx,Ax,`RepetitionWithSeparator`,t.maxLookahead,yv(t))})})})}computeLookaheadFunc(e,t,n,r,i,a){this.TRACE_INIT(`${a}${t===0?``:t}`,()=>{let a=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:e,maxLookahead:i||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:r}),o=Mx(this.fullRuleNameToShort[e.name],n,t);this.setLaFuncCache(o,a)})}getKeyForAutomaticLookahead(e,t){return Mx(this.getLastExplicitRuleShortName(),e,t)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,t){this.lookAheadFuncsCache.set(e,t)}},Fx=new class extends hv{static{t(this,`DslMethodsCollectorVisitor`)}static{c(this,`DslMethodsCollectorVisitor`)}constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}};function Ix(e){Fx.reset(),e.accept(Fx);let t=Fx.dslMethods;return Fx.reset(),t}t(Ix,`collectMethods`),c(Ix,`collectMethods`);function Lx(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffsete.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>: + ${t.join(` + +`).replace(/\n/g,` + `)}`)}},`validateVisitor`)},n.prototype.constructor=n,n._RULE_NAMES=t,n}t(Wx,`createBaseSemanticVisitorConstructor`),c(Wx,`createBaseSemanticVisitorConstructor`);function Gx(e,t,n){let r=c(function(){},`derivedConstructor`);Hx(r,e+`BaseSemanticsWithDefaults`);let i=Object.create(n.prototype);return z(t,e=>{i[e]=Ux}),r.prototype=i,r.prototype.constructor=r,r}t(Gx,`createBaseVisitorConstructorWithDefaults`),c(Gx,`createBaseVisitorConstructorWithDefaults`);var Kx;(function(e){e[e.REDUNDANT_METHOD=0]=`REDUNDANT_METHOD`,e[e.MISSING_METHOD=1]=`MISSING_METHOD`})(Kx||={});function qx(e,t){return Jx(e,t)}t(qx,`validateVisitor`),c(qx,`validateVisitor`);function Jx(e,t){return Em(B(zg(t,t=>ws(e[t])===!1),t=>({msg:`Missing visitor method: <${t}> on ${e.constructor.name} CST Visitor.`,type:Kx.MISSING_METHOD,methodName:t})))}t(Jx,`validateMissingCstMethods`),c(Jx,`validateMissingCstMethods`);var Yx=class{static{t(this,`TreeBuilder`)}static{c(this,`TreeBuilder`)}initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=V(e,`nodeLocationTracking`)?e.nodeLocationTracking:hS.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=Zs,this.cstFinallyStateUpdate=Zs,this.cstPostTerminal=Zs,this.cstPostNonTerminal=Zs,this.cstPostRule=Zs;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Rx,this.setNodeLocationFromNode=Rx,this.cstPostRule=Zs,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=Zs,this.setNodeLocationFromNode=Zs,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Lx,this.setNodeLocationFromNode=Lx,this.cstPostRule=Zs,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=Zs,this.setNodeLocationFromNode=Zs,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=Zs,this.setNodeLocationFromNode=Zs,this.cstPostRule=Zs,this.setInitialNodeLocation=Zs;else throw Error(`Invalid config option: "${e.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(e){let t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){let t={name:e,children:Object.create(null)};this.setInitialNodeLocation(t),this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){let t=this.LA(0),n=e.location;n.startOffset<=t.startOffset?(n.endOffset=t.endOffset,n.endLine=t.endLine,n.endColumn=t.endColumn):(n.startOffset=NaN,n.startLine=NaN,n.startColumn=NaN)}cstPostRuleOnlyOffset(e){let t=this.LA(0),n=e.location;n.startOffset<=t.startOffset?n.endOffset=t.endOffset:n.startOffset=NaN}cstPostTerminal(e,t){let n=this.CST_STACK[this.CST_STACK.length-1];zx(n,t,e),this.setNodeLocationFromToken(n.location,t)}cstPostNonTerminal(e,t){let n=this.CST_STACK[this.CST_STACK.length-1];Bx(n,t,e),this.setNodeLocationFromNode(n.location,e.location)}getBaseCstVisitorConstructor(){if(E_(this.baseCstVisitorConstructor)){let e=Wx(this.className,nu(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(E_(this.baseCstVisitorWithDefaultsConstructor)){let e=Gx(this.className,nu(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){let e=this.RULE_STACK;return e[e.length-1]}getPreviousExplicitRuleShortName(){let e=this.RULE_STACK;return e[e.length-2]}getLastExplicitRuleOccurrenceIndex(){let e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]}},Xx=class{static{t(this,`LexerAdapter`)}static{c(this,`LexerAdapter`)}initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(this.selfAnalysisDone!==!0)throw Error(`Missing invocation at the end of the Parser's constructor.`);this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):mS}LA(e){let t=this.currIdx+e;return t<0||this.tokVectorLength<=t?mS:this.tokVector[t]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}},Zx=class{static{t(this,`RecognizerApi`)}static{c(this,`RecognizerApi`)}ACTION(e){return e.call(this)}consume(e,t,n){return this.consumeInternal(t,e,n)}subrule(e,t,n){return this.subruleInternal(t,e,n)}option(e,t){return this.optionInternal(t,e)}or(e,t){return this.orInternal(t,e)}many(e,t){return this.manyInternal(e,t)}atLeastOne(e,t){return this.atLeastOneInternal(e,t)}CONSUME(e,t){return this.consumeInternal(e,0,t)}CONSUME1(e,t){return this.consumeInternal(e,1,t)}CONSUME2(e,t){return this.consumeInternal(e,2,t)}CONSUME3(e,t){return this.consumeInternal(e,3,t)}CONSUME4(e,t){return this.consumeInternal(e,4,t)}CONSUME5(e,t){return this.consumeInternal(e,5,t)}CONSUME6(e,t){return this.consumeInternal(e,6,t)}CONSUME7(e,t){return this.consumeInternal(e,7,t)}CONSUME8(e,t){return this.consumeInternal(e,8,t)}CONSUME9(e,t){return this.consumeInternal(e,9,t)}SUBRULE(e,t){return this.subruleInternal(e,0,t)}SUBRULE1(e,t){return this.subruleInternal(e,1,t)}SUBRULE2(e,t){return this.subruleInternal(e,2,t)}SUBRULE3(e,t){return this.subruleInternal(e,3,t)}SUBRULE4(e,t){return this.subruleInternal(e,4,t)}SUBRULE5(e,t){return this.subruleInternal(e,5,t)}SUBRULE6(e,t){return this.subruleInternal(e,6,t)}SUBRULE7(e,t){return this.subruleInternal(e,7,t)}SUBRULE8(e,t){return this.subruleInternal(e,8,t)}SUBRULE9(e,t){return this.subruleInternal(e,9,t)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,t,n=gS){if(f_(this.definedRulesNames,e)){let t={message:ub.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:_S.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(t)}this.definedRulesNames.push(e);let r=this.defineRule(e,t,n);return this[e]=r,r}OVERRIDE_RULE(e,t,n=gS){let r=qb(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(r);let i=this.defineRule(e,t,n);return this[e]=i,i}BACKTRACK(e,t){return function(){this.isBackTrackingStack.push(1);let n=this.saveRecogState();try{return e.apply(this,t),!0}catch(e){if(fx(e))return!1;throw e}finally{this.reloadRecogState(n),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return pv(H(this.gastProductionsCache))}},Qx=class{static{t(this,`RecognizerEngine`)}static{c(this,`RecognizerEngine`)}initRecognizerEngine(e,t){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=ky,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},V(t,`serializedGrammar`))throw Error(`The Parser's configuration can no longer contain a property. + See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0 + For Further details.`);if(I(e)){if(U(e))throw Error(`A Token Vocabulary cannot be empty. + Note that the first argument for the parser constructor + is no longer a Token vector (since v4.0).`);if(typeof e[0].startOffset==`number`)throw Error(`The Parser constructor no longer accepts a token vector as the first argument. + See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0 + For Further details.`)}if(I(e))this.tokensMap=z_(e,(e,t)=>(e[t.name]=t,e),{});else if(V(e,`modes`)&&Fg(zd(H(e.modes)),Hy)){let t=Z_(zd(H(e.modes)));this.tokensMap=z_(t,(e,t)=>(e[t.name]=t,e),{})}else if(rs(e))this.tokensMap=wm(e);else throw Error(` argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition`);this.tokensMap.EOF=ab;let n=Fg(V(e,`modes`)?zd(H(e.modes)):H(e),e=>U(e.categoryMatches));this.tokenMatcher=n?ky:Oy,My(H(this.tokensMap))}defineRule(e,n,r){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called' +Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let i=V(r,`resyncEnabled`)?r.resyncEnabled:gS.resyncEnabled,a=V(r,`recoveryValueFunc`)?r.recoveryValueFunc:gS.recoveryValueFunc,o=this.ruleShortNameIdx<t.call(this)&&e.call(this),`lookAheadFunc`)}}else i=e;if(r.call(this)===!0)return i.call(this)}atLeastOneInternal(e,t){let n=this.getKeyForAutomaticLookahead(kx,e);return this.atLeastOneInternalLogic(e,t,n)}atLeastOneInternalLogic(e,t,n){let r=this.getLaFuncFromCache(n),i;if(typeof t!=`function`){i=t.DEF;let e=t.GATE;if(e!==void 0){let t=r;r=c(()=>e.call(this)&&t.call(this),`lookAheadFunc`)}}else i=t;if(r.call(this)===!0){let e=this.doSingleRepetition(i);for(;r.call(this)===!0&&e===!0;)e=this.doSingleRepetition(i)}else throw this.raiseEarlyExitException(e,q.REPETITION_MANDATORY,t.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],r,kx,e,vb)}atLeastOneSepFirstInternal(e,t){let n=this.getKeyForAutomaticLookahead(jx,e);this.atLeastOneSepFirstInternalLogic(e,t,n)}atLeastOneSepFirstInternalLogic(e,t,n){let r=t.DEF,i=t.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){r.call(this);let t=c(()=>this.tokenMatcher(this.LA(1),i),`separatorLookAheadFunc`);for(;this.tokenMatcher(this.LA(1),i)===!0;)this.CONSUME(i),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,r,yb],t,jx,e,yb)}else throw this.raiseEarlyExitException(e,q.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG)}manyInternal(e,t){let n=this.getKeyForAutomaticLookahead(Ox,e);return this.manyInternalLogic(e,t,n)}manyInternalLogic(e,t,n){let r=this.getLaFuncFromCache(n),i;if(typeof t!=`function`){i=t.DEF;let e=t.GATE;if(e!==void 0){let t=r;r=c(()=>e.call(this)&&t.call(this),`lookaheadFunction`)}}else i=t;let a=!0;for(;r.call(this)===!0&&a===!0;)a=this.doSingleRepetition(i);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],r,Ox,e,gb,a)}manySepFirstInternal(e,t){let n=this.getKeyForAutomaticLookahead(Ax,e);this.manySepFirstInternalLogic(e,t,n)}manySepFirstInternalLogic(e,t,n){let r=t.DEF,i=t.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){r.call(this);let t=c(()=>this.tokenMatcher(this.LA(1),i),`separatorLookAheadFunc`);for(;this.tokenMatcher(this.LA(1),i)===!0;)this.CONSUME(i),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,r,_b],t,Ax,e,_b)}}repetitionSepSecondInternal(e,t,n,r,i){for(;n();)this.CONSUME(t),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,n,r,i],n,jx,e,i)}doSingleRepetition(e){let t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t}orInternal(e,t){let n=this.getKeyForAutomaticLookahead(Ex,t),r=I(e)?e:e.DEF,i=this.getLaFuncFromCache(n).call(this,r);if(i!==void 0)return r[i].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){let e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new gx(t,e))}}subruleInternal(e,t,n){let r;try{let i=n===void 0?void 0:n.ARGS;return this.subruleIdx=t,r=e.apply(this,i),this.cstPostNonTerminal(r,n!==void 0&&n.LABEL!==void 0?n.LABEL:e.ruleName),r}catch(t){throw this.subruleInternalError(t,n,e.ruleName)}}subruleInternalError(e,t,n){throw fx(e)&&e.partialCstResult!==void 0&&(this.cstPostNonTerminal(e.partialCstResult,t!==void 0&&t.LABEL!==void 0?t.LABEL:n),delete e.partialCstResult),e}consumeInternal(e,t,n){let r;try{let t=this.LA(1);this.tokenMatcher(t,e)===!0?(this.consumeToken(),r=t):this.consumeInternalError(e,t,n)}catch(n){r=this.consumeInternalRecovery(e,t,n)}return this.cstPostTerminal(n!==void 0&&n.LABEL!==void 0?n.LABEL:e.name,r),r}consumeInternalError(e,t,n){let r,i=this.LA(0);throw r=n!==void 0&&n.ERR_MSG?n.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:i,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new mx(r,t,i))}consumeInternalRecovery(e,t,n){if(this.recoveryEnabled&&n.name===`MismatchedTokenException`&&!this.isBackTracking()){let r=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,r)}catch(e){throw e.name===yx?n:e}}else throw n}saveRecogState(){let e=this.errors,t=wm(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK}ruleInvocationStateUpdate(e,t,n){this.RULE_OCCURRENCE_STACK.push(n),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(t)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){let e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),ab)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}},$x=class{static{t(this,`ErrorHandler`)}static{c(this,`ErrorHandler`)}initErrorHandler(e){this._errors=[],this.errorMessageProvider=V(e,`errorMessageProvider`)?e.errorMessageProvider:hS.errorMessageProvider}SAVE_ERROR(e){if(fx(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:wm(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error(`Trying to save an Error which is not a RecognitionException`)}get errors(){return wm(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,t,n){let r=this.getCurrRuleFullName(),i=this.getGAstProductions()[r],a=Ib(e,i,t,this.maxLookahead)[0],o=[];for(let e=1;e<=this.maxLookahead;e++)o.push(this.LA(e));let s=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:a,actual:o,previous:this.LA(0),customUserDescription:n,ruleName:r});throw this.SAVE_ERROR(new _x(s,this.LA(1),this.LA(0)))}raiseNoAltException(e,t){let n=this.getCurrRuleFullName(),r=this.getGAstProductions()[n],i=Fb(e,r,this.maxLookahead),a=[];for(let e=1;e<=this.maxLookahead;e++)a.push(this.LA(e));let o=this.LA(0),s=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:i,actual:a,previous:o,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new hx(s,this.LA(1),o))}},eS=class{static{t(this,`ContentAssist`)}static{c(this,`ContentAssist`)}initContentAssist(){}computeContentAssist(e,t){let n=this.gastProductionsCache[e];if(E_(n))throw Error(`Rule ->${e}<- does not exist in this grammar.`);return xb([n],t,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){let t=Kg(e.ruleStack),n=this.getGAstProductions()[t];return new mb(n,e).startWalking()}},tS={description:`This Object indicates the Parser is during Recording Phase`};Object.freeze(tS);var nS=!0,rS=2**wx-1,iS=rb({name:`RECORDING_PHASE_TOKEN`,pattern:Gy.NA});My([iS]);var aS=ob(iS,`This IToken indicates the Parser is in Recording Phase + See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(aS);var oS={name:`This CSTNode indicates the Parser is in Recording Phase + See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},sS=class{static{t(this,`GastRecorder`)}static{c(this,`GastRecorder`)}initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT(`Enable Recording`,()=>{for(let e=0;e<10;e++){let t=e>0?e:``;this[`CONSUME${t}`]=function(t,n){return this.consumeInternalRecord(t,e,n)},this[`SUBRULE${t}`]=function(t,n){return this.subruleInternalRecord(t,e,n)},this[`OPTION${t}`]=function(t){return this.optionInternalRecord(t,e)},this[`OR${t}`]=function(t){return this.orInternalRecord(t,e)},this[`MANY${t}`]=function(t){this.manyInternalRecord(e,t)},this[`MANY_SEP${t}`]=function(t){this.manySepFirstInternalRecord(e,t)},this[`AT_LEAST_ONE${t}`]=function(t){this.atLeastOneInternalRecord(e,t)},this[`AT_LEAST_ONE_SEP${t}`]=function(t){this.atLeastOneSepFirstInternalRecord(e,t)}}this.consume=function(e,t,n){return this.consumeInternalRecord(t,e,n)},this.subrule=function(e,t,n){return this.subruleInternalRecord(t,e,n)},this.option=function(e,t){return this.optionInternalRecord(t,e)},this.or=function(e,t){return this.orInternalRecord(t,e)},this.many=function(e,t){this.manyInternalRecord(e,t)},this.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT(`Deleting Recording methods`,()=>{let e=this;for(let t=0;t<10;t++){let n=t>0?t:``;delete e[`CONSUME${n}`],delete e[`SUBRULE${n}`],delete e[`OPTION${n}`],delete e[`OR${n}`],delete e[`MANY${n}`],delete e[`MANY_SEP${n}`],delete e[`AT_LEAST_ONE${n}`],delete e[`AT_LEAST_ONE_SEP${n}`]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,t){return()=>!0}LA_RECORD(e){return mS}topLevelRuleRecord(e,t){try{let n=new ov({definition:[],name:e});return n.name=e,this.recordingProdStack.push(n),t.call(this),this.recordingProdStack.pop(),n}catch(e){if(e.KNOWN_RECORDER_ERROR!==!0)try{e.message+=` + This error was thrown during the "grammar recording phase" For more info see: + https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw e}throw e}}optionInternalRecord(e,t){return cS.call(this,cv,e,t)}atLeastOneInternalRecord(e,t){cS.call(this,lv,t,e)}atLeastOneSepFirstInternalRecord(e,t){cS.call(this,uv,t,e,nS)}manyInternalRecord(e,t){cS.call(this,W,t,e)}manySepFirstInternalRecord(e,t){cS.call(this,dv,t,e,nS)}orInternalRecord(e,t){return lS.call(this,e,t)}subruleInternalRecord(e,t,n){if(dS(t),!e||V(e,`ruleName`)===!1){let n=Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}> + inside top level rule: <${this.recordingProdStack[0].name}>`);throw n.KNOWN_RECORDER_ERROR=!0,n}let r=Sg(this.recordingProdStack),i=e.ruleName,a=new av({idx:t,nonTerminalName:i,label:n?.LABEL,referencedRule:void 0});return r.definition.push(a),this.outputCst?oS:tS}consumeInternalRecord(e,t,n){if(dS(t),!Ry(e)){let n=Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}> + inside top level rule: <${this.recordingProdStack[0].name}>`);throw n.KNOWN_RECORDER_ERROR=!0,n}let r=Sg(this.recordingProdStack),i=new G({idx:t,terminalType:e,label:n?.LABEL});return r.definition.push(i),aS}};function cS(e,t,n,r=!1){dS(n);let i=Sg(this.recordingProdStack),a=ws(t)?t:t.DEF,o=new e({definition:[],idx:n});return r&&(o.separator=t.SEP),V(t,`MAX_LOOKAHEAD`)&&(o.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(o),a.call(this),i.definition.push(o),this.recordingProdStack.pop(),tS}t(cS,`recordProd`),c(cS,`recordProd`);function lS(e,t){dS(t);let n=Sg(this.recordingProdStack),r=I(e)===!1,i=r===!1?e:e.DEF,a=new fv({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});return V(e,`MAX_LOOKAHEAD`)&&(a.maxLookahead=e.MAX_LOOKAHEAD),a.hasPredicates=G_(i,e=>ws(e.GATE)),n.definition.push(a),z(i,e=>{let t=new sv({definition:[]});a.definition.push(t),V(e,`IGNORE_AMBIGUITIES`)?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:V(e,`GATE`)&&(t.ignoreAmbiguities=!0),this.recordingProdStack.push(t),e.ALT.call(this),this.recordingProdStack.pop()}),tS}t(lS,`recordOrProd`),c(lS,`recordOrProd`);function uS(e){return e===0?``:`${e}`}t(uS,`getIdxSuffix`),c(uS,`getIdxSuffix`);function dS(e){if(e<0||e>rS){let t=Error(`Invalid DSL Method idx value: <${e}> + Idx value must be a none negative value smaller than ${rS+1}`);throw t.KNOWN_RECORDER_ERROR=!0,t}}t(dS,`assertMethodIdxIsValid`),c(dS,`assertMethodIdxIsValid`);var fS=class{static{t(this,`PerformanceTracer`)}static{c(this,`PerformanceTracer`)}initPerformanceTracer(e){if(V(e,`traceInitPerf`)){let t=e.traceInitPerf,n=typeof t==`number`;this.traceInitMaxIdent=n?t:1/0,this.traceInitPerf=n?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=hS.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,t){if(this.traceInitPerf===!0){this.traceInitIndent++;let n=Array(this.traceInitIndent+1).join(` `);this.traceInitIndent <${e}>`);let{time:r,value:i}=ev(t),a=r>10?console.warn:console.log;return this.traceInitIndent time: ${r}ms`),this.traceInitIndent--,i}else return t()}};function pS(e,t){t.forEach(t=>{let n=t.prototype;Object.getOwnPropertyNames(n).forEach(r=>{if(r===`constructor`)return;let i=Object.getOwnPropertyDescriptor(n,r);i&&(i.get||i.set)?Object.defineProperty(e.prototype,r,i):e.prototype[r]=t.prototype[r]})})}t(pS,`applyMixins`),c(pS,`applyMixins`);var mS=ob(ab,``,NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(mS);var hS=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:cb,nodeLocationTracking:`none`,traceInitPerf:!1,skipValidations:!1}),gS=Object.freeze({recoveryValueFunc:c(()=>void 0,`recoveryValueFunc`),resyncEnabled:!0}),_S;(function(e){e[e.INVALID_RULE_NAME=0]=`INVALID_RULE_NAME`,e[e.DUPLICATE_RULE_NAME=1]=`DUPLICATE_RULE_NAME`,e[e.INVALID_RULE_OVERRIDE=2]=`INVALID_RULE_OVERRIDE`,e[e.DUPLICATE_PRODUCTIONS=3]=`DUPLICATE_PRODUCTIONS`,e[e.UNRESOLVED_SUBRULE_REF=4]=`UNRESOLVED_SUBRULE_REF`,e[e.LEFT_RECURSION=5]=`LEFT_RECURSION`,e[e.NONE_LAST_EMPTY_ALT=6]=`NONE_LAST_EMPTY_ALT`,e[e.AMBIGUOUS_ALTS=7]=`AMBIGUOUS_ALTS`,e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]=`CONFLICT_TOKENS_RULES_NAMESPACE`,e[e.INVALID_TOKEN_NAME=9]=`INVALID_TOKEN_NAME`,e[e.NO_NON_EMPTY_LOOKAHEAD=10]=`NO_NON_EMPTY_LOOKAHEAD`,e[e.AMBIGUOUS_PREFIX_ALTS=11]=`AMBIGUOUS_PREFIX_ALTS`,e[e.TOO_MANY_ALTS=12]=`TOO_MANY_ALTS`,e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]=`CUSTOM_LOOKAHEAD_VALIDATION`})(_S||={});function vS(e=void 0){return function(){return e}}t(vS,`EMPTY_ALT`),c(vS,`EMPTY_ALT`);var yS=class e{static{t(this,`_Parser`)}static{c(this,`Parser`)}static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT(`performSelfAnalysis`,()=>{let t;this.selfAnalysisDone=!0;let n=this.className;this.TRACE_INIT(`toFastProps`,()=>{tv(this)}),this.TRACE_INIT(`Grammar Recording`,()=>{try{this.enableRecording(),z(this.definedRulesNames,e=>{let t=this[e].originalGrammarAction,n;this.TRACE_INIT(`${e} Rule`,()=>{n=this.topLevelRuleRecord(e,t)}),this.gastProductionsCache[e]=n})}finally{this.disableRecording()}});let r=[];if(this.TRACE_INIT(`Grammar Resolving`,()=>{r=ax({rules:H(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(r)}),this.TRACE_INIT(`Grammar Validations`,()=>{if(U(r)&&this.skipValidations===!1){let e=ox({rules:H(this.gastProductionsCache),tokenTypes:H(this.tokensMap),errMsgProvider:ub,grammarName:n}),t=Bb({lookaheadStrategy:this.lookaheadStrategy,rules:H(this.gastProductionsCache),tokenTypes:H(this.tokensMap),grammarName:n});this.definitionErrors=this.definitionErrors.concat(e,t)}}),U(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT(`computeAllProdsFollows`,()=>{let e=Ov(H(this.gastProductionsCache));this.resyncFollows=e}),this.TRACE_INIT(`ComputeLookaheadFunctions`,()=>{var e,t;(t=(e=this.lookaheadStrategy).initialize)==null||t.call(e,{rules:H(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(H(this.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!U(this.definitionErrors))throw t=B(this.definitionErrors,e=>e.message),Error(`Parser Definition Errors detected: + ${t.join(` +------------------------------- +`)}`)})}constructor(e,t){this.definitionErrors=[],this.selfAnalysisDone=!1;let n=this;if(n.initErrorHandler(t),n.initLexerAdapter(),n.initLooksAhead(t),n.initRecognizerEngine(e,t),n.initRecoverable(t),n.initTreeBuilder(t),n.initContentAssist(),n.initGastRecorder(t),n.initPerformanceTracer(t),V(t,`ignoredIssues`))throw Error(`The IParserConfig property has been deprecated. + Please use the flag on the relevant DSL method instead. + See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES + For further details.`);this.skipValidations=V(t,`skipValidations`)?t.skipValidations:hS.skipValidations}};yS.DEFER_DEFINITION_ERRORS_HANDLING=!1,pS(yS,[xx,Px,Yx,Xx,Qx,Zx,$x,eS,sS,fS]);var bS=class extends yS{static{t(this,`EmbeddedActionsParser`)}static{c(this,`EmbeddedActionsParser`)}constructor(e,t=hS){let n=wm(t);n.outputCst=!1,super(e,n)}};function xS(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n-1}t(PS,`listCacheHas2`),c(PS,`listCacheHas`);var FS=PS;function IS(e,t){var n=this.__data__,r=OS(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}t(IS,`listCacheSet2`),c(IS,`listCacheSet`);var LS=IS;function RS(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&Lw?new jw:void 0;for(a.set(e,t),a.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=VT}t(HT,`isLength2`),c(HT,`isLength`);var UT=HT,WT=`[object Arguments]`,GT=`[object Array]`,KT=`[object Boolean]`,qT=`[object Date]`,JT=`[object Error]`,YT=`[object Function]`,XT=`[object Map]`,ZT=`[object Number]`,QT=`[object Object]`,$T=`[object RegExp]`,eE=`[object Set]`,tE=`[object String]`,nE=`[object WeakMap]`,rE=`[object ArrayBuffer]`,iE=`[object DataView]`,aE=`[object Float32Array]`,oE=`[object Float64Array]`,sE=`[object Int8Array]`,cE=`[object Int16Array]`,lE=`[object Int32Array]`,uE=`[object Uint8Array]`,dE=`[object Uint8ClampedArray]`,fE=`[object Uint16Array]`,pE=`[object Uint32Array]`,J={};J[aE]=J[oE]=J[sE]=J[cE]=J[lE]=J[uE]=J[dE]=J[fE]=J[pE]=!0,J[WT]=J[GT]=J[rE]=J[KT]=J[iE]=J[qT]=J[JT]=J[YT]=J[XT]=J[ZT]=J[QT]=J[$T]=J[eE]=J[tE]=J[nE]=!1;function mE(e){return CT(e)&&UT(e.length)&&!!J[dC(e)]}t(mE,`baseIsTypedArray2`),c(mE,`baseIsTypedArray`);var hE=mE;function gE(e){return function(t){return e(t)}}t(gE,`baseUnary2`),c(gE,`baseUnary`);var _E=gE,vE=typeof exports==`object`&&exports&&!exports.nodeType&&exports,yE=vE&&typeof module==`object`&&module&&!module.nodeType&&module,bE=yE&&yE.exports===vE&&JS.process,xE=(function(){try{return yE&&yE.require&&yE.require(`util`).types||bE&&bE.binding&&bE.binding(`util`)}catch{}})(),SE=xE&&xE.isTypedArray,CE=SE?_E(SE):hE,wE=Object.prototype.hasOwnProperty;function TE(e,t){var n=uT(e),r=!n&&AT(e),i=!n&&!r&&IT(e),a=!n&&!r&&!i&&CE(e),o=n||r||i||a,s=o?xT(e.length,String):[],c=s.length;for(var l in e)(t||wE.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||BT(l,c)))&&s.push(l);return s}t(TE,`arrayLikeKeys2`),c(TE,`arrayLikeKeys`);var EE=TE,DE=Object.prototype;function OE(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||DE)}t(OE,`isPrototype2`),c(OE,`isPrototype`);var kE=OE;function AE(e,t){return function(n){return e(t(n))}}t(AE,`overArg2`),c(AE,`overArg`);var jE=AE(Object.keys,Object),ME=Object.prototype.hasOwnProperty;function NE(e){if(!kE(e))return jE(e);var t=[];for(var n in Object(e))ME.call(e,n)&&n!=`constructor`&&t.push(n);return t}t(NE,`baseKeys2`),c(NE,`baseKeys`);var PE=NE;function FE(e){return e!=null&&UT(e.length)&&!yC(e)}t(FE,`isArrayLike2`),c(FE,`isArrayLike`);var IE=FE;function LE(e){return IE(e)?EE(e):PE(e)}t(LE,`keys2`),c(LE,`keys`);var RE=LE;function zE(e){return fT(e,RE,yT)}t(zE,`getAllKeys2`),c(zE,`getAllKeys`);var BE=zE,VE=1,HE=Object.prototype.hasOwnProperty;function UE(e,t,n,r,i,a){var o=n&VE,s=BE(e),c=s.length;if(c!=BE(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:HE.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++lik(e,t,n)))}t(lk,`alternation`),c(lk,`alternation`);function uk(e,t,n){let r=X(e,t,n,{type:HO});return hk(e,r),mk(e,t,n,gk(e,t,r,n,dk(e,t,n)))}t(uk,`option`),c(uk,`option`);function dk(e,t,n){let r=BO(IO(n.definition,n=>ik(e,t,n)),e=>e!==void 0);return r.length===1?r[0]:r.length===0?void 0:vk(e,r)}t(dk,`block`),c(dk,`block`);function fk(e,t,n,r,i){let a=r.left,o=r.right,s=X(e,t,n,{type:XO});hk(e,s);let c=X(e,t,n,{type:ZO});return a.loopback=s,c.loopback=s,e.decisionMap[VO(t,i?`RepetitionMandatoryWithSeparator`:`RepetitionMandatory`,n.idx)]=s,Y(o,s),i===void 0?(Y(s,a),Y(s,c)):(Y(s,c),Y(s,i.left),Y(i.right,a)),{left:a,right:c}}t(fk,`plus`),c(fk,`plus`);function pk(e,t,n,r,i){let a=r.left,o=r.right,s=X(e,t,n,{type:YO});hk(e,s);let c=X(e,t,n,{type:ZO}),l=X(e,t,n,{type:JO});return s.loopback=l,c.loopback=l,Y(s,a),Y(s,c),Y(o,l),i===void 0?Y(l,s):(Y(l,c),Y(l,i.left),Y(i.right,a)),e.decisionMap[VO(t,i?`RepetitionWithSeparator`:`Repetition`,n.idx)]=s,{left:s,right:c}}t(pk,`star`),c(pk,`star`);function mk(e,t,n,r){let i=r.left,a=r.right;return Y(i,a),e.decisionMap[VO(t,`Option`,n.idx)]=i,r}t(mk,`optional`),c(mk,`optional`);function hk(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}t(hk,`defineDecisionState`),c(hk,`defineDecisionState`);function gk(e,t,n,r,...i){let a=X(e,t,r,{type:qO,start:n});n.end=a;for(let e of i)e===void 0?Y(n,a):(Y(n,e.left),Y(e.right,a));let o={left:n,right:a};return e.decisionMap[VO(t,_k(r),r.idx)]=n,o}t(gk,`makeAlts`),c(gk,`makeAlts`);function _k(e){if(e instanceof fv)return`Alternation`;if(e instanceof cv)return`Option`;if(e instanceof W)return`Repetition`;if(e instanceof dv)return`RepetitionWithSeparator`;if(e instanceof lv)return`RepetitionMandatory`;if(e instanceof uv)return`RepetitionMandatoryWithSeparator`;throw Error(`Invalid production type encountered`)}t(_k,`getProdType2`),c(_k,`getProdType`);function vk(e,t){let n=t.length;for(let r=0;re.alt)}get key(){let e=``;for(let t in this.map)e+=t+`:`;return e}};function Ek(e,t=!0){return`${t?`a${e.alt}`:``}s${e.state.stateNumber}:${e.stack.map(e=>e.stateNumber.toString()).join(`_`)}`}t(Ek,`getATNConfigKey`),c(Ek,`getATNConfigKey`);function Dk(e,t,n){for(var r=-1,i=e.length;++r0&&n(s)?t>1?Ik(s,t-1,n,r,i):lT(i,s):r||(i[i.length]=s)}return i}t(Ik,`baseFlatten2`),c(Ik,`baseFlatten`);var Lk=Ik;function Rk(e,t){return Lk(IO(e,t),1)}t(Rk,`flatMap2`),c(Rk,`flatMap`);var zk=Rk;function Bk(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a-1}t(Jk,`arrayIncludes2`),c(Jk,`arrayIncludes`);var Yk=Jk;function Xk(e,t,n){for(var r=-1,i=e==null?0:e.length;++r=tA){var l=t?null:eA(e);if(l)return Ww(l);o=!1,i=Fw,c=new jw}else c=t?[]:s;outer:for(;++r{let i=r.toString(),a=n[i];return a===void 0?(a={atnStartState:e,decision:t,states:{}},n[i]=a,a):a}}t(TA,`createDFACache`),c(TA,`createDFACache`);var EA=class{static{t(this,`PredicateSet`)}static{c(this,`PredicateSet`)}constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,t){this.predicates[e]=t}toString(){let e=``,t=this.predicates.length;for(let n=0;nconsole.log(e))}initialize(e){this.atn=nk(e.rules),this.dfas=AA(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){let{prodOccurrence:t,rule:n,hasPredicates:r,dynamicTokensEnabled:i}=e,a=this.dfas,o=this.logging,s=VO(n,`Alternation`,t),c=this.atn.decisionMap[s].decision,l=IO(wb({maxLookahead:1,occurrence:t,prodType:`Alternation`,rule:n}),e=>IO(e,e=>e[0]));if(kA(l,!1)&&!i){let e=wA(l,(e,t,n)=>(pA(t,t=>{t&&(e[t.tokenTypeIdx]=n,pA(t.categoryMatches,t=>{e[t]=n}))}),e),{});return r?function(t){let n=e[this.LA(1).tokenTypeIdx];if(t!==void 0&&n!==void 0){let e=t[n]?.GATE;if(e!==void 0&&e.call(this)===!1)return}return n}:function(){return e[this.LA(1).tokenTypeIdx]}}else if(r)return function(e){let t=new EA,n=e===void 0?0:e.length;for(let r=0;rIO(e,e=>e[0]));if(kA(l)&&l[0][0]&&!i){let e=l[0],t=sA(e);if(t.length===1&&vA(t[0].categoryMatches)){let e=t[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===e}}else{let e=wA(t,(e,t)=>(t!==void 0&&(e[t.tokenTypeIdx]=!0,pA(t.categoryMatches,t=>{e[t]=!0})),e),{});return function(){return e[this.LA(1).tokenTypeIdx]===!0}}}return function(){let e=jA.call(this,a,c,DA,o);return typeof e==`object`?!1:e===0}}};function kA(e,t=!0){let n=new Set;for(let r of e){let e=new Set;for(let i of r){if(i===void 0){if(t)break;return!1}let r=[i.tokenTypeIdx].concat(i.categoryMatches);for(let t of r)if(n.has(t)){if(!e.has(t))return!1}else n.add(t),e.add(t)}}return!0}t(kA,`isLL1Sequence`),c(kA,`isLL1Sequence`);function AA(e){let t=e.decisionStates.length,n=Array(t);for(let r=0;rKy(e)).join(`, `),n=e.production.idx===0?``:e.production.idx,r=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(`, `)}> in <${IA(e.production)}${n}> inside <${e.topLevelRule.name}> Rule, +<${t}> may appears as a prefix path in all these alternatives. +`;return r+=`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES +For Further details.`,r}t(FA,`buildAmbiguityError`),c(FA,`buildAmbiguityError`);function IA(e){if(e instanceof av)return`SUBRULE`;if(e instanceof cv)return`OPTION`;if(e instanceof fv)return`OR`;if(e instanceof lv)return`AT_LEAST_ONE`;if(e instanceof uv)return`AT_LEAST_ONE_SEP`;if(e instanceof dv)return`MANY_SEP`;if(e instanceof W)return`MANY`;if(e instanceof G)return`CONSUME`;throw Error(`non exhaustive match`)}t(IA,`getProductionDslName2`),c(IA,`getProductionDslName`);function LA(e,t,n){return{actualToken:n,possibleTokenTypes:aA(zk(t.configs.elements,e=>e.state.transitions).filter(e=>e instanceof $O).map(e=>e.tokenType),e=>e.tokenTypeIdx),tokenPath:e}}t(LA,`buildAdaptivePredictError`),c(LA,`buildAdaptivePredictError`);function RA(e,t){return e.edges[t.tokenTypeIdx]}t(RA,`getExistingTargetState`),c(RA,`getExistingTargetState`);function zA(e,t,n){let r=new Tk,i=[];for(let a of e.elements){if(n.is(a.alt)===!1)continue;if(a.state.type===KO){i.push(a);continue}let e=a.state.transitions.length;for(let n=0;n0&&!JA(a))for(let e of i)a.add(e);return a}t(zA,`computeReachSet`),c(zA,`computeReachSet`);function BA(e,t){if(e instanceof $O&&sb(t,e.tokenType))return e.target}t(BA,`getReachableTarget`),c(BA,`getReachableTarget`);function VA(e,t){let n;for(let r of e.elements)if(t.is(r.alt)===!0){if(n===void 0)n=r.alt;else if(n!==r.alt)return}return n}t(VA,`getUniqueAlt`),c(VA,`getUniqueAlt`);function HA(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}t(HA,`newDFAState`),c(HA,`newDFAState`);function UA(e,t,n,r){return r=WA(e,r),t.edges[n.tokenTypeIdx]=r,r}t(UA,`addDFAEdge`),c(UA,`addDFAEdge`);function WA(e,t){if(t===wk)return t;let n=t.configs.key,r=e.states[n];return r===void 0?(t.configs.finalize(),e.states[n]=t,t):r}t(WA,`addDFAState`),c(WA,`addDFAState`);function GA(e){let t=new Tk,n=e.transitions.length;for(let r=0;r0){let n=[...e.stack];KA({state:n.pop(),alt:e.alt,stack:n},t)}else t.add(e);return}n.epsilonOnlyTransitions||t.add(e);let r=n.transitions.length;for(let i=0;i1)return!0;return!1}t(QA,`hasConflictingAltSet`),c(QA,`hasConflictingAltSet`);function $A(e){for(let t of Array.from(e.values()))if(Object.keys(t).length===1)return!0;return!1}t($A,`hasStateAssociatedWithOneAlt`),c($A,`hasStateAssociatedWithOneAlt`),_t();var ej=class{static{t(this,`CstNodeBuilder`)}static{c(this,`CstNodeBuilder`)}constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]??this.rootNode}buildRootNode(e){return this.rootNode=new aj(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){let t=new rj;return t.grammarSource=e,t.root=this.rootNode,this.current.content.push(t),this.nodeStack.push(t),t}buildLeafNode(e,t){let n=new nj(e.startOffset,e.image.length,Vi(e),e.tokenType,!t);return n.grammarSource=t,n.root=this.rootNode,this.current.content.push(n),n}removeNode(e){let t=e.container;if(t){let n=t.content.indexOf(e);n>=0&&t.content.splice(n,1)}}addHiddenNodes(e){let t=[];for(let n of e){let e=new nj(n.startOffset,n.image.length,Vi(n),n.tokenType,!0);e.root=this.rootNode,t.push(e)}let n=this.current,r=!1;if(n.content.length>0){n.content.push(...t);return}for(;n.container;){let e=n.container.content.indexOf(n);if(e>0){n.container.content.splice(e,0,...t),r=!0;break}n=n.container}r||this.rootNode.content.unshift(...t)}construct(e){let t=this.current;typeof e.$type==`string`&&!e.$infix&&(this.current.astNode=e),e.$cstNode=t;let n=this.nodeStack.pop();n?.content.length===0&&this.removeNode(n)}},tj=class{static{t(this,`AbstractCstNode`)}static{c(this,`AbstractCstNode`)}get hidden(){return!1}get astNode(){let e=typeof this._astNode?.$type==`string`?this._astNode:this.container?.astNode;if(!e)throw Error(`This node has no associated AST element`);return e}set astNode(e){this._astNode=e}get text(){return this.root.fullText.substring(this.offset,this.end)}},nj=class extends tj{static{t(this,`LeafCstNodeImpl`)}static{c(this,`LeafCstNodeImpl`)}get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(e,t,n,r,i=!1){super(),this._hidden=i,this._offset=e,this._tokenType=r,this._length=t,this._range=n}},rj=class extends tj{static{t(this,`CompositeCstNodeImpl`)}static{c(this,`CompositeCstNodeImpl`)}constructor(){super(...arguments),this.content=new ij(this)}get offset(){return this.firstNonHiddenNode?.offset??0}get length(){return this.end-this.offset}get end(){return this.lastNonHiddenNode?.end??0}get range(){let e=this.firstNonHiddenNode,t=this.lastNonHiddenNode;if(e&&t){if(this._rangeCache===void 0){let{range:n}=e,{range:r}=t;this._rangeCache={start:n.start,end:r.end.line=0;e--){let t=this.content[e];if(!t.hidden)return t}return this.content[this.content.length-1]}},ij=class e extends Array{static{t(this,`_CstNodeContainer`)}static{c(this,`CstNodeContainer`)}constructor(t){super(),this.parent=t,Object.setPrototypeOf(this,e.prototype)}push(...e){return this.addParents(e),super.push(...e)}unshift(...e){return this.addParents(e),super.unshift(...e)}splice(e,t,...n){return this.addParents(n),super.splice(e,t,...n)}addParents(e){for(let t of e)t.container=this.parent}},aj=class extends rj{static{t(this,`RootCstNodeImpl`)}static{c(this,`RootCstNodeImpl`)}get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text=``,this._text=e??``}},oj=Symbol(`Datatype`);function sj(e){return e.$type===oj}t(sj,`isDataTypeNode`),c(sj,`isDataTypeNode`);var cj=`​`,lj=c(e=>e.endsWith(cj)?e:e+cj,`withRuleSuffix`),uj=class{static{t(this,`AbstractLangiumParser`)}static{c(this,`AbstractLangiumParser`)}constructor(e){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=e.parser.Lexer;let t=this.lexer.definition,n=e.LanguageMetaData.mode===`production`;e.shared.profilers.LangiumProfiler?.isActive(`parsing`)?this.wrapper=new _j(t,{...e.parser.ParserConfig,skipValidations:n,errorMessageProvider:e.parser.ParserErrorMessageProvider},e.shared.profilers.LangiumProfiler.createTask(`parsing`,e.LanguageMetaData.languageId)):this.wrapper=new gj(t,{...e.parser.ParserConfig,skipValidations:n,errorMessageProvider:e.parser.ParserErrorMessageProvider})}alternatives(e,t){this.wrapper.wrapOr(e,t)}optional(e,t){this.wrapper.wrapOption(e,t)}many(e,t){this.wrapper.wrapMany(e,t)}atLeastOne(e,t){this.wrapper.wrapAtLeastOne(e,t)}getRule(e){return this.allRules.get(e)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}},dj=class extends uj{static{t(this,`LangiumParser`)}static{c(this,`LangiumParser`)}get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new ej,this.stack=[],this.assignmentMap=new Map,this.operatorPrecedence=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,t){let n=this.computeRuleType(e),r;kr(e)&&(r=e.name,this.registerPrecedenceMap(e));let i=this.wrapper.DEFINE_RULE(lj(e.name),this.startImplementation(n,r,t).bind(this));return this.allRules.set(e.name,i),Zr(e)&&e.entry&&(this.mainRule=i),i}registerPrecedenceMap(e){let t=e.name,n=new Map;for(let t=0;t0&&(t=this.construct()),t===void 0)throw Error(`No result from parser`);if(this.stack.length>0)throw Error(`Parser stack is not empty after parsing`);return t}startImplementation(e,t,n){return r=>{let i=!this.isRecording()&&e!==void 0;if(i){let n={$type:e};this.stack.push(n),e===oj?n.value=``:t!==void 0&&(n.$infixName=t)}return n(r),i?this.construct():void 0}}extractHiddenTokens(e){let t=this.lexerResult.hidden;if(!t.length)return[];let n=e.startOffset;for(let e=0;en)return t.splice(0,e);return t.splice(0,t.length)}consume(e,t,n){let r=this.wrapper.wrapConsume(e,t);if(!this.isRecording()&&this.isValidToken(r)){let e=this.extractHiddenTokens(r);this.nodeBuilder.addHiddenNodes(e);let t=this.nodeBuilder.buildLeafNode(r,n),{assignment:i,crossRef:a}=this.getAssignment(n),o=this.current;if(i){let e=Lr(n)?r.image:this.converter.convert(r.image,t);this.assign(i.operator,i.feature,e,t,a)}else if(sj(o)){let e=r.image;Lr(n)||(e=this.converter.convert(e,t).toString()),o.value+=e}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&typeof e.endOffset==`number`&&!isNaN(e.endOffset)}subrule(e,t,n,r,i){let a;!this.isRecording()&&!n&&(a=this.nodeBuilder.buildCompositeNode(r));let o;try{o=this.wrapper.wrapSubrule(e,t,i)}finally{this.isRecording()||(o===void 0&&!n&&(o=this.construct()),o!==void 0&&a&&a.length>0&&this.performSubruleAssignment(o,r,a))}}performSubruleAssignment(e,t,n){let{assignment:r,crossRef:i}=this.getAssignment(t);if(r)this.assign(r.operator,r.feature,e,n,i);else if(!r){let t=this.current;if(sj(t))t.value+=e.toString();else if(typeof e==`object`&&e){let n=this.assignWithoutOverride(e,t);this.stack.pop(),this.stack.push(n)}}}action(e,t){if(!this.isRecording()){let n=this.current;if(t.feature&&t.operator){n=this.construct(),this.nodeBuilder.removeNode(n.$cstNode),this.nodeBuilder.buildCompositeNode(t).content.push(n.$cstNode);let r={$type:e};this.stack.push(r),this.assign(t.operator,t.feature,n,n.$cstNode)}else n.$type=e}}construct(){if(this.isRecording())return;let e=this.stack.pop();return this.nodeBuilder.construct(e),`$infixName`in e?this.constructInfix(e,this.operatorPrecedence.get(e.$infixName)):sj(e)?this.converter.convert(e.value,e.$cstNode):(Ln(this.astReflection,e),e)}constructInfix(e,t){let n=e.parts;if(!Array.isArray(n)||n.length===0)return;let r=e.operators;if(!Array.isArray(r)||n.length<2)return n[0];let i=0,a=-1;for(let e=0;ea?(a=o.precedence,i=e):o.precedence===a&&(o.rightAssoc||(i=e))}let o=r.slice(0,i),s=r.slice(i+1),c=n.slice(0,i+1),l=n.slice(i+1),u={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:c,operators:o},d={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:l,operators:s},f=this.constructInfix(u,t),p=this.constructInfix(d,t);return{$type:e.$type,$cstNode:e.$cstNode,left:f,operator:r[i],right:p}}getAssignment(e){if(!this.assignmentMap.has(e)){let t=Dn(e,ar);this.assignmentMap.set(e,{assignment:t,crossRef:t&&hr(t.terminal)?t.terminal.isMulti?`multi`:`single`:void 0})}return this.assignmentMap.get(e)}assign(e,t,n,r,i){let a=this.current,o;switch(o=i===`single`&&typeof n==`string`?this.linker.buildReference(a,t,r,n):i===`multi`&&typeof n==`string`?this.linker.buildMultiReference(a,t,r,n):n,e){case`=`:a[t]=o;break;case`?=`:a[t]=!0;break;case`+=`:Array.isArray(a[t])||(a[t]=[]),a[t].push(o)}}assignWithoutOverride(e,t){for(let[n,r]of Object.entries(t)){let t=e[n];t===void 0?e[n]=r:Array.isArray(t)&&Array.isArray(r)&&(r.push(...t),e[n]=r)}let n=e.$cstNode;return n&&(n.astNode=void 0,e.$cstNode=void 0),e}get definitionErrors(){return this.wrapper.definitionErrors}},fj=class{static{t(this,`AbstractParserErrorMessageProvider`)}static{c(this,`AbstractParserErrorMessageProvider`)}buildMismatchTokenMessage(e){return cb.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return cb.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return cb.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return cb.buildEarlyExitMessage(e)}},pj=class extends fj{static{t(this,`LangiumParserErrorMessageProvider`)}static{c(this,`LangiumParserErrorMessageProvider`)}buildMismatchTokenMessage({expected:e,actual:t}){return`Expecting ${e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(`:KW`)?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`} but found \`${t.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}},mj=class extends uj{static{t(this,`LangiumCompletionParser`)}static{c(this,`LangiumCompletionParser`)}constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();let t=this.lexer.tokenize(e,{mode:`partial`});return this.tokens=t.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,t){let n=this.wrapper.DEFINE_RULE(lj(e.name),this.startImplementation(t).bind(this));return this.allRules.set(e.name,n),e.entry&&(this.mainRule=n),n}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(e){return t=>{let n=this.keepStackSize();try{e(t)}finally{this.resetStackSize(n)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){let e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,t,n){this.wrapper.wrapConsume(e,t),this.isRecording()||(this.lastElementStack=[...this.elementStack,n],this.nextTokenIndex=this.currIdx+1)}subrule(e,t,n,r,i){this.before(r),this.wrapper.wrapSubrule(e,t,i),this.after(r)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){let t=this.elementStack.lastIndexOf(e);t>=0&&this.elementStack.splice(t)}}get currIdx(){return this.wrapper.currIdx}},hj={recoveryEnabled:!0,nodeLocationTracking:`full`,skipValidations:!0,errorMessageProvider:new pj},gj=class extends bS{static{t(this,`ChevrotainWrapper`)}static{c(this,`ChevrotainWrapper`)}constructor(e,t){let n=t&&`maxLookahead`in t;super(e,{...hj,lookaheadStrategy:n?new Nx({maxLookahead:t.maxLookahead}):new OA({logging:t.skipValidations?()=>{}:void 0}),...t})}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,t,n){return this.RULE(e,t,n)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,t){return this.consume(e,t,void 0)}wrapSubrule(e,t,n){return this.subrule(e,t,{ARGS:[n]})}wrapOr(e,t){this.or(e,t)}wrapOption(e,t){this.option(e,t)}wrapMany(e,t){this.many(e,t)}wrapAtLeastOne(e,t){this.atLeastOne(e,t)}rule(e){return e.call(this,{})}},_j=class extends gj{static{t(this,`ProfilerWrapper`)}static{c(this,`ProfilerWrapper`)}constructor(e,t,n){super(e,t),this.task=n}rule(e){this.task.start(),this.task.startSubTask(this.ruleName(e));try{return super.rule(e)}finally{this.task.stopSubTask(this.ruleName(e)),this.task.stop()}}ruleName(e){return e.ruleName}subrule(e,t,n){this.task.startSubTask(this.ruleName(t));try{return super.subrule(e,t,n)}finally{this.task.stopSubTask(this.ruleName(t))}}};function vj(e,t,n){return yj({parser:t,tokens:n,ruleNames:new Map},e),t}t(vj,`createParser`),c(vj,`createParser`);function yj(e,t){let n=Fa(t,!1),r=N(t.rules).filter(Zr).filter(e=>n.has(e));for(let t of r){let n={...e,consume:1,optional:1,subrule:1,many:1,or:1};e.parser.rule(t,xj(n,t.definition))}let i=N(t.rules).filter(kr).filter(e=>n.has(e));for(let t of i)e.parser.rule(t,bj(e,t))}t(yj,`buildRules`),c(yj,`buildRules`);function bj(e,t){let n=t.call.rule.ref;if(!n)throw Error(`Could not resolve reference to infix operator rule: `+t.call.rule.$refText);if(_i(n))throw Error(`Cannot use terminal rule in infix expression`);let r=t.operators.precedences.flatMap(e=>e.operators),i={$type:`Group`,elements:[]},a={$container:i,$type:`Assignment`,feature:`parts`,operator:`+=`,terminal:t.call},o={$container:i,$type:`Group`,elements:[],cardinality:`*`};i.elements.push(a,o);let s={$container:o,$type:`Assignment`,feature:`operators`,operator:`+=`,terminal:{$type:`Alternatives`,elements:r}},l={...a,$container:o};o.elements.push(s,l);let u=r.map(t=>e.tokens[t.value]).map((t,n)=>({ALT:c(()=>e.parser.consume(n,t,s),`ALT`)})),d;return t=>{d??=Nj(e,n),e.parser.subrule(0,d,!1,a,t),e.parser.many(0,{DEF:c(()=>{e.parser.alternatives(0,u),e.parser.subrule(1,d,!1,l,t)},`DEF`)})}}t(bj,`buildInfixRule`),c(bj,`buildInfixRule`);function xj(e,t,n=!1){let r;if(Lr(t))r=jj(e,t);else if(Zn(t))r=Sj(e,t);else if(ar(t))r=xj(e,t.terminal);else if(hr(t))r=Aj(e,t);else if(ai(t))r=Cj(e,t);else if($n(t))r=Ej(e,t);else if(ki(t))r=Dj(e,t);else if(Tr(t))r=Oj(e,t);else if(yr(t)){let n=e.consume++;r=c(()=>e.parser.consume(n,ab,t),`method`)}else throw new oa(t.$cstNode,`Unexpected element type: ${t.$type}`);return Mj(e,n?void 0:kj(t),r,t.cardinality)}t(xj,`buildElement`),c(xj,`buildElement`);function Sj(e,t){let n=io(t);return()=>e.parser.action(n,t)}t(Sj,`buildAction`),c(Sj,`buildAction`);function Cj(e,t){let n=t.rule.ref;if(Gn(n)){let r=e.subrule++,i=Zr(n)&&n.fragment,a=t.arguments.length>0?wj(n,t.arguments):()=>({}),o;return s=>{o??=Nj(e,n),e.parser.subrule(r,o,i,t,a(s))}}else if(_i(n)){let r=e.consume++,i=Fj(e,n.name);return()=>e.parser.consume(r,i,t)}else if(n)sa(n);else throw new oa(t.$cstNode,`Undefined rule: ${t.rule.$refText}`)}t(Cj,`buildRuleCall`),c(Cj,`buildRuleCall`);function wj(e,t){if(t.some(e=>e.calledByName)){let e=t.map(e=>({parameterName:e.parameter?.ref?.name,predicate:Tj(e.value)}));return t=>{let n={};for(let{parameterName:r,predicate:i}of e)r&&(n[r]=i(t));return n}}else{let n=t.map(e=>Tj(e.value));return t=>{let r={};for(let i=0;it(e)||n(e)}else if(pr(e)){let t=Tj(e.left),n=Tj(e.right);return e=>t(e)&&n(e)}else if(Ur(e)){let t=Tj(e.value);return e=>!t(e)}else if(Yr(e)){let t=e.parameter.ref.name;return e=>e!==void 0&&e[t]===!0}else if(sr(e)){let t=!!e.true;return()=>t}sa(e)}t(Tj,`buildPredicate`),c(Tj,`buildPredicate`);function Ej(e,t){if(t.elements.length===1)return xj(e,t.elements[0]);{let n=[];for(let r of t.elements){let t={ALT:xj(e,r,!0)},i=kj(r);i&&(t.GATE=Tj(i)),n.push(t)}let r=e.or++;return t=>e.parser.alternatives(r,n.map(e=>{let n={ALT:c(()=>e.ALT(t),`ALT`)},r=e.GATE;return r&&(n.GATE=()=>r(t)),n}))}}t(Ej,`buildAlternatives`),c(Ej,`buildAlternatives`);function Dj(e,t){if(t.elements.length===1)return xj(e,t.elements[0]);let n=[];for(let r of t.elements){let t={ALT:xj(e,r,!0)},i=kj(r);i&&(t.GATE=Tj(i)),n.push(t)}let r=e.or++,i=c((e,t)=>`uGroup_${e}_${t.getRuleStack().join(`-`)}`,`idFunc`),a=c(t=>e.parser.alternatives(r,n.map((n,a)=>{let o={ALT:c(()=>!0,`ALT`)},s=e.parser;o.ALT=()=>{if(n.ALT(t),!s.isRecording()){let e=i(r,s);s.unorderedGroups.get(e)||s.unorderedGroups.set(e,[]);let t=s.unorderedGroups.get(e);t?.[a]===void 0&&(t[a]=!0)}};let l=n.GATE;return l?o.GATE=()=>l(t):o.GATE=()=>!s.unorderedGroups.get(i(r,s))?.[a],o})),`alternatives`),o=Mj(e,kj(t),a,`*`);return t=>{o(t),e.parser.isRecording()||e.parser.unorderedGroups.delete(i(r,e.parser))}}t(Dj,`buildUnorderedGroup`),c(Dj,`buildUnorderedGroup`);function Oj(e,t){let n=t.elements.map(t=>xj(e,t));return e=>n.forEach(t=>t(e))}t(Oj,`buildGroup`),c(Oj,`buildGroup`);function kj(e){if(Tr(e))return e.guardCondition}t(kj,`getGuardCondition`),c(kj,`getGuardCondition`);function Aj(e,t,n=t.terminal){if(!n){if(!t.type.ref)throw Error(`Could not resolve reference to type: `+t.type.$refText);let n=qa(t.type.ref)?.terminal;if(!n)throw Error(`Could not find name assignment for type: `+io(t.type.ref));return Aj(e,t,n)}else if(ai(n)&&Zr(n.rule.ref)){let r=n.rule.ref,i=e.subrule++,a;return n=>{a??=Nj(e,r),e.parser.subrule(i,a,!1,t,n)}}else if(ai(n)&&_i(n.rule.ref)){let r=e.consume++,i=Fj(e,n.rule.ref.name);return()=>e.parser.consume(r,i,t)}else if(Lr(n)){let r=e.consume++,i=Fj(e,n.value);return()=>e.parser.consume(r,i,t)}else throw Error(`Could not build cross reference parser`)}t(Aj,`buildCrossReference`),c(Aj,`buildCrossReference`);function jj(e,t){let n=e.consume++,r=e.tokens[t.value];if(!r)throw Error(`Could not find token for keyword: `+t.value);return()=>e.parser.consume(n,r,t)}t(jj,`buildKeyword`),c(jj,`buildKeyword`);function Mj(e,t,n,r){let i=t&&Tj(t);if(!r)if(i){let t=e.or++;return r=>e.parser.alternatives(t,[{ALT:c(()=>n(r),`ALT`),GATE:c(()=>i(r),`GATE`)},{ALT:vS(),GATE:c(()=>!i(r),`GATE`)}])}else return n;if(r===`*`){let t=e.many++;return r=>e.parser.many(t,{DEF:c(()=>n(r),`DEF`),GATE:i?()=>i(r):void 0})}else if(r===`+`){let t=e.many++;if(i){let r=e.or++;return a=>e.parser.alternatives(r,[{ALT:c(()=>e.parser.atLeastOne(t,{DEF:c(()=>n(a),`DEF`)}),`ALT`),GATE:c(()=>i(a),`GATE`)},{ALT:vS(),GATE:c(()=>!i(a),`GATE`)}])}else return r=>e.parser.atLeastOne(t,{DEF:c(()=>n(r),`DEF`)})}else if(r===`?`){let t=e.optional++;return r=>e.parser.optional(t,{DEF:c(()=>n(r),`DEF`),GATE:i?()=>i(r):void 0})}else sa(r)}t(Mj,`wrap`),c(Mj,`wrap`);function Nj(e,t){let n=Pj(e,t),r=e.parser.getRule(n);if(!r)throw Error(`Rule "${n}" not found."`);return r}t(Nj,`getRule`),c(Nj,`getRule`);function Pj(e,t){if(Gn(t))return t.name;if(e.ruleNames.has(t))return e.ruleNames.get(t);{let n=t,r=n.$container,i=t.$type;for(;!Zr(r);)(Tr(r)||$n(r)||ki(r))&&(i=r.elements.indexOf(n).toString()+`:`+i),n=r,r=r.$container;return i=r.name+`:`+i,e.ruleNames.set(t,i),i}}t(Pj,`getRuleName`),c(Pj,`getRuleName`);function Fj(e,t){let n=e.tokens[t];if(!n)throw Error(`Token "${t}" not found."`);return n}t(Fj,`getToken`),c(Fj,`getToken`);function Ij(e){let t=e.Grammar,n=e.parser.Lexer,r=new mj(e);return vj(t,r,n.definition),r.finalize(),r}t(Ij,`createCompletionParser`),c(Ij,`createCompletionParser`);function Lj(e){let t=Rj(e);return t.finalize(),t}t(Lj,`createLangiumParser`),c(Lj,`createLangiumParser`);function Rj(e){let t=e.Grammar,n=e.parser.Lexer;return vj(t,new dj(e),n.definition)}t(Rj,`prepareLangiumParser`),c(Rj,`prepareLangiumParser`);var zj=class{static{t(this,`DefaultTokenBuilder`)}static{c(this,`DefaultTokenBuilder`)}constructor(){this.diagnostics=[]}buildTokens(e,t){let n=N(Fa(e,!1)),r=this.buildTerminalTokens(n),i=this.buildKeywordTokens(n,r,t);return i.push(...r),i}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){let e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter(_i).filter(e=>!e.fragment).map(e=>this.buildTerminalToken(e)).toArray()}buildTerminalToken(e){let t=co(e),n=this.requiresCustomPattern(t)?this.regexPatternFunction(t):t,r={name:e.name,PATTERN:n};return typeof n==`function`&&(r.LINE_BREAKS=!0),e.hidden&&(r.GROUP=ka(t)?Gy.SKIPPED:`hidden`),r}requiresCustomPattern(e){return!!(e.flags.includes(`u`)||e.flags.includes(`s`))}regexPatternFunction(e){let t=new RegExp(e,e.flags+`y`);return(e,n)=>(t.lastIndex=n,t.exec(e))}buildKeywordTokens(e,t,n){return e.filter(Gn).flatMap(e=>Nn(e).filter(Lr)).distinct(e=>e.value).toArray().sort((e,t)=>t.value.length-e.value.length).map(e=>this.buildKeywordToken(e,t,!!n?.caseInsensitive))}buildKeywordToken(e,t,n){let r=this.buildKeywordPattern(e,n),i={name:e.value,PATTERN:r,LONGER_ALT:this.findLongerAlt(e,t)};return typeof r==`function`&&(i.LINE_BREAKS=!0),i}buildKeywordPattern(e,t){return t?new RegExp(Aa(e.value),`i`):e.value}findLongerAlt(e,t){return t.reduce((t,n)=>{let r=n?.PATTERN;return r?.source&&ja(`^`+r.source+`$`,e.value)&&t.push(n),t},[])}},Bj=class{static{t(this,`DefaultValueConverter`)}static{c(this,`DefaultValueConverter`)}convert(e,t){let n=t.grammarSource;if(hr(n)&&(n=Ra(n)),ai(n)){let r=n.rule.ref;if(!r)throw Error(`This cst node was not parsed by a rule.`);return this.runConverter(r,e,t)}return e}runConverter(e,t,n){switch(e.name.toUpperCase()){case`INT`:return Vj.convertInt(t);case`STRING`:return Vj.convertString(t);case`ID`:return Vj.convertID(t)}switch(so(e)?.toLowerCase()){case`number`:return Vj.convertNumber(t);case`boolean`:return Vj.convertBoolean(t);case`bigint`:return Vj.convertBigint(t);case`date`:return Vj.convertDate(t);default:return t}}},Vj;(function(e){function n(e){let t=``;for(let n=1;n{typeof setImmediate>`u`?setTimeout(e,0):setImmediate(e)})}t(Hj,`delayNextTick`),c(Hj,`delayNextTick`);var Uj=0,Wj=10;function Gj(){return Uj=performance.now(),new Z.CancellationTokenSource}t(Gj,`startCancelableOperation`),c(Gj,`startCancelableOperation`);function Kj(e){Wj=e}t(Kj,`setInterruptionPeriod`),c(Kj,`setInterruptionPeriod`);var qj=Symbol(`OperationCancelled`);function Jj(e){return e===qj}t(Jj,`isOperationCancelled`),c(Jj,`isOperationCancelled`);async function Yj(e){if(e===Z.CancellationToken.None)return;let t=performance.now();if(t-Uj>=Wj&&(Uj=t,await Hj(),Uj=performance.now()),e.isCancellationRequested)throw qj}t(Yj,`interruptAndCheck`),c(Yj,`interruptAndCheck`);var Xj=class{static{t(this,`Deferred`)}static{c(this,`Deferred`)}constructor(){this.promise=new Promise((e,t)=>{this.resolve=t=>(e(t),this),this.reject=e=>(t(e),this)})}},Zj=class e{static{t(this,`_FullTextDocument`)}static{c(this,`FullTextDocument`)}constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(t,n){for(let n of t)if(e.isIncremental(n)){let e=nM(n.range),t=this.offsetAt(e.start),r=this.offsetAt(e.end);this._content=this._content.substring(0,t)+n.text+this._content.substring(r,this._content.length);let i=Math.max(e.start.line,0),a=Math.max(e.end.line,0),o=this._lineOffsets,s=eM(n.text,!1,t);if(a-i===s.length)for(let e=0,t=s.length;ee?r=i:n=i+1}let i=n-1;return e=this.ensureBeforeEOL(e,t[i]),{line:i,character:e-t[i]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line];if(e.character<=0)return n;let r=e.line+1t&&tM(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range!==void 0&&(t.rangeLength===void 0||typeof t.rangeLength==`number`)}static isFull(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range===void 0&&t.rangeLength===void 0}},Qj;(function(e){function n(e,t,n,r){return new Zj(e,t,n,r)}t(n,`create`),c(n,`create`),e.create=n;function r(e,t,n){if(e instanceof Zj)return e.update(t,n),e;throw Error(`TextDocument.update: document must be created by TextDocument.create`)}t(r,`update`),c(r,`update`),e.update=r;function i(e,t){let n=e.getText(),r=$j(t.map(rM),(e,t)=>{let n=e.range.start.line-t.range.start.line;return n===0?e.range.start.character-t.range.start.character:n}),i=0,a=[];for(let t of r){let r=e.offsetAt(t.range.start);if(ri&&a.push(n.substring(i,r)),t.newText.length&&a.push(t.newText),i=e.offsetAt(t.range.end)}return a.push(n.substr(i)),a.join(``)}t(i,`applyEdits`),c(i,`applyEdits`),e.applyEdits=i})(Qj||={});function $j(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);$j(r,t),$j(i,t);let a=0,o=0,s=0;for(;an.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}t(nM,`getWellformedRange`),c(nM,`getWellformedRange`);function rM(e){let t=nM(e.range);return t===e.range?e:{newText:e.newText,range:t}}t(rM,`getWellformedEdit`),c(rM,`getWellformedEdit`);var iM;(()=>{var e={975:e=>{function n(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}t(n,`e2`),c(n,`e`);function r(e,t){for(var n,r=``,i=0,a=-1,o=0,s=0;s<=e.length;++s){if(s2){var c=r.lastIndexOf(`/`);if(c!==r.length-1){c===-1?(r=``,i=0):i=(r=r.slice(0,c)).length-1-r.lastIndexOf(`/`),a=s,o=0;continue}}else if(r.length===2||r.length===1){r=``,i=0,a=s,o=0;continue}}t&&(r.length>0?r+=`/..`:r=`..`,i=2)}else r.length>0?r+=`/`+e.slice(a+1,s):r=e.slice(a+1,s),i=s-a-1;a=s,o=0}else n===46&&o!==-1?++o:o=-1}return r}t(r,`r2`),c(r,`r`);var i={resolve:c(function(){for(var e,t=``,i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o;a>=0?o=arguments[a]:(e===void 0&&(e=process.cwd()),o=e),n(o),o.length!==0&&(t=o+`/`+t,i=o.charCodeAt(0)===47)}return t=r(t,!i),i?t.length>0?`/`+t:`/`:t.length>0?t:`.`},`resolve`),normalize:c(function(e){if(n(e),e.length===0)return`.`;var t=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return(e=r(e,!t)).length!==0||t||(e=`.`),e.length>0&&i&&(e+=`/`),t?`/`+e:e},`normalize`),isAbsolute:c(function(e){return n(e),e.length>0&&e.charCodeAt(0)===47},`isAbsolute`),join:c(function(){if(arguments.length===0)return`.`;for(var e,t=0;t0&&(e===void 0?e=r:e+=`/`+r)}return e===void 0?`.`:i.normalize(e)},`join`),relative:c(function(e,t){if(n(e),n(t),e===t||(e=i.resolve(e))===(t=i.resolve(t)))return``;for(var r=1;rl){if(t.charCodeAt(s+d)===47)return t.slice(s+d+1);if(d===0)return t.slice(s+d)}else o>l&&(e.charCodeAt(r+d)===47?u=d:d===0&&(u=0));break}var f=e.charCodeAt(r+d);if(f!==t.charCodeAt(s+d))break;f===47&&(u=d)}var p=``;for(d=r+u+1;d<=a;++d)d!==a&&e.charCodeAt(d)!==47||(p.length===0?p+=`..`:p+=`/..`);return p.length>0?p+t.slice(s+u):(s+=u,t.charCodeAt(s)===47&&++s,t.slice(s))},`relative`),_makeLong:c(function(e){return e},`_makeLong`),dirname:c(function(e){if(n(e),e.length===0)return`.`;for(var t=e.charCodeAt(0),r=t===47,i=-1,a=!0,o=e.length-1;o>=1;--o)if((t=e.charCodeAt(o))===47){if(!a){i=o;break}}else a=!1;return i===-1?r?`/`:`.`:r&&i===1?`//`:e.slice(0,i)},`dirname`),basename:c(function(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);n(e);var r,i=0,a=-1,o=!0;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return``;var s=t.length-1,c=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(l===47){if(!o){i=r+1;break}}else c===-1&&(o=!1,c=r+1),s>=0&&(l===t.charCodeAt(s)?--s==-1&&(a=r):(s=-1,a=c))}return i===a?a=c:a===-1&&(a=e.length),e.slice(i,a)}for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===47){if(!o){i=r+1;break}}else a===-1&&(o=!1,a=r+1);return a===-1?``:e.slice(i,a)},`basename`),extname:c(function(e){n(e);for(var t=-1,r=0,i=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(c!==47)i===-1&&(a=!1,i=s+1),c===46?t===-1?t=s:o!==1&&(o=1):t!==-1&&(o=-1);else if(!a){r=s+1;break}}return t===-1||i===-1||o===0||o===1&&t===i-1&&t===r+1?``:e.slice(t,i)},`extname`),format:c(function(e){if(typeof e!=`object`||!e)throw TypeError(`The "pathObject" argument must be of type Object. Received type `+typeof e);return(function(e,t){var n=t.dir||t.root,r=t.base||(t.name||``)+(t.ext||``);return n?n===t.root?n+r:n+`/`+r:r})(0,e)},`format`),parse:c(function(e){n(e);var t={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return t;var r,i=e.charCodeAt(0),a=i===47;a?(t.root=`/`,r=1):r=0;for(var o=-1,s=0,c=-1,l=!0,u=e.length-1,d=0;u>=r;--u)if((i=e.charCodeAt(u))!==47)c===-1&&(l=!1,c=u+1),i===46?o===-1?o=u:d!==1&&(d=1):o!==-1&&(d=-1);else if(!l){s=u+1;break}return o===-1||c===-1||d===0||d===1&&o===c-1&&o===s+1?c!==-1&&(t.base=t.name=s===0&&a?e.slice(1,c):e.slice(s,c)):(s===0&&a?(t.name=e.slice(1,o),t.base=e.slice(1,c)):(t.name=e.slice(s,o),t.base=e.slice(s,c)),t.ext=e.slice(o,c)),s>0?t.dir=e.slice(0,s-1):a&&(t.dir=`/`),t},`parse`),sep:`/`,delimiter:`:`,win32:null,posix:null};i.posix=i,e.exports=i}},n={};function r(t){var i=n[t];if(i!==void 0)return i.exports;var a=n[t]={exports:{}};return e[t](a,a.exports,r),a.exports}t(r,`r`),c(r,`r`),r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};let a;r.r(i),r.d(i,{URI:c(()=>f,`URI`),Utils:c(()=>ee,`Utils`)}),typeof process==`object`?a=process.platform===`win32`:typeof navigator==`object`&&(a=navigator.userAgent.indexOf(`Windows`)>=0);let o=/^\w[\w\d+.-]*$/,s=/^\//,l=/^\/\//;function u(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!o.test(e.scheme))throw Error(`[UriError]: Scheme contains illegal characters.`);if(e.path){if(e.authority){if(!s.test(e.path))throw Error(`[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character`)}else if(l.test(e.path))throw Error(`[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")`)}}t(u,`a`),c(u,`a`);let d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class f{static{t(this,`l`)}static{c(this,`l`)}static isUri(e){return e instanceof f||!!e&&typeof e.authority==`string`&&typeof e.fragment==`string`&&typeof e.path==`string`&&typeof e.query==`string`&&typeof e.scheme==`string`&&typeof e.fsPath==`string`&&typeof e.with==`function`&&typeof e.toString==`function`}scheme;authority;path;query;fragment;constructor(e,t,n,r,i,a=!1){typeof e==`object`?(this.scheme=e.scheme||``,this.authority=e.authority||``,this.path=e.path||``,this.query=e.query||``,this.fragment=e.fragment||``):(this.scheme=(function(e,t){return e||t?e:`file`})(e,a),this.authority=t||``,this.path=(function(e,t){switch(e){case`https`:case`http`:case`file`:t?t[0]!==`/`&&(t=`/`+t):t=`/`}return t})(this.scheme,n||``),this.query=r||``,this.fragment=i||``,u(this,a))}get fsPath(){return v(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:a}=e;return t===void 0?t=this.scheme:t===null&&(t=``),n===void 0?n=this.authority:n===null&&(n=``),r===void 0?r=this.path:r===null&&(r=``),i===void 0?i=this.query:i===null&&(i=``),a===void 0?a=this.fragment:a===null&&(a=``),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&a===this.fragment?this:new m(t,n,r,i,a)}static parse(e,t=!1){let n=d.exec(e);return n?new m(n[2]||``,S(n[4]||``),S(n[5]||``),S(n[7]||``),S(n[9]||``),t):new m(``,``,``,``,``)}static file(e){let t=``;if(a&&(e=e.replace(/\\/g,`/`)),e[0]===`/`&&e[1]===`/`){let n=e.indexOf(`/`,2);n===-1?(t=e.substring(2),e=`/`):(t=e.substring(2,n),e=e.substring(n)||`/`)}return new m(`file`,t,e,``,``)}static from(e){let t=new m(e.scheme,e.authority,e.path,e.query,e.fragment);return u(t,!0),t}toString(e=!1){return y(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof f)return e;{let t=new m(e);return t._formatted=e.external,t._fsPath=e._sep===p?e.fsPath:null,t}}return e}}let p=a?1:void 0;class m extends f{static{t(this,`d`)}static{c(this,`d`)}_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||=v(this,!1),this._fsPath}toString(e=!1){return e?y(this,!0):(this._formatted||=y(this,!1),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=p),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}let h={58:`%3A`,47:`%2F`,63:`%3F`,35:`%23`,91:`%5B`,93:`%5D`,64:`%40`,33:`%21`,36:`%24`,38:`%26`,39:`%27`,40:`%28`,41:`%29`,42:`%2A`,43:`%2B`,44:`%2C`,59:`%3B`,61:`%3D`,32:`%20`};function g(e,t,n){let r,i=-1;for(let a=0;a=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r!==void 0&&(r+=e.charAt(a));else{r===void 0&&(r=e.substr(0,a));let t=h[o];t===void 0?i===-1&&(i=a):(i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r+=t)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r===void 0?e:r}t(g,`m`),c(g,`m`);function _(e){let t;for(let n=0;n1&&e.scheme===`file`?`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,a&&(n=n.replace(/\//g,`\\`)),n}t(v,`v`),c(v,`v`);function y(e,t){let n=t?_:g,r=``,{scheme:i,authority:a,path:o,query:s,fragment:c}=e;if(i&&(r+=i,r+=`:`),(a||i===`file`)&&(r+=`/`,r+=`/`),a){let e=a.indexOf(`@`);if(e!==-1){let t=a.substr(0,e);a=a.substr(e+1),e=t.lastIndexOf(`:`),e===-1?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=`:`,r+=n(t.substr(e+1),!1,!0)),r+=`@`}a=a.toLowerCase(),e=a.lastIndexOf(`:`),e===-1?r+=n(a,!1,!0):(r+=n(a.substr(0,e),!1,!0),r+=a.substr(e))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){let e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){let e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return s&&(r+=`?`,r+=n(s,!1,!1)),c&&(r+=`#`,r+=t?c:g(c,!1,!1)),r}t(y,`b`),c(y,`b`);function b(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+b(e.substr(3)):e}}t(b,`C`),c(b,`C`);let x=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function S(e){return e.match(x)?e.replace(x,(e=>b(e))):e}t(S,`w`),c(S,`w`);var C=r(975);let w=C.posix||C;var ee;(function(e){e.joinPath=function(e,...t){return e.with({path:w.join(e.path,...t)})},e.resolvePath=function(e,...t){let n=e.path,r=!1;n[0]!==`/`&&(n=`/`+n,r=!0);let i=w.resolve(n,...t);return r&&i[0]===`/`&&!e.authority&&(i=i.substring(1)),e.with({path:i})},e.dirname=function(e){if(e.path.length===0||e.path===`/`)return e;let t=w.dirname(e.path);return t.length===1&&t.charCodeAt(0)===46&&(t=``),e.with({path:t})},e.basename=function(e){return w.basename(e.path)},e.extname=function(e){return w.extname(e.path)}})(ee||={}),iM=i})();var{URI:aM,Utils:oM}=iM,sM;(function(e){e.basename=oM.basename,e.dirname=oM.dirname,e.extname=oM.extname,e.joinPath=oM.joinPath,e.resolvePath=oM.resolvePath;let n=typeof process==`object`&&process?.platform===`win32`;function r(e,t){return e?.toString()===t?.toString()}t(r,`equals`),c(r,`equals`),e.equals=r;function i(e,t){let r=typeof e==`string`?aM.parse(e).path:e.path,i=typeof t==`string`?aM.parse(t).path:t.path,a=r.split(`/`).filter(e=>e.length>0),o=i.split(`/`).filter(e=>e.length>0);if(n){let e=/^[A-Z]:$/;if(a[0]&&e.test(a[0])&&(a[0]=a[0].toLowerCase()),o[0]&&e.test(o[0])&&(o[0]=o[0].toLowerCase()),a[0]!==o[0])return i.substring(1)}let s=0;for(;s({name:e.name,uri:sM.joinPath(aM.parse(t),e.name).toString(),element:e.element})):[]}all(){return this.collectValues(this.root)}findAll(e){let t=this.getNode(sM.normalize(e),!1);return t?this.collectValues(t):[]}getNode(e,t){let n=e.split(`/`);e.charAt(e.length-1)===`/`&&n.pop();let r=this.root;for(let e of n){let n=r.children.get(e);if(!n)if(t)n={name:e,children:new Map,parent:r},r.children.set(e,n);else return;r=n}return r}collectValues(e){let t=[];e.element&&t.push(e.element);for(let n of e.children.values())t.push(...this.collectValues(n));return t}},Q;(function(e){e[e.Changed=0]=`Changed`,e[e.Parsed=1]=`Parsed`,e[e.IndexedContent=2]=`IndexedContent`,e[e.ComputedScopes=3]=`ComputedScopes`,e[e.Linked=4]=`Linked`,e[e.IndexedReferences=5]=`IndexedReferences`,e[e.Validated=6]=`Validated`})(Q||={});var lM=class{static{t(this,`DefaultLangiumDocumentFactory`)}static{c(this,`DefaultLangiumDocumentFactory`)}constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,t=Z.CancellationToken.None){let n=await this.fileSystemProvider.readFile(e);return this.createAsync(e,n,t)}fromTextDocument(e,t,n){return t??=aM.parse(e.uri),Z.CancellationToken.is(n)?this.createAsync(t,e,n):this.create(t,e,n)}fromString(e,t,n){return Z.CancellationToken.is(n)?this.createAsync(t,e,n):this.create(t,e,n)}fromModel(e,t){return this.create(t,{$model:e})}create(e,t,n){if(typeof t==`string`){let r=this.parse(e,t,n);return this.createLangiumDocument(r,e,void 0,t)}else if(`$model`in t){let n={value:t.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(n,e)}else{let r=this.parse(e,t.getText(),n);return this.createLangiumDocument(r,e,t)}}async createAsync(e,t,n){if(typeof t==`string`){let r=await this.parseAsync(e,t,n);return this.createLangiumDocument(r,e,void 0,t)}else{let r=await this.parseAsync(e,t.getText(),n);return this.createLangiumDocument(r,e,t)}}createLangiumDocument(e,t,n,r){let i;if(n)i={parseResult:e,uri:t,state:Q.Parsed,references:[],textDocument:n};else{let n=this.createTextDocumentGetter(t,r);i={parseResult:e,uri:t,state:Q.Parsed,references:[],get textDocument(){return n()}}}return e.value.$document=i,i}async update(e,t){let n=e.parseResult.value.$cstNode?.root.fullText,r=this.textDocuments?.get(e.uri.toString()),i=r?r.getText():await this.fileSystemProvider.readFile(e.uri);if(r)Object.defineProperty(e,"textDocument",{value:r});else{let t=this.createTextDocumentGetter(e.uri,i);Object.defineProperty(e,"textDocument",{get:t})}return n!==i&&(e.parseResult=await this.parseAsync(e.uri,i,t),e.parseResult.value.$document=e),e.state=Q.Parsed,e}parse(e,t,n){return this.serviceRegistry.getServices(e).parser.LangiumParser.parse(t,n)}parseAsync(e,t,n){return this.serviceRegistry.getServices(e).parser.AsyncParser.parse(t,n)}createTextDocumentGetter(e,t){let n=this.serviceRegistry,r;return()=>r??=Qj.create(e.toString(),n.getServices(e).LanguageMetaData.languageId,0,t??``)}},uM=class{static{t(this,`DefaultLangiumDocuments`)}static{c(this,`DefaultLangiumDocuments`)}constructor(e){this.documentTrie=new cM,this.services=e,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.documentBuilder=()=>e.workspace.DocumentBuilder}get all(){return N(this.documentTrie.all())}addDocument(e){let t=e.uri.toString();if(this.documentTrie.has(t))throw Error(`A document with the URI '${t}' is already present.`);this.documentTrie.insert(t,e)}getDocument(e){let t=e.toString();return this.documentTrie.find(t)}getDocuments(e){let t=e.toString();return this.documentTrie.findAll(t)}async getOrCreateDocument(e,t){let n=this.getDocument(e);return n||(n=await this.langiumDocumentFactory.fromUri(e,t),this.addDocument(n),n)}createDocument(e,t,n){if(n)return this.langiumDocumentFactory.fromString(t,e,n).then(e=>(this.addDocument(e),e));{let n=this.langiumDocumentFactory.fromString(t,e);return this.addDocument(n),n}}hasDocument(e){return this.documentTrie.has(e.toString())}invalidateDocument(e){let t=e.toString(),n=this.documentTrie.find(t);return n&&this.documentBuilder().resetToState(n,Q.Changed),n}deleteDocument(e){let t=e.toString(),n=this.documentTrie.find(t);return n&&(n.state=Q.Changed,this.documentTrie.delete(t)),n}deleteDocuments(e){let t=e.toString(),n=this.documentTrie.findAll(t);for(let e of n)e.state=Q.Changed;return this.documentTrie.delete(t),n}},dM=Symbol(`RefResolving`),fM=class{static{t(this,`DefaultLinker`)}static{c(this,`DefaultLinker`)}constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async link(e,t=Z.CancellationToken.None){if(this.profiler?.isActive(`linking`)){let n=this.profiler.createTask(`linking`,this.languageId);n.start();try{for(let r of Pn(e.parseResult.value))await Yj(t),In(r).forEach(t=>{let i=`${r.$type}:${t.property}`;n.startSubTask(i);try{this.doLink(t,e)}finally{n.stopSubTask(i)}})}finally{n.stop()}}else for(let n of Pn(e.parseResult.value))await Yj(t),In(n).forEach(t=>this.doLink(t,e))}doLink(e,t){let n=e.reference;if(`_ref`in n&&n._ref===void 0){n._ref=dM;try{let t=this.getCandidate(e);pn(t)?n._ref=t:(n._nodeDescription=t,n._ref=this.loadAstNode(t)??this.createLinkingError(e,t))}catch(t){console.error(`An error occurred while resolving reference to '${n.$refText}':`,t);let r=t.message??String(t);n._ref={info:e,message:`An error occurred while resolving reference to '${n.$refText}': ${r}`}}t.references.push(n)}else if(`_items`in n&&n._items===void 0){n._items=dM;try{let t=this.getCandidates(e),r=[];if(pn(t))n._linkingError=t;else for(let e of t){let t=this.loadAstNode(e);t&&r.push({ref:t,$nodeDescription:e})}n._items=r}catch(t){n._linkingError={info:e,message:`An error occurred while resolving reference to '${n.$refText}': ${t}`},n._items=[]}t.references.push(n)}}unlink(e){for(let t of e.references)`_ref`in t?(t._ref=void 0,delete t._nodeDescription):`_items`in t&&(t._items=void 0,delete t._linkingError);e.references=[]}getCandidate(e){return this.scopeProvider.getScope(e).getElement(e.reference.$refText)??this.createLinkingError(e)}getCandidates(e){let t=this.scopeProvider.getScope(e).getElements(e.reference.$refText).distinct(e=>`${e.documentUri}#${e.path}`).toArray();return t.length>0?t:this.createLinkingError(e)}buildReference(e,t,n,r){let i=this,a={$refNode:n,$refText:r,_ref:void 0,get ref(){if(M(this._ref))return this._ref;if(fn(this._nodeDescription)){let n=i.loadAstNode(this._nodeDescription);this._ref=n??i.createLinkingError({reference:a,container:e,property:t},this._nodeDescription)}else if(this._ref===void 0){this._ref=dM;let n=An(e).$document,r=i.getLinkedNode({reference:a,container:e,property:t});if(r.error&&n&&n.state0))return this._linkingError=i.createLinkingError({reference:a,container:e,property:t})}};return a}throwCyclicReferenceError(e,t,n){throw Error(`Cyclic reference resolution detected: ${this.astNodeLocator.getAstNodePath(e)}/${t} (symbol '${n}')`)}getLinkedNode(e){try{let t=this.getCandidate(e);if(pn(t))return{error:t};let n=this.loadAstNode(t);return n?{node:n,descr:t}:{descr:t,error:this.createLinkingError(e,t)}}catch(t){console.error(`An error occurred while resolving reference to '${e.reference.$refText}':`,t);let n=t.message??String(t);return{error:{info:e,message:`An error occurred while resolving reference to '${e.reference.$refText}': ${n}`}}}}loadAstNode(e){if(e.node)return e.node;let t=this.langiumDocuments().getDocument(e.documentUri);if(t)return this.astNodeLocator.getAstNode(t.parseResult.value,e.path)}createLinkingError(e,t){let n=An(e.container).$document;return n&&n.statehr(e)&&e.isMulti)}findDeclarations(e){if(e){let t=Ka(e),n=e.astNode;if(t&&n){let r=n[t.feature];if(un(r)||dn(r))return jn(r);if(Array.isArray(r)){for(let t of r)if((un(t)||dn(t))&&t.$refNode&&t.$refNode.offset<=e.offset&&t.$refNode.end>=e.end)return jn(t)}}if(n){let t=this.nameProvider.getNameNode(n);if(t&&(t===e||Bi(e,t)))return this.getSelfNodes(n)}}return[]}getSelfNodes(e){if(this.hasMultiReference){let t=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e)),n=this.getNodeFromReferenceDescription(t.head());if(n){for(let t of In(n))if(dn(t.reference)&&t.reference.items.some(t=>t.ref===e))return t.reference.items.map(e=>e.ref)}return[e]}else return[e]}getNodeFromReferenceDescription(e){if(!e)return;let t=this.documents.getDocument(e.sourceUri);if(t)return this.nodeLocator.getAstNode(t.parseResult.value,e.sourcePath)}findDeclarationNodes(e){let t=this.findDeclarations(e),n=[];for(let e of t){let t=this.nameProvider.getNameNode(e)??e.$cstNode;t&&n.push(t)}return n}findReferences(e,t){let n=[];t.includeDeclaration&&n.push(...this.getSelfReferences(e));let r=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return t.documentUri&&(r=r.filter(e=>sM.equals(e.sourceUri,t.documentUri))),n.push(...r),N(n)}getSelfReferences(e){let t=this.getSelfNodes(e),n=[];for(let e of t){let t=this.nameProvider.getNameNode(e);if(t){let r=kn(e),i=this.nodeLocator.getAstNodePath(e);n.push({sourceUri:r.uri,sourcePath:i,targetUri:r.uri,targetPath:i,segment:Hi(t),local:!0})}}return n}},gM=class{static{t(this,`MultiMap`)}static{c(this,`MultiMap`)}constructor(e){if(this.map=new Map,e)for(let[t,n]of e)this.add(t,n)}get size(){return wn.sum(N(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,t){if(t===void 0)return this.map.delete(e);{let n=this.map.get(e);if(n){let r=n.indexOf(t);if(r>=0)return n.length===1?this.map.delete(e):n.splice(r,1),!0}return!1}}get(e){return this.map.get(e)??[]}getStream(e){let t=this.map.get(e);return t?N(t):xn}has(e,t){if(t===void 0)return this.map.has(e);{let n=this.map.get(e);return n?n.indexOf(t)>=0:!1}}add(e,t){return this.map.has(e)?this.map.get(e).push(t):this.map.set(e,[t]),this}addAll(e,t){return this.map.has(e)?this.map.get(e).push(...t):this.map.set(e,Array.from(t)),this}forEach(e){this.map.forEach((t,n)=>t.forEach(t=>e(t,n,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return N(this.map.entries()).flatMap(([e,t])=>t.map(t=>[e,t]))}keys(){return N(this.map.keys())}values(){return N(this.map.values()).flat()}entriesGroupedByKey(){return N(this.map.entries())}},_M=class{static{t(this,`BiMap`)}static{c(this,`BiMap`)}get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(let[t,n]of e)this.set(t,n)}clear(){this.map.clear(),this.inverse.clear()}set(e,t){return this.map.set(e,t),this.inverse.set(t,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){let t=this.map.get(e);return t===void 0?!1:(this.map.delete(e),this.inverse.delete(t),!0)}},vM=class{static{t(this,`DefaultScopeComputation`)}static{c(this,`DefaultScopeComputation`)}constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async collectExportedSymbols(e,t=Z.CancellationToken.None){return this.collectExportedSymbolsForNode(e.parseResult.value,e,void 0,t)}async collectExportedSymbolsForNode(e,t,n=Mn,r=Z.CancellationToken.None){let i=[];this.addExportedSymbol(e,i,t);for(let a of n(e))await Yj(r),this.addExportedSymbol(a,i,t);return i}addExportedSymbol(e,t,n){let r=this.nameProvider.getName(e);r&&t.push(this.descriptions.createDescription(e,r,n))}async collectLocalSymbols(e,t=Z.CancellationToken.None){let n=e.parseResult.value,r=new gM;for(let i of Nn(n))await Yj(t),this.addLocalSymbol(i,e,r);return r}addLocalSymbol(e,t,n){let r=e.$container;if(r){let i=this.nameProvider.getName(e);i&&n.add(r,this.descriptions.createDescription(e,i,t))}}},yM=class{static{t(this,`StreamScope`)}static{c(this,`StreamScope`)}constructor(e,t,n){this.elements=e,this.outerScope=t,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.caseInsensitive?this.elements.find(e=>e.name.toLowerCase()===t):this.elements.find(t=>t.name===e);if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.caseInsensitive?this.elements.filter(e=>e.name.toLowerCase()===t):this.elements.filter(t=>t.name===e);return(this.concatOuterScope||n.isEmpty())&&this.outerScope?n.concat(this.outerScope.getElements(e)):n}},bM=class{static{t(this,`MapScope`)}static{c(this,`MapScope`)}constructor(e,t,n){this.elements=new Map,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0;for(let t of e){let e=this.caseInsensitive?t.name.toLowerCase():t.name;this.elements.set(e,t)}this.outerScope=t}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(t);if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(t),r=n?[n]:[];return(this.concatOuterScope||r.length>0)&&this.outerScope?N(r).concat(this.outerScope.getElements(e)):N(r)}getAllElements(){let e=N(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},xM=class{static{t(this,`MultiMapScope`)}static{c(this,`MultiMapScope`)}constructor(e,t,n){this.elements=new gM,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0;for(let t of e){let e=this.caseInsensitive?t.name.toLowerCase():t.name;this.elements.add(e,t)}this.outerScope=t}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(t)[0];if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(t);return(this.concatOuterScope||n.length===0)&&this.outerScope?N(n).concat(this.outerScope.getElements(e)):N(n)}getAllElements(){let e=N(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},SM={getElement(){},getElements(){return xn},getAllElements(){return xn}},CM=class{static{t(this,`DisposableCache`)}static{c(this,`DisposableCache`)}constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(e=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw Error(`This cache has already been disposed`)}},wM=class extends CM{static{t(this,`SimpleCache`)}static{c(this,`SimpleCache`)}constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,t){this.throwIfDisposed(),this.cache.set(e,t)}get(e,t){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(t){let n=t();return this.cache.set(e,n),n}else return}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}},TM=class extends CM{static{t(this,`ContextCache`)}static{c(this,`ContextCache`)}constructor(e){super(),this.cache=new Map,this.converter=e??(e=>e)}has(e,t){return this.throwIfDisposed(),this.cacheForContext(e).has(t)}set(e,t,n){this.throwIfDisposed(),this.cacheForContext(e).set(t,n)}get(e,t,n){this.throwIfDisposed();let r=this.cacheForContext(e);if(r.has(t))return r.get(t);if(n){let e=n();return r.set(t,e),e}else return}delete(e,t){return this.throwIfDisposed(),this.cacheForContext(e).delete(t)}clear(e){if(this.throwIfDisposed(),e){let t=this.converter(e);this.cache.delete(t)}else this.cache.clear()}cacheForContext(e){let t=this.converter(e),n=this.cache.get(t);return n||(n=new Map,this.cache.set(t,n)),n}},EM=class extends TM{static{t(this,`DocumentCache`)}static{c(this,`DocumentCache`)}constructor(e,t){super(e=>e.toString()),t?(this.toDispose.push(e.workspace.DocumentBuilder.onDocumentPhase(t,e=>{this.clear(e.uri.toString())})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((e,t)=>{for(let e of t)this.clear(e)}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((e,t)=>{let n=e.concat(t);for(let e of n)this.clear(e)}))}},DM=class extends wM{static{t(this,`WorkspaceCache`)}static{c(this,`WorkspaceCache`)}constructor(e,t){super(),t?(this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(t,()=>{this.clear()})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((e,t)=>{t.length>0&&this.clear()}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}},OM=class{static{t(this,`DefaultScopeProvider`)}static{c(this,`DefaultScopeProvider`)}constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new DM(e.shared)}getScope(e){let t=[],n=this.reflection.getReferenceType(e),r=kn(e.container).localSymbols;if(r){let i=e.container;do r.has(i)&&t.push(r.getStream(i).filter(e=>this.reflection.isSubtype(e.type,n))),i=i.$container;while(i)}let i=this.getGlobalScope(n,e);for(let e=t.length-1;e>=0;e--)i=this.createScope(t[e],i);return i}createScope(e,t,n){return new yM(N(e),t,n)}createScopeForNodes(e,t,n){return new yM(N(e).map(e=>{let t=this.nameProvider.getName(e);if(t)return this.descriptions.createDescription(e,t)}).nonNullable(),t,n)}getGlobalScope(e,t){return this.globalScopeCache.get(e,()=>new xM(this.indexManager.allElements(e)))}};function kM(e){return typeof e.$comment==`string`}t(kM,`isAstNodeWithComment`),c(kM,`isAstNodeWithComment`);function AM(e){return typeof e==`object`&&!!e&&(`$ref`in e||`$error`in e)}t(AM,`isIntermediateReference`),c(AM,`isIntermediateReference`);var jM=class{static{t(this,`DefaultJsonSerializer`)}static{c(this,`DefaultJsonSerializer`)}constructor(e){this.ignoreProperties=new Set([`$container`,`$containerProperty`,`$containerIndex`,`$document`,`$cstNode`]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,t){let n=t??{},r=t?.replacer,i=c((e,t)=>this.replacer(e,t,n),`defaultReplacer`),a=r?(e,t)=>r(e,t,i):i;try{return this.currentDocument=kn(e),JSON.stringify(e,a,t?.space)}finally{this.currentDocument=void 0}}deserialize(e,t){let n=t??{},r=JSON.parse(e);return this.linkNode(r,r,n),r}replacer(e,t,{refText:n,sourceText:r,textRegions:i,comments:a,uriConverter:o}){if(!this.ignoreProperties.has(e))if(un(t)){let e=t.ref,r=n?t.$refText:void 0;if(e){let t=kn(e),n=``;this.currentDocument&&this.currentDocument!==t&&(n=o?o(t.uri,e):t.uri.toString());let i=this.astNodeLocator.getAstNodePath(e);return{$ref:`${n}#${i}`,$refText:r}}else return{$error:t.error?.message??`Could not resolve reference`,$refText:r}}else if(dn(t)){let e=n?t.$refText:void 0,r=[];for(let e of t.items){let t=e.ref,n=kn(e.ref),i=``;this.currentDocument&&this.currentDocument!==n&&(i=o?o(n.uri,t):n.uri.toString());let a=this.astNodeLocator.getAstNodePath(t);r.push(`${i}#${a}`)}return{$refs:r,$refText:e}}else if(M(t)){let n;if(i&&(n=this.addAstNodeRegionWithAssignmentsTo({...t}),(!e||t.$document)&&n?.$textRegion&&(n.$textRegion.documentURI=this.currentDocument?.uri.toString())),r&&!e&&(n??={...t},n.$sourceText=t.$cstNode?.text),a){n??={...t};let e=this.commentProvider.getComment(t);e&&(n.$comment=e.replace(/\r/g,``))}return n??t}else return t}addAstNodeRegionWithAssignmentsTo(e){let t=c(e=>({offset:e.offset,end:e.end,length:e.length,range:e.range}),`createDocumentSegment`);if(e.$cstNode){let n=e.$textRegion=t(e.$cstNode),r=n.assignments={};return Object.keys(e).filter(e=>!e.startsWith(`$`)).forEach(n=>{let i=Ba(e.$cstNode,n).map(t);i.length!==0&&(r[n]=i)}),e}}linkNode(e,t,n,r,i,a){for(let[r,i]of Object.entries(e))if(Array.isArray(i))for(let a=0;a{await this.handleException(()=>e.call(t,n,r,i),`An error occurred during validation`,r,n)}}async handleException(e,t,n,r){try{await e()}catch(e){if(Jj(e))throw e;console.error(`${t}:`,e),e instanceof Error&&e.stack&&console.error(e.stack),n(`error`,`${t}: ${e instanceof Error?e.message:String(e)}`,{node:r})}}addEntry(e,t){if(e===`AstNode`){this.entries.add(`AstNode`,t);return}for(let n of this.reflection.getAllSubTypes(e))this.entries.add(n,t)}getChecks(e,t){let n=N(this.entries.get(e)).concat(this.entries.get(`AstNode`));return t&&(n=n.filter(e=>t.includes(e.category))),n.map(e=>e.check)}registerBeforeDocument(e,t=this){this.entriesBefore.push(this.wrapPreparationException(e,`An error occurred during set-up of the validation`,t))}registerAfterDocument(e,t=this){this.entriesAfter.push(this.wrapPreparationException(e,`An error occurred during tear-down of the validation`,t))}wrapPreparationException(e,t,n){return async(r,i,a,o)=>{await this.handleException(()=>e.call(n,r,i,a,o),t,i,r)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}getAllValidationCategories(e){return this.knownCategories}},IM=Object.freeze({validateNode:!0,validateChildren:!0}),LM=class{static{t(this,`DefaultDocumentValidator`)}static{c(this,`DefaultDocumentValidator`)}constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async validateDocument(e,t={},n=Z.CancellationToken.None){let r=e.parseResult,i=[];if(await Yj(n),(!t.categories||t.categories.includes(`built-in`))&&(this.processLexingErrors(r,i,t),t.stopAfterLexingErrors&&i.some(e=>e.data?.code===VM.LexingError)||(this.processParsingErrors(r,i,t),t.stopAfterParsingErrors&&i.some(e=>e.data?.code===VM.ParsingError))||(this.processLinkingErrors(e,i,t),t.stopAfterLinkingErrors&&i.some(e=>e.data?.code===VM.LinkingError))))return i;try{i.push(...await this.validateAst(r.value,t,n))}catch(e){if(Jj(e))throw e;console.error(`An error occurred during validation:`,e)}return await Yj(n),i}processLexingErrors(e,t,n){let r=[...e.lexerErrors,...e.lexerReport?.diagnostics??[]];for(let e of r){let n=e.severity??`error`,r={severity:zM(n),range:{start:{line:e.line-1,character:e.column-1},end:{line:e.line-1,character:e.column+e.length-1}},message:e.message,data:BM(n),source:this.getSource()};t.push(r)}}processParsingErrors(e,t,n){for(let n of e.parserErrors){let e;if(isNaN(n.token.startOffset)){if(`previousToken`in n){let t=n.previousToken;if(isNaN(t.startOffset)){let t={line:0,character:0};e={start:t,end:t}}else{let n={line:t.endLine-1,character:t.endColumn};e={start:n,end:n}}}}else e=Vi(n.token);if(e){let r={severity:zM(`error`),range:e,message:n.message,data:NM(VM.ParsingError),source:this.getSource()};t.push(r)}}}processLinkingErrors(e,t,n){for(let n of e.references){let e=n.error;if(e){let r={node:e.info.container,range:n.$refNode?.range,property:e.info.property,index:e.info.index,data:{code:VM.LinkingError,containerType:e.info.container.$type,property:e.info.property,refText:e.info.reference.$refText}};t.push(this.toDiagnostic(`error`,e.message,r))}}}async validateAst(e,t,n=Z.CancellationToken.None){let r=[],i=c((e,t,n)=>{r.push(this.toDiagnostic(e,t,n))},`acceptor`);return await this.validateAstBefore(e,t,i,n),await this.validateAstNodes(e,t,i,n),await this.validateAstAfter(e,t,i,n),r}async validateAstBefore(e,t,n,r=Z.CancellationToken.None){let i=this.validationRegistry.checksBefore;for(let a of i)await Yj(r),await a(e,n,t.categories??[],r)}async validateAstNodes(e,t,n,r=Z.CancellationToken.None){if(this.profiler?.isActive(`validating`)){let i=this.profiler.createTask(`validating`,this.languageId);i.start();try{let a=Pn(e).iterator();for(let e of a){i.startSubTask(e.$type);let o=this.validateSingleNodeOptions(e,t);if(o.validateNode)try{let i=this.validationRegistry.getChecks(e.$type,t.categories);for(let t of i)await t(e,n,r)}finally{i.stopSubTask(e.$type)}o.validateChildren||a.prune()}}finally{i.stop()}}else{let i=Pn(e).iterator();for(let e of i){await Yj(r);let a=this.validateSingleNodeOptions(e,t);if(a.validateNode){let i=this.validationRegistry.getChecks(e.$type,t.categories);for(let t of i)await t(e,n,r)}a.validateChildren||i.prune()}}}validateSingleNodeOptions(e,t){return IM}async validateAstAfter(e,t,n,r=Z.CancellationToken.None){let i=this.validationRegistry.checksAfter;for(let a of i)await Yj(r),await a(e,n,t.categories??[],r)}toDiagnostic(e,t,n){return{message:t,range:RM(n),severity:zM(e),code:n.code,codeDescription:n.codeDescription,tags:n.tags,relatedInformation:n.relatedInformation,data:n.data,source:this.getSource()}}getSource(){return this.metadata.languageId}};function RM(e){if(e.range)return e.range;let t;return typeof e.property==`string`?t=Va(e.node.$cstNode,e.property,e.index):typeof e.keyword==`string`&&(t=Wa(e.node.$cstNode,e.keyword,e.index)),t??=e.node.$cstNode,t?t.range:{start:{line:0,character:0},end:{line:0,character:0}}}t(RM,`getDiagnosticRange`),c(RM,`getDiagnosticRange`);function zM(e){switch(e){case`error`:return 1;case`warning`:return 2;case`info`:return 3;case`hint`:return 4;default:throw Error(`Invalid diagnostic severity: `+e)}}t(zM,`toDiagnosticSeverity`),c(zM,`toDiagnosticSeverity`);function BM(e){switch(e){case`error`:return NM(VM.LexingError);case`warning`:return NM(VM.LexingWarning);case`info`:return NM(VM.LexingInfo);case`hint`:return NM(VM.LexingHint);default:throw Error(`Invalid diagnostic severity: `+e)}}t(BM,`toDiagnosticData`),c(BM,`toDiagnosticData`);var VM;(function(e){e.LexingError=`lexing-error`,e.LexingWarning=`lexing-warning`,e.LexingInfo=`lexing-info`,e.LexingHint=`lexing-hint`,e.ParsingError=`parsing-error`,e.LinkingError=`linking-error`})(VM||={});var HM=class{static{t(this,`DefaultAstNodeDescriptionProvider`)}static{c(this,`DefaultAstNodeDescriptionProvider`)}constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,t,n){let r=n??kn(e);t??=this.nameProvider.getName(e);let i=this.astNodeLocator.getAstNodePath(e);if(!t)throw Error(`Node at path ${i} has no name.`);let a,o=c(()=>a??=Hi(this.nameProvider.getNameNode(e)??e.$cstNode),`nameSegmentGetter`);return{node:e,name:t,get nameSegment(){return o()},selectionSegment:Hi(e.$cstNode),type:e.$type,documentUri:r.uri,path:i}}},UM=class{static{t(this,`DefaultReferenceDescriptionProvider`)}static{c(this,`DefaultReferenceDescriptionProvider`)}constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,t=Z.CancellationToken.None){let n=[],r=e.parseResult.value;for(let e of Pn(r))await Yj(t),In(e).forEach(e=>{e.reference.error||n.push(...this.createInfoDescriptions(e))});return n}createInfoDescriptions(e){let t=e.reference;if(t.error||!t.$refNode)return[];let n=[];un(t)&&t.$nodeDescription?n=[t.$nodeDescription]:dn(t)&&(n=t.items.map(e=>e.$nodeDescription).filter(e=>e!==void 0));let r=kn(e.container).uri,i=this.nodeLocator.getAstNodePath(e.container),a=[],o=Hi(t.$refNode);for(let e of n)a.push({sourceUri:r,sourcePath:i,targetUri:e.documentUri,targetPath:e.path,segment:o,local:sM.equals(e.documentUri,r)});return a}},WM=class{static{t(this,`DefaultAstNodeLocator`)}static{c(this,`DefaultAstNodeLocator`)}constructor(){this.segmentSeparator=`/`,this.indexSeparator=`@`}getAstNodePath(e){if(e.$container){let t=this.getAstNodePath(e.$container),n=this.getPathSegment(e);return t+this.segmentSeparator+n}return``}getPathSegment({$containerProperty:e,$containerIndex:t}){if(!e)throw Error(`Missing '$containerProperty' in AST node.`);return t===void 0?e:e+this.indexSeparator+t}getAstNode(e,t){return t.split(this.segmentSeparator).reduce((e,t)=>{if(!e||t.length===0)return e;let n=t.indexOf(this.indexSeparator);if(n>0){let r=t.substring(0,n),i=parseInt(t.substring(n+1));return e[r]?.[i]}return e[t]},e)}},GM={};p(GM,m(bt(),1));var KM=class{static{t(this,`DefaultConfigurationProvider`)}static{c(this,`DefaultConfigurationProvider`)}constructor(e){this._ready=new Xj,this.onConfigurationSectionUpdateEmitter=new GM.Emitter,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){this.workspaceConfig=e.capabilities.workspace?.configuration??!1}async initialized(e){if(this.workspaceConfig){if(e.register){let t=this.serviceRegistry.all;e.register({section:t.map(e=>this.toSectionName(e.LanguageMetaData.languageId))})}if(e.fetchConfiguration){let t=this.serviceRegistry.all.map(e=>({section:this.toSectionName(e.LanguageMetaData.languageId)})),n=await e.fetchConfiguration(t);t.forEach((e,t)=>{this.updateSectionConfiguration(e.section,n[t])})}}this._ready.resolve()}updateConfiguration(e){typeof e.settings!=`object`||e.settings===null||Object.entries(e.settings).forEach(([e,t])=>{this.updateSectionConfiguration(e,t),this.onConfigurationSectionUpdateEmitter.fire({section:e,configuration:t})})}updateSectionConfiguration(e,t){this.settings[e]=t}async getConfiguration(e,t){await this.ready;let n=this.toSectionName(e);if(this.settings[n])return this.settings[n][t]}toSectionName(e){return`${e}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}},qM=m(sn(),1),JM;(function(e){function n(e){return{dispose:c(async()=>await e(),`dispose`)}}t(n,`create`),c(n,`create`),e.create=n})(JM||={});var YM=class{static{t(this,`DefaultDocumentBuilder`)}static{c(this,`DefaultDocumentBuilder`)}constructor(e){this.updateBuildOptions={validation:{categories:[`built-in`,`fast`]}},this.updateListeners=[],this.buildPhaseListeners=new gM,this.documentPhaseListeners=new gM,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=Q.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.textDocuments=e.workspace.TextDocuments,this.indexManager=e.workspace.IndexManager,this.fileSystemProvider=e.workspace.FileSystemProvider,this.workspaceManager=()=>e.workspace.WorkspaceManager,this.serviceRegistry=e.ServiceRegistry}async build(e,t={},n=Z.CancellationToken.None){for(let n of e){let e=n.uri.toString();if(n.state===Q.Validated){if(typeof t.validation==`boolean`&&t.validation)this.resetToState(n,Q.IndexedReferences);else if(typeof t.validation==`object`){let r=this.findMissingValidationCategories(n,t);r.length>0&&(this.buildState.set(e,{completed:!1,options:{validation:{categories:r}},result:this.buildState.get(e)?.result}),n.state=Q.IndexedReferences)}}else this.buildState.delete(e)}this.currentState=Q.Changed,await this.emitUpdate(e.map(e=>e.uri),[]),await this.buildDocuments(e,t,n)}async update(e,t,n=Z.CancellationToken.None){this.currentState=Q.Changed;let r=[];for(let e of t){let t=this.langiumDocuments.deleteDocuments(e);for(let e of t)r.push(e.uri),this.cleanUpDeleted(e)}let i=(await Promise.all(e.map(e=>this.findChangedUris(e)))).flat();for(let e of i){let t=this.langiumDocuments.getDocument(e);t===void 0&&(t=this.langiumDocumentFactory.fromModel({$type:`INVALID`},e),t.state=Q.Changed,this.langiumDocuments.addDocument(t)),this.resetToState(t,Q.Changed)}let a=N(i).concat(r).map(e=>e.toString()).toSet();this.langiumDocuments.all.filter(e=>!a.has(e.uri.toString())&&this.shouldRelink(e,a)).forEach(e=>this.resetToState(e,Q.ComputedScopes)),await this.emitUpdate(i,r),await Yj(n);let o=this.sortDocuments(this.langiumDocuments.all.filter(e=>e.state=1}findMissingValidationCategories(e,t){let n=this.buildState.get(e.uri.toString()),r=this.serviceRegistry.getServices(e.uri).validation.ValidationRegistry.getAllValidationCategories(e),i=n?.result?.validationChecks?new Set(n?.result?.validationChecks):n?.completed?r:new Set;return N(t===void 0||t.validation===!0?r:typeof t.validation==`object`?t.validation.categories??r:[]).filter(e=>!i.has(e)).toArray()}async findChangedUris(e){if(this.langiumDocuments.getDocument(e)??this.textDocuments?.get(e))return[e];try{let t=await this.fileSystemProvider.stat(e);if(t.isDirectory)return await this.workspaceManager().searchFolder(e);if(this.workspaceManager().shouldIncludeEntry(t))return[e]}catch{}return[]}async emitUpdate(e,t){await Promise.all(this.updateListeners.map(n=>n(e,t)))}sortDocuments(e){let t=0,n=e.length-1;for(;t=0&&!this.hasTextDocument(e[n]);)n--;te.error!==void 0)?!0:this.indexManager.isAffected(e,t)}onUpdate(e){return this.updateListeners.push(e),JM.create(()=>{let t=this.updateListeners.indexOf(e);t>=0&&this.updateListeners.splice(t,1)})}resetToState(e,t){switch(t){case Q.Changed:case Q.Parsed:this.indexManager.removeContent(e.uri);case Q.IndexedContent:e.localSymbols=void 0;case Q.ComputedScopes:this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e);case Q.Linked:this.indexManager.removeReferences(e.uri);case Q.IndexedReferences:e.diagnostics=void 0,this.buildState.delete(e.uri.toString());case Q.Validated:}e.state>t&&(e.state=t)}cleanUpDeleted(e){this.buildState.delete(e.uri.toString()),this.indexManager.remove(e.uri),e.state=Q.Changed}async buildDocuments(e,t,n){this.prepareBuild(e,t),await this.runCancelable(e,Q.Parsed,n,e=>this.langiumDocumentFactory.update(e,n)),await this.runCancelable(e,Q.IndexedContent,n,e=>this.indexManager.updateContent(e,n)),await this.runCancelable(e,Q.ComputedScopes,n,async e=>{e.localSymbols=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.collectLocalSymbols(e,n)});let r=e.filter(e=>this.shouldLink(e));await this.runCancelable(r,Q.Linked,n,e=>this.serviceRegistry.getServices(e.uri).references.Linker.link(e,n)),await this.runCancelable(r,Q.IndexedReferences,n,e=>this.indexManager.updateReferences(e,n));let i=e.filter(e=>this.shouldValidate(e)?!0:(this.markAsCompleted(e),!1));await this.runCancelable(i,Q.Validated,n,async e=>{await this.validate(e,n),this.markAsCompleted(e)})}markAsCompleted(e){let t=this.buildState.get(e.uri.toString());t&&(t.completed=!0)}prepareBuild(e,t){for(let n of e){let e=n.uri.toString(),r=this.buildState.get(e);(!r||r.completed)&&this.buildState.set(e,{completed:!1,options:t,result:r?.result})}}async runCancelable(e,t,n,r){for(let i of e)i.statee.state===t);await this.notifyBuildPhase(i,t,n),this.currentState=t}onBuildPhase(e,t){return this.buildPhaseListeners.add(e,t),JM.create(()=>{this.buildPhaseListeners.delete(e,t)})}onDocumentPhase(e,t){return this.documentPhaseListeners.add(e,t),JM.create(()=>{this.documentPhaseListeners.delete(e,t)})}waitUntil(e,t,n){let r;return t&&`path`in t?r=t:n=t,n??=Z.CancellationToken.None,r?this.awaitDocumentState(e,r,n):this.awaitBuilderState(e,n)}awaitDocumentState(e,t,n){let r=this.langiumDocuments.getDocument(t);return r?r.state>=e?Promise.resolve(t):n.isCancellationRequested?Promise.reject(qj):this.currentState>=e&&e>r.state?Promise.reject(new qM.ResponseError(qM.LSPErrorCodes.RequestFailed,`Document state of ${t.toString()} is ${Q[r.state]}, requiring ${Q[e]}, but workspace state is already ${Q[this.currentState]}. Returning undefined.`)):new Promise((r,i)=>{let a=this.onDocumentPhase(e,e=>{sM.equals(e.uri,t)&&(a.dispose(),o.dispose(),r(e.uri))}),o=n.onCancellationRequested(()=>{a.dispose(),o.dispose(),i(qj)})}):Promise.reject(new qM.ResponseError(qM.LSPErrorCodes.ServerCancelled,`No document found for URI: ${t.toString()}`))}awaitBuilderState(e,t){return this.currentState>=e?Promise.resolve():t.isCancellationRequested?Promise.reject(qj):new Promise((n,r)=>{let i=this.onBuildPhase(e,()=>{i.dispose(),a.dispose(),n()}),a=t.onCancellationRequested(()=>{i.dispose(),a.dispose(),r(qj)})})}async notifyDocumentPhase(e,t,n){let r=this.documentPhaseListeners.get(t).slice();for(let t of r)try{await Yj(n),await t(e,n)}catch(e){if(!Jj(e))throw e}}async notifyBuildPhase(e,t,n){if(e.length===0)return;let r=this.buildPhaseListeners.get(t).slice();for(let t of r)await Yj(n),await t(e,n)}shouldLink(e){return this.getBuildOptions(e).eagerLinking??!0}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,t){let n=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,r=this.getBuildOptions(e),i=typeof r.validation==`object`?{...r.validation}:{};i.categories=this.findMissingValidationCategories(e,r);let a=await n.validateDocument(e,i,t);e.diagnostics?e.diagnostics.push(...a):e.diagnostics=a;let o=this.buildState.get(e.uri.toString());o&&(o.result??={},o.result.validationChecks?o.result.validationChecks=N(o.result.validationChecks).concat(i.categories).distinct().toArray():o.result.validationChecks=[...i.categories])}getBuildOptions(e){return this.buildState.get(e.uri.toString())?.options??{}}},XM=class{static{t(this,`DefaultIndexManager`)}static{c(this,`DefaultIndexManager`)}constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new TM,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,t){let n=kn(e).uri,r=[];return this.referenceIndex.forEach(e=>{e.forEach(e=>{sM.equals(e.targetUri,n)&&e.targetPath===t&&r.push(e)})}),N(r)}allElements(e,t){let n=N(this.symbolIndex.keys());return t&&(n=n.filter(e=>!t||t.has(e))),n.map(t=>this.getFileDescriptions(t,e)).flat()}getFileDescriptions(e,t){return t?this.symbolByTypeIndex.get(e,t,()=>(this.symbolIndex.get(e)??[]).filter(e=>this.astReflection.isSubtype(e.type,t))):this.symbolIndex.get(e)??[]}remove(e){this.removeContent(e),this.removeReferences(e)}removeContent(e){let t=e.toString();this.symbolIndex.delete(t),this.symbolByTypeIndex.clear(t)}removeReferences(e){let t=e.toString();this.referenceIndex.delete(t)}async updateContent(e,t=Z.CancellationToken.None){let n=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.collectExportedSymbols(e,t),r=e.uri.toString();this.symbolIndex.set(r,n),this.symbolByTypeIndex.clear(r)}async updateReferences(e,t=Z.CancellationToken.None){let n=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,t);this.referenceIndex.set(e.uri.toString(),n)}isAffected(e,t){let n=this.referenceIndex.get(e.uri.toString());return n?n.some(e=>!e.local&&t.has(e.targetUri.toString())):!1}},ZM=class{static{t(this,`DefaultWorkspaceManager`)}static{c(this,`DefaultWorkspaceManager`)}constructor(e){this.initialBuildOptions={},this._ready=new Xj,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}get workspaceFolders(){return this.folders}initialize(e){this.folders=e.workspaceFolders??void 0}initialized(e){return this.mutex.write(e=>this.initializeWorkspace(this.folders??[],e))}async initializeWorkspace(e,t=Z.CancellationToken.None){let n=await this.performStartup(e);await Yj(t),await this.documentBuilder.build(n,this.initialBuildOptions,t)}async performStartup(e){let t=[],n=c(e=>{t.push(e),this.langiumDocuments.hasDocument(e.uri)||this.langiumDocuments.addDocument(e)},`collector`);await this.loadAdditionalDocuments(e,n);let r=[];await Promise.all(e.map(e=>this.getRootFolder(e)).map(async e=>this.traverseFolder(e,r)));let i=N(r).distinct(e=>e.toString()).filter(e=>!this.langiumDocuments.hasDocument(e));return await this.loadWorkspaceDocuments(i,n),this._ready.resolve(),t}async loadWorkspaceDocuments(e,t){await Promise.all(e.map(async e=>{t(await this.langiumDocuments.getOrCreateDocument(e))}))}loadAdditionalDocuments(e,t){return Promise.resolve()}getRootFolder(e){return aM.parse(e.uri)}async traverseFolder(e,t){try{let n=await this.fileSystemProvider.readDirectory(e);await Promise.all(n.map(async e=>{this.shouldIncludeEntry(e)&&(e.isDirectory?await this.traverseFolder(e.uri,t):e.isFile&&t.push(e.uri))}))}catch(t){console.error(`Failure to read directory content of `+e.toString(!0),t)}}async searchFolder(e){let t=[];return await this.traverseFolder(e,t),t}shouldIncludeEntry(e){let t=sM.basename(e.uri);return t.startsWith(`.`)?!1:e.isDirectory?t!==`node_modules`&&t!==`out`:e.isFile?this.serviceRegistry.hasServices(e.uri):!1}},QM=class{static{t(this,`DefaultLexerErrorMessageProvider`)}static{c(this,`DefaultLexerErrorMessageProvider`)}buildUnexpectedCharactersMessage(e,t,n,r,i){return Uy.buildUnexpectedCharactersMessage(e,t,n,r,i)}buildUnableToPopLexerModeMessage(e){return Uy.buildUnableToPopLexerModeMessage(e)}},$M={mode:`full`},eN=class{static{t(this,`DefaultLexer`)}static{c(this,`DefaultLexer`)}constructor(e){this.errorMessageProvider=e.parser.LexerErrorMessageProvider,this.tokenBuilder=e.parser.TokenBuilder;let t=this.tokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(t);let n=rN(t)?Object.values(t):t,r=e.LanguageMetaData.mode===`production`;this.chevrotainLexer=new Gy(n,{positionTracking:`full`,skipValidations:r,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,t=$M){let n=this.chevrotainLexer.tokenize(e);return{tokens:n.tokens,errors:n.errors,hidden:n.groups.hidden??[],report:this.tokenBuilder.flushLexingReport?.(e)}}toTokenTypeDictionary(e){if(rN(e))return e;let t=nN(e)?Object.values(e.modes).flat():e,n={};return t.forEach(e=>n[e.name]=e),n}};function tN(e){return Array.isArray(e)&&(e.length===0||`name`in e[0])}t(tN,`isTokenTypeArray`),c(tN,`isTokenTypeArray`);function nN(e){return e&&`modes`in e&&`defaultMode`in e}t(nN,`isIMultiModeLexerDefinition`),c(nN,`isIMultiModeLexerDefinition`);function rN(e){return!tN(e)&&!nN(e)}t(rN,`isTokenTypeDictionary`),c(rN,`isTokenTypeDictionary`),_t();function iN(e,t,n){let r,i;typeof e==`string`?(i=t,r=n):(i=e.range.start,r=t),i||=x.create(0,0);let a=oN(e),o=SN(r);return hN({index:0,tokens:lN({lines:a,position:i,options:o}),position:i})}t(iN,`parseJSDoc`),c(iN,`parseJSDoc`);function aN(e,t){let n=SN(t),r=oN(e);if(r.length===0)return!1;let i=r[0],a=r[r.length-1],o=n.start,s=n.end;return!!o?.exec(i)&&!!s?.exec(a)}t(aN,`isJSDoc`),c(aN,`isJSDoc`);function oN(e){let t=``;return t=typeof e==`string`?e:e.text,t.split(Ca)}t(oN,`getLines`),c(oN,`getLines`);var sN=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,cN=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function lN(e){let t=[],n=e.position.line,r=e.position.character;for(let i=0;i=s.length){if(t.length>0){let e=x.create(n,r);t.push({type:`break`,content:``,range:S.create(e,e)})}}else{sN.lastIndex=c;let e=sN.exec(s);if(e){let i=e[0],a=e[1],o=x.create(n,r+c),l=x.create(n,r+c+i.length);t.push({type:`tag`,content:a,range:S.create(o,l)}),c+=i.length,c=pN(s,c)}if(c0&&t[t.length-1].type===`break`?t.slice(0,-1):t}t(lN,`tokenize`),c(lN,`tokenize`);function uN(e,t,n,r){let i=[];if(e.length===0){let e=x.create(n,r),a=x.create(n,r+t.length);i.push({type:`text`,content:t,range:S.create(e,a)})}else{let a=0;for(let o of e){let e=o.index,s=t.substring(a,e);s.length>0&&i.push({type:`text`,content:t.substring(a,e),range:S.create(x.create(n,a+r),x.create(n,e+r))});let c=s.length+1,l=o[1];if(i.push({type:`inline-tag`,content:l,range:S.create(x.create(n,a+c+r),x.create(n,a+c+l.length+r))}),c+=l.length,o.length===4){c+=o[2].length;let e=o[3];i.push({type:`text`,content:e,range:S.create(x.create(n,a+c+r),x.create(n,a+c+e.length+r))})}else i.push({type:`text`,content:``,range:S.create(x.create(n,a+c+r),x.create(n,a+c+r))});a=e+o[0].length}let o=t.substring(a);o.length>0&&i.push({type:`text`,content:o,range:S.create(x.create(n,a+r),x.create(n,a+r+o.length))})}return i}t(uN,`buildInlineTokens`),c(uN,`buildInlineTokens`);var dN=/\S/,fN=/\s*$/;function pN(e,t){let n=e.substring(t).match(dN);return n?t+n.index:e.length}t(pN,`skipWhitespace`),c(pN,`skipWhitespace`);function mN(e){let t=e.match(fN);if(t&&typeof t.index==`number`)return t.index}t(mN,`lastCharacter`),c(mN,`lastCharacter`);function hN(e){let t=x.create(e.position.line,e.position.character);if(e.tokens.length===0)return new wN([],S.create(t,t));let n=[];for(;e.indext.name===e)}getTags(e){return this.getAllTags().filter(t=>t.name===e)}getAllTags(){return this.elements.filter(e=>`name`in e)}toString(){let e=``;for(let t of this.elements)if(e.length===0)e=t.toString();else{let n=t.toString();e+=AN(e)+n}return e.trim()}toMarkdown(e){let t=``;for(let n of this.elements)if(t.length===0)t=n.toMarkdown(e);else{let r=n.toMarkdown(e);t+=AN(t)+r}return t.trim()}},TN=class{static{t(this,`JSDocTagImpl`)}static{c(this,`JSDocTagImpl`)}constructor(e,t,n,r){this.name=e,this.content=t,this.inline=n,this.range=r}toString(){let e=`@${this.name}`,t=this.content.toString();return this.content.inlines.length===1?e=`${e} ${t}`:this.content.inlines.length>1&&(e=`${e} +${t}`),this.inline?`{${e}}`:e}toMarkdown(e){return e?.renderTag?.(this)??this.toMarkdownDefault(e)}toMarkdownDefault(e){let t=this.content.toMarkdown(e);if(this.inline){let n=EN(this.name,t,e??{});if(typeof n==`string`)return n}let n=``;e?.tag===`italic`||e?.tag===void 0?n=`*`:e?.tag===`bold`?n=`**`:e?.tag===`bold-italic`&&(n=`***`);let r=`${n}@${this.name}${n}`;return this.content.inlines.length===1?r=`${r} \u2014 ${t}`:this.content.inlines.length>1&&(r=`${r} +${t}`),this.inline?`{${r}}`:r}};function EN(e,t,n){if(e===`linkplain`||e===`linkcode`||e===`link`){let r=t.indexOf(` `),i=t;if(r>0){let e=pN(t,r);i=t.substring(e),t=t.substring(0,r)}return(e===`linkcode`||e===`link`&&n.link===`code`)&&(i=`\`${i}\``),n.renderLink?.(t,i)??DN(t,i)}}t(EN,`renderInlineTag`),c(EN,`renderInlineTag`);function DN(e,t){try{return aM.parse(e,!0),`[${t}](${e})`}catch{return e}}t(DN,`renderLinkDefault`),c(DN,`renderLinkDefault`);var ON=class{static{t(this,`JSDocTextImpl`)}static{c(this,`JSDocTextImpl`)}constructor(e,t){this.inlines=e,this.range=t}toString(){let e=``;for(let t=0;tn.range.start.line&&(e+=` +`)}return e}toMarkdown(e){let t=``;for(let n=0;nr.range.start.line&&(t+=` +`)}return t}},kN=class{static{t(this,`JSDocLineImpl`)}static{c(this,`JSDocLineImpl`)}constructor(e,t){this.text=e,this.range=t}toString(){return this.text}toMarkdown(){return this.text}};function AN(e){return e.endsWith(` +`)?` +`:` + +`}t(AN,`fillNewlines`),c(AN,`fillNewlines`);var jN=class{static{t(this,`JSDocDocumentationProvider`)}static{c(this,`JSDocDocumentationProvider`)}constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){let t=this.commentProvider.getComment(e);if(t&&aN(t))return iN(t).toMarkdown({renderLink:c((t,n)=>this.documentationLinkRenderer(e,t,n),`renderLink`),renderTag:c(t=>this.documentationTagRenderer(e,t),`renderTag`)})}documentationLinkRenderer(e,t,n){let r=this.findNameInLocalSymbols(e,t)??this.findNameInGlobalScope(e,t);if(r&&r.nameSegment){let e=r.nameSegment.range.start.line+1,t=r.nameSegment.range.start.character+1;return`[${n}](${r.documentUri.with({fragment:`L${e},${t}`}).toString()})`}else return}documentationTagRenderer(e,t){}findNameInLocalSymbols(e,t){let n=kn(e).localSymbols;if(!n)return;let r=e;do{let e=n.getStream(r).find(e=>e.name===t);if(e)return e;r=r.$container}while(r)}findNameInGlobalScope(e,t){return this.indexManager.allElements().find(e=>e.name===t)}},MN=class{static{t(this,`DefaultCommentProvider`)}static{c(this,`DefaultCommentProvider`)}constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){return kM(e)?e.$comment:Ji(e.$cstNode,this.grammarConfig().multilineCommentRules)?.text}},NN=class{static{t(this,`DefaultAsyncParser`)}static{c(this,`DefaultAsyncParser`)}constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,t){return Promise.resolve(this.syncParser.parse(e))}},PN=class{static{t(this,`AbstractThreadedAsyncParser`)}static{c(this,`AbstractThreadedAsyncParser`)}constructor(e){this.threadCount=8,this.terminationDelay=200,this.workerPool=[],this.queue=[],this.hydrator=e.serializer.Hydrator}initializeWorkers(){for(;this.workerPool.length{if(this.queue.length>0){let t=this.queue.shift();t&&(e.lock(),t.resolve(e))}}),this.workerPool.push(e)}}async parse(e,t){let n=await this.acquireParserWorker(t),r=new Xj,i,a=t.onCancellationRequested(()=>{i=setTimeout(()=>{this.terminateWorker(n)},this.terminationDelay)});return n.parse(e).then(e=>{let t=this.hydrator.hydrate(e);r.resolve(t)}).catch(e=>{r.reject(e)}).finally(()=>{a.dispose(),clearTimeout(i)}),r.promise}terminateWorker(e){e.terminate();let t=this.workerPool.indexOf(e);t>=0&&this.workerPool.splice(t,1)}async acquireParserWorker(e){this.initializeWorkers();for(let e of this.workerPool)if(e.ready)return e.lock(),e;let t=new Xj;return e.onCancellationRequested(()=>{let e=this.queue.indexOf(t);e>=0&&this.queue.splice(e,1),t.reject(qj)}),this.queue.push(t),t.promise}},FN=class{static{t(this,`ParserWorker`)}static{c(this,`ParserWorker`)}get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(e,t,n,r){this.onReadyEmitter=new GM.Emitter,this.deferred=new Xj,this._ready=!0,this._parsing=!1,this.sendMessage=e,this._terminate=r,t(e=>{let t=e;this.deferred.resolve(t),this.unlock()}),n(e=>{this.deferred.reject(e),this.unlock()})}terminate(){this.deferred.reject(qj),this._terminate()}lock(){this._ready=!1}unlock(){this._parsing=!1,this._ready=!0,this.onReadyEmitter.fire()}parse(e){if(this._parsing)throw Error(`Parser worker is busy`);return this._parsing=!0,this.deferred=new Xj,this.sendMessage(e),this.deferred.promise}},IN=class{static{t(this,`DefaultWorkspaceLock`)}static{c(this,`DefaultWorkspaceLock`)}constructor(){this.previousTokenSource=new Z.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();let t=Gj();return this.previousTokenSource=t,this.enqueue(this.writeQueue,e,t.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,t,n=Z.CancellationToken.None){let r=new Xj,i={action:t,deferred:r,cancellationToken:n};return e.push(i),this.performNextOperation(),r.promise}async performNextOperation(){if(!this.done)return;let e=[];if(this.writeQueue.length>0)e.push(this.writeQueue.shift());else if(this.readQueue.length>0)e.push(...this.readQueue.splice(0,this.readQueue.length));else return;this.done=!1,await Promise.all(e.map(async({action:e,deferred:t,cancellationToken:n})=>{try{let r=await Promise.resolve().then(()=>e(n));t.resolve(r)}catch(e){Jj(e)?t.resolve(void 0):t.reject(e)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}},LN=class{static{t(this,`DefaultHydrator`)}static{c(this,`DefaultHydrator`)}constructor(e){this.grammarElementIdMap=new _M,this.tokenTypeIdMap=new _M,this.grammar=e.Grammar,this.lexer=e.parser.Lexer,this.linker=e.references.Linker}dehydrate(e){return{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport?this.dehydrateLexerReport(e.lexerReport):void 0,parserErrors:e.parserErrors.map(e=>({...e,message:e.message})),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}dehydrateLexerReport(e){return e}createDehyrationContext(e){let t=new Map,n=new Map;for(let n of Pn(e))t.set(n,{});if(e.$cstNode)for(let t of Ri(e.$cstNode))n.set(t,{});return{astNodes:t,cstNodes:n}}dehydrateAstNode(e,t){let n=t.astNodes.get(e);n.$type=e.$type,n.$containerIndex=e.$containerIndex,n.$containerProperty=e.$containerProperty,e.$cstNode!==void 0&&(n.$cstNode=this.dehydrateCstNode(e.$cstNode,t));for(let[r,i]of Object.entries(e))if(!r.startsWith(`$`))if(Array.isArray(i)){let e=[];n[r]=e;for(let n of i)M(n)?e.push(this.dehydrateAstNode(n,t)):un(n)?e.push(this.dehydrateReference(n,t)):e.push(n)}else M(i)?n[r]=this.dehydrateAstNode(i,t):un(i)?n[r]=this.dehydrateReference(i,t):i!==void 0&&(n[r]=i);return n}dehydrateReference(e,t){let n={};return n.$refText=e.$refText,e.$refNode&&(n.$refNode=t.cstNodes.get(e.$refNode)),n}dehydrateCstNode(e,t){let n=t.cstNodes.get(e);return _n(e)?n.fullText=e.fullText:n.grammarSource=this.getGrammarElementId(e.grammarSource),n.hidden=e.hidden,n.astNode=t.astNodes.get(e.astNode),hn(e)?n.content=e.content.map(e=>this.dehydrateCstNode(e,t)):gn(e)&&(n.tokenType=e.tokenType.name,n.offset=e.offset,n.length=e.length,n.startLine=e.range.start.line,n.startColumn=e.range.start.character,n.endLine=e.range.end.line,n.endColumn=e.range.end.character),n}hydrate(e){let t=e.value,n=this.createHydrationContext(t);return`$cstNode`in t&&this.hydrateCstNode(t.$cstNode,n),{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport,parserErrors:e.parserErrors,value:this.hydrateAstNode(t,n)}}createHydrationContext(e){let t=new Map,n=new Map;for(let n of Pn(e))t.set(n,{});let r;if(e.$cstNode)for(let t of Ri(e.$cstNode)){let e;`fullText`in t?(e=new aj(t.fullText),r=e):`content`in t?e=new rj:`tokenType`in t&&(e=this.hydrateCstLeafNode(t)),e&&(n.set(t,e),e.root=r)}return{astNodes:t,cstNodes:n}}hydrateAstNode(e,t){let n=t.astNodes.get(e);n.$type=e.$type,n.$containerIndex=e.$containerIndex,n.$containerProperty=e.$containerProperty,e.$cstNode&&(n.$cstNode=t.cstNodes.get(e.$cstNode));for(let[r,i]of Object.entries(e))if(!r.startsWith(`$`))if(Array.isArray(i)){let e=[];n[r]=e;for(let a of i)M(a)?e.push(this.setParent(this.hydrateAstNode(a,t),n)):un(a)?e.push(this.hydrateReference(a,n,r,t)):e.push(a)}else M(i)?n[r]=this.setParent(this.hydrateAstNode(i,t),n):un(i)?n[r]=this.hydrateReference(i,n,r,t):i!==void 0&&(n[r]=i);return n}setParent(e,t){return e.$container=t,e}hydrateReference(e,t,n,r){return this.linker.buildReference(t,n,r.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,t,n=0){let r=t.cstNodes.get(e);if(typeof e.grammarSource==`number`&&(r.grammarSource=this.getGrammarElement(e.grammarSource)),r.astNode=t.astNodes.get(e.astNode),hn(r))for(let i of e.content){let e=this.hydrateCstNode(i,t,n++);r.content.push(e)}return r}hydrateCstLeafNode(e){let t=this.getTokenType(e.tokenType),n=e.offset,r=e.length,i=e.startLine,a=e.startColumn,o=e.endLine,s=e.endColumn,c=e.hidden;return new nj(n,r,{start:{line:i,character:a},end:{line:o,character:s}},t,c)}getTokenType(e){return this.lexer.definition[e]}getGrammarElementId(e){if(e)return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(e)}getGrammarElement(e){return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.getKey(e)}createGrammarElementIdMap(){let e=0;for(let t of Pn(this.grammar))Un(t)&&this.grammarElementIdMap.set(t,e++)}};function RN(e){return{documentation:{CommentProvider:c(e=>new MN(e),`CommentProvider`),DocumentationProvider:c(e=>new jN(e),`DocumentationProvider`)},parser:{AsyncParser:c(e=>new NN(e),`AsyncParser`),GrammarConfig:c(e=>yo(e),`GrammarConfig`),LangiumParser:c(e=>Lj(e),`LangiumParser`),CompletionParser:c(e=>Ij(e),`CompletionParser`),ValueConverter:c(()=>new Bj,`ValueConverter`),TokenBuilder:c(()=>new zj,`TokenBuilder`),Lexer:c(e=>new eN(e),`Lexer`),ParserErrorMessageProvider:c(()=>new pj,`ParserErrorMessageProvider`),LexerErrorMessageProvider:c(()=>new QM,`LexerErrorMessageProvider`)},workspace:{AstNodeLocator:c(()=>new WM,`AstNodeLocator`),AstNodeDescriptionProvider:c(e=>new HM(e),`AstNodeDescriptionProvider`),ReferenceDescriptionProvider:c(e=>new UM(e),`ReferenceDescriptionProvider`)},references:{Linker:c(e=>new fM(e),`Linker`),NameProvider:c(()=>new mM,`NameProvider`),ScopeProvider:c(e=>new OM(e),`ScopeProvider`),ScopeComputation:c(e=>new vM(e),`ScopeComputation`),References:c(e=>new hM(e),`References`)},serializer:{Hydrator:c(e=>new LN(e),`Hydrator`),JsonSerializer:c(e=>new jM(e),`JsonSerializer`)},validation:{DocumentValidator:c(e=>new LM(e),`DocumentValidator`),ValidationRegistry:c(e=>new FM(e),`ValidationRegistry`)},shared:c(()=>e.shared,`shared`)}}t(RN,`createDefaultCoreModule`),c(RN,`createDefaultCoreModule`);function zN(e){return{ServiceRegistry:c(e=>new MM(e),`ServiceRegistry`),workspace:{LangiumDocuments:c(e=>new uM(e),`LangiumDocuments`),LangiumDocumentFactory:c(e=>new lM(e),`LangiumDocumentFactory`),DocumentBuilder:c(e=>new YM(e),`DocumentBuilder`),IndexManager:c(e=>new XM(e),`IndexManager`),WorkspaceManager:c(e=>new ZM(e),`WorkspaceManager`),FileSystemProvider:c(t=>e.fileSystemProvider(t),`FileSystemProvider`),WorkspaceLock:c(()=>new IN,`WorkspaceLock`),ConfigurationProvider:c(e=>new KM(e),`ConfigurationProvider`)},profilers:{}}}t(zN,`createDefaultSharedCoreModule`),c(zN,`createDefaultSharedCoreModule`);var BN;(function(e){e.merge=(e,t)=>KN(KN({},e),t)})(BN||={});function $(e,t,n,r,i,a,o,s,c){return UN([e,t,n,r,i,a,o,s,c].reduce(KN,{}))}t($,`inject`),c($,`inject`);var VN=Symbol(`isProxy`);function HN(e){if(e&&e[VN])for(let t of Object.values(e))HN(t);return e}t(HN,`eagerLoad`),c(HN,`eagerLoad`);function UN(e,t){let n=new Proxy({},{deleteProperty:c(()=>!1,`deleteProperty`),set:c(()=>{throw Error(`Cannot set property on injected service container`)},`set`),get:c((r,i)=>i===VN?!0:GN(r,i,e,t||n),`get`),getOwnPropertyDescriptor:c((r,i)=>(GN(r,i,e,t||n),Object.getOwnPropertyDescriptor(r,i)),`getOwnPropertyDescriptor`),has:c((t,n)=>n in e,`has`),ownKeys:c(()=>[...Object.getOwnPropertyNames(e)],`ownKeys`)});return n}t(UN,`_inject`),c(UN,`_inject`);var WN=Symbol();function GN(e,t,n,r){if(t in e){if(e[t]instanceof Error)throw Error(`Construction failure. Please make sure that your dependencies are constructable. Cause: `+e[t]);if(e[t]===WN)throw Error(`Cycle detected. Please make "`+String(t)+`" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies`);return e[t]}else if(t in n){let i=n[t];e[t]=WN;try{e[t]=typeof i==`function`?i(r):UN(i,r)}catch(n){throw e[t]=n instanceof Error?n:void 0,n}return e[t]}else return}t(GN,`_resolve`),c(GN,`_resolve`);function KN(e,t){if(t){for(let[n,r]of Object.entries(t))if(r!=null)if(typeof r==`object`){let t=e[n];typeof t==`object`&&t?e[n]=KN(t,r):e[n]=KN({},r)}else e[n]=r}return e}t(KN,`_merge`),c(KN,`_merge`);var qN={indentTokenName:`INDENT`,dedentTokenName:`DEDENT`,whitespaceTokenName:`WS`,ignoreIndentationDelimiters:[]},JN;(function(e){e.REGULAR=`indentation-sensitive`,e.IGNORE_INDENTATION=`ignore-indentation`})(JN||={});var YN=class extends zj{static{t(this,`IndentationAwareTokenBuilder`)}static{c(this,`IndentationAwareTokenBuilder`)}constructor(e=qN){super(),this.indentationStack=[0],this.whitespaceRegExp=/[ \t]+/y,this.options={...qN,...e},this.indentTokenType=rb({name:this.options.indentTokenName,pattern:this.indentMatcher.bind(this),line_breaks:!1}),this.dedentTokenType=rb({name:this.options.dedentTokenName,pattern:this.dedentMatcher.bind(this),line_breaks:!1})}buildTokens(e,t){let n=super.buildTokens(e,t);if(!tN(n))throw Error(`Invalid tokens built by default builder`);let{indentTokenName:r,dedentTokenName:i,whitespaceTokenName:a,ignoreIndentationDelimiters:o}=this.options,s,c,l,u=[];for(let e of n){for(let[t,n]of o)e.name===t?e.PUSH_MODE=JN.IGNORE_INDENTATION:e.name===n&&(e.POP_MODE=!0);e.name===i?s=e:e.name===r?c=e:e.name===a?l=e:u.push(e)}if(!s||!c||!l)throw Error(`Some indentation/whitespace tokens not found!`);return o.length>0?{modes:{[JN.REGULAR]:[s,c,...u,l],[JN.IGNORE_INDENTATION]:[...u,l]},defaultMode:JN.REGULAR}:[s,c,l,...u]}flushLexingReport(e){return{...super.flushLexingReport(e),remainingDedents:this.flushRemainingDedents(e)}}isStartOfLine(e,t){return t===0||`\r +`.includes(e[t-1])}matchWhitespace(e,t,n,r){this.whitespaceRegExp.lastIndex=t;let i=this.whitespaceRegExp.exec(e);return{currIndentLevel:i?.[0].length??0,prevIndentLevel:this.indentationStack.at(-1),match:i}}createIndentationTokenInstance(e,t,n,r){let i=this.getLineNumber(t,r);return ob(e,n,r,r+n.length,i,i,1,n.length)}getLineNumber(e,t){return e.substring(0,t).split(/\r\n|\r|\n/).length}indentMatcher(e,t,n,r){if(!this.isStartOfLine(e,t))return null;let{currIndentLevel:i,prevIndentLevel:a,match:o}=this.matchWhitespace(e,t,n,r);return i<=a?null:(this.indentationStack.push(i),o)}dedentMatcher(e,t,n,r){if(!this.isStartOfLine(e,t))return null;let{currIndentLevel:i,prevIndentLevel:a,match:o}=this.matchWhitespace(e,t,n,r);if(i>=a)return null;let s=this.indentationStack.lastIndexOf(i);if(s===-1)return this.diagnostics.push({severity:`error`,message:`Invalid dedent level ${i} at offset: ${t}. Current indentation stack: ${this.indentationStack}`,offset:t,length:o?.[0]?.length??0,line:this.getLineNumber(e,t),column:1}),null;let c=this.indentationStack.length-s-1,l=e.substring(0,t).match(/[\r\n]+$/)?.[0].length??1;for(let r=0;r1;)t.push(this.createIndentationTokenInstance(this.dedentTokenType,e,``,e.length)),this.indentationStack.pop();return this.indentationStack=[0],t}},XN=class extends eN{static{t(this,`IndentationAwareLexer`)}static{c(this,`IndentationAwareLexer`)}constructor(e){if(super(e),e.parser.TokenBuilder instanceof YN)this.indentationTokenBuilder=e.parser.TokenBuilder;else throw Error(`IndentationAwareLexer requires an accompanying IndentationAwareTokenBuilder`)}tokenize(e,t=$M){let n=super.tokenize(e),r=n.report;t?.mode===`full`&&n.tokens.push(...r.remainingDedents),r.remainingDedents=[];let{indentTokenType:i,dedentTokenType:a}=this.indentationTokenBuilder,o=i.tokenTypeIdx,s=a.tokenTypeIdx,c=[],l=n.tokens.length-1;for(let e=0;e=0&&c.push(n.tokens[l]),n.tokens=c,n}},ZN={};d(ZN,{AstUtils:t(()=>Tn,`AstUtils`),BiMap:t(()=>_M,`BiMap`),Cancellation:t(()=>Z,`Cancellation`),ContextCache:t(()=>TM,`ContextCache`),CstUtils:t(()=>ln,`CstUtils`),DONE_RESULT:t(()=>Sn,`DONE_RESULT`),Deferred:t(()=>Xj,`Deferred`),Disposable:t(()=>JM,`Disposable`),DisposableCache:t(()=>CM,`DisposableCache`),DocumentCache:t(()=>EM,`DocumentCache`),EMPTY_STREAM:t(()=>xn,`EMPTY_STREAM`),ErrorWithLocation:t(()=>oa,`ErrorWithLocation`),GrammarUtils:t(()=>aa,`GrammarUtils`),MultiMap:t(()=>gM,`MultiMap`),OperationCancelled:t(()=>qj,`OperationCancelled`),Reduction:t(()=>wn,`Reduction`),RegExpUtils:t(()=>la,`RegExpUtils`),SimpleCache:t(()=>wM,`SimpleCache`),StreamImpl:t(()=>vn,`StreamImpl`),TreeStreamImpl:t(()=>Cn,`TreeStreamImpl`),URI:t(()=>aM,`URI`),UriTrie:t(()=>cM,`UriTrie`),UriUtils:t(()=>sM,`UriUtils`),WorkspaceCache:t(()=>DM,`WorkspaceCache`),assertCondition:t(()=>ca,`assertCondition`),assertUnreachable:t(()=>sa,`assertUnreachable`),delayNextTick:t(()=>Hj,`delayNextTick`),interruptAndCheck:t(()=>Yj,`interruptAndCheck`),isOperationCancelled:t(()=>Jj,`isOperationCancelled`),loadGrammarFromJson:t(()=>rP,`loadGrammarFromJson`),setInterruptionPeriod:t(()=>Kj,`setInterruptionPeriod`),startCancelableOperation:t(()=>Gj,`startCancelableOperation`),stream:t(()=>N,`stream`)}),p(ZN,GM);var QN=class{static{t(this,`EmptyFileSystemProvider`)}static{c(this,`EmptyFileSystemProvider`)}stat(e){throw Error(`No file system is available.`)}statSync(e){throw Error(`No file system is available.`)}async exists(){return!1}existsSync(){return!1}readBinary(){throw Error(`No file system is available.`)}readBinarySync(){throw Error(`No file system is available.`)}readFile(){throw Error(`No file system is available.`)}readFileSync(){throw Error(`No file system is available.`)}async readDirectory(){return[]}readDirectorySync(){return[]}},$N={fileSystemProvider:c(()=>new QN,`fileSystemProvider`)},eP={Grammar:c(()=>void 0,`Grammar`),LanguageMetaData:c(()=>({caseInsensitive:!1,fileExtensions:[`.langium`],languageId:`langium`}),`LanguageMetaData`)},tP={AstReflection:c(()=>new Ii,`AstReflection`)};function nP(){let e=$(zN($N),tP),t=$(RN({shared:e}),eP);return e.ServiceRegistry.register(t),t}t(nP,`createMinimalGrammarServices`),c(nP,`createMinimalGrammarServices`);function rP(e){let t=nP(),n=t.serializer.JsonSerializer.deserialize(e);return t.shared.workspace.LangiumDocumentFactory.fromModel(n,aM.parse(`memory:/${n.name??`grammar`}.langium`)),n}t(rP,`loadGrammarFromJson`),c(rP,`loadGrammarFromJson`),p(cn,ZN);var iP=class{static{t(this,`DefaultLangiumProfiler`)}static{c(this,`DefaultLangiumProfiler`)}constructor(e){this.activeCategories=new Set,this.allCategories=new Set([`validating`,`parsing`,`linking`]),this.activeCategories=e??new Set(this.allCategories),this.records=new gM}isActive(e){return this.activeCategories.has(e)}start(...e){e?e.forEach(e=>this.activeCategories.add(e)):this.activeCategories=new Set(this.allCategories)}stop(...e){e?e.forEach(e=>this.activeCategories.delete(e)):this.activeCategories.clear()}createTask(e,t){if(!this.isActive(e))throw Error(`Category "${e}" is not active.`);return console.log(`Creating profiling task for '${e}.${t}'.`),new aP(t=>this.records.add(e,this.dumpRecord(e,t)),t)}dumpRecord(e,n){console.info(`Task ${e}.${n.identifier} executed in ${n.duration.toFixed(2)}ms and ended at ${n.date.toISOString()}`);let r=[];for(let e of n.entries.keys()){let t=n.entries.get(e),i=t.reduce((e,t)=>e+t);r.push({name:`${n.identifier}.${e}`,count:t.length,duration:i})}let i=n.duration-r.map(e=>e.duration).reduce((e,t)=>e+t,0);r.push({name:n.identifier,count:1,duration:i}),r.sort((e,t)=>t.duration-e.duration);function a(e){return Math.round(100*e)/100}return t(a,`Round`),c(a,`Round`),console.table(r.map(e=>({Element:e.name,Count:e.count,"Self %":a(100*e.duration/n.duration),"Time (ms)":a(e.duration)}))),n}getRecords(...e){return e.length===0?this.records.values():this.records.entries().filter(t=>e.some(e=>e===t[0])).flatMap(e=>e[1])}},aP=class{static{t(this,`ProfilingTask`)}static{c(this,`ProfilingTask`)}constructor(e,t){this.stack=[],this.entries=new gM,this.addRecord=e,this.identifier=t}start(){if(this.startTime!==void 0)throw Error(`Task "${this.identifier}" is already started.`);this.startTime=performance.now()}stop(){if(this.startTime===void 0)throw Error(`Task "${this.identifier}" was not started.`);if(this.stack.length!==0)throw Error(`Task "${this.identifier}" cannot be stopped before sub-task(s): ${this.stack.map(e=>e.id).join(`, `)}.`);let e={identifier:this.identifier,date:new Date,duration:performance.now()-this.startTime,entries:this.entries};this.addRecord(e),this.startTime=void 0,this.entries.clear()}startSubTask(e){this.stack.push({id:e,start:performance.now(),content:0})}stopSubTask(e){let t=this.stack.pop();if(!t)throw Error(`Task "${this.identifier}.${e}" was not started.`);if(t.id!==e)throw Error(`Sub-Task "${t.id}" is not already stopped.`);let n=performance.now()-t.start;this.stack.at(-1)!==void 0&&(this.stack[this.stack.length-1].content+=n);let r=n-t.content;this.entries.add(e,r)}},oP;(e=>{e.Terminals={ARROW_DIRECTION:/L|R|T|B/,ARROW_GROUP:/\{group\}/,ARROW_INTO:/<|>/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ARCH_ICON:/\([\w-:]+\)/,ARCH_TITLE:/\[(?:"([^"\\]|\\.)*"|'([^'\\]|\\.)*'|[\w ]+)\]/}})(oP||={});var sP;(e=>{e.Terminals={EM_ID:/[_a-zA-Z][\w_]*/,EM_FID:/\d{1,3}/,EM_DATA_INLINE:/\{(.*)\}|"(.*)"|'(.*)'/,EM_DATA_BLOCK:/\{[\t ]*\r?\n(?:[\S\s]*?\r?\n)?\}(?:\r?\n|(?!\S))/,EM_ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EM_ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,EM_TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,EM_WS:/\s+/,EM_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EM_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EM_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EM_ML_COMMENT:/\/\*[\s\S]*?\*\//,EM_SL_COMMENT:/\/\/[^\n\r]*/}})(sP||={});var cP;(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,REFERENCE:/\w([-\./\w]*[-\w])?/}})(cP||={});var lP;(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(lP||={});var uP;(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(uP||={});var dP;(e=>{e.Terminals={NUMBER_PIE:/(?:-?[0-9]+\.[0-9]+(?!\.))|(?:-?(0|[1-9][0-9]*)(?!\.))/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(dP||={});var fP;(e=>{e.Terminals={GRATICULE:/circle|polygon/,BOOLEAN:/true|false/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NUMBER:/(?:[0-9]+\.[0-9]+(?!\.))|(?:0|[1-9][0-9]*(?!\.))/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(fP||={});var pP;(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,TREEMAP_KEYWORD:/treemap-beta|treemap/,CLASS_DEF:/classDef\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\s+([^;\r\n]*))?(?:;)?/,STYLE_SEPARATOR:/:::/,SEPARATOR:/:/,COMMA:/,/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,ID2:/[a-zA-Z_][a-zA-Z0-9_]*/,NUMBER2:/[0-9_\.\,]+/,STRING2:/"[^"]*"|'[^']*'/}})(pP||={});var mP;(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,STRING2:/"[^"]*"|'[^']*'/}})(mP||={});var hP;(e=>{e.Terminals={WARDLEY_NUMBER:/[0-9]+\.[0-9]+/,ARROW:/->/,LINK_PORT:/\+<>|\+>|\+|-\.->|>|\+'[^']*'<>|\+'[^']*'<|\+'[^']*'>/,LINK_LABEL:/;[^\n\r]+/,STRATEGY:/build|buy|outsource|market/,KW_WARDLEY:/wardley-beta/,KW_SIZE:/size/,KW_EVOLUTION:/evolution/,KW_ANCHOR:/anchor/,KW_COMPONENT:/component/,KW_LABEL:/label/,KW_INERTIA:/inertia/,KW_EVOLVE:/evolve/,KW_PIPELINE:/pipeline/,KW_NOTE:/note/,KW_ANNOTATIONS:/annotations/,KW_ANNOTATION:/annotation/,KW_ACCELERATOR:/accelerator/,KW_DEACCELERATOR:/deaccelerator/,NAME_WITH_SPACES:/(?!title\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/,WS:/[ \t]+/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(hP||={}),{...oP.Terminals,...sP.Terminals,...cP.Terminals,...lP.Terminals,...uP.Terminals,...dP.Terminals,...fP.Terminals,...mP.Terminals,...pP.Terminals,...hP.Terminals};var gP={$type:`Accelerator`,name:`name`,x:`x`,y:`y`},_P={$type:`Anchor`,evolution:`evolution`,name:`name`,visibility:`visibility`},vP={$type:`Annotation`,number:`number`,text:`text`,x:`x`,y:`y`},yP={$type:`Annotations`,x:`x`,y:`y`},bP={$type:`Architecture`,accDescr:`accDescr`,accTitle:`accTitle`,edges:`edges`,groups:`groups`,junctions:`junctions`,services:`services`,title:`title`};function xP(e){return FF.isInstance(e,bP.$type)}t(xP,`isArchitecture`),c(xP,`isArchitecture`);var SP={$type:`Axis`,label:`label`,name:`name`},CP={$type:`Branch`,name:`name`,order:`order`};function wP(e){return FF.isInstance(e,CP.$type)}t(wP,`isBranch`),c(wP,`isBranch`);var TP={$type:`Checkout`,branch:`branch`},EP={$type:`CherryPicking`,id:`id`,parent:`parent`,tags:`tags`},DP={$type:`ClassDefStatement`,className:`className`,styleText:`styleText`},OP={$type:`Commit`,id:`id`,message:`message`,tags:`tags`,type:`type`};function kP(e){return FF.isInstance(e,OP.$type)}t(kP,`isCommit`),c(kP,`isCommit`);var AP={$type:`Common`,accDescr:`accDescr`,accTitle:`accTitle`,title:`title`},jP={$type:`Component`,decorator:`decorator`,evolution:`evolution`,inertia:`inertia`,label:`label`,name:`name`,visibility:`visibility`},MP={$type:`Curve`,entries:`entries`,label:`label`,name:`name`},NP={$type:`Deaccelerator`,name:`name`,x:`x`,y:`y`},PP={$type:`Decorator`,strategy:`strategy`},FP={$type:`Direction`,accDescr:`accDescr`,accTitle:`accTitle`,dir:`dir`,statements:`statements`,title:`title`},IP={$type:`Edge`,lhsDir:`lhsDir`,lhsGroup:`lhsGroup`,lhsId:`lhsId`,lhsInto:`lhsInto`,rhsDir:`rhsDir`,rhsGroup:`rhsGroup`,rhsId:`rhsId`,rhsInto:`rhsInto`,title:`title`},LP={$type:`EmDataEntity`,dataBlockValue:`dataBlockValue`,dataType:`dataType`,name:`name`},RP={$type:`EmFrame`},zP={$type:`EmGwt`,givenStatements:`givenStatements`,sourceFrame:`sourceFrame`,thenStatements:`thenStatements`,whenStatements:`whenStatements`},BP={$type:`EmGwtStatement`,entityIdentifier:`entityIdentifier`},VP={$type:`EmModelEntity`,name:`name`};function HP(e){return e===`rmo`||e===`readmodel`||e===`ui`||e===`cmd`||e===`command`||e===`evt`||e===`event`||e===`pcr`||e===`processor`}t(HP,`isEmModelEntityType`),c(HP,`isEmModelEntityType`);var UP={$type:`EmNoteEntity`,dataBlockValue:`dataBlockValue`,dataType:`dataType`,sourceFrame:`sourceFrame`},WP={$type:`EmResetFrame`,dataInlineValue:`dataInlineValue`,dataReference:`dataReference`,dataType:`dataType`,entityIdentifier:`entityIdentifier`,modelEntityType:`modelEntityType`,name:`name`,sourceFrames:`sourceFrames`};function GP(e){return FF.isInstance(e,WP.$type)}t(GP,`isEmResetFrame`),c(GP,`isEmResetFrame`);var KP={$type:`EmTimeFrame`,dataInlineValue:`dataInlineValue`,dataReference:`dataReference`,dataType:`dataType`,entityIdentifier:`entityIdentifier`,modelEntityType:`modelEntityType`,name:`name`,sourceFrames:`sourceFrames`},qP={$type:`Entry`,axis:`axis`,value:`value`},JP={$type:`EventModel`,accDescr:`accDescr`,accTitle:`accTitle`,dataEntities:`dataEntities`,frames:`frames`,gwtEntities:`gwtEntities`,modelEntities:`modelEntities`,noteEntities:`noteEntities`,title:`title`},YP={$type:`Evolution`,stages:`stages`},XP={$type:`EvolutionStage`,boundary:`boundary`,name:`name`,secondName:`secondName`},ZP={$type:`Evolve`,component:`component`,target:`target`},QP={$type:`GitGraph`,accDescr:`accDescr`,accTitle:`accTitle`,statements:`statements`,title:`title`};function $P(e){return FF.isInstance(e,QP.$type)}t($P,`isGitGraph`),c($P,`isGitGraph`);var eF={$type:`Group`,icon:`icon`,id:`id`,in:`in`,title:`title`},tF={$type:`Info`,accDescr:`accDescr`,accTitle:`accTitle`,title:`title`};function nF(e){return FF.isInstance(e,tF.$type)}t(nF,`isInfo`),c(nF,`isInfo`);var rF={$type:`Item`,classSelector:`classSelector`,name:`name`},iF={$type:`Junction`,id:`id`,in:`in`},aF={$type:`Label`,negX:`negX`,negY:`negY`,offsetX:`offsetX`,offsetY:`offsetY`},oF={$type:`Leaf`,classSelector:`classSelector`,name:`name`,value:`value`},sF={$type:`Link`,arrow:`arrow`,from:`from`,fromPort:`fromPort`,linkLabel:`linkLabel`,to:`to`,toPort:`toPort`},cF={$type:`Merge`,branch:`branch`,id:`id`,tags:`tags`,type:`type`};function lF(e){return FF.isInstance(e,cF.$type)}t(lF,`isMerge`),c(lF,`isMerge`);var uF={$type:`Note`,evolution:`evolution`,text:`text`,visibility:`visibility`},dF={$type:`Option`,name:`name`,value:`value`},fF={$type:`Packet`,accDescr:`accDescr`,accTitle:`accTitle`,blocks:`blocks`,title:`title`};function pF(e){return FF.isInstance(e,fF.$type)}t(pF,`isPacket`),c(pF,`isPacket`);var mF={$type:`PacketBlock`,bits:`bits`,end:`end`,label:`label`,start:`start`};function hF(e){return FF.isInstance(e,mF.$type)}t(hF,`isPacketBlock`),c(hF,`isPacketBlock`);var gF={$type:`Pie`,accDescr:`accDescr`,accTitle:`accTitle`,sections:`sections`,showData:`showData`,title:`title`};function _F(e){return FF.isInstance(e,gF.$type)}t(_F,`isPie`),c(_F,`isPie`);var vF={$type:`PieSection`,label:`label`,value:`value`};function yF(e){return FF.isInstance(e,vF.$type)}t(yF,`isPieSection`),c(yF,`isPieSection`);var bF={$type:`Pipeline`,components:`components`,parent:`parent`},xF={$type:`PipelineComponent`,evolution:`evolution`,label:`label`,name:`name`},SF={$type:`Radar`,accDescr:`accDescr`,accTitle:`accTitle`,axes:`axes`,curves:`curves`,options:`options`,title:`title`},CF={$type:`Section`,classSelector:`classSelector`,name:`name`},wF={$type:`Service`,icon:`icon`,iconText:`iconText`,id:`id`,in:`in`,title:`title`},TF={$type:`Size`,height:`height`,width:`width`},EF={$type:`Statement`},DF={$type:`Treemap`,accDescr:`accDescr`,accTitle:`accTitle`,title:`title`,TreemapRows:`TreemapRows`};function OF(e){return FF.isInstance(e,DF.$type)}t(OF,`isTreemap`),c(OF,`isTreemap`);var kF={$type:`TreemapRow`,indent:`indent`,item:`item`},AF={$type:`TreeNode`,indent:`indent`,name:`name`},jF={$type:`TreeView`,accDescr:`accDescr`,accTitle:`accTitle`,nodes:`nodes`,title:`title`},MF={$type:`Wardley`,accDescr:`accDescr`,accelerators:`accelerators`,accTitle:`accTitle`,anchors:`anchors`,annotation:`annotation`,annotations:`annotations`,components:`components`,deaccelerators:`deaccelerators`,evolution:`evolution`,evolves:`evolves`,links:`links`,notes:`notes`,pipelines:`pipelines`,size:`size`,title:`title`};function NF(e){return FF.isInstance(e,MF.$type)}t(NF,`isWardley`),c(NF,`isWardley`);var PF=class extends mn{static{t(this,`MermaidAstReflection`)}constructor(){super(...arguments),this.types={Accelerator:{name:gP.$type,properties:{name:{name:gP.name},x:{name:gP.x},y:{name:gP.y}},superTypes:[]},Anchor:{name:_P.$type,properties:{evolution:{name:_P.evolution},name:{name:_P.name},visibility:{name:_P.visibility}},superTypes:[]},Annotation:{name:vP.$type,properties:{number:{name:vP.number},text:{name:vP.text},x:{name:vP.x},y:{name:vP.y}},superTypes:[]},Annotations:{name:yP.$type,properties:{x:{name:yP.x},y:{name:yP.y}},superTypes:[]},Architecture:{name:bP.$type,properties:{accDescr:{name:bP.accDescr},accTitle:{name:bP.accTitle},edges:{name:bP.edges,defaultValue:[]},groups:{name:bP.groups,defaultValue:[]},junctions:{name:bP.junctions,defaultValue:[]},services:{name:bP.services,defaultValue:[]},title:{name:bP.title}},superTypes:[]},Axis:{name:SP.$type,properties:{label:{name:SP.label},name:{name:SP.name}},superTypes:[]},Branch:{name:CP.$type,properties:{name:{name:CP.name},order:{name:CP.order}},superTypes:[EF.$type]},Checkout:{name:TP.$type,properties:{branch:{name:TP.branch}},superTypes:[EF.$type]},CherryPicking:{name:EP.$type,properties:{id:{name:EP.id},parent:{name:EP.parent},tags:{name:EP.tags,defaultValue:[]}},superTypes:[EF.$type]},ClassDefStatement:{name:DP.$type,properties:{className:{name:DP.className},styleText:{name:DP.styleText}},superTypes:[]},Commit:{name:OP.$type,properties:{id:{name:OP.id},message:{name:OP.message},tags:{name:OP.tags,defaultValue:[]},type:{name:OP.type}},superTypes:[EF.$type]},Common:{name:AP.$type,properties:{accDescr:{name:AP.accDescr},accTitle:{name:AP.accTitle},title:{name:AP.title}},superTypes:[]},Component:{name:jP.$type,properties:{decorator:{name:jP.decorator},evolution:{name:jP.evolution},inertia:{name:jP.inertia,defaultValue:!1},label:{name:jP.label},name:{name:jP.name},visibility:{name:jP.visibility}},superTypes:[]},Curve:{name:MP.$type,properties:{entries:{name:MP.entries,defaultValue:[]},label:{name:MP.label},name:{name:MP.name}},superTypes:[]},Deaccelerator:{name:NP.$type,properties:{name:{name:NP.name},x:{name:NP.x},y:{name:NP.y}},superTypes:[]},Decorator:{name:PP.$type,properties:{strategy:{name:PP.strategy}},superTypes:[]},Direction:{name:FP.$type,properties:{accDescr:{name:FP.accDescr},accTitle:{name:FP.accTitle},dir:{name:FP.dir},statements:{name:FP.statements,defaultValue:[]},title:{name:FP.title}},superTypes:[QP.$type]},Edge:{name:IP.$type,properties:{lhsDir:{name:IP.lhsDir},lhsGroup:{name:IP.lhsGroup,defaultValue:!1},lhsId:{name:IP.lhsId},lhsInto:{name:IP.lhsInto,defaultValue:!1},rhsDir:{name:IP.rhsDir},rhsGroup:{name:IP.rhsGroup,defaultValue:!1},rhsId:{name:IP.rhsId},rhsInto:{name:IP.rhsInto,defaultValue:!1},title:{name:IP.title}},superTypes:[]},EmDataEntity:{name:LP.$type,properties:{dataBlockValue:{name:LP.dataBlockValue},dataType:{name:LP.dataType},name:{name:LP.name}},superTypes:[]},EmFrame:{name:RP.$type,properties:{},superTypes:[]},EmGwt:{name:zP.$type,properties:{givenStatements:{name:zP.givenStatements,defaultValue:[]},sourceFrame:{name:zP.sourceFrame,referenceType:RP.$type},thenStatements:{name:zP.thenStatements,defaultValue:[]},whenStatements:{name:zP.whenStatements,defaultValue:[]}},superTypes:[]},EmGwtStatement:{name:BP.$type,properties:{entityIdentifier:{name:BP.entityIdentifier,referenceType:VP.$type}},superTypes:[]},EmModelEntity:{name:VP.$type,properties:{name:{name:VP.name}},superTypes:[]},EmNoteEntity:{name:UP.$type,properties:{dataBlockValue:{name:UP.dataBlockValue},dataType:{name:UP.dataType},sourceFrame:{name:UP.sourceFrame,referenceType:RP.$type}},superTypes:[]},EmResetFrame:{name:WP.$type,properties:{dataInlineValue:{name:WP.dataInlineValue},dataReference:{name:WP.dataReference,referenceType:LP.$type},dataType:{name:WP.dataType},entityIdentifier:{name:WP.entityIdentifier},modelEntityType:{name:WP.modelEntityType},name:{name:WP.name},sourceFrames:{name:WP.sourceFrames,defaultValue:[],referenceType:RP.$type}},superTypes:[RP.$type]},EmTimeFrame:{name:KP.$type,properties:{dataInlineValue:{name:KP.dataInlineValue},dataReference:{name:KP.dataReference,referenceType:LP.$type},dataType:{name:KP.dataType},entityIdentifier:{name:KP.entityIdentifier},modelEntityType:{name:KP.modelEntityType},name:{name:KP.name},sourceFrames:{name:KP.sourceFrames,defaultValue:[],referenceType:RP.$type}},superTypes:[RP.$type]},Entry:{name:qP.$type,properties:{axis:{name:qP.axis,referenceType:SP.$type},value:{name:qP.value}},superTypes:[]},EventModel:{name:JP.$type,properties:{accDescr:{name:JP.accDescr},accTitle:{name:JP.accTitle},dataEntities:{name:JP.dataEntities,defaultValue:[]},frames:{name:JP.frames,defaultValue:[]},gwtEntities:{name:JP.gwtEntities,defaultValue:[]},modelEntities:{name:JP.modelEntities,defaultValue:[]},noteEntities:{name:JP.noteEntities,defaultValue:[]},title:{name:JP.title}},superTypes:[]},Evolution:{name:YP.$type,properties:{stages:{name:YP.stages,defaultValue:[]}},superTypes:[]},EvolutionStage:{name:XP.$type,properties:{boundary:{name:XP.boundary},name:{name:XP.name},secondName:{name:XP.secondName}},superTypes:[]},Evolve:{name:ZP.$type,properties:{component:{name:ZP.component},target:{name:ZP.target}},superTypes:[]},GitGraph:{name:QP.$type,properties:{accDescr:{name:QP.accDescr},accTitle:{name:QP.accTitle},statements:{name:QP.statements,defaultValue:[]},title:{name:QP.title}},superTypes:[]},Group:{name:eF.$type,properties:{icon:{name:eF.icon},id:{name:eF.id},in:{name:eF.in},title:{name:eF.title}},superTypes:[]},Info:{name:tF.$type,properties:{accDescr:{name:tF.accDescr},accTitle:{name:tF.accTitle},title:{name:tF.title}},superTypes:[]},Item:{name:rF.$type,properties:{classSelector:{name:rF.classSelector},name:{name:rF.name}},superTypes:[]},Junction:{name:iF.$type,properties:{id:{name:iF.id},in:{name:iF.in}},superTypes:[]},Label:{name:aF.$type,properties:{negX:{name:aF.negX,defaultValue:!1},negY:{name:aF.negY,defaultValue:!1},offsetX:{name:aF.offsetX},offsetY:{name:aF.offsetY}},superTypes:[]},Leaf:{name:oF.$type,properties:{classSelector:{name:oF.classSelector},name:{name:oF.name},value:{name:oF.value}},superTypes:[rF.$type]},Link:{name:sF.$type,properties:{arrow:{name:sF.arrow},from:{name:sF.from},fromPort:{name:sF.fromPort},linkLabel:{name:sF.linkLabel},to:{name:sF.to},toPort:{name:sF.toPort}},superTypes:[]},Merge:{name:cF.$type,properties:{branch:{name:cF.branch},id:{name:cF.id},tags:{name:cF.tags,defaultValue:[]},type:{name:cF.type}},superTypes:[EF.$type]},Note:{name:uF.$type,properties:{evolution:{name:uF.evolution},text:{name:uF.text},visibility:{name:uF.visibility}},superTypes:[]},Option:{name:dF.$type,properties:{name:{name:dF.name},value:{name:dF.value,defaultValue:!1}},superTypes:[]},Packet:{name:fF.$type,properties:{accDescr:{name:fF.accDescr},accTitle:{name:fF.accTitle},blocks:{name:fF.blocks,defaultValue:[]},title:{name:fF.title}},superTypes:[]},PacketBlock:{name:mF.$type,properties:{bits:{name:mF.bits},end:{name:mF.end},label:{name:mF.label},start:{name:mF.start}},superTypes:[]},Pie:{name:gF.$type,properties:{accDescr:{name:gF.accDescr},accTitle:{name:gF.accTitle},sections:{name:gF.sections,defaultValue:[]},showData:{name:gF.showData,defaultValue:!1},title:{name:gF.title}},superTypes:[]},PieSection:{name:vF.$type,properties:{label:{name:vF.label},value:{name:vF.value}},superTypes:[]},Pipeline:{name:bF.$type,properties:{components:{name:bF.components,defaultValue:[]},parent:{name:bF.parent}},superTypes:[]},PipelineComponent:{name:xF.$type,properties:{evolution:{name:xF.evolution},label:{name:xF.label},name:{name:xF.name}},superTypes:[]},Radar:{name:SF.$type,properties:{accDescr:{name:SF.accDescr},accTitle:{name:SF.accTitle},axes:{name:SF.axes,defaultValue:[]},curves:{name:SF.curves,defaultValue:[]},options:{name:SF.options,defaultValue:[]},title:{name:SF.title}},superTypes:[]},Section:{name:CF.$type,properties:{classSelector:{name:CF.classSelector},name:{name:CF.name}},superTypes:[rF.$type]},Service:{name:wF.$type,properties:{icon:{name:wF.icon},iconText:{name:wF.iconText},id:{name:wF.id},in:{name:wF.in},title:{name:wF.title}},superTypes:[]},Size:{name:TF.$type,properties:{height:{name:TF.height},width:{name:TF.width}},superTypes:[]},Statement:{name:EF.$type,properties:{},superTypes:[]},TreeNode:{name:AF.$type,properties:{indent:{name:AF.indent},name:{name:AF.name}},superTypes:[]},TreeView:{name:jF.$type,properties:{accDescr:{name:jF.accDescr},accTitle:{name:jF.accTitle},nodes:{name:jF.nodes,defaultValue:[]},title:{name:jF.title}},superTypes:[]},Treemap:{name:DF.$type,properties:{accDescr:{name:DF.accDescr},accTitle:{name:DF.accTitle},title:{name:DF.title},TreemapRows:{name:DF.TreemapRows,defaultValue:[]}},superTypes:[]},TreemapRow:{name:kF.$type,properties:{indent:{name:kF.indent},item:{name:kF.item}},superTypes:[]},Wardley:{name:MF.$type,properties:{accDescr:{name:MF.accDescr},accelerators:{name:MF.accelerators,defaultValue:[]},accTitle:{name:MF.accTitle},anchors:{name:MF.anchors,defaultValue:[]},annotation:{name:MF.annotation,defaultValue:[]},annotations:{name:MF.annotations,defaultValue:[]},components:{name:MF.components,defaultValue:[]},deaccelerators:{name:MF.deaccelerators,defaultValue:[]},evolution:{name:MF.evolution},evolves:{name:MF.evolves,defaultValue:[]},links:{name:MF.links,defaultValue:[]},notes:{name:MF.notes,defaultValue:[]},pipelines:{name:MF.pipelines,defaultValue:[]},size:{name:MF.size},title:{name:MF.title}},superTypes:[]}}}static{c(this,`MermaidAstReflection`)}},FF=new PF,IF,LF=c(()=>IF??=rP(`{"$type":"Grammar","isDeclared":true,"name":"ArchitectureGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"LeftPort","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"RightPort","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Arrow","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@18"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[(?:\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'|[\\\\w ]+)\\\\]/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`),`ArchitectureGrammarGrammar`),RF,zF=c(()=>RF??=rP('{"$type":"Grammar","isDeclared":true,"name":"EventModeling","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","entry":true,"name":"EventModel","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"eventmodeling"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"frames","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"dataEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"noteEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"gwtEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntityType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rmo"},{"$type":"Keyword","value":"readmodel"},{"$type":"Keyword","value":"ui"},{"$type":"Keyword","value":"cmd"},{"$type":"Keyword","value":"command"},{"$type":"Keyword","value":"evt"},{"$type":"Keyword","value":"event"},{"$type":"Keyword","value":"pcr"},{"$type":"Keyword","value":"processor"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"json"},{"$type":"Keyword","value":"jsobj"},{"$type":"Keyword","value":"figma"},{"$type":"Keyword","value":"salt"},{"$type":"Keyword","value":"uri"},{"$type":"Keyword","value":"md"},{"$type":"Keyword","value":"html"},{"$type":"Keyword","value":"text"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataInline","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataInlineValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataBlock","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataBlockValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"QualifiedName","dataType":"string","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"."},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmTimeFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"tf"},{"$type":"Keyword","value":"timeframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmResetFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rf"},{"$type":"Keyword","value":"resetframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmFrame","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"entity"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"data"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmNoteEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"note"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwt","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"gwt"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"given"},{"$type":"Assignment","feature":"givenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"},{"$type":"Group","elements":[{"$type":"Keyword","value":"when"},{"$type":"Assignment","feature":"whenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}],"cardinality":"?"},{"$type":"Keyword","value":"then"},{"$type":"Assignment","feature":"thenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwtStatement","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@9"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_EID","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_FI","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"EM_ID","definition":{"$type":"RegexToken","regex":"/[_a-zA-Z][\\\\w_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_FID","definition":{"$type":"RegexToken","regex":"/\\\\d{1,3}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_INLINE","definition":{"$type":"RegexToken","regex":"/\\\\{(.*)\\\\}|\\"(.*)\\"|\'(.*)\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_BLOCK","definition":{"$type":"RegexToken","regex":"/\\\\{[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?\\\\}(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EM_WS","definition":{"$type":"RegexToken","regex":"/\\\\s+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SL_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\/[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"imports":[],"types":[]}'),`EventModelingGrammar`),BF,VF=c(()=>BF??=rP(`{"$type":"Grammar","isDeclared":true,"name":"GitGraphGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"GitGraph","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@14"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"REFERENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`),`GitGraphGrammarGrammar`),HF,UF=c(()=>HF??=rP(`{"$type":"Grammar","isDeclared":true,"name":"InfoGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Info","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"?"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@7"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`),`InfoGrammarGrammar`),WF,GF=c(()=>WF??=rP(`{"$type":"Grammar","isDeclared":true,"name":"PacketGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Packet","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"packet"},{"$type":"Keyword","value":"packet-beta"}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}],"cardinality":"?"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"+"},{"$type":"Assignment","feature":"bits","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]}]},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`),`PacketGrammarGrammar`),KF,qF=c(()=>KF??=rP(`{"$type":"Grammar","isDeclared":true,"name":"PieGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Pie","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"FLOAT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?(0|[1-9][0-9]*)(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@2"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@3"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`),`PieGrammarGrammar`),JF,YF=c(()=>JF??=rP(`{"$type":"Grammar","isDeclared":true,"name":"RadarGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Radar","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":"radar-beta:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"axis"},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"curve"},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Label","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Axis","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Curve","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Entries","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"DetailedEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"axis","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@2"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":":","cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"NumberEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Option","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"showLegend"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"ticks"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"max"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"min"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"graticule"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"GRATICULE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"circle"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"polygon"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@16"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[{"$type":"Interface","name":"Entry","attributes":[{"$type":"TypeAttribute","name":"axis","isOptional":true,"type":{"$type":"ReferenceType","referenceType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@2"}},"isMulti":false}},{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}],"superTypes":[]}],"types":[]}`),`RadarGrammarGrammar`),XF,ZF=c(()=>XF??=rP(`{"$type":"Grammar","isDeclared":true,"name":"TreemapGrammar","rules":[{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"Treemap","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"TreemapRows","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"TREEMAP_KEYWORD","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap-beta"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"CLASS_DEF","definition":{"$type":"RegexToken","regex":"/classDef\\\\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\\\\s+([^;\\\\r\\\\n]*))?(?:;)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STYLE_SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":::"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"COMMA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":","},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreemapRow","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"item","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"ClassDef","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Item","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Section","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Leaf","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ID2","definition":{"$type":"RegexToken","regex":"/[a-zA-Z_][a-zA-Z0-9_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER2","definition":{"$type":"RegexToken","regex":"/[0-9_\\\\.\\\\,]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"MyNumber","dataType":"number","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"Item","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"classSelector","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"Section","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[]},{"$type":"Interface","name":"Leaf","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}]},{"$type":"Interface","name":"ClassDefStatement","attributes":[{"$type":"TypeAttribute","name":"className","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"styleText","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"Treemap","attributes":[{"$type":"TypeAttribute","name":"TreemapRows","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@15"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * Treemap grammar for Langium\\n * Converted from mindmap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treemap declaration.\\n */"}`),`TreemapGrammarGrammar`),QF,$F=c(()=>QF??=rP(`{"$type":"Grammar","isDeclared":true,"name":"TreeViewGrammar","rules":[{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"TreeView","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"treeView-beta"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"nodes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreeNode","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"TreeView","attributes":[{"$type":"TypeAttribute","name":"nodes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@9"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * TreeView grammar for Langium\\n * Converted from treemap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treeView declaration.\\n */"}`),`TreeViewGrammarGrammar`),eI,tI=c(()=>eI??=rP(`{"$type":"Grammar","isDeclared":true,"name":"WardleyGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Wardley","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@42"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"size","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"anchors","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"links","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"evolves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"pipelines","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"notes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"annotations","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Assignment","feature":"annotation","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"deaccelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Size","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"width","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"height","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolution","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EvolutionStage","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"@"},{"$type":"Assignment","feature":"boundary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}],"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"secondName","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Anchor","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Component","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"decorator","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Keyword","value":")"}]}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Label","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"negX","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetX","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"negY","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetY","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Decorator","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"strategy","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Link","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"fromPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"arrow","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"cardinality":"?"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"toPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"linkLabel","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolve","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@32"},"arguments":[]},{"$type":"Assignment","feature":"component","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"target","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Pipeline","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@33"},"arguments":[]},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"+"},{"$type":"Keyword","value":"}"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PipelineComponent","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Note","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@34"},"arguments":[]},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotations","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@35"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotation","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@36"},"arguments":[]},{"$type":"Assignment","feature":"number","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CoordinateValue","dataType":"number","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Accelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@37"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Deaccelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@38"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"WARDLEY_NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"->"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_PORT","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<>"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+>"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_ARROW","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-->"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-.->"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":">"},"parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'<>/","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'/","parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_LABEL","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRATEGY","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"build"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"buy"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"outsource"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"market"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_WARDLEY","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"wardley-beta"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_SIZE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"size"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLUTION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolution"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANCHOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"anchor"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_COMPONENT","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"component"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_LABEL","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"label"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_INERTIA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"inertia"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLVE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolve"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_PIPELINE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"pipeline"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_NOTE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"note"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATIONS","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotations"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotation"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"accelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_DEACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"deaccelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NAME_WITH_SPACES","definition":{"$type":"RegexToken","regex":"/(?!title\\\\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \\\\t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@44"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@45"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@46"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@47"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@48"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`),`WardleyGrammarGrammar`),nI={languageId:`architecture`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},rI={languageId:`eventmodeling`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},iI={languageId:`gitGraph`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},aI={languageId:`info`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},oI={languageId:`packet`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},sI={languageId:`pie`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},cI={languageId:`radar`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},lI={languageId:`treemap`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},uI={languageId:`treeView`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},dI={languageId:`wardley`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},fI={AstReflection:c(()=>new PF,`AstReflection`)},pI={Grammar:c(()=>LF(),`Grammar`),LanguageMetaData:c(()=>nI,`LanguageMetaData`),parser:{}},mI={Grammar:c(()=>zF(),`Grammar`),LanguageMetaData:c(()=>rI,`LanguageMetaData`),parser:{}},hI={Grammar:c(()=>VF(),`Grammar`),LanguageMetaData:c(()=>iI,`LanguageMetaData`),parser:{}},gI={Grammar:c(()=>UF(),`Grammar`),LanguageMetaData:c(()=>aI,`LanguageMetaData`),parser:{}},_I={Grammar:c(()=>GF(),`Grammar`),LanguageMetaData:c(()=>oI,`LanguageMetaData`),parser:{}},vI={Grammar:c(()=>qF(),`Grammar`),LanguageMetaData:c(()=>sI,`LanguageMetaData`),parser:{}},yI={Grammar:c(()=>YF(),`Grammar`),LanguageMetaData:c(()=>cI,`LanguageMetaData`),parser:{}},bI={Grammar:c(()=>ZF(),`Grammar`),LanguageMetaData:c(()=>lI,`LanguageMetaData`),parser:{}},xI={Grammar:c(()=>$F(),`Grammar`),LanguageMetaData:c(()=>uI,`LanguageMetaData`),parser:{}},SI={Grammar:c(()=>tI(),`Grammar`),LanguageMetaData:c(()=>dI,`LanguageMetaData`),parser:{}},CI={ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/accTitle[\t ]*:([^\n\r]*)/,TITLE:/title([\t ][^\n\r]*|)/},wI=class extends Bj{static{t(this,`AbstractMermaidValueConverter`)}static{c(this,`AbstractMermaidValueConverter`)}runConverter(e,t,n){let r=this.runCommonConverter(e,t,n);return r===void 0&&(r=this.runCustomConverter(e,t,n)),r===void 0?super.runConverter(e,t,n):r}runCommonConverter(e,t,n){let r=CI[e.name];if(r===void 0)return;let i=r.exec(t);if(i!==null){if(i[1]!==void 0)return i[1].trim().replace(/[\t ]{2,}/gm,` `);if(i[2]!==void 0)return i[2].replace(/^\s*/gm,``).replace(/\s+$/gm,``).replace(/[\t ]{2,}/gm,` `).replace(/[\n\r]{2,}/gm,` +`)}}},TI=class extends wI{static{t(this,`CommonValueConverter`)}static{c(this,`CommonValueConverter`)}runCustomConverter(e,t,n){}},EI=class extends zj{static{t(this,`AbstractMermaidTokenBuilder`)}static{c(this,`AbstractMermaidTokenBuilder`)}constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,t,n){let r=super.buildKeywordTokens(e,t,n);return r.forEach(e=>{this.keywords.has(e.name)&&e.PATTERN!==void 0&&(e.PATTERN=RegExp(e.PATTERN.toString()+`(?:(?=%%)|(?!\\S))`))}),r}};(class extends EI{static{t(this,`CommonTokenBuilder`)}static{c(this,`CommonTokenBuilder`)}});var DI=class extends EI{static{t(this,`ArchitectureTokenBuilder`)}static{c(this,`ArchitectureTokenBuilder`)}constructor(){super([`architecture`])}},OI=class extends wI{static{t(this,`ArchitectureValueConverter`)}static{c(this,`ArchitectureValueConverter`)}runCustomConverter(e,t,n){if(e.name===`ARCH_ICON`)return t.replace(/[()]/g,``).trim();if(e.name===`ARCH_TEXT_ICON`)return t.replace(/["()]/g,``);if(e.name===`ARCH_TITLE`){let e=t.replace(/^\[|]$/g,``).trim();return(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,`"`).replace(/\\'/g,`'`)),e.trim()}}},kI={parser:{TokenBuilder:c(()=>new DI,`TokenBuilder`),ValueConverter:c(()=>new OI,`ValueConverter`)}};function AI(e=$N){let t=$(zN(e),fI),n=$(RN({shared:t}),pI,kI);return t.ServiceRegistry.register(n),{shared:t,Architecture:n}}t(AI,`createArchitectureServices`),c(AI,`createArchitectureServices`);var jI={},MI={info:c(async()=>{let{createInfoServices:t}=await e(async()=>{let{createInfoServices:e}=await import(`./info-J43DQDTF-ZY6QRYG4-Ceb7wdRV.js`);return{createInfoServices:e}},[]);jI.info=t().Info.parser.LangiumParser},`info`),packet:c(async()=>{let{createPacketServices:t}=await e(async()=>{let{createPacketServices:e}=await import(`./packet-YPE3B663-JK7CTFV3-BtD8gqfM.js`);return{createPacketServices:e}},[]);jI.packet=t().Packet.parser.LangiumParser},`packet`),pie:c(async()=>{let{createPieServices:t}=await e(async()=>{let{createPieServices:e}=await import(`./pie-LRSECV5Y-YQIUPWZK-CryW0pna.js`);return{createPieServices:e}},[]);jI.pie=t().Pie.parser.LangiumParser},`pie`),treeView:c(async()=>{let{createTreeViewServices:t}=await e(async()=>{let{createTreeViewServices:e}=await import(`./treeView-BLDUP644-Z5PZNN5R-Dueo7fH0.js`);return{createTreeViewServices:e}},[]);jI.treeView=t().TreeView.parser.LangiumParser},`treeView`),architecture:c(async()=>{let{createArchitectureServices:t}=await e(async()=>{let{createArchitectureServices:e}=await import(`./architecture-7EHR7CIX-OP562TCL-CNmektv-.js`);return{createArchitectureServices:e}},[]);jI.architecture=t().Architecture.parser.LangiumParser},`architecture`),gitGraph:c(async()=>{let{createGitGraphServices:t}=await e(async()=>{let{createGitGraphServices:e}=await import(`./gitGraph-WXDBUCRP-EUW4T63J-B-ZefmQS.js`);return{createGitGraphServices:e}},[]);jI.gitGraph=t().GitGraph.parser.LangiumParser},`gitGraph`),eventmodeling:c(async()=>{let{createEventModelingServices:t}=await e(async()=>{let{createEventModelingServices:e}=await import(`./eventmodeling-FCH6USID-KPOGAU7Q-L6Pqc7gi.js`);return{createEventModelingServices:e}},[]);jI.eventmodeling=t().EventModel.parser.LangiumParser},`eventmodeling`),radar:c(async()=>{let{createRadarServices:t}=await e(async()=>{let{createRadarServices:e}=await import(`./radar-GUYGQ44K-S4BGN5FN-x7QM25Od.js`);return{createRadarServices:e}},[]);jI.radar=t().Radar.parser.LangiumParser},`radar`),treemap:c(async()=>{let{createTreemapServices:t}=await e(async()=>{let{createTreemapServices:e}=await import(`./treemap-LRROVOQU-URWGPAEI-CrNZCdv7.js`);return{createTreemapServices:e}},[]);jI.treemap=t().Treemap.parser.LangiumParser},`treemap`),wardley:c(async()=>{let{createWardleyServices:t}=await e(async()=>{let{createWardleyServices:e}=await import(`./wardley-L42UT6IY-YAZPMKU5-eOQL-Mtm.js`);return{createWardleyServices:e}},[]);jI.wardley=t().Wardley.parser.LangiumParser},`wardley`)};async function NI(e,t){let n=MI[e];if(!n)throw Error(`Unknown diagram type: ${e}`);jI[e]||await n();let r=jI[e].parse(t);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new PI(r);return r.value}t(NI,`parse`),c(NI,`parse`);var PI=class extends Error{static{t(this,`MermaidParseError`)}constructor(e){let t=e.lexerErrors.map(e=>`Lexer error on line ${e.line!==void 0&&!isNaN(e.line)?e.line:`?`}, column ${e.column!==void 0&&!isNaN(e.column)?e.column:`?`}: ${e.message}`).join(` +`),n=e.parserErrors.map(e=>`Parse error on line ${e.token.startLine!==void 0&&!isNaN(e.token.startLine)?e.token.startLine:`?`}, column ${e.token.startColumn!==void 0&&!isNaN(e.token.startColumn)?e.token.startColumn:`?`}: ${e.message}`).join(` +`);super(`Parsing failed: ${t} ${n}`),this.result=e}static{c(this,`MermaidParseError`)}},FI=class extends wI{static{t(this,`WardleyValueConverter`)}static{c(this,`WardleyValueConverter`)}runCustomConverter(e,t,n){switch(e.name.toUpperCase()){case`LINK_LABEL`:return t.substring(1).trim();default:return}}},II={parser:{ValueConverter:c(()=>new FI,`ValueConverter`)}};function LI(e=$N){let t=$(zN(e),fI),n=$(RN({shared:t}),SI,II);return t.ServiceRegistry.register(n),{shared:t,Wardley:n}}t(LI,`createWardleyServices`),c(LI,`createWardleyServices`);var RI=class extends EI{static{t(this,`PacketTokenBuilder`)}static{c(this,`PacketTokenBuilder`)}constructor(){super([`packet`])}},zI={parser:{TokenBuilder:c(()=>new RI,`TokenBuilder`),ValueConverter:c(()=>new TI,`ValueConverter`)}};function BI(e=$N){let t=$(zN(e),fI),n=$(RN({shared:t}),_I,zI);return t.ServiceRegistry.register(n),{shared:t,Packet:n}}t(BI,`createPacketServices`),c(BI,`createPacketServices`);var VI=class extends EI{static{t(this,`PieTokenBuilder`)}static{c(this,`PieTokenBuilder`)}constructor(){super([`pie`,`showData`])}},HI=class extends wI{static{t(this,`PieValueConverter`)}static{c(this,`PieValueConverter`)}runCustomConverter(e,t,n){if(e.name===`PIE_SECTION_LABEL`)return t.replace(/"/g,``).trim()}},UI={parser:{TokenBuilder:c(()=>new VI,`TokenBuilder`),ValueConverter:c(()=>new HI,`ValueConverter`)}};function WI(e=$N){let t=$(zN(e),fI),n=$(RN({shared:t}),vI,UI);return t.ServiceRegistry.register(n),{shared:t,Pie:n}}t(WI,`createPieServices`),c(WI,`createPieServices`);var GI=class extends wI{static{t(this,`TreeViewValueConverter`)}static{c(this,`TreeViewValueConverter`)}runCustomConverter(e,t,n){if(e.name===`INDENTATION`)return t?.length||0;if(e.name===`STRING2`)return t.substring(1,t.length-1)}},KI=class extends EI{static{t(this,`TreeViewTokenBuilder`)}static{c(this,`TreeViewTokenBuilder`)}constructor(){super([`treeView-beta`])}},qI={parser:{TokenBuilder:c(()=>new KI,`TokenBuilder`),ValueConverter:c(()=>new GI,`ValueConverter`)}};function JI(e=$N){let t=$(zN(e),fI),n=$(RN({shared:t}),xI,qI);return t.ServiceRegistry.register(n),{shared:t,TreeView:n}}t(JI,`createTreeViewServices`),c(JI,`createTreeViewServices`);var YI=class extends EI{static{t(this,`GitGraphTokenBuilder`)}static{c(this,`GitGraphTokenBuilder`)}constructor(){super([`gitGraph`])}},XI={parser:{TokenBuilder:c(()=>new YI,`TokenBuilder`),ValueConverter:c(()=>new TI,`ValueConverter`)}};function ZI(e=$N){let t=$(zN(e),fI),n=$(RN({shared:t}),hI,XI);return t.ServiceRegistry.register(n),{shared:t,GitGraph:n}}t(ZI,`createGitGraphServices`),c(ZI,`createGitGraphServices`);var QI=class extends EI{static{t(this,`EventModelingTokenBuilder`)}static{c(this,`EventModelingTokenBuilder`)}constructor(){super([`eventmodeling`])}},$I=new Set([`cmd`,`command`]),eL=new Set([`evt`,`event`]),tL=new Set([`rmo`,`readmodel`]),nL=new Set([`pcr`,`processor`]),rL=new Set([`ui`]);function iL(e){let t=e.validation.EventModelingValidator,n=e.validation.ValidationRegistry;if(n){let e={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};n.register(e,t)}}t(iL,`registerValidationChecks`),c(iL,`registerValidationChecks`);var aL=class{static{t(this,`EventModelingValidator`)}static{c(this,`EventModelingValidator`)}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&($I.has(e.modelEntityType)?this.validateSources(e,new Set([...rL,...nL]),`command`,`ui or processor`,t):eL.has(e.modelEntityType)?this.validateSources(e,$I,`event`,`command`,t):tL.has(e.modelEntityType)?this.validateSources(e,eL,`read model`,`event`,t):nL.has(e.modelEntityType)?this.validateSources(e,tL,`processor`,`read model`,t):rL.has(e.modelEntityType)&&this.validateSources(e,tL,`ui`,`read model`,t))}validateSources(e,t,n,r,i){for(let a of e.sourceFrames){let o=a.ref;o!==void 0&&!t.has(o.modelEntityType)&&i(`error`,`A ${n} can only receive input from a ${r}, not from '${o.modelEntityType}'.`,{node:e,property:`sourceFrames`})}}},oL={parser:{TokenBuilder:c(()=>new QI,`TokenBuilder`),ValueConverter:c(()=>new TI,`ValueConverter`)},validation:{EventModelingValidator:c(()=>new aL,`EventModelingValidator`)}};function sL(e=$N){let t=$(zN(e),fI),n=$(RN({shared:t}),mI,oL);return t.ServiceRegistry.register(n),iL(n),{shared:t,EventModel:n}}t(sL,`createEventModelingServices`),c(sL,`createEventModelingServices`);var cL=class extends EI{static{t(this,`RadarTokenBuilder`)}static{c(this,`RadarTokenBuilder`)}constructor(){super([`radar-beta`])}},lL={parser:{TokenBuilder:c(()=>new cL,`TokenBuilder`),ValueConverter:c(()=>new TI,`ValueConverter`)}};function uL(e=$N){let t=$(zN(e),fI),n=$(RN({shared:t}),yI,lL);return t.ServiceRegistry.register(n),{shared:t,Radar:n}}t(uL,`createRadarServices`),c(uL,`createRadarServices`);var dL=class extends EI{static{t(this,`TreemapTokenBuilder`)}static{c(this,`TreemapTokenBuilder`)}constructor(){super([`treemap`])}},fL=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,pL=class extends wI{static{t(this,`TreemapValueConverter`)}static{c(this,`TreemapValueConverter`)}runCustomConverter(e,t,n){if(e.name===`NUMBER2`)return parseFloat(t.replace(/,/g,``));if(e.name===`SEPARATOR`||e.name===`STRING2`)return t.substring(1,t.length-1);if(e.name===`INDENTATION`)return t.length;if(e.name===`ClassDef`){if(typeof t!=`string`)return t;let e=fL.exec(t);if(e)return{$type:`ClassDefStatement`,className:e[1],styleText:e[2]||void 0}}}};function mL(e){let t=e.validation.TreemapValidator,n=e.validation.ValidationRegistry;if(n){let e={Treemap:t.checkSingleRoot.bind(t)};n.register(e,t)}}t(mL,`registerValidationChecks`),c(mL,`registerValidationChecks`);var hL=class{static{t(this,`TreemapValidator`)}static{c(this,`TreemapValidator`)}checkSingleRoot(e,t){let n;for(let r of e.TreemapRows)r.item&&(n===void 0&&r.indent===void 0?n=0:(r.indent===void 0||n!==void 0&&n>=parseInt(r.indent,10))&&t(`error`,`Multiple root nodes are not allowed in a treemap.`,{node:r,property:`item`}))}},gL={parser:{TokenBuilder:c(()=>new dL,`TokenBuilder`),ValueConverter:c(()=>new pL,`ValueConverter`)},validation:{TreemapValidator:c(()=>new hL,`TreemapValidator`)}};function _L(e=$N){let t=$(zN(e),fI),n=$(RN({shared:t}),bI,gL);return t.ServiceRegistry.register(n),mL(n),{shared:t,Treemap:n}}t(_L,`createTreemapServices`),c(_L,`createTreemapServices`);var vL=class extends EI{static{t(this,`InfoTokenBuilder`)}static{c(this,`InfoTokenBuilder`)}constructor(){super([`info`,`showInfo`])}},yL={parser:{TokenBuilder:c(()=>new vL,`TokenBuilder`),ValueConverter:c(()=>new TI,`ValueConverter`)}};function bL(e=$N){let t=$(zN(e),fI),n=$(RN({shared:t}),gI,yL);return t.ServiceRegistry.register(n),{shared:t,Info:n}}t(bL,`createInfoServices`),c(bL,`createInfoServices`);export{GP as S,II as _,lL as a,kI as b,sL as c,qI as d,JI as f,BI as g,zI as h,_L as i,XI as l,WI as m,bL as n,uL as o,UI as p,gL as r,oL as s,yL as t,ZI as u,LI as v,AI as x,NI as y}; \ No newline at end of file diff --git a/docs/dist/assets/chunk-BSZA5ISF-LqNHBHyp.js b/docs/dist/assets/chunk-BSZA5ISF-LqNHBHyp.js new file mode 100644 index 00000000..d6939641 --- /dev/null +++ b/docs/dist/assets/chunk-BSZA5ISF-LqNHBHyp.js @@ -0,0 +1,2 @@ +import{i as e,r as t}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{A as n,B as r,C as i,I as a,R as o,T as s,_ as c,c as l,d as u,f as d,g as ee,h as te,j as ne,k as re,l as ie,m as ae,o as oe,p as se,s as ce,u as le,w as ue,z as de}from"./chunk-V7P66DNM-D246Sefn.js";import{W as fe,_ as f,c as p,h as pe,r as me}from"./chunk-Q52JI7PB-BeSPinqD.js";import{t as he}from"./chunk-7TFACZ55-BO7C1qvL.js";var ge=e(he(),1);function _e(e){return Number.isSafeInteger(e)&&e>=0}t(_e,`isLength`);function m(e){return e!=null&&typeof e!=`function`&&_e(e.length)}t(m,`isArrayLike`);function ve(e){return e===`__proto__`}t(ve,`isUnsafeProperty`);function h(e){return e==null||typeof e!=`object`&&typeof e!=`function`}t(h,`isPrimitive`);function g(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}t(g,`getSymbols`);function _(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}t(_,`getTag`);var v=`[object RegExp]`,y=`[object String]`,b=`[object Number]`,x=`[object Boolean]`,S=`[object Arguments]`,C=`[object Symbol]`,w=`[object Date]`,T=`[object Map]`,E=`[object Set]`,ye=`[object Array]`,D=`[object ArrayBuffer]`,O=`[object Object]`,k=`[object DataView]`,be=`[object Uint8Array]`,xe=`[object Uint8ClampedArray]`,Se=`[object Uint16Array]`,Ce=`[object Uint32Array]`,A=`[object Int8Array]`,j=`[object Int16Array]`,we=`[object Int32Array]`,Te=`[object Float32Array]`,Ee=`[object Float64Array]`;function M(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}t(M,`isTypedArray`);function De(e,t){return N(e,void 0,e,new Map,t)}t(De,`cloneDeepWith`);function N(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(h(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(_(e)===O&&typeof e.constructor!=`function`){let t={};return a.set(e,t),P(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case b:case y:case x:{let t=new e.constructor(e?.valueOf());return P(t,e),t}case S:{let t={};return P(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}t(ke,`cloneDeepWith`);function F(e){return ke(e)}t(F,`cloneDeep`);function I(e){return typeof e==`object`&&!!e&&_(e)===`[object Arguments]`}t(I,`isArguments`);function L(e){return typeof e==`object`&&!!e}t(L,`isObjectLike`);function Ae(e){return L(e)&&m(e)}t(Ae,`isArrayLikeObject`);function je(e){return Array.isArray(e)}t(je,`isArray`);function R(e,n){if(typeof e!=`function`||n!=null&&typeof n!=`function`)throw TypeError(`Expected a function`);let r=t(function(...t){let i=n?n.apply(this,t):t[0],a=r.cache;if(a.has(i))return a.get(i);let o=e.apply(this,t);return r.cache=a.set(i,o)||a,o},`memoized`);return r.cache=new(R.Cache||Map),r}t(R,`memoize`),R.Cache=Map;function Me(){}t(Me,`noop`);function Ne(e){let t=e?.constructor;return e===(typeof t==`function`?t.prototype:Object.prototype)}t(Ne,`isPrototype`);function z(e){return M(e)}t(z,`isTypedArray`);function Pe(e){if(h(e))return e;let t=_(e);if(!Fe(e))return{};if(je(e)){let t=Array.from(e);return e.length>0&&typeof e[0]==`string`&&Object.hasOwn(e,`index`)&&(t.index=e.index,t.input=e.input),t}if(z(e)){let t=e,n=t.constructor;return new n(t.buffer,t.byteOffset,t.length)}if(t===D)return new ArrayBuffer(e.byteLength);if(t===k){let t=e,n=t.buffer,r=t.byteOffset,i=t.byteLength,a=new ArrayBuffer(i),o=new Uint8Array(n,r,i);return new Uint8Array(a).set(o),new DataView(a)}if(t===x||t===b||t===y){let n=e.constructor,r=new n(e.valueOf());return t===y?Le(r,e):B(r,e),r}if(t===w)return new Date(Number(e));if(t===v){let t=e,n=new RegExp(t.source,t.flags);return n.lastIndex=t.lastIndex,n}if(t===C)return Object(Symbol.prototype.valueOf.call(e));if(t===T){let t=e,n=new Map;return t.forEach((e,t)=>{n.set(t,e)}),n}if(t===E){let t=e,n=new Set;return t.forEach(e=>{n.add(e)}),n}if(t===S){let t=e,n={};return B(n,t),n.length=t.length,n[Symbol.iterator]=t[Symbol.iterator],n}let n={};return Re(n,e),B(n,e),Ie(n,e),n}t(Pe,`clone`);function Fe(e){switch(_(e)){case S:case ye:case D:case k:case x:case w:case Te:case Ee:case A:case j:case we:case T:case b:case O:case v:case E:case y:case C:case be:case xe:case Se:case Ce:return!0;default:return!1}}t(Fe,`isCloneableObject`);function B(e,t){for(let n in t)Object.hasOwn(t,n)&&(e[n]=t[n])}t(B,`copyOwnProperties`);function Ie(e,t){let n=Object.getOwnPropertySymbols(t);for(let r=0;r=n)&&(e[r]=t[r])}t(Le,`cloneStringObjectProperties`);function Re(e,t){let n=Object.getPrototypeOf(t);n!==null&&typeof t.constructor==`function`&&Object.setPrototypeOf(e,n)}t(Re,`copyPrototype`);function V(e){if(typeof e!=`object`||!e)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!==`[object Object]`){let t=e[Symbol.toStringTag];return t==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${t}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}t(V,`isPlainObject`);function ze(e){if(h(e))return e;if(Array.isArray(e)||M(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause}),t.stack=e.stack,Object.assign(t,e),t}return typeof File<`u`&&e instanceof File?new n([e],e.name,{type:e.type,lastModified:e.lastModified}):typeof e==`object`?Object.assign(Object.create(t),e):e}t(ze,`clone`);function Be(e,...t){let n=t.slice(0,-1),r=t[t.length-1],i=e;for(let e=0;e`u`||!Buffer.isBuffer(e))&&!z(e)&&!I(e)?!1:e.length===0;if(typeof e==`object`){if(e instanceof Map||e instanceof Set)return e.size===0;let t=Object.keys(e);return Ne(e)?t.filter(e=>e!==`constructor`).length===0:t.length===0}return!0}t(He,`isEmpty`);var Ue={curveBasis:l,curveBasisClosed:oe,curveBasisOpen:ce,curveBumpX:ie,curveBumpY:le,curveBundle:u,curveCardinalClosed:d,curveCardinalOpen:se,curveCardinal:ae,curveCatmullRomClosed:te,curveCatmullRomOpen:ee,curveCatmullRom:c,curveLinear:ue,curveLinearClosed:i,curveMonotoneX:re,curveMonotoneY:n,curveNatural:ne,curveStep:r,curveStepAfter:o,curveStepBefore:de},We=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Ge=t(function(e,t){let n=Ke(e,/(?:init\b)|(?:initialize\b)/),r={};if(Array.isArray(n)){let e=n.map(e=>e.args);fe(e),r=me(r,[...e])}else r=n.args;if(!r)return;let i=pe(e,t),a=`config`;return r[a]!==void 0&&(i===`flowchart-v2`&&(i=`flowchart`),r[i]=r[a],delete r[a]),r},`detectInit`),Ke=t(function(e,t=null){try{let n=RegExp(`[%]{2}(?![{]${We.source})(?=[}][%]{2}).* +`,`ig`);e=e.trim().replace(n,``).replace(/'/gm,`"`),s.debug(`Detecting diagram directive${t===null?``:` type:`+t} based on the text:${e}`);let r,i=[];for(;(r=f.exec(e))!==null;)if(r.index===f.lastIndex&&f.lastIndex++,r&&!t||t&&r[1]?.match(t)||t&&r[2]?.match(t)){let e=r[1]?r[1]:r[2],t=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;i.push({type:e,args:t})}return i.length===0?{type:e,args:null}:i.length===1?i[0]:i}catch(n){return s.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},`detectDirective`),qe=t(function(e){return e.replace(f,``)},`removeDirectives`),Je=t(function(e,t){for(let[n,r]of t.entries())if(r.match(e))return n;return-1},`isSubstringInArray`);function U(e,t){return e?Ue[`curve${e.charAt(0).toUpperCase()+e.slice(1)}`]??t:t}t(U,`interpolateToCurve`);function Ye(e,t){let n=e.trim();if(n)return t.securityLevel===`loose`?n:(0,ge.sanitizeUrl)(n)}t(Ye,`formatUrl`);var Xe=t((e,...t)=>{let n=e.split(`.`),r=n.length-1,i=n[r],a=window;for(let t=0;t{n+=W(e,t),t=e}),G(e,n/2)}t(Ze,`traverseEdge`);function Qe(e){return e.length===1?e[0]:Ze(e)}t(Qe,`calcLabelPosition`);var $e=t((e,t=2)=>{let n=10**t;return Math.round(e*n)/n},`roundNumber`),G=t((e,t)=>{let n,r=t;for(let t of e){if(n){let e=W(t,n);if(e===0)return n;if(e=1)return{x:t.x,y:t.y};if(i>0&&i<1)return{x:$e((1-i)*n.x+i*t.x,5),y:$e((1-i)*n.y+i*t.y,5)}}}n=t}throw Error(`Could not find a suitable point for the given distance`)},`calculatePoint`),et=t((e,t,n)=>{s.info(`our points ${JSON.stringify(t)}`),t[0]!==n&&(t=t.reverse());let r=G(t,25),i=e?10:5,a=Math.atan2(t[0].y-r.y,t[0].x-r.x),o={x:0,y:0};return o.x=Math.sin(a)*i+(t[0].x+r.x)/2,o.y=-Math.cos(a)*i+(t[0].y+r.y)/2,o},`calcCardinalityPosition`);function tt(e,t,n){let r=structuredClone(n);s.info(`our points`,r),t!==`start_left`&&t!==`start_right`&&r.reverse();let i=G(r,25+e),a=10+e*.5,o=Math.atan2(r[0].y-i.y,r[0].x-i.x),c={x:0,y:0};return t===`start_left`?(c.x=Math.sin(o+Math.PI)*a+(r[0].x+i.x)/2,c.y=-Math.cos(o+Math.PI)*a+(r[0].y+i.y)/2):t===`end_right`?(c.x=Math.sin(o-Math.PI)*a+(r[0].x+i.x)/2-5,c.y=-Math.cos(o-Math.PI)*a+(r[0].y+i.y)/2-5):t===`end_left`?(c.x=Math.sin(o)*a+(r[0].x+i.x)/2-5,c.y=-Math.cos(o)*a+(r[0].y+i.y)/2-5):(c.x=Math.sin(o)*a+(r[0].x+i.x)/2,c.y=-Math.cos(o)*a+(r[0].y+i.y)/2),c}t(tt,`calcTerminalLabelPosition`);function K(e){let t=``,n=``;for(let r of e)r!==void 0&&(r.startsWith(`color:`)||r.startsWith(`text-align:`)?n=n+r+`;`:t=t+r+`;`);return{style:t,labelStyle:n}}t(K,`getStylesFromArray`);var nt=0,rt=t(()=>(nt++,`id-`+Math.random().toString(36).substr(2,12)+`-`+nt),`generateId`);function it(e){let t=``;for(let n=0;nit(e.length),`random`),ot=t(function(){return{x:0,y:0,fill:void 0,anchor:`start`,style:`#666`,width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:``}},`getTextObj`),st=t(function(e,t){let n=t.text.replace(p.lineBreakRegex,` `),[,r]=Q(t.fontSize),i=e.append(`text`);i.attr(`x`,t.x),i.attr(`y`,t.y),i.style(`text-anchor`,t.anchor),i.style(`font-family`,t.fontFamily),i.style(`font-size`,r),i.style(`font-weight`,t.fontWeight),i.attr(`fill`,t.fill),t.class!==void 0&&i.attr(`class`,t.class);let a=i.append(`tspan`);return a.attr(`x`,t.x+t.textMargin*2),a.attr(`fill`,t.fill),a.text(n),i},`drawSimpleText`),q=R((e,t,n)=>{if(!e||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,joinWith:`
`},n),p.lineBreakRegex.test(e)))return e;let r=e.split(` `).filter(Boolean),i=[],a=``;return r.forEach((e,o)=>{let s=Y(`${e} `,n),c=Y(a,n);if(s>t){let{hyphenatedStrings:r,remainingWord:o}=ct(e,t,`-`,n);i.push(a,...r),a=o}else c+s>=t?(i.push(a),a=e):a=[a,e].filter(Boolean).join(` `);o+1===r.length&&i.push(a)}),i.filter(e=>e!==``).join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),ct=R((e,t,n=`-`,r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,margin:0},r);let i=[...e],a=[],o=``;return i.forEach((e,s)=>{let c=`${o}${e}`;if(Y(c,r)>=t){let e=s+1,t=i.length===e,r=`${c}${n}`;a.push(t?c:r),o=``}else o=c}),{hyphenatedStrings:a,remainingWord:o}},(e,t,n=`-`,r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function J(e,t){return X(e,t).height}t(J,`calculateTextHeight`);function Y(e,t){return X(e,t).width}t(Y,`calculateTextWidth`);var X=R((e,t)=>{let{fontSize:n=12,fontFamily:r=`Arial`,fontWeight:i=400}=t;if(!e)return{width:0,height:0};let[,o]=Q(n),s=[`sans-serif`,r],c=e.split(p.lineBreakRegex),l=[],u=a(`body`);if(!u.remove)return{width:0,height:0,lineHeight:0};let d=u.append(`svg`);for(let e of s){let t=0,n={width:0,height:0,lineHeight:0};for(let r of c){let a=ot();a.text=r||`​`;let s=st(d,a).style(`font-size`,o).style(`font-weight`,i).style(`font-family`,e),c=(s._groups||s)[0][0].getBBox();if(c.width===0&&c.height===0)throw Error(`svg element not in render tree`);n.width=Math.round(Math.max(n.width,c.width)),t=Math.round(c.height),n.height+=t,n.lineHeight=Math.round(Math.max(n.lineHeight,t))}l.push(n)}return d.remove(),l[isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),lt=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{t(this,`InitIDGenerator`)}},Z,ut=t(function(e){return Z||=document.createElement(`div`),e=escape(e).replace(/%26/g,`&`).replace(/%23/g,`#`).replace(/%3B/g,`;`),Z.innerHTML=e,unescape(Z.textContent)},`entityDecode`);function dt(e){return`str`in e}t(dt,`isDetailedError`);var ft=t((e,t,n,r)=>{if(!r)return;let i=e.node()?.getBBox();i&&e.append(`text`).text(r).attr(`text-anchor`,`middle`).attr(`x`,i.x+i.width/2).attr(`y`,-n).attr(`class`,t)},`insertTitle`),Q=t(e=>{if(typeof e==`number`)return[e,e+`px`];let t=parseInt(e??``,10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+`px`]:[t,e]},`parseFontSize`);function $(e,t){return Ve({},e,t)}t($,`cleanAndMerge`);var pt={assignWithDepth:me,wrapLabel:q,calculateTextHeight:J,calculateTextWidth:Y,calculateTextDimensions:X,cleanAndMerge:$,detectInit:Ge,detectDirective:Ke,isSubstringInArray:Je,interpolateToCurve:U,calcLabelPosition:Qe,calcCardinalityPosition:et,calcTerminalLabelPosition:tt,formatUrl:Ye,getStylesFromArray:K,generateId:rt,random:at,runFunc:Xe,entityDecode:ut,insertTitle:ft,isLabelCoordinateInPath:vt,parseFontSize:Q,InitIDGenerator:lt},mt=t(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/#\w+;/g,function(e){let t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?`fl°°`+t+`¶ß`:`fl°`+t+`¶ß`}),t},`encodeEntities`),ht=t(function(e){return e.replace(/fl°°/g,`&#`).replace(/fl°/g,`&`).replace(/¶ß/g,`;`)},`decodeEntities`),gt=t((e,t,{counter:n=0,prefix:r,suffix:i},a)=>a||`${r?`${r}_`:``}${e}_${t}_${n}${i?`_${i}`:``}`,`getEdgeId`);function _t(e){return e??null}t(_t,`handleUndefinedAttr`);function vt(e,t){let n=Math.round(e.x),r=Math.round(e.y),i=t.replace(/(\d+\.\d+)/g,e=>Math.round(parseFloat(e)).toString());return i.includes(n.toString())||i.includes(r.toString())}t(vt,`isLabelCoordinateInPath`);export{qe as _,Pe as a,rt as c,_t as d,U as f,at as g,Q as h,$ as i,gt as l,He as m,J as n,ht as o,dt as p,Y as r,mt as s,X as t,K as u,pt as v,q as y}; \ No newline at end of file diff --git a/docs/dist/assets/chunk-GTILCTU2-D-9HFTK6.js b/docs/dist/assets/chunk-GTILCTU2-D-9HFTK6.js new file mode 100644 index 00000000..2440fadf --- /dev/null +++ b/docs/dist/assets/chunk-GTILCTU2-D-9HFTK6.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{C as t}from"./chunk-Q52JI7PB-BeSPinqD.js";var n=e(e=>{let{handDrawnSeed:n}=t();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:n}},`solidStateFill`),r=e(e=>{let t=i([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},`compileStyles`),i=e(e=>{let t=new Map;return e.forEach(e=>{let[n,r]=e.split(`:`);t.set(n.trim(),r?.trim())}),t},`styles2Map`),a=e(e=>e===`color`||e===`font-size`||e===`font-family`||e===`font-weight`||e===`font-style`||e===`text-decoration`||e===`text-align`||e===`text-transform`||e===`line-height`||e===`letter-spacing`||e===`word-spacing`||e===`text-shadow`||e===`text-overflow`||e===`white-space`||e===`word-wrap`||e===`word-break`||e===`overflow-wrap`||e===`hyphens`,`isLabelStyle`),o=e(e=>{let{stylesArray:t}=r(e),n=[],i=[],o=[],s=[];return t.forEach(e=>{let t=e[0];a(t)?n.push(e.join(`:`)+` !important`):(i.push(e.join(`:`)+` !important`),t.includes(`stroke`)&&o.push(e.join(`:`)+` !important`),t===`fill`&&s.push(e.join(`:`)+` !important`))}),{labelStyles:n.join(`;`),nodeStyles:i.join(`;`),stylesArray:t,borderStyles:o,backgroundStyles:s}},`styles2String`),s=e((e,n)=>{let{themeVariables:i,handDrawnSeed:a}=t(),{nodeBorder:o,mainBkg:s}=i,{stylesMap:l}=r(e);return Object.assign({roughness:.7,fill:l.get(`fill`)||s,fillStyle:`hachure`,fillWeight:4,hachureGap:5.2,stroke:l.get(`stroke`)||o,seed:a,strokeWidth:l.get(`stroke-width`)?.replace(`px`,``)||1.3,fillLineDash:[0,0],strokeLineDash:c(l.get(`stroke-dasharray`))},n)},`userNodeOverrides`),c=e(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(t.length===1){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},`getStrokeDashArray`);export{s as a,o as i,a as n,n as r,r as t}; \ No newline at end of file diff --git a/docs/dist/assets/chunk-HQMLCRZ6-HgqAiHMi.js b/docs/dist/assets/chunk-HQMLCRZ6-HgqAiHMi.js new file mode 100644 index 00000000..3f1d5af8 --- /dev/null +++ b/docs/dist/assets/chunk-HQMLCRZ6-HgqAiHMi.js @@ -0,0 +1,62 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{I as t,T as n}from"./chunk-V7P66DNM-D246Sefn.js";import{C as r,D as i,G as a,I as o,K as s,M as c,S as l,v as u}from"./chunk-Q52JI7PB-BeSPinqD.js";import{t as d}from"./chunk-PLCLPJVV-rGjVDjLw.js";import{a as f,i as p,r as m,t as h}from"./chunk-GTILCTU2-D-9HFTK6.js";import{d as g,o as _,r as v}from"./chunk-BSZA5ISF-LqNHBHyp.js";import{n as y,t as b}from"./chunk-SZ5Y56Q4-Bki2Aicm.js";import{i as x,n as S}from"./chunk-YSJUE5HW-eH4JtoEG.js";var C=e(async(e,n,i)=>{let o,s=n.useHtmlLabels||u(r()?.htmlLabels);o=i||`node default`;let c=e.insert(`g`).attr(`class`,o).attr(`id`,n.domId||n.id),l=c.insert(`g`).attr(`class`,`label`).attr(`style`,g(n.labelStyle)),d;d=n.label===void 0?``:typeof n.label==`string`?n.label:n.label[0];let f=!!n.icon||!!n.img,p=n.labelType===`markdown`,m=await S(l,a(_(d),r()),{useHtmlLabels:s,width:n.width||r().flowchart?.wrappingWidth,classes:p?`markdown-node-label`:``,style:n.labelStyle,addSvgBackground:f,markdown:p},r()),h=m.getBBox(),v=(n?.padding??0)/2;if(s){let e=m.children[0],n=t(m);await b(e,d),h=e.getBoundingClientRect(),n.attr(`width`,h.width),n.attr(`height`,h.height)}return s?l.attr(`transform`,`translate(`+-h.width/2+`, `+-h.height/2+`)`):l.attr(`transform`,`translate(0, `+-h.height/2+`)`),n.centerLabel&&l.attr(`transform`,`translate(`+-h.width/2+`, `+-h.height/2+`)`),l.insert(`rect`,`:first-child`),{shapeSvg:c,bbox:h,halfPadding:v,label:l}},`labelHelper`),w=e(async(e,n,o)=>{let s=o.useHtmlLabels??i(r()),c=e.insert(`g`).attr(`class`,`label`).attr(`style`,o.labelStyle||``),l=await S(c,a(_(n),r()),{useHtmlLabels:s,width:o.width||r()?.flowchart?.wrappingWidth,style:o.labelStyle,addSvgBackground:!!o.icon||!!o.img}),u=l.getBBox(),d=o.padding/2;if(i(r())){let e=l.children[0],n=t(l);u=e.getBoundingClientRect(),n.attr(`width`,u.width),n.attr(`height`,u.height)}return s?c.attr(`transform`,`translate(`+-u.width/2+`, `+-u.height/2+`)`):c.attr(`transform`,`translate(0, `+-u.height/2+`)`),o.centerLabel&&c.attr(`transform`,`translate(`+-u.width/2+`, `+-u.height/2+`)`),c.insert(`rect`,`:first-child`),{shapeSvg:e,bbox:u,halfPadding:d,label:c}},`insertLabel`),T=e((e,t)=>{let n=t.node().getBBox();e.width=n.width,e.height=n.height},`updateNodeBounds`),E=e((e,t)=>(e.look===`handDrawn`?`rough-node`:`node`)+` `+e.cssClasses+` `+(t||``),`getNodeClasses`);function D(e){let t=e.map((e,t)=>`${t===0?`M`:`L`}${e.x},${e.y}`);return t.push(`Z`),t.join(` `)}e(D,`createPathFromPoints`);function O(e,t,n,r,i,a){let o=[],s=n-e,c=r-t,l=s/a,u=2*Math.PI/l,d=t+c/2;for(let t=0;t<=50;t++){let n=e+t/50*s,r=d+i*Math.sin(u*(n-e));o.push({x:n,y:r})}return o}e(O,`generateFullSineWavePoints`);function k(e,t,n,r,i,a){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;ie.tagName===`path`),r=document.createElementNS(`http://www.w3.org/2000/svg`,`path`),i=n.map(e=>e.getAttribute(`d`)).filter(e=>e!==null).join(` `);r.setAttribute(`d`,i);let a=n.find(e=>e.getAttribute(`fill`)!==`none`),o=n.find(e=>e.getAttribute(`stroke`)!==`none`),s=e((e,t)=>e?.getAttribute(t)??void 0,`getAttr`);if(a){let e={fill:s(a,`fill`),"fill-opacity":s(a,`fill-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&r.setAttribute(e,t)})}if(o){let e={stroke:s(o,`stroke`),"stroke-width":s(o,`stroke-width`)??`1`,"stroke-opacity":s(o,`stroke-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&r.setAttribute(e,t)})}let c=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);return c.appendChild(r),c}e(A,`mergePaths`);var j=e((e,t)=>{var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2,c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=a===0?0:s*i/a,l=s):(i<0&&(o=-o),c=o,l=i===0?0:o*a/i),{x:n+c,y:r+l}},`intersectRect`),M=e(async(e,t,n,a=!1,o=!1)=>{let s=t||``;typeof s==`object`&&(s=s[0]);let c=r(),l=i(c);return await S(e,s,{style:n,isTitle:a,useHtmlLabels:l,markdown:!1,isNode:o,width:1/0},c)},`createLabel`),N=e((e,t,n,r,i)=>[`M`,e+i,t,`H`,e+n-i,`A`,i,i,0,0,1,e+n,t+i,`V`,t+r-i,`A`,i,i,0,0,1,e+n-i,t+r,`H`,e+i,`A`,i,i,0,0,1,e,t+r-i,`V`,t+i,`A`,i,i,0,0,1,e+i,t,`Z`].join(` `),`createRoundedRectPathD`),P=e(async(e,a)=>{n.info(`Creating subgraph rect for `,a.id,a);let o=r(),{themeVariables:s,handDrawnSeed:c}=o,{clusterBkg:l,clusterBorder:u}=s,{labelStyles:m,nodeStyles:h,borderStyles:g,backgroundStyles:_}=p(a),v=e.insert(`g`).attr(`class`,`cluster `+a.cssClasses).attr(`id`,a.domId).attr(`data-look`,a.look),b=i(o),x=v.insert(`g`).attr(`class`,`cluster-label `),C;C=a.labelType===`markdown`?await S(x,a.label,{style:a.labelStyle,useHtmlLabels:b,isNode:!0,width:a.width}):await M(x,a.label,a.labelStyle||``,!1,!0);let w=C.getBBox();if(i(o)){let e=C.children[0],n=t(C);w=e.getBoundingClientRect(),n.attr(`width`,w.width),n.attr(`height`,w.height)}let T=a.width<=w.width+a.padding?w.width+a.padding:a.width;a.width<=w.width+a.padding?a.diff=(T-a.width)/2-a.padding:a.diff=-a.padding;let E=a.height,D=a.x-T/2,O=a.y-E/2;n.trace(`Data `,a,JSON.stringify(a));let k;if(a.look===`handDrawn`){let e=d.svg(v),t=f(a,{roughness:.7,fill:l,stroke:u,fillWeight:3,seed:c}),r=e.path(N(D,O,T,E,0),t);k=v.insert(()=>(n.debug(`Rough node insert CXC`,r),r),`:first-child`),k.select(`path:nth-child(2)`).attr(`style`,g.join(`;`)),k.select(`path`).attr(`style`,_.join(`;`).replace(`fill`,`stroke`))}else k=v.insert(`rect`,`:first-child`),k.attr(`style`,h).attr(`rx`,a.rx).attr(`ry`,a.ry).attr(`x`,D).attr(`y`,O).attr(`width`,T).attr(`height`,E);let{subGraphTitleTopMargin:A}=y(o);if(x.attr(`transform`,`translate(${a.x-w.width/2}, ${a.y-a.height/2+A})`),m){let e=x.select(`span`);e&&e.attr(`style`,m)}let P=k.node().getBBox();return a.offsetX=0,a.width=P.width,a.height=P.height,a.offsetY=w.height-a.padding/2,a.intersect=function(e){return j(a,e)},{cluster:v,labelBBox:w}},`rect`),F={rect:P,squareRect:P,roundedWithTitle:e(async(e,n)=>{let a=r(),{themeVariables:o,handDrawnSeed:s}=a,{altBackground:c,compositeBackground:l,compositeTitleBackground:u,nodeBorder:f}=o,p=e.insert(`g`).attr(`class`,n.cssClasses).attr(`id`,n.domId).attr(`data-id`,n.id).attr(`data-look`,n.look),m=p.insert(`g`,`:first-child`),h=p.insert(`g`).attr(`class`,`cluster-label`),g=p.append(`rect`),_=await M(h,n.label,n.labelStyle,void 0,!0),v=_.getBBox();if(i(a)){let e=_.children[0],n=t(_);v=e.getBoundingClientRect(),n.attr(`width`,v.width),n.attr(`height`,v.height)}let y=0*n.padding,b=y/2,x=(n.width<=v.width+n.padding?v.width+n.padding:n.width)+y;n.width<=v.width+n.padding?n.diff=(x-n.width)/2-n.padding:n.diff=-n.padding;let S=n.height+y,C=n.height+y-v.height-6,w=n.x-x/2,T=n.y-S/2;n.width=x;let E=n.y-n.height/2-b+v.height+2,D;if(n.look===`handDrawn`){let e=n.cssClasses.includes(`statediagram-cluster-alt`),t=d.svg(p),r=n.rx||n.ry?t.path(N(w,T,x,S,10),{roughness:.7,fill:u,fillStyle:`solid`,stroke:f,seed:s}):t.rectangle(w,T,x,S,{seed:s});D=p.insert(()=>r,`:first-child`);let i=t.rectangle(w,E,x,C,{fill:e?c:l,fillStyle:e?`hachure`:`solid`,stroke:f,seed:s});D=p.insert(()=>r,`:first-child`),g=p.insert(()=>i)}else D=m.insert(`rect`,`:first-child`),D.attr(`class`,`outer`).attr(`x`,w).attr(`y`,T).attr(`width`,x).attr(`height`,S).attr(`data-look`,n.look),g.attr(`class`,`inner`).attr(`x`,w).attr(`y`,E).attr(`width`,x).attr(`height`,C);return h.attr(`transform`,`translate(${n.x-v.width/2}, ${T+1-(i(a)?0:3)})`),n.height=D.node().getBBox().height,n.offsetX=0,n.offsetY=v.height-n.padding/2,n.labelBBox=v,n.intersect=function(e){return j(n,e)},{cluster:p,labelBBox:v}},`roundedWithTitle`),noteGroup:e((e,t)=>{let n=e.insert(`g`).attr(`class`,`note-cluster`).attr(`id`,t.domId),r=n.insert(`rect`,`:first-child`),i=0*t.padding,a=i/2;r.attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,t.x-t.width/2-a).attr(`y`,t.y-t.height/2-a).attr(`width`,t.width+i).attr(`height`,t.height+i).attr(`fill`,`none`);let o=r.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(e){return j(t,e)},{cluster:n,labelBBox:{width:0,height:0}}},`noteGroup`),divider:e((e,t)=>{let{themeVariables:n,handDrawnSeed:i}=r(),{nodeBorder:a}=n,o=e.insert(`g`).attr(`class`,t.cssClasses).attr(`id`,t.domId).attr(`data-look`,t.look),s=o.insert(`g`,`:first-child`),c=0*t.padding,l=t.width+c;t.diff=-t.padding;let u=t.height+c,f=t.x-l/2,p=t.y-u/2;t.width=l;let m;if(t.look===`handDrawn`){let e=d.svg(o).rectangle(f,p,l,u,{fill:`lightgrey`,roughness:.5,strokeLineDash:[5],stroke:a,seed:i});m=o.insert(()=>e,`:first-child`)}else{m=s.insert(`rect`,`:first-child`);let e=`outer`;e=(t.look,`divider`),m.attr(`class`,e).attr(`x`,f).attr(`y`,p).attr(`width`,l).attr(`height`,u).attr(`data-look`,t.look)}return t.height=m.node().getBBox().height,t.offsetX=0,t.offsetY=0,t.intersect=function(e){return j(t,e)},{cluster:o,labelBBox:{}}},`divider`),kanbanSection:e(async(e,a)=>{n.info(`Creating subgraph rect for `,a.id,a);let o=r(),{themeVariables:s,handDrawnSeed:c}=o,{clusterBkg:l,clusterBorder:u}=s,{labelStyles:m,nodeStyles:h,borderStyles:g,backgroundStyles:_}=p(a),v=e.insert(`g`).attr(`class`,`cluster `+a.cssClasses).attr(`id`,a.domId).attr(`data-look`,a.look),b=i(o),x=v.insert(`g`).attr(`class`,`cluster-label `),C=await S(x,a.label,{style:a.labelStyle,useHtmlLabels:b,isNode:!0,width:a.width}),w=C.getBBox();if(i(o)){let e=C.children[0],n=t(C);w=e.getBoundingClientRect(),n.attr(`width`,w.width),n.attr(`height`,w.height)}let T=a.width<=w.width+a.padding?w.width+a.padding:a.width;a.width<=w.width+a.padding?a.diff=(T-a.width)/2-a.padding:a.diff=-a.padding;let E=a.height,D=a.x-T/2,O=a.y-E/2;n.trace(`Data `,a,JSON.stringify(a));let k;if(a.look===`handDrawn`){let e=d.svg(v),t=f(a,{roughness:.7,fill:l,stroke:u,fillWeight:4,seed:c}),r=e.path(N(D,O,T,E,a.rx),t);k=v.insert(()=>(n.debug(`Rough node insert CXC`,r),r),`:first-child`),k.select(`path:nth-child(2)`).attr(`style`,g.join(`;`)),k.select(`path`).attr(`style`,_.join(`;`).replace(`fill`,`stroke`))}else k=v.insert(`rect`,`:first-child`),k.attr(`style`,h).attr(`rx`,a.rx).attr(`ry`,a.ry).attr(`x`,D).attr(`y`,O).attr(`width`,T).attr(`height`,E);let{subGraphTitleTopMargin:A}=y(o);if(x.attr(`transform`,`translate(${a.x-w.width/2}, ${a.y-a.height/2+A})`),m){let e=x.select(`span`);e&&e.attr(`style`,m)}let M=k.node().getBBox();return a.offsetX=0,a.width=M.width,a.height=M.height,a.offsetY=w.height-a.padding/2,a.intersect=function(e){return j(a,e)},{cluster:v,labelBBox:w}},`kanbanSection`)},I=new Map,ee=e(async(e,t)=>{let n=await F[t.shape||`rect`](e,t);return I.set(t.id,n),n},`insertCluster`),te=e(()=>{I=new Map},`clear`);function L(e,t){return e.intersect(t)}e(L,`intersectNode`);var R=L;function ne(e,t,n,r){var i=e.x,a=e.y,o=i-r.x,s=a-r.y,c=Math.sqrt(t*t*s*s+n*n*o*o),l=Math.abs(t*n*o/c);r.x0}e(re,`sameSign`);var ie=H;function U(e,t,n){let r=e.x,i=e.y,a=[],o=1/0,s=1/0;typeof t.forEach==`function`?t.forEach(function(e){o=Math.min(o,e.x),s=Math.min(s,e.y)}):(o=Math.min(o,t.x),s=Math.min(s,t.y));let c=r-e.width/2-o,l=i-e.height/2-s;for(let r=0;r1&&a.sort(function(e,t){let r=e.x-n.x,i=e.y-n.y,a=Math.sqrt(r*r+i*i),o=t.x-n.x,s=t.y-n.y,c=Math.sqrt(o*o+s*s);return au,`:first-child`);return m.attr(`class`,`anchor`).attr(`style`,g(s)),T(t,m),t.intersect=function(e){return n.info(`Circle intersect`,t,1,e),W.circle(t,1,e)},o}e(G,`anchor`);function K(e,t,n,r,i,a,o){let s=(e+n)/2,c=(t+r)/2,l=Math.atan2(r-t,n-e),u=(n-e)/2,d=(r-t)/2,f=u/i,p=d/a,m=Math.sqrt(f**2+p**2);if(m>1)throw Error(`The given radii are too small to create an arc between the points.`);let h=Math.sqrt(1-m**2),g=s+h*a*Math.sin(l)*(o?-1:1),_=c-h*i*Math.cos(l)*(o?-1:1),v=Math.atan2((t-_)/a,(e-g)/i),y=Math.atan2((r-_)/a,(n-g)/i)-v;o&&y<0&&(y+=2*Math.PI),!o&&y>0&&(y-=2*Math.PI);let b=[];for(let e=0;e<20;e++){let t=v+e/19*y,n=g+i*Math.cos(t),r=_+a*Math.sin(t);b.push({x:n,y:r})}return b}e(K,`generateArcPoints`);function ae(e,t,n){let[r,i]=[t,n].sort((e,t)=>t-e);return i*(1-Math.sqrt(1-(e/r/2)**2))}e(ae,`calculateArcSagitta`);async function oe(t,n){let{labelStyles:r,nodeStyles:i}=p(n);n.labelStyle=r;let a=n.padding??0,o=n.look===`neo`?16:a,s=n.look===`neo`?12:a,c=e(e=>e+s,`calcTotalHeight`),l=e(e=>{let t=e/2;return[t/(2.5+e/50),t]},`calcEllipseRadius`),{shapeSvg:u,bbox:m}=await C(t,n,E(n)),h=c(n?.height?n?.height:m.height),[g,_]=l(h),v=ae(h,g,_),y=(n?.width?n?.width:m.width)+o*2+v-v,b=h,{cssStyles:x}=n,S=[{x:y/2,y:-b/2},{x:-y/2,y:-b/2},...K(-y/2,-b/2,-y/2,b/2,g,_,!1),{x:y/2,y:b/2},...K(y/2,b/2,y/2,-b/2,g,_,!0)],w=d.svg(u),O=f(n,{});n.look!==`handDrawn`&&(O.roughness=0,O.fillStyle=`solid`);let k=D(S),A=w.path(k,O),j=u.insert(()=>A,`:first-child`);return j.attr(`class`,`basic label-container outer-path`),x&&n.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,x),i&&n.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,i),j.attr(`transform`,`translate(${g/2}, 0)`),T(n,j),n.intersect=function(e){return W.polygon(n,S,e)},u}e(oe,`bowTieRect`);function q(e,t,n,r){return e.insert(`polygon`,`:first-child`).attr(`points`,r.map(function(e){return e.x+`,`+e.y}).join(` `)).attr(`class`,`label-container`).attr(`transform`,`translate(`+-t/2+`,`+n/2+`)`)}e(q,`insertPolygonShape`);var se=12;async function ce(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?28:i,o=t.look===`neo`?24:i,{shapeSvg:s,bbox:c}=await C(e,t,E(t)),l=(t?.width??c.width)+(t.look===`neo`?a*2:a+se),u=(t?.height??c.height)+(t.look===`neo`?o*2:o),m=l,h=-u,g=[{x:0+se,y:h},{x:m,y:h},{x:m,y:0},{x:0,y:0},{x:0,y:h+se},{x:0+se,y:h}],_,{cssStyles:v}=t;if(t.look===`handDrawn`){let e=d.svg(s),n=f(t,{}),r=D(g),i=e.path(r,n);_=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-l/2}, ${u/2})`),v&&_.attr(`style`,v)}else _=q(s,l,u,g);return r&&_.attr(`style`,r),T(t,_),t.intersect=function(e){return W.polygon(t,g,e)},s}e(ce,`card`);function le(e,t){let{nodeStyles:n}=p(t);t.label=``;let r=e.insert(`g`).attr(`class`,E(t)).attr(`id`,t.domId??t.id),{cssStyles:i}=t,a=Math.max(28,t.width??0),o=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],s=d.svg(r),c=f(t,{});t.look!==`handDrawn`&&(c.roughness=0,c.fillStyle=`solid`);let l=D(o),u=s.path(l,c),m=r.insert(()=>u,`:first-child`);return i&&t.look!==`handDrawn`&&m.selectAll(`path`).attr(`style`,i),n&&t.look!==`handDrawn`&&m.selectAll(`path`).attr(`style`,n),t.width=28,t.height=28,t.intersect=function(e){return W.polygon(t,o,e)},r}e(le,`choice`);async function ue(e,t,r){let{labelStyles:i,nodeStyles:a}=p(t);t.labelStyle=i;let{shapeSvg:o,bbox:s,halfPadding:c}=await C(e,t,E(t)),l=r?.padding??c,u=t.look===`neo`?s.width/2+32:s.width/2+l,m,{cssStyles:h}=t;if(t.look===`handDrawn`){let e=d.svg(o),n=f(t,{}),r=e.circle(0,0,u*2,n);m=o.insert(()=>r,`:first-child`),m.attr(`class`,`basic label-container`).attr(`style`,g(h))}else m=o.insert(`circle`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,a).attr(`r`,u).attr(`cx`,0).attr(`cy`,0);return T(t,m),t.calcIntersect=function(e,t){let n=e.width/2;return W.circle(e,n,t)},t.intersect=function(e){return n.info(`Circle intersect`,t,u,e),W.circle(t,u,e)},o}e(ue,`circle`);function de(e){let t=Math.cos(Math.PI/4),n=Math.sin(Math.PI/4),r=e*2,i={x:r/2*t,y:r/2*n},a={x:-(r/2)*t,y:r/2*n},o={x:-(r/2)*t,y:-(r/2)*n},s={x:r/2*t,y:-(r/2)*n};return`M ${a.x},${a.y} L ${s.x},${s.y} + M ${i.x},${i.y} L ${o.x},${o.y}`}e(de,`createLine`);function fe(e,t){let{labelStyles:r,nodeStyles:i}=p(t);t.labelStyle=r,t.label=``;let a=e.insert(`g`).attr(`class`,E(t)).attr(`id`,t.domId??t.id),o=Math.max(30,t?.width??0),{cssStyles:s}=t,c=d.svg(a),l=f(t,{});t.look!==`handDrawn`&&(l.roughness=0,l.fillStyle=`solid`);let u=c.circle(0,0,o*2,l),m=de(o),h=c.path(m,l),g=a.insert(()=>u,`:first-child`);return g.insert(()=>h),g.attr(`class`,`outer-path`),s&&t.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,s),i&&t.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,i),T(t,g),t.intersect=function(e){return n.info(`crossedCircle intersect`,t,{radius:o,point:e}),W.circle(t,o,e)},a}e(fe,`crossedCircle`);function J(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;iw,`:first-child`).attr(`stroke-opacity`,0),O.insert(()=>x,`:first-child`),O.attr(`class`,`text`),h&&t.look!==`handDrawn`&&O.selectAll(`path`).attr(`style`,h),r&&t.look!==`handDrawn`&&O.selectAll(`path`).attr(`style`,r),O.attr(`transform`,`translate(${m}, 0)`),o.attr(`transform`,`translate(${-l/2+m-(a.x-(a.left??0))},${-u/2+(t.padding??0)/2-(a.y-(a.top??0))})`),T(t,O),t.intersect=function(e){return W.polygon(t,_,e)},i}e(pe,`curlyBraceLeft`);function Y(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;iw,`:first-child`).attr(`stroke-opacity`,0),O.insert(()=>x,`:first-child`),O.attr(`class`,`text`),h&&t.look!==`handDrawn`&&O.selectAll(`path`).attr(`style`,h),r&&t.look!==`handDrawn`&&O.selectAll(`path`).attr(`style`,r),O.attr(`transform`,`translate(${-m}, 0)`),o.attr(`transform`,`translate(${-l/2+(t.padding??0)/2-(a.x-(a.left??0))},${-u/2+(t.padding??0)/2-(a.y-(a.top??0))})`),T(t,O),t.intersect=function(e){return W.polygon(t,_,e)},i}e(me,`curlyBraceRight`);function X(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;iA,`:first-child`).attr(`stroke-opacity`,0),j.insert(()=>S,`:first-child`),j.insert(()=>O,`:first-child`),j.attr(`class`,`text`),h&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,h),r&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,r),j.attr(`transform`,`translate(${m-m/4}, 0)`),o.attr(`transform`,`translate(${-l/2+(t.padding??0)/2-(a.x-(a.left??0))},${-u/2+(t.padding??0)/2-(a.y-(a.top??0))})`),T(t,j),t.intersect=function(e){return W.polygon(t,v,e)},i}e(he,`curlyBraces`);async function ge(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,{shapeSvg:s,bbox:c}=await C(e,t,E(t)),l=Math.max(20,(c.width+a*2)*1.25,t?.width??0),u=Math.max(5,c.height+o*2,t?.height??0),m=u/2,{cssStyles:h}=t,g=d.svg(s),_=f(t,{});t.look!==`handDrawn`&&(_.roughness=0,_.fillStyle=`solid`);let v=l,y=u,b=v-m,x=y/4,S=[{x:b,y:0},{x,y:0},{x:0,y:y/2},{x,y},{x:b,y},...k(-b,-y/2,m,50,270,90)],w=D(S),O=g.path(w,_),A=s.insert(()=>O,`:first-child`);return A.attr(`class`,`basic label-container outer-path`),h&&t.look!==`handDrawn`&&A.selectChildren(`path`).attr(`style`,h),r&&t.look!==`handDrawn`&&A.selectChildren(`path`).attr(`style`,r),A.attr(`transform`,`translate(${-l/2}, ${-u/2})`),T(t,A),t.intersect=function(e){return W.polygon(t,S,e)},s}e(ge,`curvedTrapezoid`);var _e=e((e,t,n,r,i,a)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createCylinderPathD`),ve=e((e,t,n,r,i,a)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createOuterCylinderPathD`),ye=e((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),be=8,xe=8;async function Se(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?24:i,o=t.look===`neo`?24:i;if(t.width||t.height){let e=t.width??0;t.width=(t.width??0)-o,t.widtho,`:first-child`),v=s.insert(()=>a,`:first-child`),v.attr(`class`,`basic label-container`),y&&v.attr(`style`,y)}else{let e=_e(0,0,u,_,m,h);v=s.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container outer-path`).attr(`style`,g(y)).attr(`style`,r)}return v.attr(`label-offset-y`,h),v.attr(`transform`,`translate(${-u/2}, ${-(_/2+h)})`),T(t,v),l.attr(`transform`,`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${-(c.height/2)+(t.padding??0)/1.5-(c.y-(c.top??0))})`),t.intersect=function(e){let n=W.rect(t,e),r=n.x-(t.x??0);if(m!=0&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-h)){let i=h*h*(1-r*r/(m*m));i>0&&(i=Math.sqrt(i)),i=h-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},s}e(Se,`cylinder`);async function Ce(e,t,n){let{labelStyles:r,nodeStyles:i}=p(t);t.labelStyle=r;let{shapeSvg:a,bbox:o}=await C(e,t,E(t)),s=Math.max(o.width+n.labelPaddingX*2,t?.width||0),c=Math.max(o.height+n.labelPaddingY*2,t?.height||0),l=-s/2,u=-c/2,m,{rx:h,ry:_}=t,{cssStyles:v}=t;if(n?.rx&&n.ry&&(h=n.rx,_=n.ry),t.look===`handDrawn`){let e=d.svg(a),n=f(t,{}),r=h||_?e.path(N(l,u,s,c,h||0),n):e.rectangle(l,u,s,c,n);m=a.insert(()=>r,`:first-child`),m.attr(`class`,`basic label-container`).attr(`style`,g(v))}else m=a.insert(`rect`,`:first-child`),m.attr(`class`,`basic label-container`).attr(`style`,i).attr(`rx`,g(h)).attr(`ry`,g(_)).attr(`x`,l).attr(`y`,u).attr(`width`,s).attr(`height`,c);return T(t,m),t.calcIntersect=function(e,t){return W.rect(e,t)},t.intersect=function(e){return W.rect(t,e)},a}e(Ce,`drawRect`);async function we(e,t){let{cssClasses:n,labelPaddingX:r,labelPaddingY:i,padding:a,width:o,height:s}=t,c=await Ce(e,t,{rx:0,ry:0,classes:n??``,labelPaddingX:r??(a??0)*2,labelPaddingY:i??a??0});if(t.look===`handDrawn`){let e=d.svg(c),n=f(t,{}),r=c.select(`.basic.label-container > path:nth-child(2)`),i=r.node();if(!i)return c;let a=null;if(i instanceof SVGGraphicsElement)a=i.getBBox();else return c;return c.insert(()=>e.line(a.x,a.y,a.x+a.width,a.y,n),`.basic.label-container g.label`),c.insert(()=>e.line(a.x,a.y+a.height,a.x+a.width,a.y+a.height,n),`.basic.label-container g.label`),r.remove(),c}let l=c.select(`.basic.label-container`),u=(Number(l.attr(`width`))||o)??0,p=(Number(l.attr(`height`))||s)??0;return u>0&&p>0&&l.attr(`stroke-dasharray`,`${u} ${p}`),c}e(we,`datastore`);async function Te(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?16:t.padding??0,{shapeSvg:o,bbox:s,label:c}=await C(e,t,E(t)),l=s.width+i,u=s.height+a,m=u*.2,h=-l/2,g=-u/2-m/2,{cssStyles:_}=t,v=d.svg(o),y=f(t,{});t.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`);let b=[{x:h,y:g+m},{x:-h,y:g+m},{x:-h,y:-g},{x:h,y:-g},{x:h,y:g},{x:-h,y:g},{x:-h,y:g+m}],x=v.polygon(b.map(e=>[e.x,e.y]),y),S=o.insert(()=>x,`:first-child`);return S.attr(`class`,`basic label-container outer-path`),_&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,_),r&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,r),c.attr(`transform`,`translate(${h+(t.padding??0)/2-(s.x-(s.left??0))}, ${g+m+(t.padding??0)/2-(s.y-(s.top??0))})`),T(t,S),t.intersect=function(e){return W.rect(t,e)},o}e(Te,`dividedRectangle`);async function Ee(e,t){let{labelStyles:r,nodeStyles:i}=p(t),a=t.look===`neo`?12:5;t.labelStyle=r;let o=t.padding??0,s=t.look===`neo`?16:o,{shapeSvg:c,bbox:l}=await C(e,t,E(t)),u=(t?.width?t?.width/2:l.width/2)+(s??0),m=u-a,h,{cssStyles:_}=t;if(t.look===`handDrawn`){let e=d.svg(c),n=f(t,{roughness:.2,strokeWidth:2.5}),r=f(t,{roughness:.2,strokeWidth:1.5}),i=e.circle(0,0,u*2,n),a=e.circle(0,0,m*2,r);h=c.insert(`g`,`:first-child`),h.attr(`class`,g(t.cssClasses)).attr(`style`,g(_)),h.node()?.appendChild(i),h.node()?.appendChild(a)}else{h=c.insert(`g`,`:first-child`);let e=h.insert(`circle`,`:first-child`),t=h.insert(`circle`);h.attr(`class`,`basic label-container`).attr(`style`,i),e.attr(`class`,`outer-circle`).attr(`style`,i).attr(`r`,u).attr(`cx`,0).attr(`cy`,0),t.attr(`class`,`inner-circle`).attr(`style`,i).attr(`r`,m).attr(`cx`,0).attr(`cy`,0)}return T(t,h),t.intersect=function(e){return n.info(`DoubleCircle intersect`,t,u,e),W.circle(t,u,e)},c}e(Ee,`doublecircle`);function De(e,t,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:a}=p(t);t.label=``,t.labelStyle=i;let o=e.insert(`g`).attr(`class`,E(t)).attr(`id`,t.domId??t.id),{cssStyles:s}=t,c=d.svg(o),{nodeBorder:l}=r,u=f(t,{fillStyle:`solid`});t.look!==`handDrawn`&&(u.roughness=0);let m=c.circle(0,0,14,u),h=o.insert(()=>m,`:first-child`);return h.selectAll(`path`).attr(`style`,`fill: ${l} !important;`),s&&s.length>0&&t.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,s),a&&t.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,a),T(t,h),t.intersect=function(e){return n.info(`filledCircle intersect`,t,{radius:7,point:e}),W.circle(t,7,e)},o}e(De,`filledCircle`);var Oe=10,ke=10;async function Ae(e,t){let{labelStyles:r,nodeStyles:i}=p(t);t.labelStyle=r;let a=t.padding??0,o=t.look===`neo`?a*2:a;(t.width||t.height)&&(t.height=t?.height??0,t.heightx,`:first-child`).attr(`transform`,`translate(${-m/2}, ${m/2})`).attr(`class`,`outer-path`);return _&&t.look!==`handDrawn`&&S.selectChildren(`path`).attr(`style`,_),i&&t.look!==`handDrawn`&&S.selectChildren(`path`).attr(`style`,i),t.width=u,t.height=m,T(t,S),l.attr(`transform`,`translate(${-c.width/2-(c.x-(c.left??0))}, ${-m/2+(t.padding??0)/2+(c.y-(c.top??0))})`),t.intersect=function(e){return n.info(`Triangle intersect`,t,g,e),W.polygon(t,g,e)},s}e(Ae,`flippedTriangle`);function je(e,t,{dir:n,config:{state:r,themeVariables:i}}){let{nodeStyles:a}=p(t);t.label=``;let o=e.insert(`g`).attr(`class`,E(t)).attr(`id`,t.domId??t.id),{cssStyles:s}=t,c=Math.max(70,t?.width??0),l=Math.max(10,t?.height??0);n===`LR`&&(c=Math.max(10,t?.width??0),l=Math.max(70,t?.height??0));let u=-1*c/2,m=-1*l/2,h=d.svg(o),g=f(t,{stroke:i.lineColor,fill:i.lineColor});t.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=h.rectangle(u,m,c,l,g),v=o.insert(()=>_,`:first-child`);s&&t.look!==`handDrawn`&&v.selectAll(`path`).attr(`style`,s),a&&t.look!==`handDrawn`&&v.selectAll(`path`).attr(`style`,a),T(t,v);let y=r?.padding??0;return t.width&&t.height&&(t.width+=y/2||0,t.height+=y/2||0),t.intersect=function(e){return W.rect(t,e)},o}e(je,`forkJoin`);async function Me(e,t){let{labelStyles:r,nodeStyles:i}=p(t);t.labelStyle=r;let a=t.look===`neo`?16:t.padding??0,o=t.look===`neo`?12:t.padding??0;(t.width||t.height)&&(t.height=(t?.height??0)-o*2,t.height<10&&(t.height=10),t.width=(t?.width??0)-a*2,t.width<15&&(t.width=15));let{shapeSvg:s,bbox:c}=await C(e,t,E(t)),l=(t?.width?t?.width:Math.max(15,c.width))+a*2,u=(t?.height?t?.height:Math.max(10,c.height))+o*2,m=u/2,{cssStyles:h}=t,g=d.svg(s),_=f(t,{});t.look!==`handDrawn`&&(_.roughness=0,_.fillStyle=`solid`);let v=[{x:-l/2,y:-u/2},{x:l/2-m,y:-u/2},...k(-l/2+m,0,m,50,90,270),{x:l/2-m,y:u/2},{x:-l/2,y:u/2}],y=D(v),b=g.path(y,_),x=s.insert(()=>b,`:first-child`);return x.attr(`class`,`basic label-container outer-path`),h&&t.look!==`handDrawn`&&x.selectChildren(`path`).attr(`style`,h),i&&t.look!==`handDrawn`&&x.selectChildren(`path`).attr(`style`,i),T(t,x),t.intersect=function(e){return n.info(`Pill intersect`,t,{radius:m,point:e}),W.polygon(t,v,e)},s}e(Me,`halfRoundedRectangle`);var Ne=e((e,t,n,r,i)=>[`M${e+i},${t}`,`L${e+n-i},${t}`,`L${e+n},${t-r/2}`,`L${e+n-i},${t-r}`,`L${e+i},${t-r}`,`L${e},${t-r/2}`,`Z`].join(` `),`createHexagonPathD`);async function Pe(e,t){let{labelStyles:n,nodeStyles:r}=p(t),i=t.look===`neo`?3.5:4;t.labelStyle=n;let a=t.padding??0,o=t.look===`neo`?70:a,s=t.look===`neo`?32:a;if(t.width||t.height){let e=(t.height??0)/i;t.width=(t?.width??0)-2*e-s,t.height=(t.height??0)-o}let{shapeSvg:c,bbox:l}=await C(e,t,E(t)),u=(t?.height?t?.height:l.height)+o,m=u/i,h=(t?.width?t?.width:l.width)+2*m+s,g=[{x:m,y:0},{x:h-m,y:0},{x:h,y:-u/2},{x:h-m,y:-u},{x:m,y:-u},{x:0,y:-u/2}],_,{cssStyles:v}=t;if(t.look===`handDrawn`){let e=d.svg(c),n=f(t,{}),r=Ne(0,0,h,u,m),i=e.path(r,n);_=c.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-h/2}, ${u/2})`),v&&_.attr(`style`,v)}else _=q(c,h,u,g);return r&&_.attr(`style`,r),t.width=h,t.height=u,T(t,_),t.intersect=function(e){return W.polygon(t,g,e)},c}e(Pe,`hexagon`);async function Fe(e,t){let{labelStyles:r,nodeStyles:i}=p(t);t.label=``,t.labelStyle=r;let{shapeSvg:a}=await C(e,t,E(t)),o=Math.max(30,t?.width??0),s=Math.max(30,t?.height??0),{cssStyles:c}=t,l=d.svg(a),u=f(t,{});t.look!==`handDrawn`&&(u.roughness=0,u.fillStyle=`solid`);let m=[{x:0,y:0},{x:o,y:0},{x:0,y:s},{x:o,y:s}],h=D(m),g=l.path(h,u),_=a.insert(()=>g,`:first-child`);return _.attr(`class`,`basic label-container outer-path`),c&&t.look!==`handDrawn`&&_.selectChildren(`path`).attr(`style`,c),i&&t.look!==`handDrawn`&&_.selectChildren(`path`).attr(`style`,i),_.attr(`transform`,`translate(${-o/2}, ${-s/2})`),T(t,_),t.intersect=function(e){return n.info(`Pill intersect`,t,{points:m}),W.polygon(t,m,e)},a}e(Fe,`hourglass`);async function Ie(e,t,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:a}=p(t);t.labelStyle=a;let o=t.assetHeight??48,s=t.assetWidth??48,c=Math.max(o,s),l=i?.wrappingWidth;t.width=Math.max(c,l??0);let{shapeSvg:u,bbox:m,label:g}=await C(e,t,`icon-shape default`),_=t.pos===`t`,v=c,y=c,{nodeBorder:b}=r,{stylesMap:S}=h(t),w=-y/2,E=-v/2,D=t.label?8:0,O=d.svg(u),k=f(t,{stroke:`none`,fill:`none`});t.look!==`handDrawn`&&(k.roughness=0,k.fillStyle=`solid`);let A=O.rectangle(w,E,y,v,k),j=Math.max(y,m.width),M=v+m.height+D,N=O.rectangle(-j/2,-M/2,j,M,{...k,fill:`transparent`,stroke:`none`}),P=u.insert(()=>A,`:first-child`),F=u.insert(()=>N);if(t.icon){let e=u.append(`g`);e.html(`${await x(t.icon,{height:c,width:c,fallbackPrefix:``})}`);let n=e.node().getBBox(),r=n.width,i=n.height,a=n.x,o=n.y;e.attr(`transform`,`translate(${-r/2-a},${_?m.height/2+D/2-i/2-o:-m.height/2-D/2-i/2-o})`),e.attr(`style`,`color: ${S.get(`stroke`)??b};`)}return g.attr(`transform`,`translate(${-m.width/2-(m.x-(m.left??0))},${_?-M/2:M/2-m.height})`),P.attr(`transform`,`translate(0,${_?m.height/2+D/2:-m.height/2-D/2})`),T(t,F),t.intersect=function(e){if(n.info(`iconSquare intersect`,t,e),!t.label)return W.rect(t,e);let r=t.x??0,i=t.y??0,a=t.height??0,o=[];return o=_?[{x:r-m.width/2,y:i-a/2},{x:r+m.width/2,y:i-a/2},{x:r+m.width/2,y:i-a/2+m.height+D},{x:r+y/2,y:i-a/2+m.height+D},{x:r+y/2,y:i+a/2},{x:r-y/2,y:i+a/2},{x:r-y/2,y:i-a/2+m.height+D},{x:r-m.width/2,y:i-a/2+m.height+D}]:[{x:r-y/2,y:i-a/2},{x:r+y/2,y:i-a/2},{x:r+y/2,y:i-a/2+v},{x:r+m.width/2,y:i-a/2+v},{x:r+m.width/2/2,y:i+a/2},{x:r-m.width/2,y:i+a/2},{x:r-m.width/2,y:i-a/2+v},{x:r-y/2,y:i-a/2+v}],W.polygon(t,o,e)},u}e(Ie,`icon`);async function Le(e,t,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:a}=p(t);t.labelStyle=a;let o=t.assetHeight??48,s=t.assetWidth??48,c=Math.max(o,s),l=i?.wrappingWidth;t.width=Math.max(c,l??0);let{shapeSvg:u,bbox:m,label:g}=await C(e,t,`icon-shape default`),_=t.label?8:0,v=t.pos===`t`,{nodeBorder:y,mainBkg:b}=r,{stylesMap:S}=h(t),w=d.svg(u),E=f(t,{});t.look!==`handDrawn`&&(E.roughness=0,E.fillStyle=`solid`),E.stroke=S.get(`fill`)??b;let D=u.append(`g`);t.icon&&D.html(`${await x(t.icon,{height:c,width:c,fallbackPrefix:``})}`);let O=D.node().getBBox(),k=O.width,A=O.height,j=O.x,M=O.y,N=Math.max(k,A)*Math.SQRT2+40,P=w.circle(0,0,N,E),F=Math.max(N,m.width),I=N+m.height+_,ee=w.rectangle(-F/2,-I/2,F,I,{...E,fill:`transparent`,stroke:`none`}),te=u.insert(()=>P,`:first-child`),L=u.insert(()=>ee);return D.attr(`transform`,`translate(${-k/2-j},${v?m.height/2+_/2-A/2-M:-m.height/2-_/2-A/2-M})`),D.attr(`style`,`color: ${S.get(`stroke`)??y};`),g.attr(`transform`,`translate(${-m.width/2-(m.x-(m.left??0))},${v?-I/2:I/2-m.height})`),te.attr(`transform`,`translate(0,${v?m.height/2+_/2:-m.height/2-_/2})`),T(t,L),t.intersect=function(e){return n.info(`iconSquare intersect`,t,e),W.rect(t,e)},u}e(Le,`iconCircle`);async function Re(e,t,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:a}=p(t);t.labelStyle=a;let o=t.assetHeight??48,s=t.assetWidth??48,c=Math.max(o,s),l=i?.wrappingWidth;t.width=Math.max(c,l??0);let{shapeSvg:u,bbox:m,halfPadding:g,label:_}=await C(e,t,`icon-shape default`),v=t.pos===`t`,y=c+g*2,b=c+g*2,{nodeBorder:S,mainBkg:w}=r,{stylesMap:E}=h(t),D=-b/2,O=-y/2,k=t.label?8:0,A=d.svg(u),j=f(t,{});t.look!==`handDrawn`&&(j.roughness=0,j.fillStyle=`solid`),j.stroke=E.get(`fill`)??w;let M=A.path(N(D,O,b,y,5),j),P=Math.max(b,m.width),F=y+m.height+k,I=A.rectangle(-P/2,-F/2,P,F,{...j,fill:`transparent`,stroke:`none`}),ee=u.insert(()=>M,`:first-child`).attr(`class`,`icon-shape2`),te=u.insert(()=>I);if(t.icon){let e=u.append(`g`);e.html(`${await x(t.icon,{height:c,width:c,fallbackPrefix:``})}`);let n=e.node().getBBox(),r=n.width,i=n.height,a=n.x,o=n.y;e.attr(`transform`,`translate(${-r/2-a},${v?m.height/2+k/2-i/2-o:-m.height/2-k/2-i/2-o})`),e.attr(`style`,`color: ${E.get(`stroke`)??S};`)}return _.attr(`transform`,`translate(${-m.width/2-(m.x-(m.left??0))},${v?-F/2:F/2-m.height})`),ee.attr(`transform`,`translate(0,${v?m.height/2+k/2:-m.height/2-k/2})`),T(t,te),t.intersect=function(e){if(n.info(`iconSquare intersect`,t,e),!t.label)return W.rect(t,e);let r=t.x??0,i=t.y??0,a=t.height??0,o=[];return o=v?[{x:r-m.width/2,y:i-a/2},{x:r+m.width/2,y:i-a/2},{x:r+m.width/2,y:i-a/2+m.height+k},{x:r+b/2,y:i-a/2+m.height+k},{x:r+b/2,y:i+a/2},{x:r-b/2,y:i+a/2},{x:r-b/2,y:i-a/2+m.height+k},{x:r-m.width/2,y:i-a/2+m.height+k}]:[{x:r-b/2,y:i-a/2},{x:r+b/2,y:i-a/2},{x:r+b/2,y:i-a/2+y},{x:r+m.width/2,y:i-a/2+y},{x:r+m.width/2/2,y:i+a/2},{x:r-m.width/2,y:i+a/2},{x:r-m.width/2,y:i-a/2+y},{x:r-b/2,y:i-a/2+y}],W.polygon(t,o,e)},u}e(Re,`iconRounded`);async function ze(e,t,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:a}=p(t);t.labelStyle=a;let o=t.assetHeight??48,s=t.assetWidth??48,c=Math.max(o,s),l=i?.wrappingWidth;t.width=Math.max(c,l??0);let{shapeSvg:u,bbox:m,halfPadding:g,label:_}=await C(e,t,`icon-shape default`),v=t.pos===`t`,y=c+g*2,b=c+g*2,{nodeBorder:S,mainBkg:w}=r,{stylesMap:E}=h(t),D=-b/2,O=-y/2,k=t.label?8:0,A=d.svg(u),j=f(t,{});t.look!==`handDrawn`&&(j.roughness=0,j.fillStyle=`solid`),j.stroke=E.get(`fill`)??w;let M=A.path(N(D,O,b,y,.1),j),P=Math.max(b,m.width),F=y+m.height+k,I=A.rectangle(-P/2,-F/2,P,F,{...j,fill:`transparent`,stroke:`none`}),ee=u.insert(()=>M,`:first-child`),te=u.insert(()=>I);if(t.icon){let e=u.append(`g`);e.html(`${await x(t.icon,{height:c,width:c,fallbackPrefix:``})}`);let n=e.node().getBBox(),r=n.width,i=n.height,a=n.x,o=n.y;e.attr(`transform`,`translate(${-r/2-a},${v?m.height/2+k/2-i/2-o:-m.height/2-k/2-i/2-o})`),e.attr(`style`,`color: ${E.get(`stroke`)??S};`)}return _.attr(`transform`,`translate(${-m.width/2-(m.x-(m.left??0))},${v?-F/2:F/2-m.height})`),ee.attr(`transform`,`translate(0,${v?m.height/2+k/2:-m.height/2-k/2})`),T(t,te),t.intersect=function(e){if(n.info(`iconSquare intersect`,t,e),!t.label)return W.rect(t,e);let r=t.x??0,i=t.y??0,a=t.height??0,o=[];return o=v?[{x:r-m.width/2,y:i-a/2},{x:r+m.width/2,y:i-a/2},{x:r+m.width/2,y:i-a/2+m.height+k},{x:r+b/2,y:i-a/2+m.height+k},{x:r+b/2,y:i+a/2},{x:r-b/2,y:i+a/2},{x:r-b/2,y:i-a/2+m.height+k},{x:r-m.width/2,y:i-a/2+m.height+k}]:[{x:r-b/2,y:i-a/2},{x:r+b/2,y:i-a/2},{x:r+b/2,y:i-a/2+y},{x:r+m.width/2,y:i-a/2+y},{x:r+m.width/2/2,y:i+a/2},{x:r-m.width/2,y:i+a/2},{x:r-m.width/2,y:i-a/2+y},{x:r-b/2,y:i-a/2+y}],W.polygon(t,o,e)},u}e(ze,`iconSquare`);async function Be(e,t,{config:{flowchart:r}}){let i=new Image;i.src=t?.img??``,await i.decode();let a=Number(i.naturalWidth.toString().replace(`px`,``)),o=Number(i.naturalHeight.toString().replace(`px`,``));t.imageAspectRatio=a/o;let{labelStyles:s}=p(t);t.labelStyle=s;let c=r?.wrappingWidth;t.defaultWidth=r?.wrappingWidth;let l=Math.max(t.label?c??0:0,t?.assetWidth??a),u=t.constraint===`on`&&t?.assetHeight?t.assetHeight*t.imageAspectRatio:l,m=t.constraint===`on`?u/t.imageAspectRatio:t?.assetHeight??o;t.width=Math.max(u,c??0);let{shapeSvg:h,bbox:g,label:_}=await C(e,t,`image-shape default`),v=t.pos===`t`,y=-u/2,b=-m/2,x=t.label?8:0,S=d.svg(h),w=f(t,{});t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let E=S.rectangle(y,b,u,m,w),D=Math.max(u,g.width),O=m+g.height+x,k=S.rectangle(-D/2,-O/2,D,O,{...w,fill:`none`,stroke:`none`}),A=h.insert(()=>E,`:first-child`),j=h.insert(()=>k);if(t.img){let e=h.append(`image`);e.attr(`href`,t.img),e.attr(`width`,u),e.attr(`height`,m),e.attr(`preserveAspectRatio`,`none`),e.attr(`transform`,`translate(${-u/2},${v?O/2-m:-O/2})`)}return _.attr(`transform`,`translate(${-g.width/2-(g.x-(g.left??0))},${v?-m/2-g.height/2-x/2:m/2-g.height/2+x/2})`),A.attr(`transform`,`translate(0,${v?g.height/2+x/2:-g.height/2-x/2})`),T(t,j),t.intersect=function(e){if(n.info(`iconSquare intersect`,t,e),!t.label)return W.rect(t,e);let r=t.x??0,i=t.y??0,a=t.height??0,o=[];return o=v?[{x:r-g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2+g.height+x},{x:r+u/2,y:i-a/2+g.height+x},{x:r+u/2,y:i+a/2},{x:r-u/2,y:i+a/2},{x:r-u/2,y:i-a/2+g.height+x},{x:r-g.width/2,y:i-a/2+g.height+x}]:[{x:r-u/2,y:i-a/2},{x:r+u/2,y:i-a/2},{x:r+u/2,y:i-a/2+m},{x:r+g.width/2,y:i-a/2+m},{x:r+g.width/2/2,y:i+a/2},{x:r-g.width/2,y:i+a/2},{x:r-g.width/2,y:i-a/2+m},{x:r-u/2,y:i-a/2+m}],W.polygon(t,o,e)},h}e(Be,`imageSquare`);async function Ve(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let i=t.padding??0,a=i,o=t.look===`neo`?i*2:i,{shapeSvg:s,bbox:c}=await C(e,t,E(t)),l=Math.max(c.width+(o??0)*2,t?.width??0),u=Math.max(c.height+(a??0)*2,t?.height??0),m=[{x:0,y:0},{x:l,y:0},{x:l+3*u/6,y:-u},{x:-3*u/6,y:-u}],h,{cssStyles:g}=t;if(t.look===`handDrawn`){let e=d.svg(s),n=f(t,{}),r=D(m),i=e.path(r,n);h=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-l/2}, ${u/2})`),g&&h.attr(`style`,g)}else h=q(s,l,u,m);return r&&h.attr(`style`,r),t.width=l,t.height=u,T(t,h),t.intersect=function(e){return W.polygon(t,m,e)},s}e(Ve,`inv_trapezoid`);async function He(e,t){let{shapeSvg:n,bbox:r,label:i}=await C(e,t,`label`),a=n.insert(`rect`,`:first-child`);return a.attr(`width`,.1).attr(`height`,.1),n.attr(`class`,`label edgeLabel`),i.attr(`transform`,`translate(${-(r.width/2)-(r.x-(r.left??0))}, ${-(r.height/2)-(r.y-(r.top??0))})`),T(t,a),t.intersect=function(e){return W.rect(t,e)},n}e(He,`labelRect`);async function Ue(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let i=t.padding??0,a=i,o=t.look===`neo`?i*2:i,{shapeSvg:s,bbox:c}=await C(e,t,E(t)),l=(t?.height??c.height)+a,u=(t?.width??c.width)+o,m=[{x:0,y:0},{x:u+3*l/6,y:0},{x:u,y:-l},{x:-(3*l)/6,y:-l}],h,{cssStyles:g}=t;if(t.look===`handDrawn`){let e=d.svg(s),n=f(t,{}),r=D(m),i=e.path(r,n);h=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-u/2}, ${l/2})`),g&&h.attr(`style`,g)}else h=q(s,u,l,m);return r&&h.attr(`style`,r),t.width=u,t.height=l,T(t,h),t.intersect=function(e){return W.polygon(t,m,e)},s}e(Ue,`lean_left`);async function We(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let i=t.padding??0,a=i,o=t.look===`neo`?i*2:i,{shapeSvg:s,bbox:c}=await C(e,t,E(t)),l=(t?.height??c.height)+a,u=(t?.width??c.width)+o,m=[{x:-3*l/6,y:0},{x:u,y:0},{x:u+3*l/6,y:-l},{x:0,y:-l}],h,{cssStyles:g}=t;if(t.look===`handDrawn`){let e=d.svg(s),n=f(t,{}),r=D(m),i=e.path(r,n);h=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-u/2}, ${l/2})`),g&&h.attr(`style`,g)}else h=q(s,u,l,m);return r&&h.attr(`style`,r),t.width=u,t.height=l,T(t,h),t.intersect=function(e){return W.polygon(t,m,e)},s}e(We,`lean_right`);function Ge(e,t){let{labelStyles:r,nodeStyles:i}=p(t);t.label=``,t.labelStyle=r;let a=e.insert(`g`).attr(`class`,E(t)).attr(`id`,t.domId??t.id),{cssStyles:o}=t,s=Math.max(35,t?.width??0),c=Math.max(35,t?.height??0),l=[{x:s,y:0},{x:0,y:c+7/2},{x:s-14,y:c+7/2},{x:0,y:2*c},{x:s,y:c-7/2},{x:14,y:c-7/2}],u=d.svg(a),m=f(t,{});t.look!==`handDrawn`&&(m.roughness=0,m.fillStyle=`solid`);let h=D(l),g=u.path(h,m),_=a.insert(()=>g,`:first-child`);return _.attr(`class`,`outer-path`),o&&t.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,o),i&&t.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,i),_.attr(`transform`,`translate(-${s/2},${-c})`),T(t,_),t.intersect=function(e){return n.info(`lightningBolt intersect`,t,e),W.polygon(t,l,e)},a}e(Ge,`lightningBolt`);var Ke=e((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createCylinderPathD`),qe=e((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createOuterCylinderPathD`),Je=e((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),Ye=10,Xe=10;async function Ze(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?24:i;if(t.width||t.height){let e=t.width??0;t.width=(t.width??0)-a,t.widtho,`:first-child`).attr(`class`,`line`),y=s.insert(()=>a,`:first-child`),y.attr(`class`,`basic label-container`),b&&y.attr(`style`,b)}else{let e=Ke(0,0,u,_,m,h,v);y=s.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container outer-path`).attr(`style`,g(b)).attr(`style`,r)}return y.attr(`label-offset-y`,h),y.attr(`transform`,`translate(${-u/2}, ${-(_/2+h)})`),T(t,y),l.attr(`transform`,`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${-(c.height/2)+h-(c.y-(c.top??0))})`),t.intersect=function(e){let n=W.rect(t,e),r=n.x-(t.x??0);if(m!=0&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-h)){let i=h*h*(1-r*r/(m*m));i>0&&(i=Math.sqrt(i)),i=h-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},s}e(Ze,`linedCylinder`);async function Qe(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.width=(t.width??0)*10/11-a*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-o*2,t.height<10&&(t.height=10));let{shapeSvg:s,bbox:c,label:l}=await C(e,t,E(t)),u=(t?.width?t?.width:c.width)+(a??0)*2,m=(t?.height?t?.height:c.height)+(o??0)*2,h=t.look===`neo`?m/4:m/8,g=m+h,{cssStyles:_}=t,v=d.svg(s),y=f(t,{});t.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`);let b=[{x:-u/2-u/2*.1,y:-g/2},{x:-u/2-u/2*.1,y:g/2},...O(-u/2-u/2*.1,g/2,u/2+u/2*.1,g/2,h,.8),{x:u/2+u/2*.1,y:-g/2},{x:-u/2-u/2*.1,y:-g/2},{x:-u/2,y:-g/2},{x:-u/2,y:g/2*1.1},{x:-u/2,y:-g/2}],x=v.polygon(b.map(e=>[e.x,e.y]),y),S=s.insert(()=>x,`:first-child`);return S.attr(`class`,`basic label-container outer-path`),_&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,_),r&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,r),S.attr(`transform`,`translate(0,${-h/2})`),l.attr(`transform`,`translate(${-u/2+(t.padding??0)+u/2*.1/2-(c.x-(c.left??0))},${-m/2+(t.padding??0)-h/2-(c.y-(c.top??0))})`),T(t,S),t.intersect=function(e){return W.polygon(t,b,e)},s}e(Qe,`linedWaveEdgedRect`);async function $e(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,s=t.look===`neo`?10:5;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-a*2-2*s,10),t.height=Math.max((t?.height??0)-o*2-2*s,10));let{shapeSvg:c,bbox:l,label:u}=await C(e,t,E(t)),m=(t?.width?t?.width:l.width)+a*2+2*s,h=(t?.height?t?.height:l.height)+o*2+2*s,g=m-2*s,_=h-2*s,v=-g/2,y=-_/2,{cssStyles:b}=t,x=d.svg(c),S=f(t,{}),w=[{x:v-s,y:y+s},{x:v-s,y:y+_+s},{x:v+g-s,y:y+_+s},{x:v+g-s,y:y+_},{x:v+g,y:y+_},{x:v+g,y:y+_-s},{x:v+g+s,y:y+_-s},{x:v+g+s,y:y-s},{x:v+s,y:y-s},{x:v+s,y},{x:v,y},{x:v,y:y+s}],O=[{x:v,y:y+s},{x:v+g-s,y:y+s},{x:v+g-s,y:y+_},{x:v+g,y:y+_},{x:v+g,y},{x:v,y}];t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let k=D(w),j=x.path(k,S),M=D(O),N=x.path(M,S);t.look!==`handDrawn`&&(j=A(j),N=A(N));let P=c.insert(`g`,`:first-child`);return P.insert(()=>j),P.insert(()=>N),P.attr(`class`,`basic label-container outer-path`),b&&t.look!==`handDrawn`&&P.selectAll(`path`).attr(`style`,b),r&&t.look!==`handDrawn`&&P.selectAll(`path`).attr(`style`,r),u.attr(`transform`,`translate(${-(l.width/2)-s-(l.x-(l.left??0))}, ${-(l.height/2)+s-(l.y-(l.top??0))})`),T(t,P),t.intersect=function(e){return W.polygon(t,w,e)},c}e($e,`multiRect`);async function et(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await C(e,t,E(t)),s=t.padding??0,c=t.look===`neo`?16:s,l=t.look===`neo`?12:s,u=!0;(t.width||t.height)&&(u=!1,t.width=(t?.width??0)-c*2,t.height=(t?.height??0)-l*3);let m=Math.max(a.width,t?.width??0)+c*2,h=Math.max(a.height,t?.height??0)+l*3,g=t.look===`neo`?h/4:h/8,_=h+(u?g/2:-g/2),v=-m/2,y=-_/2,{cssStyles:b}=t,x=O(v-10,y+_+10,v+m-10,y+_+10,g,.8),S=x?.[x.length-1],w=[{x:v-10,y:y+10},{x:v-10,y:y+_+10},...x,{x:v+m-10,y:S.y-10},{x:v+m,y:S.y-10},{x:v+m,y:S.y-20},{x:v+m+10,y:S.y-20},{x:v+m+10,y:y-10},{x:v+10,y:y-10},{x:v+10,y},{x:v,y},{x:v,y:y+10}],k=[{x:v,y:y+10},{x:v+m-10,y:y+10},{x:v+m-10,y:S.y-10},{x:v+m,y:S.y-10},{x:v+m,y},{x:v,y}],A=d.svg(i),j=f(t,{});t.look!==`handDrawn`&&(j.roughness=0,j.fillStyle=`solid`);let M=D(w),N=A.path(M,j),P=D(k),F=A.path(P,j),I=i.insert(()=>N,`:first-child`);return I.insert(()=>F),I.attr(`class`,`basic label-container outer-path`),b&&t.look!==`handDrawn`&&I.selectAll(`path`).attr(`style`,b),r&&t.look!==`handDrawn`&&I.selectAll(`path`).attr(`style`,r),I.attr(`transform`,`translate(0,${-g/2})`),o.attr(`transform`,`translate(${-(a.width/2)-10-(a.x-(a.left??0))}, ${-(a.height/2)+10-g/2-(a.y-(a.top??0))})`),T(t,I),t.intersect=function(e){return W.polygon(t,w,e)},i}e(et,`multiWaveEdgedRectangle`);async function tt(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:a}=p(t);t.labelStyle=r,t.useHtmlLabels||i(l())||(t.centerLabel=!0);let{shapeSvg:o,bbox:s,label:c}=await C(e,t,E(t)),u=Math.max(s.width+(t.padding??0)*2,t?.width??0),m=Math.max(s.height+(t.padding??0)*2,t?.height??0),h=-u/2,g=-m/2,{cssStyles:_}=t,v=d.svg(o),y=f(t,{fill:n.noteBkgColor,stroke:n.noteBorderColor});t.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`);let b=v.rectangle(h,g,u,m,y),x=o.insert(()=>b,`:first-child`);return x.attr(`class`,`basic label-container outer-path`),c.attr(`class`,`label noteLabel`),_&&t.look!==`handDrawn`&&x.selectAll(`path`).attr(`style`,_),a&&t.look!==`handDrawn`&&x.selectAll(`path`).attr(`style`,a),c.attr(`transform`,`translate(${-s.width/2-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),T(t,x),t.intersect=function(e){return W.rect(t,e)},o}e(tt,`note`);var nt=e((e,t,n)=>[`M${e+n/2},${t}`,`L${e+n},${t-n/2}`,`L${e+n/2},${t-n}`,`L${e},${t-n/2}`,`Z`].join(` `),`createDecisionBoxPathD`);async function rt(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await C(e,t,E(t)),o=a.width+(t.padding??0)+(a.height+(t.padding??0)),s=.5,c=[{x:o/2,y:0},{x:o,y:-o/2},{x:o/2,y:-o},{x:0,y:-o/2}],l,{cssStyles:u}=t;if(t.look===`handDrawn`){let e=d.svg(i),n=f(t,{}),r=nt(0,0,o),a=e.path(r,n);l=i.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-o/2+s}, ${o/2})`),u&&l.attr(`style`,u)}else l=q(i,o,o,c),l.attr(`transform`,`translate(${-o/2+s}, ${o/2})`);return r&&l.attr(`style`,r),T(t,l),t.calcIntersect=function(e,t){let n=e.width,r=[{x:n/2,y:0},{x:n,y:-n/2},{x:n/2,y:-n},{x:0,y:-n/2}],i=W.polygon(e,r,t);return{x:i.x-.5,y:i.y-.5}},t.intersect=function(e){return this.calcIntersect(t,e)},i}e(rt,`question`);async function it(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?21:i??0,o=t.look===`neo`?12:i??0,{shapeSvg:s,bbox:c,label:l}=await C(e,t,E(t)),u=(t?.width??c.width)+(t.look===`neo`?a*2:a),m=(t?.height??c.height)+(t.look===`neo`?o*2:o),h=-u/2,g=-m/2,_=g/2,v=[{x:h+_,y:g},{x:h,y:0},{x:h+_,y:-g},{x:-h,y:-g},{x:-h,y:g}],{cssStyles:y}=t,b=d.svg(s),x=f(t,{});t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=D(v),w=b.path(S,x),O=s.insert(()=>w,`:first-child`);return O.attr(`class`,`basic label-container outer-path`),y&&t.look!==`handDrawn`&&O.selectAll(`path`).attr(`style`,y),r&&t.look!==`handDrawn`&&O.selectAll(`path`).attr(`style`,r),O.attr(`transform`,`translate(${-_/2},0)`),l.attr(`transform`,`translate(${-_/2-c.width/2-(c.x-(c.left??0))}, ${-(c.height/2)-(c.y-(c.top??0))})`),T(t,O),t.intersect=function(e){return W.polygon(t,v,e)},s}e(it,`rect_left_inv_arrow`);async function at(e,a){let{labelStyles:o,nodeStyles:s}=p(a);a.labelStyle=o;let c;c=a.cssClasses?`node `+a.cssClasses:`node default`;let l=e.insert(`g`).attr(`class`,c).attr(`id`,a.domId||a.id),u=l.insert(`g`),m=l.insert(`g`).attr(`class`,`label`).attr(`style`,s),h=a.description,g=a.label,_=await M(m,g,a.labelStyle,!0,!0),v={width:0,height:0};if(i(r())){let e=_.children[0],n=t(_);v=e.getBoundingClientRect(),n.attr(`width`,v.width),n.attr(`height`,v.height)}n.info(`Text 2`,h);let y=h||[],b=_.getBBox(),x=await M(m,Array.isArray(y)?y.join(`
`):y,a.labelStyle,!0,!0),S=x.children[0],C=t(x);v=S.getBoundingClientRect(),C.attr(`width`,v.width),C.attr(`height`,v.height);let w=(a.padding||0)/2;t(x).attr(`transform`,`translate( `+(v.width>b.width?0:(b.width-v.width)/2)+`, `+(b.height+w+5)+`)`),t(_).attr(`transform`,`translate( `+(v.width(n.debug(`Rough node insert CXC`,r),i),`:first-child`),A=l.insert(()=>(n.debug(`Rough node insert CXC`,r),r),`:first-child`)}else A=u.insert(`rect`,`:first-child`),j=u.insert(`line`),A.attr(`class`,`outer title-state`).attr(`style`,s).attr(`x`,-v.width/2-w).attr(`y`,-v.height/2-w).attr(`width`,v.width+(a.padding||0)).attr(`height`,v.height+(a.padding||0)),j.attr(`class`,`divider`).attr(`x1`,-v.width/2-w).attr(`x2`,v.width/2+w).attr(`y1`,-v.height/2-w+b.height+w).attr(`y2`,-v.height/2-w+b.height+w);return T(a,A),a.intersect=function(e){return W.rect(a,e)},l}e(at,`rectWithTitle`);async function ot(e,t,{config:{themeVariables:n}}){let r=n?.radius??5;return Ce(e,t,{rx:r,ry:r,classes:``,labelPaddingX:(t?.padding??0)*1,labelPaddingY:(t?.padding??0)*1})}e(ot,`roundedRect`);var Z=8;async function st(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?12:t.padding??0,{shapeSvg:o,bbox:s,label:c}=await C(e,t,E(t)),l=(t?.width??s.width)+i*2+(t.look===`neo`?Z:Z*2),u=(t?.height??s.height)+a*2,m=l-Z,h=u,_=Z-l/2,v=-u/2,{cssStyles:y}=t,b=d.svg(o),x=f(t,{});t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=[{x:_,y:v},{x:_+m,y:v},{x:_+m,y:v+h},{x:_-Z,y:v+h},{x:_-Z,y:v},{x:_,y:v},{x:_,y:v+h}],w=b.polygon(S.map(e=>[e.x,e.y]),x),D=o.insert(()=>w,`:first-child`);return D.attr(`class`,`basic label-container outer-path`).attr(`style`,g(y)),r&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),y&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),c.attr(`transform`,`translate(${Z/2-s.width/2-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),T(t,D),t.intersect=function(e){return W.rect(t,e)},o}e(st,`shadedProcess`);async function ct(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-a*2,10),t.height=Math.max((t?.height??0)/1.5-o*2,10));let{shapeSvg:s,bbox:c,label:l}=await C(e,t,E(t)),u=(t?.width?t?.width:c.width)+a*2,m=((t?.height?t?.height:c.height)+o*2)*1.5,h=u,g=m/1.5,_=-h/2,v=-g/2,{cssStyles:y}=t,b=d.svg(s),x=f(t,{});t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=[{x:_,y:v},{x:_,y:v+g},{x:_+h,y:v+g},{x:_+h,y:v-g/2}],w=D(S),O=b.path(w,x),k=s.insert(()=>O,`:first-child`);return k.attr(`class`,`basic label-container outer-path`),y&&t.look!==`handDrawn`&&k.selectChildren(`path`).attr(`style`,y),r&&t.look!==`handDrawn`&&k.selectChildren(`path`).attr(`style`,r),k.attr(`transform`,`translate(0, ${g/4})`),l.attr(`transform`,`translate(${-h/2+(t.padding??0)-(c.x-(c.left??0))}, ${-g/4+(t.padding??0)-(c.y-(c.top??0))})`),T(t,k),t.intersect=function(e){return W.polygon(t,S,e)},s}e(ct,`slopedRect`);async function lt(e,t){let n=t.padding??0,r=t.look===`neo`?16:n*2,i=t.look===`neo`?12:n;return Ce(e,t,{rx:0,ry:0,classes:``,labelPaddingX:t.labelPaddingX??r,labelPaddingY:i})}e(lt,`squareRect`);async function ut(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?20:i,o=t.look===`neo`?12:i,{shapeSvg:s,bbox:c}=await C(e,t,E(t)),l=c.height+(t.look===`neo`?o*2:o),u=c.width+l/4+(t.look===`neo`?a*2:a),m=l/2,{cssStyles:h}=t,g=d.svg(s),_=f(t,{});t.look!==`handDrawn`&&(_.roughness=0,_.fillStyle=`solid`);let v=[{x:-u/2+m,y:-l/2},{x:u/2-m,y:-l/2},...k(-u/2+m,0,m,50,90,270),{x:u/2-m,y:l/2},...k(u/2-m,0,m,50,270,450)],y=D(v),b=g.path(y,_),x=s.insert(()=>b,`:first-child`);return x.attr(`class`,`basic label-container outer-path`),h&&t.look!==`handDrawn`&&x.selectChildren(`path`).attr(`style`,h),r&&t.look!==`handDrawn`&&x.selectChildren(`path`).attr(`style`,r),T(t,x),t.intersect=function(e){return W.polygon(t,v,e)},s}e(ut,`stadium`);async function dt(e,t){return Ce(e,t,{rx:t.look===`neo`?3:5,ry:t.look===`neo`?3:5,classes:`flowchart-node`})}e(dt,`state`);function ft(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=p(t);t.labelStyle=r;let{cssStyles:a}=t,{lineColor:o,stateBorder:s,nodeBorder:c,nodeShadow:l}=n;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||=14,t.height||=14;let u=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId??t.id),m=d.svg(u),h=f(t,{});t.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=m.circle(0,0,t.width,{...h,stroke:o,strokeWidth:2}),_=s??c,v=(t.width??0)*5/14,y=m.circle(0,0,v,{...h,fill:_,stroke:_,strokeWidth:2,fillStyle:`solid`}),b=u.insert(()=>g,`:first-child`);if(b.insert(()=>y),t.look!==`handDrawn`&&b.attr(`class`,`outer-path`),a&&b.selectAll(`path`).attr(`style`,a),i&&b.selectAll(`path`).attr(`style`,i),t.width<25&&l&&t.look!==`handDrawn`){let t=e.node()?.ownerSVGElement?.id??``,n=t?`${t}-drop-shadow-small`:`drop-shadow-small`;b.attr(`style`,`filter:url(#${n})`)}return T(t,b),t.intersect=function(e){return W.circle(t,(t.width??0)/2,e)},u}e(ft,`stateEnd`);function pt(e,t,{config:{themeVariables:n}}){let{lineColor:r,nodeShadow:i}=n;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||=14,t.height||=14;let a=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),o;if(t.look===`handDrawn`){let e=d.svg(a).circle(0,0,t.width,m(r));o=a.insert(()=>e),o.attr(`class`,`state-start`).attr(`r`,(t.width??7)/2).attr(`width`,t.width??14).attr(`height`,t.height??14)}else o=a.insert(`circle`,`:first-child`),o.attr(`class`,`state-start`).attr(`r`,(t.width??7)/2).attr(`width`,t.width??14).attr(`height`,t.height??14);if(t.width<25&&i&&t.look!==`handDrawn`){let t=e.node()?.ownerSVGElement?.id??``,n=t?`${t}-drop-shadow-small`:`drop-shadow-small`;o.attr(`style`,`filter:url(#${n})`)}return T(t,o),t.intersect=function(e){return W.circle(t,(t.width??7)/2,e)},a}e(pt,`stateStart`);var mt=8;async function ht(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let i=t?.padding??8,a=t.look===`neo`?28:i,o=t.look===`neo`?12:i,{shapeSvg:s,bbox:c}=await C(e,t,E(t)),l=(t?.width??c.width)+2*mt+a,u=(t?.height??c.height)+o,m=l-2*mt,h=u,_=-l/2,v=-u/2,y=[{x:0,y:0},{x:m,y:0},{x:m,y:-h},{x:0,y:-h},{x:0,y:0},{x:-8,y:0},{x:m+8,y:0},{x:m+8,y:-h},{x:-8,y:-h},{x:-8,y:0}];if(t.look===`handDrawn`){let e=d.svg(s),n=f(t,{}),r=e.rectangle(_,v,m+16,h,n),i=e.line(_+mt,v,_+mt,v+h,n),a=e.line(_+mt+m,v,_+mt+m,v+h,n);s.insert(()=>i,`:first-child`),s.insert(()=>a,`:first-child`);let o=s.insert(()=>r,`:first-child`),{cssStyles:c}=t;o.attr(`class`,`basic label-container`).attr(`style`,g(c)),T(t,o)}else{let e=q(s,m,h,y);r&&e.attr(`style`,r),T(t,e)}return t.intersect=function(e){return W.polygon(t,y,e)},s}e(ht,`subroutine`);var gt=.2;async function _t(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.height=Math.max((t?.height??0)-o*2,10),t.width=Math.max((t?.width??0)-a*2-gt*(t.height+o*2),10));let{shapeSvg:s,bbox:c}=await C(e,t,E(t)),l=(t?.height?t?.height:c.height)+o*2,u=gt*l,m=gt*l,h=(t?.width?t?.width:c.width)+a*2+u-u,g=l,_=-h/2,v=-g/2,{cssStyles:y}=t,b=d.svg(s),x=f(t,{}),S=[{x:_-u/2,y:v},{x:_+h+u/2,y:v},{x:_+h+u/2,y:v+g},{x:_-u/2,y:v+g}],w=[{x:_+h-u/2,y:v+g},{x:_+h+u/2,y:v+g},{x:_+h+u/2,y:v+g-m}];t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let O=D(S),k=b.path(O,x),A=D(w),j=b.path(A,{...x,fillStyle:`solid`}),M=s.insert(()=>j,`:first-child`);return M.insert(()=>k,`:first-child`),M.attr(`class`,`basic label-container outer-path`),y&&t.look!==`handDrawn`&&M.selectAll(`path`).attr(`style`,y),r&&t.look!==`handDrawn`&&M.selectAll(`path`).attr(`style`,r),T(t,M),t.intersect=function(e){return W.polygon(t,S,e)},s}e(_t,`taggedRect`);async function vt(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await C(e,t,E(t)),s=Math.max(a.width+(t.padding??0)*2,t?.width??0),c=Math.max(a.height+(t.padding??0)*2,t?.height??0),l=c/8,u=.2*s,m=.2*c,h=c+l,{cssStyles:g}=t,_=d.svg(i),v=f(t,{});t.look!==`handDrawn`&&(v.roughness=0,v.fillStyle=`solid`);let y=[{x:-s/2-s/2*.1,y:h/2},...O(-s/2-s/2*.1,h/2,s/2+s/2*.1,h/2,l,.8),{x:s/2+s/2*.1,y:-h/2},{x:-s/2-s/2*.1,y:-h/2}],b=-s/2+s/2*.1,x=-h/2-m*.4,S=[{x:b+s-u,y:(x+c)*1.3},{x:b+s,y:x+c-m},{x:b+s,y:(x+c)*.9},...O(b+s,(x+c)*1.25,b+s-u,(x+c)*1.3,-c*.02,.5)],w=D(y),k=_.path(w,v),A=D(S),j=_.path(A,{...v,fillStyle:`solid`}),M=i.insert(()=>j,`:first-child`);return M.insert(()=>k,`:first-child`),M.attr(`class`,`basic label-container outer-path`),g&&t.look!==`handDrawn`&&M.selectAll(`path`).attr(`style`,g),r&&t.look!==`handDrawn`&&M.selectAll(`path`).attr(`style`,r),M.attr(`transform`,`translate(0,${-l/2})`),o.attr(`transform`,`translate(${-s/2+(t.padding??0)-(a.x-(a.left??0))},${-c/2+(t.padding??0)-l/2-(a.y-(a.top??0))})`),T(t,M),t.intersect=function(e){return W.polygon(t,y,e)},i}e(vt,`taggedWaveEdgedRectangle`);async function yt(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await C(e,t,E(t)),o=Math.max(a.width+(t.padding??0),t?.width||0),s=Math.max(a.height+(t.padding??0),t?.height||0),c=-o/2,l=-s/2,u=i.insert(`rect`,`:first-child`);return u.attr(`class`,`text`).attr(`style`,r).attr(`rx`,0).attr(`ry`,0).attr(`x`,c).attr(`y`,l).attr(`width`,o).attr(`height`,s),T(t,u),t.intersect=function(e){return W.rect(t,e)},i}e(yt,`text`);var bt=e((e,t,n,r,i,a)=>`M${e},${t} + a${i},${a} 0,0,1 0,${-r} + l${n},0 + a${i},${a} 0,0,1 0,${r} + M${n},${-r} + a${i},${a} 0,0,0 0,${r} + l${-n},0`,`createCylinderPathD`),xt=e((e,t,n,r,i,a)=>[`M${e},${t}`,`M${e+n},${t}`,`a${i},${a} 0,0,0 0,${-r}`,`l${-n},0`,`a${i},${a} 0,0,0 0,${r}`,`l${n},0`].join(` `),`createOuterCylinderPathD`),St=e((e,t,n,r,i,a)=>[`M${e+n/2},${-r/2}`,`a${i},${a} 0,0,0 0,${r}`].join(` `),`createInnerCylinderPathD`),Ct=5,wt=10;async function Tt(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?12:i/2;if(t.width||t.height){let e=t.height??0;t.height=(t.height??0)-a,t.heighta,`:first-child`),v=o.insert(()=>i,`:first-child`),v.attr(`class`,`basic label-container`),_&&v.attr(`style`,_)}else{let e=bt(0,0,h,l,m,u);v=o.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container`).attr(`style`,g(_)).attr(`style`,r),v.attr(`class`,`basic label-container outer-path`),_&&v.selectAll(`path`).attr(`style`,_),r&&v.selectAll(`path`).attr(`style`,r)}return v.attr(`label-offset-x`,m),v.attr(`transform`,`translate(${-h/2}, ${l/2} )`),c.attr(`transform`,`translate(${-(s.width/2)-m-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),T(t,v),t.intersect=function(e){let n=W.rect(t,e),r=n.y-(t.y??0);if(u!=0&&(Math.abs(r)<(t.height??0)/2||Math.abs(r)==(t.height??0)/2&&Math.abs(n.x-(t.x??0))>(t.width??0)/2-m)){let i=m*m*(1-r*r/(u*u));i!=0&&(i=Math.sqrt(Math.abs(i))),i=m-i,e.x-(t.x??0)>0&&(i=-i),n.x+=i}return n},o}e(Tt,`tiltedCylinder`);async function Et(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let i=t.padding??0,a=(t.look,i),o=t.look===`neo`?i*2:i,{shapeSvg:s,bbox:c}=await C(e,t,E(t)),l=(t?.height??c.height)+a,u=(t?.width??c.width)+o,m=[{x:-3*l/6,y:0},{x:u+3*l/6,y:0},{x:u,y:-l},{x:0,y:-l}],h,{cssStyles:g}=t;if(t.look===`handDrawn`){let e=d.svg(s),n=f(t,{}),r=D(m),i=e.path(r,n);h=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-u/2}, ${l/2})`),g&&h.attr(`style`,g)}else h=q(s,u,l,m);return r&&h.attr(`style`,r),t.width=u,t.height=l,T(t,h),t.intersect=function(e){return W.polygon(t,m,e)},s}e(Et,`trapezoid`);async function Dt(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.height=(t.height??0)-o*2,t.height<5&&(t.height=5),t.width=(t.width??0)-a*2,t.width<15&&(t.width=15));let{shapeSvg:s,bbox:c}=await C(e,t,E(t)),l=(t?.width?t?.width:c.width)+a*2,u=(t?.height?t?.height:c.height)+o*2,{cssStyles:m}=t,h=d.svg(s),g=f(t,{});t.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=[{x:-l/2*.8,y:-u/2},{x:l/2*.8,y:-u/2},{x:l/2,y:-u/2*.6},{x:l/2,y:u/2},{x:-l/2,y:u/2},{x:-l/2,y:-u/2*.6}],v=D(_),y=h.path(v,g),b=s.insert(()=>y,`:first-child`);return b.attr(`class`,`basic label-container outer-path`),m&&t.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,m),r&&t.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,r),T(t,b),t.intersect=function(e){return W.polygon(t,_,e)},s}e(Dt,`trapezoidalPentagon`);var Ot=10,kt=10;async function At(e,t){let{labelStyles:i,nodeStyles:a}=p(t);t.labelStyle=i;let o=t.padding??0,s=t.look===`neo`?o*2:o;(t.width||t.height)&&(t.width=((t?.width??0)-s)/2,t.widthO,`:first-child`).attr(`transform`,`translate(${-_/2}, ${_/2})`).attr(`class`,`outer-path`);return b&&t.look!==`handDrawn`&&k.selectChildren(`path`).attr(`style`,b),a&&t.look!==`handDrawn`&&k.selectChildren(`path`).attr(`style`,a),t.width=g,t.height=_,T(t,k),m.attr(`transform`,`translate(${-l.width/2-(l.x-(l.left??0))}, ${_/2-(l.height+(t.padding??0)/(h?2:1)-(l.y-(l.top??0)))})`),t.intersect=function(e){return n.info(`Triangle intersect`,t,y,e),W.polygon(t,y,e)},c}e(At,`triangle`);async function jt(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,s=!0;(t.width||t.height)&&(s=!1,t.width=(t?.width??0)-a*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-o*2,t.height<10&&(t.height=10));let{shapeSvg:c,bbox:l,label:u}=await C(e,t,E(t)),m=(t?.width?t?.width:l.width)+(a??0)*2,h=(t?.height?t?.height:l.height)+(o??0)*2,g=t.look===`neo`?h/4:h/8,_=h+(s?g:-g),{cssStyles:v}=t,y=14-m,b=y>0?y/2:0,x=d.svg(c),S=f(t,{});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let w=[{x:-m/2-b,y:_/2},...O(-m/2-b,_/2,m/2+b,_/2,g,.8),{x:m/2+b,y:-_/2},{x:-m/2-b,y:-_/2}],k=D(w),A=x.path(k,S),j=c.insert(()=>A,`:first-child`);return j.attr(`class`,`basic label-container outer-path`),v&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,r),j.attr(`transform`,`translate(0,${-g/2})`),u.attr(`transform`,`translate(${-m/2+(t.padding??0)-(l.x-(l.left??0))},${-h/2+(t.padding??0)-g-(l.y-(l.top??0))})`),T(t,j),t.intersect=function(e){return W.polygon(t,w,e)},c}e(jt,`waveEdgedRectangle`);async function Mt(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?20:i;if(t.width||t.height){t.width=t?.width??0,t.width<20&&(t.width=20),t.height=t?.height??0,t.height<10&&(t.height=10);let e=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-o-20/9*e),t.width-=a*2}let{shapeSvg:s,bbox:c}=await C(e,t,E(t)),l=(t?.width?t?.width:c.width)+a*2,u=(t?.height?t?.height:c.height)+o,m=u/8,h=u+m*2,{cssStyles:g}=t,_=d.svg(s),v=f(t,{});t.look!==`handDrawn`&&(v.roughness=0,v.fillStyle=`solid`);let y=[{x:-l/2,y:h/2},...O(-l/2,h/2,l/2,h/2,m,1),{x:l/2,y:-h/2},...O(l/2,-h/2,-l/2,-h/2,m,-1)],b=D(y),x=_.path(b,v),S=s.insert(()=>x,`:first-child`);return S.attr(`class`,`basic label-container`),g&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,g),r&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,r),T(t,S),t.intersect=function(e){return W.polygon(t,y,e)},s}e(Mt,`waveRectangle`);var Q=10;async function Nt(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-i*2-Q,10),t.height=Math.max((t?.height??0)-a*2-Q,10));let{shapeSvg:o,bbox:s,label:c}=await C(e,t,E(t)),l=(t?.width?t?.width:s.width)+i*2+Q,u=(t?.height?t?.height:s.height)+a*2+Q,m=l-Q,h=u-Q,g=-m/2,_=-h/2,{cssStyles:v}=t,y=d.svg(o),b=f(t,{}),x=[{x:g-Q,y:_-Q},{x:g-Q,y:_+h},{x:g+m,y:_+h},{x:g+m,y:_-Q}],S=`M${g-Q},${_-Q} L${g+m},${_-Q} L${g+m},${_+h} L${g-Q},${_+h} L${g-Q},${_-Q} + M${g-Q},${_} L${g+m},${_} + M${g},${_-Q} L${g},${_+h}`;t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let w=y.path(S,b),D=o.insert(()=>w,`:first-child`);return D.attr(`transform`,`translate(${Q/2}, ${Q/2})`),D.attr(`class`,`basic label-container outer-path`),v&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),c.attr(`transform`,`translate(${-(s.width/2)+Q/2-(s.x-(s.left??0))}, ${-(s.height/2)+Q/2-(s.y-(s.top??0))})`),T(t,D),t.intersect=function(e){return W.polygon(t,x,e)},o}e(Nt,`windowPane`);var Pt=new Set([`redux-color`,`redux-dark-color`]),Ft=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]);async function It(e,n){let r=n;r.alias&&(n.label=r.alias);let{theme:i,themeVariables:a}=l(),{rowEven:o,rowOdd:s,nodeBorder:c,borderColorArray:m}=a;if(n.look===`handDrawn`){let{themeVariables:t}=l(),{background:r}=t;await It(e,{...n,id:n.id+`-background`,domId:(n.domId||n.id)+`-background`,look:`default`,cssStyles:[`stroke: none`,`fill: ${r}`]})}let h=l();n.useHtmlLabels=h.htmlLabels;let g=h.er?.diagramPadding??10,_=h.er?.entityPadding??6,{cssStyles:y}=n,{labelStyles:b,nodeStyles:x}=p(n);if(r.attributes.length===0&&n.label){let t={rx:0,ry:0,labelPaddingX:g,labelPaddingY:g*1.5,classes:``};v(n.label,h)+t.labelPaddingX*20){let e=w.width+g*2-(A+j+M+N);A+=e/I,j+=e/I,M>0&&(M+=e/I),N>0&&(N+=e/I)}let te=A+j+M+N,L=d.svg(C),R=f(n,{});n.look!==`handDrawn`&&(R.roughness=0,R.fillStyle=`solid`);let ne=0;k.length>0&&(ne=k.reduce((e,t)=>e+(t?.rowHeight??0),0));let z=Math.max(ee.width+g*2,n?.width||0,te),B=Math.max((ne??0)+w.height,n?.height||0),V=-z/2,H=-B/2;if(C.selectAll(`g:not(:first-child)`).each((e,n,r)=>{let i=t(r[n]),a=i.attr(`transform`),o=0,s=0;if(a){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);e&&(o=parseFloat(e[1]),s=parseFloat(e[2]),i.attr(`class`).includes(`attribute-name`)?o+=A:i.attr(`class`).includes(`attribute-keys`)?o+=A+j:i.attr(`class`).includes(`attribute-comment`)&&(o+=A+j+M))}i.attr(`transform`,`translate(${V+g/2+o}, ${s+H+w.height+_/2})`)}),C.select(`.name`).attr(`transform`,`translate(`+-w.width/2+`, `+(H+_/2)+`)`),i!=null&&Pt.has(i)){let e=r.colorIndex??0;C.attr(`data-color-id`,`color-${e%m.length}`)}let re=L.rectangle(V,H,z,B,R),ie=C.insert(()=>re,`:first-child`).attr(`class`,`outer-path`).attr(`style`,y.join(``));O.push(0);for(let[e,t]of k.entries()){let n=(e+1)%2==0&&t.yOffset!==0,r=L.rectangle(V,w.height+H+t?.yOffset,z,t?.rowHeight,{...R,fill:n?o:s,stroke:c});C.insert(()=>r,`g.label`).attr(`style`,y.join(``)).attr(`class`,`row-rect-${n?`even`:`odd`}`)}let U=1e-4,G=Rt(V,w.height+H,z+V,w.height+H,U),K=L.polygon(G.map(e=>[e.x,e.y]),R);if(C.insert(()=>K).attr(`class`,`divider`),G=Rt(A+V,w.height+H,A+V,B+H,U),K=L.polygon(G.map(e=>[e.x,e.y]),R),C.insert(()=>K).attr(`class`,`divider`),P){let e=A+j+V;G=Rt(e,w.height+H,e,B+H,U),K=L.polygon(G.map(e=>[e.x,e.y]),R),C.insert(()=>K).attr(`class`,`divider`)}if(F){let e=A+j+M+V;G=Rt(e,w.height+H,e,B+H,U),K=L.polygon(G.map(e=>[e.x,e.y]),R),C.insert(()=>K).attr(`class`,`divider`)}for(let e of O){let t=w.height+H+e;G=Rt(V,t,z+V,t,U),K=L.polygon(G.map(e=>[e.x,e.y]),R),C.insert(()=>K).attr(`class`,`divider`)}if(T(n,ie),x&&n.look!==`handDrawn`)if(i!=null&&Ft.has(i))C.selectAll(`path`).attr(`style`,x);else{let e=x.split(`;`)?.filter(e=>e.includes(`stroke`))?.map(e=>`${e}`).join(`; `);C.selectAll(`path`).attr(`style`,e??``),C.selectAll(`.row-rect-even path`).attr(`style`,x)}return n.intersect=function(e){return W.rect(n,e)},C}e(It,`erBox`);async function Lt(e,n,r,i=0,a=0,s=[],c=``){let l=e.insert(`g`).attr(`class`,`label ${s.join(` `)}`).attr(`transform`,`translate(${i}, ${a})`).attr(`style`,c);n!==o(n)&&(n=o(n),n=n.replaceAll(`<`,`<`).replaceAll(`>`,`>`));let d=l.node().appendChild(await S(l,n,{width:v(n,r)+100,style:c,useHtmlLabels:r.htmlLabels},r));if(n.includes(`<`)||n.includes(`>`)){let e=d.children[0];for(e.textContent=e.textContent.replaceAll(`<`,`<`).replaceAll(`>`,`>`);e.childNodes[0];)e=e.childNodes[0],e.textContent=e.textContent.replaceAll(`<`,`<`).replaceAll(`>`,`>`)}let f=d.getBBox();if(u(r.htmlLabels)){let e=d.children[0];e.style.textAlign=`start`;let n=t(d);f=e.getBoundingClientRect(),n.attr(`width`,f.width),n.attr(`height`,f.height)}return f}e(Lt,`addText`);function Rt(e,t,n,r,i){return e===n?[{x:e-i/2,y:t},{x:e+i/2,y:t},{x:n+i/2,y:r},{x:n-i/2,y:r}]:[{x:e,y:t-i/2},{x:e,y:t+i/2},{x:n,y:r+i/2},{x:n,y:r-i/2}]}e(Rt,`lineToPolygon`);async function zt(e,t,n,r,i=n.class.padding??12){let a=r?0:3,o=e.insert(`g`).attr(`class`,E(t)).attr(`id`,t.domId||t.id),s=null,c=null,l=null,u=null,d=0,f=0,p=0;if(s=o.insert(`g`).attr(`class`,`annotation-group text`),t.annotations.length>0){let e=t.annotations[0];await Bt(s,{text:`\xAB${e}\xBB`},0),d=s.node().getBBox().height}c=o.insert(`g`).attr(`class`,`label-group text`),await Bt(c,t,0,[`font-weight: bolder`]);let m=c.node().getBBox();f=m.height,l=o.insert(`g`).attr(`class`,`members-group text`);let h=0;for(let e of t.members){let t=await Bt(l,e,h,[e.parseClassifier()]);h+=t+a}p=l.node().getBBox().height,p<=0&&(p=i/2),u=o.insert(`g`).attr(`class`,`methods-group text`);let g=0;for(let e of t.methods){let t=await Bt(u,e,g,[e.parseClassifier()]);g+=t+a}let _=o.node().getBBox();if(s!==null){let e=s.node().getBBox();s.attr(`transform`,`translate(${-e.width/2})`)}return c.attr(`transform`,`translate(${-m.width/2}, ${d})`),_=o.node().getBBox(),l.attr(`transform`,`translate(0, ${d+f+i*2})`),_=o.node().getBBox(),u.attr(`transform`,`translate(0, ${d+f+(p?p+i*4:i*2)})`),_=o.node().getBBox(),{shapeSvg:o,bbox:_}}e(zt,`textHelper`);async function Bt(n,r,i,a=[]){let o=n.insert(`g`).attr(`class`,`label`).attr(`style`,a.join(`; `)),d=l(),f=`useHtmlLabels`in r?r.useHtmlLabels:u(d.htmlLabels)??!0,p=``;p=`text`in r?r.text:r.label,!f&&p.startsWith(`\\`)&&(p=p.substring(1)),c(p)&&(f=!0);let m=await S(o,s(_(p)),{width:v(p,d)+50,classes:`markdown-node-label`,useHtmlLabels:f},d),h,g=1;if(f){let n=m.children[0],r=t(m);g=n.innerHTML.split(`
`).length,n.innerHTML.includes(``)&&(g+=n.innerHTML.split(``).length-1);let i=n.getElementsByTagName(`img`);if(i){let t=p.replace(/]*>/g,``).trim()===``;await Promise.all([...i].map(n=>new Promise(r=>{function i(){if(n.style.display=`flex`,n.style.flexDirection=`column`,t){let e=d.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,t=parseInt(e,10)*5+`px`;n.style.minWidth=t,n.style.maxWidth=t}else n.style.width=`100%`;r(n)}e(i,`setupImage`),setTimeout(()=>{n.complete&&i()}),n.addEventListener(`error`,i),n.addEventListener(`load`,i)})))}h=n.getBoundingClientRect(),r.attr(`width`,h.width),r.attr(`height`,h.height)}else{a.includes(`font-weight: bolder`)&&t(m).selectAll(`tspan`).attr(`font-weight`,``),g=m.children.length;let e=m.children[0];(m.textContent===``||m.textContent.includes(`>`))&&(e.textContent=p[0]+p.substring(1).replaceAll(`>`,`>`).replaceAll(`<`,`<`).trim(),p[1]===` `&&(e.textContent=e.textContent[0]+` `+e.textContent.substring(1))),e.textContent===`undefined`&&(e.textContent=``),h=m.getBBox()}return o.attr(`transform`,`translate(0,`+(-h.height/(2*g)+i)+`)`),h.height}e(Bt,`addText`);async function Vt(e,n){let i=r(),{themeVariables:a}=i,{useGradient:o}=a,s=i.class.padding??12,c=s,l=n.useHtmlLabels??u(i.htmlLabels)??!0,m=n;m.annotations=m.annotations??[],m.members=m.members??[],m.methods=m.methods??[];let{shapeSvg:h,bbox:g}=await zt(e,n,i,l,c),{labelStyles:_,nodeStyles:v}=p(n);n.labelStyle=_,n.cssStyles=m.styles||``;let y=m.styles?.join(`;`)||v||``;n.cssStyles||=y.replaceAll(`!important`,``).split(`;`);let b=m.members.length===0&&m.methods.length===0&&!i.class?.hideEmptyMembersBox,x=d.svg(h),S=f(n,{});n.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=Math.max(n.width??0,g.width),w=Math.max(n.height??0,g.height),E=(n.height??0)>g.height;m.members.length===0&&m.methods.length===0?w+=c:m.members.length>0&&m.methods.length===0&&(w+=c*2);let D=-C/2,O=-w/2,k=b?s*2:m.members.length===0&&m.methods.length===0?-s:0;E&&(k=s*2);let A=x.rectangle(D-s,O-s-(b?s:m.members.length===0&&m.methods.length===0?-s/2:0),C+2*s,w+2*s+k,S),j=h.insert(()=>A,`:first-child`);j.attr(`class`,`basic label-container outer-path`);let M=j.node().getBBox(),N=h.select(`.annotation-group`).node().getBBox().height-(b?s/2:0)||0,P=h.select(`.label-group`).node().getBBox().height-(b?s/2:0)||0,F=h.select(`.members-group`).node().getBBox().height-(b?s/2:0)||0,I=(N+P+O+s-(O-s-(b?s:m.members.length===0&&m.methods.length===0?-s/2:0)))/2;if(h.selectAll(`.text`).each((e,n,r)=>{let a=t(r[n]),o=a.attr(`transform`),u=0;if(o){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(o);e&&(u=parseFloat(e[2]))}let d=u+O+s-(b?s:m.members.length===0&&m.methods.length===0?-s/2:0);if(a.attr(`class`).includes(`methods-group`)){let e=Math.max(F,c/2);d=E?Math.max(I,N+P+e+O+c*2+s)+c*2:N+P+e+O+c*4+s}m.members.length===0&&m.methods.length===0&&i.class?.hideEmptyMembersBox&&(d=m.annotations.length>0?u-c:u),l||(d-=4);let f=D;(a.attr(`class`).includes(`label-group`)||a.attr(`class`).includes(`annotation-group`))&&(f=-a.node()?.getBBox().width/2||0,h.selectAll(`text`).each(function(e,t,n){window.getComputedStyle(n[t]).textAnchor===`middle`&&(f=0)})),a.attr(`transform`,`translate(${f}, ${d})`)}),m.members.length>0||m.methods.length>0||b){let e=N+P+O+s,t=x.line(M.x,e,M.x+M.width,e+.001,S);h.insert(()=>t).attr(`class`,`divider${n.look===`neo`&&!o?` neo-line`:``}`).attr(`style`,y)}if(b||m.members.length>0||m.methods.length>0){let e=N+P+F+O+c*2+s,t=x.line(M.x,E?Math.max(I,e):e,M.x+M.width,(E?Math.max(I,e):e)+.001,S);h.insert(()=>t).attr(`class`,`divider${n.look===`neo`&&!o?` neo-line`:``}`).attr(`style`,y)}if(m.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,y),j.select(`:nth-child(2)`).attr(`style`,y),h.selectAll(`.divider`).select(`path`).attr(`style`,y),n.labelStyle?h.selectAll(`span`).attr(`style`,n.labelStyle):h.selectAll(`span`).attr(`style`,y),!l){let e=RegExp(/color\s*:\s*([^;]*)/),t=e.exec(y);if(t){let e=t[0].replace(`color`,`fill`);h.selectAll(`tspan`).attr(`style`,e)}else if(_){let t=e.exec(_);if(t){let e=t[0].replace(`color`,`fill`);h.selectAll(`tspan`).attr(`style`,e)}}}return T(n,j),n.intersect=function(e){return W.rect(n,e)},h}e(Vt,`classBox`);async function Ht(e,n){let{labelStyles:i,nodeStyles:a}=p(n);n.labelStyle=i;let o=n,s=n,c=`verifyMethod`in n,l=E(n),{themeVariables:u}=r(),{borderColorArray:m,requirementEdgeLabelBackground:h}=u,g=e.insert(`g`).attr(`class`,l).attr(`id`,n.domId??n.id),_;_=c?await $(g,`<<${o.type}>>`,0,n.labelStyle):await $(g,`<<Element>>`,0,n.labelStyle);let v=_,y=await $(g,o.name,v,n.labelStyle+`; font-weight: bold;`);if(v+=y+20,c){let e=await $(g,`${o.requirementId?`ID: ${o.requirementId}`:``}`,v,n.labelStyle);v+=e;let t=await $(g,`${o.text?`Text: ${o.text}`:``}`,v,n.labelStyle);v+=t;let r=await $(g,`${o.risk?`Risk: ${o.risk}`:``}`,v,n.labelStyle);v+=r,await $(g,`${o.verifyMethod?`Verification: ${o.verifyMethod}`:``}`,v,n.labelStyle)}else{let e=await $(g,`${s.type?`Type: ${s.type}`:``}`,v,n.labelStyle);v+=e,await $(g,`${s.docRef?`Doc Ref: ${s.docRef}`:``}`,v,n.labelStyle)}let b=(g.node()?.getBBox().width??200)+20,x=(g.node()?.getBBox().height??200)+20,S=-b/2,C=-x/2,w=d.svg(g),D=f(n,{});n.look!==`handDrawn`&&(D.roughness=0,D.fillStyle=`solid`);let O=w.rectangle(S,C,b,x,D),k=g.insert(()=>O,`:first-child`);if(k.attr(`class`,`basic label-container outer-path`).attr(`style`,a),m?.length){let e=n.colorIndex??0;g.attr(`data-color-id`,`color-${e%m.length}`)}if(g.selectAll(`.label`).each((e,n,r)=>{let i=t(r[n]),a=i.attr(`transform`),o=0,s=0;if(a){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);e&&(o=parseFloat(e[1]),s=parseFloat(e[2]))}let c=s-x/2,l=S+20/2;(n===0||n===1)&&(l=o),i.attr(`transform`,`translate(${l}, ${c+20})`)}),v>_+y+20){let e=C+_+y+20,t;if(n.look===`neo`){let n=.001,r=[[S,e],[S+b,e],[S+b,e+n],[S,e+n]];t=w.polygon(r,D)}else t=w.line(S,e,S+b,e,D);g.insert(()=>t).attr(`class`,`divider`)}return T(n,k),n.intersect=function(e){return W.rect(n,e)},a&&n.look!==`handDrawn`&&(h||m?.length)&&g.selectAll(`path`).attr(`style`,a),g}e(Ht,`requirementBox`);async function $(e,n,i,a=``){if(n===``)return 0;let o=e.insert(`g`).attr(`class`,`label`).attr(`style`,a),c=r(),l=c.htmlLabels??!0,u=await S(o,s(_(n)),{width:v(n,c)+50,classes:`markdown-node-label`,useHtmlLabels:l,style:a},c),d;if(l){let e=u.children[0],n=t(u);d=e.getBoundingClientRect(),n.attr(`width`,d.width),n.attr(`height`,d.height)}else{let e=u.children[0];for(let t of e.children)a&&t.setAttribute(`style`,a);d=u.getBBox(),d.height+=6}return o.attr(`transform`,`translate(${-d.width/2},${-d.height/2+i})`),d.height}e($,`addText`);var Ut=e(e=>{switch(e){case`Very High`:return`red`;case`High`:return`orange`;case`Medium`:return null;case`Low`:return`blue`;case`Very Low`:return`lightblue`}},`colorFromPriority`);async function Wt(e,t,{config:n}){let{labelStyles:r,nodeStyles:i}=p(t);t.labelStyle=r||``;let a=t.width;t.width=(t.width??200)-10;let{shapeSvg:o,bbox:s,label:c}=await C(e,t,E(t)),l=t.padding||10,u=``,m;`ticket`in t&&t.ticket&&n?.kanban?.ticketBaseUrl&&(u=n?.kanban?.ticketBaseUrl.replace(`#TICKET#`,t.ticket),m=o.insert(`svg:a`,`:first-child`).attr(`class`,`kanban-ticket-link`).attr(`xlink:href`,u).attr(`target`,`_blank`));let h={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||``,width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1},g,_;m?{label:g,bbox:_}=await w(m,`ticket`in t&&t.ticket||``,h):{label:g,bbox:_}=await w(o,`ticket`in t&&t.ticket||``,h);let{label:v,bbox:y}=await w(o,`assigned`in t&&t.assigned||``,h);t.width=a;let b=t?.width||0,x=Math.max(_.height,y.height)/2,S=Math.max(s.height+20,t?.height||0)+x,D=-b/2,O=-S/2;c.attr(`transform`,`translate(`+(l-b/2)+`, `+(-x-s.height/2)+`)`),g.attr(`transform`,`translate(`+(l-b/2)+`, `+(-x+s.height/2)+`)`),v.attr(`transform`,`translate(`+(l+b/2-y.width-20)+`, `+(-x+s.height/2)+`)`);let k,{rx:A,ry:j}=t,{cssStyles:M}=t;if(t.look===`handDrawn`){let e=d.svg(o),n=f(t,{}),r=A||j?e.path(N(D,O,b,S,A||0),n):e.rectangle(D,O,b,S,n);k=o.insert(()=>r,`:first-child`),k.attr(`class`,`basic label-container`).attr(`style`,M||null)}else{k=o.insert(`rect`,`:first-child`),k.attr(`class`,`basic label-container __APA__`).attr(`style`,i).attr(`rx`,A??5).attr(`ry`,j??5).attr(`x`,D).attr(`y`,O).attr(`width`,b).attr(`height`,S);let e=`priority`in t&&t.priority;if(e){let t=o.append(`line`),n=D+2,r=O+Math.floor((A??0)/2),i=O+S-Math.floor((A??0)/2);t.attr(`x1`,n).attr(`y1`,r).attr(`x2`,n).attr(`y2`,i).attr(`stroke-width`,`4`).attr(`stroke`,Ut(e))}}return T(t,k),t.height=S,t.intersect=function(e){return W.rect(t,e)},o}e(Wt,`kanbanItem`);async function Gt(e,t){let{labelStyles:r,nodeStyles:i}=p(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,halfPadding:s,label:c}=await C(e,t,E(t)),l=o.width+10*s,u=o.height+8*s,m=.15*l,{cssStyles:h}=t,_=o.width+20,v=o.height+20,y=Math.max(l,_),b=Math.max(u,v);c.attr(`transform`,`translate(${-o.width/2}, ${-o.height/2})`);let x,S=`M0 0 + a${m},${m} 1 0,0 ${y*.25},${-1*b*.1} + a${m},${m} 1 0,0 ${y*.25},0 + a${m},${m} 1 0,0 ${y*.25},0 + a${m},${m} 1 0,0 ${y*.25},${b*.1} + + a${m},${m} 1 0,0 ${y*.15},${b*.33} + a${m*.8},${m*.8} 1 0,0 0,${b*.34} + a${m},${m} 1 0,0 ${-1*y*.15},${b*.33} + + a${m},${m} 1 0,0 ${-1*y*.25},${b*.15} + a${m},${m} 1 0,0 ${-1*y*.25},0 + a${m},${m} 1 0,0 ${-1*y*.25},0 + a${m},${m} 1 0,0 ${-1*y*.25},${-1*b*.15} + + a${m},${m} 1 0,0 ${-1*y*.1},${-1*b*.33} + a${m*.8},${m*.8} 1 0,0 0,${-1*b*.34} + a${m},${m} 1 0,0 ${y*.1},${-1*b*.33} + H0 V0 Z`;if(t.look===`handDrawn`){let e=d.svg(a),n=f(t,{}),r=e.path(S,n);x=a.insert(()=>r,`:first-child`),x.attr(`class`,`basic label-container`).attr(`style`,g(h))}else x=a.insert(`path`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,i).attr(`d`,S);return x.attr(`transform`,`translate(${-y/2}, ${-b/2})`),T(t,x),t.calcIntersect=function(e,t){return W.rect(e,t)},t.intersect=function(e){return n.info(`Bang intersect`,t,e),W.rect(t,e)},a}e(Gt,`bang`);async function Kt(e,t){let{labelStyles:r,nodeStyles:i}=p(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,halfPadding:s,label:c}=await C(e,t,E(t)),l=o.width+2*s,u=o.height+2*s,m=.15*l,h=.25*l,_=.35*l,v=.2*l,{cssStyles:y}=t,b,x=`M0 0 + a${m},${m} 0 0,1 ${l*.25},${-1*l*.1} + a${_},${_} 1 0,1 ${l*.4},${-1*l*.1} + a${h},${h} 1 0,1 ${l*.35},${l*.2} + + a${m},${m} 1 0,1 ${l*.15},${u*.35} + a${v},${v} 1 0,1 ${-1*l*.15},${u*.65} + + a${h},${m} 1 0,1 ${-1*l*.25},${l*.15} + a${_},${_} 1 0,1 ${-1*l*.5},0 + a${m},${m} 1 0,1 ${-1*l*.25},${-1*l*.15} + + a${m},${m} 1 0,1 ${-1*l*.1},${-1*u*.35} + a${v},${v} 1 0,1 ${l*.1},${-1*u*.65} + H0 V0 Z`;if(t.look===`handDrawn`){let e=d.svg(a),n=f(t,{}),r=e.path(x,n);b=a.insert(()=>r,`:first-child`),b.attr(`class`,`basic label-container`).attr(`style`,g(y))}else b=a.insert(`path`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,i).attr(`d`,x);return c.attr(`transform`,`translate(${-o.width/2}, ${-o.height/2})`),b.attr(`transform`,`translate(${-l/2}, ${-u/2})`),T(t,b),t.calcIntersect=function(e,t){return W.rect(e,t)},t.intersect=function(e){return n.info(`Cloud intersect`,t,e),W.rect(t,e)},a}e(Kt,`cloud`);async function qt(e,t){let{labelStyles:n,nodeStyles:r}=p(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,halfPadding:o,label:s}=await C(e,t,E(t)),c=a.width+8*o,l=a.height+2*o,u=t.look===`neo`?` + M${-c/2} ${l/2-5} + v${-l+10} + q0,-5 5,-5 + h${c-10} + q5,0 5,5 + v${l-5} + H${-c/2} + Z + `:` + M${-c/2} ${l/2-5} + v${-l+10} + q0,-5 5,-5 + h${c-10} + q5,0 5,5 + v${l-10} + q0,5 -5,5 + h${-(c-10)} + q-5,0 -5,-5 + Z + `;if(!t.domId)throw Error(`defaultMindmapNode: node "${t.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let d=i.append(`path`).attr(`id`,t.domId).attr(`class`,`node-bkg node-`+t.type).attr(`style`,r).attr(`d`,u);return i.append(`line`).attr(`class`,`node-line-`).attr(`x1`,-c/2).attr(`y1`,l/2).attr(`x2`,c/2).attr(`y2`,l/2),s.attr(`transform`,`translate(${-a.width/2}, ${-a.height/2})`),i.append(()=>s.node()),T(t,d),t.calcIntersect=function(e,t){return W.rect(e,t)},t.intersect=function(e){return W.rect(t,e)},i}e(qt,`defaultMindmapNode`);async function Jt(e,t){return ue(e,t,{padding:t.padding??0})}e(Jt,`mindmapCircle`);var Yt=[{semanticName:`Process`,name:`Rectangle`,shortName:`rect`,description:`Standard process shape`,aliases:[`proc`,`process`,`rectangle`],internalAliases:[`squareRect`],handler:lt},{semanticName:`Event`,name:`Rounded Rectangle`,shortName:`rounded`,description:`Represents an event`,aliases:[`event`],internalAliases:[`roundedRect`],handler:ot},{semanticName:`Terminal Point`,name:`Stadium`,shortName:`stadium`,description:`Terminal point`,aliases:[`terminal`,`pill`],handler:ut},{semanticName:`Subprocess`,name:`Framed Rectangle`,shortName:`fr-rect`,description:`Subprocess`,aliases:[`subprocess`,`subproc`,`framed-rectangle`,`subroutine`],handler:ht},{semanticName:`Database`,name:`Cylinder`,shortName:`cyl`,description:`Database storage`,aliases:[`db`,`database`,`cylinder`],handler:Se},{semanticName:`Data Store`,name:`Data Store`,shortName:`datastore`,description:`Data flow diagram data store`,aliases:[`data-store`],handler:we},{semanticName:`Start`,name:`Circle`,shortName:`circle`,description:`Starting point`,aliases:[`circ`],handler:ue},{semanticName:`Bang`,name:`Bang`,shortName:`bang`,description:`Bang`,aliases:[`bang`],handler:Gt},{semanticName:`Cloud`,name:`Cloud`,shortName:`cloud`,description:`cloud`,aliases:[`cloud`],handler:Kt},{semanticName:`Decision`,name:`Diamond`,shortName:`diam`,description:`Decision-making step`,aliases:[`decision`,`diamond`,`question`],handler:rt},{semanticName:`Prepare Conditional`,name:`Hexagon`,shortName:`hex`,description:`Preparation or condition step`,aliases:[`hexagon`,`prepare`],handler:Pe},{semanticName:`Data Input/Output`,name:`Lean Right`,shortName:`lean-r`,description:`Represents input or output`,aliases:[`lean-right`,`in-out`],internalAliases:[`lean_right`],handler:We},{semanticName:`Data Input/Output`,name:`Lean Left`,shortName:`lean-l`,description:`Represents output or input`,aliases:[`lean-left`,`out-in`],internalAliases:[`lean_left`],handler:Ue},{semanticName:`Priority Action`,name:`Trapezoid Base Bottom`,shortName:`trap-b`,description:`Priority action`,aliases:[`priority`,`trapezoid-bottom`,`trapezoid`],handler:Et},{semanticName:`Manual Operation`,name:`Trapezoid Base Top`,shortName:`trap-t`,description:`Represents a manual task`,aliases:[`manual`,`trapezoid-top`,`inv-trapezoid`],internalAliases:[`inv_trapezoid`],handler:Ve},{semanticName:`Stop`,name:`Double Circle`,shortName:`dbl-circ`,description:`Represents a stop point`,aliases:[`double-circle`],internalAliases:[`doublecircle`],handler:Ee},{semanticName:`Text Block`,name:`Text Block`,shortName:`text`,description:`Text block`,handler:yt},{semanticName:`Card`,name:`Notched Rectangle`,shortName:`notch-rect`,description:`Represents a card`,aliases:[`card`,`notched-rectangle`],handler:ce},{semanticName:`Lined/Shaded Process`,name:`Lined Rectangle`,shortName:`lin-rect`,description:`Lined process shape`,aliases:[`lined-rectangle`,`lined-process`,`lin-proc`,`shaded-process`],handler:st},{semanticName:`Start`,name:`Small Circle`,shortName:`sm-circ`,description:`Small starting point`,aliases:[`start`,`small-circle`],internalAliases:[`stateStart`],handler:pt},{semanticName:`Stop`,name:`Framed Circle`,shortName:`fr-circ`,description:`Stop point`,aliases:[`stop`,`framed-circle`],internalAliases:[`stateEnd`],handler:ft},{semanticName:`Fork/Join`,name:`Filled Rectangle`,shortName:`fork`,description:`Fork or join in process flow`,aliases:[`join`],internalAliases:[`forkJoin`],handler:je},{semanticName:`Collate`,name:`Hourglass`,shortName:`hourglass`,description:`Represents a collate operation`,aliases:[`hourglass`,`collate`],handler:Fe},{semanticName:`Comment`,name:`Curly Brace`,shortName:`brace`,description:`Adds a comment`,aliases:[`comment`,`brace-l`],handler:pe},{semanticName:`Comment Right`,name:`Curly Brace`,shortName:`brace-r`,description:`Adds a comment`,handler:me},{semanticName:`Comment with braces on both sides`,name:`Curly Braces`,shortName:`braces`,description:`Adds a comment`,handler:he},{semanticName:`Com Link`,name:`Lightning Bolt`,shortName:`bolt`,description:`Communication link`,aliases:[`com-link`,`lightning-bolt`],handler:Ge},{semanticName:`Document`,name:`Document`,shortName:`doc`,description:`Represents a document`,aliases:[`doc`,`document`],handler:jt},{semanticName:`Delay`,name:`Half-Rounded Rectangle`,shortName:`delay`,description:`Represents a delay`,aliases:[`half-rounded-rectangle`],handler:Me},{semanticName:`Direct Access Storage`,name:`Horizontal Cylinder`,shortName:`h-cyl`,description:`Direct access storage`,aliases:[`das`,`horizontal-cylinder`],handler:Tt},{semanticName:`Disk Storage`,name:`Lined Cylinder`,shortName:`lin-cyl`,description:`Disk storage`,aliases:[`disk`,`lined-cylinder`],handler:Ze},{semanticName:`Display`,name:`Curved Trapezoid`,shortName:`curv-trap`,description:`Represents a display`,aliases:[`curved-trapezoid`,`display`],handler:ge},{semanticName:`Divided Process`,name:`Divided Rectangle`,shortName:`div-rect`,description:`Divided process shape`,aliases:[`div-proc`,`divided-rectangle`,`divided-process`],handler:Te},{semanticName:`Extract`,name:`Triangle`,shortName:`tri`,description:`Extraction process`,aliases:[`extract`,`triangle`],handler:At},{semanticName:`Internal Storage`,name:`Window Pane`,shortName:`win-pane`,description:`Internal storage`,aliases:[`internal-storage`,`window-pane`],handler:Nt},{semanticName:`Junction`,name:`Filled Circle`,shortName:`f-circ`,description:`Junction point`,aliases:[`junction`,`filled-circle`],handler:De},{semanticName:`Loop Limit`,name:`Trapezoidal Pentagon`,shortName:`notch-pent`,description:`Loop limit step`,aliases:[`loop-limit`,`notched-pentagon`],handler:Dt},{semanticName:`Manual File`,name:`Flipped Triangle`,shortName:`flip-tri`,description:`Manual file operation`,aliases:[`manual-file`,`flipped-triangle`],handler:Ae},{semanticName:`Manual Input`,name:`Sloped Rectangle`,shortName:`sl-rect`,description:`Manual input step`,aliases:[`manual-input`,`sloped-rectangle`],handler:ct},{semanticName:`Multi-Document`,name:`Stacked Document`,shortName:`docs`,description:`Multiple documents`,aliases:[`documents`,`st-doc`,`stacked-document`],handler:et},{semanticName:`Multi-Process`,name:`Stacked Rectangle`,shortName:`st-rect`,description:`Multiple processes`,aliases:[`procs`,`processes`,`stacked-rectangle`],handler:$e},{semanticName:`Stored Data`,name:`Bow Tie Rectangle`,shortName:`bow-rect`,description:`Stored data`,aliases:[`stored-data`,`bow-tie-rectangle`],handler:oe},{semanticName:`Summary`,name:`Crossed Circle`,shortName:`cross-circ`,description:`Summary`,aliases:[`summary`,`crossed-circle`],handler:fe},{semanticName:`Tagged Document`,name:`Tagged Document`,shortName:`tag-doc`,description:`Tagged document`,aliases:[`tag-doc`,`tagged-document`],handler:vt},{semanticName:`Tagged Process`,name:`Tagged Rectangle`,shortName:`tag-rect`,description:`Tagged process`,aliases:[`tagged-rectangle`,`tag-proc`,`tagged-process`],handler:_t},{semanticName:`Paper Tape`,name:`Flag`,shortName:`flag`,description:`Paper tape`,aliases:[`paper-tape`],handler:Mt},{semanticName:`Odd`,name:`Odd`,shortName:`odd`,description:`Odd shape`,internalAliases:[`rect_left_inv_arrow`],handler:it},{semanticName:`Lined Document`,name:`Lined Document`,shortName:`lin-doc`,description:`Lined document`,aliases:[`lined-document`],handler:Qe}],Xt=e(()=>{let e=[...Object.entries({state:dt,choice:le,note:tt,rectWithTitle:at,labelRect:He,iconSquare:ze,iconCircle:Le,icon:Ie,iconRounded:Re,imageSquare:Be,anchor:G,kanbanItem:Wt,mindmapCircle:Jt,defaultMindmapNode:qt,classBox:Vt,erBox:It,requirementBox:Ht}),...Yt.flatMap(e=>[e.shortName,...`aliases`in e?e.aliases:[],...`internalAliases`in e?e.internalAliases:[]].map(t=>[t,e.handler]))];return Object.fromEntries(e)},`generateShapeMap`)();function Zt(e){return e in Xt}e(Zt,`isValidShape`);var Qt=new Map;async function $t(e,t,n){let r,i;t.shape===`rect`&&(t.rx&&t.ry?t.shape=`roundedRect`:t.shape=`squareRect`);let a=t.shape?Xt[t.shape]:void 0;if(!a)throw Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let o;n.config.securityLevel===`sandbox`?o=`_top`:t.linkTarget&&(o=t.linkTarget||`_blank`),r=e.insert(`svg:a`).attr(`xlink:href`,t.link).attr(`target`,o??null),i=await a(r,t,n)}else i=await a(e,t,n),r=i;return r.attr(`data-look`,g(t.look)),t.tooltip&&i.attr(`title`,t.tooltip),Qt.set(t.id,r),t.haveCallback&&r.attr(`class`,r.attr(`class`)+` clickable`),r}e($t,`insertNode`);var en=e((e,t)=>{Qt.set(t.id,e)},`setNodeElem`),tn=e(()=>{Qt.clear()},`clear`),nn=e(e=>{let t=Qt.get(e.id);n.trace(`Transforming node`,e.diff,e,`translate(`+(e.x-e.width/2-5)+`, `+e.width/2+`)`);let r=e.diff||0;return e.clusterNode?t.attr(`transform`,`translate(`+(e.x+r-e.width/2)+`, `+(e.y-e.height/2-8)+`)`):t.attr(`transform`,`translate(`+e.x+`, `+e.y+`)`),r},`positionNode`);export{$t as a,nn as c,ee as i,en as l,tn as n,Zt as o,M as r,C as s,te as t,T as u}; \ No newline at end of file diff --git a/docs/dist/assets/chunk-IALYP65X-Bv3ioVcB.js b/docs/dist/assets/chunk-IALYP65X-Bv3ioVcB.js new file mode 100644 index 00000000..644af394 --- /dev/null +++ b/docs/dist/assets/chunk-IALYP65X-Bv3ioVcB.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";var t=class{constructor(e){this.init=e,this.records=this.init()}static{e(this,`ImperativeState`)}reset(){this.records=this.init()}};export{t}; \ No newline at end of file diff --git a/docs/dist/assets/chunk-KEUPHFFI-DMlFzrf2.js b/docs/dist/assets/chunk-KEUPHFFI-DMlFzrf2.js new file mode 100644 index 00000000..c0a65f0f --- /dev/null +++ b/docs/dist/assets/chunk-KEUPHFFI-DMlFzrf2.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{T as t}from"./chunk-V7P66DNM-D246Sefn.js";import{l as n}from"./chunk-Q52JI7PB-BeSPinqD.js";var r=e((e,r,o,s)=>{e.attr(`class`,o);let{width:c,height:l,x:u,y:d}=i(e,r);n(e,l,c,s);let f=a(u,d,c,l,r);e.attr(`viewBox`,f),t.debug(`viewBox configured: ${f} with padding: ${r}`)},`setupViewPortForSVG`),i=e((e,t)=>{let n=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:n.width+t*2,height:n.height+t*2,x:n.x,y:n.y}},`calculateDimensionsWithPadding`),a=e((e,t,n,r,i)=>`${e-i} ${t-i} ${n} ${r}`,`createViewBox`);export{r as t}; \ No newline at end of file diff --git a/docs/dist/assets/chunk-L44QOBYK-BUo4Kp3w.js b/docs/dist/assets/chunk-L44QOBYK-BUo4Kp3w.js new file mode 100644 index 00000000..ea55f157 --- /dev/null +++ b/docs/dist/assets/chunk-L44QOBYK-BUo4Kp3w.js @@ -0,0 +1,231 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{T as t}from"./chunk-V7P66DNM-D246Sefn.js";import{C as n,E as r,J as i,Q as a,Y as o,b as s,c,o as l,x as u}from"./chunk-Q52JI7PB-BeSPinqD.js";import{c as d,v as f}from"./chunk-BSZA5ISF-LqNHBHyp.js";import{r as p}from"./chunk-SNQTKDUU-CQmHT9KX.js";import{t as m}from"./chunk-7723GVCQ-CfHgq7qP.js";import{t as h}from"./chunk-KEUPHFFI-DMlFzrf2.js";var g=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,2],r=[1,3],i=[1,4],a=[2,4],o=[1,9],s=[1,11],c=[1,16],l=[1,17],u=[1,18],d=[1,19],f=[1,33],p=[1,20],m=[1,21],h=[1,22],g=[1,23],_=[1,24],v=[1,26],y=[1,27],b=[1,28],x=[1,29],S=[1,30],C=[1,31],w=[1,32],T=[1,35],E=[1,36],D=[1,37],O=[1,38],k=[1,34],A=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],j=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],M=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],N={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NL`,6:`SD`,14:`DESCR`,15:`-->`,16:`HIDE_EMPTY`,17:`scale`,18:`WIDTH`,19:`COMPOSIT_STATE`,20:`STRUCT_START`,21:`STRUCT_STOP`,22:`STATE_DESCR`,23:`AS`,24:`ID`,25:`FORK`,26:`JOIN`,27:`CHOICE`,28:`CONCURRENT`,29:`note`,31:`NOTE_TEXT`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,38:`CLICK`,39:`STRING`,40:`HREF`,41:`classDef`,42:`CLASSDEF_ID`,43:`CLASSDEF_STYLEOPTS`,44:`DEFAULT`,45:`style`,46:`STYLE_IDS`,47:`STYLEDEF_STYLEOPTS`,48:`class`,49:`CLASSENTITY_IDS`,50:`STYLECLASS`,51:`direction_tb`,52:`direction_bt`,53:`direction_rl`,54:`direction_lr`,56:`;`,57:`EDGE_STATE`,58:`STYLE_SEPARATOR`,59:`left_of`,60:`right_of`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.setRootDoc(a[s]),a[s];case 4:this.$=[];break;case 5:a[s]!=`nl`&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 6:case 7:this.$=a[s];break;case 8:this.$=`nl`;break;case 12:this.$=a[s];break;case 13:let e=a[s-1];e.description=r.trimColon(a[s]),this.$=e;break;case 14:this.$={stmt:`relation`,state1:a[s-2],state2:a[s]};break;case 15:let t=r.trimColon(a[s]);this.$={stmt:`relation`,state1:a[s-3],state2:a[s-1],description:t};break;case 19:this.$={stmt:`state`,id:a[s-3],type:`default`,description:``,doc:a[s-1]};break;case 20:var c=a[s],l=a[s-2].trim();if(a[s].match(`:`)){var u=a[s].split(`:`);c=u[0],l=[l,u[1]]}this.$={stmt:`state`,id:c,type:`default`,description:l};break;case 21:this.$={stmt:`state`,id:a[s-3],type:`default`,description:a[s-5],doc:a[s-1]};break;case 22:this.$={stmt:`state`,id:a[s],type:`fork`};break;case 23:this.$={stmt:`state`,id:a[s],type:`join`};break;case 24:this.$={stmt:`state`,id:a[s],type:`choice`};break;case 25:this.$={stmt:`state`,id:r.getDividerId(),type:`divider`};break;case 26:this.$={stmt:`state`,id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 29:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 30:case 31:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:this.$={stmt:`click`,id:a[s-3],url:a[s-2],tooltip:a[s-1]};break;case 33:this.$={stmt:`click`,id:a[s-3],url:a[s-1],tooltip:``};break;case 34:case 35:this.$={stmt:`classDef`,id:a[s-1].trim(),classes:a[s].trim()};break;case 36:this.$={stmt:`style`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 37:this.$={stmt:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:r.setDirection(`TB`),this.$={stmt:`dir`,value:`TB`};break;case 39:r.setDirection(`BT`),this.$={stmt:`dir`,value:`BT`};break;case 40:r.setDirection(`RL`),this.$={stmt:`dir`,value:`RL`};break;case 41:r.setDirection(`LR`),this.$={stmt:`dir`,value:`LR`};break;case 44:case 45:this.$={stmt:`state`,id:a[s].trim(),type:`default`,description:``};break;case 46:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break;case 47:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break}},`anonymous`),table:[{3:1,4:n,5:r,6:i},{1:[3]},{3:5,4:n,5:r,6:i},{3:6,4:n,5:r,6:i},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,7]),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(A,[2,11]),t(A,[2,12],{14:[1,40],15:[1,41]}),t(A,[2,16]),{18:[1,42]},t(A,[2,18],{20:[1,43]}),{23:[1,44]},t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(A,[2,28]),{34:[1,49]},{36:[1,50]},t(A,[2,31]),{13:51,24:f,57:k},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(j,[2,44],{58:[1,56]}),t(j,[2,45],{58:[1,57]}),t(A,[2,38]),t(A,[2,39]),t(A,[2,40]),t(A,[2,41]),t(A,[2,6]),t(A,[2,13]),{13:58,24:f,57:k},t(A,[2,17]),t(M,a,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(A,[2,29]),t(A,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(A,[2,14],{14:[1,71]}),{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,72],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(A,[2,34]),t(A,[2,35]),t(A,[2,36]),t(A,[2,37]),t(j,[2,46]),t(j,[2,47]),t(A,[2,15]),t(A,[2,19]),t(M,a,{7:78}),t(A,[2,26]),t(A,[2,27]),{5:[1,79]},{5:[1,80]},{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,81],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,32]),t(A,[2,33]),t(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};N.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e(function(t,n,r,i){function a(){let e=n.yytext.indexOf(`%%`);if(e===0)return!1;if(e>0){let r=n.yytext.slice(0,e),i=n.yytext.slice(e);i&&t.lexer.unput(i),n.yytext=r}return!0}switch(e(a,`processId`),r){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:break;case 13:return this.pushState(`SCALE`),17;case 14:return 18;case 15:this.popState();break;case 16:return this.begin(`acc_title`),33;case 17:return this.popState(),`acc_title_value`;case 18:return this.begin(`acc_descr`),35;case 19:return this.popState(),`acc_descr_value`;case 20:this.begin(`acc_descr_multiline`);break;case 21:this.popState();break;case 22:return`acc_descr_multiline_value`;case 23:return this.pushState(`CLASSDEF`),41;case 24:return this.popState(),this.pushState(`CLASSDEFID`),`DEFAULT_CLASSDEF_ID`;case 25:return this.popState(),this.pushState(`CLASSDEFID`),42;case 26:return this.popState(),43;case 27:return this.pushState(`CLASS`),48;case 28:return this.popState(),this.pushState(`CLASS_STYLE`),49;case 29:return this.popState(),50;case 30:return this.pushState(`STYLE`),45;case 31:return this.popState(),this.pushState(`STYLEDEF_STYLES`),46;case 32:return this.popState(),47;case 33:return this.pushState(`SCALE`),17;case 34:return 18;case 35:this.popState();break;case 36:this.pushState(`STATE`);break;case 37:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),26;case 39:return this.popState(),n.yytext=n.yytext.slice(0,-10).trim(),27;case 40:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),25;case 41:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),26;case 42:return this.popState(),n.yytext=n.yytext.slice(0,-10).trim(),27;case 43:return 51;case 44:return 52;case 45:return 53;case 46:return 54;case 47:this.pushState(`STATE_STRING`);break;case 48:return this.pushState(`STATE_ID`),`AS`;case 49:return a()?(this.popState(),`ID`):void 0;case 50:this.popState();break;case 51:return`STATE_DESCR`;case 52:return 19;case 53:this.popState();break;case 54:return this.popState(),this.pushState(`struct`),20;case 55:return this.popState(),21;case 56:break;case 57:return this.begin(`NOTE`),29;case 58:return this.popState(),this.pushState(`NOTE_ID`),59;case 59:return this.popState(),this.pushState(`NOTE_ID`),60;case 60:this.popState(),this.pushState(`FLOATING_NOTE`);break;case 61:return this.popState(),this.pushState(`FLOATING_NOTE_ID`),`AS`;case 62:break;case 63:return`NOTE_TEXT`;case 64:return a()?(this.popState(),`ID`):void 0;case 65:return a()?(this.popState(),this.pushState(`NOTE_TEXT`),24):void 0;case 66:return this.popState(),n.yytext=n.yytext.substr(2).trim(),31;case 67:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),31;case 68:return 6;case 69:return 6;case 70:return 16;case 71:return 57;case 72:return a()?24:void 0;case 73:return n.yytext=n.yytext.trim(),14;case 74:return 15;case 75:return 28;case 76:return 58;case 77:return 5;case 78:return`INVALID`}},`anonymous`),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,55,56,57,71,72,73,74,75,76],inclusive:!1},FLOATING_NOTE_ID:{rules:[64],inclusive:!1},FLOATING_NOTE:{rules:[61,62,63],inclusive:!1},NOTE_TEXT:{rules:[66,67],inclusive:!1},NOTE_ID:{rules:[65],inclusive:!1},NOTE:{rules:[58,59,60],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,54,57,68,69,70,71,72,73,74,76,77,78],inclusive:!0}}}})();function P(){this.yy={}}return e(P,`Parser`),P.prototype=N,N.Parser=P,new P})();g.parser=g;var _=g,v=`TB`,y=`TB`,b=`dir`,x=`state`,S=`root`,C=`relation`,w=`classDef`,T=`style`,E=`applyClass`,D=`default`,O=`divider`,k=`fill:none`,A=`fill: #333`,j=`c`,M=`markdown`,N=`normal`,P=`rect`,F=`rectWithTitle`,ee=`stateStart`,te=`stateEnd`,I=`divider`,L=`roundedWithTitle`,ne=`note`,re=`noteGroup`,R=`statediagram`,ie=`${R}-state`,ae=`transition`,oe=`note`,se=`${ae} note-edge`,ce=`${R}-${oe}`,le=`${R}-cluster`,ue=`${R}-cluster-alt`,z=`parent`,B=`note`,de=`state`,V=`----`,fe=`${V}${B}`,H=`${V}${z}`,U=e((e,t=y)=>{if(!e.doc)return t;let n=t;for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`),pe={getClasses:e(function(e,t){return t.db.getClasses()},`getClasses`),draw:e(async function(e,r,i,a){t.info(`REF0:`),t.info(`Drawing state diagram (v2)`,r);let{securityLevel:o,state:s,layout:c}=n();a.db.extract(a.db.getRootDocV2());let l=a.db.getData(),u=m(r,o);l.type=a.type,l.layoutAlgorithm=c,l.nodeSpacing=s?.nodeSpacing||50,l.rankSpacing=s?.rankSpacing||50,n().look===`neo`?l.markers=[`barbNeo`]:l.markers=[`barb`],l.diagramId=r,await p(l,u);try{(typeof a.db.getLinks==`function`?a.db.getLinks():new Map).forEach((e,n)=>{let r=typeof n==`string`?n:typeof n?.id==`string`?n.id:``;if(!r){t.warn(`⚠️ Invalid or missing stateId from key:`,JSON.stringify(n));return}let i=u.node()?.querySelectorAll(`g`),a;if(i?.forEach(e=>{e.textContent?.trim()===r&&(a=e)}),!a){t.warn(`⚠️ Could not find node matching text:`,r);return}let o=a.parentNode;if(!o){t.warn(`⚠️ Node has no parent, cannot wrap:`,r);return}let s=document.createElementNS(`http://www.w3.org/2000/svg`,`a`),c=e.url.replace(/^"+|"+$/g,``);if(s.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,c),s.setAttribute(`target`,`_blank`),e.tooltip){let t=e.tooltip.replace(/^"+|"+$/g,``);s.setAttribute(`title`,t)}o.replaceChild(s,a),s.appendChild(a),t.info(`🔗 Wrapped node in tag for:`,r,e.url)})}catch(e){t.error(`❌ Error injecting clickable links:`,e)}f.insertTitle(u,`statediagramTitleText`,s?.titleTopMargin??25,a.db.getDiagramTitle()),h(u,8,R,s?.useMaxWidth??!0)},`draw`),getDir:U},W=new Map,G=0;function K(e=``,t=0,n=``,r=V){return`${de}-${e}${n!==null&&n.length>0?`${r}${n}`:``}-${t}`}e(K,`stateDomId`);var me=e((e,r,i,a,o,s,l,u)=>{t.trace(`items`,r),r.forEach(t=>{switch(t.stmt){case x:X(e,t,i,a,o,s,l,u);break;case D:X(e,t,i,a,o,s,l,u);break;case C:{X(e,t.state1,i,a,o,s,l,u),X(e,t.state2,i,a,o,s,l,u);let r=l===`neo`,d={id:`edge`+G,start:t.state1.id,end:t.state2.id,arrowhead:`normal`,arrowTypeEnd:r?`arrow_barb_neo`:`arrow_barb`,style:k,labelStyle:``,label:c.sanitizeText(t.description??``,n()),arrowheadStyle:A,labelpos:j,labelType:M,thickness:N,classes:ae,look:l};o.push(d),G++}break}})},`setupDoc`),q=e((e,t=y)=>{let n=t;if(e.doc)for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`);function J(e,t,n){if(!t.id||t.id===``||t.id===``)return;t.cssClasses&&(Array.isArray(t.cssCompiledStyles)||(t.cssCompiledStyles=[]),t.cssClasses.split(` `).forEach(e=>{let r=n.get(e);r&&(t.cssCompiledStyles=[...t.cssCompiledStyles??[],...r.styles])}));let r=e.find(e=>e.id===t.id);r?Object.assign(r,t):e.push(t)}e(J,`insertOrUpdateNode`);function Y(e){return e?.classes?.join(` `)??``}e(Y,`getClassesFromDbInfo`);function he(e){return e?.styles??[]}e(he,`getStylesFromDbInfo`);var X=e((e,r,i,a,o,s,l,u)=>{let d=r.id,f=i.get(d),p=Y(f),m=he(f),h=n();if(t.info(`dataFetcher parsedItem`,r,f,m),d!==`root`){let n=P;r.start===!0?n=ee:r.start===!1&&(n=te),r.type!==D&&(n=r.type),W.get(d)||W.set(d,{id:d,shape:n,description:c.sanitizeText(d,h),cssClasses:`${p} ${ie}`,cssStyles:m});let i=W.get(d);r.description&&(Array.isArray(i.description)?(i.shape=F,i.description.push(r.description)):i.description?.length&&i.description.length>0?(i.shape=F,i.description===d?i.description=[r.description]:i.description=[i.description,r.description]):(i.shape=P,i.description=r.description),i.description=c.sanitizeTextOrArray(i.description,h)),i.description?.length===1&&i.shape===F&&(i.type===`group`?i.shape=L:i.shape=P),!i.type&&r.doc&&(t.info(`Setting cluster for XCX`,d,q(r)),i.type=`group`,i.isGroup=!0,i.dir=q(r),i.shape=r.type===O?I:L,i.cssClasses=`${i.cssClasses} ${le} ${s?ue:``}`);let f={labelStyle:``,shape:i.shape,label:i.description,cssClasses:i.cssClasses,cssCompiledStyles:[],cssStyles:i.cssStyles,id:d,dir:i.dir,domId:K(d,G),type:i.type,isGroup:i.type===`group`,padding:8,rx:10,ry:10,look:l,labelType:`markdown`};if(f.shape===I&&(f.label=``),e&&e.id!==`root`&&(t.trace(`Setting node `,d,` to be child of its parent `,e.id),f.parentId=e.id),f.centerLabel=!0,r.note){let e={labelStyle:``,shape:ne,label:r.note.text,labelType:`markdown`,cssClasses:ce,cssStyles:[],cssCompiledStyles:[],id:d+fe+`-`+G,domId:K(d,G,B),type:i.type,isGroup:i.type===`group`,padding:h.flowchart?.padding,look:l,position:r.note.position},t=d+H,n={labelStyle:``,shape:re,label:r.note.text,cssClasses:i.cssClasses,cssStyles:[],id:d+H,domId:K(d,G,z),type:`group`,isGroup:!0,padding:16,look:l,position:r.note.position};G++,n.id=t,e.parentId=t,J(a,n,u),J(a,e,u),J(a,f,u);let s=d,c=e.id;r.note.position===`left of`&&(s=e.id,c=d),o.push({id:s+`-`+c,start:s,end:c,arrowhead:`none`,arrowTypeEnd:``,style:k,labelStyle:``,classes:se,arrowheadStyle:A,labelpos:j,labelType:M,thickness:N,look:l})}else J(a,f,u)}r.doc&&(t.trace(`Adding nodes children `),me(r,r.doc,i,a,o,!s,l,u))},`dataFetcher`),ge=e(()=>{W.clear(),G=0},`reset`),Z={START_NODE:`[*]`,START_TYPE:`start`,END_NODE:`[*]`,END_TYPE:`end`,COLOR_KEYWORD:`color`,FILL_KEYWORD:`fill`,BG_FILL:`bgFill`,STYLECLASS_SEP:`,`},_e=e(()=>new Map,`newClassesList`),Q=e(()=>({relations:[],states:new Map,documents:{}}),`newDoc`),$=e(e=>JSON.parse(JSON.stringify(e)),`clone`),ve=class{constructor(e){this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=_e(),this.documents={root:Q()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=u,this.setAccTitle=o,this.getAccDescription=s,this.setAccDescription=i,this.setDiagramTitle=a,this.getDiagramTitle=r,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}static{e(this,`StateDB`)}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(e){this.clear(!0);for(let t of Array.isArray(e)?e:e.doc)switch(t.stmt){case x:this.addState(t.id.trim(),t.type,t.doc,t.description,t.note);break;case C:this.addRelation(t.state1,t.state2,t.description);break;case w:this.addStyleClass(t.id.trim(),t.classes);break;case T:this.handleStyleDef(t);break;case E:this.setCssClass(t.id.trim(),t.styleClass);break;case`click`:this.addLink(t.id,t.url,t.tooltip);break}let t=this.getStates(),r=n();ge(),X(void 0,this.getRootDocV2(),t,this.nodes,this.edges,!0,r.look,this.classes);for(let e of this.nodes)if(Array.isArray(e.label)){if(e.description=e.label.slice(1),e.isGroup&&e.description.length>0)throw Error(`Group nodes can only have label. Remove the additional description for node [${e.id}]`);e.label=e.label[0]}}handleStyleDef(e){let t=e.id.trim().split(`,`),n=e.styleClass.split(`,`);for(let e of t){let t=this.getState(e);if(!t){let n=e.trim();this.addState(n),t=this.getState(n)}t&&(t.styles=n.map(e=>e.replace(/;/g,``)?.trim()))}}setRootDoc(e){t.info(`Setting root doc`,e),this.rootDoc=e,this.version===1?this.extract(e):this.extract(this.getRootDocV2())}docTranslator(e,t,n){if(t.stmt===C){this.docTranslator(e,t.state1,!0),this.docTranslator(e,t.state2,!1);return}if(t.stmt===x&&(t.id===Z.START_NODE?(t.id=e.id+(n?`_start`:`_end`),t.start=n):t.id=t.id.trim()),t.stmt!==S&&t.stmt!==x||!t.doc)return;let r=[],i=[];for(let e of t.doc)if(e.type===O){let t=$(e);t.doc=$(i),r.push(t),i=[]}else i.push(e);if(r.length>0&&i.length>0){let e={stmt:x,id:d(),type:`divider`,doc:$(i)};r.push($(e)),t.doc=r}t.doc.forEach(e=>this.docTranslator(t,e,!0))}getRootDocV2(){return this.docTranslator({id:S,stmt:S},{id:S,stmt:S,doc:this.rootDoc},!0),{id:S,doc:this.rootDoc}}addState(e,r=D,i=void 0,a=void 0,o=void 0,s=void 0,l=void 0,u=void 0){let d=e?.trim();if(!this.currentDocument.states.has(d))t.info(`Adding state `,d,a),this.currentDocument.states.set(d,{stmt:x,id:d,descriptions:[],type:r,doc:i,note:o,classes:[],styles:[],textStyles:[]});else{let e=this.currentDocument.states.get(d);if(!e)throw Error(`State not found: ${d}`);e.doc||=i,e.type||=r}if(a&&(t.info(`Setting state description`,d,a),(Array.isArray(a)?a:[a]).forEach(e=>this.addDescription(d,e.trim()))),o){let e=this.currentDocument.states.get(d);if(!e)throw Error(`State not found: ${d}`);e.note=o,e.note.text=c.sanitizeText(e.note.text,n())}s&&(t.info(`Setting state classes`,d,s),(Array.isArray(s)?s:[s]).forEach(e=>this.setCssClass(d,e.trim()))),l&&(t.info(`Setting state styles`,d,l),(Array.isArray(l)?l:[l]).forEach(e=>this.setStyle(d,e.trim()))),u&&(t.info(`Setting state styles`,d,l),(Array.isArray(u)?u:[u]).forEach(e=>this.setTextStyle(d,e.trim())))}clear(e){this.nodes=[],this.edges=[],this.documents={root:Q()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=_e(),e||(this.links=new Map,l())}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){t.info(`Documents = `,this.documents)}getRelations(){return this.currentDocument.relations}addLink(e,n,r){this.links.set(e,{url:n,tooltip:r}),t.warn(`Adding link`,e,n,r)}getLinks(){return this.links}startIdIfNeeded(e=``){return e===Z.START_NODE?(this.startEndCount++,`${Z.START_TYPE}${this.startEndCount}`):e}startTypeIfNeeded(e=``,t=D){return e===Z.START_NODE?Z.START_TYPE:t}endIdIfNeeded(e=``){return e===Z.END_NODE?(this.startEndCount++,`${Z.END_TYPE}${this.startEndCount}`):e}endTypeIfNeeded(e=``,t=D){return e===Z.END_NODE?Z.END_TYPE:t}addRelationObjs(e,t,r=``){let i=this.startIdIfNeeded(e.id.trim()),a=this.startTypeIfNeeded(e.id.trim(),e.type),o=this.startIdIfNeeded(t.id.trim()),s=this.startTypeIfNeeded(t.id.trim(),t.type);this.addState(i,a,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.addState(o,s,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.currentDocument.relations.push({id1:i,id2:o,relationTitle:c.sanitizeText(r,n())})}addRelation(e,t,r){if(typeof e==`object`&&typeof t==`object`)this.addRelationObjs(e,t,r);else if(typeof e==`string`&&typeof t==`string`){let i=this.startIdIfNeeded(e.trim()),a=this.startTypeIfNeeded(e),o=this.endIdIfNeeded(t.trim()),s=this.endTypeIfNeeded(t);this.addState(i,a),this.addState(o,s),this.currentDocument.relations.push({id1:i,id2:o,relationTitle:r?c.sanitizeText(r,n()):void 0})}}addDescription(e,t){let r=this.currentDocument.states.get(e),i=t.startsWith(`:`)?t.replace(`:`,``).trim():t;r?.descriptions?.push(c.sanitizeText(i,n()))}cleanupLabel(e){return e.startsWith(`:`)?e.slice(2).trim():e.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(e,t=``){this.classes.has(e)||this.classes.set(e,{id:e,styles:[],textStyles:[]});let n=this.classes.get(e);t&&n&&t.split(Z.STYLECLASS_SEP).forEach(e=>{let t=e.replace(/([^;]*);/,`$1`).trim();if(RegExp(Z.COLOR_KEYWORD).exec(e)){let e=t.replace(Z.FILL_KEYWORD,Z.BG_FILL).replace(Z.COLOR_KEYWORD,Z.FILL_KEYWORD);n.textStyles.push(e)}n.styles.push(t)})}getClasses(){return this.classes}setCssClass(e,t){e.split(`,`).forEach(e=>{let n=this.getState(e);if(!n){let t=e.trim();this.addState(t),n=this.getState(t)}n?.classes?.push(t)})}setStyle(e,t){this.getState(e)?.styles?.push(t)}setTextStyle(e,t){this.getState(e)?.textStyles?.push(t)}getDirectionStatement(){return this.rootDoc.find(e=>e.stmt===b)}getDirection(){return this.getDirectionStatement()?.value??v}setDirection(e){let t=this.getDirectionStatement();t?t.value=e:this.rootDoc.unshift({stmt:b,value:e})}trimColon(e){return e.startsWith(`:`)?e.slice(1).trim():e.trim()}getData(){let e=n();return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:U(this.getRootDocV2())}}getConfig(){return n().state}},ye=e(e=>` +defs [id$="-barbEnd"] { + fill: ${e.transitionColor}; + stroke: ${e.transitionColor}; + } +g.stateGroup text { + fill: ${e.nodeBorder}; + stroke: none; + font-size: 10px; +} +g.stateGroup text { + fill: ${e.textColor}; + stroke: none; + font-size: 10px; + +} +g.stateGroup .state-title { + font-weight: bolder; + fill: ${e.stateLabelColor}; +} + +g.stateGroup rect { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; +} + +g.stateGroup line { + stroke: ${e.lineColor}; + stroke-width: ${e.strokeWidth||1}; +} + +.transition { + stroke: ${e.transitionColor}; + stroke-width: ${e.strokeWidth||1}; + fill: none; +} + +.stateGroup .composit { + fill: ${e.background}; + border-bottom: 1px +} + +.stateGroup .alt-composit { + fill: #e0e0e0; + border-bottom: 1px +} + +.state-note { + stroke: ${e.noteBorderColor}; + fill: ${e.noteBkgColor}; + + text { + fill: ${e.noteTextColor}; + stroke: none; + font-size: 10px; + } +} + +.stateLabel .box { + stroke: none; + stroke-width: 0; + fill: ${e.mainBkg}; + opacity: 0.5; +} + +.edgeLabel .label rect { + fill: ${e.labelBackgroundColor}; + opacity: 0.5; +} +.edgeLabel { + background-color: ${e.edgeLabelBackground}; + p { + background-color: ${e.edgeLabelBackground}; + } + rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; +} +.edgeLabel .label text { + fill: ${e.transitionLabelColor||e.tertiaryTextColor}; +} +.label div .edgeLabel { + color: ${e.transitionLabelColor||e.tertiaryTextColor}; +} + +.stateLabel text { + fill: ${e.stateLabelColor}; + font-size: 10px; + font-weight: bold; +} + +.node circle.state-start { + fill: ${e.specialStateColor}; + stroke: ${e.specialStateColor}; +} + +.node .fork-join { + fill: ${e.specialStateColor}; + stroke: ${e.specialStateColor}; +} + +.node circle.state-end { + fill: ${e.innerEndBackground}; + stroke: ${e.background}; + stroke-width: 1.5 +} +.end-state-inner { + fill: ${e.compositeBackground||e.background}; + // stroke: ${e.background}; + stroke-width: 1.5 +} + +.node rect { + fill: ${e.stateBkg||e.mainBkg}; + stroke: ${e.stateBorder||e.nodeBorder}; + stroke-width: ${e.strokeWidth||1}px; +} +.node polygon { + fill: ${e.mainBkg}; + stroke: ${e.stateBorder||e.nodeBorder};; + stroke-width: ${e.strokeWidth||1}px; +} +[id$="-barbEnd"] { + fill: ${e.lineColor}; +} + +.statediagram-cluster rect { + fill: ${e.compositeTitleBackground}; + stroke: ${e.stateBorder||e.nodeBorder}; + stroke-width: ${e.strokeWidth||1}px; +} + +.cluster-label, .nodeLabel { + color: ${e.stateLabelColor}; + // line-height: 1; +} + +.statediagram-cluster rect.outer { + rx: 5px; + ry: 5px; +} +.statediagram-state .divider { + stroke: ${e.stateBorder||e.nodeBorder}; +} + +.statediagram-state .title-state { + rx: 5px; + ry: 5px; +} +.statediagram-cluster.statediagram-cluster .inner { + fill: ${e.compositeBackground||e.background}; +} +.statediagram-cluster.statediagram-cluster-alt .inner { + fill: ${e.altBackground?e.altBackground:`#efefef`}; +} + +.statediagram-cluster .inner { + rx:0; + ry:0; +} + +.statediagram-state rect.basic { + rx: 5px; + ry: 5px; +} +.statediagram-state rect.divider { + stroke-dasharray: 10,10; + fill: ${e.altBackground?e.altBackground:`#efefef`}; +} + +.note-edge { + stroke-dasharray: 5; +} + +.statediagram-note rect { + fill: ${e.noteBkgColor}; + stroke: ${e.noteBorderColor}; + stroke-width: 1px; + rx: 0; + ry: 0; +} +.statediagram-note rect { + fill: ${e.noteBkgColor}; + stroke: ${e.noteBorderColor}; + stroke-width: 1px; + rx: 0; + ry: 0; +} + +.statediagram-note text { + fill: ${e.noteTextColor}; +} + +.statediagram-note .nodeLabel { + color: ${e.noteTextColor}; +} +.statediagram .edgeLabel { + color: red; // ${e.noteTextColor}; +} + +[id$="-dependencyStart"], [id$="-dependencyEnd"] { + fill: ${e.lineColor}; + stroke: ${e.lineColor}; + stroke-width: ${e.strokeWidth||1}; +} + +.statediagramTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.textColor}; +} + +[data-look="neo"].statediagram-cluster rect { + fill: ${e.mainBkg}; + stroke: ${e.useGradient?`url(`+e.svgId+`-gradient)`:e.stateBorder||e.nodeBorder}; + stroke-width: ${e.strokeWidth??1}; +} +[data-look="neo"].statediagram-cluster rect.outer { + rx: ${e.radius}px; + ry: ${e.radius}px; + filter: ${e.dropShadow?e.dropShadow.replace(`url(#drop-shadow)`,`url(${e.svgId}-drop-shadow)`):`none`} +} +`,`getStyles`);export{ye as i,_ as n,pe as r,ve as t}; \ No newline at end of file diff --git a/docs/dist/assets/chunk-O4A3IS3O-BIKKhWCb.js b/docs/dist/assets/chunk-O4A3IS3O-BIKKhWCb.js new file mode 100644 index 00000000..3a77180d --- /dev/null +++ b/docs/dist/assets/chunk-O4A3IS3O-BIKKhWCb.js @@ -0,0 +1 @@ +import{i as e,r as t}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{I as n}from"./chunk-V7P66DNM-D246Sefn.js";import{F as r}from"./chunk-Q52JI7PB-BeSPinqD.js";import{t as i}from"./chunk-7TFACZ55-BO7C1qvL.js";var a=e(i(),1),o=t((e,t)=>{let n=e.append(`rect`);if(n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),t.name&&n.attr(`name`,t.name),t.rx&&n.attr(`rx`,t.rx),t.ry&&n.attr(`ry`,t.ry),t.attrs!==void 0)for(let e in t.attrs)n.attr(e,t.attrs[e]);return t.class&&n.attr(`class`,t.class),n},`drawRect`),s=t((e,t)=>{o(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:`rect`}).lower()},`drawBackgroundRect`),c=t((e,t)=>{let n=t.text.replace(r,` `),i=e.append(`text`);i.attr(`x`,t.x),i.attr(`y`,t.y),i.attr(`class`,`legend`),i.style(`text-anchor`,t.anchor),t.class&&i.attr(`class`,t.class);let a=i.append(`tspan`);return a.attr(`x`,t.x+t.textMargin*2),a.text(n),i},`drawText`),l=t((e,t,n,r)=>{let i=e.append(`image`);i.attr(`x`,t),i.attr(`y`,n);let o=(0,a.sanitizeUrl)(r);i.attr(`xlink:href`,o)},`drawImage`),u=t((e,t,n,r)=>{let i=e.append(`use`);i.attr(`x`,t),i.attr(`y`,n);let o=(0,a.sanitizeUrl)(r);i.attr(`xlink:href`,`#${o}`)},`drawEmbeddedImage`),d=t(()=>({x:0,y:0,width:100,height:100,fill:`#EDF2AE`,stroke:`#666`,anchor:`start`,rx:0,ry:0}),`getNoteRect`),f=t(()=>({x:0,y:0,width:100,height:100,"text-anchor":`start`,style:`#666`,textMargin:0,rx:0,ry:0,tspan:!0}),`getTextObj`),p=t(()=>{let e=n(`.mermaidTooltip`);return e.empty()&&(e=n(`body`).append(`div`).attr(`class`,`mermaidTooltip`).style(`opacity`,0).style(`position`,`absolute`).style(`text-align`,`center`).style(`max-width`,`200px`).style(`padding`,`2px`).style(`font-size`,`12px`).style(`background`,`#ffffde`).style(`border`,`1px solid #333`).style(`border-radius`,`2px`).style(`pointer-events`,`none`).style(`z-index`,`100`)),e},`createTooltip`);export{o as a,f as c,l as i,s as n,c as o,u as r,d as s,p as t}; \ No newline at end of file diff --git a/docs/dist/assets/chunk-PLCLPJVV-rGjVDjLw.js b/docs/dist/assets/chunk-PLCLPJVV-rGjVDjLw.js new file mode 100644 index 00000000..68417d02 --- /dev/null +++ b/docs/dist/assets/chunk-PLCLPJVV-rGjVDjLw.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";function t(e,t,n){if(e&&e.length){let[r,i]=t,a=Math.PI/180*n,o=Math.cos(a),s=Math.sin(a);for(let t of e){let[e,n]=t;t[0]=(e-r)*o-(n-i)*s+r,t[1]=(e-r)*s+(n-i)*o+i}}}e(t,`t`);function n(e,t){return e[0]===t[0]&&e[1]===t[1]}e(n,`e`);function r(e,r,i,a=1){let o=i,s=Math.max(r,.1),c=e[0]&&e[0][0]&&typeof e[0][0]==`number`?[e]:e,l=[0,0];if(o)for(let e of c)t(e,l,o);let u=(function(e,t,r){let i=[];for(let t of e){let e=[...t];n(e[0],e[e.length-1])||e.push([e[0][0],e[0][1]]),e.length>2&&i.push(e)}let a=[];t=Math.max(t,.1);let o=[];for(let e of i)for(let t=0;te.ymint.ymin?1:e.xt.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax))),!o.length)return a;let s=[],c=o[0].ymin,l=0;for(;s.length||o.length;){if(o.length){let e=-1;for(let t=0;tc);t++)e=t;o.splice(0,e+1).forEach((e=>{s.push({s:c,edge:e})}))}if(s=s.filter((e=>!(e.edge.ymax<=c))),s.sort(((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x))),(r!==1||l%t==0)&&s.length>1)for(let e=0;e=s.length)break;let n=s[e].edge,r=s[t].edge;a.push([[Math.round(n.x),c],[Math.round(r.x),c]])}c+=r,s.forEach((e=>{e.edge.x=e.edge.x+r*e.edge.islope})),l++}return a})(c,s,a);if(o){for(let e of c)t(e,l,-o);(function(e,n,r){let i=[];e.forEach((e=>i.push(...e))),t(i,n,r)})(u,l,-o)}return u}e(r,`s`);function i(e,t){let n=t.hachureAngle+90,i=t.hachureGap;i<0&&(i=4*t.strokeWidth),i=Math.round(Math.max(i,.1));let a=1;return t.roughness>=1&&(t.randomizer?.next()||Math.random())>.7&&(a=i),r(e,i,n,a||1)}e(i,`n`);var a=class{static{e(this,`o`)}constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){let n=i(e,t);return{type:`fillSketch`,ops:this.renderLines(n,t)}}renderLines(e,t){let n=[];for(let r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],t));return n}};function o(e){let t=e[0],n=e[1];return Math.sqrt((t[0]-n[0])**2+(t[1]-n[1])**2)}e(o,`a`);var s=class extends a{static{e(this,`h`)}fillPolygons(e,t){let n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.max(n,.1);let r=i(e,Object.assign({},t,{hachureGap:n})),a=Math.PI/180*t.hachureAngle,s=[],c=.5*n*Math.cos(a),l=.5*n*Math.sin(a);for(let[e,t]of r)o([e,t])&&s.push([[e[0]-c,e[1]+l],[...t]],[[e[0]+c,e[1]-l],[...t]]);return{type:`fillSketch`,ops:this.renderLines(s,t)}}},c=class extends a{static{e(this,`r`)}fillPolygons(e,t){let n=this._fillPolygons(e,t),r=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),i=this._fillPolygons(e,r);return n.ops=n.ops.concat(i.ops),n}},l=class{static{e(this,`i`)}constructor(e){this.helper=e}fillPolygons(e,t){let n=i(e,t=Object.assign({},t,{hachureAngle:0}));return this.dotsOnLines(n,t)}dotsOnLines(e,t){let n=[],r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.max(r,.1);let i=t.fillWeight;i<0&&(i=t.strokeWidth/2);let a=r/4;for(let s of e){let e=o(s),c=e/r,l=Math.ceil(c)-1,u=e-l*r,d=(s[0][0]+s[1][0])/2-r/4,f=Math.min(s[0][1],s[1][1]);for(let e=0;e{let a=o(e),s=Math.floor(a/(n+r)),c=(a+r-s*(n+r))/2,l=e[0],u=e[1];l[0]>u[0]&&(l=e[1],u=e[0]);let d=Math.atan((u[1]-l[1])/(u[0]-l[0]));for(let e=0;e{let i=o(e),a=Math.round(i/(2*t)),s=e[0],c=e[1];s[0]>c[0]&&(s=e[1],c=e[0]);let l=Math.atan((c[1]-s[1])/(c[0]-s[0]));for(let e=0;er%2?e+n:e+t));a.push({key:`C`,data:e}),t=e[4],n=e[5];break}case`Q`:a.push({key:`Q`,data:[...s]}),t=s[2],n=s[3];break;case`q`:{let e=s.map(((e,r)=>r%2?e+n:e+t));a.push({key:`Q`,data:e}),t=e[2],n=e[3];break}case`A`:a.push({key:`A`,data:[...s]}),t=s[5],n=s[6];break;case`a`:t+=s[5],n+=s[6],a.push({key:`A`,data:[s[0],s[1],s[2],s[3],s[4],t,n]});break;case`H`:a.push({key:`H`,data:[...s]}),t=s[0];break;case`h`:t+=s[0],a.push({key:`H`,data:[t]});break;case`V`:a.push({key:`V`,data:[...s]}),n=s[0];break;case`v`:n+=s[0],a.push({key:`V`,data:[n]});break;case`S`:a.push({key:`S`,data:[...s]}),t=s[2],n=s[3];break;case`s`:{let e=s.map(((e,r)=>r%2?e+n:e+t));a.push({key:`S`,data:e}),t=e[2],n=e[3];break}case`T`:a.push({key:`T`,data:[...s]}),t=s[0],n=s[1];break;case`t`:t+=s[0],n+=s[1],a.push({key:`T`,data:[t,n]});break;case`Z`:case`z`:a.push({key:`Z`,data:[]}),t=r,n=i}return a}e(b,`y`);function x(e){let t=[],n=``,r=0,i=0,a=0,o=0,s=0,c=0;for(let{key:l,data:u}of e){switch(l){case`M`:t.push({key:`M`,data:[...u]}),[r,i]=u,[a,o]=u;break;case`C`:t.push({key:`C`,data:[...u]}),r=u[4],i=u[5],s=u[2],c=u[3];break;case`L`:t.push({key:`L`,data:[...u]}),[r,i]=u;break;case`H`:r=u[0],t.push({key:`L`,data:[r,i]});break;case`V`:i=u[0],t.push({key:`L`,data:[r,i]});break;case`S`:{let e=0,a=0;n===`C`||n===`S`?(e=r+(r-s),a=i+(i-c)):(e=r,a=i),t.push({key:`C`,data:[e,a,...u]}),s=u[0],c=u[1],r=u[2],i=u[3];break}case`T`:{let[e,a]=u,o=0,l=0;n===`Q`||n===`T`?(o=r+(r-s),l=i+(i-c)):(o=r,l=i);let d=r+2*(o-r)/3,f=i+2*(l-i)/3,p=e+2*(o-e)/3,m=a+2*(l-a)/3;t.push({key:`C`,data:[d,f,p,m,e,a]}),s=o,c=l,r=e,i=a;break}case`Q`:{let[e,n,a,o]=u,l=r+2*(e-r)/3,d=i+2*(n-i)/3,f=a+2*(e-a)/3,p=o+2*(n-o)/3;t.push({key:`C`,data:[l,d,f,p,a,o]}),s=e,c=n,r=a,i=o;break}case`A`:{let e=Math.abs(u[0]),n=Math.abs(u[1]),a=u[2],o=u[3],s=u[4],c=u[5],l=u[6];e===0||n===0?(t.push({key:`C`,data:[r,i,c,l,c,l]}),r=c,i=l):(r!==c||i!==l)&&(C(r,i,c,l,e,n,a,o,s).forEach((function(e){t.push({key:`C`,data:e})})),r=c,i=l);break}case`Z`:t.push({key:`Z`,data:[]}),r=a,i=o}n=l}return t}e(x,`m`);function S(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}e(S,`w`);function C(e,t,n,r,i,a,o,s,c,l){let u=(d=o,Math.PI*d/180);var d;let f=[],p=0,m=0,h=0,g=0;if(l)[p,m,h,g]=l;else{[e,t]=S(e,t,-u),[n,r]=S(n,r,-u);let o=(e-n)/2,l=(t-r)/2,d=o*o/(i*i)+l*l/(a*a);d>1&&(d=Math.sqrt(d),i*=d,a*=d);let f=i*i,_=a*a,v=f*_-f*l*l-_*o*o,y=f*l*l+_*o*o,b=(s===c?-1:1)*Math.sqrt(Math.abs(v/y));h=b*i*l/a+(e+n)/2,g=b*-a*o/i+(t+r)/2,p=Math.asin(parseFloat(((t-g)/a).toFixed(9))),m=Math.asin(parseFloat(((r-g)/a).toFixed(9))),em&&(p-=2*Math.PI),!c&&m>p&&(m-=2*Math.PI)}let _=m-p;if(Math.abs(_)>120*Math.PI/180){let e=m,t=n,s=r;m=c&&m>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,f=C(n=h+i*Math.cos(m),r=g+a*Math.sin(m),t,s,i,a,o,0,c,[m,e,h,g])}_=m-p;let v=Math.cos(p),y=Math.sin(p),b=Math.cos(m),x=Math.sin(m),w=Math.tan(_/4),T=4/3*i*w,E=4/3*a*w,D=[e,t],O=[e+T*y,t-E*v],k=[n+T*x,r-E*b],A=[n,r];if(O[0]=2*D[0]-O[0],O[1]=2*D[1]-O[1],l)return[O,k,A].concat(f);{f=[O,k,A].concat(f);let e=[];for(let t=0;t2){let i=[];for(let t=0;t2*Math.PI&&(p=0,m=2*Math.PI);let h=2*Math.PI/c.curveStepCount,g=Math.min(h/2,(m-p)/2),_=U(g,l,u,d,f,p,m,1,c);if(!c.disableMultiStroke){let e=U(g,l,u,d,f,p,m,1.5,c);_.push(...e)}return o&&(s?_.push(...R(l,u,l+d*Math.cos(p),u+f*Math.sin(p),c),...R(l,u,l+d*Math.cos(m),u+f*Math.sin(m),c)):_.push({op:`lineTo`,data:[l,u]},{op:`lineTo`,data:[l+d*Math.cos(p),u+f*Math.sin(p)]})),{type:`path`,ops:_}}e(j,`A`);function ee(e,t){let n=x(b(y(e))),r=[],i=[0,0],a=[0,0];for(let{key:e,data:o}of n)switch(e){case`M`:a=[o[0],o[1]],i=[o[0],o[1]];break;case`L`:r.push(...R(a[0],a[1],o[0],o[1],t)),a=[o[0],o[1]];break;case`C`:{let[e,n,i,s,c,l]=o;r.push(...te(e,n,i,s,c,l,a,t)),a=[c,l];break}case`Z`:r.push(...R(a[0],a[1],i[0],i[1],t)),a=[i[0],i[1]]}return{type:`path`,ops:r}}e(ee,`_`);function M(e,t){let n=[];for(let r of e)if(r.length){let e=t.maxRandomnessOffset||0,i=r.length;if(i>2){n.push({op:`move`,data:[r[0][0]+L(e,t),r[0][1]+L(e,t)]});for(let a=1;a500?.4:-.0016668*l+1.233334;let d=a.maxRandomnessOffset||0;d*d*100>c&&(d=l/10);let f=d/2,p=.2+.2*F(a),m=a.bowing*a.maxRandomnessOffset*(i-n)/200,h=a.bowing*a.maxRandomnessOffset*(t-r)/200;m=L(m,a,u),h=L(h,a,u);let g=[],_=e(()=>L(f,a,u),`M`),v=e(()=>L(d,a,u),`k`),y=a.preserveVertices;return o&&(s?g.push({op:`move`,data:[t+(y?0:_()),n+(y?0:_())]}):g.push({op:`move`,data:[t+(y?0:L(d,a,u)),n+(y?0:L(d,a,u))]})),s?g.push({op:`bcurveTo`,data:[m+t+(r-t)*p+_(),h+n+(i-n)*p+_(),m+t+2*(r-t)*p+_(),h+n+2*(i-n)*p+_(),r+(y?0:_()),i+(y?0:_())]}):g.push({op:`bcurveTo`,data:[m+t+(r-t)*p+v(),h+n+(i-n)*p+v(),m+t+2*(r-t)*p+v(),h+n+2*(i-n)*p+v(),r+(y?0:v()),i+(y?0:v())]}),g}e(z,`R`);function B(e,t,n){if(!e.length)return[];let r=[];r.push([e[0][0]+L(t,n),e[0][1]+L(t,n)]),r.push([e[0][0]+L(t,n),e[0][1]+L(t,n)]);for(let i=1;i3){let a=[],o=1-n.curveTightness;i.push({op:`move`,data:[e[1][0],e[1][1]]});for(let t=1;t+21&&i.push(n):i.push(n),i.push(e[t+3])}else{let r=.5,a=e[t+0],o=e[t+1],s=e[t+2],c=e[t+3],l=q(a,o,r),u=q(o,s,r),d=q(s,c,r),f=q(l,u,r),p=q(u,d,r),m=q(f,p,r);J([a,l,f,m],0,n,i),J([m,p,d,c],0,n,i)}var a,o;return i}e(J,`K`);function re(e,t){return Y(e,0,e.length,t)}e(re,`U`);function Y(e,t,n,r,i){let a=i||[],o=e[t],s=e[n-1],c=0,l=1;for(let r=t+1;rc&&(c=t,l=r)}return Math.sqrt(c)>r?(Y(e,t,l+1,r,a),Y(e,l,n,r,a)):(a.length||a.push(o),a.push(s)),a}e(Y,`X`);function X(e,t=.15,n){let r=[],i=(e.length-1)/3;for(let n=0;n0?Y(r,0,r.length,n):r}e(X,`Y`);var Z=`none`,Q=class{static{e(this,`et`)}constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:`#000`,strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:`hachure`,fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,n){return{shape:e,sets:t||[],options:n||this.defaultOptions}}line(e,t,n,r,i){let a=this._o(i);return this._d(`line`,[T(e,t,n,r,a)],a)}rectangle(e,t,n,r,i){let a=this._o(i),o=[],s=D(e,t,n,r,a);if(a.fill){let i=[[e,t],[e+n,t],[e+n,t+r],[e,t+r]];a.fillStyle===`solid`?o.push(M([i],a)):o.push(N([i],a))}return a.stroke!==Z&&o.push(s),this._d(`rectangle`,o,a)}ellipse(e,t,n,r,i){let a=this._o(i),o=[],s=k(n,r,a),c=A(e,t,a,s);if(a.fill)if(a.fillStyle===`solid`){let n=A(e,t,a,s).opset;n.type=`fillPath`,o.push(n)}else o.push(N([c.estimatedPoints],a));return a.stroke!==Z&&o.push(c.opset),this._d(`ellipse`,o,a)}circle(e,t,n,r){let i=this.ellipse(e,t,n,n,r);return i.shape=`circle`,i}linearPath(e,t){let n=this._o(t);return this._d(`linearPath`,[E(e,!1,n)],n)}arc(e,t,n,r,i,a,o=!1,s){let c=this._o(s),l=[],u=j(e,t,n,r,i,a,o,!0,c);if(o&&c.fill)if(c.fillStyle===`solid`){let o=Object.assign({},c);o.disableMultiStroke=!0;let s=j(e,t,n,r,i,a,!0,!1,o);s.type=`fillPath`,l.push(s)}else l.push((function(e,t,n,r,i,a,o){let s=e,c=t,l=Math.abs(n/2),u=Math.abs(r/2);l+=L(.01*l,o),u+=L(.01*u,o);let d=i,f=a;for(;d<0;)d+=2*Math.PI,f+=2*Math.PI;f-d>2*Math.PI&&(d=0,f=2*Math.PI);let p=(f-d)/o.curveStepCount,m=[];for(let e=d;e<=f;e+=p)m.push([s+l*Math.cos(e),c+u*Math.sin(e)]);return m.push([s+l*Math.cos(f),c+u*Math.sin(f)]),m.push([s,c]),N([m],o)})(e,t,n,r,i,a,c));return c.stroke!==Z&&l.push(u),this._d(`arc`,l,c)}curve(e,t){let n=this._o(t),r=[],i=O(e,n);if(n.fill&&n.fill!==Z)if(n.fillStyle===`solid`){let t=O(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:`fillPath`,ops:this._mergedShape(t.ops)})}else{let t=[],i=e;if(i.length){let e=typeof i[0][0]==`number`?[i]:i;for(let r of e)r.length<3?t.push(...r):r.length===3?t.push(...X(G([r[0],r[0],r[1],r[2]]),10,(1+n.roughness)/2)):t.push(...X(G(r),10,(1+n.roughness)/2))}t.length&&r.push(N([t],n))}return n.stroke!==Z&&r.push(i),this._d(`curve`,r,n)}polygon(e,t){let n=this._o(t),r=[],i=E(e,!0,n);return n.fill&&(n.fillStyle===`solid`?r.push(M([e],n)):r.push(N([e],n))),n.stroke!==Z&&r.push(i),this._d(`polygon`,r,n)}path(t,n){let r=this._o(n),i=[];if(!t)return this._d(`path`,i,r);t=(t||``).replace(/\n/g,` `).replace(/(-\s)/g,`-`).replace(`/(ss)/g`,` `);let a=r.fill&&r.fill!==`transparent`&&r.fill!==Z,o=r.stroke!==Z,s=!!(r.simplification&&r.simplification<1),c=(function(t,n,r){let i=x(b(y(t))),a=[],o=[],s=[0,0],c=[],l=e(()=>{c.length>=4&&o.push(...X(c,n)),c=[]},`i`),u=e(()=>{l(),o.length&&(a.push(o),o=[])},`c`);for(let{key:e,data:t}of i)switch(e){case`M`:u(),s=[t[0],t[1]],o.push(s);break;case`L`:l(),o.push([t[0],t[1]]);break;case`C`:if(!c.length){let e=o.length?o[o.length-1]:s;c.push([e[0],e[1]])}c.push([t[0],t[1]]),c.push([t[2],t[3]]),c.push([t[4],t[5]]);break;case`Z`:l(),o.push([s[0],s[1]])}if(u(),!r)return a;let d=[];for(let e of a){let t=re(e,r);t.length&&d.push(t)}return d})(t,1,s?4-4*(r.simplification||1):(1+r.roughness)/2),l=ee(t,r);if(a)if(r.fillStyle===`solid`)if(c.length===1){let e=ee(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:`fillPath`,ops:this._mergedShape(e.ops)})}else i.push(M(c,r));else i.push(N(c,r));return o&&(s?c.forEach((e=>{i.push(E(e,!1,r))})):i.push(l)),this._d(`path`,i,r)}opsToPath(e,t){let n=``;for(let r of e.ops){let e=typeof t==`number`&&t>=0?r.data.map((e=>+e.toFixed(t))):r.data;switch(r.op){case`move`:n+=`M${e[0]} ${e[1]} `;break;case`bcurveTo`:n+=`C${e[0]} ${e[1]}, ${e[2]} ${e[3]}, ${e[4]} ${e[5]} `;break;case`lineTo`:n+=`L${e[0]} ${e[1]} `}}return n.trim()}toPaths(e){let t=e.sets||[],n=e.options||this.defaultOptions,r=[];for(let e of t){let t=null;switch(e.type){case`path`:t={d:this.opsToPath(e),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:Z};break;case`fillPath`:t={d:this.opsToPath(e),stroke:Z,strokeWidth:0,fill:n.fill||Z};break;case`fillSketch`:t=this.fillSketch(e,n)}t&&r.push(t)}return r}fillSketch(e,t){let n=t.fillWeight;return n<0&&(n=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||Z,strokeWidth:n,fill:Z}}_mergedShape(e){return e.filter(((e,t)=>t===0||e.op!==`move`))}},ie=class{static{e(this,`st`)}constructor(e,t){this.canvas=e,this.ctx=this.canvas.getContext(`2d`),this.gen=new Q(t)}draw(e){let t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.ctx,i=e.options.fixedDecimalPlaceDigits;for(let a of t)switch(a.type){case`path`:r.save(),r.strokeStyle=n.stroke===`none`?`transparent`:n.stroke,r.lineWidth=n.strokeWidth,n.strokeLineDash&&r.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(r.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(r,a,i),r.restore();break;case`fillPath`:{r.save(),r.fillStyle=n.fill||``;let t=e.shape===`curve`||e.shape===`polygon`||e.shape===`path`?`evenodd`:`nonzero`;this._drawToContext(r,a,i,t),r.restore();break}case`fillSketch`:this.fillSketch(r,a,n)}}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||``,e.lineWidth=r,this._drawToContext(e,t,n.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,t,n,r=`nonzero`){e.beginPath();for(let r of t.ops){let t=typeof n==`number`&&n>=0?r.data.map((e=>+e.toFixed(n))):r.data;switch(r.op){case`move`:e.moveTo(t[0],t[1]);break;case`bcurveTo`:e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5]);break;case`lineTo`:e.lineTo(t[0],t[1])}}t.type===`fillPath`?e.fill(r):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,t,n,r,i){let a=this.gen.line(e,t,n,r,i);return this.draw(a),a}rectangle(e,t,n,r,i){let a=this.gen.rectangle(e,t,n,r,i);return this.draw(a),a}ellipse(e,t,n,r,i){let a=this.gen.ellipse(e,t,n,r,i);return this.draw(a),a}circle(e,t,n,r){let i=this.gen.circle(e,t,n,r);return this.draw(i),i}linearPath(e,t){let n=this.gen.linearPath(e,t);return this.draw(n),n}polygon(e,t){let n=this.gen.polygon(e,t);return this.draw(n),n}arc(e,t,n,r,i,a,o=!1,s){let c=this.gen.arc(e,t,n,r,i,a,o,s);return this.draw(c),c}curve(e,t){let n=this.gen.curve(e,t);return this.draw(n),n}path(e,t){let n=this.gen.path(e,t);return this.draw(n),n}},$=`http://www.w3.org/2000/svg`,ae=class{static{e(this,`ot`)}constructor(e,t){this.svg=e,this.gen=new Q(t)}draw(e){let t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,i=r.createElementNS($,`g`),a=e.options.fixedDecimalPlaceDigits;for(let o of t){let t=null;switch(o.type){case`path`:t=r.createElementNS($,`path`),t.setAttribute(`d`,this.opsToPath(o,a)),t.setAttribute(`stroke`,n.stroke),t.setAttribute(`stroke-width`,n.strokeWidth+``),t.setAttribute(`fill`,`none`),n.strokeLineDash&&t.setAttribute(`stroke-dasharray`,n.strokeLineDash.join(` `).trim()),n.strokeLineDashOffset&&t.setAttribute(`stroke-dashoffset`,`${n.strokeLineDashOffset}`);break;case`fillPath`:t=r.createElementNS($,`path`),t.setAttribute(`d`,this.opsToPath(o,a)),t.setAttribute(`stroke`,`none`),t.setAttribute(`stroke-width`,`0`),t.setAttribute(`fill`,n.fill||``),e.shape!==`curve`&&e.shape!==`polygon`||t.setAttribute(`fill-rule`,`evenodd`);break;case`fillSketch`:t=this.fillSketch(r,o,n)}t&&i.appendChild(t)}return i}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2);let i=e.createElementNS($,`path`);return i.setAttribute(`d`,this.opsToPath(t,n.fixedDecimalPlaceDigits)),i.setAttribute(`stroke`,n.fill||``),i.setAttribute(`stroke-width`,r+``),i.setAttribute(`fill`,`none`),n.fillLineDash&&i.setAttribute(`stroke-dasharray`,n.fillLineDash.join(` `).trim()),n.fillLineDashOffset&&i.setAttribute(`stroke-dashoffset`,`${n.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,t){return this.gen.opsToPath(e,t)}line(e,t,n,r,i){let a=this.gen.line(e,t,n,r,i);return this.draw(a)}rectangle(e,t,n,r,i){let a=this.gen.rectangle(e,t,n,r,i);return this.draw(a)}ellipse(e,t,n,r,i){let a=this.gen.ellipse(e,t,n,r,i);return this.draw(a)}circle(e,t,n,r){let i=this.gen.circle(e,t,n,r);return this.draw(i)}linearPath(e,t){let n=this.gen.linearPath(e,t);return this.draw(n)}polygon(e,t){let n=this.gen.polygon(e,t);return this.draw(n)}arc(e,t,n,r,i,a,o=!1,s){let c=this.gen.arc(e,t,n,r,i,a,o,s);return this.draw(c)}curve(e,t){let n=this.gen.curve(e,t);return this.draw(n)}path(e,t){let n=this.gen.path(e,t);return this.draw(n)}},oe={canvas:e((e,t)=>new ie(e,t),`canvas`),svg:e((e,t)=>new ae(e,t),`svg`),generator:e(e=>new Q(e),`generator`),newSeed:e(()=>Q.newSeed(),`newSeed`)};export{oe as t}; \ No newline at end of file diff --git a/docs/dist/assets/chunk-PTVI3W5X-DVfdoxm6.js b/docs/dist/assets/chunk-PTVI3W5X-DVfdoxm6.js new file mode 100644 index 00000000..68579329 --- /dev/null +++ b/docs/dist/assets/chunk-PTVI3W5X-DVfdoxm6.js @@ -0,0 +1 @@ +var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,n)=>t(e,`name`,{value:n,configurable:!0}),s=(e,t)=>function(){return t||(0,e[r(e)[0]])((t={exports:{}}).exports,t),t.exports},c=(e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(let c of r(i))!a.call(e,c)&&c!==o&&t(e,c,{get:()=>i[c],enumerable:!(s=n(i,c))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));export{u as i,c as n,o as r,s as t}; \ No newline at end of file diff --git a/docs/dist/assets/chunk-PUIB63ON-iBBh92CL.js b/docs/dist/assets/chunk-PUIB63ON-iBBh92CL.js new file mode 100644 index 00000000..4c8b709d --- /dev/null +++ b/docs/dist/assets/chunk-PUIB63ON-iBBh92CL.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{I as t}from"./chunk-V7P66DNM-D246Sefn.js";import{C as n}from"./chunk-Q52JI7PB-BeSPinqD.js";var r=e(e=>{let{securityLevel:r}=n(),i=t(`body`);return r===`sandbox`&&(i=t((t(`#i${e}`).node()?.contentDocument??document).body)),i.select(`#${e}`)},`selectSvgElement`);export{r as t}; \ No newline at end of file diff --git a/docs/dist/assets/chunk-PWCFYZI5-BQGIuzFC.js b/docs/dist/assets/chunk-PWCFYZI5-BQGIuzFC.js new file mode 100644 index 00000000..2a9cccce --- /dev/null +++ b/docs/dist/assets/chunk-PWCFYZI5-BQGIuzFC.js @@ -0,0 +1,32 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";function t(e){return e==null}e(t,`isNothing`);function n(e){return typeof e==`object`&&!!e}e(n,`isObject`);function r(e){return Array.isArray(e)?e:t(e)?[]:[e]}e(r,`toArray`);function i(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;ns&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}e(d,`getLine`);function f(e,t){return s.repeat(` `,t-e.length)+e}e(f,`padStart`);function p(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||=79,typeof t.indent!=`number`&&(t.indent=1),typeof t.linesBefore!=`number`&&(t.linesBefore=3),typeof t.linesAfter!=`number`&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a,o=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var c=``,l,u,p=Math.min(e.line+t.linesAfter,i.length).toString().length,m=t.maxLength-(t.indent+p+3);for(l=1;l<=t.linesBefore&&!(o-l<0);l++)u=d(e.buffer,r[o-l],i[o-l],e.position-(r[o]-r[o-l]),m),c=s.repeat(` `,t.indent)+f((e.line-l+1).toString(),p)+` | `+u.str+` +`+c;for(u=d(e.buffer,r[o],i[o],e.position,m),c+=s.repeat(` `,t.indent)+f((e.line+1).toString(),p)+` | `+u.str+` +`,c+=s.repeat(`-`,t.indent+p+3+u.pos)+`^ +`,l=1;l<=t.linesAfter&&!(o+l>=i.length);l++)u=d(e.buffer,r[o+l],i[o+l],e.position-(r[o]-r[o+l]),m),c+=s.repeat(` `,t.indent)+f((e.line+l+1).toString(),p)+` | `+u.str+` +`;return c.replace(/\n$/,``)}e(p,`makeSnippet`);var m=p,h=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],g=[`scalar`,`sequence`,`mapping`];function _(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}e(_,`compileStyleAliases`);function v(e,t){if(t||={},Object.keys(t).forEach(function(t){if(h.indexOf(t)===-1)throw new u(`Unknown option "`+t+`" is met in definition of "`+e+`" YAML type.`)}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=_(t.styleAliases||null),g.indexOf(this.kind)===-1)throw new u(`Unknown kind "`+this.kind+`" is specified for "`+e+`" YAML type.`)}e(v,`Type$1`);var y=v;function b(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}e(b,`compileList`);function ee(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,r;function i(e){e.multi?(t.multi[e.kind].push(e),t.multi.fallback.push(e)):t[e.kind][e.tag]=t.fallback[e.tag]=e}for(e(i,`collectType`),n=0,r=arguments.length;n=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},`binary`),octal:e(function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},`octal`),decimal:e(function(e){return e.toString(10)},`decimal`),hexadecimal:e(function(e){return e>=0?`0x`+e.toString(16).toUpperCase():`-0x`+e.toString(16).toUpperCase().slice(1)},`hexadecimal`)},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}}),_e=RegExp(`^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function ve(e){return!(e===null||!_e.test(e)||e[e.length-1]===`_`)}e(ve,`resolveYamlFloat`);function ye(e){var t=e.replace(/_/g,``).toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}e(ye,`constructYamlFloat`);var be=/^[-+]?[0-9]+e/;function xe(e,t){var n;if(isNaN(e))switch(t){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(e===1/0)switch(t){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(e===-1/0)switch(t){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(s.isNegativeZero(e))return`-0.0`;return n=e.toString(10),be.test(n)?n.replace(`e`,`.e`):n}e(xe,`representYamlFloat`);function Se(e){return Object.prototype.toString.call(e)===`[object Number]`&&(e%1!=0||s.isNegativeZero(e))}e(Se,`isFloat`);var Ce=new y(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:ve,construct:ye,predicate:Se,represent:xe,defaultStyle:`lowercase`}),we=te.extend({implicit:[ae,le,ge,Ce]}),Te=we,Ee=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),De=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function Oe(e){return e===null?!1:Ee.exec(e)!==null||De.exec(e)!==null}e(Oe,`resolveYamlTimestamp`);function ke(e){var t,n,r,i,a,o,s,c=0,l=null,u,d,f;if(t=Ee.exec(e),t===null&&(t=De.exec(e)),t===null)throw Error(`Date resolve error`);if(n=+t[1],r=t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+=`0`;c=+c}return t[9]&&(u=+t[10],d=+(t[11]||0),l=(u*60+d)*6e4,t[9]===`-`&&(l=-l)),f=new Date(Date.UTC(n,r,i,a,o,s,c)),l&&f.setTime(f.getTime()-l),f}e(ke,`constructYamlTimestamp`);function Ae(e){return e.toISOString()}e(Ae,`representYamlTimestamp`);var je=new y(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:Oe,construct:ke,instanceOf:Date,represent:Ae});function Me(e){return e===`<<`||e===null}e(Me,`resolveYamlMerge`);var Ne=new y(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:Me}),S=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function Pe(e){if(e===null)return!1;var t,n,r=0,i=e.length,a=S;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8==0}e(Pe,`resolveYamlBinary`);function Fe(e){var t,n,r=e.replace(/[\r\n=]/g,``),i=r.length,a=S,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|a.indexOf(r.charAt(t));return n=i%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}e(Fe,`constructYamlBinary`);function Ie(e){var t=``,n=0,r,i,a=e.length,o=S;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return i=a%3,i===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):i===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):i===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}e(Ie,`representYamlBinary`);function Le(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}e(Le,`isBinary`);var Re=new y(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:Pe,construct:Fe,predicate:Le,represent:Ie}),ze=Object.prototype.hasOwnProperty,Be=Object.prototype.toString;function Ve(e){if(e===null)return!0;var t=[],n,r,i,a,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}e(ft,`charFromCodepoint`);function pt(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}e(pt,`setProperty`);var mt=Array(256),ht=Array(256);for(M=0;M<256;M++)mt[M]=+!!dt(M),ht[M]=dt(M);var M;function gt(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Qe,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}e(gt,`State$1`);function _t(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=m(n),new u(t,n)}e(_t,`generateError`);function N(e,t){throw _t(e,t)}e(N,`throwError`);function P(e,t){e.onWarning&&e.onWarning.call(null,_t(e,t))}e(P,`throwWarning`);var vt={YAML:e(function(e,t,n){var r,i,a;e.version!==null&&N(e,`duplication of %YAML directive`),n.length!==1&&N(e,`YAML directive accepts exactly one argument`),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&N(e,`ill-formed argument of the YAML directive`),i=parseInt(r[1],10),a=parseInt(r[2],10),i!==1&&N(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&P(e,`unsupported YAML version of the document`)},`handleYamlDirective`),TAG:e(function(e,t,n){var r,i;n.length!==2&&N(e,`TAG directive accepts exactly two arguments`),r=n[0],i=n[1],ot.test(r)||N(e,`ill-formed tag handle (first argument) of the TAG directive`),C.call(e.tagMap,r)&&N(e,`there is a previously declared suffix for "`+r+`" tag handle`),st.test(i)||N(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{i=decodeURIComponent(i)}catch{N(e,`tag prefix is malformed: `+i)}e.tagMap[r]=i},`handleTagDirective`)};function F(e,t,n,r){var i,a,o,s;if(t1&&(e.result+=s.repeat(` +`,t-1))}e(B,`writeFoldedLines`);function bt(e,t,n){var r,i,a,o,s,c,l,u,d=e.kind,f=e.result,p=e.input.charCodeAt(e.position);if(A(p)||j(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),A(i)||n&&j(i)))return!1;for(e.kind=`scalar`,e.result=``,a=o=e.position,s=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),A(i)||n&&j(i))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),A(r))break}else if(e.position===e.lineStart&&z(e)||n&&j(p))break;else if(O(p))if(c=e.line,l=e.lineStart,u=e.lineIndent,R(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=l,e.lineIndent=u;break}s&&=(F(e,a,o,!1),B(e,e.line-c),a=o=e.position,!1),k(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return F(e,a,o,!1),e.result?!0:(e.kind=d,e.result=f,!1)}e(bt,`readPlainScalar`);function xt(e,t){var n=e.input.charCodeAt(e.position),r,i;if(n!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(F(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else O(n)?(F(e,r,i,!0),B(e,R(e,!1,t)),r=i=e.position):e.position===e.lineStart&&z(e)?N(e,`unexpected end of the document within a single quoted scalar`):(e.position++,i=e.position);N(e,`unexpected end of the stream within a single quoted scalar`)}e(xt,`readSingleQuotedScalar`);function St(e,t){var n,r,i,a,o,s=e.input.charCodeAt(e.position);if(s!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;)if(s===34)return F(e,n,e.position,!0),e.position++,!0;else if(s===92){if(F(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),O(s))R(e,!1,t);else if(s<256&&mt[s])e.result+=ht[s],e.position++;else if((o=lt(s))>0){for(i=o,a=0;i>0;i--)s=e.input.charCodeAt(++e.position),(o=ct(s))>=0?a=(a<<4)+o:N(e,`expected hexadecimal character`);e.result+=ft(a),e.position++}else N(e,`unknown escape sequence`);n=r=e.position}else O(s)?(F(e,n,r,!0),B(e,R(e,!1,t)),n=r=e.position):e.position===e.lineStart&&z(e)?N(e,`unexpected end of the document within a double quoted scalar`):(e.position++,r=e.position);N(e,`unexpected end of the stream within a double quoted scalar`)}e(St,`readDoubleQuotedScalar`);function Ct(e,t){var n=!0,r,i,a,o=e.tag,s,c=e.anchor,l,u,d,f,p,m=Object.create(null),h,g,_,v=e.input.charCodeAt(e.position);if(v===91)u=93,p=!1,s=[];else if(v===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(R(e,!0,t),v=e.input.charCodeAt(e.position),v===u)return e.position++,e.tag=o,e.anchor=c,e.kind=p?`mapping`:`sequence`,e.result=s,!0;n?v===44&&N(e,`expected the node content, but found ','`):N(e,`missed comma between flow collection entries`),g=h=_=null,d=f=!1,v===63&&(l=e.input.charCodeAt(e.position+1),A(l)&&(d=f=!0,e.position++,R(e,!0,t))),r=e.line,i=e.lineStart,a=e.position,V(e,t,w,!1,!0),g=e.tag,h=e.result,R(e,!0,t),v=e.input.charCodeAt(e.position),(f||e.line===r)&&v===58&&(d=!0,v=e.input.charCodeAt(++e.position),R(e,!0,t),V(e,t,w,!1,!0),_=e.result),p?I(e,s,m,g,h,_,r,i,a):d?s.push(I(e,null,m,g,h,_,r,i,a)):s.push(h),R(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}N(e,`unexpected end of the stream within a flow collection`)}e(Ct,`readFlowCollection`);function wt(e,t){var n,r,i=E,a=!1,o=!1,c=t,l=0,u=!1,d,f=e.input.charCodeAt(e.position);if(f===124)r=!1;else if(f===62)r=!0;else return!1;for(e.kind=`scalar`,e.result=``;f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)E===i?i=f===43?nt:tt:N(e,`repeat of a chomping mode identifier`);else if((d=ut(f))>=0)d===0?N(e,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?N(e,`repeat of an indentation width identifier`):(c=t+d-1,o=!0);else break;if(k(f)){do f=e.input.charCodeAt(++e.position);while(k(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!O(f)&&f!==0)}for(;f!==0;){for(L(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!o||e.lineIndentc&&(c=e.lineIndent),O(f)){l++;continue}if(e.lineIndentt)&&c!==0)N(e,`bad indentation of a sequence entry`);else if(e.lineIndentt)&&(g&&(o=e.line,s=e.lineStart,c=e.position),V(e,t,T,!0,i)&&(g?m=e.result:h=e.result),g||(I(e,d,f,p,m,h,o,s,c),p=m=h=null),R(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&v!==0)N(e,`bad indentation of a mapping entry`);else if(e.lineIndentt?c=1:e.lineIndent===t?c=0:e.lineIndentt?c=1:e.lineIndent===t?c=0:e.lineIndent tag; it should be "scalar", not "`+e.kind+`"`),d=0,f=e.implicitTypes.length;d`),e.result!==null&&m.kind!==e.kind&&N(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+m.kind+`", not "`+e.kind+`"`),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):N(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),e.tag!==null||e.anchor!==null||u}e(V,`composeNode`);function At(e){var t=e.position,n,r,i,a=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(R(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!A(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&N(e,`directive name must not be less than one character in length`);o!==0;){for(;k(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!O(o));break}if(O(o))break;for(n=e.position;o!==0&&!A(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}o!==0&&L(e),C.call(vt,r)?vt[r](e,r,i):P(e,`unknown document directive "`+r+`"`)}if(R(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,R(e,!0,-1)):a&&N(e,`directives end mark is expected`),V(e,e.lineIndent-1,T,!1,!0),R(e,!0,-1),e.checkLineBreaks&&it.test(e.input.slice(t,e.position))&&P(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&z(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,R(e,!0,-1));return}if(e.position=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}e(Y,`codePointAt`);function yn(e){return/^\n* /.test(e)}e(yn,`needIndentIndicator`);var bn=1,xn=2,Sn=3,Cn=4,X=5;function wn(e,t,n,r,i,a,o,s){var c,l=0,u=null,d=!1,f=!1,p=r!==-1,m=-1,h=_n(Y(e,0))&&vn(Y(e,e.length-1));if(t||o)for(c=0;c=65536?c+=2:c++){if(l=Y(e,c),!J(l))return X;h&&=gn(l,u,s),u=l}else{for(c=0;c=65536?c+=2:c++){if(l=Y(e,c),l===H)d=!0,p&&(f||=c-m-1>r&&e[m+1]!==` `,m=c);else if(!J(l))return X;h&&=gn(l,u,s),u=l}f||=p&&c-m-1>r&&e[m+1]!==` `}return!d&&!f?h&&!o&&!i(e)?bn:a===G?X:xn:n>9&&yn(e)?X:o?a===G?X:xn:f?Cn:Sn}e(wn,`chooseScalarStyle`);function Tn(t,n,r,i,a){t.dump=(function(){if(n.length===0)return t.quotingType===G?`""`:`''`;if(!t.noCompatMode&&(sn.indexOf(n)!==-1||cn.test(n)))return t.quotingType===G?`"`+n+`"`:`'`+n+`'`;var o=t.indent*Math.max(1,r),s=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-o),c=i||t.flowLevel>-1&&r>=t.flowLevel;function l(e){return mn(t,e)}switch(e(l,`testAmbiguity`),wn(n,c,t.indent,s,l,t.quotingType,t.forceQuotes&&!i,a)){case bn:return n;case xn:return`'`+n.replace(/'/g,`''`)+`'`;case Sn:return`|`+En(n,t.indent)+Dn(pn(n,o));case Cn:return`>`+En(n,t.indent)+Dn(pn(On(n,s),o));case X:return`"`+An(n)+`"`;default:throw new u(`impossible error: invalid scalar style`)}})()}e(Tn,`writeScalar`);function En(e,t){var n=yn(e)?String(t):``,r=e[e.length-1]===` +`;return n+(r&&(e[e.length-2]===` +`||e===` +`)?`+`:r?``:`-`)+` +`}e(En,`blockHeader`);function Dn(e){return e[e.length-1]===` +`?e.slice(0,-1):e}e(Dn,`dropEndingNewline`);function On(e,t){for(var n=/(\n+)([^\n]*)/g,r=(function(){var r=e.indexOf(` +`);return r=r===-1?e.length:r,n.lastIndex=r,kn(e.slice(0,r),t)})(),i=e[0]===` +`||e[0]===` `,a,o;o=n.exec(e);){var s=o[1],c=o[2];a=c[0]===` `,r+=s+(!i&&!a&&c!==``?` +`:``)+kn(c,t),i=a}return r}e(On,`foldString`);function kn(e,t){if(e===``||e[0]===` `)return e;for(var n=/ [^ ]/g,r,i=0,a,o=0,s=0,c=``;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=` +`+e.slice(i,a),i=a+1),o=s;return c+=` +`,e.length-i>t&&o>i?c+=e.slice(i,o)+` +`+e.slice(o+1):c+=e.slice(i),c.slice(1)}e(kn,`foldLine`);function An(e){for(var t=``,n=0,r,i=0;i=65536?i+=2:i++)n=Y(e,i),r=W[n],!r&&J(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||un(n);return t}e(An,`escapeString`);function jn(e,t,n){var r=``,i=e.tag,a,o,s;for(a=0,o=n.length;a1024&&(u+=`? `),u+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),Q(e,t,l,!1,!1)&&(u+=e.dump,r+=u));e.tag=i,e.dump=`{`+r+`}`}e(Nn,`writeFlowMapping`);function Pn(e,t,n,r){var i=``,a=e.tag,o=Object.keys(n),s,c,l,d,f,p;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys==`function`)o.sort(e.sortKeys);else if(e.sortKeys)throw new u(`sortKeys must be a boolean or a function`);for(s=0,c=o.length;s1024,f&&(e.dump&&H===e.dump.charCodeAt(0)?p+=`?`:p+=`? `),p+=e.dump,f&&(p+=K(e,t)),Q(e,t+1,d,!0,f)&&(e.dump&&H===e.dump.charCodeAt(0)?p+=`:`:p+=`: `,p+=e.dump,i+=p));e.tag=a,e.dump=i||`{}`}e(Pn,`writeBlockMapping`);function Z(e,t,n){var r,i=n?e.explicitTypes:e.implicitTypes,a,o,s,c;for(a=0,o=i.length;a tag resolver accepts not "`+c+`" style`);e.dump=r}return!0}return!1}e(Z,`detectType`);function Q(e,t,n,r,i,a,o){e.tag=null,e.dump=n,Z(e,n,!1)||Z(e,n,!0);var s=Ft.call(e.dump),c=r,l;r&&=e.flowLevel<0||e.flowLevel>t;var d=s===`[object Object]`||s===`[object Array]`,f,p;if(d&&(f=e.duplicates.indexOf(n),p=f!==-1),(e.tag!==null&&e.tag!==`?`||p||e.indent!==2&&t>0)&&(i=!1),p&&e.usedDuplicates[f])e.dump=`*ref_`+f;else{if(d&&p&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),s===`[object Object]`)r&&Object.keys(e.dump).length!==0?(Pn(e,t,e.dump,i),p&&(e.dump=`&ref_`+f+e.dump)):(Nn(e,t,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(s===`[object Array]`)r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?Mn(e,t-1,e.dump,i):Mn(e,t,e.dump,i),p&&(e.dump=`&ref_`+f+e.dump)):(jn(e,t,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(s===`[object String]`)e.tag!==`?`&&Tn(e,e.dump,t,a,c);else if(s===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new u(`unacceptable kind of an object to dump `+s)}e.tag!==null&&e.tag!==`?`&&(l=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`),l=e.tag[0]===`!`?`!`+l:l.slice(0,18)===`tag:yaml.org,2002:`?`!!`+l.slice(18):`!<`+l+`>`,e.dump=l+` `+e.dump)}return!0}e(Q,`writeNode`);function Fn(e,t){var n=[],r=[],i,a;for($(e,n,r),i=0,a=r.length;ii.map(i=>d[i]); +import{ht as e}from"./index-BEBAY2Mg.js";import{n as t,r as n}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{L as r,T as i}from"./chunk-V7P66DNM-D246Sefn.js";var a=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,o=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,s=/\s*%%.*\n/gm,c=class extends Error{static{n(this,`UnknownDiagramError`)}constructor(e){super(e),this.name=`UnknownDiagramError`}},l={},u=n(function(e,t){e=e.replace(a,``).replace(o,``).replace(s,` +`);for(let[n,{detector:r}]of Object.entries(l))if(r(e,t))return n;throw new c(`No diagram type detected matching given configuration for text: ${e}`)},`detectType`),d=n((...e)=>{for(let{id:t,detector:n,loader:r}of e)ee(t,n,r)},`registerLazyLoadedDiagrams`),ee=n((e,t,n)=>{l[e]&&i.warn(`Detector with key ${e} already exists. Overwriting.`),l[e]={detector:t,loader:n},i.debug(`Detector with key ${e} added${n?` with loader`:``}`)},`addDetector`),te=n(e=>l[e].loader,`getDiagramLoader`),f=n((e,t,{depth:n=2,clobber:r=!1}={})=>{let i={depth:n,clobber:r};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(t=>f(e,t,i)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(t=>{e.includes(t)||e.push(t)}),e):e===void 0||n<=0?typeof e==`object`&&e&&typeof t==`object`?Object.assign(e,t):t:(t!==void 0&&typeof e==`object`&&typeof t==`object`&&Object.keys(t).forEach(i=>{typeof t[i]==`object`&&t[i]!==null&&(e[i]===void 0||typeof e[i]==`object`)?(e[i]===void 0&&(e[i]=Array.isArray(t[i])?[]:{}),e[i]=f(e[i],t[i],{depth:n-1,clobber:r})):(r||typeof e[i]!=`object`&&typeof t[i]!=`object`)&&(e[i]=t[i])}),e)},`assignWithDepth`),p=f,ne={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:n(e=>e>=255?255:e<0?0:e,`r`),g:n(e=>e>=255?255:e<0?0:e,`g`),b:n(e=>e>=255?255:e<0?0:e,`b`),h:n(e=>e%360,`h`),s:n(e=>e>=100?100:e<0?0:e,`s`),l:n(e=>e>=100?100:e<0?0:e,`l`),a:n(e=>e>=1?1:e<0?0:e,`a`)},toLinear:n(e=>{let t=e/255;return e>.03928?((t+.055)/1.055)**2.4:t/12.92},`toLinear`),hue2rgb:n((e,t,n)=>(n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e),`hue2rgb`),hsl2rgb:n(({h:e,s:t,l:n},r)=>{if(!t)return n*2.55;e/=360,t/=100,n/=100;let i=n<.5?n*(1+t):n+t-n*t,a=2*n-i;switch(r){case`r`:return ne.hue2rgb(a,i,e+1/3)*255;case`g`:return ne.hue2rgb(a,i,e)*255;case`b`:return ne.hue2rgb(a,i,e-1/3)*255}},`hsl2rgb`),rgb2hsl:n(({r:e,g:t,b:n},r)=>{e/=255,t/=255,n/=255;let i=Math.max(e,t,n),a=Math.min(e,t,n),o=(i+a)/2;if(r===`l`)return o*100;if(i===a)return 0;let s=i-a,c=o>.5?s/(2-i-a):s/(i+a);if(r===`s`)return c*100;switch(i){case e:return((t-n)/s+(tt>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),`clamp`),round:n(e=>Math.round(e*1e10)/1e10,`round`)},unit:{dec2hex:n(e=>{let t=Math.round(e).toString(16);return t.length>1?t:`0${t}`},`dec2hex`)}},h={};for(let e=0;e<=255;e++)h[e]=m.unit.dec2hex(e);var g={ALL:0,RGB:1,HSL:2},re=class{static{n(this,`Type`)}constructor(){this.type=g.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw Error(`Cannot change both RGB and HSL channels at the same time`);this.type=e}reset(){this.type=g.ALL}is(e){return this.type===e}},_=new class{static{n(this,`Channels`)}constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new re}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=g.ALL,this}_ensureHSL(){let e=this.data,{h:t,s:n,l:r}=e;t===void 0&&(e.h=m.channel.rgb2hsl(e,`h`)),n===void 0&&(e.s=m.channel.rgb2hsl(e,`s`)),r===void 0&&(e.l=m.channel.rgb2hsl(e,`l`))}_ensureRGB(){let e=this.data,{r:t,g:n,b:r}=e;t===void 0&&(e.r=m.channel.hsl2rgb(e,`r`)),n===void 0&&(e.g=m.channel.hsl2rgb(e,`g`)),r===void 0&&(e.b=m.channel.hsl2rgb(e,`b`))}get r(){let e=this.data,t=e.r;return!this.type.is(g.HSL)&&t!==void 0?t:(this._ensureHSL(),m.channel.hsl2rgb(e,`r`))}get g(){let e=this.data,t=e.g;return!this.type.is(g.HSL)&&t!==void 0?t:(this._ensureHSL(),m.channel.hsl2rgb(e,`g`))}get b(){let e=this.data,t=e.b;return!this.type.is(g.HSL)&&t!==void 0?t:(this._ensureHSL(),m.channel.hsl2rgb(e,`b`))}get h(){let e=this.data,t=e.h;return!this.type.is(g.RGB)&&t!==void 0?t:(this._ensureRGB(),m.channel.rgb2hsl(e,`h`))}get s(){let e=this.data,t=e.s;return!this.type.is(g.RGB)&&t!==void 0?t:(this._ensureRGB(),m.channel.rgb2hsl(e,`s`))}get l(){let e=this.data,t=e.l;return!this.type.is(g.RGB)&&t!==void 0?t:(this._ensureRGB(),m.channel.rgb2hsl(e,`l`))}get a(){return this.data.a}set r(e){this.type.set(g.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(g.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(g.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(g.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(g.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(g.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}({r:0,g:0,b:0,a:0},`transparent`),ie={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:n(e=>{if(e.charCodeAt(0)!==35)return;let t=e.match(ie.re);if(!t)return;let n=t[1],r=parseInt(n,16),i=n.length,a=i%4==0,o=i>4,s=o?1:17,c=o?8:4,l=a?0:-1,u=o?255:15;return _.set({r:(r>>c*(l+3)&u)*s,g:(r>>c*(l+2)&u)*s,b:(r>>c*(l+1)&u)*s,a:a?(r&u)*s/255:1},e)},`parse`),stringify:n(e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`#${h[Math.round(t)]}${h[Math.round(n)]}${h[Math.round(r)]}${h[Math.round(i*255)]}`:`#${h[Math.round(t)]}${h[Math.round(n)]}${h[Math.round(r)]}`},`stringify`)},v=ie,ae={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:n(e=>{let t=e.match(ae.hueRe);if(t){let[,e,n]=t;switch(n){case`grad`:return m.channel.clamp.h(parseFloat(e)*.9);case`rad`:return m.channel.clamp.h(parseFloat(e)*180/Math.PI);case`turn`:return m.channel.clamp.h(parseFloat(e)*360)}}return m.channel.clamp.h(parseFloat(e))},`_hue2deg`),parse:n(e=>{let t=e.charCodeAt(0);if(t!==104&&t!==72)return;let n=e.match(ae.re);if(!n)return;let[,r,i,a,o,s]=n;return _.set({h:ae._hue2deg(r),s:m.channel.clamp.s(parseFloat(i)),l:m.channel.clamp.l(parseFloat(a)),a:o?m.channel.clamp.a(s?parseFloat(o)/100:parseFloat(o)):1},e)},`parse`),stringify:n(e=>{let{h:t,s:n,l:r,a:i}=e;return i<1?`hsla(${m.lang.round(t)}, ${m.lang.round(n)}%, ${m.lang.round(r)}%, ${i})`:`hsl(${m.lang.round(t)}, ${m.lang.round(n)}%, ${m.lang.round(r)}%)`},`stringify`)},oe=ae,se={colors:{aliceblue:`#f0f8ff`,antiquewhite:`#faebd7`,aqua:`#00ffff`,aquamarine:`#7fffd4`,azure:`#f0ffff`,beige:`#f5f5dc`,bisque:`#ffe4c4`,black:`#000000`,blanchedalmond:`#ffebcd`,blue:`#0000ff`,blueviolet:`#8a2be2`,brown:`#a52a2a`,burlywood:`#deb887`,cadetblue:`#5f9ea0`,chartreuse:`#7fff00`,chocolate:`#d2691e`,coral:`#ff7f50`,cornflowerblue:`#6495ed`,cornsilk:`#fff8dc`,crimson:`#dc143c`,cyanaqua:`#00ffff`,darkblue:`#00008b`,darkcyan:`#008b8b`,darkgoldenrod:`#b8860b`,darkgray:`#a9a9a9`,darkgreen:`#006400`,darkgrey:`#a9a9a9`,darkkhaki:`#bdb76b`,darkmagenta:`#8b008b`,darkolivegreen:`#556b2f`,darkorange:`#ff8c00`,darkorchid:`#9932cc`,darkred:`#8b0000`,darksalmon:`#e9967a`,darkseagreen:`#8fbc8f`,darkslateblue:`#483d8b`,darkslategray:`#2f4f4f`,darkslategrey:`#2f4f4f`,darkturquoise:`#00ced1`,darkviolet:`#9400d3`,deeppink:`#ff1493`,deepskyblue:`#00bfff`,dimgray:`#696969`,dimgrey:`#696969`,dodgerblue:`#1e90ff`,firebrick:`#b22222`,floralwhite:`#fffaf0`,forestgreen:`#228b22`,fuchsia:`#ff00ff`,gainsboro:`#dcdcdc`,ghostwhite:`#f8f8ff`,gold:`#ffd700`,goldenrod:`#daa520`,gray:`#808080`,green:`#008000`,greenyellow:`#adff2f`,grey:`#808080`,honeydew:`#f0fff0`,hotpink:`#ff69b4`,indianred:`#cd5c5c`,indigo:`#4b0082`,ivory:`#fffff0`,khaki:`#f0e68c`,lavender:`#e6e6fa`,lavenderblush:`#fff0f5`,lawngreen:`#7cfc00`,lemonchiffon:`#fffacd`,lightblue:`#add8e6`,lightcoral:`#f08080`,lightcyan:`#e0ffff`,lightgoldenrodyellow:`#fafad2`,lightgray:`#d3d3d3`,lightgreen:`#90ee90`,lightgrey:`#d3d3d3`,lightpink:`#ffb6c1`,lightsalmon:`#ffa07a`,lightseagreen:`#20b2aa`,lightskyblue:`#87cefa`,lightslategray:`#778899`,lightslategrey:`#778899`,lightsteelblue:`#b0c4de`,lightyellow:`#ffffe0`,lime:`#00ff00`,limegreen:`#32cd32`,linen:`#faf0e6`,magenta:`#ff00ff`,maroon:`#800000`,mediumaquamarine:`#66cdaa`,mediumblue:`#0000cd`,mediumorchid:`#ba55d3`,mediumpurple:`#9370db`,mediumseagreen:`#3cb371`,mediumslateblue:`#7b68ee`,mediumspringgreen:`#00fa9a`,mediumturquoise:`#48d1cc`,mediumvioletred:`#c71585`,midnightblue:`#191970`,mintcream:`#f5fffa`,mistyrose:`#ffe4e1`,moccasin:`#ffe4b5`,navajowhite:`#ffdead`,navy:`#000080`,oldlace:`#fdf5e6`,olive:`#808000`,olivedrab:`#6b8e23`,orange:`#ffa500`,orangered:`#ff4500`,orchid:`#da70d6`,palegoldenrod:`#eee8aa`,palegreen:`#98fb98`,paleturquoise:`#afeeee`,palevioletred:`#db7093`,papayawhip:`#ffefd5`,peachpuff:`#ffdab9`,peru:`#cd853f`,pink:`#ffc0cb`,plum:`#dda0dd`,powderblue:`#b0e0e6`,purple:`#800080`,rebeccapurple:`#663399`,red:`#ff0000`,rosybrown:`#bc8f8f`,royalblue:`#4169e1`,saddlebrown:`#8b4513`,salmon:`#fa8072`,sandybrown:`#f4a460`,seagreen:`#2e8b57`,seashell:`#fff5ee`,sienna:`#a0522d`,silver:`#c0c0c0`,skyblue:`#87ceeb`,slateblue:`#6a5acd`,slategray:`#708090`,slategrey:`#708090`,snow:`#fffafa`,springgreen:`#00ff7f`,tan:`#d2b48c`,teal:`#008080`,thistle:`#d8bfd8`,transparent:`#00000000`,turquoise:`#40e0d0`,violet:`#ee82ee`,wheat:`#f5deb3`,white:`#ffffff`,whitesmoke:`#f5f5f5`,yellow:`#ffff00`,yellowgreen:`#9acd32`},parse:n(e=>{e=e.toLowerCase();let t=se.colors[e];if(t)return v.parse(t)},`parse`),stringify:n(e=>{let t=v.stringify(e);for(let e in se.colors)if(se.colors[e]===t)return e},`stringify`)},ce=se,y={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:n(e=>{let t=e.charCodeAt(0);if(t!==114&&t!==82)return;let n=e.match(y.re);if(!n)return;let[,r,i,a,o,s,c,l,u]=n;return _.set({r:m.channel.clamp.r(i?parseFloat(r)*2.55:parseFloat(r)),g:m.channel.clamp.g(o?parseFloat(a)*2.55:parseFloat(a)),b:m.channel.clamp.b(c?parseFloat(s)*2.55:parseFloat(s)),a:l?m.channel.clamp.a(u?parseFloat(l)/100:parseFloat(l)):1},e)},`parse`),stringify:n(e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`rgba(${m.lang.round(t)}, ${m.lang.round(n)}, ${m.lang.round(r)}, ${m.lang.round(i)})`:`rgb(${m.lang.round(t)}, ${m.lang.round(n)}, ${m.lang.round(r)})`},`stringify`)},b=y,x={format:{keyword:ce,hex:v,rgb:b,rgba:b,hsl:oe,hsla:oe},parse:n(e=>{if(typeof e!=`string`)return e;let t=v.parse(e)||b.parse(e)||oe.parse(e)||ce.parse(e);if(t)return t;throw Error(`Unsupported color format: "${e}"`)},`parse`),stringify:n(e=>!e.changed&&e.color?e.color:e.type.is(g.HSL)||e.data.r===void 0?oe.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?b.stringify(e):v.stringify(e),`stringify`)},le=n((e,t)=>{let n=x.parse(e);for(let e in t)n[e]=m.channel.clamp[e](t[e]);return x.stringify(n)},`change`),S=n((e,t,n=0,r=1)=>{if(typeof e!=`number`)return le(e,{a:t});let i=_.set({r:m.channel.clamp.r(e),g:m.channel.clamp.g(t),b:m.channel.clamp.b(n),a:m.channel.clamp.a(r)});return x.stringify(i)},`rgba`),ue=n((e,t)=>m.lang.round(x.parse(e)[t]),`channel`),de=n(e=>{let{r:t,g:n,b:r}=x.parse(e),i=.2126*m.channel.toLinear(t)+.7152*m.channel.toLinear(n)+.0722*m.channel.toLinear(r);return m.lang.round(i)},`luminance`),fe=n(e=>de(e)>=.5,`isLight`),C=n(e=>!fe(e),`isDark`),pe=n((e,t,n)=>{let r=x.parse(e),i=r[t],a=m.channel.clamp[t](i+n);return i!==a&&(r[t]=a),x.stringify(r)},`adjustChannel`),w=n((e,t)=>pe(e,`l`,t),`lighten`),T=n((e,t)=>pe(e,`l`,-t),`darken`),E=n((e,t)=>pe(e,`a`,-t),`transparentize`),D=n((e,t)=>{let n=x.parse(e),r={};for(let e in t)t[e]&&(r[e]=n[e]+t[e]);return le(e,r)},`adjust`),O=n((e,t,n=50)=>{let{r,g:i,b:a,a:o}=x.parse(e),{r:s,g:c,b:l,a:u}=x.parse(t),d=n/100,ee=d*2-1,te=o-u,f=((ee*te===-1?ee:(ee+te)/(1+ee*te))+1)/2,p=1-f;return S(r*f+s*p,i*f+c*p,a*f+l*p,o*d+u*(1-d))},`mix`),k=n((e,t=100)=>{let n=x.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,O(n,e,t)},`invert`),A=`#ffffff`,j=`#f2f2f2`,M=n((e,t)=>t?D(e,{s:-40,l:10}):D(e,{s:-40,l:-10}),`mkBorder`),me=class{static{n(this,`Theme`)}constructor(){this.background=`#f4f4f4`,this.primaryColor=`#fff4dd`,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`#333`,this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily=`"trebuchet ms", verdana, arial, sans-serif`,this.fontSize=`16px`,this.useGradient=!0,this.dropShadow=`drop-shadow( 1px 2px 2px rgba(185,185,185,1))`}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#333`),this.secondaryColor=this.secondaryColor||D(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||D(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||M(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||M(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||M(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||M(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#333`,this.secondaryTextColor=this.secondaryTextColor||k(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||k(this.tertiaryColor),this.lineColor=this.lineColor||k(this.background),this.arrowheadColor=this.arrowheadColor||k(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?T(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||T(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||k(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||`#eeeeee`,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||w(this.primaryColor,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||`lightgrey`,this.doneTaskBorderColor=this.doneTaskBorderColor||`grey`,this.critBorderColor=this.critBorderColor||`#ff8888`,this.critBkgColor=this.critBkgColor||`red`,this.todayLineColor=this.todayLineColor||`red`,this.vertLineColor=this.vertLineColor||`navy`,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||`#003163`,this.noteFontWeight=this.noteFontWeight||`normal`,this.fontWeight=this.fontWeight||`normal`,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||T(this.mainBkg,5)||`#ffffff`,this.rowEven=this.rowEven||T(this.mainBkg,10)):(this.rowOdd=this.rowOdd||w(this.mainBkg,75)||`#ffffff`,this.rowEven=this.rowEven||w(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||D(this.primaryColor,{h:30}),this.cScale4=this.cScale4||D(this.primaryColor,{h:60}),this.cScale5=this.cScale5||D(this.primaryColor,{h:90}),this.cScale6=this.cScale6||D(this.primaryColor,{h:120}),this.cScale7=this.cScale7||D(this.primaryColor,{h:150}),this.cScale8=this.cScale8||D(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||D(this.primaryColor,{h:270}),this.cScale10=this.cScale10||D(this.primaryColor,{h:300}),this.cScale11=this.cScale11||D(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},he=n(e=>{let t=new me;return t.calculate(e),t},`getThemeVariables`),ge=class{static{n(this,`Theme`)}constructor(){this.background=`#333`,this.primaryColor=`#1f2020`,this.secondaryColor=w(this.primaryColor,16),this.tertiaryColor=D(this.primaryColor,{h:-160}),this.primaryBorderColor=k(this.background),this.secondaryBorderColor=M(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=M(this.tertiaryColor,this.darkMode),this.primaryTextColor=k(this.primaryColor),this.secondaryTextColor=k(this.secondaryColor),this.tertiaryTextColor=k(this.tertiaryColor),this.lineColor=k(this.background),this.textColor=k(this.background),this.mainBkg=`#1f2020`,this.secondBkg=`calculated`,this.mainContrastColor=`lightgrey`,this.darkTextColor=w(k(`#323D47`),10),this.lineColor=`calculated`,this.border1=`#ccc`,this.border2=S(255,255,255,.25),this.arrowheadColor=`calculated`,this.fontFamily=`"trebuchet ms", verdana, arial, sans-serif`,this.fontSize=`16px`,this.labelBackground=`#181818`,this.textColor=`#ccc`,this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg=`calculated`,this.nodeBorder=`calculated`,this.clusterBkg=`calculated`,this.clusterBorder=`calculated`,this.defaultLinkColor=`calculated`,this.titleColor=`#F9FFFE`,this.edgeLabelBackground=`calculated`,this.actorBorder=`calculated`,this.actorBkg=`calculated`,this.actorTextColor=`calculated`,this.actorLineColor=`calculated`,this.signalColor=`calculated`,this.signalTextColor=`calculated`,this.labelBoxBkgColor=`calculated`,this.labelBoxBorderColor=`calculated`,this.labelTextColor=`calculated`,this.loopTextColor=`calculated`,this.noteBorderColor=`calculated`,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`calculated`,this.activationBorderColor=`calculated`,this.activationBkgColor=`calculated`,this.sequenceNumberColor=`black`,this.clusterBkg=`#302F3D`,this.sectionBkgColor=T(`#EAE8D9`,30),this.altSectionBkgColor=`calculated`,this.sectionBkgColor2=`#EAE8D9`,this.excludeBkgColor=T(this.sectionBkgColor,10),this.taskBorderColor=S(255,255,255,70),this.taskBkgColor=`calculated`,this.taskTextColor=`calculated`,this.taskTextLightColor=`calculated`,this.taskTextOutsideColor=`calculated`,this.taskTextClickableColor=`#003163`,this.activeTaskBorderColor=S(255,255,255,50),this.activeTaskBkgColor=`#81B1DB`,this.gridColor=`calculated`,this.doneTaskBkgColor=`calculated`,this.doneTaskBorderColor=`grey`,this.critBorderColor=`#E83737`,this.critBkgColor=`#E83737`,this.taskTextDarkColor=`calculated`,this.todayLineColor=`#DB5757`,this.vertLineColor=`#00BFFF`,this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.rowOdd=this.rowOdd||w(this.mainBkg,5)||`#ffffff`,this.rowEven=this.rowEven||T(this.mainBkg,10),this.labelColor=`calculated`,this.errorBkgColor=`#a44141`,this.errorTextColor=`#ddd`,this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow=`drop-shadow( 1px 2px 2px rgba(185,185,185,1))`,this.noteFontWeight=this.noteFontWeight||`normal`,this.fontWeight=this.fontWeight||`normal`}updateColors(){this.secondBkg=w(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=w(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=w(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=k(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||`#555`,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=`#f4f4f4`,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=D(this.primaryColor,{h:64}),this.fillType3=D(this.secondaryColor,{h:64}),this.fillType4=D(this.primaryColor,{h:-64}),this.fillType5=D(this.secondaryColor,{h:-64}),this.fillType6=D(this.primaryColor,{h:128}),this.fillType7=D(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||`#0b0000`,this.cScale2=this.cScale2||`#4d1037`,this.cScale3=this.cScale3||`#3f5258`,this.cScale4=this.cScale4||`#4f2f1b`,this.cScale5=this.cScale5||`#6e0a0a`,this.cScale6=this.cScale6||`#3b0048`,this.cScale7=this.cScale7||`#995a01`,this.cScale8=this.cScale8||`#154706`,this.cScale9=this.cScale9||`#161722`,this.cScale10=this.cScale10||`#00296f`,this.cScale11=this.cScale11||`#01629c`,this.cScale12=this.cScale12||`#010029`,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||D(this.primaryColor,{h:30}),this.cScale4=this.cScale4||D(this.primaryColor,{h:60}),this.cScale5=this.cScale5||D(this.primaryColor,{h:90}),this.cScale6=this.cScale6||D(this.primaryColor,{h:120}),this.cScale7=this.cScale7||D(this.primaryColor,{h:150}),this.cScale8=this.cScale8||D(this.primaryColor,{h:210}),this.cScale9=this.cScale9||D(this.primaryColor,{h:270}),this.cScale10=this.cScale10||D(this.primaryColor,{h:300}),this.cScale11=this.cScale11||D(this.primaryColor,{h:330});for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},_e=n(e=>{let t=new ge;return t.calculate(e),t},`getThemeVariables`),ve=class{static{n(this,`Theme`)}constructor(){this.background=`#f4f4f4`,this.primaryColor=`#ECECFF`,this.secondaryColor=D(this.primaryColor,{h:120}),this.secondaryColor=`#ffffde`,this.tertiaryColor=D(this.primaryColor,{h:-160}),this.primaryBorderColor=M(this.primaryColor,this.darkMode),this.secondaryBorderColor=M(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=M(this.tertiaryColor,this.darkMode),this.primaryTextColor=k(this.primaryColor),this.secondaryTextColor=k(this.secondaryColor),this.tertiaryTextColor=k(this.tertiaryColor),this.lineColor=k(this.background),this.textColor=k(this.background),this.background=`white`,this.mainBkg=`#ECECFF`,this.secondBkg=`#ffffde`,this.lineColor=`#333333`,this.border1=`#9370DB`,this.primaryBorderColor=M(this.primaryColor,this.darkMode),this.border2=`#aaaa33`,this.arrowheadColor=`#333333`,this.fontFamily=`"trebuchet ms", verdana, arial, sans-serif`,this.fontSize=`16px`,this.labelBackground=`rgba(232,232,232, 0.8)`,this.textColor=`#333`,this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg=`calculated`,this.nodeBorder=`calculated`,this.clusterBkg=`calculated`,this.clusterBorder=`calculated`,this.defaultLinkColor=`calculated`,this.titleColor=`calculated`,this.edgeLabelBackground=`calculated`,this.actorBorder=`calculated`,this.actorBkg=`calculated`,this.actorTextColor=`black`,this.actorLineColor=`calculated`,this.signalColor=`calculated`,this.signalTextColor=`calculated`,this.labelBoxBkgColor=`calculated`,this.labelBoxBorderColor=`calculated`,this.labelTextColor=`calculated`,this.loopTextColor=`calculated`,this.noteBorderColor=`calculated`,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`calculated`,this.activationBorderColor=`#666`,this.activationBkgColor=`#f4f4f4`,this.sequenceNumberColor=`white`,this.clusterBkg=`#FBFBFF`,this.sectionBkgColor=`calculated`,this.altSectionBkgColor=`calculated`,this.sectionBkgColor2=`calculated`,this.excludeBkgColor=`#eeeeee`,this.taskBorderColor=`calculated`,this.taskBkgColor=`calculated`,this.taskTextLightColor=`calculated`,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=`calculated`,this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor=`calculated`,this.activeTaskBorderColor=`calculated`,this.activeTaskBkgColor=`calculated`,this.gridColor=`calculated`,this.doneTaskBkgColor=`calculated`,this.doneTaskBorderColor=`calculated`,this.critBorderColor=`calculated`,this.critBkgColor=`calculated`,this.todayLineColor=`calculated`,this.vertLineColor=`calculated`,this.sectionBkgColor=S(102,102,255,.49),this.altSectionBkgColor=`white`,this.sectionBkgColor2=`#fff400`,this.taskBorderColor=`#534fbc`,this.taskBkgColor=`#8a90dd`,this.taskTextLightColor=`white`,this.taskTextColor=`calculated`,this.taskTextDarkColor=`black`,this.taskTextOutsideColor=`calculated`,this.taskTextClickableColor=`#003163`,this.activeTaskBorderColor=`#534fbc`,this.activeTaskBkgColor=`#bfc7ff`,this.gridColor=`lightgrey`,this.doneTaskBkgColor=`lightgrey`,this.doneTaskBorderColor=`grey`,this.critBorderColor=`#ff8888`,this.critBkgColor=`red`,this.todayLineColor=`red`,this.vertLineColor=`navy`,this.noteFontWeight=this.noteFontWeight||`normal`,this.fontWeight=this.fontWeight||`normal`,this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.rowOdd=`calculated`,this.rowEven=`calculated`,this.labelColor=`black`,this.errorBkgColor=`#552222`,this.errorTextColor=`#552222`,this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow=`drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))`,this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||D(this.primaryColor,{h:30}),this.cScale4=this.cScale4||D(this.primaryColor,{h:60}),this.cScale5=this.cScale5||D(this.primaryColor,{h:90}),this.cScale6=this.cScale6||D(this.primaryColor,{h:120}),this.cScale7=this.cScale7||D(this.primaryColor,{h:150}),this.cScale8=this.cScale8||D(this.primaryColor,{h:210}),this.cScale9=this.cScale9||D(this.primaryColor,{h:270}),this.cScale10=this.cScale10||D(this.primaryColor,{h:300}),this.cScale11=this.cScale11||D(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||T(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||T(this.tertiaryColor,40);for(let e=0;e{this[e]===`calculated`&&(this[e]=void 0)}),typeof e!=`object`){this.updateColors();return}let t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},N=n(e=>{let t=new ve;return t.calculate(e),t},`getThemeVariables`),ye=class{static{n(this,`Theme`)}constructor(){this.background=`#f4f4f4`,this.primaryColor=`#cde498`,this.secondaryColor=`#cdffb2`,this.background=`white`,this.mainBkg=`#cde498`,this.secondBkg=`#cdffb2`,this.lineColor=`green`,this.border1=`#13540c`,this.border2=`#6eaa49`,this.arrowheadColor=`green`,this.fontFamily=`"trebuchet ms", verdana, arial, sans-serif`,this.fontSize=`16px`,this.tertiaryColor=w(`#cde498`,10),this.primaryBorderColor=M(this.primaryColor,this.darkMode),this.secondaryBorderColor=M(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=M(this.tertiaryColor,this.darkMode),this.primaryTextColor=k(this.primaryColor),this.secondaryTextColor=k(this.secondaryColor),this.tertiaryTextColor=k(this.primaryColor),this.lineColor=k(this.background),this.textColor=k(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg=`calculated`,this.nodeBorder=`calculated`,this.clusterBkg=`calculated`,this.clusterBorder=`calculated`,this.defaultLinkColor=`calculated`,this.titleColor=`#333`,this.edgeLabelBackground=`#e8e8e8`,this.actorBorder=`calculated`,this.actorBkg=`calculated`,this.actorTextColor=`black`,this.actorLineColor=`calculated`,this.signalColor=`#333`,this.signalTextColor=`#333`,this.labelBoxBkgColor=`calculated`,this.labelBoxBorderColor=`#326932`,this.labelTextColor=`calculated`,this.loopTextColor=`calculated`,this.noteBorderColor=`calculated`,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`calculated`,this.activationBorderColor=`#666`,this.activationBkgColor=`#f4f4f4`,this.sequenceNumberColor=`white`,this.sectionBkgColor=`#6eaa49`,this.altSectionBkgColor=`white`,this.sectionBkgColor2=`#6eaa49`,this.excludeBkgColor=`#eeeeee`,this.taskBorderColor=`calculated`,this.taskBkgColor=`#487e3a`,this.taskTextLightColor=`white`,this.taskTextColor=`calculated`,this.taskTextDarkColor=`black`,this.taskTextOutsideColor=`calculated`,this.taskTextClickableColor=`#003163`,this.activeTaskBorderColor=`calculated`,this.activeTaskBkgColor=`calculated`,this.gridColor=`lightgrey`,this.doneTaskBkgColor=`lightgrey`,this.doneTaskBorderColor=`grey`,this.critBorderColor=`#ff8888`,this.critBkgColor=`red`,this.todayLineColor=`red`,this.vertLineColor=`#00BFFF`,this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.noteFontWeight=`normal`,this.fontWeight=`normal`,this.labelColor=`black`,this.errorBkgColor=`#552222`,this.errorTextColor=`#552222`,this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow=`drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))`}updateColors(){this.actorBorder=T(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||D(this.primaryColor,{h:30}),this.cScale4=this.cScale4||D(this.primaryColor,{h:60}),this.cScale5=this.cScale5||D(this.primaryColor,{h:90}),this.cScale6=this.cScale6||D(this.primaryColor,{h:120}),this.cScale7=this.cScale7||D(this.primaryColor,{h:150}),this.cScale8=this.cScale8||D(this.primaryColor,{h:210}),this.cScale9=this.cScale9||D(this.primaryColor,{h:270}),this.cScale10=this.cScale10||D(this.primaryColor,{h:300}),this.cScale11=this.cScale11||D(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||T(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||T(this.tertiaryColor,40);for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},be=n(e=>{let t=new ye;return t.calculate(e),t},`getThemeVariables`),xe=class{static{n(this,`Theme`)}constructor(){this.primaryColor=`#eee`,this.contrast=`#707070`,this.secondaryColor=w(this.contrast,55),this.background=`#ffffff`,this.tertiaryColor=D(this.primaryColor,{h:-160}),this.primaryBorderColor=M(this.primaryColor,this.darkMode),this.secondaryBorderColor=M(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=M(this.tertiaryColor,this.darkMode),this.primaryTextColor=k(this.primaryColor),this.secondaryTextColor=k(this.secondaryColor),this.tertiaryTextColor=k(this.tertiaryColor),this.lineColor=k(this.background),this.textColor=k(this.background),this.mainBkg=`#eee`,this.secondBkg=`calculated`,this.lineColor=`#666`,this.border1=`#999`,this.border2=`calculated`,this.note=`#ffa`,this.text=`#333`,this.critical=`#d42`,this.done=`#bbb`,this.arrowheadColor=`#333333`,this.fontFamily=`"trebuchet ms", verdana, arial, sans-serif`,this.fontSize=`16px`,this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg=`calculated`,this.nodeBorder=`calculated`,this.clusterBkg=`calculated`,this.clusterBorder=`calculated`,this.defaultLinkColor=`calculated`,this.titleColor=`calculated`,this.edgeLabelBackground=`white`,this.actorBorder=`calculated`,this.actorBkg=`calculated`,this.actorTextColor=`calculated`,this.actorLineColor=this.actorBorder,this.signalColor=`calculated`,this.signalTextColor=`calculated`,this.labelBoxBkgColor=`calculated`,this.labelBoxBorderColor=`calculated`,this.labelTextColor=`calculated`,this.loopTextColor=`calculated`,this.noteBorderColor=`calculated`,this.noteBkgColor=`calculated`,this.noteTextColor=`calculated`,this.activationBorderColor=`#666`,this.activationBkgColor=`#f4f4f4`,this.sequenceNumberColor=`white`,this.sectionBkgColor=`calculated`,this.altSectionBkgColor=`white`,this.sectionBkgColor2=`calculated`,this.excludeBkgColor=`#eeeeee`,this.taskBorderColor=`calculated`,this.taskBkgColor=`calculated`,this.taskTextLightColor=`white`,this.taskTextColor=`calculated`,this.taskTextDarkColor=`calculated`,this.taskTextOutsideColor=`calculated`,this.taskTextClickableColor=`#003163`,this.activeTaskBorderColor=`calculated`,this.activeTaskBkgColor=`calculated`,this.gridColor=`calculated`,this.doneTaskBkgColor=`calculated`,this.doneTaskBorderColor=`calculated`,this.critBkgColor=`calculated`,this.critBorderColor=`calculated`,this.todayLineColor=`calculated`,this.vertLineColor=`calculated`,this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.noteFontWeight=`normal`,this.fontWeight=`normal`,this.rowOdd=this.rowOdd||w(this.mainBkg,75)||`#ffffff`,this.rowEven=this.rowEven||`#f4f4f4`,this.labelColor=`black`,this.errorBkgColor=`#552222`,this.errorTextColor=`#552222`,this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow=`drop-shadow( 1px 2px 2px rgba(185,185,185,1))`}updateColors(){this.secondBkg=w(this.contrast,55),this.border2=this.contrast,this.actorBorder=w(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor=`#999`,this.noteBkgColor=`#666`,this.noteTextColor=`#fff`,this.cScale0=this.cScale0||`#555`,this.cScale1=this.cScale1||`#F4F4F4`,this.cScale2=this.cScale2||`#555`,this.cScale3=this.cScale3||`#BBB`,this.cScale4=this.cScale4||`#777`,this.cScale5=this.cScale5||`#999`,this.cScale6=this.cScale6||`#DDD`,this.cScale7=this.cScale7||`#FFF`,this.cScale8=this.cScale8||`#DDD`,this.cScale9=this.cScale9||`#BBB`,this.cScale10=this.cScale10||`#999`,this.cScale11=this.cScale11||`#777`;for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},Se=n(e=>{let t=new xe;return t.calculate(e),t},`getThemeVariables`),Ce=class{static{n(this,`Theme`)}constructor(){this.background=`#ffffff`,this.primaryColor=`#cccccc`,this.mainBkg=`#ffffff`,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`#333`,this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=M(this.primaryColor,this.darkMode),this.fontFamily=`arial, sans-serif`,this.fontSize=`14px`,this.nodeBorder=`#000000`,this.stateBorder=`#000000`,this.useGradient=!0,this.gradientStart=`#0042eb`,this.gradientStop=`#eb0042`,this.dropShadow=`drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));`,this.tertiaryColor=`#ffffff`,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.noteFontWeight=`normal`,this.fontWeight=`normal`}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#333`),this.secondaryColor=this.secondaryColor||D(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||D(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||M(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||M(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||M(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||M(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#333`,this.secondaryTextColor=this.secondaryTextColor||k(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||k(this.tertiaryColor),this.lineColor=this.lineColor||k(this.background),this.arrowheadColor=this.arrowheadColor||k(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?T(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||T(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||k(this.lineColor);let e=`#ECECFE`,t=`#E9E9F1`,n=D(e,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||t,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||`#eeeeee`,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||w(e,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||`lightgrey`,this.doneTaskBorderColor=this.doneTaskBorderColor||`grey`,this.critBorderColor=this.critBorderColor||`#ff8888`,this.critBkgColor=this.critBkgColor||`red`,this.todayLineColor=this.todayLineColor||`red`,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||`#003163`,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||`#f0f0f0`,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||e,this.cScale1=this.cScale1||t,this.cScale2=this.cScale2||n,this.cScale3=this.cScale3||D(e,{h:30}),this.cScale4=this.cScale4||D(e,{h:60}),this.cScale5=this.cScale5||D(e,{h:90}),this.cScale6=this.cScale6||D(e,{h:120}),this.cScale7=this.cScale7||D(e,{h:150}),this.cScale8=this.cScale8||D(e,{h:210,l:150}),this.cScale9=this.cScale9||D(e,{h:270}),this.cScale10=this.cScale10||D(e,{h:300}),this.cScale11=this.cScale11||D(e,{h:330}),this.darkMode)for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},we=n(e=>{let t=new Ce;return t.calculate(e),t},`getThemeVariables`),Te=class{static{n(this,`Theme`)}constructor(){this.background=`#333`,this.primaryColor=`#1f2020`,this.secondaryColor=w(this.primaryColor,16),this.tertiaryColor=D(this.primaryColor,{h:-160}),this.primaryBorderColor=k(this.background),this.secondaryBorderColor=M(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=M(this.tertiaryColor,this.darkMode),this.primaryTextColor=k(this.primaryColor),this.secondaryTextColor=k(this.secondaryColor),this.tertiaryTextColor=k(this.tertiaryColor),this.mainBkg=`#2a2020`,this.secondBkg=`calculated`,this.mainContrastColor=`lightgrey`,this.darkTextColor=w(k(`#323D47`),10),this.border1=`#ccc`,this.border2=S(255,255,255,.25),this.arrowheadColor=k(this.background),this.fontFamily=`arial, sans-serif`,this.fontSize=`14px`,this.labelBackground=`#181818`,this.textColor=`#ccc`,this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`#333`,this.THEME_COLOR_LIMIT=12,this.fontFamily=`arial, sans-serif`,this.fontSize=`14px`,this.useGradient=!0,this.gradientStart=`#0042eb`,this.gradientStop=`#eb0042`,this.dropShadow=`drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))`,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.noteFontWeight=`normal`,this.fontWeight=`normal`}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#333`),this.secondaryColor=this.secondaryColor||D(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||D(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||M(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||M(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||M(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||M(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#333`,this.secondaryTextColor=this.secondaryTextColor||k(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||k(this.tertiaryColor),this.lineColor=this.lineColor||k(this.background),this.arrowheadColor=this.arrowheadColor||k(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?T(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||T(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||k(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||`#eeeeee`,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||w(this.primaryColor,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||`lightgrey`,this.doneTaskBorderColor=this.doneTaskBorderColor||`grey`,this.critBorderColor=this.critBorderColor||`#ff8888`,this.critBkgColor=this.critBkgColor||`red`,this.todayLineColor=this.todayLineColor||`red`,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||`#003163`,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||`#f0f0f0`,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||D(this.primaryColor,{h:30}),this.cScale4=this.cScale4||D(this.primaryColor,{h:60}),this.cScale5=this.cScale5||D(this.primaryColor,{h:90}),this.cScale6=this.cScale6||D(this.primaryColor,{h:120}),this.cScale7=this.cScale7||D(this.primaryColor,{h:150}),this.cScale8=this.cScale8||D(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||D(this.primaryColor,{h:270}),this.cScale10=this.cScale10||D(this.primaryColor,{h:300}),this.cScale11=this.cScale11||D(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},Ee=n(e=>{let t=new Te;return t.calculate(e),t},`getThemeVariables`),De=class{static{n(this,`Theme`)}constructor(){this.background=`#ffffff`,this.primaryColor=`#cccccc`,this.mainBkg=`#ffffff`,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`#28253D`,this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=M(`#28253D`,this.darkMode),this.fontFamily=`"Recursive Variable", arial, sans-serif`,this.fontSize=`14px`,this.nodeBorder=`#28253D`,this.stateBorder=`#28253D`,this.useGradient=!1,this.gradientStart=`#0042eb`,this.gradientStop=`#eb0042`,this.dropShadow=`url(#drop-shadow)`,this.nodeShadow=!0,this.tertiaryColor=`#ffffff`,this.clusterBkg=`#F9F9FB`,this.clusterBorder=`#BDBCCC`,this.noteBorderColor=`#FACC15`,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.actorBorder=`#28253D`,this.filterColor=`#000000`}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#28253D`),this.secondaryColor=this.secondaryColor||D(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||D(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||M(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||M(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||M(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||M(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#FEF9C3`,this.noteTextColor=this.noteTextColor||`#28253D`,this.secondaryTextColor=this.secondaryTextColor||k(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||k(this.tertiaryColor),this.lineColor=this.lineColor||k(this.background),this.arrowheadColor=this.arrowheadColor||k(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?T(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||T(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||k(this.lineColor);let e=`#ECECFE`,t=`#E9E9F1`,n=D(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||t,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||`#eeeeee`,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||w(e,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||`lightgrey`,this.doneTaskBorderColor=this.doneTaskBorderColor||`grey`,this.critBorderColor=this.critBorderColor||`#ff8888`,this.critBkgColor=this.critBkgColor||`red`,this.todayLineColor=this.todayLineColor||`red`,this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||`#003163`,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground=`#F9F9FB`,this.altBackground=`#F9F9FB`,this.stateEdgeLabelBackground=`#FFFFFF`,this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||`#f0f0f0`,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},Oe=n(e=>{let t=new De;return t.calculate(e),t},`getThemeVariables`),P=class{static{n(this,`Theme`)}constructor(){this.background=`#333`,this.primaryColor=`#1f2020`,this.secondaryColor=w(this.primaryColor,16),this.tertiaryColor=D(this.primaryColor,{h:-160}),this.primaryBorderColor=k(this.background),this.secondaryBorderColor=M(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=M(this.tertiaryColor,this.darkMode),this.primaryTextColor=k(this.primaryColor),this.secondaryTextColor=k(this.secondaryColor),this.tertiaryTextColor=k(this.tertiaryColor),this.mainBkg=`#111113`,this.secondBkg=`calculated`,this.mainContrastColor=`lightgrey`,this.darkTextColor=w(k(`#323D47`),10),this.border1=`#ccc`,this.border2=S(255,255,255,.25),this.arrowheadColor=k(this.background),this.fontFamily=`"Recursive Variable", arial, sans-serif`,this.fontSize=`14px`,this.labelBackground=`#111113`,this.textColor=`#ccc`,this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??`#FEF9C3`,this.noteTextColor=this.noteTextColor??`#28253D`,this.THEME_COLOR_LIMIT=12,this.fontFamily=`"Recursive Variable", arial, sans-serif`,this.fontSize=`14px`,this.nodeBorder=`#FFFFFF`,this.stateBorder=`#FFFFFF`,this.useGradient=!1,this.gradientStart=`#0042eb`,this.gradientStop=`#eb0042`,this.dropShadow=`url(#drop-shadow)`,this.nodeShadow=!0,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.clusterBkg=`#1E1A2E`,this.clusterBorder=`#BDBCCC`,this.noteBorderColor=`#FACC15`,this.noteFontWeight=600,this.filterColor=`#FFFFFF`}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#FFFFFF`),this.secondaryColor=this.secondaryColor||D(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||D(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||M(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||M(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||M(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||M(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#FFFFFF`,this.secondaryTextColor=this.secondaryTextColor||k(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||k(this.tertiaryColor),this.lineColor=this.lineColor||k(this.background),this.arrowheadColor=this.arrowheadColor||k(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?T(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=`#FFFFFF`,this.signalColor=`#FFFFFF`,this.labelBoxBorderColor=`#BDBCCC`,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||T(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||k(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||`#eeeeee`,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||w(this.primaryColor,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||`lightgrey`,this.doneTaskBorderColor=this.doneTaskBorderColor||`grey`,this.critBorderColor=this.critBorderColor||`#ff8888`,this.critBkgColor=this.critBkgColor||`red`,this.todayLineColor=this.todayLineColor||`red`,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||`#003163`,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground=`#16141F`,this.altBackground=`#16141F`,this.compositeTitleBackground=`#16141F`,this.stateEdgeLabelBackground=`#16141F`,this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||`#f0f0f0`,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||D(this.primaryColor,{h:30}),this.cScale4=this.cScale4||D(this.primaryColor,{h:60}),this.cScale5=this.cScale5||D(this.primaryColor,{h:90}),this.cScale6=this.cScale6||D(this.primaryColor,{h:120}),this.cScale7=this.cScale7||D(this.primaryColor,{h:150}),this.cScale8=this.cScale8||D(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||D(this.primaryColor,{h:270}),this.cScale10=this.cScale10||D(this.primaryColor,{h:300}),this.cScale11=this.cScale11||D(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},ke=n(e=>{let t=new P;return t.calculate(e),t},`getThemeVariables`),Ae=class{static{n(this,`Theme`)}constructor(){this.background=`#ffffff`,this.primaryColor=`#cccccc`,this.mainBkg=`#ffffff`,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`#28253D`,this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=M(this.primaryColor,this.darkMode),this.fontFamily=`"Recursive Variable", arial, sans-serif`,this.fontSize=`14px`,this.nodeBorder=`#28253D`,this.stateBorder=`#28253D`,this.useGradient=!1,this.gradientStart=`#0042eb`,this.gradientStop=`#eb0042`,this.dropShadow=`url(#drop-shadow)`,this.nodeShadow=!0,this.tertiaryColor=`#ffffff`,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.actorBorder=`#28253D`,this.noteBorderColor=`#FACC15`,this.noteFontWeight=600,this.borderColorArray=[`#E879F9`,`#2DD4BF`,`#FB923C`,`#22D3EE`,`#4ADE80`,`#A78BFA`,`#F87171`,`#FACC15`,`#818CF8`,`#A3E635 `,`#38BDF8`,`#FB7185`],this.bkgColorArray=[`#FDF4FF`,`#F0FDFA`,`#FFF7ED`,`#ECFEFF`,`#F0FDF4`,`#F5F3FF`,`#FEF2F2`,`#FEFCE8`,`#EEF2FF`,`#F7FEE7`,`#F0F9FF`,`#FFF1F2`],this.filterColor=`#000000`}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#28253D`),this.secondaryColor=this.secondaryColor||D(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||D(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||M(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||M(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||M(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||M(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#28253D`,this.secondaryTextColor=this.secondaryTextColor||k(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||k(this.tertiaryColor),this.lineColor=this.lineColor||k(this.background),this.arrowheadColor=this.arrowheadColor||k(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?T(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||T(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||k(this.lineColor);let e=`#ECECFE`,t=`#E9E9F1`,n=D(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||t,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||`#eeeeee`,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||w(e,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||`lightgrey`,this.doneTaskBorderColor=this.doneTaskBorderColor||`grey`,this.critBorderColor=this.critBorderColor||`#ff8888`,this.critBkgColor=this.critBkgColor||`red`,this.todayLineColor=this.todayLineColor||`red`,this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||`#003163`,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||`#f0f0f0`,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||`#f4a8ff`,this.cScale1=this.cScale1||`#46ecd5`,this.cScale2=this.cScale2||`#ffb86a`,this.cScale3=this.cScale3||`#dab2ff`,this.cScale4=this.cScale4||`#7bf1a8`,this.cScale5=this.cScale5||`#c4b4ff`,this.cScale6=this.cScale6||`#ffa2a2`,this.cScale7=this.cScale7||`#ffdf20`,this.cScale8=this.cScale8||`#a3b3ff`,this.cScale9=this.cScale9||`#bbf451`,this.cScale10=this.cScale10||`#74d4ff`,this.cScale11=this.cScale11||`#ffa1ad`;for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},je=n(e=>{let t=new Ae;return t.calculate(e),t},`getThemeVariables`),Me=class{static{n(this,`Theme`)}constructor(){this.background=`#333`,this.primaryColor=`#1f2020`,this.secondaryColor=w(this.primaryColor,16),this.tertiaryColor=D(this.primaryColor,{h:-160}),this.primaryBorderColor=k(this.background),this.secondaryBorderColor=M(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=M(this.tertiaryColor,this.darkMode),this.primaryTextColor=k(this.primaryColor),this.secondaryTextColor=k(this.secondaryColor),this.tertiaryTextColor=k(this.tertiaryColor),this.mainBkg=`#111113`,this.secondBkg=`calculated`,this.mainContrastColor=`lightgrey`,this.darkTextColor=w(k(`#323D47`),10),this.border1=`#ccc`,this.border2=S(255,255,255,.25),this.arrowheadColor=k(this.background),this.fontFamily=`"Recursive Variable", arial, sans-serif`,this.fontSize=`14px`,this.labelBackground=`#111113`,this.textColor=`#ccc`,this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??`#FEF9C3`,this.noteTextColor=this.noteTextColor??`#28253D`,this.THEME_COLOR_LIMIT=12,this.fontFamily=`"Recursive Variable", arial, sans-serif`,this.fontSize=`14px`,this.nodeBorder=`#FFFFFF`,this.stateBorder=`#FFFFFF`,this.useGradient=!1,this.gradientStart=`#0042eb`,this.gradientStop=`#eb0042`,this.dropShadow=`url(#drop-shadow)`,this.nodeShadow=!0,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.clusterBkg=`#1E1A2E`,this.clusterBorder=`#BDBCCC`,this.noteBorderColor=`#FACC15`,this.noteFontWeight=600,this.borderColorArray=[`#E879F9`,`#2DD4BF`,`#FB923C`,`#22D3EE`,`#4ADE80`,`#A78BFA`,`#F87171`,`#FACC15`,`#818CF8`,`#A3E635 `,`#38BDF8`,`#FB7185`],this.bkgColorArray=[],this.filterColor=`#FFFFFF`}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#FFFFFF`),this.secondaryColor=this.secondaryColor||D(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||D(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||M(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||M(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||M(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||M(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#FFFFFF`,this.secondaryTextColor=this.secondaryTextColor||k(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||k(this.tertiaryColor),this.lineColor=this.lineColor||k(this.background),this.arrowheadColor=this.arrowheadColor||k(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?T(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=`#FFFFFF`,this.signalColor=`#FFFFFF`,this.labelBoxBorderColor=`#BDBCCC`,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||T(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||k(this.lineColor),this.rootLabelColor=`#FFFFFF`,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||`#eeeeee`,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||w(this.primaryColor,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||`lightgrey`,this.doneTaskBorderColor=this.doneTaskBorderColor||`grey`,this.critBorderColor=this.critBorderColor||`#ff8888`,this.critBkgColor=this.critBkgColor||`red`,this.todayLineColor=this.todayLineColor||`red`,this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||`#003163`,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||`#f0f0f0`,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||`#f4a8ff`,this.cScale1=this.cScale1||`#46ecd5`,this.cScale2=this.cScale2||`#ffb86a`,this.cScale3=this.cScale3||`#dab2ff`,this.cScale4=this.cScale4||`#7bf1a8`,this.cScale5=this.cScale5||`#c4b4ff`,this.cScale6=this.cScale6||`#ffa2a2`,this.cScale7=this.cScale7||`#ffdf20`,this.cScale8=this.cScale8||`#a3b3ff`,this.cScale9=this.cScale9||`#bbf451`,this.cScale10=this.cScale10||`#74d4ff`,this.cScale11=this.cScale11||`#ffa1ad`;for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},F={base:{getThemeVariables:he},dark:{getThemeVariables:_e},default:{getThemeVariables:N},forest:{getThemeVariables:be},neutral:{getThemeVariables:Se},neo:{getThemeVariables:we},"neo-dark":{getThemeVariables:Ee},redux:{getThemeVariables:Oe},"redux-dark":{getThemeVariables:ke},"redux-color":{getThemeVariables:je},"redux-dark-color":{getThemeVariables:n(e=>{let t=new Me;return t.calculate(e),t},`getThemeVariables`)}},I={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:`basis`,padding:15,defaultRenderer:`dagre-wrapper`,wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:`center`,mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:`"Open Sans", sans-serif`,actorFontWeight:400,noteFontSize:14,noteFontFamily:`"trebuchet ms", verdana, arial, sans-serif`,noteFontWeight:400,noteAlign:`center`,messageFontSize:16,messageFontFamily:`"trebuchet ms", verdana, arial, sans-serif`,messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:`%Y-%m-%d`,topAxis:!1,displayMode:``,weekday:`sunday`},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:`center`,bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:`"Open Sans", sans-serif`,taskMargin:50,activationWidth:10,textPlacement:`fo`,actorColours:[`#8FBC8F`,`#7CFC00`,`#00FFFF`,`#20B2AA`,`#B0E0E6`,`#FFFFE0`],sectionFills:[`#191970`,`#8B008B`,`#4B0082`,`#2F4F4F`,`#800000`,`#8B4513`,`#00008B`],sectionColours:[`#fff`],titleColor:``,titleFontFamily:`"trebuchet ms", verdana, arial, sans-serif`,titleFontSize:`4ex`},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:`dagre-wrapper`,htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:`20`,compositTitleSize:35,radius:5,defaultRenderer:`dagre-wrapper`},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:`TB`,minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:`gray`,fill:`honeydew`,fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:`top`,yAxisPosition:`left`,quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,xAxis:{$ref:`#/$defs/XYChartAxisConfig`,showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:`#/$defs/XYChartAxisConfig`,showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:`vertical`,plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:`#f9f9f9`,text_color:`#333`,rect_border_size:`0.5px`,rect_border_color:`#bbb`,rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:`cose-bilkent`},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:``},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:`center`,bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:`"Open Sans", sans-serif`,taskMargin:50,activationWidth:10,textPlacement:`fo`,actorColours:[`#8FBC8F`,`#7CFC00`,`#00FFFF`,`#20B2AA`,`#B0E0E6`,`#FFFFE0`],sectionFills:[`#191970`,`#8B008B`,`#4B0082`,`#2F4F4F`,`#800000`,`#8B4513`,`#00008B`],sectionColours:[`#fff`],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:`main`,mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:`"Open Sans", sans-serif`,personFontWeight:`normal`,external_personFontSize:14,external_personFontFamily:`"Open Sans", sans-serif`,external_personFontWeight:`normal`,systemFontSize:14,systemFontFamily:`"Open Sans", sans-serif`,systemFontWeight:`normal`,external_systemFontSize:14,external_systemFontFamily:`"Open Sans", sans-serif`,external_systemFontWeight:`normal`,system_dbFontSize:14,system_dbFontFamily:`"Open Sans", sans-serif`,system_dbFontWeight:`normal`,external_system_dbFontSize:14,external_system_dbFontFamily:`"Open Sans", sans-serif`,external_system_dbFontWeight:`normal`,system_queueFontSize:14,system_queueFontFamily:`"Open Sans", sans-serif`,system_queueFontWeight:`normal`,external_system_queueFontSize:14,external_system_queueFontFamily:`"Open Sans", sans-serif`,external_system_queueFontWeight:`normal`,boundaryFontSize:14,boundaryFontFamily:`"Open Sans", sans-serif`,boundaryFontWeight:`normal`,messageFontSize:12,messageFontFamily:`"Open Sans", sans-serif`,messageFontWeight:`normal`,containerFontSize:14,containerFontFamily:`"Open Sans", sans-serif`,containerFontWeight:`normal`,external_containerFontSize:14,external_containerFontFamily:`"Open Sans", sans-serif`,external_containerFontWeight:`normal`,container_dbFontSize:14,container_dbFontFamily:`"Open Sans", sans-serif`,container_dbFontWeight:`normal`,external_container_dbFontSize:14,external_container_dbFontFamily:`"Open Sans", sans-serif`,external_container_dbFontWeight:`normal`,container_queueFontSize:14,container_queueFontFamily:`"Open Sans", sans-serif`,container_queueFontWeight:`normal`,external_container_queueFontSize:14,external_container_queueFontFamily:`"Open Sans", sans-serif`,external_container_queueFontWeight:`normal`,componentFontSize:14,componentFontFamily:`"Open Sans", sans-serif`,componentFontWeight:`normal`,external_componentFontSize:14,external_componentFontFamily:`"Open Sans", sans-serif`,external_componentFontWeight:`normal`,component_dbFontSize:14,component_dbFontFamily:`"Open Sans", sans-serif`,component_dbFontWeight:`normal`,external_component_dbFontSize:14,external_component_dbFontFamily:`"Open Sans", sans-serif`,external_component_dbFontWeight:`normal`,component_queueFontSize:14,component_queueFontFamily:`"Open Sans", sans-serif`,component_queueFontWeight:`normal`,external_component_queueFontSize:14,external_component_queueFontFamily:`"Open Sans", sans-serif`,external_component_queueFontWeight:`normal`,wrap:!0,wrapPadding:10,person_bg_color:`#08427B`,person_border_color:`#073B6F`,external_person_bg_color:`#686868`,external_person_border_color:`#8A8A8A`,system_bg_color:`#1168BD`,system_border_color:`#3C7FC0`,system_db_bg_color:`#1168BD`,system_db_border_color:`#3C7FC0`,system_queue_bg_color:`#1168BD`,system_queue_border_color:`#3C7FC0`,external_system_bg_color:`#999999`,external_system_border_color:`#8A8A8A`,external_system_db_bg_color:`#999999`,external_system_db_border_color:`#8A8A8A`,external_system_queue_bg_color:`#999999`,external_system_queue_border_color:`#8A8A8A`,container_bg_color:`#438DD5`,container_border_color:`#3C7FC0`,container_db_bg_color:`#438DD5`,container_db_border_color:`#3C7FC0`,container_queue_bg_color:`#438DD5`,container_queue_border_color:`#3C7FC0`,external_container_bg_color:`#B3B3B3`,external_container_border_color:`#A6A6A6`,external_container_db_bg_color:`#B3B3B3`,external_container_db_border_color:`#A6A6A6`,external_container_queue_bg_color:`#B3B3B3`,external_container_queue_border_color:`#A6A6A6`,component_bg_color:`#85BBF0`,component_border_color:`#78A8D8`,component_db_bg_color:`#85BBF0`,component_db_border_color:`#78A8D8`,component_queue_bg_color:`#85BBF0`,component_queue_border_color:`#78A8D8`,external_component_bg_color:`#CCCCCC`,external_component_border_color:`#BFBFBF`,external_component_db_bg_color:`#CCCCCC`,external_component_db_border_color:`#BFBFBF`,external_component_queue_bg_color:`#CCCCCC`,external_component_queue_border_color:`#BFBFBF`},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:`gradient`,nodeAlignment:`justify`,showValues:!0,prefix:``,suffix:``,nodeWidth:10,nodePadding:12,labelStyle:`legacy`},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},theme:`default`,look:`classic`,handDrawnSeed:0,layout:`dagre`,maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:`"trebuchet ms", verdana, arial, sans-serif;`,logLevel:5,securityLevel:`strict`,startOnLoad:!0,arrowMarkerAbsolute:!1,secure:[`secure`,`securityLevel`,`startOnLoad`,`maxTextSize`,`suppressErrorRendering`,`maxEdges`],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},Ne={...I,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:`BRANDES_KOEPF`,forceNodeModelOrder:!1,considerModelOrder:`NODES_AND_EDGES`},themeCSS:void 0,themeVariables:F.default.getThemeVariables(),sequence:{...I.sequence,messageFont:n(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},`messageFont`),noteFont:n(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},`noteFont`),actorFont:n(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},`actorFont`)},class:{hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...I.gantt,tickInterval:void 0,useWidth:void 0},c4:{...I.c4,useWidth:void 0,personFont:n(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},`personFont`),flowchart:{...I.flowchart,inheritDir:!1},external_personFont:n(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},`external_personFont`),systemFont:n(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},`systemFont`),external_systemFont:n(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},`external_systemFont`),system_dbFont:n(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},`system_dbFont`),external_system_dbFont:n(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},`external_system_dbFont`),system_queueFont:n(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},`system_queueFont`),external_system_queueFont:n(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},`external_system_queueFont`),containerFont:n(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},`containerFont`),external_containerFont:n(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},`external_containerFont`),container_dbFont:n(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},`container_dbFont`),external_container_dbFont:n(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},`external_container_dbFont`),container_queueFont:n(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},`container_queueFont`),external_container_queueFont:n(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},`external_container_queueFont`),componentFont:n(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},`componentFont`),external_componentFont:n(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},`external_componentFont`),component_dbFont:n(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},`component_dbFont`),external_component_dbFont:n(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},`external_component_dbFont`),component_queueFont:n(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},`component_queueFont`),external_component_queueFont:n(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},`external_component_queueFont`),boundaryFont:n(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},`boundaryFont`),messageFont:n(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},`messageFont`)},pie:{...I.pie,useWidth:984},xyChart:{...I.xyChart,useWidth:void 0},requirement:{...I.requirement,useWidth:void 0},packet:{...I.packet},eventmodeling:{...I.eventmodeling},treeView:{...I.treeView,useWidth:void 0},radar:{...I.radar},ishikawa:{...I.ishikawa},sankey:{...I.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:`,`},venn:{...I.venn}},L=n((e,t=``)=>Object.keys(e).reduce((n,r)=>Array.isArray(e[r])?n:typeof e[r]==`object`&&e[r]!==null?[...n,t+r,...L(e[r],``)]:[...n,t+r],[]),`keyify`),Pe=new Set(L(Ne,``)),Fe=Ne,Ie=n(e=>{if(i.debug(`sanitizeDirective called with`,e),!(typeof e!=`object`||!e)){if(Array.isArray(e)){e.forEach(e=>Ie(e));return}for(let t of Object.keys(e)){if(i.debug(`Checking key`,t),t.startsWith(`__`)||t.includes(`proto`)||t.includes(`constr`)||!Pe.has(t)||e[t]==null){i.debug(`sanitize deleting key: `,t),delete e[t];continue}if(typeof e[t]==`object`){if(t===`nodeColors`){let n=/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i;for(let r of Object.keys(e[t]))(typeof e[t][r]!=`string`||!n.test(e[t][r]))&&(i.debug(`sanitize deleting invalid color:`,r,e[t][r]),delete e[t][r])}else i.debug(`sanitizing object`,t),Ie(e[t]);continue}for(let n of[`themeCSS`,`fontFamily`,`altFontFamily`])t.includes(n)&&(i.debug(`sanitizing css option`,t),e[t]=Le(e[t]))}if(e.themeVariables)for(let t of Object.keys(e.themeVariables)){let n=e.themeVariables[t];n?.match&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]=``)}i.debug(`After sanitization`,e)}},`sanitizeDirective`),Le=n(e=>{let t=0,n=0;for(let r of e){if(t!(e===!1||[`false`,`null`,`0`].includes(String(e).trim().toLowerCase())),`evaluate`),z=p({},R),B,V=[],H=p({},R),U=n((e,t)=>{let n=p({},e),r={};for(let e of t)W(e),r=p(r,e);if(n=p(n,r),r.theme&&r.theme in F){let e=p(p({},B).themeVariables||{},r.themeVariables);n.theme&&n.theme in F&&(n.themeVariables=F[n.theme].getThemeVariables(e))}return H=n,K(H),H},`updateCurrentConfig`),ze=n(e=>(z=p({},R),z=p(z,e),e.theme&&F[e.theme]&&(z.themeVariables=F[e.theme].getThemeVariables(e.themeVariables)),U(z,V),z),`setSiteConfig`),Be=n(e=>{B=p({},e)},`saveConfigFromInitialize`),Ve=n(e=>(z=p(z,e),U(z,V),z),`updateSiteConfig`),He=n(()=>p({},z),`getSiteConfig`),Ue=n(e=>(K(e),p(H,e),We()),`setConfig`),We=n(()=>p({},H),`getConfig`),W=n(e=>{e&&([`secure`,...z.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(i.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith(`__`)&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]==`string`&&(e[t].includes(`<`)||e[t].includes(`>`)||e[t].includes(`url(data:`))&&delete e[t],typeof e[t]==`object`&&W(e[t])}))},`sanitize`),G=n(e=>{Ie(e),e.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),V.push(e),U(z,V)},`addDirective`),Ge=n((e=z)=>{V=[],U(e,V)},`reset`),Ke={LAZY_LOAD_DEPRECATED:`The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.`,FLOWCHART_HTML_LABELS_DEPRECATED:`flowchart.htmlLabels is deprecated. Please use global htmlLabels instead.`},qe={},Je=n(e=>{qe[e]||(i.warn(Ke[e]),qe[e]=!0)},`issueWarning`),K=n(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&Je(`LAZY_LOAD_DEPRECATED`)},`checkConfig`),Ye=n(()=>{let e={};B&&(e=p(e,B));for(let t of V)e=p(e,t);return e},`getUserDefinedConfig`),Xe=n(e=>(e.flowchart?.htmlLabels!=null&&Je(`FLOWCHART_HTML_LABELS_DEPRECATED`),Re(e.htmlLabels??e.flowchart?.htmlLabels??!0)),`getEffectiveHtmlLabels`),{entries:Ze,setPrototypeOf:Qe,isFrozen:$e,getPrototypeOf:et,getOwnPropertyDescriptor:tt}=Object,{freeze:q,seal:J,create:nt}=Object,{apply:rt,construct:it}=typeof Reflect<`u`&&Reflect;q||=n(function(e){return e},`freeze`),J||=n(function(e){return e},`seal`),rt||=n(function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},`apply`),it||=n(function(e){return new e(...[...arguments].slice(1))},`construct`);var at=Z(Array.prototype.forEach),ot=Z(Array.prototype.lastIndexOf),st=Z(Array.prototype.pop),ct=Z(Array.prototype.push),lt=Z(Array.prototype.splice),ut=Z(String.prototype.toLowerCase),dt=Z(String.prototype.toString),ft=Z(String.prototype.match),pt=Z(String.prototype.replace),mt=Z(String.prototype.indexOf),ht=Z(String.prototype.trim),Y=Z(Object.prototype.hasOwnProperty),X=Z(RegExp.prototype.test),gt=_t(TypeError);function Z(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return rt(e,t,n)}}n(Z,`unapply`);function _t(e){return function(){return it(e,[...arguments])}}n(_t,`unconstruct`);function Q(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ut;Qe&&Qe(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&($e(t)||(t[r]=e),i=e)}e[i]=!0}return e}n(Q,`addToSet`);function vt(e){for(let t=0;t/gm),Nt=J(/\$\{[\w\W]*/gm),Pt=J(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ft=J(/^aria-[\-\w]+$/),It=J(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Lt=J(/^(?:\w+script|data):/i),Rt=J(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),zt=J(/^html$/i),Bt=J(/^[a-z][.\w]*(-[.\w]+)+$/i),Vt=Object.freeze({__proto__:null,ARIA_ATTR:Ft,ATTR_WHITESPACE:Rt,CUSTOM_ELEMENT:Bt,DATA_ATTR:Pt,DOCTYPE_NAME:zt,ERB_EXPR:Mt,IS_ALLOWED_URI:It,IS_SCRIPT_OR_DATA:Lt,MUSTACHE_EXPR:jt,TMPLIT_EXPR:Nt}),Ht={element:1,text:3,progressingInstruction:7,comment:8,document:9},Ut=n(function(){return typeof window>`u`?null:window},`getGlobal`),Wt=n(function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},`_createTrustedTypesPolicy`),Gt=n(function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},`_createHooksMap`);function Kt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ut(),t=n(e=>Kt(e),`DOMPurify`);if(t.version=`3.4.0`,t.removed=[],!e||!e.document||e.document.nodeType!==Ht.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e,i=r,a=i.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:c,Element:l,NodeFilter:u,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:ee,DOMParser:te,trustedTypes:f}=e,p=l.prototype,ne=yt(p,`cloneNode`),m=yt(p,`remove`),h=yt(p,`nextSibling`),g=yt(p,`childNodes`),re=yt(p,`parentNode`);if(typeof s==`function`){let e=r.createElement(`template`);e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let _,ie=``,{implementation:v,createNodeIterator:ae,createDocumentFragment:oe,getElementsByTagName:se}=r,{importNode:ce}=i,y=Gt();t.isSupported=typeof Ze==`function`&&typeof re==`function`&&v&&v.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:b,ERB_EXPR:x,TMPLIT_EXPR:le,DATA_ATTR:S,ARIA_ATTR:ue,IS_SCRIPT_OR_DATA:de,ATTR_WHITESPACE:fe,CUSTOM_ELEMENT:C}=Vt,{IS_ALLOWED_URI:pe}=Vt,w=null,T=Q({},[...bt,...xt,...St,...wt,...Et]),E=null,D=Q({},[...Dt,...Ot,...kt,...At]),O=Object.seal(nt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),k=null,A=null,j=Object.seal(nt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),M=!0,me=!0,he=!1,ge=!0,_e=!1,ve=!0,N=!1,ye=!1,be=!1,xe=!1,Se=!1,Ce=!1,we=!0,Te=!1,Ee=!0,De=!1,Oe={},P=null,ke=Q({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),Ae=null,je=Q({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Me=null,F=Q({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),I=`http://www.w3.org/1998/Math/MathML`,Ne=`http://www.w3.org/2000/svg`,L=`http://www.w3.org/1999/xhtml`,Pe=L,Fe=!1,Ie=null,Le=Q({},[I,Ne,L],dt),R=Q({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Re=Q({},[`annotation-xml`]),z=Q({},[`title`,`style`,`font`,`a`,`script`]),B=null,V=[`application/xhtml+xml`,`text/html`],H=null,U=null,ze=r.createElement(`form`),Be=n(function(e){return e instanceof RegExp||e instanceof Function},`isRegexOrFunction`),Ve=n(function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(U&&U===e)){if((!e||typeof e!=`object`)&&(e={}),e=$(e),B=V.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,H=B===`application/xhtml+xml`?dt:ut,w=Y(e,`ALLOWED_TAGS`)?Q({},e.ALLOWED_TAGS,H):T,E=Y(e,`ALLOWED_ATTR`)?Q({},e.ALLOWED_ATTR,H):D,Ie=Y(e,`ALLOWED_NAMESPACES`)?Q({},e.ALLOWED_NAMESPACES,dt):Le,Me=Y(e,`ADD_URI_SAFE_ATTR`)?Q($(F),e.ADD_URI_SAFE_ATTR,H):F,Ae=Y(e,`ADD_DATA_URI_TAGS`)?Q($(je),e.ADD_DATA_URI_TAGS,H):je,P=Y(e,`FORBID_CONTENTS`)?Q({},e.FORBID_CONTENTS,H):ke,k=Y(e,`FORBID_TAGS`)?Q({},e.FORBID_TAGS,H):$({}),A=Y(e,`FORBID_ATTR`)?Q({},e.FORBID_ATTR,H):$({}),Oe=Y(e,`USE_PROFILES`)?e.USE_PROFILES:!1,M=e.ALLOW_ARIA_ATTR!==!1,me=e.ALLOW_DATA_ATTR!==!1,he=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ge=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,_e=e.SAFE_FOR_TEMPLATES||!1,ve=e.SAFE_FOR_XML!==!1,N=e.WHOLE_DOCUMENT||!1,xe=e.RETURN_DOM||!1,Se=e.RETURN_DOM_FRAGMENT||!1,Ce=e.RETURN_TRUSTED_TYPE||!1,be=e.FORCE_BODY||!1,we=e.SANITIZE_DOM!==!1,Te=e.SANITIZE_NAMED_PROPS||!1,Ee=e.KEEP_CONTENT!==!1,De=e.IN_PLACE||!1,pe=e.ALLOWED_URI_REGEXP||It,Pe=e.NAMESPACE||L,R=e.MATHML_TEXT_INTEGRATION_POINTS||R,Re=e.HTML_INTEGRATION_POINTS||Re,O=e.CUSTOM_ELEMENT_HANDLING||nt(null),e.CUSTOM_ELEMENT_HANDLING&&Be(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(O.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Be(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(O.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(O.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),_e&&(me=!1),Se&&(xe=!0),Oe&&(w=Q({},Et),E=nt(null),Oe.html===!0&&(Q(w,bt),Q(E,Dt)),Oe.svg===!0&&(Q(w,xt),Q(E,Ot),Q(E,At)),Oe.svgFilters===!0&&(Q(w,St),Q(E,Ot),Q(E,At)),Oe.mathMl===!0&&(Q(w,wt),Q(E,kt),Q(E,At))),j.tagCheck=null,j.attributeCheck=null,e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?j.tagCheck=e.ADD_TAGS:(w===T&&(w=$(w)),Q(w,e.ADD_TAGS,H))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?j.attributeCheck=e.ADD_ATTR:(E===D&&(E=$(E)),Q(E,e.ADD_ATTR,H))),e.ADD_URI_SAFE_ATTR&&Q(Me,e.ADD_URI_SAFE_ATTR,H),e.FORBID_CONTENTS&&(P===ke&&(P=$(P)),Q(P,e.FORBID_CONTENTS,H)),e.ADD_FORBID_CONTENTS&&(P===ke&&(P=$(P)),Q(P,e.ADD_FORBID_CONTENTS,H)),Ee&&(w[`#text`]=!0),N&&Q(w,[`html`,`head`,`body`]),w.table&&(Q(w,[`tbody`]),delete k.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw gt(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw gt(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);_=e.TRUSTED_TYPES_POLICY,ie=_.createHTML(``)}else _===void 0&&(_=Wt(f,a)),_!==null&&typeof ie==`string`&&(ie=_.createHTML(``));q&&q(e),U=e}},`_parseConfig`),He=Q({},[...xt,...St,...Ct]),Ue=Q({},[...wt,...Tt]),We=n(function(e){let t=re(e);(!t||!t.tagName)&&(t={namespaceURI:Pe,tagName:`template`});let n=ut(e.tagName),r=ut(t.tagName);return Ie[e.namespaceURI]?e.namespaceURI===Ne?t.namespaceURI===L?n===`svg`:t.namespaceURI===I?n===`svg`&&(r===`annotation-xml`||R[r]):!!He[n]:e.namespaceURI===I?t.namespaceURI===L?n===`math`:t.namespaceURI===Ne?n===`math`&&Re[r]:!!Ue[n]:e.namespaceURI===L?t.namespaceURI===Ne&&!Re[r]||t.namespaceURI===I&&!R[r]?!1:!Ue[n]&&(z[n]||!He[n]):!!(B===`application/xhtml+xml`&&Ie[e.namespaceURI]):!1},`_checkValidNamespace`),W=n(function(e){ct(t.removed,{element:e});try{re(e).removeChild(e)}catch{m(e)}},`_forceRemove`),G=n(function(e,n){try{ct(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{ct(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(xe||Se)try{W(n)}catch{}else try{n.setAttribute(e,``)}catch{}},`_removeAttribute`),Ge=n(function(e){let t=null,n=null;if(be)e=``+e;else{let t=ft(e,/^[\r\n\t ]+/);n=t&&t[0]}B===`application/xhtml+xml`&&Pe===L&&(e=``+e+``);let i=_?_.createHTML(e):e;if(Pe===L)try{t=new te().parseFromString(i,B)}catch{}if(!t||!t.documentElement){t=v.createDocument(Pe,`template`,null);try{t.documentElement.innerHTML=Fe?ie:i}catch{}}let a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Pe===L?se.call(t,N?`html`:`body`)[0]:N?t.documentElement:a},`_initDocument`),Ke=n(function(e){return ae.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},`_createNodeIterator`),qe=n(function(e){return e instanceof ee&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof d)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},`_isClobbered`),Je=n(function(e){return typeof c==`function`&&e instanceof c},`_isNode`);function K(e,n,r){at(e,e=>{e.call(t,n,r,U)})}n(K,`_executeHooks`);let Ye=n(function(e){let n=null;if(K(y.beforeSanitizeElements,e,null),qe(e))return W(e),!0;let r=H(e.nodeName);if(K(y.uponSanitizeElement,e,{tagName:r,allowedTags:w}),ve&&e.hasChildNodes()&&!Je(e.firstElementChild)&&X(/<[/\w!]/g,e.innerHTML)&&X(/<[/\w!]/g,e.textContent)||ve&&e.namespaceURI===L&&r===`style`&&Je(e.firstElementChild)||e.nodeType===Ht.progressingInstruction||ve&&e.nodeType===Ht.comment&&X(/<[/\w]/g,e.data))return W(e),!0;if(k[r]||!(j.tagCheck instanceof Function&&j.tagCheck(r))&&!w[r]){if(!k[r]&&Qe(r)&&(O.tagNameCheck instanceof RegExp&&X(O.tagNameCheck,r)||O.tagNameCheck instanceof Function&&O.tagNameCheck(r)))return!1;if(Ee&&!P[r]){let t=re(e)||e.parentNode,n=g(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=ne(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,h(e))}}}return W(e),!0}return e instanceof l&&!We(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&X(/<\/no(script|embed|frames)/i,e.innerHTML)?(W(e),!0):(_e&&e.nodeType===Ht.text&&(n=e.textContent,at([b,x,le],e=>{n=pt(n,e,` `)}),e.textContent!==n&&(ct(t.removed,{element:e.cloneNode()}),e.textContent=n)),K(y.afterSanitizeElements,e,null),!1)},`_sanitizeElements`),Xe=n(function(e,t,n){if(A[t]||we&&(t===`id`||t===`name`)&&(n in r||n in ze))return!1;if(!(me&&!A[t]&&X(S,t))&&!(M&&X(ue,t))&&!(j.attributeCheck instanceof Function&&j.attributeCheck(t,e))){if(!E[t]||A[t]){if(!(Qe(e)&&(O.tagNameCheck instanceof RegExp&&X(O.tagNameCheck,e)||O.tagNameCheck instanceof Function&&O.tagNameCheck(e))&&(O.attributeNameCheck instanceof RegExp&&X(O.attributeNameCheck,t)||O.attributeNameCheck instanceof Function&&O.attributeNameCheck(t,e))||t===`is`&&O.allowCustomizedBuiltInElements&&(O.tagNameCheck instanceof RegExp&&X(O.tagNameCheck,n)||O.tagNameCheck instanceof Function&&O.tagNameCheck(n))))return!1}else if(!Me[t]&&!X(pe,pt(n,fe,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&mt(n,`data:`)===0&&Ae[e])&&!(he&&!X(de,pt(n,fe,``)))&&n)return!1}return!0},`_isValidAttribute`),Qe=n(function(e){return e!==`annotation-xml`&&ft(e,C)},`_isBasicCustomElement`),$e=n(function(e){K(y.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||qe(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:E,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:o,value:s}=n[i],c=H(a),l=s,u=a===`value`?l:ht(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,K(y.uponSanitizeAttribute,e,r),u=r.attrValue,Te&&(c===`id`||c===`name`)&&(G(a,e),u=`user-content-`+u),ve&&X(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){G(a,e);continue}if(c===`attributename`&&ft(u,`href`)){G(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){G(a,e);continue}if(!ge&&X(/\/>/i,u)){G(a,e);continue}_e&&at([b,x,le],e=>{u=pt(u,e,` `)});let d=H(e.nodeName);if(!Xe(d,c,u)){G(a,e);continue}if(_&&typeof f==`object`&&typeof f.getAttributeType==`function`&&!o)switch(f.getAttributeType(d,c)){case`TrustedHTML`:u=_.createHTML(u);break;case`TrustedScriptURL`:u=_.createScriptURL(u);break}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),qe(e)?W(e):st(t.removed)}catch{G(a,e)}}K(y.afterSanitizeAttributes,e,null)},`_sanitizeAttributes`),et=n(function(e){let t=null,n=Ke(e);for(K(y.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)K(y.uponSanitizeShadowNode,t,null),Ye(t),$e(t),t.content instanceof o&&et(t.content);K(y.afterSanitizeShadowDOM,e,null)},`_sanitizeShadowDOM`);return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=null,a=null,s=null,l=null;if(Fe=!e,Fe&&(e=``),typeof e!=`string`&&!Je(e))if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw gt(`dirty is not a string, aborting`)}else throw gt(`toString is not a function`);if(!t.isSupported)return e;if(ye||Ve(n),t.removed=[],typeof e==`string`&&(De=!1),De){if(e.nodeName){let t=H(e.nodeName);if(!w[t]||k[t])throw gt(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof c)r=Ge(``),a=r.ownerDocument.importNode(e,!0),a.nodeType===Ht.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?r=a:r.appendChild(a);else{if(!xe&&!_e&&!N&&e.indexOf(`<`)===-1)return _&&Ce?_.createHTML(e):e;if(r=Ge(e),!r)return xe?null:Ce?ie:``}r&&be&&W(r.firstChild);let u=Ke(De?e:r);for(;s=u.nextNode();)Ye(s),$e(s),s.content instanceof o&&et(s.content);if(De)return e;if(xe){if(_e){r.normalize();let e=r.innerHTML;at([b,x,le],t=>{e=pt(e,t,` `)}),r.innerHTML=e}if(Se)for(l=oe.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(E.shadowroot||E.shadowrootmode)&&(l=ce.call(i,l,!0)),l}let d=N?r.outerHTML:r.innerHTML;return N&&w[`!doctype`]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&X(zt,r.ownerDocument.doctype.name)&&(d=` +`+d),_e&&at([b,x,le],e=>{d=pt(d,e,` `)}),_&&Ce?_.createHTML(d):d},t.setConfig=function(){Ve(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),ye=!0},t.clearConfig=function(){U=null,ye=!1},t.isValidAttribute=function(e,t,n){return U||Ve({}),Xe(H(e),H(t),n)},t.addHook=function(e,t){typeof t==`function`&&ct(y[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=ot(y[e],t);return n===-1?void 0:lt(y[e],n,1)[0]}return st(y[e])},t.removeHooks=function(e){y[e]=[]},t.removeAllHooks=function(){y=Gt()},t}n(Kt,`createDOMPurify`);var qt=Kt(),Jt=//gi,Yt=n(e=>e?on(e).replace(/\\n/g,`#br#`).split(`#br#`):[``],`getRows`),Xt=(()=>{let e=!1;return()=>{e||=(Zt(),!0)}})();function Zt(){let e=`data-temp-href-target`;qt.addHook(`beforeSanitizeAttributes`,t=>{t.tagName===`A`&&t.hasAttribute(`target`)&&t.setAttribute(e,t.getAttribute(`target`)??``)}),qt.addHook(`afterSanitizeAttributes`,t=>{t.tagName===`A`&&t.hasAttribute(e)&&(t.setAttribute(`target`,t.getAttribute(e)??``),t.removeAttribute(e),t.getAttribute(`target`)===`_blank`&&t.setAttribute(`rel`,`noopener`))})}n(Zt,`setupDompurifyHooks`);var Qt=n(e=>(Xt(),qt.sanitize(e)),`removeScript`),$t=n((e,t)=>{if(Xe(t)){let n=t.securityLevel;n===`antiscript`||n===`strict`||n===`sandbox`?e=Qt(e):n!==`loose`&&(e=on(e),e=e.replace(//g,`>`),e=e.replace(/=/g,`=`),e=an(e))}return e},`sanitizeMore`),en=n((e,t)=>e&&(e=t.dompurifyConfig?qt.sanitize($t(e,t),t.dompurifyConfig).toString():qt.sanitize($t(e,t),{FORBID_TAGS:[`style`]}).toString(),e),`sanitizeText`),tn=n((e,t)=>typeof e==`string`?en(e,t):e.flat().map(e=>en(e,t)),`sanitizeTextOrArray`),nn=n(e=>Jt.test(e),`hasBreaks`),rn=n(e=>e.split(Jt),`splitBreaks`),an=n(e=>e.replace(/#br#/g,`
`),`placeholderToBreak`),on=n(e=>e.replace(Jt,`#br#`),`breakToPlaceholder`),sn=n(e=>{let t=``;return e&&(t=window.location.protocol+`//`+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},`getUrl`),cn=n(function(...e){let t=e.filter(e=>!isNaN(e));return Math.max(...t)},`getMax`),ln=n(function(...e){let t=e.filter(e=>!isNaN(e));return Math.min(...t)},`getMin`),un=n(function(e){let t=e.split(/(,)/),n=[];for(let e=0;e0&&e+1Math.max(0,e.split(t).length-1),`countOccurrence`),fn=n((e,t)=>{let n=dn(e,`~`),r=dn(t,`~`);return n===1&&r===1},`shouldCombineSets`),pn=n(e=>{let t=dn(e,`~`),n=!1;if(t<=1)return e;t%2!=0&&e.startsWith(`~`)&&(e=e.substring(1),n=!0);let r=[...e],i=r.indexOf(`~`),a=r.lastIndexOf(`~`);for(;i!==-1&&a!==-1&&i!==a;)r[i]=`<`,r[a]=`>`,i=r.indexOf(`~`),a=r.lastIndexOf(`~`);return n&&r.unshift(`~`),r.join(``)},`processSet`),mn=n(()=>window.MathMLElement!==void 0,`isMathMLSupported`),hn=/\$\$(.*)\$\$/g,gn=n(e=>(e.match(hn)?.length??0)>0,`hasKatex`),_n=n(async(e,t)=>{let n=document.createElement(`div`);n.innerHTML=await yn(e,t),n.id=`katex-temp`,n.style.visibility=`hidden`,n.style.position=`absolute`,n.style.top=`0`,document.querySelector(`body`)?.insertAdjacentElement(`beforeend`,n);let r={width:n.clientWidth,height:n.clientHeight};return n.remove(),r},`calculateMathMLDimensions`),vn=n(async(t,n)=>{if(!gn(t))return t;if(!(mn()||n.legacyMathML||n.forceLegacyMathML))return t.replace(hn,`MathML is unsupported in this environment.`);{let{default:r}=await e(async()=>{let{default:e}=await import(`./katex-4FWWIGR4-CA3qCh6U.js`);return{default:e}},__vite__mapDeps([0,1])),i=n.forceLegacyMathML||!mn()&&n.legacyMathML?`htmlAndMathml`:`mathml`;return t.split(Jt).map(e=>gn(e)?`

`:`
${e}
`).join(``).replace(hn,(e,t)=>r.renderToString(t,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g,` `).replace(//g,``))}return t.replace(hn,`Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.`)},`renderKatexUnsanitized`),yn=n(async(e,t)=>en(await vn(e,t),t),`renderKatexSanitized`),bn={getRows:Yt,sanitizeText:en,sanitizeTextOrArray:tn,hasBreaks:nn,splitBreaks:rn,lineBreakRegex:Jt,removeScript:Qt,getUrl:sn,evaluate:Re,getMax:cn,getMin:ln},xn=n(function(e,t){for(let n of t)e.attr(n[0],n[1])},`d3Attrs`),Sn=n(function(e,t,n){let r=new Map;return n?(r.set(`width`,`100%`),r.set(`style`,`max-width: ${t}px;`)):(r.set(`height`,e),r.set(`width`,t)),r},`calculateSvgSizeAttrs`),Cn=n(function(e,t,n,r){xn(e,Sn(t,n,r))},`configureSvgSize`),wn=n(function(e,t,n,r){let a=t.node().getBBox(),o=a.width,s=a.height;i.info(`SVG bounds: ${o}x${s}`,a);let c=0,l=0;i.info(`Graph bounds: ${c}x${l}`,e),c=o+n*2,l=s+n*2,i.info(`Calculated bounds: ${c}x${l}`),Cn(t,l,c,r);let u=`${a.x-n} ${a.y-n} ${a.width+2*n} ${a.height+2*n}`;t.attr(`viewBox`,u)},`setupGraphViewbox`),Tn={};function En(e){return[...e.cssRules].map(e=>e.cssText).join(` +`)}n(En,`cssStyleSheetToString`);var Dn=n((e,t,n,r)=>{let a=``;return e in Tn&&Tn[e]?a=Tn[e]({...n,svgId:r}):i.warn(`No theme found for ${e}`),` & { + font-family: ${n.fontFamily}; + font-size: ${n.fontSize}; + fill: ${n.textColor} + } + @keyframes edge-animation-frame { + from { + stroke-dashoffset: 0; + } + } + @keyframes dash { + to { + stroke-dashoffset: 0; + } + } + & .edge-animation-slow { + stroke-dasharray: 9,5 !important; + stroke-dashoffset: 900; + animation: dash 50s linear infinite; + stroke-linecap: round; + } + & .edge-animation-fast { + stroke-dasharray: 9,5 !important; + stroke-dashoffset: 900; + animation: dash 20s linear infinite; + stroke-linecap: round; + } + /* Classes common for multiple diagrams */ + + & .error-icon { + fill: ${n.errorBkgColor}; + } + & .error-text { + fill: ${n.errorTextColor}; + stroke: ${n.errorTextColor}; + } + + & .edge-thickness-normal { + stroke-width: ${n.strokeWidth??1}px; + } + & .edge-thickness-thick { + stroke-width: 3.5px + } + & .edge-pattern-solid { + stroke-dasharray: 0; + } + & .edge-thickness-invisible { + stroke-width: 0; + fill: none; + } + & .edge-pattern-dashed{ + stroke-dasharray: 3; + } + .edge-pattern-dotted { + stroke-dasharray: 2; + } + + & .marker { + fill: ${n.lineColor}; + stroke: ${n.lineColor}; + } + & .marker.cross { + stroke: ${n.lineColor}; + } + + & svg { + font-family: ${n.fontFamily}; + font-size: ${n.fontSize}; + } + & p { + margin: 0 + } + + ${a} + .node .neo-node { + stroke: ${n.nodeBorder}; + } + + [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon { + stroke: ${n.useGradient?`url(`+r+`-gradient)`:n.nodeBorder}; + filter: ${n.dropShadow?n.dropShadow.replace(`url(#drop-shadow)`,`url(${r}-drop-shadow)`):`none`}; + } + + + [data-look="neo"].node path { + stroke: ${n.useGradient?`url(`+r+`-gradient)`:n.nodeBorder}; + stroke-width: ${n.strokeWidth??1}px; + } + + [data-look="neo"].node .outer-path { + filter: ${n.dropShadow?n.dropShadow.replace(`url(#drop-shadow)`,`url(${r}-drop-shadow)`):`none`}; + } + + [data-look="neo"].node .neo-line path { + stroke: ${n.nodeBorder}; + filter: none; + } + + [data-look="neo"].node circle{ + stroke: ${n.useGradient?`url(`+r+`-gradient)`:n.nodeBorder}; + filter: ${n.dropShadow?n.dropShadow.replace(`url(#drop-shadow)`,`url(${r}-drop-shadow)`):`none`}; + } + + [data-look="neo"].node circle .state-start{ + fill: #000000; + } + + [data-look="neo"].icon-shape .icon { + fill: ${n.useGradient?`url(`+r+`-gradient)`:n.nodeBorder}; + filter: ${n.dropShadow?n.dropShadow.replace(`url(#drop-shadow)`,`url(${r}-drop-shadow)`):`none`}; + } + + [data-look="neo"].icon-shape .icon-neo path { + stroke: ${n.useGradient?`url(`+r+`-gradient)`:n.nodeBorder}; + filter: ${n.dropShadow?n.dropShadow.replace(`url(#drop-shadow)`,`url(${r}-drop-shadow)`):`none`}; + } + + ${t} +`},`getStyles`),On=n((e,t)=>{t!==void 0&&(Tn[e]=t)},`addStylesForDiagram`),kn=Dn,An={};t(An,{clear:()=>Fn,getAccDescription:()=>zn,getAccTitle:()=>Ln,getDiagramTitle:()=>Vn,setAccDescription:()=>Rn,setAccTitle:()=>In,setDiagramTitle:()=>Bn});var jn=``,Mn=``,Nn=``,Pn=n(e=>en(e,We()),`sanitizeText`),Fn=n(()=>{jn=``,Nn=``,Mn=``},`clear`),In=n(e=>{jn=Pn(e).replace(/^\s+/g,``)},`setAccTitle`),Ln=n(()=>jn,`getAccTitle`),Rn=n(e=>{Nn=Pn(e).replace(/\n\s+/g,` +`)},`setAccDescription`),zn=n(()=>Nn,`getAccDescription`),Bn=n(e=>{Mn=Pn(e)},`setDiagramTitle`),Vn=n(()=>Mn,`getDiagramTitle`),Hn=i,Un=r,Wn=We,Gn=Ue,Kn=R,qn=n(e=>en(e,Wn()),`sanitizeText`),Jn=wn,Yn=n(()=>An,`getCommonDb`),Xn={},Zn=n((e,t,n)=>{Xn[e]&&Hn.warn(`Diagram with id ${e} already registered. Overwriting.`),Xn[e]=t,n&&ee(e,n),On(e,t.styles),t.injectUtils?.(Hn,Un,Wn,qn,Jn,Yn(),()=>{})},`registerDiagram`),Qn=n(e=>{if(e in Xn)return Xn[e];throw new $n(e)},`getDiagram`),$n=class extends Error{static{n(this,`DiagramNotFoundError`)}constructor(e){super(`Diagram ${e} not found.`)}};export{ze as $,sn as A,yn as B,Wn as C,Xe as D,Vn as E,Jt as F,en as G,S as H,un as I,Rn as J,qn as K,qt as L,gn as M,C as N,He as O,w as P,Bn as Q,Zn as R,We as S,te as T,Le as U,Ge as V,Ie as W,Ue as X,In as Y,Gn as Z,o as _,ue as a,Ve as at,zn as b,bn as c,T as d,wn as et,R as f,l as g,u as h,_n as i,E as it,Ye as j,N as k,Cn as l,Fe as m,G as n,kn as nt,Fn as o,Kn as p,Be as q,p as r,F as rt,An as s,c as t,Jn as tt,En as u,Re as v,Qn as w,Ln as x,a as y,d as z}; \ No newline at end of file diff --git a/docs/dist/assets/chunk-RTBOCTTP-BZPyT8j-.js b/docs/dist/assets/chunk-RTBOCTTP-BZPyT8j-.js new file mode 100644 index 00000000..25619c87 --- /dev/null +++ b/docs/dist/assets/chunk-RTBOCTTP-BZPyT8j-.js @@ -0,0 +1,15 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";var t=e(()=>` + /* Font Awesome icon styling - consolidated */ + .label-icon { + display: inline-block; + height: 1em; + overflow: visible; + vertical-align: -0.125em; + } + + .node .label-icon path { + fill: currentColor; + stroke: revert; + stroke-width: revert; + } +`,`getIconStyles`);export{t}; \ No newline at end of file diff --git a/docs/dist/assets/chunk-RTI7CJYH-CrTK6TD7.js b/docs/dist/assets/chunk-RTI7CJYH-CrTK6TD7.js new file mode 100644 index 00000000..f8feeffc --- /dev/null +++ b/docs/dist/assets/chunk-RTI7CJYH-CrTK6TD7.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";var t=e((e,t)=>{if(t)return`translate(`+-e.width/2+`, `+-e.height/2+`)`;let n=e.x??0,r=e.y??0;return`translate(`+-(n+e.width/2)+`, `+-(r+e.height/2)+`)`},`computeLabelTransform`),n={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},r={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function i(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=a(e),t=a(t);let[n,r]=[e.x,e.y],[i,o]=[t.x,t.y],s=i-n,c=o-r;return{angle:Math.atan(c/s),deltaX:s,deltaY:c}}e(i,`calculateDeltaAndAngle`);var a=e(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,`pointTransformer`),o=e(t=>({x:e(function(e,r,o){let s=0,c=a(o[0]).x=0?1:-1)}else if(r===o.length-1&&Object.hasOwn(n,t.arrowTypeEnd)){let{angle:e,deltaX:r}=i(o[o.length-1],o[o.length-2]);s=n[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}let l=Math.abs(a(e).x-a(o[o.length-1]).x),u=Math.abs(a(e).y-a(o[o.length-1]).y),d=Math.abs(a(e).x-a(o[0]).x),f=Math.abs(a(e).y-a(o[0]).y),p=n[t.arrowTypeStart],m=n[t.arrowTypeEnd];if(l0&&u0&&f=0?1:-1)}else if(r===o.length-1&&Object.hasOwn(n,t.arrowTypeEnd)){let{angle:e,deltaY:r}=i(o[o.length-1],o[o.length-2]);s=n[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}let l=Math.abs(a(e).y-a(o[o.length-1]).y),u=Math.abs(a(e).x-a(o[o.length-1]).x),d=Math.abs(a(e).y-a(o[0]).y),f=Math.abs(a(e).x-a(o[0]).x),p=n[t.arrowTypeStart],m=n[t.arrowTypeEnd];if(l0&&u0&&fi.map(i=>d[i]); +import{ht as e}from"./index-BEBAY2Mg.js";import{r as t}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{T as n}from"./chunk-V7P66DNM-D246Sefn.js";import{S as r,c as i}from"./chunk-Q52JI7PB-BeSPinqD.js";import{f as a}from"./chunk-BSZA5ISF-LqNHBHyp.js";import{a as o,i as s,s as c}from"./chunk-HQMLCRZ6-HgqAiHMi.js";import{a as l,i as u,n as d,r as f}from"./chunk-TRQY2T3P-DxnI4jXA.js";var p={common:i,getConfig:r,insertCluster:s,insertEdge:d,insertEdgeLabel:f,insertMarkers:u,insertNode:o,interpolateToCurve:a,labelHelper:c,log:n,positionEdgeLabel:l},m={},h=t(e=>{for(let t of e)m[t.name]=t},`registerLayoutLoaders`);t(()=>{h([{name:`dagre`,loader:t(async()=>await e(()=>import(`./dagre-ZXKKJJHT-CJBRrdma.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24])),`loader`)},{name:`cose-bilkent`,loader:t(async()=>await e(()=>import(`./cose-bilkent-WZ3F43K2-qc8oz4yM.js`),__vite__mapDeps([25,26,2,15])),`loader`)}])},`registerDefaultLayoutLoaders`)();var g=t(async(e,t)=>{if(!(e.layoutAlgorithm in m))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let t of e.nodes){let n=t.domId||t.id;t.domId=`${e.diagramId}-${n}`}let n=m[e.layoutAlgorithm],r=await n.loader(),{theme:i,themeVariables:a}=e.config,{useGradient:o,gradientStart:s,gradientStop:c}=a,l=t.attr(`id`);if(t.append(`defs`).append(`filter`).attr(`id`,`${l}-drop-shadow`).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${i?.includes(`dark`)?`#FFFFFF`:`#000000`}`),t.append(`defs`).append(`filter`).attr(`id`,`${l}-drop-shadow-small`).attr(`height`,`150%`).attr(`width`,`150%`).append(`feDropShadow`).attr(`dx`,`2`).attr(`dy`,`2`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${i?.includes(`dark`)?`#FFFFFF`:`#000000`}`),o){let e=t.append(`linearGradient`).attr(`id`,t.attr(`id`)+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);e.append(`svg:stop`).attr(`offset`,`0%`).attr(`stop-color`,s).attr(`stop-opacity`,1),e.append(`svg:stop`).attr(`offset`,`100%`).attr(`stop-color`,c).attr(`stop-opacity`,1)}return r.render(e,t,p,{algorithm:n.algorithm})},`render`),_=t((e=``,{fallback:t=`dagre`}={})=>{if(e in m)return e;if(t in m)return n.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw Error(`Both layout algorithms ${e} and ${t} are not registered.`)},`getRegisteredLayoutAlgorithm`);export{h as n,g as r,_ as t}; \ No newline at end of file diff --git a/docs/dist/assets/chunk-SZ5Y56Q4-Bki2Aicm.js b/docs/dist/assets/chunk-SZ5Y56Q4-Bki2Aicm.js new file mode 100644 index 00000000..4a5aa0d8 --- /dev/null +++ b/docs/dist/assets/chunk-SZ5Y56Q4-Bki2Aicm.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{C as t,m as n}from"./chunk-Q52JI7PB-BeSPinqD.js";import{h as r}from"./chunk-BSZA5ISF-LqNHBHyp.js";var i=e(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,n=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:t+n}},`getSubGraphTitleMargins`);async function a(i,a){let o=i.getElementsByTagName(`img`);if(!o||o.length===0)return;let s=a.replace(/]*>/g,``).trim()===``;await Promise.all([...o].map(i=>new Promise(a=>{function o(){if(i.style.display=`flex`,i.style.flexDirection=`column`,s){let[e=n.fontSize]=r(t().fontSize?t().fontSize:window.getComputedStyle(document.body).fontSize),a=e*5+`px`;i.style.minWidth=a,i.style.maxWidth=a}else i.style.width=`100%`;a(i)}e(o,`setupImage`),setTimeout(()=>{i.complete&&o()}),i.addEventListener(`error`,o),i.addEventListener(`load`,o)})))}e(a,`configureLabelImages`);export{i as n,a as t}; \ No newline at end of file diff --git a/docs/dist/assets/chunk-T5XCKZAJ-Dtmpyu6x.js b/docs/dist/assets/chunk-T5XCKZAJ-Dtmpyu6x.js new file mode 100644 index 00000000..619a3893 --- /dev/null +++ b/docs/dist/assets/chunk-T5XCKZAJ-Dtmpyu6x.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{A as t,C as n,D as r,E as i,O as a,S as o,T as s,_ as c,a as l,b as u,c as d,d as f,f as p,g as m,h,i as g,k as _,l as v,m as y,n as ee,o as b,p as te,s as x,t as S,u as ne,v as C,w,x as T,y as E}from"./chunk-XAKTCX7R-ChjAedyW.js";function D(e,t,n,r){var i;do i=a(r);while(e.hasNode(i));return n.dummy=t,e.setNode(i,n),i}e(D,`addDummyNode`);function re(e){var t=new S().setGraph(e.graph());return v(e.nodes(),function(n){t.setNode(n,e.node(n))}),v(e.edges(),function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),t}e(re,`simplify`);function O(e){var t=new S({multigraph:e.isMultigraph()}).setGraph(e.graph());return v(e.nodes(),function(n){e.children(n).length||t.setNode(n,e.node(n))}),v(e.edges(),function(n){t.setEdge(n,e.edge(n))}),t}e(O,`asNonCompoundGraph`);function k(e,t){var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2;if(!i&&!a)throw Error(`Not possible to find intersection inside of the rectangle`);var c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=s*i/a,l=s):(i<0&&(o=-o),c=o,l=o*a/i),{x:n+c,y:r+l}}e(k,`intersectRect`);function A(e){var t=c(w(j(e)+1),function(){return[]});return v(e.nodes(),function(n){var r=e.node(n),i=r.rank;y(i)||(t[i][r.order]=n)}),t}e(A,`buildLayerMatrix`);function ie(e){var t=T(c(e.nodes(),function(t){return e.node(t).rank}));v(e.nodes(),function(n){var r=e.node(n);p(r,`rank`)&&(r.rank-=t)})}e(ie,`normalizeRanks`);function ae(e){var t=T(c(e.nodes(),function(t){return e.node(t).rank})),n=[];v(e.nodes(),function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)});var r=0,i=e.graph().nodeRankFactor;v(n,function(t,n){y(t)&&n%i!==0?--r:r&&v(t,function(t){e.node(t).rank+=r})})}e(ae,`removeEmptyRanks`);function oe(e,t,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),D(e,`border`,i,t)}e(oe,`addBorderNode`);function j(e){return C(c(e.nodes(),function(t){var n=e.node(t).rank;if(!y(n))return n}))}e(j,`maxRank`);function se(e,t){var n={lhs:[],rhs:[]};return v(e,function(e){t(e)?n.lhs.push(e):n.rhs.push(e)}),n}e(se,`partition`);function ce(e,t){var n=o();try{return t()}finally{console.log(e+` time: `+(o()-n)+`ms`)}}e(ce,`time`);function le(e,t){return t()}e(le,`notime`);function ue(t){function n(e){var r=t.children(e),i=t.node(e);if(r.length&&v(r,n),Object.prototype.hasOwnProperty.call(i,`minRank`)){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,o=i.maxRank+1;a0;--s)if(o=t[s].dequeue(),o){r=r.concat(R(e,t,n,o,!0));break}}}return r}e(ye,`doGreedyFAS`);function R(e,t,n,r,i){var a=i?[]:void 0;return v(e.inEdges(r.v),function(r){var o=e.edge(r),s=e.node(r.v);i&&a.push({v:r.v,w:r.w}),s.out-=o,z(t,n,s)}),v(e.outEdges(r.v),function(r){var i=e.edge(r),a=r.w,o=e.node(a);o.in-=i,z(t,n,o)}),e.removeNode(r.v),a}e(R,`removeNode`);function be(e,t){var n=new S,r=0,i=0;v(e.nodes(),function(e){n.setNode(e,{v:e,in:0,out:0})}),v(e.edges(),function(e){var a=n.edge(e.v,e.w)||0,o=t(e),s=a+o;n.setEdge(e.v,e.w,s),i=Math.max(i,n.node(e.v).out+=o),r=Math.max(r,n.node(e.w).in+=o)});var a=w(i+r+3).map(function(){return new he}),o=r+1;return v(n.nodes(),function(e){z(a,o,n.node(e))}),{graph:n,buckets:a,zeroIdx:o}}e(be,`buildState`);function z(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}e(z,`assignBucket`);function xe(t){v(t.graph().acyclicer===`greedy`?ve(t,n(t)):Se(t),function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,a(`rev`))});function n(e){return function(t){return e.edge(t).weight}}e(n,`weightFn`)}e(xe,`run`);function Se(t){var n=[],r={},i={};function a(e){Object.prototype.hasOwnProperty.call(i,e)||(i[e]=!0,r[e]=!0,v(t.outEdges(e),function(e){Object.prototype.hasOwnProperty.call(r,e.w)?n.push(e):a(e.w)}),delete r[e])}return e(a,`dfs`),v(t.nodes(),a),n}e(Se,`dfsFAS`);function Ce(e){v(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}e(Ce,`undo`);function we(e){e.graph().dummyChains=[],v(e.edges(),function(t){Te(e,t)})}e(we,`run`);function Te(e,t){var n=t.v,r=e.node(n).rank,i=t.w,a=e.node(i).rank,o=t.name,s=e.edge(t),c=s.labelRank;if(a!==r+1){e.removeEdge(t);var l=void 0,u,d;for(d=0,++r;ro.lim&&(s=o,c=!0),u(b(t.edges(),function(t){return c===ze(e,e.node(t.v),s)&&c!==ze(e,e.node(t.w),s)}),function(e){return V(t,e)})}e(Fe,`enterEdge`);function Ie(e,t,n,r){var i=n.v,a=n.w;e.removeEdge(i,a),e.setEdge(r.v,r.w,{}),Y(e),q(e,t),Le(e,t)}e(Ie,`exchangeEdges`);function Le(e,t){var n=Me(e,x(e.nodes(),function(e){return!t.node(e).parent}));n=n.slice(1),v(n,function(n){var r=e.node(n).parent,i=t.edge(n,r),a=!1;i||(i=t.edge(r,n),a=!0),t.node(n).rank=t.node(r).rank+(a?i.minlen:-i.minlen)})}e(Le,`updateRanks`);function Re(e,t,n){return e.hasEdge(t,n)}e(Re,`isTreeEdge`);function ze(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}e(ze,`isDescendant`);function Be(e){switch(e.graph().ranker){case`network-simplex`:Z(e);break;case`tight-tree`:He(e);break;case`longest-path`:Ve(e);break;default:Z(e)}}e(Be,`rank`);var Ve=B;function He(e){B(e),H(e)}e(He,`tightTreeRanker`);function Z(e){K(e)}e(Z,`networkSimplexRanker`);function Ue(e){var t=D(e,`root`,{},`_root`),n=Ge(e),r=C(_(n))-1,i=2*r+1;e.graph().nestingRoot=t,v(e.edges(),function(t){e.edge(t).minlen*=i});var a=Ke(e)+1;v(e.children(),function(o){We(e,t,i,a,r,n,o)}),e.graph().nodeRankFactor=i}e(Ue,`run`);function We(e,t,n,r,i,a,o){var s=e.children(o);if(!s.length){o!==t&&e.setEdge(t,o,{weight:0,minlen:n});return}var c=oe(e,`_bt`),l=oe(e,`_bb`),u=e.node(o);e.setParent(c,o),u.borderTop=c,e.setParent(l,o),u.borderBottom=l,v(s,function(s){We(e,t,n,r,i,a,s);var u=e.node(s),d=u.borderTop?u.borderTop:s,f=u.borderBottom?u.borderBottom:s,p=u.borderTop?r:2*r,m=d===f?i-a[o]+1:1;e.setEdge(c,d,{weight:p,minlen:m,nestingEdge:!0}),e.setEdge(f,l,{weight:p,minlen:m,nestingEdge:!0})}),e.parent(o)||e.setEdge(t,c,{weight:0,minlen:i+a[o]})}e(We,`dfs`);function Ge(t){var n={};function r(e,i){var a=t.children(e);a&&a.length&&v(a,function(e){r(e,i+1)}),n[e]=i}return e(r,`dfs`),v(t.children(),function(e){r(e,1)}),n}e(Ge,`treeDepths`);function Ke(e){return s(e.edges(),function(t,n){return t+e.edge(n).weight},0)}e(Ke,`sumWeights`);function qe(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,v(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}e(qe,`cleanup`);function Je(e,t,n){var r={},i;v(n,function(n){for(var a=e.parent(n),o,s;a;){if(o=e.parent(a),o?(s=r[o],r[o]=a):(s=i,i=a),s&&s!==a){t.setEdge(s,a);return}a=o}})}e(Je,`addSubgraphConstraints`);function Ye(e,t,n){var r=Xe(e),i=new S({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(function(t){return e.node(t)});return v(e.nodes(),function(a){var o=e.node(a),s=e.parent(a);(o.rank===t||o.minRank<=t&&t<=o.maxRank)&&(i.setNode(a),i.setParent(a,s||r),v(e[n](a),function(t){var n=t.v===a?t.w:t.v,r=i.edge(n,a),o=y(r)?0:r.weight;i.setEdge(n,a,{weight:e.edge(t).weight+o})}),Object.prototype.hasOwnProperty.call(o,`minRank`)&&i.setNode(a,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]}))}),i}e(Ye,`buildLayerGraph`);function Xe(e){for(var t;e.hasNode(t=a(`_root`)););return t}e(Xe,`createRootNode`);function Ze(e,t){for(var n=0,r=1;r0;)t%2&&(n+=u[t+1]),t=t-1>>1,u[t]+=e.weight;f+=e.weight*n})),f}e(Qe,`twoLayerCrossCount`);function $e(t){var n={},i=b(t.nodes(),function(e){return!t.children(e).length}),a=c(w(C(c(i,function(e){return t.node(e).rank}))+1),function(){return[]});function o(e){p(n,e)||(n[e]=!0,a[t.node(e).rank].push(e),v(t.successors(e),o))}return e(o,`dfs`),v(r(i,function(e){return t.node(e).rank}),o),a}e($e,`initOrder`);function et(e,t){return c(t,function(t){var n=e.inEdges(t);if(n.length){var r=s(n,function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight}}else return{v:t}})}e(et,`barycenter`);function tt(e,t){var n={};return v(e,function(e,t){var r=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};y(e.barycenter)||(r.barycenter=e.barycenter,r.weight=e.weight)}),v(t.edges(),function(e){var t=n[e.v],r=n[e.w];!y(t)&&!y(r)&&(r.indegree++,t.out.push(n[e.w]))}),nt(b(n,function(e){return!e.indegree}))}e(tt,`resolveConflicts`);function nt(t){var r=[];function i(e){return function(t){t.merged||(y(t.barycenter)||y(e.barycenter)||t.barycenter>=e.barycenter)&&rt(e,t)}}e(i,`handleIn`);function a(e){return function(n){n.in.push(e),--n.indegree===0&&t.push(n)}}for(e(a,`handleOut`);t.length;){var o=t.pop();r.push(o),v(o.in.reverse(),i(o)),v(o.out,a(o))}return c(b(r,function(e){return!e.merged}),function(e){return n(e,[`vs`,`i`,`barycenter`,`weight`])})}e(nt,`doResolveConflicts`);function rt(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}e(rt,`mergeEntries`);function it(e,t){var n=se(e,function(e){return Object.prototype.hasOwnProperty.call(e,`barycenter`)}),i=n.lhs,a=r(n.rhs,function(e){return-e.i}),o=[],s=0,c=0,l=0;i.sort(ot(!!t)),l=at(o,a,l),v(i,function(e){l+=e.vs.length,o.push(e.vs),s+=e.barycenter*e.weight,c+=e.weight,l=at(o,a,l)});var u={vs:d(o)};return c&&(u.barycenter=s/c,u.weight=c),u}e(it,`sort`);function at(e,t,n){for(var r;t.length&&(r=h(t)).i<=n;)t.pop(),e.push(r.vs),n++;return n}e(at,`consumeUnsortable`);function ot(e){return function(t,n){return t.barycentern.barycenter?1:e?n.i-t.i:t.i-n.i}}e(ot,`compareWithBias`);function st(e,t,n,r){var i=e.children(t),a=e.node(t),o=a?a.borderLeft:void 0,s=a?a.borderRight:void 0,c={};o&&(i=b(i,function(e){return e!==o&&e!==s}));var l=et(e,i);v(l,function(t){if(e.children(t.v).length){var i=st(e,t.v,n,r);c[t.v]=i,Object.prototype.hasOwnProperty.call(i,`barycenter`)&<(t,i)}});var u=tt(l,n);ct(u,c);var f=it(u,r);if(o&&(f.vs=d([o,f.vs,s]),e.predecessors(o).length)){var p=e.node(e.predecessors(o)[0]),m=e.node(e.predecessors(s)[0]);Object.prototype.hasOwnProperty.call(f,`barycenter`)||(f.barycenter=0,f.weight=0),f.barycenter=(f.barycenter*f.weight+p.order+m.order)/(f.weight+2),f.weight+=2}return f}e(st,`sortSubgraph`);function ct(e,t){v(e,function(e){e.vs=d(e.vs.map(function(e){return t[e]?t[e].vs:e}))})}e(ct,`expandSubgraphs`);function lt(e,t){y(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}e(lt,`mergeBarycenters`);function ut(e){var t=j(e),n=dt(e,w(1,t+1),`inEdges`),r=dt(e,w(t-1,-1,-1),`outEdges`),i=$e(e);pt(e,i);for(var a=1/0,o,s=0,c=0;c<4;++s,++c){ft(s%2?n:r,s%4>=2),i=A(e);var l=Ze(e,i);lo||s>t[c].lim));for(l=c,c=r;(c=e.parent(c))!==l;)a.push(c);return{path:i.concat(a.reverse()),lca:l}}e(ht,`findPath`);function gt(t){var n={},r=0;function i(e){var a=r;v(t.children(e),i),n[e]={low:a,lim:r++}}return e(i,`dfs`),v(t.children(),i),n}e(gt,`postorder`);function _t(t,n){var r={};function i(e,n){var i=0,a=0,o=e.length,s=h(n);return v(n,function(e,c){var l=yt(t,e),u=l?t.node(l).order:o;(l||e===s)&&(v(n.slice(a,c+1),function(e){v(t.predecessors(e),function(n){var a=t.node(n),o=a.order;(oo)&&bt(r,e,s)})})}e(i,`scan`);function a(e,n){var r=-1,a,o=0;return v(n,function(s,c){if(t.node(s).dummy===`border`){var l=t.predecessors(s);l.length&&(a=t.node(l[0]).order,i(n,o,c,r,a),o=c,r=a)}i(n,o,n.length,a,e.length)}),n}return e(a,`visitLayer`),s(n,a),r}e(vt,`findType2Conflicts`);function yt(e,t){if(e.node(t).dummy)return x(e.predecessors(t),function(t){return e.node(t).dummy})}e(yt,`findOtherInnerSegmentNode`);function bt(e,t,n){if(t>n){var r=t;t=n,n=r}Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=e[t];Object.defineProperty(i,n,{enumerable:!0,configurable:!0,value:!0,writable:!0})}e(bt,`addConflict`);function xt(e,t,n){if(t>n){var r=t;t=n,n=r}return!!e[t]&&Object.prototype.hasOwnProperty.call(e[t],n)}e(xt,`hasConflict`);function St(e,t,n,i){var a={},o={},s={};return v(t,function(e){v(e,function(e,t){a[e]=e,o[e]=e,s[e]=t})}),v(t,function(e){var t=-1;v(e,function(e){var c=i(e);if(c.length){c=r(c,function(e){return s[e]});for(var l=(c.length-1)/2,u=Math.floor(l),d=Math.ceil(l);u<=d;++u){var f=c[u];o[e]===e&&t{var t=n(` buildLayoutGraph`,()=>Wt(e));n(` runLayout`,()=>Pt(t,n)),n(` updateInputGraph`,()=>Ft(e,t))})}e(Nt,`layout`);function Pt(e,t){t(` makeSpaceForEdgeLabels`,()=>Gt(e)),t(` removeSelfEdges`,()=>en(e)),t(` acyclic`,()=>xe(e)),t(` nestingGraph.run`,()=>Ue(e)),t(` rank`,()=>Be(O(e))),t(` injectEdgeLabelProxies`,()=>Kt(e)),t(` removeEmptyRanks`,()=>ae(e)),t(` nestingGraph.cleanup`,()=>qe(e)),t(` normalizeRanks`,()=>ie(e)),t(` assignRankMinMax`,()=>qt(e)),t(` removeEdgeLabelProxies`,()=>Jt(e)),t(` normalize.run`,()=>we(e)),t(` parentDummyChains`,()=>mt(e)),t(` addBorderSegments`,()=>ue(e)),t(` order`,()=>ut(e)),t(` insertSelfEdges`,()=>tn(e)),t(` adjustCoordinateSystem`,()=>de(e)),t(` position`,()=>jt(e)),t(` positionSelfEdges`,()=>nn(e)),t(` removeBorderNodes`,()=>$t(e)),t(` normalize.undo`,()=>Ee(e)),t(` fixupEdgeLabelCoords`,()=>Zt(e)),t(` undoCoordinateSystem`,()=>fe(e)),t(` translateGraph`,()=>Yt(e)),t(` assignNodeIntersects`,()=>Xt(e)),t(` reversePoints`,()=>Qt(e)),t(` acyclic.undo`,()=>Ce(e))}e(Pt,`runLayout`);function Ft(e,t){v(e.nodes(),function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))}),v(e.edges(),function(n){var r=e.edge(n),i=t.edge(n);r.points=i.points,Object.prototype.hasOwnProperty.call(i,`x`)&&(r.x=i.x,r.y=i.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}e(Ft,`updateInputGraph`);var It=[`nodesep`,`edgesep`,`ranksep`,`marginx`,`marginy`],Lt={ranksep:50,edgesep:20,nodesep:50,rankdir:`tb`},Rt=[`acyclicer`,`ranker`,`rankdir`,`align`],zt=[`width`,`height`],Bt={width:0,height:0},Vt=[`minlen`,`weight`,`width`,`height`,`labeloffset`],Ht={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:`r`},Ut=[`labelpos`];function Wt(e){var t=new S({multigraph:!0,compound:!0}),r=$(e.graph());return t.setGraph(E({},Lt,Q(r,It),n(r,Rt))),v(e.nodes(),function(n){var r=$(e.node(n));t.setNode(n,l(Q(r,zt),Bt)),t.setParent(n,e.parent(n))}),v(e.edges(),function(r){var i=$(e.edge(r));t.setEdge(r,E({},Ht,Q(i,Vt),n(i,Ut)))}),t}e(Wt,`buildLayoutGraph`);function Gt(e){var t=e.graph();t.ranksep/=2,v(e.edges(),function(n){var r=e.edge(n);r.minlen*=2,r.labelpos.toLowerCase()!==`c`&&(t.rankdir===`TB`||t.rankdir===`BT`?r.width+=r.labeloffset:r.height+=r.labeloffset)})}e(Gt,`makeSpaceForEdgeLabels`);function Kt(e){v(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v);D(e,`edge-proxy`,{rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t},`_ep`)}})}e(Kt,`injectEdgeLabelProxies`);function qt(e){var t=0;v(e.nodes(),function(n){var r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=C(t,r.maxRank))}),e.graph().maxRank=t}e(qt,`assignRankMinMax`);function Jt(e){v(e.nodes(),function(t){var n=e.node(t);n.dummy===`edge-proxy`&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}e(Jt,`removeEdgeLabelProxies`);function Yt(t){var n=1/0,r=0,i=1/0,a=0,o=t.graph(),s=o.marginx||0,c=o.marginy||0;function l(e){var t=e.x,o=e.y,s=e.width,c=e.height;n=Math.min(n,t-s/2),r=Math.max(r,t+s/2),i=Math.min(i,o-c/2),a=Math.max(a,o+c/2)}e(l,`getExtremes`),v(t.nodes(),function(e){l(t.node(e))}),v(t.edges(),function(e){var n=t.edge(e);Object.prototype.hasOwnProperty.call(n,`x`)&&l(n)}),n-=s,i-=c,v(t.nodes(),function(e){var r=t.node(e);r.x-=n,r.y-=i}),v(t.edges(),function(e){var r=t.edge(e);v(r.points,function(e){e.x-=n,e.y-=i}),Object.prototype.hasOwnProperty.call(r,`x`)&&(r.x-=n),Object.prototype.hasOwnProperty.call(r,`y`)&&(r.y-=i)}),o.width=r-n+s,o.height=a-i+c}e(Yt,`translateGraph`);function Xt(e){v(e.edges(),function(t){var n=e.edge(t),r=e.node(t.v),i=e.node(t.w),a,o;n.points?(a=n.points[0],o=n.points[n.points.length-1]):(n.points=[],a=i,o=r),n.points.unshift(k(r,a)),n.points.push(k(i,o))})}e(Xt,`assignNodeIntersects`);function Zt(e){v(e.edges(),function(t){var n=e.edge(t);if(Object.prototype.hasOwnProperty.call(n,`x`))switch((n.labelpos===`l`||n.labelpos===`r`)&&(n.width-=n.labeloffset),n.labelpos){case`l`:n.x-=n.width/2+n.labeloffset;break;case`r`:n.x+=n.width/2+n.labeloffset;break}})}e(Zt,`fixupEdgeLabelCoords`);function Qt(e){v(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}e(Qt,`reversePointsForReversedEdges`);function $t(e){v(e.nodes(),function(t){if(e.children(t).length){var n=e.node(t),r=e.node(n.borderTop),i=e.node(n.borderBottom),a=e.node(h(n.borderLeft)),o=e.node(h(n.borderRight));n.width=Math.abs(o.x-a.x),n.height=Math.abs(i.y-r.y),n.x=a.x+n.width/2,n.y=r.y+n.height/2}}),v(e.nodes(),function(t){e.node(t).dummy===`border`&&e.removeNode(t)})}e($t,`removeBorderNodes`);function en(e){v(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||=[],n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}e(en,`removeSelfEdges`);function tn(e){v(A(e),function(t){var n=0;v(t,function(t,r){var i=e.node(t);i.order=r+n,v(i.selfEdges,function(t){D(e,`selfedge`,{width:t.label.width,height:t.label.height,rank:i.rank,order:r+ ++n,e:t.e,label:t.label},`_se`)}),delete i.selfEdges})})}e(tn,`insertSelfEdges`);function nn(e){v(e.nodes(),function(t){var n=e.node(t);if(n.dummy===`selfedge`){var r=e.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}})}e(nn,`positionSelfEdges`);function Q(e,t){return m(n(e,t),Number)}e(Q,`selectNumberAttrs`);function $(e){var t={};return v(e,function(e,n){t[n.toLowerCase()]=e}),t}e($,`canonicalize`);export{Nt as t}; \ No newline at end of file diff --git a/docs/dist/assets/chunk-TRQY2T3P-DxnI4jXA.js b/docs/dist/assets/chunk-TRQY2T3P-DxnI4jXA.js new file mode 100644 index 00000000..a8327d90 --- /dev/null +++ b/docs/dist/assets/chunk-TRQY2T3P-DxnI4jXA.js @@ -0,0 +1,10 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{A as t,B as n,I as r,R as i,T as a,_ as o,c as s,j as c,k as l,l as u,m as d,u as f,w as p,x as m,z as h}from"./chunk-V7P66DNM-D246Sefn.js";import{C as g,D as _,S as v}from"./chunk-Q52JI7PB-BeSPinqD.js";import{t as y}from"./chunk-PLCLPJVV-rGjVDjLw.js";import{i as b,n as x}from"./chunk-GTILCTU2-D-9HFTK6.js";import{d as S,v as C}from"./chunk-BSZA5ISF-LqNHBHyp.js";import{n as w}from"./chunk-SZ5Y56Q4-Bki2Aicm.js";import{n as T}from"./chunk-YSJUE5HW-eH4JtoEG.js";import{r as E}from"./chunk-HQMLCRZ6-HgqAiHMi.js";import{i as D,n as ee,r as O,t as k}from"./chunk-RTI7CJYH-CrTK6TD7.js";var te=e((e,t,n,r,i,a=!1,o)=>{t.arrowTypeStart&&M(e,`start`,t.arrowTypeStart,n,r,i,a,o),t.arrowTypeEnd&&M(e,`end`,t.arrowTypeEnd,n,r,i,a,o)},`addEdgeMarkers`),A={arrow_cross:{type:`cross`,fill:!1},arrow_point:{type:`point`,fill:!0},arrow_barb:{type:`barb`,fill:!0},arrow_barb_neo:{type:`barb`,fill:!0},arrow_circle:{type:`circle`,fill:!1},aggregation:{type:`aggregation`,fill:!1},extension:{type:`extension`,fill:!1},composition:{type:`composition`,fill:!0},dependency:{type:`dependency`,fill:!0},lollipop:{type:`lollipop`,fill:!1},only_one:{type:`onlyOne`,fill:!1},zero_or_one:{type:`zeroOrOne`,fill:!1},one_or_more:{type:`oneOrMore`,fill:!1},zero_or_more:{type:`zeroOrMore`,fill:!1},requirement_arrow:{type:`requirement_arrow`,fill:!1},requirement_contains:{type:`requirement_contains`,fill:!1}},j=[`cross`,`point`,`circle`,`lollipop`,`aggregation`,`extension`,`composition`,`dependency`,`barb`],M=e((e,t,n,r,i,o,s=!1,c)=>{let l=A[n],u=l&&j.includes(l.type);if(!l){a.warn(`Unknown arrow type: ${n}`);return}let d=`${i}_${o}-${l.type}${t===`start`?`Start`:`End`}${s&&u?`-margin`:``}`;if(c&&c.trim()!==``){let n=`${d}_${c.replace(/[^\dA-Za-z]/g,`_`)}`;if(!document.getElementById(n)){let e=document.getElementById(d);if(e){let t=e.cloneNode(!0);t.id=n,t.querySelectorAll(`path, circle, line`).forEach(e=>{e.setAttribute(`stroke`,c),l.fill&&e.setAttribute(`fill`,c)}),e.parentNode?.appendChild(t)}}e.attr(`marker-${t}`,`url(${r}#${n})`)}else e.attr(`marker-${t}`,`url(${r}#${d})`)},`addEdgeMarker`),ne=e(e=>typeof e==`string`?e:g()?.flowchart?.curve,`resolveEdgeCurveType`),N=new Map,P=new Map,F=e(()=>{N.clear(),P.clear()},`clear`),I=e(e=>e?typeof e==`string`?e:e.reduce((e,t)=>e+`;`+t,``):``,`getLabelStyles`),L=e(async(e,t)=>{let n=g(),i=_(n),{labelStyles:o}=b(t);t.labelStyle=o;let s=e.insert(`g`).attr(`class`,`edgeLabel`),c=s.insert(`g`).attr(`class`,`label`).attr(`data-id`,t.id),l=t.labelType===`markdown`,u=await T(e,t.label,{style:I(t.labelStyle),useHtmlLabels:i,addSvgBackground:!0,isNode:!1,markdown:l,width:void 0},n);c.node().appendChild(u),a.info(`abc82`,t,t.labelType);let d=u.getBBox(),f=d;if(i){let e=u.children[0],t=r(u);d=e.getBoundingClientRect(),f=d,t.attr(`width`,d.width),t.attr(`height`,d.height)}else{let e=r(u).select(`text`).node();e&&typeof e.getBBox==`function`&&(f=e.getBBox())}c.attr(`transform`,k(f,i)),N.set(t.id,s),t.width=d.width,t.height=d.height;let p;if(t.startLabelLeft){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),a=n.insert(`g`).attr(`class`,`inner`),o=await E(a,t.startLabelLeft,I(t.labelStyle)||``,!1,!1);p=o;let s=o.getBBox();if(i){let e=o.children[0],t=r(o);s=e.getBoundingClientRect(),t.attr(`width`,s.width),t.attr(`height`,s.height)}a.attr(`transform`,k(s,i)),P.get(t.id)||P.set(t.id,{}),P.get(t.id).startLeft=n,R(p,t.startLabelLeft)}if(t.startLabelRight){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),a=n.insert(`g`).attr(`class`,`inner`),o=await E(a,t.startLabelRight,I(t.labelStyle)||``,!1,!1);p=o;let s=o.getBBox();if(i){let e=o.children[0],t=r(o);s=e.getBoundingClientRect(),t.attr(`width`,s.width),t.attr(`height`,s.height)}a.attr(`transform`,k(s,i)),P.get(t.id)||P.set(t.id,{}),P.get(t.id).startRight=n,R(p,t.startLabelRight)}if(t.endLabelLeft){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),a=n.insert(`g`).attr(`class`,`inner`),o=await E(n,t.endLabelLeft,I(t.labelStyle)||``,!1,!1);p=o;let s=o.getBBox();if(i){let e=o.children[0],t=r(o);s=e.getBoundingClientRect(),t.attr(`width`,s.width),t.attr(`height`,s.height)}a.attr(`transform`,k(s,i)),P.get(t.id)||P.set(t.id,{}),P.get(t.id).endLeft=n,R(p,t.endLabelLeft)}if(t.endLabelRight){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),a=n.insert(`g`).attr(`class`,`inner`),o=await E(n,t.endLabelRight,I(t.labelStyle)||``,!1,!1);p=o;let s=o.getBBox();if(i){let e=o.children[0],t=r(o);s=e.getBoundingClientRect(),t.attr(`width`,s.width),t.attr(`height`,s.height)}a.attr(`transform`,k(s,i)),P.get(t.id)||P.set(t.id,{}),P.get(t.id).endRight=n,R(p,t.endLabelRight)}return u},`insertEdgeLabel`);function R(e,t){_(g())&&e&&(e.style.width=t.length*9+`px`,e.style.height=`12px`)}e(R,`setTerminalWidth`);var z=e((e,t)=>{a.debug(`Moving label abc88 `,e.id,e.label,N.get(e.id),t);let n=t.updatedPath?t.updatedPath:t.originalPath,{subGraphTitleTotalMargin:r}=w(g());if(e.label){let i=N.get(e.id),o=e.x,s=e.y;if(n){let r=C.calcLabelPosition(n);a.debug(`Moving label `+e.label+` from (`,o,`,`,s,`) to (`,r.x,`,`,r.y,`) abc88`),t.updatedPath&&(o=r.x,s=r.y)}i.attr(`transform`,`translate(${o}, ${s+r/2})`)}if(e.startLabelLeft){let t=P.get(e.id).startLeft,r=e.x,i=e.y;if(n){let t=C.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_left`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.startLabelRight){let t=P.get(e.id).startRight,r=e.x,i=e.y;if(n){let t=C.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_right`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.endLabelLeft){let t=P.get(e.id).endLeft,r=e.x,i=e.y;if(n){let t=C.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_left`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.endLabelRight){let t=P.get(e.id).endRight,r=e.x,i=e.y;if(n){let t=C.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_right`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}},`positionEdgeLabel`),B=e((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},`outsideNode`),V=e((e,t,n)=>{a.debug(`intersection calc abc89: + outsidePoint: ${JSON.stringify(t)} + insidePoint : ${JSON.stringify(n)} + node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let r=e.x,i=e.y,o=Math.abs(r-n.x),s=e.width/2,c=n.xMath.abs(r-t.x)*l){let e=n.y{a.warn(`abc88 cutPathAtIntersect`,e,t);let n=[],r=e[0],i=!1;return e.forEach(e=>{if(a.info(`abc88 checking point`,e,t),!B(t,e)&&!i){let o=V(t,r,e);a.debug(`abc88 inside`,e,r,o),a.debug(`abc88 intersection`,o,t);let s=!1;n.forEach(e=>{s||=e.x===o.x&&e.y===o.y}),n.some(e=>e.x===o.x&&e.y===o.y)?a.warn(`abc88 no intersect`,o,n):n.push(o),i=!0}else a.warn(`abc88 outside`,e,r),r=e,i||n.push(e)}),a.debug(`returning points`,n),n},`cutPathAtIntersect`);function U(e){let t=[],n=[];for(let r=1;r5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===o.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-o.y)>5)&&(t.push(a),n.push(r))}return{cornerPoints:t,cornerPointPositions:n}}e(U,`extractCornerPoints`);var W=e(function(e,t,n){let r=t.x-e.x,i=t.y-e.y,a=n/Math.sqrt(r*r+i*i);return{x:t.x-a*r,y:t.y-a*i}},`findAdjacentPoint`),re=e(function(e){let{cornerPointPositions:t}=U(e),n=[];for(let r=0;r10&&Math.abs(i.y-t.y)>=10?(a.debug(`Corner point fixing`,Math.abs(i.x-t.x),Math.abs(i.y-t.y)),f=o.x===s.x?{x:l<0?s.x-5+d:s.x+5-d,y:u<0?s.y-d:s.y+d}:{x:l<0?s.x-d:s.x+d,y:u<0?s.y-5+d:s.y+5-d}):a.debug(`Corner point skipping fixing`,Math.abs(i.x-t.x),Math.abs(i.y-t.y)),n.push(f,c)}else n.push(e[r]);return n},`fixCorners`),ie=e((e,t,n)=>{let r=e-t-n,i=Math.floor(r/4);return`0 ${t} ${Array(i).fill(`2 2`).join(` `)} ${n}`},`generateDashArray`),G=e(function(e,_,v,b,w,T,E,O=!1){if(!E)throw Error(`insertEdge: missing diagramId for edge "${_.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:k}=g(),A=_.points,j=!1,M=w;var N=T;let P=[];for(let e in _.cssCompiledStyles)x(e)||P.push(_.cssCompiledStyles[e]);a.debug(`UIO intersect check`,_.points,N.x,M.x),N.intersect&&M.intersect&&!O&&(A=A.slice(1,_.points.length-1),A.unshift(M.intersect(A[0])),a.debug(`Last point UIO`,_.start,`-->`,_.end,A[A.length-1],N,N.intersect(A[A.length-1])),A.push(N.intersect(A[A.length-1])));let F=btoa(JSON.stringify(A));_.toCluster&&(a.info(`to cluster abc88`,v.get(_.toCluster)),A=H(_.points,v.get(_.toCluster).node),j=!0),_.fromCluster&&(a.debug(`from cluster abc88`,v.get(_.fromCluster),JSON.stringify(A,null,2)),A=H(A.reverse(),v.get(_.fromCluster).node).reverse(),j=!0);let I=A.filter(e=>!Number.isNaN(e.y)),L=ne(_.curve);L!==`rounded`&&(I=re(I));let R=p;switch(L){case`linear`:R=p;break;case`basis`:R=s;break;case`cardinal`:R=d;break;case`bumpX`:R=u;break;case`bumpY`:R=f;break;case`catmullRom`:R=o;break;case`monotoneX`:R=l;break;case`monotoneY`:R=t;break;case`natural`:R=c;break;case`step`:R=n;break;case`stepAfter`:R=i;break;case`stepBefore`:R=h;break;case`rounded`:R=p;break;default:R=s}let{x:z,y:B}=ee(_),V=m().x(z).y(B).curve(R),U;switch(_.thickness){case`normal`:U=`edge-thickness-normal`;break;case`thick`:U=`edge-thickness-thick`;break;case`invisible`:U=`edge-thickness-invisible`;break;default:U=`edge-thickness-normal`}switch(_.pattern){case`solid`:U+=` edge-pattern-solid`;break;case`dotted`:U+=` edge-pattern-dotted`;break;case`dashed`:U+=` edge-pattern-dashed`;break;default:U+=` edge-pattern-solid`}let W,G=L===`rounded`?K(J(I,_),5):V(I),q=Array.isArray(_.style)?_.style:[_.style],Y=q.find(e=>e?.startsWith(`stroke:`)),X=``;_.animate&&(X=`edge-animation-fast`),_.animation&&(X=`edge-animation-`+_.animation);let Z=!1;if(_.look===`handDrawn`){let t=y.svg(e);Object.assign([],I);let n=t.path(G,{roughness:.3,seed:k});U+=` transition`,W=r(n).select(`path`).attr(`id`,`${E}-${_.id}`).attr(`class`,` `+U+(_.classes?` `+_.classes:``)+(X?` `+X:``)).attr(`style`,q?q.reduce((e,t)=>e+`;`+t,``):``);let i=W.attr(`d`);W.attr(`d`,i),e.node().appendChild(W.node())}else{let t=P.join(`;`),n=q?q.reduce((e,t)=>e+t+`;`,``):``,r=(t?t+`;`+n+`;`:n)+`;`+(q?q.reduce((e,t)=>e+`;`+t,``):``);W=e.append(`path`).attr(`d`,G).attr(`id`,`${E}-${_.id}`).attr(`class`,` `+U+(_.classes?` `+_.classes:``)+(X?` `+X:``)).attr(`style`,r),Y=r.match(/stroke:([^;]+)/)?.[1],Z=_.animate===!0||!!_.animation||t.includes(`animation`);let i=W.node(),a=typeof i.getTotalLength==`function`?i.getTotalLength():0,o=D[_.arrowTypeStart]||0,s=D[_.arrowTypeEnd]||0;if(_.look===`neo`&&!Z){let e=`stroke-dasharray: ${_.pattern===`dotted`||_.pattern===`dashed`?ie(a,o,s):`0 ${o} ${a-o-s} ${s}`}; stroke-dashoffset: 0;`;W.attr(`style`,e+W.attr(`style`))}}W.attr(`data-edge`,!0),W.attr(`data-et`,`edge`),W.attr(`data-id`,_.id),W.attr(`data-points`,F),W.attr(`data-look`,S(_.look)),_.showPoints&&I.forEach(t=>{e.append(`circle`).style(`stroke`,`red`).style(`fill`,`red`).attr(`r`,1).attr(`cx`,t.x).attr(`cy`,t.y)});let Q=``;(g().flowchart.arrowMarkerAbsolute||g().state.arrowMarkerAbsolute)&&(Q=window.location.protocol+`//`+window.location.host+window.location.pathname+window.location.search,Q=Q.replace(/\(/g,`\\(`).replace(/\)/g,`\\)`)),a.info(`arrowTypeStart`,_.arrowTypeStart),a.info(`arrowTypeEnd`,_.arrowTypeEnd);let ae=!Z&&_?.look===`neo`;te(W,_,Q,E,b,ae,Y);let oe=Math.floor(A.length/2),se=A[oe];C.isLabelCoordinateInPath(se,W.attr(`d`))||(j=!0);let $={};return j&&($.updatedPath=A),$.originalPath=_.points,$},`insertEdge`);function K(e,t){if(e.length<2)return``;let n=``,r=e.length,i=1e-5;for(let a=0;a({...e}));if(e.length>=2&&O[t.arrowTypeStart]){let r=O[t.arrowTypeStart],i=e[0],a=e[1],{angle:o}=q(i,a),s=r*Math.cos(o),c=r*Math.sin(o);n[0].x=i.x+s,n[0].y=i.y+c}let r=e.length;if(r>=2&&O[t.arrowTypeEnd]){let i=O[t.arrowTypeEnd],a=e[r-1],o=e[r-2],{angle:s}=q(o,a),c=i*Math.cos(s),l=i*Math.sin(s);n[r-1].x=a.x-c,n[r-1].y=a.y-l}return n}e(J,`applyMarkerOffsetsToPoints`);var Y=e((e,t,n,r)=>{t.forEach(t=>{X[t](e,n,r)})},`insertMarkers`),X={extension:e((e,t,n)=>{a.trace(`Making markers for `,n),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-extensionStart`).attr(`class`,`marker extension `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 1,7 L18,13 V 1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-extensionEnd`).attr(`class`,`marker extension `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 V 13 L18,7 Z`),e.append(`marker`).attr(`id`,n+`_`+t+`-extensionStart-margin`).attr(`class`,`marker extension `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`viewBox`,`0 0 20 14`).append(`polygon`).attr(`points`,`10,7 18,13 18,1`).style(`stroke-width`,2).style(`stroke-dasharray`,`0`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-extensionEnd-margin`).attr(`class`,`marker extension `+t).attr(`refX`,9).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`viewBox`,`0 0 20 14`).append(`polygon`).attr(`points`,`10,1 10,13 18,7`).style(`stroke-width`,2).style(`stroke-dasharray`,`0`)},`extension`),composition:e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart`).attr(`class`,`marker composition `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd`).attr(`class`,`marker composition `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart-margin`).attr(`class`,`marker composition `+t).attr(`refX`,15).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`viewBox`,`0 0 15 15`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd-margin`).attr(`class`,`marker composition `+t).attr(`refX`,3.5).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`composition`),aggregation:e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart`).attr(`class`,`marker aggregation `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart-margin`).attr(`class`,`marker aggregation `+t).attr(`refX`,15).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,2).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd-margin`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,2).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`aggregation`),dependency:e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart`).attr(`class`,`marker dependency `+t).attr(`refX`,6).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd`).attr(`class`,`marker dependency `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart-margin`).attr(`class`,`marker dependency `+t).attr(`refX`,4).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd-margin`).attr(`class`,`marker dependency `+t).attr(`refX`,16).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`)},`dependency`),lollipop:e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart-margin`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6).attr(`stroke-width`,2),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd-margin`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6).attr(`stroke-width`,2)},`lollipop`),point:e((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,8).attr(`markerHeight`,8).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,4.5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,8).attr(`markerHeight`,8).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 5 L 10 10 L 10 0 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 11.5 14`).attr(`refX`,11.5).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,10.5).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 11.5 7 L 0 14 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 11.5 14`).attr(`refX`,1).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11.5).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`polygon`).attr(`points`,`0,7 11.5,14 11.5,0`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`)},`point`),circle:e((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,11).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-1).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refY`,5).attr(`refX`,12.25).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,14).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-2).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,14).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`)},`circle`),cross:e((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,12).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,-1).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd-margin`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 15 15`).attr(`refX`,17.7).attr(`refY`,7.5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 L 14,14 M 1,14 L 14,1`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2.5),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart-margin`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 15 15`).attr(`refX`,-3.5).attr(`refY`,7.5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 L 14,14 M 1,14 L 14,1`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2.5).style(`stroke-dasharray`,`1,0`)},`cross`),barb:e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`barb`),barbNeo:e((e,t,n)=>{let{themeVariables:r}=v(),{transitionColor:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`strokeWidth`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L11,14 L13,7 L11,0 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd-margin`).attr(`refX`,17).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L11,14 L13,7 L11,0 Z`).attr(`fill`,`${i}`)},`barbNeo`),only_one:e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).append(`path`).attr(`d`,`M9,0 L9,18 M15,0 L15,18`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).attr(`refX`,18).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,0 L3,18 M9,0 L9,18`)},`only_one`),zero_or_one:e((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,21).attr(`cy`,9).attr(`r`,6),r.append(`path`).attr(`d`,`M9,0 L9,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,9).attr(`r`,6),i.append(`path`).attr(`d`,`M21,0 L21,18`)},`zero_or_one`),one_or_more:e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).append(`path`).attr(`d`,`M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,27).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18`)},`one_or_more`),zero_or_more:e((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,48).attr(`cy`,18).attr(`r`,6),r.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,18).attr(`r`,6),i.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`)},`zero_or_more`),only_one_neo:e((e,t,n)=>{let{themeVariables:r}=v(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M9,0 L9,18 M15,0 L15,18`).attr(`stroke-width`,`${i}`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).attr(`refX`,18).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M3,0 L3,18 M9,0 L9,18`).attr(`stroke-width`,`${i}`)},`only_one_neo`),zero_or_one_neo:e((e,t,n)=>{let{themeVariables:r}=v(),{strokeWidth:i,mainBkg:a}=r,o=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);o.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,21).attr(`cy`,9).attr(`stroke-width`,`${i}`).attr(`r`,6),o.append(`path`).attr(`d`,`M9,0 L9,18`).attr(`stroke-width`,`${i}`);let s=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);s.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,9).attr(`cy`,9).attr(`stroke-width`,`${i}`).attr(`r`,6),s.append(`path`).attr(`d`,`M21,0 L21,18`).attr(`stroke-width`,`${i}`)},`zero_or_one_neo`),one_or_more_neo:e((e,t,n)=>{let{themeVariables:r}=v(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27`).attr(`stroke-width`,`${i}`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,27).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18`).attr(`stroke-width`,`${i}`)},`one_or_more_neo`),zero_or_more_neo:e((e,t,n)=>{let{themeVariables:r}=v(),{strokeWidth:i,mainBkg:a}=r,o=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);o.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,45.5).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${i}`),o.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`).attr(`stroke-width`,`${i}`);let s=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);s.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,11).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${i}`),s.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`).attr(`stroke-width`,`${i}`)},`zero_or_more_neo`),requirement_arrow:e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_arrowEnd`).attr(`refX`,20).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).append(`path`).attr(`d`,`M0,0 + L20,10 + M20,10 + L0,20`)},`requirement_arrow`),requirement_contains:e((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_containsStart`).attr(`refX`,0).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).append(`g`);r.append(`circle`).attr(`cx`,10).attr(`cy`,10).attr(`r`,9).attr(`fill`,`none`),r.append(`line`).attr(`x1`,1).attr(`x2`,19).attr(`y1`,10).attr(`y2`,10),r.append(`line`).attr(`y1`,1).attr(`y2`,19).attr(`x1`,10).attr(`x2`,10)},`requirement_contains`),requirement_arrow_neo:e((e,t,n)=>{let{themeVariables:r}=v(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_arrowEnd`).attr(`refX`,20).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`stroke-width`,`${i}`).attr(`viewBox`,`0 0 25 20`).append(`path`).attr(`d`,`M0,0 + L20,10 + M20,10 + L0,20`).attr(`stroke-linejoin`,`miter`)},`requirement_arrow_neo`),requirement_contains_neo:e((e,t,n)=>{let{themeVariables:r}=v(),{strokeWidth:i}=r,a=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_containsStart`).attr(`refX`,0).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`g`);a.append(`circle`).attr(`cx`,10).attr(`cy`,10).attr(`r`,9).attr(`fill`,`none`),a.append(`line`).attr(`x1`,1).attr(`x2`,19).attr(`y1`,10).attr(`y2`,10),a.append(`line`).attr(`y1`,1).attr(`y2`,19).attr(`x1`,10).attr(`x2`,10),a.selectAll(`*`).attr(`stroke-width`,`${i}`)},`requirement_contains_neo`)},Z=Y;export{z as a,Z as i,G as n,L as r,F as t}; \ No newline at end of file diff --git a/docs/dist/assets/chunk-V7P66DNM-D246Sefn.js b/docs/dist/assets/chunk-V7P66DNM-D246Sefn.js new file mode 100644 index 00000000..acd04d15 --- /dev/null +++ b/docs/dist/assets/chunk-V7P66DNM-D246Sefn.js @@ -0,0 +1 @@ +import{i as e,r as t,t as n}from"./chunk-PTVI3W5X-DVfdoxm6.js";var r=n({"../../node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/dayjs.min.js"(e,n){(function(t,r){typeof e==`object`&&n!==void 0?n.exports=r():typeof define==`function`&&define.amd?define(r):(t=typeof globalThis<`u`?globalThis:t||self).dayjs=r()})(e,(function(){var e=1e3,n=6e4,r=36e5,i=`millisecond`,a=`second`,o=`minute`,s=`hour`,c=`day`,l=`week`,u=`month`,d=`quarter`,f=`year`,p=`date`,m=`Invalid Date`,h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,_={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:t(function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`},`ordinal`)},v=t(function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},`m`),y={s:v,z:t(function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+v(r,2,`0`)+`:`+v(i,2,`0`)},`z`),m:t(function e(t,n){if(t.date()1)return e(o[0])}else{var s=t.name;x[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},`t`),T=t(function(e,t){if(C(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new D(n)},`O`),E=y;E.l=w,E.i=C,E.w=function(e,t){return T(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var D=(function(){function _(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[S]=!0}t(_,`M`);var v=_.prototype;return v.parse=function(e){this.$d=(function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(h);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)})(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return E},v.isValid=function(){return this.$d.toString()!==m},v.isSame=function(e,t){var n=T(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return T(e){},`trace`),debug:t((...e)=>{},`debug`),info:t((...e)=>{},`info`),warn:t((...e)=>{},`warn`),error:t((...e)=>{},`error`),fatal:t((...e)=>{},`fatal`)},s=t(function(e=`fatal`){let t=a.fatal;typeof e==`string`?e.toLowerCase()in a&&(t=a[e]):typeof e==`number`&&(t=e),o.trace=()=>{},o.debug=()=>{},o.info=()=>{},o.warn=()=>{},o.error=()=>{},o.fatal=()=>{},t<=a.fatal&&(o.fatal=console.error?console.error.bind(console,c(`FATAL`),`color: orange`):console.log.bind(console,`\x1B[35m`,c(`FATAL`))),t<=a.error&&(o.error=console.error?console.error.bind(console,c(`ERROR`),`color: orange`):console.log.bind(console,`\x1B[31m`,c(`ERROR`))),t<=a.warn&&(o.warn=console.warn?console.warn.bind(console,c(`WARN`),`color: orange`):console.log.bind(console,`\x1B[33m`,c(`WARN`))),t<=a.info&&(o.info=console.info?console.info.bind(console,c(`INFO`),`color: lightblue`):console.log.bind(console,`\x1B[34m`,c(`INFO`))),t<=a.debug&&(o.debug=console.debug?console.debug.bind(console,c(`DEBUG`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,c(`DEBUG`))),t<=a.trace&&(o.trace=console.debug?console.debug.bind(console,c(`TRACE`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,c(`TRACE`)))},`setLogLevel`),c=t(e=>`%c${(0,i.default)().format(`ss.SSS`)} : ${e} : `,`format`);function l(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n=i)&&(n=i)}return n}t(l,`max`);function u(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}t(u,`min`);function d(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}t(d,`ascending`);function f(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}t(f,`descending`);function p(e){let n,r,i;e.length===2?(n=e===d||e===f?e:m,r=e,i=e):(n=d,r=t((t,n)=>d(e(t),n),`compare2`),i=t((t,n)=>e(t)-n,`delta`));function a(e,t,i=0,a=e.length){if(i>>1;r(e[n],t)<0?i=n+1:a=n}while(i>>1;r(e[n],t)<=0?i=n+1:a=n}while(in&&i(e[o-1],t)>-i(e[o],t)?o-1:o}return t(s,`center`),{left:a,center:s,right:o}}t(p,`bisector`);function m(){return 0}t(m,`zero`);function h(e){return e===null?NaN:+e}t(h,`number`);var g=p(d),_=g.right;g.left,p(h).center;var v=_,y=class extends Map{static{t(this,`InternMap`)}constructor(e,t=C){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(b(this,e))}has(e){return super.has(b(this,e))}set(e,t){return super.set(x(this,e),t)}delete(e){return super.delete(S(this,e))}};function b({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}t(b,`intern_get`);function x({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}t(x,`intern_set`);function S({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}t(S,`intern_delete`);function C(e){return typeof e==`object`&&e?e.valueOf():e}t(C,`keyof`);var w=Math.sqrt(50),T=Math.sqrt(10),E=Math.sqrt(2);function D(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=w?10:a>=T?5:a>=E?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/lt&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*lt&&--c),c0))return[];if(e===t)return[e];let r=t=i))return[];let s=a-i+1,c=Array(s);if(r)if(o<0)for(let e=0;e+e(t)}t(F,`number`);function ae(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}t(ae,`center`);function oe(){return!this.__axis}t(oe,`entering`);function se(e,n){var r=[],i=null,a=null,o=6,s=6,c=3,l=typeof window<`u`&&window.devicePixelRatio>1?0:.5,u=e===N||e===P?-1:1,d=e===P||e===ee?`x`:`y`,f=e===N||e===te?re:ie;function p(t){var p=i??(n.ticks?n.ticks.apply(n,r):n.domain()),m=a??(n.tickFormat?n.tickFormat.apply(n,r):M),h=Math.max(o,0)+c,g=n.range(),_=+g[0]+l,v=+g[g.length-1]+l,y=(n.bandwidth?ae:F)(n.copy(),l),b=t.selection?t.selection():t,x=b.selectAll(`.domain`).data([null]),S=b.selectAll(`.tick`).data(p,n).order(),C=S.exit(),w=S.enter().append(`g`).attr(`class`,`tick`),T=S.select(`line`),E=S.select(`text`);x=x.merge(x.enter().insert(`path`,`.tick`).attr(`class`,`domain`).attr(`stroke`,`currentColor`)),S=S.merge(w),T=T.merge(w.append(`line`).attr(`stroke`,`currentColor`).attr(d+`2`,u*o)),E=E.merge(w.append(`text`).attr(`fill`,`currentColor`).attr(d,u*h).attr(`dy`,e===N?`0em`:e===te?`0.71em`:`0.32em`)),t!==b&&(x=x.transition(t),S=S.transition(t),T=T.transition(t),E=E.transition(t),C=C.transition(t).attr(`opacity`,ne).attr(`transform`,function(e){return isFinite(e=y(e))?f(e+l):this.getAttribute(`transform`)}),w.attr(`opacity`,ne).attr(`transform`,function(e){var t=this.parentNode.__axis;return f((t&&isFinite(t=t(e))?t:y(e))+l)})),C.remove(),x.attr(`d`,e===P||e===ee?s?`M`+u*s+`,`+_+`H`+l+`V`+v+`H`+u*s:`M`+l+`,`+_+`V`+v:s?`M`+_+`,`+u*s+`V`+l+`H`+v+`V`+u*s:`M`+_+`,`+l+`H`+v),S.attr(`opacity`,1).attr(`transform`,function(e){return f(y(e)+l)}),T.attr(d+`2`,u*o),E.attr(d,u*h).text(m),b.filter(oe).attr(`fill`,`none`).attr(`font-size`,10).attr(`font-family`,`sans-serif`).attr(`text-anchor`,e===ee?`start`:e===P?`end`:`middle`),b.each(function(){this.__axis=y})}return t(p,`axis`),p.scale=function(e){return arguments.length?(n=e,p):n},p.ticks=function(){return r=Array.from(arguments),p},p.tickArguments=function(e){return arguments.length?(r=e==null?[]:Array.from(e),p):r.slice()},p.tickValues=function(e){return arguments.length?(i=e==null?null:Array.from(e),p):i&&i.slice()},p.tickFormat=function(e){return arguments.length?(a=e,p):a},p.tickSize=function(e){return arguments.length?(o=s=+e,p):o},p.tickSizeInner=function(e){return arguments.length?(o=+e,p):o},p.tickSizeOuter=function(e){return arguments.length?(s=+e,p):s},p.tickPadding=function(e){return arguments.length?(c=+e,p):c},p.offset=function(e){return arguments.length?(l=+e,p):l},p}t(se,`axis`);function ce(e){return se(N,e)}t(ce,`axisTop`);function le(e){return se(te,e)}t(le,`axisBottom`);function ue(){}t(ue,`none`);function de(e){return e==null?ue:function(){return this.querySelector(e)}}t(de,`default`);function fe(e){typeof e!=`function`&&(e=de(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i=v&&(v=_+1);!(b=g[v])&&++v=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}t(Ve,`default`);function He(e){e||=Ue;function n(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}t(n,`compareNode`);for(var r=this._groups,i=r.length,a=Array(i),o=0;ot?1:e>=t?0:NaN}t(Ue,`ascending`);function We(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}t(We,`default`);function Ge(){return Array.from(this)}t(Ge,`default`);function Ke(){for(var e=this._groups,t=0,n=e.length;t=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),Ze.hasOwnProperty(t)?{space:Ze[t],local:e}:e}t(Qe,`default`);function $e(e){return function(){this.removeAttribute(e)}}t($e,`attrRemove`);function et(e){return function(){this.removeAttributeNS(e.space,e.local)}}t(et,`attrRemoveNS`);function tt(e,t){return function(){this.setAttribute(e,t)}}t(tt,`attrConstant`);function nt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}t(nt,`attrConstantNS`);function rt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}t(rt,`attrFunction`);function it(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}t(it,`attrFunctionNS`);function at(e,t){var n=Qe(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?et:$e:typeof t==`function`?n.local?it:rt:n.local?nt:tt)(n,t))}t(at,`default`);function ot(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}t(ot,`default`);function st(e){return function(){this.style.removeProperty(e)}}t(st,`styleRemove`);function ct(e,t,n){return function(){this.style.setProperty(e,t,n)}}t(ct,`styleConstant`);function lt(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}t(lt,`styleFunction`);function ut(e,t,n){return arguments.length>1?this.each((t==null?st:typeof t==`function`?lt:ct)(e,t,n??``)):dt(this.node(),e)}t(ut,`default`);function dt(e,t){return e.style.getPropertyValue(t)||ot(e).getComputedStyle(e,null).getPropertyValue(t)}t(dt,`styleValue`);function ft(e){return function(){delete this[e]}}t(ft,`propertyRemove`);function pt(e,t){return function(){this[e]=t}}t(pt,`propertyConstant`);function mt(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}t(mt,`propertyFunction`);function ht(e,t){return arguments.length>1?this.each((t==null?ft:typeof t==`function`?mt:pt)(e,t)):this.node()[e]}t(ht,`default`);function gt(e){return e.trim().split(/^|\s+/)}t(gt,`classArray`);function _t(e){return e.classList||new vt(e)}t(_t,`classList`);function vt(e){this._node=e,this._names=gt(e.getAttribute(`class`)||``)}t(vt,`ClassList`),vt.prototype={add:t(function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},`add`),remove:t(function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},`remove`),contains:t(function(e){return this._names.indexOf(e)>=0},`contains`)};function yt(e,t){for(var n=_t(e),r=-1,i=t.length;++r=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}t(Xt,`parseTypenames`);function Zt(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Mn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Mn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=yn.exec(e))?new R(t[1],t[2],t[3],1):(t=bn.exec(e))?new R(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=xn.exec(e))?Mn(t[1],t[2],t[3],t[4]):(t=Sn.exec(e))?Mn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Cn.exec(e))?Vn(t[1],t[2]/100,t[3]/100,1):(t=wn.exec(e))?Vn(t[1],t[2]/100,t[3]/100,t[4]):Tn.hasOwnProperty(e)?jn(Tn[e]):e===`transparent`?new R(NaN,NaN,NaN,0):null}t(An,`color`);function jn(e){return new R(e>>16&255,e>>8&255,e&255,1)}t(jn,`rgbn`);function Mn(e,t,n,r){return r<=0&&(e=t=n=NaN),new R(e,t,n,r)}t(Mn,`rgba`);function Nn(e){return e instanceof pn||(e=An(e)),e?(e=e.rgb(),new R(e.r,e.g,e.b,e.opacity)):new R}t(Nn,`rgbConvert`);function Pn(e,t,n,r){return arguments.length===1?Nn(e):new R(e,t,n,r??1)}t(Pn,`rgb`);function R(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}t(R,`Rgb`),dn(R,Pn,fn(pn,{brighter(e){return e=e==null?hn:hn**+e,new R(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?mn:mn**+e,new R(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new R(zn(this.r),zn(this.g),zn(this.b),Rn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Fn,formatHex:Fn,formatHex8:In,formatRgb:Ln,toString:Ln}));function Fn(){return`#${Bn(this.r)}${Bn(this.g)}${Bn(this.b)}`}t(Fn,`rgb_formatHex`);function In(){return`#${Bn(this.r)}${Bn(this.g)}${Bn(this.b)}${Bn((isNaN(this.opacity)?1:this.opacity)*255)}`}t(In,`rgb_formatHex8`);function Ln(){let e=Rn(this.opacity);return`${e===1?`rgb(`:`rgba(`}${zn(this.r)}, ${zn(this.g)}, ${zn(this.b)}${e===1?`)`:`, ${e})`}`}t(Ln,`rgb_formatRgb`);function Rn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}t(Rn,`clampa`);function zn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}t(zn,`clampi`);function Bn(e){return e=zn(e),(e<16?`0`:``)+e.toString(16)}t(Bn,`hex`);function Vn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new z(e,t,n,r)}t(Vn,`hsla`);function Hn(e){if(e instanceof z)return new z(e.h,e.s,e.l,e.opacity);if(e instanceof pn||(e=An(e)),!e)return new z;if(e instanceof z)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n0&&c<1?0:o,new z(o,s,c,e.opacity)}t(Hn,`hslConvert`);function Un(e,t,n,r){return arguments.length===1?Hn(e):new z(e,t,n,r??1)}t(Un,`hsl`);function z(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}t(z,`Hsl`),dn(z,Un,fn(pn,{brighter(e){return e=e==null?hn:hn**+e,new z(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?mn:mn**+e,new z(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new R(Kn(e>=240?e-240:e+120,i,r),Kn(e,i,r),Kn(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new z(Wn(this.h),Gn(this.s),Gn(this.l),Rn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Rn(this.opacity);return`${e===1?`hsl(`:`hsla(`}${Wn(this.h)}, ${Gn(this.s)*100}%, ${Gn(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function Wn(e){return e=(e||0)%360,e<0?e+360:e}t(Wn,`clamph`);function Gn(e){return Math.max(0,Math.min(1,e||0))}t(Gn,`clampt`);function Kn(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}t(Kn,`hsl2rgb`);var qn=Math.PI/180,Jn=180/Math.PI,Yn=18,Xn=.96422,Zn=1,Qn=.82521,$n=4/29,er=6/29,tr=3*er*er,nr=er*er*er;function rr(e){if(e instanceof B)return new B(e.l,e.a,e.b,e.opacity);if(e instanceof V)return dr(e);e instanceof R||(e=Nn(e));var t=cr(e.r),n=cr(e.g),r=cr(e.b),i=ar((.2225045*t+.7168786*n+.0606169*r)/Zn),a,o;return t===n&&n===r?a=o=i:(a=ar((.4360747*t+.3850649*n+.1430804*r)/Xn),o=ar((.0139322*t+.0971045*n+.7141733*r)/Qn)),new B(116*i-16,500*(a-i),200*(i-o),e.opacity)}t(rr,`labConvert`);function ir(e,t,n,r){return arguments.length===1?rr(e):new B(e,t,n,r??1)}t(ir,`lab`);function B(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}t(B,`Lab`),dn(B,ir,fn(pn,{brighter(e){return new B(this.l+Yn*(e??1),this.a,this.b,this.opacity)},darker(e){return new B(this.l-Yn*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=Xn*or(t),e=Zn*or(e),n=Qn*or(n),new R(sr(3.1338561*t-1.6168667*e-.4906146*n),sr(-.9787684*t+1.9161415*e+.033454*n),sr(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function ar(e){return e>nr?e**(1/3):e/tr+$n}t(ar,`xyz2lab`);function or(e){return e>er?e*e*e:tr*(e-$n)}t(or,`lab2xyz`);function sr(e){return 255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055)}t(sr,`lrgb2rgb`);function cr(e){return(e/=255)<=.04045?e/12.92:((e+.055)/1.055)**2.4}t(cr,`rgb2lrgb`);function lr(e){if(e instanceof V)return new V(e.h,e.c,e.l,e.opacity);if(e instanceof B||(e=rr(e)),e.a===0&&e.b===0)return new V(NaN,0()=>e,`default`);function pr(e,t){return function(n){return e+n*t}}t(pr,`linear`);function mr(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}t(mr,`exponential`);function hr(e,t){var n=t-e;return n?pr(e,n>180||n<-180?n-360*Math.round(n/360):n):fr(isNaN(e)?t:e)}t(hr,`hue`);function gr(e){return(e=+e)==1?_r:function(t,n){return n-t?mr(t,n,e):fr(isNaN(t)?n:t)}}t(gr,`gamma`);function _r(e,t){var n=t-e;return n?pr(e,n):fr(isNaN(e)?t:e)}t(_r,`nogamma`);function vr(e){return function(t,n){var r=e((t=ur(t)).h,(n=ur(n)).h),i=_r(t.c,n.c),a=_r(t.l,n.l),o=_r(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=a(e),t.opacity=o(e),t+``}}}t(vr,`hcl`);var yr=vr(hr);function br(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}t(br,`basis`);function xr(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,s=rn&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:H(r,i)})),n=jr.lastIndex;return n180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(a(n)+`rotate(`,null,i)-2,x:H(e,t)}))}t(s,`rotate`);function c(e,t,n,r){e===t?t&&n.push(a(n)+`skewX(`+t+i):r.push({i:n.push(a(n)+`skewX(`,null,i)-2,x:H(e,t)})}t(c,`skewX`);function l(e,t,n,r,i,o){if(e!==n||t!==r){var s=i.push(a(i)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:H(e,n)},{i:s-2,x:H(t,r)})}else (n!==1||r!==1)&&i.push(a(i)+`scale(`+n+`,`+r+`)`)}return t(l,`scale`),function(t,n){var r=[],i=[];return t=e(t),n=e(n),o(t.translateX,t.translateY,n.translateX,n.translateY,r,i),s(t.rotate,n.rotate,r,i),c(t.skewX,n.skewX,r,i),l(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}t(Kr,`default`);function qr(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}t(qr,`formatDecimalParts`);function Jr(e){return e=qr(Math.abs(e)),e?e[1]:NaN}t(Jr,`default`);function Yr(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}t(Yr,`default`);function Xr(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}t(Xr,`default`);var Zr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Qr(e){if(!(t=Zr.exec(e)))throw Error(`invalid format: `+e);var t;return new $r({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}t(Qr,`formatSpecifier`),Qr.prototype=$r.prototype;function $r(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}t($r,`FormatSpecifier`),$r.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function ei(e){out:for(var t=e.length,n=1,r=-1,i;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}t(ei,`default`);var ti;function ni(e,t){var n=qr(e,t);if(!n)return e+``;var r=n[0],i=n[1],a=i-(ti=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+qr(e,Math.max(0,t+a-1))[0]}t(ni,`default`);function ri(e,t){var n=qr(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}t(ri,`default`);var ii={"%":t((e,t)=>(e*100).toFixed(t),`%`),b:t(e=>Math.round(e).toString(2),`b`),c:t(e=>e+``,`c`),d:Kr,e:t((e,t)=>e.toExponential(t),`e`),f:t((e,t)=>e.toFixed(t),`f`),g:t((e,t)=>e.toPrecision(t),`g`),o:t(e=>Math.round(e).toString(8),`o`),p:t((e,t)=>ri(e*100,t),`p`),r:ri,s:ni,X:t(e=>Math.round(e).toString(16).toUpperCase(),`X`),x:t(e=>Math.round(e).toString(16),`x`)};function ai(e){return e}t(ai,`default`);var oi=Array.prototype.map,si=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function ci(e){var n=e.grouping===void 0||e.thousands===void 0?ai:Yr(oi.call(e.grouping,Number),e.thousands+``),r=e.currency===void 0?``:e.currency[0]+``,i=e.currency===void 0?``:e.currency[1]+``,a=e.decimal===void 0?`.`:e.decimal+``,o=e.numerals===void 0?ai:Xr(oi.call(e.numerals,String)),s=e.percent===void 0?`%`:e.percent+``,c=e.minus===void 0?`−`:e.minus+``,l=e.nan===void 0?`NaN`:e.nan+``;function u(e){e=Qr(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):ii[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=p===`$`?r:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``,x=p===`$`?i:/[%p]/.test(y)?s:``,S=ii[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var t=b,r=x,i,s,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?l:S(Math.abs(e),_),v&&(e=ei(e)),w&&+e==0&&f!==`+`&&(w=!1),t=(w?f===`(`?f:c:f===`-`||f===`(`?``:f)+t,r=(y===`s`?si[8+ti/3]:``)+r+(w&&f===`(`?`)`:``),C){for(i=-1,s=e.length;++ip||p>57){r=(p===46?a+e.slice(i+1):e.slice(i))+r,e=e.slice(0,i);break}}}g&&!m&&(e=n(e,1/0));var T=t.length+e.length+r.length,E=T>1)+t+e+r+E.slice(T);break;default:e=E+t+e+r;break}return o(e)}return t(w,`format`),w.toString=function(){return e+``},w}t(u,`newFormat`);function d(e,t){var n=u((e=Qr(e),e.type=`f`,e)),r=Math.max(-8,Math.min(8,Math.floor(Jr(t)/3)))*3,i=10**-r,a=si[8+r/3];return function(e){return n(i*e)+a}}return t(d,`formatPrefix`),{format:u,formatPrefix:d}}t(ci,`default`);var li,ui,di;fi({thousands:`,`,grouping:[3],currency:[`$`,``]});function fi(e){return li=ci(e),ui=li.format,di=li.formatPrefix,li}t(fi,`defaultLocale`);function pi(e){return Math.max(0,-Jr(Math.abs(e)))}t(pi,`default`);function mi(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Jr(t)/3)))*3-Jr(Math.abs(e)))}t(mi,`default`);function hi(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Jr(t)-Jr(e))+1}t(hi,`default`);function gi(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}t(gi,`count`);function _i(){return this.eachAfter(gi)}t(_i,`default`);function vi(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}t(vi,`default`);function yi(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}t(yi,`default`);function bi(e,t){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o=0;)n+=r[i].value;t.value=n})}t(Si,`default`);function Ci(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}t(Ci,`default`);function wi(e){for(var t=this,n=Ti(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}t(wi,`default`);function Ti(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}t(Ti,`leastCommonAncestor`);function Ei(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}t(Ei,`default`);function Di(){return Array.from(this)}t(Di,`default`);function Oi(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}t(Oi,`default`);function ki(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}t(ki,`default`);function*Ai(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i=0;--s)i.push(a=o[s]=new Li(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(Ii)}t(ji,`hierarchy`);function Mi(){return ji(this).eachBefore(Fi)}t(Mi,`node_copy`);function Ni(e){return e.children}t(Ni,`objectChildren`);function Pi(e){return Array.isArray(e)?e[1]:null}t(Pi,`mapChildren`);function Fi(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}t(Fi,`copyData`);function Ii(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}t(Ii,`computeHeight`);function Li(e){this.data=e,this.depth=this.height=0,this.parent=null}t(Li,`Node`),Li.prototype=ji.prototype={constructor:Li,count:_i,each:vi,eachAfter:bi,eachBefore:yi,find:xi,sum:Si,sort:Ci,path:wi,ancestors:Ei,descendants:Di,leaves:Oi,links:ki,copy:Mi,[Symbol.iterator]:Ai};function Ri(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}t(Ri,`default`);function zi(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(r-t)/e.value;++sv&&(v=l),S=g*g*x,y=Math.max(v/S,S/_),y>b){g-=l;break}b=y}o.push(c={value:g,dice:p1?t:1)},r}),`custom`)(Vi);function Wi(e){if(typeof e!=`function`)throw Error();return e}t(Wi,`required`);function Gi(){return 0}t(Gi,`constantZero`);function Ki(e){return function(){return e}}t(Ki,`default`);function qi(){var e=Ui,n=!1,r=1,i=1,a=[0],o=Gi,s=Gi,c=Gi,l=Gi,u=Gi;function d(e){return e.x0=e.y0=0,e.x1=r,e.y1=i,e.eachBefore(f),a=[0],n&&e.eachBefore(Ri),e}t(d,`treemap`);function f(t){var n=a[t.depth],r=t.x0+n,i=t.y0+n,d=t.x1-n,f=t.y1-n;dt&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}t(na,`clamper`);function ra(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i2?ia:ra,l=u=null,f}t(d,`rescale`);function f(t){return t==null||isNaN(t=+t)?o:(l||=c(e.map(i),n,r))(i(s(t)))}return t(f,`scale`),f.invert=function(t){return s(a((u||=c(n,e.map(i),H))(t)))},f.domain=function(t){return arguments.length?(e=Array.from(t,Qi),d()):e.slice()},f.range=function(e){return arguments.length?(n=Array.from(e),d()):n.slice()},f.rangeRound=function(e){return n=Array.from(e),r=Ir,d()},f.clamp=function(e){return arguments.length?(s=e?!0:ea,d()):s!==ea},f.interpolate=function(e){return arguments.length?(r=e,d()):r},f.unknown=function(e){return arguments.length?(o=e,f):o},function(e,t){return i=e,a=t,d()}}t(oa,`transformer`);function sa(){return oa()(ea,ea)}t(sa,`continuous`);function ca(e,t,n,r){var i=A(e,t,n),a;switch(r=Qr(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=mi(i,o))&&(r.precision=a),di(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=hi(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=pi(i))&&(r.precision=a-(r.type===`%`)*2);break}return ui(r)}t(ca,`tickFormat`);function la(e){var t=e.domain;return e.ticks=function(e){var n=t();return O(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return ca(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s0;){if(l=k(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}t(la,`linearish`);function ua(){var e=sa();return e.copy=function(){return aa(e,ua())},Ji.apply(e,arguments),la(e)}t(ua,`linear`);var da=new Date,fa=new Date;function U(e,n,r,i){function a(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return t(a,`interval`),a.floor=t=>(e(t=new Date(+t)),t),a.ceil=t=>(e(t=new Date(t-1)),n(t,1),e(t),t),a.round=e=>{let t=a(e),n=a.ceil(e);return e-t(n(e=new Date(+e),t==null?1:Math.floor(t)),e),a.range=(t,r,i)=>{let o=[];if(t=a.ceil(t),i=i==null?1:Math.floor(i),!(t0))return o;let s;do o.push(s=new Date(+t)),n(t,i),e(t);while(sU(n=>{if(n>=n)for(;e(n),!t(n);)n.setTime(n-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;n(e,-1),!t(e););else for(;--r>=0;)for(;n(e,1),!t(e););}),r&&(a.count=(t,n)=>(da.setTime(+t),fa.setTime(+n),e(da),e(fa),Math.floor(r(da,fa))),a.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?a.filter(i?t=>i(t)%e===0:t=>a.count(0,t)%e===0):a)),a}t(U,`timeInterval`);var pa=U(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);pa.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?U(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):pa),pa.range;var ma=1e3,W=ma*60,ha=W*60,ga=ha*24,_a=ga*7,va=ga*30,ya=ga*365,ba=U(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ma)},(e,t)=>(t-e)/ma,e=>e.getUTCSeconds());ba.range;var xa=U(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ma)},(e,t)=>{e.setTime(+e+t*W)},(e,t)=>(t-e)/W,e=>e.getMinutes());xa.range;var Sa=U(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*W)},(e,t)=>(t-e)/W,e=>e.getUTCMinutes());Sa.range;var Ca=U(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ma-e.getMinutes()*W)},(e,t)=>{e.setTime(+e+t*ha)},(e,t)=>(t-e)/ha,e=>e.getHours());Ca.range;var wa=U(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ha)},(e,t)=>(t-e)/ha,e=>e.getUTCHours());wa.range;var Ta=U(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*W)/ga,e=>e.getDate()-1);Ta.range;var Ea=U(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ga,e=>e.getUTCDate()-1);Ea.range;var Da=U(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ga,e=>Math.floor(e/ga));Da.range;function Oa(e){return U(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*W)/_a)}t(Oa,`timeWeekday`);var ka=Oa(0),Aa=Oa(1),ja=Oa(2),Ma=Oa(3),Na=Oa(4),Pa=Oa(5),Fa=Oa(6);ka.range,Aa.range,ja.range,Ma.range,Na.range,Pa.range,Fa.range;function Ia(e){return U(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/_a)}t(Ia,`utcWeekday`);var La=Ia(0),Ra=Ia(1),za=Ia(2),Ba=Ia(3),Va=Ia(4),Ha=Ia(5),Ua=Ia(6);La.range,Ra.range,za.range,Ba.range,Va.range,Ha.range,Ua.range;var Wa=U(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Wa.range;var Ga=U(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Ga.range;var Ka=U(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Ka.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:U(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),Ka.range;var qa=U(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());qa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:U(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),qa.range;function Ja(e,n,r,i,a,o){let s=[[ba,1,ma],[ba,5,5*ma],[ba,15,15*ma],[ba,30,30*ma],[o,1,W],[o,5,5*W],[o,15,15*W],[o,30,30*W],[a,1,ha],[a,3,3*ha],[a,6,6*ha],[a,12,12*ha],[i,1,ga],[i,2,2*ga],[r,1,_a],[n,1,va],[n,3,3*va],[e,1,ya]];function c(e,t,n){let r=te).right(s,i);if(a===s.length)return e.every(A(t/ya,n/ya,r));if(a===0)return pa.every(Math.max(A(t,n,r),1));let[o,c]=s[i/s[a-1][2]53)return null;`w`in r||(r.w=1),`Z`in r?(a=eo(to(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?Ra.ceil(a):Ra(a),a=Ea.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=$a(to(r.y,0,1)),o=a.getDay(),a=o>4||o===0?Aa.ceil(a):Aa(a),a=Ta.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else (`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?eo(to(r.y,0,1)).getUTCDay():$a(to(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,eo(r)):$a(r)}}t(w,`newParse`);function T(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=S[s in ro?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}t(T,`parseSpecifier`);function E(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=d.get(r[0].toLowerCase()),n+r[0].length):-1}t(E,`parsePeriod`);function D(e,t,n){var r=m.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1}t(D,`parseShortWeekday`);function O(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1}t(O,`parseWeekday`);function k(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1}t(k,`parseShortMonth`);function A(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=_.get(r[0].toLowerCase()),n+r[0].length):-1}t(A,`parseMonth`);function j(e,t,r){return T(e,n,t,r)}t(j,`parseLocaleDateTime`);function M(e,t,n){return T(e,r,t,n)}t(M,`parseLocaleDate`);function N(e,t,n){return T(e,i,t,n)}t(N,`parseLocaleTime`);function ee(e){return s[e.getDay()]}t(ee,`formatShortWeekday`);function te(e){return o[e.getDay()]}t(te,`formatWeekday`);function P(e){return l[e.getMonth()]}t(P,`formatShortMonth`);function ne(e){return c[e.getMonth()]}t(ne,`formatMonth`);function re(e){return a[+(e.getHours()>=12)]}t(re,`formatPeriod`);function ie(e){return 1+~~(e.getMonth()/3)}t(ie,`formatQuarter`);function F(e){return s[e.getUTCDay()]}t(F,`formatUTCShortWeekday`);function ae(e){return o[e.getUTCDay()]}t(ae,`formatUTCWeekday`);function oe(e){return l[e.getUTCMonth()]}t(oe,`formatUTCShortMonth`);function se(e){return c[e.getUTCMonth()]}t(se,`formatUTCMonth`);function ce(e){return a[+(e.getUTCHours()>=12)]}t(ce,`formatUTCPeriod`);function le(e){return 1+~~(e.getUTCMonth()/3)}return t(le,`formatUTCQuarter`),{format:t(function(e){var t=C(e+=``,b);return t.toString=function(){return e},t},`format`),parse:t(function(e){var t=w(e+=``,!1);return t.toString=function(){return e},t},`parse`),utcFormat:t(function(e){var t=C(e+=``,x);return t.toString=function(){return e},t},`utcFormat`),utcParse:t(function(e){var t=w(e+=``,!0);return t.toString=function(){return e},t},`utcParse`)}}t(no,`formatLocale`);var ro={"-":``,_:` `,0:`0`},G=/^\s*\d+/,io=/^%/,ao=/[\\^$*+?|[\]().{}]/g;function K(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a[e.toLowerCase(),t]))}t(co,`formatLookup`);function lo(e,t,n){var r=G.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}t(lo,`parseWeekdayNumberSunday`);function uo(e,t,n){var r=G.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}t(uo,`parseWeekdayNumberMonday`);function fo(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}t(fo,`parseWeekNumberSunday`);function po(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}t(po,`parseWeekNumberISO`);function mo(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}t(mo,`parseWeekNumberMonday`);function ho(e,t,n){var r=G.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}t(ho,`parseFullYear`);function go(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}t(go,`parseYear`);function _o(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}t(_o,`parseZone`);function vo(e,t,n){var r=G.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}t(vo,`parseQuarter`);function yo(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}t(yo,`parseMonthNumber`);function bo(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}t(bo,`parseDayOfMonth`);function xo(e,t,n){var r=G.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}t(xo,`parseDayOfYear`);function So(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}t(So,`parseHour24`);function Co(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}t(Co,`parseMinutes`);function wo(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}t(wo,`parseSeconds`);function To(e,t,n){var r=G.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}t(To,`parseMilliseconds`);function Eo(e,t,n){var r=G.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}t(Eo,`parseMicroseconds`);function Do(e,t,n){var r=io.exec(t.slice(n,n+1));return r?n+r[0].length:-1}t(Do,`parseLiteralPercent`);function Oo(e,t,n){var r=G.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}t(Oo,`parseUnixTimestamp`);function ko(e,t,n){var r=G.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}t(ko,`parseUnixTimestampSeconds`);function Ao(e,t){return K(e.getDate(),t,2)}t(Ao,`formatDayOfMonth`);function jo(e,t){return K(e.getHours(),t,2)}t(jo,`formatHour24`);function Mo(e,t){return K(e.getHours()%12||12,t,2)}t(Mo,`formatHour12`);function No(e,t){return K(1+Ta.count(Ka(e),e),t,3)}t(No,`formatDayOfYear`);function Po(e,t){return K(e.getMilliseconds(),t,3)}t(Po,`formatMilliseconds`);function Fo(e,t){return Po(e,t)+`000`}t(Fo,`formatMicroseconds`);function Io(e,t){return K(e.getMonth()+1,t,2)}t(Io,`formatMonthNumber`);function Lo(e,t){return K(e.getMinutes(),t,2)}t(Lo,`formatMinutes`);function Ro(e,t){return K(e.getSeconds(),t,2)}t(Ro,`formatSeconds`);function zo(e){var t=e.getDay();return t===0?7:t}t(zo,`formatWeekdayNumberMonday`);function Bo(e,t){return K(ka.count(Ka(e)-1,e),t,2)}t(Bo,`formatWeekNumberSunday`);function Vo(e){var t=e.getDay();return t>=4||t===0?Na(e):Na.ceil(e)}t(Vo,`dISO`);function Ho(e,t){return e=Vo(e),K(Na.count(Ka(e),e)+(Ka(e).getDay()===4),t,2)}t(Ho,`formatWeekNumberISO`);function Uo(e){return e.getDay()}t(Uo,`formatWeekdayNumberSunday`);function Wo(e,t){return K(Aa.count(Ka(e)-1,e),t,2)}t(Wo,`formatWeekNumberMonday`);function Go(e,t){return K(e.getFullYear()%100,t,2)}t(Go,`formatYear`);function Ko(e,t){return e=Vo(e),K(e.getFullYear()%100,t,2)}t(Ko,`formatYearISO`);function qo(e,t){return K(e.getFullYear()%1e4,t,4)}t(qo,`formatFullYear`);function Jo(e,t){var n=e.getDay();return e=n>=4||n===0?Na(e):Na.ceil(e),K(e.getFullYear()%1e4,t,4)}t(Jo,`formatFullYearISO`);function Yo(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+K(t/60|0,`0`,2)+K(t%60,`0`,2)}t(Yo,`formatZone`);function Xo(e,t){return K(e.getUTCDate(),t,2)}t(Xo,`formatUTCDayOfMonth`);function Zo(e,t){return K(e.getUTCHours(),t,2)}t(Zo,`formatUTCHour24`);function Qo(e,t){return K(e.getUTCHours()%12||12,t,2)}t(Qo,`formatUTCHour12`);function $o(e,t){return K(1+Ea.count(qa(e),e),t,3)}t($o,`formatUTCDayOfYear`);function es(e,t){return K(e.getUTCMilliseconds(),t,3)}t(es,`formatUTCMilliseconds`);function ts(e,t){return es(e,t)+`000`}t(ts,`formatUTCMicroseconds`);function ns(e,t){return K(e.getUTCMonth()+1,t,2)}t(ns,`formatUTCMonthNumber`);function rs(e,t){return K(e.getUTCMinutes(),t,2)}t(rs,`formatUTCMinutes`);function is(e,t){return K(e.getUTCSeconds(),t,2)}t(is,`formatUTCSeconds`);function as(e){var t=e.getUTCDay();return t===0?7:t}t(as,`formatUTCWeekdayNumberMonday`);function os(e,t){return K(La.count(qa(e)-1,e),t,2)}t(os,`formatUTCWeekNumberSunday`);function ss(e){var t=e.getUTCDay();return t>=4||t===0?Va(e):Va.ceil(e)}t(ss,`UTCdISO`);function cs(e,t){return e=ss(e),K(Va.count(qa(e),e)+(qa(e).getUTCDay()===4),t,2)}t(cs,`formatUTCWeekNumberISO`);function ls(e){return e.getUTCDay()}t(ls,`formatUTCWeekdayNumberSunday`);function us(e,t){return K(Ra.count(qa(e)-1,e),t,2)}t(us,`formatUTCWeekNumberMonday`);function ds(e,t){return K(e.getUTCFullYear()%100,t,2)}t(ds,`formatUTCYear`);function fs(e,t){return e=ss(e),K(e.getUTCFullYear()%100,t,2)}t(fs,`formatUTCYearISO`);function ps(e,t){return K(e.getUTCFullYear()%1e4,t,4)}t(ps,`formatUTCFullYear`);function ms(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Va(e):Va.ceil(e),K(e.getUTCFullYear()%1e4,t,4)}t(ms,`formatUTCFullYearISO`);function hs(){return`+0000`}t(hs,`formatUTCZone`);function gs(){return`%`}t(gs,`formatLiteralPercent`);function _s(e){return+e}t(_s,`formatUnixTimestamp`);function vs(e){return Math.floor(e/1e3)}t(vs,`formatUnixTimestampSeconds`);var ys,bs;xs({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]});function xs(e){return ys=no(e),bs=ys.format,ys.parse,ys.utcFormat,ys.utcParse,ys}t(xs,`defaultLocale`);function Ss(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a1?0:e<-1?Fs:Math.acos(e)}t(Rs,`acos`);function zs(e){return e>=1?Is:e<=-1?-Is:Math.asin(e)}t(zs,`asin`);var Bs=Math.PI,Vs=2*Bs,Hs=1e-6,Us=Vs-Hs;function Ws(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return Ws;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;tHs)if(!(Math.abs(u*s-c*l)>Hs)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((Bs-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>Hs&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Hs||Math.abs(this._y1-l)>Hs)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%Vs+Vs),d>Us?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>Hs&&this._append`A${n},${n},0,${+(d>=Bs)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function qs(){return new Ks}t(qs,`path`),qs.prototype=Ks.prototype;function Js(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Ks(t)}t(Js,`withPath`);function Ys(e){return e.innerRadius}t(Ys,`arcInnerRadius`);function Xs(e){return e.outerRadius}t(Xs,`arcOuterRadius`);function Zs(e){return e.startAngle}t(Zs,`arcStartAngle`);function Qs(e){return e.endAngle}t(Qs,`arcEndAngle`);function $s(e){return e&&e.padAngle}t($s,`arcPadAngle`);function ec(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*fA*A+j*j&&(w=E,T=D),{cx:w,cy:T,x01:-u,y01:-d,x11:w*(i/x-1),y11:T*(i/x-1)}}t(tc,`cornerTangents`);function nc(){var e=Ys,n=Xs,r=q(0),i=null,a=Zs,o=Qs,s=$s,c=null,l=Js(u);function u(){var t,u,d=+e.apply(this,arguments),f=+n.apply(this,arguments),p=a.apply(this,arguments)-Is,m=o.apply(this,arguments)-Is,h=As(m-p),g=m>p;if(c||=t=l(),fX))c.moveTo(0,0);else if(h>Ls-X)c.moveTo(f*js(p),f*Y(p)),c.arc(0,0,f,p,m,!g),d>X&&(c.moveTo(d*js(m),d*Y(m)),c.arc(0,0,d,m,p,g));else{var _=p,v=m,y=p,b=m,x=h,S=h,C=s.apply(this,arguments)/2,w=C>X&&(i?+i.apply(this,arguments):Ps(d*d+f*f)),T=Ns(As(f-d)/2,+r.apply(this,arguments)),E=T,D=T,O,k;if(w>X){var A=zs(w/d*Y(C)),j=zs(w/f*Y(C));(x-=A*2)>X?(A*=g?1:-1,y+=A,b-=A):(x=0,y=b=(p+m)/2),(S-=j*2)>X?(j*=g?1:-1,_+=j,v-=j):(S=0,_=v=(p+m)/2)}var M=f*js(_),N=f*Y(_),ee=d*js(b),te=d*Y(b);if(T>X){var P=f*js(v),ne=f*Y(v),re=d*js(y),ie=d*Y(y),F;if(hX?D>X?(O=tc(re,ie,M,N,f,D,g),k=tc(P,ne,ee,te,f,D,g),c.moveTo(O.cx+O.x01,O.cy+O.y01),DX)||!(x>X)?c.lineTo(ee,te):E>X?(O=tc(ee,te,P,ne,d,-E,g),k=tc(M,N,re,ie,d,-E,g),c.lineTo(O.cx+O.x01,O.cy+O.y01),Ee?1:t>=e?0:NaN}t(lc,`default`);function uc(e){return e}t(uc,`default`);function dc(){var e=uc,n=lc,r=null,i=q(0),a=q(Ls),o=q(0);function s(t){var s,c=(t=ac(t)).length,l,u,d=0,f=Array(c),p=Array(c),m=+i.apply(this,arguments),h=Math.min(Ls,Math.max(-Ls,a.apply(this,arguments)-m)),g,_=Math.min(Math.abs(h)/c,o.apply(this,arguments)),v=_*(h<0?-1:1),y;for(s=0;s0&&(d+=y);for(n==null?r!=null&&f.sort(function(e,n){return r(t[e],t[n])}):f.sort(function(e,t){return n(p[e],p[t])}),s=0,u=d?(h-c*v)/d:0;s0?y*u:0)+v,p[l]={data:t[l],index:s,value:y,startAngle:m,endAngle:g,padAngle:_};return p}return t(s,`pie`),s.value=function(t){return arguments.length?(e=typeof t==`function`?t:q(+t),s):e},s.sortValues=function(e){return arguments.length?(n=e,r=null,s):n},s.sort=function(e){return arguments.length?(r=e,n=null,s):r},s.startAngle=function(e){return arguments.length?(i=typeof e==`function`?e:q(+e),s):i},s.endAngle=function(e){return arguments.length?(a=typeof e==`function`?e:q(+e),s):a},s.padAngle=function(e){return arguments.length?(o=typeof e==`function`?e:q(+e),s):o},s}t(dc,`default`);var fc=class{static{t(this,`Bump`)}constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function pc(e){return new fc(e,!0)}t(pc,`bumpX`);function mc(e){return new fc(e,!1)}t(mc,`bumpY`);function hc(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}t(hc,`point`);function gc(e){this._context=e}t(gc,`Basis`),gc.prototype={areaStart:t(function(){this._line=0},`areaStart`),areaEnd:t(function(){this._line=NaN},`areaEnd`),lineStart:t(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},`lineStart`),lineEnd:t(function(){switch(this._point){case 3:hc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},`lineEnd`),point:t(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:hc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t},`point`)};function _c(e){return new gc(e)}t(_c,`default`);function vc(){}t(vc,`default`);function yc(e){this._context=e}t(yc,`BasisClosed`),yc.prototype={areaStart:vc,areaEnd:vc,lineStart:t(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},`lineStart`),lineEnd:t(function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},`lineEnd`),point:t(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:hc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t},`point`)};function bc(e){return new yc(e)}t(bc,`default`);function xc(e){this._context=e}t(xc,`BasisOpen`),xc.prototype={areaStart:t(function(){this._line=0},`areaStart`),areaEnd:t(function(){this._line=NaN},`areaEnd`),lineStart:t(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},`lineStart`),lineEnd:t(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},`lineEnd`),point:t(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:hc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t},`point`)};function Sc(e){return new xc(e)}t(Sc,`default`);function Cc(e,t){this._basis=new gc(e),this._beta=t}t(Cc,`Bundle`),Cc.prototype={lineStart:t(function(){this._x=[],this._y=[],this._basis.lineStart()},`lineStart`),lineEnd:t(function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},`lineEnd`),point:t(function(e,t){this._x.push(+e),this._y.push(+t)},`point`)};var wc=t((function e(n){function r(e){return n===1?new gc(e):new Cc(e,n)}return t(r,`bundle`),r.beta=function(t){return e(+t)},r}),`custom`)(.85);function Tc(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}t(Tc,`point`);function Ec(e,t){this._context=e,this._k=(1-t)/6}t(Ec,`Cardinal`),Ec.prototype={areaStart:t(function(){this._line=0},`areaStart`),areaEnd:t(function(){this._line=NaN},`areaEnd`),lineStart:t(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},`lineStart`),lineEnd:t(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Tc(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},`lineEnd`),point:t(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Tc(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},`point`)};var Dc=t((function e(n){function r(e){return new Ec(e,n)}return t(r,`cardinal`),r.tension=function(t){return e(+t)},r}),`custom`)(0);function Oc(e,t){this._context=e,this._k=(1-t)/6}t(Oc,`CardinalClosed`),Oc.prototype={areaStart:vc,areaEnd:vc,lineStart:t(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},`lineStart`),lineEnd:t(function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},`lineEnd`),point:t(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Tc(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},`point`)};var kc=t((function e(n){function r(e){return new Oc(e,n)}return t(r,`cardinal`),r.tension=function(t){return e(+t)},r}),`custom`)(0);function Ac(e,t){this._context=e,this._k=(1-t)/6}t(Ac,`CardinalOpen`),Ac.prototype={areaStart:t(function(){this._line=0},`areaStart`),areaEnd:t(function(){this._line=NaN},`areaEnd`),lineStart:t(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},`lineStart`),lineEnd:t(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},`lineEnd`),point:t(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Tc(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},`point`)};var jc=t((function e(n){function r(e){return new Ac(e,n)}return t(r,`cardinal`),r.tension=function(t){return e(+t)},r}),`custom`)(0);function Mc(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>X){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>X){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}t(Mc,`point`);function Nc(e,t){this._context=e,this._alpha=t}t(Nc,`CatmullRom`),Nc.prototype={areaStart:t(function(){this._line=0},`areaStart`),areaEnd:t(function(){this._line=NaN},`areaEnd`),lineStart:t(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},`lineStart`),lineEnd:t(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},`lineEnd`),point:t(function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Mc(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},`point`)};var Pc=t((function e(n){function r(e){return n?new Nc(e,n):new Ec(e,0)}return t(r,`catmullRom`),r.alpha=function(t){return e(+t)},r}),`custom`)(.5);function Fc(e,t){this._context=e,this._alpha=t}t(Fc,`CatmullRomClosed`),Fc.prototype={areaStart:vc,areaEnd:vc,lineStart:t(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},`lineStart`),lineEnd:t(function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},`lineEnd`),point:t(function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Mc(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},`point`)};var Ic=t((function e(n){function r(e){return n?new Fc(e,n):new Oc(e,0)}return t(r,`catmullRom`),r.alpha=function(t){return e(+t)},r}),`custom`)(.5);function Lc(e,t){this._context=e,this._alpha=t}t(Lc,`CatmullRomOpen`),Lc.prototype={areaStart:t(function(){this._line=0},`areaStart`),areaEnd:t(function(){this._line=NaN},`areaEnd`),lineStart:t(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},`lineStart`),lineEnd:t(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},`lineEnd`),point:t(function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Mc(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},`point`)};var Rc=t((function e(n){function r(e){return n?new Lc(e,n):new Ac(e,0)}return t(r,`catmullRom`),r.alpha=function(t){return e(+t)},r}),`custom`)(.5);function zc(e){this._context=e}t(zc,`LinearClosed`),zc.prototype={areaStart:vc,areaEnd:vc,lineStart:t(function(){this._point=0},`lineStart`),lineEnd:t(function(){this._point&&this._context.closePath()},`lineEnd`),point:t(function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))},`point`)};function Bc(e){return new zc(e)}t(Bc,`default`);function Vc(e){return e<0?-1:1}t(Vc,`sign`);function Hc(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Vc(a)+Vc(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}t(Hc,`slope3`);function Uc(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}t(Uc,`slope2`);function Wc(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}t(Wc,`point`);function Gc(e){this._context=e}t(Gc,`MonotoneX`),Gc.prototype={areaStart:t(function(){this._line=0},`areaStart`),areaEnd:t(function(){this._line=NaN},`areaEnd`),lineStart:t(function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},`lineStart`),lineEnd:t(function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Wc(this,this._t0,Uc(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},`lineEnd`),point:t(function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Wc(this,Uc(this,n=Hc(this,e,t)),n);break;default:Wc(this,this._t0,n=Hc(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}},`point`)};function Kc(e){this._context=new qc(e)}t(Kc,`MonotoneY`),(Kc.prototype=Object.create(Gc.prototype)).point=function(e,t){Gc.prototype.point.call(this,t,e)};function qc(e){this._context=e}t(qc,`ReflectContext`),qc.prototype={moveTo:t(function(e,t){this._context.moveTo(t,e)},`moveTo`),closePath:t(function(){this._context.closePath()},`closePath`),lineTo:t(function(e,t){this._context.lineTo(t,e)},`lineTo`),bezierCurveTo:t(function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)},`bezierCurveTo`)};function Jc(e){return new Gc(e)}t(Jc,`monotoneX`);function Yc(e){return new Kc(e)}t(Yc,`monotoneY`);function Xc(e){this._context=e}t(Xc,`Natural`),Xc.prototype={areaStart:t(function(){this._line=0},`areaStart`),areaEnd:t(function(){this._line=NaN},`areaEnd`),lineStart:t(function(){this._x=[],this._y=[]},`lineStart`),lineEnd:t(function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Zc(e),i=Zc(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},`lineEnd`),point:t(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t},`point`)};function el(e){return new $c(e,.5)}t(el,`default`);function tl(e){return new $c(e,0)}t(tl,`stepBefore`);function nl(e){return new $c(e,1)}t(nl,`stepAfter`);var rl={value:t(()=>{},`value`)};function il(){for(var e=0,t=arguments.length,n={},r;e=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}t(ol,`parseTypenames`),al.prototype=il.prototype={constructor:al,on:t(function(e,t){var n=this._,r=ol(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a0)for(var n=Array(i),r=0,i,a;r=0&&e._call.call(void 0,t),e=e._next;--ul}t(Tl,`timerFlush`);function El(){_l=(gl=yl.now())+vl,ul=dl=0;try{Tl()}finally{ul=0,Ol(),_l=0}}t(El,`wake`);function Dl(){var e=yl.now(),t=e-gl;t>pl&&(vl-=t,gl=e)}t(Dl,`poke`);function Ol(){for(var e,t=ml,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:ml=n);hl=e,kl(r)}t(Ol,`nap`);function kl(e){ul||(dl&&=clearTimeout(dl),e-_l>24?(e<1/0&&(dl=setTimeout(El,e-yl.now()-vl)),fl&&=clearInterval(fl)):(fl||=(gl=yl.now(),setInterval(Dl,pl)),ul=1,bl(El)))}t(kl,`sleep`);function Al(e,t,n){var r=new Cl;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}t(Al,`default`);var jl=ll(`start`,`end`,`cancel`,`interrupt`),Ml=[],Nl=0,Pl=1,Fl=2,Il=3,Ll=4,Rl=5,zl=6;function Bl(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Hl(e,n,{name:t,index:r,group:i,on:jl,tween:Ml,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Nl})}t(Bl,`default`);function Vl(e,t){var n=Q(e,t);if(n.state>Nl)throw Error(`too late; already scheduled`);return n}t(Vl,`init`);function Z(e,t){var n=Q(e,t);if(n.state>Il)throw Error(`too late; already running`);return n}t(Z,`set`);function Q(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}t(Q,`get`);function Hl(e,n,r){var i=e.__transition,a;i[n]=r,r.timer=wl(o,0,r.time);function o(e){r.state=Pl,r.timer.restart(s,r.delay,r.time),r.delay<=e&&s(e-r.delay)}t(o,`schedule`);function s(t){var o,u,d,f;if(r.state!==Pl)return l();for(o in i)if(f=i[o],f.name===r.name){if(f.state===Il)return Al(s);f.state===Ll?(f.state=zl,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete i[o]):+oFl&&r.state=0&&(e=e.slice(0,t)),!e||e===`start`})}t(bu,`start`);function xu(e,t,n){var r,i,a=bu(t)?Vl:Z;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}t(xu,`onFunction`);function Su(e,t){var n=this._id;return arguments.length<2?Q(this.node(),n).on.on(e):this.each(xu(n,e,t))}t(Su,`default`);function Cu(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}t(Cu,`removeFunction`);function wu(){return this.on(`end.remove`,Cu(this._id))}t(wu,`default`);function Tu(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=de(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;of&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};ce.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:e(function(e,t,n,r){switch(n){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin(`acc_title`),33;case 7:return this.popState(),`acc_title_value`;case 8:return this.begin(`acc_descr`),35;case 9:return this.popState(),`acc_descr_value`;case 10:this.begin(`acc_descr_multiline`);break;case 11:this.popState();break;case 12:return`acc_descr_multiline_value`;case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return`EDGE_STATE`;case 18:this.begin(`callback_name`);break;case 19:this.popState();break;case 20:this.popState(),this.begin(`callback_args`);break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return`STR`;case 26:this.begin(`string`);break;case 27:return 82;case 28:return 57;case 29:return this.begin(`namespace`),42;case 30:return this.popState(),8;case 31:break;case 32:return this.begin(`namespace-body`),39;case 33:this.popState(),this.less(0);break;case 34:return this.popState(),41;case 35:return`EOF_IN_STRUCT`;case 36:return 8;case 37:break;case 38:return`EDGE_STATE`;case 39:return this.begin(`class`),48;case 40:return this.popState(),8;case 41:break;case 42:return this.popState(),this.popState(),41;case 43:return this.begin(`class-body`),39;case 44:return this.popState(),41;case 45:return`EOF_IN_STRUCT`;case 46:return`EDGE_STATE`;case 47:return`OPEN_IN_STRUCT`;case 48:break;case 49:return`MEMBER`;case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 59:this.popState();break;case 60:return`GENERICTYPE`;case 61:this.begin(`generic`);break;case 62:this.popState();break;case 63:return`BQUOTE_STR`;case 64:this.begin(`bqstring`);break;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 77;case 69:return 69;case 70:return 69;case 71:return 71;case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return`PLUS`;case 83:return 87;case 84:return 61;case 85:return 89;case 86:return 89;case 87:return 90;case 88:return`EQUALS`;case 89:return`EQUALS`;case 90:return 60;case 91:return 12;case 92:return 14;case 93:return`PUNCTUATION`;case 94:return 86;case 95:return 102;case 96:return 50;case 97:return 50;case 98:return 9}},`anonymous`),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],inclusive:!0}}}})();function $(){this.yy={}}return e($,`Parser`),$.prototype=ce,ce.Parser=$,new $})();C.parser=C;var w=C,T=[`#`,`+`,`~`,`-`,``],E=class{static{e(this,`ClassMember`)}constructor(e,t){this.memberType=t,this.visibility=``,this.classifier=``,this.text=``;let n=a(e,r());this.parseMember(n)}getDisplayDetails(){let e=this.visibility+o(this.id);this.memberType===`method`&&(e+=`(${o(this.parameters.trim())})`,this.returnType&&(e+=` : `+o(this.returnType))),e=e.trim();let t=this.parseClassifier();return{displayText:e,cssStyle:t}}parseMember(e){let t=``;if(this.memberType===`method`){let n=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(e);if(n){let e=n[1]?n[1].trim():``;if(T.includes(e)&&(this.visibility=e),this.id=n[2],this.parameters=n[3]?n[3].trim():``,t=n[4]?n[4].trim():``,this.returnType=n[5]?n[5].trim():``,t===``){let e=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(e)&&(t=e,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{let n=e.length,r=e.substring(0,1),i=e.substring(n-1);T.includes(r)&&(this.visibility=r),/[$*]/.exec(i)&&(t=i),this.id=e.substring(this.visibility===``?0:1,t===``?n:n-1)}this.classifier=t,this.id=this.id.startsWith(` `)?` `+this.id.trim():this.id.trim();let n=`${this.visibility?`\\`+this.visibility:``}${o(this.id)}${this.memberType===`method`?`(${o(this.parameters)})${this.returnType?` : `+o(this.returnType):``}`:``}`;this.text=n.replaceAll(`<`,`<`).replaceAll(`>`,`>`),this.text.startsWith(`\\<`)&&(this.text=this.text.replace(`\\<`,`~`))}parseClassifier(){switch(this.classifier){case`*`:return`font-style:italic;`;case`$`:return`text-decoration:underline;`;default:return``}}},D=`classId-`,O=0,k=e(e=>f.sanitizeText(e,r()),`sanitizeText`),A=class a{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId=``,this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=e(e=>{let n=b();t(e).select(`svg`).selectAll(`g`).filter(function(){return t(this).attr(`title`)!==null}).on(`mouseover`,e=>{let r=t(e.currentTarget),i=r.attr(`title`);if(!i)return;let a=e.currentTarget.getBoundingClientRect();n.transition().duration(200).style(`opacity`,`.9`),n.html(c.sanitize(i)).style(`left`,`${window.scrollX+a.left+a.width/2}px`).style(`top`,`${window.scrollY+a.bottom+4}px`),r.classed(`hover`,!0)}).on(`mouseout`,e=>{n.transition().duration(500).style(`opacity`,0),t(e.currentTarget).classed(`hover`,!1)})},`setupToolTips`),this.direction=`TB`,this.setAccTitle=u,this.getAccTitle=m,this.setAccDescription=s,this.getAccDescription=d,this.setDiagramTitle=l,this.getDiagramTitle=i,this.getConfig=e(()=>r().class,`getConfig`),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}static{e(this,`ClassDB`)}splitClassNameAndType(e){let t=f.sanitizeText(e,r()),n=``,i=t;if(t.indexOf(`~`)>0){let e=t.split(`~`);i=k(e[0]),n=k(e[1])}return{className:i,type:n}}setClassLabel(e,t){let n=f.sanitizeText(e,r());t&&=k(t);let{className:i}=this.splitClassNameAndType(n);this.classes.get(i).label=t,this.classes.get(i).text=`${t}${this.classes.get(i).type?`<${this.classes.get(i).type}>`:``}`}addClass(e){let t=f.sanitizeText(e,r()),{className:n,type:i}=this.splitClassNameAndType(t);if(this.classes.has(n))return;let a=f.sanitizeText(n,r());this.classes.set(a,{id:a,type:i,label:a,text:`${a}${i?`<${i}>`:``}`,shape:`classBox`,cssClasses:`default`,methods:[],members:[],annotations:[],styles:[],domId:D+a+`-`+O}),O++}addInterface(e,t){let n={id:`interface${this.interfaces.length}`,label:e,classId:t};this.interfaces.push(n)}setDiagramId(e){this.diagramId=e}lookUpDomId(e){let t=f.sanitizeText(e,r());if(this.classes.has(t)){let e=this.classes.get(t).domId;return this.diagramId?`${this.diagramId}-${e}`:e}throw Error(`Class not found: `+t)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId=``,this.direction=`TB`,p()}getClass(e){return this.classes.get(e)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(e){let t=typeof e==`number`?`note${e}`:e;return this.notes.get(t)}getNotes(){return this.notes}addRelation(e){n.debug(`Adding relation: `+JSON.stringify(e));let t=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];e.relation.type1===this.relationType.LOLLIPOP&&!t.includes(e.relation.type2)?(this.addClass(e.id2),this.addInterface(e.id1,e.id2),e.id1=`interface${this.interfaces.length-1}`):e.relation.type2===this.relationType.LOLLIPOP&&!t.includes(e.relation.type1)?(this.addClass(e.id1),this.addInterface(e.id2,e.id1),e.id2=`interface${this.interfaces.length-1}`):(this.addClass(e.id1),this.addClass(e.id2)),e.id1=this.splitClassNameAndType(e.id1).className,e.id2=this.splitClassNameAndType(e.id2).className,e.relationTitle1=f.sanitizeText(e.relationTitle1.trim(),r()),e.relationTitle2=f.sanitizeText(e.relationTitle2.trim(),r()),this.relations.push(e)}addAnnotation(e,t){let n=this.splitClassNameAndType(e).className;this.classes.get(n).annotations.push(t)}addMember(e,t){this.addClass(e);let n=this.splitClassNameAndType(e).className,r=this.classes.get(n);if(typeof t==`string`){let e=t.trim();e.startsWith(`<<`)&&e.endsWith(`>>`)?r.annotations.push(k(e.substring(2,e.length-2))):e.indexOf(`)`)>0?r.methods.push(new E(e,`method`)):e&&r.members.push(new E(e,`attribute`))}}addMembers(e,t){Array.isArray(t)&&(t.reverse(),t.forEach(t=>this.addMember(e,t)))}addNote(e,t){let n=this.notes.size,r={id:`note${n}`,class:t,text:e,index:n};return this.notes.set(r.id,r),r.id}cleanupLabel(e){return e.startsWith(`:`)&&(e=e.substring(1)),k(e.trim())}setCssClass(e,t){e.split(`,`).forEach(e=>{let n=e;/\d/.exec(e[0])&&(n=D+n);let r=this.classes.get(n);r&&(r.cssClasses+=` `+t)})}defineClass(e,t){for(let n of e){let e=this.styleClasses.get(n);e===void 0&&(e={id:n,styles:[],textStyles:[]},this.styleClasses.set(n,e)),t&&t.forEach(t=>{if(/color/.exec(t)){let n=t.replace(`fill`,`bgFill`);e.textStyles.push(n)}e.styles.push(t)}),this.classes.forEach(e=>{e.cssClasses.includes(n)&&e.styles.push(...t.flatMap(e=>e.split(`,`)))})}}setTooltip(e,t){e.split(`,`).forEach(e=>{t!==void 0&&(this.classes.get(e).tooltip=k(t))})}getTooltip(e,t){return t&&this.namespaces.has(t)?this.namespaces.get(t).classes.get(e).tooltip:this.classes.get(e).tooltip}setLink(e,t,n){let i=r();e.split(`,`).forEach(e=>{let r=e;/\d/.exec(e[0])&&(r=D+r);let a=this.classes.get(r);a&&(a.link=g.formatUrl(t,i),i.securityLevel===`sandbox`?a.linkTarget=`_top`:typeof n==`string`?a.linkTarget=k(n):a.linkTarget=`_blank`)}),this.setCssClass(e,`clickable`)}setClickEvent(e,t,n){e.split(`,`).forEach(e=>{this.setClickFunc(e,t,n),this.classes.get(e).haveCallback=!0}),this.setCssClass(e,`clickable`)}setClickFunc(e,t,n){let i=f.sanitizeText(e,r());if(r().securityLevel!==`loose`||t===void 0)return;let a=i;if(this.classes.has(a)){let e=[];if(typeof n==`string`){e=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t{let n=this.lookUpDomId(a),r=document.querySelector(`[id="${n}"]`);r!==null&&r.addEventListener(`click`,()=>{g.runFunc(t,...e)},!1)})}}bindFunctions(e){this.functions.forEach(t=>{t(e)})}escapeHtml(e){return e.replace(/&/g,`&`).replace(//g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}getDirection(){return this.direction}setDirection(e){this.direction=e}static resolveQualifiedId(e,t){let n=t.at(-1);return n?`${n}.${e}`:e}static getAncestorIds(e){let t=e.split(`.`),n=Array(t.length);n[0]=t[0];for(let e=1;e0?i[e-1]:void 0,o=e===i.length-1,s=o&&t?t:r[e];this.namespaces.has(n)?o&&(this.namespaces.get(n).explicit=!0):this.namespaces.set(n,this.createNamespaceNode(n,s,a,o)),a&&this.linkParentChild(a,n)}return n}popNamespace(){this.namespaceStack.pop()}getNamespace(e){return this.namespaces.get(e)}getNamespaces(){return this.namespaces}addClassesToNamespace(e,t,n){if(this.namespaces.has(e)){for(let n of t){let{className:t}=this.splitClassNameAndType(n),r=this.getClass(t);r.parent=e,this.namespaces.get(e).classes.set(t,r)}for(let t of n){let n=this.getNote(t);n.parent=e,this.namespaces.get(e).notes.set(t,n)}}}setCssStyle(e,t){let n=this.classes.get(e);if(!(!t||!n))for(let e of t)e.includes(`,`)?n.styles.push(...e.split(`,`)):n.styles.push(e)}getArrowMarker(e){let t;switch(e){case 0:t=`aggregation`;break;case 1:t=`extension`;break;case 2:t=`composition`;break;case 3:t=`dependency`;break;case 4:t=`lollipop`;break;default:t=`none`}return t}resolveExplicitAncestor(e){let t=e;for(;t;){let e=this.namespaces.get(t);if(!e)return;if(e.explicit)return t;t=e.parent}}getData(){let e=[],t=[],n=r(),i=n.class?.hierarchicalNamespaces??!0;for(let t of this.namespaces.values()){if(!i&&!t.explicit)continue;let r={id:t.id,label:i?t.label:t.id,isGroup:!0,padding:n.class.padding??16,shape:`rect`,cssStyles:[],look:n.look,parentId:i?t.parent:void 0};e.push(r)}for(let t of this.classes.values()){let r=i?t.parent:this.resolveExplicitAncestor(t.parent),a={...t,type:void 0,isGroup:!1,parentId:r,look:n.look};e.push(a)}for(let r of this.notes.values()){let a=i?r.parent:this.resolveExplicitAncestor(r.parent),o={id:r.id,label:r.text,isGroup:!1,shape:`note`,padding:n.class.padding??6,cssStyles:[`text-align: left`,`white-space: nowrap`,`fill: ${n.themeVariables.noteBkgColor}`,`stroke: ${n.themeVariables.noteBorderColor}`],look:n.look,parentId:a,labelType:`markdown`};e.push(o);let s=this.classes.get(r.class)?.id;if(s){let e={id:`edgeNote${r.index}`,start:r.id,end:s,type:`normal`,thickness:`normal`,classes:`relation`,arrowTypeStart:`none`,arrowTypeEnd:`none`,arrowheadStyle:``,labelStyle:[``],style:[`fill: none`],pattern:`dotted`,look:n.look};t.push(e)}}for(let t of this.interfaces){let r={id:t.id,label:t.label,isGroup:!1,shape:`rect`,cssStyles:[`opacity: 0;`],look:n.look};e.push(r)}let a=0;for(let e of this.relations){a++;let r={id:h(e.id1,e.id2,{prefix:`id`,counter:a}),start:e.id1,end:e.id2,type:`normal`,label:e.title,labelpos:`c`,thickness:`normal`,classes:`relation`,arrowTypeStart:this.getArrowMarker(e.relation.type1),arrowTypeEnd:this.getArrowMarker(e.relation.type2),startLabelRight:e.relationTitle1===`none`?``:e.relationTitle1,endLabelLeft:e.relationTitle2===`none`?``:e.relationTitle2,arrowheadStyle:``,labelStyle:[`display: inline-block`],style:e.style||``,pattern:e.relation.lineType==1?`dashed`:`solid`,look:n.look,labelType:`markdown`};t.push(r)}return{nodes:e,edges:t,other:{},config:n,direction:this.getDirection()}}},j=e(e=>`g.classGroup text { + fill: ${e.nodeBorder||e.classText}; + stroke: none; + font-family: ${e.fontFamily}; + font-size: 10px; + + .title { + font-weight: bolder; + } + +} + + .cluster-label text { + fill: ${e.titleColor}; + } + .cluster-label span { + color: ${e.titleColor}; + } + .cluster-label span p { + background-color: transparent; + } + + .cluster rect { + fill: ${e.clusterBkg}; + stroke: ${e.clusterBorder}; + stroke-width: 1px; + } + + .cluster text { + fill: ${e.titleColor}; + } + + .cluster span { + color: ${e.titleColor}; + } + +.nodeLabel, .edgeLabel { + color: ${e.classText}; +} + +.noteLabel .nodeLabel, .noteLabel .edgeLabel { + color: ${e.noteTextColor}; +} +.edgeLabel .label rect { + fill: ${e.mainBkg}; +} +.label text { + fill: ${e.classText}; +} + +.labelBkg { + background: ${e.mainBkg}; +} +.edgeLabel .label span { + background: ${e.mainBkg}; +} + +.classTitle { + font-weight: bolder; +} +.node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; + stroke-width: ${e.strokeWidth}; + } + + +.divider { + stroke: ${e.nodeBorder}; + stroke-width: 1; +} + +g.clickable { + cursor: pointer; +} + +g.classGroup rect { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; +} + +g.classGroup line { + stroke: ${e.nodeBorder}; + stroke-width: 1; +} + +.classLabel .box { + stroke: none; + stroke-width: 0; + fill: ${e.mainBkg}; + opacity: 0.5; +} + +.classLabel .label { + fill: ${e.nodeBorder}; + font-size: 10px; +} + +.relation { + stroke: ${e.lineColor}; + stroke-width: ${e.strokeWidth}; + fill: none; +} + +.dashed-line{ + stroke-dasharray: 3; +} + +.dotted-line{ + stroke-dasharray: 1 2; +} + +[id$="-compositionStart"], .composition { + fill: ${e.lineColor} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-compositionEnd"], .composition { + fill: ${e.lineColor} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-dependencyStart"], .dependency { + fill: ${e.lineColor} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-dependencyEnd"], .dependency { + fill: ${e.lineColor} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-extensionStart"], .extension { + fill: transparent !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-extensionEnd"], .extension { + fill: transparent !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-aggregationStart"], .aggregation { + fill: transparent !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-aggregationEnd"], .aggregation { + fill: transparent !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-lollipopStart"], .lollipop { + fill: ${e.mainBkg} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-lollipopEnd"], .lollipop { + fill: ${e.mainBkg} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +.edgeTerminals { + font-size: 11px; + line-height: initial; +} + +.classTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.textColor}; +} + +.edgeLabel[data-look="neo"] { + background-color: ${e.edgeLabelBackground}; + p { + background-color: ${e.edgeLabelBackground}; + } + rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; +} + ${y()} +`,`getStyles`),M={getClasses:e(function(e,t){return t.db.getClasses()},`getClasses`),draw:e(async function(e,t,i,a){n.info(`REF0:`),n.info(`Drawing class diagram (v3)`,t);let{securityLevel:o,state:s,layout:c}=r();a.db.setDiagramId(t);let l=a.db.getData(),u=x(t,o);l.type=a.type,l.layoutAlgorithm=v(c),l.nodeSpacing=s?.nodeSpacing||50,l.rankSpacing=s?.rankSpacing||50,l.markers=[`aggregation`,`extension`,`composition`,`dependency`,`lollipop`],l.diagramId=t,await _(l,u),g.insertTitle(u,`classDiagramTitleText`,s?.titleTopMargin??25,a.db.getDiagramTitle()),S(u,8,`classDiagram`,s?.useMaxWidth??!0)},`draw`),getDir:e((e,t=`TB`)=>{if(!e.doc)return t;let n=t;for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`)};export{j as i,w as n,M as r,A as t}; \ No newline at end of file diff --git a/docs/dist/assets/chunk-XAKTCX7R-ChjAedyW.js b/docs/dist/assets/chunk-XAKTCX7R-ChjAedyW.js new file mode 100644 index 00000000..0f2f3b17 --- /dev/null +++ b/docs/dist/assets/chunk-XAKTCX7R-ChjAedyW.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";var t=typeof global==`object`&&global&&global.Object===Object&&global,n=typeof self==`object`&&self&&self.Object===Object&&self,r=t||n||Function(`return this`)(),i=r.Symbol,a=Object.prototype,o=a.hasOwnProperty,s=a.toString,c=i?i.toStringTag:void 0;function l(e){var t=o.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch{}var i=s.call(e);return r&&(t?e[c]=n:delete e[c]),i}e(l,`getRawTag`);var u=l,d=Object.prototype.toString;function f(e){return d.call(e)}e(f,`objectToString`);var p=f,m=`[object Null]`,h=`[object Undefined]`,g=i?i.toStringTag:void 0;function ee(e){return e==null?e===void 0?h:m:g&&g in Object(e)?u(e):p(e)}e(ee,`baseGetTag`);var _=ee;function v(e){return typeof e==`object`&&!!e}e(v,`isObjectLike`);var y=v,te=`[object Symbol]`;function ne(e){return typeof e==`symbol`||y(e)&&_(e)==te}e(ne,`isSymbol`);var b=ne;function re(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n0){if(++t>=ct)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}e(dt,`shortOut`);var ft=dt;function pt(e){return function(){return e}}e(pt,`constant`);var O=pt,mt=(function(){try{var e=D(Object,`defineProperty`);return e({},``,{}),e}catch{}})(),ht=ft(mt?function(e,t){return mt(e,`toString`,{configurable:!0,enumerable:!1,value:O(t),writable:!0})}:w);function gt(e,t){for(var n=-1,r=e==null?0:e.length;++n-1}e(Et,`arrayIncludes`);var Dt=Et,Ot=9007199254740991,kt=/^(?:0|[1-9]\d*)$/;function At(e,t){var n=typeof e;return t??=Ot,!!t&&(n==`number`||n!=`symbol`&&kt.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=Gt}e(Kt,`isLength`);var qt=Kt;function Jt(e){return e!=null&&qt(e.length)&&!T(e)}e(Jt,`isArrayLike`);var A=Jt;function Yt(e,t,n){if(!C(n))return!1;var r=typeof t;return(r==`number`?A(n)&&jt(t,n.length):r==`string`&&t in n)?k(n[t],e):!1}e(Yt,`isIterateeCall`);var Xt=Yt;function Zt(e){return Wt(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&Xt(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r-1}e(Rr,`listCacheHas`);var zr=Rr;function Br(e,t){var n=this.__data__,r=Mr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}e(Br,`listCacheSet`);var Vr=Br;function B(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(s)?t>1?ki(s,t-1,n,r,i):Ti(i,s):r||(i[i.length]=s)}return i}e(ki,`baseFlatten`);var Ai=ki;function ji(e){return e!=null&&e.length?Ai(e,1):[]}e(ji,`flatten`);var Mi=ji;function Ni(e){return ht(Ht(e,void 0,Mi),e+``)}e(Ni,`flatRest`);var Pi=Ni,Fi=Qn(Object.getPrototypeOf,Object),Ii=`[object Object]`,Li=Function.prototype,Ri=Object.prototype,zi=Li.toString,Bi=Ri.hasOwnProperty,Vi=zi.call(Object);function Hi(e){if(!y(e)||_(e)!=Ii)return!1;var t=Fi(e);if(t===null)return!0;var n=Bi.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&zi.call(n)==Vi}e(Hi,`isPlainObject`);var Ui=Hi,Wi=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function Gi(e){return Wi.test(e)}e(Gi,`hasUnicode`);var Ki=Gi;function qi(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++is))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&Bs?new Ps:void 0;for(a.set(e,t),a.set(t,e);++d2?t[2]:void 0;for(i&&Xt(t[0],t[1],i)&&(r=1);++n-1?a[o?n[s]:s]:void 0}}e(jl,`createFind`);var Ml=jl,Nl=Math.max;function Pl(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Oe(n);return i<0&&(i=Nl(r+i,0)),yt(e,Y(t,3),i)}e(Pl,`findIndex`);var Fl=Ml(Pl);function Il(e,t){var n=-1,r=A(e)?Array(e.length):[];return rl(e,function(e,i,a){r[++n]=t(e,i,a)}),r}e(Il,`baseMap`);var Ll=Il;function Rl(e,t){return(S(e)?x:Ll)(e,Y(t,3))}e(Rl,`map`);var zl=Rl;function Bl(e,t){return e==null?e:$c(e,Tl(t),L)}e(Bl,`forIn`);var Vl=Bl;function Hl(e,t){return e&&tl(e,Tl(t))}e(Hl,`forOwn`);var Ul=Hl;function Wl(e,t){return e>t}e(Wl,`baseGt`);var Gl=Wl,Kl=Object.prototype.hasOwnProperty;function ql(e,t){return e!=null&&Kl.call(e,t)}e(ql,`baseHas`);var Jl=ql;function Yl(e,t){return e!=null&&Rc(e,t,Jl)}e(Yl,`has`);var Xl=Yl,Zl=`[object String]`;function Ql(e){return typeof e==`string`||!S(e)&&y(e)&&_(e)==Zl}e(Ql,`isString`);var $l=Ql;function eu(e,t){return x(t,function(t){return e[t]})}e(eu,`baseValues`);var tu=eu;function nu(e){return e==null?[]:tu(e,I(e))}e(nu,`values`);var ru=nu,iu=`[object Map]`,au=`[object Set]`,ou=Object.prototype.hasOwnProperty;function su(e){if(e==null)return!0;if(A(e)&&(S(e)||typeof e==`string`||typeof e.splice==`function`||M(e)||qn(e)||j(e)))return!e.length;var t=q(e);if(t==iu||t==au)return!e.size;if(tn(e))return!nr(e).length;for(var n in e)if(ou.call(e,n))return!1;return!0}e(su,`isEmpty`);var cu=su;function lu(e){return e===void 0}e(lu,`isUndefined`);var Z=lu;function uu(e,t){return et||a&&o&&c&&!s&&!l||r&&o&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}e(ju,`compareMultiple`);var Mu=ju;function Nu(e,t,n){t=t.length?x(t,function(e){return S(e)?function(t){return xi(t,e.length===1?e[0]:e)}:e}):[w];var r=-1;return t=x(t,Un(Y)),Ou(Ll(e,function(e,n,i){return{criteria:x(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return Mu(e,t,n)})}e(Nu,`baseOrderBy`);var Pu=Nu,Fu=Kc(`length`),Iu=`\\ud800-\\udfff`,Lu=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,Ru=`\\ufe0e\\ufe0f`,zu=`[`+Iu+`]`,Bu=`[`+Lu+`]`,Vu=`\\ud83c[\\udffb-\\udfff]`,Hu=`(?:`+Bu+`|`+Vu+`)`,Uu=`[^`+Iu+`]`,Wu=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Gu=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Ku=`\\u200d`,qu=Hu+`?`,Ju=`[`+Ru+`]?`,Yu=`(?:`+Ku+`(?:`+[Uu,Wu,Gu].join(`|`)+`)`+Ju+qu+`)*`,Xu=Ju+qu+Yu,Zu=`(?:`+[Uu+Bu+`?`,Bu,Wu,Gu,zu].join(`|`)+`)`,Qu=RegExp(Vu+`(?=`+Vu+`)|`+Zu+Xu,`g`);function $u(e){for(var t=Qu.lastIndex=0;Qu.test(e);)++t;return t}e($u,`unicodeSize`);var ed=$u;function td(e){return Ki(e)?ed(e):Fu(e)}e(td,`stringSize`);var nd=td;function rd(e,t){return Eu(e,t,function(t,n){return Bc(e,n)})}e(rd,`basePick`);var id=rd,ad=Pi(function(e,t){return e==null?{}:id(e,t)}),od=Math.ceil,sd=Math.max;function cd(e,t,n,r){for(var i=-1,a=sd(od((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o}e(cd,`baseRange`);var ld=cd;function ud(e){return function(t,n,r){return r&&typeof r!=`number`&&Xt(t,n,r)&&(n=r=void 0),t=Ee(t),n===void 0?(n=t,t=0):n=Ee(n),r=r===void 0?t1&&Xt(e,t[0],t[1])?t=[]:n>2&&Xt(t[0],t[1],t[2])&&(t=[t[0]]),Pu(e,Ai(t,1),[])}),xd=G&&1/Ks(new G([,-0]))[1]==1/0?function(e){return new G(e)}:at,Sd=200;function Cd(e,t,n){var r=-1,i=Dt,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=xl;else if(a>=Sd){var l=t?null:xd(e);if(l)return Ks(l);o=!1,i=Rs,c=new Ps}else c=t?[]:s;outer:for(;++r1?r.setNode(e,t):r.setNode(e)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=Q,this._children[e]={},this._children[Q][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var n=e(e=>this.removeEdge(this._edgeObjs[e]),`removeEdge`);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],X(this.children(t),e=>{this.setParent(e)}),delete this._children[t]),X(I(this._in[t]),n),delete this._in[t],delete this._preds[t],X(I(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw Error(`Cannot set parent in a non-compound graph`);if(Z(t))t=Q;else{t+=``;for(var n=t;!Z(n);n=this.parent(n))if(n===e)throw Error(`Setting `+t+` as parent of `+e+` would create a cycle`);this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==Q)return t}}children(e){if(Z(e)&&(e=Q),this._isCompound){var t=this._children[e];if(t)return I(t)}else if(e===Q)return this.nodes();else if(this.hasNode(e))return[]}predecessors(e){var t=this._preds[e];if(t)return I(t)}successors(e){var t=this._sucs[e];if(t)return I(t)}neighbors(e){var t=this.predecessors(e);if(t)return Td(t,this.successors(e))}isLeaf(e){return(this.isDirected()?this.successors(e):this.neighbors(e)).length===0}filterNodes(t){var n=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});n.setGraph(this.graph());var r=this;X(this._nodes,function(e,r){t(r)&&n.setNode(r,e)}),X(this._edgeObjs,function(e){n.hasNode(e.v)&&n.hasNode(e.w)&&n.setEdge(e,r.edge(e))});var i={};function a(e){var t=r.parent(e);return t===void 0||n.hasNode(t)?(i[e]=t,t):t in i?i[t]:a(t)}return e(a,`findParent`),this._isCompound&&X(n.nodes(),function(e){n.setParent(e,a(e))}),n}setDefaultEdgeLabel(e){return T(e)||(e=O(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return ru(this._edgeObjs)}setPath(e,t){var n=this,r=arguments;return hd(e,function(e,i){return r.length>1?n.setEdge(e,i,t):n.setEdge(e,i),i}),this}setEdge(){var e,t,n,r,i=!1,a=arguments[0];typeof a==`object`&&a&&`v`in a?(e=a.v,t=a.w,n=a.name,arguments.length===2&&(r=arguments[1],i=!0)):(e=a,t=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),e=``+e,t=``+t,Z(n)||(n=``+n);var o=$(this._isDirected,e,t,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,o))return i&&(this._edgeLabels[o]=r),this;if(!Z(n)&&!this._isMultigraph)throw Error(`Cannot set a named edge when isMultigraph = false`);this.setNode(e),this.setNode(t),this._edgeLabels[o]=i?r:this._defaultEdgeLabelFn(e,t,n);var s=Rd(this._isDirected,e,t,n);return e=s.v,t=s.w,Object.freeze(s),this._edgeObjs[o]=s,Id(this._preds[t],e),Id(this._sucs[e],t),this._in[t][o]=s,this._out[e][o]=s,this._edgeCount++,this}edge(e,t,n){var r=arguments.length===1?zd(this._isDirected,arguments[0]):$(this._isDirected,e,t,n);return this._edgeLabels[r]}hasEdge(e,t,n){var r=arguments.length===1?zd(this._isDirected,arguments[0]):$(this._isDirected,e,t,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,r)}removeEdge(e,t,n){var r=arguments.length===1?zd(this._isDirected,arguments[0]):$(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],Ld(this._preds[t],e),Ld(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this}inEdges(e,t){var n=this._in[e];if(n){var r=ru(n);return t?Al(r,function(e){return e.v===t}):r}}outEdges(e,t){var n=this._out[e];if(n){var r=ru(n);return t?Al(r,function(e){return e.w===t}):r}}nodeEdges(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}};Fd.prototype._nodeCount=0,Fd.prototype._edgeCount=0;function Id(e,t){e[t]?e[t]++:e[t]=1}e(Id,`incrementOrInitEntry`);function Ld(e,t){--e[t]||delete e[t]}e(Ld,`decrementOrRemoveEntry`);function $(e,t,n,r){var i=``+t,a=``+n;if(!e&&i>a){var o=i;i=a,a=o}return i+Pd+a+Pd+(Z(r)?Nd:r)}e($,`edgeArgsToId`);function Rd(e,t,n,r){var i=``+t,a=``+n;if(!e&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return r&&(s.name=r),s}e(Rd,`edgeArgsToObj`);function zd(e,t){return $(e,t.v,t.w,t.name)}e(zd,`edgeObjToId`);export{Md as A,ad as C,bd as D,yd as E,Od as O,il as S,hd as T,zl as _,sl as a,Su as b,Mi as c,Ul as d,Xl as f,pu as g,Cl as h,O as i,ru as k,X as l,Z as m,Ds as n,Al as o,S as p,Cs as r,Fl as s,Fd as t,Vl as u,_u as v,dd as w,bu as x,vu as y}; \ No newline at end of file diff --git a/docs/dist/assets/chunk-YSJUE5HW-eH4JtoEG.js b/docs/dist/assets/chunk-YSJUE5HW-eH4JtoEG.js new file mode 100644 index 00000000..36650f75 --- /dev/null +++ b/docs/dist/assets/chunk-YSJUE5HW-eH4JtoEG.js @@ -0,0 +1,70 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{I as t,T as n}from"./chunk-V7P66DNM-D246Sefn.js";import{B as r,G as i,M as a,S as o,c as s}from"./chunk-Q52JI7PB-BeSPinqD.js";import{o as c}from"./chunk-BSZA5ISF-LqNHBHyp.js";var l=Object.freeze({left:0,top:0,width:16,height:16}),u=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),d=Object.freeze({...l,...u}),f=Object.freeze({...d,body:``,hidden:!1}),p=Object.freeze({width:null,height:null}),m=Object.freeze({...p,...u}),h=e((e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!g(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!g(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!g(e,n)?null:e}return null},`stringToIcon`),g=e((e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1,`validateIconName`);function _(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}e(_,`mergeIconTransformations`);function ee(e,t){let n=_(e,t);for(let r in f)r in u?r in e&&!(r in n)&&(n[r]=u[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}e(ee,`mergeIconData`);function te(t,n){let r=t.icons,i=t.aliases||Object.create(null),a=Object.create(null);function o(e){if(r[e])return a[e]=[];if(!(e in a)){a[e]=null;let t=i[e]&&i[e].parent,n=t&&o(t);n&&(a[e]=[t].concat(n))}return a[e]}return e(o,`resolve`),(n||Object.keys(r).concat(Object.keys(i))).forEach(o),a}e(te,`getIconsTree`);function v(t,n,r){let i=t.icons,a=t.aliases||Object.create(null),o={};function s(e){o=ee(i[e]||a[e],o)}return e(s,`parse`),s(n),r.forEach(s),ee(t,o)}e(v,`internalGetIconData`);function ne(e,t){if(e.icons[t])return v(e,t,[]);let n=te(e,[t])[t];return n?v(e,t,n):null}e(ne,`getIconData`);var re=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ie=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function y(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(re);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=ie.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}e(y,`calculateSize`);function ae(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(``,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}e(ae,`splitSVGDefs`);function oe(e,t){return e?``+e+``+t:t}e(oe,`mergeDefsAndContent`);function se(e,t,n){let r=ae(e);return oe(r.defs,t+r.content+n)}e(se,`wrapSVGContent`);var ce=e(e=>e===`unset`||e===`undefined`||e===`none`,`isUnsetKeyword`);function le(t,n){let r={...d,...t},i={...m,...n},a={left:r.left,top:r.top,width:r.width,height:r.height},o=r.body;[r,i].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,i=e.rotate;n?r?i+=2:(t.push(`translate(`+(a.width+a.left).toString()+` `+(0-a.top).toString()+`)`),t.push(`scale(-1 1)`),a.top=a.left=0):r&&(t.push(`translate(`+(0-a.left).toString()+` `+(a.height+a.top).toString()+`)`),t.push(`scale(1 -1)`),a.top=a.left=0);let s;switch(i<0&&(i-=Math.floor(i/4)*4),i%=4,i){case 1:s=a.height/2+a.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(a.width/2+a.left).toString()+` `+(a.height/2+a.top).toString()+`)`);break;case 3:s=a.width/2+a.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`);break}i%2==1&&(a.left!==a.top&&(s=a.left,a.left=a.top,a.top=s),a.width!==a.height&&(s=a.width,a.width=a.height,a.height=s)),t.length&&(o=se(o,``,``))});let s=i.width,c=i.height,l=a.width,u=a.height,f,p;s===null?(p=c===null?`1em`:c===`auto`?u:c,f=y(p,l/u)):(f=s===`auto`?l:s,p=c===null?y(f,u/l):c===`auto`?u:c);let h={},g=e((e,t)=>{ce(t)||(h[e]=t.toString())},`setAttr`);g(`width`,f),g(`height`,p);let _=[a.left,a.top,l,u];return h.viewBox=_.join(` `),{attributes:h,viewBox:_,body:o}}e(le,`iconToSVG`);var ue=/\sid="(\S+)"/g,de=`IconifyId`+Date.now().toString(16)+(Math.random()*16777216|0).toString(16),fe=0;function pe(e,t=de){let n=[],r;for(;r=ue.exec(e);)n.push(r[1]);if(!n.length)return e;let i=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(n=>{let r=typeof t==`function`?t(n):t+(fe++).toString(),a=n.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+a+`)([")]|\\.[a-z])`,`g`),`$1`+r+i+`$3`)}),e=e.replace(new RegExp(i,`g`),``),e}e(pe,`replaceIDs`);function me(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return``+e+``}e(me,`iconToHTML`);var he={body:`?`,height:80,width:80},ge=new Map,_e=new Map,ve=e(e=>{for(let t of e){if(!t.name)throw Error(`Invalid icon loader. Must have a "name" property with non-empty string value.`);if(n.debug(`Registering icon pack:`,t.name),`loader`in t)_e.set(t.name,t.loader);else if(`icons`in t)ge.set(t.name,t.icons);else throw n.error(`Invalid icon loader:`,t),Error(`Invalid icon loader. Must have either "icons" or "loader" property.`)}},`registerIconPacks`),ye=e(async(e,t)=>{let r=h(e,!0,t!==void 0);if(!r)throw Error(`Invalid icon name: ${e}`);let i=r.prefix||t;if(!i)throw Error(`Icon name must contain a prefix: ${e}`);let a=ge.get(i);if(!a){let e=_e.get(i);if(!e)throw Error(`Icon set not found: ${r.prefix}`);try{a={...await e(),prefix:i},ge.set(i,a)}catch(e){throw n.error(e),Error(`Failed to load icon set: ${r.prefix}`)}}let o=ne(a,r.name);if(!o)throw Error(`Icon not found: ${e}`);return o},`getRegisteredIconData`),be=e(async e=>{try{return await ye(e),!0}catch{return!1}},`isIconAvailable`),xe=e(async(e,t,r)=>{let a;try{a=await ye(e,t?.fallbackPrefix)}catch(e){n.error(e),a=he}let s=le(a,t);return i(me(pe(s.body),{...s.attributes,...r}),o())},`getIconSVG`);function b(e){var t=[...arguments].slice(1),n=Array.from(typeof e==`string`?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,``);var r=n.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){return e.match(/[\t ]/g)?.length??0})):e},[]);if(r.length){var i=RegExp(` +[ ]{`+Math.min.apply(Math,r)+`}`,`g`);n=n.map(function(e){return e.replace(i,` +`)})}n[0]=n[0].replace(/^\r?\n/,``);var a=n[0];return t.forEach(function(e,t){var r=a.match(/(?:^|\n)( *)$/),i=r?r[1]:``,o=e;typeof e==`string`&&e.includes(` +`)&&(o=String(e).split(` +`).map(function(e,t){return t===0?e:``+i+e}).join(` +`)),a+=o+n[t+1]}),a}e(b,`dedent`);function x(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}e(x,`L`);var S=x();function C(e){S=e}e(C,`G`);var w={exec:e(()=>null,`exec`)};function T(t,n=``){let r=typeof t==`string`?t:t.source,i={replace:e((e,t)=>{let n=typeof t==`string`?t:t.source;return n=n.replace(E.caret,`$1`),r=r.replace(e,n),i},`replace`),getRegex:e(()=>new RegExp(r,n),`getRegex`)};return i}e(T,`h`);var E={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^
/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e(e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),`listItemRegex`),nextBulletRegex:e(e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),`nextBulletRegex`),hrRegex:e(e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),`hrRegex`),fencesBeginRegex:e(e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),`fencesBeginRegex`),headingBeginRegex:e(e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),`headingBeginRegex`),htmlBeginRegex:e(e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`),`htmlBeginRegex`)},Se=/^(?:[ \t]*(?:\n|$))+/,Ce=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,we=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,D=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Te=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ee=/(?:[*+-]|\d{1,9}[.)])/,De=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Oe=T(De).replace(/bull/g,Ee).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),ke=T(De).replace(/bull/g,Ee).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),O=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ae=/^[^\n]+/,k=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,je=T(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,k).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Me=T(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ee).getRegex(),A=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,Ne=/|$))/,Pe=T(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,Ne).replace(`tag`,A).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Fe=T(O).replace(`hr`,D).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,A).getRegex(),j={blockquote:T(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,Fe).getRegex(),code:Ce,def:je,fences:we,heading:Te,hr:D,html:Pe,lheading:Oe,list:Me,newline:Se,paragraph:Fe,table:w,text:Ae},Ie=T(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,D).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,A).getRegex(),Le={...j,lheading:ke,table:Ie,paragraph:T(O).replace(`hr`,D).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Ie).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,A).getRegex()},Re={...j,html:T(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Ne).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:w,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:T(O).replace(`hr`,D).replace(`heading`,` *#{1,6} *[^ +]`).replace(`lheading`,Oe).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},ze=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Be=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ve=/^( {2,}|\\)\n(?!\s*$)/,He=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,Ye=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Xe=T(Ye,`u`).replace(/punct/g,M).getRegex(),Ze=T(Ye,`u`).replace(/punct/g,Ge).getRegex(),Qe=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,$e=T(Qe,`gu`).replace(/notPunctSpace/g,Ue).replace(/punctSpace/g,N).replace(/punct/g,M).getRegex(),et=T(Qe,`gu`).replace(/notPunctSpace/g,qe).replace(/punctSpace/g,Ke).replace(/punct/g,Ge).getRegex(),tt=T(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,Ue).replace(/punctSpace/g,N).replace(/punct/g,M).getRegex(),nt=T(/\\(punct)/,`gu`).replace(/punct/g,M).getRegex(),rt=T(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),it=T(Ne).replace(`(?:-->|$)`,`-->`).getRegex(),at=T(`^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^`).replace(`comment`,it).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),P=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,ot=T(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace(`label`,P).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),st=T(/^!?\[(label)\]\[(ref)\]/).replace(`label`,P).replace(`ref`,k).getRegex(),ct=T(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,k).getRegex(),F={_backpedal:w,anyPunctuation:nt,autolink:rt,blockSkip:Je,br:Ve,code:Be,del:w,emStrongLDelim:Xe,emStrongRDelimAst:$e,emStrongRDelimUnd:tt,escape:ze,link:ot,nolink:ct,punctuation:We,reflink:st,reflinkSearch:T(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,st).replace(`nolink`,ct).getRegex(),tag:at,text:He,url:w},lt={...F,link:T(/^!?\[(label)\]\((.*?)\)/).replace(`label`,P).getRegex(),reflink:T(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,P).getRegex()},ut={...F,emStrongRDelimAst:et,emStrongLDelim:Ze,url:T(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,`i`).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":`>`,'"':`"`,"'":`'`},pt=e(e=>ft[e],`ke`);function R(e,t){if(t){if(E.escapeTest.test(e))return e.replace(E.escapeReplace,pt)}else if(E.escapeTestNoEncode.test(e))return e.replace(E.escapeReplaceNoEncode,pt);return e}e(R,`w`);function z(e){try{e=encodeURI(e).replace(E.percentDecode,`%`)}catch{return null}return e}e(z,`J`);function B(e,t){let n=e.replace(E.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(E.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length0?-2:-1}e(mt,`ge`);function H(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}e(H,`fe`);function ht(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(` +`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(` +`)}e(ht,`Je`);var U=class{static{e(this,`y`)}options;rules;lexer;constructor(e){this.options=e||S}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:V(e,` +`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=ht(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=V(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:V(t[0],` +`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=V(t[0],` +`).split(` +`),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=t[2].split(` +`,1)[0].replace(this.rules.other.listReplaceTabs,e=>` `.repeat(3*e.length)),l=e.split(` +`,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=t[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+` +`,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d);for(;e;){let f=e.split(` +`,1)[0],p;if(l=f,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),p=l):p=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||t.test(l)||n.test(l))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=` +`+p.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=` +`+l}!u&&!l.trim()&&(u=!0),r+=f+` +`,e=e.substring(f.length+1),c=p.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0));let f=null,p;this.options.gfm&&(f=this.rules.other.listIsTask.exec(s),f&&(p=f[0]!==`[ ] `,s=s.replace(this.rules.other.listReplaceTask,``))),i.items.push({type:`list_item`,raw:r,task:!!f,checked:p,loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e=0;ee.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}if(i.loose)for(let e=0;e({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:`heading`,raw:t[0],depth:t[2].charAt(0)===`=`?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===` +`?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=V(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=mt(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),H(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return H(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}else if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:`del`,raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},W=class t{static{e(this,`l`)}tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||S,this.options.tokenizer=this.options.tokenizer||new U,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:E,block:I.normal,inline:L.normal};this.options.pedantic?(t.block=I.pedantic,t.inline=L.pedantic):this.options.gfm&&(t.block=I.gfm,this.options.breaks?t.inline=L.breaks:t.inline=L.gfm),this.tokenizer.rules=t}static get rules(){return{block:I,inline:L}}static lex(e,n){return new t(n).lex(e)}static lexInline(e,n){return new t(n).inlineTokens(e)}lex(e){e=e.replace(E.carriageReturn,` +`),this.blockTokens(e,this.tokens);for(let e=0;e(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);r.raw.length===1&&n!==void 0?n.raw+=` +`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(` +`)?``:` +`)+r.raw,n.text+=` +`+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(` +`)?``:` +`)+r.raw,n.text+=` +`+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type===`paragraph`?(a.raw+=(a.raw.endsWith(` +`)?``:` +`)+r.raw,a.text+=` +`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(` +`)?``:` +`)+r.raw,n.text+=` +`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let i=!1,a=``;for(;e;){i||(a=``),i=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,a)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let o=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(o)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(a=r.raw.slice(-1)),i=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return t}},G=class{static{e(this,`P`)}options;parser;constructor(e){this.options=e||S}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(E.notSpaceStart)?.[0],i=e.replace(E.endingNewline,``)+` +`;return r?`
`+(n?i:R(i,!0))+`
+`:`
`+(n?i:R(i,!0))+`
+`}blockquote({tokens:e}){return`
+${this.parser.parse(e)}
+`}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`${this.parser.parseInline(e)} +`}hr(e){return`
+`}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t +`+r+` +`}listitem(e){let t=``;if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type===`paragraph`?(e.tokens[0].text=n+` `+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type===`text`&&(e.tokens[0].tokens[0].text=n+` `+R(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:`text`,raw:n+` `,text:n+` `,escaped:!0}):t+=n+` `}return t+=this.parser.parse(e.tokens,!!e.loose),`
  • ${t}
  • +`}checkbox({checked:e}){return``}paragraph({tokens:e}){return`

    ${this.parser.parseInline(e)}

    +`}table(e){let t=``,n=``;for(let t=0;t${r}`,` + +`+t+` +`+r+`
    +`}tablerow({text:e}){return` +${e} +`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+` +`}strong({tokens:e}){return`${this.parser.parseInline(e)}`}em({tokens:e}){return`${this.parser.parseInline(e)}`}codespan({text:e}){return`${R(e,!0)}`}br(e){return`
    `}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=z(e);if(i===null)return r;e=i;let a=`
    `+r+``,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=z(e);if(i===null)return R(n);e=i;let a=`${n}`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:R(e.text)}},K=class{static{e(this,`$`)}strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}},q=class t{static{e(this,`l`)}options;renderer;textRenderer;constructor(e){this.options=e||S,this.options.renderer=this.options.renderer||new G,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new K}static parse(e,n){return new t(n).parse(e)}static parseInline(e,n){return new t(n).parseInline(e)}parse(e,t=!0){let n=``;for(let r=0;r{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new G(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new U(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new J;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];J.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&J.passThroughHooksRespectAsync.has(n))return Promise.resolve(i.call(t,e)).then(e=>a.call(t,e));let r=i.call(t,e);return a.call(t,r)}:t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return W.lex(e,t??this.defaults)}parser(e,t){return q.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));i.hooks&&(i.hooks.options=i,i.hooks.block=e);let o=i.hooks?i.hooks.provideLexer():e?W.lex:W.lexInline,s=i.hooks?i.hooks.provideParser():e?q.parse:q.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then(e=>o(e,i)).then(e=>i.hooks?i.hooks.processAllTokens(e):e).then(e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then(()=>e):e).then(e=>s(e,i)).then(e=>i.hooks?i.hooks.postprocess(e):e).catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let e=o(t,i);i.hooks&&(e=i.hooks.processAllTokens(e)),i.walkTokens&&this.walkTokens(e,i.walkTokens);let n=s(e,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=` +Please report this to https://github.com/markedjs/marked.`,e){let e=`

    An error occurred:

    `+R(n.message+``,!0)+`
    `;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function X(e,t){return Y.parse(e,t)}e(X,`d`),X.options=X.setOptions=function(e){return Y.setOptions(e),X.defaults=Y.defaults,C(X.defaults),X},X.getDefaults=x,X.defaults=S,X.use=function(...e){return Y.use(...e),X.defaults=Y.defaults,C(X.defaults),X},X.walkTokens=function(e,t){return Y.walkTokens(e,t)},X.parseInline=Y.parseInline,X.Parser=q,X.parser=q.parse,X.Renderer=G,X.TextRenderer=K,X.Lexer=W,X.lexer=W.lex,X.Tokenizer=U,X.Hooks=J,X.parse=X,X.options,X.setOptions,X.use,X.walkTokens,X.parseInline,q.parse,W.lex;function gt(e,{markdownAutoWrap:t}){return b(e.replace(//g,` +`).replace(/\n{2,}/g,` +`))}e(gt,`preprocessMarkdown`);function _t(e){return e.split(/\\n|\n|/gi).map(e=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(e=>({content:e,type:`normal`}))??[])}e(_t,`nonMarkdownToLines`);function vt(t,n={}){let r=gt(t,n),i=X.lexer(r),a=[[]],o=0;function s(e,t=`normal`){e.type===`text`?e.text.split(` +`).forEach((e,n)=>{n!==0&&(o++,a.push([])),e.split(` `).forEach(e=>{e=e.replace(/'/g,`'`),e&&a[o].push({content:e,type:t})})}):e.type===`strong`||e.type===`em`?e.tokens.forEach(t=>{s(t,e.type)}):e.type===`html`&&a[o].push({content:e.text,type:`normal`})}return e(s,`processNode`),i.forEach(e=>{e.type===`paragraph`?e.tokens?.forEach(e=>{s(e)}):e.type===`html`?a[o].push({content:e.text,type:`normal`}):a[o].push({content:e.raw,type:`normal`})}),a}e(vt,`markdownToLines`);function yt(e){return e?`

    ${e.replace(/\\n|\n/g,`
    `)}

    `:``}e(yt,`nonMarkdownToHTML`);function bt(t,{markdownAutoWrap:r}={}){let i=X.lexer(t);function a(e){return e.type===`text`?r===!1?e.text.replace(/\n */g,`
    `).replace(/ /g,` `):e.text.replace(/\n */g,`
    `):e.type===`strong`?`${e.tokens?.map(a).join(``)}`:e.type===`em`?`${e.tokens?.map(a).join(``)}`:e.type===`paragraph`?`

    ${e.tokens?.map(a).join(``)}

    `:e.type===`space`?``:e.type===`html`?`${e.text}`:e.type===`escape`?e.text:(n.warn(`Unsupported markdown: ${e.type}`),e.raw)}return e(a,`output`),i.map(a).join(``)}e(bt,`markdownToHTML`);function xt(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(e=>e.segment):[...e]}e(xt,`splitTextToChars`);function St(e,t){return Ct(e,[],xt(t.content),t.type)}e(St,`splitWordToFitWidth`);function Ct(e,t,n,r){if(n.length===0)return[{content:t.join(``),type:r},{content:``,type:r}];let[i,...a]=n,o=[...t,i];return e([{content:o.join(``),type:r}])?Ct(e,o,a,r):(t.length===0&&i&&(t.push(i),n.shift()),[{content:t.join(``),type:r},{content:n.join(``),type:r}])}e(Ct,`splitWordToFitWidthRecursion`);function wt(e,t){if(e.some(({content:e})=>e.includes(` +`)))throw Error(`splitLineToFitWidth does not support newlines in the line`);return Z(e,t)}e(wt,`splitLineToFitWidth`);function Z(e,t,n=[],r=[]){if(e.length===0)return r.length>0&&n.push(r),n.length>0?n:[];let i=``;e[0].content===` `&&(i=` `,e.shift());let a=e.shift()??{content:` `,type:`normal`},o=[...r];if(i!==``&&o.push({content:i,type:`normal`}),o.push(a),t(o))return Z(e,t,n,o);if(r.length>0)n.push(r),e.unshift(a);else if(a.content){let[r,i]=St(t,a);n.push([r]),i.content&&e.unshift(i)}return Z(e,t,n)}e(Z,`splitLineToFitWidthRecursion`);function Tt(e,t){t&&e.attr(`style`,t)}e(Tt,`applyStyle`);var Et=16384;async function Dt(e,t,n,c,l=!1,u=o()){let d=e.append(`foreignObject`);d.attr(`width`,`${Math.min(10*n,Et)}px`),d.attr(`height`,`${Math.min(10*n,Et)}px`);let f=d.append(`xhtml:div`),p=a(t.label)?await r(t.label.replace(s.lineBreakRegex,` +`),u):i(t.label,u),m=t.isNode?`nodeLabel`:`edgeLabel`,h=f.append(`span`);h.html(p),Tt(h,t.labelStyle),h.attr(`class`,`${m} ${c}`),Tt(f,t.labelStyle),f.style(`display`,`table-cell`),f.style(`white-space`,`nowrap`),f.style(`line-height`,`1.5`),n!==1/0&&(f.style(`max-width`,n+`px`),f.style(`text-align`,`center`)),f.attr(`xmlns`,`http://www.w3.org/1999/xhtml`),l&&f.attr(`class`,`labelBkg`);let g=f.node().getBoundingClientRect();return g.width===n&&(f.style(`display`,`table`),f.style(`white-space`,`break-spaces`),f.style(`width`,n+`px`),g=f.node().getBoundingClientRect()),d.node()}e(Dt,`addHtmlSpan`);function Q(e,t,n,r=!1){let i=e.append(`tspan`).attr(`class`,`text-outer-tspan`).attr(`x`,0).attr(`y`,t*n-.1+`em`).attr(`dy`,n+`em`);return r&&i.attr(`text-anchor`,`middle`),i}e(Q,`createTspan`);function Ot(e,t,n){let r=e.append(`text`),i=Q(r,1,t);$(i,n);let a=i.node().getComputedTextLength();return r.remove(),a}e(Ot,`computeWidthOfText`);function kt(e,t,n){let r=e.append(`text`),i=Q(r,1,t);$(i,[{content:n,type:`normal`}]);let a=i.node()?.getBoundingClientRect();return a&&r.remove(),a}e(kt,`computeDimensionOfText`);function At(t,n,r,i=!1,a=!1){let o=1.1,s=n.append(`g`),c=s.insert(`rect`).attr(`class`,`background`).attr(`style`,`stroke: none`),l=s.append(`text`).attr(`y`,`-10.1`);a&&l.attr(`text-anchor`,`middle`);let u=0;for(let n of r){let r=e(e=>Ot(s,o,e)<=t,`checkWidth`),i=r(n)?[n]:wt(n,r);for(let e of i)$(Q(l,u,o,a),e),u++}if(i){let e=l.node().getBBox();return c.attr(`x`,e.x-2).attr(`y`,e.y-2).attr(`width`,e.width+4).attr(`height`,e.height+4),s.node()}else return l.node()}e(At,`createFormattedText`);function jt(e){return e.replace(/&(amp|lt|gt);/g,(e,t)=>{switch(t){case`amp`:return`&`;case`lt`:return`<`;case`gt`:return`>`;default:return e}})}e(jt,`decodeHTMLEntities`);function $(e,t){e.text(``),t.forEach((t,n)=>{let r=e.append(`tspan`).attr(`font-style`,t.type===`em`?`italic`:`normal`).attr(`class`,`text-inner-tspan`).attr(`font-weight`,t.type===`strong`?`bold`:`normal`);n===0?r.text(jt(t.content)):r.text(` `+jt(t.content))})}e($,`updateTextContentAndStyles`);async function Mt(e,t={}){let n=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(e,r,a)=>(n.push((async()=>{let n=`${r}:${a}`;return await be(n)?await xe(n,void 0,{class:`label-icon`}):``})()),e));let r=await Promise.all(n);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>r.shift()??``)}e(Mt,`replaceIconSubstring`);var Nt=e(async(e,r=``,{style:i=``,isTitle:o=!1,classes:s=``,useHtmlLabels:l=!0,markdown:u=!0,isNode:d=!0,width:f=200,addSvgBackground:p=!1}={},m)=>{if(n.debug(`XYZ createText`,r,i,o,s,l,d,`addSvgBackground: `,p),l){let t=await Mt(c(u?bt(r,m):yt(r)),m),n=r.replace(/\\\\/g,`\\`);return await Dt(e,{isNode:d,label:a(r)?n:t,labelStyle:i.replace(`fill:`,`color:`)},f,s,p,m)}else{let n=c(r.replace(//g,`
    `)),a=At(f,e,u?vt(n.replace(`
    `,`
    `),m):_t(n),r?p:!1,!d);if(d){/stroke:/.exec(i)&&(i=i.replace(`stroke:`,`lineColor:`));let e=i.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/color:/g,`fill:`);t(a).attr(`style`,e)}else{let e=i.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/background:/g,`fill:`);t(a).select(`rect`).attr(`style`,e.replace(/background:/g,`fill:`));let n=i.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/color:/g,`fill:`);t(a).select(`text`).attr(`style`,n)}return o?t(a).selectAll(`tspan.text-outer-tspan`).classed(`title-row`,!0):t(a).selectAll(`tspan.text-outer-tspan`).classed(`row`,!0),a}},`createText`);export{ve as a,xe as i,Nt as n,he as o,b as r,kt as t}; \ No newline at end of file diff --git a/docs/dist/assets/classDiagram-SEOGYEGJ-DtufOZgx.js b/docs/dist/assets/classDiagram-SEOGYEGJ-DtufOZgx.js new file mode 100644 index 00000000..29697fb3 --- /dev/null +++ b/docs/dist/assets/classDiagram-SEOGYEGJ-DtufOZgx.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import"./chunk-V7P66DNM-D246Sefn.js";import"./chunk-Q52JI7PB-BeSPinqD.js";import"./chunk-PLCLPJVV-rGjVDjLw.js";import"./chunk-GTILCTU2-D-9HFTK6.js";import"./chunk-7TFACZ55-BO7C1qvL.js";import"./chunk-BSZA5ISF-LqNHBHyp.js";import"./chunk-SZ5Y56Q4-Bki2Aicm.js";import"./chunk-YSJUE5HW-eH4JtoEG.js";import"./chunk-HQMLCRZ6-HgqAiHMi.js";import"./chunk-RTI7CJYH-CrTK6TD7.js";import"./chunk-TRQY2T3P-DxnI4jXA.js";import"./chunk-SNQTKDUU-CQmHT9KX.js";import"./chunk-O4A3IS3O-BIKKhWCb.js";import"./chunk-7723GVCQ-CfHgq7qP.js";import"./chunk-KEUPHFFI-DMlFzrf2.js";import{i as t,n,r,t as i}from"./chunk-VFD24L5A-DOz8HER0.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/classDiagram-v2-AOBZDD47-DtufOZgx.js b/docs/dist/assets/classDiagram-v2-AOBZDD47-DtufOZgx.js new file mode 100644 index 00000000..29697fb3 --- /dev/null +++ b/docs/dist/assets/classDiagram-v2-AOBZDD47-DtufOZgx.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import"./chunk-V7P66DNM-D246Sefn.js";import"./chunk-Q52JI7PB-BeSPinqD.js";import"./chunk-PLCLPJVV-rGjVDjLw.js";import"./chunk-GTILCTU2-D-9HFTK6.js";import"./chunk-7TFACZ55-BO7C1qvL.js";import"./chunk-BSZA5ISF-LqNHBHyp.js";import"./chunk-SZ5Y56Q4-Bki2Aicm.js";import"./chunk-YSJUE5HW-eH4JtoEG.js";import"./chunk-HQMLCRZ6-HgqAiHMi.js";import"./chunk-RTI7CJYH-CrTK6TD7.js";import"./chunk-TRQY2T3P-DxnI4jXA.js";import"./chunk-SNQTKDUU-CQmHT9KX.js";import"./chunk-O4A3IS3O-BIKKhWCb.js";import"./chunk-7723GVCQ-CfHgq7qP.js";import"./chunk-KEUPHFFI-DMlFzrf2.js";import{i as t,n,r,t as i}from"./chunk-VFD24L5A-DOz8HER0.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/cose-bilkent-WZ3F43K2-qc8oz4yM.js b/docs/dist/assets/cose-bilkent-WZ3F43K2-qc8oz4yM.js new file mode 100644 index 00000000..5bbac833 --- /dev/null +++ b/docs/dist/assets/cose-bilkent-WZ3F43K2-qc8oz4yM.js @@ -0,0 +1 @@ +import{i as e,r as t,t as n}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{I as r,T as i}from"./chunk-V7P66DNM-D246Sefn.js";import{t as a}from"./chunk-234R4QNB-By2FNiLO.js";var o=n({"../../node_modules/.pnpm/layout-base@1.0.2/node_modules/layout-base/layout-base.js"(e,n){t((function(t,r){typeof e==`object`&&typeof n==`object`?n.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.layoutBase=r():t.layoutBase=r()}),`webpackUniversalModuleDefinition`)(e,function(){return(function(e){var n={};function r(t){if(n[t])return n[t].exports;var i=n[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return t(r,`__webpack_require__`),r.m=e,r.c=n,r.i=function(e){return e},r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var n=e&&e.__esModule?t(function(){return e.default},`getDefault`):t(function(){return e},`getModuleExports`);return r.d(n,`a`,n),n},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=``,r(r.s=26)})([(function(e,n,r){function i(){}t(i,`LayoutConstants`),i.QUALITY=1,i.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,i.DEFAULT_INCREMENTAL=!1,i.DEFAULT_ANIMATION_ON_LAYOUT=!0,i.DEFAULT_ANIMATION_DURING_LAYOUT=!1,i.DEFAULT_ANIMATION_PERIOD=50,i.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,i.DEFAULT_GRAPH_MARGIN=15,i.NODE_DIMENSIONS_INCLUDE_LABELS=!1,i.SIMPLE_NODE_SIZE=40,i.SIMPLE_NODE_HALF_SIZE=i.SIMPLE_NODE_SIZE/2,i.EMPTY_COMPOUND_NODE_SIZE=40,i.MIN_EDGE_LENGTH=1,i.WORLD_BOUNDARY=1e6,i.INITIAL_WORLD_BOUNDARY=i.WORLD_BOUNDARY/1e3,i.WORLD_CENTER_X=1200,i.WORLD_CENTER_Y=900,e.exports=i}),(function(e,n,r){var i=r(2),a=r(8),o=r(9);function s(e,t,n){i.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=e,this.target=t}for(var c in t(s,`LEdge`),s.prototype=Object.create(i.prototype),i)s[c]=i[c];s.prototype.getSource=function(){return this.source},s.prototype.getTarget=function(){return this.target},s.prototype.isInterGraph=function(){return this.isInterGraph},s.prototype.getLength=function(){return this.length},s.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},s.prototype.getBendpoints=function(){return this.bendpoints},s.prototype.getLca=function(){return this.lca},s.prototype.getSourceInLca=function(){return this.sourceInLca},s.prototype.getTargetInLca=function(){return this.targetInLca},s.prototype.getOtherEnd=function(e){if(this.source===e)return this.target;if(this.target===e)return this.source;throw`Node is not incident with this edge`},s.prototype.getOtherEndInGraph=function(e,t){for(var n=this.getOtherEnd(e),r=t.getGraphManager().getRoot();;){if(n.getOwner()==t)return n;if(n.getOwner()==r)break;n=n.getOwner().getParent()}return null},s.prototype.updateLength=function(){var e=[,,,,];this.isOverlapingSourceAndTarget=a.getIntersection(this.target.getRect(),this.source.getRect(),e),this.isOverlapingSourceAndTarget||(this.lengthX=e[0]-e[2],this.lengthY=e[1]-e[3],Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},s.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},e.exports=s}),(function(e,n,r){function i(e){this.vGraphObject=e}t(i,`LGraphObject`),e.exports=i}),(function(e,n,r){var i=r(2),a=r(10),o=r(13),s=r(0),c=r(16),l=r(4);function u(e,t,n,r){n==null&&r==null&&(r=t),i.call(this,r),e.graphManager!=null&&(e=e.graphManager),this.estimatedSize=a.MIN_VALUE,this.inclusionTreeDepth=a.MAX_VALUE,this.vGraphObject=r,this.edges=[],this.graphManager=e,n!=null&&t!=null?this.rect=new o(t.x,t.y,n.width,n.height):this.rect=new o}for(var d in t(u,`LNode`),u.prototype=Object.create(i.prototype),i)u[d]=i[d];u.prototype.getEdges=function(){return this.edges},u.prototype.getChild=function(){return this.child},u.prototype.getOwner=function(){return this.owner},u.prototype.getWidth=function(){return this.rect.width},u.prototype.setWidth=function(e){this.rect.width=e},u.prototype.getHeight=function(){return this.rect.height},u.prototype.setHeight=function(e){this.rect.height=e},u.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},u.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},u.prototype.getCenter=function(){return new l(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},u.prototype.getLocation=function(){return new l(this.rect.x,this.rect.y)},u.prototype.getRect=function(){return this.rect},u.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},u.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},u.prototype.setRect=function(e,t){this.rect.x=e.x,this.rect.y=e.y,this.rect.width=t.width,this.rect.height=t.height},u.prototype.setCenter=function(e,t){this.rect.x=e-this.rect.width/2,this.rect.y=t-this.rect.height/2},u.prototype.setLocation=function(e,t){this.rect.x=e,this.rect.y=t},u.prototype.moveBy=function(e,t){this.rect.x+=e,this.rect.y+=t},u.prototype.getEdgeListToNode=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.target==e){if(r.source!=n)throw`Incorrect edge source!`;t.push(r)}}),t},u.prototype.getEdgesBetween=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(!(r.source==n||r.target==n))throw`Incorrect edge source and/or target`;(r.target==e||r.source==e)&&t.push(r)}),t},u.prototype.getNeighborsList=function(){var e=new Set,t=this;return t.edges.forEach(function(n){if(n.source==t)e.add(n.target);else{if(n.target!=t)throw`Incorrect incidency!`;e.add(n.source)}}),e},u.prototype.withChildren=function(){var e=new Set,t,n;if(e.add(this),this.child!=null)for(var r=this.child.getNodes(),i=0;it&&(this.rect.x-=(this.labelWidth-t)/2,this.setWidth(this.labelWidth)),this.labelHeight>n&&(this.labelPos==`center`?this.rect.y-=(this.labelHeight-n)/2:this.labelPos==`top`&&(this.rect.y-=this.labelHeight-n),this.setHeight(this.labelHeight))}}},u.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==a.MAX_VALUE)throw`assert failed`;return this.inclusionTreeDepth},u.prototype.transform=function(e){var t=this.rect.x;t>s.WORLD_BOUNDARY?t=s.WORLD_BOUNDARY:t<-s.WORLD_BOUNDARY&&(t=-s.WORLD_BOUNDARY);var n=this.rect.y;n>s.WORLD_BOUNDARY?n=s.WORLD_BOUNDARY:n<-s.WORLD_BOUNDARY&&(n=-s.WORLD_BOUNDARY);var r=new l(t,n),i=e.inverseTransformPoint(r);this.setLocation(i.x,i.y)},u.prototype.getLeft=function(){return this.rect.x},u.prototype.getRight=function(){return this.rect.x+this.rect.width},u.prototype.getTop=function(){return this.rect.y},u.prototype.getBottom=function(){return this.rect.y+this.rect.height},u.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},e.exports=u}),(function(e,n,r){function i(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}t(i,`PointD`),i.prototype.getX=function(){return this.x},i.prototype.getY=function(){return this.y},i.prototype.setX=function(e){this.x=e},i.prototype.setY=function(e){this.y=e},i.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},i.prototype.getCopy=function(){return new i(this.x,this.y)},i.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},e.exports=i}),(function(e,n,r){var i=r(2),a=r(10),o=r(0),s=r(6),c=r(3),l=r(1),u=r(13),d=r(12),f=r(11);function p(e,t,n){i.call(this,n),this.estimatedSize=a.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=e,t!=null&&t instanceof s?this.graphManager=t:t!=null&&t instanceof Layout&&(this.graphManager=t.graphManager)}for(var m in t(p,`LGraph`),p.prototype=Object.create(i.prototype),i)p[m]=i[m];p.prototype.getNodes=function(){return this.nodes},p.prototype.getEdges=function(){return this.edges},p.prototype.getGraphManager=function(){return this.graphManager},p.prototype.getParent=function(){return this.parent},p.prototype.getLeft=function(){return this.left},p.prototype.getRight=function(){return this.right},p.prototype.getTop=function(){return this.top},p.prototype.getBottom=function(){return this.bottom},p.prototype.isConnected=function(){return this.isConnected},p.prototype.add=function(e,t,n){if(t==null&&n==null){var r=e;if(this.graphManager==null)throw`Graph has no graph mgr!`;if(this.getNodes().indexOf(r)>-1)throw`Node already in graph!`;return r.owner=this,this.getNodes().push(r),r}else{var i=e;if(!(this.getNodes().indexOf(t)>-1&&this.getNodes().indexOf(n)>-1))throw`Source or target not in graph!`;if(!(t.owner==n.owner&&t.owner==this))throw`Both owners must be this graph!`;return t.owner==n.owner?(i.source=t,i.target=n,i.isInterGraph=!1,this.getEdges().push(i),t.edges.push(i),n!=t&&n.edges.push(i),i):null}},p.prototype.remove=function(e){var t=e;if(e instanceof c){if(t==null)throw`Node is null!`;if(!(t.owner!=null&&t.owner==this))throw`Owner graph is invalid!`;if(this.graphManager==null)throw`Owner graph manager is invalid!`;for(var n=t.edges.slice(),r,i=n.length,a=0;a-1&&u>-1))throw`Source and/or target doesn't know this edge!`;r.source.edges.splice(s,1),r.target!=r.source&&r.target.edges.splice(u,1);var o=r.source.owner.getEdges().indexOf(r);if(o==-1)throw`Not in owner's edge list!`;r.source.owner.getEdges().splice(o,1)}},p.prototype.updateLeftTop=function(){for(var e=a.MAX_VALUE,t=a.MAX_VALUE,n,r,i,o=this.getNodes(),s=o.length,c=0;cn&&(e=n),t>r&&(t=r)}return e==a.MAX_VALUE?null:(i=o[0].getParent().paddingLeft==null?this.margin:o[0].getParent().paddingLeft,this.left=t-i,this.top=e-i,new d(this.left,this.top))},p.prototype.updateBounds=function(e){for(var t=a.MAX_VALUE,n=-a.MAX_VALUE,r=a.MAX_VALUE,i=-a.MAX_VALUE,o,s,c,l,d,f=this.nodes,p=f.length,m=0;mo&&(t=o),nc&&(r=c),io&&(t=o),nc&&(r=c),i=this.nodes.length){var c=0;n.forEach(function(t){t.owner==e&&c++}),c==this.nodes.length&&(this.isConnected=!0)}},e.exports=p}),(function(e,n,r){var i,a=r(1);function o(e){i=r(5),this.layout=e,this.graphs=[],this.edges=[]}t(o,`LGraphManager`),o.prototype.addRoot=function(){var e=this.layout.newGraph(),t=this.layout.newNode(null),n=this.add(e,t);return this.setRootGraph(n),this.rootGraph},o.prototype.add=function(e,t,n,r,i){if(n==null&&r==null&&i==null){if(e==null)throw`Graph is null!`;if(t==null)throw`Parent node is null!`;if(this.graphs.indexOf(e)>-1)throw`Graph already in this graph mgr!`;if(this.graphs.push(e),e.parent!=null)throw`Already has a parent!`;if(t.child!=null)throw`Already has a child!`;return e.parent=t,t.child=e,e}else{i=n,r=t,n=e;var a=r.getOwner(),o=i.getOwner();if(!(a!=null&&a.getGraphManager()==this))throw`Source not in this graph mgr!`;if(!(o!=null&&o.getGraphManager()==this))throw`Target not in this graph mgr!`;if(a==o)return n.isInterGraph=!1,a.add(n,r,i);if(n.isInterGraph=!0,n.source=r,n.target=i,this.edges.indexOf(n)>-1)throw`Edge already in inter-graph edge list!`;if(this.edges.push(n),!(n.source!=null&&n.target!=null))throw`Edge source and/or target is null!`;if(!(n.source.edges.indexOf(n)==-1&&n.target.edges.indexOf(n)==-1))throw`Edge already in source and/or target incidency list!`;return n.source.edges.push(n),n.target.edges.push(n),n}},o.prototype.remove=function(e){if(e instanceof i){var t=e;if(t.getGraphManager()!=this)throw`Graph not in this graph mgr`;if(!(t==this.rootGraph||t.parent!=null&&t.parent.graphManager==this))throw`Invalid parent node!`;var n=[];n=n.concat(t.getEdges());for(var r,o=n.length,s=0;s=t.getRight()?n[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight()):t.getX()<=e.getX()&&t.getRight()>=e.getRight()&&(n[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight())),e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()?n[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()):t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()&&(n[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()));var a=Math.abs((t.getCenterY()-e.getCenterY())/(t.getCenterX()-e.getCenterX()));t.getCenterY()===e.getCenterY()&&t.getCenterX()===e.getCenterX()&&(a=1);var o=a*n[0],s=n[1]/a;n[0]o)return n[0]=r,n[1]=c,n[2]=a,n[3]=y,!1;if(ia)return n[0]=s,n[1]=i,n[2]=_,n[3]=o,!1;if(ra?(n[0]=u,n[1]=d,C=!0):(n[0]=l,n[1]=c,C=!0):T===D&&(r>a?(n[0]=s,n[1]=c,C=!0):(n[0]=f,n[1]=d,C=!0)),-E===D?a>r?(n[2]=v,n[3]=y,w=!0):(n[2]=_,n[3]=g,w=!0):E===D&&(a>r?(n[2]=h,n[3]=g,w=!0):(n[2]=b,n[3]=y,w=!0)),C&&w)return!1;if(r>a?i>o?(O=this.getCardinalDirection(T,D,4),k=this.getCardinalDirection(E,D,2)):(O=this.getCardinalDirection(-T,D,3),k=this.getCardinalDirection(-E,D,1)):i>o?(O=this.getCardinalDirection(-T,D,1),k=this.getCardinalDirection(-E,D,3)):(O=this.getCardinalDirection(T,D,2),k=this.getCardinalDirection(E,D,4)),!C)switch(O){case 1:j=c,A=r+-m/D,n[0]=A,n[1]=j;break;case 2:A=f,j=i+p*D,n[0]=A,n[1]=j;break;case 3:j=d,A=r+m/D,n[0]=A,n[1]=j;break;case 4:A=u,j=i+-p*D,n[0]=A,n[1]=j;break}if(!w)switch(k){case 1:N=g,M=a+-S/D,n[2]=M,n[3]=N;break;case 2:M=b,N=o+x*D,n[2]=M,n[3]=N;break;case 3:N=y,M=a+S/D,n[2]=M,n[3]=N;break;case 4:M=v,N=o+-x*D,n[2]=M,n[3]=N;break}}return!1},a.getCardinalDirection=function(e,t,n){return e>t?n:1+n%4},a.getIntersection=function(e,t,n,r){if(r==null)return this.getIntersection2(e,t,n);var a=e.x,o=e.y,s=t.x,c=t.y,l=n.x,u=n.y,d=r.x,f=r.y,p=void 0,m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0;return h=c-o,_=a-s,y=s*o-a*c,g=f-u,v=l-d,b=d*u-l*f,x=h*v-g*_,x===0?null:(p=(_*b-v*y)/x,m=(g*y-h*b)/x,new i(p,m))},a.angleOfVector=function(e,t,n,r){var i=void 0;return e===n?i=r0?1:e<0?-1:0},i.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},i.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},e.exports=i}),(function(e,n,r){function i(){}t(i,`Integer`),i.MAX_VALUE=2147483647,i.MIN_VALUE=-2147483648,e.exports=i}),(function(e,n,r){var i=(function(){function e(e,t){for(var n=0;n0&&t;){for(s.push(l[0]);s.length>0&&t;){var u=s[0];s.splice(0,1),o.add(u);for(var d=u.getEdges(),a=0;a-1&&l.splice(h,1)}o=new Set,c=new Map}}return e},p.prototype.createDummyNodesForBendpoints=function(e){for(var t=[],n=e.source,r=this.graphManager.calcLowestCommonAncestor(e.source,e.target),i=0;i0){for(var r=this.edgeToDummyNodes.get(n),a=0;a=0&&t.splice(d,1),s.getNeighborsList().forEach(function(e){if(n.indexOf(e)<0){var t=r.get(e)-1;t==1&&l.push(e),r.set(e,t)}})}n=n.concat(l),(t.length==1||t.length==2)&&(i=!0,a=t[0])}return a},p.prototype.setGraphManager=function(e){this.graphManager=e},e.exports=p}),(function(e,n,r){function i(){}t(i,`RandomSeed`),i.seed=1,i.x=0,i.nextDouble=function(){return i.x=Math.sin(i.seed++)*1e4,i.x-Math.floor(i.x)},e.exports=i}),(function(e,n,r){var i=r(4);function a(e,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}t(a,`Transform`),a.prototype.getWorldOrgX=function(){return this.lworldOrgX},a.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},a.prototype.getWorldOrgY=function(){return this.lworldOrgY},a.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},a.prototype.getWorldExtX=function(){return this.lworldExtX},a.prototype.setWorldExtX=function(e){this.lworldExtX=e},a.prototype.getWorldExtY=function(){return this.lworldExtY},a.prototype.setWorldExtY=function(e){this.lworldExtY=e},a.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},a.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},a.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},a.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},a.prototype.getDeviceExtX=function(){return this.ldeviceExtX},a.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},a.prototype.getDeviceExtY=function(){return this.ldeviceExtY},a.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},a.prototype.transformX=function(e){var t=0,n=this.lworldExtX;return n!=0&&(t=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/n),t},a.prototype.transformY=function(e){var t=0,n=this.lworldExtY;return n!=0&&(t=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/n),t},a.prototype.inverseTransformX=function(e){var t=0,n=this.ldeviceExtX;return n!=0&&(t=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/n),t},a.prototype.inverseTransformY=function(e){var t=0,n=this.ldeviceExtY;return n!=0&&(t=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/n),t},a.prototype.inverseTransformPoint=function(e){return new i(this.inverseTransformX(e.x),this.inverseTransformY(e.y))},e.exports=a}),(function(e,n,r){function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);to.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*o.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(e-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-o.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT_INCREMENTAL):(e>o.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(o.COOLING_ADAPTATION_FACTOR,1-(e-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*(1-o.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},u.prototype.calcSpringForces=function(){for(var e=this.getAllEdges(),t,n=0;n0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n,r,i,a,s=this.getAllNodes(),c;if(this.useFRGridVariant)for(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&e&&this.updateGrid(),c=new Set,n=0;nc||s>c)&&(e.gravitationForceX=-this.gravityConstant*i,e.gravitationForceY=-this.gravityConstant*a)):(c=t.getEstimatedSize()*this.compoundGravityRangeFactor,(o>c||s>c)&&(e.gravitationForceX=-this.gravityConstant*i*this.compoundGravityConstant,e.gravitationForceY=-this.gravityConstant*a*this.compoundGravityConstant))},u.prototype.isConverged=function(){var e,t=!1;return this.totalIterations>this.maxIterations/3&&(t=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),e=this.totalDisplacement=c.length||u>=c[0].length)){for(var d=0;de},`_defaultCompareFunction`)}]),e})()}),(function(e,n,r){var i=(function(){function e(e,t){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;a(this,e),this.sequence1=t,this.sequence2=n,this.match_score=r,this.mismatch_penalty=i,this.gap_penalty=o,this.iMax=t.length+1,this.jMax=n.length+1,this.grid=Array(this.iMax);for(var s=0;s=0;n--){var r=this.listeners[n];r.event===e&&r.callback===t&&this.listeners.splice(n,1)}},a.emit=function(e,t){for(var n=0;ne.coolingFactor*e.maxNodeDisplacement&&(this.displacementX=e.coolingFactor*e.maxNodeDisplacement*a.sign(this.displacementX)),Math.abs(this.displacementY)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementY=e.coolingFactor*e.maxNodeDisplacement*a.sign(this.displacementY)),this.child==null||this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),e.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},o.prototype.propogateDisplacementToChildren=function(e,t){for(var n=this.getChild().getNodes(),r,i=0;i0)this.positionNodesRadially(e);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n),this.positionNodesRandomly()}}else if(l.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n)}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},y.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%u.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-this.coolingCycle**+(Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var e=new Set(this.getAllNodes()),t=this.nodesWithGravity.filter(function(t){return e.has(t)});this.graphManager.setAllNodesToApplyGravitation(t),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=u.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=u.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var n=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(n,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},y.prototype.getPositionsData=function(){for(var e=this.graphManager.getAllNodes(),t={},n=0;n1){var s;for(s=0;sr&&(r=Math.floor(o.y)),a=Math.floor(o.x+l.DEFAULT_COMPONENT_SEPERATION)}this.transform(new p(d.WORLD_CENTER_X-o.x/2,d.WORLD_CENTER_Y-o.y/2))},y.radialLayout=function(e,t,n){var r=Math.max(this.maxDiagonalInTree(e),l.DEFAULT_RADIAL_SEPARATION);y.branchRadialLayout(t,null,0,359,0,r);var i=_.calculateBounds(e),a=new v;a.setDeviceOrgX(i.getMinX()),a.setDeviceOrgY(i.getMinY()),a.setWorldOrgX(n.x),a.setWorldOrgY(n.y);for(var o=0;o1;){var _=h[0];h.splice(0,1);var v=u.indexOf(_);v>=0&&u.splice(v,1),p--,d--}m=t==null?0:(u.indexOf(h[0])+1)%p;for(var b=Math.abs(r-n)/d,x=m;f!=d;x=++x%p){var S=u[x].getOtherEnd(e);if(S!=t){var C=(n+f*b)%360,w=(C+b)%360;y.branchRadialLayout(S,e,C,w,i+a,a),f++}}},y.maxDiagonalInTree=function(e){for(var t=h.MIN_VALUE,n=0;nt&&(t=r)}return t},y.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},y.prototype.groupZeroDegreeMembers=function(){var e=this,t={};this.memberGroups={},this.idToDummyNode={};for(var n=[],r=this.graphManager.getAllNodes(),i=0;i1){var r=`DummyCompound_`+n;e.memberGroups[r]=t[n];var i=t[n][0].getParent(),a=new s(e.graphManager);a.id=r,a.paddingLeft=i.paddingLeft||0,a.paddingRight=i.paddingRight||0,a.paddingBottom=i.paddingBottom||0,a.paddingTop=i.paddingTop||0,e.idToDummyNode[r]=a;var o=e.getGraphManager().add(e.newGraph(),a),c=i.getChild();c.add(a);for(var l=0;l=0;e--){var t=this.compoundOrder[e],n=t.id,r=t.paddingLeft,i=t.paddingTop;this.adjustLocations(this.tiledMemberPack[n],t.rect.x,t.rect.y,r,i)}},y.prototype.repopulateZeroDegreeMembers=function(){var e=this,t=this.tiledZeroDegreePack;Object.keys(t).forEach(function(n){var r=e.idToDummyNode[n],i=r.paddingLeft,a=r.paddingTop;e.adjustLocations(t[n],r.rect.x,r.rect.y,i,a)})},y.prototype.getToBeTiled=function(e){var t=e.id;if(this.toBeTiled[t]!=null)return this.toBeTiled[t];var n=e.getChild();if(n==null)return this.toBeTiled[t]=!1,!1;for(var r=n.getNodes(),i=0;i0)return this.toBeTiled[t]=!1,!1;if(a.getChild()==null){this.toBeTiled[a.id]=!1;continue}if(!this.getToBeTiled(a))return this.toBeTiled[t]=!1,!1}return this.toBeTiled[t]=!0,!0},y.prototype.getNodeDegree=function(e){e.id;for(var t=e.getEdges(),n=0,r=0;rc&&(c=u.rect.height)}n+=c+e.verticalPadding}},y.prototype.tileCompoundMembers=function(e,t){var n=this;this.tiledMemberPack=[],Object.keys(e).forEach(function(r){var i=t[r];n.tiledMemberPack[r]=n.tileNodes(e[r],i.paddingLeft+i.paddingRight),i.rect.width=n.tiledMemberPack[r].width,i.rect.height=n.tiledMemberPack[r].height})},y.prototype.tileNodes=function(e,t){var n={rows:[],rowWidth:[],rowHeight:[],width:0,height:t,verticalPadding:l.TILING_PADDING_VERTICAL,horizontalPadding:l.TILING_PADDING_HORIZONTAL};e.sort(function(e,t){return e.rect.width*e.rect.height>t.rect.width*t.rect.height?-1:+(e.rect.width*e.rect.height0&&(a+=e.horizontalPadding),e.rowWidth[n]=a,e.width0&&(o+=e.verticalPadding);var s=0;o>e.rowHeight[n]&&(s=e.rowHeight[n],e.rowHeight[n]=o,s=e.rowHeight[n]-s),e.height+=s,e.rows[n].push(t)},y.prototype.getShortestRowIndex=function(e){for(var t=-1,n=Number.MAX_VALUE,r=0;rn&&(t=r,n=e.rowWidth[r]);return t},y.prototype.canAddHorizontal=function(e,t,n){var r=this.getShortestRowIndex(e);if(r<0)return!0;var i=e.rowWidth[r];if(i+e.horizontalPadding+t<=e.width)return!0;var a=0;e.rowHeight[r]0&&(a=n+e.verticalPadding-e.rowHeight[r]);var o=e.width-i>=t+e.horizontalPadding?(e.height+a)/(i+t+e.horizontalPadding):(e.height+a)/e.width;a=n+e.verticalPadding;var s=e.widtha&&t!=n){r.splice(-1,1),e.rows[n].push(i),e.rowWidth[t]=e.rowWidth[t]-a,e.rowWidth[n]=e.rowWidth[n]+a,e.width=e.rowWidth[instance.getLongestRowIndex(e)];for(var o=Number.MIN_VALUE,s=0;so&&(o=r[s].height);t>0&&(o+=e.verticalPadding);var c=e.rowHeight[t]+e.rowHeight[n];e.rowHeight[t]=o,e.rowHeight[n]0)for(var l=i;l<=a;l++)c[0]+=this.grid[l][o-1].length+this.grid[l][o].length-1;if(a0)for(var l=o;l<=s;l++)c[3]+=this.grid[i-1][l].length+this.grid[i][l].length-1;for(var d=h.MAX_VALUE,f,p,m=0;m0){var h=n.getGraphManager().add(n.newGraph(),s);this.processChildrenList(h,o,n)}}},p.prototype.stop=function(){return this.stopped=!0,this};var h=t(function(e){e(`layout`,`cose-bilkent`,p)},`register`);typeof cytoscape<`u`&&h(cytoscape),e.exports=h})])})}})(),1);a.use(c.default);function l(e,t){e.forEach(e=>{let n={id:e.id,labelText:e.label,height:e.height,width:e.width,padding:e.padding??0};Object.keys(e).forEach(t=>{[`id`,`label`,`height`,`width`,`padding`,`x`,`y`].includes(t)||(n[t]=e[t])}),t.add({group:`nodes`,data:n,position:{x:e.x??0,y:e.y??0}})})}t(l,`addNodes`);function u(e,t){e.forEach(e=>{let n={id:e.id,source:e.start,target:e.end};Object.keys(e).forEach(t=>{[`id`,`start`,`end`].includes(t)||(n[t]=e[t])}),t.add({group:`edges`,data:n})})}t(u,`addEdges`);function d(e){return new Promise(t=>{let n=r(`body`).append(`div`).attr(`id`,`cy`).attr(`style`,`display:none`),o=a({container:document.getElementById(`cy`),style:[{selector:`edge`,style:{"curve-style":`bezier`}}]});n.remove(),l(e.nodes,o),u(e.edges,o),o.nodes().forEach(function(e){e.layoutDimensions=()=>{let t=e.data();return{w:t.width,h:t.height}}}),o.layout({name:`cose-bilkent`,quality:`proof`,styleEnabled:!1,animate:!1}).run(),o.ready(e=>{i.info(`Cytoscape ready`,e),t(o)})})}t(d,`createCytoscapeInstance`);function f(e){return e.nodes().map(e=>{let t=e.data(),n=e.position(),r={id:t.id,x:n.x,y:n.y};return Object.keys(t).forEach(e=>{e!==`id`&&(r[e]=t[e])}),r})}t(f,`extractPositionedNodes`);function p(e){return e.edges().map(e=>{let t=e.data(),n=e._private.rscratch,r={id:t.id,source:t.source,target:t.target,startX:n.startX,startY:n.startY,midX:n.midX,midY:n.midY,endX:n.endX,endY:n.endY};return Object.keys(t).forEach(e=>{[`id`,`source`,`target`].includes(e)||(r[e]=t[e])}),r})}t(p,`extractPositionedEdges`);async function m(e,t){i.debug(`Starting cose-bilkent layout algorithm`);try{h(e);let t=await d(e),n=f(t),r=p(t);return i.debug(`Layout completed: ${n.length} nodes, ${r.length} edges`),{nodes:n,edges:r}}catch(e){throw i.error(`Error in cose-bilkent layout algorithm:`,e),e}}t(m,`executeCoseBilkentLayout`);function h(e){if(!e)throw Error(`Layout data is required`);if(!e.config)throw Error(`Configuration is required in layout data`);if(!e.rootNode)throw Error(`Root node is required`);if(!e.nodes||!Array.isArray(e.nodes))throw Error(`No nodes found in layout data`);if(!Array.isArray(e.edges))throw Error(`Edges array is required in layout data`);return!0}t(h,`validateLayoutData`);var g=t(async(e,t,{insertCluster:n,insertEdge:r,insertEdgeLabel:i,insertMarkers:a,insertNode:o,log:s,positionEdgeLabel:c},{algorithm:l})=>{let u={},d={},f=t.select(`g`);a(f,e.markers,e.type,e.diagramId);let p=f.insert(`g`).attr(`class`,`subgraphs`),h=f.insert(`g`).attr(`class`,`edgePaths`),g=f.insert(`g`).attr(`class`,`edgeLabels`),_=f.insert(`g`).attr(`class`,`nodes`);s.debug(`Inserting nodes into DOM for dimension calculation`),await Promise.all(e.nodes.map(async t=>{if(t.isGroup){let e={...t};d[t.id]=e,u[t.id]=e,await n(p,t)}else{let n={...t};u[t.id]=n;let r=await o(_,t,{config:e.config,dir:e.direction||`TB`}),i=r.node().getBBox();n.width=i.width,n.height=i.height,n.domId=r,s.debug(`Node ${t.id} dimensions: ${i.width}x${i.height}`)}})),s.debug(`Running cose-bilkent layout algorithm`);let v=await m({...e,nodes:e.nodes.map(e=>{let t=u[e.id];return{...e,width:t.width,height:t.height}})},e.config);s.debug(`Positioning nodes based on layout results`),v.nodes.forEach(e=>{let t=u[e.id];t?.domId&&(t.domId.attr(`transform`,`translate(${e.x}, ${e.y})`),t.x=e.x,t.y=e.y,s.debug(`Positioned node ${t.id} at center (${e.x}, ${e.y})`))}),v.edges.forEach(t=>{let n=e.edges.find(e=>e.id===t.id);n&&(n.points=[{x:t.startX,y:t.startY},{x:t.midX,y:t.midY},{x:t.endX,y:t.endY}])}),s.debug(`Inserting and positioning edges`),await Promise.all(e.edges.map(async t=>{await i(g,t);let n=u[t.start??``],a=u[t.end??``];if(n&&a){let i=v.edges.find(e=>e.id===t.id);if(i){s.debug(`APA01 positionedEdge`,i);let o={...t};c(o,r(h,o,d,e.type,n,a,e.diagramId))}else{let i={...t,points:[{x:n.x||0,y:n.y||0},{x:a.x||0,y:a.y||0}]};c(i,r(h,i,d,e.type,n,a,e.diagramId))}}})),s.debug(`Cose-bilkent rendering completed`)},`render`);export{g as render}; \ No newline at end of file diff --git a/docs/dist/assets/dagre-ZXKKJJHT-CJBRrdma.js b/docs/dist/assets/dagre-ZXKKJJHT-CJBRrdma.js new file mode 100644 index 00000000..2c6873b4 --- /dev/null +++ b/docs/dist/assets/dagre-ZXKKJJHT-CJBRrdma.js @@ -0,0 +1,4 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{T as t}from"./chunk-V7P66DNM-D246Sefn.js";import{C as n}from"./chunk-Q52JI7PB-BeSPinqD.js";import"./chunk-PLCLPJVV-rGjVDjLw.js";import"./chunk-GTILCTU2-D-9HFTK6.js";import"./chunk-7TFACZ55-BO7C1qvL.js";import"./chunk-BSZA5ISF-LqNHBHyp.js";import{n as r}from"./chunk-SZ5Y56Q4-Bki2Aicm.js";import"./chunk-YSJUE5HW-eH4JtoEG.js";import{a as i,c as a,i as o,l as s,n as c,t as l,u}from"./chunk-HQMLCRZ6-HgqAiHMi.js";import"./chunk-RTI7CJYH-CrTK6TD7.js";import{a as d,i as f,n as p,r as m,t as h}from"./chunk-TRQY2T3P-DxnI4jXA.js";import{_ as g,m as _,r as v,t as y}from"./chunk-XAKTCX7R-ChjAedyW.js";import{t as b}from"./chunk-T5XCKZAJ-Dtmpyu6x.js";function x(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:S(e),edges:C(e)};return _(e.graph())||(t.value=v(e.graph())),t}e(x,`write`);function S(e){return g(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),i={v:t};return _(n)||(i.value=n),_(r)||(i.parent=r),i})}e(S,`writeNodes`);function C(e){return g(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return _(t.name)||(r.name=t.name),_(n)||(r.value=n),r})}e(C,`writeEdges`);var w=new Map,T=new Map,E=new Map,D=e(()=>{T.clear(),E.clear(),w.clear()},`clear`),O=e((e,n)=>{let r=T.get(n)||[];return t.trace(`In isDescendant`,n,` `,e,` = `,r.includes(e)),r.includes(e)},`isDescendant`),k=e((e,n)=>{let r=T.get(n)||[];return t.info(`Descendants of `,n,` is `,r),t.info(`Edge is `,e),e.v===n||e.w===n?!1:r?r.includes(e.v)||O(e.v,n)||O(e.w,n)||r.includes(e.w):(t.debug(`Tilt, `,n,`,not in descendants`),!1)},`edgeInCluster`),A=e((e,n,r,i)=>{t.warn(`Copying children of `,e,`root`,i,`data`,n.node(e),i);let a=n.children(e)||[];e!==i&&a.push(e),t.warn(`Copying (nodes) clusterId`,e,`nodes`,a),a.forEach(a=>{if(n.children(a).length>0)A(a,n,r,i);else{let o=n.node(a);t.info(`cp `,a,` to `,i,` with parent `,e),r.setNode(a,o),i!==n.parent(a)&&(t.warn(`Setting parent`,a,n.parent(a)),r.setParent(a,n.parent(a))),e!==i&&a!==e?(t.debug(`Setting parent`,a,e),r.setParent(a,e)):(t.info(`In copy `,e,`root`,i,`data`,n.node(e),i),t.debug(`Not Setting parent for node=`,a,`cluster!==rootId`,e!==i,`node!==clusterId`,a!==e));let s=n.edges(a);t.debug(`Copying Edges`,s),s.forEach(a=>{t.info(`Edge`,a);let o=n.edge(a.v,a.w,a.name);t.info(`Edge data`,o,i);try{k(a,i)?(t.info(`Copying as `,a.v,a.w,o,a.name),r.setEdge(a.v,a.w,o,a.name),t.info(`newGraph edges `,r.edges(),r.edge(r.edges()[0]))):t.info(`Skipping copy of edge `,a.v,`-->`,a.w,` rootId: `,i,` clusterId:`,e)}catch(e){t.error(e)}})}t.debug(`Removing node`,a),n.removeNode(a)})},`copy`),j=e((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)E.set(i,e),r=[...r,...j(i,t)];return r},`extractDescendants`),M=e((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},`findCommonEdges`),N=e((e,n,r)=>{let i=n.children(e);if(t.trace(`Searching children of id `,e,i),i.length<1)return e;let a;for(let e of i){let t=N(e,n,r),i=M(n,r,t);if(t)if(i.length>0)a=t;else return t}return a},`findNonClusterChild`),P=e(e=>!w.has(e)||!w.get(e).externalConnections?e:w.has(e)?w.get(e).id:e,`getAnchorId`),F=e((e,n)=>{if(!e||n>10){t.debug(`Opting out, no graph `);return}else t.debug(`Opting in, graph `);e.nodes().forEach(function(n){e.children(n).length>0&&(t.warn(`Cluster identified`,n,` Replacement id in edges: `,N(n,e,n)),T.set(n,j(n,e)),w.set(n,{id:N(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){let r=e.children(n),i=e.edges();r.length>0?(t.debug(`Cluster identified`,n,T),i.forEach(e=>{O(e.v,n)^O(e.w,n)&&(t.warn(`Edge: `,e,` leaves cluster `,n),t.warn(`Descendants of XXX `,n,`: `,T.get(n)),w.get(n).externalConnections=!0)})):t.debug(`Not a cluster `,n,T)});for(let t of w.keys()){let n=w.get(t).id,r=e.parent(n);r!==t&&w.has(r)&&!w.get(r).externalConnections&&(w.get(t).id=r)}e.edges().forEach(function(n){let r=e.edge(n);t.warn(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(n)),t.warn(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(t.warn(`Fix XXX`,w,`ids:`,n.v,n.w,`Translating: `,w.get(n.v),` --- `,w.get(n.w)),w.get(n.v)||w.get(n.w)){if(t.warn(`Fixing and trying - removing XXX`,n.v,n.w,n.name),i=P(n.v),a=P(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){let t=e.parent(i);w.get(t).externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){let t=e.parent(a);w.get(t).externalConnections=!0,r.toCluster=n.w}t.warn(`Fix Replacing with XXX`,i,a,n.name),e.setEdge(i,a,r,n.name)}}),t.warn(`Adjusted Graph`,x(e)),I(e,0),t.trace(w)},`adjustClustersAndEdges`),I=e((e,n)=>{if(t.warn(`extractor - `,n,x(e),e.children(`D`)),n>10){t.error(`Bailing out`);return}let r=e.nodes(),i=!1;for(let t of r){let n=e.children(t);i||=n.length>0}if(!i){t.debug(`Done, no node has children`,e.nodes());return}t.debug(`Nodes = `,r,n);for(let i of r)if(t.debug(`Extracting node`,i,w,w.has(i)&&!w.get(i).externalConnections,!e.parent(i),e.node(i),e.children(`D`),` Depth `,n),!w.has(i))t.debug(`Not a cluster`,i,n);else if(!w.get(i).externalConnections&&e.children(i)&&e.children(i).length>0){t.warn(`Cluster without external connections, without a parent and with children`,i,n);let r=e.graph().rankdir===`TB`?`LR`:`TB`;w.get(i)?.clusterData?.dir&&(r=w.get(i).clusterData.dir,t.warn(`Fixing dir`,w.get(i).clusterData.dir,r));let a=new y({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});t.warn(`Old graph before copy`,x(e)),A(i,e,a,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:w.get(i).clusterData,label:w.get(i).label,graph:a}),t.warn(`New graph after copy node: (`,i,`)`,x(a)),t.debug(`Old graph after copy`,x(e))}else t.warn(`Cluster ** `,i,` **not meeting the criteria !externalConnections:`,!w.get(i).externalConnections,` no parent: `,!e.parent(i),` children `,e.children(i)&&e.children(i).length>0,e.children(`D`),n),t.debug(w);r=e.nodes(),t.warn(`New list of nodes`,r);for(let i of r){let r=e.node(i);t.warn(` Now next level`,i,r),r?.clusterNode&&I(r.graph,n+1)}},`extractor`),L=e((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=L(e,e.children(t));n=[...n,...r]}),n},`sorter`),R=e(e=>L(e,e.children()),`sortNodesByHierarchy`),z=e(async(n,c,l,f,h,g)=>{t.warn(`Graph in recursive render:XAX`,x(c),h);let _=c.graph().rankdir;t.trace(`Dir in recursive render - dir:`,_);let v=n.insert(`g`).attr(`class`,`root`);c.nodes()?t.info(`Recursive render XXX`,c.nodes()):t.info(`No nodes found for`,c),c.edges().length>0&&t.info(`Recursive edges`,c.edge(c.edges()[0]));let y=v.insert(`g`).attr(`class`,`clusters`),S=v.insert(`g`).attr(`class`,`edgePaths`),C=v.insert(`g`).attr(`class`,`edgeLabels`),T=v.insert(`g`).attr(`class`,`nodes`);await Promise.all(c.nodes().map(async function(e){let n=c.node(e);if(h!==void 0){let n=JSON.parse(JSON.stringify(h.clusterData));t.trace(`Setting data for parent cluster XXX + Node.id = `,e,` + data=`,n.height,` +Parent cluster`,h.height),c.setNode(h.id,n),c.parent(e)||(t.trace(`Setting parent`,e,h.id),c.setParent(e,h.id,n))}if(t.info(`(Insert) Node XXX`+e+`: `+JSON.stringify(c.node(e))),n?.clusterNode){t.info(`Cluster identified XBX`,e,n.width,c.node(e));let{ranksep:r,nodesep:i}=c.graph();n.graph.setGraph({...n.graph.graph(),ranksep:r+25,nodesep:i});let a=await z(T,n.graph,l,f,c.node(e),g),o=a.elem;u(n,o),n.diff=a.diff||0,t.info(`New compound node after recursive render XAX`,e,`width`,n.width,`height`,n.height),s(o,n)}else c.children(e).length>0?(t.trace(`Cluster - the non recursive path XBX`,e,n.id,n,n.width,`Graph:`,c),t.trace(N(n.id,c)),w.set(n.id,{id:N(n.id,c),node:n})):(t.trace(`Node - the non recursive path XAX`,e,T,c.node(e),_),await i(T,c.node(e),{config:g,dir:_}))})),await e(async()=>{let e=c.edges().map(async function(e){let n=c.edge(e.v,e.w,e.name);t.info(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(e)),t.info(`Edge `+e.v+` -> `+e.w+`: `,e,` `,JSON.stringify(c.edge(e))),t.info(`Fix`,w,`ids:`,e.v,e.w,`Translating: `,w.get(e.v),w.get(e.w)),await m(C,n)});await Promise.all(e)},`processEdges`)(),t.info(`Graph before layout:`,JSON.stringify(x(c))),t.info(`############################################# XXX`),t.info(`### Layout ### XXX`),t.info(`############################################# XXX`),b(c),t.info(`Graph after layout:`,JSON.stringify(x(c)));let E=0,{subGraphTitleTotalMargin:D}=r(g);return await Promise.all(R(c).map(async function(e){let n=c.node(e);if(t.info(`Position XBX => `+e+`: (`+n.x,`,`+n.y,`) width: `,n.width,` height: `,n.height),n?.clusterNode)n.y+=D,t.info(`A tainted cluster node XBX1`,e,n.id,n.width,n.height,n.x,n.y,c.parent(e)),w.get(n.id).node=n,a(n);else if(c.children(e).length>0){t.info(`A pure cluster node XBX1`,e,n.id,n.x,n.y,n.width,n.height,c.parent(e)),n.height+=D,c.node(n.parentId);let r=n?.padding/2||0,i=n?.labelBBox?.height||0,a=i-r||0;t.debug(`OffsetY`,a,`labelHeight`,i,`halfPadding`,r),await o(y,n),w.get(n.id).node=n}else{let e=c.node(n.parentId);n.y+=D/2,t.info(`A regular node XBX1 - using the padding`,n.id,`parent`,n.parentId,n.width,n.height,n.x,n.y,`offsetY`,n.offsetY,`parent`,e,e?.offsetY,n),a(n)}})),c.edges().forEach(function(e){let n=c.edge(e);t.info(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(n),n),n.points.forEach(e=>e.y+=D/2),d(n,p(S,n,w,l,c.node(e.v),c.node(e.w),f))}),c.nodes().forEach(function(e){let n=c.node(e);t.info(e,n.type,n.diff),n.isGroup&&(E=n.diff)}),t.warn(`Returning from recursive render XAX`,v,E),{elem:v,diff:E}},`recursiveRender`),B=e(async(e,r)=>{let i=new y({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.config?.flowchart?.nodeSpacing||e.nodeSpacing,ranksep:e.config?.rankSpacing||e.config?.flowchart?.rankSpacing||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),a=r.select(`g`);f(a,e.markers,e.type,e.diagramId),c(),h(),l(),D(),e.nodes.forEach(e=>{i.setNode(e.id,{...e}),e.parentId&&i.setParent(e.id,e.parentId)}),t.debug(`Edges:`,e.edges),e.edges.forEach(e=>{if(e.start===e.end){let t=e.start,n=t+`---`+t+`---1`,r=t+`---`+t+`---2`,a=i.node(t);i.setNode(n,{domId:n,id:n,parentId:a.parentId,labelStyle:``,label:``,padding:0,shape:`labelRect`,style:``,width:10,height:10}),i.setParent(n,a.parentId),i.setNode(r,{domId:r,id:r,parentId:a.parentId,labelStyle:``,padding:0,shape:`labelRect`,label:``,style:``,width:10,height:10}),i.setParent(r,a.parentId);let o=structuredClone(e),s=structuredClone(e),c=structuredClone(e);o.label=``,o.arrowTypeEnd=`none`,o.endLabelLeft=``,o.endLabelRight=``,o.startLabelLeft=``,o.id=t+`-cyclic-special-1`,s.startLabelRight=``,s.startLabelLeft=``,s.endLabelLeft=``,s.endLabelRight=``,s.arrowTypeStart=`none`,s.arrowTypeEnd=`none`,s.id=t+`-cyclic-special-mid`,c.label=``,c.startLabelRight=``,c.startLabelLeft=``,c.arrowTypeStart=`none`,a.isGroup&&(o.fromCluster=t,c.toCluster=t),c.id=t+`-cyclic-special-2`,c.arrowTypeStart=`none`,i.setEdge(t,n,o,t+`-cyclic-special-0`),i.setEdge(n,r,s,t+`-cyclic-special-1`),i.setEdge(r,t,c,t+`-cych({...se,...c().eventmodeling}),`getConfig`),S={};function C(){let e=le,{ast:t}=S,r=E();if(!t)throw Error(`No data for EventModel`);return t.frames.forEach((i,a)=>{let o=N(i,t.dataEntities,r);e=q(e,{$kind:_,index:a,frame:i,textProps:o});let s;B(i)?(n.debug(`source frame`,i.sourceFrames),s=t.frames.filter(e=>i.sourceFrames.some(t=>t.$refText===e.name)),s.forEach(t=>{e=q(e,{$kind:y,index:a,frame:i,sourceFrame:t})})):e=q(e,{$kind:y,index:a,frame:i})}),e={...e,sortedSwimlanesArray:L(e.swimlanes)},e}e(C,`getState`);function w(e){S.ast=e}e(w,`setAst`);var T={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:`bold`,boxTextPadding:10,swimlaneTextFontWeight:`bold`,labelUiAutomation:`UI/Automation`,labelUiAutomationPrefix:`UI/A: `,labelCommandReadModel:`Command/Read Model`,labelCommandReadModelPrefix:`C/RM: `,labelEvents:`Events`,labelEventsPrefix:`Stream: `};function E(){return T}e(E,`getDiagramProps`);var le={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function D(e){let t=e.split(`.`);if(t.length===2)return t[0]}e(D,`extractNamespace`);function O(e){let t=e.split(`.`);return t.length===2?t[1]:e}e(O,`extractName`);function k(e,t){if(!(!t||t.length===0))return Object.values(e).find(e=>e.namespace===t)}e(k,`findSwimlaneByNamespace`);function A(e,t,n){return Math.max(t,...Object.keys(e).filter(e=>{let r=Number.parseInt(e);return r>t&&rNumber.parseInt(e)))+1}e(A,`findNextAvailableIndex`);function j(e,t){let n=D(e.entityIdentifier),r=k(t,n);switch(e.modelEntityType){case`ui`:case`pcr`:case`processor`:return r?{index:r.index,label:r.namespace||T.labelUiAutomation}:n?{index:A(t,0,100),label:T.labelUiAutomationPrefix+n}:{index:0,label:T.labelUiAutomation};case`rmo`:case`readmodel`:case`cmd`:case`command`:return r?{index:r.index,label:r.namespace||T.labelCommandReadModel}:n?{index:A(t,100,200),label:T.labelCommandReadModelPrefix+n}:{index:100,label:T.labelCommandReadModel};default:return r?{index:r.index,label:r.namespace||T.labelEvents}:n?{index:A(t,200,300),label:T.labelEventsPrefix+n}:{index:200,label:T.labelEvents}}}e(j,`calculateSwimlaneProps`);function M(e){let{themeVariables:t}=c();switch(e.modelEntityType){case`ui`:return{fill:t.emUiFill??`white`,stroke:t.emUiStroke??`#dbdada`};case`pcr`:case`processor`:return{fill:t.emProcessorFill??`#edb3f6`,stroke:t.emProcessorStroke??`#b88cbf`};case`rmo`:case`readmodel`:return{fill:t.emReadModelFill??`#d3f1a2`,stroke:t.emReadModelStroke??`#a3b732`};case`cmd`:case`command`:return{fill:t.emCommandFill??`#bcd6fe`,stroke:t.emCommandStroke??`#679ac3`};case`evt`:case`event`:return{fill:t.emEventFill??`#ffb778`,stroke:t.emEventStroke??`#c19a0f`};default:return{fill:`red`,stroke:`black`}}}e(M,`calculateEntityVisualProps`);function N(e,t,r){let i=c(),o=a(O(e.entityIdentifier)??``,i),s,l={fontSize:16,fontWeight:700,fontFamily:`"trebuchet ms", verdana, arial, sans-serif`,joinWith:`
    `},u=`${g(o,r.textMaxWidth,l)}`;if(e.dataInlineValue&&(s=e.dataInlineValue,s=s.substring(s.indexOf(`{`)+1),s=s.substring(0,s.lastIndexOf(`}`)-1),s=a(s,i),s=g(s,r.textMaxWidth,l),s=s.replaceAll(` `,` `)),e.dataReference){let n=t.find(t=>t.name===e.dataReference?.$refText);n&&(s=n.dataBlockValue,s=s.substring(s.indexOf(`{ +`)+2),s=s.substring(0,s.lastIndexOf(`}`)-1),s=a(s,i),s=g(s,r.textMaxWidth,l),s=s.replaceAll(` `,` `),s+=`
    `)}let d=s!==void 0;d&&(u+=`

    ${s}`);let f={fontSize:l.fontSize,fontWeight:l.fontWeight,fontFamily:l.fontFamily},p=ee(u,f),m=d?p.width/3:p.width,h={content:u,width:m,height:p.height};return n.debug(`[${e.name}] ${e.entityIdentifier} text`,h),h}e(N,`calculateTextProps`);function P(e,t){let n=t,r=M(n.frame),i={width:n.textProps.width+2*T.boxTextPadding,height:n.textProps.height+2*T.boxTextPadding};return[{$kind:v,frame:n.frame,index:n.index,visual:r,dimension:i,textProps:n.textProps}]}e(P,`decidePositionFrame`);function F(e,t,n){return t===void 0?T.contentStartX:t.index===e.index&&e.r?e.r+T.boxPadding:n===void 0?T.contentStartX:n.r-T.boxOverlap+T.boxPadding}e(F,`calculateX`);function I(e,t){let n=[...e.map(e=>e.r),t];return Math.max(...n)}e(I,`calculateMaxRight`);function L(e){return Object.values(e).sort((e,t)=>e.index-t.index)}e(L,`sortedSwimlanesArray`);function R(e,t){let n=t,r=j(n.frame,e.swimlanes),i;i=r.index in e.swimlanes?e.swimlanes[r.index]:{index:r.index,label:r.label,r:0,y:r.index*T.swimlaneMinHeight+T.swimlaneGap,height:T.swimlaneMinHeight,maxHeight:T.swimlaneMinHeight};let a=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,o=e.previousSwimlaneNumber===void 0?void 0:e.swimlanes[e.previousSwimlaneNumber],s={width:Math.max(T.boxMinWidth,Math.min(T.boxMaxWidth,n.dimension.width))+2*T.boxPadding,height:Math.max(T.boxMinHeight,Math.min(T.boxMaxHeight,n.dimension.height))+2*T.boxPadding},c=F(i,o,a),l=c+s.width+T.boxPadding,u=I(Object.values(e.swimlanes),l);i.r=c+s.width,i.maxHeight=Math.max(i.maxHeight,s.height),i.height=Math.max(T.swimlaneMinHeight,i.maxHeight)+2*T.swimlanePadding;let d={x:c,y:T.swimlanePadding+i.y,r:l,dimension:s,leftSibling:!1,swimlane:i,visual:n.visual,text:n.textProps.content,frame:n.frame,index:n.index},f={...e,boxes:[...e.boxes,d],swimlanes:{...e.swimlanes,[`${i.index}`]:i},previousSwimlaneNumber:r.index,previousFrame:n.frame,maxR:u},p=L(f.swimlanes);p.length>0&&(p[0].y=0);for(let e=1;e0}e(B,`hasSourceFrame`);function V(e,t){if(t!=null)return e.find(e=>e.frame.name===t.name)}e(V,`findBoxByFrame`);function H(e,t,n){if(!(n<0))for(let r=n;r>=0;r--){let n=e[r];if(n.swimlane.index!==t)return n}}e(H,`findBoxByLineIndex`);function U(e,t){let n=t;if(te(n.frame)||z(n.index,n.frame))return[];let r=V(e.boxes,n.frame);if(r===void 0)throw Error(`Target box not found for frame ${n.frame.name}`);let i;return i=n.sourceFrame?V(e.boxes,n.sourceFrame):H(e.boxes,r.swimlane.index,n.index-1),i===void 0?[]:[{$kind:b,frame:n.frame,index:n.index,sourceBox:i,targetBox:r}]}e(U,`decidePositionRelation`);function W(e,t){let n=t,r={visual:{fill:`none`,stroke:`#000`},source:{x:n.sourceBox.x,y:n.sourceBox.y},target:{x:n.targetBox.x,y:n.targetBox.y},sourceBox:n.sourceBox,targetBox:n.targetBox};return{...e,relations:[...e.relations,r]}}e(W,`evolveRelationPositioned`);var ue={[_]:P,[y]:U},de={[v]:R,[b]:W};function G(e,t){let r=ue[t.$kind];if(r==null)return[];let i=r(e,t);return n.debug(`decided events`,i),i}e(G,`decide`);function K(e,t){let r=t.reduce((e,t)=>{let n=de[t.$kind];return n==null?e:n(e,t)},e);return n.debug(`evolve events`,{state:e,newState:r,events:t}),r}e(K,`evolve`);function q(e,t){return K(e,G(e,t))}e(q,`dispatch`);var J={getConfig:ce,setOptions:ie,getOptions:ae,clear:oe,setAccTitle:l,getAccTitle:m,getAccDescription:u,setAccDescription:o,setDiagramTitle:s,getDiagramTitle:i,setAst:w,getDiagramProps:E,getState:C},fe={parse:e(async e=>{let t=await ne(`eventmodeling`,e);n.debug(t),J.setAst(t),re(t,J)},`parse`)},Y=r()?.eventmodeling;function X(e,t){return n=>{let r=n.swimlane.y+t.swimlanePadding,i=e.append(`g`).attr(`class`,`em-box`);i.append(`rect`).attr(`x`,n.x).attr(`y`,r).attr(`rx`,`3`).attr(`width`,n.dimension.width).attr(`height`,n.dimension.height).attr(`stroke`,n.visual.stroke).attr(`fill`,n.visual.fill),i.append(`foreignObject`).attr(`x`,n.x+t.boxPadding).attr(`y`,r+10).attr(`width`,n.dimension.width-2*t.boxPadding).attr(`height`,n.dimension.height-2*t.boxPadding).append(`xhtml:div`).style(`display`,`table`).style(`height`,`100%`).style(`width`,`100%`).append(`span`).style(`display`,`table-cell`).style(`text-align`,`center`).style(`vertical-align`,`middle`).html(n.text)}}e(X,`renderD3Box`);function Z(e,t){return e>t}e(Z,`dirUpwards`);function Q(e,t,r,i){return a=>{let o=a.sourceBox.swimlane.y+t.swimlanePadding,s=a.targetBox.swimlane.y+t.swimlanePadding,c=Z(o,s),l=a.sourceBox.x+a.sourceBox.dimension.width*2/3,u=a.targetBox.x+a.targetBox.dimension.width/3,d,f;n.debug(`rendering relation up=${c} for `,{sourceBox:a.sourceBox,targetBox:a.targetBox}),c?(d=o,f=s+a.targetBox.dimension.height):(d=o+a.sourceBox.dimension.height,f=s);let p=i.emRelationStroke??a.visual.stroke;e.append(`path`).attr(`class`,`em-relation`).attr(`fill`,a.visual.fill).attr(`stroke`,p).attr(`stroke-width`,`1`).attr(`marker-end`,`url(#${r})`).attr(`d`,`M${l} ${d} L${u} ${f}`)}}e(Q,`renderD3Relation`);function $(e,t,n,r){return i=>{let a=e.append(`g`).attr(`class`,`em-swimlane`),o=r.emSwimlaneBackgroundOdd??`rgb(250,250,250)`,s=r.emSwimlaneBackgroundStroke??`rgb(240,240,240)`;a.append(`rect`).attr(`x`,0).attr(`y`,i.y).attr(`rx`,`3`).attr(`width`,t+n.swimlanePadding).attr(`height`,i.height).attr(`fill`,o).attr(`stroke`,s),a.append(`text`).attr(`font-weight`,n.swimlaneTextFontWeight).attr(`x`,30).attr(`y`,i.y+30).text(i.label)}}e($,`renderD3Swimlane`);var pe={parser:fe,db:J,renderer:{draw:e(function(e,i,a,o){if(n.debug(`in eventmodeling renderer`,e+` +`,`id:`,i,a),!Y)throw Error(`EventModeling config not found`);let s=o.db,{themeVariables:c,eventmodeling:l}=r(),u=t(`[id="${i}"]`),d=s.getDiagramProps(),f=s.getState(),m=`em-arrowhead-${i}`,h=c.emArrowhead??`#000000`;f.sortedSwimlanesArray.forEach($(u,f.maxR,d,c)),f.boxes.forEach(X(u,d)),f.relations.forEach(Q(u,d,m,c)),u.append(`defs`).append(`marker`).attr(`id`,m).attr(`markerWidth`,`10`).attr(`markerHeight`,`7`).attr(`refX`,`10`).attr(`refY`,`3.5`).attr(`orient`,`auto`).append(`polygon`).attr(`points`,`0 0, 10 3.5, 0 7`).attr(`fill`,h),p(void 0,u,l?.padding??30,l?.useMaxWidth)},`draw`)},styles:e(e=>``,`getStyles`)};export{pe as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/diagram-CAG56N7L-xpVb9jbo.js b/docs/dist/assets/diagram-CAG56N7L-xpVb9jbo.js new file mode 100644 index 00000000..55db85c6 --- /dev/null +++ b/docs/dist/assets/diagram-CAG56N7L-xpVb9jbo.js @@ -0,0 +1,10 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{T as t}from"./chunk-V7P66DNM-D246Sefn.js";import{E as n,J as r,Q as i,S as a,Y as o,b as s,l as c,m as l,o as u,x as d}from"./chunk-Q52JI7PB-BeSPinqD.js";import{t as f}from"./chunk-PUIB63ON-iBBh92CL.js";import"./chunk-7TFACZ55-BO7C1qvL.js";import{i as p}from"./chunk-BSZA5ISF-LqNHBHyp.js";import{y as m}from"./chunk-BBDM4ZFP-DhnAO8sj.js";import{t as h}from"./chunk-6ZKBGPIT-B4RTUexp.js";import{t as g}from"./chunk-IALYP65X-Bv3ioVcB.js";var _=new g(()=>({cnt:1,stack:[{id:0,level:-1,name:`/`,children:[]}]})),v=e(()=>{_.reset(),u()},`clear`),y=e(()=>_.records.stack[0],`getRoot`),b=e(()=>_.records.cnt,`getCount`),x=l.treeView,S={clear:v,addNode:e((e,t)=>{for(;e<=_.records.stack[_.records.stack.length-1].level;)_.records.stack.pop();let n={id:_.records.cnt++,level:e,name:t,children:[]};_.records.stack[_.records.stack.length-1].children.push(n),_.records.stack.push(n)},`addNode`),getRoot:y,getCount:b,getConfig:e(()=>p(x,a().treeView),`getConfig`),getAccTitle:d,getAccDescription:s,getDiagramTitle:n,setAccDescription:r,setAccTitle:o,setDiagramTitle:i},C=e(e=>{h(e,S),e.nodes.map(e=>S.addNode(e.indent?parseInt(e.indent):0,e.name))},`populate`),w={parse:e(async e=>{let n=await m(`treeView`,e);t.debug(n),C(n)},`parse`)},T=e((e,t,n,r,i)=>{let a=r.append(`text`).text(n.name).attr(`dominant-baseline`,`middle`).attr(`class`,`treeView-node-label`),{height:o,width:s}=a.node().getBBox(),c=o+i.paddingY*2,l=s+i.paddingX*2;a.attr(`x`,e+i.paddingX),a.attr(`y`,t+c/2),n.BBox={x:e,y:t,width:l,height:c}},`positionLabel`),E=e((e,t,n,r,i,a)=>e.append(`line`).attr(`x1`,t).attr(`y1`,n).attr(`x2`,r).attr(`y2`,i).attr(`stroke-width`,a).attr(`class`,`treeView-node-line`),`positionLine`),D=e((t,n,r)=>{let i=0,a=0,o=e((e,t,n,r)=>{let o=r*(n.rowIndent+n.paddingX);T(o,i,t,e,n);let{height:s,width:c}=t.BBox;E(e,o-n.rowIndent,i+s/2,o,i+s/2,n.lineThickness),a=Math.max(a,o+c),i+=s},`drawNode`),s=e((e,n=0)=>{o(t,e,r,n),e.children.forEach(e=>{s(e,n+1)});let{x:i,y:a,height:c}=e.BBox;if(e.children.length){let{y:n,height:o}=e.children[e.children.length-1].BBox;E(t,i+r.paddingX,a+c,i+r.paddingX,n+o/2+r.lineThickness/2,r.lineThickness)}},`processNode`);return s(n),{totalHeight:i,totalWidth:a}},`drawTree`),O={draw:e((e,n,r,i)=>{t.debug(`Rendering treeView diagram +`+e);let a=i.db,o=a.getRoot(),s=a.getConfig(),l=f(n),u=l.append(`g`);u.attr(`class`,`tree-view`);let{totalHeight:d,totalWidth:p}=D(u,o,s);l.attr(`viewBox`,`-${s.lineThickness/2} 0 ${p} ${d}`),c(l,d,p,s.useMaxWidth)},`draw`)},k={labelFontSize:`16px`,labelColor:`black`,lineColor:`black`},A={db:S,renderer:O,parser:w,styles:e(({treeView:e})=>{let{labelFontSize:t,labelColor:n,lineColor:r}=p(k,e);return` + .treeView-node-label { + font-size: ${t}; + fill: ${n}; + } + .treeView-node-line { + stroke: ${r}; + } + `},`styles`)};export{A as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/diagram-N34NG4AO-Ce2IMmXG.js b/docs/dist/assets/diagram-N34NG4AO-Ce2IMmXG.js new file mode 100644 index 00000000..de5ae86b --- /dev/null +++ b/docs/dist/assets/diagram-N34NG4AO-Ce2IMmXG.js @@ -0,0 +1,24 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{T as t}from"./chunk-V7P66DNM-D246Sefn.js";import{E as n,J as r,Q as i,S as a,Y as o,b as s,l as c,m as l,o as u,x as d}from"./chunk-Q52JI7PB-BeSPinqD.js";import{t as f}from"./chunk-PUIB63ON-iBBh92CL.js";import"./chunk-7TFACZ55-BO7C1qvL.js";import{i as p}from"./chunk-BSZA5ISF-LqNHBHyp.js";import{y as m}from"./chunk-BBDM4ZFP-DhnAO8sj.js";import{t as h}from"./chunk-6ZKBGPIT-B4RTUexp.js";var g=l.packet,_=class{constructor(){this.packet=[],this.setAccTitle=o,this.getAccTitle=d,this.setDiagramTitle=i,this.getDiagramTitle=n,this.getAccDescription=s,this.setAccDescription=r}static{e(this,`PacketDB`)}getConfig(){let e=p({...g,...a().packet});return e.showBits&&(e.paddingY+=10),e}getPacket(){return this.packet}pushWord(e){e.length>0&&this.packet.push(e)}clear(){u(),this.packet=[]}},v=1e4,y=e((e,n)=>{h(e,n);let r=-1,i=[],a=1,{bitsPerRow:o}=n.getConfig();for(let{start:s,end:c,bits:l,label:u}of e.blocks){if(s!==void 0&&c!==void 0&&c{if(e.start===void 0)throw Error(`start should have been set during first phase`);if(e.end===void 0)throw Error(`end should have been set during first phase`);if(e.start>e.end)throw Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*n)return[e,void 0];let r=t*n-1,i=t*n;return[{start:e.start,end:r,label:e.label,bits:r-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},`getNextFittingBlock`),x={parser:{yy:void 0},parse:e(async e=>{let n=await m(`packet`,e),r=x.parser?.yy;if(!(r instanceof _))throw Error(`parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);t.debug(n),y(n,r)},`parse`)},S=e((e,t,n,r)=>{let i=r.db,a=i.getConfig(),{rowHeight:o,paddingY:s,bitWidth:l,bitsPerRow:u}=a,d=i.getPacket(),p=i.getDiagramTitle(),m=o+s,h=m*(d.length+1)-(p?0:o),g=l*u+2,_=f(t);_.attr(`viewBox`,`0 0 ${g} ${h}`),c(_,h,g,a.useMaxWidth);for(let[e,t]of d.entries())C(_,t,e,a);_.append(`text`).text(p).attr(`x`,g/2).attr(`y`,h-m/2).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).attr(`class`,`packetTitle`)},`draw`),C=e((e,t,n,{rowHeight:r,paddingX:i,paddingY:a,bitWidth:o,bitsPerRow:s,showBits:c})=>{let l=e.append(`g`),u=n*(r+a)+a;for(let e of t){let t=e.start%s*o+1,n=(e.end-e.start+1)*o-i;if(l.append(`rect`).attr(`x`,t).attr(`y`,u).attr(`width`,n).attr(`height`,r).attr(`class`,`packetBlock`),l.append(`text`).attr(`x`,t+n/2).attr(`y`,u+r/2).attr(`class`,`packetLabel`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).text(e.label),!c)continue;let a=e.end===e.start,d=u-2;l.append(`text`).attr(`x`,t+(a?n/2:0)).attr(`y`,d).attr(`class`,`packetByte start`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,a?`middle`:`start`).text(e.start),a||l.append(`text`).attr(`x`,t+n).attr(`y`,d).attr(`class`,`packetByte end`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,`end`).text(e.end)}},`drawWord`),w={draw:S},T={byteFontSize:`10px`,startByteColor:`black`,endByteColor:`black`,labelColor:`black`,labelFontSize:`12px`,titleColor:`black`,titleFontSize:`14px`,blockStrokeColor:`black`,blockStrokeWidth:`1`,blockFillColor:`#efefef`},E={parser:x,get db(){return new _},renderer:w,styles:e(({packet:e}={})=>{let t=p(T,e);return` + .packetByte { + font-size: ${t.byteFontSize}; + } + .packetByte.start { + fill: ${t.startByteColor}; + } + .packetByte.end { + fill: ${t.endByteColor}; + } + .packetLabel { + fill: ${t.labelColor}; + font-size: ${t.labelFontSize}; + } + .packetTitle { + fill: ${t.titleColor}; + font-size: ${t.titleFontSize}; + } + .packetBlock { + stroke: ${t.blockStrokeColor}; + stroke-width: ${t.blockStrokeWidth}; + fill: ${t.blockFillColor}; + } + `},`styles`)};export{E as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/diagram-OKXK7GIF-BJX4wcF0.js b/docs/dist/assets/diagram-OKXK7GIF-BJX4wcF0.js new file mode 100644 index 00000000..3cc0a4d8 --- /dev/null +++ b/docs/dist/assets/diagram-OKXK7GIF-BJX4wcF0.js @@ -0,0 +1,24 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{I as t,M as n,T as r,b as i,et as a,v as o}from"./chunk-V7P66DNM-D246Sefn.js";import{E as s,J as c,Q as l,S as u,Y as d,b as f,k as p,l as m,m as h,o as g,x as _}from"./chunk-Q52JI7PB-BeSPinqD.js";import{t as v}from"./chunk-PUIB63ON-iBBh92CL.js";import{i as y,n as b}from"./chunk-GTILCTU2-D-9HFTK6.js";import"./chunk-7TFACZ55-BO7C1qvL.js";import{i as x}from"./chunk-BSZA5ISF-LqNHBHyp.js";import{y as S}from"./chunk-BBDM4ZFP-DhnAO8sj.js";import{t as C}from"./chunk-6ZKBGPIT-B4RTUexp.js";import{t as w}from"./chunk-KEUPHFFI-DMlFzrf2.js";var T=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=d,this.getAccTitle=_,this.setDiagramTitle=l,this.getDiagramTitle=s,this.getAccDescription=f,this.setAccDescription=c}static{e(this,`TreeMapDB`)}getNodes(){return this.nodes}getConfig(){let e=h,t=u();return x({...e.treemap,...t.treemap??{}})}addNode(e,t){this.nodes.push(e),this.levels.set(e,t),t===0&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:``,children:this.outerNodes}}addClass(e,t){let n=this.classes.get(e)??{id:e,styles:[],textStyles:[]},r=t.replace(/\\,/g,`§§§`).replace(/,/g,`;`).replace(/§§§/g,`,`).split(`;`);r&&r.forEach(e=>{b(e)&&(n?.textStyles?n.textStyles.push(e):n.textStyles=[e]),n?.styles?n.styles.push(e):n.styles=[e]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){g(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function E(e){if(!e.length)return[];let t=[],n=[];return e.forEach(e=>{let r={name:e.name,children:e.type===`Leaf`?void 0:[]};for(r.classSelector=e?.classSelector,e?.cssCompiledStyles&&(r.cssCompiledStyles=e.cssCompiledStyles),e.type===`Leaf`&&e.value!==void 0&&(r.value=e.value);n.length>0&&n[n.length-1].level>=e.level;)n.pop();if(n.length===0)t.push(r);else{let e=n[n.length-1].node;e.children?e.children.push(r):e.children=[r]}e.type!==`Leaf`&&n.push({node:r,level:e.level})}),t}e(E,`buildHierarchy`);var D=e((t,n)=>{C(t,n);let r=[];for(let e of t.TreemapRows??[])e.$type===`ClassDefStatement`&&n.addClass(e.className??``,e.styleText??``);for(let e of t.TreemapRows??[]){let t=e.item;if(!t)continue;let i=e.indent?parseInt(e.indent):0,a=O(t),o=t.classSelector?n.getStylesForClass(t.classSelector):[],s=o.length>0?o:void 0,c={level:i,name:a,type:t.$type,value:t.value,classSelector:t.classSelector,cssCompiledStyles:s};r.push(c)}let i=E(r),a=e((e,t)=>{for(let r of e)n.addNode(r,t),r.children&&r.children.length>0&&a(r.children,t+1)},`addNodesRecursively`);a(i,0)},`populate`),O=e(e=>e.name?String(e.name):``,`getItemName`),k={parser:{yy:void 0},parse:e(async e=>{try{let t=await S(`treemap`,e);r.debug(`Treemap AST:`,t);let n=k.parser?.yy;if(!(n instanceof T))throw Error(`parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);D(t,n)}catch(e){throw r.error(`Error parsing treemap:`,e),e}},`parse`)},A=10,j=10,M=25,N={draw:e((s,c,l,d)=>{let f=d.db,p=f.getConfig(),h=p.padding??A,g=f.getDiagramTitle(),_=f.getRoot(),{themeVariables:b}=u();if(!_)return;let x=g?30:0,S=v(c),C=p.nodeWidth?p.nodeWidth*j:960,T=p.nodeHeight?p.nodeHeight*j:500,E=C,D=T+x;S.attr(`viewBox`,`0 0 ${E} ${D}`),m(S,D,E,p.useMaxWidth);let O;try{let t=p.valueFormat||`,`;if(t===`$0,0`)O=e(e=>`$`+o(`,`)(e),`valueFormat`);else if(t.startsWith(`$`)&&t.includes(`,`)){let n=/\.\d+/.exec(t),r=n?n[0]:``;O=e(e=>`$`+o(`,`+r)(e),`valueFormat`)}else if(t.startsWith(`$`)){let n=t.substring(1);O=e(e=>`$`+o(n||``)(e),`valueFormat`)}else O=o(t)}catch(e){r.error(`Error creating format function:`,e),O=o(`,`)}let k=n().range([`transparent`,b.cScale0,b.cScale1,b.cScale2,b.cScale3,b.cScale4,b.cScale5,b.cScale6,b.cScale7,b.cScale8,b.cScale9,b.cScale10,b.cScale11]),N=n().range([`transparent`,b.cScalePeer0,b.cScalePeer1,b.cScalePeer2,b.cScalePeer3,b.cScalePeer4,b.cScalePeer5,b.cScalePeer6,b.cScalePeer7,b.cScalePeer8,b.cScalePeer9,b.cScalePeer10,b.cScalePeer11]),P=n().range([b.cScaleLabel0,b.cScaleLabel1,b.cScaleLabel2,b.cScaleLabel3,b.cScaleLabel4,b.cScaleLabel5,b.cScaleLabel6,b.cScaleLabel7,b.cScaleLabel8,b.cScaleLabel9,b.cScaleLabel10,b.cScaleLabel11]);g&&S.append(`text`).attr(`x`,E/2).attr(`y`,x/2).attr(`class`,`treemapTitle`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(g);let F=S.append(`g`).attr(`transform`,`translate(0, ${x})`).attr(`class`,`treemapContainer`),I=i(_).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),L=a().size([C,T]).paddingTop(e=>e.children&&e.children.length>0?M+j:0).paddingInner(h).paddingLeft(e=>e.children&&e.children.length>0?j:0).paddingRight(e=>e.children&&e.children.length>0?j:0).paddingBottom(e=>e.children&&e.children.length>0?j:0).round(!0)(I),R=L.descendants().filter(e=>e.children&&e.children.length>0),z=F.selectAll(`.treemapSection`).data(R).enter().append(`g`).attr(`class`,`treemapSection`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);z.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,M).attr(`class`,`treemapSectionHeader`).attr(`fill`,`none`).attr(`fill-opacity`,.6).attr(`stroke-width`,.6).attr(`style`,e=>e.depth===0?`display: none;`:``),z.append(`clipPath`).attr(`id`,(e,t)=>`clip-section-${c}-${t}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-12)).attr(`height`,M),z.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,(e,t)=>`treemapSection section${t}`).attr(`fill`,e=>k(e.data.name)).attr(`fill-opacity`,.6).attr(`stroke`,e=>N(e.data.name)).attr(`stroke-width`,2).attr(`stroke-opacity`,.4).attr(`style`,e=>{if(e.depth===0)return`display: none;`;let t=y({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+`;`+t.borderStyles.join(`;`)}),z.append(`text`).attr(`class`,`treemapSectionLabel`).attr(`x`,6).attr(`y`,M/2).attr(`dominant-baseline`,`middle`).text(e=>e.depth===0?``:e.data.name).attr(`font-weight`,`bold`).attr(`style`,e=>e.depth===0?`display: none;`:`dominant-baseline: middle; font-size: 12px; fill:`+P(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+y({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).each(function(e){if(e.depth===0)return;let n=t(this),r=e.data.name;n.text(r);let i=e.x1-e.x0,a;a=p.showValues!==!1&&e.value?i-10-30-10-6:i-6-6;let o=Math.max(15,a),s=n.node();if(s.getComputedTextLength()>o){let e=r;for(;e.length>0;){if(e=r.substring(0,e.length-1),e.length===0){n.text(`...`),s.getComputedTextLength()>o&&n.text(``);break}if(n.text(e+`...`),s.getComputedTextLength()<=o)break}}}),p.showValues!==!1&&z.append(`text`).attr(`class`,`treemapSectionValue`).attr(`x`,e=>e.x1-e.x0-10).attr(`y`,M/2).attr(`text-anchor`,`end`).attr(`dominant-baseline`,`middle`).text(e=>e.value?O(e.value):``).attr(`font-style`,`italic`).attr(`style`,e=>e.depth===0?`display: none;`:`text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:`+P(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+y({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`));let B=L.leaves(),V=F.selectAll(`.treemapLeafGroup`).data(B).enter().append(`g`).attr(`class`,(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:``}x`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);V.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,`treemapLeaf`).attr(`fill`,e=>e.parent?k(e.parent.data.name):k(e.data.name)).attr(`style`,e=>y({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr(`fill-opacity`,.3).attr(`stroke`,e=>e.parent?k(e.parent.data.name):k(e.data.name)).attr(`stroke-width`,3),V.append(`clipPath`).attr(`id`,(e,t)=>`clip-${c}-${t}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-4)).attr(`height`,e=>Math.max(0,e.y1-e.y0-4)),V.append(`text`).attr(`class`,`treemapLabel`).attr(`x`,e=>(e.x1-e.x0)/2).attr(`y`,e=>(e.y1-e.y0)/2).attr(`style`,e=>`text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:`+P(e.data.name)+`;`+y({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${c}-${t})`).text(e=>e.data.name).each(function(e){let n=t(this),r=e.x1-e.x0,i=e.y1-e.y0,a=n.node(),o=r-8,s=i-8;if(o<10||s<10){n.style(`display`,`none`);return}let c=parseInt(n.style(`font-size`),10),l=.6;for(;a.getComputedTextLength()>o&&c>8;)c--,n.style(`font-size`,`${c}px`);let u=Math.max(6,Math.min(28,Math.round(c*l))),d=c+2+u;for(;d>s&&c>8&&(c--,u=Math.max(6,Math.min(28,Math.round(c*l))),!(u<6&&c===8));)n.style(`font-size`,`${c}px`),d=c+2+u;n.style(`font-size`,`${c}px`),(a.getComputedTextLength()>o||c<8||s(e.x1-e.x0)/2).attr(`y`,function(e){return(e.y1-e.y0)/2}).attr(`style`,e=>`text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:`+P(e.data.name)+`;`+y({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${c}-${t})`).text(e=>e.value?O(e.value):``).each(function(e){let n=t(this),r=this.parentNode;if(!r){n.style(`display`,`none`);return}let i=t(r).select(`.treemapLabel`);if(i.empty()||i.style(`display`)===`none`){n.style(`display`,`none`);return}let a=parseFloat(i.style(`font-size`)),o=Math.max(6,Math.min(28,Math.round(a*.6)));n.style(`font-size`,`${o}px`);let s=(e.y1-e.y0)/2+a/2+2;n.attr(`y`,s);let c=e.x1-e.x0,l=e.y1-e.y0-4,u=c-8;n.node().getComputedTextLength()>u||s+o>l||o<6?n.style(`display`,`none`):n.style(`display`,null)}),w(S,p.diagramPadding??8,`flowchart`,p?.useMaxWidth||!1)},`draw`),getClasses:e(function(e,t){return t.db.getClasses()},`getClasses`)},P={sectionStrokeColor:`black`,sectionStrokeWidth:`1`,sectionFillColor:`#efefef`,leafStrokeColor:`black`,leafStrokeWidth:`1`,leafFillColor:`#efefef`,labelFontSize:`12px`,valueFontSize:`10px`,titleFontSize:`14px`},F={parser:k,get db(){return new T},renderer:N,styles:e(({treemap:e}={})=>{let t=x(p(),u().themeVariables),n=x(P,e),r=n.titleColor??t.titleColor,i=n.labelColor??t.textColor,a=n.valueColor??t.textColor;return` + .treemapNode.section { + stroke: ${n.sectionStrokeColor}; + stroke-width: ${n.sectionStrokeWidth}; + fill: ${n.sectionFillColor}; + } + .treemapNode.leaf { + stroke: ${n.leafStrokeColor}; + stroke-width: ${n.leafStrokeWidth}; + fill: ${n.leafFillColor}; + } + .treemapLabel { + fill: ${i}; + font-size: ${n.labelFontSize}; + } + .treemapValue { + fill: ${a}; + font-size: ${n.valueFontSize}; + } + .treemapTitle { + fill: ${r}; + font-size: ${n.titleFontSize}; + } + `},`getStyles`)};export{F as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/diagram-ZEGC52LS-D6s9aonb.js b/docs/dist/assets/diagram-ZEGC52LS-D6s9aonb.js new file mode 100644 index 00000000..b3c02df0 --- /dev/null +++ b/docs/dist/assets/diagram-ZEGC52LS-D6s9aonb.js @@ -0,0 +1,43 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{T as t}from"./chunk-V7P66DNM-D246Sefn.js";import{E as n,J as r,Q as i,S as a,Y as o,b as s,k as c,l,m as u,o as d,x as f}from"./chunk-Q52JI7PB-BeSPinqD.js";import{t as p}from"./chunk-PUIB63ON-iBBh92CL.js";import"./chunk-7TFACZ55-BO7C1qvL.js";import{i as m}from"./chunk-BSZA5ISF-LqNHBHyp.js";import{y as h}from"./chunk-BBDM4ZFP-DhnAO8sj.js";import{t as g}from"./chunk-6ZKBGPIT-B4RTUexp.js";var _={showLegend:!0,ticks:5,max:null,min:0,graticule:`circle`},v={axes:[],curves:[],options:_},y=structuredClone(v),b=u.radar,x=e(()=>m({...b,...a().radar}),`getConfig`),S=e(()=>y.axes,`getAxes`),C=e(()=>y.curves,`getCurves`),w=e(()=>y.options,`getOptions`),T=e(e=>{y.axes=e.map(e=>({name:e.name,label:e.label??e.name}))},`setAxes`),E=e(e=>{y.curves=e.map(e=>({name:e.name,label:e.label??e.name,entries:D(e.entries)}))},`setCurves`),D=e(e=>{if(e[0].axis==null)return e.map(e=>e.value);let t=S();if(t.length===0)throw Error(`Axes must be populated before curves for reference entries`);return t.map(t=>{let n=e.find(e=>e.axis?.$refText===t.name);if(n===void 0)throw Error(`Missing entry for axis `+t.label);return n.value})},`computeCurveEntries`),O={getAxes:S,getCurves:C,getOptions:w,setAxes:T,setCurves:E,setOptions:e(e=>{let t=e.reduce((e,t)=>(e[t.name]=t,e),{});y.options={showLegend:t.showLegend?.value??_.showLegend,ticks:t.ticks?.value??_.ticks,max:t.max?.value??_.max,min:t.min?.value??_.min,graticule:t.graticule?.value??_.graticule}},`setOptions`),getConfig:x,clear:e(()=>{d(),y=structuredClone(v)},`clear`),setAccTitle:o,getAccTitle:f,setDiagramTitle:i,getDiagramTitle:n,getAccDescription:s,setAccDescription:r},k=e(e=>{g(e,O);let{axes:t,curves:n,options:r}=e;O.setAxes(t),O.setCurves(n),O.setOptions(r)},`populate`),A={parse:e(async e=>{let n=await h(`radar`,e);t.debug(n),k(n)},`parse`)},j=e((e,t,n,r)=>{let i=r.db,a=i.getAxes(),o=i.getCurves(),s=i.getOptions(),c=i.getConfig(),l=i.getDiagramTitle(),u=M(p(t),c),d=s.max??Math.max(...o.map(e=>Math.max(...e.entries))),f=s.min,m=Math.min(c.width,c.height)/2;N(u,a,m,s.ticks,s.graticule),P(u,a,m,c),F(u,a,o,f,d,s.graticule,c),R(u,o,s.showLegend,c),u.append(`text`).attr(`class`,`radarTitle`).text(l).attr(`x`,0).attr(`y`,-c.height/2-c.marginTop)},`draw`),M=e((e,t)=>{let n=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,i={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return l(e,r,n,t.useMaxWidth??!0),e.attr(`viewBox`,`0 0 ${n} ${r}`),e.append(`g`).attr(`transform`,`translate(${i.x}, ${i.y})`)},`drawFrame`),N=e((e,t,n,r,i)=>{if(i===`circle`)for(let t=0;t{let n=2*t*Math.PI/i-Math.PI/2;return`${o*Math.cos(n)},${o*Math.sin(n)}`}).join(` `);e.append(`polygon`).attr(`points`,s).attr(`class`,`radarGraticule`)}}},`drawGraticule`),P=e((e,t,n,r)=>{let i=t.length;for(let a=0;a{if(t.entries.length!==s)return;let l=t.entries.map((e,t)=>{let n=2*Math.PI*t/s-Math.PI/2,a=I(e,r,i,c);return{x:a*Math.cos(n),y:a*Math.sin(n)}});a===`circle`?e.append(`path`).attr(`d`,L(l,o.curveTension)).attr(`class`,`radarCurve-${n}`):a===`polygon`&&e.append(`polygon`).attr(`points`,l.map(e=>`${e.x},${e.y}`).join(` `)).attr(`class`,`radarCurve-${n}`)})}e(F,`drawCurves`);function I(e,t,n,r){return r*(Math.min(Math.max(e,t),n)-t)/(n-t)}e(I,`relativeRadius`);function L(e,t){let n=e.length,r=`M${e[0].x},${e[0].y}`;for(let i=0;i{let r=e.append(`g`).attr(`transform`,`translate(${i}, ${a+n*20})`);r.append(`rect`).attr(`width`,12).attr(`height`,12).attr(`class`,`radarLegendBox-${n}`),r.append(`text`).attr(`x`,16).attr(`y`,0).attr(`class`,`radarLegendText`).text(t.label)})}e(R,`drawLegend`);var z={draw:j},B=e((e,t)=>{let n=``;for(let r=0;r{let t=m(c(),a().themeVariables);return{themeVariables:t,radarOptions:m(t.radar,e)}},`buildRadarStyleOptions`),H={parser:A,db:O,renderer:z,styles:e(({radar:e}={})=>{let{themeVariables:t,radarOptions:n}=V(e);return` + .radarTitle { + font-size: ${t.fontSize}; + color: ${t.titleColor}; + dominant-baseline: hanging; + text-anchor: middle; + } + .radarAxisLine { + stroke: ${n.axisColor}; + stroke-width: ${n.axisStrokeWidth}; + } + .radarAxisLabel { + dominant-baseline: middle; + text-anchor: middle; + font-size: ${n.axisLabelFontSize}px; + color: ${n.axisColor}; + } + .radarGraticule { + fill: ${n.graticuleColor}; + fill-opacity: ${n.graticuleOpacity}; + stroke: ${n.graticuleColor}; + stroke-width: ${n.graticuleStrokeWidth}; + } + .radarLegendText { + text-anchor: start; + font-size: ${n.legendFontSize}px; + dominant-baseline: hanging; + } + ${B(t,n)} + `},`styles`)};export{H as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/entry-B0jbhACa.css b/docs/dist/assets/entry-B0jbhACa.css deleted file mode 100644 index d0c3da5b..00000000 --- a/docs/dist/assets/entry-B0jbhACa.css +++ /dev/null @@ -1 +0,0 @@ -.page-link[data-v-21750571]{background-color:#9ca3af1a;border-radius:.25rem;flex-direction:column;justify-content:center;align-items:center;gap:.5rem;min-width:10rem;height:10rem;padding:1rem;display:flex}.page-link[data-v-21750571]:hover{background-color:#9ca3af33}.page-link>svg[data-v-21750571]{opacity:.5;font-size:3em} diff --git a/docs/dist/assets/entry-CsK3ooxy.css b/docs/dist/assets/entry-CsK3ooxy.css new file mode 100644 index 00000000..4871c87e --- /dev/null +++ b/docs/dist/assets/entry-CsK3ooxy.css @@ -0,0 +1 @@ +.page-link[data-v-6762281a]{background-color:#9ca3af1a;border-radius:.25rem;flex-direction:column;justify-content:center;align-items:center;gap:.5rem;min-width:10rem;height:10rem;padding:1rem;display:flex}.page-link[data-v-6762281a]:hover{background-color:#9ca3af33}.page-link>svg[data-v-6762281a]{opacity:.5;font-size:3em} diff --git a/docs/dist/assets/erDiagram-T2DQBZM5-C8AUcwiF.js b/docs/dist/assets/erDiagram-T2DQBZM5-C8AUcwiF.js new file mode 100644 index 00000000..1d7c4da9 --- /dev/null +++ b/docs/dist/assets/erDiagram-T2DQBZM5-C8AUcwiF.js @@ -0,0 +1,85 @@ +import{n as e,r as t}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{I as n,T as r}from"./chunk-V7P66DNM-D246Sefn.js";import{C as i,E as a,H as o,J as s,Q as c,Y as l,a as u,b as d,o as f,x as p}from"./chunk-Q52JI7PB-BeSPinqD.js";import"./chunk-PLCLPJVV-rGjVDjLw.js";import"./chunk-GTILCTU2-D-9HFTK6.js";import"./chunk-7TFACZ55-BO7C1qvL.js";import{l as m,v as h}from"./chunk-BSZA5ISF-LqNHBHyp.js";import"./chunk-SZ5Y56Q4-Bki2Aicm.js";import"./chunk-YSJUE5HW-eH4JtoEG.js";import"./chunk-HQMLCRZ6-HgqAiHMi.js";import"./chunk-RTI7CJYH-CrTK6TD7.js";import"./chunk-TRQY2T3P-DxnI4jXA.js";import{r as g,t as _}from"./chunk-SNQTKDUU-CQmHT9KX.js";import{t as v}from"./chunk-7723GVCQ-CfHgq7qP.js";import{t as y}from"./chunk-KEUPHFFI-DMlFzrf2.js";var b=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],r=[1,10],i=[1,11],a=[1,12],o=[1,13],s=[1,23],c=[1,24],l=[1,25],u=[1,26],d=[1,27],f=[1,19],p=[1,28],m=[1,29],h=[1,20],g=[1,18],_=[1,21],v=[1,22],y=[1,36],b=[1,37],x=[1,38],S=[1,39],C=[1,40],w=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],T=[1,45],E=[1,46],D=[1,55],O=[40,48,50,51,52,70,71],k=[1,66],A=[1,64],j=[1,61],M=[1,65],N=[1,67],P=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],F=[65,66,67,68,69],I=[1,84],L=[1,83],R=[1,81],z=[1,82],B=[6,10,42,47],V=[6,10,13,41,42,47,48,49],H=[1,92],U=[1,91],W=[1,90],G=[19,58],K=[1,101],q=[1,100],J=[19,58,60,62],Y={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$accept:0,$end:1},terminals_:{2:`error`,4:`ER_DIAGRAM`,6:`EOF`,8:`SPACE`,10:`NEWLINE`,13:`COLON`,15:`STYLE_SEPARATOR`,17:`BLOCK_START`,19:`BLOCK_STOP`,20:`SQS`,21:`SQE`,22:`title`,23:`title_value`,24:`acc_title`,25:`acc_title_value`,26:`acc_descr`,27:`acc_descr_value`,28:`acc_descr_multiline_value`,33:`direction_tb`,34:`direction_bt`,35:`direction_rl`,36:`direction_lr`,37:`CLASSDEF`,40:`UNICODE_TEXT`,41:`STYLE_TEXT`,42:`COMMA`,43:`CLASS`,44:`STYLE`,47:`SEMI`,48:`NUM`,49:`BRKT`,50:`ENTITY_NAME`,51:`DECIMAL_NUM`,52:`ENTITY_ONE`,58:`ATTRIBUTE_WORD`,60:`,`,61:`ATTRIBUTE_KEY`,62:`COMMENT`,65:`ZERO_OR_ONE`,66:`ZERO_OR_MORE`,67:`ONE_OR_MORE`,68:`ONLY_ONE`,69:`MD_PARENT`,70:`NON_IDENTIFYING`,71:`IDENTIFYING`,72:`WORD`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:break;case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(a[s-4]),r.addEntity(a[s-2]),r.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 9:r.addEntity(a[s-8]),r.addEntity(a[s-4]),r.addRelationship(a[s-8],a[s],a[s-4],a[s-5]),r.setClass([a[s-8]],a[s-6]),r.setClass([a[s-4]],a[s-2]);break;case 10:r.addEntity(a[s-6]),r.addEntity(a[s-2]),r.addRelationship(a[s-6],a[s],a[s-2],a[s-3]),r.setClass([a[s-6]],a[s-4]);break;case 11:r.addEntity(a[s-6]),r.addEntity(a[s-4]),r.addRelationship(a[s-6],a[s],a[s-4],a[s-5]),r.setClass([a[s-4]],a[s-2]);break;case 12:r.addEntity(a[s-3]),r.addAttributes(a[s-3],a[s-1]);break;case 13:r.addEntity(a[s-5]),r.addAttributes(a[s-5],a[s-1]),r.setClass([a[s-5]],a[s-3]);break;case 14:r.addEntity(a[s-2]);break;case 15:r.addEntity(a[s-4]),r.setClass([a[s-4]],a[s-2]);break;case 16:r.addEntity(a[s]);break;case 17:r.addEntity(a[s-2]),r.setClass([a[s-2]],a[s]);break;case 18:r.addEntity(a[s-6],a[s-4]),r.addAttributes(a[s-6],a[s-1]);break;case 19:r.addEntity(a[s-8],a[s-6]),r.addAttributes(a[s-8],a[s-1]),r.setClass([a[s-8]],a[s-3]);break;case 20:r.addEntity(a[s-5],a[s-3]);break;case 21:r.addEntity(a[s-7],a[s-5]),r.setClass([a[s-7]],a[s-2]);break;case 22:r.addEntity(a[s-3],a[s-1]);break;case 23:r.addEntity(a[s-5],a[s-3]),r.setClass([a[s-5]],a[s]);break;case 24:case 25:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection(`TB`);break;case 33:r.setDirection(`BT`);break;case 34:r.setDirection(`RL`);break;case 35:r.setDirection(`LR`);break;case 36:this.$=a[s-3],r.addClass(a[s-2],a[s-1]);break;case 37:case 38:case 59:case 67:this.$=[a[s]];break;case 39:case 40:this.$=a[s-2].concat([a[s]]);break;case 41:this.$=a[s-2],r.setClass(a[s-1],a[s]);break;case 42:this.$=a[s-3],r.addCssStyles(a[s-2],a[s-1]);break;case 43:this.$=[a[s]];break;case 44:a[s-2].push(a[s]),this.$=a[s-2];break;case 46:this.$=a[s-1]+a[s];break;case 54:case 79:case 80:this.$=a[s].replace(/"/g,``);break;case 55:case 56:case 57:case 58:case 81:this.$=a[s];break;case 60:a[s].push(a[s-1]),this.$=a[s];break;case 61:this.$={type:a[s-1],name:a[s]};break;case 62:this.$={type:a[s-2],name:a[s-1],keys:a[s]};break;case 63:this.$={type:a[s-2],name:a[s-1],comment:a[s]};break;case 64:this.$={type:a[s-3],name:a[s-2],keys:a[s-1],comment:a[s]};break;case 65:case 66:case 69:this.$=a[s];break;case 68:a[s-2].push(a[s]),this.$=a[s-2];break;case 70:this.$=a[s].replace(/"/g,``);break;case 71:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 72:this.$=r.Cardinality.ZERO_OR_ONE;break;case 73:this.$=r.Cardinality.ZERO_OR_MORE;break;case 74:this.$=r.Cardinality.ONE_OR_MORE;break;case 75:this.$=r.Cardinality.ONLY_ONE;break;case 76:this.$=r.Cardinality.MD_PARENT;break;case 77:this.$=r.Identification.NON_IDENTIFYING;break;case 78:this.$=r.Identification.IDENTIFYING;break}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:r,24:i,26:a,28:o,29:14,30:15,31:16,32:17,33:s,34:c,35:l,36:u,37:d,40:f,43:p,44:m,48:h,50:g,51:_,52:v},e(n,[2,7],{1:[2,1]}),e(n,[2,3]),{9:30,11:9,22:r,24:i,26:a,28:o,29:14,30:15,31:16,32:17,33:s,34:c,35:l,36:u,37:d,40:f,43:p,44:m,48:h,50:g,51:_,52:v},e(n,[2,5]),e(n,[2,6]),e(n,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:y,66:b,67:x,68:S,69:C}),{23:[1,41]},{25:[1,42]},{27:[1,43]},e(n,[2,27]),e(n,[2,28]),e(n,[2,29]),e(n,[2,30]),e(n,[2,31]),e(w,[2,54]),e(w,[2,55]),e(w,[2,56]),e(w,[2,57]),e(w,[2,58]),e(n,[2,32]),e(n,[2,33]),e(n,[2,34]),e(n,[2,35]),{16:44,40:T,41:E},{16:47,40:T,41:E},{16:48,40:T,41:E},e(n,[2,4]),{11:49,40:f,48:h,50:g,51:_,52:v},{16:50,40:T,41:E},{18:51,19:[1,52],53:53,54:54,58:D},{11:56,40:f,48:h,50:g,51:_,52:v},{64:57,70:[1,58],71:[1,59]},e(O,[2,72]),e(O,[2,73]),e(O,[2,74]),e(O,[2,75]),e(O,[2,76]),e(n,[2,24]),e(n,[2,25]),e(n,[2,26]),{13:k,38:60,41:A,42:j,45:62,46:63,48:M,49:N},e(P,[2,37]),e(P,[2,38]),{16:68,40:T,41:E,42:j},{13:k,38:69,41:A,42:j,45:62,46:63,48:M,49:N},{13:[1,70],15:[1,71]},e(n,[2,17],{63:35,12:72,17:[1,73],42:j,65:y,66:b,67:x,68:S,69:C}),{19:[1,74]},e(n,[2,14]),{18:75,19:[2,59],53:53,54:54,58:D},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:y,66:b,67:x,68:S,69:C},e(F,[2,77]),e(F,[2,78]),{6:I,10:L,39:80,42:R,47:z},{40:[1,85],41:[1,86]},e(B,[2,43],{46:87,13:k,41:A,48:M,49:N}),e(V,[2,45]),e(V,[2,50]),e(V,[2,51]),e(V,[2,52]),e(V,[2,53]),e(n,[2,41],{42:j}),{6:I,10:L,39:88,42:R,47:z},{14:89,40:H,50:U,72:W},{16:93,40:T,41:E},{11:94,40:f,48:h,50:g,51:_,52:v},{18:95,19:[1,96],53:53,54:54,58:D},e(n,[2,12]),{19:[2,60]},e(G,[2,61],{56:97,57:98,59:99,61:K,62:q}),e([19,58,61,62],[2,66]),e(n,[2,22],{15:[1,103],17:[1,102]}),e([40,48,50,51,52],[2,71]),e(n,[2,36]),{13:k,41:A,45:104,46:63,48:M,49:N},e(n,[2,47]),e(n,[2,48]),e(n,[2,49]),e(P,[2,39]),e(P,[2,40]),e(V,[2,46]),e(n,[2,42]),e(n,[2,8]),e(n,[2,79]),e(n,[2,80]),e(n,[2,81]),{13:[1,105],42:j},{13:[1,107],15:[1,106]},{19:[1,108]},e(n,[2,15]),e(G,[2,62],{57:109,60:[1,110],62:q}),e(G,[2,63]),e(J,[2,67]),e(G,[2,70]),e(J,[2,69]),{18:111,19:[1,112],53:53,54:54,58:D},{16:113,40:T,41:E},e(B,[2,44],{46:87,13:k,41:A,48:M,49:N}),{14:114,40:H,50:U,72:W},{16:115,40:T,41:E},{14:116,40:H,50:U,72:W},e(n,[2,13]),e(G,[2,64]),{59:117,61:K},{19:[1,118]},e(n,[2,20]),e(n,[2,23],{17:[1,119],42:j}),e(n,[2,11]),{13:[1,120],42:j},e(n,[2,10]),e(J,[2,68]),e(n,[2,18]),{18:121,19:[1,122],53:53,54:54,58:D},{14:123,40:H,50:U,72:W},{19:[1,124]},e(n,[2,21]),e(n,[2,9]),e(n,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};Y.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:t(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t(function(){return this.next()||this.lex()},`lex`),begin:t(function(e){this.conditionStack.push(e)},`begin`),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t(function(e){this.begin(e)},`pushState`),stateStackSize:t(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t(function(e,t,n,r){switch(n){case 0:return this.begin(`acc_title`),24;case 1:return this.popState(),`acc_title_value`;case 2:return this.begin(`acc_descr`),26;case 3:return this.popState(),`acc_descr_value`;case 4:this.begin(`acc_descr_multiline`);break;case 5:this.popState();break;case 6:return`acc_descr_multiline_value`;case 7:return 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:break;case 13:return 8;case 14:return 50;case 15:return 72;case 16:return 4;case 17:return this.begin(`block`),17;case 18:return 49;case 19:return 49;case 20:return 42;case 21:return 15;case 22:return 13;case 23:break;case 24:return 61;case 25:return 58;case 26:return 58;case 27:return 62;case 28:break;case 29:return this.popState(),19;case 30:return t.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin(`style`),44;case 34:return this.popState(),10;case 35:break;case 36:return 13;case 37:return 42;case 38:return 49;case 39:return this.begin(`style`),37;case 40:return 43;case 41:return 65;case 42:return 67;case 43:return 67;case 44:return 67;case 45:return 65;case 46:return 65;case 47:return 66;case 48:return 66;case 49:return 66;case 50:return 66;case 51:return 66;case 52:return 67;case 53:return 66;case 54:return 67;case 55:return 68;case 56:return 68;case 57:return 51;case 58:return 68;case 59:return 68;case 60:return 68;case 61:return 52;case 62:return 48;case 63:return 68;case 64:return 65;case 65:return 66;case 66:return 67;case 67:return 69;case 68:return 70;case 69:return 71;case 70:return 71;case 71:return 70;case 72:return 70;case 73:return 70;case 74:return 41;case 75:return 47;case 76:return 40;case 77:return t.yytext[0];case 78:return 6}},`anonymous`),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,74,75],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[23,24,25,26,27,28,29,30],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31,32,33,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,76,77,78],inclusive:!0}}}})();function X(){this.yy={}}return t(X,`Parser`),X.prototype=Y,Y.Parser=X,new X})();b.parser=b;var x=b,S=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction=`TB`,this.Cardinality={ZERO_OR_ONE:`ZERO_OR_ONE`,ZERO_OR_MORE:`ZERO_OR_MORE`,ONE_OR_MORE:`ONE_OR_MORE`,ONLY_ONE:`ONLY_ONE`,MD_PARENT:`MD_PARENT`},this.Identification={NON_IDENTIFYING:`NON_IDENTIFYING`,IDENTIFYING:`IDENTIFYING`},this.setAccTitle=l,this.getAccTitle=p,this.setAccDescription=s,this.getAccDescription=d,this.setDiagramTitle=c,this.getDiagramTitle=a,this.getConfig=t(()=>i().er,`getConfig`),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{t(this,`ErDB`)}addEntity(e,t=``){return this.entities.has(e)?!this.entities.get(e)?.alias&&t&&(this.entities.get(e).alias=t,r.info(`Add alias '${t}' to entity '${e}'`)):(this.entities.set(e,{id:`entity-${e}-${this.entities.size}`,label:e,attributes:[],alias:t,shape:`erBox`,look:i().look??`default`,cssClasses:`default`,cssStyles:[],labelType:`markdown`}),r.info(`Added new entity :`,e)),this.entities.get(e)}getEntity(e){return this.entities.get(e)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(e,t){let n=this.addEntity(e),i;for(i=t.length-1;i>=0;i--)t[i].keys||(t[i].keys=[]),t[i].comment||(t[i].comment=``),n.attributes.push(t[i]),r.debug(`Added attribute `,t[i].name)}addRelationship(e,t,n,i){let a=this.entities.get(e),o=this.entities.get(n);if(!a||!o)return;let s={entityA:a.id,roleA:t,entityB:o.id,relSpec:i};this.relationships.push(s),r.debug(`Added new relationship :`,s)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(e){this.direction=e}getCompiledStyles(e){let t=[];for(let n of e){let e=this.classes.get(n);e?.styles&&(t=[...t,...e.styles??[]].map(e=>e.trim())),e?.textStyles&&(t=[...t,...e.textStyles??[]].map(e=>e.trim()))}return t}addCssStyles(e,t){for(let n of e){let e=this.entities.get(n);if(!t||!e)return;for(let n of t)e.cssStyles.push(n)}}addClass(e,t){e.forEach(e=>{let n=this.classes.get(e);n===void 0&&(n={id:e,styles:[],textStyles:[]},this.classes.set(e,n)),t&&t.forEach(function(e){if(/color/.exec(e)){let t=e.replace(`fill`,`bgFill`);n.textStyles.push(t)}n.styles.push(e)})})}setClass(e,t){for(let n of e){let e=this.entities.get(n);if(e)for(let n of t)e.cssClasses+=` `+n}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],f()}getData(){let e=[],t=[],n=i(),r=0;for(let t of this.entities.keys()){let n=this.entities.get(t);n&&(n.cssCompiledStyles=this.getCompiledStyles(n.cssClasses.split(` `)),n.colorIndex=r++,e.push(n))}let a=0;for(let e of this.relationships){let r={id:m(e.entityA,e.entityB,{prefix:`id`,counter:a++}),type:`normal`,curve:`basis`,start:e.entityA,end:e.entityB,label:e.roleA,labelpos:`c`,thickness:`normal`,classes:`relationshipLine`,arrowTypeStart:e.relSpec.cardB.toLowerCase(),arrowTypeEnd:e.relSpec.cardA.toLowerCase(),pattern:e.relSpec.relType==`IDENTIFYING`?`solid`:`dashed`,look:n.look,labelType:`markdown`};t.push(r)}return{nodes:e,edges:t,other:{},config:n,direction:`TB`}}},C={};e(C,{draw:()=>w});var w=t(async function(e,t,a,o){r.info(`REF0:`),r.info(`Drawing er diagram (unified)`,t);let{securityLevel:s,er:c,layout:l}=i(),u=o.db.getData(),d=v(t,s);u.type=o.type,u.layoutAlgorithm=_(l),u.config.flowchart.nodeSpacing=c?.nodeSpacing||140,u.config.flowchart.rankSpacing=c?.rankSpacing||80,u.direction=o.db.getDirection();let{config:f}=u,{look:p}=f;p===`neo`?u.markers=[`only_one_neo`,`zero_or_one_neo`,`one_or_more_neo`,`zero_or_more_neo`]:u.markers=[`only_one`,`zero_or_one`,`one_or_more`,`zero_or_more`],u.diagramId=t,await g(u,d),u.layoutAlgorithm===`elk`&&d.select(`.edges`).lower();let m=d.selectAll(`[id*="-background"]`);Array.from(m).length>0&&m.each(function(){let e=n(this),t=e.attr(`id`).replace(`-background`,``),r=d.select(`#${CSS.escape(t)}`);if(!r.empty()){let t=r.attr(`transform`);e.attr(`transform`,t)}}),h.insertTitle(d,`erDiagramTitleText`,c?.titleTopMargin??25,o.db.getDiagramTitle()),y(d,8,`erDiagram`,c?.useMaxWidth??!0)},`draw`),T=t((e,t)=>{let n=u;return o(n(e,`r`),n(e,`g`),n(e,`b`),t)},`fade`),E=new Set([`redux-color`,`redux-dark-color`]),D=t(e=>{let{theme:t,look:n,bkgColorArray:r,borderColorArray:i}=e;if(!E.has(t))return``;let a=r?.length>0,o=``;for(let t=0;t{let{look:t,theme:n,erEdgeLabelBackground:r,strokeWidth:i}=e;return` + ${D(e)} + .entityBox { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; + } + + .relationshipLabelBox { + fill: ${e.tertiaryColor}; + opacity: 0.7; + background-color: ${e.tertiaryColor}; + rect { + opacity: 0.5; + } + } + + .labelBkg { + background-color: ${E.has(n)&&r?r:T(e.tertiaryColor,.5)}; + } + + .edgeLabel { + background-color: ${E.has(n)&&r?r:e.edgeLabelBackground}; + } + .edgeLabel .label rect { + fill: ${E.has(n)&&r?r:e.edgeLabelBackground}; + } + .edgeLabel .label text { + fill: ${e.textColor}; + } + + .edgeLabel .label { + fill: ${e.nodeBorder}; + font-size: 14px; + } + + .label { + font-family: ${e.fontFamily}; + color: ${e.nodeTextColor||e.textColor}; + } + + .edge-pattern-dashed { + stroke-dasharray: 8,8; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon + { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; + stroke-width: ${t===`neo`?i:`1px`}; + } + + .relationshipLine { + stroke: ${e.lineColor}; + stroke-width: ${t===`neo`?i:`1px`}; + fill: none; + } + + .marker { + fill: none !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; + } + [data-look=neo].labelBkg { + background-color: ${T(e.tertiaryColor,.5)}; + } +`},`getStyles`)};export{O as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/eventmodeling-FCH6USID-KPOGAU7Q-L6Pqc7gi.js b/docs/dist/assets/eventmodeling-FCH6USID-KPOGAU7Q-L6Pqc7gi.js new file mode 100644 index 00000000..3a03bf89 --- /dev/null +++ b/docs/dist/assets/eventmodeling-FCH6USID-KPOGAU7Q-L6Pqc7gi.js @@ -0,0 +1 @@ +import{c as e}from"./chunk-BBDM4ZFP-DhnAO8sj.js";export{e as createEventModelingServices}; \ No newline at end of file diff --git a/docs/dist/assets/flowDiagram-3HAHYXQ6-CUkRnLXc.js b/docs/dist/assets/flowDiagram-3HAHYXQ6-CUkRnLXc.js new file mode 100644 index 00000000..bbdf85db --- /dev/null +++ b/docs/dist/assets/flowDiagram-3HAHYXQ6-CUkRnLXc.js @@ -0,0 +1,162 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{I as t,T as n}from"./chunk-V7P66DNM-D246Sefn.js";import{C as r,E as i,H as a,J as o,L as s,Q as c,Y as l,Z as u,a as d,b as f,c as p,o as ee,p as m,x as h}from"./chunk-Q52JI7PB-BeSPinqD.js";import{n as g,t as _}from"./chunk-PWCFYZI5-BQGIuzFC.js";import"./chunk-PLCLPJVV-rGjVDjLw.js";import"./chunk-GTILCTU2-D-9HFTK6.js";import"./chunk-7TFACZ55-BO7C1qvL.js";import{l as v,v as te}from"./chunk-BSZA5ISF-LqNHBHyp.js";import"./chunk-SZ5Y56Q4-Bki2Aicm.js";import"./chunk-YSJUE5HW-eH4JtoEG.js";import{o as ne}from"./chunk-HQMLCRZ6-HgqAiHMi.js";import"./chunk-RTI7CJYH-CrTK6TD7.js";import"./chunk-TRQY2T3P-DxnI4jXA.js";import{r as y,t as b}from"./chunk-SNQTKDUU-CQmHT9KX.js";import{t as x}from"./chunk-RTBOCTTP-BZPyT8j-.js";import{t as S}from"./chunk-O4A3IS3O-BIKKhWCb.js";import{t as C}from"./chunk-7723GVCQ-CfHgq7qP.js";import{t as w}from"./chunk-KEUPHFFI-DMlFzrf2.js";var T=`flowchart-`,E=class{constructor(){this.vertexCounter=0,this.config=r(),this.diagramId=``,this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=l,this.setAccDescription=o,this.setDiagramTitle=c,this.getAccTitle=h,this.getAccDescription=f,this.getDiagramTitle=i,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen(`gen-2`)}static{e(this,`FlowDB`)}sanitizeText(e){return p.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case`markdown`:case`string`:case`text`:return e;default:return`markdown`}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let t of this.vertices.values())if(t.id===e)return this.diagramId?`${this.diagramId}-${t.domId}`:t.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,t,i,a,o,s,c={},l){if(!e||e.trim().length===0)return;let u;if(l!==void 0){let e;e=l.includes(` +`)?l+` +`:`{ +`+l+` +}`,u=g(e,{schema:_})}let d=this.edges.find(t=>t.id===e);if(d){let e=u;e?.animate!==void 0&&(d.animate=e.animate),e?.animation!==void 0&&(d.animation=e.animation),e?.curve!==void 0&&(d.interpolate=e.curve);return}let f,p=this.vertices.get(e);if(p===void 0&&(t===void 0&&i===void 0&&a!=null&&n.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`),p={id:e,labelType:`text`,domId:T+e+`-`+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,p)),this.vertexCounter++,t===void 0?p.text===void 0&&(p.text=e):(this.config=r(),f=this.sanitizeText(t.text.trim()),p.labelType=t.type,f.startsWith(`"`)&&f.endsWith(`"`)&&(f=f.substring(1,f.length-1)),p.text=f),i!==void 0&&(p.type=i),a?.forEach(e=>{p.styles.push(e)}),o?.forEach(e=>{p.classes.push(e)}),s!==void 0&&(p.dir=s),p.props===void 0?p.props=c:c!==void 0&&Object.assign(p.props,c),u!==void 0){if(u.shape){if(u.shape!==u.shape.toLowerCase()||u.shape.includes(`_`))throw Error(`No such shape: ${u.shape}. Shape names should be lowercase.`);if(!ne(u.shape))throw Error(`No such shape: ${u.shape}.`);p.type=u?.shape}u?.label&&(p.text=u?.label,p.labelType=this.sanitizeNodeLabelType(u?.labelType)),u?.icon&&(p.icon=u?.icon,!u.label?.trim()&&p.text===e&&(p.text=``)),u?.form&&(p.form=u?.form),u?.pos&&(p.pos=u?.pos),u?.img&&(p.img=u?.img,!u.label?.trim()&&p.text===e&&(p.text=``)),u?.constraint&&(p.constraint=u.constraint),u.w&&(p.assetWidth=Number(u.w)),u.h&&(p.assetHeight=Number(u.h))}}addSingleLink(e,t,r,i){let a={start:e,end:t,type:void 0,text:``,labelType:`text`,classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};n.info(`abc78 Got edge...`,a);let o=r.text;if(o!==void 0&&(a.text=this.sanitizeText(o.text.trim()),a.text.startsWith(`"`)&&a.text.endsWith(`"`)&&(a.text=a.text.substring(1,a.text.length-1)),a.labelType=this.sanitizeNodeLabelType(o.type)),r!==void 0&&(a.type=r.type,a.stroke=r.stroke,a.length=r.length>10?10:r.length),i&&!this.edges.some(e=>e.id===i))a.id=i,a.isUserDefinedId=!0;else{let e=this.edges.filter(e=>e.start===a.start&&e.end===a.end);e.length===0?a.id=v(a.start,a.end,{counter:0,prefix:`L`}):a.id=v(a.start,a.end,{counter:e.length+1,prefix:`L`})}if(this.edges.length<(this.config.maxEdges??500))n.info(`Pushing edge...`),this.edges.push(a);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}. + +Initialize mermaid with maxEdges set to a higher number to allow more edges. +You cannot set this config via configuration inside the diagram as it is a secure config. +You have to call mermaid.initialize.`)}isLinkData(e){return typeof e==`object`&&!!e&&`id`in e&&typeof e.id==`string`}addLink(e,t,r){let i=this.isLinkData(r)?r.id.replace(`@`,``):void 0;n.info(`addLink`,e,t,i);for(let n of e)for(let a of t){let o=n===e[e.length-1],s=a===t[0];o&&s?this.addSingleLink(n,a,r,i):this.addSingleLink(n,a,r,void 0)}}updateLinkInterpolate(e,t){e.forEach(e=>{e==="default"?this.edges.defaultInterpolate=t:this.edges[e].interpolate=t})}updateLink(e,t){e.forEach(e=>{if(typeof e==`number`&&e>=this.edges.length)throw Error(`The index ${e} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);e==="default"?this.edges.defaultStyle=t:(this.edges[e].style=t,(this.edges[e]?.style?.length??0)>0&&!this.edges[e]?.style?.some(e=>e?.startsWith(`fill`))&&this.edges[e]?.style?.push(`fill:none`))})}addClass(e,t){let n=t.join().replace(/\\,/g,`§§§`).replace(/,/g,`;`).replace(/§§§/g,`,`).split(`;`);e.split(`,`).forEach(e=>{let t=this.classes.get(e);t===void 0&&(t={id:e,styles:[],textStyles:[]},this.classes.set(e,t)),n?.forEach(e=>{if(/color/.exec(e)){let n=e.replace(`fill`,`bgFill`);t.textStyles.push(n)}t.styles.push(e)})})}setDirection(e){this.direction=e.trim(),/.*/.exec(this.direction)&&(this.direction=`LR`),/.*v/.exec(this.direction)&&(this.direction=`TB`),this.direction===`TD`&&(this.direction=`TB`)}setClass(e,t){for(let n of e.split(`,`)){let e=this.vertices.get(n);e&&e.classes.push(t);let r=this.edges.find(e=>e.id===n);r&&r.classes.push(t);let i=this.subGraphLookup.get(n);i&&i.classes.push(t)}}setTooltip(e,t){if(t!==void 0){t=this.sanitizeText(t);for(let n of e.split(`,`))this.tooltips.set(this.version===`gen-1`?this.lookUpDomId(n):n,t)}}setClickFun(e,t,n){if(r().securityLevel!==`loose`||t===void 0)return;let i=[];if(typeof n==`string`){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e{let n=this.lookUpDomId(e),r=document.querySelector(`[id="${n}"]`);r!==null&&r.addEventListener(`click`,()=>{te.runFunc(t,...i)},!1)}))}setLink(e,t,n){e.split(`,`).forEach(e=>{let r=this.vertices.get(e);r!==void 0&&(r.link=te.formatUrl(t,this.config),r.linkTarget=n)}),this.setClass(e,`clickable`)}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,t,n){e.split(`,`).forEach(e=>{this.setClickFun(e,t,n)}),this.setClass(e,`clickable`)}bindFunctions(e){this.funs.forEach(t=>{t(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){let n=S();t(e).select(`svg`).selectAll(`g.node`).on(`mouseover`,e=>{let r=t(e.currentTarget),i=r.attr(`title`);if(i===null)return;let a=e.currentTarget?.getBoundingClientRect();n.transition().duration(200).style(`opacity`,`.9`),n.text(r.attr(`title`)).style(`left`,window.scrollX+a.left+(a.right-a.left)/2+`px`).style(`top`,window.scrollY+a.bottom+`px`),n.html(s.sanitize(i)),r.classed(`hover`,!0)}).on(`mouseout`,e=>{n.transition().duration(500).style(`opacity`,0),t(e.currentTarget).classed(`hover`,!1)})}clear(e=`gen-2`){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId=``,this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=r(),ee()}setGen(e){this.version=e||`gen-2`}defaultStyle(){return`fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;`}addSubGraph(t,i,a){let o=t.text.trim(),s=a.text;t===a&&/\s/.exec(a.text)&&(o=void 0);let c=e(e=>{let t={boolean:{},number:{},string:{}},n=[],r;return{nodeList:e.filter(function(e){let i=typeof e;return e.stmt&&e.stmt===`dir`?(r=e.value,!1):e.trim()===``?!1:i in t?t[i].hasOwnProperty(e)?!1:t[i][e]=!0:n.includes(e)?!1:n.push(e)}),dir:r}},`uniq`)(i.flat()),l=c.nodeList,u=c.dir,d=r().flowchart??{};if(u??=d.inheritDir?this.getDirection()??r().direction??void 0:void 0,this.version===`gen-1`)for(let e=0;e2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=t,this.subGraphs[t].id===e)return{result:!0,count:0};let r=0,i=1;for(;r=0){let n=this.indexNodes2(e,t);if(n.result)return{result:!0,count:i+n.count};i+=n.count}r+=1}return{result:!1,count:i}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2(`none`,this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(e){let t=e.trim(),n=`arrow_open`;switch(t[0]){case`<`:n=`arrow_point`,t=t.slice(1);break;case`x`:n=`arrow_cross`,t=t.slice(1);break;case`o`:n=`arrow_circle`,t=t.slice(1);break}let r=`normal`;return t.includes(`=`)&&(r=`thick`),t.includes(`.`)&&(r=`dotted`),{type:n,stroke:r}}countChar(e,t){let n=t.length,r=0;for(let i=0;i`:r=`arrow_point`,t.startsWith(`<`)&&(r=`double_`+r,n=n.slice(1));break;case`o`:r=`arrow_circle`,t.startsWith(`o`)&&(r=`double_`+r,n=n.slice(1));break}let i=`normal`,a=n.length-1;n.startsWith(`=`)&&(i=`thick`),n.startsWith(`~`)&&(i=`invisible`);let o=this.countChar(`.`,n);return o&&(i=`dotted`,a=o),{type:r,stroke:i,length:a}}destructLink(e,t){let n=this.destructEndLink(e),r;if(t){if(r=this.destructStartLink(t),r.stroke!==n.stroke)return{type:`INVALID`,stroke:`INVALID`};if(r.type===`arrow_open`)r.type=n.type;else{if(r.type!==n.type)return{type:`INVALID`,stroke:`INVALID`};r.type=`double_`+r.type}return r.type===`double_arrow`&&(r.type=`double_arrow_point`),r.length=n.length,r}return n}exists(e,t){for(let n of e)if(n.nodes.includes(t))return!0;return!1}makeUniq(e,t){let n=[];return e.nodes.forEach((r,i)=>{this.exists(t,r)||n.push(e.nodes[i])}),{nodes:n}}getTypeFromVertex(e){if(e.img)return`imageSquare`;if(e.icon)return e.form===`circle`?`iconCircle`:e.form===`square`?`iconSquare`:e.form===`rounded`?`iconRounded`:`icon`;switch(e.type){case`square`:case void 0:return`squareRect`;case`round`:return`roundedRect`;case`ellipse`:return`ellipse`;default:return e.type}}findNode(e,t){return e.find(e=>e.id===t)}destructEdgeType(e){let t=`none`,n=`arrow_point`;switch(e){case`arrow_point`:case`arrow_circle`:case`arrow_cross`:n=e;break;case`double_arrow_point`:case`double_arrow_circle`:case`double_arrow_cross`:t=e.replace(`double_`,``),n=t;break}return{arrowTypeStart:t,arrowTypeEnd:n}}addNodeFromVertex(e,t,n,r,i,a){let o=n.get(e.id),s=r.get(e.id)??!1,c=this.findNode(t,e.id);if(c)c.cssStyles=e.styles,c.cssCompiledStyles=this.getCompiledStyles(e.classes),c.cssClasses=e.classes.join(` `);else{let n={id:e.id,label:e.text,labelType:e.labelType,labelStyle:``,parentId:o,padding:i.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles([`default`,`node`,...e.classes]),cssClasses:`default `+e.classes.join(` `),dir:e.dir,domId:e.domId,look:a,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};s?t.push({...n,isGroup:!0,shape:`rect`}):t.push({...n,isGroup:!1,shape:this.getTypeFromVertex(e)})}}getCompiledStyles(e){let t=[];for(let n of e){let e=this.classes.get(n);e?.styles&&(t=[...t,...e.styles??[]].map(e=>e.trim())),e?.textStyles&&(t=[...t,...e.textStyles??[]].map(e=>e.trim()))}return t}getData(){let e=r(),t=[],n=[],i=this.getSubGraphs(),a=new Map,o=new Map;for(let e=i.length-1;e>=0;e--){let t=i[e];t.nodes.length>0&&o.set(t.id,!0);for(let e of t.nodes)a.set(e,t.id)}for(let n=i.length-1;n>=0;n--){let r=i[n];t.push({id:r.id,label:r.title,labelStyle:``,labelType:r.labelType,parentId:a.get(r.id),padding:8,cssCompiledStyles:this.getCompiledStyles(r.classes),cssClasses:r.classes.join(` `),shape:`rect`,dir:r.dir,isGroup:!0,look:e.look})}this.getVertices().forEach(n=>{this.addNodeFromVertex(n,t,a,o,e,e.look||`classic`)});let s=this.getEdges();return s.forEach((t,r)=>{let{arrowTypeStart:i,arrowTypeEnd:a}=this.destructEdgeType(t.type),o=[...s.defaultStyle??[]];t.style&&o.push(...t.style);let c={id:v(t.start,t.end,{counter:r,prefix:`L`},t.id),isUserDefinedId:t.isUserDefinedId,start:t.start,end:t.end,type:t.type??`normal`,label:t.text,labelType:t.labelType,labelpos:`c`,thickness:t.stroke,minlen:t.length,classes:t?.stroke===`invisible`?``:`edge-thickness-normal edge-pattern-solid flowchart-link`,arrowTypeStart:t?.stroke===`invisible`||t?.type===`arrow_open`?`none`:i,arrowTypeEnd:t?.stroke===`invisible`||t?.type===`arrow_open`?`none`:a,arrowheadStyle:`fill: #333`,cssCompiledStyles:this.getCompiledStyles(t.classes),labelStyle:o,style:o,pattern:t.stroke,look:e.look,animate:t.animate,animation:t.animation,curve:t.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};n.push(c)}),{nodes:t,edges:n,other:{},config:e}}defaultConfig(){return m.flowchart}},D={getClasses:e(function(e,t){return t.db.getClasses()},`getClasses`),draw:e(async function(e,t,i,a){n.info(`REF0:`),n.info(`Drawing state diagram (v2)`,t);let{securityLevel:o,flowchart:s,layout:c}=r();a.db.setDiagramId(t),n.debug(`Before getData: `);let l=a.db.getData();n.debug(`Data: `,l);let u=C(t,o),d=a.db.getDirection();l.type=a.type,l.layoutAlgorithm=b(c),l.layoutAlgorithm===`dagre`&&c===`elk`&&n.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),l.direction=d,l.nodeSpacing=s?.nodeSpacing||50,l.rankSpacing=s?.rankSpacing||50,l.markers=[`point`,`circle`,`cross`],l.diagramId=t,n.debug(`REF1:`,l),await y(l,u);let f=l.config.flowchart?.diagramPadding??8;te.insertTitle(u,`flowchartTitleText`,s?.titleTopMargin||0,a.db.getDiagramTitle()),w(u,f,`flowchart`,s?.useMaxWidth||!1)},`draw`)},O=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,3],i=[1,5],a=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],o=[2,2],s=[1,13],c=[1,14],l=[1,15],u=[1,16],d=[1,23],f=[1,25],p=[1,26],ee=[1,27],m=[1,50],h=[1,49],g=[1,29],_=[1,30],v=[1,31],te=[1,32],ne=[1,33],y=[1,45],b=[1,47],x=[1,43],S=[1,48],C=[1,44],w=[1,51],T=[1,46],E=[1,52],D=[1,53],O=[1,34],re=[1,35],ie=[1,36],ae=[1,37],oe=[1,38],k=[1,58],A=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],j=[1,62],M=[1,61],N=[1,63],se=[8,9,11,75,77,78],ce=[1,79],le=[1,92],ue=[1,97],de=[1,96],fe=[1,93],pe=[1,89],me=[1,95],he=[1,91],ge=[1,98],_e=[1,94],ve=[1,99],ye=[1,90],be=[8,9,10,11,40,75,77,78],P=[8,9,10,11,40,46,75,77,78],F=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],xe=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],Se=[44,60,89,102,105,106,109,111,114,115,116],Ce=[1,122],we=[1,123],Te=[1,125],Ee=[1,124],De=[44,60,62,74,89,102,105,106,109,111,114,115,116],Oe=[1,134],ke=[1,148],Ae=[1,149],je=[1,150],Me=[1,151],Ne=[1,136],Pe=[1,138],Fe=[1,142],Ie=[1,143],Le=[1,144],Re=[1,145],ze=[1,146],Be=[1,147],Ve=[1,152],He=[1,153],Ue=[1,132],We=[1,133],Ge=[1,140],Ke=[1,135],qe=[1,139],Je=[1,137],Ye=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Xe=[1,155],Ze=[1,157],I=[8,9,11],L=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],R=[1,177],z=[1,173],B=[1,174],V=[1,178],H=[1,175],U=[1,176],Qe=[77,116,119],W=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],$e=[10,106],et=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],G=[1,248],K=[1,246],q=[1,250],J=[1,244],Y=[1,245],X=[1,247],Z=[1,249],Q=[1,251],tt=[1,269],nt=[8,9,11,106],$=[8,9,10,11,60,84,105,106,109,110,111,112],rt={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:`error`,8:`SEMI`,9:`NEWLINE`,10:`SPACE`,11:`EOF`,12:`GRAPH`,13:`NODIR`,14:`DIR`,27:`subgraph`,29:`SQS`,31:`SQE`,32:`end`,34:`acc_title`,35:`acc_title_value`,36:`acc_descr`,37:`acc_descr_value`,38:`acc_descr_multiline_value`,40:`SHAPE_DATA`,44:`AMP`,46:`STYLE_SEPARATOR`,48:`DOUBLECIRCLESTART`,49:`DOUBLECIRCLEEND`,50:`PS`,51:`PE`,52:`(-`,53:`-)`,54:`STADIUMSTART`,55:`STADIUMEND`,56:`SUBROUTINESTART`,57:`SUBROUTINEEND`,58:`VERTEX_WITH_PROPS_START`,59:`NODE_STRING[field]`,60:`COLON`,61:`NODE_STRING[value]`,62:`PIPE`,63:`CYLINDERSTART`,64:`CYLINDEREND`,65:`DIAMOND_START`,66:`DIAMOND_STOP`,67:`TAGEND`,68:`TRAPSTART`,69:`TRAPEND`,70:`INVTRAPSTART`,71:`INVTRAPEND`,74:`TESTSTR`,75:`START_LINK`,77:`LINK`,78:`LINK_ID`,80:`STR`,81:`MD_STR`,84:`STYLE`,85:`LINKSTYLE`,86:`CLASSDEF`,87:`CLASS`,88:`CLICK`,89:`DOWN`,90:`UP`,93:`idString[vertex]`,94:`idString[class]`,95:`CALLBACKNAME`,96:`CALLBACKARGS`,97:`HREF`,98:`LINK_TARGET`,99:`STR[link]`,100:`STR[tooltip]`,102:`DEFAULT`,104:`INTERPOLATE`,105:`NUM`,106:`COMMA`,109:`NODE_STRING`,110:`UNIT`,111:`BRKT`,112:`PCT`,114:`MINUS`,115:`MULT`,116:`UNICODE_TEXT`,117:`TEXT`,118:`TAGSTART`,119:`EDGE_TEXT`,121:`direction_tb`,122:`direction_bt`,123:`direction_rl`,124:`direction_lr`,125:`direction_td`},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 2:this.$=[];break;case 3:(!Array.isArray(a[s])||a[s].length>0)&&a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 183:this.$=a[s];break;case 11:r.setDirection(`TB`),this.$=`TB`;break;case 12:r.setDirection(a[s-1]),this.$=a[s-1];break;case 27:this.$=a[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=r.addSubGraph(a[s-6],a[s-1],a[s-4]);break;case 34:this.$=r.addSubGraph(a[s-3],a[s-1],a[s-3]);break;case 35:this.$=r.addSubGraph(void 0,a[s-1],void 0);break;case 37:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 38:case 39:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 43:this.$=a[s-1]+a[s];break;case 44:this.$=a[s];break;case 45:r.addVertex(a[s-1][a[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s]),r.addLink(a[s-3].stmt,a[s-1],a[s-2]),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 46:r.addLink(a[s-2].stmt,a[s],a[s-1]),this.$={stmt:a[s],nodes:a[s].concat(a[s-2].nodes)};break;case 47:r.addLink(a[s-3].stmt,a[s-1],a[s-2]),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 48:this.$={stmt:a[s-1],nodes:a[s-1]};break;case 49:r.addVertex(a[s-1][a[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s]),this.$={stmt:a[s-1],nodes:a[s-1],shapeData:a[s]};break;case 50:this.$={stmt:a[s],nodes:a[s]};break;case 51:this.$=[a[s]];break;case 52:r.addVertex(a[s-5][a[s-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s-4]),this.$=a[s-5].concat(a[s]);break;case 53:this.$=a[s-4].concat(a[s]);break;case 54:this.$=a[s];break;case 55:this.$=a[s-2],r.setClass(a[s-2],a[s]);break;case 56:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`square`);break;case 57:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`doublecircle`);break;case 58:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],`circle`);break;case 59:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`ellipse`);break;case 60:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`stadium`);break;case 61:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`subroutine`);break;case 62:this.$=a[s-7],r.addVertex(a[s-7],a[s-1],`rect`,void 0,void 0,void 0,Object.fromEntries([[a[s-5],a[s-3]]]));break;case 63:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`cylinder`);break;case 64:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`round`);break;case 65:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`diamond`);break;case 66:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],`hexagon`);break;case 67:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`odd`);break;case 68:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`trapezoid`);break;case 69:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`inv_trapezoid`);break;case 70:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`lean_right`);break;case 71:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`lean_left`);break;case 72:this.$=a[s],r.addVertex(a[s]);break;case 73:a[s-1].text=a[s],this.$=a[s-1];break;case 74:case 75:a[s-2].text=a[s-1],this.$=a[s-2];break;case 76:this.$=a[s];break;case 77:var c=r.destructLink(a[s],a[s-2]);this.$={type:c.type,stroke:c.stroke,length:c.length,text:a[s-1]};break;case 78:var c=r.destructLink(a[s],a[s-2]);this.$={type:c.type,stroke:c.stroke,length:c.length,text:a[s-1],id:a[s-3]};break;case 79:this.$={text:a[s],type:`text`};break;case 80:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 81:this.$={text:a[s],type:`string`};break;case 82:this.$={text:a[s],type:`markdown`};break;case 83:var c=r.destructLink(a[s]);this.$={type:c.type,stroke:c.stroke,length:c.length};break;case 84:var c=r.destructLink(a[s]);this.$={type:c.type,stroke:c.stroke,length:c.length,id:a[s-1]};break;case 85:this.$=a[s-1];break;case 86:this.$={text:a[s],type:`text`};break;case 87:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 88:this.$={text:a[s],type:`string`};break;case 89:case 104:this.$={text:a[s],type:`markdown`};break;case 101:this.$={text:a[s],type:`text`};break;case 102:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 103:this.$={text:a[s],type:`text`};break;case 105:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 106:this.$=a[s-4],r.setClass(a[s-2],a[s]);break;case 107:case 115:this.$=a[s-1],r.setClickEvent(a[s-1],a[s]);break;case 108:case 116:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 109:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 110:this.$=a[s-4],r.setClickEvent(a[s-4],a[s-3],a[s-2]),r.setTooltip(a[s-4],a[s]);break;case 111:this.$=a[s-2],r.setLink(a[s-2],a[s]);break;case 112:this.$=a[s-4],r.setLink(a[s-4],a[s-2]),r.setTooltip(a[s-4],a[s]);break;case 113:this.$=a[s-4],r.setLink(a[s-4],a[s-2],a[s]);break;case 114:this.$=a[s-6],r.setLink(a[s-6],a[s-4],a[s]),r.setTooltip(a[s-6],a[s-2]);break;case 117:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 118:this.$=a[s-3],r.setLink(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 119:this.$=a[s-3],r.setLink(a[s-3],a[s-2],a[s]);break;case 120:this.$=a[s-5],r.setLink(a[s-5],a[s-4],a[s]),r.setTooltip(a[s-5],a[s-2]);break;case 121:this.$=a[s-4],r.addVertex(a[s-2],void 0,void 0,a[s]);break;case 122:this.$=a[s-4],r.updateLink([a[s-2]],a[s]);break;case 123:this.$=a[s-4],r.updateLink(a[s-2],a[s]);break;case 124:this.$=a[s-8],r.updateLinkInterpolate([a[s-6]],a[s-2]),r.updateLink([a[s-6]],a[s]);break;case 125:this.$=a[s-8],r.updateLinkInterpolate(a[s-6],a[s-2]),r.updateLink(a[s-6],a[s]);break;case 126:this.$=a[s-6],r.updateLinkInterpolate([a[s-4]],a[s]);break;case 127:this.$=a[s-6],r.updateLinkInterpolate(a[s-4],a[s]);break;case 128:case 130:this.$=[a[s]];break;case 129:case 131:a[s-2].push(a[s]),this.$=a[s-2];break;case 133:this.$=a[s-1]+a[s];break;case 181:this.$=a[s];break;case 182:this.$=a[s-1]+``+a[s];break;case 184:this.$=a[s-1]+``+a[s];break;case 185:this.$={stmt:`dir`,value:`TB`};break;case 186:this.$={stmt:`dir`,value:`BT`};break;case 187:this.$={stmt:`dir`,value:`RL`};break;case 188:this.$={stmt:`dir`,value:`LR`};break;case 189:this.$={stmt:`dir`,value:`TD`};break}},`anonymous`),table:[{3:1,4:2,9:n,10:r,12:i},{1:[3]},t(a,o,{5:6}),{4:7,9:n,10:r,12:i},{4:8,9:n,10:r,12:i},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:s,9:c,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,33:24,34:f,36:p,38:ee,42:28,43:39,44:m,45:40,47:41,60:h,84:g,85:_,86:v,87:te,88:ne,89:y,102:b,105:x,106:S,109:C,111:w,113:42,114:T,115:E,116:D,121:O,122:re,123:ie,124:ae,125:oe},t(a,[2,9]),t(a,[2,10]),t(a,[2,11]),{8:[1,55],9:[1,56],10:k,15:54,18:57},t(A,[2,3]),t(A,[2,4]),t(A,[2,5]),t(A,[2,6]),t(A,[2,7]),t(A,[2,8]),{8:j,9:M,11:N,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:j,9:M,11:N,21:68},{8:j,9:M,11:N,21:69},{8:j,9:M,11:N,21:70},{8:j,9:M,11:N,21:71},{8:j,9:M,11:N,21:72},{8:j,9:M,10:[1,73],11:N,21:74},t(A,[2,36]),{35:[1,75]},{37:[1,76]},t(A,[2,39]),t(se,[2,50],{18:77,39:78,10:k,40:ce}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:le,44:ue,60:de,80:[1,87],89:fe,95:[1,84],97:[1,85],101:86,105:pe,106:me,109:he,111:ge,114:_e,115:ve,116:ye,120:88},t(A,[2,185]),t(A,[2,186]),t(A,[2,187]),t(A,[2,188]),t(A,[2,189]),t(be,[2,51]),t(be,[2,54],{46:[1,100]}),t(P,[2,72],{113:113,29:[1,101],44:m,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:h,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:y,102:b,105:x,106:S,109:C,111:w,114:T,115:E,116:D}),t(F,[2,181]),t(F,[2,142]),t(F,[2,143]),t(F,[2,144]),t(F,[2,145]),t(F,[2,146]),t(F,[2,147]),t(F,[2,148]),t(F,[2,149]),t(F,[2,150]),t(F,[2,151]),t(F,[2,152]),t(a,[2,12]),t(a,[2,18]),t(a,[2,19]),{9:[1,114]},t(xe,[2,26],{18:115,10:k}),t(A,[2,27]),{42:116,43:39,44:m,45:40,47:41,60:h,89:y,102:b,105:x,106:S,109:C,111:w,113:42,114:T,115:E,116:D},t(A,[2,40]),t(A,[2,41]),t(A,[2,42]),t(Se,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:Ce,81:we,116:Te,119:Ee},{75:[1,126],77:[1,127]},t(De,[2,83]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),t(A,[2,31]),t(A,[2,32]),{10:Oe,12:ke,14:Ae,27:je,28:128,32:Me,44:Ne,60:Pe,75:Fe,80:[1,130],81:[1,131],83:141,84:Ie,85:Le,86:Re,87:ze,88:Be,89:Ve,90:He,91:129,105:Ue,109:We,111:Ge,114:Ke,115:qe,116:Je},t(Ye,o,{5:154}),t(A,[2,37]),t(A,[2,38]),t(se,[2,48],{44:Xe}),t(se,[2,49],{18:156,10:k,40:Ze}),t(be,[2,44]),{44:m,47:158,60:h,89:y,102:b,105:x,106:S,109:C,111:w,113:42,114:T,115:E,116:D},{102:[1,159],103:160,105:[1,161]},{44:m,47:162,60:h,89:y,102:b,105:x,106:S,109:C,111:w,113:42,114:T,115:E,116:D},{44:m,47:163,60:h,89:y,102:b,105:x,106:S,109:C,111:w,113:42,114:T,115:E,116:D},t(I,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},t(I,[2,115],{120:168,10:[1,167],14:le,44:ue,60:de,89:fe,105:pe,106:me,109:he,111:ge,114:_e,115:ve,116:ye}),t(I,[2,117],{10:[1,169]}),t(L,[2,183]),t(L,[2,170]),t(L,[2,171]),t(L,[2,172]),t(L,[2,173]),t(L,[2,174]),t(L,[2,175]),t(L,[2,176]),t(L,[2,177]),t(L,[2,178]),t(L,[2,179]),t(L,[2,180]),{44:m,47:170,60:h,89:y,102:b,105:x,106:S,109:C,111:w,113:42,114:T,115:E,116:D},{30:171,67:R,80:z,81:B,82:172,116:V,117:H,118:U},{30:179,67:R,80:z,81:B,82:172,116:V,117:H,118:U},{30:181,50:[1,180],67:R,80:z,81:B,82:172,116:V,117:H,118:U},{30:182,67:R,80:z,81:B,82:172,116:V,117:H,118:U},{30:183,67:R,80:z,81:B,82:172,116:V,117:H,118:U},{30:184,67:R,80:z,81:B,82:172,116:V,117:H,118:U},{109:[1,185]},{30:186,67:R,80:z,81:B,82:172,116:V,117:H,118:U},{30:187,65:[1,188],67:R,80:z,81:B,82:172,116:V,117:H,118:U},{30:189,67:R,80:z,81:B,82:172,116:V,117:H,118:U},{30:190,67:R,80:z,81:B,82:172,116:V,117:H,118:U},{30:191,67:R,80:z,81:B,82:172,116:V,117:H,118:U},t(F,[2,182]),t(a,[2,20]),t(xe,[2,25]),t(se,[2,46],{39:192,18:193,10:k,40:ce}),t(Se,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:R,80:z,81:B,82:172,116:V,117:H,118:U},{77:[1,197],79:198,116:Te,119:Ee},t(Qe,[2,79]),t(Qe,[2,81]),t(Qe,[2,82]),t(Qe,[2,168]),t(Qe,[2,169]),{76:199,79:121,80:Ce,81:we,116:Te,119:Ee},t(De,[2,84]),{8:j,9:M,10:Oe,11:N,12:ke,14:Ae,21:201,27:je,29:[1,200],32:Me,44:Ne,60:Pe,75:Fe,83:141,84:Ie,85:Le,86:Re,87:ze,88:Be,89:Ve,90:He,91:202,105:Ue,109:We,111:Ge,114:Ke,115:qe,116:Je},t(W,[2,101]),t(W,[2,103]),t(W,[2,104]),t(W,[2,157]),t(W,[2,158]),t(W,[2,159]),t(W,[2,160]),t(W,[2,161]),t(W,[2,162]),t(W,[2,163]),t(W,[2,164]),t(W,[2,165]),t(W,[2,166]),t(W,[2,167]),t(W,[2,90]),t(W,[2,91]),t(W,[2,92]),t(W,[2,93]),t(W,[2,94]),t(W,[2,95]),t(W,[2,96]),t(W,[2,97]),t(W,[2,98]),t(W,[2,99]),t(W,[2,100]),{6:11,7:12,8:s,9:c,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,203],33:24,34:f,36:p,38:ee,42:28,43:39,44:m,45:40,47:41,60:h,84:g,85:_,86:v,87:te,88:ne,89:y,102:b,105:x,106:S,109:C,111:w,113:42,114:T,115:E,116:D,121:O,122:re,123:ie,124:ae,125:oe},{10:k,18:204},{44:[1,205]},t(be,[2,43]),{10:[1,206],44:m,60:h,89:y,102:b,105:x,106:S,109:C,111:w,113:113,114:T,115:E,116:D},{10:[1,207]},{10:[1,208],106:[1,209]},t($e,[2,128]),{10:[1,210],44:m,60:h,89:y,102:b,105:x,106:S,109:C,111:w,113:113,114:T,115:E,116:D},{10:[1,211],44:m,60:h,89:y,102:b,105:x,106:S,109:C,111:w,113:113,114:T,115:E,116:D},{80:[1,212]},t(I,[2,109],{10:[1,213]}),t(I,[2,111],{10:[1,214]}),{80:[1,215]},t(L,[2,184]),{80:[1,216],98:[1,217]},t(be,[2,55],{113:113,44:m,60:h,89:y,102:b,105:x,106:S,109:C,111:w,114:T,115:E,116:D}),{31:[1,218],67:R,82:219,116:V,117:H,118:U},t(et,[2,86]),t(et,[2,88]),t(et,[2,89]),t(et,[2,153]),t(et,[2,154]),t(et,[2,155]),t(et,[2,156]),{49:[1,220],67:R,82:219,116:V,117:H,118:U},{30:221,67:R,80:z,81:B,82:172,116:V,117:H,118:U},{51:[1,222],67:R,82:219,116:V,117:H,118:U},{53:[1,223],67:R,82:219,116:V,117:H,118:U},{55:[1,224],67:R,82:219,116:V,117:H,118:U},{57:[1,225],67:R,82:219,116:V,117:H,118:U},{60:[1,226]},{64:[1,227],67:R,82:219,116:V,117:H,118:U},{66:[1,228],67:R,82:219,116:V,117:H,118:U},{30:229,67:R,80:z,81:B,82:172,116:V,117:H,118:U},{31:[1,230],67:R,82:219,116:V,117:H,118:U},{67:R,69:[1,231],71:[1,232],82:219,116:V,117:H,118:U},{67:R,69:[1,234],71:[1,233],82:219,116:V,117:H,118:U},t(se,[2,45],{18:156,10:k,40:Ze}),t(se,[2,47],{44:Xe}),t(Se,[2,75]),t(Se,[2,74]),{62:[1,235],67:R,82:219,116:V,117:H,118:U},t(Se,[2,77]),t(Qe,[2,80]),{77:[1,236],79:198,116:Te,119:Ee},{30:237,67:R,80:z,81:B,82:172,116:V,117:H,118:U},t(Ye,o,{5:238}),t(W,[2,102]),t(A,[2,35]),{43:239,44:m,45:40,47:41,60:h,89:y,102:b,105:x,106:S,109:C,111:w,113:42,114:T,115:E,116:D},{10:k,18:240},{10:G,60:K,84:q,92:241,105:J,107:242,108:243,109:Y,110:X,111:Z,112:Q},{10:G,60:K,84:q,92:252,104:[1,253],105:J,107:242,108:243,109:Y,110:X,111:Z,112:Q},{10:G,60:K,84:q,92:254,104:[1,255],105:J,107:242,108:243,109:Y,110:X,111:Z,112:Q},{105:[1,256]},{10:G,60:K,84:q,92:257,105:J,107:242,108:243,109:Y,110:X,111:Z,112:Q},{44:m,47:258,60:h,89:y,102:b,105:x,106:S,109:C,111:w,113:42,114:T,115:E,116:D},t(I,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},t(I,[2,116]),t(I,[2,118],{10:[1,262]}),t(I,[2,119]),t(P,[2,56]),t(et,[2,87]),t(P,[2,57]),{51:[1,263],67:R,82:219,116:V,117:H,118:U},t(P,[2,64]),t(P,[2,59]),t(P,[2,60]),t(P,[2,61]),{109:[1,264]},t(P,[2,63]),t(P,[2,65]),{66:[1,265],67:R,82:219,116:V,117:H,118:U},t(P,[2,67]),t(P,[2,68]),t(P,[2,70]),t(P,[2,69]),t(P,[2,71]),t([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),t(Se,[2,78]),{31:[1,266],67:R,82:219,116:V,117:H,118:U},{6:11,7:12,8:s,9:c,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,267],33:24,34:f,36:p,38:ee,42:28,43:39,44:m,45:40,47:41,60:h,84:g,85:_,86:v,87:te,88:ne,89:y,102:b,105:x,106:S,109:C,111:w,113:42,114:T,115:E,116:D,121:O,122:re,123:ie,124:ae,125:oe},t(be,[2,53]),{43:268,44:m,45:40,47:41,60:h,89:y,102:b,105:x,106:S,109:C,111:w,113:42,114:T,115:E,116:D},t(I,[2,121],{106:tt}),t(nt,[2,130],{108:270,10:G,60:K,84:q,105:J,109:Y,110:X,111:Z,112:Q}),t($,[2,132]),t($,[2,134]),t($,[2,135]),t($,[2,136]),t($,[2,137]),t($,[2,138]),t($,[2,139]),t($,[2,140]),t($,[2,141]),t(I,[2,122],{106:tt}),{10:[1,271]},t(I,[2,123],{106:tt}),{10:[1,272]},t($e,[2,129]),t(I,[2,105],{106:tt}),t(I,[2,106],{113:113,44:m,60:h,89:y,102:b,105:x,106:S,109:C,111:w,114:T,115:E,116:D}),t(I,[2,110]),t(I,[2,112],{10:[1,273]}),t(I,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:j,9:M,11:N,21:278},t(A,[2,34]),t(be,[2,52]),{10:G,60:K,84:q,105:J,107:279,108:243,109:Y,110:X,111:Z,112:Q},t($,[2,133]),{14:le,44:ue,60:de,89:fe,101:280,105:pe,106:me,109:he,111:ge,114:_e,115:ve,116:ye,120:88},{14:le,44:ue,60:de,89:fe,101:281,105:pe,106:me,109:he,111:ge,114:_e,115:ve,116:ye,120:88},{98:[1,282]},t(I,[2,120]),t(P,[2,58]),{30:283,67:R,80:z,81:B,82:172,116:V,117:H,118:U},t(P,[2,66]),t(Ye,o,{5:284}),t(nt,[2,131],{108:270,10:G,60:K,84:q,105:J,109:Y,110:X,111:Z,112:Q}),t(I,[2,126],{120:168,10:[1,285],14:le,44:ue,60:de,89:fe,105:pe,106:me,109:he,111:ge,114:_e,115:ve,116:ye}),t(I,[2,127],{120:168,10:[1,286],14:le,44:ue,60:de,89:fe,105:pe,106:me,109:he,111:ge,114:_e,115:ve,116:ye}),t(I,[2,114]),{31:[1,287],67:R,82:219,116:V,117:H,118:U},{6:11,7:12,8:s,9:c,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,288],33:24,34:f,36:p,38:ee,42:28,43:39,44:m,45:40,47:41,60:h,84:g,85:_,86:v,87:te,88:ne,89:y,102:b,105:x,106:S,109:C,111:w,113:42,114:T,115:E,116:D,121:O,122:re,123:ie,124:ae,125:oe},{10:G,60:K,84:q,92:289,105:J,107:242,108:243,109:Y,110:X,111:Z,112:Q},{10:G,60:K,84:q,92:290,105:J,107:242,108:243,109:Y,110:X,111:Z,112:Q},t(P,[2,62]),t(A,[2,33]),t(I,[2,124],{106:tt}),t(I,[2,125],{106:tt})],defaultActions:{},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,ee=o.slice.call(arguments,1),m=Object.create(this.lexer),h={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(h.yy[g]=this.yy[g]);m.setInput(t,h.yy),h.yy.lexer=m,h.yy.parser=this,m.yylloc===void 0&&(m.yylloc={});var _=m.yylloc;o.push(_);var v=m.options&&m.options.ranges;typeof h.yy.parseError==`function`?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function te(e){r.length-=2*e,a.length-=e,o.length-=e}e(te,`popStack`);function ne(){var e=i.pop()||m.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(ne,`lex`);for(var y,b,x,S,C,w={},T,E,D,O;;){if(x=r[r.length-1],this.defaultActions[x]?S=this.defaultActions[x]:(y??=ne(),S=s[x]&&s[x][y]),S===void 0||!S.length||!S[0]){var re=``;for(T in O=[],s[x])this.terminals_[T]&&T>f&&O.push(`'`+this.terminals_[T]+`'`);re=m.showPosition?`Parse error on line `+(l+1)+`: +`+m.showPosition()+` +Expecting `+O.join(`, `)+`, got '`+(this.terminals_[y]||y)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(y==p?`end of input`:`'`+(this.terminals_[y]||y)+`'`),this.parseError(re,{text:m.match,token:this.terminals_[y]||y,line:m.yylineno,loc:_,expected:O})}if(S[0]instanceof Array&&S.length>1)throw Error(`Parse Error: multiple actions possible at state: `+x+`, token: `+y);switch(S[0]){case 1:r.push(y),a.push(m.yytext),o.push(m.yylloc),r.push(S[1]),y=null,b?(y=b,b=null):(u=m.yyleng,c=m.yytext,l=m.yylineno,_=m.yylloc,d>0&&d--);break;case 2:if(E=this.productions_[S[1]][1],w.$=a[a.length-E],w._$={first_line:o[o.length-(E||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(E||1)].first_column,last_column:o[o.length-1].last_column},v&&(w._$.range=[o[o.length-(E||1)].range[0],o[o.length-1].range[1]]),C=this.performAction.apply(w,[c,u,l,h.yy,S[1],a,o].concat(ee)),C!==void 0)return C;E&&(r=r.slice(0,-1*E*2),a=a.slice(0,-1*E),o=o.slice(0,-1*E)),r.push(this.productions_[S[1]][0]),a.push(w.$),o.push(w._$),D=s[r[r.length-2]][r[r.length-1]],r.push(D);break;case 3:return!0}}return!0},`parse`)};rt.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:e(function(e,t,n,r){switch(n){case 0:return this.begin(`acc_title`),34;case 1:return this.popState(),`acc_title_value`;case 2:return this.begin(`acc_descr`),36;case 3:return this.popState(),`acc_descr_value`;case 4:this.begin(`acc_descr_multiline`);break;case 5:this.popState();break;case 6:return`acc_descr_multiline_value`;case 7:return this.pushState(`shapeData`),t.yytext=``,40;case 8:return this.pushState(`shapeDataStr`),40;case 9:return this.popState(),40;case 10:return t.yytext=t.yytext.replace(/\n\s*/g,`
    `),40;case 11:return 40;case 12:this.popState();break;case 13:this.begin(`callbackname`);break;case 14:this.popState();break;case 15:this.popState(),this.begin(`callbackargs`);break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return`MD_STR`;case 20:this.popState();break;case 21:this.begin(`md_string`);break;case 22:return`STR`;case 23:this.popState();break;case 24:this.pushState(`string`);break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin(`click`);break;case 33:this.popState();break;case 34:return 88;case 35:return e.lex.firstGraph()&&this.begin(`dir`),12;case 36:return e.lex.firstGraph()&&this.begin(`dir`),12;case 37:return e.lex.firstGraph()&&this.begin(`dir`),12;case 38:return 27;case 39:return 32;case 40:return 98;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return this.popState(),13;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return this.popState(),14;case 50:return this.popState(),14;case 51:return this.popState(),14;case 52:return this.popState(),14;case 53:return this.popState(),14;case 54:return this.popState(),14;case 55:return 121;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 125;case 60:return 78;case 61:return 105;case 62:return 111;case 63:return 46;case 64:return 60;case 65:return 44;case 66:return 8;case 67:return 106;case 68:return 115;case 69:return this.popState(),77;case 70:return this.pushState(`edgeText`),75;case 71:return 119;case 72:return this.popState(),77;case 73:return this.pushState(`thickEdgeText`),75;case 74:return 119;case 75:return this.popState(),77;case 76:return this.pushState(`dottedEdgeText`),75;case 77:return 119;case 78:return 77;case 79:return this.popState(),53;case 80:return`TEXT`;case 81:return this.pushState(`ellipseText`),52;case 82:return this.popState(),55;case 83:return this.pushState(`text`),54;case 84:return this.popState(),57;case 85:return this.pushState(`text`),56;case 86:return 58;case 87:return this.pushState(`text`),67;case 88:return this.popState(),64;case 89:return this.pushState(`text`),63;case 90:return this.popState(),49;case 91:return this.pushState(`text`),48;case 92:return this.popState(),69;case 93:return this.popState(),71;case 94:return 117;case 95:return this.pushState(`trapText`),68;case 96:return this.pushState(`trapText`),70;case 97:return 118;case 98:return 67;case 99:return 90;case 100:return`SEP`;case 101:return 89;case 102:return 115;case 103:return 111;case 104:return 44;case 105:return 109;case 106:return 114;case 107:return 116;case 108:return this.popState(),62;case 109:return this.pushState(`text`),62;case 110:return this.popState(),51;case 111:return this.pushState(`text`),50;case 112:return this.popState(),31;case 113:return this.pushState(`text`),29;case 114:return this.popState(),66;case 115:return this.pushState(`text`),65;case 116:return`TEXT`;case 117:return`QUOTE`;case 118:return 9;case 119:return 10;case 120:return 11}},`anonymous`),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},shapeData:{rules:[8,11,12,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},callbackargs:{rules:[17,18,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},callbackname:{rules:[14,15,16,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},href:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},click:{rules:[21,24,33,34,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},dottedEdgeText:{rules:[21,24,75,77,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},thickEdgeText:{rules:[21,24,72,74,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},edgeText:{rules:[21,24,69,71,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},trapText:{rules:[21,24,78,81,83,85,89,91,92,93,94,95,96,109,111,113,115],inclusive:!1},ellipseText:{rules:[21,24,78,79,80,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},text:{rules:[21,24,78,81,82,83,84,85,88,89,90,91,95,96,108,109,110,111,112,113,114,115,116],inclusive:!1},vertex:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_descr:{rules:[3,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_title:{rules:[1,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},md_string:{rules:[19,20,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},string:{rules:[21,22,23,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,72,73,75,76,78,81,83,85,86,87,89,91,95,96,97,98,99,100,101,102,103,104,105,106,107,109,111,113,115,117,118,119,120],inclusive:!0}}}})();function it(){this.yy={}}return e(it,`Parser`),it.prototype=rt,rt.Parser=it,new it})();O.parser=O;var re=O,ie=Object.assign({},re);ie.parse=e=>{let t=e.replace(/}\s*\n/g,`} +`);return re.parse(t)};var ae=ie,oe=e((e,t)=>{let n=d;return a(n(e,`r`),n(e,`g`),n(e,`b`),t)},`fade`),k={parser:ae,get db(){return new E},renderer:D,styles:e(e=>`.label { + font-family: ${e.fontFamily}; + color: ${e.nodeTextColor||e.textColor}; + } + .cluster-label text { + fill: ${e.titleColor}; + } + .cluster-label span { + color: ${e.titleColor}; + } + .cluster-label span p { + background-color: transparent; + } + + .label text,span { + fill: ${e.nodeTextColor||e.textColor}; + color: ${e.nodeTextColor||e.textColor}; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; + stroke-width: ${e.strokeWidth??1}px; + } + .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label { + text-anchor: middle; + } + // .flowchart-label .text-outer-tspan { + // text-anchor: middle; + // } + // .flowchart-label .text-inner-tspan { + // text-anchor: start; + // } + + .node .katex path { + fill: #000; + stroke: #000; + stroke-width: 1px; + } + + .rough-node .label,.node .label, .image-shape .label, .icon-shape .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + + .root .anchor path { + fill: ${e.lineColor} !important; + stroke-width: 0; + stroke: ${e.lineColor}; + } + + .arrowheadPath { + fill: ${e.arrowheadColor}; + } + + .edgePath .path { + stroke: ${e.lineColor}; + stroke-width: ${e.strokeWidth??2}px; + } + + .flowchart-link { + stroke: ${e.lineColor}; + fill: none; + } + + .edgeLabel { + background-color: ${e.edgeLabelBackground}; + p { + background-color: ${e.edgeLabelBackground}; + } + rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; + } + + /* For html labels only */ + .labelBkg { + background-color: ${oe(e.edgeLabelBackground,.5)}; + // background-color: + } + + .cluster rect { + fill: ${e.clusterBkg}; + stroke: ${e.clusterBorder}; + stroke-width: 1px; + } + + .cluster text { + fill: ${e.titleColor}; + } + + .cluster span { + color: ${e.titleColor}; + } + /* .cluster div { + color: ${e.titleColor}; + } */ + + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: ${e.fontFamily}; + font-size: 12px; + background: ${e.tertiaryColor}; + border: 1px solid ${e.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .flowchartTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.textColor}; + } + + rect.text { + fill: none; + stroke-width: 0; + } + + .icon-shape, .image-shape { + background-color: ${e.edgeLabelBackground}; + p { + background-color: ${e.edgeLabelBackground}; + padding: 2px; + } + .label rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; + } + ${x()} +`,`getStyles`),init:e(e=>{e.flowchart||={},e.layout&&u({layout:e.layout}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,u({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})},`init`)};export{k as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/ganttDiagram-2ISF3G2B-DZcsr_tz.js b/docs/dist/assets/ganttDiagram-2ISF3G2B-DZcsr_tz.js new file mode 100644 index 00000000..5d8e217a --- /dev/null +++ b/docs/dist/assets/ganttDiagram-2ISF3G2B-DZcsr_tz.js @@ -0,0 +1,292 @@ +import{i as e,r as t,t as n}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{$ as r,D as i,E as a,F as o,G as s,H as c,I as l,J as u,K as d,O as f,P as p,Q as m,S as h,T as g,U as _,V as v,W as y,X as b,Y as x,Z as S,i as C,q as w,r as T,y as E}from"./chunk-V7P66DNM-D246Sefn.js";import{C as D,E as O,J as k,Q as A,Y as j,b as M,c as ee,l as te,o as N,x as ne}from"./chunk-Q52JI7PB-BeSPinqD.js";import{t as re}from"./chunk-7TFACZ55-BO7C1qvL.js";import{v as ie}from"./chunk-BSZA5ISF-LqNHBHyp.js";var P=n({"../../node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isoWeek.js"(e,n){(function(t,r){typeof e==`object`&&n!==void 0?n.exports=r():typeof define==`function`&&define.amd?define(r):(t=typeof globalThis<`u`?globalThis:t||self).dayjs_plugin_isoWeek=r()})(e,(function(){var e=`day`;return function(n,r,i){var a=t(function(t){return t.add(4-t.isoWeekday(),e)},`a`),o=r.prototype;o.isoWeekYear=function(){return a(this).year()},o.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),e);var n,r,o,s,c=a(this),l=(n=this.isoWeekYear(),r=this.$u,o=(r?i.utc:i)().year(n).startOf(`year`),s=4-o.isoWeekday(),o.isoWeekday()>4&&(s+=7),o.add(s,e));return c.diff(l,`week`)+1},o.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var s=o.startOf;o.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return n.p(e)===`isoweek`?r?this.date(this.date()-(this.isoWeekday()-1)).startOf(`day`):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf(`day`):s.bind(this)(e,t)}}}))}}),F=n({"../../node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/customParseFormat.js"(e,n){(function(t,r){typeof e==`object`&&n!==void 0?n.exports=r():typeof define==`function`&&define.amd?define(r):(t=typeof globalThis<`u`?globalThis:t||self).dayjs_plugin_customParseFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,i=/\d\d/,a=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,s={},c=t(function(e){return(e=+e)+(e>68?1900:2e3)},`a`),l=t(function(e){return function(t){this[e]=+t}},`f`),u=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=(function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n})(e)}],d=t(function(e){var t=s[e];return t&&(t.indexOf?t:t.s.concat(t.f))},`u`),f=t(function(e,t){var n,r=s.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},`d`),p={A:[o,function(e){this.afternoon=f(e,!1)}],a:[o,function(e){this.afternoon=f(e,!0)}],Q:[r,function(e){this.month=3*(e-1)+1}],S:[r,function(e){this.milliseconds=100*e}],SS:[i,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[a,l(`seconds`)],ss:[a,l(`seconds`)],m:[a,l(`minutes`)],mm:[a,l(`minutes`)],H:[a,l(`hours`)],h:[a,l(`hours`)],HH:[a,l(`hours`)],hh:[a,l(`hours`)],D:[a,l(`day`)],DD:[i,l(`day`)],Do:[o,function(e){var t=s.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[a,l(`week`)],ww:[i,l(`week`)],M:[a,l(`month`)],MM:[i,l(`month`)],MMM:[o,function(e){var t=d(`months`),n=(d(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[o,function(e){var t=d(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,l(`year`)],YY:[i,function(e){this.year=c(e)}],YYYY:[/\d{4}/,l(`year`)],Z:u,ZZ:u};function m(t){for(var r=t,i=s&&s.formats,a=(t=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(n),o=a.length,c=0;c-1)return new Date((t===`X`?1e3:1)*e);var i=m(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,p=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),p&&(y=r(y).week(p).toDate()),y)}catch{return new Date(``)}})(t,o,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(o)&&(this.$d=new Date(``)),s={}}else if(o instanceof Array)for(var f=o.length,p=1;p<=f;p+=1){a[1]=o[p-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}p===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))}}),ae=n({"../../node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/advancedFormat.js"(e,t){(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))}}),oe=n({"../../node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/duration.js"(e,n){(function(t,r){typeof e==`object`&&n!==void 0?n.exports=r():typeof define==`function`&&define.amd?define(r):(t=typeof globalThis<`u`?globalThis:t||self).dayjs_plugin_duration=r()})(e,(function(){var e,n,r=1e3,i=6e4,a=36e5,o=864e5,s=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,c=31536e6,l=2628e6,u=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,d={years:c,months:l,days:o,hours:a,minutes:i,seconds:r,milliseconds:1,weeks:6048e5},f=t(function(e){return e instanceof y},`c`),p=t(function(e,t,n){return new y(e,n,t.$l)},`f`),m=t(function(e){return n.p(e)+`s`},`m`),h=t(function(e){return e<0},`l`),g=t(function(e){return h(e)?Math.ceil(e):Math.floor(e)},`$`),_=t(function(e){return Math.abs(e)},`y`),v=t(function(e,t){return e?h(e)?{negative:!0,format:``+_(e)+t}:{negative:!1,format:``+e+t}:{negative:!1,format:``}},`v`),y=(function(){function h(e,t,n){var r=this;if(this.$d={},this.$l=n,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),t)return p(e*d[m(t)],this);if(typeof e==`number`)return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e==`object`)return Object.keys(e).forEach((function(t){r.$d[m(t)]=e[t]})),this.calMilliseconds(),this;if(typeof e==`string`){var i=e.match(u);if(i){var a=i.slice(2).map((function(e){return e==null?0:Number(e)}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}t(h,`l`);var _=h.prototype;return _.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*d[n]}),0)},_.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=g(e/c),e%=c,this.$d.months=g(e/l),e%=l,this.$d.days=g(e/o),e%=o,this.$d.hours=g(e/a),e%=a,this.$d.minutes=g(e/i),e%=i,this.$d.seconds=g(e/r),e%=r,this.$d.milliseconds=e},_.toISOString=function(){var e=v(this.$d.years,`Y`),t=v(this.$d.months,`M`),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=v(n,`D`),i=v(this.$d.hours,`H`),a=v(this.$d.minutes,`M`),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var s=v(o,`S`),c=e.negative||t.negative||r.negative||i.negative||a.negative||s.negative,l=i.format||a.format||s.format?`T`:``,u=(c?`-`:``)+`P`+e.format+t.format+r.format+l+i.format+a.format+s.format;return u===`P`||u===`-P`?`P0D`:u},_.toJSON=function(){return this.toISOString()},_.format=function(e){var t=e||`YYYY-MM-DDTHH:mm:ss`,r={Y:this.$d.years,YY:n.s(this.$d.years,2,`0`),YYYY:n.s(this.$d.years,4,`0`),M:this.$d.months,MM:n.s(this.$d.months,2,`0`),D:this.$d.days,DD:n.s(this.$d.days,2,`0`),H:this.$d.hours,HH:n.s(this.$d.hours,2,`0`),m:this.$d.minutes,mm:n.s(this.$d.minutes,2,`0`),s:this.$d.seconds,ss:n.s(this.$d.seconds,2,`0`),SSS:n.s(this.$d.milliseconds,3,`0`)};return t.replace(s,(function(e,t){return t||String(r[e])}))},_.as=function(e){return this.$ms/d[m(e)]},_.get=function(e){var t=this.$ms,n=m(e);return n===`milliseconds`?t%=1e3:t=n===`weeks`?g(t/d[n]):this.$d[n],t||0},_.add=function(e,t,n){var r;return r=t?e*d[m(t)]:f(e)?e.$ms:p(e,this).$ms,p(this.$ms+r*(n?-1:1),this)},_.subtract=function(e,t){return this.add(e,t,!0)},_.locale=function(e){var t=this.clone();return t.$l=e,t},_.clone=function(){return p(this.$ms,this)},_.humanize=function(t){return e().add(this.$ms,`ms`).locale(this.$l).fromNow(!t)},_.valueOf=function(){return this.asMilliseconds()},_.milliseconds=function(){return this.get(`milliseconds`)},_.asMilliseconds=function(){return this.as(`milliseconds`)},_.seconds=function(){return this.get(`seconds`)},_.asSeconds=function(){return this.as(`seconds`)},_.minutes=function(){return this.get(`minutes`)},_.asMinutes=function(){return this.as(`minutes`)},_.hours=function(){return this.get(`hours`)},_.asHours=function(){return this.as(`hours`)},_.days=function(){return this.get(`days`)},_.asDays=function(){return this.as(`days`)},_.weeks=function(){return this.get(`weeks`)},_.asWeeks=function(){return this.as(`weeks`)},_.months=function(){return this.get(`months`)},_.asMonths=function(){return this.as(`months`)},_.years=function(){return this.get(`years`)},_.asYears=function(){return this.as(`years`)},h})(),b=t(function(e,t,n){return e.add(t.years()*n,`y`).add(t.months()*n,`M`).add(t.days()*n,`d`).add(t.hours()*n,`h`).add(t.minutes()*n,`m`).add(t.seconds()*n,`s`).add(t.milliseconds()*n,`ms`)},`p`);return function(t,r,i){e=i,n=i().$utils(),i.duration=function(e,t){return p(e,{$l:i.locale()},t)},i.isDuration=f;var a=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(e,t){return f(e)?b(this,e,1):a.bind(this)(e,t)},r.prototype.subtract=function(e,t){return f(e)?b(this,e,-1):o.bind(this)(e,t)}}}))}}),I=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],r=[1,26],i=[1,27],a=[1,28],o=[1,29],s=[1,30],c=[1,31],l=[1,32],u=[1,33],d=[1,34],f=[1,9],p=[1,10],m=[1,11],h=[1,12],g=[1,13],_=[1,14],v=[1,15],y=[1,16],b=[1,19],x=[1,20],S=[1,21],C=[1,22],w=[1,23],T=[1,25],E=[1,35],D={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:`error`,4:`gantt`,6:`EOF`,8:`SPACE`,10:`NL`,12:`weekday_monday`,13:`weekday_tuesday`,14:`weekday_wednesday`,15:`weekday_thursday`,16:`weekday_friday`,17:`weekday_saturday`,18:`weekday_sunday`,20:`weekend_friday`,21:`weekend_saturday`,22:`dateFormat`,23:`inclusiveEndDates`,24:`topAxis`,25:`axisFormat`,26:`tickInterval`,27:`excludes`,28:`includes`,29:`todayMarker`,30:`title`,31:`acc_title`,32:`acc_title_value`,33:`acc_descr`,34:`acc_descr_value`,35:`acc_descr_multiline_value`,36:`section`,38:`taskTxt`,39:`taskData`,40:`click`,41:`callbackname`,42:`callbackargs`,43:`href`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setWeekday(`monday`);break;case 9:r.setWeekday(`tuesday`);break;case 10:r.setWeekday(`wednesday`);break;case 11:r.setWeekday(`thursday`);break;case 12:r.setWeekday(`friday`);break;case 13:r.setWeekday(`saturday`);break;case 14:r.setWeekday(`sunday`);break;case 15:r.setWeekend(`friday`);break;case 16:r.setWeekend(`saturday`);break;case 17:r.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 18:r.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 19:r.TopAxis(),this.$=a[s].substr(8);break;case 20:r.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 21:r.setTickInterval(a[s].substr(13)),this.$=a[s].substr(13);break;case 22:r.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 23:r.setIncludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 24:r.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 27:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 28:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 31:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 33:r.addTask(a[s-1],a[s]),this.$=`task`;break;case 34:this.$=a[s-1],r.setClickEvent(a[s-1],a[s],null);break;case 35:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 36:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],null),r.setLink(a[s-2],a[s]);break;case 37:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setLink(a[s-3],a[s]);break;case 38:this.$=a[s-2],r.setClickEvent(a[s-2],a[s],null),r.setLink(a[s-2],a[s-1]);break;case 39:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-1],a[s]),r.setLink(a[s-3],a[s-2]);break;case 40:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 41:case 47:this.$=a[s-1]+` `+a[s];break;case 42:case 43:case 45:this.$=a[s-2]+` `+a[s-1]+` `+a[s];break;case 44:case 46:this.$=a[s-3]+` `+a[s-2]+` `+a[s-1]+` `+a[s];break}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:i,14:a,15:o,16:s,17:c,18:l,19:18,20:u,21:d,22:f,23:p,24:m,25:h,26:g,27:_,28:v,29:y,30:b,31:x,33:S,35:C,36:w,37:24,38:T,40:E},e(n,[2,7],{1:[2,1]}),e(n,[2,3]),{9:36,11:17,12:r,13:i,14:a,15:o,16:s,17:c,18:l,19:18,20:u,21:d,22:f,23:p,24:m,25:h,26:g,27:_,28:v,29:y,30:b,31:x,33:S,35:C,36:w,37:24,38:T,40:E},e(n,[2,5]),e(n,[2,6]),e(n,[2,17]),e(n,[2,18]),e(n,[2,19]),e(n,[2,20]),e(n,[2,21]),e(n,[2,22]),e(n,[2,23]),e(n,[2,24]),e(n,[2,25]),e(n,[2,26]),e(n,[2,27]),{32:[1,37]},{34:[1,38]},e(n,[2,30]),e(n,[2,31]),e(n,[2,32]),{39:[1,39]},e(n,[2,8]),e(n,[2,9]),e(n,[2,10]),e(n,[2,11]),e(n,[2,12]),e(n,[2,13]),e(n,[2,14]),e(n,[2,15]),e(n,[2,16]),{41:[1,40],43:[1,41]},e(n,[2,4]),e(n,[2,28]),e(n,[2,29]),e(n,[2,33]),e(n,[2,34],{42:[1,42],43:[1,43]}),e(n,[2,40],{41:[1,44]}),e(n,[2,35],{43:[1,45]}),e(n,[2,36]),e(n,[2,38],{42:[1,46]}),e(n,[2,37]),e(n,[2,39])],defaultActions:{},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};D.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:t(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t(function(){return this.next()||this.lex()},`lex`),begin:t(function(e){this.conditionStack.push(e)},`begin`),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t(function(e){this.begin(e)},`pushState`),stateStackSize:t(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t(function(e,t,n,r){switch(n){case 0:return this.begin(`open_directive`),`open_directive`;case 1:return this.begin(`acc_title`),31;case 2:return this.popState(),`acc_title_value`;case 3:return this.begin(`acc_descr`),33;case 4:return this.popState(),`acc_descr_value`;case 5:this.begin(`acc_descr_multiline`);break;case 6:this.popState();break;case 7:return`acc_descr_multiline_value`;case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin(`href`);break;case 15:this.popState();break;case 16:return 43;case 17:this.begin(`callbackname`);break;case 18:this.popState();break;case 19:this.popState(),this.begin(`callbackargs`);break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin(`click`);break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return`date`;case 45:return 30;case 46:return`accDescription`;case 47:return 36;case 48:return 38;case 49:return 39;case 50:return`:`;case 51:return 6;case 52:return`INVALID`}},`anonymous`),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}})();function O(){this.yy={}}return t(O,`Parser`),O.prototype=D,D.Parser=O,new O})();I.parser=I;var se=I,ce=e(re(),1),L=e(p(),1),le=e(P(),1),ue=e(F(),1),de=e(ae(),1);L.default.extend(le.default),L.default.extend(ue.default),L.default.extend(de.default);var fe={friday:5,saturday:6},R=``,z=``,pe=void 0,me=``,B=[],V=[],he=new Map,ge=[],H=[],U=``,_e=``,ve=[`active`,`done`,`crit`,`milestone`,`vert`],ye=[],W=``,G=!1,be=!1,xe=`sunday`,K=`saturday`,Se=0,Ce=t(function(){ge=[],H=[],U=``,ye=[],nt=0,J=void 0,Y=void 0,X=[],R=``,z=``,_e=``,pe=void 0,me=``,B=[],V=[],G=!1,be=!1,Se=0,he=new Map,W=``,N(),xe=`sunday`,K=`saturday`},`clear`),we=t(function(e){W=e},`setDiagramId`),Te=t(function(e){z=e},`setAxisFormat`),Ee=t(function(){return z},`getAxisFormat`),De=t(function(e){pe=e},`setTickInterval`),Oe=t(function(){return pe},`getTickInterval`),ke=t(function(e){me=e},`setTodayMarker`),Ae=t(function(){return me},`getTodayMarker`),je=t(function(e){R=e},`setDateFormat`),Me=t(function(){G=!0},`enableInclusiveEndDates`),Ne=t(function(){return G},`endDatesAreInclusive`),Pe=t(function(){be=!0},`enableTopAxis`),Fe=t(function(){return be},`topAxisEnabled`),Ie=t(function(e){_e=e},`setDisplayMode`),Le=t(function(){return _e},`getDisplayMode`),Re=t(function(){return R},`getDateFormat`),ze=t(function(e){B=e.toLowerCase().split(/[\s,]+/)},`setIncludes`),Be=t(function(){return B},`getIncludes`),Ve=t(function(e){V=e.toLowerCase().split(/[\s,]+/)},`setExcludes`),He=t(function(){return V},`getExcludes`),Ue=t(function(){return he},`getLinks`),We=t(function(e){U=e,ge.push(e)},`addSection`),Ge=t(function(){return ge},`getSections`),Ke=t(function(){let e=ct(),t=0;for(;!e&&t<10;)e=ct(),t++;return H=X,H},`getTasks`),qe=t(function(e,t,n,r){let i=e.format(t.trim()),a=e.format(`YYYY-MM-DD`);return r.includes(i)||r.includes(a)?!1:n.includes(`weekends`)&&(e.isoWeekday()===fe[K]||e.isoWeekday()===fe[K]+1)||n.includes(e.format(`dddd`).toLowerCase())?!0:n.includes(i)||n.includes(a)},`isInvalidDate`),Je=t(function(e){xe=e},`setWeekday`),Ye=t(function(){return xe},`getWeekday`),Xe=t(function(e){K=e},`setWeekend`),Ze=t(function(e,t,n,r){if(!n.length||e.manualEndTime)return;let i;i=e.startTime instanceof Date?(0,L.default)(e.startTime):(0,L.default)(e.startTime,t,!0),i=i.add(1,`d`);let a;a=e.endTime instanceof Date?(0,L.default)(e.endTime):(0,L.default)(e.endTime,t,!0);let[o,s]=Qe(i,a,t,n,r);e.endTime=o.toDate(),e.renderEndTime=s},`checkTaskDates`),Qe=t(function(e,t,n,r,i){let a=!1,o=null,s=t.add(1e4,`d`);for(;e<=t;){if(a||(o=t.toDate()),a=qe(e,n,r,i),a&&(t=t.add(1,`d`),t>s))throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");e=e.add(1,`d`)}return[t,o]},`fixTaskDates`),$e=t(function(e,n,r){if(r=r.trim(),t(e=>{let t=e.trim();return t===`x`||t===`X`},`isTimestampFormat`)(n)&&/^\d+$/.test(r))return new Date(Number(r));let i=/^after\s+(?[\d\w- ]+)/.exec(r);if(i!==null){let e=null;for(let t of i.groups.ids.split(` `)){let n=Z(t);n!==void 0&&(!e||n.endTime>e.endTime)&&(e=n)}if(e)return e.endTime;let t=new Date;return t.setHours(0,0,0,0),t}let a=(0,L.default)(r,n.trim(),!0);if(a.isValid())return a.toDate();{g.debug(`Invalid date:`+r),g.debug(`With date format:`+n.trim());let e=new Date(r);if(e===void 0||isNaN(e.getTime())||e.getFullYear()<-1e4||e.getFullYear()>1e4)throw Error(`Invalid date:`+r);return e}},`getStartDate`),et=t(function(e){let t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return t===null?[NaN,`ms`]:[Number.parseFloat(t[1]),t[2]]},`parseDuration`),tt=t(function(e,t,n,r=!1){n=n.trim();let i=/^until\s+(?[\d\w- ]+)/.exec(n);if(i!==null){let e=null;for(let t of i.groups.ids.split(` `)){let n=Z(t);n!==void 0&&(!e||n.startTime{window.open(n,`_self`)}),he.set(e,n))}),ut(e,`clickable`)},`setLink`),ut=t(function(e,t){e.split(`,`).forEach(function(e){let n=Z(e);n!==void 0&&n.classes.push(t)})},`setClass`),dt=t(function(e,t,n){if(D().securityLevel!==`loose`||t===void 0)return;let r=[];if(typeof n==`string`){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e{ie.runFunc(t,...r)})},`setClickFun`),ft=t(function(e,t){ye.push(function(){let n=W?`${W}-${e}`:e,r=document.querySelector(`[id="${n}"]`);r!==null&&r.addEventListener(`click`,function(){t()})},function(){let n=W?`${W}-${e}`:e,r=document.querySelector(`[id="${n}-text"]`);r!==null&&r.addEventListener(`click`,function(){t()})})},`pushFun`),pt={getConfig:t(()=>D().gantt,`getConfig`),clear:Ce,setDateFormat:je,getDateFormat:Re,enableInclusiveEndDates:Me,endDatesAreInclusive:Ne,enableTopAxis:Pe,topAxisEnabled:Fe,setAxisFormat:Te,getAxisFormat:Ee,setTickInterval:De,getTickInterval:Oe,setTodayMarker:ke,getTodayMarker:Ae,setAccTitle:j,getAccTitle:ne,setDiagramTitle:A,getDiagramTitle:O,setDiagramId:we,setDisplayMode:Ie,getDisplayMode:Le,setAccDescription:k,getAccDescription:M,addSection:We,getSections:Ge,getTasks:Ke,addTask:ot,findTaskById:Z,addTaskOrg:st,setIncludes:ze,getIncludes:Be,setExcludes:Ve,getExcludes:He,setClickEvent:t(function(e,t,n){e.split(`,`).forEach(function(e){dt(e,t,n)}),ut(e,`clickable`)},`setClickEvent`),setLink:lt,getLinks:Ue,bindFunctions:t(function(e){ye.forEach(function(t){t(e)})},`bindFunctions`),parseDuration:et,isInvalidDate:qe,setWeekday:Je,getWeekday:Ye,setWeekend:Xe};function mt(e,t,n){let r=!0;for(;r;)r=!1,n.forEach(function(n){let i=`^\\s*`+n+`\\s*$`,a=new RegExp(i);e[0].match(a)&&(t[n]=!0,e.shift(1),r=!0)})}t(mt,`getTaskTags`);var Q=e(p(),1),ht=e(oe(),1);Q.default.extend(ht.default);var gt=t(function(){g.debug(`Something is calling, setConf, remove the call`)},`setConf`),_t={monday:w,tuesday:m,wednesday:r,thursday:S,friday:y,saturday:x,sunday:b},vt=t((e,t)=>{let n=[...e].map(()=>-1/0),r=[...e].sort((e,t)=>e.startTime-t.startTime||e.order-t.order),i=0;for(let e of r)for(let r=0;r=n[r]){n[r]=e.endTime,e.order=r+t,r>i&&(i=r);break}return i},`getMaxIntersections`),$,yt=1e4,bt={parser:se,db:pt,renderer:{setConf:gt,draw:t(function(e,n,r,p){let m=D().gantt;p.db.setDiagramId(n);let y=D().securityLevel,b;y===`sandbox`&&(b=l(`#i`+n));let x=l(y===`sandbox`?b.nodes()[0].contentDocument.body:`body`),S=y===`sandbox`?b.nodes()[0].contentDocument:document,w=S.getElementById(n);$=w.parentElement.offsetWidth,$===void 0&&($=1200),m.useWidth!==void 0&&($=m.useWidth);let O=p.db.getTasks(),k=[];for(let e of O)k.push(e.type);k=se(k);let A={},j=2*m.topPadding;if(p.db.getDisplayMode()===`compact`||m.displayMode===`compact`){let e={};for(let t of O)e[t.section]===void 0?e[t.section]=[t]:e[t.section].push(t);let t=0;for(let n of Object.keys(e)){let r=vt(e[n],t)+1;t+=r,j+=r*(m.barHeight+m.barGap),A[n]=r}}else{j+=O.length*(m.barHeight+m.barGap);for(let e of k)A[e]=O.filter(t=>t.type===e).length}w.setAttribute(`viewBox`,`0 0 `+$+` `+j);let M=x.select(`[id="${n}"]`),N=v().domain([f(O,function(e){return e.startTime}),a(O,function(e){return e.endTime})]).rangeRound([0,$-m.leftPadding-m.rightPadding]);function ne(e,t){let n=e.startTime,r=t.startTime,i=0;return n>r?i=1:ne.vert===t.vert?0:e.vert?1:-1);let c=[...new Set(e.map(e=>e.order))].map(t=>e.find(e=>e.order===t));M.append(`g`).selectAll(`rect`).data(c).enter().append(`rect`).attr(`x`,0).attr(`y`,function(e,n){return n=e.order,n*t+r-2}).attr(`width`,function(){return s-m.rightPadding/2}).attr(`height`,t).attr(`class`,function(e){for(let[t,n]of k.entries())if(e.type===n)return`section section`+t%m.numberSectionStyles;return`section section0`}).enter();let u=M.append(`g`).selectAll(`rect`).data(e).enter(),d=p.db.getLinks();if(u.append(`rect`).attr(`id`,function(e){return n+`-`+e.id}).attr(`rx`,3).attr(`ry`,3).attr(`x`,function(e){return e.milestone?N(e.startTime)+i+.5*(N(e.endTime)-N(e.startTime))-.5*a:N(e.startTime)+i}).attr(`y`,function(e,n){return n=e.order,e.vert?m.gridLineStartPadding:n*t+r}).attr(`width`,function(e){return e.milestone?a:e.vert?.08*a:N(e.renderEndTime||e.endTime)-N(e.startTime)}).attr(`height`,function(e){return e.vert?O.length*(m.barHeight+m.barGap)+m.barHeight*2:a}).attr(`transform-origin`,function(e,n){return n=e.order,(N(e.startTime)+i+.5*(N(e.endTime)-N(e.startTime))).toString()+`px `+(n*t+r+.5*a).toString()+`px`}).attr(`class`,function(e){let t=``;e.classes.length>0&&(t=e.classes.join(` `));let n=0;for(let[t,r]of k.entries())e.type===r&&(n=t%m.numberSectionStyles);let r=``;return e.active?e.crit?r+=` activeCrit`:r=` active`:e.done?r=e.crit?` doneCrit`:` done`:e.crit&&(r+=` crit`),r.length===0&&(r=` task`),e.milestone&&(r=` milestone `+r),e.vert&&(r=` vert `+r),r+=n,r+=` `+t,`task`+r}),u.append(`text`).attr(`id`,function(e){return n+`-`+e.id+`-text`}).text(function(e){return e.task}).attr(`font-size`,m.fontSize).attr(`x`,function(e){let t=N(e.startTime),n=N(e.renderEndTime||e.endTime);if(e.milestone&&(t+=.5*(N(e.endTime)-N(e.startTime))-.5*a,n=t+a),e.vert)return N(e.startTime)+i;let r=this.getBBox().width;return r>n-t?n+r+1.5*m.leftPadding>s?t+i-5:n+i+5:(n-t)/2+t+i}).attr(`y`,function(e,n){return e.vert?m.gridLineStartPadding+O.length*(m.barHeight+m.barGap)+60:(n=e.order,n*t+m.barHeight/2+(m.fontSize/2-2)+r)}).attr(`text-height`,a).attr(`class`,function(e){let t=N(e.startTime),n=N(e.endTime);e.milestone&&(n=t+a);let r=this.getBBox().width,i=``;e.classes.length>0&&(i=e.classes.join(` `));let o=0;for(let[t,n]of k.entries())e.type===n&&(o=t%m.numberSectionStyles);let c=``;return e.active&&(c=e.crit?`activeCritText`+o:`activeText`+o),e.done?c=e.crit?c+` doneCritText`+o:c+` doneText`+o:e.crit&&(c=c+` critText`+o),e.milestone&&(c+=` milestoneText`),e.vert&&(c+=` vertText`),r>n-t?n+r+1.5*m.leftPadding>s?i+` taskTextOutsideLeft taskTextOutside`+o+` `+c:i+` taskTextOutsideRight taskTextOutside`+o+` `+c+` width-`+r:i+` taskText taskText`+o+` `+c+` width-`+r}),D().securityLevel===`sandbox`){let e;e=l(`#i`+n);let t=e.nodes()[0].contentDocument;u.filter(function(e){return d.has(e.id)}).each(function(e){var r=t.querySelector(`#`+CSS.escape(n+`-`+e.id)),i=t.querySelector(`#`+CSS.escape(n+`-`+e.id+`-text`));let a=r.parentNode;var o=t.createElement(`a`);o.setAttribute(`xlink:href`,d.get(e.id)),o.setAttribute(`target`,`_top`),a.appendChild(o),o.appendChild(r),o.appendChild(i)})}}t(ie,`drawRects`);function P(e,t,r,i,a,o,s,c){if(s.length===0&&c.length===0)return;let l,u;for(let{startTime:e,endTime:t}of o)(l===void 0||eu)&&(u=t);if(!l||!u)return;if((0,Q.default)(u).diff((0,Q.default)(l),`year`)>5){g.warn(`The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.`);return}let d=p.db.getDateFormat(),f=[],h=null,_=(0,Q.default)(l);for(;_.valueOf()<=u;)p.db.isInvalidDate(_,d,s,c)?h?h.end=_:h={start:_,end:_}:h&&=(f.push(h),null),_=_.add(1,`d`);M.append(`g`).selectAll(`rect`).data(f).enter().append(`rect`).attr(`id`,e=>n+`-exclude-`+e.start.format(`YYYY-MM-DD`)).attr(`x`,e=>N(e.start.startOf(`day`))+r).attr(`y`,m.gridLineStartPadding).attr(`width`,e=>N(e.end.endOf(`day`))-N(e.start.startOf(`day`))).attr(`height`,a-t-m.gridLineStartPadding).attr(`transform-origin`,function(t,n){return(N(t.start)+r+.5*(N(t.end)-N(t.start))).toString()+`px `+(n*e+.5*a).toString()+`px`}).attr(`class`,`exclude-range`)}t(P,`drawExcludeDays`);function F(e,t,n,r){if(n<=0||e>t)return 1/0;let i=t-e,a=Q.default.duration({[r??`day`]:n}).asMilliseconds();return a<=0?1/0:Math.ceil(i/a)}t(F,`getEstimatedTickCount`);function ae(e,t,n,r){let a=p.db.getDateFormat(),l=p.db.getAxisFormat(),f;f=l||(a===`D`?`%d`:m.axisFormat??`%Y-%m-%d`);let h=T(N).tickSize(-r+t+m.gridLineStartPadding).tickFormat(_(f)),v=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(p.db.getTickInterval()||m.tickInterval);if(v!==null){let e=parseInt(v[1],10);if(isNaN(e)||e<=0)g.warn(`Invalid tick interval value: "${v[1]}". Skipping custom tick interval.`);else{let t=v[2],n=p.db.getWeekday()||m.weekday,r=N.domain(),a=r[0],l=r[1],f=F(a,l,e,t);if(f>yt)g.warn(`The tick interval "${e}${t}" would generate ${f} ticks, which exceeds the maximum allowed (${yt}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(t){case`millisecond`:h.ticks(i.every(e));break;case`second`:h.ticks(o.every(e));break;case`minute`:h.ticks(d.every(e));break;case`hour`:h.ticks(s.every(e));break;case`day`:h.ticks(c.every(e));break;case`week`:h.ticks(_t[n].every(e));break;case`month`:h.ticks(u.every(e));break}}}if(M.append(`g`).attr(`class`,`grid`).attr(`transform`,`translate(`+e+`, `+(r-50)+`)`).call(h).selectAll(`text`).style(`text-anchor`,`middle`).attr(`fill`,`#000`).attr(`stroke`,`none`).attr(`font-size`,10).attr(`dy`,`1em`),p.db.topAxisEnabled()||m.topAxis){let n=C(N).tickSize(-r+t+m.gridLineStartPadding).tickFormat(_(f));if(v!==null){let e=parseInt(v[1],10);if(isNaN(e)||e<=0)g.warn(`Invalid tick interval value: "${v[1]}". Skipping custom tick interval.`);else{let t=v[2],r=p.db.getWeekday()||m.weekday,a=N.domain(),l=a[0],f=a[1];if(F(l,f,e,t)<=yt)switch(t){case`millisecond`:n.ticks(i.every(e));break;case`second`:n.ticks(o.every(e));break;case`minute`:n.ticks(d.every(e));break;case`hour`:n.ticks(s.every(e));break;case`day`:n.ticks(c.every(e));break;case`week`:n.ticks(_t[r].every(e));break;case`month`:n.ticks(u.every(e));break}}}M.append(`g`).attr(`class`,`grid`).attr(`transform`,`translate(`+e+`, `+t+`)`).call(n).selectAll(`text`).style(`text-anchor`,`middle`).attr(`fill`,`#000`).attr(`stroke`,`none`).attr(`font-size`,10)}}t(ae,`makeGrid`);function oe(e,t){let n=0,r=Object.keys(A).map(e=>[e,A[e]]);M.append(`g`).selectAll(`text`).data(r).enter().append(function(e){let t=e[0].split(ee.lineBreakRegex),n=-(t.length-1)/2,r=S.createElementNS(`http://www.w3.org/2000/svg`,`text`);r.setAttribute(`dy`,n+`em`);for(let[e,n]of t.entries()){let t=S.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);t.setAttribute(`alignment-baseline`,`central`),t.setAttribute(`x`,`10`),e>0&&t.setAttribute(`dy`,`1em`),t.textContent=n,r.appendChild(t)}return r}).attr(`x`,10).attr(`y`,function(i,a){if(a>0)for(let o=0;o` + .mermaid-main-font { + font-family: ${e.fontFamily}; + } + + .exclude-range { + fill: ${e.excludeBkgColor}; + } + + .section { + stroke: none; + opacity: 0.2; + } + + .section0 { + fill: ${e.sectionBkgColor}; + } + + .section2 { + fill: ${e.sectionBkgColor2}; + } + + .section1, + .section3 { + fill: ${e.altSectionBkgColor}; + opacity: 0.2; + } + + .sectionTitle0 { + fill: ${e.titleColor}; + } + + .sectionTitle1 { + fill: ${e.titleColor}; + } + + .sectionTitle2 { + fill: ${e.titleColor}; + } + + .sectionTitle3 { + fill: ${e.titleColor}; + } + + .sectionTitle { + text-anchor: start; + font-family: ${e.fontFamily}; + } + + + /* Grid and axis */ + + .grid .tick { + stroke: ${e.gridColor}; + opacity: 0.8; + shape-rendering: crispEdges; + } + + .grid .tick text { + font-family: ${e.fontFamily}; + fill: ${e.textColor}; + } + + .grid path { + stroke-width: 0; + } + + + /* Today line */ + + .today { + fill: none; + stroke: ${e.todayLineColor}; + stroke-width: 2px; + } + + + /* Task styling */ + + /* Default task */ + + .task { + stroke-width: 2; + } + + .taskText { + text-anchor: middle; + font-family: ${e.fontFamily}; + } + + .taskTextOutsideRight { + fill: ${e.taskTextDarkColor}; + text-anchor: start; + font-family: ${e.fontFamily}; + } + + .taskTextOutsideLeft { + fill: ${e.taskTextDarkColor}; + text-anchor: end; + } + + + /* Special case clickable */ + + .task.clickable { + cursor: pointer; + } + + .taskText.clickable { + cursor: pointer; + fill: ${e.taskTextClickableColor} !important; + font-weight: bold; + } + + .taskTextOutsideLeft.clickable { + cursor: pointer; + fill: ${e.taskTextClickableColor} !important; + font-weight: bold; + } + + .taskTextOutsideRight.clickable { + cursor: pointer; + fill: ${e.taskTextClickableColor} !important; + font-weight: bold; + } + + + /* Specific task settings for the sections*/ + + .taskText0, + .taskText1, + .taskText2, + .taskText3 { + fill: ${e.taskTextColor}; + } + + .task0, + .task1, + .task2, + .task3 { + fill: ${e.taskBkgColor}; + stroke: ${e.taskBorderColor}; + } + + .taskTextOutside0, + .taskTextOutside2 + { + fill: ${e.taskTextOutsideColor}; + } + + .taskTextOutside1, + .taskTextOutside3 { + fill: ${e.taskTextOutsideColor}; + } + + + /* Active task */ + + .active0, + .active1, + .active2, + .active3 { + fill: ${e.activeTaskBkgColor}; + stroke: ${e.activeTaskBorderColor}; + } + + .activeText0, + .activeText1, + .activeText2, + .activeText3 { + fill: ${e.taskTextDarkColor} !important; + } + + + /* Completed task */ + + .done0, + .done1, + .done2, + .done3 { + stroke: ${e.doneTaskBorderColor}; + fill: ${e.doneTaskBkgColor}; + stroke-width: 2; + } + + .doneText0, + .doneText1, + .doneText2, + .doneText3 { + fill: ${e.taskTextDarkColor} !important; + } + + /* Done task text displayed outside the bar sits against the diagram background, + not against the done-task bar, so it must use the outside/contrast color. */ + .doneText0.taskTextOutsideLeft, + .doneText0.taskTextOutsideRight, + .doneText1.taskTextOutsideLeft, + .doneText1.taskTextOutsideRight, + .doneText2.taskTextOutsideLeft, + .doneText2.taskTextOutsideRight, + .doneText3.taskTextOutsideLeft, + .doneText3.taskTextOutsideRight { + fill: ${e.taskTextOutsideColor} !important; + } + + + /* Tasks on the critical line */ + + .crit0, + .crit1, + .crit2, + .crit3 { + stroke: ${e.critBorderColor}; + fill: ${e.critBkgColor}; + stroke-width: 2; + } + + .activeCrit0, + .activeCrit1, + .activeCrit2, + .activeCrit3 { + stroke: ${e.critBorderColor}; + fill: ${e.activeTaskBkgColor}; + stroke-width: 2; + } + + .doneCrit0, + .doneCrit1, + .doneCrit2, + .doneCrit3 { + stroke: ${e.critBorderColor}; + fill: ${e.doneTaskBkgColor}; + stroke-width: 2; + cursor: pointer; + shape-rendering: crispEdges; + } + + .milestone { + transform: rotate(45deg) scale(0.8,0.8); + } + + .milestoneText { + font-style: italic; + } + .doneCritText0, + .doneCritText1, + .doneCritText2, + .doneCritText3 { + fill: ${e.taskTextDarkColor} !important; + } + + /* Done-crit task text outside the bar \u2014 same reasoning as doneText above. */ + .doneCritText0.taskTextOutsideLeft, + .doneCritText0.taskTextOutsideRight, + .doneCritText1.taskTextOutsideLeft, + .doneCritText1.taskTextOutsideRight, + .doneCritText2.taskTextOutsideLeft, + .doneCritText2.taskTextOutsideRight, + .doneCritText3.taskTextOutsideLeft, + .doneCritText3.taskTextOutsideRight { + fill: ${e.taskTextOutsideColor} !important; + } + + .vert { + stroke: ${e.vertLineColor}; + } + + .vertText { + font-size: 15px; + text-anchor: middle; + fill: ${e.vertLineColor} !important; + } + + .activeCritText0, + .activeCritText1, + .activeCritText2, + .activeCritText3 { + fill: ${e.taskTextDarkColor} !important; + } + + .titleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.titleColor||e.textColor}; + font-family: ${e.fontFamily}; + } +`,`getStyles`)};export{bt as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/gitGraph-WXDBUCRP-EUW4T63J-B-ZefmQS.js b/docs/dist/assets/gitGraph-WXDBUCRP-EUW4T63J-B-ZefmQS.js new file mode 100644 index 00000000..691130d1 --- /dev/null +++ b/docs/dist/assets/gitGraph-WXDBUCRP-EUW4T63J-B-ZefmQS.js @@ -0,0 +1 @@ +import{u as e}from"./chunk-BBDM4ZFP-DhnAO8sj.js";export{e as createGitGraphServices}; \ No newline at end of file diff --git a/docs/dist/assets/gitGraphDiagram-6WOFZIJB-Eotd4PqX.js b/docs/dist/assets/gitGraphDiagram-6WOFZIJB-Eotd4PqX.js new file mode 100644 index 00000000..62ac4a43 --- /dev/null +++ b/docs/dist/assets/gitGraphDiagram-6WOFZIJB-Eotd4PqX.js @@ -0,0 +1,106 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{I as t,T as n}from"./chunk-V7P66DNM-D246Sefn.js";import{C as r,E as i,J as a,Q as o,S as s,Y as c,b as l,c as u,m as d,o as f,tt as p,x as m}from"./chunk-Q52JI7PB-BeSPinqD.js";import"./chunk-7TFACZ55-BO7C1qvL.js";import{g as h,i as g,v as _}from"./chunk-BSZA5ISF-LqNHBHyp.js";import{y as v}from"./chunk-BBDM4ZFP-DhnAO8sj.js";import{t as y}from"./chunk-6ZKBGPIT-B4RTUexp.js";import{t as b}from"./chunk-IALYP65X-Bv3ioVcB.js";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},ee=d.gitGraph,S=e(()=>g({...ee,...s().gitGraph}),`getConfig`),C=new b(()=>{let e=S(),t=e.mainBranchName,n=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:n}]]),branches:new Map([[t,null]]),currBranch:t,direction:`LR`,seq:0,options:{}}});function w(){return h({length:7})}e(w,`getID`);function T(e,t){let n=Object.create(null);return e.reduce((e,r)=>{let i=t(r);return n[i]||(n[i]=!0,e.push(r)),e},[])}e(T,`uniqBy`);var te=e(function(e){C.records.direction=e},`setDirection`),ne=e(function(e){n.debug(`options str`,e),e=e?.trim(),e||=`{}`;try{C.records.options=JSON.parse(e)}catch(e){n.error(`error while parsing gitGraph options`,e.message)}},`setOptions`),re=e(function(){return C.records.options},`getOptions`),ie=e(function(e){let t=e.msg,r=e.id,i=e.type,a=e.tags;n.info(`commit`,t,r,i,a),n.debug(`Entering commit:`,t,r,i,a);let o=S();r=u.sanitizeText(r,o),t=u.sanitizeText(t,o),a=a?.map(e=>u.sanitizeText(e,o));let s={id:r||C.records.seq+`-`+w(),message:t,seq:C.records.seq++,type:i??x.NORMAL,tags:a??[],parents:C.records.head==null?[]:[C.records.head.id],branch:C.records.currBranch};C.records.head=s,n.info(`main branch`,o.mainBranchName),C.records.commits.has(s.id)&&n.warn(`Commit ID ${s.id} already exists`),C.records.commits.set(s.id,s),C.records.branches.set(C.records.currBranch,s.id),n.debug(`in pushCommit `+s.id)},`commit`),ae=e(function(e){let t=e.name,r=e.order;if(t=u.sanitizeText(t,S()),C.records.branches.has(t))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);C.records.branches.set(t,C.records.head==null?null:C.records.head.id),C.records.branchConfig.set(t,{name:t,order:r}),E(t),n.debug(`in createBranch`)},`branch`),oe=e(e=>{let t=e.branch,r=e.id,i=e.type,a=e.tags,o=S();t=u.sanitizeText(t,o),r&&=u.sanitizeText(r,o);let s=C.records.branches.get(C.records.currBranch),c=C.records.branches.get(t),l=s?C.records.commits.get(s):void 0,d=c?C.records.commits.get(c):void 0;if(l&&d&&l.branch===t)throw Error(`Cannot merge branch '${t}' into itself.`);if(C.records.currBranch===t){let e=Error(`Incorrect usage of "merge". Cannot merge a branch to itself`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(l===void 0||!l){let e=Error(`Incorrect usage of "merge". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`commit`]},e}if(!C.records.branches.has(t)){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) does not exist`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch ${t}`]},e}if(d===void 0||!d){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`"commit"`]},e}if(l===d){let e=Error(`Incorrect usage of "merge". Both branches have same head`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(r&&C.records.commits.has(r)){let e=Error(`Incorrect usage of "merge". Commit with id:`+r+` already exists, use different custom id`);throw e.hash={text:`merge ${t} ${r} ${i} ${a?.join(` `)}`,token:`merge ${t} ${r} ${i} ${a?.join(` `)}`,expected:[`merge ${t} ${r}_UNIQUE ${i} ${a?.join(` `)}`]},e}let f=c||``,p={id:r||`${C.records.seq}-${w()}`,message:`merged branch ${t} into ${C.records.currBranch}`,seq:C.records.seq++,parents:C.records.head==null?[]:[C.records.head.id,f],branch:C.records.currBranch,type:x.MERGE,customType:i,customId:!!r,tags:a??[]};C.records.head=p,C.records.commits.set(p.id,p),C.records.branches.set(C.records.currBranch,p.id),n.debug(C.records.branches),n.debug(`in mergeBranch`)},`merge`),se=e(function(e){let t=e.id,r=e.targetId,i=e.tags,a=e.parent;n.debug(`Entering cherryPick:`,t,r,i);let o=S();if(t=u.sanitizeText(t,o),r=u.sanitizeText(r,o),i=i?.map(e=>u.sanitizeText(e,o)),a=u.sanitizeText(a,o),!t||!C.records.commits.has(t)){let e=Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);throw e.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:[`cherry-pick abc`]},e}let s=C.records.commits.get(t);if(s===void 0||!s)throw Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);if(a&&!(Array.isArray(s.parents)&&s.parents.includes(a)))throw Error(`Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.`);let c=s.branch;if(s.type===x.MERGE&&!a)throw Error(`Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.`);if(!r||!C.records.commits.has(r)){if(c===C.records.currBranch){let e=Error(`Incorrect usage of "cherryPick". Source commit is already on current branch`);throw e.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:[`cherry-pick abc`]},e}let e=C.records.branches.get(C.records.currBranch);if(e===void 0||!e){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:[`cherry-pick abc`]},e}let o=C.records.commits.get(e);if(o===void 0||!o){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:[`cherry-pick abc`]},e}let l={id:C.records.seq+`-`+w(),message:`cherry-picked ${s?.message} into ${C.records.currBranch}`,seq:C.records.seq++,parents:C.records.head==null?[]:[C.records.head.id,s.id],branch:C.records.currBranch,type:x.CHERRY_PICK,tags:i?i.filter(Boolean):[`cherry-pick:${s.id}${s.type===x.MERGE?`|parent:${a}`:``}`]};C.records.head=l,C.records.commits.set(l.id,l),C.records.branches.set(C.records.currBranch,l.id),n.debug(C.records.branches),n.debug(`in cherryPick`)}},`cherryPick`),E=e(function(e){if(e=u.sanitizeText(e,S()),C.records.branches.has(e)){C.records.currBranch=e;let t=C.records.branches.get(C.records.currBranch);t===void 0||!t?C.records.head=null:C.records.head=C.records.commits.get(t)??null}else{let t=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw t.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},t}},`checkout`);function D(e,t,n){let r=e.indexOf(t);r===-1?e.push(n):e.splice(r,1,n)}e(D,`upsert`);function O(e){let t=e.reduce((e,t)=>e.seq>t.seq?e:t,e[0]),r=``;e.forEach(function(e){e===t?r+=` *`:r+=` |`});let i=[r,t.id,t.seq];for(let e in C.records.branches)C.records.branches.get(e)===t.id&&i.push(e);if(n.debug(i.join(` `)),t.parents&&t.parents.length==2&&t.parents[0]&&t.parents[1]){let n=C.records.commits.get(t.parents[0]);D(e,t,n),t.parents[1]&&e.push(C.records.commits.get(t.parents[1]))}else if(t.parents.length==0)return;else if(t.parents[0]){let n=C.records.commits.get(t.parents[0]);D(e,t,n)}e=T(e,e=>e.id),O(e)}e(O,`prettyPrintCommitHistory`);var ce=e(function(){n.debug(C.records.commits);let e=k()[0];O([e])},`prettyPrint`),le=e(function(){C.reset(),f()},`clear`),ue=e(function(){return[...C.records.branchConfig.values()].map((e,t)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${t}`)}).sort((e,t)=>(e.order??0)-(t.order??0)).map(({name:e})=>({name:e}))},`getBranchesAsObjArray`),de=e(function(){return C.records.branches},`getBranches`),fe=e(function(){return C.records.commits},`getCommits`),k=e(function(){let e=[...C.records.commits.values()];return e.forEach(function(e){n.debug(e.id)}),e.sort((e,t)=>e.seq-t.seq),e},`getCommitsArray`),A={commitType:x,getConfig:S,setDirection:te,setOptions:ne,getOptions:re,commit:ie,branch:ae,merge:oe,cherryPick:se,checkout:E,prettyPrint:ce,clear:le,getBranchesAsObjArray:ue,getBranches:de,getCommits:fe,getCommitsArray:k,getCurrentBranch:e(function(){return C.records.currBranch},`getCurrentBranch`),getDirection:e(function(){return C.records.direction},`getDirection`),getHead:e(function(){return C.records.head},`getHead`),setAccTitle:c,getAccTitle:m,getAccDescription:l,setAccDescription:a,setDiagramTitle:o,getDiagramTitle:i},pe=e((e,t)=>{y(e,t),e.dir&&t.setDirection(e.dir);for(let n of e.statements)me(n,t)},`populate`),me=e((t,r)=>{let i={Commit:e(e=>r.commit(he(e)),`Commit`),Branch:e(e=>r.branch(ge(e)),`Branch`),Merge:e(e=>r.merge(_e(e)),`Merge`),Checkout:e(e=>r.checkout(ve(e)),`Checkout`),CherryPicking:e(e=>r.cherryPick(ye(e)),`CherryPicking`)}[t.$type];i?i(t):n.error(`Unknown statement type: ${t.$type}`)},`parseStatement`),he=e(e=>({id:e.id,msg:e.message??``,type:e.type===void 0?x.NORMAL:x[e.type],tags:e.tags??void 0}),`parseCommit`),ge=e(e=>({name:e.name,order:e.order??0}),`parseBranch`),_e=e(e=>({branch:e.branch,id:e.id??``,type:e.type===void 0?void 0:x[e.type],tags:e.tags??void 0}),`parseMerge`),ve=e(e=>e.branch,`parseCheckout`),ye=e(e=>({id:e.id,targetId:``,tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),`parseCherryPicking`),be={parse:e(async e=>{let t=await v(`gitGraph`,e);n.debug(t),pe(t,A)},`parse`)},j=10,M=40,N=4,P=2,F=8,I=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),L=12,R=new Set([`redux-color`,`redux-dark-color`]),xe=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),z=e((e,t,n=!1)=>n&&e>0?(e-1)%(t-1)+1:e%t,`calcColorIndex`),B=new Map,V=new Map,H=30,U=new Map,W=[],G=0,K=`LR`,q=e(()=>{B.clear(),V.clear(),U.clear(),G=0,W=[],K=`LR`},`clear`),J=e(e=>{let t=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);return(typeof e==`string`?e.split(/\\n|\n|/gi):e).forEach(e=>{let n=document.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);n.setAttributeNS(`http://www.w3.org/XML/1998/namespace`,`xml:space`,`preserve`),n.setAttribute(`dy`,`1em`),n.setAttribute(`x`,`0`),n.setAttribute(`class`,`row`),n.textContent=e.trim(),t.appendChild(n)}),t},`drawText`),Y=e(t=>{let n,r,i;return K===`BT`?(r=e((e,t)=>e<=t,`comparisonFunc`),i=1/0):(r=e((e,t)=>e>=t,`comparisonFunc`),i=0),t.forEach(e=>{let t=K===`TB`||K==`BT`?V.get(e)?.y:V.get(e)?.x;t!==void 0&&r(t,i)&&(n=e,i=t)}),n},`findClosestParent`),Se=e(e=>{let t=``,n=1/0;return e.forEach(e=>{let r=V.get(e).y;r<=n&&(t=e,n=r)}),t||void 0},`findClosestParentBT`),Ce=e((e,t,n)=>{let r=n,i=n,a=[];e.forEach(e=>{let n=t.get(e);if(!n)throw Error(`Commit not found for key ${e}`);n.parents.length?(r=Te(n),i=Math.max(r,i)):a.push(n),Ee(n,r)}),r=i,a.forEach(e=>{De(e,r,n)}),e.forEach(e=>{let n=t.get(e);if(n?.parents.length){let e=Se(n.parents);r=V.get(e).y-M,r<=i&&(i=r);let t=B.get(n.branch).pos,a=r-j;V.set(n.id,{x:t,y:a})}})},`setParallelBTPos`),we=e(e=>{let t=Y(e.parents.filter(e=>e!==null));if(!t)throw Error(`Closest parent not found for commit ${e.id}`);let n=V.get(t)?.y;if(n===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return n},`findClosestParentPos`),Te=e(e=>we(e)+M,`calculateCommitPosition`),Ee=e((e,t)=>{let n=B.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let r=n.pos,i=t+j;return V.set(e.id,{x:r,y:i}),{x:r,y:i}},`setCommitPosition`),De=e((e,t,n)=>{let r=B.get(e.branch);if(!r)throw Error(`Branch not found for commit ${e.id}`);let i=t+n,a=r.pos;V.set(e.id,{x:a,y:i})},`setRootPosition`),Oe=e((e,t,n,i,a,o)=>{let{theme:s}=r(),c=I.has(s??``),l=R.has(s??``),u=xe.has(s??``);if(o===x.HIGHLIGHT)e.append(`rect`).attr(`x`,n.x-10+(c?3:0)).attr(`y`,n.y-10+(c?3:0)).attr(`width`,c?14:20).attr(`height`,c?14:20).attr(`class`,`commit ${t.id} commit-highlight${z(a,F,l)} ${i}-outer`),e.append(`rect`).attr(`x`,n.x-6+(c?2:0)).attr(`y`,n.y-6+(c?2:0)).attr(`width`,c?8:12).attr(`height`,c?8:12).attr(`class`,`commit ${t.id} commit${z(a,F,l)} ${i}-inner`);else if(o===x.CHERRY_PICK)e.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,c?7:10).attr(`class`,`commit ${t.id} ${i}`),e.append(`circle`).attr(`cx`,n.x-3).attr(`cy`,n.y+2).attr(`r`,c?2.5:2.75).attr(`fill`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${i}`),e.append(`circle`).attr(`cx`,n.x+3).attr(`cy`,n.y+2).attr(`r`,c?2.5:2.75).attr(`fill`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${i}`),e.append(`line`).attr(`x1`,n.x+3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${i}`),e.append(`line`).attr(`x1`,n.x-3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${i}`);else{let r=e.append(`circle`);if(r.attr(`cx`,n.x),r.attr(`cy`,n.y),r.attr(`r`,c?7:10),r.attr(`class`,`commit ${t.id} commit${z(a,F,l)}`),o===x.MERGE){let r=e.append(`circle`);r.attr(`cx`,n.x),r.attr(`cy`,n.y),r.attr(`r`,c?5:6),r.attr(`class`,`commit ${i} ${t.id} commit${z(a,F,l)}`)}if(o===x.REVERSE){let r=e.append(`path`),o=c?4:5;r.attr(`d`,`M ${n.x-o},${n.y-o}L${n.x+o},${n.y+o}M${n.x-o},${n.y+o}L${n.x+o},${n.y-o}`).attr(`class`,`commit ${i} ${t.id} commit${z(a,F,l)}`)}}},`drawCommitBullet`),ke=e((e,t,n,r,i)=>{if(t.type!==x.CHERRY_PICK&&(t.customId&&t.type===x.MERGE||t.type!==x.MERGE)&&i.showCommitLabel){let a=e.append(`g`),o=a.insert(`rect`).attr(`class`,`commit-label-bkg`),s=a.append(`text`).attr(`x`,r).attr(`y`,n.y+25).attr(`class`,`commit-label`).text(t.id),c=s.node()?.getBBox();if(c&&(o.attr(`x`,n.posWithOffset-c.width/2-P).attr(`y`,n.y+13.5).attr(`width`,c.width+2*P).attr(`height`,c.height+2*P),K===`TB`||K===`BT`?(o.attr(`x`,n.x-(c.width+4*N+5)).attr(`y`,n.y-12),s.attr(`x`,n.x-(c.width+4*N)).attr(`y`,n.y+c.height-12)):s.attr(`x`,n.posWithOffset-c.width/2),i.rotateCommitLabel))if(K===`TB`||K===`BT`)s.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`),o.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`);else{let e=-7.5-(c.width+10)/25*9.5,t=10+c.width/25*8.5;a.attr(`transform`,`translate(`+e+`, `+t+`) rotate(-45, `+r+`, `+n.y+`)`)}}},`drawCommitLabel`),Ae=e((e,t,n,r)=>{if(t.tags.length>0){let i=0,a=0,o=0,s=[];for(let r of t.tags.reverse()){let t=e.insert(`polygon`),c=e.append(`circle`),l=e.append(`text`).attr(`y`,n.y-16-i).attr(`class`,`tag-label`).text(r),u=l.node()?.getBBox();if(!u)throw Error(`Tag bbox not found`);a=Math.max(a,u.width),o=Math.max(o,u.height),l.attr(`x`,n.posWithOffset-u.width/2),s.push({tag:l,hole:c,rect:t,yOffset:i}),i+=20}for(let{tag:e,hole:t,rect:i,yOffset:c}of s){let s=o/2,l=n.y-19.2-c;if(i.attr(`class`,`tag-label-bkg`).attr(`points`,` + ${r-a/2-N/2},${l+P} + ${r-a/2-N/2},${l-P} + ${n.posWithOffset-a/2-N},${l-s-P} + ${n.posWithOffset+a/2+N},${l-s-P} + ${n.posWithOffset+a/2+N},${l+s+P} + ${n.posWithOffset-a/2-N},${l+s+P}`),t.attr(`cy`,l).attr(`cx`,r-a/2+N/2).attr(`r`,1.5).attr(`class`,`tag-hole`),K===`TB`||K===`BT`){let o=r+c;i.attr(`class`,`tag-label-bkg`).attr(`points`,` + ${n.x},${o+2} + ${n.x},${o-2} + ${n.x+j},${o-s-2} + ${n.x+j+a+4},${o-s-2} + ${n.x+j+a+4},${o+s+2} + ${n.x+j},${o+s+2}`).attr(`transform`,`translate(12,12) rotate(45, `+n.x+`,`+r+`)`),t.attr(`cx`,n.x+N/2).attr(`cy`,o).attr(`transform`,`translate(12,12) rotate(45, `+n.x+`,`+r+`)`),e.attr(`x`,n.x+5).attr(`y`,o+3).attr(`transform`,`translate(14,14) rotate(45, `+n.x+`,`+r+`)`)}}}},`drawCommitTags`),je=e(e=>{switch(e.customType??e.type){case x.NORMAL:return`commit-normal`;case x.REVERSE:return`commit-reverse`;case x.HIGHLIGHT:return`commit-highlight`;case x.MERGE:return`commit-merge`;case x.CHERRY_PICK:return`commit-cherry-pick`;default:return`commit-normal`}},`getCommitClassType`),Me=e((e,t,n,r)=>{let i={x:0,y:0};if(e.parents.length>0){let n=Y(e.parents);if(n){let a=r.get(n)??i;return t===`TB`?a.y+M:t===`BT`?(r.get(e.id)??i).y-M:a.x+M}}else if(t===`TB`)return H;else if(t===`BT`)return(r.get(e.id)??i).y-M;else return 0;return 0},`calculatePosition`),Ne=e((e,t,n)=>{let i=K===`BT`&&n?t:t+j,a=B.get(e.branch)?.pos,o=K===`TB`||K===`BT`?B.get(e.branch)?.pos:i;if(o===void 0||a===void 0)throw Error(`Position were undefined for commit ${e.id}`);let s=I.has(r().theme??``);return{x:o,y:K===`TB`||K===`BT`?i:a+(s?L/2+1:-2),posWithOffset:i}},`getCommitPosition`),X=e((t,n,r,i)=>{let a=t.append(`g`).attr(`class`,`commit-bullets`),o=t.append(`g`).attr(`class`,`commit-labels`),s=K===`TB`||K===`BT`?H:0,c=[...n.keys()],l=i.parallelCommits??!1,u=e((e,t)=>{let r=n.get(e)?.seq,i=n.get(t)?.seq;return r!==void 0&&i!==void 0?r-i:0},`sortKeys`),d=c.sort(u);K===`BT`&&(l&&Ce(d,n,s),d=d.reverse()),d.forEach(e=>{let t=n.get(e);if(!t)throw Error(`Commit not found for key ${e}`);l&&(s=Me(t,K,s,V));let c=Ne(t,s,l);if(r){let e=je(t),n=t.customType??t.type;Oe(a,t,c,e,B.get(t.branch)?.index??0,n),ke(o,t,c,s,i),Ae(o,t,c,s)}K===`TB`||K===`BT`?V.set(t.id,{x:c.x,y:c.posWithOffset}):V.set(t.id,{x:c.posWithOffset,y:c.y}),s=K===`BT`&&l?s+M:s+M+j,s>G&&(G=s)})},`drawCommits`),Pe=e((t,n,r,i,a)=>{let o=(K===`TB`||K===`BT`?r.xe.branch===o,`isOnBranchToGetCurve`),c=e(e=>e.seq>t.seq&&e.seqc(e)&&s(e))},`shouldRerouteArrow`),Z=e((e,t,n=0)=>{let r=e+Math.abs(e-t)/2;return n>5?r:W.every(e=>Math.abs(e-r)>=10)?(W.push(r),r):Z(e,t-Math.abs(e-t)/5,n+1)},`findLane`),Fe=e((e,t,n,i)=>{let{theme:a}=r(),o=R.has(a??``),s=V.get(t.id),c=V.get(n.id);if(s===void 0||c===void 0)throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);let l=Pe(t,n,s,c,i),u=``,d=``,f=0,p=0,m=B.get(n.branch)?.index;n.type===x.MERGE&&t.id!==n.parents[0]&&(m=B.get(t.branch)?.index);let h;if(l){u=`A 10 10, 0, 0, 0,`,d=`A 10 10, 0, 0, 1,`,f=10,p=10;let e=s.yc.x&&(u=`A 20 20, 0, 0, 0,`,d=`A 20 20, 0, 0, 1,`,f=20,p=20,h=n.type===x.MERGE&&t.id!==n.parents[0]?`M ${s.x} ${s.y} L ${s.x} ${c.y-f} ${d} ${s.x-p} ${c.y} L ${c.x} ${c.y}`:`M ${s.x} ${s.y} L ${c.x+f} ${s.y} ${u} ${c.x} ${s.y+p} L ${c.x} ${c.y}`),s.x===c.x&&(h=`M ${s.x} ${s.y} L ${c.x} ${c.y}`)):K===`BT`?(s.xc.x&&(u=`A 20 20, 0, 0, 0,`,d=`A 20 20, 0, 0, 1,`,f=20,p=20,h=n.type===x.MERGE&&t.id!==n.parents[0]?`M ${s.x} ${s.y} L ${s.x} ${c.y+f} ${u} ${s.x-p} ${c.y} L ${c.x} ${c.y}`:`M ${s.x} ${s.y} L ${c.x+f} ${s.y} ${d} ${c.x} ${s.y-p} L ${c.x} ${c.y}`),s.x===c.x&&(h=`M ${s.x} ${s.y} L ${c.x} ${c.y}`)):(s.yc.y&&(h=n.type===x.MERGE&&t.id!==n.parents[0]?`M ${s.x} ${s.y} L ${c.x-f} ${s.y} ${u} ${c.x} ${s.y-p} L ${c.x} ${c.y}`:`M ${s.x} ${s.y} L ${s.x} ${c.y+f} ${d} ${s.x+p} ${c.y} L ${c.x} ${c.y}`),s.y===c.y&&(h=`M ${s.x} ${s.y} L ${c.x} ${c.y}`));if(h===void 0)throw Error(`Line definition not found`);e.append(`path`).attr(`d`,h).attr(`class`,`arrow arrow`+z(m,F,o))},`drawArrow`),Ie=e((e,t)=>{let n=e.append(`g`).attr(`class`,`commit-arrows`);[...t.keys()].forEach(e=>{let r=t.get(e);r.parents&&r.parents.length>0&&r.parents.forEach(e=>{Fe(n,t.get(e),r,t)})})},`drawArrows`),Le=e((e,t,n,i)=>{let{look:a,theme:o,themeVariables:s}=r(),{dropShadow:c,THEME_COLOR_LIMIT:l}=s,u=I.has(o??``),d=R.has(o??``),f=e.append(`g`);t.forEach((e,t)=>{let r=z(t,u?l:F,d),o=B.get(e.name)?.pos;if(o===void 0)throw Error(`Position not found for branch ${e.name}`);let s=K===`TB`||K===`BT`?o:u?o+L/2+1:o-2,p=f.append(`line`);p.attr(`x1`,0),p.attr(`y1`,s),p.attr(`x2`,G),p.attr(`y2`,s),p.attr(`class`,`branch branch`+r),K===`TB`?(p.attr(`y1`,H),p.attr(`x1`,o),p.attr(`y2`,G),p.attr(`x2`,o)):K===`BT`&&(p.attr(`y1`,G),p.attr(`x1`,o),p.attr(`y2`,H),p.attr(`x2`,o)),W.push(s);let m=e.name,h=J(m),g=f.insert(`rect`),_=f.insert(`g`).attr(`class`,`branchLabel`).insert(`g`).attr(`class`,`label branch-label`+r);_.node().appendChild(h);let v=h.getBBox(),y=u?0:4,b=u?16:0,x=u?L:0;a===`neo`&&g.attr(`data-look`,`neo`),g.attr(`class`,`branchLabelBkg label`+r).attr(`style`,a===`neo`?`filter:${u?`url(#${i}-drop-shadow)`:c}`:``).attr(`rx`,y).attr(`ry`,y).attr(`x`,-v.width-4-(n.rotateCommitLabel===!0?30:0)).attr(`y`,-v.height/2+10).attr(`width`,v.width+18+b).attr(`height`,v.height+4+x),_.attr(`transform`,`translate(`+(-v.width-14-(n.rotateCommitLabel===!0?30:0)+b/2)+`, `+(s-v.height/2-2)+`)`),K===`TB`?(g.attr(`x`,o-v.width/2-10).attr(`y`,0),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, 0)`),u&&(g.attr(`transform`,`translate(${-b/2-3}, ${-x-10})`),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, `+(-x*2+7)+`)`))):K===`BT`?(g.attr(`x`,o-v.width/2-10).attr(`y`,G),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, `+G+`)`),u&&(g.attr(`transform`,`translate(${-b/2-3}, ${x+10})`),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, `+(G+x*2+4)+`)`))):g.attr(`transform`,`translate(-19, `+(s-12-x/2)+`)`)})},`drawBranches`),Re=e(function(e,t,n,r,i){return B.set(e,{pos:t,index:n}),t+=50+(i?40:0)+(K===`TB`||K===`BT`?r.width/2:0),t},`setBranchPosition`),ze={draw:e(function(e,i,a,o){q(),n.debug(`in gitgraph renderer`,e+` +`,`id:`,i,a);let s=o.db;if(!s.getConfig){n.error(`getConfig method is not available on db`);return}let c=s.getConfig(),l=c.rotateCommitLabel??!1;U=s.getCommits();let u=s.getBranchesAsObjArray();K=s.getDirection();let d=t(`[id="${i}"]`),{look:f,theme:m,themeVariables:h}=r(),{useGradient:g,gradientStart:v,gradientStop:y,filterColor:b}=h;if(g){let e=d.append(`defs`).append(`linearGradient`).attr(`id`,i+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);e.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,v).attr(`stop-opacity`,1),e.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,y).attr(`stop-opacity`,1)}f===`neo`&&I.has(m??``)&&d.append(`defs`).append(`filter`).attr(`id`,i+`-drop-shadow`).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,b);let x=0;u.forEach((e,t)=>{let n=J(e.name),r=d.append(`g`),i=r.insert(`g`).attr(`class`,`branchLabel`),a=i.insert(`g`).attr(`class`,`label branch-label`);a.node()?.appendChild(n);let o=n.getBBox();x=Re(e.name,x,t,o,l),a.remove(),i.remove(),r.remove()}),X(d,U,!1,c),c.showBranches&&Le(d,u,c,i),Ie(d,U),X(d,U,!0,c),_.insertTitle(d,`gitTitleText`,c.titleTopMargin??0,s.getDiagramTitle()),p(void 0,d,c.diagramPadding,c.useMaxWidth)},`draw`)},Q=8,$=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),Be=new Set([`redux-color`,`redux-dark-color`]),Ve=new Set([`neo`,`neo-dark`]),He=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),Ue=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`,`neo`,`neo-dark`]),We=e(e=>{let{svgId:t}=e,n=``;if(e.useGradient&&t)for(let r=0;r{let{theme:t,themeVariables:n}=s(),{borderColorArray:r}=n,i=$.has(t);if(Ve.has(t)){let t=``;for(let n=0;n`${Array.from({length:e.THEME_COLOR_LIMIT},(e,t)=>t).map(t=>{let n=t%Q;return` + .branch-label${t} { fill: ${e[`gitBranchLabel`+n]}; } + .commit${t} { stroke: ${e[`git`+n]}; fill: ${e[`git`+n]}; } + .commit-highlight${t} { stroke: ${e[`gitInv`+n]}; fill: ${e[`gitInv`+n]}; } + .label${t} { fill: ${e[`git`+n]}; } + .arrow${t} { stroke: ${e[`git`+n]}; } + `}).join(` +`)}`,`normalTheme`),qe={parser:be,db:A,renderer:ze,styles:e(e=>{let{theme:t}=s(),n=Ue.has(t);return` + .commit-id, + .commit-msg, + .branch-label { + fill: lightgrey; + color: lightgrey; + font-family: 'trebuchet ms', verdana, arial, sans-serif; + font-family: var(--mermaid-font-family); + } + + ${n?Ge(e):Ke(e)} + + .branch { + stroke-width: ${e.strokeWidth}; + stroke: ${e.commitLineColor??e.lineColor}; + stroke-dasharray: ${n?`4 2`:`2`}; + } + .commit-label { font-size: ${e.commitLabelFontSize}; fill: ${n?e.nodeBorder:e.commitLabelColor}; ${n?`font-weight:${e.noteFontWeight};`:``}} + .commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${n?`transparent`:e.commitLabelBackground}; opacity: ${n?``:.5}; } + .tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};} + .tag-label-bkg { fill: ${n?e.mainBkg:e.tagLabelBackground}; stroke: ${n?e.nodeBorder:e.tagLabelBorder}; ${n?`filter:${e.dropShadow}`:``} } + .tag-hole { fill: ${e.textColor}; } + + .commit-merge { + stroke: ${n?e.mainBkg:e.primaryColor}; + fill: ${n?e.mainBkg:e.primaryColor}; + } + .commit-reverse { + stroke: ${n?e.mainBkg:e.primaryColor}; + fill: ${n?e.mainBkg:e.primaryColor}; + stroke-width: ${n?e.strokeWidth:3}; + } + .commit-highlight-outer { + } + .commit-highlight-inner { + stroke: ${n?e.mainBkg:e.primaryColor}; + fill: ${n?e.mainBkg:e.primaryColor}; + } + + .arrow { + /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */ + stroke-width: ${$.has(t)?e.strokeWidth:8}; + stroke-linecap: round; + fill: none + } + .gitTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.textColor}; + } +`},`getStyles`)};export{qe as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/index-BEBAY2Mg.js b/docs/dist/assets/index-BEBAY2Mg.js new file mode 100644 index 00000000..2d3b4c04 --- /dev/null +++ b/docs/dist/assets/index-BEBAY2Mg.js @@ -0,0 +1,53 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/slidev/md-HD0mG6Gp.js","assets/modules/shiki-BmLmNVDB.js","assets/rolldown-runtime-QTnfLwEv.js","assets/modules/shiki-BrmBd2_v.css","assets/slidev/md-DK5E6CYd.js","assets/utils-T1it7q9-.js","assets/slidev/useClicks-C2yK8i93.js","assets/slidev/default-CswKUK6M.js","assets/_plugin-vue_export-helper-BDNMzG2s.js","assets/slidev/md-CVG46JSc.js","assets/slidev/env-DWr22PMh.js","assets/modules/vue-5vwy5Re_.js","assets/modules/unplugin-icons-CHgNQGBt.js","assets/md-Cl2ivKeZ.js","assets/chunk-7TFACZ55-BO7C1qvL.js","assets/chunk-PTVI3W5X-DVfdoxm6.js","assets/chunk-BSZA5ISF-LqNHBHyp.js","assets/chunk-Q52JI7PB-BeSPinqD.js","assets/chunk-V7P66DNM-D246Sefn.js","assets/chunk-GTILCTU2-D-9HFTK6.js","assets/chunk-HQMLCRZ6-HgqAiHMi.js","assets/chunk-PLCLPJVV-rGjVDjLw.js","assets/chunk-SZ5Y56Q4-Bki2Aicm.js","assets/chunk-YSJUE5HW-eH4JtoEG.js","assets/chunk-PUIB63ON-iBBh92CL.js","assets/chunk-PWCFYZI5-BQGIuzFC.js","assets/chunk-RTI7CJYH-CrTK6TD7.js","assets/chunk-SNQTKDUU-CQmHT9KX.js","assets/chunk-TRQY2T3P-DxnI4jXA.js","assets/md-CXiE5qPE.js","assets/modules/file-saver-DJvf_BAX.js","assets/slidev/entry-CBP47zd4.js","assets/entry-CsK3ooxy.css","assets/slidev/overview-F_OjdvDt.js","assets/SlideWrapper-IFU3LLlv.js","assets/SlideWrapper-D_cqB02h.css","assets/slidev/NoteDisplay-BAqwAo7Q.js","assets/NoteDisplay-DCBzjb4F.css","assets/slidev/IconButton-BAiJUHfk.js","assets/slidev/NoteEditable-C2jELoYc.js","assets/overview-D7vu7syH.css","assets/slidev/notes-4yw326r8.js","assets/slidev/TimerBar-BQGouMOn.js","assets/slidev/Modal-CdBImNxA.js","assets/slidev/notes-edit-ST06bLI7.js","assets/slidev/presenter-LR8VZmeq.js","assets/slidev/shortcuts-CQBL0mtp.js","assets/shortcuts-B-l-cuzr.css","assets/slidev/DrawingControls-DW4yl75r.js","assets/DrawingControls-Dhbx0szf.css","assets/presenter-W-ysBRXT.css","assets/slidev/play-B_5Fyyu6.js","assets/play-D_7yfuao.css","assets/slidev/404-DzUxMK27.js","assets/404-CSzoupeA.css"])))=>i.map(i=>d[i]); +import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{C as t,F as n,I as r,L as i,N as a,O as o,P as s,T as c,U as l,X as u,Y as d,_ as f,_t as p,b as m,ft as h,g,gt as _,it as v,k as y,lt as b,m as x,mt as S,nt as C,pt as w,s as T,st as E,t as ee,ut as D,v as te,w as ne,xt as O,y as re,z as k}from"./modules/shiki-BmLmNVDB.js";import{r as ie,t as A}from"./utils-T1it7q9-.js";import{a as ae,i as oe,n as se,o as j,r as ce,s as M}from"./slidev/env-DWr22PMh.js";import{A as N,B as le,D as ue,E as de,L as fe,M as pe,R as me,S as he,T as ge,V as _e,_ as ve,a as ye,c as be,f as xe,g as P,h as Se,i as Ce,j as we,l as Te,o as Ee,x as De,z as Oe}from"./modules/vue-5vwy5Re_.js";import{n as ke,t as Ae}from"./slidev/useClicks-C2yK8i93.js";import{t as je}from"./_plugin-vue_export-helper-BDNMzG2s.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Me=new Set([`link`,`style`,`script`,`noscript`]),Ne=new Set([`title`,`titleTemplate`,`script`,`style`,`noscript`]),Pe=new Set([`base`,`meta`,`link`,`style`,`script`,`noscript`]),Fe=new Set([`title`,`base`,`htmlAttrs`,`bodyAttrs`,`meta`,`link`,`style`,`script`,`noscript`]),Ie=new Set([`base`,`title`,`titleTemplate`,`bodyAttrs`,`htmlAttrs`,`templateParams`]),Le=new Set([`key`,`tagPosition`,`tagPriority`,`tagDuplicateStrategy`,`innerHTML`,`textContent`,`processTemplateParams`]),Re=new Set([`templateParams`,`htmlAttrs`,`bodyAttrs`]),ze=new Set([`theme-color`,`google-site-verification`,`og`,`article`,`book`,`profile`,`twitter`,`author`]);function Be(e,t,n,r){for(let i=n;ie[i](...t)):e[i](...t);if(n&&typeof n.then==`function`)return Promise.resolve(n).then(()=>Be(e,t,i+1,r))}catch(e){return Promise.reject(e)}}var Ve=class{_hooks;constructor(){this._hooks={}}hook(e,t){return!e||typeof t!=`function`?()=>{}:(this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)})}removeHook(e,t){let n=this._hooks[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}callHook(e,...t){let n=this._hooks[e];if(!(!n||n.length===0))return Be(n,t,0)}};function He(e){let t=new Ve;for(let n in e||{})t.hook(n,e[n]);return t}function Ue(e,t,n){return e.hooks?.callHook(t,n)}var We=/^(?:viewport|description|keywords|robots)$/;function Ge(e){return ze.has(e.split(`:`)[1])}function Ke(e){let{props:t,tag:n,key:r}=e;if(Ie.has(n))return n;if(n===`link`&&t.rel===`canonical`)return`canonical`;if(n===`link`&&t.rel===`alternate`){if(t.hreflang)return`alternate:${t.hreflang}`;if(t.type)return`alternate:${t.type}:${t.href||``}`}if(t.charset)return`charset`;if(n===`meta`)for(let e of[`name`,`property`,`http-equiv`]){let n=t[e];if(n!==void 0)return`meta:${n}${(typeof n!=`string`||!n.includes(`:`))&&!We.test(n)&&r?`:key:${r}`:``}`}return r?`${n}:key:${r}`:t.id?`${n}:id:${t.id}`:n===`link`&&t.rel===`alternate`?`alternate:${t.href||``}`:Ne.has(n)&&(e.textContent||e.innerHTML)?`${n}:content:${e.textContent||e.innerHTML}`:void 0}function qe(e){return e._h||e._d||e.textContent||e.innerHTML||`${e.tag}:${Object.entries(e.props).map(([e,t])=>`${e}:${String(t)}`).join()}`}function Je(e,t,n){if(n===`_resolver`)return e;typeof e==`function`&&(!n||n!==`titleTemplate`&&!n.startsWith(`on`))&&(e=e());let r=t?t(n,e):e;if(Array.isArray(r))return r.map(e=>Je(e,t));if(r?.constructor===Object){let e={};for(let n in r)n===`__proto__`||n===`constructor`||n===`prototype`||(e[n]=Je(r[n],t,n));return e}return r}function Ye(e,t){let n=e===`style`,r=n?new Map:new Set,i=e=>{if(e)if(n){let t=e.indexOf(`:`);t>0&&r.set(e.slice(0,t).trim(),e.slice(t+1).trim())}else e.split(` `).forEach(e=>e&&r.add(e))};if(typeof t==`string`)(n?t.split(`;`):[t]).forEach(i);else if(Array.isArray(t))t.forEach(i);else if(t&&typeof t==`object`)for(let e in t){let a=t[e];a&&a!==`false`&&(n?r.set(e.trim(),String(a)):i(e))}return r}function Xe(e,t){if(e.props=e.props||{},!t)return e;if(e.tag===`templateParams`)return e.props=t,e;let n=Pe.has(e.tag)||e.tag===`htmlAttrs`||e.tag===`bodyAttrs`;for(let r in t){if(r===`__proto__`||r===`constructor`||r===`prototype`)continue;let i=t[r];if(i===null)e.props[r]=null;else if(r===`class`||r===`style`)e.props[r]=Ye(r,i);else if(Le.has(r))if((r===`textContent`||r===`innerHTML`)&&typeof i==`object`){let n=t.type||`application/json`;(n.endsWith(`json`)||n===`speculationrules`||n===`importmap`)&&(e.props.type=t.type=n,e[r]=JSON.stringify(i))}else e[r]=i;else if(i!==void 0){let t=r.startsWith(`data-`),a=n&&!t?r.toLowerCase():r,o=String(i),s=e.tag===`meta`&&a===`content`;e.props[a]=o===`true`||o===``?t||s?o:!0:!i&&t&&o===`false`?`false`:i}}return e}function Ze(e,t){let n=Xe({tag:e,props:{}},typeof t==`object`&&typeof t!=`function`?t:{[e===`script`||e===`noscript`||e===`style`?`innerHTML`:`textContent`]:t});return n.key&&Me.has(n.tag)&&(n.props[`data-hid`]=n._h=n.key),n.tag===`script`&&typeof n.innerHTML==`object`&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||`application/json`),Array.isArray(n.props.content)?n.props.content.map(e=>({...n,props:{...n.props,content:e}})):n}function Qe(e,t){if(!e)return[];typeof e==`function`&&(e=e());let n=(e,n)=>{for(let r of t)n=r(e,n);return n};e=Je(n(void 0,e),n);let r=[];for(let t in e){let n=e[t];if(n!==void 0)for(let e of Array.isArray(n)?n:[n])r.push(Ze(t,e))}return r.flat()}var $e=/e._w===t._w?e._p-t._p:e._w-t._w;function nt(e){let t=!1;for(let n of e.tags.sort(tt)){let r=n._d||qe(n),i=e.tagMap.get(r);if(!i){e.tagMap.set(r,n);continue}if((n.tagDuplicateStrategy||(Re.has(n.tag)?`merge`:null)||(n.key&&n.key===i.key?`merge`:null))===`merge`){let t={...i.props};for(let e in n.props)t[e]=e===`style`?new Map([...i.props.style||new Map,...n.props[e]]):e===`class`?new Set([...i.props.class||[],...n.props[e]]):n.props[e];e.tagMap.set(r,{...n,props:t})}else n._p>>10==i._p>>10&&n.tag===`meta`&&Ge(r)?(e.tagMap.set(r,Object.assign([...Array.isArray(i)?i:[i],n],n)),t=!0):(n._w===i._w?n._p>i._p:n._w{let{innerHTML:t,tag:n,props:r}=e;if(!Fe.has(n)||!Object.keys(r).length&&!t&&!e.textContent||n===`meta`&&!r.content&&!r[`http-equiv`]&&!r.charset)return!1;if(n===`script`&&(t||e.textContent)){let n=String(r.type),i=n.endsWith(`json`)||n===`importmap`||n===`speculationrules`,a=e=>i?(typeof e==`string`?e:JSON.stringify(e)).replace($e,`\\u003C`):typeof e==`string`?e.replace(et,`<\\/script`):e;t&&(e.innerHTML=a(t)),e.textContent&&=a(e.textContent),e._d=Ke(e)}return!0})}function at(e,t){let n=t?.tagWeight??e.resolvedOptions._tagWeight??(()=>100),r={tagMap:new Map,tags:[]},i=[...e.entries.values()];for(let e of i)e._pending!==void 0&&(e.input=e._pending,delete e._pending,delete e._tags);Ue(e,`entries:resolve`,{entries:i,...r});for(let t of i)if(!t._tags){let r={tags:Qe(t.input,e.resolvedOptions.propResolvers||[]).map(e=>Object.assign(e,t.options)),entry:t};Ue(e,`entries:normalize`,r),t._tags=r.tags.map((e,r)=>(e._w=n(e),e._p=(t._i<<10)+r,e._d=Ke(e),e._d||(e._h=qe(e)),e))}r.tags=i.flatMap(e=>(e._tags||[]).map(e=>({...e,props:{...e.props}})));let a=nt(r);return rt(r,e),r.tags=[...r.tagMap.values()],a&&(r.tags=r.tags.flat().sort(tt)),Ue(e,`tags:beforeResolve`,r),Ue(e,`tags:resolve`,r),Ue(e,`tags:afterResolve`,r),it(r.tags)}var ot=`usehead`;function st(e){return{install(t){t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(ot,e)}}.install}var ct=(e,t)=>v(t)?_(t):t;function lt(){if(o()){let e=y(ot);if(e)return e}throw Error(`useHead() was called without provide context, ensure you call it through the setup() function.`)}function ut(e,t={}){let n=t.head||lt();return n.ssr?n.push(e||{},t):dt(n,e,t)}function dt(e,t,i={}){let a=b(!1);if(i.onRendered){let e=C();if(e){let t=i.onRendered;i={...i,onRendered:n=>e.run(()=>t(n))}}}let o;return u(()=>{let n=a.value?{}:Je(t,ct);o?o.patch(n):o=e.push(n,i)}),c()&&(n(()=>{o.dispose()}),r(()=>{a.value=!0}),s(()=>{a.value=!1})),o}function ft(e,t){let n=typeof t==`function`?t(e):t,r=n.key||String(e.plugins.size+1);if(!e.plugins.get(r)){e.plugins.set(r,n);for(let t in n.hooks||{})e.hooks?.hook(t,n.hooks[t])}}function pt(e,t={}){let n=!t.document,r=new Map,i={_entryCount:1,plugins:new Map,resolvedOptions:t,ssr:n,entries:r,render:()=>e(i),use:e=>ft(i,e),push(e,t){let a=t?._index??i._entryCount++,o=t?{...t}:{};delete o.head,delete o.onRendered;let s={_i:a,input:e,options:o};return r.set(a,s),{_i:a,dispose(){r.delete(a)},patch(e){n?(s.input=e,delete s._tags):s._pending=e,r.has(a)||r.set(a,s)}}}};return t.init?.forEach(e=>e&&i.push(e)),i}var mt=Object.assign({}),ht=Object.assign({}),gt=[Object.values(mt)[0],Object.values(ht)[0]].filter(Boolean),_t={},vt={class:`px-4 py-10 text-center text-red-700 dark:text-red-500 font-bold font-mono`};function yt(e,t){return k(),m(`div`,vt,O(`Failed to fetch this slide. Please check your network connection.`))}var bt=je(_t,[[`render`,yt]]),xt={class:`h-full w-full flex items-center justify-center gap-2 slidev-slide-loading`},St=ne({__name:`SlideLoading`,setup(e){let t=b(!1);return i(()=>{setTimeout(()=>{t.value=!0},200)}),(e,n)=>(k(),m(`div`,xt,[t.value?(k(),m(x,{key:0},[n[0]||=f(`div`,{class:`i-svg-spinners-90-ring-with-bg text-xl`},null,-1),n[1]||=f(`div`,null,`Loading slide...`,-1)],64)):re(``,!0)]))}}),Ct=E({theme:`default`,background:`https://source.unsplash.com/collection/94734566/1920x1080`,class:`text-center`,highlighter:`shiki`,lineNumbers:!1,title:`Real Obsidian Test`}),wt=D({get layout(){return Ct.layout},get transition(){return Ct.transition},get class(){return Ct.class},get clicks(){return Ct.clicks},get name(){return Ct.name},get preload(){return Ct.preload},slide:{content:``,revision:`-j2uyjq`,frontmatterRaw:`theme: default +background: https://source.unsplash.com/collection/94734566/1920x1080 +class: text-center +highlighter: shiki +lineNumbers: false +title: Real Obsidian Test +`,note:``,title:`Real Obsidian Test`,index:0,noteHTML:``,raw:``,frontmatter:Ct,filepath:``,start:0,sourceIndex:0,id:0,no:1},__clicksContext:null,__preloaded:!1}),Tt=E({}),Et=D({get layout(){return Tt.layout},get transition(){return Tt.transition},get class(){return Tt.class},get clicks(){return Tt.clicks},get name(){return Tt.name},get preload(){return Tt.preload},slide:{content:``,revision:`5gpnry`,note:``,title:`Features to Test`,level:1,index:1,noteHTML:``,raw:``,frontmatter:Tt,filepath:``,start:16,sourceIndex:1,id:1,no:2},__clicksContext:null,__preloaded:!1}),Dt=E({}),Ot=D({get layout(){return Dt.layout},get transition(){return Dt.transition},get class(){return Dt.class},get clicks(){return Dt.clicks},get name(){return Dt.name},get preload(){return Dt.preload},slide:{content:``,revision:`2ul7mm`,note:``,title:`Code Example`,level:1,index:2,noteHTML:``,raw:``,frontmatter:Dt,filepath:``,start:30,sourceIndex:2,id:2,no:3},__clicksContext:null,__preloaded:!1}),kt=E({}),At=D({get layout(){return kt.layout},get transition(){return kt.transition},get class(){return kt.class},get clicks(){return kt.clicks},get name(){return kt.name},get preload(){return kt.preload},slide:{content:``,revision:`5zmp27`,note:``,title:`Mermaid Support`,level:1,index:3,noteHTML:``,raw:``,frontmatter:kt,filepath:``,start:50,sourceIndex:3,id:3,no:4},__clicksContext:null,__preloaded:!1}),jt=E({}),Mt=D({get layout(){return jt.layout},get transition(){return jt.transition},get class(){return jt.class},get clicks(){return jt.clicks},get name(){return jt.name},get preload(){return jt.preload},slide:{content:``,revision:`pb4zid`,note:``,title:`Final Test`,level:1,index:4,noteHTML:``,raw:``,frontmatter:jt,filepath:``,start:64,sourceIndex:4,id:4,no:5},__clicksContext:null,__preloaded:!1}),Nt=`modulepreload`,Pt=function(e){return`/`+e},Ft={},F=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Pt(t,n),t in Ft)return;Ft[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:Nt,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},It=[,,,,,],Lt=(e,n)=>t({loader:n,delay:300,loadingComponent:St,errorComponent:bt,onError:t=>console.error(`Failed to load slide `+(e+1),t)}),Rt=async()=>{try{return It[0]??=await F(()=>import(`./slidev/md-HD0mG6Gp.js`),__vite__mapDeps([0,1,2,3]))}catch(e){return console.error(`slide failed to load`,e),bt}},zt=async()=>{try{return It[1]??=await F(()=>import(`./slidev/md-DK5E6CYd.js`),__vite__mapDeps([4,5,1,2,3,6,7,8]))}catch(e){return console.error(`slide failed to load`,e),bt}},Bt=async()=>{try{return It[2]??=await F(()=>import(`./slidev/md-CVG46JSc.js`),__vite__mapDeps([9,10,5,1,2,3,11,7,8,12]))}catch(e){return console.error(`slide failed to load`,e),bt}},Vt=async()=>{try{return It[3]??=await F(()=>import(`./md-Cl2ivKeZ.js`),__vite__mapDeps([13,2,5,1,3,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,7,8]))}catch(e){return console.error(`slide failed to load`,e),bt}},Ht=async()=>{try{return It[4]??=await F(()=>import(`./md-CXiE5qPE.js`),__vite__mapDeps([29,1,2,3,7,8]))}catch(e){return console.error(`slide failed to load`,e),bt}},I=h([{no:1,meta:wt,load:Rt,component:Lt(0,Rt)},{no:2,meta:Et,load:zt,component:Lt(1,zt)},{no:3,meta:Ot,load:Bt,component:Lt(2,Bt)},{no:4,meta:At,load:Vt,component:Lt(3,Vt)},{no:5,meta:Mt,load:Ht,component:Lt(4,Ht)}]),Ut=`$$slidev-clicks-context`,Wt=`$$slidev-page`,Gt=`$$slidev-slide-element`,Kt=`$$slidev-slide-scale`,qt=`$$slidev-context`,Jt=`$$slidev-route`,Yt=`$$slidev-render-context`,Xt=`$$slidev-fontmatter`,Zt=`$$slidev-slide-zoom`,Qt=`slidev-vclick-target`,$t=`slidev-vclick-hidden`,en=`slidev-vclick-hidden-explicitly`,tn=`slidev-vclick-current`,nn=`slidev-vclick-prior`,rn=`slidev-vclick-anim-`,an=999999,on=[`localhost`,`127.0.0.1`],sn=[`clicks`,`clicksStart`,`disabled`,`hide`,`hideInToc`,`layout`,`level`,`preload`,`routeAlias`,`src`,`title`,`transition`,`zoom`,`dragPos`,`lang`,`clickAnimation`],cn=[...sn,`theme`,`titleTemplate`,`info`,`author`,`keywords`,`presenter`,`browserExporter`,`download`,`exportFilename`,`export`,`highlighter`,`lineNumbers`,`monaco`,`monacoTypesSource`,`monacoTypesAdditionalPackages`,`monacoRunAdditionalDeps`,`monacoRunUseStrict`,`remoteAssets`,`selectable`,`record`,`colorSchema`,`routerMode`,`aspectRatio`,`canvasWidth`,`themeConfig`,`favicon`,`plantUmlServer`,`fonts`,`defaults`,`drawings`,`htmlAttrs`,`mdc`,`comark`,`contextMenu`,`wakeLock`,`seoMeta`,`notesAutoRuby`,`magicMoveDuration`,`preloadImages`];function ln(e,t,{mode:n=`replace`}={}){let r=_e();return g({get(){let n=r.currentRoute.value.query[e];return n==null?t??null:Array.isArray(n)?n.filter(Boolean):n},set(i){a(()=>{(r.currentRoute.value.query[e]??t?.toString())!==i.toString()&&r[p(n)]({query:{...r.currentRoute.value.query,[e]:`${i}`===t?void 0:i}})})}})}function un(){let e=N(qt),t=S(e,`nav`),n=N(Ut).value,r=S(n,`current`),i=N(Wt),a=N(Yt),o=N(Xt,{});return{$slidev:e,$nav:t,$clicksContext:n,$clicks:r,$page:i,$route:N(Jt,void 0),$renderContext:a,$frontmatter:o,$scale:N(Kt,b(1)),$zoom:N(Zt,g(()=>1))}}function dn(e,t){return{...pe(e,t===0?cn:sn),frontmatter:e}}function fn(e){return I.value.find(t=>t.no===+e||t.meta.slide?.frontmatter.routeAlias===e)}function pn(e,t,n=!1){(typeof e==`number`||typeof e==`string`)&&(e=fn(e));let r=e.meta.slide?.frontmatter.routeAlias??e.no;return`/${n?`export/${r}`:t?`presenter/${r}`:`${r}`}`}var mn={"slide-left":`slide-left | slide-right`,"slide-right":`slide-right | slide-left`,"slide-up":`slide-up | slide-down`,"slide-down":`slide-down | slide-up`};function hn(e,t=!1){if(!e||(typeof e==`string`&&(e={name:e}),!e.name))return;let n=e.name.includes(`|`)?e.name:mn[e.name]||e.name;if(n.includes(`|`)){let[e,r]=n.split(`|`).map(e=>e.trim());n=t?r:e}if(n)return{...e,name:n}}function gn(e,t,n){let r=e>0?n?.meta?.transition:t?.meta?.transition;return r||=M.transition||void 0,hn(r,e<0)}var _n=b(!1),vn=b(!1),yn=b(!1),bn=b(!1),xn=b(!1),Sn=b(!1),Cn=b(!0),wn=E(new Set),Tn=g(()=>wn.size>0),En=Te({xs:460,...ye}),Dn=de(),On=ve(),kn=g(()=>Dn.height.value-Dn.width.value/se.value>120),An=Se(we?document.body:null),jn=be(),Mn=g(()=>[`INPUT`,`TEXTAREA`].includes(jn.value?.tagName||``)),Nn=g(()=>[`BUTTON`,`A`].includes(jn.value?.tagName||``));P(`slidev-camera`,`default`,{listenToStorageChanges:!1}),P(`slidev-mic`,`default`,{listenToStorageChanges:!1});var Pn=P(`slidev-scale`,0),Fn=P(`slidev-wake-lock`,!0),In=P(`slidev-hide-cursor-idle`,!0);P(`slidev-skip-export-pdf-tip`,!1),P(`slidev-export-capture-delay`,400,{listenToStorageChanges:!1});var Ln=P(`slidev-presenter-cursor`,!0,{listenToStorageChanges:!1}),Rn=P(`slidev-cursor-style`,`cursor`,{listenToStorageChanges:!1});function zn(){Ln.value=!Ln.value}var Bn=P(`slidev-show-editor`,!1,{listenToStorageChanges:!1}),Vn=P(`slidev-editor-vertical`,!1,{listenToStorageChanges:!1}),Hn=P(`slidev-editor-width`,we?window.innerWidth*.4:318,{listenToStorageChanges:!1}),Un=P(`slidev-editor-height`,we?window.innerHeight*.4:300,{listenToStorageChanges:!1}),Wn=h(null),Gn=P(`slidev-presenter-font-size`,1,{listenToStorageChanges:!1}),Kn=P(`slidev-presenter-layout`,1,{listenToStorageChanges:!1}),qn={invert:!1,contrast:1,brightness:1,hueRotate:0,saturate:1,sepia:0},Jn=P(`slidev-viewer-css-filter`,qn,{listenToStorageChanges:!1,mergeDefaults:!0,deep:!0}),Yn=g(()=>Object.keys(qn).some(e=>Jn.value[e]!==qn[e]));function Xn(){Kn.value+=1,Kn.value>3&&(Kn.value=1)}function Zn(){Gn.value=Math.min(2,Gn.value+.1)}function Qn(){Gn.value=Math.max(.5,Gn.value-.1)}var $n=fe(bn),er=P(`slidev-sync-directions`,{viewerSend:!0,viewerReceive:!0,presenterSend:!0,presenterReceive:!0},{listenToStorageChanges:!1,mergeDefaults:!0});function tr(e,t,n=1){let r=t.meta.slide.level??n;r&&r>n&&e.length>0?tr(e[e.length-1].children,t,n+1):e.push({no:t.no,children:[],level:n,titleLevel:r,path:pn(t.meta.slide?.frontmatter?.routeAlias??t.no,!1),hideInToc:!!t.meta?.slide?.frontmatter?.hideInToc,title:t.meta?.slide?.title})}function nr(e,t,n=!1,r,i){return e.map(e=>{let a={...e,active:e.no===i?.value,hasActiveParent:n};return a.children.length>0&&(a.children=nr(a.children,t,a.active||a.hasActiveParent,a,i)),r&&(a.active||a.activeParent)&&(r.activeParent=!0),a})}function rr(e,t=1){return e.filter(e=>!e.hideInToc).map(e=>({...e,children:rr(e.children,t+1)}))}function ir(e,t,n){let r=g(()=>e.value.filter(e=>e.meta?.slide?.title).reduce((e,t)=>(tr(e,t),e),[])),i=g(()=>nr(r.value,n.value,void 0,void 0,t));return g(()=>rr(i.value))}function ar(e,t,n=b(0),r,i,a){let o=g(()=>I.value.length),s=b(0),c=b(0),l=g(()=>pn(e.value,r.value)),u=g(()=>e.value.no),f=g(()=>e.value.meta?.layout||(u.value===1?`cover`:`default`)),p=g(()=>t.value.current),m=g(()=>t.value.clicksStart),h=g(()=>t.value.total),_=g(()=>I.value[Math.min(I.value.length,u.value+1)-1]),v=g(()=>I.value[Math.max(1,u.value-1)-1]),y=g(()=>u.valueu.value>1||p.value>0),S=g(()=>i.value?void 0:gn(s.value,e.value,v.value));d(e,(e,t)=>{s.value=e.no-t.no});async function C(e){return!1}let w=ir(I,u,e);async function T(){c.value=1,h.value<=n.value?await ee():n.value+=1}async function E(){c.value=-1,n.value<=m.value?await D(!0):--n.value}async function ee(e=!1){c.value=1,u.value1&&await O(u.value-1,e&&!i.value?an:void 0)}function te(){return O(1)}function ne(){return O(o.value)}async function O(e,t=0,i=!1){xn.value=!1;let o=u.value!==e,s=t!==n.value,c=fn(e)?.meta,l=c?.slide?.frontmatter.clicksStart??0;t=ie(t,l,c?.__clicksContext?.total??999999),(i||o||s)&&await a?.push({path:pn(e,r.value,a.currentRoute.value.name===`export`),query:{...a.currentRoute.value.query,clicks:t===0?void 0:t.toString(),embedded:location.search.includes(`embedded`)?`true`:void 0}})}function re(){a?.push({path:pn(u.value,!0),query:{...a.currentRoute.value.query}})}function k(){a?.push({path:pn(u.value,!1),query:{...a.currentRoute.value.query}})}return{slides:I,total:o,currentPath:l,currentSlideNo:u,currentPage:u,currentSlideRoute:e,currentLayout:f,currentTransition:S,clicksDirection:c,nextRoute:_,prevRoute:v,clicksContext:t,clicks:p,clicksStart:m,clicksTotal:h,hasNext:y,hasPrev:x,tocTree:w,navDirection:s,openInEditor:C,next:T,prev:E,go:O,goLast:ne,goFirst:te,nextSlide:ee,prevSlide:D,enterPresenter:re,exitPresenter:k}}var or=ue(()=>{let e=_e(),t=le(),n=g(()=>(e?.currentRoute?.value?.query,new URLSearchParams(location.search))),r=g(()=>n.value.has(`print`)||t.name===`export`),i=b(n.value.get(`print`)===`clicks`),a=g(()=>n.value.has(`embedded`)),o=g(()=>t.name===`play`),s=g(()=>t.name===`presenter`),c=g(()=>t.name===`notes`),l=g(()=>!s.value&&(!M.remote||n.value.get(`password`)===M.remote)),u=g(()=>!!t.params.no),d=g(()=>u.value?fn(t.params.no)?.no??1:1),f=g(()=>I.value[d.value-1]),p=b(A(I.value.length,t?.query?.range)),m=ln(`clicks`,`0`),h=g(()=>v(f.value)),_=g({get(){let e=+(m.value||0);return Number.isNaN(e)&&(e=0),e},set(e){xn.value=!1,m.value=e.toString()}});function v(e){if(e?.meta?.__clicksContext)return e.meta.__clicksContext;let t=e.no,n=Ae(g({get(){return d.value===t?Math.max(+(m.value??0),n.clicksStart):d.value>t?an:n.clicksStart},set(e){d.value===t&&(m.value=e.toString())}}),e?.meta.slide?.frontmatter.clicksStart??0,e?.meta.clicks);return e?.meta&&(e.meta.__clicksContext=n),n}return{router:e,currentRoute:g(()=>t),isPrintMode:r,isPrintWithClicks:i,isEmbedded:a,isPlaying:o,isPresenter:s,isNotesViewer:c,isPresenterAvailable:l,hasPrimarySlide:u,currentSlideNo:d,currentSlideRoute:f,clicksContext:h,queryClicksRaw:m,queryClicks:_,printRange:p,getPrimaryClicks:v}}),sr=ue(()=>{let e=or(),t=_e(),n=ar(e.currentSlideRoute,e.clicksContext,e.queryClicks,e.isPresenter,e.isPrintMode,t);return d([n.total,e.currentRoute],async()=>{let t=e.currentRoute.value.params.no;e.hasPrimarySlide.value&&!fn(t)&&(t&&t!==`index.html`?await n.go(n.total.value,0,!0):await n.go(1,0,!0))},{flush:`pre`,immediate:!0}),{...n,...e}}),cr=De(),lr=P(`slidev-color-schema`,`auto`),ur=g(()=>M.colorSchema!==`auto`),dr=g({get(){return ur.value?M.colorSchema===`dark`:lr.value===`auto`?cr.value:lr.value===`dark`},set(e){ur.value||(lr.value=e===cr.value?`auto`:e?`dark`:`light`)}}),fr=fe(dr);we&&d(dr,e=>{let t=window.document.createElement(`style`);t.appendChild(document.createTextNode(`*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`)),window.document.head.appendChild(t);let n=document.querySelector(`html`);n.classList.toggle(`dark`,e),n.classList.toggle(`light`,!e),window.getComputedStyle(t).opacity,document.head.removeChild(t)},{immediate:!0});function pr(){let{isPrintMode:e}=sr();he(g(()=>e.value?` +@page { + size: ${oe.value}px ${ce.value}px; + margin: 0px; +} + +* { + transition: none !important; + transition-duration: 0s !important; +}`:``))}var mr=Symbol.for(`yaml.alias`),hr=Symbol.for(`yaml.document`),gr=Symbol.for(`yaml.map`),_r=Symbol.for(`yaml.pair`),vr=Symbol.for(`yaml.scalar`),yr=Symbol.for(`yaml.seq`),L=Symbol.for(`yaml.node.type`),br=e=>!!e&&typeof e==`object`&&e[L]===mr,xr=e=>!!e&&typeof e==`object`&&e[L]===hr,Sr=e=>!!e&&typeof e==`object`&&e[L]===gr,R=e=>!!e&&typeof e==`object`&&e[L]===_r,z=e=>!!e&&typeof e==`object`&&e[L]===vr,Cr=e=>!!e&&typeof e==`object`&&e[L]===yr;function B(e){if(e&&typeof e==`object`)switch(e[L]){case gr:case yr:return!0}return!1}function V(e){if(e&&typeof e==`object`)switch(e[L]){case mr:case gr:case vr:case yr:return!0}return!1}var wr=e=>(z(e)||B(e))&&!!e.anchor,H=Symbol(`break visit`),Tr=Symbol(`skip children`),U=Symbol(`remove node`);function Er(e,t){let n=Ar(t);xr(e)?Dr(null,e.contents,n,Object.freeze([e]))===U&&(e.contents=null):Dr(null,e,n,Object.freeze([]))}Er.BREAK=H,Er.SKIP=Tr,Er.REMOVE=U;function Dr(e,t,n,r){let i=jr(e,t,n,r);if(V(i)||R(i))return Mr(e,r,i),Dr(e,i,n,r);if(typeof i!=`symbol`){if(B(t)){r=Object.freeze(r.concat(t));for(let e=0;ee.replace(/[!,[\]{}]/g,e=>Nr[e]),Fr=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+Pr(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],n=Object.entries(this.tags),r;if(e&&n.length>0&&V(e.contents)){let t={};Er(e.contents,(e,n)=>{V(n)&&n.tag&&(t[n.tag]=!0)}),r=Object.keys(t)}else r=[];for(let[i,a]of n)i===`!!`&&a===`tag:yaml.org,2002:`||(!e||r.some(e=>e.startsWith(a)))&&t.push(`%TAG ${i} ${a}`);return t.join(` +`)}};Fr.defaultYaml={explicit:!1,version:`1.2`},Fr.defaultTags={"!!":`tag:yaml.org,2002:`};function Ir(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function Lr(e,t,n,r){if(r&&typeof r==`object`)if(Array.isArray(r))for(let t=0,n=r.length;tW(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!wr(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e==`bigint`&&!n?.keep?Number(e):e}var Rr=class{constructor(e){Object.defineProperty(this,L,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!xr(e))throw TypeError(`A document argument is required`);let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n==`number`?n:100},o=W(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?Lr(i,{"":o},``,o):o}},zr=class extends Rr{constructor(e){super(mr),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],Er(e,{Node:(e,t)=>{(br(t)||wr(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}return r}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,a=this.resolve(r,t);if(!a){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let o=n.get(a);if(o||=(W(a,null,t),n.get(a)),o?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=Br(r,a,n)),o.count*o.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return o.res}toString(e,t,n){let r=`*${this.source}`;if(e){if(Ir(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}};function Br(e,t,n){if(br(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(B(t)){let r=0;for(let i of t.items){let t=Br(e,i,n);t>r&&(r=t)}return r}else if(R(t)){let r=Br(e,t.key,n),i=Br(e,t.value,n);return Math.max(r,i)}return 1}var Vr=e=>!e||typeof e!=`function`&&typeof e!=`object`,G=class extends Rr{constructor(e){super(vr),this.value=e}toJSON(e,t){return t?.keep?this.value:W(this.value,e,t)}toString(){return String(this.value)}};G.BLOCK_FOLDED=`BLOCK_FOLDED`,G.BLOCK_LITERAL=`BLOCK_LITERAL`,G.PLAIN=`PLAIN`,G.QUOTE_DOUBLE=`QUOTE_DOUBLE`,G.QUOTE_SINGLE=`QUOTE_SINGLE`;var Hr=`tag:yaml.org,2002:`;function Ur(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function Wr(e,t,n){if(xr(e)&&(e=e.contents),V(e))return e;if(R(e)){let t=n.schema[gr].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:s}=n,c;if(r&&e&&typeof e==`object`){if(c=s.get(e),c)return c.anchor??=i(e),new zr(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith(`!!`)&&(t=Hr+t.slice(2));let l=Ur(e,t,o.tags);if(!l){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new G(e);return c&&(c.node=t),t}l=e instanceof Map?o[gr]:Symbol.iterator in Object(e)?o[yr]:o[gr]}a&&(a(l),delete n.onTagObj);let u=l?.createNode?l.createNode(n.schema,e,n):typeof l?.nodeClass?.from==`function`?l.nodeClass.from(n.schema,e,n):new G(e);return t?u.tag=t:l.default||(u.tag=l.tag),c&&(c.node=u),u}function Gr(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(typeof n==`number`&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return Wr(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var Kr=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,qr=class extends Rr{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>V(t)||R(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Kr(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(B(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(n,Gr(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let r=this.get(t,!0);if(B(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return r.length===0?!t&&z(i)?i.value:i:B(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!R(t))return!1;let n=t.value;return n==null||e&&z(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let r=this.get(t,!0);return B(r)?r.hasIn(n):!1}setIn(e,t){let[n,...r]=e;if(r.length===0)this.set(n,t);else{let e=this.get(n,!0);if(B(e))e.setIn(r,t);else if(e===void 0&&this.schema)this.set(n,Gr(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}},Jr=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function Yr(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var Xr=(e,t,n)=>e.endsWith(` +`)?Yr(n,t):n.includes(` +`)?` +`+Yr(n,t):(e.endsWith(` `)?``:` `)+n,Zr=`flow`,Qr=`block`,$r=`quoted`;function ei(e,t,n=`flow`,{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:s}={}){if(!i||i<0)return e;ii-Math.max(2,a)?l.push(0):d=i-r);let f,p,m=!1,h=-1,g=-1,_=-1;n===`block`&&(h=ti(e,h,t.length),h!==-1&&(d=h+c));for(let r;r=e[h+=1];){if(n===`quoted`&&r===`\\`){switch(g=h,e[h+1]){case`x`:h+=3;break;case`u`:h+=5;break;case`U`:h+=9;break;default:h+=1}_=h}if(r===` +`)n===`block`&&(h=ti(e,h,t.length)),d=h+t.length+c,f=void 0;else{if(r===` `&&p&&p!==` `&&p!==` +`&&p!==` `){let t=e[h+1];t&&t!==` `&&t!==` +`&&t!==` `&&(f=h)}if(h>=d)if(f)l.push(f),d=f+c,f=void 0;else if(n===`quoted`){for(;p===` `||p===` `;)p=r,r=e[h+=1],m=!0;let t=h>_+1?h-2:g-1;if(u[t])return e;l.push(t),u[t]=!0,d=t+c,f=void 0}else m=!0}p=r}if(m&&s&&s(),l.length===0)return e;o&&o();let v=e.slice(0,l[0]);for(let r=0;r({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),ri=e=>/^(%|---|\.\.\.)/m.test(e);function ii(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;tr)return!0;if(n=t+1,i-n<=r)return!1}return!0}function ai(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(ri(e)?` `:``),o=``,s=0;for(let e=0,t=n[e];t;t=n[++e])if(t===` `&&n[e+1]===`\\`&&n[e+2]===`n`&&(o+=n.slice(s,e)+`\\ `,e+=1,s=e,t=`\\`),t===`\\`)switch(n[e+1]){case`u`:{o+=n.slice(s,e);let t=n.substr(e+2,4);switch(t){case`0000`:o+=`\\0`;break;case`0007`:o+=`\\a`;break;case`000b`:o+=`\\v`;break;case`001b`:o+=`\\e`;break;case`0085`:o+=`\\N`;break;case`00a0`:o+=`\\_`;break;case`2028`:o+=`\\L`;break;case`2029`:o+=`\\P`;break;default:t.substr(0,2)===`00`?o+=`\\x`+t.substr(2):o+=n.substr(e,6)}e+=5,s=e+1}break;case`n`:if(r||n[e+2]===`"`||n.length +`;let d,f;for(f=n.length;f>0;--f){let e=n[f-1];if(e!==` +`&&e!==` `&&e!==` `)break}let p=n.substring(f),m=p.indexOf(` +`);m===-1?d=`-`:n===p||m!==p.length-1?(d=`+`,a&&a()):d=``,p&&=(n=n.slice(0,-p.length),p[p.length-1]===` +`&&(p=p.slice(0,-1)),p.replace(ci,`$&${l}`));let h=!1,g,_=-1;for(g=0;g{i=!0});let s=ei(`${v}${e}${p}`,l,Qr,a);if(!i)return`>${y}\n${l}${s}`}return n=n.replace(/\n+/g,`$&${l}`),`|${y}\n${l}${v}${n}${p}`}function ui(e,t,n,r){let{type:i,value:a}=e,{actualString:o,implicitKey:s,indent:c,indentStep:l,inFlow:u}=t;if(s&&a.includes(` +`)||u&&/[[\]{},]/.test(a))return si(a,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return s||u||!a.includes(` +`)?si(a,t):li(e,t,n,r);if(!s&&!u&&i!==G.PLAIN&&a.includes(` +`))return li(e,t,n,r);if(ri(a)){if(c===``)return t.forceBlockIndent=!0,li(e,t,n,r);if(s&&c===l)return si(a,t)}let d=a.replace(/\n+/g,`$&\n${c}`);if(o){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return si(a,t)}return s?d:ei(d,c,Zr,ni(t,!1))}function di(e,t,n,r){let{implicitKey:i,inFlow:a}=t,o=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==G.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=G.QUOTE_DOUBLE);let c=e=>{switch(e){case G.BLOCK_FOLDED:case G.BLOCK_LITERAL:return i||a?si(o.value,t):li(o,t,n,r);case G.QUOTE_DOUBLE:return ai(o.value,t);case G.QUOTE_SINGLE:return oi(o.value,t);case G.PLAIN:return ui(o,t,n,r);default:return null}},l=c(s);if(l===null){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(l=c(r),l===null)throw Error(`Unsupported default string type ${r}`)}return l}function fi(e,t){let n=Object.assign({blockQuote:!0,commentString:Jr,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),r;switch(n.collectionStyle){case`block`:r=!1;break;case`flow`:r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:r,options:n}}function pi(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let n,r;if(z(t)){r=t.value;let i=e.filter(e=>e.identify?.(r));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}n=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??(r===null?`null`:typeof r);throw Error(`Tag not resolved for ${e} value`)}return n}function mi(e,t,{anchors:n,doc:r}){if(!r.directives)return``;let i=[],a=(z(e)||B(e))&&e.anchor;a&&Ir(a)&&(n.add(a),i.push(`&${a}`));let o=e.tag??(t.default?null:t.tag);return o&&i.push(r.directives.tagString(o)),i.join(` `)}function hi(e,t,n,r){if(R(e))return e.toString(t,n,r);if(br(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i,a=V(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=pi(t.doc.schema.tags,a);let o=mi(a,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let s=typeof i.stringify==`function`?i.stringify(a,t,n,r):z(a)?di(a,t,n,r):a.toString(t,n,r);return o?z(a)||s[0]===`{`||s[0]===`[`?`${o} ${s}`:`${o}\n${t.indent}${s}`:s}function gi({key:e,value:t},n,r,i){let{allNullValues:a,doc:o,indent:s,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=n,f=V(e)&&e.comment||null;if(d){if(f)throw Error(`With simple keys, key nodes cannot have comments`);if(B(e)||!V(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let p=!d&&(!e||f&&t==null&&!n.inFlow||B(e)||(z(e)?e.type===G.BLOCK_FOLDED||e.type===G.BLOCK_LITERAL:typeof e==`object`));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(d||!a),indent:s+c});let m=!1,h=!1,g=hi(e,n,()=>m=!0,()=>h=!0);if(!p&&!n.inFlow&&g.length>1024){if(d)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);p=!0}if(n.inFlow){if(a||t==null)return m&&r&&r(),g===``?`?`:p?`? ${g}`:g}else if(a&&!d||t==null&&p)return g=`? ${g}`,f&&!m?g+=Xr(g,n.indent,l(f)):h&&i&&i(),g;m&&(f=null),p?(f&&(g+=Xr(g,n.indent,l(f))),g=`? ${g}\n${s}:`):(g=`${g}:`,f&&(g+=Xr(g,n.indent,l(f))));let _,v,y;V(t)?(_=!!t.spaceBefore,v=t.commentBefore,y=t.comment):(_=!1,v=null,y=null,t&&typeof t==`object`&&(t=o.createNode(t))),n.implicitKey=!1,!p&&!f&&z(t)&&(n.indentAtStart=g.length+1),h=!1,!u&&c.length>=2&&!n.inFlow&&!p&&Cr(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,x=hi(t,n,()=>b=!0,()=>h=!0),S=` `;if(f||_||v){if(S=_?` +`:``,v){let e=l(v);S+=`\n${Yr(e,n.indent)}`}x===``&&!n.inFlow?S===` +`&&y&&(S=` + +`):S+=`\n${n.indent}`}else if(!p&&B(t)){let e=x[0],r=x.indexOf(` +`),i=r!==-1,a=n.inFlow??t.flow??t.items.length===0;if(i||!a){let t=!1;if(i&&(e===`&`||e===`!`)){let n=x.indexOf(` `);e===`&`&&n!==-1&&ne===vi||typeof e==`symbol`&&e.description===vi,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new G(Symbol(vi)),{addToJSMap:xi}),stringify:()=>vi},bi=(e,t)=>(yi.identify(t)||z(t)&&(!t.type||t.type===G.PLAIN)&&yi.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===yi.tag&&e.default);function xi(e,t,n){let r=Ci(e,n);if(Cr(r))for(let n of r.items)Si(e,t,n);else if(Array.isArray(r))for(let n of r)Si(e,t,n);else Si(e,t,r)}function Si(e,t,n){let r=Ci(e,n);if(!Sr(r))throw Error(`Merge sources must be maps or map aliases`);let i=r.toJSON(null,e,Map);for(let[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function Ci(e,t){return e&&br(t)?t.resolve(e.doc,e):t}function wi(e,t,{key:n,value:r}){if(V(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(bi(e,n))xi(e,t,r);else{let i=W(n,``,e);if(t instanceof Map)t.set(i,W(r,i,e));else if(t instanceof Set)t.add(i);else{let a=Ti(n,i,e),o=W(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function Ti(e,t,n){if(t===null)return``;if(typeof t!=`object`)return String(t);if(V(e)&&n?.doc){let t=fi(n.doc,{});t.anchors=new Set;for(let e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+`..."`),_i(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}function Ei(e,t,n){return new Di(Wr(e,void 0,n),Wr(t,void 0,n))}var Di=class e{constructor(e,t=null){Object.defineProperty(this,L,{value:_r}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return V(n)&&(n=n.clone(t)),V(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return wi(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?gi(this,e,t,n):JSON.stringify(this)}};function Oi(e,t,n){return(t.inFlow??e.flow?Ai:ki)(e,t,n)}function ki({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:a,onChompKeep:o,onComment:s}){let{indent:c,options:{commentString:l}}=n,u=Object.assign({},n,{indent:a,type:null}),d=!1,f=[];for(let e=0;eo=null,()=>d=!0);o&&(s+=Xr(s,a,l(o))),d&&o&&(d=!1),f.push(r+s)}let p;if(f.length===0)p=i.start+i.end;else{p=f[0];for(let e=1;ea=null);l||=d.length>u||o.includes(` +`),n0&&(l||=d.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth),l&&(o+=`,`)),a&&(o+=Xr(o,r,s(a))),d.push(o),u=d.length}let{start:f,end:p}=n;if(d.length===0)return f+p;if(!l){let e=d.reduce((e,t)=>e+t.length+2,2);l=t.options.lineWidth>0&&e>t.options.lineWidth}if(l){let e=f;for(let t of d)e+=t?`\n${a}${i}${t}`:` +`;return`${e}\n${i}${p}`}else return`${f}${o}${d.join(` `)}${o}${p}`}function ji({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,``)),r){let i=Yr(t(r),e);n.push(i.trimStart())}}function Mi(e,t){let n=z(t)?t.value:t;for(let r of e)if(R(r)&&(r.key===t||r.key===n||z(r.key)&&r.key.value===n))return r}var K=class extends qr{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(gr,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,a=new this(e),o=(e,o)=>{if(typeof i==`function`)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(o!==void 0||r)&&a.items.push(Ei(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))o(e,t[e]);return typeof e.sortMapEntries==`function`&&a.items.sort(e.sortMapEntries),a}add(e,t){let n;n=R(e)?e:!e||typeof e!=`object`||!(`key`in e)?new Di(e,e?.value):new Di(e.key,e.value);let r=Mi(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);z(r.value)&&Vr(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>i(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=Mi(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=Mi(this.items,e)?.value;return(!t&&z(n)?n.value:n)??void 0}has(e){return!!Mi(this.items,e)}set(e,t){this.add(new Di(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(let e of this.items)wi(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!R(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Oi(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:n,onComment:t})}},Ni={collection:`map`,default:!0,nodeClass:K,tag:`tag:yaml.org,2002:map`,resolve(e,t){return Sr(e)||t(`Expected a mapping for this tag`),e},createNode:(e,t,n)=>K.from(e,t,n)},Pi=class extends qr{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(yr,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=Fi(e);return typeof t==`number`?this.items.splice(t,1).length>0:!1}get(e,t){let n=Fi(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&z(r)?r.value:r}has(e){let t=Fi(e);return typeof t==`number`&&t=0?t:null}var Ii={collection:`seq`,default:!0,nodeClass:Pi,tag:`tag:yaml.org,2002:seq`,resolve(e,t){return Cr(e)||t(`Expected a sequence for this tag`),e},createNode:(e,t,n)=>Pi.from(e,t,n)};function Li(e){return typeof e==`bigint`||Number.isInteger(e)}var Ri=({value:e})=>JSON.stringify(e),zi=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:Ri},{identify:e=>e==null,createNode:()=>new G(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:Ri},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:Ri},{identify:Li,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>Li(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Ri}];[Ni,Ii].concat(zi,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}});function Bi(e,t,n){let{replacer:r}=n,i=new Pi(e);i.tag=`tag:yaml.org,2002:pairs`;let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof r==`function`&&(e=r.call(t,String(a++),e));let o,s;if(Array.isArray(e))if(e.length===2)o=e[0],s=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)o=t[0],s=e[o];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;i.items.push(Ei(o,s,n))}return i}var Vi=class e extends Pi{constructor(){super(),this.add=K.prototype.add.bind(this),this.delete=K.prototype.delete.bind(this),this.get=K.prototype.get.bind(this),this.has=K.prototype.has.bind(this),this.set=K.prototype.set.bind(this),this.tag=e.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let e of this.items){let r,i;if(R(e)?(r=W(e.key,``,t),i=W(e.value,r,t)):r=W(e,``,t),n.has(r))throw Error(`Ordered maps must not include duplicate keys`);n.set(r,i)}return n}static from(e,t,n){let r=Bi(e,t,n),i=new this;return i.items=r.items,i}};Vi.tag=`tag:yaml.org,2002:omap`;var Hi=class e extends K{constructor(t){super(t),this.tag=e.tag}add(e){let t;t=R(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new Di(e.key,null):new Di(e,null),Mi(this.items,t.key)||this.items.push(t)}get(e,t){let n=Mi(this.items,e);return!t&&R(n)?z(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=Mi(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new Di(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof r==`function`&&(e=r.call(t,e,e)),i.items.push(Ei(e,null,n));return i}};Hi.tag=`tag:yaml.org,2002:set`;var Ui=Symbol(`break visit`),Wi=Symbol(`skip children`),Gi=Symbol(`remove item`);function Ki(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),qi(Object.freeze([]),e,t)}Ki.BREAK=Ui,Ki.SKIP=Wi,Ki.REMOVE=Gi,Ki.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},Ki.parentCollection=(e,t)=>{let n=Ki.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&`items`in i)return i;throw Error(`Parent collection not found`)};function qi(e,t,n){let r=n(t,e);if(typeof r==`symbol`)return r;for(let i of[`key`,`value`]){let a=t[i];if(a&&`items`in a){for(let t=0;tQi.push(e)),q(Zi,`$onPatch`,e=>$i.push(e)),Xi(),q(Zi,`$patch`,async()=>!1);var ea=E([{channels:[],enabled:!0,init(e,t,n,r=!1){let i;if(!r)i=new BroadcastChannel(e),i.addEventListener(`message`,e=>t(e.data)),this.channels.push(i);else if(r){this.listener=function(n){n&&n.key===e&&n.newValue&&t(JSON.parse(n.newValue))},window.addEventListener(`storage`,this.listener);let n=window.localStorage.getItem(e);n&&t(JSON.parse(n))}return(t,n=!1)=>{this.enabled&&(!r&&i&&!n&&i.postMessage(w(t)),r&&!n&&window.localStorage.setItem(e,JSON.stringify(t)))}},disable(){this.enabled=!1,this.channels.forEach(e=>e.close()),this.listener&&window.removeEventListener(`storage`,this.listener)}}]),ta=new Map,na=b({});function ra(e,t,n=!1){let r=[],i=!1,a=!1,o,s,c=E(t);function l(e){r.push(e)}function u(e,t){c[e]!==t&&(clearTimeout(o),i=!0,c[e]=t,o=setTimeout(()=>i=!1,0))}function f(e){i||(clearTimeout(s),a=!0,Object.entries(e).forEach(([e,t])=>{c[e]=t}),s=setTimeout(()=>a=!1,0))}function p(e){ta.set(e,{onUpdate:f,persist:n,state:c}),na.value[e]=ea.map(t=>t.init(e,f,c,n)).filter(e=>!!e);function t(){na.value[e].forEach(e=>e?.(w(c),a)),i||r.forEach(e=>e(c))}d(c,t,{deep:!0})}return{init:p,onPatch:l,onUpdate:f,patch:u,state:c}}var{init:ia,onPatch:aa,onUpdate:oa,patch:sa,state:ca}=ra(Zi,Zi,!1),la=E({page:0,clicks:0,timer:{status:`stopped`,slides:{},startedAt:0,pausedAt:0}}),ua=[],da=[];q(la,`$syncUp`,!0),q(la,`$syncDown`,!0),q(la,`$paused`,!1),q(la,`$onSet`,e=>ua.push(e)),q(la,`$onPatch`,e=>da.push(e)),Xi(),q(la,`$patch`,async()=>!1);var{init:fa,onPatch:pa,onUpdate:ma,patch:ha,state:ga}=ra(la,{page:1,clicks:0,clicksTotal:0,timer:{status:`stopped`,slides:{},startedAt:0,pausedAt:0}});function _a(){let e=c().appContext.app,t=E({nav:sr(),configs:M,themeConfigs:g(()=>M.themeConfig)});e.provide(Yt,b(`none`)),e.provide(qt,t),e.provide(Wt,g(()=>t.nav.currentSlideNo)),e.provide(Ut,h(ke()));for(let e of gt)e();let{clicksContext:n,currentSlideNo:r,hasPrimarySlide:i,isNotesViewer:a,isPresenter:o,isPrintMode:s}=sr();ut({title:ae,htmlAttrs:M.htmlAttrs}),pr(),fa(`${ae} - shared`),ia(`${ae} - drawings`);let l=`${location.origin}_${Ji()}`,u=g(()=>o.value?`presenter`:`viewer`);function f(){(o.value?er.value.presenterSend:er.value.viewerSend)&&(a.value||s.value||!o.value&&!on.includes(location.host.split(`:`)[0])||(ha(`page`,+r.value),ha(`clicks`,n.value.current),ha(`clicksTotal`,n.value.total),ha(`lastUpdate`,{id:l,type:u.value,time:Date.now()})))}let p=_e();p.afterEach(f),d(n,f),pa(e=>{(o.value?er.value.presenterReceive:er.value.viewerReceive)&&(!i.value||s.value||e.lastUpdate?.type!==u.value&&(+e.page==+r.value&&+n.value.current==+e.clicks||(xn.value=!1,p.replace({path:pn(e.page,o.value),query:{...p.currentRoute.value.query,clicks:e.clicks||0}}))))})}var va=ne({__name:`App`,setup(e){return _a(),u(()=>{for(let[e,t]of Object.entries(j.value))document.body.style.setProperty(e,t.toString())}),(e,t)=>{let n=l(`RouterView`);return k(),te(n)}}}),ya=/\s+/;function ba(e={}){return t=>xa(t,e)}function xa(e,t={}){let n=t.document||e.resolvedOptions.document;if(!n||!e.dirty&&![...e.entries.values()].some(e=>e._pending!==void 0))return!1;let r={shouldRender:!0,tags:[]};if(Ue(e,`dom:beforeRender`,r),!r.shouldRender||e._du)return!1;e._du=!0;let i=e._dom;if(i)i._p={...i._s};else{i={_t:n.title,_e:new Map([[`htmlAttrs`,n.documentElement],[`bodyAttrs`,n.body]]),_p:{},_s:{}};for(let e of[...n.body.children,...n.head.children]){let t=e.tagName.toLowerCase();if(!Pe.has(t))continue;let n={innerHTML:e.innerHTML};for(let t of e.getAttributeNames())n[t]=e.getAttribute(t);let r=Xe({tag:t,props:{}},n);r.key=e.getAttribute(`data-hid`)||void 0;let a=r._d=Ke(r)||qe(r),o=1;for(;i._e.has(a);)a=`${r._d}:${o++}`;i._e.set(a,e)}for(let t of e.entries.values())if(t._o!==void 0){let e=t._o;for(let t of[`bodyAttrs`,`htmlAttrs`]){let n=e[t]?.class;if(typeof n==`string`){let e=i._e.get(t);for(let r of n.split(ya))r&&(i._p[`${t}:attr:class:${r}`]=()=>e.classList.remove(r))}}delete t._o}}i._s={};function a(e,t,n){let r=`${e}:${t}`;i._s[r]=n,delete i._p[r]}function o({id:e,$el:t,tag:r}){let o=r.tag.endsWith(`Attrs`);i._e.set(e,t),o||(r.textContent&&r.textContent!==t.textContent&&(t.textContent=r.textContent),r.innerHTML&&r.innerHTML!==t.innerHTML&&(t.innerHTML=r.innerHTML),a(e,`el`,()=>{t?.remove(),i._e.delete(e)}));for(let i in r.props){let s=r.props[i];if(i[0]===`o`&&i[1]===`n`&&typeof s==`function`){let e=i.slice(2);t?.dataset?.[`${i}fired`]&&s.call(t,new Event(e)),t.getAttribute(`data-${i}`)!==``&&((r.tag===`bodyAttrs`?n.defaultView:t).addEventListener(e,s.bind(t)),t.setAttribute(`data-${i}`,``));continue}let c=`attr:${i}`;if(i===`class`&&s)for(let n of s)o&&a(e,`${c}:${n}`,()=>t.classList.remove(n)),t.classList.contains(n)||t.classList.add(n);else if(i===`style`&&s)for(let[n,r]of s)a(e,`${c}:${n}`,()=>t.style.removeProperty(n)),t.style.setProperty(n,r);else s!==!1&&s!==null&&(t.getAttribute(i)!==s&&t.setAttribute(i,s===!0?``:String(s)),o&&a(e,c,()=>t.removeAttribute(i)))}}let s=[],c={},l=at(e,t.tagWeight?{tagWeight:t.tagWeight}:void 0),u=[],d=new Map;for(let e of l){let t=d.get(e._d)||0,r=(t?`${e._d}:${t}`:e._d)||e._h,c={tag:e,id:r,shouldRender:!0};if(e._d&&Ge(e._d)&&d.set(e._d,t+1),u.push(c),e.tag===`title`){n.title=e.textContent,a(`title`,``,()=>n.title=i._t);continue}c.$el=i._e.get(r),c.$el?o(c):Pe.has(e.tag)&&s.push(c)}for(let e of s)e.$el=n.createElement(e.tag.tag),o(e),(c[e.tag.tagPosition||`head`]??=n.createDocumentFragment()).appendChild(e.$el);c.head&&n.head.appendChild(c.head),c.bodyOpen&&n.body.insertBefore(c.bodyOpen,n.body.firstChild),c.bodyClose&&n.body.appendChild(c.bodyClose);for(let e in i._p)i._p[e]();return e._dom=i,Ue(e,`dom:rendered`,{renders:u}),e._du=!1,e.dirty=!1,!0}var Sa={critical:-8,high:-1,low:2},Ca=e=>typeof e.tagPriority==`number`?e.tagPriority:100+(Sa[e.tagPriority]||0);function wa(e={}){e.document=e.document||(typeof window<`u`?document:void 0);let t=e.render||ba({document:e.document}),n=e.document?.head.querySelector(`script[id="unhead:payload"]`)?.innerHTML||!1,r=pt(t,{document:e.document,propResolvers:e.propResolvers,_tagWeight:Ca,init:[]}),i=He(e.hooks),a=!1,o={...r,ssr:!1,hooks:i,use:e=>ft(o,e),get dirty(){return a},set dirty(e){a=e},render:()=>t(o),invalidate(){for(let e of r.entries.values())delete e._tags;a=!0,i.callHook(`entries:updated`,o)},push(e,t){let n=t?.onRendered,s=n?i.hook(`dom:rendered`,n):void 0,c=r.push(e,t);return r.entries.get(c._i)._o=e,a=!0,i.callHook(`entries:updated`,o),{_i:c._i,patch(e){c.patch(e),a=!0,i.callHook(`entries:updated`,o)},dispose(){s?.(),r.entries.has(c._i)&&(c.dispose(),o.invalidate())}}}};return i.hook(`entries:updated`,()=>{t(o)}),e.plugins?.forEach(e=>ft(o,e)),n&&o.push(JSON.parse(n)),e.init?.forEach(e=>e&&o.push(e)),o}function Ta(e,t){let n=0;return()=>{let r=++n;t(()=>{n===r&&e()})}}function Ea(e={}){let t=ba(),n;return n=wa({render:Ta(()=>t(n),e=>setTimeout(e,0)),...e}),n.install=st(n),n}var Da=Object.assign({}),Oa=Object.assign({}),ka=[Object.values(Da)[0],Object.values(Oa)[0]].filter(Boolean);function Aa(e,t=``){let n=[`slidev-page`,t],r=e?.meta?.slide?.no;return r!=null&&n.push(`slidev-page-${r}`),n.filter(Boolean).join(` `)}async function ja(){let{saveAs:t}=await F(async()=>{let{saveAs:t}=await import(`./modules/file-saver-DJvf_BAX.js`).then(t=>e(t.t(),1));return{saveAs:t}},__vite__mapDeps([30,2]));t(typeof M.download==`string`?M.download:M.exportFilename?`${M.exportFilename}.pdf`:`/slidev-exported.pdf`,`${M.title}.pdf`)}function Ma(e,t,n){return(e.instance?.$).provides[t]??n}var Na=/[\s,]+/;function Pa(e,t){let n=t.map(e=>`${rn}${e}`);e.classList.forEach(t=>{t.startsWith(`slidev-vclick-anim-`)&&!n.includes(t)&&e.classList.remove(t)}),n.forEach(t=>e.classList.add(t))}function Fa(){return{install(e){e.directive(`click`,{name:`v-click`,mounted(e,t){let n=La(e,t,t.value);n!=null&&(e.classList.toggle(Qt,!0),e.dataset.slidevClicksStart=String(n.start),Number.isFinite(n.end)&&(e.dataset.slidevClicksEnd=String(n.end)),e.watchStopHandle=u(()=>{let t=n.isActive.value,r=n.isCurrent.value,i=t&&!r;n.flagHide?(e.classList.toggle($t,t),e.classList.toggle(en,t)):e.classList.toggle($t,!t),Pa(e,n.flagAnimations.value),e.classList.toggle(tn,r),e.classList.toggle(nn,i)}))},unmounted:Ra}),e.directive(`after`,{name:`v-after`,mounted(e,t){let n=La(e,t,`+0`);n!=null&&(e.classList.toggle(Qt,!0),e.watchStopHandle=u(()=>{let t=n.isActive.value,r=n.isCurrent.value,i=t&&!r;n.flagHide?(e.classList.toggle($t,t),e.classList.toggle(en,t)):e.classList.toggle($t,!t),Pa(e,n.flagAnimations.value),e.classList.toggle(tn,r),e.classList.toggle(nn,i)}))},unmounted:Ra}),e.directive(`click-hide`,{name:`v-click-hide`,mounted(e,t){let n=La(e,t,t.value,!0);n!=null&&(e.classList.toggle(Qt,!0),e.watchStopHandle=u(()=>{let t=n.isActive.value,r=n.isCurrent.value,i=t&&!r;e.classList.toggle($t,t),e.classList.toggle(en,t),Pa(e,n.flagAnimations.value),e.classList.toggle(tn,r),e.classList.toggle(nn,i)}))},unmounted:Ra})}}}var Ia=new Map;function La(e,t,n,r=!1){let i=Ma(t,Ut)?.value,a=Ma(t,Xt);if(!e||!i)return null;let o=r||t.modifiers.hide!==!1&&t.modifiers.hide!=null,s=Object.keys({...t.modifiers}).filter(e=>e!==`hide`),c=g(()=>{if(s.length>0)return s;let e=a?.clickAnimation||M.clickAnimation;return e?e.split(Na).filter(Boolean):[]}),l=i.calculate(n);if(!l)return null;i.register(e,l);let u=g(()=>o?!l.isActive.value:l.isActive.value),d=g(()=>u.value?`shown`:Number.isFinite(l.end)?i.current{setTimeout(t.update,300)},{flush:`post`,immediate:!0});return{...t,stop:n}}function Ba(e){return{info:b(fn(e)?.meta.slide??null),update:async()=>{}}}var Va={};function Ha(e){function t(e){return Va[e]??=Ba(e)}return{info:g({get(){return t(p(e)).info.value},set(n){t(p(e)).info.value=n}}),update:async(n,r)=>{let i=t(r??p(e)),a=await i.update(n);return a&&(i.info.value=a),a}}}function Ua(e){return()=>{}}function Wa(e,t,n,r=!1){function i(t){return e?Ma(e,t):N(t)}let a=i(Yt),o=i(`$$slidev-fontmatter`)??{},s=i(Wt),c=g(()=>Ua(s.value)),l=i(`$$slidev-slide-scale`)??b(1),u=i(`$$slidev-slide-zoom`)??b(1),{left:f,top:p,stop:m}=za(i(`$$slidev-slide-element`)??b()),{isPrintMode:h}=sr(),_=[`slide`,`presenter`].includes(a.value)&&!h.value,v=e?`directive`:`prop`,y=Ji(),x;if(Array.isArray(t)?x=t:typeof t==`string`&&t.includes(`,`)?x=t.split(`,`).map(Number):t!=null&&(v=`frontmatter`,y=`${t}`,t=o?.dragPos?.[y],x=t?.split(`,`).map(Number)),v!==`frontmatter`&&!n)throw Error("[Slidev] Can not identify the source position of the v-drag element, please provide an explicit `id` prop.");let S=[m],C=!r&&t!=null&&!Number.isFinite(x?.[3]);x??=[NaN,NaN,0];let w=b(x[2]),T=b(x[0]+x[2]/2),E=b(r?0:x[4]??0),ee=g(()=>E.value*Math.PI/180),D=g(()=>Math.sin(ee.value)),te=g(()=>Math.cos(ee.value)),ne=b(),O=b({left:0,top:0,width:0,height:0}),re=b(0);function k(){if(!ne.value)return;let e=ne.value.getBoundingClientRect();O.value={left:e.left/u.value,top:e.top/u.value,width:e.width/u.value,height:e.height/u.value},re.value=(O.value.width+O.value.height)/l.value/(Math.abs(D.value)+Math.abs(te.value))-w.value}S.push(d(w,k,{flush:`post`}));let ie=b(x[3]??0),A=C?g({get:()=>(C?re.value:ie.value)||0,set:e=>!C&&(ie.value=e)}):ie,ae=b(C?x[1]:x[1]+x[3]/2),oe=C?g({get:()=>ae.value+A.value/2,set:e=>ae.value=e-A.value/2}):ae,se=g(()=>Number.isFinite(T.value)?{position:`absolute`,zIndex:100,left:`${T.value-w.value/2}px`,top:`${oe.value-A.value/2}px`,width:`${w.value}px`,height:C?void 0:`${A.value}px`,transformOrigin:`center center`,transform:`rotate(${E.value}deg)`}:{position:`absolute`,zIndex:100});S.push(d([T,oe,w,A,E],([e,t,r,i,a])=>{let o=[e-r/2,t-i/2,r].map(Math.round).join();C?o+=v===`directive`?`,NaN`:`,_`:o+=`,${Math.round(i)}`,Math.round(a)!==0&&(o+=`,${Math.round(a)}`),v===`directive`&&(o=`[${o}]`),c.value(y,o,v,n)}));let j={dragId:y,dataSource:v,markdownSource:n,isArrow:r,zoom:u,autoHeight:C,x0:T,y0:oe,width:w,height:A,rotate:E,container:ne,containerStyle:se,watchStopHandles:S,dragging:g(()=>Wn.value===j),mounted(){_&&(k(),t||setTimeout(()=>{k(),T.value=(O.value.left+O.value.width/2-f.value)/l.value,oe.value=(O.value.top-p.value)/l.value,w.value=O.value.width/l.value,A.value=O.value.height/l.value},100))},unmounted(){_&&j.stopDragging()},startDragging(){_&&(k(),Wn.value=j)},stopDragging(){_&&Wn.value===j&&(Wn.value=null)}};return S.push(Ee(ne,e=>{let t=document.querySelector(`#drag-control-container`);t&&e.target&&t.contains(e.target)||j.stopDragging()}),d(ge(),e=>{e||j.stopDragging()})),j}function Ga(){return{install(e){e.directive(`drag`,{name:`v-drag`,created(e,t,n){let r=Wa(t,t.value,n.props?.markdownSource);n.props&&(n.props={...n.props},delete n.props.markdownSource),r.container.value=e,e.draggingState=r,e.dataset.dragId=r.dragId,r.watchStopHandles.push(d(r.containerStyle,t=>{for(let[n,r]of Object.entries(t))r&&(e.style[n]=r)},{immediate:!0})),e.addEventListener(`dblclick`,r.startDragging)},mounted(e){e.draggingState.mounted()},unmounted(e){let t=e.draggingState;t.unmounted(),e.removeEventListener(`dblclick`,t.startDragging),t.watchStopHandles.forEach(e=>e())}})}}}function Ka(){return Math.floor(Math.random()*2**31)}var qa=class{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}};function Ja(e,t,n){if(e&&e.length){let[r,i]=t,a=Math.PI/180*n,o=Math.cos(a),s=Math.sin(a);for(let t of e){let[e,n]=t;t[0]=(e-r)*o-(n-i)*s+r,t[1]=(e-r)*s+(n-i)*o+i}}}function Ya(e,t,n){let r=[];e.forEach(e=>r.push(...e)),Ja(r,t,n)}function Xa(e,t){return e[0]===t[0]&&e[1]===t[1]}function Za(e,t,n,r=1){let i=n,a=Math.max(t,.1),o=e[0]&&e[0][0]&&typeof e[0][0]==`number`?[e]:e,s=[0,0];if(i)for(let e of o)Ja(e,s,i);let c=Qa(o,a,r);if(i){for(let e of o)Ja(e,s,-i);Ya(c,s,-i)}return c}function Qa(e,t,n){let r=[];for(let t of e){let e=[...t];Xa(e[0],e[e.length-1])||e.push([e[0][0],e[0][1]]),e.length>2&&r.push(e)}let i=[];t=Math.max(t,.1);let a=[];for(let e of r)for(let t=0;te.ymint.ymin?1:e.xt.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax)),!a.length)return i;let o=[],s=a[0].ymin,c=0;for(;o.length||a.length;){if(a.length){let e=-1;for(let t=0;ts);t++)e=t;a.splice(0,e+1).forEach(e=>{o.push({s,edge:e})})}if(o=o.filter(e=>!(e.edge.ymax<=s)),o.sort((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x)),(n!==1||c%t===0)&&o.length>1)for(let e=0;e=o.length)break;let n=o[e].edge,r=o[t].edge;i.push([[Math.round(n.x),s],[Math.round(r.x),s]])}s+=n,o.forEach(e=>{e.edge.x=e.edge.x+n*e.edge.islope}),c++}return i}function $a(e,t){let n=t.hachureAngle+90,r=t.hachureGap;r<0&&(r=t.strokeWidth*4),r=Math.round(Math.max(r,.1));let i=1;return t.roughness>=1&&(t.randomizer?.next()||Math.random())>.7&&(i=r),Za(e,r,n,i||1)}var eo=class{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){let n=$a(e,t);return{type:`fillSketch`,ops:this.renderLines(n,t)}}renderLines(e,t){let n=[];for(let r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],t));return n}};function to(e){let t=e[0],n=e[1];return Math.sqrt((t[0]-n[0])**2+(t[1]-n[1])**2)}var no=class extends eo{fillPolygons(e,t){let n=t.hachureGap;n<0&&(n=t.strokeWidth*4),n=Math.max(n,.1);let r=$a(e,Object.assign({},t,{hachureGap:n})),i=Math.PI/180*t.hachureAngle,a=[],o=n*.5*Math.cos(i),s=n*.5*Math.sin(i);for(let[e,t]of r)to([e,t])&&a.push([[e[0]-o,e[1]+s],[...t]],[[e[0]+o,e[1]-s],[...t]]);return{type:`fillSketch`,ops:this.renderLines(a,t)}}},ro=class extends eo{fillPolygons(e,t){let n=this._fillPolygons(e,t),r=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),i=this._fillPolygons(e,r);return n.ops=n.ops.concat(i.ops),n}},io=class{constructor(e){this.helper=e}fillPolygons(e,t){t=Object.assign({},t,{hachureAngle:0});let n=$a(e,t);return this.dotsOnLines(n,t)}dotsOnLines(e,t){let n=[],r=t.hachureGap;r<0&&(r=t.strokeWidth*4),r=Math.max(r,.1);let i=t.fillWeight;i<0&&(i=t.strokeWidth/2);let a=r/4;for(let o of e){let e=to(o),s=e/r,c=Math.ceil(s)-1,l=e-c*r,u=(o[0][0]+o[1][0])/2-r/4,d=Math.min(o[0][1],o[1][1]);for(let e=0;e{let a=to(e),o=Math.floor(a/(n+r)),s=(a+r-o*(n+r))/2,c=e[0],l=e[1];c[0]>l[0]&&(c=e[1],l=e[0]);let u=Math.atan((l[1]-c[1])/(l[0]-c[0]));for(let e=0;e{let i=to(e),a=Math.round(i/(2*t)),o=e[0],s=e[1];o[0]>s[0]&&(o=e[1],s=e[0]);let c=Math.atan((s[1]-o[1])/(s[0]-o[0]));for(let e=0;er%2?e+n:e+t);a.push({key:`C`,data:e}),t=e[4],n=e[5];break}case`Q`:a.push({key:`Q`,data:[...s]}),t=s[2],n=s[3];break;case`q`:{let e=s.map((e,r)=>r%2?e+n:e+t);a.push({key:`Q`,data:e}),t=e[2],n=e[3];break}case`A`:a.push({key:`A`,data:[...s]}),t=s[5],n=s[6];break;case`a`:t+=s[5],n+=s[6],a.push({key:`A`,data:[s[0],s[1],s[2],s[3],s[4],t,n]});break;case`H`:a.push({key:`H`,data:[...s]}),t=s[0];break;case`h`:t+=s[0],a.push({key:`H`,data:[t]});break;case`V`:a.push({key:`V`,data:[...s]}),n=s[0];break;case`v`:n+=s[0],a.push({key:`V`,data:[n]});break;case`S`:a.push({key:`S`,data:[...s]}),t=s[2],n=s[3];break;case`s`:{let e=s.map((e,r)=>r%2?e+n:e+t);a.push({key:`S`,data:e}),t=e[2],n=e[3];break}case`T`:a.push({key:`T`,data:[...s]}),t=s[0],n=s[1];break;case`t`:t+=s[0],n+=s[1],a.push({key:`T`,data:[t,n]});break;case`Z`:case`z`:a.push({key:`Z`,data:[]}),t=r,n=i;break}return a}function _o(e){let t=[],n=``,r=0,i=0,a=0,o=0,s=0,c=0;for(let{key:l,data:u}of e){switch(l){case`M`:t.push({key:`M`,data:[...u]}),[r,i]=u,[a,o]=u;break;case`C`:t.push({key:`C`,data:[...u]}),r=u[4],i=u[5],s=u[2],c=u[3];break;case`L`:t.push({key:`L`,data:[...u]}),[r,i]=u;break;case`H`:r=u[0],t.push({key:`L`,data:[r,i]});break;case`V`:i=u[0],t.push({key:`L`,data:[r,i]});break;case`S`:{let e=0,a=0;n===`C`||n===`S`?(e=r+(r-s),a=i+(i-c)):(e=r,a=i),t.push({key:`C`,data:[e,a,...u]}),s=u[0],c=u[1],r=u[2],i=u[3];break}case`T`:{let[e,a]=u,o=0,l=0;n===`Q`||n===`T`?(o=r+(r-s),l=i+(i-c)):(o=r,l=i);let d=r+2*(o-r)/3,f=i+2*(l-i)/3,p=e+2*(o-e)/3,m=a+2*(l-a)/3;t.push({key:`C`,data:[d,f,p,m,e,a]}),s=o,c=l,r=e,i=a;break}case`Q`:{let[e,n,a,o]=u,l=r+2*(e-r)/3,d=i+2*(n-i)/3,f=a+2*(e-a)/3,p=o+2*(n-o)/3;t.push({key:`C`,data:[l,d,f,p,a,o]}),s=e,c=n,r=a,i=o;break}case`A`:{let e=Math.abs(u[0]),n=Math.abs(u[1]),a=u[2],o=u[3],s=u[4],c=u[5],l=u[6];e===0||n===0?(t.push({key:`C`,data:[r,i,c,l,c,l]}),r=c,i=l):(r!==c||i!==l)&&(bo(r,i,c,l,e,n,a,o,s).forEach(function(e){t.push({key:`C`,data:e})}),r=c,i=l);break}case`Z`:t.push({key:`Z`,data:[]}),r=a,i=o;break}n=l}return t}function vo(e){return Math.PI*e/180}function yo(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}function bo(e,t,n,r,i,a,o,s,c,l){let u=vo(o),d=[],f=0,p=0,m=0,h=0;if(l)[f,p,m,h]=l;else{[e,t]=yo(e,t,-u),[n,r]=yo(n,r,-u);let o=(e-n)/2,l=(t-r)/2,d=o*o/(i*i)+l*l/(a*a);d>1&&(d=Math.sqrt(d),i=d*i,a=d*a);let g=s===c?-1:1,_=i*i,v=a*a,y=_*v-_*l*l-v*o*o,b=_*l*l+v*o*o,x=g*Math.sqrt(Math.abs(y/b));m=x*i*l/a+(e+n)/2,h=x*-a*o/i+(t+r)/2,f=Math.asin(parseFloat(((t-h)/a).toFixed(9))),p=Math.asin(parseFloat(((r-h)/a).toFixed(9))),ep&&(f-=Math.PI*2),!c&&p>f&&(p-=Math.PI*2)}let g=p-f;if(Math.abs(g)>Math.PI*120/180){let e=p,t=n,s=r;p=c&&p>f?f+Math.PI*120/180*1:f+Math.PI*120/180*-1,n=m+i*Math.cos(p),r=h+a*Math.sin(p),d=bo(n,r,t,s,i,a,o,0,c,[p,e,m,h])}g=p-f;let _=Math.cos(f),v=Math.sin(f),y=Math.cos(p),b=Math.sin(p),x=Math.tan(g/4),S=4/3*i*x,C=4/3*a*x,w=[e,t],T=[e+S*v,t-C*_],E=[n+S*b,r-C*y],ee=[n,r];if(T[0]=2*w[0]-T[0],T[1]=2*w[1]-T[1],l)return[T,E,ee].concat(d);{d=[T,E,ee].concat(d);let e=[];for(let t=0;t2){let i=[];for(let t=0;tMath.PI*2&&(p=0,m=Math.PI*2);let h=Math.PI*2/c.curveStepCount,g=Math.min(h/2,(m-p)/2),_=Go(g,l,u,d,f,p,m,1,c);if(!c.disableMultiStroke){let e=Go(g,l,u,d,f,p,m,1.5,c);_.push(...e)}return o&&(s?_.push(...Bo(l,u,l+d*Math.cos(p),u+f*Math.sin(p),c),...Bo(l,u,l+d*Math.cos(m),u+f*Math.sin(m),c)):_.push({op:`lineTo`,data:[l,u]},{op:`lineTo`,data:[l+d*Math.cos(p),u+f*Math.sin(p)]})),{type:`path`,ops:_}}function Ao(e,t){let n=_o(go(ho(e))),r=[],i=[0,0],a=[0,0];for(let{key:e,data:o}of n)switch(e){case`M`:a=[o[0],o[1]],i=[o[0],o[1]];break;case`L`:r.push(...Bo(a[0],a[1],o[0],o[1],t)),a=[o[0],o[1]];break;case`C`:{let[e,n,i,s,c,l]=o;r.push(...Ko(e,n,i,s,c,l,a,t)),a=[c,l];break}case`Z`:r.push(...Bo(a[0],a[1],i[0],i[1],t)),a=[i[0],i[1]];break}return{type:`path`,ops:r}}function jo(e,t){let n=[];for(let r of e)if(r.length){let e=t.maxRandomnessOffset||0,i=r.length;if(i>2){n.push({op:`move`,data:[r[0][0]+X(e,t),r[0][1]+X(e,t)]});for(let a=1;aMath.PI*2&&(d=0,f=Math.PI*2);let p=(f-d)/o.curveStepCount,m=[];for(let e=d;e<=f;e+=p)m.push([s+l*Math.cos(e),c+u*Math.sin(e)]);return m.push([s+l*Math.cos(f),c+u*Math.sin(f)]),m.push([s,c]),Mo([m],o)}function Po(e,t){return X(e,t)}function Fo(e,t,n){return zo(e,t,n)}function Io(e,t,n,r,i){return Bo(e,t,n,r,i,!0)}function Lo(e){let t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function Ro(e){return e.randomizer||=new qa(e.seed||0),e.randomizer.next()}function zo(e,t,n,r=1){return n.roughness*r*(Ro(n)*(t-e)+e)}function X(e,t,n=1){return zo(-e,e,t,n)}function Bo(e,t,n,r,i,a=!1){let o=a?i.disableMultiStrokeFill:i.disableMultiStroke,s=Vo(e,t,n,r,i,!0,!1);if(o)return s;let c=Vo(e,t,n,r,i,!0,!0);return s.concat(c)}function Vo(e,t,n,r,i,a,o){let s=(e-n)**2+(t-r)**2,c=Math.sqrt(s),l=1;l=c<200?1:c>500?.4:-.0016668*c+1.233334;let u=i.maxRandomnessOffset||0;u*u*100>s&&(u=c/10);let d=u/2,f=.2+Ro(i)*.2,p=i.bowing*i.maxRandomnessOffset*(r-t)/200,m=i.bowing*i.maxRandomnessOffset*(e-n)/200;p=X(p,i,l),m=X(m,i,l);let h=[],g=()=>X(d,i,l),_=()=>X(u,i,l),v=i.preserveVertices;return a&&(o?h.push({op:`move`,data:[e+(v?0:g()),t+(v?0:g())]}):h.push({op:`move`,data:[e+(v?0:X(u,i,l)),t+(v?0:X(u,i,l))]})),o?h.push({op:`bcurveTo`,data:[p+e+(n-e)*f+g(),m+t+(r-t)*f+g(),p+e+2*(n-e)*f+g(),m+t+2*(r-t)*f+g(),n+(v?0:g()),r+(v?0:g())]}):h.push({op:`bcurveTo`,data:[p+e+(n-e)*f+_(),m+t+(r-t)*f+_(),p+e+2*(n-e)*f+_(),m+t+2*(r-t)*f+_(),n+(v?0:_()),r+(v?0:_())]}),h}function Ho(e,t,n){if(!e.length)return[];let r=[];r.push([e[0][0]+X(t,n),e[0][1]+X(t,n)]),r.push([e[0][0]+X(t,n),e[0][1]+X(t,n)]);for(let i=1;i3){let a=[],o=1-n.curveTightness;i.push({op:`move`,data:[e[1][0],e[1][1]]});for(let t=1;t+21&&i.push(n):i.push(n),i.push(e[t+3])}else{let r=.5,a=e[t+0],o=e[t+1],s=e[t+2],c=e[t+3],l=Qo(a,o,r),u=Qo(o,s,r),d=Qo(s,c,r),f=Qo(l,u,r),p=Qo(u,d,r),m=Qo(f,p,r);es([a,l,f,m],0,n,i),es([m,p,d,c],0,n,i)}return i}function ts(e,t){return ns(e,0,e.length,t)}function ns(e,t,n,r,i){let a=i||[],o=e[t],s=e[n-1],c=0,l=1;for(let r=t+1;rc&&(c=t,l=r)}return Math.sqrt(c)>r?(ns(e,t,l+1,r,a),ns(e,l,n,r,a)):(a.length||a.push(o),a.push(s)),a}function rs(e,t=.15,n){let r=[],i=(e.length-1)/3;for(let n=0;n0?ns(r,0,r.length,n):r}function is(e,t,n){let r=_o(go(ho(e))),i=[],a=[],o=[0,0],s=[],c=()=>{s.length>=4&&a.push(...rs(s,t)),s=[]},l=()=>{c(),a.length&&(i.push(a),a=[])};for(let{key:e,data:t}of r)switch(e){case`M`:l(),o=[t[0],t[1]],a.push(o);break;case`L`:c(),a.push([t[0],t[1]]);break;case`C`:if(!s.length){let e=a.length?a[a.length-1]:o;s.push([e[0],e[1]])}s.push([t[0],t[1]]),s.push([t[2],t[3]]),s.push([t[4],t[5]]);break;case`Z`:c(),a.push([o[0],o[1]]);break}if(l(),!n)return i;let u=[];for(let e of i){let t=ts(e,n);t.length&&u.push(t)}return u}var Z=`none`,as=class{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:`#000`,strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:`hachure`,fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Ka()}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,n){return{shape:e,sets:t||[],options:n||this.defaultOptions}}line(e,t,n,r,i){let a=this._o(i);return this._d(`line`,[Y(e,t,n,r,a)],a)}rectangle(e,t,n,r,i){let a=this._o(i),o=[],s=wo(e,t,n,r,a);if(a.fill){let i=[[e,t],[e+n,t],[e+n,t+r],[e,t+r]];a.fillStyle===`solid`?o.push(jo([i],a)):o.push(Mo([i],a))}return a.stroke!==Z&&o.push(s),this._d(`rectangle`,o,a)}ellipse(e,t,n,r,i){let a=this._o(i),o=[],s=Do(n,r,a),c=Oo(e,t,a,s);if(a.fill)if(a.fillStyle===`solid`){let n=Oo(e,t,a,s).opset;n.type=`fillPath`,o.push(n)}else o.push(Mo([c.estimatedPoints],a));return a.stroke!==Z&&o.push(c.opset),this._d(`ellipse`,o,a)}circle(e,t,n,r){let i=this.ellipse(e,t,n,n,r);return i.shape=`circle`,i}linearPath(e,t){let n=this._o(t);return this._d(`linearPath`,[So(e,!1,n)],n)}arc(e,t,n,r,i,a,o=!1,s){let c=this._o(s),l=[],u=ko(e,t,n,r,i,a,o,!0,c);if(o&&c.fill)if(c.fillStyle===`solid`){let o=Object.assign({},c);o.disableMultiStroke=!0;let s=ko(e,t,n,r,i,a,!0,!1,o);s.type=`fillPath`,l.push(s)}else l.push(No(e,t,n,r,i,a,c));return c.stroke!==Z&&l.push(u),this._d(`arc`,l,c)}curve(e,t){let n=this._o(t),r=[],i=To(e,n);if(n.fill&&n.fill!==Z)if(n.fillStyle===`solid`){let t=To(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:`fillPath`,ops:this._mergedShape(t.ops)})}else{let t=[],i=e;if(i.length){let e=typeof i[0][0]==`number`?[i]:i;for(let r of e)r.length<3?t.push(...r):r.length===3?t.push(...rs(Jo([r[0],r[0],r[1],r[2]]),10,(1+n.roughness)/2)):t.push(...rs(Jo(r),10,(1+n.roughness)/2))}t.length&&r.push(Mo([t],n))}return n.stroke!==Z&&r.push(i),this._d(`curve`,r,n)}polygon(e,t){let n=this._o(t),r=[],i=So(e,!0,n);return n.fill&&(n.fillStyle===`solid`?r.push(jo([e],n)):r.push(Mo([e],n))),n.stroke!==Z&&r.push(i),this._d(`polygon`,r,n)}path(e,t){let n=this._o(t),r=[];if(!e)return this._d(`path`,r,n);e=(e||``).replace(/\n/g,` `).replace(/(-\s)/g,`-`).replace(`/(ss)/g`,` `);let i=n.fill&&n.fill!==`transparent`&&n.fill!==Z,a=n.stroke!==Z,o=!!(n.simplification&&n.simplification<1),s=o?4-4*(n.simplification||1):(1+n.roughness)/2,c=is(e,1,s),l=Ao(e,n);if(i)if(n.fillStyle===`solid`)if(c.length===1){let t=Ao(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:`fillPath`,ops:this._mergedShape(t.ops)})}else r.push(jo(c,n));else r.push(Mo(c,n));return a&&(o?c.forEach(e=>{r.push(So(e,!1,n))}):r.push(l)),this._d(`path`,r,n)}opsToPath(e,t){let n=``;for(let r of e.ops){let e=typeof t==`number`&&t>=0?r.data.map(e=>+e.toFixed(t)):r.data;switch(r.op){case`move`:n+=`M${e[0]} ${e[1]} `;break;case`bcurveTo`:n+=`C${e[0]} ${e[1]}, ${e[2]} ${e[3]}, ${e[4]} ${e[5]} `;break;case`lineTo`:n+=`L${e[0]} ${e[1]} `;break}}return n.trim()}toPaths(e){let t=e.sets||[],n=e.options||this.defaultOptions,r=[];for(let e of t){let t=null;switch(e.type){case`path`:t={d:this.opsToPath(e),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:Z};break;case`fillPath`:t={d:this.opsToPath(e),stroke:Z,strokeWidth:0,fill:n.fill||Z};break;case`fillSketch`:t=this.fillSketch(e,n);break}t&&r.push(t)}return r}fillSketch(e,t){let n=t.fillWeight;return n<0&&(n=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||Z,strokeWidth:n,fill:Z}}_mergedShape(e){return e.filter((e,t)=>t===0?!0:e.op!==`move`)}},os=`http://www.w3.org/2000/svg`,ss=800,cs=null;function ls(){return cs||=new as().defaultOptions,cs}function us(e,t,n){return{...ls(),maxRandomnessOffset:2,roughness:e===`highlight`?3:1.5,bowing:1,stroke:`#000`,strokeWidth:1.5,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:`hachure`,fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,disableMultiStroke:e!==`double`,disableMultiStrokeFill:!1,seed:t,...n}}function ds(e){let t=e.padding;if(t||t===0){if(typeof t==`number`)return[t,t,t,t];if(Array.isArray(t)){let e=t;if(e.length)switch(e.length){case 4:return[...e];case 1:return[e[0],e[0],e[0],e[0]];case 2:return[...e,...e];case 3:return[...e,e[1]];default:return[e[0],e[1],e[2],e[3]]}}}return[5,5,5,5]}function fs(e,t,n,r,i,a){let o=[],s=n.strokeWidth||2,c=ds(n),l=n.animate===void 0?!0:!!n.animate,u=n.iterations||2,d=+!!n.rtl,f=us(`single`,a,n);switch(n.type){case`underline`:{let e=t.y+t.h+c[2];for(let n=d;ne.setAttribute(t,n);for(let r of t){let t=document.createElementNS(os,`path`);if(d(t,`d`,r),d(t,`fill`,`none`),d(t,`stroke`,n.color||`currentColor`),d(t,`stroke-width`,`${s}`),n.opacity!==void 0&&d(t,`style`,`opacity:${n.opacity}`),l){let e=t.getTotalLength();a.push(e),u+=e}e.appendChild(t),c.push(t)}if(l){let e=0;for(let t=0;tsetTimeout(t,e))}function ms(e){let t=[];for(let n of e){let e=``;for(let r of n.ops){let n=r.data;switch(r.op){case`move`:e.trim()&&t.push(e.trim()),e=`M${n[0]} ${n[1]} `;break;case`bcurveTo`:e+=`C${n[0]} ${n[1]}, ${n[2]} ${n[3]}, ${n[4]} ${n[5]} `;break;case`lineTo`:e+=`L${n[0]} ${n[1]} `;break}}e.trim()&&t.push(e.trim())}return t}function hs(){if(!window.__rno_kf_s){let e=window.__rno_kf_s=document.createElement(`style`);e.textContent=`@keyframes rough-notation-dash { to { stroke-dashoffset: 0; } }`,document.head.appendChild(e)}}var gs=Object.defineProperty,_s=(e,t,n)=>t in e?gs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Q=(e,t,n)=>(_s(e,typeof t==`symbol`?t:t+``,n),n),vs=class{constructor(e,t){Q(this,`_state`,`unattached`),Q(this,`_config`),Q(this,`_resizing`,!1),Q(this,`_ro`),Q(this,`_seed`,Ka()),Q(this,`_e`),Q(this,`_svg`),Q(this,`_lastSizes`,[]),Q(this,`_animationDelay`,0),Q(this,`_resizeListener`,()=>{this._resizing||(this._resizing=!0,setTimeout(()=>{this._resizing=!1,this._state===`showing`&&this.haveRectsChanged()&&this.show()},400))}),Q(this,`pendingRefresh`),this._e=e,this._config=JSON.parse(JSON.stringify(t)),this.attach()}getConfig(e){return this._config[e]}setConfig(e,t){this._config[e]!==t&&(this._config[e]=t,this.refresh())}get animate(){return this._config.animate}set animate(e){this._config.animate=e}get animationDuration(){return this._config.animationDuration}set animationDuration(e){this._config.animationDuration=e}get iterations(){return this._config.iterations}set iterations(e){this._config.iterations=e}get color(){return this._config.color}set color(e){this._config.color!==e&&(this._config.color=e,this.refresh())}get class(){return this._config.class}set class(e){this._config.class!==e&&(this._config.class=e,this._svg&&this._svg.setAttribute(`class`,[`rough-annotation`,this._config.class||``].filter(Boolean).join(` `)))}get strokeWidth(){return this._config.strokeWidth}set strokeWidth(e){this._config.strokeWidth!==e&&(this._config.strokeWidth=e,this.refresh())}get padding(){return this._config.padding}set padding(e){this._config.padding!==e&&(this._config.padding=e,this.refresh())}attach(){if(this._state===`unattached`&&this._e.parentElement){hs();let e=this._svg=document.createElementNS(os,`svg`);e.setAttribute(`class`,[`rough-annotation`,this._config.class||``].filter(Boolean).join(` `));let t=e.style;t.position=`absolute`,t.top=`0`,t.left=`0`,t.overflow=`visible`,t.pointerEvents=`none`,t.width=`100px`,t.height=`100px`;let n=this._config.type===`highlight`;if(this._e.insertAdjacentElement(n?`beforebegin`:`afterend`,e),this._state=`not-showing`,n){let e=window.getComputedStyle(this._e).position;(!e||e===`static`)&&(this._e.style.position=`relative`)}this.attachListeners()}}detachListeners(){window.removeEventListener(`resize`,this._resizeListener),this._ro&&this._ro.unobserve(this._e)}attachListeners(){this.detachListeners(),window.addEventListener(`resize`,this._resizeListener,{passive:!0}),!this._ro&&`ResizeObserver`in window&&(this._ro=new window.ResizeObserver(e=>{for(let t of e)t.contentRect&&this._resizeListener()})),this._ro&&this._ro.observe(this._e)}haveRectsChanged(){if(this._lastSizes.length){let e=this.rects();if(e.length===this._lastSizes.length){for(let t=0;tMath.round(e)===Math.round(t);return n(e.x,t.x)&&n(e.y,t.y)&&n(e.w,t.w)&&n(e.h,t.h)}isShowing(){return this._state!==`not-showing`}refresh(){this.isShowing()&&!this.pendingRefresh&&(this.pendingRefresh=Promise.resolve().then(()=>{this.isShowing()&&this.show(),delete this.pendingRefresh}))}async show(){switch(this._state){case`unattached`:break;case`showing`:this.hide(),this._svg&&await this.render(this._svg,!0);break;case`not-showing`:this.attach(),this._svg&&await this.render(this._svg,!1);break}}hide(){if(this._svg)for(;this._svg.lastChild;)this._svg.removeChild(this._svg.lastChild);this._state=`not-showing`}remove(){this._svg&&this._svg.parentElement&&this._svg.parentElement.removeChild(this._svg),this._svg=void 0,this._state=`unattached`,this.detachListeners()}async render(e,t){let n=this._config;t&&(n=JSON.parse(JSON.stringify(this._config)),n.animate=!1);let r=this.rects(),i=0;r.forEach(e=>i+=e.w);let a=n.animationDuration||ss,o=0,s=[];for(let t=0;tObject.assign(e,{type:`box`}),circle:e=>Object.assign(e,{type:`circle`}),underline:e=>Object.assign(e,{type:`underline`}),highlight:e=>Object.assign(e,{type:`highlight`}),"strike-through":e=>Object.assign(e,{type:`strike-through`}),"crossed-off":e=>Object.assign(e,{type:`crossed-off`}),bracket:e=>Object.assign(e,{type:`bracket`}),strike:e=>Object.assign(e,{type:`strike-through`}),cross:e=>Object.assign(e,{type:`crossed-off`}),crossed:e=>Object.assign(e,{type:`crossed-off`}),linethrough:e=>Object.assign(e,{type:`strike-through`}),"line-through":e=>Object.assign(e,{type:`strike-through`}),black:e=>$(e,`text-black`),blue:e=>$(e,`text-blue`),cyan:e=>$(e,`text-cyan`),gray:e=>$(e,`text-gray`),green:e=>$(e,`text-green`),indigo:e=>$(e,`text-indigo`),lime:e=>$(e,`text-lime`),orange:e=>$(e,`text-orange`),pink:e=>$(e,`text-pink`),purple:e=>$(e,`text-purple`),red:e=>$(e,`text-red`),teal:e=>$(e,`text-teal`),white:e=>$(e,`text-white`),yellow:e=>$(e,`text-yellow`)},xs=[[/^delay-?(\d+)?$/,(e,t,n)=>(t.delay=(e[1]?Number.parseInt(e[1]):n)||300,t)],[/^(?:op|opacity)-?(\d+)?$/,(e,t,n)=>(t.opacity=((e[1]?Number.parseInt(e[1]):n)||100)/100,t)]];function Ss(){return{install(e){e.directive(`mark`,{name:`v-mark`,mounted:(e,t)=>{let{isPrintMode:n}=sr(),r=g(()=>{let e=typeof t.value==`object`&&!Array.isArray(t.value)?{...t.value}:{at:t.value},r={at:e.at},i=Object.entries(t.modifiers).filter(([e,t])=>{if(bs[e])return r=bs[e](r,t),!1;for(let[n,i]of xs){let a=e.match(n);if(a)return r=i(a,r,t),!1}return!0});i.length&&console.warn(`[Slidev] Invalid modifiers for v-mark:`,i);let a={...r,...e};return a.type||=`underline`,n.value&&(a.animationDuration=1),a}),i=ys(e,r.value),a=La(e,t,r.value.at);if(!a){i.show();return}e.watchStopHandle=u(()=>{let e;r.value.class&&(i.class=r.value.class),r.value.color&&(i.color=r.value.color);let t=r.value.at;e=t===!0?!0:t===!1?!1:a.isActive.value,e!=null&&(e?i.show():i.hide())})},unmounted:e=>{e.watchStopHandle?.()}})}}}function Cs(){return{install(e){let t=Ce();e.directive(`motion`,{name:`v-motion`,mounted(e,n,r,i){let a=Ma(n,Ut),o=Ma(n,Wt),s=Ma(n,Yt),{currentPage:c,clicks:l,isPrintMode:u}=sr(),f=r.props={...r.props},p={...f.initial,...f.variants?.[`slidev-initial`]},m={...f.enter,...f.variants?.[`slidev-enter`]},h={...f.leave,...f.variants?.[`slidev-leave`]};delete f.initial,delete f.enter,delete f.leave;let g=`${Ji()}-`,_=[];for(let e of Object.keys(f))if(e.startsWith(`click-`)){let t=e.slice(6),n=t.includes(`-`)?t.split(`-`).map(Number):+t,r=g+t;_.push({id:r,at:n,variant:{...f[e]},info:a?.value.calculate(n)}),delete f[e]}_.sort((e,t)=>(Array.isArray(e.at)?e.at[0]:e.at)-(Array.isArray(t.at)?t.at[0]:t.at)),t.created(e,n,r,i),t.mounted(e,n,r,i);let v=e.motionInstance;v.clickIds=_.map(e=>e.id),v.set(p),v.watchStopHandle=d([o,c,l].filter(Boolean),()=>{let t=Ia.get(e)?.visibilityState.value??`shown`;if(!a?.value||![`slide`,`presenter`].includes(s?.value??``)){let e={...p,...m};for(let{variant:t}of _)Object.assign(e,t);v.set(e)}else if(u.value||o?.value===c.value)if(t===`shown`){let e={...p,...m};for(let{variant:t,info:n}of _)(!n||n.isActive.value)&&Object.assign(e,t);u.value?v.set(e):v.apply(e)}else v.apply(t===`before`?p:h);else v.apply((o?.value??-1)>c.value?p:h)},{immediate:!0})},unmounted(e){e.motionInstance.watchStopHandle()}})}}}var ws=Object.assign({}),Ts=Object.assign({}),Es=[Object.values(ws)[0],Object.values(Ts)[0]].filter(Boolean);function Ds(){let e=[];function t(e){if(!M.remote||M.remote===e.query.password)return!0;if(M.remote&&e.query.password===void 0){let e=prompt(`Enter password`);if(M.remote===e)return!0}return e.params.no?{path:`/${e.params.no}`}:{path:``}}return e.push({name:`entry`,path:`/entry`,component:()=>F(()=>import(`./slidev/entry-CBP47zd4.js`),__vite__mapDeps([31,8,1,2,3,32])),beforeEnter:t},{name:`overview`,path:`/overview`,component:()=>F(()=>import(`./slidev/overview-F_OjdvDt.js`),__vite__mapDeps([33,8,34,10,5,1,2,3,11,35,6,36,37,38,39,12,40])),beforeEnter:t},{name:`notes`,path:`/notes`,component:()=>F(()=>import(`./slidev/notes-4yw326r8.js`),__vite__mapDeps([41,10,5,1,2,3,11,6,42,36,37,38,43])),beforeEnter:t},{name:`notes-edit`,path:`/notes-edit`,component:()=>F(()=>import(`./slidev/notes-edit-ST06bLI7.js`),__vite__mapDeps([44,10,5,1,2,3,11,38,43])),beforeEnter:t},{name:`presenter`,path:`/presenter/:no`,component:()=>F(()=>import(`./slidev/presenter-LR8VZmeq.js`),__vite__mapDeps([45,8,34,10,5,1,2,3,11,35,46,6,38,47,42,36,37,48,49,39,50])),beforeEnter:t},{path:`/presenter`,redirect:{path:`/presenter/1`}}),e.push({name:`play`,path:`/:no`,component:()=>F(()=>import(`./slidev/play-B_5Fyyu6.js`),__vite__mapDeps([51,34,8,10,5,1,2,3,11,35,46,6,38,47,43,12,52]))},{path:``,redirect:{path:`/1`}},{path:`/:pathMatch(.*)*`,name:`NotFound`,component:()=>F(()=>import(`./slidev/404-DzUxMK27.js`),__vite__mapDeps([53,8,1,2,3,11,54]))}),Es.reduce((e,t)=>t(e),e)}async function Os(e){function t(){document.documentElement.style.setProperty(`--vh`,`${window.innerHeight*.01}px`)}t(),window.addEventListener(`resize`,t);let n=me({history:Oe(`/`),routes:Ds()});e.use(n),e.use(Ea()),e.use(Fa()),e.use(Ss()),e.use(Ga()),e.use(Cs()),e.use(ee,{container:`#twoslash-container`});let r={app:e,router:n};for(let e of ka)await e(r)}async function ks(){let e=T(va);await Os(e),e.mount(`#app`)}ks();export{Dn as $,Vn as A,yn as B,Qn as C,In as D,Yn as E,Kn as F,Pn as G,bn as H,Gn as I,zn as J,er as K,Cn as L,Nn as M,kn as N,xn as O,On as P,Fn as Q,Tn as R,Rn as S,An as T,Ln as U,vn as V,_n as W,Jn as X,Xn as Y,qn as Z,fr as _,Aa as a,an as at,jn as b,aa as c,Xt as ct,q as d,Gt as dt,fn as et,Xi as f,Kt as ft,dr as g,ut as gt,ur as h,F as ht,ja as i,$t as it,Mn as j,Zn as k,sa as l,Yt as lt,Yi as m,I as mt,Ba as n,dn as nt,ga as o,Ut as ot,Ji as p,Zt as pt,$n as q,za as r,un as rt,ca as s,Wt as st,Ha as t,pn as tt,ra as u,Jt as ut,sr as v,Sn as w,En as x,Wn as y,Bn as z}; \ No newline at end of file diff --git a/docs/dist/assets/index-CyXYSPNL.css b/docs/dist/assets/index-CyXYSPNL.css deleted file mode 100644 index 4a86b8da..00000000 --- a/docs/dist/assets/index-CyXYSPNL.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:before,:after{--un-content:""}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*,:before,:after,::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 #0000;--un-ring-shadow:0 0 #0000;--un-shadow-inset: ;--un-shadow:0 0 #0000;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:#93c5fd80;--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.prose{color:var(--un-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--un-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--un-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--un-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--un-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-kbd);box-shadow:0 0 0 1px rgb(var(--un-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--un-prose-kbd-shadows) / 10%);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-pre-code);background-color:var(--un-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--un-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--un-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--un-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where():not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where():not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose{--un-prose-body:#374151;--un-prose-invert-body:#d1d5db;--un-prose-headings:#111827;--un-prose-invert-headings:white;--un-prose-lead:#4b5563;--un-prose-invert-lead:#9ca3af;--un-prose-links:#111827;--un-prose-invert-links:white;--un-prose-bold:#111827;--un-prose-invert-bold:white;--un-prose-counters:#6b7280;--un-prose-invert-counters:#9ca3af;--un-prose-bullets:#d1d5db;--un-prose-invert-bullets:#4b5563;--un-prose-hr:#e5e7eb;--un-prose-invert-hr:#374151;--un-prose-quotes:#111827;--un-prose-invert-quotes:#f3f4f6;--un-prose-quote-borders:#e5e7eb;--un-prose-invert-quote-borders:#374151;--un-prose-captions:#6b7280;--un-prose-invert-captions:#9ca3af;--un-prose-kbd:#111827;--un-prose-invert-kbd:white;--un-prose-kbd-shadows:#111827;--un-prose-invert-kbd-shadows:white;--un-prose-code:#111827;--un-prose-invert-code:white;--un-prose-pre-code:#e5e7eb;--un-prose-invert-pre-code:#d1d5db;--un-prose-pre-bg:#1f2937;--un-prose-invert-pre-bg:#00000080;--un-prose-th-borders:#d1d5db;--un-prose-invert-th-borders:#4b5563;--un-prose-td-borders:#e5e7eb;--un-prose-invert-td-borders:#374151}.dark .dark\:prose-invert{--un-prose-body:var(--un-prose-invert-body);--un-prose-headings:var(--un-prose-invert-headings);--un-prose-lead:var(--un-prose-invert-lead);--un-prose-links:var(--un-prose-invert-links);--un-prose-bold:var(--un-prose-invert-bold);--un-prose-counters:var(--un-prose-invert-counters);--un-prose-bullets:var(--un-prose-invert-bullets);--un-prose-hr:var(--un-prose-invert-hr);--un-prose-quotes:var(--un-prose-invert-quotes);--un-prose-quote-borders:var(--un-prose-invert-quote-borders);--un-prose-captions:var(--un-prose-invert-captions);--un-prose-kbd:var(--un-prose-invert-kbd);--un-prose-kbd-shadows:var(--un-prose-invert-kbd-shadows);--un-prose-code:var(--un-prose-invert-code);--un-prose-pre-code:var(--un-prose-invert-pre-code);--un-prose-pre-bg:var(--un-prose-invert-pre-bg);--un-prose-th-borders:var(--un-prose-invert-th-borders);--un-prose-td-borders:var(--un-prose-invert-td-borders)}.container{width:100%}.abs-br{position:absolute;bottom:0;right:0}.z-context-menu{z-index:60}.z-label{z-index:40}.z-menu{z-index:20}.z-modal{z-index:70}.z-nav{z-index:50}.slidev-glass-effect{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity)) ;--un-shadow:var(--un-shadow-inset) 0 20px 25px -5px var(--un-shadow-color,#0000001a),var(--un-shadow-inset) 0 8px 10px -6px var(--un-shadow-color,#0000001a);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);--un-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);border-width:1px;border-color:#9ca3af33;--un-bg-opacity:.75!important}.border-main,.dark [border~=dark\:main],.dark [dark\:border~=main],[border-main=""],[border~=main]{border-color:#9ca3af33}.border-primary,.hover\:border-primary:hover{border-color:var(--slidev-theme-primary)}.bg-active{background-color:#9ca3af1a}.bg-main{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity)) }.dark .bg-main,.dark .slidev-glass-effect{--un-bg-opacity:1;background-color:rgb(18 18 18/var(--un-bg-opacity)) }.bg-primary,[bg-primary=""]{background-color:var(--slidev-theme-primary) }.hover\:bg-active:hover,[hover\:bg-active=""]:hover{background-color:#9ca3af1a}.dark .text-main{--un-text-opacity:1;color:rgb(221 221 221/var(--un-text-opacity)) }.text-main{--un-text-opacity:1;color:rgb(24 24 24/var(--un-text-opacity)) }.text-primary,[text-primary=""]{color:var(--slidev-theme-primary) }@media (width>=640px){.container{max-width:640px}}@media (width>=768px){.container{max-width:768px}}@media (width>=1024px){.container{max-width:1024px}}@media (width>=1280px){.container{max-width:1280px}}@media (width>=1536px){.container{max-width:1536px}}:root{--color-note:#0969da;--color-tip:#1a7f37;--color-warning:#9a6700;--color-severe:#bc4c00;--color-caution:#d1242f;--color-important:#8250df}@media (prefers-color-scheme:dark){:root{--color-note:#2f81f7;--color-tip:#3fb950;--color-warning:#d29922;--color-severe:#db6d28;--color-caution:#f85149;--color-important:#a371f7}}.markdown-alert{color:inherit;border-left:.25em solid #888;margin-bottom:16px;padding:.5rem 1rem}.markdown-alert>:first-child{margin-top:0}.markdown-alert>:last-child{margin-bottom:0}.markdown-alert .markdown-alert-title{align-items:center;font-weight:500;line-height:1;display:flex}.markdown-alert .markdown-alert-title .octicon{vertical-align:text-bottom;fill:currentColor;margin-right:.5rem;display:inline-block;overflow:visible!important}.markdown-alert.markdown-alert-note{border-left-color:var(--color-note)}.markdown-alert.markdown-alert-note .markdown-alert-title{color:var(--color-note)}.markdown-alert.markdown-alert-important{border-left-color:var(--color-important)}.markdown-alert.markdown-alert-important .markdown-alert-title{color:var(--color-important)}.markdown-alert.markdown-alert-warning{border-left-color:var(--color-warning)}.markdown-alert.markdown-alert-warning .markdown-alert-title{color:var(--color-warning)}.markdown-alert.markdown-alert-tip{border-left-color:var(--color-tip)}.markdown-alert.markdown-alert-tip .markdown-alert-title{color:var(--color-tip)}.markdown-alert.markdown-alert-caution{border-left-color:var(--color-caution)}.markdown-alert.markdown-alert-caution .markdown-alert-title{color:var(--color-caution)}:root{--slidev-code-background:#f5f5f5;--slidev-code-foreground:#1b1b1b;--slidev-code-font-family:"Fira Code",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--slidev-code-padding:8px;--slidev-code-font-size:12px;--slidev-code-line-height:18px;--slidev-code-radius:4px;--slidev-code-margin:4px 0;--slidev-theme-primary:#3ab9d5;--slidev-transition-duration:.5s;--slidev-slide-container-background:black;--slidev-controls-foreground:white;--slidev-code-tab-divider:#e5e5e5;--slidev-code-tab-text-color:#67676c;--slidev-code-tab-font-size:12px;--slidev-code-tab-active-text-color:#3c3c43}html.dark{--slidev-code-background:#1b1b1b;--slidev-code-foreground:#eee;--slidev-code-tab-divider:#222;--slidev-code-tab-text-color:#98989f;--slidev-code-tab-active-text-color:#dfdfd6}html,body,#app,#page-root{width:100%;height:100vh;height:calc(var(--vh,1vh) * 100);-webkit-print-color-adjust:exact;print-color-adjust:exact;--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity)) ;margin:0;padding:0;font-family:Avenir Next,Nunito Sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;overflow:hidden}.dark html,.dark body,.dark #app,.dark #page-root{--un-bg-opacity:1;background-color:rgb(18 18 18/var(--un-bg-opacity)) }html{background:0 0}.slidev-icon-btn{aspect-ratio:1;-webkit-user-select:none;user-select:none;cursor:pointer;vertical-align:middle;opacity:.75;border-radius:.25rem;outline:none;justify-content:center;align-items:center;padding:.25rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:inline-flex;position:relative}@media (width>=768px){.slidev-icon-btn{padding:.5rem}}.slidev-icon-btn:hover{--un-bg-opacity:.1;background-color:rgb(156 163 175/var(--un-bg-opacity)) ;opacity:1}.slidev-icon-btn:focus-visible{opacity:1;--un-outline-color-opacity:1;outline-width:2px;outline-color:rgb(0 0 0/var(--un-outline-color-opacity)) ;outline-offset:2px;outline-style:solid}.dark .slidev-icon-btn:focus-visible{--un-outline-color-opacity:1;outline-color:rgb(255 255 255/var(--un-outline-color-opacity)) }.slidev-icon-btn.shallow{opacity:.3}.slidev-icon-btn.active{opacity:1}.slidev-icon-btn.disabled{opacity:.25;pointer-events:none}.slidev-layout a.slidev-icon-btn{border-style:none}.slidev-layout a.slidev-icon-btn:hover{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity)) ;border-style:none}.slidev-icon{vertical-align:sub;line-height:1em;display:inline-block}.slidev-page{width:100%;position:relative;top:0;left:0;right:0}.slidev-note-with-clicks .slidev-note-fade{color:#888c}.dark .slidev-note-with-clicks .slidev-note-fade{color:#a1a1a1cc}.slidev-note-click-mark{-webkit-user-select:none;user-select:none;--un-text-opacity:1;color:rgb(167 139 250/var(--un-text-opacity)) ;background-color:#a78bfa1a;border-width:1px;border-color:#0000;border-radius:.25rem;align-items:center;padding-left:.25rem;padding-right:.25rem;font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.7em;display:inline-flex}.slidev-note-click-mark.slidev-note-click-mark-active{--un-border-opacity:1;border-width:1px;border-color:rgb(167 139 250/var(--un-border-opacity))}.slidev-note-click-mark.slidev-note-click-mark-past{filter:saturate(0);opacity:.5}.slidev-note-click-mark.slidev-note-click-mark-future{opacity:.5}.slidev-note-click-mark:before{content:"";--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M23 28a1 1 0 0 1-.71-.29l-6.13-6.14l-3.33 5a1 1 0 0 1-1 .44a1 1 0 0 1-.81-.7l-6-20A1 1 0 0 1 6.29 5l20 6a1 1 0 0 1 .7.81a1 1 0 0 1-.44 1l-5 3.33l6.14 6.13a1 1 0 0 1 0 1.42l-4 4A1 1 0 0 1 23 28m0-2.41L25.59 23l-7.16-7.15l5.25-3.5L7.49 7.49l4.86 16.19l3.5-5.25Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;opacity:.8;background-color:currentColor;width:1.2em;height:1.2em;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%}.slidev-note-click-mark:after{content:attr(data-clicks);display:inline-block;transform:translateY(.1em)}.slidev-form-button{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity)) ;--un-border-opacity:1;border-bottom-width:2px;border-color:rgb(55 65 81/var(--un-border-opacity));--un-bg-opacity:1;background-color:rgb(107 114 128/var(--un-bg-opacity)) ;border-radius:.25rem;padding:.25rem 1rem}.slidev-form-button:hover{--un-border-opacity:1;border-color:rgb(75 85 99/var(--un-border-opacity));--un-bg-opacity:1;background-color:rgb(156 163 175/var(--un-bg-opacity)) }.slidev-form-button.primary{--un-border-opacity:1;border-color:rgb(17 94 89/var(--un-border-opacity));--un-bg-opacity:1;background-color:rgb(13 148 136/var(--un-bg-opacity)) }.slidev-form-button.primary:hover{--un-border-opacity:1;border-color:rgb(15 118 110/var(--un-border-opacity));--un-bg-opacity:1;background-color:rgb(20 184 166/var(--un-bg-opacity)) }.rough-annotation{transform:scale(calc(1 / var(--slidev-slide-scale)))}#twoslash-container{position:fixed}#twoslash-container .v-popper__wrapper:not(.no-slide-scale>*){zoom:var(--slidev-slide-scale)}#twoslash-container .v-popper__popper:not(.no-slide-scale>*){translate:calc(10px * (1 - var(--slidev-slide-scale))) 0;width:max-content}.slidev-note ul{margin:0}html.dark:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}html.dark .shiki{color:var(--shiki-dark,inherit);--twoslash-popup-bg:var(--shiki-dark-bg,inherit)}html.dark .shiki span{color:var(--shiki-dark)}html:not(.dark) .shiki{color:var(--shiki-light,inherit);--twoslash-popup-bg:var(--shiki-light-bg,inherit)}html:not(.dark) .shiki span{color:var(--shiki-light)}.twoslash-meta-line.twoslash-popover-line{margin-top:-10px}.slidev-code-wrapper{scroll-padding:var(--slidev-code-padding);margin:var(--slidev-code-margin)!important}.slidev-code-wrapper:-webkit-scrollbar{width:0}.slidev-code{background:var(--slidev-code-background);overflow:auto;font-family:var(--slidev-code-font-family)!important;padding:var(--slidev-code-padding)!important;font-size:var(--slidev-code-font-size)!important;line-height:var(--slidev-code-line-height)!important;border-radius:var(--slidev-code-radius)!important}.slidev-code-block-title,.slidev-code-group-tabs{background:var(--slidev-code-background);color:var(--slidev-code-tab-text-color);padding-left:var(--slidev-code-padding);padding-right:var(--slidev-code-padding);font-size:var(--slidev-code-tab-font-size);border-radius:var(--slidev-code-radius) var(--slidev-code-radius) 0 0;box-shadow:inset 0 -1px var(--slidev-code-tab-divider);align-items:center;gap:8px;display:flex}.slidev-code-block-title{padding:var(--slidev-code-padding)}.slidev-code-tab{font-size:var(--slidev-code-tab-font-size);white-space:nowrap;cursor:pointer;padding:var(--slidev-code-padding);color:var(--slidev-code-tab-text-color);border-bottom:2px solid #0000;align-items:center;gap:8px;transition:color .25s;display:flex;position:relative}.slidev-code-tab:hover{color:var(--slidev-code-tab-active-text-color)!important}.slidev-code-group-blocks .slidev-code-wrapper{margin:0!important}.slidev-code-group-blocks .slidev-code{border-radius:0 0 var(--slidev-code-radius) var(--slidev-code-radius)!important}.slidev-code-group-blocks .slidev-code-wrapper.active{display:block}.slidev-code-group-blocks .slidev-code-wrapper{display:none}.slidev-code-block-title+.slidev-code,.slidev-code-group-tabs+.slidev-code{border-top-left-radius:0!important;border-top-right-radius:0!important}.slidev-code .slidev-code-dishonored{opacity:.3;pointer-events:none}.slidev-code-line-numbers .slidev-code code{counter-reset:step;counter-increment:step calc(var(--start,1) - 1)}.slidev-code-line-numbers .slidev-code code .line:before{content:counter(step);counter-increment:step;text-align:right;--un-text-opacity:1;width:1rem;color:rgb(156 163 175/var(--un-text-opacity)) ;margin-right:1.5rem;display:inline-block}.dark .slidev-code-line-numbers .slidev-code code .line:before{--un-text-opacity:1;color:rgb(75 85 99/var(--un-text-opacity)) }.slidev-note :not(pre)>code,.slidev-layout :not(pre)>code{background:var(--slidev-code-background);border-radius:var(--slidev-code-radius);padding:.125rem .375rem;font-size:.9em;font-weight:300}.slidev-note :not(pre)>code:after,.slidev-note :not(pre)>code:before{content:""}.slidev-layout :not(pre)>code:before{margin-right:-.08em}.katex,.katex :after,.katex :before{border-color:currentColor}.slidev-katex-wrapper .mord.dishonored{opacity:.3}.slide-left-enter-active,.slide-left-leave-active,.slide-right-enter-active,.slide-right-leave-active,.slide-up-enter-active,.slide-up-leave-active,.slide-down-enter-active,.slide-down-leave-active{transition:all var(--slidev-transition-duration) ease}.slide-left-enter-from,.slide-right-leave-to{translate:100%}.slide-left-leave-to,.slide-right-enter-from{translate:-100%}.slide-up-enter-from,.slide-down-leave-to{translate:0 100%}.slide-up-leave-to,.slide-down-enter-from{translate:0 -100%}.fade-enter-active,.fade-leave-active{transition:opacity var(--slidev-transition-duration) ease}.fade-enter-from,.fade-leave-to{opacity:0}.fade-out-leave-active{transition:opacity calc(var(--slidev-transition-duration) * .6) ease-out}.fade-out-enter-active{transition:opacity calc(var(--slidev-transition-duration) * .8) ease-in;transition-delay:calc(var(--slidev-transition-duration) * .6)}.fade-out-enter-from,.fade-out-leave-to{opacity:0}:root{--twoslash-popup-bg:var(--slidev-code-background);--twoslash-popup-color:var(--slidev-code-foreground);--twoslash-docs-color:inherit;--twoslash-docs-font:inherit;--twoslash-code-font:"Fira Code",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--twoslash-underline-color:#8888;--twoslash-border-color:#8888;--twoslash-cursor-color:var(--slidev-theme-primary);--twoslash-matched-color:var(--slidev-theme-primary)}.twoslash-popup-container{font-size:13px}.twoslash-popup-container .twoslash-popup-code{font-size:.85em}.twoslash-floating .twoslash-popup-docs-tags .twoslash-popup-docs-tag-name{color:inherit;opacity:.5}.slidev-vclick-target{transition:all .1s}.slidev-vclick-target.slidev-vclick-anim-none{transition:none}.slidev-vclick-target.slidev-vclick-anim-fade-in{transition:all .3s}.slidev-vclick-hidden{opacity:0!important;pointer-events:none!important;-webkit-user-select:none!important;user-select:none!important}.slidev-vclick-hidden.slidev-vclick-anim-fade{opacity:.5!important}.slidev-vclick-hidden.slidev-vclick-anim-fade-in{opacity:0!important}.slidev-vclick-hidden.slidev-vclick-anim-up{translate:0 20px}.slidev-vclick-hidden.slidev-vclick-anim-down{translate:0 -20px}.slidev-vclick-hidden.slidev-vclick-anim-left{translate:20px}.slidev-vclick-hidden.slidev-vclick-anim-right{translate:-20px}.slidev-vclick-hidden.slidev-vclick-anim-scale{scale:.9}.slidev-vclick-display-none{display:none!important}.slidev-vclick-fade{opacity:.5}.slidev-layout{height:100%;padding:2.5rem 3.5rem;font-size:1.1rem}.slidev-layout pre,.slidev-layout code{-webkit-user-select:text;user-select:text}.slidev-layout code{font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.slidev-layout h1{margin-bottom:1rem;font-size:2.25rem;line-height:2.5rem}.slidev-layout h6{letter-spacing:.1em;text-transform:uppercase;padding-top:.25rem;font-size:.875rem;font-weight:500;line-height:1.25rem}:where(.slidev-layout) h6{opacity:.4}.slidev-layout p{margin-top:1rem;margin-bottom:1rem;line-height:1.5rem}.slidev-layout ul{list-style:square}.slidev-layout ol{list-style:decimal}.slidev-layout li{line-height:1.8em}.slidev-layout blockquote{background:var(--slidev-code-background);color:var(--slidev-code-foreground);border-left-width:1px;border-color:var(--slidev-theme-primary);border-radius:.25rem;padding:.25rem .5rem;font-size:.875rem;line-height:1.25rem}.slidev-layout blockquote>*{margin-top:0;margin-bottom:0}.slidev-layout table{width:100%}.slidev-layout tr{border-color:#9ca3af33;border-bottom-width:1px}.slidev-layout th{text-align:left;font-weight:400}.slidev-layout a{border-style:dashed;border-color:currentColor;border-bottom-width:1px}.slidev-layout a:hover{color:var(--slidev-theme-primary) ;border-style:solid}.slidev-layout td,.slidev-layout th{padding:.75rem .5rem}.slidev-layout b,.slidev-layout strong{font-weight:600}.slidev-layout kbd{--un-bg-opacity:.05;background-color:rgb(156 163 175/var(--un-bg-opacity)) ;border-width:1px 1px 2px;border-color:#9ca3af33;border-radius:.25rem;padding:.125rem .25rem;font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.75rem;line-height:1rem}.slidev-layout h1,[dir=ltr] h1,.slidev-layout [dir=ltr] h1,.slidev-layout h6,[dir=ltr] h6,.slidev-layout [dir=ltr] h6{margin-left:-.05em;margin-right:0}.slidev-layout li,[dir=ltr] li,.slidev-layout [dir=ltr] li{margin-left:1.1em;margin-right:0;padding-left:.2em;padding-right:0}[dir=rtl] h1,.slidev-layout [dir=rtl] h1,[dir=rtl] h6,.slidev-layout [dir=rtl] h6{margin-left:0;margin-right:-.05em}[dir=rtl] li,.slidev-layout [dir=rtl] li{margin-left:0;margin-right:1.1em;padding-left:0;padding-right:.2em}.slidev-layout h1+p{opacity:.5;margin-top:-.5rem;margin-bottom:1rem}.slidev-layout p+h2,.slidev-layout ul+h2,.slidev-layout table+h2{margin-top:2.5rem}.slidev-layout h1{margin-bottom:1rem;margin-left:-.05em;font-size:2.25rem;line-height:2.5rem}.slidev-layout h2{font-size:1.875rem;line-height:2.25rem}.slidev-layout h3{font-size:1.5rem;line-height:2rem}.slidev-layout h4{font-size:1.25rem;line-height:1.75rem}.slidev-layout h5{font-size:1rem;line-height:1.5rem}.slidev-layout h6{letter-spacing:.1em;text-transform:uppercase;margin-left:-.05em;padding-top:.25rem;font-size:.875rem;font-weight:500;line-height:1.25rem}.slidev-layout h6:not(.opacity-100){opacity:.4}.slidev-layout.cover,.slidev-layout.intro{height:100%;display:grid}.slidev-layout.cover h1,.slidev-layout.intro h1{font-size:3.75rem;line-height:5rem}.slidev-layout.fact{text-align:center;height:100%;display:grid}.slidev-layout.fact h1{font-size:6rem;font-weight:700;line-height:1}.slidev-layout.fact h1+p{font-size:1.5rem;font-weight:700;line-height:2rem}.slidev-layout.statement{text-align:center;height:100%;display:grid}.slidev-layout.statement h1{font-size:3.75rem;font-weight:700;line-height:1}.slidev-layout.quote{height:100%;display:grid}.slidev-layout.quote h1+p{margin-top:.5rem}.slidev-layout.section h1{font-size:3.75rem;font-weight:500;line-height:5rem}:root{--prism-scheme:light;--prism-foreground:#6e6e6e;--prism-background:#f4f4f4;--prism-comment:#a8a8a8;--prism-string:#555;--prism-literal:#333;--prism-keyword:#000;--prism-function:#4f4f4f;--prism-deleted:#333;--prism-class:#333;--prism-builtin:#757575;--prism-property:#333;--prism-namespace:#4f4f4f;--prism-punctuation:#ababab;--prism-decorator:var(--prism-class);--prism-operator:var(--prism-punctuation);--prism-number:var(--prism-literal);--prism-boolean:var(--prism-literal);--prism-variable:var(--prism-literal);--prism-constant:var(--prism-literal);--prism-symbol:var(--prism-literal);--prism-interpolation:var(--prism-literal);--prism-selector:var(--prism-keyword);--prism-keyword-control:var(--prism-keyword);--prism-regex:var(--prism-string);--prism-json-property:var(--prism-property);--prism-inline-background:var(--prism-background);--prism-comment-style:italic;--prism-url-decoration:underline;--prism-line-number:#a5a5a5;--prism-line-number-gutter:#333;--prism-line-highlight-background:#eee;--prism-selection-background:#ddd;--prism-marker-color:var(--prism-foreground);--prism-marker-opacity:.4;--prism-marker-font-size:.8em;--prism-font-size:1em;--prism-line-height:1.5em;--prism-font-family:monospace;--prism-inline-font-size:var(--prism-font-size);--prism-block-font-size:var(--prism-font-size);--prism-tab-size:2;--prism-block-padding-x:1em;--prism-block-padding-y:1em;--prism-block-margin-x:0;--prism-block-margin-y:.5em;--prism-block-radius:.3em;--prism-inline-padding-x:.3em;--prism-inline-padding-y:.1em;--prism-inline-radius:.3em}div[class*=language-],pre[class*=language-],code[class*=language-]{font-size:var(--prism-font-size);font-family:var(--prism-font-family);text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:var(--prism-line-height);-moz-tab-size:var(--prism-tab-size);-o-tab-size:var(--prism-tab-size);tab-size:var(--prism-tab-size);-webkit-hyphens:none;hyphens:none;direction:ltr;color:var(--prism-foreground)!important}div[class*=language-],pre[class*=language-]{font-size:var(--prism-block-font-size);padding:var(--prism-block-padding-y) var(--prism-block-padding-x);margin:var(--prism-block-margin-y) var(--prism-block-margin-x);border-radius:var(--prism-block-radius);background:var(--prism-background);overflow:auto}:not(pre)>code[class*=language-]{font-size:var(--prism-inline-font-size);padding:var(--prism-inline-padding-y) var(--prism-inline-padding-x);border-radius:var(--prism-inline-radius);background:var(--prism-inline-background)}pre[class*=language-]::-moz-selection{background:var(--prism-selection-background)}pre[class*=language-] ::-moz-selection{background:var(--prism-selection-background)}code[class*=language-]::-moz-selection{background:var(--prism-selection-background)}code[class*=language-] ::-moz-selection{background:var(--prism-selection-background)}pre[class*=language-]::selection{background:var(--prism-selection-background)}pre[class*=language-] ::selection{background:var(--prism-selection-background)}code[class*=language-]::selection{background:var(--prism-selection-background)}code[class*=language-] ::selection{background:var(--prism-selection-background)}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:var(--prism-comment);font-style:var(--prism-comment-style)}.token.namespace{color:var(--prism-namespace)}.token.interpolation{color:var(--prism-interpolation)}.token.string{color:var(--prism-string)}.token.punctuation{color:var(--prism-punctuation)}.token.operator{color:var(--prism-operator)}.token.keyword.module,.token.keyword.control-flow{color:var(--prism-keyword-control)}.token.url,.token.symbol,.token.inserted{color:var(--prism-symbol)}.token.constant{color:var(--prism-constant)}.token.string.url{-webkit-text-decoration:var(--prism-url-decoration);text-decoration:var(--prism-url-decoration)}.token.boolean,.language-json .token.boolean{color:var(--prism-boolean)}.token.number,.language-json .token.number{color:var(--prism-number)}.token.variable{color:var(--prism-variable)}.token.keyword{color:var(--prism-keyword)}.token.atrule,.token.attr-value,.token.selector{color:var(--prism-selector)}.token.function{color:var(--prism-function)}.token.deleted{color:var(--prism-deleted)}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.class-name{color:var(--prism-class)}.token.tag,.token.builtin{color:var(--prism-builtin)}.token.attr-name,.token.property,.token.entity{color:var(--prism-property)}.language-json .token.property{color:var(--prism-json-property)}.token.regex{color:var(--prism-regex)}.token.decorator,.token.annotation{color:var(--prism-decorator)}.line-numbers .line-numbers-rows{border-right-color:var(--prism-line-number)}.line-numbers-rows>span:before{color:var(--prism-line-number-gutter)}.line-highlight{background:var(--prism-line-highlight-background)}.cm-s-vars.CodeMirror{background-color:var(--cm-background);color:var(--cm-foreground)}.cm-s-vars .CodeMirror-gutters{background:var(--cm-line-number-gutter);color:var(--cm-line-number);border:none}.cm-s-vars .CodeMirror-guttermarker,.cm-s-vars .CodeMirror-guttermarker-subtle,.cm-s-vars .CodeMirror-linenumber{color:var(--cm-line-number)}.cm-s-vars div.CodeMirror-selected,.cm-s-vars.CodeMirror-focused div.CodeMirror-selected{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-line::selection{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-line>span::selection{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-line>span>span::selection{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-line::-moz-selection{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-line>span::-moz-selection{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-line>span>span::-moz-selection{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-activeline-background{background:var(--cm-line-highlight-background)}.cm-s-vars .cm-keyword{color:var(--cm-keyword)}.cm-s-vars .cm-variable,.cm-s-vars .cm-variable-2,.cm-s-vars .cm-variable-3,.cm-s-vars .cm-type{color:var(--cm-variable)}.cm-s-vars .cm-builtin{color:var(--cm-builtin)}.cm-s-vars .cm-atom{color:var(--cm-literal)}.cm-s-vars .cm-number{color:var(--cm-number)}.cm-s-vars .cm-def{color:var(--cm-decorator)}.cm-s-vars .cm-string,.cm-s-vars .cm-string-2{color:var(--cm-string)}.cm-s-vars .cm-comment{color:var(--cm-comment)}.cm-s-vars .cm-tag{color:var(--cm-builtin)}.cm-s-vars .cm-meta{color:var(--cm-namespace)}.cm-s-vars .cm-attribute,.cm-s-vars .cm-property{color:var(--cm-property)}.cm-s-vars .cm-qualifier{color:var(--cm-keyword)}.cm-s-vars .cm-error{color:var(--prism-deleted)}.cm-s-vars .cm-operator,.cm-s-vars .cm-bracket{color:var(--cm-punctuation)}.cm-s-vars .CodeMirror-matchingbracket{text-decoration:underline}.cm-s-vars .CodeMirror-cursor{border-left:1px solid}:root{--cm-scheme:var(--prism-scheme);--cm-foreground:var(--prism-foreground);--cm-background:var(--prism-background);--cm-comment:var(--prism-comment);--cm-string:var(--prism-string);--cm-literal:var(--prism-literal);--cm-keyword:var(--prism-keyword);--cm-function:var(--prism-function);--cm-deleted:var(--prism-deleted);--cm-class:var(--prism-class);--cm-builtin:var(--prism-builtin);--cm-property:var(--prism-property);--cm-namespace:var(--prism-namespace);--cm-punctuation:var(--prism-punctuation);--cm-decorator:var(--prism-decorator);--cm-operator:var(--prism-operator);--cm-number:var(--prism-number);--cm-boolean:var(--prism-boolean);--cm-variable:var(--prism-variable);--cm-constant:var(--prism-constant);--cm-symbol:var(--prism-symbol);--cm-interpolation:var(--prism-interpolation);--cm-selector:var(--prism-selector);--cm-keyword-control:var(--prism-keyword-control);--cm-regex:var(--prism-regex);--cm-json-property:var(--prism-json-property);--cm-inline-background:var(--prism-inline-background);--cm-comment-style:var(--prism-comment-style);--cm-url-decoration:var(--prism-url-decoration);--cm-line-number:var(--prism-line-number);--cm-line-number-gutter:var(--prism-line-number-gutter);--cm-line-highlight-background:var(--prism-line-highlight-background);--cm-selection-background:var(--prism-selection-background);--cm-marker-color:var(--prism-marker-color);--cm-marker-opacity:var(--prism-marker-opacity);--cm-marker-font-size:var(--prism-marker-font-size);--cm-font-size:var(--prism-font-size);--cm-line-height:var(--prism-line-height);--cm-font-family:var(--prism-font-family);--cm-inline-font-size:var(--prism-inline-font-size);--cm-block-font-size:var(--prism-block-font-size);--cm-tab-size:var(--prism-tab-size);--cm-block-padding-x:var(--prism-block-padding-x);--cm-block-padding-y:var(--prism-block-padding-y);--cm-block-margin-x:var(--prism-block-margin-x);--cm-block-margin-y:var(--prism-block-margin-y);--cm-block-radius:var(--prism-block-radius);--cm-inline-padding-x:var(--prism-inline-padding-x);--cm-inline-padding-y:var(--prism-inline-padding-y);--cm-inline-radius:var(--prism-inline-radius);--prism-font-family:var(--slidev-code-font-family);--prism-background:var(--slidev-code-background)}html:not(.dark){--prism-foreground:#393a34;--prism-comment:#a0ada0;--prism-string:#b56959;--prism-literal:#2f8a89;--prism-number:#296aa3;--prism-keyword:#1c6b48;--prism-function:#6c7834;--prism-boolean:#1c6b48;--prism-constant:#a65e2b;--prism-deleted:#a14f55;--prism-class:#2993a3;--prism-builtin:#ab5959;--prism-property:#b58451;--prism-namespace:#b05a78;--prism-punctuation:#8e8f8b;--prism-decorator:#bd8f8f;--prism-regex:#ab5e3f;--prism-json-property:#698c96}html.dark{--prism-foreground:#d4cfbf;--prism-comment:#758575;--prism-string:#d48372;--prism-literal:#429988;--prism-keyword:#4d9375;--prism-boolean:#1c6b48;--prism-number:#6394bf;--prism-variable:#c2b36e;--prism-function:#a1b567;--prism-deleted:#a14f55;--prism-class:#54b1bf;--prism-builtin:#e0a569;--prism-property:#dd8e6e;--prism-namespace:#db889a;--prism-punctuation:#858585;--prism-decorator:#bd8f8f;--prism-regex:#ab5e3f;--prism-json-property:#6b8b9e;--prism-line-number:#888;--prism-line-number-gutter:#eee;--prism-line-highlight-background:#444;--prism-selection-background:#444}.i-carbon-camera{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M29 26H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h6.46l1.71-2.55A1 1 0 0 1 12 4h8a1 1 0 0 1 .83.45L22.54 7H29a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1M4 24h24V9h-6a1 1 0 0 1-.83-.45L19.46 6h-6.92l-1.71 2.55A1 1 0 0 1 10 9H4Z'/%3E%3Cpath fill='currentColor' d='M16 22a6 6 0 1 1 6-6a6 6 0 0 1-6 6m0-10a4 4 0 1 0 4 4a4 4 0 0 0-4-4'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon-magic-wand{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M29.414 24L12 6.586a2.05 2.05 0 0 0-2.828 0L6.586 9.172a2 2 0 0 0 0 2.828l17.413 17.414a2 2 0 0 0 2.828 0l2.587-2.586a2 2 0 0 0 0-2.828M8 10.586L10.586 8l5 5l-2.587 2.587zM25.413 28l-11-10.999L17 14.414l11 11ZM2 16l2-2l2 2l-2 2zM14 4l2-2l2 2l-2 2zM2 4l2-2l2 2l-2 2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon-magic-wand-filled{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M29.414 24L12 6.586a2.05 2.05 0 0 0-2.828 0L6.586 9.172a2 2 0 0 0 0 2.828l17.413 17.414a2 2 0 0 0 2.828 0l2.587-2.586a2 2 0 0 0 0-2.828M8 10.586L10.586 8l5 5l-2.587 2.587zM2 16l2-2l2 2l-2 2zM14 4l2-2l2 2l-2 2zM2 4l2-2l2 2l-2 2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon-moon{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M13.503 5.414a15.076 15.076 0 0 0 11.593 18.194a11.1 11.1 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1 1 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.07 13.07 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon-sun{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6M5.394 6.813L6.81 5.399l3.505 3.506L8.9 10.319zM2 15.005h5v2H2zm3.394 10.193L8.9 21.692l1.414 1.414l-3.505 3.506zM15 25.005h2v5h-2zm6.687-1.9l1.414-1.414l3.506 3.506l-1.414 1.414zm3.313-8.1h5v2h-5zm-3.313-6.101l3.506-3.506l1.414 1.414l-3.506 3.506zM15 2.005h2v5h-2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:apps{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M8 4v4H4V4Zm2-2H2v8h8Zm8 2v4h-4V4Zm2-2h-8v8h8Zm8 2v4h-4V4Zm2-2h-8v8h8ZM8 14v4H4v-4Zm2-2H2v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8ZM8 24v4H4v-4Zm2-2H2v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:arrow-down{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M24.59 16.59L17 24.17V4h-2v20.17l-7.59-7.58L6 18l10 10l10-10z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:arrow-left{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m14 26l1.41-1.41L7.83 17H28v-2H7.83l7.58-7.59L14 6L4 16z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:arrow-right{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m18 6l-1.43 1.393L24.15 15H4v2h20.15l-7.58 7.573L18 26l10-10z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:arrow-up{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 4L6 14l1.41 1.41L15 7.83V28h2V7.83l7.59 7.58L26 14z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:arrow-up-right{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M10 6v2h12.59L6 24.59L7.41 26L24 9.41V22h2V6z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:catalog{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 2H8a2 2 0 0 0-2 2v4H4v2h2v5H4v2h2v5H4v2h2v4a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2m0 26H8v-4h2v-2H8v-5h2v-2H8v-5h2V8H8V4h18Z'/%3E%3Cpath fill='currentColor' d='M14 8h8v2h-8zm0 7h8v2h-8zm0 7h8v2h-8z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:checkbox{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 4H6a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2M6 26V6h20v20Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:checkmark{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m13 24l-9-9l1.414-1.414L13 21.171L26.586 7.586L28 9z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:close{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17.414 16L24 9.414L22.586 8L16 14.586L9.414 8L8 9.414L14.586 16L8 22.586L9.414 24L16 17.414L22.586 24L24 22.586z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:close-outline{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 2C8.2 2 2 8.2 2 16s6.2 14 14 14s14-6.2 14-14S23.8 2 16 2m0 26C9.4 28 4 22.6 4 16S9.4 4 16 4s12 5.4 12 12s-5.4 12-12 12'/%3E%3Cpath fill='currentColor' d='M21.4 23L16 17.6L10.6 23L9 21.4l5.4-5.4L9 10.6L10.6 9l5.4 5.4L21.4 9l1.6 1.6l-5.4 5.4l5.4 5.4z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:cursor-1,[i-carbon\:cursor-1=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M23 28a1 1 0 0 1-.71-.29l-6.13-6.14l-3.33 5a1 1 0 0 1-1 .44a1 1 0 0 1-.81-.7l-6-20A1 1 0 0 1 6.29 5l20 6a1 1 0 0 1 .7.81a1 1 0 0 1-.44 1l-5 3.33l6.14 6.13a1 1 0 0 1 0 1.42l-4 4A1 1 0 0 1 23 28m0-2.41L25.59 23l-7.16-7.15l5.25-3.5L7.49 7.49l4.86 16.19l3.5-5.25Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:document-pdf{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M30 18v-2h-6v10h2v-4h3v-2h-3v-2zm-11 8h-4V16h4a3.003 3.003 0 0 1 3 3v4a3.003 3.003 0 0 1-3 3m-2-2h2a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-2Zm-6-8H6v10h2v-3h3a2.003 2.003 0 0 0 2-2v-3a2 2 0 0 0-2-2m-3 5v-3h3l.001 3Z'/%3E%3Cpath fill='currentColor' d='M22 14v-4a.91.91 0 0 0-.3-.7l-7-7A.9.9 0 0 0 14 2H4a2.006 2.006 0 0 0-2 2v24a2 2 0 0 0 2 2h16v-2H4V4h8v6a2.006 2.006 0 0 0 2 2h6v2Zm-8-4V4.4l5.6 5.6Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:download{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 24v4H6v-4H4v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2v-4Zm0-10l-1.41-1.41L17 20.17V2h-2v18.17l-7.59-7.58L6 14l10 10z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:drop-photo{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M19 26a4 4 0 1 1 4-4a4.005 4.005 0 0 1-4 4m0-6a2 2 0 1 0 2 2a2 2 0 0 0-2-2'/%3E%3Cpath fill='currentColor' d='M27 29H11a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2h3.28l.543-1.632A2 2 0 0 1 16.721 13h4.558a2 2 0 0 1 1.898 1.368L23.72 16H27a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2m-16-2h16v-9h-4.72l-1-3h-4.56l-1 3H11Zm16-16h2v2h-2zm0-4h2v2h-2zm0-4h2v2h-2zm-4 0h2v2h-2zm-4 0h2v2h-2zm-4 0h2v2h-2zm-4 0h2v2h-2zM7 3h2v2H7zM3 3h2v2H3zm0 4h2v2H3zm0 4h2v2H3zm0 4h2v2H3zm0 4h2v2H3zm0 4h2v2H3zm0 4h2v2H3z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:edit{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M2 26h28v2H2zM25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4zm-5-5L24 7.6l-3 3L17.4 7zM6 22v-3.6l10-10l3.6 3.6l-10 10z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:erase{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M7 27h23v2H7zm20.38-16.49l-7.93-7.92a2 2 0 0 0-2.83 0l-14 14a2 2 0 0 0 0 2.83L7.13 24h9.59l10.66-10.66a2 2 0 0 0 0-2.83M15.89 22H8l-4-4l6.31-6.31l7.93 7.92Zm3.76-3.76l-7.92-7.93L18 4l8 7.93Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:error{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M2 16A14 14 0 1 0 16 2A14 14 0 0 0 2 16m23.15 7.75L8.25 6.85a12 12 0 0 1 16.9 16.9M8.24 25.16a12 12 0 0 1-1.4-16.89l16.89 16.89a12 12 0 0 1-15.49 0'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:help{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2m0 26a12 12 0 1 1 12-12a12 12 0 0 1-12 12'/%3E%3Ccircle cx='16' cy='23.5' r='1.5' fill='currentColor'/%3E%3Cpath fill='currentColor' d='M17 8h-1.5a4.49 4.49 0 0 0-4.5 4.5v.5h2v-.5a2.5 2.5 0 0 1 2.5-2.5H17a2.5 2.5 0 0 1 0 5h-2v4.5h2V17a4.5 4.5 0 0 0 0-9'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:information{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17 22v-8h-4v2h2v6h-3v2h8v-2zM16 8a1.5 1.5 0 1 0 1.5 1.5A1.5 1.5 0 0 0 16 8'/%3E%3Cpath fill='currentColor' d='M16 30a14 14 0 1 1 14-14a14 14 0 0 1-14 14m0-26a12 12 0 1 0 12 12A12 12 0 0 0 16 4'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:list-boxes{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 8h14v2H16zm0 14h14v2H16zm-6-8H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2M4 6v6h6.001L10 6Zm6 22H4a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2m-6-8v6h6.001L10 20Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:maximize{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M20 2v2h6.586L18 12.582L19.414 14L28 5.414V12h2V2zm-6 17.416L12.592 18L4 26.586V20H2v10h10v-2H5.414z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:minimize{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M4 18v2h6.586L2 28.582L3.414 30L12 21.414V28h2V18zM30 3.416L28.592 2L20 10.586V4h-2v10h10v-2h-6.586z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:pause{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 8v16H8V8zm0-2H8a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2m12 2v16h-4V8zm0-2h-4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:pen{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M27.307 6.107L30 3.414L28.586 2l-2.693 2.693L24.8 3.6a1.933 1.933 0 0 0-2.8 0l-18 18V28h6.4l18-18a1.933 1.933 0 0 0 0-2.8ZM9.6 26H6v-3.6L23.4 5L27 8.6ZM9 11.586L16.586 4L18 5.414L10.414 13z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:pin{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M28.59 13.31L30 11.9L20 2l-1.31 1.42l1.18 1.18l-11.49 9.72l-1.72-1.71L5.25 14l5.66 5.68L2 28.58L3.41 30l8.91-8.91L18 26.75l1.39-1.42l-1.71-1.71l9.72-11.49ZM16.26 22.2L9.8 15.74L21.29 6L26 10.71Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:pin-filled{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M28.586 13.314L30 11.9L20 2l-1.314 1.415l1.186 1.186L8.38 14.322l-1.716-1.715L5.25 14l5.657 5.677L2 28.583L3.41 30l8.911-8.909L18 26.748l1.393-1.414l-1.716-1.716l9.724-11.49Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:play{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M7 28a1 1 0 0 1-1-1V5a1 1 0 0 1 1.482-.876l20 11a1 1 0 0 1 0 1.752l-20 11A1 1 0 0 1 7 28M8 6.69v18.62L24.925 16Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:presentation-file{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M15 10h2v8h-2zm5 4h2v4h-2zm-10-2h2v6h-2z'/%3E%3Cpath fill='currentColor' d='M25 4h-8V2h-2v2H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8v6h-4v2h10v-2h-4v-6h8a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 16H7V6h18Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:radio-button{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2m0 26a12 12 0 1 1 12-12a12 12 0 0 1-12 12'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:redo{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 10h12.185l-3.587-3.586L22 5l6 6l-6 6l-1.402-1.415L24.182 12H12a6 6 0 0 0 0 12h8v2h-8a8 8 0 0 1 0-16'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:renew{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 10H6.78A11 11 0 0 1 27 16h2A13 13 0 0 0 6 7.68V4H4v8h8Zm8 12h5.22A11 11 0 0 1 5 16H3a13 13 0 0 0 23 8.32V28h2v-8h-8Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:settings-adjust{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3s3 1.3 3 3s-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3s-3-1.3-3-3s1.3-3 3-3'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:template{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 6v4H6V6zm0-2H6a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2M10 16v10H6V16zm0-2H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V16a2 2 0 0 0-2-2m16 2v10H16V16zm0-2H16a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V16a2 2 0 0 0-2-2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:text-annotation-toggle{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath d='M29.537 13.76l-3.297-3.297a1.586 1.586 0 0 0-2.24 0L10 24.467V30h5.533l14.004-14a1.586 1.586 0 0 0 0-2.24zM14.704 28H12v-2.704l9.44-9.441l2.705 2.704zM25.56 17.145l-2.704-2.704l2.267-2.267l2.704 2.704z' fill='currentColor'/%3E%3Cpath d='M11 17h2v-7h3V8H8v2h3v7z' fill='currentColor'/%3E%3Cpath d='M8 20H4V4h16v4h2V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4z' fill='currentColor'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:time{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 30a14 14 0 1 1 14-14a14 14 0 0 1-14 14m0-26a12 12 0 1 0 12 12A12 12 0 0 0 16 4'/%3E%3Cpath fill='currentColor' d='M20.59 22L15 16.41V7h2v8.58l5 5.01z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:timer{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M15 11h2v9h-2zm-2-9h6v2h-6z'/%3E%3Cpath fill='currentColor' d='m28 9l-1.42-1.41l-2.25 2.25a10.94 10.94 0 1 0 1.18 1.65ZM16 26a9 9 0 1 1 9-9a9 9 0 0 1-9 9'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:trash-can{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 12h2v12h-2zm6 0h2v12h-2z'/%3E%3Cpath fill='currentColor' d='M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6Zm4 22V8h16v20Zm4-26h8v2h-8z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:undo{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M20 10H7.815l3.587-3.586L10 5l-6 6l6 6l1.402-1.415L7.818 12H20a6 6 0 0 1 0 12h-8v2h8a8 8 0 0 0 0-16'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:user-speaker{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M29.415 19L27.7 17.285A3 3 0 0 0 28 16a3 3 0 1 0-3 3a3 3 0 0 0 1.286-.3L28 20.414V28h-6v-3a7.01 7.01 0 0 0-7-7H9a7.01 7.01 0 0 0-7 7v5h28v-9.586A2 2 0 0 0 29.415 19M4 25a5.006 5.006 0 0 1 5-5h6a5.006 5.006 0 0 1 5 5v3H4Z'/%3E%3Cpath fill='currentColor' d='M12 4a5 5 0 1 1-5 5a5 5 0 0 1 5-5m0-2a7 7 0 1 0 7 7a7 7 0 0 0-7-7'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:zoom-in{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M18 12h-4V8h-2v4H8v2h4v4h2v-4h4z'/%3E%3Cpath fill='currentColor' d='M21.448 20A10.86 10.86 0 0 0 24 13a11 11 0 1 0-11 11a10.86 10.86 0 0 0 7-2.552L27.586 29L29 27.586ZM13 22a9 9 0 1 1 9-9a9.01 9.01 0 0 1-9 9'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:zoom-out{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M8 12h10v2H8z'/%3E%3Cpath fill='currentColor' d='M21.448 20A10.86 10.86 0 0 0 24 13a11 11 0 1 0-11 11a10.86 10.86 0 0 0 7-2.552L27.586 29L29 27.586ZM13 22a9 9 0 1 1 9-9a9.01 9.01 0 0 1-9 9'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-ph-cursor-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M213.66 201L201 213.66a8 8 0 0 1-11.31 0l-51.31-51.31a8 8 0 0 0-13 2.46l-17.82 46.41a8 8 0 0 1-14.85-.71L40.41 50.44a8 8 0 0 1 10-10l160.1 52.24a8 8 0 0 1 .71 14.85l-46.41 17.82a8 8 0 0 0-2.46 13l51.31 51.31a8 8 0 0 1 0 11.34' opacity='.2'/%3E%3Cpath d='M168 132.69L214.08 115l.33-.13a16 16 0 0 0-1.41-29.8L52.92 32.8A15.95 15.95 0 0 0 32.8 52.92L85.07 213a15.82 15.82 0 0 0 14.41 11h.78a15.84 15.84 0 0 0 14.61-9.59l.13-.33L132.69 168L184 219.31a16 16 0 0 0 22.63 0l12.68-12.68a16 16 0 0 0 0-22.63ZM195.31 208L144 156.69a16 16 0 0 0-26 4.93c0 .11-.09.22-.13.32l-17.65 46L48 48l159.85 52.2l-45.95 17.64l-.32.13a16 16 0 0 0-4.93 26L208 195.31Z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-ph-cursor-fill{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m220.49 207.8l-12.69 12.69a12 12 0 0 1-17 0l-56.57-56.57L115 214.08l-.13.33a15.84 15.84 0 0 1-14.61 9.59h-.78a15.82 15.82 0 0 1-14.41-11L32.8 52.92A15.95 15.95 0 0 1 52.92 32.8L213 85.07a16 16 0 0 1 1.41 29.8l-.33.13l-50.16 19.27l56.57 56.56a12 12 0 0 1 0 16.97'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-ph\:arrow-down-bold{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m208.49 152.49l-72 72a12 12 0 0 1-17 0l-72-72a12 12 0 0 1 17-17L116 187V40a12 12 0 0 1 24 0v147l51.51-51.52a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-ph\:arrow-up-bold{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M208.49 120.49a12 12 0 0 1-17 0L140 69v147a12 12 0 0 1-24 0V69l-51.51 51.49a12 12 0 0 1-17-17l72-72a12 12 0 0 1 17 0l72 72a12 12 0 0 1 0 17'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-svg-spinners-90-ring-with-bg{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z' opacity='.25'/%3E%3Cpath fill='currentColor' d='M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z'%3E%3CanimateTransform attributeName='transform' dur='0.75s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/path%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.pointer-events-none,[pointer-events-none=""]{pointer-events:none}.absolute,[absolute=""]{position:absolute}.fixed,[fixed=""]{position:fixed}.relative,[relative=""]{position:relative}.inset-0,[inset-0=""]{inset:0}.inset-y-0,[inset-y-0=""]{top:0;bottom:0}.-top-15px{top:-15px}.-top-20{top:-5rem}.bottom-\[-6px\]{bottom:-6px}.bottom-0,[bottom-0=""]{bottom:0}.bottom-1,[bottom-1=""]{bottom:.25rem}.bottom-10{bottom:2.5rem}.bottom-5{bottom:1.25rem}.left-0,[left-0=""]{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.left-110\%{left:110%}.right--2,[right--2=""]{right:-.5rem}.right-\[-6px\]{right:-6px}.right-0,[right-0=""]{right:0}.right-0\.5,[right-0\.5=""]{right:.125rem}.right-1,[right-1=""]{right:.25rem}.right-4{right:1rem}.right-5,[right-5=""]{right:1.25rem}.top-\[-6px\]{top:-6px}.top-0,[top-0=""]{top:0}.top-0\.5,[top-0\.5=""]{top:.125rem}.top-1\/2,.top-50\%{top:50%}.top-4{top:1rem}.top-5{top:1.25rem}.-z-1{z-index:-1}.z-1,[z-1=""]{z-index:1}.z-10,[z-10=""]{z-index:10}.z-2{z-index:2}.grid,[grid~=\~]{display:grid}.grid-cols-\[1fr_max-content\]{grid-template-columns:1fr max-content}.grid-cols-\[35px_1fr\]{grid-template-columns:35px 1fr}.grid-rows-\[1fr_max-content\]{grid-template-rows:1fr max-content}.grid-rows-\[1fr_min-content\]{grid-template-rows:1fr min-content}.grid-rows-\[auto_max-content\]{grid-template-rows:auto max-content}.grid-rows-\[max-content_1fr\]{grid-template-rows:max-content 1fr}.cols-2,.grid-cols-2,[grid~=cols-2]{grid-template-columns:repeat(2,minmax(0,1fr))}.m--1,[m--1=""]{margin:-.25rem}.m-1{margin:.25rem}.m-6{margin:1.5rem}.m-auto,.ma{margin:auto}.m0,[m0=""]{margin:0}.children\:my-auto>*,.my-auto,.mya{margin-top:auto;margin-bottom:auto}.mx--1\.2{margin-left:-.3rem;margin-right:-.3rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1,.my1{margin-top:.25rem;margin-bottom:.25rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my2{margin-top:.5rem;margin-bottom:.5rem}.my5{margin-top:1.25rem;margin-bottom:1.25rem}.-mt-0\.5{margin-top:-.125rem}.mb-4{margin-bottom:1rem}.mb2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.mr--14px{margin-right:-14px}.mr--4{margin-right:-1rem}.mr-2{margin-right:.5rem}.mr0{margin-right:0}.mr1{margin-right:.25rem}.ms{margin-inline-start:1rem}.mt-1,.mt1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-px{margin-top:1px}.inline{display:inline}.block{display:block}.inline-block,[inline-block=""]{display:inline-block}.hidden,.group:hover .group-hover\:hidden,.group:not(:hover) .group-not-hover\:hidden{display:none}.aspect-ratio-initial{aspect-ratio:initial}.h-\[22px\],.h-22px,[h-22px=""]{height:22px}.h-\[40px\]{height:40px}.h-\[calc\(var\(--vh\,1vh\)\*100\)\]{height:calc(var(--vh,1vh) * 100)}.h-0\.7{height:.175rem}.h-1\.5,[h-1\.5=""]{height:.375rem}.h-1px{height:1px}.h-2,[h-2=""]{height:.5rem}.h-40{height:10rem}.h-4px{height:4px}.h-5,.h5,[h-5=""]{height:1.25rem}.h-6{height:1.5rem}.h-8,[h-8=""]{height:2rem}.h-full,[h-full=""]{height:100%}.h-max{height:max-content}.h-screen{height:100vh}.h1,[h1=""]{height:.25rem}.max-h-full{max-height:100%}.max-h-full\!{max-height:100%!important}.max-w-\[calc\(100\%-3rem\)\]{max-width:calc(100% - 3rem)}.max-w-150{max-width:37.5rem}.max-w-250{max-width:62.5rem}.max-w-90,[max-w-90=""]{max-width:22.5rem}.max-w-full{max-width:100%}.max-w-full\!{max-width:100%!important}.max-w-xs{max-width:20rem}.min-h-50{min-height:12.5rem}.min-h-full\!{min-height:100%!important}.min-w-\[70\%\]{min-width:70%}.min-w-0{min-width:0}.min-w-16{min-width:4rem}.min-w-30,[min-w-30=""]{min-width:7.5rem}.min-w-40{min-width:10rem}.min-w-90,[min-w-90=""]{min-width:22.5rem}.min-w-full\!{min-width:100%!important}.w-\[40px\]{width:40px}.w-\[calc\(100\%-0\.25rem\)\]{width:calc(100% - .25rem)}.w-0{width:0}.w-0\.5,[w-0\.5=""]{width:.125rem}.w-1\.5,[w-1\.5=""]{width:.375rem}.w-13{width:3.25rem}.w-1px,[w-1px=""]{width:1px}.w-2,[w-2=""]{width:.5rem}.w-20,[w-20=""]{width:5rem}.w-200{width:50rem}.w-22px{width:22px}.w-250{width:62.5rem}.w-30,[w-30=""]{width:7.5rem}.w-5,[w-5=""]{width:1.25rem}.w-6{width:1.5rem}.w-60,[w-60=""]{width:15rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-88{width:22rem}.w-9{width:2.25rem}.w-90,[w-90=""]{width:22.5rem}.w-full,[w-full=""]{width:100%}.w-full\!{width:100%!important}.w-screen{width:100vw}.w1,[w1=""]{width:.25rem}.flex,[flex=""],[flex~=\~]{display:flex}.flex-1{flex:1}.flex-auto,[flex-auto=""]{flex:auto}.flex-none{flex:none}[flex~=row]{flex-direction:row}.flex-col,[flex~=col]{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-wrap-reverse{flex-wrap:wrap-reverse}.table,[table=""]{display:table}.table-cell,[table-cell=""]{display:table-cell}.table-row,[table-row=""]{display:table-row}.border-collapse,[border-collapse=""]{border-collapse:collapse}.translate-y--50\%{--un-translate-y:-50%;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.-rotate-45{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:-45deg;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.scale-102{--un-scale-x:1.02;--un-scale-y:1.02;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.scale-85{--un-scale-x:.85;--un-scale-y:.85;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.scale-x-80{--un-scale-x:.8;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.transform{transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.animate-fade-in{animation:1s linear fade-in}.animate-duration-100{animation-duration:.1s}.cursor-default{cursor:default}.cursor-pointer,[cursor-pointer=""]{cursor:pointer}.touch-none,[touch-none=""]{touch-action:none}.important\:\[\&_\*\]\:select-none *{-webkit-user-select:none!important;user-select:none!important}.select-none,[select-none=""]{-webkit-user-select:none;user-select:none}.resize{resize:both}.resize-none{resize:none}.place-content-center{place-content:center}.items-end{align-items:flex-end}.items-center,[flex~=items-center],[items-center=""]{align-items:center}.self-center{align-self:center}.justify-center,[flex~=justify-center],[justify-center=""]{justify-content:center}.justify-between{justify-content:space-between}.justify-items-start{justify-items:start}.gap-0{gap:0}.gap-0\.2{gap:.05rem}.gap-0\.5{gap:.125rem}.gap-1,[flex~=gap-1],[gap-1=""]{gap:.25rem}.gap-2,[flex~=gap-2]{gap:.5rem}.gap-4,[flex~=gap-4],[grid~=gap-4]{gap:1rem}.gap-5{gap:1.25rem}.gap-8,[grid~=gap-8]{gap:2rem}.gap-px{gap:1px}.gap-x-8{column-gap:2rem}.gap-y-4{row-gap:1rem}.of-auto,.overflow-auto{overflow:auto}.of-hidden,.overflow-hidden,[of-hidden=""]{overflow:hidden}.of-x-visible{overflow-x:visible}.of-y-auto,.overflow-y-auto{overflow-y:auto}.whitespace-nowrap,.ws-nowrap,[ws-nowrap=""]{white-space:nowrap}.b,.border,.dark .dark\:border,.dark [dark\:border~=\~],[b=""],[border=""],[border~=\~]{border-width:1px}.border-2,[b~="2"]{border-width:2px}[b~="100%"]{border-width:100%}[b~="50%"]{border-width:50%}[border~="0"]{border-width:0}.border-x,[b~=x]{border-left-width:1px;border-right-width:1px}[b~=y],[border~=y]{border-top-width:1px;border-bottom-width:1px}.border-b,[b~=b],[border~=b]{border-bottom-width:1px}.border-b-0{border-bottom-width:0}.border-l{border-left-width:1px}.border-r,[border~=r]{border-right-width:1px}.border-r-2{border-right-width:2px}.border-t,[border-t=""],[border~=t]{border-top-width:1px}.b-dark{--un-border-opacity:1;border-color:rgb(34 34 34/var(--un-border-opacity))}.border-gray,.dark .dark\:b-gray-400,[border-gray=""]{--un-border-opacity:1;border-color:rgb(156 163 175/var(--un-border-opacity))}.border-gray-300\/50{border-color:#d1d5db80}.border-transparent,[border~=transparent]{border-color:#0000}.border-white{--un-border-opacity:1;border-color:rgb(255 255 255/var(--un-border-opacity))}.dark .dark\:border-gray-500,.dark [dark\:border-gray-500=""]{--un-border-opacity:1;border-color:rgb(107 114 128/var(--un-border-opacity))}[b-dark~="1"]{--un-border-opacity:1;border-color:rgb(60 60 60/var(--un-border-opacity))}.dark [b~=dark\:b-gray-400]{--un-border-opacity:1;--un-border-bottom-opacity:var(--un-border-opacity);border-bottom-color:rgb(156 163 175/var(--un-border-bottom-opacity))}[b~=b-dark]{--un-border-opacity:1;--un-border-bottom-opacity:var(--un-border-opacity);border-bottom-color:rgb(34 34 34/var(--un-border-bottom-opacity))}.rounded,[border~=rounded],[rounded=""]{border-radius:.25rem}.rounded-1\/2{border-radius:50%}.rounded-full,[rounded-full=""]{border-radius:9999px}.rounded-md,[border~=rounded-md]{border-radius:.375rem}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-lb{border-bottom-left-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-tr{border-top-right-radius:.25rem}.rounded-tr-0{border-top-right-radius:0}.\!border-none{border-style:none!important}.b-dashed{border-style:dashed}[b~=b-dashed]{border-bottom-style:dashed}.bg-black,[bg~=black]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity)) }.bg-blue{--un-bg-opacity:1;background-color:rgb(96 165 250/var(--un-bg-opacity)) }.bg-current{background-color:currentColor}.bg-cyan\:10,[bg-cyan\:10=""]{background-color:#22d3ee1a}.bg-gray,[bg-gray=""]{--un-bg-opacity:1;background-color:rgb(156 163 175/var(--un-bg-opacity)) }.bg-gray\:10,.bg-gray\/10{background-color:#9ca3af1a}.bg-gray\:4,[bg-gray\:4=""]{background-color:#9ca3af0a}.bg-gray\:5,.bg-gray\/5,[bg-gray\:5=""]{background-color:#9ca3af0d}.bg-gray\/20{background-color:#9ca3af33}.bg-green{--un-bg-opacity:1;background-color:rgb(74 222 128/var(--un-bg-opacity)) }.bg-red{--un-bg-opacity:1;background-color:rgb(248 113 113/var(--un-bg-opacity)) }.bg-transparent{background-color:#0000}.bg-white{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity)) }.bg-yellow{--un-bg-opacity:1;background-color:rgb(250 204 21/var(--un-bg-opacity)) }.dark .dark\:bg-gray-800,.dark [dark\:bg-gray-800=""]{--un-bg-opacity:1;background-color:rgb(31 41 55/var(--un-bg-opacity)) }.hover\:bg-gray-400:hover{--un-bg-opacity:1;background-color:rgb(156 163 175/var(--un-bg-opacity)) }.hover\:bg-gray\/20:hover{background-color:#9ca3af33}[hover~=bg-white]:hover{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity)) }[bg-transparent~=placeholder\:]::placeholder{background-color:#0000}.\!bg-opacity-75{--un-bg-opacity:.75!important}.bg-opacity-10{--un-bg-opacity:.1}.bg-opacity-30,[bg-opacity-30=""]{--un-bg-opacity:.3}[bg~=opacity-80]{--un-bg-opacity:.8}.hover\:bg-opacity-10:hover,[hover~=bg-opacity-10]:hover{--un-bg-opacity:.1}[stroke-width~="1"]{stroke-width:1px}[stroke-width~="2"]{stroke-width:2px}[stroke-width~="3"]{stroke-width:3px}.dark .dark\:stroke-black{--un-stroke-opacity:1;stroke:rgb(0 0 0/var(--un-stroke-opacity)) }.stroke-white{--un-stroke-opacity:1;stroke:rgb(255 255 255/var(--un-stroke-opacity)) }.object-cover{object-fit:cover}.object-contain{object-fit:contain}.\!p-4{padding:1rem!important}.p-1,.p1,[p1=""]{padding:.25rem}.p-16{padding:4rem}.p-2,.p2,[p2=""]{padding:.5rem}.p-6px{padding:6px}.p0\.5,[p0\.5=""]{padding:.125rem}.p3{padding:.75rem}.p4{padding:1rem}.p5{padding:1.25rem}.px,.px-4,.px4,[p~=x-4],[px=""],[px4=""]{padding-left:1rem;padding-right:1rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2,.px2,[px2=""]{padding-left:.5rem;padding-right:.5rem}.px-3,.px3,[px3=""]{padding-left:.75rem;padding-right:.75rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px1{padding-left:.25rem;padding-right:.25rem}.py-1,.py1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2,.py2,[p~=y-2],[py-2=""],[py2=""]{padding-top:.5rem;padding-bottom:.5rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py0\.5{padding-top:.125rem;padding-bottom:.125rem}.py1\.5{padding-top:.375rem;padding-bottom:.375rem}.pb2{padding-bottom:.5rem}.pl-0{padding-left:0}.pl-1,.pl1{padding-left:.25rem}.pl-4,[pl-4=""]{padding-left:1rem}.pl2,[pl2=""]{padding-left:.5rem}.pr-3,[pr-3=""]{padding-right:.75rem}.pr-4,[pr-4=""]{padding-right:1rem}.pt-\.5{padding-top:.125rem}.pt-12{padding-top:3rem}.pt-15\%{padding-top:15%}.pt2{padding-top:.5rem}.text-center{text-align:center}.text-right,[text-right=""]{text-align:right}.text-nowrap{text-wrap:nowrap}.align-top,[align-top=""]{vertical-align:top}.vertical-middle,[vertical-middle=""]{vertical-align:middle}.text-1\.2em{font-size:1.2em}.text-11px{font-size:11px}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3em{font-size:3em}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-6xl{font-size:3.75rem;line-height:1}.text-9xl,[text-9xl=""]{font-size:8rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm,[text-sm=""]{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs,[text-xs=""]{font-size:.75rem;line-height:1rem}.\!text-current{color:currentColor!important}.dark .dark\:text-blue3{--un-text-opacity:1;color:rgb(147 197 253/var(--un-text-opacity)) }.dark .dark\:text-green,.text-green{--un-text-opacity:1;color:rgb(74 222 128/var(--un-text-opacity)) }.dark .dark\:text-green3{--un-text-opacity:1;color:rgb(134 239 172/var(--un-text-opacity)) }.dark .dark\:text-red-500{--un-text-opacity:1;color:rgb(239 68 68/var(--un-text-opacity)) }.dark .dark\:text-red3{--un-text-opacity:1;color:rgb(252 165 165/var(--un-text-opacity)) }.dark .dark\:text-yellow3{--un-text-opacity:1;color:rgb(253 224 71/var(--un-text-opacity)) }.text-\$slidev-controls-foreground{color:var(--slidev-controls-foreground) }.text-black{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity)) }.text-blue{--un-text-opacity:1;color:rgb(96 165 250/var(--un-text-opacity)) }.text-blue6{--un-text-opacity:1;color:rgb(37 99 235/var(--un-text-opacity)) }.text-cyan{--un-text-opacity:1;color:rgb(34 211 238/var(--un-text-opacity)) }.text-cyan\:75,[text-cyan\:75=""]{color:#22d3eebf}.text-gray,.text-gray-400{--un-text-opacity:1;color:rgb(156 163 175/var(--un-text-opacity)) }.text-gray-500{--un-text-opacity:1;color:rgb(107 114 128/var(--un-text-opacity)) }.text-green-500{--un-text-opacity:1;color:rgb(34 197 94/var(--un-text-opacity)) }.text-green6{--un-text-opacity:1;color:rgb(22 163 74/var(--un-text-opacity)) }.text-indigo{--un-text-opacity:1;color:rgb(129 140 248/var(--un-text-opacity)) }.text-lime{--un-text-opacity:1;color:rgb(163 230 53/var(--un-text-opacity)) }.text-orange{--un-text-opacity:1;color:rgb(251 146 60/var(--un-text-opacity)) }.text-pink{--un-text-opacity:1;color:rgb(244 114 182/var(--un-text-opacity)) }.text-purple{--un-text-opacity:1;color:rgb(192 132 252/var(--un-text-opacity)) }.dark .dark\:color-red-400,.text-red,.text-red-400{--un-text-opacity:1;color:rgb(248 113 113/var(--un-text-opacity)) }.text-red-700{--un-text-opacity:1;color:rgb(185 28 28/var(--un-text-opacity)) }.color-red-600,.text-red6{--un-text-opacity:1;color:rgb(220 38 38/var(--un-text-opacity)) }.text-teal{--un-text-opacity:1;color:rgb(45 212 191/var(--un-text-opacity)) }.text-white{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity)) }.text-yellow{--un-text-opacity:1;color:rgb(250 204 21/var(--un-text-opacity)) }.text-yellow6{--un-text-opacity:1;color:rgb(202 138 4/var(--un-text-opacity)) }.\!hover\:text-white:hover{--un-text-opacity:1!important;color:rgb(255 255 255/var(--un-text-opacity)) !important}.important-text-op-50,.text-opacity-50\!{--un-text-opacity:.5!important}.text-opacity-85{--un-text-opacity:.85}.font-bold,[font-bold=""]{font-weight:700}.font-light{font-weight:300}.leading-1\.6em{line-height:1.6em}.leading-tight{line-height:1.25}.tracking-widest{letter-spacing:.1em}.font-mono,[font-mono=""]{font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.italic{font-style:italic}.tabular-nums{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.line-through{text-decoration-line:line-through}.underline,.hover\:underline:hover{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.tab{tab-size:4}.\!opacity-0{opacity:0!important}.\!opacity-100{opacity:1!important}.op-60,.op60{opacity:.6}.op-80,.op80,.opacity-80{opacity:.8}.op0,.opacity-0{opacity:0}.op100,.group:hover .group-hover\:op100{opacity:1}.op15{opacity:.15}.op20{opacity:.2}.op25,.opacity-25,[op25=""]{opacity:.25}.op30{opacity:.3}.op35{opacity:.35}.op40,.opacity-40,[op40=""]{opacity:.4}.op50,.opacity-50,[op50=""]{opacity:.5}.op75,[op75=""]{opacity:.75}.opacity-10,[opacity-10=""]{opacity:.1}.opacity-5{opacity:.05}.focus-within\:opacity-100:focus-within,.hover\:op-100:hover,.hover\:op100:hover{opacity:1}.hover\:op90:hover{opacity:.9}.hover\:opacity-100:hover{opacity:1}.hover\:opacity-90:hover{opacity:.9}[hover~=op100]:hover,.focus-visible\:opacity-100:focus-visible{opacity:1}.placeholder\:op25::placeholder{opacity:.25}.shadow,[shadow~=\~]{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color,#0000001a),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color,#0000001a);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)}.shadow-xl{--un-shadow:var(--un-shadow-inset) 0 20px 25px -5px var(--un-shadow-color,#0000001a),var(--un-shadow-inset) 0 8px 10px -6px var(--un-shadow-color,#0000001a);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)}.outline{outline-style:solid}.outline-none,[outline-none=""]{outline-offset:2px;outline:2px solid #0000}.\!backdrop-blur-0px{--un-backdrop-blur:blur(0px)!important;-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)!important;backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)!important}.backdrop-blur{--un-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.backdrop-blur-5px{--un-backdrop-blur:blur(5px);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.filter{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}[transition-all~="0"]{transition-property:all;transition-duration:0s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-400{transition-duration:.4s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.view-transition-name{view-transition-name:name}@media (width<=767.9px){.lt-md\:hidden{display:none}.lt-md\:flex-col{flex-direction:column}}@media (width>=768px){.md\:p-10px{padding:10px}}@media (width>=1024px){.lg\:m-2{margin:.5rem}.lg\:p-2{padding:.5rem}.lg\:p-4{padding:1rem}} diff --git a/docs/dist/assets/index-JRGd7JqD.css b/docs/dist/assets/index-JRGd7JqD.css new file mode 100644 index 00000000..e321710f --- /dev/null +++ b/docs/dist/assets/index-JRGd7JqD.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:before,:after{--un-content:""}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*,:before,:after,::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 #0000;--un-ring-shadow:0 0 #0000;--un-shadow-inset: ;--un-shadow:0 0 #0000;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:#93c5fd80;--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.prose{color:var(--un-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--un-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--un-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--un-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--un-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-kbd);box-shadow:0 0 0 1px rgb(var(--un-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--un-prose-kbd-shadows) / 10%);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-pre-code);background-color:var(--un-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--un-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--un-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--un-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where():not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where():not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose{--un-prose-body:#374151;--un-prose-invert-body:#d1d5db;--un-prose-headings:#111827;--un-prose-invert-headings:white;--un-prose-lead:#4b5563;--un-prose-invert-lead:#9ca3af;--un-prose-links:#111827;--un-prose-invert-links:white;--un-prose-bold:#111827;--un-prose-invert-bold:white;--un-prose-counters:#6b7280;--un-prose-invert-counters:#9ca3af;--un-prose-bullets:#d1d5db;--un-prose-invert-bullets:#4b5563;--un-prose-hr:#e5e7eb;--un-prose-invert-hr:#374151;--un-prose-quotes:#111827;--un-prose-invert-quotes:#f3f4f6;--un-prose-quote-borders:#e5e7eb;--un-prose-invert-quote-borders:#374151;--un-prose-captions:#6b7280;--un-prose-invert-captions:#9ca3af;--un-prose-kbd:#111827;--un-prose-invert-kbd:white;--un-prose-kbd-shadows:#111827;--un-prose-invert-kbd-shadows:white;--un-prose-code:#111827;--un-prose-invert-code:white;--un-prose-pre-code:#e5e7eb;--un-prose-invert-pre-code:#d1d5db;--un-prose-pre-bg:#1f2937;--un-prose-invert-pre-bg:#00000080;--un-prose-th-borders:#d1d5db;--un-prose-invert-th-borders:#4b5563;--un-prose-td-borders:#e5e7eb;--un-prose-invert-td-borders:#374151}.dark .dark\:prose-invert{--un-prose-body:var(--un-prose-invert-body);--un-prose-headings:var(--un-prose-invert-headings);--un-prose-lead:var(--un-prose-invert-lead);--un-prose-links:var(--un-prose-invert-links);--un-prose-bold:var(--un-prose-invert-bold);--un-prose-counters:var(--un-prose-invert-counters);--un-prose-bullets:var(--un-prose-invert-bullets);--un-prose-hr:var(--un-prose-invert-hr);--un-prose-quotes:var(--un-prose-invert-quotes);--un-prose-quote-borders:var(--un-prose-invert-quote-borders);--un-prose-captions:var(--un-prose-invert-captions);--un-prose-kbd:var(--un-prose-invert-kbd);--un-prose-kbd-shadows:var(--un-prose-invert-kbd-shadows);--un-prose-code:var(--un-prose-invert-code);--un-prose-pre-code:var(--un-prose-invert-pre-code);--un-prose-pre-bg:var(--un-prose-invert-pre-bg);--un-prose-th-borders:var(--un-prose-invert-th-borders);--un-prose-td-borders:var(--un-prose-invert-td-borders)}.container{width:100%}.z-context-menu{z-index:60}.z-label{z-index:40}.z-menu{z-index:20}.z-modal{z-index:70}.z-nav{z-index:50}.slidev-glass-effect{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity)) ;--un-shadow:var(--un-shadow-inset) 0 20px 25px -5px var(--un-shadow-color,#0000001a),var(--un-shadow-inset) 0 8px 10px -6px var(--un-shadow-color,#0000001a);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);--un-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);border-width:1px;border-color:#9ca3af33;--un-bg-opacity:.75!important}.border-main,.dark [border~=dark\:main],.dark [dark\:border~=main],[border-main=""],[border~=main]{border-color:#9ca3af33}.border-primary,.hover\:border-primary:hover{border-color:var(--slidev-theme-primary)}.bg-active{background-color:#9ca3af1a}.bg-main{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity)) }.dark .bg-main,.dark .slidev-glass-effect{--un-bg-opacity:1;background-color:rgb(18 18 18/var(--un-bg-opacity)) }.bg-primary,[bg-primary=""]{background-color:var(--slidev-theme-primary) }.hover\:bg-active:hover,[hover\:bg-active=""]:hover{background-color:#9ca3af1a}.dark .text-main{--un-text-opacity:1;color:rgb(221 221 221/var(--un-text-opacity)) }.text-main{--un-text-opacity:1;color:rgb(24 24 24/var(--un-text-opacity)) }.text-primary,[text-primary=""]{color:var(--slidev-theme-primary) }@media (width>=640px){.container{max-width:640px}}@media (width>=768px){.container{max-width:768px}}@media (width>=1024px){.container{max-width:1024px}}@media (width>=1280px){.container{max-width:1280px}}@media (width>=1536px){.container{max-width:1536px}}:root{--color-note:#0969da;--color-tip:#1a7f37;--color-warning:#9a6700;--color-severe:#bc4c00;--color-caution:#d1242f;--color-important:#8250df}@media (prefers-color-scheme:dark){:root{--color-note:#2f81f7;--color-tip:#3fb950;--color-warning:#d29922;--color-severe:#db6d28;--color-caution:#f85149;--color-important:#a371f7}}.markdown-alert{color:inherit;border-left:.25em solid #888;margin-bottom:16px;padding:.5rem 1rem}.markdown-alert>:first-child{margin-top:0}.markdown-alert>:last-child{margin-bottom:0}.markdown-alert .markdown-alert-title{align-items:center;font-weight:500;line-height:1;display:flex}.markdown-alert .markdown-alert-title .octicon{vertical-align:text-bottom;fill:currentColor;margin-right:.5rem;display:inline-block;overflow:visible!important}.markdown-alert.markdown-alert-note{border-left-color:var(--color-note)}.markdown-alert.markdown-alert-note .markdown-alert-title{color:var(--color-note)}.markdown-alert.markdown-alert-important{border-left-color:var(--color-important)}.markdown-alert.markdown-alert-important .markdown-alert-title{color:var(--color-important)}.markdown-alert.markdown-alert-warning{border-left-color:var(--color-warning)}.markdown-alert.markdown-alert-warning .markdown-alert-title{color:var(--color-warning)}.markdown-alert.markdown-alert-tip{border-left-color:var(--color-tip)}.markdown-alert.markdown-alert-tip .markdown-alert-title{color:var(--color-tip)}.markdown-alert.markdown-alert-caution{border-left-color:var(--color-caution)}.markdown-alert.markdown-alert-caution .markdown-alert-title{color:var(--color-caution)}:root{--slidev-code-background:#f5f5f5;--slidev-code-foreground:#1b1b1b;--slidev-code-font-family:"Fira Code",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--slidev-code-padding:8px;--slidev-code-font-size:12px;--slidev-code-line-height:18px;--slidev-code-radius:4px;--slidev-code-margin:4px 0;--slidev-theme-primary:#3ab9d5;--slidev-transition-duration:.5s;--slidev-slide-container-background:black;--slidev-controls-foreground:white;--slidev-code-tab-divider:#e5e5e5;--slidev-code-tab-text-color:#67676c;--slidev-code-tab-font-size:12px;--slidev-code-tab-active-text-color:#3c3c43}html.dark{--slidev-code-background:#1b1b1b;--slidev-code-foreground:#eee;--slidev-code-tab-divider:#222;--slidev-code-tab-text-color:#98989f;--slidev-code-tab-active-text-color:#dfdfd6}html,body,#app,#page-root{width:100%;height:100vh;height:calc(var(--vh,1vh) * 100);-webkit-print-color-adjust:exact;print-color-adjust:exact;--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity)) ;margin:0;padding:0;font-family:Avenir Next,Nunito Sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;overflow:hidden}.dark html,.dark body,.dark #app,.dark #page-root{--un-bg-opacity:1;background-color:rgb(18 18 18/var(--un-bg-opacity)) }html{background:0 0}.slidev-icon-btn{aspect-ratio:1;-webkit-user-select:none;user-select:none;cursor:pointer;vertical-align:middle;opacity:.75;border-radius:.25rem;outline:none;justify-content:center;align-items:center;padding:.25rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:inline-flex;position:relative}@media (width>=768px){.slidev-icon-btn{padding:.5rem}}.slidev-icon-btn:hover{--un-bg-opacity:.1;background-color:rgb(156 163 175/var(--un-bg-opacity)) ;opacity:1}.slidev-icon-btn:focus-visible{opacity:1;--un-outline-color-opacity:1;outline-width:2px;outline-color:rgb(0 0 0/var(--un-outline-color-opacity)) ;outline-offset:2px;outline-style:solid}.dark .slidev-icon-btn:focus-visible{--un-outline-color-opacity:1;outline-color:rgb(255 255 255/var(--un-outline-color-opacity)) }.slidev-icon-btn.shallow{opacity:.3}.slidev-icon-btn.active{opacity:1}.slidev-icon-btn.disabled{opacity:.25;pointer-events:none}.slidev-layout a.slidev-icon-btn{border-style:none}.slidev-layout a.slidev-icon-btn:hover{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity)) ;border-style:none}.slidev-icon{vertical-align:sub;line-height:1em;display:inline-block}.slidev-page{width:100%;position:relative;top:0;left:0;right:0}.slidev-note-with-clicks .slidev-note-fade{color:#888c}.dark .slidev-note-with-clicks .slidev-note-fade{color:#a1a1a1cc}.slidev-note-click-mark{-webkit-user-select:none;user-select:none;--un-text-opacity:1;color:rgb(167 139 250/var(--un-text-opacity)) ;background-color:#a78bfa1a;border-width:1px;border-color:#0000;border-radius:.25rem;align-items:center;padding-left:.25rem;padding-right:.25rem;font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.7em;display:inline-flex}.slidev-note-click-mark.slidev-note-click-mark-active{--un-border-opacity:1;border-width:1px;border-color:rgb(167 139 250/var(--un-border-opacity))}.slidev-note-click-mark.slidev-note-click-mark-past{filter:saturate(0);opacity:.5}.slidev-note-click-mark.slidev-note-click-mark-future{opacity:.5}.slidev-note-click-mark:before{content:"";--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M23 28a1 1 0 0 1-.71-.29l-6.13-6.14l-3.33 5a1 1 0 0 1-1 .44a1 1 0 0 1-.81-.7l-6-20A1 1 0 0 1 6.29 5l20 6a1 1 0 0 1 .7.81a1 1 0 0 1-.44 1l-5 3.33l6.14 6.13a1 1 0 0 1 0 1.42l-4 4A1 1 0 0 1 23 28m0-2.41L25.59 23l-7.16-7.15l5.25-3.5L7.49 7.49l4.86 16.19l3.5-5.25Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;opacity:.8;background-color:currentColor;width:1.2em;height:1.2em;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%}.slidev-note-click-mark:after{content:attr(data-clicks);display:inline-block;transform:translateY(.1em)}.slidev-form-button{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity)) ;--un-border-opacity:1;border-bottom-width:2px;border-color:rgb(55 65 81/var(--un-border-opacity));--un-bg-opacity:1;background-color:rgb(107 114 128/var(--un-bg-opacity)) ;border-radius:.25rem;padding:.25rem 1rem}.slidev-form-button:hover{--un-border-opacity:1;border-color:rgb(75 85 99/var(--un-border-opacity));--un-bg-opacity:1;background-color:rgb(156 163 175/var(--un-bg-opacity)) }.slidev-form-button.primary{--un-border-opacity:1;border-color:rgb(17 94 89/var(--un-border-opacity));--un-bg-opacity:1;background-color:rgb(13 148 136/var(--un-bg-opacity)) }.slidev-form-button.primary:hover{--un-border-opacity:1;border-color:rgb(15 118 110/var(--un-border-opacity));--un-bg-opacity:1;background-color:rgb(20 184 166/var(--un-bg-opacity)) }.rough-annotation{transform:scale(calc(1 / var(--slidev-slide-scale)))}#twoslash-container{position:fixed}#twoslash-container .v-popper__wrapper:not(.no-slide-scale>*){zoom:var(--slidev-slide-scale)}#twoslash-container .v-popper__popper:not(.no-slide-scale>*){translate:calc(10px * (1 - var(--slidev-slide-scale))) 0;width:max-content}.slidev-note ul{margin:0}html.dark:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}html.dark .shiki{color:var(--shiki-dark,inherit);--twoslash-popup-bg:var(--shiki-dark-bg,inherit)}html.dark .shiki span{color:var(--shiki-dark)}html:not(.dark) .shiki{color:var(--shiki-light,inherit);--twoslash-popup-bg:var(--shiki-light-bg,inherit)}html:not(.dark) .shiki span{color:var(--shiki-light)}.twoslash-meta-line.twoslash-popover-line{margin-top:-10px}.slidev-code-wrapper{scroll-padding:var(--slidev-code-padding);margin:var(--slidev-code-margin)!important}.slidev-code-wrapper:-webkit-scrollbar{width:0}.slidev-code{background:var(--slidev-code-background);overflow:auto;font-family:var(--slidev-code-font-family)!important;padding:var(--slidev-code-padding)!important;font-size:var(--slidev-code-font-size)!important;line-height:var(--slidev-code-line-height)!important;border-radius:var(--slidev-code-radius)!important}.slidev-code-block-title,.slidev-code-group-tabs{background:var(--slidev-code-background);color:var(--slidev-code-tab-text-color);padding-left:var(--slidev-code-padding);padding-right:var(--slidev-code-padding);font-size:var(--slidev-code-tab-font-size);border-radius:var(--slidev-code-radius) var(--slidev-code-radius) 0 0;box-shadow:inset 0 -1px var(--slidev-code-tab-divider);align-items:center;gap:8px;display:flex}.slidev-code-block-title{padding:var(--slidev-code-padding)}.slidev-code-tab{font-size:var(--slidev-code-tab-font-size);white-space:nowrap;cursor:pointer;padding:var(--slidev-code-padding);color:var(--slidev-code-tab-text-color);border-bottom:2px solid #0000;align-items:center;gap:8px;transition:color .25s;display:flex;position:relative}.slidev-code-tab:hover{color:var(--slidev-code-tab-active-text-color)!important}.slidev-code-group-blocks .slidev-code-wrapper{margin:0!important}.slidev-code-group-blocks .slidev-code{border-radius:0 0 var(--slidev-code-radius) var(--slidev-code-radius)!important}.slidev-code-group-blocks .slidev-code-wrapper.active{display:block}.slidev-code-group-blocks .slidev-code-wrapper{display:none}.slidev-code-block-title+.slidev-code,.slidev-code-group-tabs+.slidev-code{border-top-left-radius:0!important;border-top-right-radius:0!important}.slidev-code .slidev-code-dishonored{opacity:.3;pointer-events:none}.slidev-code-line-numbers .slidev-code code{counter-reset:step;counter-increment:step calc(var(--start,1) - 1)}.slidev-code-line-numbers .slidev-code code .line:before{content:counter(step);counter-increment:step;text-align:right;--un-text-opacity:1;width:1rem;color:rgb(156 163 175/var(--un-text-opacity)) ;margin-right:1.5rem;display:inline-block}.dark .slidev-code-line-numbers .slidev-code code .line:before{--un-text-opacity:1;color:rgb(75 85 99/var(--un-text-opacity)) }.slidev-note :not(pre)>code,.slidev-layout :not(pre)>code{background:var(--slidev-code-background);border-radius:var(--slidev-code-radius);padding:.125rem .375rem;font-size:.9em;font-weight:300}.slidev-note :not(pre)>code:after,.slidev-note :not(pre)>code:before{content:""}.slidev-layout :not(pre)>code:before{margin-right:-.08em}.katex,.katex :after,.katex :before{border-color:currentColor}.slidev-katex-wrapper .mord.dishonored{opacity:.3}.slide-left-enter-active,.slide-left-leave-active,.slide-right-enter-active,.slide-right-leave-active,.slide-up-enter-active,.slide-up-leave-active,.slide-down-enter-active,.slide-down-leave-active{transition:all var(--slidev-transition-duration) ease}.slide-left-enter-from,.slide-right-leave-to{translate:100%}.slide-left-leave-to,.slide-right-enter-from{translate:-100%}.slide-up-enter-from,.slide-down-leave-to{translate:0 100%}.slide-up-leave-to,.slide-down-enter-from{translate:0 -100%}.fade-enter-active,.fade-leave-active{transition:opacity var(--slidev-transition-duration) ease}.fade-enter-from,.fade-leave-to{opacity:0}.fade-out-leave-active{transition:opacity calc(var(--slidev-transition-duration) * .6) ease-out}.fade-out-enter-active{transition:opacity calc(var(--slidev-transition-duration) * .8) ease-in;transition-delay:calc(var(--slidev-transition-duration) * .6)}.fade-out-enter-from,.fade-out-leave-to{opacity:0}:root{--twoslash-popup-bg:var(--slidev-code-background);--twoslash-popup-color:var(--slidev-code-foreground);--twoslash-docs-color:inherit;--twoslash-docs-font:inherit;--twoslash-code-font:"Fira Code",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--twoslash-underline-color:#8888;--twoslash-border-color:#8888;--twoslash-cursor-color:var(--slidev-theme-primary);--twoslash-matched-color:var(--slidev-theme-primary)}.twoslash-popup-container{font-size:13px}.twoslash-popup-container .twoslash-popup-code{font-size:.85em}.twoslash-floating .twoslash-popup-docs-tags .twoslash-popup-docs-tag-name{color:inherit;opacity:.5}.slidev-vclick-target{transition:all .1s}.slidev-vclick-target.slidev-vclick-anim-none{transition:none}.slidev-vclick-target.slidev-vclick-anim-fade-in{transition:all .3s}.slidev-vclick-hidden{opacity:0!important;pointer-events:none!important;-webkit-user-select:none!important;user-select:none!important}.slidev-vclick-hidden.slidev-vclick-anim-fade{opacity:.5!important}.slidev-vclick-hidden.slidev-vclick-anim-fade-in{opacity:0!important}.slidev-vclick-hidden.slidev-vclick-anim-up{translate:0 20px}.slidev-vclick-hidden.slidev-vclick-anim-down{translate:0 -20px}.slidev-vclick-hidden.slidev-vclick-anim-left{translate:20px}.slidev-vclick-hidden.slidev-vclick-anim-right{translate:-20px}.slidev-vclick-hidden.slidev-vclick-anim-scale{scale:.9}.slidev-vclick-display-none{display:none!important}.slidev-vclick-fade{opacity:.5}.slidev-layout{height:100%;padding:2.5rem 3.5rem;font-size:1.1rem}.slidev-layout pre,.slidev-layout code{-webkit-user-select:text;user-select:text}.slidev-layout code{font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.slidev-layout h1{margin-bottom:1rem;font-size:2.25rem;line-height:2.5rem}.slidev-layout h6{letter-spacing:.1em;text-transform:uppercase;padding-top:.25rem;font-size:.875rem;font-weight:500;line-height:1.25rem}:where(.slidev-layout) h6{opacity:.4}.slidev-layout p{margin-top:1rem;margin-bottom:1rem;line-height:1.5rem}.slidev-layout ul{list-style:square}.slidev-layout ol{list-style:decimal}.slidev-layout li{line-height:1.8em}.slidev-layout blockquote{background:var(--slidev-code-background);color:var(--slidev-code-foreground);border-left-width:1px;border-color:var(--slidev-theme-primary);border-radius:.25rem;padding:.25rem .5rem;font-size:.875rem;line-height:1.25rem}.slidev-layout blockquote>*{margin-top:0;margin-bottom:0}.slidev-layout table{width:100%}.slidev-layout tr{border-color:#9ca3af33;border-bottom-width:1px}.slidev-layout th{text-align:left;font-weight:400}.slidev-layout a{border-style:dashed;border-color:currentColor;border-bottom-width:1px}.slidev-layout a:hover{color:var(--slidev-theme-primary) ;border-style:solid}.slidev-layout td,.slidev-layout th{padding:.75rem .5rem}.slidev-layout b,.slidev-layout strong{font-weight:600}.slidev-layout kbd{--un-bg-opacity:.05;background-color:rgb(156 163 175/var(--un-bg-opacity)) ;border-width:1px 1px 2px;border-color:#9ca3af33;border-radius:.25rem;padding:.125rem .25rem;font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.75rem;line-height:1rem}.slidev-layout h1,[dir=ltr] h1,.slidev-layout [dir=ltr] h1,.slidev-layout h6,[dir=ltr] h6,.slidev-layout [dir=ltr] h6{margin-left:-.05em;margin-right:0}.slidev-layout li,[dir=ltr] li,.slidev-layout [dir=ltr] li{margin-left:1.1em;margin-right:0;padding-left:.2em;padding-right:0}[dir=rtl] h1,.slidev-layout [dir=rtl] h1,[dir=rtl] h6,.slidev-layout [dir=rtl] h6{margin-left:0;margin-right:-.05em}[dir=rtl] li,.slidev-layout [dir=rtl] li{margin-left:0;margin-right:1.1em;padding-left:0;padding-right:.2em}.slidev-layout h1+p{opacity:.5;margin-top:-.5rem;margin-bottom:1rem}.slidev-layout p+h2,.slidev-layout ul+h2,.slidev-layout table+h2{margin-top:2.5rem}.slidev-layout h1{margin-bottom:1rem;margin-left:-.05em;font-size:2.25rem;line-height:2.5rem}.slidev-layout h2{font-size:1.875rem;line-height:2.25rem}.slidev-layout h3{font-size:1.5rem;line-height:2rem}.slidev-layout h4{font-size:1.25rem;line-height:1.75rem}.slidev-layout h5{font-size:1rem;line-height:1.5rem}.slidev-layout h6{letter-spacing:.1em;text-transform:uppercase;margin-left:-.05em;padding-top:.25rem;font-size:.875rem;font-weight:500;line-height:1.25rem}.slidev-layout h6:not(.opacity-100){opacity:.4}.slidev-layout.cover,.slidev-layout.intro{height:100%;display:grid}.slidev-layout.cover h1,.slidev-layout.intro h1{font-size:3.75rem;line-height:5rem}.slidev-layout.fact{text-align:center;height:100%;display:grid}.slidev-layout.fact h1{font-size:6rem;font-weight:700;line-height:1}.slidev-layout.fact h1+p{font-size:1.5rem;font-weight:700;line-height:2rem}.slidev-layout.statement{text-align:center;height:100%;display:grid}.slidev-layout.statement h1{font-size:3.75rem;font-weight:700;line-height:1}.slidev-layout.quote{height:100%;display:grid}.slidev-layout.quote h1+p{margin-top:.5rem}.slidev-layout.section h1{font-size:3.75rem;font-weight:500;line-height:5rem}:root{--prism-scheme:light;--prism-foreground:#6e6e6e;--prism-background:#f4f4f4;--prism-comment:#a8a8a8;--prism-string:#555;--prism-literal:#333;--prism-keyword:#000;--prism-function:#4f4f4f;--prism-deleted:#333;--prism-class:#333;--prism-builtin:#757575;--prism-property:#333;--prism-namespace:#4f4f4f;--prism-punctuation:#ababab;--prism-decorator:var(--prism-class);--prism-operator:var(--prism-punctuation);--prism-number:var(--prism-literal);--prism-boolean:var(--prism-literal);--prism-variable:var(--prism-literal);--prism-constant:var(--prism-literal);--prism-symbol:var(--prism-literal);--prism-interpolation:var(--prism-literal);--prism-selector:var(--prism-keyword);--prism-keyword-control:var(--prism-keyword);--prism-regex:var(--prism-string);--prism-json-property:var(--prism-property);--prism-inline-background:var(--prism-background);--prism-comment-style:italic;--prism-url-decoration:underline;--prism-line-number:#a5a5a5;--prism-line-number-gutter:#333;--prism-line-highlight-background:#eee;--prism-selection-background:#ddd;--prism-marker-color:var(--prism-foreground);--prism-marker-opacity:.4;--prism-marker-font-size:.8em;--prism-font-size:1em;--prism-line-height:1.5em;--prism-font-family:monospace;--prism-inline-font-size:var(--prism-font-size);--prism-block-font-size:var(--prism-font-size);--prism-tab-size:2;--prism-block-padding-x:1em;--prism-block-padding-y:1em;--prism-block-margin-x:0;--prism-block-margin-y:.5em;--prism-block-radius:.3em;--prism-inline-padding-x:.3em;--prism-inline-padding-y:.1em;--prism-inline-radius:.3em}div[class*=language-],pre[class*=language-],code[class*=language-]{font-size:var(--prism-font-size);font-family:var(--prism-font-family);text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:var(--prism-line-height);-moz-tab-size:var(--prism-tab-size);-o-tab-size:var(--prism-tab-size);tab-size:var(--prism-tab-size);-webkit-hyphens:none;hyphens:none;direction:ltr;color:var(--prism-foreground)!important}div[class*=language-],pre[class*=language-]{font-size:var(--prism-block-font-size);padding:var(--prism-block-padding-y) var(--prism-block-padding-x);margin:var(--prism-block-margin-y) var(--prism-block-margin-x);border-radius:var(--prism-block-radius);background:var(--prism-background);overflow:auto}:not(pre)>code[class*=language-]{font-size:var(--prism-inline-font-size);padding:var(--prism-inline-padding-y) var(--prism-inline-padding-x);border-radius:var(--prism-inline-radius);background:var(--prism-inline-background)}pre[class*=language-]::-moz-selection{background:var(--prism-selection-background)}pre[class*=language-] ::-moz-selection{background:var(--prism-selection-background)}code[class*=language-]::-moz-selection{background:var(--prism-selection-background)}code[class*=language-] ::-moz-selection{background:var(--prism-selection-background)}pre[class*=language-]::selection{background:var(--prism-selection-background)}pre[class*=language-] ::selection{background:var(--prism-selection-background)}code[class*=language-]::selection{background:var(--prism-selection-background)}code[class*=language-] ::selection{background:var(--prism-selection-background)}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:var(--prism-comment);font-style:var(--prism-comment-style)}.token.namespace{color:var(--prism-namespace)}.token.interpolation{color:var(--prism-interpolation)}.token.string{color:var(--prism-string)}.token.punctuation{color:var(--prism-punctuation)}.token.operator{color:var(--prism-operator)}.token.keyword.module,.token.keyword.control-flow{color:var(--prism-keyword-control)}.token.url,.token.symbol,.token.inserted{color:var(--prism-symbol)}.token.constant{color:var(--prism-constant)}.token.string.url{-webkit-text-decoration:var(--prism-url-decoration);text-decoration:var(--prism-url-decoration)}.token.boolean,.language-json .token.boolean{color:var(--prism-boolean)}.token.number,.language-json .token.number{color:var(--prism-number)}.token.variable{color:var(--prism-variable)}.token.keyword{color:var(--prism-keyword)}.token.atrule,.token.attr-value,.token.selector{color:var(--prism-selector)}.token.function{color:var(--prism-function)}.token.deleted{color:var(--prism-deleted)}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.class-name{color:var(--prism-class)}.token.tag,.token.builtin{color:var(--prism-builtin)}.token.attr-name,.token.property,.token.entity{color:var(--prism-property)}.language-json .token.property{color:var(--prism-json-property)}.token.regex{color:var(--prism-regex)}.token.decorator,.token.annotation{color:var(--prism-decorator)}.line-numbers .line-numbers-rows{border-right-color:var(--prism-line-number)}.line-numbers-rows>span:before{color:var(--prism-line-number-gutter)}.line-highlight{background:var(--prism-line-highlight-background)}.cm-s-vars.CodeMirror{background-color:var(--cm-background);color:var(--cm-foreground)}.cm-s-vars .CodeMirror-gutters{background:var(--cm-line-number-gutter);color:var(--cm-line-number);border:none}.cm-s-vars .CodeMirror-guttermarker,.cm-s-vars .CodeMirror-guttermarker-subtle,.cm-s-vars .CodeMirror-linenumber{color:var(--cm-line-number)}.cm-s-vars div.CodeMirror-selected,.cm-s-vars.CodeMirror-focused div.CodeMirror-selected{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-line::selection{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-line>span::selection{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-line>span>span::selection{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-line::-moz-selection{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-line>span::-moz-selection{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-line>span>span::-moz-selection{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-activeline-background{background:var(--cm-line-highlight-background)}.cm-s-vars .cm-keyword{color:var(--cm-keyword)}.cm-s-vars .cm-variable,.cm-s-vars .cm-variable-2,.cm-s-vars .cm-variable-3,.cm-s-vars .cm-type{color:var(--cm-variable)}.cm-s-vars .cm-builtin{color:var(--cm-builtin)}.cm-s-vars .cm-atom{color:var(--cm-literal)}.cm-s-vars .cm-number{color:var(--cm-number)}.cm-s-vars .cm-def{color:var(--cm-decorator)}.cm-s-vars .cm-string,.cm-s-vars .cm-string-2{color:var(--cm-string)}.cm-s-vars .cm-comment{color:var(--cm-comment)}.cm-s-vars .cm-tag{color:var(--cm-builtin)}.cm-s-vars .cm-meta{color:var(--cm-namespace)}.cm-s-vars .cm-attribute,.cm-s-vars .cm-property{color:var(--cm-property)}.cm-s-vars .cm-qualifier{color:var(--cm-keyword)}.cm-s-vars .cm-error{color:var(--prism-deleted)}.cm-s-vars .cm-operator,.cm-s-vars .cm-bracket{color:var(--cm-punctuation)}.cm-s-vars .CodeMirror-matchingbracket{text-decoration:underline}.cm-s-vars .CodeMirror-cursor{border-left:1px solid}:root{--cm-scheme:var(--prism-scheme);--cm-foreground:var(--prism-foreground);--cm-background:var(--prism-background);--cm-comment:var(--prism-comment);--cm-string:var(--prism-string);--cm-literal:var(--prism-literal);--cm-keyword:var(--prism-keyword);--cm-function:var(--prism-function);--cm-deleted:var(--prism-deleted);--cm-class:var(--prism-class);--cm-builtin:var(--prism-builtin);--cm-property:var(--prism-property);--cm-namespace:var(--prism-namespace);--cm-punctuation:var(--prism-punctuation);--cm-decorator:var(--prism-decorator);--cm-operator:var(--prism-operator);--cm-number:var(--prism-number);--cm-boolean:var(--prism-boolean);--cm-variable:var(--prism-variable);--cm-constant:var(--prism-constant);--cm-symbol:var(--prism-symbol);--cm-interpolation:var(--prism-interpolation);--cm-selector:var(--prism-selector);--cm-keyword-control:var(--prism-keyword-control);--cm-regex:var(--prism-regex);--cm-json-property:var(--prism-json-property);--cm-inline-background:var(--prism-inline-background);--cm-comment-style:var(--prism-comment-style);--cm-url-decoration:var(--prism-url-decoration);--cm-line-number:var(--prism-line-number);--cm-line-number-gutter:var(--prism-line-number-gutter);--cm-line-highlight-background:var(--prism-line-highlight-background);--cm-selection-background:var(--prism-selection-background);--cm-marker-color:var(--prism-marker-color);--cm-marker-opacity:var(--prism-marker-opacity);--cm-marker-font-size:var(--prism-marker-font-size);--cm-font-size:var(--prism-font-size);--cm-line-height:var(--prism-line-height);--cm-font-family:var(--prism-font-family);--cm-inline-font-size:var(--prism-inline-font-size);--cm-block-font-size:var(--prism-block-font-size);--cm-tab-size:var(--prism-tab-size);--cm-block-padding-x:var(--prism-block-padding-x);--cm-block-padding-y:var(--prism-block-padding-y);--cm-block-margin-x:var(--prism-block-margin-x);--cm-block-margin-y:var(--prism-block-margin-y);--cm-block-radius:var(--prism-block-radius);--cm-inline-padding-x:var(--prism-inline-padding-x);--cm-inline-padding-y:var(--prism-inline-padding-y);--cm-inline-radius:var(--prism-inline-radius);--prism-font-family:var(--slidev-code-font-family);--prism-background:var(--slidev-code-background)}html:not(.dark){--prism-foreground:#393a34;--prism-comment:#a0ada0;--prism-string:#b56959;--prism-literal:#2f8a89;--prism-number:#296aa3;--prism-keyword:#1c6b48;--prism-function:#6c7834;--prism-boolean:#1c6b48;--prism-constant:#a65e2b;--prism-deleted:#a14f55;--prism-class:#2993a3;--prism-builtin:#ab5959;--prism-property:#b58451;--prism-namespace:#b05a78;--prism-punctuation:#8e8f8b;--prism-decorator:#bd8f8f;--prism-regex:#ab5e3f;--prism-json-property:#698c96}html.dark{--prism-foreground:#d4cfbf;--prism-comment:#758575;--prism-string:#d48372;--prism-literal:#429988;--prism-keyword:#4d9375;--prism-boolean:#1c6b48;--prism-number:#6394bf;--prism-variable:#c2b36e;--prism-function:#a1b567;--prism-deleted:#a14f55;--prism-class:#54b1bf;--prism-builtin:#e0a569;--prism-property:#dd8e6e;--prism-namespace:#db889a;--prism-punctuation:#858585;--prism-decorator:#bd8f8f;--prism-regex:#ab5e3f;--prism-json-property:#6b8b9e;--prism-line-number:#888;--prism-line-number-gutter:#eee;--prism-line-highlight-background:#444;--prism-selection-background:#444}@font-face{font-display:block;font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2)format("woff2"),url(/assets/KaTeX_AMS-Regular-DMm9YOAa.woff)format("woff"),url(/assets/KaTeX_AMS-Regular-DRggAlZN.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2)format("woff2"),url(/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff)format("woff"),url(/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2)format("woff2"),url(/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff)format("woff"),url(/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2)format("woff2"),url(/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff)format("woff"),url(/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2)format("woff2"),url(/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff)format("woff"),url(/assets/KaTeX_Fraktur-Regular-CB_wures.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Main-Bold-Cx986IdX.woff2)format("woff2"),url(/assets/KaTeX_Main-Bold-Jm3AIy58.woff)format("woff"),url(/assets/KaTeX_Main-Bold-waoOVXN0.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2)format("woff2"),url(/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff)format("woff"),url(/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2)format("woff2"),url(/assets/KaTeX_Main-Italic-BMLOBm91.woff)format("woff"),url(/assets/KaTeX_Main-Italic-3WenGoN9.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Main-Regular-B22Nviop.woff2)format("woff2"),url(/assets/KaTeX_Main-Regular-Dr94JaBh.woff)format("woff"),url(/assets/KaTeX_Main-Regular-ypZvNtVU.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2)format("woff2"),url(/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff)format("woff"),url(/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(/assets/KaTeX_Math-Italic-t53AETM-.woff2)format("woff2"),url(/assets/KaTeX_Math-Italic-DA0__PXp.woff)format("woff"),url(/assets/KaTeX_Math-Italic-flOr_0UB.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:normal;font-weight:700;src:url(/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2)format("woff2"),url(/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff)format("woff"),url(/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:italic;font-weight:400;src:url(/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2)format("woff2"),url(/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff)format("woff"),url(/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:normal;font-weight:400;src:url(/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2)format("woff2"),url(/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff)format("woff"),url(/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Script-Regular-D3wIWfF6.woff2)format("woff2"),url(/assets/KaTeX_Script-Regular-D5yQViql.woff)format("woff"),url(/assets/KaTeX_Script-Regular-C5JkGWo-.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2)format("woff2"),url(/assets/KaTeX_Size1-Regular-C195tn64.woff)format("woff"),url(/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2)format("woff2"),url(/assets/KaTeX_Size2-Regular-oD1tc_U0.woff)format("woff"),url(/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA4oAA4AAAAAHbQAAA3TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgRQIDgmcDBEICo1oijYBNgIkA14LMgAEIAWJAAeBHAyBHBvbGiMRdnO0IkRRkiYDgr9KsJ1NUAf2kILNxgUmgqIgq1P89vcbIcmsQbRps3vCcXdYOKSWEPEKgZgQkprQQsxIXUgq0DqpGKmIvrgkeVGtEQD9DzAO29fM9jYhxZEsL2FeURH2JN4MIcTdO049NCVdxQ/w9NrSYFEBKTDKpLKfNkCGDc1RwjZLQcm3vqJ2UW9Xfa3tgAHz6ivp6vgC2yD4/6352ndnN0X0TL7seypkjZlMsjmZnf0Mm5Q+JykRWQBKCVCVPbARPXWyQtb5VgLB6Biq7/Uixcj2WGqdI8tGSgkuRG+t910GKP2D7AQH0DB9FMDW/obJZ8giFI3Wg8Cvevz0M+5m0rTh7XDBlvo9Y4vm13EXmfttwI4mBo1EG15fxJhUiCLbiiyCf/ZA6MFAhg3pGIZGdGIVjtPn6UcMk9A/UUr9PhoNsCENw1APAq0gpH73e+M+0ueyHbabc3vkbcdtzcf/fiy+NxQEjf9ud/ELBHAXJ0nk4z+MXH2Ev/kWyV4k7SkvpPc9Qr38F6RPWnM9cN6DJ0AdD1BhtgABtmoRoFCvPsBAumNm6soZG2Gk5GyVTo2sJncSyp0jQTYoR6WDvTwaaEcHsxHfvuWhHA3a6bN7twRKtcGok6NsCi7jYRrM2jExsUFMxMQYuJbMhuWNOumEJy9hi29Dmg5zMp/A5+hhPG19j1vBrq8JTLr8ki5VLPmG/PynJHVul440bxg5xuymHUFPBshC+nA9I1FmwbRBTNHAcik3Oae0cxKoI3MOriM42UrPe51nsaGxJ+WfXubAsP84aabUlQSJ1IiE0iPETLUU4CATgfXSCSpuRFRmCGbO+wSpAnzaeaCYW1VNEysRtuXCEL1kUFUbbtMv3Tilt/1c11jt3Q5bbMa84cpWipp8Elw3MZhOHsOlwwVUQM3lAR35JiFQbaYCRnMF2lxAWoOg2gyoIV4PouX8HytNIfLhqpJtXB4vjiViUI8IJ7bkC4ikkQvKksnOTKICwnqWSZ9YS5f0WCxmpgjbIq7EJcM4aI2nmhLNY2JIUgOjXZFWBHb+x5oh6cwb0Tv1ackHdKi0I9OO2wE9aogIOn540CCCziyhN+IaejtgAONKznHlHyutPrHGwCx9S6B8kfS4Mfi4Eyv7OU730bT1SCBjt834cXsf43zVjPUqqJjgrjeGnBxSG4aYAKFuVbeCfkDIjAqMb6yLNIbCuvXhMH2/+k2vkNpkORhR59N1CkzoOENvneIosjYmuTxlhUzaGEJQ/iWqx4dmwpmKjrwTiTGTCVozNAYqk/zXOndWxuWSmJkQpJw3pK5KX6QrLt5LATMqpmPAQhkhK6PUjzHUn7E0gHE0kPE0iKkolgkUx9SZmVAdDgpffdyJKg3k7VmzYGCwVXGz/tXmkOIp+vcWs+EMuhhvN0h9uhfzWJziBQmCREGSIFmQIkgVpAnSBRmC//6hkLZwaVhwxlrJSOdqlFtOYxlau9F2QN5Y98xmIAsiM1HVp2VFX+DHHGg6Ecjh3vmqtidX3qHI2qycTk/iwxSt5UzTmEP92ZBnEWTk4Mx8Mpl78ZDokxg/KWb+Q0QkvdKVmq3TMW+RXEgrsziSAfNXFMhDc60N5N9jQzjfO0kBKpUZl0ZmwJ41j/B9Hz6wmRaJB84niNmQrzp9eSlQCDDzazGDdVi3P36VZQ+Jy4f9UBNp+3zTjqI4abaFAm+GShVaXlsGdF3FYzZcDI6cori4kMxUECl9IjJZpzkvitAoxKue+90pDMvcKRxLl53TmOKCmV/xRolNKSqqUxc6LStOETmFOiLZZptlZepcKiAzteG8PEdpnQpbOMNcMsR4RR2Bs0cKFEvSmIjAFcnarqwUL4lDhHmnVkwu1IwshbiCcgvOheZuYyOteufZZwlcTlLgnZ3o/WcYdzZHW/WGaqaVfmTZ1aWCceJjkbZqsfbkOtcFlUZM/jy+hXHDbaUobWqqXaeWobbLO99yG5N3U4wxco0rQGGcOLASFMXeJoham8M+/x6O2WywK2l4HGbq1CoUyC/IZikQhdq3SiuNrvAEj0AVu9x2x3lp/xWzahaxidezFVtdcb5uEnzyl0ZmYiuKI0exvCd4Xc9CV1KB0db00z92wDPde0kukbvZIWN6jUWFTmPIC/Y4UPCm8UfDTFZpZNon1qLFTkBhxzB+FjQRA2Q/YRJT8pQigslMaUpFyAG8TMlXigiqmAZX4xgijKjRlGpLE0GdplRfCaJo0JQaSxNBk6ZmMzcya0FmrcisDdn0Q3HI2sWSppYigmlM1XT/kLQZSNpMJG0WkjYbSZuDpM1F0uYhFc1HxU4m1QJjDK6iL0S5uSj5rgXc3RejEigtcRBtqYPQsiTskmO5vosV+q4VGIKbOkDg0jtRrq+Em1YloaTFar3EGr1EUC8R0kus1Uus00usL97ABr2BjXoDm/QGNhuWtMVBKOwg/i78lT7hBsAvDmwHc/ao3vmUbBmhjeYySZNWvGkfZAgISDSaDo1SVpzGDsAEkF8B+gEapViUoZgUWXcRIGFZNm6gWbAKk0bp0k1MHG9fLYtV4iS2SmLEQFARzRcnf9PUS0LVn05/J9MiRRBU3v2IrvW974v4N00L7ZMk0wXP1409CHo/an8zTRHD3eSJ6m8D4YMkZNl3M79sqeuAsr/m3f+8/yl7A50aiAEJgeBeMWzu7ui9UfUBCe2TIqZIoOd/3/udRBOQidQZUERzb2/VwZN1H/Sju82ew2H2Wfr6qvfVf3hqwDvAIpkQVFy4B9Pe9e4/XvPeceu7h3dvO56iJPf0+A6cqA2ip18ER+iFgggiuOkvj24bby0N9j2UHIkgqIt+sVgfodC4YghLSMjSZbH0VR/6dMDrYJeKHilKTemt6v6kvzvn3/RrdWtr0GoN/xL+Sex/cPYLUpepx9cz/D46UPU5KXgAQa+NDps1v6J3xP1i2HtaDB0M9aX2deA7SYff//+gUCovMmIK/qfsFcOk+4Y5ZN97XlG6zebqtMbKgeRFi51vnxTQYBUik2rS/Cn6PC8ADR8FGxsRPB82dzfND90gIcshOcYUkfjherBz53odpm6TP8txlwOZ71xmfHHOvq053qFF/MRlS3jP0ELudrf2OeN8DHvp6ZceLe8qKYvWz/7yp0u4dKPfli3CYq0O13Ih71mylJ80tOi10On8wi+F4+LWgDPeJ30msSQt9/vkmHq9/Lvo2b461mP801v3W4xTcs6CbvF9UDdrSt+A8OUbpSh55qAUFXWznBBfdeJ8a4d7ugT5tvxUza3h9m4H7ptTqiG4z0g5dc0X29OcGlhpGFMpQo9ytTS+NViZpNdvU4kWx+LKxNY10kQ1yqGXrhe4/1nvP7E+nd5A92TtaRplbHSqoIdOqtRWti+fkB5/n1+/VvCmz12pG1kpQWsfi1ftlBobm0bpngs16CHkbIwdLnParxtTV3QYRlfJ0KFskH7pdN/YDn+yRuSd7sNH3aO0DYPggk6uWuXrfOc+fa3VTxFVvKaNxHsiHmsXyCLIE5yuOeN3/Jdf8HBL/5M6shjyhxHx9BjB1O0+4NLOnjLLSxwO7ukN4jMbOIcD879KLSi6Pk61Oqm2377n8079PXEEQ7cy7OKEC9nbpet118fxweTafpt69x/Bt8UqGzNQt7aelpc44dn5cqhwf71+qKp/Zf/+a0zcizOUWpl/iBcSXip0pplkatCchoH5c5aUM8I7/dWxAej8WicPL1URFZ9BDJelUwEwTkGqUhgSlydVes95YdXvhh9Gfz/aeFWvgVb4tuLbcv4+wLdutVZv/cUonwBD/6eDlE0aSiKK/uoH3+J1wDE/jMVqY2ysGufN84oIXB0sPzy8ollX/LegY74DgJXJR57sn+VGza0x3DnuIgABFM15LmajjjsNlYj+JEZGbuRYcAMOWxFkPN2w6Wd46xo4gVWQR/X4lyI/R6K/YK0110GzudPRW7Y+UOBGTfNNzHeYT0fiH0taunBpq9HEW8OKSaBGj21L0MqenEmNRWBAWDWAk4CpNoEZJ2tTaPFgbQYj8HxtFilErs3BTRwT8uO1NXQaWfIotchmPkAF5mMBAliEmZiOGVgCG9LgRzpscMAOOwowlT3JhusdazXGSC/hxR3UlmWVwWHpOIKheqONvjyhSiTHIkVUco5bnji8m//zL7PKaT1Vl5I6UE609f+gkr6MZKVyKc7zJRmCahLsdlyA5fdQkRSan9LgnnLEyGSkaKJCJog0wAgvepWBt80+1yKln1bMVtCljfNWDueKLsWwaEbBSfSPTEmVRsUcYYMnEjcjeyCZzBXK9E9BYBXLKjOSpUDR+nEV3TFSUdQaz+ot98QxgXwx0GQ+EEUAKB2qZPkQQ0GqFD8UPFMqyaCHM24BZmSGic9EYMagKizOw9Hz50DMrDLrqqLkTAhplMictiCAx5S3BIUQdeJeLnBy2CNtMfz6cV4u8XKoFZQesbf9YZiIERiHjaNodDW6LgcirX/mPnJIkBGDUpTBhSa0EIr38D5hCIszhCM8URGBqImoWjpvpt1ebu/v3Gl3qJfMnNM+9V+kiRFyROTPHQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC)format("woff2"),url(/assets/KaTeX_Size3-Regular-CTq5MqoE.woff)format("woff"),url(/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2)format("woff2"),url(/assets/KaTeX_Size4-Regular-BF-4gkZK.woff)format("woff"),url(/assets/KaTeX_Size4-Regular-DWFBv043.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2)format("woff2"),url(/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff)format("woff"),url(/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf)format("truetype")}.katex{text-indent:0;text-rendering:auto;font:1.21em/1.2 KaTeX_Main,Times New Roman,serif;position:relative}.katex *{border-color:currentColor;-ms-high-contrast-adjust:none!important}.katex .katex-version:after{content:"0.17.0"}.katex .katex-mathml{clip-path:inset(50%);border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.katex .katex-html>.newline{display:block}.katex .base{white-space:nowrap;width:min-content;position:relative}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .mathsfit,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;table-layout:fixed;display:inline-table}.katex .vlist-r{display:table-row}.katex .vlist{vertical-align:bottom;display:table-cell;position:relative}.katex .vlist>span{height:0;display:block;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{width:0;overflow:hidden}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{vertical-align:bottom;width:2px;min-width:2px;font-size:1px;display:table-cell}.katex .vbox{flex-direction:column;align-items:baseline;display:inline-flex}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{flex-direction:row;display:inline-flex}.katex .thinbox{width:0;max-width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;width:100%;display:inline-block}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .smash{line-height:0;display:inline}.katex .clap,.katex .llap,.katex .rlap{width:0;position:relative}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;width:100%;display:inline-block}.katex .hdashline{border-bottom-style:dashed;width:100%;display:inline-block}.katex .sqrt>.root{margin-left:.277778em;margin-right:-.555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.833333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.16667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.33333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.66667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.45667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.14667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.714286em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.857143em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.14286em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.28571em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.42857em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.71429em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.05714em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.46857em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.96286em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.55429em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.11111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.33333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.30444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.76444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.416667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.583333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.833333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.72833em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.07333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.347222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.416667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.486111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.694444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.833333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.44028em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.72778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.289352em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.347222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.405093em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.462963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.520833em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.578704em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.694444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.833333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.20023em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.43981em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.24108em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.289296em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.337512em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.385728em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.433944em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.48216em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.578592em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.694311em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.833173em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.19961em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.200965em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.241158em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.281351em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.321543em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.361736em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.401929em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.482315em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.578778em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.694534em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.833601em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{width:.12em;display:inline-block}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{min-width:1px;display:inline-block}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;height:inherit;width:100%;display:block;position:absolute}.katex svg path{stroke:none}.katex svg{fill-rule:nonzero;fill-opacity:1;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex img{border-style:none;min-width:0;max-width:none;min-height:0;max-height:none}.katex .stretchy{width:100%;display:block;position:relative;overflow:hidden}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{width:100%;position:relative;overflow:hidden}.katex .halfarrow-left{width:50.2%;position:absolute;left:0;overflow:hidden}.katex .halfarrow-right{width:50.2%;position:absolute;right:0;overflow:hidden}.katex .brace-left{width:25.1%;position:absolute;left:0;overflow:hidden}.katex .brace-center{width:50%;position:absolute;left:25%;overflow:hidden}.katex .brace-right{width:25.1%;position:absolute;right:0;overflow:hidden}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{box-sizing:border-box;border:.04em solid}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{box-sizing:border-box;border-top:.049em solid;border-right:.049em solid;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{text-align:left;display:inline-block;position:absolute;right:calc(50% + .3em)}.katex .cd-label-right{text-align:right;display:inline-block;position:absolute;left:calc(50% + .3em)}.katex-display{text-align:center;margin:1em 0;display:block}.katex-display>.katex{text-align:center;white-space:nowrap;display:block}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{text-align:left;padding-left:2em}body{counter-reset:katexEqnNo mmlEqnNo}.i-carbon-camera{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M29 26H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h6.46l1.71-2.55A1 1 0 0 1 12 4h8a1 1 0 0 1 .83.45L22.54 7H29a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1M4 24h24V9h-6a1 1 0 0 1-.83-.45L19.46 6h-6.92l-1.71 2.55A1 1 0 0 1 10 9H4Z'/%3E%3Cpath fill='currentColor' d='M16 22a6 6 0 1 1 6-6a6 6 0 0 1-6 6m0-10a4 4 0 1 0 4 4a4 4 0 0 0-4-4'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon-magic-wand{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M29.414 24L12 6.586a2.05 2.05 0 0 0-2.828 0L6.586 9.172a2 2 0 0 0 0 2.828l17.413 17.414a2 2 0 0 0 2.828 0l2.587-2.586a2 2 0 0 0 0-2.828M8 10.586L10.586 8l5 5l-2.587 2.587zM25.413 28l-11-10.999L17 14.414l11 11ZM2 16l2-2l2 2l-2 2zM14 4l2-2l2 2l-2 2zM2 4l2-2l2 2l-2 2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon-magic-wand-filled{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M29.414 24L12 6.586a2.05 2.05 0 0 0-2.828 0L6.586 9.172a2 2 0 0 0 0 2.828l17.413 17.414a2 2 0 0 0 2.828 0l2.587-2.586a2 2 0 0 0 0-2.828M8 10.586L10.586 8l5 5l-2.587 2.587zM2 16l2-2l2 2l-2 2zM14 4l2-2l2 2l-2 2zM2 4l2-2l2 2l-2 2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon-moon{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M13.503 5.414a15.076 15.076 0 0 0 11.593 18.194a11.1 11.1 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1 1 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.07 13.07 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon-sun{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6M5.394 6.813L6.81 5.399l3.505 3.506L8.9 10.319zM2 15.005h5v2H2zm3.394 10.193L8.9 21.692l1.414 1.414l-3.505 3.506zM15 25.005h2v5h-2zm6.687-1.9l1.414-1.414l3.506 3.506l-1.414 1.414zm3.313-8.1h5v2h-5zm-3.313-6.101l3.506-3.506l1.414 1.414l-3.506 3.506zM15 2.005h2v5h-2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:apps{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M8 4v4H4V4Zm2-2H2v8h8Zm8 2v4h-4V4Zm2-2h-8v8h8Zm8 2v4h-4V4Zm2-2h-8v8h8ZM8 14v4H4v-4Zm2-2H2v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8ZM8 24v4H4v-4Zm2-2H2v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:arrow-down{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M24.59 16.59L17 24.17V4h-2v20.17l-7.59-7.58L6 18l10 10l10-10z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:arrow-left{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m14 26l1.41-1.41L7.83 17H28v-2H7.83l7.58-7.59L14 6L4 16z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:arrow-right{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m18 6l-1.43 1.393L24.15 15H4v2h20.15l-7.58 7.573L18 26l10-10z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:arrow-up{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 4L6 14l1.41 1.41L15 7.83V28h2V7.83l7.59 7.58L26 14z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:arrow-up-right{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M10 6v2h12.59L6 24.59L7.41 26L24 9.41V22h2V6z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:catalog{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 2H8a2 2 0 0 0-2 2v4H4v2h2v5H4v2h2v5H4v2h2v4a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2m0 26H8v-4h2v-2H8v-5h2v-2H8v-5h2V8H8V4h18Z'/%3E%3Cpath fill='currentColor' d='M14 8h8v2h-8zm0 7h8v2h-8zm0 7h8v2h-8z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:checkbox{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 4H6a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2M6 26V6h20v20Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:checkmark{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m13 24l-9-9l1.414-1.414L13 21.171L26.586 7.586L28 9z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:close{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17.414 16L24 9.414L22.586 8L16 14.586L9.414 8L8 9.414L14.586 16L8 22.586L9.414 24L16 17.414L22.586 24L24 22.586z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:close-outline{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 2C8.2 2 2 8.2 2 16s6.2 14 14 14s14-6.2 14-14S23.8 2 16 2m0 26C9.4 28 4 22.6 4 16S9.4 4 16 4s12 5.4 12 12s-5.4 12-12 12'/%3E%3Cpath fill='currentColor' d='M21.4 23L16 17.6L10.6 23L9 21.4l5.4-5.4L9 10.6L10.6 9l5.4 5.4L21.4 9l1.6 1.6l-5.4 5.4l5.4 5.4z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:cursor-1,[i-carbon\:cursor-1=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M23 28a1 1 0 0 1-.71-.29l-6.13-6.14l-3.33 5a1 1 0 0 1-1 .44a1 1 0 0 1-.81-.7l-6-20A1 1 0 0 1 6.29 5l20 6a1 1 0 0 1 .7.81a1 1 0 0 1-.44 1l-5 3.33l6.14 6.13a1 1 0 0 1 0 1.42l-4 4A1 1 0 0 1 23 28m0-2.41L25.59 23l-7.16-7.15l5.25-3.5L7.49 7.49l4.86 16.19l3.5-5.25Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:document-pdf{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M30 18v-2h-6v10h2v-4h3v-2h-3v-2zm-11 8h-4V16h4a3.003 3.003 0 0 1 3 3v4a3.003 3.003 0 0 1-3 3m-2-2h2a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-2Zm-6-8H6v10h2v-3h3a2.003 2.003 0 0 0 2-2v-3a2 2 0 0 0-2-2m-3 5v-3h3l.001 3Z'/%3E%3Cpath fill='currentColor' d='M22 14v-4a.91.91 0 0 0-.3-.7l-7-7A.9.9 0 0 0 14 2H4a2.006 2.006 0 0 0-2 2v24a2 2 0 0 0 2 2h16v-2H4V4h8v6a2.006 2.006 0 0 0 2 2h6v2Zm-8-4V4.4l5.6 5.6Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:download{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 24v4H6v-4H4v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2v-4Zm0-10l-1.41-1.41L17 20.17V2h-2v18.17l-7.59-7.58L6 14l10 10z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:drop-photo{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M19 26a4 4 0 1 1 4-4a4.005 4.005 0 0 1-4 4m0-6a2 2 0 1 0 2 2a2 2 0 0 0-2-2'/%3E%3Cpath fill='currentColor' d='M27 29H11a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2h3.28l.543-1.632A2 2 0 0 1 16.721 13h4.558a2 2 0 0 1 1.898 1.368L23.72 16H27a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2m-16-2h16v-9h-4.72l-1-3h-4.56l-1 3H11Zm16-16h2v2h-2zm0-4h2v2h-2zm0-4h2v2h-2zm-4 0h2v2h-2zm-4 0h2v2h-2zm-4 0h2v2h-2zm-4 0h2v2h-2zM7 3h2v2H7zM3 3h2v2H3zm0 4h2v2H3zm0 4h2v2H3zm0 4h2v2H3zm0 4h2v2H3zm0 4h2v2H3zm0 4h2v2H3z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:edit{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M2 26h28v2H2zM25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4zm-5-5L24 7.6l-3 3L17.4 7zM6 22v-3.6l10-10l3.6 3.6l-10 10z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:erase{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M7 27h23v2H7zm20.38-16.49l-7.93-7.92a2 2 0 0 0-2.83 0l-14 14a2 2 0 0 0 0 2.83L7.13 24h9.59l10.66-10.66a2 2 0 0 0 0-2.83M15.89 22H8l-4-4l6.31-6.31l7.93 7.92Zm3.76-3.76l-7.92-7.93L18 4l8 7.93Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:error{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M2 16A14 14 0 1 0 16 2A14 14 0 0 0 2 16m23.15 7.75L8.25 6.85a12 12 0 0 1 16.9 16.9M8.24 25.16a12 12 0 0 1-1.4-16.89l16.89 16.89a12 12 0 0 1-15.49 0'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:help{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2m0 26a12 12 0 1 1 12-12a12 12 0 0 1-12 12'/%3E%3Ccircle cx='16' cy='23.5' r='1.5' fill='currentColor'/%3E%3Cpath fill='currentColor' d='M17 8h-1.5a4.49 4.49 0 0 0-4.5 4.5v.5h2v-.5a2.5 2.5 0 0 1 2.5-2.5H17a2.5 2.5 0 0 1 0 5h-2v4.5h2V17a4.5 4.5 0 0 0 0-9'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:information{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17 22v-8h-4v2h2v6h-3v2h8v-2zM16 8a1.5 1.5 0 1 0 1.5 1.5A1.5 1.5 0 0 0 16 8'/%3E%3Cpath fill='currentColor' d='M16 30a14 14 0 1 1 14-14a14 14 0 0 1-14 14m0-26a12 12 0 1 0 12 12A12 12 0 0 0 16 4'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:list-boxes{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 8h14v2H16zm0 14h14v2H16zm-6-8H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2M4 6v6h6.001L10 6Zm6 22H4a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2m-6-8v6h6.001L10 20Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:maximize{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M20 2v2h6.586L18 12.582L19.414 14L28 5.414V12h2V2zm-6 17.416L12.592 18L4 26.586V20H2v10h10v-2H5.414z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:minimize{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M4 18v2h6.586L2 28.582L3.414 30L12 21.414V28h2V18zM30 3.416L28.592 2L20 10.586V4h-2v10h10v-2h-6.586z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:pause{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 8v16H8V8zm0-2H8a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2m12 2v16h-4V8zm0-2h-4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:pen{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M27.307 6.107L30 3.414L28.586 2l-2.693 2.693L24.8 3.6a1.933 1.933 0 0 0-2.8 0l-18 18V28h6.4l18-18a1.933 1.933 0 0 0 0-2.8ZM9.6 26H6v-3.6L23.4 5L27 8.6ZM9 11.586L16.586 4L18 5.414L10.414 13z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:pin{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M28.59 13.31L30 11.9L20 2l-1.31 1.42l1.18 1.18l-11.49 9.72l-1.72-1.71L5.25 14l5.66 5.68L2 28.58L3.41 30l8.91-8.91L18 26.75l1.39-1.42l-1.71-1.71l9.72-11.49ZM16.26 22.2L9.8 15.74L21.29 6L26 10.71Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:pin-filled{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M28.586 13.314L30 11.9L20 2l-1.314 1.415l1.186 1.186L8.38 14.322l-1.716-1.715L5.25 14l5.657 5.677L2 28.583L3.41 30l8.911-8.909L18 26.748l1.393-1.414l-1.716-1.716l9.724-11.49Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:play{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M7 28a1 1 0 0 1-1-1V5a1 1 0 0 1 1.482-.876l20 11a1 1 0 0 1 0 1.752l-20 11A1 1 0 0 1 7 28M8 6.69v18.62L24.925 16Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:presentation-file{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M15 10h2v8h-2zm5 4h2v4h-2zm-10-2h2v6h-2z'/%3E%3Cpath fill='currentColor' d='M25 4h-8V2h-2v2H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8v6h-4v2h10v-2h-4v-6h8a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 16H7V6h18Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:radio-button{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2m0 26a12 12 0 1 1 12-12a12 12 0 0 1-12 12'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:redo{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 10h12.185l-3.587-3.586L22 5l6 6l-6 6l-1.402-1.415L24.182 12H12a6 6 0 0 0 0 12h8v2h-8a8 8 0 0 1 0-16'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:renew{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 10H6.78A11 11 0 0 1 27 16h2A13 13 0 0 0 6 7.68V4H4v8h8Zm8 12h5.22A11 11 0 0 1 5 16H3a13 13 0 0 0 23 8.32V28h2v-8h-8Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:settings-adjust{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3s3 1.3 3 3s-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3s-3-1.3-3-3s1.3-3 3-3'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:template{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 6v4H6V6zm0-2H6a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2M10 16v10H6V16zm0-2H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V16a2 2 0 0 0-2-2m16 2v10H16V16zm0-2H16a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V16a2 2 0 0 0-2-2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:text-annotation-toggle{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath d='M29.537 13.76l-3.297-3.297a1.586 1.586 0 0 0-2.24 0L10 24.467V30h5.533l14.004-14a1.586 1.586 0 0 0 0-2.24zM14.704 28H12v-2.704l9.44-9.441l2.705 2.704zM25.56 17.145l-2.704-2.704l2.267-2.267l2.704 2.704z' fill='currentColor'/%3E%3Cpath d='M11 17h2v-7h3V8H8v2h3v7z' fill='currentColor'/%3E%3Cpath d='M8 20H4V4h16v4h2V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4z' fill='currentColor'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:time{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 30a14 14 0 1 1 14-14a14 14 0 0 1-14 14m0-26a12 12 0 1 0 12 12A12 12 0 0 0 16 4'/%3E%3Cpath fill='currentColor' d='M20.59 22L15 16.41V7h2v8.58l5 5.01z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:timer{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M15 11h2v9h-2zm-2-9h6v2h-6z'/%3E%3Cpath fill='currentColor' d='m28 9l-1.42-1.41l-2.25 2.25a10.94 10.94 0 1 0 1.18 1.65ZM16 26a9 9 0 1 1 9-9a9 9 0 0 1-9 9'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:trash-can{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 12h2v12h-2zm6 0h2v12h-2z'/%3E%3Cpath fill='currentColor' d='M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6Zm4 22V8h16v20Zm4-26h8v2h-8z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:undo{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M20 10H7.815l3.587-3.586L10 5l-6 6l6 6l1.402-1.415L7.818 12H20a6 6 0 0 1 0 12h-8v2h8a8 8 0 0 0 0-16'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:user-speaker{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M29.415 19L27.7 17.285A3 3 0 0 0 28 16a3 3 0 1 0-3 3a3 3 0 0 0 1.286-.3L28 20.414V28h-6v-3a7.01 7.01 0 0 0-7-7H9a7.01 7.01 0 0 0-7 7v5h28v-9.586A2 2 0 0 0 29.415 19M4 25a5.006 5.006 0 0 1 5-5h6a5.006 5.006 0 0 1 5 5v3H4Z'/%3E%3Cpath fill='currentColor' d='M12 4a5 5 0 1 1-5 5a5 5 0 0 1 5-5m0-2a7 7 0 1 0 7 7a7 7 0 0 0-7-7'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:zoom-in{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M18 12h-4V8h-2v4H8v2h4v4h2v-4h4z'/%3E%3Cpath fill='currentColor' d='M21.448 20A10.86 10.86 0 0 0 24 13a11 11 0 1 0-11 11a10.86 10.86 0 0 0 7-2.552L27.586 29L29 27.586ZM13 22a9 9 0 1 1 9-9a9.01 9.01 0 0 1-9 9'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:zoom-out{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M8 12h10v2H8z'/%3E%3Cpath fill='currentColor' d='M21.448 20A10.86 10.86 0 0 0 24 13a11 11 0 1 0-11 11a10.86 10.86 0 0 0 7-2.552L27.586 29L29 27.586ZM13 22a9 9 0 1 1 9-9a9.01 9.01 0 0 1-9 9'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-ph-cursor-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M213.66 201L201 213.66a8 8 0 0 1-11.31 0l-51.31-51.31a8 8 0 0 0-13 2.46l-17.82 46.41a8 8 0 0 1-14.85-.71L40.41 50.44a8 8 0 0 1 10-10l160.1 52.24a8 8 0 0 1 .71 14.85l-46.41 17.82a8 8 0 0 0-2.46 13l51.31 51.31a8 8 0 0 1 0 11.34' opacity='.2'/%3E%3Cpath d='M168 132.69L214.08 115l.33-.13a16 16 0 0 0-1.41-29.8L52.92 32.8A15.95 15.95 0 0 0 32.8 52.92L85.07 213a15.82 15.82 0 0 0 14.41 11h.78a15.84 15.84 0 0 0 14.61-9.59l.13-.33L132.69 168L184 219.31a16 16 0 0 0 22.63 0l12.68-12.68a16 16 0 0 0 0-22.63ZM195.31 208L144 156.69a16 16 0 0 0-26 4.93c0 .11-.09.22-.13.32l-17.65 46L48 48l159.85 52.2l-45.95 17.64l-.32.13a16 16 0 0 0-4.93 26L208 195.31Z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-ph-cursor-fill{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m220.49 207.8l-12.69 12.69a12 12 0 0 1-17 0l-56.57-56.57L115 214.08l-.13.33a15.84 15.84 0 0 1-14.61 9.59h-.78a15.82 15.82 0 0 1-14.41-11L32.8 52.92A15.95 15.95 0 0 1 52.92 32.8L213 85.07a16 16 0 0 1 1.41 29.8l-.33.13l-50.16 19.27l56.57 56.56a12 12 0 0 1 0 16.97'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-ph\:arrow-down-bold{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m208.49 152.49l-72 72a12 12 0 0 1-17 0l-72-72a12 12 0 0 1 17-17L116 187V40a12 12 0 0 1 24 0v147l51.51-51.52a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-ph\:arrow-up-bold{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M208.49 120.49a12 12 0 0 1-17 0L140 69v147a12 12 0 0 1-24 0V69l-51.51 51.49a12 12 0 0 1-17-17l72-72a12 12 0 0 1 17 0l72 72a12 12 0 0 1 0 17'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-ri-check-line,[i-ri-check-line=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m10 15.17l9.192-9.191l1.414 1.414L10 17.999l-6.364-6.364l1.414-1.414z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-ri-corner-down-right-line,[i-ri-corner-down-right-line=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M5 14V5h2v7h10.172l-3.95-3.95l1.414-1.414L21 13l-6.364 6.364l-1.414-1.414l3.95-3.95z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-svg-spinners-90-ring-with-bg{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z' opacity='.25'/%3E%3Cpath fill='currentColor' d='M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z'%3E%3CanimateTransform attributeName='transform' dur='0.75s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/path%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-vscode-icons\:file-type-angular{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cdefs%3E%3ClinearGradient id='SVGL3eT8dEE' x1='49.009' x2='225.83' y1='213.75' y2='129.72' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23e40035'/%3E%3Cstop offset='.24' stop-color='%23f60a48'/%3E%3Cstop offset='.352' stop-color='%23f20755'/%3E%3Cstop offset='.494' stop-color='%23dc087d'/%3E%3Cstop offset='.745' stop-color='%239717e7'/%3E%3Cstop offset='1' stop-color='%236c00f5'/%3E%3C/linearGradient%3E%3ClinearGradient id='SVGXdyn1ciA' x1='41.025' x2='156.74' y1='28.344' y2='160.34' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23ff31d9'/%3E%3Cstop offset='1' stop-color='%23ff5be1' stop-opacity='0'/%3E%3C/linearGradient%3E%3CclipPath id='SVGqpIVPcCN'%3E%3Cpath fill='%23fff' d='M0 0h223v236H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg clip-path='url(%23SVGqpIVPcCN)' transform='translate(2.76 1.986)scale(.11923)'%3E%3Cpath fill='url(%23SVGL3eT8dEE)' d='m222.08 39.192l-8.019 125.92L137.39-.008zm-53.105 162.82l-57.933 33.056l-57.934-33.056l11.783-28.556h92.301zm-57.933-139.34l30.357 73.803H80.684zm-103.1 102.44L.005 39.192L84.695 0z'/%3E%3Cpath fill='url(%23SVGXdyn1ciA)' d='m222.08 39.192l-8.019 125.92L137.39-.008zm-53.105 162.82l-57.933 33.056l-57.934-33.056l11.783-28.556h92.301zm-57.933-139.34l30.357 73.803H80.684zm-103.1 102.44L.005 39.192L84.695 0z'/%3E%3C/g%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-bun{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%23fbf0df' d='M29 17c0 5.65-5.82 10.23-13 10.23S3 22.61 3 17c0-3.5 2.24-6.6 5.66-8.44S14.21 4.81 16 4.81s3.32 1.54 7.34 3.71C26.76 10.36 29 13.46 29 17'/%3E%3Cpath fill='none' stroke='%23000' d='M16 27.65c7.32 0 13.46-4.65 13.46-10.65c0-3.72-2.37-7-5.89-8.85c-1.39-.75-2.46-1.41-3.37-2l-1.13-.69A6.14 6.14 0 0 0 16 4.35a6.9 6.9 0 0 0-3.3 1.23c-.42.24-.86.51-1.32.8c-.87.54-1.83 1.13-3 1.73C4.91 10 2.54 13.24 2.54 17c0 6 6.14 10.65 13.46 10.65Z'/%3E%3Cellipse cx='21.65' cy='18.62' fill='%23febbd0' rx='2.17' ry='1.28'/%3E%3Cellipse cx='10.41' cy='18.62' fill='%23febbd0' rx='2.17' ry='1.28'/%3E%3Cpath fill-rule='evenodd' d='M11.43 18.11a2 2 0 1 0-2-2.05a2.05 2.05 0 0 0 2 2.05m9.2 0a2 2 0 1 0-2-2.05a2 2 0 0 0 2 2.05'/%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M10.79 16.19a.77.77 0 1 0-.76-.77a.76.76 0 0 0 .76.77m9.2 0a.77.77 0 1 0 0-1.53a.77.77 0 0 0 0 1.53'/%3E%3Cpath fill='%23b71422' stroke='%23000' stroke-width='.75' d='M18.62 19.67a3.3 3.3 0 0 1-1.09 1.75a2.48 2.48 0 0 1-1.5.69a2.53 2.53 0 0 1-1.5-.69a3.28 3.28 0 0 1-1.08-1.75a.26.26 0 0 1 .29-.3h4.58a.27.27 0 0 1 .3.3Z'/%3E%3Cpath fill='%23ccbea7' fill-rule='evenodd' d='M14.93 5.75a6.1 6.1 0 0 1-2.09 4.62c-.1.09 0 .27.11.22c1.25-.49 2.94-1.94 2.23-4.88c-.03-.15-.25-.11-.25.04m.85 0a6 6 0 0 1 .57 5c0 .13.12.24.21.13c.83-1 1.54-3.11-.59-5.31c-.1-.11-.27.04-.19.17Zm1-.06a6.1 6.1 0 0 1 2.53 4.38c0 .14.21.17.24 0c.34-1.3.15-3.51-2.66-4.66c-.12-.02-.21.18-.09.27ZM9.94 9.55a6.27 6.27 0 0 0 3.89-3.33c.07-.13.28-.08.25.07c-.64 3-2.79 3.59-4.13 3.51c-.14-.01-.14-.21-.01-.25'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-css{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%23639' d='M1.995 1.994h23.52a4.48 4.48 0 0 1 4.48 4.48v19.04a4.48 4.48 0 0 1-4.48 4.48H6.475a4.48 4.48 0 0 1-4.48-4.48Z'/%3E%3Cpath fill='%23fff' d='M9.079 24.87v-4.704c0-1.876 1.204-2.884 3.024-2.884c1.792-.028 2.912 1.148 2.856 3.136h-2.072c.056-.756-.28-1.316-.84-1.288c-.7 0-.896.476-.896 1.372v4.088c0 .868.28 1.288.896 1.316c.644 0 .896-.644.84-1.372h2.072c.112 2.044-1.176 3.248-2.996 3.22c-1.764 0-2.884-.98-2.884-2.884m6.636-.336h1.932c.028.896.308 1.456.924 1.456s.84-.364.84-1.204c0-.7-.308-1.092-1.064-1.456l-.728-.336c-1.288-.616-1.82-1.372-1.82-2.884c0-1.68 1.064-2.856 2.8-2.856s2.66 1.204 2.688 3.164h-1.876c0-.812-.168-1.372-.784-1.372c-.56 0-.84.28-.84.98s.252.98.924 1.26l.672.308c1.428.672 2.044 1.54 2.044 3.164c0 1.932-1.092 2.996-2.884 2.996s-2.8-1.232-2.828-3.22m6.328 0h1.96c0 .896.308 1.456.896 1.456s.84-.364.84-1.204c0-.7-.28-1.092-1.064-1.456l-.728-.336c-1.288-.616-1.792-1.372-1.792-2.884c0-1.68 1.036-2.856 2.8-2.856s2.632 1.204 2.688 3.164h-1.876c-.028-.812-.196-1.372-.812-1.372c-.56 0-.812.28-.812.98s.224.98.896 1.26l.7.308c1.4.672 2.016 1.54 2.016 3.164c0 1.932-1.092 2.996-2.884 2.996s-2.8-1.232-2.828-3.22'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-deno{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill-rule='evenodd' d='M4.45 21.34A12.5 12.5 0 0 1 3.27 16a12 12 0 0 1 .09-1.46a11 11 0 0 1 .24-1.42a12.75 12.75 0 0 1 9.73-9.57A13 13 0 0 1 16 3.27h1a12.73 12.73 0 0 1 11.57 10.5a13 13 0 0 1 .16 2.23v1a12.6 12.6 0 0 1-3.3 7.61a6.62 6.62 0 0 1-4.7 2.06a4.68 4.68 0 0 1-2.88-1.09a4.58 4.58 0 0 1-1.63-3.09a5.5 5.5 0 0 1 .14-1.61a3.4 3.4 0 0 1 .8-1.53a5 5 0 0 1-1.3-.88a.15.15 0 0 1 0-.19a.16.16 0 0 1 .18-.06a10 10 0 0 0 1.46.37a20 20 0 0 0 2.45.31c2.13.1 4.38-.9 5.05-2.81s.43-3.83-2.08-5s-3.66-2.5-5.69-3.32a5 5 0 0 0-4.3.62c-4.08 2.25-7.72 9.35-6 15.94a.21.21 0 0 1-.1.23a.2.2 0 0 1-.23 0a13 13 0 0 1-1.33-1.73a13 13 0 0 1-.82-1.49'/%3E%3Cpath fill='%23f5f5f5' fill-rule='evenodd' d='M16.65 2A14 14 0 1 1 2 15.35A14 14 0 0 1 16.65 2m3.27 16.85a20 20 0 0 1-2.45-.31a8.6 8.6 0 0 1-1.47-.35a.16.16 0 0 0-.18.06a.15.15 0 0 0 0 .19a5 5 0 0 0 1.3.88a3.4 3.4 0 0 0-.8 1.53a5.5 5.5 0 0 0-.14 1.61a4.58 4.58 0 0 0 1.63 3.09a4.68 4.68 0 0 0 2.88 1.09a6.62 6.62 0 0 0 4.72-2.07a12.73 12.73 0 1 0-18.84 0a.21.21 0 0 0 .35-.19c-1.68-6.59 2-13.69 6-15.94a5 5 0 0 1 4.3-.62c2 .82 3.18 2.18 5.69 3.32s2.78 3 2.08 5s-2.91 2.86-5.07 2.73ZM15.54 8.69c-.82.06-1.36 1.08-1.43 1.73s.25 1.73 1.32 1.71c1.25 0 1.64-1.09 1.5-2.13a1.39 1.39 0 0 0-1.39-1.31'/%3E%3Cpath fill-rule='evenodd' d='M15.54 8.68A1.4 1.4 0 0 1 16.93 10c.14 1-.24 2.12-1.49 2.14c-1.07 0-1.4-1.06-1.33-1.71s.61-1.68 1.43-1.75'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-dotenv{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill-rule='evenodd'%3E%3Cpath d='M3.167 3.167h25.667v25.667H3.167z'/%3E%3Cpath fill='%23ecd53f' fill-rule='nonzero' d='M30 2v28H2V2zM14.757 20.539H9.98v6.44h4.898v-1.085h-3.597V24.14h3.232v-1.085H11.28v-1.428h3.475v-1.09zm2.503 0h-1.264v6.44h1.207v-4.2l2.597 4.2h1.305v-6.44h-1.21v4.3zm5.97 0h-1.41l2.303 6.44h1.388l2.306-6.44h-1.38l-1.577 4.766l-1.63-4.767zM8.3 24.96H6.34v1.96H8.3z'/%3E%3C/g%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-editorconfig{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%23e3e3f8' d='M8.709 18.351a1.27 1.27 0 0 0 .532-1.379c-.549.235-.523.777-.532 1.379m6.215 1.501a.87.87 0 0 0 .62-1.135a1.43 1.43 0 0 0-.62 1.135'/%3E%3Cpath fill='%23fdfdfd' d='M2.713 27.079a1.54 1.54 0 0 0 .524 1.353c1.414.794 6.372.175 8.056-.2a15 15 0 0 0 2.426-1.213a22.6 22.6 0 0 0 4.713-2.557c1.082-.794 2.8-3.029 2.985-4.364l-1.475-.332c-.035 1.5-.375 1.842-1.711 2.191a10.7 10.7 0 0 1-3.57.14a3.36 3.36 0 0 1-2.313-1.562c-1.065-1.414.236-2.4-1.449-2.5c-1.772 2.173-4.9.611-6.267.393a30 30 0 0 0-1.938 7.6a2.75 2.75 0 0 1 2.138.323c2.688 1.039.34 1.955-.733 1.685c-.731-.172-.958-.652-1.386-.957m3.518-12.542a11.5 11.5 0 0 1 2.985 1.126c1.51.751 1.781.646 1.92 1.693c.017.192-.017.3.532.471c.925.288-.532-.227 1.946-.218a16.6 16.6 0 0 1 5.945 1.291c.454.288.367.655 1.9.611a18.8 18.8 0 0 0-1.2-6.162c-.864-2.007-2.007-2.313-4.338-3.064c-1.362-.436-5.359-.916-6.6-.148c-1.161.724-1.379 1.589-2.461 3.107a5.4 5.4 0 0 0-.629 1.293'/%3E%3Cpath fill='%23fdfdfd' d='M15.84 18.246c.873.358-.044 2.671-1.257 2.112c-.393-1.108.541-1.737.794-2.234a8.5 8.5 0 0 0-2.461-.148c-.576.218-.707 1.449-.41 2.025c1.4 2.741 7.567 2.156 6.913.026c-.262-.864-.506-1-1.388-1.3a6.9 6.9 0 0 0-2.191-.481m-10.971-.305c.7.672 2.278.777 3.3.829c.131-1.353.244-2.37 1.331-2.287a1.6 1.6 0 0 1-.305 2.13a1.386 1.386 0 0 0 1.362-1.763a14.5 14.5 0 0 0-4.46-1.894a9.5 9.5 0 0 0-1.228 2.985'/%3E%3Cpath fill='%23020202' d='M3.228 26.581c.576-.052 2.077.384 2.2.873c-.934.114-2.121.026-2.2-.873m-.515.5c.428.305.655.786 1.388.96c1.074.271 3.421-.646.733-1.685a2.75 2.75 0 0 0-2.134-.324a30 30 0 0 1 1.938-7.6c1.37.218 4.495 1.781 6.267-.393c1.685.1.384 1.082 1.449 2.5a3.36 3.36 0 0 0 2.308 1.561a10.7 10.7 0 0 0 3.57-.14c1.335-.349 1.676-.69 1.711-2.191l1.475.332c-.183 1.335-1.9 3.57-2.985 4.364a22.6 22.6 0 0 1-4.713 2.557a15 15 0 0 1-2.426 1.213c-1.685.375-6.642 1-8.056.2a1.54 1.54 0 0 1-.525-1.356Zm12.211-7.227a1.43 1.43 0 0 1 .62-1.135a.87.87 0 0 1-.62 1.133Zm.916-1.606a6.9 6.9 0 0 1 2.191.48c.882.3 1.126.436 1.388 1.3c.655 2.13-5.516 2.714-6.913-.026c-.3-.576-.166-1.807.41-2.025a8.5 8.5 0 0 1 2.461.148c-.253.5-1.187 1.126-.794 2.234c1.217.558 2.13-1.759 1.257-2.113Zm-7.131.1c.009-.6-.017-1.143.532-1.379a1.27 1.27 0 0 1-.532 1.382Zm-3.84-.41a9.5 9.5 0 0 1 1.222-2.985a14.5 14.5 0 0 1 4.46 1.894a1.386 1.386 0 0 1-1.361 1.766a1.6 1.6 0 0 0 .305-2.13c-1.082-.079-1.2.934-1.327 2.287c-1.021-.053-2.601-.157-3.299-.829ZM4 17.242c-.323-.89-.323-2.278 1.047-2.392l-.7 1.946c-.185.42-.185.324-.347.446m2.234-2.706a5.4 5.4 0 0 1 .628-1.292c1.082-1.519 1.3-2.383 2.461-3.107c1.239-.768 5.237-.288 6.6.148c2.33.751 3.474 1.056 4.338 3.064a18.8 18.8 0 0 1 1.2 6.162c-1.536.044-1.449-.323-1.9-.611a16.6 16.6 0 0 0-5.944-1.292c-2.479-.009-1.021.506-1.946.218c-.55-.175-.515-.279-.532-.471c-.14-1.047-.41-.943-1.92-1.693a11.5 11.5 0 0 0-2.988-1.125Zm15.449-.428c-.166-.55.14-.515.672-.89a9 9 0 0 1 .925-.655c1.405-.786 4.024-.916 5.141.017a2.48 2.48 0 0 1 1.079 2.07a5.84 5.84 0 0 1-2.618 3.832a5.21 5.21 0 0 1-4.783 1.2c-.157-.384-.035-2.819-.218-3.718c-.166-.8-.079-.89.384-1.37c1.362-1.414 4.312-2.444 5.988-1.231c.707.524.506.724.873 1.126c.454-.489-.393-2.13-3.517-2.025c-2.123.065-3.039 1.723-3.929 1.645ZM8.971 9.143a8.1 8.1 0 0 1 2.278-4.6c1.351-1.043 2.767-2.034 4.845-.856c.515.288.489.436.541 1.152a3.3 3.3 0 0 1-.192 1.5c-1.379 4.451-2.531 1.894-6.948 2.95a6.37 6.37 0 0 1 2.121-3.413c1.2-1.161 2.06-1.911 3.858-1.667a1.84 1.84 0 0 1-.052 2.322c-.8 1.292-1 1.213-.882 2.095c.628-.157.82-.768 1.108-1.379c1.754-3.666-.794-4.111-2.357-3.439a10.4 10.4 0 0 0-3.525 3.746c-.122.244-.253.559-.367.829Zm6.913.183c.183-1.091 1.266-1.362 1.266-4.726c0-1.449-1.781-2.749-4.111-1.781c-2 .82-2.3 1.449-3.369 3.055c-1 1.519-.969 3.186-1.833 4.591c-.253.4-.48.541-.759.943c-.2.3-.349.672-.55 1.021A13 13 0 0 0 5.367 14.4c-1.047.026-1.929.044-2.034 1.126c-.14 1.484.559 1.85.559 2.409c-.009.6-2.453 6.677-1.772 10.3c.192 1 .847 1 1.894 1.126a17.9 17.9 0 0 0 8.056-.707l4.1-1.964a19 19 0 0 0 3.561-2.5a12.4 12.4 0 0 0 1.309-1.719a3.2 3.2 0 0 0 .8-2.208a8.5 8.5 0 0 1 2.985 1c-.061.6-.358.314-.358.855a1.36 1.36 0 0 0 1.047-.89c-.358-.524-.733-.436-1.248-.855a8.2 8.2 0 0 1 1.719-.707c1.222-.506 3.308-2.042 3.823-3.439a4.45 4.45 0 0 0-.559-3.736a5.44 5.44 0 0 0-3.648-1.161c-1.58 0-3.212 1.135-4.486 1.623c-.489-.428-.524-.916-.882-1.388a12.3 12.3 0 0 0-4.349-2.239'/%3E%3Cpath fill='%23fdf2f2' d='M21.68 14.109c.89.079 1.807-1.58 3.928-1.65c3.125-.1 3.971 1.536 3.517 2.025c-.367-.4-.166-.6-.873-1.126c-1.676-1.213-4.626-.183-5.988 1.231c-.463.48-.55.567-.384 1.37c.183.9.061 3.334.218 3.718a5.21 5.21 0 0 0 4.783-1.2A5.84 5.84 0 0 0 29.5 14.65a2.48 2.48 0 0 0-1.082-2.069c-1.117-.934-3.736-.8-5.141-.017a9 9 0 0 0-.925.655c-.533.375-.838.34-.672.89'/%3E%3Cpath fill='%23fef3f3' d='m8.971 9.143l.429-.76c.113-.271.244-.585.367-.829a10.4 10.4 0 0 1 3.525-3.744c1.562-.672 4.111-.227 2.357 3.439c-.288.611-.48 1.222-1.108 1.379c-.122-.882.079-.8.882-2.095a1.84 1.84 0 0 0 .052-2.322c-1.8-.244-2.662.506-3.858 1.667A6.37 6.37 0 0 0 9.5 9.291c4.416-1.056 5.569 1.5 6.948-2.95a3.3 3.3 0 0 0 .192-1.5c-.052-.716-.026-.864-.541-1.152c-2.077-1.178-3.491-.192-4.844.855a8.1 8.1 0 0 0-2.284 4.599'/%3E%3Cpath fill='%23efefef' d='M4 17.242c.166-.122.166-.026.349-.445l.7-1.946c-1.376.113-1.376 1.501-1.049 2.391'/%3E%3Cpath fill='%23faf1f1' d='M5.428 27.454c-.122-.489-1.623-.925-2.2-.873c.079.899 1.266.987 2.2.873'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-esbuild{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Ccircle cx='16' cy='16' r='14' fill='%23ffcf00'/%3E%3Cpath fill='%23191919' d='m18.2 23.8l-2.4-2.4l5.5-5.5l-5.5-5.5L18.2 8l7.8 7.8zm-8.4 0l-2.4-2.4l5.5-5.5l-5.5-5.5L9.8 8l7.8 7.8z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-eslint{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%234b32c3' d='m29.832 16.7l-6.354 10.717A1.26 1.26 0 0 1 22.36 28H9.647a1.26 1.26 0 0 1-1.118-.59l-6.356-10.7a1.26 1.26 0 0 1 0-1.272L8.527 4.676A1.34 1.34 0 0 1 9.647 4h12.709a1.34 1.34 0 0 1 1.118.678l6.354 10.786a1.2 1.2 0 0 1 0 1.238Zm-5.262 4.2v-9.614L16 6.466l-8.56 4.82V20.9L16 25.719Z'/%3E%3Cpath fill='%238080f2' d='m21.802 19.188l-5.747 3.235l-5.742-3.235v-6.47l5.742-3.236l5.747 3.236z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-favicon{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cdefs%3E%3ClinearGradient id='SVGuPaD8qfT' x1='-66.775' x2='-66.775' y1='-171.703' y2='-171.817' gradientTransform='matrix(240 0 0 -240 16042 -41206)' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23ec790f'/%3E%3Cstop offset='1' stop-color='%23f51032'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='28' height='28' x='2' y='2' fill='url(%23SVGuPaD8qfT)' rx='1.75' ry='1.75'/%3E%3Cpath fill='%23fff' d='m16 22.625l-6.489 3.408l1.239-7.218l-5.25-5.111l7.255-1.054L16 6.083l3.245 6.567l7.255 1.054l-5.25 5.111l1.239 7.218z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-git{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%23dd4c35' d='M29.472 14.753L17.247 2.528a1.8 1.8 0 0 0-2.55 0l-2.539 2.539l3.22 3.22a2.141 2.141 0 0 1 2.712 2.73l3.1 3.1a2.143 2.143 0 1 1-1.285 1.21l-2.895-2.895v7.617a2.141 2.141 0 1 1-1.764-.062V12.3a2.146 2.146 0 0 1-1.165-2.814l-3.17-3.172L2.528 14.7a1.8 1.8 0 0 0 0 2.551l12.225 12.221a1.8 1.8 0 0 0 2.55 0L29.472 17.3a1.8 1.8 0 0 0 0-2.551'/%3E%3Cpath fill='%23fff' d='m12.158 5.067l3.22 3.22a2.141 2.141 0 0 1 2.712 2.73l3.1 3.1a2.143 2.143 0 1 1-1.285 1.21l-2.895-2.895v7.617a2.141 2.141 0 1 1-1.764-.062V12.3a2.146 2.146 0 0 1-1.165-2.814l-3.17-3.172'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-html{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%23e44f26' d='M5.902 27.201L3.655 2h24.69l-2.25 25.197L15.985 30z'/%3E%3Cpath fill='%23f1662a' d='m16 27.858l8.17-2.265l1.922-21.532H16z'/%3E%3Cpath fill='%23ebebeb' d='M16 13.407h-4.09l-.282-3.165H16V7.151H8.25l.074.83l.759 8.517H16zm0 8.027l-.014.004l-3.442-.929l-.22-2.465H9.221l.433 4.852l6.332 1.758l.014-.004z'/%3E%3Cpath fill='%23fff' d='M15.989 13.407v3.091h3.806l-.358 4.009l-3.448.93v3.216l6.337-1.757l.046-.522l.726-8.137l.076-.83zm0-6.256v3.091h7.466l.062-.694l.141-1.567l.074-.83z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-js{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%23f5de19' d='M18.774 19.7a3.73 3.73 0 0 0 3.376 2.078c1.418 0 2.324-.709 2.324-1.688c0-1.173-.931-1.589-2.491-2.272l-.856-.367c-2.469-1.052-4.11-2.37-4.11-5.156c0-2.567 1.956-4.52 5.012-4.52A5.06 5.06 0 0 1 26.9 10.52l-2.665 1.711a2.33 2.33 0 0 0-2.2-1.467a1.49 1.49 0 0 0-1.638 1.467c0 1.027.636 1.442 2.1 2.078l.856.366c2.908 1.247 4.549 2.518 4.549 5.376c0 3.081-2.42 4.769-5.671 4.769a6.58 6.58 0 0 1-6.236-3.5ZM6.686 20c.538.954 1.027 1.76 2.2 1.76c1.124 0 1.834-.44 1.834-2.15V7.975h3.422v11.683c0 3.543-2.078 5.156-5.11 5.156A5.31 5.31 0 0 1 3.9 21.688Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-json{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%23f5de19' d='M4.014 14.976a2.5 2.5 0 0 0 1.567-.518a2.38 2.38 0 0 0 .805-1.358a15.3 15.3 0 0 0 .214-2.944q.012-2.085.075-2.747a5.2 5.2 0 0 1 .418-1.686a3 3 0 0 1 .755-1.018A3.05 3.05 0 0 1 9 4.125A6.8 6.8 0 0 1 10.544 4h.7v1.96h-.387a2.34 2.34 0 0 0-1.723.468a3.4 3.4 0 0 0-.425 2.092a36 36 0 0 1-.137 4.133a4.7 4.7 0 0 1-.768 2.06A4.6 4.6 0 0 1 6.1 16a3.8 3.8 0 0 1 1.992 1.754a8.9 8.9 0 0 1 .618 3.865q0 2.435.05 2.9a1.76 1.76 0 0 0 .504 1.181a2.64 2.64 0 0 0 1.592.337h.387V28h-.7a5.7 5.7 0 0 1-1.773-.2a2.97 2.97 0 0 1-1.324-.93a3.35 3.35 0 0 1-.681-1.63a24 24 0 0 1-.165-3.234a16.5 16.5 0 0 0-.214-3.106a2.4 2.4 0 0 0-.805-1.361a2.5 2.5 0 0 0-1.567-.524Zm23.972 2.035a2.5 2.5 0 0 0-1.567.524a2.4 2.4 0 0 0-.805 1.361a16.5 16.5 0 0 0-.212 3.109a24 24 0 0 1-.169 3.234a3.35 3.35 0 0 1-.681 1.63a2.97 2.97 0 0 1-1.324.93a5.7 5.7 0 0 1-1.773.2h-.7V26.04h.387a2.64 2.64 0 0 0 1.592-.337a1.76 1.76 0 0 0 .506-1.186q.05-.462.05-2.9a8.9 8.9 0 0 1 .618-3.865A3.8 3.8 0 0 1 25.9 16a4.6 4.6 0 0 1-1.7-1.286a4.7 4.7 0 0 1-.768-2.06a36 36 0 0 1-.137-4.133a3.4 3.4 0 0 0-.425-2.092a2.34 2.34 0 0 0-1.723-.468h-.387V4h.7a6.8 6.8 0 0 1 1.54.125a3.05 3.05 0 0 1 1.149.581a3 3 0 0 1 .755 1.018a5.2 5.2 0 0 1 .418 1.686q.062.662.075 2.747a15.3 15.3 0 0 0 .212 2.947a2.38 2.38 0 0 0 .805 1.355a2.5 2.5 0 0 0 1.567.518Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-light-astro{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='url(%23SVGjSGnPd0t)' d='M11.025 20.499c-.532 1.75-.154 4.184 1.105 5.331v-.042l.042-.112c.154-.741.756-1.203 1.526-1.175c.713.014 1.12.392 1.217 1.217c.042.308.042.616.056.938v.098c0 .7.196 1.371.588 1.959c.35.56.84.993 1.497 1.287l-.028-.056l-.028-.112c-.49-1.469-.14-2.49 1.147-3.358l.392-.266l.868-.573a4.25 4.25 0 0 0 1.791-3.037c.07-.532 0-1.05-.154-1.553l-.21.14c-1.945 1.035-4.17 1.4-6.325.98c-1.301-.197-2.56-.56-3.498-1.652z'/%3E%3Cpath fill='%2317191e' d='M4.925 20.191s3.736-1.82 7.486-1.82l2.84-8.759c.098-.42.406-.7.756-.7s.644.28.756.714l2.826 8.746c4.45 0 7.487 1.82 7.487 1.82L20.709 2.84c-.168-.518-.49-.84-.896-.84h-7.612c-.406 0-.7.322-.896.84z'/%3E%3Cdefs%3E%3ClinearGradient id='SVGjSGnPd0t' x1='8.19' x2='16.91' y1='23' y2='18.89' gradientTransform='translate(-.673 -2.198)scale(1.3993)' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23d83333'/%3E%3Cstop offset='1' stop-color='%23f041ff'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-light-next{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cdefs%3E%3ClinearGradient id='SVGTjWo9baw' x1='336.1' x2='414.1' y1='522.5' y2='652.6' gradientTransform='translate(-8.06 -1.06)scale(.055)' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='SVGb2iJM1Jt' x1='511.1' x2='511.1' y1='209.5' y2='359.9' gradientTransform='translate(-8.06 -1.06)scale(.055)' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='16' cy='16' r='14'/%3E%3Cpath fill='url(%23SVGTjWo9baw)' d='m25.26 26.5l-12.5-16.1H10.4v11.2h1.89v-8.8l11.49 14.84c.52-.35 1-.72 1.48-1.13z'/%3E%3Cpath fill='url(%23SVGb2iJM1Jt)' d='M19.89 10.4h1.86v11.2H19.9z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-light-pnpm{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%23f9ad00' d='M30 10.75h-8.749V2H30Zm-9.626 0h-8.75V2h8.75Zm-9.625 0H2V2h8.749ZM30 20.375h-8.749v-8.75H30Z'/%3E%3Cpath fill='%234e4e4e' d='M20.374 20.375h-8.75v-8.75h8.75Zm0 9.625h-8.75v-8.75h8.75ZM30 30h-8.749v-8.75H30Zm-19.251 0H2v-8.75h8.749Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-light-yaml{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%23fbc02d' d='M2 12.218c.755 0 1.51-.008 2.264 0l.053.038l2.761 2.758c.891-.906 1.8-1.794 2.7-2.7c.053-.052.11-.113.192-.1h1.823a1.4 1.4 0 0 1 .353.019c-.7.67-1.377 1.369-2.069 2.05L5.545 18.8c-.331.324-.648.663-.989.975c-.754.022-1.511.007-2.266.007c1.223-1.209 2.431-2.433 3.658-3.637c-1.321-1.304-2.63-2.62-3.948-3.927m10.7 0h1.839v7.566c-.611 0-1.222.012-1.832-.008v-4.994c-1.6 1.607-3.209 3.2-4.811 4.8c-.089.08-.166.217-.305.194c-.824-.006-1.649 0-2.474 0Q8.916 16 12.7 12.218m2.258.002c.47-.009.939 0 1.409 0c.836.853 1.69 1.689 2.536 2.532q1.268-1.267 2.539-2.532h1.4q-.008 3.784 0 7.567c-.471 0-.943.006-1.414 0q.008-2.387 0-4.773c-.844.843-1.676 1.7-2.526 2.536c-.856-.835-1.687-1.695-2.532-2.541c0 1.594-.006 3.188.006 4.781c-.472 0-.943.005-1.415 0q-.003-3.79-.003-7.57m8.301-.003c.472 0 .944-.007 1.416 0q-.007 3.083 0 6.166h3.782c.063.006.144-.012.191.045c.448.454.907.9 1.353 1.354q-3.371.007-6.741 0q.007-3.782-.001-7.565'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-markdown{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='%23755838' d='M2.5 7.955h27v16.091h-27z'/%3E%3Cpath fill='%23755838' d='M5.909 20.636v-9.272h2.727l2.728 3.409l2.727-3.409h2.727v9.272h-2.727v-5.318l-2.727 3.409l-2.728-3.409v5.318zm17.046 0l-4.091-4.5h2.727v-4.772h2.727v4.772h2.727z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-node{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%2383cd29' d='M16 30a2.15 2.15 0 0 1-1.076-.288L11.5 27.685c-.511-.286-.262-.387-.093-.446a6.8 6.8 0 0 0 1.549-.7a.26.26 0 0 1 .255.019l2.631 1.563a.34.34 0 0 0 .318 0l10.26-5.922a.32.32 0 0 0 .157-.278V10.075a.33.33 0 0 0-.159-.283l-10.26-5.917a.32.32 0 0 0-.317 0L5.587 9.794a.33.33 0 0 0-.162.281v11.841a.32.32 0 0 0 .161.274L8.4 23.814c1.525.762 2.459-.136 2.459-1.038V11.085a.3.3 0 0 1 .3-.3h1.3a.3.3 0 0 1 .3.3v11.692c0 2.035-1.108 3.2-3.038 3.2a4.4 4.4 0 0 1-2.363-.642l-2.697-1.547a2.17 2.17 0 0 1-1.076-1.872V10.075A2.16 2.16 0 0 1 4.661 8.2l10.261-5.924a2.25 2.25 0 0 1 2.156 0L27.338 8.2a2.17 2.17 0 0 1 1.077 1.87v11.846a2.17 2.17 0 0 1-1.077 1.872l-10.26 5.924A2.15 2.15 0 0 1 16 30'/%3E%3Cpath fill='%2383cd29' d='M14.054 17.953a.3.3 0 0 1 .3-.3h1.327a.3.3 0 0 1 .295.251c.2 1.351.8 2.032 3.513 2.032c2.161 0 3.082-.489 3.082-1.636c0-.661-.261-1.152-3.62-1.481c-2.808-.278-4.544-.9-4.544-3.144c0-2.07 1.745-3.305 4.67-3.305c3.287 0 4.914 1.141 5.12 3.589a.3.3 0 0 1-.295.323h-1.336a.3.3 0 0 1-.288-.232c-.319-1.421-1.1-1.875-3.2-1.875c-2.36 0-2.634.822-2.634 1.438c0 .746.324.964 3.51 1.385c3.153.417 4.651 1.007 4.651 3.223c0 2.236-1.864 3.516-5.115 3.516c-4.495.006-5.436-2.055-5.436-3.784'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-npm{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%23c12127' d='M2 2h28v28H2'/%3E%3Cpath fill='%23fff' d='M7.25 7.25h17.5v17.5h-3.5v-14H16v14H7.25'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-nuxt{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%2300dc82' d='M17.708 25h10.409c.33 0 .655-.088.942-.254a1.9 1.9 0 0 0 .689-.696a1.91 1.91 0 0 0 0-1.9L22.756 9.936a1.87 1.87 0 0 0-3.261 0l-1.788 3.125l-3.494-6.111a1.871 1.871 0 0 0-3.262 0l-8.7 15.2a1.91 1.91 0 0 0 .69 2.595c.286.167.61.255.941.255h6.534c2.589 0 4.498-1.147 5.811-3.385l3.19-5.572l1.708-2.982l5.127 8.957h-6.835zm-7.398-2.985l-4.56-.001l6.836-11.942l3.41 5.97l-2.283 3.992c-.873 1.452-1.864 1.981-3.403 1.981'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-oxlint{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cmask id='SVGO7p8HeOD'%3E%3Cpath fill='%23fff' d='M44.92 7.56a2.26 2.26 0 0 0 2.26 2.26h8.58c1 0 1.51 1.22.8 1.93L45.58 22.73c-.43.42-.67 1-.67 1.6v3.76c0 1.56 1.55 2.64 2.92 1.9a20 20 0 0 0 3.87-2.73a1.2 1.2 0 0 1 1.62.02l8 8a1.1 1.1 0 0 1-.01 1.59c-6.07 5.67-14.22 9.15-23.18 9.15S21 42.54 14.94 36.87a1.1 1.1 0 0 1-.01-1.59l8-8a1.2 1.2 0 0 1 1.62-.02a20 20 0 0 0 3.87 2.73c1.37.74 2.92-.34 2.92-1.9v-3.76c0-.6-.24-1.18-.66-1.6L19.69 11.75c-.71-.71-.2-1.93.8-1.93h8.58a2.26 2.26 0 0 0 2.27-2.26V1.9c0-.63.5-1.13 1.13-1.13h11.3c.63 0 1.14.5 1.14 1.13z'/%3E%3C/mask%3E%3Cg fill='none'%3E%3Cg mask='url(%23SVGO7p8HeOD)' transform='translate(1 6.8)scale(.393)'%3E%3Cpath fill='%2300f7f1' d='M0 0h62v46H0z'/%3E%3Cg filter='url(%23SVGDpLUfckU)'%3E%3Cellipse cx='38' cy='46.74' fill='%2393fffc' rx='4.62' ry='21.5' transform='rotate(-90 38 46.74)'/%3E%3C/g%3E%3Cg filter='url(%23SVGDpLUfckU)'%3E%3Cellipse cx='56.18' cy='44.78' fill='%2300ff79' rx='4.62' ry='21.5' transform='rotate(248.3 56.18 44.78)'/%3E%3C/g%3E%3Cg filter='url(%23SVGDpLUfckU)'%3E%3Cellipse cx='19.8' cy='44.78' fill='%230060ff' rx='4.62' ry='21.5' transform='rotate(-68.3 19.8 44.78)'/%3E%3C/g%3E%3Cg filter='url(%23SVGDpLUfckU)'%3E%3Cellipse cx='46.53' cy='29.66' fill='%2393fffc' rx='3.72' ry='6.27' transform='rotate(224.8 46.53 29.66)'/%3E%3C/g%3E%3Cg filter='url(%23SVGDpLUfckU)'%3E%3Cellipse cx='48.44' cy='26.21' fill='%230060ff' rx='3.72' ry='6.27' transform='rotate(224.8 48.44 26.21)'/%3E%3C/g%3E%3Cg filter='url(%23SVGDpLUfckU)'%3E%3Cellipse cx='48.06' cy='7.07' fill='%2393fffc' rx='3.72' ry='6.27' transform='rotate(224.8 48.06 7.07)'/%3E%3C/g%3E%3Cg filter='url(%23SVGDpLUfckU)'%3E%3Cellipse cx='49.21' cy='5.53' fill='%230060ff' rx='3.72' ry='6.27' transform='rotate(224.8 49.2 5.53)'/%3E%3C/g%3E%3Cg filter='url(%23SVGDpLUfckU)'%3E%3Cellipse cx='30.06' cy='30.43' fill='%2393fffc' rx='3.72' ry='6.27' transform='rotate(-44.8 30.06 30.43)'/%3E%3C/g%3E%3Cg filter='url(%23SVGDpLUfckU)'%3E%3Cellipse cx='27.38' cy='26.98' fill='%230060ff' rx='3.72' ry='6.27' transform='rotate(-44.8 27.38 26.98)'/%3E%3C/g%3E%3Cg filter='url(%23SVGDpLUfckU)'%3E%3Cellipse cx='27.38' cy='7.07' fill='%2393fffc' rx='3.72' ry='6.27' transform='rotate(-44.8 27.38 7.07)'/%3E%3C/g%3E%3Cg filter='url(%23SVGDpLUfckU)'%3E%3Cellipse cx='27' cy='4.77' fill='%230060ff' rx='3.72' ry='6.27' transform='rotate(-44.8 27 4.77)'/%3E%3C/g%3E%3Cg filter='url(%23SVGDpLUfckU)'%3E%3Cellipse cx='23.76' cy='18.35' fill='%230060ff' rx='3.72' ry='11.95' transform='rotate(-44.8 23.76 18.35)'/%3E%3C/g%3E%3Cg filter='url(%23SVGDpLUfckU)'%3E%3Cellipse cx='53.59' cy='15.29' fill='%2300ff79' rx='3.72' ry='11.95' transform='rotate(224.8 53.6 15.29)'/%3E%3C/g%3E%3Cg filter='url(%23SVGDpLUfckU)'%3E%3Cellipse cx='38' cy='48.66' fill='%230060ff' rx='4.62' ry='21.5' transform='rotate(-90 38 48.66)'/%3E%3C/g%3E%3C/g%3E%3Cpath fill='%23fff' d='M3.72 6.8C.1 11.98.08 20 3.72 25.2h2.45c-3.64-5.2-3.62-13.22 0-18.4zm24.56 0h-2.45c3.62 5.18 3.64 13.2 0 18.4h2.45c3.64-5.2 3.62-13.22 0-18.4'/%3E%3Cdefs%3E%3Cfilter id='SVGDpLUfckU' width='6' height='6' x='-3' y='-3'%3E%3CfeGaussianBlur stdDeviation='4.6'/%3E%3C/filter%3E%3C/defs%3E%3C/g%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-php{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cdefs%3E%3CradialGradient id='SVGQRCVdbYF' cx='-16.114' cy='20.532' r='18.384' gradientTransform='translate(26.52 -9.307)' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='.5' stop-color='%234c6b96'/%3E%3Cstop offset='1' stop-color='%23231f20'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cellipse cx='16' cy='16' fill='url(%23SVGQRCVdbYF)' rx='14' ry='7.365'/%3E%3Cellipse cx='16' cy='16' fill='%236280b6' rx='13.453' ry='6.818'/%3E%3Cpath fill='%23fff' d='m18.725 18.2l.667-3.434a1.75 1.75 0 0 0-.372-1.719a2.93 2.93 0 0 0-2-.525h-1.153l.331-1.7a.22.22 0 0 0-.215-.26h-1.6a.22.22 0 0 0-.215.177l-.709 3.646a2.05 2.05 0 0 0-.477-1.054a2.78 2.78 0 0 0-2.2-.807H7.7a.22.22 0 0 0-.215.177l-1.434 7.38a.22.22 0 0 0 .215.26h1.603a.22.22 0 0 0 .215-.177l.347-1.785h1.2a5.2 5.2 0 0 0 1.568-.2a3.1 3.1 0 0 0 1.15-.689a3.5 3.5 0 0 0 .68-.844l-.287 1.475a.22.22 0 0 0 .215.26h1.6a.22.22 0 0 0 .215-.177l.787-4.051h1.094c.466 0 .6.093.64.133s.1.165.025.569l-.635 3.265a.22.22 0 0 0 .215.26h1.62a.22.22 0 0 0 .207-.18m-7.395-2.834a1.75 1.75 0 0 1-.561 1.092a2.17 2.17 0 0 1-1.315.321h-.712l.515-2.651h.921c.677 0 .949.145 1.059.266a1.18 1.18 0 0 1 .093.972m14.216-2.034a2.78 2.78 0 0 0-2.2-.807h-3.091a.22.22 0 0 0-.215.177l-1.434 7.38a.22.22 0 0 0 .215.26h1.608a.22.22 0 0 0 .215-.177l.347-1.785h1.2a5.2 5.2 0 0 0 1.568-.2a3.1 3.1 0 0 0 1.15-.689a3.43 3.43 0 0 0 1.076-1.927a2.51 2.51 0 0 0-.439-2.232m-1.667 2.034a1.75 1.75 0 0 1-.561 1.092a2.17 2.17 0 0 1-1.318.32h-.71l.515-2.651h.921c.677 0 .949.145 1.059.266a1.18 1.18 0 0 1 .094.973'/%3E%3Cpath fill='%23000004' d='M10.178 13.908a1.65 1.65 0 0 1 1.221.338a1.34 1.34 0 0 1 .145 1.161a1.95 1.95 0 0 1-.642 1.223a2.36 2.36 0 0 1-1.448.37h-.978l.6-3.089Zm-3.917 6.216h1.608l.381-1.962h1.377a5 5 0 0 0 1.5-.191a2.84 2.84 0 0 0 1.07-.642a3.2 3.2 0 0 0 1.01-1.808a2.3 2.3 0 0 0-.385-2.044a2.57 2.57 0 0 0-2.035-.732H7.7Zm8.126-9.342h1.6l-.387 1.962h1.421a2.77 2.77 0 0 1 1.85.468a1.55 1.55 0 0 1 .305 1.516l-.667 3.434H16.89l.635-3.265a.89.89 0 0 0-.08-.76a1.12 1.12 0 0 0-.8-.2H15.37l-.822 4.228h-1.6Zm8.34 3.126a1.65 1.65 0 0 1 1.221.338a1.34 1.34 0 0 1 .145 1.161a1.95 1.95 0 0 1-.642 1.223A2.36 2.36 0 0 1 22 17h-.978l.6-3.089Zm-3.917 6.216h1.608l.381-1.962h1.377a5 5 0 0 0 1.5-.191a2.84 2.84 0 0 0 1.07-.642a3.2 3.2 0 0 0 1.01-1.808a2.3 2.3 0 0 0-.385-2.044a2.57 2.57 0 0 0-2.035-.732h-3.092Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-python{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cdefs%3E%3ClinearGradient id='SVGg4rxgcri' x1='-133.268' x2='-133.198' y1='-202.91' y2='-202.84' gradientTransform='matrix(189.38 0 0 189.81 25243.061 38519.17)' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23387eb8'/%3E%3Cstop offset='1' stop-color='%23366994'/%3E%3C/linearGradient%3E%3ClinearGradient id='SVG5ouQmWbV' x1='-133.575' x2='-133.495' y1='-203.203' y2='-203.133' gradientTransform='matrix(189.38 0 0 189.81 25309.061 38583.42)' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23ffe052'/%3E%3Cstop offset='1' stop-color='%23ffc331'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23SVGg4rxgcri)' d='M15.885 2.1c-7.1 0-6.651 3.07-6.651 3.07v3.19h6.752v1H6.545S2 8.8 2 16.005s4.013 6.912 4.013 6.912H8.33v-3.361s-.13-4.013 3.9-4.013h6.762s3.772.06 3.772-3.652V5.8s.572-3.712-6.842-3.712Zm-3.732 2.137a1.214 1.214 0 1 1-1.183 1.244v-.02a1.214 1.214 0 0 1 1.214-1.214Z'/%3E%3Cpath fill='url(%23SVG5ouQmWbV)' d='M16.085 29.91c7.1 0 6.651-3.08 6.651-3.08v-3.18h-6.751v-1h9.47S30 23.158 30 15.995s-4.013-6.912-4.013-6.912H23.64V12.4s.13 4.013-3.9 4.013h-6.765S9.2 16.356 9.2 20.068V26.2s-.572 3.712 6.842 3.712h.04Zm3.732-2.147A1.214 1.214 0 1 1 21 26.519v.03a1.214 1.214 0 0 1-1.214 1.214z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-reactjs{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Ccircle cx='16' cy='15.974' r='2.5' fill='%2300d8ff'/%3E%3Cpath fill='%2300d8ff' d='M16 21.706a28.4 28.4 0 0 1-8.88-1.2a11.3 11.3 0 0 1-3.657-1.958A3.54 3.54 0 0 1 2 15.974c0-1.653 1.816-3.273 4.858-4.333A28.8 28.8 0 0 1 16 10.293a28.7 28.7 0 0 1 9.022 1.324a11.4 11.4 0 0 1 3.538 1.866A3.4 3.4 0 0 1 30 15.974c0 1.718-2.03 3.459-5.3 4.541a28.8 28.8 0 0 1-8.7 1.191m0-10.217a28 28 0 0 0-8.749 1.282c-2.8.977-4.055 2.313-4.055 3.2c0 .928 1.349 2.387 4.311 3.4A27.2 27.2 0 0 0 16 20.51a27.6 27.6 0 0 0 8.325-1.13C27.4 18.361 28.8 16.9 28.8 15.974a2.33 2.33 0 0 0-1.01-1.573a10.2 10.2 0 0 0-3.161-1.654A27.5 27.5 0 0 0 16 11.489'/%3E%3Cpath fill='%2300d8ff' d='M10.32 28.443a2.64 2.64 0 0 1-1.336-.328c-1.432-.826-1.928-3.208-1.327-6.373a28.8 28.8 0 0 1 3.4-8.593a28.7 28.7 0 0 1 5.653-7.154a11.4 11.4 0 0 1 3.384-2.133a3.4 3.4 0 0 1 2.878 0c1.489.858 1.982 3.486 1.287 6.859a28.8 28.8 0 0 1-3.316 8.133a28.4 28.4 0 0 1-5.476 7.093a11.3 11.3 0 0 1-3.523 2.189a4.9 4.9 0 0 1-1.624.307m1.773-14.7a28 28 0 0 0-3.26 8.219c-.553 2.915-.022 4.668.75 5.114c.8.463 2.742.024 5.1-2.036a27.2 27.2 0 0 0 5.227-6.79a27.6 27.6 0 0 0 3.181-7.776c.654-3.175.089-5.119-.713-5.581a2.33 2.33 0 0 0-1.868.089A10.2 10.2 0 0 0 17.5 6.9a27.5 27.5 0 0 0-5.4 6.849Z'/%3E%3Cpath fill='%2300d8ff' d='M21.677 28.456c-1.355 0-3.076-.82-4.868-2.361a28.8 28.8 0 0 1-5.747-7.237a28.7 28.7 0 0 1-3.374-8.471a11.4 11.4 0 0 1-.158-4A3.4 3.4 0 0 1 8.964 3.9c1.487-.861 4.01.024 6.585 2.31a28.8 28.8 0 0 1 5.39 6.934a28.4 28.4 0 0 1 3.41 8.287a11.3 11.3 0 0 1 .137 4.146a3.54 3.54 0 0 1-1.494 2.555a2.6 2.6 0 0 1-1.315.324m-9.58-10.2a28 28 0 0 0 5.492 6.929c2.249 1.935 4.033 2.351 4.8 1.9c.8-.465 1.39-2.363.782-5.434A27.2 27.2 0 0 0 19.9 13.74a27.6 27.6 0 0 0-5.145-6.64c-2.424-2.152-4.39-2.633-5.191-2.169a2.33 2.33 0 0 0-.855 1.662a10.2 10.2 0 0 0 .153 3.565a27.5 27.5 0 0 0 3.236 8.1Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-rollup{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cdefs%3E%3ClinearGradient id='SVG0aPgjdWp' x1='13.146' x2='20.701' y1='-186.913' y2='-188.679' gradientTransform='matrix(1 0 0 -1 0 -170)' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23ff6533'/%3E%3Cstop offset='.157' stop-color='%23ff5633'/%3E%3Cstop offset='.434' stop-color='%23ff4333'/%3E%3Cstop offset='.714' stop-color='%23ff3733'/%3E%3Cstop offset='1' stop-color='%23f33'/%3E%3C/linearGradient%3E%3ClinearGradient id='SVGEzUXMeRY' x1='11.963' x2='25.504' y1='-184.409' y2='-194.908' gradientTransform='matrix(1 0 0 -1 0 -170)' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23bf3338'/%3E%3Cstop offset='1' stop-color='%23f33'/%3E%3C/linearGradient%3E%3ClinearGradient id='SVGkRjvQkZr' x1='12.406' x2='14.368' y1='-186.476' y2='-188.536' href='%23SVG0aPgjdWp'/%3E%3ClinearGradient id='SVGN27Cvb5p' x1='15.974' x2='15.385' y1='-190.023' y2='-181.584' href='%23SVG0aPgjdWp'/%3E%3ClinearGradient id='SVG4frn6c0O' x1='13.423' x2='16.211' y1='-186.331' y2='-188.227' gradientTransform='matrix(1 0 0 -1 0 -170)' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23fbb040'/%3E%3Cstop offset='1' stop-color='%23fb8840'/%3E%3C/linearGradient%3E%3ClinearGradient id='SVGVBiWIclC' x1='16.279' x2='13.434' y1='-175.614' y2='-206.915' gradientTransform='matrix(1 0 0 -1 0 -170)' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23SVG0aPgjdWp)' d='M26.713 11.219a9.15 9.15 0 0 0-1.193-4.534c-2.016-2.075-6.4-2.556-7.492-.01c-1.119 2.61 1.879 5.514 3.189 5.284c1.668-.294-.294-4.121-.294-4.121c2.551 4.808 1.962 3.336-2.649 7.752S8.953 29.322 8.266 29.715a1 1 0 0 1-.093.049h18.088a.43.43 0 0 0 .383-.623l-4.729-9.361a.43.43 0 0 1 .167-.564a9.21 9.21 0 0 0 4.631-7.997'/%3E%3Cpath fill='url(%23SVGEzUXMeRY)' d='M26.713 11.219a9.15 9.15 0 0 0-1.193-4.534c-2.016-2.075-6.4-2.556-7.492-.01c-1.119 2.61 1.879 5.514 3.189 5.284c1.668-.294-.294-4.121-.294-4.121c2.551 4.808 1.962 3.336-2.649 7.752S8.953 29.322 8.266 29.715a1 1 0 0 1-.093.049h18.088a.43.43 0 0 0 .383-.623l-4.729-9.361a.43.43 0 0 1 .167-.564a9.21 9.21 0 0 0 4.631-7.997'/%3E%3Cpath fill='url(%23SVGkRjvQkZr)' d='M8.266 29.715c.687-.392 5.4-9.714 10.008-14.13s5.2-2.944 2.649-7.752c0 0-9.763 13.688-13.3 20.458'/%3E%3Cpath fill='url(%23SVGN27Cvb5p)' d='M9.639 17.449C16.233 5.326 17.1 4.1 20.531 4.1a6.25 6.25 0 0 1 4.8 2.262A9.21 9.21 0 0 0 17.636 2h-11.2a.427.427 0 0 0-.427.427V25a68 68 0 0 1 3.63-7.551'/%3E%3Cpath fill='url(%23SVG4frn6c0O)' d='M18.274 15.585C13.662 20 8.953 29.322 8.266 29.715a2.08 2.08 0 0 1-2.453-.245c-.653-.731-1.668-1.913 3.827-12.02C16.233 5.326 17.1 4.1 20.531 4.1a6.25 6.25 0 0 1 4.8 2.262c.064.1.128.211.191.319c-2.016-2.075-6.4-2.556-7.492-.01c-1.119 2.61 1.879 5.514 3.189 5.284c1.668-.294-.294-4.121-.294-4.121c2.55 4.807 1.961 3.335-2.651 7.751'/%3E%3Cpath fill='url(%23SVGVBiWIclC)' d='M10.179 17.989C16.773 5.866 17.636 4.644 21.071 4.644A6.3 6.3 0 0 1 25.192 6.2a6.25 6.25 0 0 0-4.661-2.1c-3.434 0-4.3 1.222-10.892 13.345C4.145 27.556 5.16 28.738 5.813 29.469a1.6 1.6 0 0 0 .314.265c-.574-.834-.827-2.772 4.052-11.745' opacity='.3'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-scss{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%23cd6799' d='M16.171 18.7c-.481.221-1.008.509-2.063 1.088c-.4.225-.818.45-1.207.662c-.027-.027-.055-.061-.082-.089c-2.087-2.23-5.947-3.805-5.783-6.8c.061-1.091.436-3.955 7.413-7.433c5.742-2.83 10.311-2.046 11.1-.307c1.134 2.479-2.449 7.092-8.379 7.761a4.47 4.47 0 0 1-3.751-.948c-.314-.341-.361-.361-.477-.293c-.191.1-.068.409 0 .586a3.5 3.5 0 0 0 2.141 1.684a11.4 11.4 0 0 0 6.956-.689c3.594-1.391 6.4-5.258 5.578-8.5c-.825-3.287-6.281-4.371-11.443-2.537a26 26 0 0 0-8.79 5.047c-2.844 2.66-3.294 4.972-3.11 5.94c.662 3.437 5.4 5.674 7.3 7.331q-.148.08-.259.143c-.948.471-4.562 2.36-5.463 4.358c-1.023 2.264.164 3.887.948 4.105a5.83 5.83 0 0 0 6.281-2.544a6.3 6.3 0 0 0 .559-5.8a5 5 0 0 1 .716-.477c.484-.286.945-.568 1.354-.786a10.5 10.5 0 0 1 4.475-.989c3.246.382 3.887 2.407 3.764 3.26a2.16 2.16 0 0 1-1.03 1.459c-.225.143-.3.191-.28.293c.027.15.136.143.327.116a2.535 2.535 0 0 0 1.766-2.257c.1-2-1.807-4.194-5.183-4.174a7.8 7.8 0 0 0-2.946.587q-.225.093-.437.2Zm-4.825 7.839c-1.078 1.173-2.578 1.616-3.226 1.241c-.7-.4-.423-2.135.9-3.376a17 17 0 0 1 2.53-1.889c.157-.1.389-.232.668-.4l.075-.041l.164-.1a4.66 4.66 0 0 1-1.111 4.565'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-svelte{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%23ff3e00' d='M26.47 5.7a8.973 8.973 0 0 0-11.793-2.454L7.96 7.4a7.46 7.46 0 0 0-3.481 5.009a7.7 7.7 0 0 0 .8 5.058a7.4 7.4 0 0 0-1.151 2.8a7.8 7.8 0 0 0 1.4 6.028a8.977 8.977 0 0 0 11.794 2.458L24.04 24.6a7.47 7.47 0 0 0 3.481-5.009a7.67 7.67 0 0 0-.8-5.062a7.35 7.35 0 0 0 1.152-2.8A7.8 7.8 0 0 0 26.47 5.7'/%3E%3Cpath fill='%23fff' d='M14.022 26.64A5.41 5.41 0 0 1 8.3 24.581a4.68 4.68 0 0 1-.848-3.625a4 4 0 0 1 .159-.61l.127-.375l.344.238a8.8 8.8 0 0 0 2.628 1.274l.245.073l-.025.237a1.44 1.44 0 0 0 .271.968a1.63 1.63 0 0 0 1.743.636a1.5 1.5 0 0 0 .411-.175l6.7-4.154a1.37 1.37 0 0 0 .633-.909a1.4 1.4 0 0 0-.244-1.091a1.63 1.63 0 0 0-1.726-.622a1.5 1.5 0 0 0-.413.176l-2.572 1.584a5 5 0 0 1-1.364.582a5.415 5.415 0 0 1-5.727-2.06a4.68 4.68 0 0 1-.831-3.628A4.5 4.5 0 0 1 9.9 10.09l6.708-4.154a5 5 0 0 1 1.364-.581A5.41 5.41 0 0 1 23.7 7.414a4.68 4.68 0 0 1 .848 3.625a4 4 0 0 1-.159.61l-.127.375l-.344-.237a8.7 8.7 0 0 0-2.628-1.274l-.245-.074l.025-.237a1.44 1.44 0 0 0-.272-.968a1.63 1.63 0 0 0-1.725-.622a1.5 1.5 0 0 0-.411.176l-6.722 4.14a1.35 1.35 0 0 0-.631.908a1.4 1.4 0 0 0 .244 1.092a1.63 1.63 0 0 0 1.726.621a1.5 1.5 0 0 0 .413-.175l2.562-1.585a4.9 4.9 0 0 1 1.364-.581a5.42 5.42 0 0 1 5.728 2.059a4.68 4.68 0 0 1 .843 3.625a4.5 4.5 0 0 1-2.089 3.013l-6.707 4.154a4.9 4.9 0 0 1-1.364.581'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-svg{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%23ffb13b' stroke='%23000' stroke-width='3.73' d='M7.674 14.488a2.218 2.218 0 1 0 0 3.137h16.652a2.218 2.218 0 1 0 0-3.137Z'/%3E%3Cpath fill='%23ffb13b' stroke='%23000' stroke-width='3.73' d='M11.222 9.06A2.218 2.218 0 1 0 9 11.278l11.778 11.774A2.218 2.218 0 1 0 23 20.834Z'/%3E%3Cpath fill='%23ffb13b' stroke='%23000' stroke-width='3.73' d='M17.568 7.73a2.218 2.218 0 1 0-3.137 0v16.652a2.218 2.218 0 1 0 3.137 0Z'/%3E%3Cpath fill='%23ffb13b' stroke='%23000' stroke-width='3.73' d='M23 11.278a2.218 2.218 0 1 0-2.222-2.218L9 20.834a2.218 2.218 0 1 0 2.218 2.218Z'/%3E%3Cpath fill='%23ffb13b' d='M7.674 14.488a2.218 2.218 0 1 0 0 3.137h16.652a2.218 2.218 0 1 0 0-3.137Z'/%3E%3Cpath fill='%23ffb13b' d='M11.222 9.06A2.218 2.218 0 1 0 9 11.278l11.778 11.774A2.218 2.218 0 1 0 23 20.834Z'/%3E%3Cpath fill='%23ffb13b' d='M17.568 7.73a2.218 2.218 0 1 0-3.137 0v16.652a2.218 2.218 0 1 0 3.137 0Z'/%3E%3Cpath fill='%23ffb13b' d='M23 11.278a2.218 2.218 0 1 0-2.222-2.218L9 20.834a2.218 2.218 0 1 0 2.218 2.218Z'/%3E%3Cpath d='M2 16.056h28v9.894a4.035 4.035 0 0 1-4.106 4.106H6.106A4.035 4.035 0 0 1 2 25.95Z'/%3E%3Cpath fill='%23fff' d='M6.2 23.045a3.628 3.628 0 1 1 6.2-2.565h-2.13a1.5 1.5 0 1 0-2.57 1.061a1.6 1.6 0 0 0 1.062.441a4.12 4.12 0 0 1 2.566 1.063a3.628 3.628 0 1 1-6.194 2.565h2.13a1.5 1.5 0 1 0 2.566-1.06a1.95 1.95 0 0 0-1.063-.44A4.47 4.47 0 0 1 6.2 23.045m13.451-6.193L17.085 29.24H14.96L12.4 16.852h2.12l1.5 7.255l1.5-7.255Zm3.629 5.131h3.628v3.628a3.628 3.628 0 1 1-7.257 0V20.48a3.628 3.628 0 0 1 7.257 0h-2.125a1.5 1.5 0 1 0-3.005 0v5.13a1.5 1.5 0 0 0 3.005 0v-1.5h-1.5v-2.127Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-tsconfig{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%23007acc' d='M23.827 8.243a4.4 4.4 0 0 1 2.223 1.281a6 6 0 0 1 .852 1.143c.011.045-1.534 1.083-2.471 1.662c-.034.023-.169-.124-.322-.35a2.01 2.01 0 0 0-1.67-1c-1.077-.074-1.771.49-1.766 1.433a1.3 1.3 0 0 0 .153.666c.237.49.677.784 2.059 1.383c2.544 1.1 3.636 1.817 4.31 2.843a5.16 5.16 0 0 1 .416 4.333a4.76 4.76 0 0 1-3.932 2.815a11 11 0 0 1-2.708-.028a6.53 6.53 0 0 1-3.616-1.884a6.3 6.3 0 0 1-.926-1.371a3 3 0 0 1 .327-.208c.158-.09.756-.434 1.32-.761l1.024-.6l.214.312a4.8 4.8 0 0 0 1.35 1.292a3.3 3.3 0 0 0 3.458-.175a1.545 1.545 0 0 0 .2-1.974c-.276-.4-.84-.727-2.443-1.422a8.8 8.8 0 0 1-3.349-2.055a4.7 4.7 0 0 1-.976-1.777a7.1 7.1 0 0 1-.062-2.268a4.33 4.33 0 0 1 3.644-3.374a9 9 0 0 1 2.691.084m-8.343 1.483l.011 1.454h-4.63v13.148H7.6V11.183H2.97V9.755a14 14 0 0 1 .04-1.466c.017-.023 2.832-.034 6.245-.028l6.211.017Z'/%3E%3Cpath fill='%2399b8c4' d='m27.075 25.107l.363-.361c1.68.055 1.706 0 1.78-.177l.462-1.124l.034-.107l-.038-.093c-.02-.049-.081-.2-1.13-1.2v-.526c1.211-1.166 1.185-1.226 1.116-1.4l-.46-1.136c-.069-.17-.1-.237-1.763-.191l-.364-.367a8 8 0 0 0-.057-1.657l-.047-.106l-1.2-.525c-.177-.081-.239-.11-1.372 1.124l-.509-.008c-1.167-1.245-1.222-1.223-1.4-1.152l-1.115.452c-.175.071-.236.1-.169 1.79l-.36.359c-1.68-.055-1.7 0-1.778.177L18.606 20l-.036.108l.038.094c.02.048.078.194 1.13 1.2v.525c-1.211 1.166-1.184 1.226-1.115 1.4l.459 1.137c.07.174.1.236 1.763.192l.363.377a8 8 0 0 0 .055 1.654l.047.107l1.208.528c.176.073.236.1 1.366-1.13l.509.006c1.168 1.247 1.228 1.223 1.4 1.154l1.113-.45c.176-.075.237-.102.169-1.795m-4.788-2.632a2 2 0 1 1 2.618 1.14a2.023 2.023 0 0 1-2.618-1.14'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-typescript{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%23007acc' d='M23.827 8.243a4.4 4.4 0 0 1 2.223 1.281a6 6 0 0 1 .852 1.143c.011.045-1.534 1.083-2.471 1.662c-.034.023-.169-.124-.322-.35a2.01 2.01 0 0 0-1.67-1c-1.077-.074-1.771.49-1.766 1.433a1.3 1.3 0 0 0 .153.666c.237.49.677.784 2.059 1.383c2.544 1.095 3.636 1.817 4.31 2.843a5.16 5.16 0 0 1 .416 4.333a4.76 4.76 0 0 1-3.932 2.815a11 11 0 0 1-2.708-.028a6.53 6.53 0 0 1-3.616-1.884a6.3 6.3 0 0 1-.926-1.371a3 3 0 0 1 .327-.208c.158-.09.756-.434 1.32-.761l1.024-.6l.214.312a4.8 4.8 0 0 0 1.35 1.292a3.3 3.3 0 0 0 3.458-.175a1.545 1.545 0 0 0 .2-1.974c-.276-.395-.84-.727-2.443-1.422a8.8 8.8 0 0 1-3.349-2.055a4.7 4.7 0 0 1-.976-1.777a7.1 7.1 0 0 1-.062-2.268a4.33 4.33 0 0 1 3.644-3.374a9 9 0 0 1 2.691.084m-8.343 1.483l.011 1.454h-4.63v13.148H7.6V11.183H2.97V9.755a14 14 0 0 1 .04-1.466c.017-.023 2.832-.034 6.245-.028l6.211.017Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-unocss{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg stroke-width='.13'%3E%3Cpath fill='%23858585' d='M17.007 23.491a6.52 6.52 0 1 1 13.04 0a6.52 6.52 0 0 1-13.04 0'/%3E%3Cpath fill='%23ccc' d='M17.007 8.51a6.52 6.52 0 0 1 13.04 0v5.867c0 .36-.292.652-.652.652H17.659a.65.65 0 0 1-.652-.652z'/%3E%3Cpath fill='%234d4d4d' d='M14.993 23.491a6.52 6.52 0 1 1-13.04 0v-5.868c0-.36.292-.652.652-.652h11.736c.36 0 .652.292.652.652z'/%3E%3C/g%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-vite{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cmask id='SVGgudELdDz'%3E%3Cpath fill='%23fff' d='M40.05 45.7c-.67.85-2.02.38-2.02-.69v-10.3a2.26 2.26 0 0 0-2.27-2.26H24.4a1.13 1.13 0 0 1-.92-1.8l7.48-10.46c1.07-1.5 0-3.58-1.84-3.58H15.34a1.13 1.13 0 0 1-.92-1.79l9.7-13.57c.2-.3.55-.48.92-.48h28.89c.92 0 1.46 1.04.92 1.79l-7.48 10.47a2.26 2.26 0 0 0 1.84 3.58H60.6c.94 0 1.47 1.09.89 1.83z'/%3E%3C/mask%3E%3Cg fill='none'%3E%3Cg mask='url(%23SVGgudELdDz)' transform='translate(1 6.8)scale(.393)'%3E%3Cpath fill='%239135ff' d='M0 0h62v47H0z'/%3E%3Cg filter='url(%23SVGNp06lekD)'%3E%3Cellipse cx='24.46' cy='37.75' fill='%23eee6ff' rx='5.51' ry='14.7' transform='rotate(89.8 24.46 37.75)'/%3E%3C/g%3E%3Cg filter='url(%23SVGNp06lekD)'%3E%3Cellipse cx='4.76' cy='18.96' fill='%23eee6ff' rx='10.4' ry='29.85' transform='rotate(89.8 4.76 18.96)'/%3E%3C/g%3E%3Cg filter='url(%23SVGQv8P6csY)'%3E%3Cellipse cx='4.24' cy='17.5' fill='%238900ff' rx='5.51' ry='30.49' transform='rotate(89.8 4.24 17.5)'/%3E%3C/g%3E%3Cg filter='url(%23SVGQv8P6csY)'%3E%3Cellipse cx='8.95' cy='35.5' fill='%238900ff' rx='5.51' ry='30.6' transform='rotate(89.8 8.95 35.5)'/%3E%3C/g%3E%3Cg filter='url(%23SVGQv8P6csY)'%3E%3Cellipse cx='10.48' cy='36.65' fill='%238900ff' rx='5.51' ry='30.6' transform='rotate(89.8 10.48 36.65)'/%3E%3C/g%3E%3Cg filter='url(%23SVGNp06lekD)'%3E%3Cellipse cx='67.34' cy='12.3' fill='%23eee6ff' rx='14.07' ry='22.08' transform='rotate(-86.7 67.34 12.3)'/%3E%3C/g%3E%3Cg filter='url(%23SVGQv8P6csY)'%3E%3Cellipse cx='68.44' cy='15.74' fill='%238900ff' rx='3.47' ry='21.5' transform='rotate(-91 68.44 15.74)'/%3E%3C/g%3E%3Cg filter='url(%23SVGQv8P6csY)'%3E%3Cellipse cx='68.44' cy='15.74' fill='%238900ff' rx='3.47' ry='21.5' transform='rotate(-91 68.44 15.74)'/%3E%3C/g%3E%3Cg filter='url(%23SVGQv8P6csY)'%3E%3Cellipse cx='14.59' cy='9.74' fill='%238900ff' rx='4.41' ry='29.11' transform='rotate(39.5 14.6 9.74)'/%3E%3C/g%3E%3Cg filter='url(%23SVGQv8P6csY)'%3E%3Cellipse cx='61.73' cy='-5.32' fill='%238900ff' rx='4.41' ry='29.11' transform='rotate(37.9 61.73 -5.32)'/%3E%3C/g%3E%3Cg filter='url(%23SVGQv8P6csY)'%3E%3Cellipse cx='55.62' cy='7.1' fill='%2300c2ff' rx='5.97' ry='9.67' transform='rotate(37.9 55.62 7.1)'/%3E%3C/g%3E%3Cg filter='url(%23SVGQv8P6csY)'%3E%3Cellipse cx='12.33' cy='39.1' fill='%238900ff' rx='4.41' ry='29.11' transform='rotate(37.9 12.33 39.1)'/%3E%3C/g%3E%3Cg filter='url(%23SVGQv8P6csY)'%3E%3Cellipse cx='12.33' cy='39.1' fill='%238900ff' rx='4.41' ry='29.11' transform='rotate(37.9 12.33 39.1)'/%3E%3C/g%3E%3Cg filter='url(%23SVGQv8P6csY)'%3E%3Cellipse cx='49.86' cy='30.68' fill='%238900ff' rx='4.41' ry='29.11' transform='rotate(37.9 49.86 30.68)'/%3E%3C/g%3E%3Cg filter='url(%23SVGQv8P6csY)'%3E%3Cellipse cx='52.62' cy='33.17' fill='%2300c2ff' rx='5.97' ry='15.3' transform='rotate(37.9 52.62 33.17)'/%3E%3C/g%3E%3C/g%3E%3Cpath fill='%23fff' d='M3.72 6.8C.1 11.98.08 20 3.72 25.2h2.45c-3.64-5.2-3.62-13.22 0-18.4zm24.56 0h-2.45c3.62 5.18 3.64 13.2 0 18.4h2.45c3.64-5.2 3.62-13.22 0-18.4'/%3E%3Cdefs%3E%3Cfilter id='SVGNp06lekD' width='4' height='4' x='-2' y='-2' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='7.66'/%3E%3C/filter%3E%3Cfilter id='SVGQv8P6csY' width='4' height='4' x='-2' y='-2' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='4.6'/%3E%3C/filter%3E%3C/defs%3E%3C/g%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-vscode{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%230065a9' d='m29.01 5.03l-5.766-2.776a1.74 1.74 0 0 0-1.989.338L2.38 19.8a1.166 1.166 0 0 0-.08 1.647q.037.04.077.077l1.541 1.4a1.165 1.165 0 0 0 1.489.066L28.142 5.75A1.158 1.158 0 0 1 30 6.672v-.067a1.75 1.75 0 0 0-.99-1.575'/%3E%3Cpath fill='%23007acc' d='m29.01 26.97l-5.766 2.777a1.745 1.745 0 0 1-1.989-.338L2.38 12.2a1.166 1.166 0 0 1-.08-1.647q.037-.04.077-.077l1.541-1.4A1.165 1.165 0 0 1 5.41 9.01l22.732 17.24A1.158 1.158 0 0 0 30 25.328v.072a1.75 1.75 0 0 1-.99 1.57'/%3E%3Cpath fill='%231f9cf0' d='M23.244 29.747a1.745 1.745 0 0 1-1.989-.338A1.025 1.025 0 0 0 23 28.684V3.316a1.024 1.024 0 0 0-1.749-.724a1.74 1.74 0 0 1 1.989-.339l5.765 2.772A1.75 1.75 0 0 1 30 6.6v18.8a1.75 1.75 0 0 1-.991 1.576Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-vue{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%2341b883' d='M24.4 3.925H30l-14 24.15L2 3.925h10.71l3.29 5.6l3.22-5.6Z'/%3E%3Cpath fill='%2341b883' d='m2 3.925l14 24.15l14-24.15h-5.6L16 18.415L7.53 3.925Z'/%3E%3Cpath fill='%2335495e' d='M7.53 3.925L16 18.485l8.4-14.56h-5.18L16 9.525l-3.29-5.6Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-vueconfig{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%2341b883' d='M24.4 3.925H30l-14 24.15L2 3.925h10.71l3.29 5.6l3.22-5.6Z'/%3E%3Cpath fill='%2341b883' d='m2 3.925l14 24.15l14-24.15h-5.6L16 18.415L7.53 3.925Z'/%3E%3Cpath fill='%2335495e' d='M7.53 3.925L16 18.485l8.4-14.56h-5.18L16 9.525l-3.29-5.6Z'/%3E%3Cpath fill='%2399b8c4' d='m26.684 27.192l.456-.447c2.112.068 2.144-.005 2.237-.219l.58-1.393L30 25l-.047-.115c-.025-.061-.1-.243-1.42-1.483v-.652c1.521-1.445 1.489-1.519 1.4-1.73l-.577-1.407c-.087-.211-.12-.294-2.216-.237l-.457-.465a10 10 0 0 0-.071-2.053l-.059-.132l-1.508-.65c-.222-.1-.3-.136-1.724 1.393l-.64-.009c-1.466-1.543-1.535-1.515-1.755-1.428l-1.4.559c-.219.088-.3.119-.212 2.219l-.453.445c-2.11-.068-2.142.006-2.234.219l-.581 1.393L16 21l.048.116c.025.06.1.24 1.419 1.481v.65c-1.521 1.445-1.488 1.519-1.4 1.731l.577 1.409c.089.215.12.292 2.216.238l.456.467a10 10 0 0 0 .07 2.05l.058.133l1.518.654c.221.091.3.124 1.717-1.4l.64.008c1.468 1.545 1.543 1.515 1.757 1.43l1.4-.558c.224-.086.297-.116.208-2.217m-6.013-3.262a2.47 2.47 0 0 1 1.449-3.2a2.525 2.525 0 0 1 3.246 1.429a2.467 2.467 0 0 1-1.405 3.184a2.554 2.554 0 0 1-3.29-1.413'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-webpack{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cdefs%3E%3CradialGradient id='SVGhEfk9dUr' cx='-236.884' cy='-171.086' r='.006' gradientTransform='matrix(2157.515 0 0 -2491.283 511096.688 -426208.482)' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%2393b4e7'/%3E%3Cstop offset='.593' stop-color='%23b9d1f8'/%3E%3Cstop offset='1' stop-color='%239cb6e0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath fill='url(%23SVGhEfk9dUr)' d='M16 2.043L3.9 9.032v13.979L16 30l12.106-6.989V9.032Z'/%3E%3Cpath fill='%236f95db' d='M16 9.133L10 12.6v6.932L16 23l6-3.466V12.6Z'/%3E%3Cpath fill='%23fff' fill-opacity='.1' d='M16 2L3.869 9.037L16 15.642L28.131 9.08Zm0 14.548L3.869 22.981L16 29.974l12.088-7.037z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.i-vscode-icons\:file-type-yarn{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%232188b6' d='M28.208 24.409a10.5 10.5 0 0 0-3.959 1.822a23.7 23.7 0 0 1-5.835 2.642a1.63 1.63 0 0 1-.983.55a62 62 0 0 1-6.447.577c-1.163.009-1.876-.3-2.074-.776a1.573 1.573 0 0 1 .866-2.074a4 4 0 0 1-.514-.379c-.171-.171-.352-.514-.406-.388c-.225.55-.343 1.894-.947 2.5c-.83.839-2.4.559-3.328.072c-1.019-.541.072-1.813.072-1.813a.73.73 0 0 1-.992-.343a4.85 4.85 0 0 1-.667-2.949a5.37 5.37 0 0 1 1.749-2.895a9.3 9.3 0 0 1 .658-4.4a10.45 10.45 0 0 1 3.165-3.661S6.628 10.747 7.35 8.817c.469-1.262.658-1.253.812-1.308a3.6 3.6 0 0 0 1.452-.857a5.27 5.27 0 0 1 4.41-1.7S15.2 1.4 16.277 2.09a18.4 18.4 0 0 1 1.533 2.886s1.281-.748 1.425-.469a11.33 11.33 0 0 1 .523 6.132a14 14 0 0 1-2.6 5.411c-.135.225 1.551.938 2.615 3.887c.983 2.7.108 4.96.262 5.212c.027.045.036.063.036.063s1.127.09 3.391-1.308a8.5 8.5 0 0 1 4.277-1.604a1.081 1.081 0 0 1 .469 2.11Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1em;height:1em}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.pointer-events-none,[pointer-events-none=""]{pointer-events:none}.absolute,[absolute=""]{position:absolute}.fixed,[fixed=""]{position:fixed}.relative,[relative=""]{position:relative}.inset-0,[inset-0=""]{inset:0}.inset-y-0,[inset-y-0=""]{top:0;bottom:0}.-top-15px{top:-15px}.-top-20{top:-5rem}.bottom-\[-6px\]{bottom:-6px}.bottom-0,[bottom-0=""]{bottom:0}.bottom-1,[bottom-1=""]{bottom:.25rem}.bottom-10{bottom:2.5rem}.bottom-5{bottom:1.25rem}.left-0,[left-0=""]{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.left-110\%{left:110%}.right--2,[right--2=""]{right:-.5rem}.right-\[-6px\]{right:-6px}.right-0,[right-0=""]{right:0}.right-0\.5,[right-0\.5=""]{right:.125rem}.right-1,[right-1=""]{right:.25rem}.right-4{right:1rem}.right-5,[right-5=""]{right:1.25rem}.top-\[-6px\]{top:-6px}.top-0,[top-0=""]{top:0}.top-0\.5,[top-0\.5=""]{top:.125rem}.top-1\/2,.top-50\%{top:50%}.top-10{top:2.5rem}.top-4{top:1rem}.top-5{top:1.25rem}.-z-1{z-index:-1}.z-1,[z-1=""]{z-index:1}.z-10,[z-10=""]{z-index:10}.z-2{z-index:2}.grid{display:grid}.grid-cols-\[1fr_max-content\]{grid-template-columns:1fr max-content}.grid-cols-\[35px_1fr\]{grid-template-columns:35px 1fr}.grid-rows-\[1fr_max-content\]{grid-template-rows:1fr max-content}.grid-rows-\[1fr_min-content\]{grid-template-rows:1fr min-content}.grid-rows-\[auto_max-content\]{grid-template-rows:auto max-content}.grid-rows-\[max-content_1fr\]{grid-template-rows:max-content 1fr}.m--1,[m--1=""]{margin:-.25rem}.m-1{margin:.25rem}.m-auto,.ma{margin:auto}.m0,[m0=""]{margin:0}.children\:my-auto>*,.my-auto,.mya{margin-top:auto;margin-bottom:auto}.mx--1\.2{margin-left:-.3rem;margin-right:-.3rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1,.my1{margin-top:.25rem;margin-bottom:.25rem}.my2{margin-top:.5rem;margin-bottom:.5rem}.my5{margin-top:1.25rem;margin-bottom:1.25rem}.-mt-0\.5{margin-top:-.125rem}.mb-4{margin-bottom:1rem}.mb2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.mr--14px{margin-right:-14px}.mr--4{margin-right:-1rem}.mr-2{margin-right:.5rem}.mr0{margin-right:0}.mr1{margin-right:.25rem}.ms{margin-inline-start:1rem}.mt-1,.mt1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-px{margin-top:1px}.block{display:block}.inline-block,[inline-block=""]{display:inline-block}.group:hover .group-hover\:hidden,.group:not(:hover) .group-not-hover\:hidden{display:none}.aspect-ratio-initial{aspect-ratio:initial}.h-\[22px\],.h-22px,[h-22px=""]{height:22px}.h-\[40px\]{height:40px}.h-\[calc\(var\(--vh\,1vh\)\*100\)\]{height:calc(var(--vh,1vh) * 100)}.h-0\.7{height:.175rem}.h-1\.5,[h-1\.5=""]{height:.375rem}.h-1px{height:1px}.h-2,[h-2=""]{height:.5rem}.h-3\.5{height:.875rem}.h-40{height:10rem}.h-4px{height:4px}.h-5,.h5,[h-5=""]{height:1.25rem}.h-6{height:1.5rem}.h-8,[h-8=""]{height:2rem}.h-full,[h-full=""]{height:100%}.h-max{height:max-content}.h-screen{height:100vh}.h1,[h1=""]{height:.25rem}.max-h-full{max-height:100%}.max-h-full\!{max-height:100%!important}.max-w-\[calc\(100\%-3rem\)\]{max-width:calc(100% - 3rem)}.max-w-150{max-width:37.5rem}.max-w-250{max-width:62.5rem}.max-w-90,[max-w-90=""]{max-width:22.5rem}.max-w-full{max-width:100%}.max-w-full\!{max-width:100%!important}.max-w-xs{max-width:20rem}.min-h-50{min-height:12.5rem}.min-h-full\!{min-height:100%!important}.min-w-\[70\%\]{min-width:70%}.min-w-0{min-width:0}.min-w-16{min-width:4rem}.min-w-30,[min-w-30=""]{min-width:7.5rem}.min-w-40{min-width:10rem}.min-w-90,[min-w-90=""]{min-width:22.5rem}.min-w-full\!{min-width:100%!important}.w-\[40px\]{width:40px}.w-\[calc\(100\%-0\.25rem\)\]{width:calc(100% - .25rem)}.w-0{width:0}.w-0\.5,[w-0\.5=""]{width:.125rem}.w-1\.5,[w-1\.5=""]{width:.375rem}.w-13{width:3.25rem}.w-1px,[w-1px=""]{width:1px}.w-2,[w-2=""]{width:.5rem}.w-20,[w-20=""]{width:5rem}.w-200{width:50rem}.w-22px{width:22px}.w-250{width:62.5rem}.w-3\.5{width:.875rem}.w-30,[w-30=""]{width:7.5rem}.w-5,[w-5=""]{width:1.25rem}.w-6{width:1.5rem}.w-60,[w-60=""]{width:15rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-88{width:22rem}.w-9{width:2.25rem}.w-90,[w-90=""]{width:22.5rem}.w-full,[w-full=""]{width:100%}.w-full\!{width:100%!important}.w-screen{width:100vw}.w1,[w1=""]{width:.25rem}.flex,[flex=""],[flex~=\~]{display:flex}.flex-1{flex:1}.flex-auto,[flex-auto=""]{flex:auto}.flex-none{flex:none}[flex~=row]{flex-direction:row}.flex-col,[flex~=col]{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-wrap-reverse{flex-wrap:wrap-reverse}.table,[table=""]{display:table}.table-cell,[table-cell=""]{display:table-cell}.table-row,[table-row=""]{display:table-row}.border-collapse,[border-collapse=""]{border-collapse:collapse}.translate-y--50\%{--un-translate-y:-50%;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.-rotate-45{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:-45deg;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.scale-102{--un-scale-x:1.02;--un-scale-y:1.02;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.scale-85{--un-scale-x:.85;--un-scale-y:.85;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.scale-x-80{--un-scale-x:.8;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.transform{transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.animate-fade-in{animation:1s linear fade-in}.animate-duration-100{animation-duration:.1s}.cursor-default{cursor:default}.cursor-pointer,[cursor-pointer=""]{cursor:pointer}.touch-none,[touch-none=""]{touch-action:none}.important\:\[\&_\*\]\:select-none *{-webkit-user-select:none!important;user-select:none!important}.select-none,[select-none=""]{-webkit-user-select:none;user-select:none}.resize{resize:both}.resize-none{resize:none}.items-end{align-items:flex-end}.items-center,[flex~=items-center],[items-center=""]{align-items:center}.self-center{align-self:center}.justify-center,[flex~=justify-center],[justify-center=""]{justify-content:center}.justify-between{justify-content:space-between}.justify-items-start{justify-items:start}.gap-0{gap:0}.gap-0\.2{gap:.05rem}.gap-0\.5{gap:.125rem}.gap-1,[flex~=gap-1],[gap-1=""]{gap:.25rem}.gap-2,[flex~=gap-2]{gap:.5rem}.gap-4,[flex~=gap-4]{gap:1rem}.gap-5{gap:1.25rem}.gap-px{gap:1px}.gap-x-8{column-gap:2rem}.gap-y-4{row-gap:1rem}.of-auto,.overflow-auto{overflow:auto}.of-hidden,.overflow-hidden,[of-hidden=""]{overflow:hidden}.of-x-visible{overflow-x:visible}.of-y-auto,.overflow-y-auto{overflow-y:auto}.whitespace-nowrap,.ws-nowrap,[ws-nowrap=""]{white-space:nowrap}.b,.border,.dark .dark\:border,.dark [dark\:border~=\~],[b=""],[border=""],[border~=\~],[border~="1"]{border-width:1px}.border-2,[b~="2"]{border-width:2px}[b~="100%"]{border-width:100%}[b~="50%"]{border-width:50%}[border~="0"]{border-width:0}.border-x,[b~=x]{border-left-width:1px;border-right-width:1px}[b~=y],[border~=y]{border-top-width:1px;border-bottom-width:1px}.border-b,[b~=b],[border~=b]{border-bottom-width:1px}.border-b-0{border-bottom-width:0}.border-l{border-left-width:1px}.border-r,[border~=r]{border-right-width:1px}.border-r-2{border-right-width:2px}.border-t,[border-t=""],[border~=t]{border-top-width:1px}.b-dark{--un-border-opacity:1;border-color:rgb(34 34 34/var(--un-border-opacity))}.border-gray,.dark .dark\:b-gray-400,[border-gray=""]{--un-border-opacity:1;border-color:rgb(156 163 175/var(--un-border-opacity))}.border-gray-300\/50{border-color:#d1d5db80}.border-transparent,[border~=transparent]{border-color:#0000}.border-white{--un-border-opacity:1;border-color:rgb(255 255 255/var(--un-border-opacity))}.dark .dark\:border-gray-500,.dark [dark\:border-gray-500=""]{--un-border-opacity:1;border-color:rgb(107 114 128/var(--un-border-opacity))}[b-dark~="1"]{--un-border-opacity:1;border-color:rgb(60 60 60/var(--un-border-opacity))}[border~=red]{--un-border-opacity:1;border-color:rgb(248 113 113/var(--un-border-opacity))}.dark [b~=dark\:b-gray-400]{--un-border-opacity:1;--un-border-bottom-opacity:var(--un-border-opacity);border-bottom-color:rgb(156 163 175/var(--un-border-bottom-opacity))}[b~=b-dark]{--un-border-opacity:1;--un-border-bottom-opacity:var(--un-border-opacity);border-bottom-color:rgb(34 34 34/var(--un-border-bottom-opacity))}.rounded,[border~=rounded],[rounded=""]{border-radius:.25rem}.rounded-1\/2{border-radius:50%}.rounded-full,[rounded-full=""]{border-radius:9999px}.rounded-md,[border~=rounded-md]{border-radius:.375rem}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-lb{border-bottom-left-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-tr{border-top-right-radius:.25rem}.rounded-tr-0{border-top-right-radius:0}.\!border-none{border-style:none!important}.b-dashed{border-style:dashed}[b~=b-dashed]{border-bottom-style:dashed}.bg-blue{--un-bg-opacity:1;background-color:rgb(96 165 250/var(--un-bg-opacity)) }.bg-current{background-color:currentColor}.bg-cyan\:10,[bg-cyan\:10=""]{background-color:#22d3ee1a}.bg-gray,[bg-gray=""]{--un-bg-opacity:1;background-color:rgb(156 163 175/var(--un-bg-opacity)) }.bg-gray\:10,.bg-gray\/10{background-color:#9ca3af1a}.bg-gray\:4,[bg-gray\:4=""]{background-color:#9ca3af0a}.bg-gray\:5,.bg-gray\/5,[bg-gray\:5=""]{background-color:#9ca3af0d}.bg-gray\/20{background-color:#9ca3af33}.bg-green{--un-bg-opacity:1;background-color:rgb(74 222 128/var(--un-bg-opacity)) }.bg-red{--un-bg-opacity:1;background-color:rgb(248 113 113/var(--un-bg-opacity)) }.bg-transparent{background-color:#0000}.bg-yellow{--un-bg-opacity:1;background-color:rgb(250 204 21/var(--un-bg-opacity)) }.dark .dark\:bg-gray-800,.dark [dark\:bg-gray-800=""]{--un-bg-opacity:1;background-color:rgb(31 41 55/var(--un-bg-opacity)) }[bg~=black]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity)) }.hover\:bg-gray-400:hover{--un-bg-opacity:1;background-color:rgb(156 163 175/var(--un-bg-opacity)) }.hover\:bg-gray\/20:hover{background-color:#9ca3af33}[bg-transparent~=placeholder\:]::placeholder{background-color:#0000}.\!bg-opacity-75{--un-bg-opacity:.75!important}.bg-opacity-30,[bg-opacity-30=""]{--un-bg-opacity:.3}[bg~=opacity-80]{--un-bg-opacity:.8}.hover\:bg-opacity-10:hover{--un-bg-opacity:.1}[stroke-width~="1"]{stroke-width:1px}[stroke-width~="2"]{stroke-width:2px}[stroke-width~="3"]{stroke-width:3px}.dark .dark\:stroke-black{--un-stroke-opacity:1;stroke:rgb(0 0 0/var(--un-stroke-opacity)) }.stroke-white{--un-stroke-opacity:1;stroke:rgb(255 255 255/var(--un-stroke-opacity)) }.object-cover{object-fit:cover}.object-contain{object-fit:contain}.\!p-4{padding:1rem!important}.p-1,.p1,[p1=""]{padding:.25rem}.p-16{padding:4rem}.p-2,.p2,[p2=""]{padding:.5rem}.p-6px{padding:6px}.p0\.5,[p0\.5=""]{padding:.125rem}.p3,.pa-3{padding:.75rem}.p4{padding:1rem}.p5{padding:1.25rem}.px,.px-4,.px4,[p~=x-4],[px=""],[px4=""]{padding-left:1rem;padding-right:1rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2,.px2,[px2=""]{padding-left:.5rem;padding-right:.5rem}.px-3,.px3,[px3=""]{padding-left:.75rem;padding-right:.75rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px1{padding-left:.25rem;padding-right:.25rem}.py-1,.py1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2,.py2,[p~=y-2],[py-2=""],[py2=""]{padding-top:.5rem;padding-bottom:.5rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py0\.5{padding-top:.125rem;padding-bottom:.125rem}.py1\.5{padding-top:.375rem;padding-bottom:.375rem}.pb2{padding-bottom:.5rem}.pl-0{padding-left:0}.pl-1,.pl1{padding-left:.25rem}.pl-4,[pl-4=""]{padding-left:1rem}.pl2,[pl2=""]{padding-left:.5rem}.pr-3,[pr-3=""]{padding-right:.75rem}.pr-4,[pr-4=""]{padding-right:1rem}.pt-\.5{padding-top:.125rem}.pt-15\%{padding-top:15%}.pt2{padding-top:.5rem}.pie{padding-inline-end:1rem}.text-center{text-align:center}.text-right,[text-right=""]{text-align:right}.text-wrap{text-wrap:wrap}.text-nowrap{text-wrap:nowrap}.align-top,[align-top=""]{vertical-align:top}.vertical-middle,[vertical-middle=""]{vertical-align:middle}.text-1\.2em{font-size:1.2em}.text-11px{font-size:11px}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3em{font-size:3em}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-9xl,[text-9xl=""]{font-size:8rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm,[text-sm=""]{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs,[text-xs=""]{font-size:.75rem;line-height:1rem}.\!text-current{color:currentColor!important}.dark .dark\:text-blue3{--un-text-opacity:1;color:rgb(147 197 253/var(--un-text-opacity)) }.dark .dark\:text-green,.text-green{--un-text-opacity:1;color:rgb(74 222 128/var(--un-text-opacity)) }.dark .dark\:text-green3{--un-text-opacity:1;color:rgb(134 239 172/var(--un-text-opacity)) }.dark .dark\:text-red-500{--un-text-opacity:1;color:rgb(239 68 68/var(--un-text-opacity)) }.dark .dark\:text-red3{--un-text-opacity:1;color:rgb(252 165 165/var(--un-text-opacity)) }.dark .dark\:text-yellow3{--un-text-opacity:1;color:rgb(253 224 71/var(--un-text-opacity)) }.text-\$slidev-controls-foreground{color:var(--slidev-controls-foreground) }.text-black{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity)) }.text-blue{--un-text-opacity:1;color:rgb(96 165 250/var(--un-text-opacity)) }.text-blue6{--un-text-opacity:1;color:rgb(37 99 235/var(--un-text-opacity)) }.text-cyan{--un-text-opacity:1;color:rgb(34 211 238/var(--un-text-opacity)) }.text-cyan\:75,[text-cyan\:75=""]{color:#22d3eebf}.text-gray,.text-gray-400{--un-text-opacity:1;color:rgb(156 163 175/var(--un-text-opacity)) }.text-gray-500{--un-text-opacity:1;color:rgb(107 114 128/var(--un-text-opacity)) }.text-green-500{--un-text-opacity:1;color:rgb(34 197 94/var(--un-text-opacity)) }.text-green6{--un-text-opacity:1;color:rgb(22 163 74/var(--un-text-opacity)) }.text-indigo{--un-text-opacity:1;color:rgb(129 140 248/var(--un-text-opacity)) }.text-lime{--un-text-opacity:1;color:rgb(163 230 53/var(--un-text-opacity)) }.text-orange{--un-text-opacity:1;color:rgb(251 146 60/var(--un-text-opacity)) }.text-pink{--un-text-opacity:1;color:rgb(244 114 182/var(--un-text-opacity)) }.text-purple{--un-text-opacity:1;color:rgb(192 132 252/var(--un-text-opacity)) }.dark .dark\:color-red-400,.text-red,.text-red-400{--un-text-opacity:1;color:rgb(248 113 113/var(--un-text-opacity)) }.text-red-700{--un-text-opacity:1;color:rgb(185 28 28/var(--un-text-opacity)) }.color-red-600,.text-red6{--un-text-opacity:1;color:rgb(220 38 38/var(--un-text-opacity)) }.text-teal{--un-text-opacity:1;color:rgb(45 212 191/var(--un-text-opacity)) }.text-white{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity)) }.text-yellow{--un-text-opacity:1;color:rgb(250 204 21/var(--un-text-opacity)) }.text-yellow6{--un-text-opacity:1;color:rgb(202 138 4/var(--un-text-opacity)) }.important-text-op-50,.text-opacity-50\!{--un-text-opacity:.5!important}.font-bold,[font-bold=""]{font-weight:700}.font-light{font-weight:300}.leading-1\.6em{line-height:1.6em}.leading-1em{line-height:1em}.leading-tight{line-height:1.25}.font-mono,[font-mono=""]{font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.italic{font-style:italic}.tabular-nums{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.line-through{text-decoration-line:line-through}.underline,.hover\:underline:hover{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.tab{tab-size:4}.\!opacity-0{opacity:0!important}.\!opacity-100{opacity:1!important}.op-60,.op60{opacity:.6}.op-80,.op80,.opacity-80{opacity:.8}.op0,.opacity-0{opacity:0}.op100,.group:hover .group-hover\:op100{opacity:1}.op15{opacity:.15}.op20,.group:hover .group-hover\:opacity-20{opacity:.2}.op25,.opacity-25,[op25=""]{opacity:.25}.op30{opacity:.3}.op35{opacity:.35}.op40,.opacity-40,[op40=""]{opacity:.4}.op50,.opacity-50,[op50=""]{opacity:.5}.op75,[op75=""]{opacity:.75}.opacity-10,[opacity-10=""]{opacity:.1}.opacity-5{opacity:.05}.focus-within\:opacity-100:focus-within{opacity:1}.hover\:\!opacity-100:hover{opacity:1!important}.hover\:op-100:hover,.hover\:op100:hover{opacity:1}.hover\:op90:hover{opacity:.9}.hover\:opacity-100:hover{opacity:1}.hover\:opacity-90:hover{opacity:.9}[hover~=op100]:hover,.focus-visible\:opacity-100:focus-visible{opacity:1}.placeholder\:op25::placeholder{opacity:.25}.shadow,[shadow=""],[shadow~=\~]{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color,#0000001a),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color,#0000001a);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)}.shadow-xl{--un-shadow:var(--un-shadow-inset) 0 20px 25px -5px var(--un-shadow-color,#0000001a),var(--un-shadow-inset) 0 8px 10px -6px var(--un-shadow-color,#0000001a);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)}[shadow~=\$event]{--un-shadow:var(--event);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)}.outline{outline-style:solid}.outline-none,[outline-none=""]{outline-offset:2px;outline:2px solid #0000}.\!backdrop-blur-0px{--un-backdrop-blur:blur(0px)!important;-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)!important;backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)!important}.backdrop-blur{--un-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.backdrop-blur-5px{--un-backdrop-blur:blur(5px);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.filter{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}[transition-all~="0"]{transition-property:all;transition-duration:0s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-400{transition-duration:.4s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.view-transition-name{view-transition-name:name}@media (width<=767.9px){.lt-md\:hidden{display:none}.lt-md\:flex-col{flex-direction:column}}@media (width>=768px){.md\:p-10px{padding:10px}}@media (width>=1024px){.lg\:m-2{margin:.5rem}.lg\:p-2{padding:.5rem}.lg\:p-4{padding:1rem}} diff --git a/docs/dist/assets/index-hODKC6Hw.js b/docs/dist/assets/index-hODKC6Hw.js deleted file mode 100644 index f166275f..00000000 --- a/docs/dist/assets/index-hODKC6Hw.js +++ /dev/null @@ -1,71 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./slidev/md-CRLDuEzr.js","./modules/shiki-yoNnvMyB.js","./rolldown-runtime-QTnfLwEv.js","./modules/shiki-BrmBd2_v.css","./modules/unplugin-icons-SB3WWAiu.js","./md-BW6T0zQ1.js","./slidev/VClicks-241EYX7i.js","./slidev/utils-ebkCohfA.js","./slidev/default-BuNamc3V.js","./slidev/md-Pg3tJRzD.js","./md-CgEFMm-d.js","./md-BbhCIpoP.js","./slidev/center-fwMEwbLV.js","./md-D_fsd_0G.js","./md-DDBHlo0Y.js","./slidev/md-wbK3_QlJ.js","./md-JXSPOz9R.css","./modules/file-saver-DJvf_BAX.js","./slidev/entry-C_dGizEF.js","./entry-B0jbhACa.css","./slidev/overview-QM-_BJsq.js","./SlideWrapper-BclWpJbK.js","./modules/vue-ejhLULwH.js","./SlideWrapper-cGPNHQX8.css","./slidev/NoteDisplay-DaGhiV97.js","./NoteDisplay-DCBzjb4F.css","./slidev/IconButton-BlFal5-R.js","./slidev/NoteEditable-CvntlA3F.js","./overview-w4321ysu.css","./slidev/notes-CSZzM_nQ.js","./slidev/TimerBar-DRcu8SU0.js","./slidev/Modal-BpXRRqG8.js","./slidev/notes-edit-Ma5EL_89.js","./slidev/presenter-BVffpMW9.js","./slidev/shortcuts-C9mtjhUG.js","./shortcuts-C2vKazfC.css","./slidev/DrawingControls-CUTQg5_r.js","./DrawingControls-Dhbx0szf.css","./presenter-Cm0VOfT3.css","./slidev/play-0An4EZZ7.js","./play-D_7yfuao.css","./slidev/404-Cyn-rlMQ.js","./404-CehP3Tu7.css"])))=>i.map(i=>d[i]); -import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{A as t,B as n,E as r,F as i,I as a,L as o,P as s,R as c,St as l,T as u,W as d,X as f,Z as p,_ as m,_t as h,at as g,b as _,ct as v,dt as y,ht as b,k as x,m as S,mt as C,pt as w,rt as T,s as ee,t as te,ut as E,v as ne,vt as D,w as O,x as re,y as ie}from"./modules/shiki-yoNnvMyB.js";import{i as ae,o as oe,r as se,s as ce,t as le}from"./slidev/utils-ebkCohfA.js";import{A as k,B as ue,E as de,I as fe,L as pe,R as me,T as he,a as ge,b as _e,c as ve,d as ye,g as be,h as A,i as xe,j as Se,k as j,l as Ce,m as we,o as Te,w as Ee,x as De,z as Oe}from"./modules/vue-ejhLULwH.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var M={theme:`default`,title:`Introduction to Machine Learning`,titleTemplate:`%s - Slidev`,addons:[],remoteAssets:!1,monaco:!0,monacoTypesSource:`local`,monacoTypesAdditionalPackages:[],monacoTypesIgnorePackages:[],monacoRunAdditionalDeps:[],monacoRunUseStrict:!0,download:!1,export:{},info:`

    Machine Learning Introduction

    -

    A comprehensive overview of ML concepts

    -`,highlighter:`shiki`,twoslash:!0,lineNumbers:!1,colorSchema:`auto`,routerMode:`hash`,aspectRatio:1.7777777777777777,canvasWidth:980,exportFilename:``,selectable:!1,themeConfig:{},fonts:{sans:[`"Avenir Next"`,`"Nunito Sans"`,`ui-sans-serif`,`system-ui`,`-apple-system`,`BlinkMacSystemFont`,`"Segoe UI"`,`Roboto`,`"Helvetica Neue"`,`Arial`,`"Noto Sans"`,`sans-serif`,`"Apple Color Emoji"`,`"Segoe UI Emoji"`,`"Segoe UI Symbol"`,`"Noto Color Emoji"`],serif:[`ui-serif`,`Georgia`,`Cambria`,`"Times New Roman"`,`Times`,`serif`],mono:[`"Fira Code"`,`ui-monospace`,`SFMono-Regular`,`Menlo`,`Monaco`,`Consolas`,`"Liberation Mono"`,`"Courier New"`,`monospace`],webfonts:[`Nunito Sans`,`Fira Code`],provider:`google`,local:[`Avenir Next`],italic:!1,weights:[`200`,`400`,`600`]},favicon:`https://cdn.jsdelivr.net/gh/slidevjs/slidev/assets/favicon.png`,drawings:{enabled:!0,persist:!1,presenterOnly:!1,syncAll:!0},plantUmlServer:`https://www.plantuml.com/plantuml`,codeCopy:!0,magicMoveCopy:!0,author:``,record:`dev`,css:`unocss`,presenter:!0,browserExporter:`dev`,htmlAttrs:{},transition:`slide-left`,editor:!0,contextMenu:null,wakeLock:!0,mdc:!0,comark:!1,seoMeta:{},notesAutoRuby:{},duration:`30min`,timer:`stopwatch`,magicMoveDuration:800,preloadImages:!0,clickAnimation:``,background:`https://source.unsplash.com/collection/94734566/1920x1080`,class:`text-center`,slidesTitle:`Introduction to Machine Learning - Slidev`},ke=`build`,Ae=m(()=>M.aspectRatio),je=m(()=>M.canvasWidth),Me=m(()=>Math.ceil(je.value/Ae.value)),Ne=m(()=>ce(M.themeConfig||{},(e,t)=>[`--slidev-theme-${e}`,t])),Pe=M.slidesTitle,Fe=`./#/`,Ie=new Set([`link`,`style`,`script`,`noscript`]),Le=new Set([`title`,`titleTemplate`,`script`,`style`,`noscript`]),Re=new Set([`base`,`meta`,`link`,`style`,`script`,`noscript`]),ze=new Set([`title`,`base`,`htmlAttrs`,`bodyAttrs`,`meta`,`link`,`style`,`script`,`noscript`]),Be=new Set([`base`,`title`,`titleTemplate`,`bodyAttrs`,`htmlAttrs`,`templateParams`]),Ve=new Set([`key`,`tagPosition`,`tagPriority`,`tagDuplicateStrategy`,`innerHTML`,`textContent`,`processTemplateParams`]),He=new Set([`templateParams`,`htmlAttrs`,`bodyAttrs`]),Ue=new Set([`theme-color`,`google-site-verification`,`og`,`article`,`book`,`profile`,`twitter`,`author`]),We={critical:-8,high:-1,low:2};function Ge(e,t,n,r){for(let i=n;ie[i](...t)):e[i](...t);if(n&&typeof n.then==`function`)return Promise.resolve(n).then(()=>Ge(e,t,i+1,r))}catch(e){return Promise.reject(e)}}var Ke=class{_hooks;constructor(){this._hooks={}}hook(e,t){return!e||typeof t!=`function`?()=>{}:(this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)})}removeHook(e,t){let n=this._hooks[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}callHook(e,...t){let n=this._hooks[e];if(!(!n||n.length===0))return Ge(n,t,0)}};function qe(e){let t=new Ke;for(let n in e||{})t.hook(n,e[n]);return t}function Je(e,t,n){return e.hooks?.callHook(t,n)}var Ye=/^(?:viewport|description|keywords|robots)$/,Xe=[`name`,`property`,`http-equiv`];function Ze(e){return Ue.has(e.split(`:`)[1])}function Qe(e){let{props:t,tag:n,key:r}=e;if(Be.has(n))return n;if(n===`link`&&t.rel===`canonical`)return`canonical`;if(n===`link`&&t.rel===`alternate`){if(t.hreflang)return`alternate:${t.hreflang}`;if(t.type)return`alternate:${t.type}:${t.href||``}`}if(t.charset)return`charset`;if(n===`meta`)for(let e of Xe){let n=t[e];if(n!==void 0)return`meta:${n}${(typeof n!=`string`||!n.includes(`:`))&&!Ye.test(n)&&r?`:key:${r}`:``}`}return r?`${n}:key:${r}`:t.id?`${n}:id:${t.id}`:n===`link`&&t.rel===`alternate`?`alternate:${t.href||``}`:Le.has(n)&&(e.textContent||e.innerHTML)?`${n}:content:${e.textContent||e.innerHTML}`:void 0}function $e(e){return e._h||e._d||e.textContent||e.innerHTML||`${e.tag}:${Object.entries(e.props).map(([e,t])=>`${e}:${String(t)}`).join()}`}function et(e,t,n){if(n===`_resolver`)return e;typeof e==`function`&&(!n||n!==`titleTemplate`&&!n.startsWith(`on`))&&(e=e());let r=t?t(n,e):e;if(Array.isArray(r))return r.map(e=>et(e,t));if(r?.constructor===Object){let e={};for(let n in r)n===`__proto__`||n===`constructor`||n===`prototype`||(e[n]=et(r[n],t,n));return e}return r}function tt(e,t){let n=e===`style`,r=n?new Map:new Set,i=e=>{if(e)if(n){let t=e.indexOf(`:`);t>0&&r.set(e.slice(0,t).trim(),e.slice(t+1).trim())}else e.split(` `).forEach(e=>e&&r.add(e))};if(typeof t==`string`)(n?t.split(`;`):[t]).forEach(i);else if(Array.isArray(t))t.forEach(i);else if(t&&typeof t==`object`)for(let e in t){let a=t[e];a&&a!==`false`&&(n?r.set(e.trim(),String(a)):i(e))}return r}function nt(e,t){if(e.props=e.props||{},!t)return e;if(e.tag===`templateParams`)return e.props=t,e;let n=Re.has(e.tag)||e.tag===`htmlAttrs`||e.tag===`bodyAttrs`;for(let r in t){if(r===`__proto__`||r===`constructor`||r===`prototype`)continue;let i=t[r];if(i===null)e.props[r]=null;else if(r===`class`||r===`style`)e.props[r]=tt(r,i);else if(Ve.has(r))if((r===`textContent`||r===`innerHTML`)&&typeof i==`object`){let n=t.type||`application/json`;(n.endsWith(`json`)||n===`speculationrules`||n===`importmap`)&&(e.props.type=t.type=n,e[r]=JSON.stringify(i))}else e[r]=i;else if(i!==void 0){let t=r.startsWith(`data-`),a=n&&!t?r.toLowerCase():r,o=String(i),s=e.tag===`meta`&&a===`content`;e.props[a]=o===`true`||o===``?t||s?o:!0:!i&&t&&o===`false`?`false`:i}}return e}function rt(e,t){let n=nt({tag:e,props:{}},typeof t==`object`&&typeof t!=`function`?t:{[e===`script`||e===`noscript`||e===`style`?`innerHTML`:`textContent`]:t});return n.key&&Ie.has(n.tag)&&(n.props[`data-hid`]=n._h=n.key),n.tag===`script`&&typeof n.innerHTML==`object`&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||`application/json`),Array.isArray(n.props.content)?n.props.content.map(e=>({...n,props:{...n.props,content:e}})):n}function it(e,t){if(!e)return[];typeof e==`function`&&(e=e());let n;t.length&&(n=(e,n)=>{for(let r=0;re._w===t._w?e._p-t._p:e._w-t._w,ct=()=>100,lt=/^tags:|:render/;function ut(e){let t=!1;for(let n of e.tags.sort(st)){let r=n._d||$e(n),i=e.tagMap.get(r);if(!i){e.tagMap.set(r,n);continue}if((n.tagDuplicateStrategy||(He.has(n.tag)?`merge`:null)||(n.key&&n.key===i.key?`merge`:null))===`merge`){let t={...i.props};for(let e in n.props)t[e]=e===`style`?new Map([...i.props.style||new Map,...n.props[e]]):e===`class`?new Set([...i.props.class||[],...n.props[e]]):n.props[e];e.tagMap.set(r,{...n,props:t})}else n._p>>10==i._p>>10&&n.tag===`meta`&&Ze(r)?(e.tagMap.set(r,Object.assign([...Array.isArray(i)?i:[i],n],n)),t=!0):(n._w===i._w?n._p>i._p:n._wr?(typeof e==`string`?e:JSON.stringify(e)).replace(at,`\\u003C`):typeof e==`string`?e.replace(ot,`<\\/script`):e;n={...n},e&&(n.innerHTML=a(e)),n.textContent&&=a(n.textContent),n._d=Qe(n)}t.push(n)}}return t}function pt(e,t){let n=t?.tagWeight??e.resolvedOptions._tagWeight??ct,r={tagMap:new Map,tags:[]},i=e.hooks?._hooks||{},a=[...e.entries.values()];for(let e of a)e._pending!==void 0&&(e.input=e._pending,delete e._pending,delete e._tags);Je(e,`entries:resolve`,{entries:a,...r});for(let t of a)if(!t._tags){let r={tags:it(t.input,e.resolvedOptions.propResolvers||[]).map(e=>Object.assign(e,t.options)),entry:t};Je(e,`entries:normalize`,r),t._tags=r.tags.map((e,r)=>(e._w=n(e),e._p=(t._i<<10)+r,e._d=Qe(e),e._d||(e._h=$e(e)),e))}let o=!1;for(let e in i)if(lt.test(e)&&i[e]?.some(e=>!e._nonMutating)){o=!0;break}r.tags=o?a.flatMap(e=>(e._tags||[]).map(e=>{let t={...e.props};return t.class instanceof Set&&(t.class=new Set(t.class)),t.style instanceof Map&&(t.style=new Map(t.style)),{...e,props:t}})):a.flatMap(e=>e._tags||[]);let s=ut(r);return dt(r,e),r.tags=[...r.tagMap.values()],s&&(r.tags=r.tags.flat().sort(st)),Je(e,`tags:beforeResolve`,r),Je(e,`tags:resolve`,r),Je(e,`tags:afterResolve`,r),ft(r.tags)}var mt=`usehead`;function ht(e){return{install(t){t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(mt,e)}}.install}var gt=(e,t)=>g(t)?h(t):t;function _t(){if(x()){let e=t(mt);if(e)return e}throw Error(`useHead() was called without provide context, ensure you call it through the setup() function.`)}function vt(e,t={}){let n=t.head||_t();return n.ssr?n.push(e||{},t):yt(n,e,t)}function yt(e,t,n={}){let s=E(!1);if(n.onRendered){let e=T();if(e){let t=n.onRendered;n={...n,onRendered:n=>e.run(()=>t(n))}}}let c;return p(()=>{let r=s.value?{}:et(t,gt);c?c.patch(r):c=e.push(r,n)}),r()&&(a(()=>{c.dispose()}),o(()=>{s.value=!0}),i(()=>{s.value=!1})),c}function bt(e,t){let n=typeof t==`function`?t(e):t,r=n.key||String(e.plugins.size+1);if(!e.plugins.get(r)){e.plugins.set(r,n);for(let t in n.hooks||{})e.hooks?.hook(t,n.hooks[t])}}function xt(e,t={}){let n=!t.document,r=new Map,i={_entryCount:1,plugins:new Map,resolvedOptions:t,ssr:n,entries:r,render:()=>e(i),use:e=>bt(i,e),push(e,t){let a=t?._index??i._entryCount++,o=t?{...t}:{};delete o.head,delete o.onRendered;let s={_i:a,input:e,options:o};return r.set(a,s),{_i:a,dispose(){r.delete(a)},patch(e){n?(s.input=e,delete s._tags):s._pending=e,r.has(a)||r.set(a,s)}}}};return t.init?.forEach(e=>e&&i.push(e)),i}var St=Object.assign({}),Ct=Object.assign({}),wt=[Object.values(St)[0],Object.values(Ct)[0]].filter(Boolean),Tt=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},Et={},Dt={class:`px-4 py-10 text-center text-red-700 dark:text-red-500 font-bold font-mono`};function Ot(e,t){return n(),re(`div`,Dt,l(`Failed to fetch this slide. Please check your network connection.`))}var N=Tt(Et,[[`render`,Ot]]),kt={class:`h-full w-full flex items-center justify-center gap-2 slidev-slide-loading`},At=u({__name:`SlideLoading`,setup(e){let t=E(!1);return c(()=>{setTimeout(()=>{t.value=!0},200)}),(e,r)=>(n(),re(`div`,kt,[t.value?(n(),re(S,{key:0},[r[0]||=ne(`div`,{class:`i-svg-spinners-90-ring-with-bg text-xl`},null,-1),r[1]||=ne(`div`,null,`Loading slide...`,-1)],64)):_(``,!0)]))}}),jt=v({theme:`default`,background:`https://source.unsplash.com/collection/94734566/1920x1080`,class:`text-center`,highlighter:`shiki`,lineNumbers:!1,info:`## Machine Learning Introduction -A comprehensive overview of ML concepts -`,drawings:{persist:!1},transition:`slide-left`,title:`Introduction to Machine Learning`,mdc:!0}),Mt=y({get layout(){return jt.layout},get transition(){return jt.transition},get class(){return jt.class},get clicks(){return jt.clicks},get name(){return jt.name},get preload(){return jt.preload},slide:{content:``,revision:`yz7ujs`,frontmatterRaw:`theme: default -background: https://source.unsplash.com/collection/94734566/1920x1080 -class: text-center -highlighter: shiki -lineNumbers: false -info: | - ## Machine Learning Introduction - A comprehensive overview of ML concepts -drawings: - persist: false -transition: slide-left -title: Introduction to Machine Learning -mdc: true -`,note:``,title:`Introduction to Machine Learning`,index:0,noteHTML:``,raw:``,frontmatter:jt,filepath:``,start:0,sourceIndex:0,id:0,no:1},__clicksContext:null,__preloaded:!1}),Nt=v({layout:`default`}),Pt=y({get layout(){return Nt.layout},get transition(){return Nt.transition},get class(){return Nt.class},get clicks(){return Nt.clicks},get name(){return Nt.name},get preload(){return Nt.preload},slide:{content:``,revision:`bhk8xs`,frontmatterRaw:`layout: default -`,note:``,title:`What is Machine Learning?`,level:1,index:1,noteHTML:``,raw:``,frontmatter:Nt,filepath:``,start:26,sourceIndex:1,id:1,no:2},__clicksContext:null,__preloaded:!1}),Ft=v({layout:`two-cols`}),It=y({get layout(){return Ft.layout},get transition(){return Ft.transition},get class(){return Ft.class},get clicks(){return Ft.clicks},get name(){return Ft.name},get preload(){return Ft.preload},slide:{content:``,revision:`-p6kchk`,frontmatterRaw:`layout: two-cols -`,note:``,title:`Supervised Learning`,level:1,index:2,noteHTML:``,raw:``,frontmatter:Ft,filepath:``,start:43,sourceIndex:2,id:2,no:3},__clicksContext:null,__preloaded:!1}),Lt=v({}),Rt=y({get layout(){return Lt.layout},get transition(){return Lt.transition},get class(){return Lt.class},get clicks(){return Lt.clicks},get name(){return Lt.name},get preload(){return Lt.preload},slide:{content:``,revision:`um60gf`,note:``,title:`Unsupervised Learning`,level:1,index:3,noteHTML:``,raw:``,frontmatter:Lt,filepath:``,start:71,sourceIndex:3,id:3,no:4},__clicksContext:null,__preloaded:!1}),zt=v({layout:`center`,class:`text-center`}),Bt=y({get layout(){return zt.layout},get transition(){return zt.transition},get class(){return zt.class},get clicks(){return zt.clicks},get name(){return zt.name},get preload(){return zt.preload},slide:{content:``,revision:`-6zxk4k`,frontmatterRaw:`layout: center -class: text-center -`,note:``,title:`Deep Learning`,level:1,index:4,noteHTML:``,raw:``,frontmatter:zt,filepath:``,start:98,sourceIndex:4,id:4,no:5},__clicksContext:null,__preloaded:!1}),Vt=v({}),Ht=y({get layout(){return Vt.layout},get transition(){return Vt.transition},get class(){return Vt.class},get clicks(){return Vt.clicks},get name(){return Vt.name},get preload(){return Vt.preload},slide:{content:``,revision:`-tnofb8`,note:``,title:`Applications Across Industries`,level:1,index:5,noteHTML:``,raw:``,frontmatter:Vt,filepath:``,start:112,sourceIndex:5,id:5,no:6},__clicksContext:null,__preloaded:!1}),Ut=v({layout:`center`,class:`text-center`}),Wt=y({get layout(){return Ut.layout},get transition(){return Ut.transition},get class(){return Ut.class},get clicks(){return Ut.clicks},get name(){return Ut.name},get preload(){return Ut.preload},slide:{content:``,revision:`-ni7oif`,frontmatterRaw:`layout: center -class: text-center -`,note:``,title:`The Future of ML`,level:1,index:6,noteHTML:``,raw:``,frontmatter:Ut,filepath:``,start:147,sourceIndex:6,id:6,no:7},__clicksContext:null,__preloaded:!1}),Gt=v({layout:`end`}),Kt=y({get layout(){return Gt.layout},get transition(){return Gt.transition},get class(){return Gt.class},get clicks(){return Gt.clicks},get name(){return Gt.name},get preload(){return Gt.preload},slide:{content:``,revision:`3tbogr`,frontmatterRaw:`layout: end -`,note:``,title:`Thank You!`,level:1,index:7,noteHTML:``,raw:``,frontmatter:Gt,filepath:``,start:163,sourceIndex:7,id:7,no:8},__clicksContext:null,__preloaded:!1}),qt=`modulepreload`,Jt=function(e,t){return new URL(e,t).href},Yt={},P=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Jt(t,n),t in Yt)return;Yt[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:qt,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Xt=Array(8),Zt=(e,t)=>O({loader:t,delay:300,loadingComponent:At,errorComponent:N,onError:t=>console.error(`Failed to load slide `+(e+1),t)}),Qt=async()=>{try{return Xt[0]??=await P(()=>import(`./slidev/md-CRLDuEzr.js`),__vite__mapDeps([0,1,2,3,4]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),N}},$t=async()=>{try{return Xt[1]??=await P(()=>import(`./md-BW6T0zQ1.js`),__vite__mapDeps([5,1,2,3,6,7,8]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),N}},en=async()=>{try{return Xt[2]??=await P(()=>import(`./slidev/md-Pg3tJRzD.js`),__vite__mapDeps([9,1,2,3,6,7]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),N}},tn=async()=>{try{return Xt[3]??=await P(()=>import(`./md-CgEFMm-d.js`),__vite__mapDeps([10,1,2,3,8]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),N}},nn=async()=>{try{return Xt[4]??=await P(()=>import(`./md-BbhCIpoP.js`),__vite__mapDeps([11,1,2,3,12]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),N}},rn=async()=>{try{return Xt[5]??=await P(()=>import(`./md-D_fsd_0G.js`),__vite__mapDeps([13,1,2,3,8]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),N}},an=async()=>{try{return Xt[6]??=await P(()=>import(`./md-DDBHlo0Y.js`),__vite__mapDeps([14,1,2,3,6,7,12]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),N}},on=async()=>{try{return Xt[7]??=await P(()=>import(`./slidev/md-wbK3_QlJ.js`),__vite__mapDeps([15,1,2,3,4,16]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),N}},F=w([{no:1,meta:Mt,load:Qt,component:Zt(0,Qt)},{no:2,meta:Pt,load:$t,component:Zt(1,$t)},{no:3,meta:It,load:en,component:Zt(2,en)},{no:4,meta:Rt,load:tn,component:Zt(3,tn)},{no:5,meta:Bt,load:nn,component:Zt(4,nn)},{no:6,meta:Ht,load:rn,component:Zt(5,rn)},{no:7,meta:Wt,load:an,component:Zt(6,an)},{no:8,meta:Kt,load:on,component:Zt(7,on)}]),sn=`$$slidev-clicks-context`,cn=`$$slidev-page`,ln=`$$slidev-slide-element`,un=`$$slidev-slide-scale`,dn=`$$slidev-context`,fn=`$$slidev-route`,pn=`$$slidev-render-context`,mn=`$$slidev-fontmatter`,hn=`$$slidev-slide-zoom`,gn=`slidev-vclick-target`,_n=`slidev-vclick-hidden`,vn=`slidev-vclick-hidden-explicitly`,yn=`slidev-vclick-current`,bn=`slidev-vclick-prior`,xn=`slidev-vclick-anim-`,Sn=999999,Cn=[`localhost`,`127.0.0.1`],wn=[`clicks`,`clicksStart`,`disabled`,`hide`,`hideInToc`,`layout`,`level`,`preload`,`routeAlias`,`src`,`title`,`transition`,`zoom`,`dragPos`,`lang`,`clickAnimation`],Tn=[...wn,`theme`,`titleTemplate`,`info`,`author`,`keywords`,`presenter`,`browserExporter`,`download`,`exportFilename`,`export`,`highlighter`,`lineNumbers`,`monaco`,`monacoTypesSource`,`monacoTypesAdditionalPackages`,`monacoRunAdditionalDeps`,`monacoRunUseStrict`,`remoteAssets`,`selectable`,`record`,`colorSchema`,`routerMode`,`aspectRatio`,`canvasWidth`,`themeConfig`,`favicon`,`plantUmlServer`,`fonts`,`defaults`,`drawings`,`htmlAttrs`,`mdc`,`comark`,`contextMenu`,`wakeLock`,`seoMeta`,`notesAutoRuby`,`magicMoveDuration`,`preloadImages`];function En(e,t,{mode:n=`replace`}={}){let r=ue();return m({get(){let n=r.currentRoute.value.query[e];return n==null?t??null:Array.isArray(n)?n.filter(Boolean):n},set(i){s(()=>{(r.currentRoute.value.query[e]??t?.toString())!==i.toString()&&r[D(n)]({query:{...r.currentRoute.value.query,[e]:`${i}`===t?void 0:i}})})}})}function Dn(){let e=j(dn),t=b(e,`nav`),n=j(sn).value,r=b(n,`current`),i=j(cn),a=j(pn),o=j(mn,{});return{$slidev:e,$nav:t,$clicksContext:n,$clicks:r,$page:i,$route:j(fn,void 0),$renderContext:a,$frontmatter:o,$scale:j(un,E(1)),$zoom:j(hn,m(()=>1))}}function On(e,t){return{...Se(e,t===0?Tn:wn),frontmatter:e}}function kn(e){return F.value.find(t=>t.no===+e||t.meta.slide?.frontmatter.routeAlias===e)}function An(e,t,n=!1){(typeof e==`number`||typeof e==`string`)&&(e=kn(e));let r=e.meta.slide?.frontmatter.routeAlias??e.no;return`./${n?`export/${r}`:t?`presenter/${r}`:`${r}`}`}var jn={"slide-left":`slide-left | slide-right`,"slide-right":`slide-right | slide-left`,"slide-up":`slide-up | slide-down`,"slide-down":`slide-down | slide-up`};function Mn(e,t=!1){if(!e||(typeof e==`string`&&(e={name:e}),!e.name))return;let n=e.name.includes(`|`)?e.name:jn[e.name]||e.name;if(n.includes(`|`)){let[e,r]=n.split(`|`).map(e=>e.trim());n=t?r:e}if(n)return{...e,name:n}}function Nn(e,t,n){let r=e>0?n?.meta?.transition:t?.meta?.transition;return r||=M.transition||void 0,Mn(r,e<0)}var Pn=E(!1),Fn=E(!1),In=E(!1),Ln=E(!1),Rn=E(!1),zn=E(!1),Bn=E(!0),Vn=v(new Set),Hn=m(()=>Vn.size>0),Un=Ce({xs:460,...ge}),Wn=he(),Gn=be(),Kn=m(()=>Wn.height.value-Wn.width.value/Ae.value>120),qn=we(k?document.body:null),Jn=ve(),Yn=m(()=>[`INPUT`,`TEXTAREA`].includes(Jn.value?.tagName||``)),Xn=m(()=>[`BUTTON`,`A`].includes(Jn.value?.tagName||``));A(`slidev-camera`,`default`,{listenToStorageChanges:!1}),A(`slidev-mic`,`default`,{listenToStorageChanges:!1});var Zn=A(`slidev-scale`,0),Qn=A(`slidev-wake-lock`,!0),$n=A(`slidev-hide-cursor-idle`,!0);A(`slidev-skip-export-pdf-tip`,!1),A(`slidev-export-capture-delay`,400,{listenToStorageChanges:!1});var er=A(`slidev-presenter-cursor`,!0,{listenToStorageChanges:!1}),tr=A(`slidev-cursor-style`,`cursor`,{listenToStorageChanges:!1});function nr(){er.value=!er.value}var rr=A(`slidev-show-editor`,!1,{listenToStorageChanges:!1}),ir=A(`slidev-editor-vertical`,!1,{listenToStorageChanges:!1}),ar=A(`slidev-editor-width`,k?window.innerWidth*.4:318,{listenToStorageChanges:!1}),or=A(`slidev-editor-height`,k?window.innerHeight*.4:300,{listenToStorageChanges:!1}),sr=w(null),cr=A(`slidev-presenter-font-size`,1,{listenToStorageChanges:!1}),lr=A(`slidev-presenter-layout`,1,{listenToStorageChanges:!1}),ur={invert:!1,contrast:1,brightness:1,hueRotate:0,saturate:1,sepia:0},dr=A(`slidev-viewer-css-filter`,ur,{listenToStorageChanges:!1,mergeDefaults:!0,deep:!0}),fr=m(()=>Object.keys(ur).some(e=>dr.value[e]!==ur[e]));function pr(){lr.value+=1,lr.value>3&&(lr.value=1)}function mr(){cr.value=Math.min(2,cr.value+.1)}function hr(){cr.value=Math.max(.5,cr.value-.1)}var gr=fe(Ln),_r=A(`slidev-sync-directions`,{viewerSend:!0,viewerReceive:!0,presenterSend:!0,presenterReceive:!0},{listenToStorageChanges:!1,mergeDefaults:!0});function vr(e,t,n=1){let r=t.meta.slide.level??n;r&&r>n&&e.length>0?vr(e[e.length-1].children,t,n+1):e.push({no:t.no,children:[],level:n,titleLevel:r,path:An(t.meta.slide?.frontmatter?.routeAlias??t.no,!1),hideInToc:!!t.meta?.slide?.frontmatter?.hideInToc,title:t.meta?.slide?.title})}function yr(e,t,n=!1,r,i){return e.map(e=>{let a={...e,active:e.no===i?.value,hasActiveParent:n};return a.children.length>0&&(a.children=yr(a.children,t,a.active||a.hasActiveParent,a,i)),r&&(a.active||a.activeParent)&&(r.activeParent=!0),a})}function br(e,t=1){return e.filter(e=>!e.hideInToc).map(e=>({...e,children:br(e.children,t+1)}))}function xr(e,t,n){let r=m(()=>e.value.filter(e=>e.meta?.slide?.title).reduce((e,t)=>(vr(e,t),e),[])),i=m(()=>yr(r.value,n.value,void 0,void 0,t));return m(()=>br(i.value))}function Sr(e,t,n=E(0),r,i,a){let o=m(()=>F.value.length),s=E(0),c=E(0),l=m(()=>An(e.value,r.value)),u=m(()=>e.value.no),d=m(()=>e.value.meta?.layout||(u.value===1?`cover`:`default`)),p=m(()=>t.value.current),h=m(()=>t.value.clicksStart),g=m(()=>t.value.total),_=m(()=>F.value[Math.min(F.value.length,u.value+1)-1]),v=m(()=>F.value[Math.max(1,u.value-1)-1]),y=m(()=>u.valueu.value>1||p.value>0),x=m(()=>i.value?void 0:Nn(s.value,e.value,v.value));f(e,(e,t)=>{s.value=e.no-t.no});async function S(e){return!1}let C=xr(F,u,e);async function w(){c.value=1,g.value<=n.value?await ee():n.value+=1}async function T(){c.value=-1,n.value<=h.value?await te(!0):--n.value}async function ee(e=!1){c.value=1,u.value1&&await O(u.value-1,e&&!i.value?Sn:void 0)}function ne(){return O(1)}function D(){return O(o.value)}async function O(e,t=0,i=!1){Rn.value=!1;let o=u.value!==e,s=t!==n.value,c=kn(e)?.meta,l=c?.slide?.frontmatter.clicksStart??0;t=oe(t,l,c?.__clicksContext?.total??999999),(i||o||s)&&await a?.push({path:An(e,r.value,a.currentRoute.value.name===`export`),query:{...a.currentRoute.value.query,clicks:t===0?void 0:t.toString(),embedded:location.search.includes(`embedded`)?`true`:void 0}})}function re(){a?.push({path:An(u.value,!0),query:{...a.currentRoute.value.query}})}function ie(){a?.push({path:An(u.value,!1),query:{...a.currentRoute.value.query}})}return{slides:F,total:o,currentPath:l,currentSlideNo:u,currentPage:u,currentSlideRoute:e,currentLayout:d,currentTransition:x,clicksDirection:c,nextRoute:_,prevRoute:v,clicksContext:t,clicks:p,clicksStart:h,clicksTotal:g,hasNext:y,hasPrev:b,tocTree:C,navDirection:s,openInEditor:S,next:w,prev:T,go:O,goLast:D,goFirst:ne,nextSlide:ee,prevSlide:te,enterPresenter:re,exitPresenter:ie}}var Cr=de(()=>{let e=ue(),t=Oe(),n=m(()=>(e?.currentRoute?.value?.query,new URLSearchParams(location.search))),r=m(()=>n.value.has(`print`)||t.name===`export`),i=E(n.value.get(`print`)===`clicks`),a=m(()=>n.value.has(`embedded`)),o=m(()=>t.name===`play`),s=m(()=>t.name===`presenter`),c=m(()=>t.name===`notes`),l=m(()=>!s.value&&(!M.remote||n.value.get(`password`)===M.remote)),u=m(()=>!!t.params.no),d=m(()=>u.value?kn(t.params.no)?.no??1:1),f=m(()=>F.value[d.value-1]),p=E(le(F.value.length,t?.query?.range)),h=En(`clicks`,`0`),g=m(()=>v(f.value)),_=m({get(){let e=+(h.value||0);return Number.isNaN(e)&&(e=0),e},set(e){Rn.value=!1,h.value=e.toString()}});function v(e){if(e?.meta?.__clicksContext)return e.meta.__clicksContext;let t=e.no,n=se(m({get(){return d.value===t?Math.max(+(h.value??0),n.clicksStart):d.value>t?Sn:n.clicksStart},set(e){d.value===t&&(h.value=e.toString())}}),e?.meta.slide?.frontmatter.clicksStart??0,e?.meta.clicks);return e?.meta&&(e.meta.__clicksContext=n),n}return{router:e,currentRoute:m(()=>t),isPrintMode:r,isPrintWithClicks:i,isEmbedded:a,isPlaying:o,isPresenter:s,isNotesViewer:c,isPresenterAvailable:l,hasPrimarySlide:u,currentSlideNo:d,currentSlideRoute:f,clicksContext:g,queryClicksRaw:h,queryClicks:_,printRange:p,getPrimaryClicks:v}}),wr=de(()=>{let e=Cr(),t=ue(),n=Sr(e.currentSlideRoute,e.clicksContext,e.queryClicks,e.isPresenter,e.isPrintMode,t);return f([n.total,e.currentRoute],async()=>{let t=e.currentRoute.value.params.no;e.hasPrimarySlide.value&&!kn(t)&&(t&&t!==`index.html`?await n.go(n.total.value,0,!0):await n.go(1,0,!0))},{flush:`pre`,immediate:!0}),{...n,...e}}),Tr=_e(),Er=A(`slidev-color-schema`,`auto`),Dr=m(()=>M.colorSchema!==`auto`),Or=m({get(){return Dr.value?M.colorSchema===`dark`:Er.value===`auto`?Tr.value:Er.value===`dark`},set(e){Dr.value||(Er.value=e===Tr.value?`auto`:e?`dark`:`light`)}}),kr=fe(Or);k&&f(Or,e=>{let t=window.document.createElement(`style`);t.appendChild(document.createTextNode(`*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`)),window.document.head.appendChild(t);let n=document.querySelector(`html`);n.classList.toggle(`dark`,e),n.classList.toggle(`light`,!e),window.getComputedStyle(t).opacity,document.head.removeChild(t)},{immediate:!0});function Ar(){let{isPrintMode:e}=wr();De(m(()=>e.value?` -@page { - size: ${je.value}px ${Me.value}px; - margin: 0px; -} - -* { - transition: none !important; - transition-duration: 0s !important; -}`:``))}var jr=Symbol.for(`yaml.alias`),Mr=Symbol.for(`yaml.document`),Nr=Symbol.for(`yaml.map`),Pr=Symbol.for(`yaml.pair`),Fr=Symbol.for(`yaml.scalar`),Ir=Symbol.for(`yaml.seq`),I=Symbol.for(`yaml.node.type`),Lr=e=>!!e&&typeof e==`object`&&e[I]===jr,Rr=e=>!!e&&typeof e==`object`&&e[I]===Mr,zr=e=>!!e&&typeof e==`object`&&e[I]===Nr,L=e=>!!e&&typeof e==`object`&&e[I]===Pr,R=e=>!!e&&typeof e==`object`&&e[I]===Fr,Br=e=>!!e&&typeof e==`object`&&e[I]===Ir;function z(e){if(e&&typeof e==`object`)switch(e[I]){case Nr:case Ir:return!0}return!1}function B(e){if(e&&typeof e==`object`)switch(e[I]){case jr:case Nr:case Fr:case Ir:return!0}return!1}var Vr=e=>(R(e)||z(e))&&!!e.anchor,V=Symbol(`break visit`),Hr=Symbol(`skip children`),H=Symbol(`remove node`);function Ur(e,t){let n=qr(t);Rr(e)?Wr(null,e.contents,n,Object.freeze([e]))===H&&(e.contents=null):Wr(null,e,n,Object.freeze([]))}Ur.BREAK=V,Ur.SKIP=Hr,Ur.REMOVE=H;function Wr(e,t,n,r){let i=Jr(e,t,n,r);if(B(i)||L(i))return Yr(e,r,i),Wr(e,i,n,r);if(typeof i!=`symbol`){if(z(t)){r=Object.freeze(r.concat(t));for(let e=0;ee.replace(/[!,[\]{}]/g,e=>Xr[e]),Qr=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+Zr(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],n=Object.entries(this.tags),r;if(e&&n.length>0&&B(e.contents)){let t={};Ur(e.contents,(e,n)=>{B(n)&&n.tag&&(t[n.tag]=!0)}),r=Object.keys(t)}else r=[];for(let[i,a]of n)i===`!!`&&a===`tag:yaml.org,2002:`||(!e||r.some(e=>e.startsWith(a)))&&t.push(`%TAG ${i} ${a}`);return t.join(` -`)}};Qr.defaultYaml={explicit:!1,version:`1.2`},Qr.defaultTags={"!!":`tag:yaml.org,2002:`};function $r(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function ei(e,t,n,r){if(r&&typeof r==`object`)if(Array.isArray(r))for(let t=0,n=r.length;tU(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!Vr(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e==`bigint`&&!n?.keep?Number(e):e}var ti=class{constructor(e){Object.defineProperty(this,I,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!Rr(e))throw TypeError(`A document argument is required`);let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n==`number`?n:100},o=U(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?ei(i,{"":o},``,o):o}},ni=class extends ti{constructor(e){super(jr),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],Ur(e,{Node:(e,t)=>{(Lr(t)||Vr(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}return r}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,a=this.resolve(r,t);if(!a){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let o=n.get(a);if(o||=(U(a,null,t),n.get(a)),o?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=ri(r,a,n)),o.count*o.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return o.res}toString(e,t,n){let r=`*${this.source}`;if(e){if($r(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}};function ri(e,t,n){if(Lr(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(z(t)){let r=0;for(let i of t.items){let t=ri(e,i,n);t>r&&(r=t)}return r}else if(L(t)){let r=ri(e,t.key,n),i=ri(e,t.value,n);return Math.max(r,i)}return 1}var ii=e=>!e||typeof e!=`function`&&typeof e!=`object`,W=class extends ti{constructor(e){super(Fr),this.value=e}toJSON(e,t){return t?.keep?this.value:U(this.value,e,t)}toString(){return String(this.value)}};W.BLOCK_FOLDED=`BLOCK_FOLDED`,W.BLOCK_LITERAL=`BLOCK_LITERAL`,W.PLAIN=`PLAIN`,W.QUOTE_DOUBLE=`QUOTE_DOUBLE`,W.QUOTE_SINGLE=`QUOTE_SINGLE`;var ai=`tag:yaml.org,2002:`;function oi(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function si(e,t,n){if(Rr(e)&&(e=e.contents),B(e))return e;if(L(e)){let t=n.schema[Nr].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:s}=n,c;if(r&&e&&typeof e==`object`){if(c=s.get(e),c)return c.anchor??=i(e),new ni(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith(`!!`)&&(t=ai+t.slice(2));let l=oi(e,t,o.tags);if(!l){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new W(e);return c&&(c.node=t),t}l=e instanceof Map?o[Nr]:Symbol.iterator in Object(e)?o[Ir]:o[Nr]}a&&(a(l),delete n.onTagObj);let u=l?.createNode?l.createNode(n.schema,e,n):typeof l?.nodeClass?.from==`function`?l.nodeClass.from(n.schema,e,n):new W(e);return t?u.tag=t:l.default||(u.tag=l.tag),c&&(c.node=u),u}function ci(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(typeof n==`number`&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return si(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var li=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,ui=class extends ti{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>B(t)||L(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(li(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(z(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(n,ci(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let r=this.get(t,!0);if(z(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return r.length===0?!t&&R(i)?i.value:i:z(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!L(t))return!1;let n=t.value;return n==null||e&&R(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let r=this.get(t,!0);return z(r)?r.hasIn(n):!1}setIn(e,t){let[n,...r]=e;if(r.length===0)this.set(n,t);else{let e=this.get(n,!0);if(z(e))e.setIn(r,t);else if(e===void 0&&this.schema)this.set(n,ci(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}},di=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function fi(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var pi=(e,t,n)=>e.endsWith(` -`)?fi(n,t):n.includes(` -`)?` -`+fi(n,t):(e.endsWith(` `)?``:` `)+n,mi=`flow`,hi=`block`,gi=`quoted`;function _i(e,t,n=`flow`,{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:s}={}){if(!i||i<0)return e;ii-Math.max(2,a)?l.push(0):d=i-r);let f,p,m=!1,h=-1,g=-1,_=-1;n===`block`&&(h=vi(e,h,t.length),h!==-1&&(d=h+c));for(let r;r=e[h+=1];){if(n===`quoted`&&r===`\\`){switch(g=h,e[h+1]){case`x`:h+=3;break;case`u`:h+=5;break;case`U`:h+=9;break;default:h+=1}_=h}if(r===` -`)n===`block`&&(h=vi(e,h,t.length)),d=h+t.length+c,f=void 0;else{if(r===` `&&p&&p!==` `&&p!==` -`&&p!==` `){let t=e[h+1];t&&t!==` `&&t!==` -`&&t!==` `&&(f=h)}if(h>=d)if(f)l.push(f),d=f+c,f=void 0;else if(n===`quoted`){for(;p===` `||p===` `;)p=r,r=e[h+=1],m=!0;let t=h>_+1?h-2:g-1;if(u[t])return e;l.push(t),u[t]=!0,d=t+c,f=void 0}else m=!0}p=r}if(m&&s&&s(),l.length===0)return e;o&&o();let v=e.slice(0,l[0]);for(let r=0;r({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),bi=e=>/^(%|---|\.\.\.)/m.test(e);function xi(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;tr)return!0;if(n=t+1,i-n<=r)return!1}return!0}function Si(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(bi(e)?` `:``),o=``,s=0;for(let e=0,t=n[e];t;t=n[++e])if(t===` `&&n[e+1]===`\\`&&n[e+2]===`n`&&(o+=n.slice(s,e)+`\\ `,e+=1,s=e,t=`\\`),t===`\\`)switch(n[e+1]){case`u`:{o+=n.slice(s,e);let t=n.substr(e+2,4);switch(t){case`0000`:o+=`\\0`;break;case`0007`:o+=`\\a`;break;case`000b`:o+=`\\v`;break;case`001b`:o+=`\\e`;break;case`0085`:o+=`\\N`;break;case`00a0`:o+=`\\_`;break;case`2028`:o+=`\\L`;break;case`2029`:o+=`\\P`;break;default:t.substr(0,2)===`00`?o+=`\\x`+t.substr(2):o+=n.substr(e,6)}e+=5,s=e+1}break;case`n`:if(r||n[e+2]===`"`||n.length -`;let d,f;for(f=n.length;f>0;--f){let e=n[f-1];if(e!==` -`&&e!==` `&&e!==` `)break}let p=n.substring(f),m=p.indexOf(` -`);m===-1?d=`-`:n===p||m!==p.length-1?(d=`+`,a&&a()):d=``,p&&=(n=n.slice(0,-p.length),p[p.length-1]===` -`&&(p=p.slice(0,-1)),p.replace(Ti,`$&${l}`));let h=!1,g,_=-1;for(g=0;g{i=!0});let s=_i(`${v}${e}${p}`,l,hi,a);if(!i)return`>${y}\n${l}${s}`}return n=n.replace(/\n+/g,`$&${l}`),`|${y}\n${l}${v}${n}${p}`}function Di(e,t,n,r){let{type:i,value:a}=e,{actualString:o,implicitKey:s,indent:c,indentStep:l,inFlow:u}=t;if(s&&a.includes(` -`)||u&&/[[\]{},]/.test(a))return wi(a,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return s||u||!a.includes(` -`)?wi(a,t):Ei(e,t,n,r);if(!s&&!u&&i!==W.PLAIN&&a.includes(` -`))return Ei(e,t,n,r);if(bi(a)){if(c===``)return t.forceBlockIndent=!0,Ei(e,t,n,r);if(s&&c===l)return wi(a,t)}let d=a.replace(/\n+/g,`$&\n${c}`);if(o){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return wi(a,t)}return s?d:_i(d,c,mi,yi(t,!1))}function Oi(e,t,n,r){let{implicitKey:i,inFlow:a}=t,o=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==W.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=W.QUOTE_DOUBLE);let c=e=>{switch(e){case W.BLOCK_FOLDED:case W.BLOCK_LITERAL:return i||a?wi(o.value,t):Ei(o,t,n,r);case W.QUOTE_DOUBLE:return Si(o.value,t);case W.QUOTE_SINGLE:return Ci(o.value,t);case W.PLAIN:return Di(o,t,n,r);default:return null}},l=c(s);if(l===null){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(l=c(r),l===null)throw Error(`Unsupported default string type ${r}`)}return l}function ki(e,t){let n=Object.assign({blockQuote:!0,commentString:di,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),r;switch(n.collectionStyle){case`block`:r=!1;break;case`flow`:r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:r,options:n}}function Ai(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let n,r;if(R(t)){r=t.value;let i=e.filter(e=>e.identify?.(r));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}n=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??(r===null?`null`:typeof r);throw Error(`Tag not resolved for ${e} value`)}return n}function ji(e,t,{anchors:n,doc:r}){if(!r.directives)return``;let i=[],a=(R(e)||z(e))&&e.anchor;a&&$r(a)&&(n.add(a),i.push(`&${a}`));let o=e.tag??(t.default?null:t.tag);return o&&i.push(r.directives.tagString(o)),i.join(` `)}function Mi(e,t,n,r){if(L(e))return e.toString(t,n,r);if(Lr(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i,a=B(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=Ai(t.doc.schema.tags,a);let o=ji(a,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let s=typeof i.stringify==`function`?i.stringify(a,t,n,r):R(a)?Oi(a,t,n,r):a.toString(t,n,r);return o?R(a)||s[0]===`{`||s[0]===`[`?`${o} ${s}`:`${o}\n${t.indent}${s}`:s}function Ni({key:e,value:t},n,r,i){let{allNullValues:a,doc:o,indent:s,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=n,f=B(e)&&e.comment||null;if(d){if(f)throw Error(`With simple keys, key nodes cannot have comments`);if(z(e)||!B(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let p=!d&&(!e||f&&t==null&&!n.inFlow||z(e)||(R(e)?e.type===W.BLOCK_FOLDED||e.type===W.BLOCK_LITERAL:typeof e==`object`));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(d||!a),indent:s+c});let m=!1,h=!1,g=Mi(e,n,()=>m=!0,()=>h=!0);if(!p&&!n.inFlow&&g.length>1024){if(d)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);p=!0}if(n.inFlow){if(a||t==null)return m&&r&&r(),g===``?`?`:p?`? ${g}`:g}else if(a&&!d||t==null&&p)return g=`? ${g}`,f&&!m?g+=pi(g,n.indent,l(f)):h&&i&&i(),g;m&&(f=null),p?(f&&(g+=pi(g,n.indent,l(f))),g=`? ${g}\n${s}:`):(g=`${g}:`,f&&(g+=pi(g,n.indent,l(f))));let _,v,y;B(t)?(_=!!t.spaceBefore,v=t.commentBefore,y=t.comment):(_=!1,v=null,y=null,t&&typeof t==`object`&&(t=o.createNode(t))),n.implicitKey=!1,!p&&!f&&R(t)&&(n.indentAtStart=g.length+1),h=!1,!u&&c.length>=2&&!n.inFlow&&!p&&Br(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,x=Mi(t,n,()=>b=!0,()=>h=!0),S=` `;if(f||_||v){if(S=_?` -`:``,v){let e=l(v);S+=`\n${fi(e,n.indent)}`}x===``&&!n.inFlow?S===` -`&&y&&(S=` - -`):S+=`\n${n.indent}`}else if(!p&&z(t)){let e=x[0],r=x.indexOf(` -`),i=r!==-1,a=n.inFlow??t.flow??t.items.length===0;if(i||!a){let t=!1;if(i&&(e===`&`||e===`!`)){let n=x.indexOf(` `);e===`&`&&n!==-1&&ne===Fi||typeof e==`symbol`&&e.description===Fi,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new W(Symbol(Fi)),{addToJSMap:Ri}),stringify:()=>Fi},Li=(e,t)=>(Ii.identify(t)||R(t)&&(!t.type||t.type===W.PLAIN)&&Ii.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===Ii.tag&&e.default);function Ri(e,t,n){let r=Bi(e,n);if(Br(r))for(let n of r.items)zi(e,t,n);else if(Array.isArray(r))for(let n of r)zi(e,t,n);else zi(e,t,r)}function zi(e,t,n){let r=Bi(e,n);if(!zr(r))throw Error(`Merge sources must be maps or map aliases`);let i=r.toJSON(null,e,Map);for(let[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function Bi(e,t){return e&&Lr(t)?t.resolve(e.doc,e):t}function Vi(e,t,{key:n,value:r}){if(B(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(Li(e,n))Ri(e,t,r);else{let i=U(n,``,e);if(t instanceof Map)t.set(i,U(r,i,e));else if(t instanceof Set)t.add(i);else{let a=Hi(n,i,e),o=U(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function Hi(e,t,n){if(t===null)return``;if(typeof t!=`object`)return String(t);if(B(e)&&n?.doc){let t=ki(n.doc,{});t.anchors=new Set;for(let e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+`..."`),Pi(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}function Ui(e,t,n){return new Wi(si(e,void 0,n),si(t,void 0,n))}var Wi=class e{constructor(e,t=null){Object.defineProperty(this,I,{value:Pr}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return B(n)&&(n=n.clone(t)),B(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return Vi(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?Ni(this,e,t,n):JSON.stringify(this)}};function Gi(e,t,n){return(t.inFlow??e.flow?qi:Ki)(e,t,n)}function Ki({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:a,onChompKeep:o,onComment:s}){let{indent:c,options:{commentString:l}}=n,u=Object.assign({},n,{indent:a,type:null}),d=!1,f=[];for(let e=0;eo=null,()=>d=!0);o&&(s+=pi(s,a,l(o))),d&&o&&(d=!1),f.push(r+s)}let p;if(f.length===0)p=i.start+i.end;else{p=f[0];for(let e=1;ea=null);l||=d.length>u||o.includes(` -`),n0&&(l||=d.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth),l&&(o+=`,`)),a&&(o+=pi(o,r,s(a))),d.push(o),u=d.length}let{start:f,end:p}=n;if(d.length===0)return f+p;if(!l){let e=d.reduce((e,t)=>e+t.length+2,2);l=t.options.lineWidth>0&&e>t.options.lineWidth}if(l){let e=f;for(let t of d)e+=t?`\n${a}${i}${t}`:` -`;return`${e}\n${i}${p}`}else return`${f}${o}${d.join(` `)}${o}${p}`}function Ji({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,``)),r){let i=fi(t(r),e);n.push(i.trimStart())}}function Yi(e,t){let n=R(t)?t.value:t;for(let r of e)if(L(r)&&(r.key===t||r.key===n||R(r.key)&&r.key.value===n))return r}var G=class extends ui{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(Nr,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,a=new this(e),o=(e,o)=>{if(typeof i==`function`)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(o!==void 0||r)&&a.items.push(Ui(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))o(e,t[e]);return typeof e.sortMapEntries==`function`&&a.items.sort(e.sortMapEntries),a}add(e,t){let n;n=L(e)?e:!e||typeof e!=`object`||!(`key`in e)?new Wi(e,e?.value):new Wi(e.key,e.value);let r=Yi(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);R(r.value)&&ii(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>i(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=Yi(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=Yi(this.items,e)?.value;return(!t&&R(n)?n.value:n)??void 0}has(e){return!!Yi(this.items,e)}set(e,t){this.add(new Wi(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(let e of this.items)Vi(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!L(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Gi(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:n,onComment:t})}},Xi={collection:`map`,default:!0,nodeClass:G,tag:`tag:yaml.org,2002:map`,resolve(e,t){return zr(e)||t(`Expected a mapping for this tag`),e},createNode:(e,t,n)=>G.from(e,t,n)},Zi=class extends ui{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(Ir,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=Qi(e);return typeof t==`number`?this.items.splice(t,1).length>0:!1}get(e,t){let n=Qi(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&R(r)?r.value:r}has(e){let t=Qi(e);return typeof t==`number`&&t=0?t:null}var $i={collection:`seq`,default:!0,nodeClass:Zi,tag:`tag:yaml.org,2002:seq`,resolve(e,t){return Br(e)||t(`Expected a sequence for this tag`),e},createNode:(e,t,n)=>Zi.from(e,t,n)};function ea(e){return typeof e==`bigint`||Number.isInteger(e)}var ta=({value:e})=>JSON.stringify(e),na=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:ta},{identify:e=>e==null,createNode:()=>new W(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:ta},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:ta},{identify:ea,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>ea(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:ta}];[Xi,$i].concat(na,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}});function ra(e,t,n){let{replacer:r}=n,i=new Zi(e);i.tag=`tag:yaml.org,2002:pairs`;let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof r==`function`&&(e=r.call(t,String(a++),e));let o,s;if(Array.isArray(e))if(e.length===2)o=e[0],s=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)o=t[0],s=e[o];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;i.items.push(Ui(o,s,n))}return i}var ia=class e extends Zi{constructor(){super(),this.add=G.prototype.add.bind(this),this.delete=G.prototype.delete.bind(this),this.get=G.prototype.get.bind(this),this.has=G.prototype.has.bind(this),this.set=G.prototype.set.bind(this),this.tag=e.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let e of this.items){let r,i;if(L(e)?(r=U(e.key,``,t),i=U(e.value,r,t)):r=U(e,``,t),n.has(r))throw Error(`Ordered maps must not include duplicate keys`);n.set(r,i)}return n}static from(e,t,n){let r=ra(e,t,n),i=new this;return i.items=r.items,i}};ia.tag=`tag:yaml.org,2002:omap`;var aa=class e extends G{constructor(t){super(t),this.tag=e.tag}add(e){let t;t=L(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new Wi(e.key,null):new Wi(e,null),Yi(this.items,t.key)||this.items.push(t)}get(e,t){let n=Yi(this.items,e);return!t&&L(n)?R(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=Yi(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new Wi(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof r==`function`&&(e=r.call(t,e,e)),i.items.push(Ui(e,null,n));return i}};aa.tag=`tag:yaml.org,2002:set`;var oa=Symbol(`break visit`),sa=Symbol(`skip children`),ca=Symbol(`remove item`);function la(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),ua(Object.freeze([]),e,t)}la.BREAK=oa,la.SKIP=sa,la.REMOVE=ca,la.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},la.parentCollection=(e,t)=>{let n=la.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&`items`in i)return i;throw Error(`Parent collection not found`)};function ua(e,t,n){let r=n(t,e);if(typeof r==`symbol`)return r;for(let i of[`key`,`value`]){let a=t[i];if(a&&`items`in a){for(let t=0;tpa.push(e)),K(q,`$onPatch`,e=>ma.push(e)),fa(),K(q,`$patch`,async()=>!1);var ha=v([{channels:[],enabled:!0,init(e,t,n,r=!1){let i;if(!r)i=new BroadcastChannel(e),i.addEventListener(`message`,e=>t(e.data)),this.channels.push(i);else if(r){this.listener=function(n){n&&n.key===e&&n.newValue&&t(JSON.parse(n.newValue))},window.addEventListener(`storage`,this.listener);let n=window.localStorage.getItem(e);n&&t(JSON.parse(n))}return(t,n=!1)=>{this.enabled&&(!r&&i&&!n&&i.postMessage(C(t)),r&&!n&&window.localStorage.setItem(e,JSON.stringify(t)))}},disable(){this.enabled=!1,this.channels.forEach(e=>e.close()),this.listener&&window.removeEventListener(`storage`,this.listener)}}]),ga=new Map,_a=E({});function va(e,t,n=!1){let r=[],i=!1,a=!1,o,s,c=v(t);function l(e){r.push(e)}function u(e,t){c[e]!==t&&(clearTimeout(o),i=!0,c[e]=t,o=setTimeout(()=>i=!1,0))}function d(e){i||(clearTimeout(s),a=!0,Object.entries(e).forEach(([e,t])=>{c[e]=t}),s=setTimeout(()=>a=!1,0))}function p(e){ga.set(e,{onUpdate:d,persist:n,state:c}),_a.value[e]=ha.map(t=>t.init(e,d,c,n)).filter(e=>!!e);function t(){_a.value[e].forEach(e=>e?.(C(c),a)),i||r.forEach(e=>e(c))}f(c,t,{deep:!0})}return{init:p,onPatch:l,onUpdate:d,patch:u,state:c}}var{init:ya,onPatch:ba,onUpdate:xa,patch:Sa,state:Ca}=va(q,q,!1),wa=v({page:0,clicks:0,timer:{status:`stopped`,slides:{},startedAt:0,pausedAt:0}}),Ta=[],Ea=[];K(wa,`$syncUp`,!0),K(wa,`$syncDown`,!0),K(wa,`$paused`,!1),K(wa,`$onSet`,e=>Ta.push(e)),K(wa,`$onPatch`,e=>Ea.push(e)),fa(),K(wa,`$patch`,async()=>!1);var{init:Da,onPatch:Oa,onUpdate:ka,patch:Aa,state:ja}=va(wa,{page:1,clicks:0,clicksTotal:0,timer:{status:`stopped`,slides:{},startedAt:0,pausedAt:0}});function Ma(){let e=r().appContext.app,t=v({nav:wr(),configs:M,themeConfigs:m(()=>M.themeConfig)});e.provide(pn,E(`none`)),e.provide(dn,t),e.provide(cn,m(()=>t.nav.currentSlideNo)),e.provide(sn,w(ae()));for(let e of wt)e();let{clicksContext:n,currentSlideNo:i,hasPrimarySlide:a,isNotesViewer:o,isPresenter:s,isPrintMode:c}=wr();vt({title:Pe,htmlAttrs:M.htmlAttrs}),Ar(),Da(`${Pe} - shared`),ya(`${Pe} - drawings`);let l=`${location.origin}_${da()}`,u=m(()=>s.value?`presenter`:`viewer`);function d(){(s.value?_r.value.presenterSend:_r.value.viewerSend)&&(o.value||c.value||!s.value&&!Cn.includes(location.host.split(`:`)[0])||(Aa(`page`,+i.value),Aa(`clicks`,n.value.current),Aa(`clicksTotal`,n.value.total),Aa(`lastUpdate`,{id:l,type:u.value,time:Date.now()})))}let p=ue();p.afterEach(d),f(n,d),Oa(e=>{(s.value?_r.value.presenterReceive:_r.value.viewerReceive)&&(!a.value||c.value||e.lastUpdate?.type!==u.value&&(+e.page==+i.value&&+n.value.current==+e.clicks||(Rn.value=!1,p.replace({path:An(e.page,s.value),query:{...p.currentRoute.value.query,clicks:e.clicks||0}}))))})}var Na=u({__name:`App`,setup(e){return Ma(),p(()=>{for(let[e,t]of Object.entries(Ne.value))document.body.style.setProperty(e,t.toString())}),(e,t)=>{let r=d(`RouterView`);return n(),ie(r)}}}),Pa=/\s+/;function Fa(e={}){return t=>Ia(t,e)}function Ia(e,t={}){let n=t.document||e.resolvedOptions.document;if(!n||!e.dirty&&![...e.entries.values()].some(e=>e._pending!==void 0))return!1;let r={shouldRender:!0,tags:[]};if(Je(e,`dom:beforeRender`,r),!r.shouldRender||e._du)return!1;e._du=!0;let i=e._dom;if(i)i._p={...i._s};else{i={_t:n.title,_e:new Map([[`htmlAttrs`,n.documentElement],[`bodyAttrs`,n.body]]),_p:{},_s:{}};for(let e of[...n.body.children,...n.head.children]){let t=e.tagName.toLowerCase();if(!Re.has(t))continue;let n={innerHTML:e.innerHTML};for(let t of e.getAttributeNames())n[t]=e.getAttribute(t);let r=nt({tag:t,props:{}},n);r.key=e.getAttribute(`data-hid`)||void 0;let a=r._d=Qe(r)||$e(r),o=1;for(;i._e.has(a);)a=`${r._d}:${o++}`;i._e.set(a,e)}for(let t of e.entries.values())if(t._o!==void 0){let e=t._o;for(let t of[`bodyAttrs`,`htmlAttrs`]){let n=e[t]?.class;if(typeof n==`string`){let e=i._e.get(t);for(let r of n.split(Pa))r&&(i._p[`${t}:attr:class:${r}`]=()=>e.classList.remove(r))}}delete t._o}}i._s={};function a(e,t,n){let r=`${e}:${t}`;i._s[r]=n,delete i._p[r]}function o({id:e,$el:t,tag:r}){let o=r.tag.endsWith(`Attrs`);i._e.set(e,t),o||(r.textContent&&r.textContent!==t.textContent&&(t.textContent=r.textContent),r.innerHTML&&r.innerHTML!==t.innerHTML&&(t.innerHTML=r.innerHTML),a(e,`el`,()=>{t?.remove(),i._e.delete(e)}));for(let i in r.props){let s=r.props[i];if(i[0]===`o`&&i[1]===`n`&&typeof s==`function`){let e=i.slice(2);t?.dataset?.[`${i}fired`]&&s.call(t,new Event(e)),t.getAttribute(`data-${i}`)!==``&&((r.tag===`bodyAttrs`?n.defaultView:t).addEventListener(e,s.bind(t)),t.setAttribute(`data-${i}`,``));continue}let c=`attr:${i}`;if(i===`class`&&s)for(let n of s)o&&a(e,`${c}:${n}`,()=>t.classList.remove(n)),t.classList.contains(n)||t.classList.add(n);else if(i===`style`&&s)for(let[n,r]of s)a(e,`${c}:${n}`,()=>t.style.removeProperty(n)),t.style.setProperty(n,r);else s!==!1&&s!==null&&(t.getAttribute(i)!==s&&t.setAttribute(i,s===!0?``:String(s)),o&&a(e,c,()=>t.removeAttribute(i)))}}let s=[],c={},l=pt(e,t.tagWeight?{tagWeight:t.tagWeight}:void 0),u=[],d=new Map;for(let e of l){let t=d.get(e._d)||0,r=(t?`${e._d}:${t}`:e._d)||e._h,c={tag:e,id:r,shouldRender:!0};if(e._d&&Ze(e._d)&&d.set(e._d,t+1),u.push(c),e.tag===`title`){n.title=e.textContent,a(`title`,``,()=>n.title=i._t);continue}c.$el=i._e.get(r),c.$el?o(c):Re.has(e.tag)&&s.push(c)}for(let e of s)e.$el=n.createElement(e.tag.tag),o(e),(c[e.tag.tagPosition||`head`]??=n.createDocumentFragment()).appendChild(e.$el);c.head&&n.head.appendChild(c.head),c.bodyOpen&&n.body.insertBefore(c.bodyOpen,n.body.firstChild),c.bodyClose&&n.body.appendChild(c.bodyClose);for(let e in i._p)i._p[e]();return e._dom=i,Je(e,`dom:rendered`,{renders:u}),e._du=!1,e.dirty=!1,!0}var La=e=>typeof e.tagPriority==`number`?e.tagPriority:100+(We[e.tagPriority]||0);function Ra(e={}){e.document=e.document||(typeof window<`u`?document:void 0);let t=e.render||Fa({document:e.document}),n=e.document?.head.querySelector(`script[id="unhead:payload"]`)?.innerHTML||!1,r=xt(t,{document:e.document,propResolvers:e.propResolvers,_tagWeight:La,init:[]}),i=qe(e.hooks),a=!1,o={...r,ssr:!1,hooks:i,use:e=>bt(o,e),get dirty(){return a},set dirty(e){a=e},render:()=>t(o),invalidate(){for(let e of r.entries.values())delete e._tags;a=!0,i.callHook(`entries:updated`,o)},push(e,t){let n=t?.onRendered,s=n?i.hook(`dom:rendered`,n):void 0,c=r.push(e,t);return r.entries.get(c._i)._o=e,a=!0,i.callHook(`entries:updated`,o),{_i:c._i,patch(e){c.patch(e),a=!0,i.callHook(`entries:updated`,o)},dispose(){s?.(),r.entries.has(c._i)&&(c.dispose(),o.invalidate())}}}};return i.hook(`entries:updated`,()=>{t(o)}),e.plugins?.forEach(e=>bt(o,e)),n&&o.push(JSON.parse(n)),e.init?.forEach(e=>e&&o.push(e)),o}function za(e,t){let n=0;return()=>{let r=++n;t(()=>{n===r&&e()})}}function Ba(e={}){let t=Fa(),n;return n=Ra({render:za(()=>t(n),e=>setTimeout(e,0)),...e}),n.install=ht(n),n}var Va=Object.assign({}),Ha=Object.assign({}),Ua=[Object.values(Va)[0],Object.values(Ha)[0]].filter(Boolean);function Wa(e,t=``){let n=[`slidev-page`,t],r=e?.meta?.slide?.no;return r!=null&&n.push(`slidev-page-${r}`),n.filter(Boolean).join(` `)}async function Ga(){let{saveAs:t}=await P(async()=>{let{saveAs:t}=await import(`./modules/file-saver-DJvf_BAX.js`).then(t=>e(t.t(),1));return{saveAs:t}},__vite__mapDeps([17,2]),import.meta.url);t(typeof M.download==`string`?M.download:M.exportFilename?`${M.exportFilename}.pdf`:`./slidev-exported.pdf`,`${M.title}.pdf`)}function Ka(e,t,n){return(e.instance?.$).provides[t]??n}var qa=/[\s,]+/;function Ja(e,t){let n=t.map(e=>`${xn}${e}`);e.classList.forEach(t=>{t.startsWith(`slidev-vclick-anim-`)&&!n.includes(t)&&e.classList.remove(t)}),n.forEach(t=>e.classList.add(t))}function Ya(){return{install(e){e.directive(`click`,{name:`v-click`,mounted(e,t){let n=Za(e,t,t.value);n!=null&&(e.classList.toggle(gn,!0),e.dataset.slidevClicksStart=String(n.start),Number.isFinite(n.end)&&(e.dataset.slidevClicksEnd=String(n.end)),e.watchStopHandle=p(()=>{let t=n.isActive.value,r=n.isCurrent.value,i=t&&!r;n.flagHide?(e.classList.toggle(_n,t),e.classList.toggle(vn,t)):e.classList.toggle(_n,!t),Ja(e,n.flagAnimations.value),e.classList.toggle(yn,r),e.classList.toggle(bn,i)}))},unmounted:Qa}),e.directive(`after`,{name:`v-after`,mounted(e,t){let n=Za(e,t,`+0`);n!=null&&(e.classList.toggle(gn,!0),e.watchStopHandle=p(()=>{let t=n.isActive.value,r=n.isCurrent.value,i=t&&!r;n.flagHide?(e.classList.toggle(_n,t),e.classList.toggle(vn,t)):e.classList.toggle(_n,!t),Ja(e,n.flagAnimations.value),e.classList.toggle(yn,r),e.classList.toggle(bn,i)}))},unmounted:Qa}),e.directive(`click-hide`,{name:`v-click-hide`,mounted(e,t){let n=Za(e,t,t.value,!0);n!=null&&(e.classList.toggle(gn,!0),e.watchStopHandle=p(()=>{let t=n.isActive.value,r=n.isCurrent.value,i=t&&!r;e.classList.toggle(_n,t),e.classList.toggle(vn,t),Ja(e,n.flagAnimations.value),e.classList.toggle(yn,r),e.classList.toggle(bn,i)}))},unmounted:Qa})}}}var Xa=new Map;function Za(e,t,n,r=!1){let i=Ka(t,sn)?.value,a=Ka(t,mn);if(!e||!i)return null;let o=r||t.modifiers.hide!==!1&&t.modifiers.hide!=null,s=Object.keys({...t.modifiers}).filter(e=>e!==`hide`),c=m(()=>{if(s.length>0)return s;let e=a?.clickAnimation||M.clickAnimation;return e?e.split(qa).filter(Boolean):[]}),l=i.calculate(n);if(!l)return null;i.register(e,l);let u=m(()=>o?!l.isActive.value:l.isActive.value),d=m(()=>u.value?`shown`:Number.isFinite(l.end)?i.current{setTimeout(n.update,300)},{flush:`post`,immediate:!0});return{...n,stop:r}}function eo(e){return{info:E(kn(e)?.meta.slide??null),update:async()=>{}}}var to={};function no(e){function t(e){return to[e]??=eo(e)}return{info:m({get(){return t(D(e)).info.value},set(n){t(D(e)).info.value=n}}),update:async(n,r)=>{let i=t(r??D(e)),a=await i.update(n);return a&&(i.info.value=a),a}}}function ro(e){return()=>{}}function io(e,t,n,r=!1){function i(t){return e?Ka(e,t):j(t)}let a=i(pn),o=i(`$$slidev-fontmatter`)??{},s=i(cn),c=m(()=>ro(s.value)),l=i(`$$slidev-slide-scale`)??E(1),u=i(`$$slidev-slide-zoom`)??E(1),{left:d,top:p,stop:h}=$a(i(`$$slidev-slide-element`)??E()),{isPrintMode:g}=wr(),_=[`slide`,`presenter`].includes(a.value)&&!g.value,v=e?`directive`:`prop`,y=da(),b;if(Array.isArray(t)?b=t:typeof t==`string`&&t.includes(`,`)?b=t.split(`,`).map(Number):t!=null&&(v=`frontmatter`,y=`${t}`,t=o?.dragPos?.[y],b=t?.split(`,`).map(Number)),v!==`frontmatter`&&!n)throw Error("[Slidev] Can not identify the source position of the v-drag element, please provide an explicit `id` prop.");let x=[h],S=!r&&t!=null&&!Number.isFinite(b?.[3]);b??=[NaN,NaN,0];let C=E(b[2]),w=E(b[0]+b[2]/2),T=E(r?0:b[4]??0),ee=m(()=>T.value*Math.PI/180),te=m(()=>Math.sin(ee.value)),ne=m(()=>Math.cos(ee.value)),D=E(),O=E({left:0,top:0,width:0,height:0}),re=E(0);function ie(){if(!D.value)return;let e=D.value.getBoundingClientRect();O.value={left:e.left/u.value,top:e.top/u.value,width:e.width/u.value,height:e.height/u.value},re.value=(O.value.width+O.value.height)/l.value/(Math.abs(te.value)+Math.abs(ne.value))-C.value}x.push(f(C,ie,{flush:`post`}));let ae=E(b[3]??0),oe=S?m({get:()=>(S?re.value:ae.value)||0,set:e=>!S&&(ae.value=e)}):ae,se=E(S?b[1]:b[1]+b[3]/2),ce=S?m({get:()=>se.value+oe.value/2,set:e=>se.value=e-oe.value/2}):se,le=m(()=>Number.isFinite(w.value)?{position:`absolute`,zIndex:100,left:`${w.value-C.value/2}px`,top:`${ce.value-oe.value/2}px`,width:`${C.value}px`,height:S?void 0:`${oe.value}px`,transformOrigin:`center center`,transform:`rotate(${T.value}deg)`}:{position:`absolute`,zIndex:100});x.push(f([w,ce,C,oe,T],([e,t,r,i,a])=>{let o=[e-r/2,t-i/2,r].map(Math.round).join();S?o+=v===`directive`?`,NaN`:`,_`:o+=`,${Math.round(i)}`,Math.round(a)!==0&&(o+=`,${Math.round(a)}`),v===`directive`&&(o=`[${o}]`),c.value(y,o,v,n)}));let k={dragId:y,dataSource:v,markdownSource:n,isArrow:r,zoom:u,autoHeight:S,x0:w,y0:ce,width:C,height:oe,rotate:T,container:D,containerStyle:le,watchStopHandles:x,dragging:m(()=>sr.value===k),mounted(){_&&(ie(),t||setTimeout(()=>{ie(),w.value=(O.value.left+O.value.width/2-d.value)/l.value,ce.value=(O.value.top-p.value)/l.value,C.value=O.value.width/l.value,oe.value=O.value.height/l.value},100))},unmounted(){_&&k.stopDragging()},startDragging(){_&&(ie(),sr.value=k)},stopDragging(){_&&sr.value===k&&(sr.value=null)}};return x.push(Te(D,e=>{let t=document.querySelector(`#drag-control-container`);t&&e.target&&t.contains(e.target)||k.stopDragging()}),f(Ee(),e=>{e||k.stopDragging()})),k}function ao(){return{install(e){e.directive(`drag`,{name:`v-drag`,created(e,t,n){let r=io(t,t.value,n.props?.markdownSource);n.props&&(n.props={...n.props},delete n.props.markdownSource),r.container.value=e,e.draggingState=r,e.dataset.dragId=r.dragId,r.watchStopHandles.push(f(r.containerStyle,t=>{for(let[n,r]of Object.entries(t))r&&(e.style[n]=r)},{immediate:!0})),e.addEventListener(`dblclick`,r.startDragging)},mounted(e){e.draggingState.mounted()},unmounted(e){let t=e.draggingState;t.unmounted(),e.removeEventListener(`dblclick`,t.startDragging),t.watchStopHandles.forEach(e=>e())}})}}}function oo(){return Math.floor(Math.random()*2**31)}var so=class{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}};function co(e,t,n){if(e&&e.length){let[r,i]=t,a=Math.PI/180*n,o=Math.cos(a),s=Math.sin(a);for(let t of e){let[e,n]=t;t[0]=(e-r)*o-(n-i)*s+r,t[1]=(e-r)*s+(n-i)*o+i}}}function lo(e,t,n){let r=[];e.forEach(e=>r.push(...e)),co(r,t,n)}function uo(e,t){return e[0]===t[0]&&e[1]===t[1]}function fo(e,t,n,r=1){let i=n,a=Math.max(t,.1),o=e[0]&&e[0][0]&&typeof e[0][0]==`number`?[e]:e,s=[0,0];if(i)for(let e of o)co(e,s,i);let c=po(o,a,r);if(i){for(let e of o)co(e,s,-i);lo(c,s,-i)}return c}function po(e,t,n){let r=[];for(let t of e){let e=[...t];uo(e[0],e[e.length-1])||e.push([e[0][0],e[0][1]]),e.length>2&&r.push(e)}let i=[];t=Math.max(t,.1);let a=[];for(let e of r)for(let t=0;te.ymint.ymin?1:e.xt.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax)),!a.length)return i;let o=[],s=a[0].ymin,c=0;for(;o.length||a.length;){if(a.length){let e=-1;for(let t=0;ts);t++)e=t;a.splice(0,e+1).forEach(e=>{o.push({s,edge:e})})}if(o=o.filter(e=>!(e.edge.ymax<=s)),o.sort((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x)),(n!==1||c%t===0)&&o.length>1)for(let e=0;e=o.length)break;let n=o[e].edge,r=o[t].edge;i.push([[Math.round(n.x),s],[Math.round(r.x),s]])}s+=n,o.forEach(e=>{e.edge.x=e.edge.x+n*e.edge.islope}),c++}return i}function mo(e,t){let n=t.hachureAngle+90,r=t.hachureGap;r<0&&(r=t.strokeWidth*4),r=Math.round(Math.max(r,.1));let i=1;return t.roughness>=1&&(t.randomizer?.next()||Math.random())>.7&&(i=r),fo(e,r,n,i||1)}var ho=class{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){let n=mo(e,t);return{type:`fillSketch`,ops:this.renderLines(n,t)}}renderLines(e,t){let n=[];for(let r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],t));return n}};function go(e){let t=e[0],n=e[1];return Math.sqrt((t[0]-n[0])**2+(t[1]-n[1])**2)}var _o=class extends ho{fillPolygons(e,t){let n=t.hachureGap;n<0&&(n=t.strokeWidth*4),n=Math.max(n,.1);let r=mo(e,Object.assign({},t,{hachureGap:n})),i=Math.PI/180*t.hachureAngle,a=[],o=n*.5*Math.cos(i),s=n*.5*Math.sin(i);for(let[e,t]of r)go([e,t])&&a.push([[e[0]-o,e[1]+s],[...t]],[[e[0]+o,e[1]-s],[...t]]);return{type:`fillSketch`,ops:this.renderLines(a,t)}}},vo=class extends ho{fillPolygons(e,t){let n=this._fillPolygons(e,t),r=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),i=this._fillPolygons(e,r);return n.ops=n.ops.concat(i.ops),n}},yo=class{constructor(e){this.helper=e}fillPolygons(e,t){t=Object.assign({},t,{hachureAngle:0});let n=mo(e,t);return this.dotsOnLines(n,t)}dotsOnLines(e,t){let n=[],r=t.hachureGap;r<0&&(r=t.strokeWidth*4),r=Math.max(r,.1);let i=t.fillWeight;i<0&&(i=t.strokeWidth/2);let a=r/4;for(let o of e){let e=go(o),s=e/r,c=Math.ceil(s)-1,l=e-c*r,u=(o[0][0]+o[1][0])/2-r/4,d=Math.min(o[0][1],o[1][1]);for(let e=0;e{let a=go(e),o=Math.floor(a/(n+r)),s=(a+r-o*(n+r))/2,c=e[0],l=e[1];c[0]>l[0]&&(c=e[1],l=e[0]);let u=Math.atan((l[1]-c[1])/(l[0]-c[0]));for(let e=0;e{let i=go(e),a=Math.round(i/(2*t)),o=e[0],s=e[1];o[0]>s[0]&&(o=e[1],s=e[0]);let c=Math.atan((s[1]-o[1])/(s[0]-o[0]));for(let e=0;er%2?e+n:e+t);a.push({key:`C`,data:e}),t=e[4],n=e[5];break}case`Q`:a.push({key:`Q`,data:[...s]}),t=s[2],n=s[3];break;case`q`:{let e=s.map((e,r)=>r%2?e+n:e+t);a.push({key:`Q`,data:e}),t=e[2],n=e[3];break}case`A`:a.push({key:`A`,data:[...s]}),t=s[5],n=s[6];break;case`a`:t+=s[5],n+=s[6],a.push({key:`A`,data:[s[0],s[1],s[2],s[3],s[4],t,n]});break;case`H`:a.push({key:`H`,data:[...s]}),t=s[0];break;case`h`:t+=s[0],a.push({key:`H`,data:[t]});break;case`V`:a.push({key:`V`,data:[...s]}),n=s[0];break;case`v`:n+=s[0],a.push({key:`V`,data:[n]});break;case`S`:a.push({key:`S`,data:[...s]}),t=s[2],n=s[3];break;case`s`:{let e=s.map((e,r)=>r%2?e+n:e+t);a.push({key:`S`,data:e}),t=e[2],n=e[3];break}case`T`:a.push({key:`T`,data:[...s]}),t=s[0],n=s[1];break;case`t`:t+=s[0],n+=s[1],a.push({key:`T`,data:[t,n]});break;case`Z`:case`z`:a.push({key:`Z`,data:[]}),t=r,n=i;break}return a}function jo(e){let t=[],n=``,r=0,i=0,a=0,o=0,s=0,c=0;for(let{key:l,data:u}of e){switch(l){case`M`:t.push({key:`M`,data:[...u]}),[r,i]=u,[a,o]=u;break;case`C`:t.push({key:`C`,data:[...u]}),r=u[4],i=u[5],s=u[2],c=u[3];break;case`L`:t.push({key:`L`,data:[...u]}),[r,i]=u;break;case`H`:r=u[0],t.push({key:`L`,data:[r,i]});break;case`V`:i=u[0],t.push({key:`L`,data:[r,i]});break;case`S`:{let e=0,a=0;n===`C`||n===`S`?(e=r+(r-s),a=i+(i-c)):(e=r,a=i),t.push({key:`C`,data:[e,a,...u]}),s=u[0],c=u[1],r=u[2],i=u[3];break}case`T`:{let[e,a]=u,o=0,l=0;n===`Q`||n===`T`?(o=r+(r-s),l=i+(i-c)):(o=r,l=i);let d=r+2*(o-r)/3,f=i+2*(l-i)/3,p=e+2*(o-e)/3,m=a+2*(l-a)/3;t.push({key:`C`,data:[d,f,p,m,e,a]}),s=o,c=l,r=e,i=a;break}case`Q`:{let[e,n,a,o]=u,l=r+2*(e-r)/3,d=i+2*(n-i)/3,f=a+2*(e-a)/3,p=o+2*(n-o)/3;t.push({key:`C`,data:[l,d,f,p,a,o]}),s=e,c=n,r=a,i=o;break}case`A`:{let e=Math.abs(u[0]),n=Math.abs(u[1]),a=u[2],o=u[3],s=u[4],c=u[5],l=u[6];e===0||n===0?(t.push({key:`C`,data:[r,i,c,l,c,l]}),r=c,i=l):(r!==c||i!==l)&&(Po(r,i,c,l,e,n,a,o,s).forEach(function(e){t.push({key:`C`,data:e})}),r=c,i=l);break}case`Z`:t.push({key:`Z`,data:[]}),r=a,i=o;break}n=l}return t}function Mo(e){return Math.PI*e/180}function No(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}function Po(e,t,n,r,i,a,o,s,c,l){let u=Mo(o),d=[],f=0,p=0,m=0,h=0;if(l)[f,p,m,h]=l;else{[e,t]=No(e,t,-u),[n,r]=No(n,r,-u);let o=(e-n)/2,l=(t-r)/2,d=o*o/(i*i)+l*l/(a*a);d>1&&(d=Math.sqrt(d),i=d*i,a=d*a);let g=s===c?-1:1,_=i*i,v=a*a,y=_*v-_*l*l-v*o*o,b=_*l*l+v*o*o,x=g*Math.sqrt(Math.abs(y/b));m=x*i*l/a+(e+n)/2,h=x*-a*o/i+(t+r)/2,f=Math.asin(parseFloat(((t-h)/a).toFixed(9))),p=Math.asin(parseFloat(((r-h)/a).toFixed(9))),ep&&(f-=Math.PI*2),!c&&p>f&&(p-=Math.PI*2)}let g=p-f;if(Math.abs(g)>Math.PI*120/180){let e=p,t=n,s=r;p=c&&p>f?f+Math.PI*120/180*1:f+Math.PI*120/180*-1,n=m+i*Math.cos(p),r=h+a*Math.sin(p),d=Po(n,r,t,s,i,a,o,0,c,[p,e,m,h])}g=p-f;let _=Math.cos(f),v=Math.sin(f),y=Math.cos(p),b=Math.sin(p),x=Math.tan(g/4),S=4/3*i*x,C=4/3*a*x,w=[e,t],T=[e+S*v,t-C*_],ee=[n+S*b,r-C*y],te=[n,r];if(T[0]=2*w[0]-T[0],T[1]=2*w[1]-T[1],l)return[T,ee,te].concat(d);{d=[T,ee,te].concat(d);let e=[];for(let t=0;t2){let i=[];for(let t=0;tMath.PI*2&&(p=0,m=Math.PI*2);let h=Math.PI*2/c.curveStepCount,g=Math.min(h/2,(m-p)/2),_=as(g,l,u,d,f,p,m,1,c);if(!c.disableMultiStroke){let e=as(g,l,u,d,f,p,m,1.5,c);_.push(...e)}return o&&(s?_.push(...es(l,u,l+d*Math.cos(p),u+f*Math.sin(p),c),...es(l,u,l+d*Math.cos(m),u+f*Math.sin(m),c)):_.push({op:`lineTo`,data:[l,u]},{op:`lineTo`,data:[l+d*Math.cos(p),u+f*Math.sin(p)]})),{type:`path`,ops:_}}function Wo(e,t){let n=jo(Ao(ko(e))),r=[],i=[0,0],a=[0,0];for(let{key:e,data:o}of n)switch(e){case`M`:a=[o[0],o[1]],i=[o[0],o[1]];break;case`L`:r.push(...es(a[0],a[1],o[0],o[1],t)),a=[o[0],o[1]];break;case`C`:{let[e,n,i,s,c,l]=o;r.push(...os(e,n,i,s,c,l,a,t)),a=[c,l];break}case`Z`:r.push(...es(a[0],a[1],i[0],i[1],t)),a=[i[0],i[1]];break}return{type:`path`,ops:r}}function Go(e,t){let n=[];for(let r of e)if(r.length){let e=t.maxRandomnessOffset||0,i=r.length;if(i>2){n.push({op:`move`,data:[r[0][0]+X(e,t),r[0][1]+X(e,t)]});for(let a=1;aMath.PI*2&&(d=0,f=Math.PI*2);let p=(f-d)/o.curveStepCount,m=[];for(let e=d;e<=f;e+=p)m.push([s+l*Math.cos(e),c+u*Math.sin(e)]);return m.push([s+l*Math.cos(f),c+u*Math.sin(f)]),m.push([s,c]),Ko([m],o)}function Jo(e,t){return X(e,t)}function Yo(e,t,n){return $o(e,t,n)}function Xo(e,t,n,r,i){return es(e,t,n,r,i,!0)}function Zo(e){let t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function Qo(e){return e.randomizer||=new so(e.seed||0),e.randomizer.next()}function $o(e,t,n,r=1){return n.roughness*r*(Qo(n)*(t-e)+e)}function X(e,t,n=1){return $o(-e,e,t,n)}function es(e,t,n,r,i,a=!1){let o=a?i.disableMultiStrokeFill:i.disableMultiStroke,s=ts(e,t,n,r,i,!0,!1);if(o)return s;let c=ts(e,t,n,r,i,!0,!0);return s.concat(c)}function ts(e,t,n,r,i,a,o){let s=(e-n)**2+(t-r)**2,c=Math.sqrt(s),l=1;l=c<200?1:c>500?.4:-.0016668*c+1.233334;let u=i.maxRandomnessOffset||0;u*u*100>s&&(u=c/10);let d=u/2,f=.2+Qo(i)*.2,p=i.bowing*i.maxRandomnessOffset*(r-t)/200,m=i.bowing*i.maxRandomnessOffset*(e-n)/200;p=X(p,i,l),m=X(m,i,l);let h=[],g=()=>X(d,i,l),_=()=>X(u,i,l),v=i.preserveVertices;return a&&(o?h.push({op:`move`,data:[e+(v?0:g()),t+(v?0:g())]}):h.push({op:`move`,data:[e+(v?0:X(u,i,l)),t+(v?0:X(u,i,l))]})),o?h.push({op:`bcurveTo`,data:[p+e+(n-e)*f+g(),m+t+(r-t)*f+g(),p+e+2*(n-e)*f+g(),m+t+2*(r-t)*f+g(),n+(v?0:g()),r+(v?0:g())]}):h.push({op:`bcurveTo`,data:[p+e+(n-e)*f+_(),m+t+(r-t)*f+_(),p+e+2*(n-e)*f+_(),m+t+2*(r-t)*f+_(),n+(v?0:_()),r+(v?0:_())]}),h}function ns(e,t,n){if(!e.length)return[];let r=[];r.push([e[0][0]+X(t,n),e[0][1]+X(t,n)]),r.push([e[0][0]+X(t,n),e[0][1]+X(t,n)]);for(let i=1;i3){let a=[],o=1-n.curveTightness;i.push({op:`move`,data:[e[1][0],e[1][1]]});for(let t=1;t+21&&i.push(n):i.push(n),i.push(e[t+3])}else{let r=.5,a=e[t+0],o=e[t+1],s=e[t+2],c=e[t+3],l=fs(a,o,r),u=fs(o,s,r),d=fs(s,c,r),f=fs(l,u,r),p=fs(u,d,r),m=fs(f,p,r);ms([a,l,f,m],0,n,i),ms([m,p,d,c],0,n,i)}return i}function hs(e,t){return gs(e,0,e.length,t)}function gs(e,t,n,r,i){let a=i||[],o=e[t],s=e[n-1],c=0,l=1;for(let r=t+1;rc&&(c=t,l=r)}return Math.sqrt(c)>r?(gs(e,t,l+1,r,a),gs(e,l,n,r,a)):(a.length||a.push(o),a.push(s)),a}function _s(e,t=.15,n){let r=[],i=(e.length-1)/3;for(let n=0;n0?gs(r,0,r.length,n):r}function vs(e,t,n){let r=jo(Ao(ko(e))),i=[],a=[],o=[0,0],s=[],c=()=>{s.length>=4&&a.push(..._s(s,t)),s=[]},l=()=>{c(),a.length&&(i.push(a),a=[])};for(let{key:e,data:t}of r)switch(e){case`M`:l(),o=[t[0],t[1]],a.push(o);break;case`L`:c(),a.push([t[0],t[1]]);break;case`C`:if(!s.length){let e=a.length?a[a.length-1]:o;s.push([e[0],e[1]])}s.push([t[0],t[1]]),s.push([t[2],t[3]]),s.push([t[4],t[5]]);break;case`Z`:c(),a.push([o[0],o[1]]);break}if(l(),!n)return i;let u=[];for(let e of i){let t=hs(e,n);t.length&&u.push(t)}return u}var Z=`none`,ys=class{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:`#000`,strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:`hachure`,fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return oo()}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,n){return{shape:e,sets:t||[],options:n||this.defaultOptions}}line(e,t,n,r,i){let a=this._o(i);return this._d(`line`,[Y(e,t,n,r,a)],a)}rectangle(e,t,n,r,i){let a=this._o(i),o=[],s=Ro(e,t,n,r,a);if(a.fill){let i=[[e,t],[e+n,t],[e+n,t+r],[e,t+r]];a.fillStyle===`solid`?o.push(Go([i],a)):o.push(Ko([i],a))}return a.stroke!==Z&&o.push(s),this._d(`rectangle`,o,a)}ellipse(e,t,n,r,i){let a=this._o(i),o=[],s=Vo(n,r,a),c=Ho(e,t,a,s);if(a.fill)if(a.fillStyle===`solid`){let n=Ho(e,t,a,s).opset;n.type=`fillPath`,o.push(n)}else o.push(Ko([c.estimatedPoints],a));return a.stroke!==Z&&o.push(c.opset),this._d(`ellipse`,o,a)}circle(e,t,n,r){let i=this.ellipse(e,t,n,n,r);return i.shape=`circle`,i}linearPath(e,t){let n=this._o(t);return this._d(`linearPath`,[Io(e,!1,n)],n)}arc(e,t,n,r,i,a,o=!1,s){let c=this._o(s),l=[],u=Uo(e,t,n,r,i,a,o,!0,c);if(o&&c.fill)if(c.fillStyle===`solid`){let o=Object.assign({},c);o.disableMultiStroke=!0;let s=Uo(e,t,n,r,i,a,!0,!1,o);s.type=`fillPath`,l.push(s)}else l.push(qo(e,t,n,r,i,a,c));return c.stroke!==Z&&l.push(u),this._d(`arc`,l,c)}curve(e,t){let n=this._o(t),r=[],i=zo(e,n);if(n.fill&&n.fill!==Z)if(n.fillStyle===`solid`){let t=zo(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:`fillPath`,ops:this._mergedShape(t.ops)})}else{let t=[],i=e;if(i.length){let e=typeof i[0][0]==`number`?[i]:i;for(let r of e)r.length<3?t.push(...r):r.length===3?t.push(..._s(cs([r[0],r[0],r[1],r[2]]),10,(1+n.roughness)/2)):t.push(..._s(cs(r),10,(1+n.roughness)/2))}t.length&&r.push(Ko([t],n))}return n.stroke!==Z&&r.push(i),this._d(`curve`,r,n)}polygon(e,t){let n=this._o(t),r=[],i=Io(e,!0,n);return n.fill&&(n.fillStyle===`solid`?r.push(Go([e],n)):r.push(Ko([e],n))),n.stroke!==Z&&r.push(i),this._d(`polygon`,r,n)}path(e,t){let n=this._o(t),r=[];if(!e)return this._d(`path`,r,n);e=(e||``).replace(/\n/g,` `).replace(/(-\s)/g,`-`).replace(`/(ss)/g`,` `);let i=n.fill&&n.fill!==`transparent`&&n.fill!==Z,a=n.stroke!==Z,o=!!(n.simplification&&n.simplification<1),s=o?4-4*(n.simplification||1):(1+n.roughness)/2,c=vs(e,1,s),l=Wo(e,n);if(i)if(n.fillStyle===`solid`)if(c.length===1){let t=Wo(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:`fillPath`,ops:this._mergedShape(t.ops)})}else r.push(Go(c,n));else r.push(Ko(c,n));return a&&(o?c.forEach(e=>{r.push(Io(e,!1,n))}):r.push(l)),this._d(`path`,r,n)}opsToPath(e,t){let n=``;for(let r of e.ops){let e=typeof t==`number`&&t>=0?r.data.map(e=>+e.toFixed(t)):r.data;switch(r.op){case`move`:n+=`M${e[0]} ${e[1]} `;break;case`bcurveTo`:n+=`C${e[0]} ${e[1]}, ${e[2]} ${e[3]}, ${e[4]} ${e[5]} `;break;case`lineTo`:n+=`L${e[0]} ${e[1]} `;break}}return n.trim()}toPaths(e){let t=e.sets||[],n=e.options||this.defaultOptions,r=[];for(let e of t){let t=null;switch(e.type){case`path`:t={d:this.opsToPath(e),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:Z};break;case`fillPath`:t={d:this.opsToPath(e),stroke:Z,strokeWidth:0,fill:n.fill||Z};break;case`fillSketch`:t=this.fillSketch(e,n);break}t&&r.push(t)}return r}fillSketch(e,t){let n=t.fillWeight;return n<0&&(n=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||Z,strokeWidth:n,fill:Z}}_mergedShape(e){return e.filter((e,t)=>t===0?!0:e.op!==`move`)}},bs=`http://www.w3.org/2000/svg`,xs=800,Ss=null;function Cs(){return Ss||=new ys().defaultOptions,Ss}function ws(e,t,n){return{...Cs(),maxRandomnessOffset:2,roughness:e===`highlight`?3:1.5,bowing:1,stroke:`#000`,strokeWidth:1.5,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:`hachure`,fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,disableMultiStroke:e!==`double`,disableMultiStrokeFill:!1,seed:t,...n}}function Ts(e){let t=e.padding;if(t||t===0){if(typeof t==`number`)return[t,t,t,t];if(Array.isArray(t)){let e=t;if(e.length)switch(e.length){case 4:return[...e];case 1:return[e[0],e[0],e[0],e[0]];case 2:return[...e,...e];case 3:return[...e,e[1]];default:return[e[0],e[1],e[2],e[3]]}}}return[5,5,5,5]}function Es(e,t,n,r,i,a){let o=[],s=n.strokeWidth||2,c=Ts(n),l=n.animate===void 0?!0:!!n.animate,u=n.iterations||2,d=+!!n.rtl,f=ws(`single`,a,n);switch(n.type){case`underline`:{let e=t.y+t.h+c[2];for(let n=d;ne.setAttribute(t,n);for(let r of t){let t=document.createElementNS(bs,`path`);if(d(t,`d`,r),d(t,`fill`,`none`),d(t,`stroke`,n.color||`currentColor`),d(t,`stroke-width`,`${s}`),n.opacity!==void 0&&d(t,`style`,`opacity:${n.opacity}`),l){let e=t.getTotalLength();a.push(e),u+=e}e.appendChild(t),c.push(t)}if(l){let e=0;for(let t=0;tsetTimeout(t,e))}function Os(e){let t=[];for(let n of e){let e=``;for(let r of n.ops){let n=r.data;switch(r.op){case`move`:e.trim()&&t.push(e.trim()),e=`M${n[0]} ${n[1]} `;break;case`bcurveTo`:e+=`C${n[0]} ${n[1]}, ${n[2]} ${n[3]}, ${n[4]} ${n[5]} `;break;case`lineTo`:e+=`L${n[0]} ${n[1]} `;break}}e.trim()&&t.push(e.trim())}return t}function ks(){if(!window.__rno_kf_s){let e=window.__rno_kf_s=document.createElement(`style`);e.textContent=`@keyframes rough-notation-dash { to { stroke-dashoffset: 0; } }`,document.head.appendChild(e)}}var As=Object.defineProperty,js=(e,t,n)=>t in e?As(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Q=(e,t,n)=>(js(e,typeof t==`symbol`?t:t+``,n),n),Ms=class{constructor(e,t){Q(this,`_state`,`unattached`),Q(this,`_config`),Q(this,`_resizing`,!1),Q(this,`_ro`),Q(this,`_seed`,oo()),Q(this,`_e`),Q(this,`_svg`),Q(this,`_lastSizes`,[]),Q(this,`_animationDelay`,0),Q(this,`_resizeListener`,()=>{this._resizing||(this._resizing=!0,setTimeout(()=>{this._resizing=!1,this._state===`showing`&&this.haveRectsChanged()&&this.show()},400))}),Q(this,`pendingRefresh`),this._e=e,this._config=JSON.parse(JSON.stringify(t)),this.attach()}getConfig(e){return this._config[e]}setConfig(e,t){this._config[e]!==t&&(this._config[e]=t,this.refresh())}get animate(){return this._config.animate}set animate(e){this._config.animate=e}get animationDuration(){return this._config.animationDuration}set animationDuration(e){this._config.animationDuration=e}get iterations(){return this._config.iterations}set iterations(e){this._config.iterations=e}get color(){return this._config.color}set color(e){this._config.color!==e&&(this._config.color=e,this.refresh())}get class(){return this._config.class}set class(e){this._config.class!==e&&(this._config.class=e,this._svg&&this._svg.setAttribute(`class`,[`rough-annotation`,this._config.class||``].filter(Boolean).join(` `)))}get strokeWidth(){return this._config.strokeWidth}set strokeWidth(e){this._config.strokeWidth!==e&&(this._config.strokeWidth=e,this.refresh())}get padding(){return this._config.padding}set padding(e){this._config.padding!==e&&(this._config.padding=e,this.refresh())}attach(){if(this._state===`unattached`&&this._e.parentElement){ks();let e=this._svg=document.createElementNS(bs,`svg`);e.setAttribute(`class`,[`rough-annotation`,this._config.class||``].filter(Boolean).join(` `));let t=e.style;t.position=`absolute`,t.top=`0`,t.left=`0`,t.overflow=`visible`,t.pointerEvents=`none`,t.width=`100px`,t.height=`100px`;let n=this._config.type===`highlight`;if(this._e.insertAdjacentElement(n?`beforebegin`:`afterend`,e),this._state=`not-showing`,n){let e=window.getComputedStyle(this._e).position;(!e||e===`static`)&&(this._e.style.position=`relative`)}this.attachListeners()}}detachListeners(){window.removeEventListener(`resize`,this._resizeListener),this._ro&&this._ro.unobserve(this._e)}attachListeners(){this.detachListeners(),window.addEventListener(`resize`,this._resizeListener,{passive:!0}),!this._ro&&`ResizeObserver`in window&&(this._ro=new window.ResizeObserver(e=>{for(let t of e)t.contentRect&&this._resizeListener()})),this._ro&&this._ro.observe(this._e)}haveRectsChanged(){if(this._lastSizes.length){let e=this.rects();if(e.length===this._lastSizes.length){for(let t=0;tMath.round(e)===Math.round(t);return n(e.x,t.x)&&n(e.y,t.y)&&n(e.w,t.w)&&n(e.h,t.h)}isShowing(){return this._state!==`not-showing`}refresh(){this.isShowing()&&!this.pendingRefresh&&(this.pendingRefresh=Promise.resolve().then(()=>{this.isShowing()&&this.show(),delete this.pendingRefresh}))}async show(){switch(this._state){case`unattached`:break;case`showing`:this.hide(),this._svg&&await this.render(this._svg,!0);break;case`not-showing`:this.attach(),this._svg&&await this.render(this._svg,!1);break}}hide(){if(this._svg)for(;this._svg.lastChild;)this._svg.removeChild(this._svg.lastChild);this._state=`not-showing`}remove(){this._svg&&this._svg.parentElement&&this._svg.parentElement.removeChild(this._svg),this._svg=void 0,this._state=`unattached`,this.detachListeners()}async render(e,t){let n=this._config;t&&(n=JSON.parse(JSON.stringify(this._config)),n.animate=!1);let r=this.rects(),i=0;r.forEach(e=>i+=e.w);let a=n.animationDuration||xs,o=0,s=[];for(let t=0;tObject.assign(e,{type:`box`}),circle:e=>Object.assign(e,{type:`circle`}),underline:e=>Object.assign(e,{type:`underline`}),highlight:e=>Object.assign(e,{type:`highlight`}),"strike-through":e=>Object.assign(e,{type:`strike-through`}),"crossed-off":e=>Object.assign(e,{type:`crossed-off`}),bracket:e=>Object.assign(e,{type:`bracket`}),strike:e=>Object.assign(e,{type:`strike-through`}),cross:e=>Object.assign(e,{type:`crossed-off`}),crossed:e=>Object.assign(e,{type:`crossed-off`}),linethrough:e=>Object.assign(e,{type:`strike-through`}),"line-through":e=>Object.assign(e,{type:`strike-through`}),black:e=>$(e,`text-black`),blue:e=>$(e,`text-blue`),cyan:e=>$(e,`text-cyan`),gray:e=>$(e,`text-gray`),green:e=>$(e,`text-green`),indigo:e=>$(e,`text-indigo`),lime:e=>$(e,`text-lime`),orange:e=>$(e,`text-orange`),pink:e=>$(e,`text-pink`),purple:e=>$(e,`text-purple`),red:e=>$(e,`text-red`),teal:e=>$(e,`text-teal`),white:e=>$(e,`text-white`),yellow:e=>$(e,`text-yellow`)},Fs=[[/^delay-?(\d+)?$/,(e,t,n)=>(t.delay=(e[1]?Number.parseInt(e[1]):n)||300,t)],[/^(?:op|opacity)-?(\d+)?$/,(e,t,n)=>(t.opacity=((e[1]?Number.parseInt(e[1]):n)||100)/100,t)]];function Is(){return{install(e){e.directive(`mark`,{name:`v-mark`,mounted:(e,t)=>{let{isPrintMode:n}=wr(),r=m(()=>{let e=typeof t.value==`object`&&!Array.isArray(t.value)?{...t.value}:{at:t.value},r={at:e.at},i=Object.entries(t.modifiers).filter(([e,t])=>{if(Ps[e])return r=Ps[e](r,t),!1;for(let[n,i]of Fs){let a=e.match(n);if(a)return r=i(a,r,t),!1}return!0});i.length&&console.warn(`[Slidev] Invalid modifiers for v-mark:`,i);let a={...r,...e};return a.type||=`underline`,n.value&&(a.animationDuration=1),a}),i=Ns(e,r.value),a=Za(e,t,r.value.at);if(!a){i.show();return}e.watchStopHandle=p(()=>{let e;r.value.class&&(i.class=r.value.class),r.value.color&&(i.color=r.value.color);let t=r.value.at;e=t===!0?!0:t===!1?!1:a.isActive.value,e!=null&&(e?i.show():i.hide())})},unmounted:e=>{e.watchStopHandle?.()}})}}}function Ls(){return{install(e){let t=xe();e.directive(`motion`,{name:`v-motion`,mounted(e,n,r,i){let a=Ka(n,sn),o=Ka(n,cn),s=Ka(n,pn),{currentPage:c,clicks:l,isPrintMode:u}=wr(),d=r.props={...r.props},p={...d.initial,...d.variants?.[`slidev-initial`]},m={...d.enter,...d.variants?.[`slidev-enter`]},h={...d.leave,...d.variants?.[`slidev-leave`]};delete d.initial,delete d.enter,delete d.leave;let g=`${da()}-`,_=[];for(let e of Object.keys(d))if(e.startsWith(`click-`)){let t=e.slice(6),n=t.includes(`-`)?t.split(`-`).map(Number):+t,r=g+t;_.push({id:r,at:n,variant:{...d[e]},info:a?.value.calculate(n)}),delete d[e]}_.sort((e,t)=>(Array.isArray(e.at)?e.at[0]:e.at)-(Array.isArray(t.at)?t.at[0]:t.at)),t.created(e,n,r,i),t.mounted(e,n,r,i);let v=e.motionInstance;v.clickIds=_.map(e=>e.id),v.set(p),v.watchStopHandle=f([o,c,l].filter(Boolean),()=>{let t=Xa.get(e)?.visibilityState.value??`shown`;if(!a?.value||![`slide`,`presenter`].includes(s?.value??``)){let e={...p,...m};for(let{variant:t}of _)Object.assign(e,t);v.set(e)}else if(u.value||o?.value===c.value)if(t===`shown`){let e={...p,...m};for(let{variant:t,info:n}of _)(!n||n.isActive.value)&&Object.assign(e,t);u.value?v.set(e):v.apply(e)}else v.apply(t===`before`?p:h);else v.apply((o?.value??-1)>c.value?p:h)},{immediate:!0})},unmounted(e){e.motionInstance.watchStopHandle()}})}}}var Rs=Object.assign({}),zs=Object.assign({}),Bs=[Object.values(Rs)[0],Object.values(zs)[0]].filter(Boolean);function Vs(){let e=[];function t(e){if(!M.remote||M.remote===e.query.password)return!0;if(M.remote&&e.query.password===void 0){let e=prompt(`Enter password`);if(M.remote===e)return!0}return e.params.no?{path:`/${e.params.no}`}:{path:``}}return e.push({name:`entry`,path:`/entry`,component:()=>P(()=>import(`./slidev/entry-C_dGizEF.js`),__vite__mapDeps([18,1,2,3,19]),import.meta.url),beforeEnter:t},{name:`overview`,path:`/overview`,component:()=>P(()=>import(`./slidev/overview-QM-_BJsq.js`),__vite__mapDeps([20,21,1,2,3,22,23,7,24,25,26,27,4,28]),import.meta.url),beforeEnter:t},{name:`notes`,path:`/notes`,component:()=>P(()=>import(`./slidev/notes-CSZzM_nQ.js`),__vite__mapDeps([29,7,1,2,3,30,22,24,25,26,31]),import.meta.url),beforeEnter:t},{name:`notes-edit`,path:`/notes-edit`,component:()=>P(()=>import(`./slidev/notes-edit-Ma5EL_89.js`),__vite__mapDeps([32,1,2,3,26,31,22]),import.meta.url),beforeEnter:t},{name:`presenter`,path:`/presenter/:no`,component:()=>P(()=>import(`./slidev/presenter-BVffpMW9.js`),__vite__mapDeps([33,21,1,2,3,22,23,34,7,26,35,30,24,25,36,37,27,38]),import.meta.url),beforeEnter:t},{path:`/presenter`,redirect:{path:`/presenter/1`}}),e.push({name:`play`,path:`/:no`,component:()=>P(()=>import(`./slidev/play-0An4EZZ7.js`),__vite__mapDeps([39,21,1,2,3,22,23,34,7,26,35,31,4,40]),import.meta.url)},{path:``,redirect:{path:`/1`}},{path:`/:pathMatch(.*)*`,name:`NotFound`,component:()=>P(()=>import(`./slidev/404-Cyn-rlMQ.js`),__vite__mapDeps([41,1,2,3,22,42]),import.meta.url)}),Bs.reduce((e,t)=>t(e),e)}async function Hs(e){function t(){document.documentElement.style.setProperty(`--vh`,`${window.innerHeight*.01}px`)}t(),window.addEventListener(`resize`,t);let n=pe({history:me(`./`),routes:Vs()});e.use(n),e.use(Ba()),e.use(Ya()),e.use(Is()),e.use(ao()),e.use(Ls()),e.use(te,{container:`#twoslash-container`});let r={app:e,router:n};for(let e of Ua)await e(r)}async function Us(){let e=ee(Na);await Hs(e),e.mount(`#app`)}Us();export{kn as $,Yn as A,Fn as B,zn as C,Rn as D,$n as E,cr as F,_r as G,er as H,Bn as I,pr as J,gr as K,Hn as L,Kn as M,Gn as N,mr as O,lr as P,Wn as Q,rr as R,hr as S,M as St,fr as T,Pn as U,Ln as V,Zn as W,ur as X,dr as Y,Qn as Z,wr as _,Fe as _t,Wa as a,cn as at,Un as b,je as bt,ba as c,fn as ct,K as d,hn as dt,An as et,fa as f,F as ft,kr as g,ke as gt,Or as h,vt as ht,Ga as i,sn as it,Xn as j,ir as k,Sa as l,ln as lt,Dr as m,Tt as mt,eo as n,Dn as nt,ja as o,mn as ot,da as p,P as pt,nr as q,$a as r,Sn as rt,Ca as s,pn as st,no as t,On as tt,va as u,un as ut,sr as v,Ae as vt,qn as w,tr as x,Pe as xt,Jn as y,Me as yt,In as z}; \ No newline at end of file diff --git a/docs/dist/assets/info-J43DQDTF-ZY6QRYG4-Ceb7wdRV.js b/docs/dist/assets/info-J43DQDTF-ZY6QRYG4-Ceb7wdRV.js new file mode 100644 index 00000000..90f7a0a3 --- /dev/null +++ b/docs/dist/assets/info-J43DQDTF-ZY6QRYG4-Ceb7wdRV.js @@ -0,0 +1 @@ +import{n as e}from"./chunk-BBDM4ZFP-DhnAO8sj.js";export{e as createInfoServices}; \ No newline at end of file diff --git a/docs/dist/assets/infoDiagram-EYWOMQDI-BJ8tSyXV.js b/docs/dist/assets/infoDiagram-EYWOMQDI-BJ8tSyXV.js new file mode 100644 index 00000000..0050e931 --- /dev/null +++ b/docs/dist/assets/infoDiagram-EYWOMQDI-BJ8tSyXV.js @@ -0,0 +1,2 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{T as t}from"./chunk-V7P66DNM-D246Sefn.js";import{l as n}from"./chunk-Q52JI7PB-BeSPinqD.js";import{t as r}from"./chunk-PUIB63ON-iBBh92CL.js";import{y as i}from"./chunk-BBDM4ZFP-DhnAO8sj.js";var a={parse:e(async e=>{let n=await i(`info`,e);t.debug(n)},`parse`)},o={version:`11.15.0`},s={parser:a,db:{getVersion:e(()=>o.version,`getVersion`)},renderer:{draw:e((e,i,a)=>{t.debug(`rendering info diagram +`+e);let o=r(i);n(o,100,400,!0),o.append(`g`).append(`text`).attr(`x`,100).attr(`y`,40).attr(`class`,`version`).attr(`font-size`,32).style(`text-anchor`,`middle`).text(`v${a}`)},`draw`)}};export{s as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/ishikawaDiagram-RFIIXC3A-Cq2QwUE1.js b/docs/dist/assets/ishikawaDiagram-RFIIXC3A-Cq2QwUE1.js new file mode 100644 index 00000000..98dd1f29 --- /dev/null +++ b/docs/dist/assets/ishikawaDiagram-RFIIXC3A-Cq2QwUE1.js @@ -0,0 +1,70 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import"./chunk-V7P66DNM-D246Sefn.js";import{C as t,E as n,J as r,Q as i,Y as a,b as o,c as s,l as c,o as l,x as u}from"./chunk-Q52JI7PB-BeSPinqD.js";import{t as d}from"./chunk-PUIB63ON-iBBh92CL.js";import{t as f}from"./chunk-PLCLPJVV-rGjVDjLw.js";import"./chunk-7TFACZ55-BO7C1qvL.js";import{h as p}from"./chunk-BSZA5ISF-LqNHBHyp.js";var m=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,14],i=[1,12],a=[1,13],o=[6,7,8],s=[1,20],c=[1,18],l=[1,19],u=[6,7,11],d=[1,6,13,14],f=[1,23],p=[1,24],m=[1,6,7,11,13,14],h={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`ISHIKAWA`,11:`EOF`,13:`SPACELIST`,14:`TEXT`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 15:r.addNode(a[s-1].length,a[s].trim());break;case 16:r.addNode(0,a[s].trim());break}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:a},t(o,[2,3]),{1:[2,2]},t(o,[2,4]),t(o,[2,5]),{1:[2,6],6:r,12:15,13:i,14:a},{6:r,9:16,12:11,13:i,14:a},{6:s,7:c,10:17,11:l},t(u,[2,18],{14:[1,21]}),t(u,[2,16]),t(u,[2,17]),{6:s,7:c,10:22,11:l},{1:[2,7],6:r,12:15,13:i,14:a},t(d,[2,14],{7:f,11:p}),t(m,[2,8]),t(m,[2,9]),t(m,[2,10]),t(u,[2,15]),t(d,[2,13],{7:f,11:p}),t(m,[2,11]),t(m,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};h.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e(function(e,t,n,r){switch(n){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},`anonymous`),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}}})();function g(){this.yy={}}return e(g,`Parser`),g.prototype=h,h.Parser=g,new g})();m.parser=m;var h=m,g=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}static{e(this,`IshikawaDB`)}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,l()}getRoot(){return this.root}addNode(e,n){let r=s.sanitizeText(n,t());if(!this.root){this.root={text:r,children:[]},this.stack=[{level:0,node:this.root}],i(r);return}this.baseLevel??=e;let a=e-this.baseLevel+1;for(a<=0&&(a=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=a;)this.stack.pop();let o=this.stack[this.stack.length-1].node,c={text:r,children:[]};o.children.push(c),this.stack.push({level:a,node:c})}getAccTitle(){return u()}setAccTitle(e){a(e)}getAccDescription(){return o()}setAccDescription(e){r(e)}getDiagramTitle(){return n()}setDiagramTitle(e){i(e)}},_=14,v=250,y=30,b=60,x=5,S=82*Math.PI/180,C=Math.cos(S),w=Math.sin(S),T=e((e,t,n)=>{let r=e.node().getBBox(),i=r.width+t*2,a=r.height+t*2;c(e,a,i,n),e.attr(`viewBox`,`${r.x-t} ${r.y-t} ${i} ${a}`)},`applyPaddedViewBox`),E=e((e,n,r,i)=>{let a=i.db.getRoot();if(!a)return;let o=t(),{look:s,handDrawnSeed:c,themeVariables:l}=o,u=p(o.fontSize)[0]??_,m=s===`handDrawn`,h=a.children??[],g=o.ishikawa?.diagramPadding??20,y=o.ishikawa?.useMaxWidth??!1,b=d(n),x=b.append(`g`).attr(`class`,`ishikawa`),S=m?f.svg(b.node()):void 0,C=S?{roughSvg:S,seed:c??0,lineColor:l?.lineColor??`#333`,fillColor:l?.mainBkg??`#fff`}:void 0,w=`ishikawa-arrow-${n}`;m||x.append(`defs`).append(`marker`).attr(`id`,w).attr(`viewBox`,`0 0 10 10`).attr(`refX`,0).attr(`refY`,5).attr(`markerWidth`,6).attr(`markerHeight`,6).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 10 0 L 0 5 L 10 10 Z`).attr(`class`,`ishikawa-arrow`);let E=0,k=v,A=m?void 0:L(x,E,k,E,k,`ishikawa-spine`);if(O(x,E,k,a.text,u,C),!h.length){m&&L(x,E,k,E,k,`ishikawa-spine`,C),T(b,g,y);return}E-=20;let j=h.filter((e,t)=>t%2==0),N=h.filter((e,t)=>t%2==1),P=D(j),F=D(N),I=P.total+F.total,R=v,z=v;if(I>0){let e=v*2,t=v*.3;R=Math.max(t,e*(P.total/I)),z=Math.max(t,e*(F.total/I))}let B=u*2;R=Math.max(R,P.max*B),z=Math.max(z,F.max*B),k=Math.max(R,v),A&&A.attr(`y1`,k).attr(`y2`,k),x.select(`.ishikawa-head-group`).attr(`transform`,`translate(0,${k})`);let V=Math.ceil(h.length/2);for(let e=0;eMath.min(e,t.getBBox().x),1/0)}if(m)L(x,E,k,0,k,`ishikawa-spine`,C);else{A.attr(`x1`,E);let e=`url(#${w})`;x.selectAll(`line.ishikawa-branch, line.ishikawa-sub-branch`).attr(`marker-start`,e)}T(b,g,y)},`draw`),D=e(t=>{let n=e(e=>e.children.reduce((e,t)=>e+1+n(t),0),`countDescendants`);return t.reduce((e,t)=>{let r=n(t);return e.total+=r,e.max=Math.max(e.max,r),e},{total:0,max:0})},`sideStats`),O=e((e,t,n,r,i,a)=>{let o=Math.max(6,Math.floor(110/(i*.6))),s=e.append(`g`).attr(`class`,`ishikawa-head-group`).attr(`transform`,`translate(${t},${n})`),c=F(s,P(r,o),0,0,`ishikawa-head-label`,`start`,i),l=c.node().getBBox(),u=Math.max(60,l.width+6),d=Math.max(40,l.height*2+40),f=`M 0 ${-d/2} L 0 ${d/2} Q ${u*2.4} 0 0 ${-d/2} Z`;if(a){let e=a.roughSvg.path(f,{roughness:1.5,seed:a.seed,fill:a.fillColor,fillStyle:`hachure`,fillWeight:2.5,hachureGap:5,stroke:a.lineColor,strokeWidth:2});s.insert(()=>e,`:first-child`).attr(`class`,`ishikawa-head`)}else s.insert(`path`,`:first-child`).attr(`class`,`ishikawa-head`).attr(`d`,f);c.attr(`transform`,`translate(${(u-l.width)/2-l.x+3},${-l.y-l.height/2})`)},`drawHead`),k=e((t,n)=>{let r=[],i=[],a=e((e,t,o)=>{let s=n===-1?[...e].reverse():e;for(let e of s){let n=r.length,s=e.children??[];r.push({depth:o,text:P(e.text,15),parentIndex:t,childCount:s.length}),o%2==0?(i.push(n),s.length&&a(s,n,o+1)):(s.length&&a(s,n,o+1),i.push(n))}},`walk`);return a(t,-1,2),{entries:r,yOrder:i}},`flattenTree`),A=e((e,t,n,r,i,a,o)=>{let s=e.append(`g`).attr(`class`,`ishikawa-label-group`),c=F(s,t,n,r+11*i,`ishikawa-label cause`,`middle`,a).node().getBBox();if(o){let e=o.roughSvg.rectangle(c.x-20,c.y-2,c.width+40,c.height+4,{roughness:1.5,seed:o.seed,fill:o.fillColor,fillStyle:`hachure`,fillWeight:2.5,hachureGap:5,stroke:o.lineColor,strokeWidth:2});s.insert(()=>e,`:first-child`).attr(`class`,`ishikawa-label-box`)}else s.insert(`rect`,`:first-child`).attr(`class`,`ishikawa-label-box`).attr(`x`,c.x-20).attr(`y`,c.y-2).attr(`width`,c.width+40).attr(`height`,c.height+4)},`drawCauseLabel`),j=e((e,t,n,r,i,a)=>{let o=Math.sqrt(r*r+i*i);if(o===0)return;let s=r/o,c=i/o,l=-c*6,u=s*6,d=t,f=n,p=`M ${d} ${f} L ${d-s*6*2+l} ${f-c*6*2+u} L ${d-s*6*2-l} ${f-c*6*2-u} Z`,m=a.roughSvg.path(p,{roughness:1,seed:a.seed,fill:a.lineColor,fillStyle:`solid`,stroke:a.lineColor,strokeWidth:1});e.append(()=>m)},`drawArrowMarker`),M=e((e,t,n,r,i,a,o,s)=>{let c=t.children??[],l=a*(c.length?1:.2),u=-C*l,d=w*l*i,f=n+u,p=r+d;if(L(e,n,r,f,p,`ishikawa-branch`,s),s&&j(e,n,r,n-f,r-p,s),A(e,t.text,f,p,i,o,s),!c.length)return;let{entries:m,yOrder:h}=k(c,i),g=m.length,_=Array(g);for(let[e,t]of h.entries())_[t]=r+d*((e+1)/(g+1));let v=new Map;v.set(-1,{x0:n,y0:r,x1:f,y1:p,childCount:c.length,childrenDrawn:0});let S=-C,T=w*i,E=i<0?`ishikawa-label up`:`ishikawa-label down`;for(let[t,n]of m.entries()){let r=_[t],i=v.get(n.parentIndex),a=e.append(`g`).attr(`class`,`ishikawa-sub-group`),c=0,l=0,u=0;if(n.depth%2==0){let e=i.y1-i.y0;c=I(i.x0,i.x1,e?(r-i.y0)/e:.5),l=r,u=c-(n.childCount>0?b+n.childCount*x:y),L(a,c,r,u,r,`ishikawa-sub-branch`,s),s&&j(a,c,r,1,0,s),F(a,n.text,u,r,`ishikawa-label align`,`end`,o)}else{let e=i.childrenDrawn++;c=I(i.x0,i.x1,(i.childCount-e)/(i.childCount+1)),l=i.y0,u=c+S*((r-l)/T),L(a,c,l,u,r,`ishikawa-sub-branch`,s),s&&j(a,c,l,c-u,l-r,s),F(a,n.text,u,r,E,`end`,o)}n.childCount>0&&v.set(t,{x0:c,y0:l,x1:u,y1:r,childCount:n.childCount,childrenDrawn:0})}},`drawBranch`),N=e(e=>e.split(/|\n/),`splitLines`),P=e((e,t)=>{if(e.length<=t)return e;let n=[];for(let r of e.split(/\s+/)){let e=n.length-1;e>=0&&n[e].length+1+r.length<=t?n[e]+=` `+r:n.push(r)}return n.join(` +`)},`wrapText`),F=e((e,t,n,r,i,a,o)=>{let s=N(t),c=o*1.05,l=e.append(`text`).attr(`class`,i).attr(`text-anchor`,a).attr(`x`,n).attr(`y`,r-(s.length-1)*c/2);for(let[e,t]of s.entries())l.append(`tspan`).attr(`x`,n).attr(`dy`,e===0?0:c).text(t);return l},`drawMultilineText`),I=e((e,t,n)=>e+(t-e)*n,`lerp`),L=e((e,t,n,r,i,a,o)=>{if(o){let s=o.roughSvg.line(t,n,r,i,{roughness:1.5,seed:o.seed,stroke:o.lineColor,strokeWidth:2});e.append(()=>s).attr(`class`,a);return}return e.append(`line`).attr(`class`,a).attr(`x1`,t).attr(`y1`,n).attr(`x2`,r).attr(`y2`,i)},`drawLine`),R={parser:h,get db(){return new g},renderer:{draw:E},styles:e(e=>` +.ishikawa .ishikawa-spine, +.ishikawa .ishikawa-branch, +.ishikawa .ishikawa-sub-branch { + stroke: ${e.lineColor}; + stroke-width: 2; + fill: none; +} + +.ishikawa .ishikawa-sub-branch { + stroke-width: 1; +} + +.ishikawa .ishikawa-arrow { + fill: ${e.lineColor}; +} + +.ishikawa .ishikawa-head { + fill: ${e.mainBkg}; + stroke: ${e.lineColor}; + stroke-width: 2; +} + +.ishikawa .ishikawa-label-box { + fill: ${e.mainBkg}; + stroke: ${e.lineColor}; + stroke-width: 2; +} + +.ishikawa text { + font-family: ${e.fontFamily}; + font-size: ${e.fontSize}; + fill: ${e.textColor}; +} + +.ishikawa .ishikawa-head-label { + font-weight: 600; + text-anchor: middle; + dominant-baseline: middle; + font-size: 14px; +} + +.ishikawa .ishikawa-label { + text-anchor: end; +} + +.ishikawa .ishikawa-label.cause { + text-anchor: middle; + dominant-baseline: middle; +} + +.ishikawa .ishikawa-label.align { + text-anchor: end; + dominant-baseline: middle; +} + +.ishikawa .ishikawa-label.up { + dominant-baseline: baseline; +} + +.ishikawa .ishikawa-label.down { + dominant-baseline: hanging; +} +`,`getStyles`)};export{R as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/journeyDiagram-MYZUOU3L-C0LOb0yK.js b/docs/dist/assets/journeyDiagram-MYZUOU3L-C0LOb0yK.js new file mode 100644 index 00000000..e5d71e18 --- /dev/null +++ b/docs/dist/assets/journeyDiagram-MYZUOU3L-C0LOb0yK.js @@ -0,0 +1,139 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{I as t,n}from"./chunk-V7P66DNM-D246Sefn.js";import{C as r,E as i,J as a,Q as o,Y as s,b as c,l,o as u,x as d}from"./chunk-Q52JI7PB-BeSPinqD.js";import"./chunk-7TFACZ55-BO7C1qvL.js";import{t as f}from"./chunk-RTBOCTTP-BZPyT8j-.js";import{a as p,n as m,o as h,s as g}from"./chunk-O4A3IS3O-BIKKhWCb.js";var _=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,8,10,11,12,14,16,17,18],r=[1,9],i=[1,10],a=[1,11],o=[1,12],s=[1,13],c=[1,14],l={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:`error`,4:`journey`,6:`EOF`,8:`SPACE`,10:`NEWLINE`,11:`title`,12:`acc_title`,13:`acc_title_value`,14:`acc_descr`,15:`acc_descr_value`,16:`acc_descr_multiline_value`,17:`section`,18:`taskName`,19:`taskData`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 10:case 11:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 12:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:r.addTask(a[s-1],a[s]),this.$=`task`;break}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},t(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:i,14:a,16:o,17:s,18:c},t(n,[2,7],{1:[2,1]}),t(n,[2,3]),{9:15,11:r,12:i,14:a,16:o,17:s,18:c},t(n,[2,5]),t(n,[2,6]),t(n,[2,8]),{13:[1,16]},{15:[1,17]},t(n,[2,11]),t(n,[2,12]),{19:[1,18]},t(n,[2,4]),t(n,[2,9]),t(n,[2,10]),t(n,[2,13])],defaultActions:{},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};l.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin(`acc_title`),12;case 8:return this.popState(),`acc_title_value`;case 9:return this.begin(`acc_descr`),14;case 10:return this.popState(),`acc_descr_value`;case 11:this.begin(`acc_descr_multiline`);break;case 12:this.popState();break;case 13:return`acc_descr_multiline_value`;case 14:return 17;case 15:return 18;case 16:return 19;case 17:return`:`;case 18:return 6;case 19:return`INVALID`}},`anonymous`),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}}})();function u(){this.yy={}}return e(u,`Parser`),u.prototype=l,l.Parser=u,new u})();_.parser=_;var v=_,y=``,b=[],x=[],S=[],C=e(function(){b.length=0,x.length=0,y=``,S.length=0,u()},`clear`),w=e(function(e){y=e,b.push(e)},`addSection`),T=e(function(){return b},`getSections`),E=e(function(){let e=A(),t=0;for(;!e&&t<100;)e=A(),t++;return x.push(...S),x},`getTasks`),D=e(function(){let e=[];return x.forEach(t=>{t.people&&e.push(...t.people)}),[...new Set(e)].sort()},`updateActors`),O=e(function(e,t){let n=t.substr(1).split(`:`),r=0,i=[];n.length===1?(r=Number(n[0]),i=[]):(r=Number(n[0]),i=n[1].split(`,`));let a=i.map(e=>e.trim()),o={section:y,type:y,people:a,task:e,score:r};S.push(o)},`addTask`),k=e(function(e){let t={section:y,type:y,description:e,task:e,classes:[]};x.push(t)},`addTaskOrg`),A=e(function(){let t=e(function(e){return S[e].processed},`compileTask`),n=!0;for(let[e,r]of S.entries())t(e),n&&=r.processed;return n},`compileTasks`),j={getConfig:e(()=>r().journey,`getConfig`),clear:C,setDiagramTitle:o,getDiagramTitle:i,setAccTitle:s,getAccTitle:d,setAccDescription:a,getAccDescription:c,addSection:w,getSections:T,getTasks:E,addTask:O,addTaskOrg:k,getActors:e(function(){return D()},`getActors`)},M=e(e=>`.label { + font-family: ${e.fontFamily}; + color: ${e.textColor}; + } + .mouth { + stroke: #666; + } + + line { + stroke: ${e.textColor} + } + + .legend { + fill: ${e.textColor}; + font-family: ${e.fontFamily}; + } + + .label text { + fill: #333; + } + .label { + color: ${e.textColor} + } + + .face { + ${e.faceColor?`fill: ${e.faceColor}`:`fill: #FFF8DC`}; + stroke: #999; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; + stroke-width: 1px; + } + + .node .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + .arrowheadPath { + fill: ${e.arrowheadColor}; + } + + .edgePath .path { + stroke: ${e.lineColor}; + stroke-width: 1.5px; + } + + .flowchart-link { + stroke: ${e.lineColor}; + fill: none; + } + + .edgeLabel { + background-color: ${e.edgeLabelBackground}; + rect { + opacity: 0.5; + } + text-align: center; + } + + .cluster rect { + } + + .cluster text { + fill: ${e.titleColor}; + } + + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: ${e.fontFamily}; + font-size: 12px; + background: ${e.tertiaryColor}; + border: 1px solid ${e.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .task-type-0, .section-type-0 { + ${e.fillType0?`fill: ${e.fillType0}`:``}; + } + .task-type-1, .section-type-1 { + ${e.fillType0?`fill: ${e.fillType1}`:``}; + } + .task-type-2, .section-type-2 { + ${e.fillType0?`fill: ${e.fillType2}`:``}; + } + .task-type-3, .section-type-3 { + ${e.fillType0?`fill: ${e.fillType3}`:``}; + } + .task-type-4, .section-type-4 { + ${e.fillType0?`fill: ${e.fillType4}`:``}; + } + .task-type-5, .section-type-5 { + ${e.fillType0?`fill: ${e.fillType5}`:``}; + } + .task-type-6, .section-type-6 { + ${e.fillType0?`fill: ${e.fillType6}`:``}; + } + .task-type-7, .section-type-7 { + ${e.fillType0?`fill: ${e.fillType7}`:``}; + } + + .actor-0 { + ${e.actor0?`fill: ${e.actor0}`:``}; + } + .actor-1 { + ${e.actor1?`fill: ${e.actor1}`:``}; + } + .actor-2 { + ${e.actor2?`fill: ${e.actor2}`:``}; + } + .actor-3 { + ${e.actor3?`fill: ${e.actor3}`:``}; + } + .actor-4 { + ${e.actor4?`fill: ${e.actor4}`:``}; + } + .actor-5 { + ${e.actor5?`fill: ${e.actor5}`:``}; + } + ${f()} +`,`getStyles`),N=e(function(e,t){return p(e,t)},`drawRect`),P=e(function(t,r){let i=t.append(`circle`).attr(`cx`,r.cx).attr(`cy`,r.cy).attr(`class`,`face`).attr(`r`,15).attr(`stroke-width`,2).attr(`overflow`,`visible`),a=t.append(`g`);a.append(`circle`).attr(`cx`,r.cx-15/3).attr(`cy`,r.cy-15/3).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`),a.append(`circle`).attr(`cx`,r.cx+15/3).attr(`cy`,r.cy-15/3).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`);function o(e){let t=n().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,t).attr(`transform`,`translate(`+r.cx+`,`+(r.cy+2)+`)`)}e(o,`smile`);function s(e){let t=n().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,t).attr(`transform`,`translate(`+r.cx+`,`+(r.cy+7)+`)`)}e(s,`sad`);function c(e){e.append(`line`).attr(`class`,`mouth`).attr(`stroke`,2).attr(`x1`,r.cx-5).attr(`y1`,r.cy+7).attr(`x2`,r.cx+5).attr(`y2`,r.cy+7).attr(`class`,`mouth`).attr(`stroke-width`,`1px`).attr(`stroke`,`#666`)}return e(c,`ambivalent`),r.score>3?o(a):r.score<3?s(a):c(a),i},`drawFace`),F=e(function(e,t){let n=e.append(`circle`);return n.attr(`cx`,t.cx),n.attr(`cy`,t.cy),n.attr(`class`,`actor-`+t.pos),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`r`,t.r),n.class!==void 0&&n.attr(`class`,n.class),t.title!==void 0&&n.append(`title`).text(t.title),n},`drawCircle`),I=e(function(e,t){return h(e,t)},`drawText`),L=e(function(t,n){function r(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}e(r,`genPoints`);let i=t.append(`polygon`);i.attr(`points`,r(n.x,n.y,50,20,7)),i.attr(`class`,`labelBox`),n.y+=n.labelMargin,n.x+=.5*n.labelMargin,I(t,n)},`drawLabel`),R=e(function(e,t,n){let r=e.append(`g`),i=g();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=n.width*t.taskCount+n.diagramMarginX*(t.taskCount-1),i.height=n.height,i.class=`journey-section section-type-`+t.num,i.rx=3,i.ry=3,N(r,i),H(n)(t.text,r,i.x,i.y,i.width,i.height,{class:`journey-section section-type-`+t.num},n,t.colour)},`drawSection`),z=-1,B=e(function(e,t,n,r){let i=t.x+n.width/2,a=e.append(`g`);z++,a.append(`line`).attr(`id`,r+`-task`+z).attr(`x1`,i).attr(`y1`,t.y).attr(`x2`,i).attr(`y2`,450).attr(`class`,`task-line`).attr(`stroke-width`,`1px`).attr(`stroke-dasharray`,`4 2`).attr(`stroke`,`#666`),P(a,{cx:i,cy:300+(5-t.score)*30,score:t.score});let o=g();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=n.width,o.height=n.height,o.class=`task task-type-`+t.num,o.rx=3,o.ry=3,N(a,o);let s=t.x+14;t.people.forEach(e=>{let n=t.actors[e].color;F(a,{cx:s,cy:t.y,r:7,fill:n,stroke:`#000`,title:e,pos:t.actors[e].position}),s+=10}),H(n)(t.task,a,o.x,o.y,o.width,o.height,{class:`task`},n,t.colour)},`drawTask`),V=e(function(e,t){m(e,t)},`drawBackgroundRect`),H=(function(){function t(e,t,n,r,a,o,s,c){i(t.append(`text`).attr(`x`,n+a/2).attr(`y`,r+o/2+5).style(`font-color`,c).style(`text-anchor`,`middle`).text(e),s)}e(t,`byText`);function n(e,t,n,r,a,o,s,c,l){let{taskFontSize:u,taskFontFamily:d}=c,f=e.split(//gi);for(let e=0;e{let a=G[r].color,o={cx:20,cy:i,r:7,fill:a,stroke:`#000`,pos:G[r].position};U.drawCircle(e,o);let s=e.append(`text`).attr(`visibility`,`hidden`).text(r),c=s.node().getBoundingClientRect().width;s.remove();let l=[];if(c<=n)l=[r];else{let t=r.split(` `),i=``;s=e.append(`text`).attr(`visibility`,`hidden`),t.forEach(e=>{let t=i?`${i} ${e}`:e;if(s.text(t),s.node().getBoundingClientRect().width>n){if(i&&l.push(i),i=e,s.text(e),s.node().getBoundingClientRect().width>n){let t=``;for(let r of e)t+=r,s.text(t+`-`),s.node().getBoundingClientRect().width>n&&(l.push(t.slice(0,-1)+`-`),t=r);i=t}}else i=t}),i&&l.push(i),s.remove()}l.forEach((n,r)=>{let a={x:40,y:i+7+r*20,fill:`#666`,text:n,textMargin:t.boxTextMargin??5},o=U.drawText(e,a).node().getBoundingClientRect().width;o>K&&o>t.leftMargin-o&&(K=o)}),i+=Math.max(20,l.length*20)})}e(q,`drawActorLegend`);var J=r().journey,Y=0,ee=e(function(e,n,i,a){let o=r(),s=o.journey.titleColor,c=o.journey.titleFontSize,u=o.journey.titleFontFamily,d=o.securityLevel,f;d===`sandbox`&&(f=t(`#i`+n));let p=t(d===`sandbox`?f.nodes()[0].contentDocument.body:`body`);X.init();let m=p.select(`#`+n);U.initGraphics(m,n);let h=a.db.getTasks(),g=a.db.getDiagramTitle(),_=a.db.getActors();for(let e in G)delete G[e];let v=0;_.forEach(e=>{G[e]={color:J.actorColours[v%J.actorColours.length],position:v},v++}),q(m),Y=J.leftMargin+K,X.insert(0,0,Y,Object.keys(G).length*50),te(m,h,0,n);let y=X.getBounds();g&&m.append(`text`).text(g).attr(`x`,Y).attr(`font-size`,c).attr(`font-weight`,`bold`).attr(`y`,25).attr(`fill`,s).attr(`font-family`,u);let b=y.stopy-y.starty+2*J.diagramMarginY,x=Y+y.stopx+2*J.diagramMarginX;l(m,b,x,J.useMaxWidth),m.append(`line`).attr(`x1`,Y).attr(`y1`,J.height*4).attr(`x2`,x-Y-4).attr(`y2`,J.height*4).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#`+n+`-arrowhead)`);let S=g?70:0;m.attr(`viewBox`,`${y.startx} -25 ${x} ${b+S}`),m.attr(`preserveAspectRatio`,`xMinYMin meet`),m.attr(`height`,b+S+25)},`draw`),X={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:e(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},`init`),updateVal:e(function(e,t,n,r){e[t]===void 0?e[t]=n:e[t]=r(n,e[t])},`updateVal`),updateBounds:e(function(t,n,i,a){let o=r().journey,s=this,c=0;function l(r){return e(function(e){c++;let l=s.sequenceItems.length-c+1;s.updateVal(e,`starty`,n-l*o.boxMargin,Math.min),s.updateVal(e,`stopy`,a+l*o.boxMargin,Math.max),s.updateVal(X.data,`startx`,t-l*o.boxMargin,Math.min),s.updateVal(X.data,`stopx`,i+l*o.boxMargin,Math.max),r!==`activation`&&(s.updateVal(e,`startx`,t-l*o.boxMargin,Math.min),s.updateVal(e,`stopx`,i+l*o.boxMargin,Math.max),s.updateVal(X.data,`starty`,n-l*o.boxMargin,Math.min),s.updateVal(X.data,`stopy`,a+l*o.boxMargin,Math.max))},`updateItemBounds`)}e(l,`updateFn`),this.sequenceItems.forEach(l())},`updateBounds`),insert:e(function(e,t,n,r){let i=Math.min(e,n),a=Math.max(e,n),o=Math.min(t,r),s=Math.max(t,r);this.updateVal(X.data,`startx`,i,Math.min),this.updateVal(X.data,`starty`,o,Math.min),this.updateVal(X.data,`stopx`,a,Math.max),this.updateVal(X.data,`stopy`,s,Math.max),this.updateBounds(i,o,a,s)},`insert`),bumpVerticalPos:e(function(e){this.verticalPos+=e,this.data.stopy=this.verticalPos},`bumpVerticalPos`),getVerticalPos:e(function(){return this.verticalPos},`getVerticalPos`),getBounds:e(function(){return this.data},`getBounds`)},Z=J.sectionFills,Q=J.sectionColours,te=e(function(e,t,n,i){let a=r().journey,o=``,s=n+(a.height*2+a.diagramMarginY),c=0,l=`#CCC`,u=`black`,d=0;for(let[n,r]of t.entries()){if(o!==r.section){l=Z[c%Z.length],d=c%Z.length,u=Q[c%Q.length];let i=0,s=r.section;for(let e=n;e(G[t]&&(e[t]=G[t]),e),{});r.x=n*a.taskMargin+n*a.width+Y,r.y=s,r.width=a.diagramMarginX,r.height=a.diagramMarginY,r.colour=u,r.fill=l,r.num=d,r.actors=f,U.drawTask(e,r,a,i),X.insert(r.x,r.y,r.x+r.width+a.taskMargin,450)}},`drawTasks`),$={setConf:W,draw:ee},ne={parser:v,db:j,renderer:$,styles:M,init:e(e=>{$.setConf(e.journey),j.clear()},`init`)};export{ne as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/kanban-definition-ERDM4LRJ-BWJtwu8J.js b/docs/dist/assets/kanban-definition-ERDM4LRJ-BWJtwu8J.js new file mode 100644 index 00000000..86a81461 --- /dev/null +++ b/docs/dist/assets/kanban-definition-ERDM4LRJ-BWJtwu8J.js @@ -0,0 +1,89 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{T as t}from"./chunk-V7P66DNM-D246Sefn.js";import{C as n,G as r,N as i,P as a,d as o,et as s,m as c}from"./chunk-Q52JI7PB-BeSPinqD.js";import{t as l}from"./chunk-PUIB63ON-iBBh92CL.js";import{n as u,t as d}from"./chunk-PWCFYZI5-BQGIuzFC.js";import"./chunk-PLCLPJVV-rGjVDjLw.js";import"./chunk-GTILCTU2-D-9HFTK6.js";import"./chunk-7TFACZ55-BO7C1qvL.js";import"./chunk-BSZA5ISF-LqNHBHyp.js";import"./chunk-SZ5Y56Q4-Bki2Aicm.js";import"./chunk-YSJUE5HW-eH4JtoEG.js";import{a as f,c as p,i as m}from"./chunk-HQMLCRZ6-HgqAiHMi.js";import{t as h}from"./chunk-RTBOCTTP-BZPyT8j-.js";var g=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,31],h=[6,7,11,24],g=[1,6,13,16,17,20,23],_=[1,35],v=[1,36],y=[1,6,7,11,13,16,17,20,23],b=[1,38],x={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`KANBAN`,11:`EOF`,13:`SPACELIST`,16:`ICON`,17:`CLASS`,20:`NODE_DSTART`,21:`NODE_DESCR`,22:`NODE_DEND`,23:`NODE_ID`,24:`SHAPE_DATA`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s-1].id),r.addNode(a[s-2].length,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 16:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 17:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 18:case 23:r.decorateNode({class:a[s]});break;case 19:r.getLogger().trace(`SPACELIST`);break;case 20:r.getLogger().trace(`Node: `,a[s-1].id),r.addNode(0,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 21:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 22:r.decorateNode({icon:a[s]});break;case 27:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 28:this.$={id:a[s],descr:a[s],type:0};break;case 29:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 30:this.$=a[s-1]+a[s];break;case 31:this.$=a[s];break}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},t(l,[2,3]),{1:[2,2]},t(l,[2,4]),t(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:r,9:22,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:u,7:d,10:23,11:f},t(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:s,23:c}),t(p,[2,19]),t(p,[2,21],{15:30,24:m}),t(p,[2,22]),t(p,[2,23]),t(h,[2,25]),t(h,[2,26]),t(h,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:f},{1:[2,7],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},t(g,[2,14],{7:_,11:v}),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(p,[2,16],{15:37,24:m}),t(p,[2,17]),t(p,[2,18]),t(p,[2,20],{24:b}),t(h,[2,31]),{21:[1,39]},{22:[1,40]},t(g,[2,13],{7:_,11:v}),t(y,[2,11]),t(y,[2,12]),t(p,[2,15],{24:b}),t(h,[2,30]),{22:[1,41]},t(h,[2,27]),t(h,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};x.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e(function(e,t,n,r){switch(n){case 0:return this.pushState(`shapeData`),t.yytext=``,24;case 1:return this.pushState(`shapeDataStr`),24;case 2:return this.popState(),24;case 3:return t.yytext=t.yytext.replace(/\n\s*/g,`
    `),24;case 4:return 24;case 5:this.popState();break;case 6:return e.getLogger().trace(`Found comment`,t.yytext),6;case 7:return 8;case 8:this.begin(`CLASS`);break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:e.getLogger().trace(`Begin icon`),this.begin(`ICON`);break;case 12:return e.getLogger().trace(`SPACELINE`),6;case 13:return 7;case 14:return 16;case 15:e.getLogger().trace(`end icon`),this.popState();break;case 16:return e.getLogger().trace(`Exploding node`),this.begin(`NODE`),20;case 17:return e.getLogger().trace(`Cloud`),this.begin(`NODE`),20;case 18:return e.getLogger().trace(`Explosion Bang`),this.begin(`NODE`),20;case 19:return e.getLogger().trace(`Cloud Bang`),this.begin(`NODE`),20;case 20:return this.begin(`NODE`),20;case 21:return this.begin(`NODE`),20;case 22:return this.begin(`NODE`),20;case 23:return this.begin(`NODE`),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin(`NSTR2`);break;case 28:return`NODE_DESCR`;case 29:this.popState();break;case 30:e.getLogger().trace(`Starting NSTR`),this.begin(`NSTR`);break;case 31:return e.getLogger().trace(`description:`,t.yytext),`NODE_DESCR`;case 32:this.popState();break;case 33:return this.popState(),e.getLogger().trace(`node end ))`),`NODE_DEND`;case 34:return this.popState(),e.getLogger().trace(`node end )`),`NODE_DEND`;case 35:return this.popState(),e.getLogger().trace(`node end ...`,t.yytext),`NODE_DEND`;case 36:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 37:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 38:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 39:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 40:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 41:return e.getLogger().trace(`Long description:`,t.yytext),21;case 42:return e.getLogger().trace(`Long description:`,t.yytext),21}},`anonymous`),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}}})();function S(){this.yy={}}return e(S,`Parser`),S.prototype=x,x.Parser=S,new S})();g.parser=g;var _=g,v=[],y=[],b=0,x={},S=e(()=>{v=[],y=[],b=0,x={}},`clear`),C=e(e=>{if(v.length===0)return null;let t=v[0].level,n=null;for(let e=v.length-1;e>=0;e--)if(v[e].level===t&&!n&&(n=v[e]),v[e].levelt.parentId===e.id);for(let n of i){let i={id:n.id,parentId:e.id,label:r(n.label??``,a),labelType:`markdown`,isGroup:!1,ticket:n?.ticket,priority:n?.priority,assigned:n?.assigned,icon:n?.icon,shape:`kanbanItem`,level:n.level,rx:5,ry:5,cssStyles:[`text-align: left`]};t.push(i)}}return{nodes:t,edges:e,other:{},config:n()}},`getData`),E=e((e,t,i,a,o)=>{let s=n(),l=s.mindmap?.padding??c.mindmap.padding;switch(a){case D.ROUNDED_RECT:case D.RECT:case D.HEXAGON:l*=2}let f={id:r(t,s)||`kbn`+ b++,level:e,label:r(i,s),width:s.mindmap?.maxNodeWidth??c.mindmap.maxNodeWidth,padding:l,isGroup:!1};if(o!==void 0){let e;e=o.includes(` +`)?o+` +`:`{ +`+o+` +}`;let t=u(e,{schema:d});if(t.shape&&(t.shape!==t.shape.toLowerCase()||t.shape.includes(`_`)))throw Error(`No such shape: ${t.shape}. Shape names should be lowercase.`);t?.shape&&t.shape===`kanbanItem`&&(f.shape=t?.shape),t?.label&&(f.label=t?.label),t?.icon&&(f.icon=t?.icon.toString()),t?.assigned&&(f.assigned=t?.assigned.toString()),t?.ticket&&(f.ticket=t?.ticket.toString()),t?.priority&&(f.priority=t?.priority)}let p=C(e);p?f.parentId=p.id||`kbn`+ b++:y.push(f),v.push(f)},`addNode`),D={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},O={clear:S,addNode:E,getSections:w,getData:T,nodeType:D,getType:e((e,n)=>{switch(t.debug(`In get type`,e,n),e){case`[`:return D.RECT;case`(`:return n===`)`?D.ROUNDED_RECT:D.CLOUD;case`((`:return D.CIRCLE;case`)`:return D.CLOUD;case`))`:return D.BANG;case`{{`:return D.HEXAGON;default:return D.DEFAULT}},`getType`),setElementForId:e((e,t)=>{x[e]=t},`setElementForId`),decorateNode:e(e=>{if(!e)return;let t=n(),i=v[v.length-1];e.icon&&(i.icon=r(e.icon,t)),e.class&&(i.cssClasses=r(e.class,t))},`decorateNode`),type2Str:e(e=>{switch(e){case D.DEFAULT:return`no-border`;case D.RECT:return`rect`;case D.ROUNDED_RECT:return`rounded-rect`;case D.CIRCLE:return`circle`;case D.CLOUD:return`cloud`;case D.BANG:return`bang`;case D.HEXAGON:return`hexgon`;default:return`no-border`}},`type2Str`),getLogger:e(()=>t,`getLogger`),getElementById:e(e=>x[e],`getElementById`)},k={draw:e(async(e,r,i,a)=>{t.debug(`Rendering kanban diagram +`+e);let o=a.db.getData(),u=n();u.htmlLabels=!1;let d=l(r);for(let e of o.nodes)e.domId=`${r}-${e.id}`;let h=d.append(`g`);h.attr(`class`,`sections`);let g=d.append(`g`);g.attr(`class`,`items`);let _=o.nodes.filter(e=>e.isGroup),v=0,y=[],b=25;for(let e of _){let t=u?.kanban?.sectionWidth||200;v+=1,e.x=t*v+(v-1)*10/2,e.width=t,e.y=0,e.height=t*3,e.rx=5,e.ry=5,e.cssClasses=e.cssClasses+` section-`+v;let n=await m(h,e);b=Math.max(b,n?.labelBBox?.height),y.push(n)}let x=0;for(let e of _){let t=y[x];x+=1;let n=u?.kanban?.sectionWidth||200,r=-n*3/2+b,i=r,a=o.nodes.filter(t=>t.parentId===e.id);for(let t of a){if(t.isGroup)throw Error(`Groups within groups are not allowed in Kanban diagrams`);t.x=e.x,t.width=n-1.5*10;let r=(await f(g,t,{config:u})).node().getBBox();t.y=i+r.height/2,await p(t),i=t.y+r.height/2+10/2}let s=t.cluster.select(`rect`),c=Math.max(i-r+30,50)+(b-25);s.attr(`height`,c)}s(void 0,d,u.mindmap?.padding??c.kanban.padding,u.mindmap?.useMaxWidth??c.kanban.useMaxWidth)},`draw`)},A=e(t=>{let n=``;for(let e=0;et.darkMode?o(e,n):a(e,n),`adjuster`);for(let e=0;e` + .edge { + stroke-width: 3; + } + ${A(e)} + .section-root rect, .section-root path, .section-root circle, .section-root polygon { + fill: ${e.git0}; + } + .section-root text { + fill: ${e.gitBranchLabel0}; + } + .icon-container { + height:100%; + display: flex; + justify-content: center; + align-items: center; + } + .edge { + fill: none; + } + .cluster-label, .label { + color: ${e.textColor}; + fill: ${e.textColor}; + } + .kanban-label { + dy: 1em; + alignment-baseline: middle; + text-anchor: middle; + dominant-baseline: middle; + text-align: center; + } + ${h()} +`,`getStyles`)};export{j as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/katex-4FWWIGR4-CA3qCh6U.js b/docs/dist/assets/katex-4FWWIGR4-CA3qCh6U.js new file mode 100644 index 00000000..28a49221 --- /dev/null +++ b/docs/dist/assets/katex-4FWWIGR4-CA3qCh6U.js @@ -0,0 +1,261 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";var t=class t{static{e(this,`SourceLocation`)}constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(e,n){return n?!e||!e.loc||!n.loc||e.loc.lexer!==n.loc.lexer?null:new t(e.loc.lexer,e.loc.start,n.loc.end):e&&e.loc}},n=class n{static{e(this,`Token`)}constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,r){return new n(r,t.range(this,e))}},r=class t{static{e(this,`ParseError`)}constructor(e,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r=`KaTeX parse error: `+e,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15":`>`,"<":`<`,'"':`"`,"'":`'`},c=/[&><"']/g;function l(e){return String(e).replace(c,e=>s[e])}e(l,`escape`);var u=e(function e(t){return t.type===`ordgroup`||t.type===`color`?t.body.length===1?e(t.body[0]):t:t.type===`font`?e(t.body):t},`getBaseElem`),d=e(function(e){var t=u(e);return t.type===`mathord`||t.type===`textord`||t.type===`atom`},`isCharacterBox`),f=e(function(e){if(!e)throw Error(`Expected non-null, but got `+String(e));return e},`assert`),p={deflt:i,escape:l,hyphenate:o,getBaseElem:u,isCharacterBox:d,protocolFromUrl:e(function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},`protocolFromUrl`)},m={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format `},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color `,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e(e=>`#`+e,`cliProcessor`)},macros:{type:`object`,cli:`-m, --macro `,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:e((e,t)=>(t.push(e),t),`cliProcessor`)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e(e=>Math.max(0,e),`processor`),cli:`--min-rule-thickness `,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e(e=>Math.max(0,e),`processor`),cli:`-s, --max-size `,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e(e=>Math.max(0,e),`processor`),cli:`-e, --max-expand `,cliProcessor:e(e=>e===`Infinity`?1/0:parseInt(e),`cliProcessor`)},globalGroup:{type:`boolean`,cli:!1}};function h(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!=`string`)return n.enum[0];switch(n){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{}}}e(h,`getDefaultValue`);var g=class{static{e(this,`Settings`)}constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={},m)if(m.hasOwnProperty(t)){var n=m[t];this[t]=e[t]===void 0?h(n):n.processor?n.processor(e[t]):e[t]}}reportNonstrict(e,t,n){var i=this.strict;if(typeof i==`function`&&(i=i(e,t,n)),!(!i||i===`ignore`)){if(i===!0||i===`error`)throw new r(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);i===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+i+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(e.url&&!e.protocol){var t=p.protocolFromUrl(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},_=class{static{e(this,`Style`)}constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return E[ee[this.id]]}sub(){return E[te[this.id]]}fracNum(){return E[ne[this.id]]}fracDen(){return E[re[this.id]]}cramp(){return E[ie[this.id]]}text(){return E[ae[this.id]]}isTight(){return this.size>=2}},v=0,y=1,b=2,x=3,S=4,C=5,w=6,T=7,E=[new _(v,0,!1),new _(y,0,!0),new _(b,1,!1),new _(x,1,!0),new _(S,2,!1),new _(C,2,!0),new _(w,3,!1),new _(T,3,!0)],ee=[S,C,S,C,w,T,w,T],te=[C,C,C,C,T,T,T,T],ne=[b,x,S,C,w,T,w,T],re=[x,x,C,C,T,T,T,T],ie=[y,y,x,x,C,C,T,T],ae=[v,y,b,x,b,x,b,x],D={DISPLAY:E[v],TEXT:E[b],SCRIPT:E[S],SCRIPTSCRIPT:E[w]},oe=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function se(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}e(se,`scriptFromCodepoint`);var ce=[];oe.forEach(e=>e.blocks.forEach(e=>ce.push(...e)));function le(e){for(var t=0;t=ce[t]&&e<=ce[t+1])return!0;return!1}e(le,`supportedCodepoint`);var ue=80,de=e(function(e,t){return`M95,`+(622+e+t)+` +c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 +c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 +c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 +s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 +c69,-144,104.5,-217.7,106.5,-221 +l`+e/2.075+` -`+e+` +c5.3,-9.3,12,-14,20,-14 +H400000v`+(40+e)+`H845.2724 +s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 +c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z +M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},`sqrtMain`),fe=e(function(e,t){return`M263,`+(601+e+t)+`c0.7,0,18,39.7,52,119 +c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 +c340,-704.7,510.7,-1060.3,512,-1067 +l`+e/2.084+` -`+e+` +c4.7,-7.3,11,-11,19,-11 +H40000v`+(40+e)+`H1012.3 +s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 +c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 +s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 +c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z +M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},`sqrtSize1`),pe=e(function(e,t){return`M983 `+(10+e+t)+` +l`+e/3.13+` -`+e+` +c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+` +H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 +s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 +c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 +c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 +c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 +c53.7,-170.3,84.5,-266.8,92.5,-289.5z +M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},`sqrtSize2`),me=e(function(e,t){return`M424,`+(2398+e+t)+` +c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 +c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 +s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 +s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 +l`+e/4.223+` -`+e+`c4,-6.7,10,-10,18,-10 H400000 +v`+(40+e)+`H1014.6 +s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 +c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+` `+t+` +h400000v`+(40+e)+`h-400000z`},`sqrtSize3`),he=e(function(e,t){return`M473,`+(2713+e+t)+` +c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+` -`+e+` +c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7 +s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 +c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 +s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, +606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},`sqrtSize4`),ge=e(function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},`phasePath`),_e=e(function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+` +H742v`+r+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 +h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 +c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 +219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},`sqrtTall`),ve=e(function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=de(t,ue);break;case`sqrtSize1`:r=fe(t,ue);break;case`sqrtSize2`:r=pe(t,ue);break;case`sqrtSize3`:r=me(t,ue);break;case`sqrtSize4`:r=he(t,ue);break;case`sqrtTall`:r=_e(t,ue,n)}return r},`sqrtPath`),ye=e(function(e,t){switch(e){case`⎜`:return`M291 0 H417 V`+t+` H291z M291 0 H417 V`+t+` H291z`;case`∣`:return`M145 0 H188 V`+t+` H145z M145 0 H188 V`+t+` H145z`;case`∥`:return`M145 0 H188 V`+t+` H145z M145 0 H188 V`+t+` H145z`+(`M367 0 H410 V`+t+` H367z M367 0 H410 V`+t+` H367z`);case`⎟`:return`M457 0 H583 V`+t+` H457z M457 0 H583 V`+t+` H457z`;case`⎢`:return`M319 0 H403 V`+t+` H319z M319 0 H403 V`+t+` H319z`;case`⎥`:return`M263 0 H347 V`+t+` H263z M263 0 H347 V`+t+` H263z`;case`⎪`:return`M384 0 H504 V`+t+` H384z M384 0 H504 V`+t+` H384z`;case`⏐`:return`M312 0 H355 V`+t+` H312z M312 0 H355 V`+t+` H312z`;case`‖`:return`M257 0 H300 V`+t+` H257z M257 0 H300 V`+t+` H257z`+(`M478 0 H521 V`+t+` H478z M478 0 H521 V`+t+` H478z`);default:return``}},`innerPath`),be={doubleleftarrow:`M262 157 +l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 + 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 + 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 +c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 + 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 +-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 +-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z +m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l +-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 + 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 +-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 +-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 +-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 +c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 +-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 + 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 +-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 +c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 + 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 + 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 + l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 +-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 + 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 + 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 + 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 +-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 +H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 + 435 0h399565z`,leftgroupunder:`M400000 262 +H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 + 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 +-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 +-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 +-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 + 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 +-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 +-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z +m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 + 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 + 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 +-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 + 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 +-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 +v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 +-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 +-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 + 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z +M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z +M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 +-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 +c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 + 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z +M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 +c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 +-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 + 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 + 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 +c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 + 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 + 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 +-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 +-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z +m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 +60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 +-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z +m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 +c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 +-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z +m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 +85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 +-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z +m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 +c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 +-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 + 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 + 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 +-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 + 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l +-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 +s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 +c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 + 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 +-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 + 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 + 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 +-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 +-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 + 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 +-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 + 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z +m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 + 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 +-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 +-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 + 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 + 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 +-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z +m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 + 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 +-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 + 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z +M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 + 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 +-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 +-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 + 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 +-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 +-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 +-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 + 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 +c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 + 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 + 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 +-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 + 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 +-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 + 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 + 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 +-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 +-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 + 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 +c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 + 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 +-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 + 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 + 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 + -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 +-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 + 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 + 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 + -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 +3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 +10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 +-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 +-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 +H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 +c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 +c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, +-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 +c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 +c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 +s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 +121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 +s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 +c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z +M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 +-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 +13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 +-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 +-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 +151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 +c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 +c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 +c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z +M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, +1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, +-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z +M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},xe=e(function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 h347 v-84 +H403z M403 1759 V0 H319 V1759 v`+t+` v1759 h84z`;case`rbrack`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v1759 H0 v84 H347z +M347 1759 V0 H263 V1759 v`+t+` v1759 h84z`;case`vert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z`;case`doublevert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z +M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+` v585 h43z`;case`lfloor`:return`M319 602 V0 H403 V602 v`+t+` v1715 h263 v84 H319z +MM319 602 V0 H403 V602 v`+t+` v1715 H319z`;case`rfloor`:return`M319 602 V0 H403 V602 v`+t+` v1799 H0 v-84 H319z +MM319 602 V0 H403 V602 v`+t+` v1715 H319z`;case`lceil`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v602 h84z +M403 1759 V0 H319 V1759 v`+t+` v602 h84z`;case`rceil`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v602 h84z +M347 1759 V0 h-84 V1759 v`+t+` v602 h84z`;case`lparen`:return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 +c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, +-36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, +949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 +c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, +-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 +l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, +-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case`rparen`:return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, +63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 +c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+` +c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 +c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 +c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 +c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 +l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}},`tallDelim`),Se=class{static{e(this,`DocumentFragment`)}constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;te.toText(),`toText`);return this.children.map(t).join(``)}},Ce={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},we={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Te={Å:`A`,Ð:`D`,Þ:`o`,å:`a`,ð:`d`,þ:`o`,А:`A`,Б:`B`,В:`B`,Г:`F`,Д:`A`,Е:`E`,Ж:`K`,З:`3`,И:`N`,Й:`N`,К:`K`,Л:`N`,М:`M`,Н:`H`,О:`O`,П:`N`,Р:`P`,С:`C`,Т:`T`,У:`y`,Ф:`O`,Х:`X`,Ц:`U`,Ч:`h`,Ш:`W`,Щ:`W`,Ъ:`B`,Ы:`X`,Ь:`B`,Э:`3`,Ю:`X`,Я:`R`,а:`a`,б:`b`,в:`a`,г:`r`,д:`y`,е:`e`,ж:`m`,з:`e`,и:`n`,й:`n`,к:`n`,л:`n`,м:`m`,н:`n`,о:`o`,п:`n`,р:`p`,с:`c`,т:`o`,у:`y`,ф:`b`,х:`x`,ц:`n`,ч:`n`,ш:`w`,щ:`w`,ъ:`a`,ы:`m`,ь:`a`,э:`e`,ю:`m`,я:`r`};function Ee(e,t){Ce[e]=t}e(Ee,`setFontMetrics`);function De(e,t,n){if(!Ce[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=Ce[t][r];if(!i&&e[0]in Te&&(r=Te[e[0]].charCodeAt(0),i=Ce[t][r]),!i&&n===`text`&&le(r)&&(i=Ce[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}e(De,`getCharacterMetrics`);var Oe={};function ke(e){var t=e>=5?0:e>=3?1:2;if(!Oe[t]){var n=Oe[t]={cssEmPerMu:we.quad[t]/18};for(var r in we)we.hasOwnProperty(r)&&(n[r]=we[r][t])}return Oe[t]}e(ke,`getGlobalMetrics`);var Ae=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],je=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Me=e(function(e,t){return t.size<2?e:Ae[e-1][t.size-1]},`sizeAtStyle`),Ne=class t{static{e(this,`Options`)}constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||t.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||``,this.fontFamily=e.fontFamily||``,this.fontWeight=e.fontWeight||``,this.fontShape=e.fontShape||``,this.sizeMultiplier=je[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return new t(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Me(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:je[e-1]})}havingBaseStyle(e){e||=this.style.text();var n=Me(t.BASESIZE,e);return this.size===n&&this.textSize===t.BASESIZE&&this.style===e?this:this.extend({style:e,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:``})}withTextFontWeight(e){return this.extend({fontWeight:e,font:``})}withTextFontShape(e){return this.extend({fontShape:e,font:``})}sizingClasses(e){return e.size===this.size?[]:[`sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===t.BASESIZE?[]:[`sizing`,`reset-size`+this.size,`size`+t.BASESIZE]}fontMetrics(){return this._fontMetrics||=ke(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}};Ne.BASESIZE=6;var Pe={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Fe={ex:!0,em:!0,mu:!0},Ie=e(function(e){return typeof e!=`string`&&(e=e.unit),e in Pe||e in Fe||e===`ex`},`validUnit`),O=e(function(e,t){var n;if(e.unit in Pe)n=Pe[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var i=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=i.fontMetrics().xHeight;else if(e.unit===`em`)n=i.fontMetrics().quad;else throw new r(`Invalid unit: '`+e.unit+`'`);i!==t&&(n*=i.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},`calculateSize`),k=e(function(e){return+e.toFixed(4)+`em`},`makeEm`),Le=e(function(e){return e.filter(e=>e).join(` `)},`createClass`),Re=e(function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},`initNode`),ze=e(function(e){var t=document.createElement(e);for(var n in t.className=Le(this.classes),this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);for(var r in this.attributes)this.attributes.hasOwnProperty(r)&&t.setAttribute(r,this.attributes[r]);for(var i=0;i/=\x00-\x1f]/,Ve=e(function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+p.escape(Le(this.classes))+`"`);var n=``;for(var i in this.style)this.style.hasOwnProperty(i)&&(n+=p.hyphenate(i)+`:`+this.style[i]+`;`);for(var a in n&&(t+=` style="`+p.escape(n)+`"`),this.attributes)if(this.attributes.hasOwnProperty(a)){if(Be.test(a))throw new r(`Invalid attribute name '`+a+`'`);t+=` `+a+`="`+p.escape(this.attributes[a])+`"`}t+=`>`;for(var o=0;o`,t},`toMarkup`),He=class{static{e(this,`Span`)}constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Re.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return ze.call(this,`span`)}toMarkup(){return Ve.call(this,`span`)}},Ue=class{static{e(this,`Anchor`)}constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Re.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return ze.call(this,`a`)}toMarkup(){return Ve.call(this,`a`)}},We=class{static{e(this,`Img`)}constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=[`mord`],this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement(`img`);for(var t in e.src=this.src,e.alt=this.alt,e.className=`mord`,this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e=``+p.escape(this.alt)+``,e}},Ge={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},Ke=class{static{e(this,`SymbolNode`)}constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var c=se(this.text.charCodeAt(0));c&&this.classes.push(c+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=Ge[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;for(var n in this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=k(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=Le(this.classes)),this.style)this.style.hasOwnProperty(n)&&(t||=document.createElement(`span`),t.style[n]=this.style[n]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`0&&(n+=`margin-right:`+this.italic+`em;`),this.style)this.style.hasOwnProperty(r)&&(n+=p.hyphenate(r)+`:`+this.style[r]+`;`);n&&(e=!0,t+=` style="`+p.escape(n)+`"`);var i=p.escape(this.text);return e?(t+=`>`,t+=i,t+=``,t):i}},qe=class{static{e(this,`SvgNode`)}constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n`;for(var n=0;n`,e}},Je=class{static{e(this,`PathNode`)}constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,be[this.pathName]),e}toMarkup(){return this.alternate?``:``}},Ye=class{static{e(this,`LineNode`)}constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=``,e}};function Xe(e){if(e instanceof Ke)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}e(Xe,`assertSymbolDomNode`);function Ze(e){if(e instanceof He)return e;throw Error(`Expected span but got `+String(e)+`.`)}e(Ze,`assertSpan`);var Qe={bin:1,close:1,inner:1,open:1,punct:1,rel:1},$e={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},A={math:{},text:{}};function j(e,t,n,r,i,a){A[e][i]={font:t,group:n,replace:r},a&&r&&(A[e][r]=A[e][i])}e(j,`defineSymbol`);var M=`math`,N=`text`,P=`main`,F=`ams`,I=`accent-token`,L=`bin`,et=`close`,tt=`inner`,R=`mathord`,z=`op-token`,nt=`open`,rt=`punct`,B=`rel`,it=`spacing`,V=`textord`;j(M,P,B,`≡`,`\\equiv`,!0),j(M,P,B,`≺`,`\\prec`,!0),j(M,P,B,`≻`,`\\succ`,!0),j(M,P,B,`∼`,`\\sim`,!0),j(M,P,B,`⊥`,`\\perp`),j(M,P,B,`⪯`,`\\preceq`,!0),j(M,P,B,`⪰`,`\\succeq`,!0),j(M,P,B,`≃`,`\\simeq`,!0),j(M,P,B,`∣`,`\\mid`,!0),j(M,P,B,`≪`,`\\ll`,!0),j(M,P,B,`≫`,`\\gg`,!0),j(M,P,B,`≍`,`\\asymp`,!0),j(M,P,B,`∥`,`\\parallel`),j(M,P,B,`⋈`,`\\bowtie`,!0),j(M,P,B,`⌣`,`\\smile`,!0),j(M,P,B,`⊑`,`\\sqsubseteq`,!0),j(M,P,B,`⊒`,`\\sqsupseteq`,!0),j(M,P,B,`≐`,`\\doteq`,!0),j(M,P,B,`⌢`,`\\frown`,!0),j(M,P,B,`∋`,`\\ni`,!0),j(M,P,B,`∝`,`\\propto`,!0),j(M,P,B,`⊢`,`\\vdash`,!0),j(M,P,B,`⊣`,`\\dashv`,!0),j(M,P,B,`∋`,`\\owns`),j(M,P,rt,`.`,`\\ldotp`),j(M,P,rt,`⋅`,`\\cdotp`),j(M,P,V,`#`,`\\#`),j(N,P,V,`#`,`\\#`),j(M,P,V,`&`,`\\&`),j(N,P,V,`&`,`\\&`),j(M,P,V,`ℵ`,`\\aleph`,!0),j(M,P,V,`∀`,`\\forall`,!0),j(M,P,V,`ℏ`,`\\hbar`,!0),j(M,P,V,`∃`,`\\exists`,!0),j(M,P,V,`∇`,`\\nabla`,!0),j(M,P,V,`♭`,`\\flat`,!0),j(M,P,V,`ℓ`,`\\ell`,!0),j(M,P,V,`♮`,`\\natural`,!0),j(M,P,V,`♣`,`\\clubsuit`,!0),j(M,P,V,`℘`,`\\wp`,!0),j(M,P,V,`♯`,`\\sharp`,!0),j(M,P,V,`♢`,`\\diamondsuit`,!0),j(M,P,V,`ℜ`,`\\Re`,!0),j(M,P,V,`♡`,`\\heartsuit`,!0),j(M,P,V,`ℑ`,`\\Im`,!0),j(M,P,V,`♠`,`\\spadesuit`,!0),j(M,P,V,`§`,`\\S`,!0),j(N,P,V,`§`,`\\S`),j(M,P,V,`¶`,`\\P`,!0),j(N,P,V,`¶`,`\\P`),j(M,P,V,`†`,`\\dag`),j(N,P,V,`†`,`\\dag`),j(N,P,V,`†`,`\\textdagger`),j(M,P,V,`‡`,`\\ddag`),j(N,P,V,`‡`,`\\ddag`),j(N,P,V,`‡`,`\\textdaggerdbl`),j(M,P,et,`⎱`,`\\rmoustache`,!0),j(M,P,nt,`⎰`,`\\lmoustache`,!0),j(M,P,et,`⟯`,`\\rgroup`,!0),j(M,P,nt,`⟮`,`\\lgroup`,!0),j(M,P,L,`∓`,`\\mp`,!0),j(M,P,L,`⊖`,`\\ominus`,!0),j(M,P,L,`⊎`,`\\uplus`,!0),j(M,P,L,`⊓`,`\\sqcap`,!0),j(M,P,L,`∗`,`\\ast`),j(M,P,L,`⊔`,`\\sqcup`,!0),j(M,P,L,`◯`,`\\bigcirc`,!0),j(M,P,L,`∙`,`\\bullet`,!0),j(M,P,L,`‡`,`\\ddagger`),j(M,P,L,`≀`,`\\wr`,!0),j(M,P,L,`⨿`,`\\amalg`),j(M,P,L,`&`,`\\And`),j(M,P,B,`⟵`,`\\longleftarrow`,!0),j(M,P,B,`⇐`,`\\Leftarrow`,!0),j(M,P,B,`⟸`,`\\Longleftarrow`,!0),j(M,P,B,`⟶`,`\\longrightarrow`,!0),j(M,P,B,`⇒`,`\\Rightarrow`,!0),j(M,P,B,`⟹`,`\\Longrightarrow`,!0),j(M,P,B,`↔`,`\\leftrightarrow`,!0),j(M,P,B,`⟷`,`\\longleftrightarrow`,!0),j(M,P,B,`⇔`,`\\Leftrightarrow`,!0),j(M,P,B,`⟺`,`\\Longleftrightarrow`,!0),j(M,P,B,`↦`,`\\mapsto`,!0),j(M,P,B,`⟼`,`\\longmapsto`,!0),j(M,P,B,`↗`,`\\nearrow`,!0),j(M,P,B,`↩`,`\\hookleftarrow`,!0),j(M,P,B,`↪`,`\\hookrightarrow`,!0),j(M,P,B,`↘`,`\\searrow`,!0),j(M,P,B,`↼`,`\\leftharpoonup`,!0),j(M,P,B,`⇀`,`\\rightharpoonup`,!0),j(M,P,B,`↙`,`\\swarrow`,!0),j(M,P,B,`↽`,`\\leftharpoondown`,!0),j(M,P,B,`⇁`,`\\rightharpoondown`,!0),j(M,P,B,`↖`,`\\nwarrow`,!0),j(M,P,B,`⇌`,`\\rightleftharpoons`,!0),j(M,F,B,`≮`,`\\nless`,!0),j(M,F,B,``,`\\@nleqslant`),j(M,F,B,``,`\\@nleqq`),j(M,F,B,`⪇`,`\\lneq`,!0),j(M,F,B,`≨`,`\\lneqq`,!0),j(M,F,B,``,`\\@lvertneqq`),j(M,F,B,`⋦`,`\\lnsim`,!0),j(M,F,B,`⪉`,`\\lnapprox`,!0),j(M,F,B,`⊀`,`\\nprec`,!0),j(M,F,B,`⋠`,`\\npreceq`,!0),j(M,F,B,`⋨`,`\\precnsim`,!0),j(M,F,B,`⪹`,`\\precnapprox`,!0),j(M,F,B,`≁`,`\\nsim`,!0),j(M,F,B,``,`\\@nshortmid`),j(M,F,B,`∤`,`\\nmid`,!0),j(M,F,B,`⊬`,`\\nvdash`,!0),j(M,F,B,`⊭`,`\\nvDash`,!0),j(M,F,B,`⋪`,`\\ntriangleleft`),j(M,F,B,`⋬`,`\\ntrianglelefteq`,!0),j(M,F,B,`⊊`,`\\subsetneq`,!0),j(M,F,B,``,`\\@varsubsetneq`),j(M,F,B,`⫋`,`\\subsetneqq`,!0),j(M,F,B,``,`\\@varsubsetneqq`),j(M,F,B,`≯`,`\\ngtr`,!0),j(M,F,B,``,`\\@ngeqslant`),j(M,F,B,``,`\\@ngeqq`),j(M,F,B,`⪈`,`\\gneq`,!0),j(M,F,B,`≩`,`\\gneqq`,!0),j(M,F,B,``,`\\@gvertneqq`),j(M,F,B,`⋧`,`\\gnsim`,!0),j(M,F,B,`⪊`,`\\gnapprox`,!0),j(M,F,B,`⊁`,`\\nsucc`,!0),j(M,F,B,`⋡`,`\\nsucceq`,!0),j(M,F,B,`⋩`,`\\succnsim`,!0),j(M,F,B,`⪺`,`\\succnapprox`,!0),j(M,F,B,`≆`,`\\ncong`,!0),j(M,F,B,``,`\\@nshortparallel`),j(M,F,B,`∦`,`\\nparallel`,!0),j(M,F,B,`⊯`,`\\nVDash`,!0),j(M,F,B,`⋫`,`\\ntriangleright`),j(M,F,B,`⋭`,`\\ntrianglerighteq`,!0),j(M,F,B,``,`\\@nsupseteqq`),j(M,F,B,`⊋`,`\\supsetneq`,!0),j(M,F,B,``,`\\@varsupsetneq`),j(M,F,B,`⫌`,`\\supsetneqq`,!0),j(M,F,B,``,`\\@varsupsetneqq`),j(M,F,B,`⊮`,`\\nVdash`,!0),j(M,F,B,`⪵`,`\\precneqq`,!0),j(M,F,B,`⪶`,`\\succneqq`,!0),j(M,F,B,``,`\\@nsubseteqq`),j(M,F,L,`⊴`,`\\unlhd`),j(M,F,L,`⊵`,`\\unrhd`),j(M,F,B,`↚`,`\\nleftarrow`,!0),j(M,F,B,`↛`,`\\nrightarrow`,!0),j(M,F,B,`⇍`,`\\nLeftarrow`,!0),j(M,F,B,`⇏`,`\\nRightarrow`,!0),j(M,F,B,`↮`,`\\nleftrightarrow`,!0),j(M,F,B,`⇎`,`\\nLeftrightarrow`,!0),j(M,F,B,`△`,`\\vartriangle`),j(M,F,V,`ℏ`,`\\hslash`),j(M,F,V,`▽`,`\\triangledown`),j(M,F,V,`◊`,`\\lozenge`),j(M,F,V,`Ⓢ`,`\\circledS`),j(M,F,V,`®`,`\\circledR`),j(N,F,V,`®`,`\\circledR`),j(M,F,V,`∡`,`\\measuredangle`,!0),j(M,F,V,`∄`,`\\nexists`),j(M,F,V,`℧`,`\\mho`),j(M,F,V,`Ⅎ`,`\\Finv`,!0),j(M,F,V,`⅁`,`\\Game`,!0),j(M,F,V,`‵`,`\\backprime`),j(M,F,V,`▲`,`\\blacktriangle`),j(M,F,V,`▼`,`\\blacktriangledown`),j(M,F,V,`■`,`\\blacksquare`),j(M,F,V,`⧫`,`\\blacklozenge`),j(M,F,V,`★`,`\\bigstar`),j(M,F,V,`∢`,`\\sphericalangle`,!0),j(M,F,V,`∁`,`\\complement`,!0),j(M,F,V,`ð`,`\\eth`,!0),j(N,P,V,`ð`,`ð`),j(M,F,V,`╱`,`\\diagup`),j(M,F,V,`╲`,`\\diagdown`),j(M,F,V,`□`,`\\square`),j(M,F,V,`□`,`\\Box`),j(M,F,V,`◊`,`\\Diamond`),j(M,F,V,`¥`,`\\yen`,!0),j(N,F,V,`¥`,`\\yen`,!0),j(M,F,V,`✓`,`\\checkmark`,!0),j(N,F,V,`✓`,`\\checkmark`),j(M,F,V,`ℶ`,`\\beth`,!0),j(M,F,V,`ℸ`,`\\daleth`,!0),j(M,F,V,`ℷ`,`\\gimel`,!0),j(M,F,V,`ϝ`,`\\digamma`,!0),j(M,F,V,`ϰ`,`\\varkappa`),j(M,F,nt,`┌`,`\\@ulcorner`,!0),j(M,F,et,`┐`,`\\@urcorner`,!0),j(M,F,nt,`└`,`\\@llcorner`,!0),j(M,F,et,`┘`,`\\@lrcorner`,!0),j(M,F,B,`≦`,`\\leqq`,!0),j(M,F,B,`⩽`,`\\leqslant`,!0),j(M,F,B,`⪕`,`\\eqslantless`,!0),j(M,F,B,`≲`,`\\lesssim`,!0),j(M,F,B,`⪅`,`\\lessapprox`,!0),j(M,F,B,`≊`,`\\approxeq`,!0),j(M,F,L,`⋖`,`\\lessdot`),j(M,F,B,`⋘`,`\\lll`,!0),j(M,F,B,`≶`,`\\lessgtr`,!0),j(M,F,B,`⋚`,`\\lesseqgtr`,!0),j(M,F,B,`⪋`,`\\lesseqqgtr`,!0),j(M,F,B,`≑`,`\\doteqdot`),j(M,F,B,`≓`,`\\risingdotseq`,!0),j(M,F,B,`≒`,`\\fallingdotseq`,!0),j(M,F,B,`∽`,`\\backsim`,!0),j(M,F,B,`⋍`,`\\backsimeq`,!0),j(M,F,B,`⫅`,`\\subseteqq`,!0),j(M,F,B,`⋐`,`\\Subset`,!0),j(M,F,B,`⊏`,`\\sqsubset`,!0),j(M,F,B,`≼`,`\\preccurlyeq`,!0),j(M,F,B,`⋞`,`\\curlyeqprec`,!0),j(M,F,B,`≾`,`\\precsim`,!0),j(M,F,B,`⪷`,`\\precapprox`,!0),j(M,F,B,`⊲`,`\\vartriangleleft`),j(M,F,B,`⊴`,`\\trianglelefteq`),j(M,F,B,`⊨`,`\\vDash`,!0),j(M,F,B,`⊪`,`\\Vvdash`,!0),j(M,F,B,`⌣`,`\\smallsmile`),j(M,F,B,`⌢`,`\\smallfrown`),j(M,F,B,`≏`,`\\bumpeq`,!0),j(M,F,B,`≎`,`\\Bumpeq`,!0),j(M,F,B,`≧`,`\\geqq`,!0),j(M,F,B,`⩾`,`\\geqslant`,!0),j(M,F,B,`⪖`,`\\eqslantgtr`,!0),j(M,F,B,`≳`,`\\gtrsim`,!0),j(M,F,B,`⪆`,`\\gtrapprox`,!0),j(M,F,L,`⋗`,`\\gtrdot`),j(M,F,B,`⋙`,`\\ggg`,!0),j(M,F,B,`≷`,`\\gtrless`,!0),j(M,F,B,`⋛`,`\\gtreqless`,!0),j(M,F,B,`⪌`,`\\gtreqqless`,!0),j(M,F,B,`≖`,`\\eqcirc`,!0),j(M,F,B,`≗`,`\\circeq`,!0),j(M,F,B,`≜`,`\\triangleq`,!0),j(M,F,B,`∼`,`\\thicksim`),j(M,F,B,`≈`,`\\thickapprox`),j(M,F,B,`⫆`,`\\supseteqq`,!0),j(M,F,B,`⋑`,`\\Supset`,!0),j(M,F,B,`⊐`,`\\sqsupset`,!0),j(M,F,B,`≽`,`\\succcurlyeq`,!0),j(M,F,B,`⋟`,`\\curlyeqsucc`,!0),j(M,F,B,`≿`,`\\succsim`,!0),j(M,F,B,`⪸`,`\\succapprox`,!0),j(M,F,B,`⊳`,`\\vartriangleright`),j(M,F,B,`⊵`,`\\trianglerighteq`),j(M,F,B,`⊩`,`\\Vdash`,!0),j(M,F,B,`∣`,`\\shortmid`),j(M,F,B,`∥`,`\\shortparallel`),j(M,F,B,`≬`,`\\between`,!0),j(M,F,B,`⋔`,`\\pitchfork`,!0),j(M,F,B,`∝`,`\\varpropto`),j(M,F,B,`◀`,`\\blacktriangleleft`),j(M,F,B,`∴`,`\\therefore`,!0),j(M,F,B,`∍`,`\\backepsilon`),j(M,F,B,`▶`,`\\blacktriangleright`),j(M,F,B,`∵`,`\\because`,!0),j(M,F,B,`⋘`,`\\llless`),j(M,F,B,`⋙`,`\\gggtr`),j(M,F,L,`⊲`,`\\lhd`),j(M,F,L,`⊳`,`\\rhd`),j(M,F,B,`≂`,`\\eqsim`,!0),j(M,P,B,`⋈`,`\\Join`),j(M,F,B,`≑`,`\\Doteq`,!0),j(M,F,L,`∔`,`\\dotplus`,!0),j(M,F,L,`∖`,`\\smallsetminus`),j(M,F,L,`⋒`,`\\Cap`,!0),j(M,F,L,`⋓`,`\\Cup`,!0),j(M,F,L,`⩞`,`\\doublebarwedge`,!0),j(M,F,L,`⊟`,`\\boxminus`,!0),j(M,F,L,`⊞`,`\\boxplus`,!0),j(M,F,L,`⋇`,`\\divideontimes`,!0),j(M,F,L,`⋉`,`\\ltimes`,!0),j(M,F,L,`⋊`,`\\rtimes`,!0),j(M,F,L,`⋋`,`\\leftthreetimes`,!0),j(M,F,L,`⋌`,`\\rightthreetimes`,!0),j(M,F,L,`⋏`,`\\curlywedge`,!0),j(M,F,L,`⋎`,`\\curlyvee`,!0),j(M,F,L,`⊝`,`\\circleddash`,!0),j(M,F,L,`⊛`,`\\circledast`,!0),j(M,F,L,`⋅`,`\\centerdot`),j(M,F,L,`⊺`,`\\intercal`,!0),j(M,F,L,`⋒`,`\\doublecap`),j(M,F,L,`⋓`,`\\doublecup`),j(M,F,L,`⊠`,`\\boxtimes`,!0),j(M,F,B,`⇢`,`\\dashrightarrow`,!0),j(M,F,B,`⇠`,`\\dashleftarrow`,!0),j(M,F,B,`⇇`,`\\leftleftarrows`,!0),j(M,F,B,`⇆`,`\\leftrightarrows`,!0),j(M,F,B,`⇚`,`\\Lleftarrow`,!0),j(M,F,B,`↞`,`\\twoheadleftarrow`,!0),j(M,F,B,`↢`,`\\leftarrowtail`,!0),j(M,F,B,`↫`,`\\looparrowleft`,!0),j(M,F,B,`⇋`,`\\leftrightharpoons`,!0),j(M,F,B,`↶`,`\\curvearrowleft`,!0),j(M,F,B,`↺`,`\\circlearrowleft`,!0),j(M,F,B,`↰`,`\\Lsh`,!0),j(M,F,B,`⇈`,`\\upuparrows`,!0),j(M,F,B,`↿`,`\\upharpoonleft`,!0),j(M,F,B,`⇃`,`\\downharpoonleft`,!0),j(M,P,B,`⊶`,`\\origof`,!0),j(M,P,B,`⊷`,`\\imageof`,!0),j(M,F,B,`⊸`,`\\multimap`,!0),j(M,F,B,`↭`,`\\leftrightsquigarrow`,!0),j(M,F,B,`⇉`,`\\rightrightarrows`,!0),j(M,F,B,`⇄`,`\\rightleftarrows`,!0),j(M,F,B,`↠`,`\\twoheadrightarrow`,!0),j(M,F,B,`↣`,`\\rightarrowtail`,!0),j(M,F,B,`↬`,`\\looparrowright`,!0),j(M,F,B,`↷`,`\\curvearrowright`,!0),j(M,F,B,`↻`,`\\circlearrowright`,!0),j(M,F,B,`↱`,`\\Rsh`,!0),j(M,F,B,`⇊`,`\\downdownarrows`,!0),j(M,F,B,`↾`,`\\upharpoonright`,!0),j(M,F,B,`⇂`,`\\downharpoonright`,!0),j(M,F,B,`⇝`,`\\rightsquigarrow`,!0),j(M,F,B,`⇝`,`\\leadsto`),j(M,F,B,`⇛`,`\\Rrightarrow`,!0),j(M,F,B,`↾`,`\\restriction`),j(M,P,V,`‘`,"`"),j(M,P,V,`$`,`\\$`),j(N,P,V,`$`,`\\$`),j(N,P,V,`$`,`\\textdollar`),j(M,P,V,`%`,`\\%`),j(N,P,V,`%`,`\\%`),j(M,P,V,`_`,`\\_`),j(N,P,V,`_`,`\\_`),j(N,P,V,`_`,`\\textunderscore`),j(M,P,V,`∠`,`\\angle`,!0),j(M,P,V,`∞`,`\\infty`,!0),j(M,P,V,`′`,`\\prime`),j(M,P,V,`△`,`\\triangle`),j(M,P,V,`Γ`,`\\Gamma`,!0),j(M,P,V,`Δ`,`\\Delta`,!0),j(M,P,V,`Θ`,`\\Theta`,!0),j(M,P,V,`Λ`,`\\Lambda`,!0),j(M,P,V,`Ξ`,`\\Xi`,!0),j(M,P,V,`Π`,`\\Pi`,!0),j(M,P,V,`Σ`,`\\Sigma`,!0),j(M,P,V,`Υ`,`\\Upsilon`,!0),j(M,P,V,`Φ`,`\\Phi`,!0),j(M,P,V,`Ψ`,`\\Psi`,!0),j(M,P,V,`Ω`,`\\Omega`,!0),j(M,P,V,`A`,`Α`),j(M,P,V,`B`,`Β`),j(M,P,V,`E`,`Ε`),j(M,P,V,`Z`,`Ζ`),j(M,P,V,`H`,`Η`),j(M,P,V,`I`,`Ι`),j(M,P,V,`K`,`Κ`),j(M,P,V,`M`,`Μ`),j(M,P,V,`N`,`Ν`),j(M,P,V,`O`,`Ο`),j(M,P,V,`P`,`Ρ`),j(M,P,V,`T`,`Τ`),j(M,P,V,`X`,`Χ`),j(M,P,V,`¬`,`\\neg`,!0),j(M,P,V,`¬`,`\\lnot`),j(M,P,V,`⊤`,`\\top`),j(M,P,V,`⊥`,`\\bot`),j(M,P,V,`∅`,`\\emptyset`),j(M,F,V,`∅`,`\\varnothing`),j(M,P,R,`α`,`\\alpha`,!0),j(M,P,R,`β`,`\\beta`,!0),j(M,P,R,`γ`,`\\gamma`,!0),j(M,P,R,`δ`,`\\delta`,!0),j(M,P,R,`ϵ`,`\\epsilon`,!0),j(M,P,R,`ζ`,`\\zeta`,!0),j(M,P,R,`η`,`\\eta`,!0),j(M,P,R,`θ`,`\\theta`,!0),j(M,P,R,`ι`,`\\iota`,!0),j(M,P,R,`κ`,`\\kappa`,!0),j(M,P,R,`λ`,`\\lambda`,!0),j(M,P,R,`μ`,`\\mu`,!0),j(M,P,R,`ν`,`\\nu`,!0),j(M,P,R,`ξ`,`\\xi`,!0),j(M,P,R,`ο`,`\\omicron`,!0),j(M,P,R,`π`,`\\pi`,!0),j(M,P,R,`ρ`,`\\rho`,!0),j(M,P,R,`σ`,`\\sigma`,!0),j(M,P,R,`τ`,`\\tau`,!0),j(M,P,R,`υ`,`\\upsilon`,!0),j(M,P,R,`ϕ`,`\\phi`,!0),j(M,P,R,`χ`,`\\chi`,!0),j(M,P,R,`ψ`,`\\psi`,!0),j(M,P,R,`ω`,`\\omega`,!0),j(M,P,R,`ε`,`\\varepsilon`,!0),j(M,P,R,`ϑ`,`\\vartheta`,!0),j(M,P,R,`ϖ`,`\\varpi`,!0),j(M,P,R,`ϱ`,`\\varrho`,!0),j(M,P,R,`ς`,`\\varsigma`,!0),j(M,P,R,`φ`,`\\varphi`,!0),j(M,P,L,`∗`,`*`,!0),j(M,P,L,`+`,`+`),j(M,P,L,`−`,`-`,!0),j(M,P,L,`⋅`,`\\cdot`,!0),j(M,P,L,`∘`,`\\circ`,!0),j(M,P,L,`÷`,`\\div`,!0),j(M,P,L,`±`,`\\pm`,!0),j(M,P,L,`×`,`\\times`,!0),j(M,P,L,`∩`,`\\cap`,!0),j(M,P,L,`∪`,`\\cup`,!0),j(M,P,L,`∖`,`\\setminus`,!0),j(M,P,L,`∧`,`\\land`),j(M,P,L,`∨`,`\\lor`),j(M,P,L,`∧`,`\\wedge`,!0),j(M,P,L,`∨`,`\\vee`,!0),j(M,P,V,`√`,`\\surd`),j(M,P,nt,`⟨`,`\\langle`,!0),j(M,P,nt,`∣`,`\\lvert`),j(M,P,nt,`∥`,`\\lVert`),j(M,P,et,`?`,`?`),j(M,P,et,`!`,`!`),j(M,P,et,`⟩`,`\\rangle`,!0),j(M,P,et,`∣`,`\\rvert`),j(M,P,et,`∥`,`\\rVert`),j(M,P,B,`=`,`=`),j(M,P,B,`:`,`:`),j(M,P,B,`≈`,`\\approx`,!0),j(M,P,B,`≅`,`\\cong`,!0),j(M,P,B,`≥`,`\\ge`),j(M,P,B,`≥`,`\\geq`,!0),j(M,P,B,`←`,`\\gets`),j(M,P,B,`>`,`\\gt`,!0),j(M,P,B,`∈`,`\\in`,!0),j(M,P,B,``,`\\@not`),j(M,P,B,`⊂`,`\\subset`,!0),j(M,P,B,`⊃`,`\\supset`,!0),j(M,P,B,`⊆`,`\\subseteq`,!0),j(M,P,B,`⊇`,`\\supseteq`,!0),j(M,F,B,`⊈`,`\\nsubseteq`,!0),j(M,F,B,`⊉`,`\\nsupseteq`,!0),j(M,P,B,`⊨`,`\\models`),j(M,P,B,`←`,`\\leftarrow`,!0),j(M,P,B,`≤`,`\\le`),j(M,P,B,`≤`,`\\leq`,!0),j(M,P,B,`<`,`\\lt`,!0),j(M,P,B,`→`,`\\rightarrow`,!0),j(M,P,B,`→`,`\\to`),j(M,F,B,`≱`,`\\ngeq`,!0),j(M,F,B,`≰`,`\\nleq`,!0),j(M,P,it,`\xA0`,`\\ `),j(M,P,it,`\xA0`,`\\space`),j(M,P,it,`\xA0`,`\\nobreakspace`),j(N,P,it,`\xA0`,`\\ `),j(N,P,it,`\xA0`,` `),j(N,P,it,`\xA0`,`\\space`),j(N,P,it,`\xA0`,`\\nobreakspace`),j(M,P,it,null,`\\nobreak`),j(M,P,it,null,`\\allowbreak`),j(M,P,rt,`,`,`,`),j(M,P,rt,`;`,`;`),j(M,F,L,`⊼`,`\\barwedge`,!0),j(M,F,L,`⊻`,`\\veebar`,!0),j(M,P,L,`⊙`,`\\odot`,!0),j(M,P,L,`⊕`,`\\oplus`,!0),j(M,P,L,`⊗`,`\\otimes`,!0),j(M,P,V,`∂`,`\\partial`,!0),j(M,P,L,`⊘`,`\\oslash`,!0),j(M,F,L,`⊚`,`\\circledcirc`,!0),j(M,F,L,`⊡`,`\\boxdot`,!0),j(M,P,L,`△`,`\\bigtriangleup`),j(M,P,L,`▽`,`\\bigtriangledown`),j(M,P,L,`†`,`\\dagger`),j(M,P,L,`⋄`,`\\diamond`),j(M,P,L,`⋆`,`\\star`),j(M,P,L,`◃`,`\\triangleleft`),j(M,P,L,`▹`,`\\triangleright`),j(M,P,nt,`{`,`\\{`),j(N,P,V,`{`,`\\{`),j(N,P,V,`{`,`\\textbraceleft`),j(M,P,et,`}`,`\\}`),j(N,P,V,`}`,`\\}`),j(N,P,V,`}`,`\\textbraceright`),j(M,P,nt,`{`,`\\lbrace`),j(M,P,et,`}`,`\\rbrace`),j(M,P,nt,`[`,`\\lbrack`,!0),j(N,P,V,`[`,`\\lbrack`,!0),j(M,P,et,`]`,`\\rbrack`,!0),j(N,P,V,`]`,`\\rbrack`,!0),j(M,P,nt,`(`,`\\lparen`,!0),j(M,P,et,`)`,`\\rparen`,!0),j(N,P,V,`<`,`\\textless`,!0),j(N,P,V,`>`,`\\textgreater`,!0),j(M,P,nt,`⌊`,`\\lfloor`,!0),j(M,P,et,`⌋`,`\\rfloor`,!0),j(M,P,nt,`⌈`,`\\lceil`,!0),j(M,P,et,`⌉`,`\\rceil`,!0),j(M,P,V,`\\`,`\\backslash`),j(M,P,V,`∣`,`|`),j(M,P,V,`∣`,`\\vert`),j(N,P,V,`|`,`\\textbar`,!0),j(M,P,V,`∥`,`\\|`),j(M,P,V,`∥`,`\\Vert`),j(N,P,V,`∥`,`\\textbardbl`),j(N,P,V,`~`,`\\textasciitilde`),j(N,P,V,`\\`,`\\textbackslash`),j(N,P,V,`^`,`\\textasciicircum`),j(M,P,B,`↑`,`\\uparrow`,!0),j(M,P,B,`⇑`,`\\Uparrow`,!0),j(M,P,B,`↓`,`\\downarrow`,!0),j(M,P,B,`⇓`,`\\Downarrow`,!0),j(M,P,B,`↕`,`\\updownarrow`,!0),j(M,P,B,`⇕`,`\\Updownarrow`,!0),j(M,P,z,`∐`,`\\coprod`),j(M,P,z,`⋁`,`\\bigvee`),j(M,P,z,`⋀`,`\\bigwedge`),j(M,P,z,`⨄`,`\\biguplus`),j(M,P,z,`⋂`,`\\bigcap`),j(M,P,z,`⋃`,`\\bigcup`),j(M,P,z,`∫`,`\\int`),j(M,P,z,`∫`,`\\intop`),j(M,P,z,`∬`,`\\iint`),j(M,P,z,`∭`,`\\iiint`),j(M,P,z,`∏`,`\\prod`),j(M,P,z,`∑`,`\\sum`),j(M,P,z,`⨂`,`\\bigotimes`),j(M,P,z,`⨁`,`\\bigoplus`),j(M,P,z,`⨀`,`\\bigodot`),j(M,P,z,`∮`,`\\oint`),j(M,P,z,`∯`,`\\oiint`),j(M,P,z,`∰`,`\\oiiint`),j(M,P,z,`⨆`,`\\bigsqcup`),j(M,P,z,`∫`,`\\smallint`),j(N,P,tt,`…`,`\\textellipsis`),j(M,P,tt,`…`,`\\mathellipsis`),j(N,P,tt,`…`,`\\ldots`,!0),j(M,P,tt,`…`,`\\ldots`,!0),j(M,P,tt,`⋯`,`\\@cdots`,!0),j(M,P,tt,`⋱`,`\\ddots`,!0),j(M,P,V,`⋮`,`\\varvdots`),j(N,P,V,`⋮`,`\\varvdots`),j(M,P,I,`ˊ`,`\\acute`),j(M,P,I,`ˋ`,`\\grave`),j(M,P,I,`¨`,`\\ddot`),j(M,P,I,`~`,`\\tilde`),j(M,P,I,`ˉ`,`\\bar`),j(M,P,I,`˘`,`\\breve`),j(M,P,I,`ˇ`,`\\check`),j(M,P,I,`^`,`\\hat`),j(M,P,I,`⃗`,`\\vec`),j(M,P,I,`˙`,`\\dot`),j(M,P,I,`˚`,`\\mathring`),j(M,P,R,``,`\\@imath`),j(M,P,R,``,`\\@jmath`),j(M,P,V,`ı`,`ı`),j(M,P,V,`ȷ`,`ȷ`),j(N,P,V,`ı`,`\\i`,!0),j(N,P,V,`ȷ`,`\\j`,!0),j(N,P,V,`ß`,`\\ss`,!0),j(N,P,V,`æ`,`\\ae`,!0),j(N,P,V,`œ`,`\\oe`,!0),j(N,P,V,`ø`,`\\o`,!0),j(N,P,V,`Æ`,`\\AE`,!0),j(N,P,V,`Œ`,`\\OE`,!0),j(N,P,V,`Ø`,`\\O`,!0),j(N,P,I,`ˊ`,`\\'`),j(N,P,I,`ˋ`,"\\`"),j(N,P,I,`ˆ`,`\\^`),j(N,P,I,`˜`,`\\~`),j(N,P,I,`ˉ`,`\\=`),j(N,P,I,`˘`,`\\u`),j(N,P,I,`˙`,`\\.`),j(N,P,I,`¸`,`\\c`),j(N,P,I,`˚`,`\\r`),j(N,P,I,`ˇ`,`\\v`),j(N,P,I,`¨`,`\\"`),j(N,P,I,`˝`,`\\H`),j(N,P,I,`◯`,`\\textcircled`);var at={"--":!0,"---":!0,"``":!0,"''":!0};j(N,P,V,`–`,`--`,!0),j(N,P,V,`–`,`\\textendash`),j(N,P,V,`—`,`---`,!0),j(N,P,V,`—`,`\\textemdash`),j(N,P,V,`‘`,"`",!0),j(N,P,V,`‘`,`\\textquoteleft`),j(N,P,V,`’`,`'`,!0),j(N,P,V,`’`,`\\textquoteright`),j(N,P,V,`“`,"``",!0),j(N,P,V,`“`,`\\textquotedblleft`),j(N,P,V,`”`,`''`,!0),j(N,P,V,`”`,`\\textquotedblright`),j(M,P,V,`°`,`\\degree`,!0),j(N,P,V,`°`,`\\degree`),j(N,P,V,`°`,`\\textdegree`,!0),j(M,P,V,`£`,`\\pounds`),j(M,P,V,`£`,`\\mathsterling`,!0),j(N,P,V,`£`,`\\pounds`),j(N,P,V,`£`,`\\textsterling`,!0),j(M,F,V,`✠`,`\\maltese`),j(N,F,V,`✠`,`\\maltese`);var ot=`0123456789/@."`;for(ct=0;ct0)return Tt(i,c,r,t,a.concat(l));if(s){var u,d;if(s===`boldsymbol`){var f=Dt(i,r,t,a,n);u=f.fontName,d=[f.fontClass]}else o?(u=Ht[s].fontName,d=[s]):(u=Vt(s,t.fontWeight,t.fontShape),d=[s,t.fontWeight,t.fontShape]);if(wt(i,u,r).metrics)return Tt(i,u,r,t,a.concat(d));if(at.hasOwnProperty(i)&&u.slice(0,10)===`Typewriter`){for(var p=[],m=0;m{if(Le(e.classes)!==Le(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},`canCombine`),At=e(e=>{for(var t=0;tt&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},`sizeElementFromChildren`),Mt=e(function(e,t,n,r){var i=new He(e,t,n,r);return jt(i),i},`makeSpan`),Nt=e((e,t,n,r)=>new He(e,t,n,r),`makeSvgSpan`),Pt=e(function(e,t,n){var r=Mt([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=k(r.height),r.maxFontSize=1,r},`makeLineSpan`),Ft=e(function(e,t,n,r){var i=new Ue(e,t,n,r);return jt(i),i},`makeAnchor`),It=e(function(e){var t=new Se(e);return jt(t),t},`makeFragment`),Lt=e(function(e,t){return e instanceof Se?Mt([],[e],t):e},`wrapFragment`),Rt=e(function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a{var n=Mt([`mspace`],[],t),r=O(e,t);return n.style.marginRight=k(r),n},`makeGlue`),Vt=e(function(e,t,n){var r=``;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}var i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:t===`textit`?`Italic`:`Regular`;return r+`-`+i},`retrieveTextFontName`),Ht={mathbf:{variant:`bold`,fontName:`Main-Bold`},mathrm:{variant:`normal`,fontName:`Main-Regular`},textit:{variant:`italic`,fontName:`Main-Italic`},mathit:{variant:`italic`,fontName:`Main-Italic`},mathnormal:{variant:`italic`,fontName:`Math-Italic`},mathsfit:{variant:`sans-serif-italic`,fontName:`SansSerif-Italic`},mathbb:{variant:`double-struck`,fontName:`AMS-Regular`},mathcal:{variant:`script`,fontName:`Caligraphic-Regular`},mathfrak:{variant:`fraktur`,fontName:`Fraktur-Regular`},mathscr:{variant:`script`,fontName:`Script-Regular`},mathsf:{variant:`sans-serif`,fontName:`SansSerif-Regular`},mathtt:{variant:`monospace`,fontName:`Typewriter-Regular`}},Ut={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},W={fontMap:Ht,makeSymbol:Tt,mathsym:Et,makeSpan:Mt,makeSvgSpan:Nt,makeLineSpan:Pt,makeAnchor:Ft,makeFragment:It,wrapFragment:Lt,makeVList:zt,makeOrd:Ot,makeGlue:Bt,staticSvg:e(function(e,t){var[n,r,i]=Ut[e],a=Nt([`overlay`],[new qe([new Je(n)],{width:k(r),height:k(i),style:`width:`+k(r),viewBox:`0 0 `+1e3*r+` `+1e3*i,preserveAspectRatio:`xMinYMin`})],t);return a.height=i,a.style.height=k(i),a.style.width=k(r),a},`staticSvg`),svgData:Ut,tryCombineChars:At},G={number:3,unit:`mu`},Wt={number:4,unit:`mu`},Gt={number:5,unit:`mu`},Kt={mord:{mop:G,mbin:Wt,mrel:Gt,minner:G},mop:{mord:G,mop:G,mrel:Gt,minner:G},mbin:{mord:Wt,mop:Wt,mopen:Wt,minner:Wt},mrel:{mord:Gt,mop:Gt,mopen:Gt,minner:Gt},mopen:{},mclose:{mop:G,mbin:Wt,mrel:Gt,minner:G},mpunct:{mord:G,mop:G,mrel:Gt,mopen:G,mclose:G,mpunct:G,minner:G},minner:{mord:G,mop:G,mbin:Wt,mrel:Gt,mopen:G,mpunct:G,minner:G}},qt={mord:{mop:G},mop:{mord:G,mop:G},mbin:{},mrel:{},mopen:{},mclose:{mop:G},mpunct:{},minner:{mop:G}},Jt={},Yt={},Xt={};function K(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},c=0;c{var n=t.classes[0],r=e.classes[0];n===`mbin`&&tn.includes(r)?t.classes[0]=`mord`:r===`mbin`&&en.includes(n)&&(e.classes[0]=`mord`)},{node:u},d,f),an(i,(e,t)=>{var n=cn(t),r=cn(e),i=n&&r?e.hasClass(`mtight`)?qt[n][r]:Kt[n][r]:null;if(i)return W.makeGlue(i,c)},{node:u},d,f),i},`buildExpression`),an=e(function e(t,n,r,i,a){i&&t.push(i);for(var o=0;on=>{t.splice(e+1,0,n),o++})(o)}i&&t.pop()},`traverseNonSpaceNodes`),on=e(function(e){return e instanceof Se||e instanceof Ue||e instanceof He&&e.hasClass(`enclosing`)?e:null},`checkPartialGroup`),sn=e(function e(t,n){var r=on(t);if(r){var i=r.children;if(i.length){if(n===`right`)return e(i[i.length-1],`right`);if(n===`left`)return e(i[0],`left`)}}return t},`getOutermostNode`),cn=e(function(e,t){return e?(t&&(e=sn(e,t)),rn[e.classes[0]]||null):null},`getTypeOfDomTree`),ln=e(function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return $t(t.concat(n))},`makeNullDelimiter`),Y=e(function(e,t,n){if(!e)return $t();if(Yt[e.type]){var i=Yt[e.type](e,t);if(n&&t.size!==n.size){i=$t(t.sizingClasses(n),[i],t);var a=t.sizeMultiplier/n.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new r(`Got group of unknown type: '`+e.type+`'`)},`buildGroup`);function un(e,t){var n=$t([`base`],e,t),r=$t([`strut`]);return r.style.height=k(n.height+n.depth),n.depth&&(r.style.verticalAlign=k(-n.depth)),n.children.unshift(r),n}e(un,`buildHTMLUnbreakable`);function dn(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=J(e,t,`root`),i;r.length===2&&r[1].hasClass(`tag`)&&(i=r.pop());for(var a=[],o=[],s=0;s0&&(a.push(un(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(un(o,t));var l;n?(l=un(J(n,t,!0)),l.classes=[`tag`],a.push(l)):i&&a.push(i);var u=$t([`katex-html`],a);if(u.setAttribute(`aria-hidden`,`true`),l){var d=l.children[0];d.style.height=k(u.height+u.depth),u.depth&&(d.style.verticalAlign=k(-u.depth))}return u}e(dn,`buildHTML`);function fn(e){return new Se(e)}e(fn,`newDocumentFragment`);var pn=class{static{e(this,`MathNode`)}constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=Le(this.classes));for(var n=0;n0&&(e+=` class ="`+p.escape(Le(this.classes))+`"`),e+=`>`;for(var n=0;n`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},mn=class{static{e(this,`TextNode`)}constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return p.escape(this.toText())}toText(){return this.text}},X={MathNode:pn,TextNode:mn,SpaceNode:class{static{e(this,`SpaceNode`)}constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=` `:e>=.1666&&e<=.1667?this.character=` `:e>=.2222&&e<=.2223?this.character=` `:e>=.2777&&e<=.2778?this.character=`  `:e>=-.05556&&e<=-.05555?this.character=` ⁣`:e>=-.1667&&e<=-.1666?this.character=` ⁣`:e>=-.2223&&e<=-.2222?this.character=` ⁣`:e>=-.2778&&e<=-.2777?this.character=` ⁣`:this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,k(this.width)),e}toMarkup(){return this.character?``+this.character+``:``}toText(){return this.character?this.character:` `}},newDocumentFragment:fn},hn=e(function(e,t,n){return A[t][e]&&A[t][e].replace&&e.charCodeAt(0)!==55349&&!(at.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)===`tt`||n.font&&n.font.slice(4,6)===`tt`))&&(e=A[t][e].replace),new X.TextNode(e)},`makeText`),gn=e(function(e){return e.length===1?e[0]:new X.MathNode(`mrow`,e)},`makeRow`),_n=e(function(e,t){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`;var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode;if(n===`mathit`)return`italic`;if(n===`boldsymbol`)return e.type===`textord`?`bold`:`bold-italic`;if(n===`mathbf`)return`bold`;if(n===`mathbb`)return`double-struck`;if(n===`mathsfit`)return`sans-serif-italic`;if(n===`mathfrak`)return`fraktur`;if(n===`mathscr`||n===`mathcal`)return`script`;if(n===`mathsf`)return`sans-serif`;if(n===`mathtt`)return`monospace`;var i=e.text;if([`\\imath`,`\\jmath`].includes(i))return null;A[r][i]&&A[r][i].replace&&(i=A[r][i].replace);var a=W.fontMap[n].fontName;return De(i,a,r)?W.fontMap[n].variant:null},`getVariant`);function vn(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof mn&&t.text===`.`}else if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof mn&&n.text===`,`}else return!1}e(vn,`isNumberPunctuation`);var yn=e(function(e,t,n){if(e.length===1){var r=Z(e[0],t);return n&&r instanceof pn&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o=1&&(a.type===`mn`||vn(a))){var c=s.children[0];c instanceof pn&&c.type===`mn`&&(c.children=[...a.children,...c.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var l=a.children[0];if(l instanceof mn&&l.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var u=s.children[0];u instanceof mn&&u.text.length>0&&(u.text=u.text.slice(0,1)+`̸`+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},`buildExpression`),bn=e(function(e,t,n){return gn(yn(e,t,n))},`buildExpressionRow`),Z=e(function(e,t){if(!e)return new X.MathNode(`mrow`);if(Xt[e.type])return Xt[e.type](e,t);throw new r(`Got group of unknown type: '`+e.type+`'`)},`buildGroup`);function xn(e,t,n,r,i){var a=yn(e,n),o=a.length===1&&a[0]instanceof pn&&[`mrow`,`mtable`].includes(a[0].type)?a[0]:new X.MathNode(`mrow`,a),s=new X.MathNode(`annotation`,[new X.TextNode(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new X.MathNode(`semantics`,[o,s]),l=new X.MathNode(`math`,[c]);l.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&l.setAttribute(`display`,`block`);var u=i?`katex`:`katex-mathml`;return W.makeSpan([u],[l])}e(xn,`buildMathML`);var Sn=e(function(e){return new Ne({style:e.displayMode?D.DISPLAY:D.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},`optionsFromSettings`),Cn=e(function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=W.makeSpan(n,[e])}return e},`displayWrap`),wn=e(function(e,t,n){var r=Sn(n),i;if(n.output===`mathml`)return xn(e,t,r,n.displayMode,!0);if(n.output===`html`){var a=dn(e,r);i=W.makeSpan([`katex`],[a])}else{var o=xn(e,t,r,n.displayMode,!1),s=dn(e,r);i=W.makeSpan([`katex`],[o,s])}return Cn(i,n)},`buildTree`),Tn=e(function(e,t,n){var r=dn(e,Sn(n));return Cn(W.makeSpan([`katex`],[r]),n)},`buildHTMLTree`),En={widehat:`^`,widecheck:`ˇ`,widetilde:`~`,utilde:`~`,overleftarrow:`←`,underleftarrow:`←`,xleftarrow:`←`,overrightarrow:`→`,underrightarrow:`→`,xrightarrow:`→`,underbrace:`⏟`,overbrace:`⏞`,overgroup:`⏠`,undergroup:`⏡`,overleftrightarrow:`↔`,underleftrightarrow:`↔`,xleftrightarrow:`↔`,Overrightarrow:`⇒`,xRightarrow:`⇒`,overleftharpoon:`↼`,xleftharpoonup:`↼`,overrightharpoon:`⇀`,xrightharpoonup:`⇀`,xLeftarrow:`⇐`,xLeftrightarrow:`⇔`,xhookleftarrow:`↩`,xhookrightarrow:`↪`,xmapsto:`↦`,xrightharpoondown:`⇁`,xleftharpoondown:`↽`,xrightleftharpoons:`⇌`,xleftrightharpoons:`⇋`,xtwoheadleftarrow:`↞`,xtwoheadrightarrow:`↠`,xlongequal:`=`,xtofrom:`⇄`,xrightleftarrows:`⇄`,xrightequilibrium:`⇌`,xleftequilibrium:`⇋`,"\\cdrightarrow":`→`,"\\cdleftarrow":`←`,"\\cdlongequal":`=`},Dn=e(function(e){var t=new X.MathNode(`mo`,[new X.TextNode(En[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},`mathMLnode`),On={overrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],overleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],underrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],underleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],xrightarrow:[[`rightarrow`],1.469,522,`xMaxYMin`],"\\cdrightarrow":[[`rightarrow`],3,522,`xMaxYMin`],xleftarrow:[[`leftarrow`],1.469,522,`xMinYMin`],"\\cdleftarrow":[[`leftarrow`],3,522,`xMinYMin`],Overrightarrow:[[`doublerightarrow`],.888,560,`xMaxYMin`],xRightarrow:[[`doublerightarrow`],1.526,560,`xMaxYMin`],xLeftarrow:[[`doubleleftarrow`],1.526,560,`xMinYMin`],overleftharpoon:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoonup:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoondown:[[`leftharpoondown`],.888,522,`xMinYMin`],overrightharpoon:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoonup:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoondown:[[`rightharpoondown`],.888,522,`xMaxYMin`],xlongequal:[[`longequal`],.888,334,`xMinYMin`],"\\cdlongequal":[[`longequal`],3,334,`xMinYMin`],xtwoheadleftarrow:[[`twoheadleftarrow`],.888,334,`xMinYMin`],xtwoheadrightarrow:[[`twoheadrightarrow`],.888,334,`xMaxYMin`],overleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],overbrace:[[`leftbrace`,`midbrace`,`rightbrace`],1.6,548],underbrace:[[`leftbraceunder`,`midbraceunder`,`rightbraceunder`],1.6,548],underleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],xleftrightarrow:[[`leftarrow`,`rightarrow`],1.75,522],xLeftrightarrow:[[`doubleleftarrow`,`doublerightarrow`],1.75,560],xrightleftharpoons:[[`leftharpoondownplus`,`rightharpoonplus`],1.75,716],xleftrightharpoons:[[`leftharpoonplus`,`rightharpoondownplus`],1.75,716],xhookleftarrow:[[`leftarrow`,`righthook`],1.08,522],xhookrightarrow:[[`lefthook`,`rightarrow`],1.08,522],overlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],underlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],overgroup:[[`leftgroup`,`rightgroup`],.888,342],undergroup:[[`leftgroupunder`,`rightgroupunder`],.888,342],xmapsto:[[`leftmapsto`,`rightarrow`],1.5,522],xtofrom:[[`leftToFrom`,`rightToFrom`],1.75,528],xrightleftarrows:[[`baraboveleftarrow`,`rightarrowabovebar`],1.75,901],xrightequilibrium:[[`baraboveshortleftharpoon`,`rightharpoonaboveshortbar`],1.75,716],xleftequilibrium:[[`shortbaraboveleftharpoon`,`shortrightharpoonabovebar`],1.75,716]},kn=e(function(e){return e.type===`ordgroup`?e.body.length:1},`groupLength`),An={encloseSpan:e(function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=W.makeSpan([`stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var c=[];/^[bx]cancel$/.test(t)&&c.push(new Ye({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&c.push(new Ye({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`}));var l=new qe(c,{width:`100%`,height:k(o)});a=W.makeSvgSpan([],[l],i)}return a.height=o,a.style.height=k(o),a},`encloseSpan`),mathMLnode:Dn,svgSpan:e(function(t,n){function r(){var e=4e5,r=t.label.slice(1);if([`widehat`,`widecheck`,`widetilde`,`utilde`].includes(r)){var i=kn(t.base),a,o,s;if(i>5)r===`widehat`||r===`widecheck`?(a=420,e=2364,s=.42,o=r+`4`):(a=312,e=2340,s=.34,o=`tilde4`);else{var c=[1,1,2,2,3,3][i];r===`widehat`||r===`widecheck`?(e=[0,1062,2364,2364,2364][c],a=[0,239,300,360,420][c],s=[0,.24,.3,.3,.36,.42][c],o=r+c):(e=[0,600,1033,2339,2340][c],a=[0,260,286,306,312][c],s=[0,.26,.286,.3,.306,.34][c],o=`tilde`+c)}var l=new qe([new Je(o)],{width:`100%`,height:k(s),viewBox:`0 0 `+e+` `+a,preserveAspectRatio:`none`});return{span:W.makeSvgSpan([],[l],n),minWidth:0,height:s}}else{var u=[],d=On[r],[f,p,m]=d,h=m/1e3,g=f.length,_,v;if(g===1){var y=d[3];_=[`hide-tail`],v=[y]}else if(g===2)_=[`halfarrow-left`,`halfarrow-right`],v=[`xMinYMin`,`xMaxYMin`];else if(g===3)_=[`brace-left`,`brace-center`,`brace-right`],v=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support + `+g+` children.`);for(var b=0;b0&&(i.style.minWidth=k(a)),i},`svgSpan`)};function Q(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}e(Q,`assertNodeType`);function jn(e){var t=Mn(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}e(jn,`assertSymbolNodeType`);function Mn(e){return e&&(e.type===`atom`||$e.hasOwnProperty(e.type))?e:null}e(Mn,`checkSymbolNodeType`);var Nn=e((e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=Q(e.base,`accent`),n=r.base,e.base=n,i=Ze(Y(e,t)),e.base=r):(r=Q(e,`accent`),n=r.base);var a=Y(n,t.havingCrampedStyle()),o=r.isShifty&&p.isCharacterBox(n),s=0;o&&(s=Xe(Y(p.getBaseElem(n),t.havingCrampedStyle())).skew);var c=r.label===`\\c`,l=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),u;if(r.isStretchy)u=An.svgSpan(r,t),u=W.makeVList({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:u,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+k(2*s)+`)`,marginLeft:k(2*s)}:void 0}]},t);else{var d,f;r.label===`\\vec`?(d=W.staticSvg(`vec`,t),f=W.svgData.vec[1]):(d=W.makeOrd({mode:r.mode,text:r.label},t,`textord`),d=Xe(d),d.italic=0,f=d.width,c&&(l+=d.depth)),u=W.makeSpan([`accent-body`],[d]);var m=r.label===`\\textcircled`;m&&(u.classes.push(`accent-full`),l=a.height);var h=s;m||(h-=f/2),u.style.left=k(h),r.label===`\\textcircled`&&(u.style.top=`.2em`),u=W.makeVList({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-l},{type:`elem`,elem:u}]},t)}var g=W.makeSpan([`mord`,`accent`],[u],t);return i?(i.children[0]=g,i.height=Math.max(g.height,i.height),i.classes[0]=`mord`,i):g},`htmlBuilder$a`),Pn=e((e,t)=>{var n=e.isStretchy?An.mathMLnode(e.label):new X.MathNode(`mo`,[hn(e.label,e.mode)]),r=new X.MathNode(`mover`,[Z(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},`mathmlBuilder$9`),Fn=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`));K({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],props:{numArgs:1},handler:e((e,t)=>{var n=Qt(t[0]),r=!Fn.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},`handler`),htmlBuilder:Nn,mathmlBuilder:Pn}),K({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`]},handler:e((e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(e.parser.settings.reportNonstrict(`mathVsTextAccents`,`LaTeX's accent `+e.funcName+` works only in text mode`),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},`handler`),htmlBuilder:Nn,mathmlBuilder:Pn}),K({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],props:{numArgs:1},handler:e((e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},`handler`),htmlBuilder:e((e,t)=>{var n=Y(e.base,t),r=An.svgSpan(e,t),i=e.label===`\\utilde`?.12:0,a=W.makeVList({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]},t);return W.makeSpan([`mord`,`accentunder`],[a],t)},`htmlBuilder`),mathmlBuilder:e((e,t)=>{var n=An.mathMLnode(e.label),r=new X.MathNode(`munder`,[Z(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r},`mathmlBuilder`)});var In=e(e=>{var t=new X.MathNode(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t},`paddedNode`);K({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=W.wrapFragment(Y(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=W.wrapFragment(Y(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=An.svgSpan(e,t),c=-t.fontMetrics().axisHeight+.5*s.height,l=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(l-=i.depth);var u;if(o){var d=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=W.makeVList({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c},{type:`elem`,elem:o,shift:d}]},t)}else u=W.makeVList({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c}]},t);return u.children[0].children[0].children[1].classes.push(`svg-align`),W.makeSpan([`mrel`,`x-arrow`],[u],t)},mathmlBuilder(e,t){var n=An.mathMLnode(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=In(Z(e.body,t));if(e.below){var a=In(Z(e.below,t));r=new X.MathNode(`munderover`,[n,a,i])}else r=new X.MathNode(`mover`,[n,i])}else if(e.below){var o=In(Z(e.below,t));r=new X.MathNode(`munder`,[n,o])}else r=In(),r=new X.MathNode(`mover`,[n,r]);return r}});var Ln=W.makeSpan;function Rn(e,t){var n=J(e.body,t,!0);return Ln([e.mclass],n,t)}e(Rn,`htmlBuilder$9`);function zn(e,t){var n,r=yn(e.body,t);return e.mclass===`minner`?n=new X.MathNode(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new X.MathNode(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new X.MathNode(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):e.mclass===`mopen`||e.mclass===`mclose`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`):e.mclass===`minner`&&(n.attributes.lspace=`0.0556em`,n.attributes.width=`+0.1111em`)),n}e(zn,`mathmlBuilder$8`),K({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:q(i),isCharacterBox:p.isCharacterBox(i)}},htmlBuilder:Rn,mathmlBuilder:zn});var Bn=e(e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`},`binrelClass`);K({type:`mclass`,names:[`\\@binrel`],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:`mclass`,mode:n.mode,mclass:Bn(t[0]),body:q(t[1]),isCharacterBox:p.isCharacterBox(t[1])}}}),K({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:Bn(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:q(i)},c={type:`supsub`,mode:a.mode,base:s,sup:r===`\\underset`?null:a,sub:r===`\\underset`?a:null};return{type:`mclass`,mode:n.mode,mclass:o,body:[c],isCharacterBox:p.isCharacterBox(c)}},htmlBuilder:Rn,mathmlBuilder:zn}),K({type:`pmb`,names:[`\\pmb`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`pmb`,mode:n.mode,mclass:Bn(t[0]),body:q(t[0])}},htmlBuilder(e,t){var n=J(e.body,t,!0),r=W.makeSpan([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=yn(e.body,t),r=new X.MathNode(`mstyle`,n);return r.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),r}});var Vn={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},Hn=e(()=>({type:`styling`,body:[],mode:`math`,style:`display`}),`newCell`),Un=e(e=>e.type===`textord`&&e.text===`@`,`isStartOfArrow`),Wn=e((e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t,`isLabelEnd`);function Gn(e,t,n){var r=Vn[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}e(Gn,`cdArrow`);function Kn(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new r(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var i=[],a=[i],o=0;o-1))if(`<>AV`.indexOf(u)>-1)for(var f=0;f<2;f++){for(var p=!0,m=l+1;mAV=|." after @`,s[l]);var h={type:`styling`,body:[Gn(u,d,e)],mode:`math`,style:`display`};i.push(h),c=Hn()}o%2==0?i.push(c):i.shift(),i=[],a.push(i)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(a[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(a.length+1).fill([])}}e(Kn,`parseCD`),K({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=W.wrapFragment(Y(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=k(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new X.MathNode(`mrow`,[Z(e.label,t)]);return n=new X.MathNode(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new X.MathNode(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),K({type:`cdlabelparent`,names:[`\\\\cdparent`],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:`cdlabelparent`,mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=W.wrapFragment(Y(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new X.MathNode(`mrow`,[Z(e.fragment,t)])}}),K({type:`textord`,names:[`\\@char`],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,i=Q(t[0],`ordgroup`).body,a=``,o=0;o=1114111)throw new r(`\\@char with invalid code point `+a);return c<=65535?l=String.fromCharCode(c):(c-=65536,l=String.fromCharCode((c>>10)+55296,(c&1023)+56320)),{type:`textord`,mode:n.mode,text:l}}});var qn=e((e,t)=>{var n=J(e.body,t.withColor(e.color),!1);return W.makeFragment(n)},`htmlBuilder$8`),Jn=e((e,t)=>{var n=yn(e.body,t.withColor(e.color)),r=new X.MathNode(`mstyle`,n);return r.setAttribute(`mathcolor`,e.color),r},`mathmlBuilder$7`);K({type:`color`,names:[`\\textcolor`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`original`]},handler(e,t){var{parser:n}=e,r=Q(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:q(i)}},htmlBuilder:qn,mathmlBuilder:Jn}),K({type:`color`,names:[`\\color`],props:{numArgs:1,allowedInText:!0,argTypes:[`color`]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=Q(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}},htmlBuilder:qn,mathmlBuilder:Jn}),K({type:`cr`,names:[`\\\\`],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text===`[`?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior(`newLineInDisplayMode`,`In LaTeX, \\\\ or \\newline does nothing in display mode`);return{type:`cr`,mode:r.mode,newLine:a,size:i&&Q(i,`size`).value}},htmlBuilder(e,t){var n=W.makeSpan([`mspace`],[],t);return e.newLine&&(n.classes.push(`newline`),e.size&&(n.style.marginTop=k(O(e.size,t)))),n},mathmlBuilder(e,t){var n=new X.MathNode(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,k(O(e.size,t)))),n}});var Yn={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},Xn=e(e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new r(`Expected a control sequence`,e);return t},`checkControlSequence`),Zn=e(e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},`getRHS`),Qn=e((e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)},`letCommand`);K({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var i=t.fetch();if(Yn[i.text])return(n===`\\global`||n===`\\\\globallong`)&&(i.text=Yn[i.text]),Q(t.parseFunction(),`internal`);throw new r(`Invalid token after macro prefix`,i)}}),K({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=t.gullet.popToken(),a=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new r(`Expected a control sequence`,i);for(var o=0,s,c=[[]];t.gullet.future().text!==`{`;)if(i=t.gullet.popToken(),i.text===`#`){if(t.gullet.future().text===`{`){s=t.gullet.future(),c[o].push(`{`);break}if(i=t.gullet.popToken(),!/^[1-9]$/.test(i.text))throw new r(`Invalid argument number "`+i.text+`"`);if(parseInt(i.text)!==o+1)throw new r(`Argument number "`+i.text+`" out of order`);o++,c.push([])}else if(i.text===`EOF`)throw new r(`Expected a macro definition`);else c[o].push(i.text);var{tokens:l}=t.gullet.consumeArg();return s&&l.unshift(s),(n===`\\edef`||n===`\\xdef`)&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(a,{tokens:l,numArgs:o,delimiters:c},n===Yn[n]),{type:`internal`,mode:t.mode}}}),K({type:`internal`,names:[`\\let`,`\\\\globallet`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Xn(t.gullet.popToken());return t.gullet.consumeSpaces(),Qn(t,r,Zn(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),K({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Xn(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return Qn(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}});var $n=e(function(e,t,n){var r=De(A.math[e]&&A.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},`getMetrics`),er=e(function(e,t,n,r){var i=n.havingBaseStyle(t),a=W.makeSpan(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},`styleWrap`),tr=e(function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=k(i),e.height-=i,e.depth+=i},`centerSpan`),nr=e(function(e,t,n,r,i,a){var o=er(W.makeSymbol(e,`Main-Regular`,i,r),t,r,a);return n&&tr(o,r,t),o},`makeSmallDelim`),rr=e(function(e,t,n,r){return W.makeSymbol(e,`Size`+t+`-Regular`,n,r)},`mathrmSize`),ir=e(function(e,t,n,r,i,a){var o=rr(e,t,i,r),s=er(W.makeSpan([`delimsizing`,`size`+t],[o],r),D.TEXT,r,a);return n&&tr(s,r,D.TEXT),s},`makeLargeDelim`),ar=e(function(e,t,n){var r=t===`Size1-Regular`?`delim-size1`:`delim-size4`;return{type:`elem`,elem:W.makeSpan([`delimsizinginner`,r],[W.makeSpan([],[W.makeSymbol(e,t,n)])])}},`makeGlyphSpan`),or=e(function(e,t,n){var r=Ce[`Size4-Regular`][e.charCodeAt(0)]?Ce[`Size4-Regular`][e.charCodeAt(0)][4]:Ce[`Size1-Regular`][e.charCodeAt(0)][4],i=new qe([new Je(`inner`,ye(e,Math.round(1e3*t)))],{width:k(r),height:k(t),style:`width:`+k(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`}),a=W.makeSvgSpan([],[i],n);return a.height=t,a.style.height=k(t),a.style.width=k(r),{type:`elem`,elem:a}},`makeInner`),sr=.008,cr={type:`kern`,size:-1*sr},lr=[`|`,`\\lvert`,`\\rvert`,`\\vert`],ur=[`\\|`,`\\lVert`,`\\rVert`,`\\Vert`],dr=e(function(e,t,n,r,i,a){var o,s,c,l,u=``,d=0;o=c=l=e,s=null;var f=`Size1-Regular`;e===`\\uparrow`?c=l=`⏐`:e===`\\Uparrow`?c=l=`‖`:e===`\\downarrow`?o=c=`⏐`:e===`\\Downarrow`?o=c=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,c=`⏐`,l=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,c=`‖`,l=`\\Downarrow`):lr.includes(e)?(c=`∣`,u=`vert`,d=333):ur.includes(e)?(c=`∥`,u=`doublevert`,d=556):e===`[`||e===`\\lbrack`?(o=`⎡`,c=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lbrack`,d=667):e===`]`||e===`\\rbrack`?(o=`⎤`,c=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rbrack`,d=667):e===`\\lfloor`||e===`⌊`?(c=o=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lfloor`,d=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,c=l=`⎢`,f=`Size4-Regular`,u=`lceil`,d=667):e===`\\rfloor`||e===`⌋`?(c=o=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rfloor`,d=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,c=l=`⎥`,f=`Size4-Regular`,u=`rceil`,d=667):e===`(`||e===`\\lparen`?(o=`⎛`,c=`⎜`,l=`⎝`,f=`Size4-Regular`,u=`lparen`,d=875):e===`)`||e===`\\rparen`?(o=`⎞`,c=`⎟`,l=`⎠`,f=`Size4-Regular`,u=`rparen`,d=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,l=`⎩`,c=`⎪`,f=`Size4-Regular`);var p=$n(o,f,i),m=p.height+p.depth,h=$n(c,f,i),g=h.height+h.depth,_=$n(l,f,i),v=_.height+_.depth,y=0,b=1;if(s!==null){var x=$n(s,f,i);y=x.height+x.depth,b=2}var S=m+v+y,C=S+Math.max(0,Math.ceil((t-S)/(b*g)))*b*g,w=r.fontMetrics().axisHeight;n&&(w*=r.sizeMultiplier);var T=C/2-w,E=[];if(u.length>0){var ee=C-m-v,te=Math.round(C*1e3),ne=xe(u,Math.round(ee*1e3)),re=new Je(u,ne),ie=(d/1e3).toFixed(3)+`em`,ae=(te/1e3).toFixed(3)+`em`,oe=new qe([re],{width:ie,height:ae,viewBox:`0 0 `+d+` `+te}),se=W.makeSvgSpan([],[oe],r);se.height=te/1e3,se.style.width=ie,se.style.height=ae,E.push({type:`elem`,elem:se})}else{if(E.push(ar(l,f,i)),E.push(cr),s===null){var ce=C-m-v+2*sr;E.push(or(c,ce,r))}else{var le=(C-m-v-y)/2+2*sr;E.push(or(c,le,r)),E.push(cr),E.push(ar(s,f,i)),E.push(cr),E.push(or(c,le,r))}E.push(cr),E.push(ar(o,f,i))}var ue=r.havingBaseStyle(D.TEXT),de=W.makeVList({positionType:`bottom`,positionData:T,children:E},ue);return er(W.makeSpan([`delimsizing`,`mult`],[de],ue),D.TEXT,r,a)},`makeStackedDelim`),fr=80,pr=.08,mr=e(function(e,t,n,r,i){var a=new qe([new Je(e,ve(e,r,n))],{width:`400em`,height:k(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`});return W.makeSvgSpan([`hide-tail`],[a],i)},`sqrtSvg`),hr=e(function(e,t){var n=t.havingBaseSizing(),r=Tr(`\\surd`,e*n.sizeMultiplier,Cr,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s=0,c=0,l=0,u;return r.type===`small`?(l=1e3+1e3*a+fr,e<1?i=1:e<1.4&&(i=.7),s=(1+a+pr)/i,c=(1+a)/i,o=mr(`sqrtMain`,s,l,a,t),o.style.minWidth=`0.853em`,u=.833/i):r.type===`large`?(l=(1e3+fr)*yr[r.size],c=(yr[r.size]+a)/i,s=(yr[r.size]+a+pr)/i,o=mr(`sqrtSize`+r.size,s,l,a,t),o.style.minWidth=`1.02em`,u=1/i):(s=e+a+pr,c=e+a,l=Math.floor(1e3*e+a)+fr,o=mr(`sqrtTall`,s,l,a,t),o.style.minWidth=`0.742em`,u=1.056),o.height=c,o.style.height=k(s),{span:o,advanceWidth:u,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},`makeSqrtImage`),gr=[`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`],_r=[`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`],vr=[`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`],yr=[0,1.2,1.8,2.4,3],br=e(function(e,t,n,i,a){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),gr.includes(e)||vr.includes(e))return ir(e,t,!1,n,i,a);if(_r.includes(e))return dr(e,yr[t],!1,n,i,a);throw new r(`Illegal delimiter: '`+e+`'`)},`makeSizedDelim`),xr=[{type:`small`,style:D.SCRIPTSCRIPT},{type:`small`,style:D.SCRIPT},{type:`small`,style:D.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],Sr=[{type:`small`,style:D.SCRIPTSCRIPT},{type:`small`,style:D.SCRIPT},{type:`small`,style:D.TEXT},{type:`stack`}],Cr=[{type:`small`,style:D.SCRIPTSCRIPT},{type:`small`,style:D.SCRIPT},{type:`small`,style:D.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],wr=e(function(e){if(e.type===`small`)return`Main-Regular`;if(e.type===`large`)return`Size`+e.size+`-Regular`;if(e.type===`stack`)return`Size4-Regular`;throw Error(`Add support for delim type '`+e.type+`' here.`)},`delimTypeToFont`),Tr=e(function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);it)return n[i]}return n[n.length-1]},`traverseSequence`),Er=e(function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=vr.includes(e)?xr:gr.includes(e)?Cr:Sr,s=Tr(e,t,o,r);return s.type===`small`?nr(e,s.style,n,r,i,a):s.type===`large`?ir(e,s.size,n,r,i,a):dr(e,t,n,r,i,a)},`makeCustomSizedDelim`),Dr={sqrtImage:hr,sizedDelim:br,sizeToMaxHeight:yr,customSizedDelim:Er,leftRightDelim:e(function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,c=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o);return Er(e,Math.max(l/500*s,2*l-c),!0,r,i,a)},`makeLeftRightDelim`)},Or={"\\bigl":{mclass:`mopen`,size:1},"\\Bigl":{mclass:`mopen`,size:2},"\\biggl":{mclass:`mopen`,size:3},"\\Biggl":{mclass:`mopen`,size:4},"\\bigr":{mclass:`mclose`,size:1},"\\Bigr":{mclass:`mclose`,size:2},"\\biggr":{mclass:`mclose`,size:3},"\\Biggr":{mclass:`mclose`,size:4},"\\bigm":{mclass:`mrel`,size:1},"\\Bigm":{mclass:`mrel`,size:2},"\\biggm":{mclass:`mrel`,size:3},"\\Biggm":{mclass:`mrel`,size:4},"\\big":{mclass:`mord`,size:1},"\\Big":{mclass:`mord`,size:2},"\\bigg":{mclass:`mord`,size:3},"\\Bigg":{mclass:`mord`,size:4}},kr=`(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.`.split(`,`);function Ar(e,t){var n=Mn(e);if(n&&kr.includes(n.text))return n;throw n?new r(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new r(`Invalid delimiter type '`+e.type+`'`,e)}e(Ar,`checkDelimiter`),K({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],props:{numArgs:1,argTypes:[`primitive`]},handler:e((e,t)=>{var n=Ar(t[0],e);return{type:`delimsizing`,mode:e.parser.mode,size:Or[e.funcName].size,mclass:Or[e.funcName].mclass,delim:n.text}},`handler`),htmlBuilder:e((e,t)=>e.delim===`.`?W.makeSpan([e.mclass]):Dr.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),`htmlBuilder`),mathmlBuilder:e(e=>{var t=[];e.delim!==`.`&&t.push(hn(e.delim,e.mode));var n=new X.MathNode(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=k(Dr.sizeToMaxHeight[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n},`mathmlBuilder`)});function jr(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}e(jr,`assertParsed`),K({type:`leftright-right`,names:[`\\right`],props:{numArgs:1,primitive:!0},handler:e((e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new r(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:Ar(t[0],e).text,color:n}},`handler`)}),K({type:`leftright`,names:[`\\left`],props:{numArgs:1,primitive:!0},handler:e((e,t)=>{var n=Ar(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=Q(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},`handler`),htmlBuilder:e((e,t)=>{jr(e);for(var n=J(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o{jr(e);var n=yn(e.body,t);if(e.left!==`.`){var r=new X.MathNode(`mo`,[hn(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new X.MathNode(`mo`,[hn(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return gn(n)},`mathmlBuilder`)}),K({type:`middle`,names:[`\\middle`],props:{numArgs:1,primitive:!0},handler:e((e,t)=>{var n=Ar(t[0],e);if(!e.parser.leftrightDepth)throw new r(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},`handler`),htmlBuilder:e((e,t)=>{var n;if(e.delim===`.`)n=ln(t,[]);else{n=Dr.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},`htmlBuilder`),mathmlBuilder:e((e,t)=>{var n=e.delim===`\\vert`||e.delim===`|`?hn(`|`,`text`):hn(e.delim,e.mode),r=new X.MathNode(`mo`,[n]);return r.setAttribute(`fence`,`true`),r.setAttribute(`lspace`,`0.05em`),r.setAttribute(`rspace`,`0.05em`),r},`mathmlBuilder`)});var Mr=e((e,t)=>{var n=W.wrapFragment(Y(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o=0,s=p.isCharacterBox(e.body);if(r===`sout`)a=W.makeSpan([`stretchy`,`sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var c=O({number:.6,unit:`pt`},t),l=O({number:.35,unit:`ex`},t),u=t.havingBaseSizing();i/=u.sizeMultiplier;var d=n.height+n.depth+c+l;n.style.paddingLeft=k(d/2+c);var f=Math.floor(1e3*d*i),m=new qe([new Je(`phase`,ge(f))],{width:`400em`,height:k(f/1e3),viewBox:`0 0 400000 `+f,preserveAspectRatio:`xMinYMin slice`});a=W.makeSvgSpan([`hide-tail`],[m],t),a.style.height=k(d),o=n.depth+c+l}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var h=0,g=0,_=0;/box/.test(r)?(_=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),h=t.fontMetrics().fboxsep+(r===`colorbox`?0:_),g=h):r===`angl`?(_=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),h=4*_,g=Math.max(0,.25-n.depth)):(h=s?.2:0,g=h),a=An.encloseSpan(n,r,h,g,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=k(_)):r===`angl`&&_!==.049&&(a.style.borderTopWidth=k(_),a.style.borderRightWidth=k(_)),o=n.depth+g,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var v;if(e.backgroundColor)v=W.makeVList({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]},t);else{var y=/cancel|phase/.test(r)?[`svg-align`]:[];v=W.makeVList({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:y}]},t)}return/cancel/.test(r)&&(v.height=n.height,v.depth=n.depth),/cancel/.test(r)&&!s?W.makeSpan([`mord`,`cancel-lap`],[v],t):W.makeSpan([`mord`],[v],t)},`htmlBuilder$7`),Nr=e((e,t)=>{var n=0,r=new X.MathNode(e.label.indexOf(`colorbox`)>-1?`mpadded`:`menclose`,[Z(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+i+`em solid `+String(e.borderColor))}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`);break}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r},`mathmlBuilder$6`);K({type:`enclose`,names:[`\\colorbox`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`text`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=Q(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:Mr,mathmlBuilder:Nr}),K({type:`enclose`,names:[`\\fcolorbox`],props:{numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`text`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=Q(t[0],`color-token`).color,o=Q(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:Mr,mathmlBuilder:Nr}),K({type:`enclose`,names:[`\\fbox`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\fbox`,body:t[0]}}}),K({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\sout`,`\\phase`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:Mr,mathmlBuilder:Nr}),K({type:`enclose`,names:[`\\angl`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\angl`,body:t[0]}}});var Pr={};function Fr(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},c=0;c{if(!e.parser.settings.displayMode)throw new r(`{`+e.envName+`} can be used only in display mode.`)},`validateAmsEnvironmentContext`);function zr(e){if(e.indexOf(`ed`)===-1)return e.indexOf(`*`)===-1}e(zr,`getAutoTag`);function Br(t,i,a){var{hskipBeforeAndAfter:o,addJot:s,cols:c,arraystretch:l,colSeparationType:u,autoTag:d,singleRow:f,emptySingleRow:p,maxNumCols:m,leqno:h}=i;if(t.gullet.beginGroup(),f||t.gullet.macros.set(`\\cr`,`\\\\\\relax`),!l){var g=t.gullet.expandMacroAsText(`\\arraystretch`);if(g==null)l=1;else if(l=parseFloat(g),!l||l<0)throw new r(`Invalid \\arraystretch: `+g)}t.gullet.beginGroup();var _=[],v=[_],y=[],b=[],x=d==null?void 0:[];function S(){d&&t.gullet.macros.set(`\\@eqnsw`,`1`,!0)}e(S,`beginRow`);function C(){x&&(t.gullet.macros.get(`\\df@tag`)?(x.push(t.subparse([new n(`\\df@tag`)])),t.gullet.macros.set(`\\df@tag`,void 0,!0)):x.push(!!d&&t.gullet.macros.get(`\\@eqnsw`)===`1`))}for(e(C,`endRow`),S(),b.push(Lr(t));;){var w=t.parseExpression(!1,f?`\\end`:`\\\\`);t.gullet.endGroup(),t.gullet.beginGroup(),w={type:`ordgroup`,mode:t.mode,body:w},a&&(w={type:`styling`,mode:t.mode,style:a,body:[w]}),_.push(w);var T=t.fetch().text;if(T===`&`){if(m&&_.length===m){if(f||u)throw new r(`Too many tab characters: &`,t.nextToken);t.settings.reportNonstrict(`textEnv`,`Too few columns specified in the {array} column argument.`)}t.consume()}else if(T===`\\end`){C(),_.length===1&&w.type===`styling`&&w.body[0].body.length===0&&(v.length>1||!p)&&v.pop(),b.length0&&(b+=.25),u.push({pos:b,isDashed:e[t]})}for(e(x,`setHLinePos`),x(s[0]),i=0;i0&&(te+=y,we))for(i=0;i=c)){var _e=void 0;(a>0||t.hskipBeforeAndAfter)&&(_e=p.deflt(fe.pregap,m),_e!==0&&(ae=W.makeSpan([`arraycolsep`],[]),ae.style.width=k(_e),ie.push(ae)));var ve=[];for(i=0;i0){for(var Se=W.makeLineSpan(`hline`,n,d),Ce=W.makeLineSpan(`hdashline`,n,d),we=[{type:`elem`,elem:l,shift:0}];u.length>0;){var Te=u.pop(),Ee=Te.pos-ne;Te.isDashed?we.push({type:`elem`,elem:Ce,shift:Ee}):we.push({type:`elem`,elem:Se,shift:Ee})}l=W.makeVList({positionType:`individualShift`,children:we},n)}if(se.length===0)return W.makeSpan([`mord`],[l],n);var De=W.makeVList({positionType:`individualShift`,children:se},n);return De=W.makeSpan([`tag`],[De],n),W.makeFragment([l,De])},`htmlBuilder`),Ur={c:`center `,l:`left `,r:`right `},Wr=e(function(e,t){for(var n=[],r=new X.MathNode(`mtd`,[],[`mtr-glue`]),i=new X.MathNode(`mtd`,[],[`mml-eqn-num`]),a=0;a0){var p=e.cols,m=``,h=!1,g=0,_=p.length;p[0].type===`separator`&&(d+=`top `,g=1),p[p.length-1].type===`separator`&&(d+=`bottom `,--_);for(var v=g;v<_;v++)p[v].type===`align`?(f+=Ur[p[v].align],h&&(m+=`none `),h=!0):p[v].type===`separator`&&(h&&=(m+=p[v].separator===`|`?`solid `:`dashed `,!1));l.setAttribute(`columnalign`,f.trim()),/[sd]/.test(m)&&l.setAttribute(`columnlines`,m.trim())}if(e.colSeparationType===`align`){for(var y=e.cols||[],b=``,x=1;x0?`left `:``,d+=C[C.length-1].length>0?`right `:``;for(var w=1;w-1?`alignat`:`align`,a=e.envName===`split`,o=Br(e.parser,{cols:n,addJot:!0,autoTag:a?void 0:zr(e.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:e.parser.settings.leqno},`display`),s,c=0,l={type:`ordgroup`,mode:e.mode,body:[]};if(t[0]&&t[0].type===`ordgroup`){for(var u=``,d=0;d0&&p&&(g=1),n[m]={type:`align`,align:h,pregap:g,postgap:0}}return o.colSeparationType=p?`align`:`alignat`,o},`alignedHandler`);Fr({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(Mn(t[0])?[t[0]]:Q(t[0],`ordgroup`).body).map(function(e){var t=jn(e).text;if(`lcr`.indexOf(t)!==-1)return{type:`align`,align:t};if(t===`|`)return{type:`separator`,separator:`|`};if(t===`:`)return{type:`separator`,separator:`:`};throw new r(`Unknown column alignment: `+t,e)}),i={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return Br(e.parser,i,Vr(e.envName))},htmlBuilder:Hr,mathmlBuilder:Wr}),Fr({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,i={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var a=e.parser;if(a.consumeSpaces(),a.fetch().text===`[`){if(a.consume(),a.consumeSpaces(),n=a.fetch().text,`lcr`.indexOf(n)===-1)throw new r(`Expected l or c or r`,a.nextToken);a.consume(),a.consumeSpaces(),a.expect(`]`),a.consume(),i.cols=[{type:`align`,align:n}]}}var o=Br(e.parser,i,Vr(e.envName)),s=Math.max(0,...o.body.map(e=>e.length));return o.cols=Array(s).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[o],left:t[0],right:t[1],rightColor:void 0}:o},htmlBuilder:Hr,mathmlBuilder:Wr}),Fr({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=Br(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:Hr,mathmlBuilder:Wr}),Fr({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(Mn(t[0])?[t[0]]:Q(t[0],`ordgroup`).body).map(function(e){var t=jn(e).text;if(`lc`.indexOf(t)!==-1)return{type:`align`,align:t};throw new r(`Unknown column alignment: `+t,e)});if(n.length>1)throw new r(`{subarray} can contain only one column`);var i={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if(i=Br(e.parser,i,`script`),i.body.length>0&&i.body[0].length>1)throw new r(`{subarray} can contain only one column`);return i},htmlBuilder:Hr,mathmlBuilder:Wr}),Fr({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=Br(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},Vr(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.indexOf(`r`)>-1?`.`:`\\{`,right:e.envName.indexOf(`r`)>-1?`\\}`:`.`,rightColor:void 0}},htmlBuilder:Hr,mathmlBuilder:Wr}),Fr({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:Gr,htmlBuilder:Hr,mathmlBuilder:Wr}),Fr({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){[`gather`,`gather*`].includes(e.envName)&&Rr(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:zr(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Br(e.parser,t,`display`)},htmlBuilder:Hr,mathmlBuilder:Wr}),Fr({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:Gr,htmlBuilder:Hr,mathmlBuilder:Wr}),Fr({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){Rr(e);var t={autoTag:zr(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Br(e.parser,t,`display`)},htmlBuilder:Hr,mathmlBuilder:Wr}),Fr({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return Rr(e),Kn(e.parser)},htmlBuilder:Hr,mathmlBuilder:Wr}),$(`\\nonumber`,`\\gdef\\@eqnsw{0}`),$(`\\notag`,`\\nonumber`),K({type:`text`,names:[`\\hline`,`\\hdashline`],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new r(e.funcName+` valid only within array environment`)}});var Kr=Pr;K({type:`environment`,names:[`\\begin`,`\\end`],props:{numArgs:1,argTypes:[`text`]},handler(e,t){var{parser:n,funcName:i}=e,a=t[0];if(a.type!==`ordgroup`)throw new r(`Invalid environment name`,a);for(var o=``,s=0;s{var n=e.font,r=t.withFont(n);return Y(e.body,r)},`htmlBuilder$5`),Jr=e((e,t)=>{var n=e.font,r=t.withFont(n);return Z(e.body,r)},`mathmlBuilder$4`),Yr={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`,"\\bm":`\\boldsymbol`};K({type:`font`,names:[`\\mathrm`,`\\mathit`,`\\mathbf`,`\\mathnormal`,`\\mathsfit`,`\\mathbb`,`\\mathcal`,`\\mathfrak`,`\\mathscr`,`\\mathsf`,`\\mathtt`,`\\Bbb`,`\\bold`,`\\frak`],props:{numArgs:1,allowedInArgument:!0},handler:e((e,t)=>{var{parser:n,funcName:r}=e,i=Qt(t[0]),a=r;return a in Yr&&(a=Yr[a]),{type:`font`,mode:n.mode,font:a.slice(1),body:i}},`handler`),htmlBuilder:qr,mathmlBuilder:Jr}),K({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],props:{numArgs:1},handler:e((e,t)=>{var{parser:n}=e,r=t[0],i=p.isCharacterBox(r);return{type:`mclass`,mode:n.mode,mclass:Bn(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:i}},`handler`)}),K({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],props:{numArgs:0,allowedInText:!0},handler:e((e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}},`handler`),htmlBuilder:qr,mathmlBuilder:Jr});var Xr=e((e,t)=>{var n=t;return e===`display`?n=n.id>=D.SCRIPT.id?n.text():D.DISPLAY:e===`text`&&n.size===D.DISPLAY.size?n=D.TEXT:e===`script`?n=D.SCRIPT:e===`scriptscript`&&(n=D.SCRIPTSCRIPT),n},`adjustStyle`),Zr=e((e,t)=>{var n=Xr(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=Y(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;o.height=o.height0?3*f:7*f,h=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,m=f):(p=t.fontMetrics().num3,m=3*f),h=t.fontMetrics().denom2);var g;if(u){var _=t.fontMetrics().axisHeight;p-o.depth-(_+.5*d){var n=new X.MathNode(`mfrac`,[Z(e.numer,t),Z(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=O(e.barSize,t);n.setAttribute(`linethickness`,k(r))}var i=Xr(e.size,t.style);if(i.size!==t.style.size){n=new X.MathNode(`mstyle`,[n]);var a=i.size===D.DISPLAY.size?`true`:`false`;n.setAttribute(`displaystyle`,a),n.setAttribute(`scriptlevel`,`0`)}if(e.leftDelim!=null||e.rightDelim!=null){var o=[];if(e.leftDelim!=null){var s=new X.MathNode(`mo`,[new X.TextNode(e.leftDelim.replace(`\\`,``))]);s.setAttribute(`fence`,`true`),o.push(s)}if(o.push(n),e.rightDelim!=null){var c=new X.MathNode(`mo`,[new X.TextNode(e.rightDelim.replace(`\\`,``))]);c.setAttribute(`fence`,`true`),o.push(c)}return gn(o)}return n},`mathmlBuilder$3`);K({type:`genfrac`,names:[`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],props:{numArgs:2,allowedInArgument:!0},handler:e((e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],o,s=null,c=null,l=`auto`;switch(r){case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,c=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,c=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,c=`]`;break;default:throw Error(`Unrecognized genfrac command`)}switch(r){case`\\dfrac`:case`\\dbinom`:l=`display`;break;case`\\tfrac`:case`\\tbinom`:l=`text`;break}return{type:`genfrac`,mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:o,leftDelim:s,rightDelim:c,size:l,barSize:null}},`handler`),htmlBuilder:Zr,mathmlBuilder:Qr}),K({type:`genfrac`,names:[`\\cfrac`],props:{numArgs:2},handler:e((e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:`genfrac`,mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:`display`,barSize:null}},`handler`)}),K({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}});var $r=[`display`,`text`,`script`,`scriptscript`],ei=e(function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t},`delimFromValue`);K({type:`genfrac`,names:[`\\genfrac`],props:{numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=Qt(t[0]),o=a.type===`atom`&&a.family===`open`?ei(a.text):null,s=Qt(t[1]),c=s.type===`atom`&&s.family===`close`?ei(s.text):null,l=Q(t[2],`size`),u,d=null;l.isBlank?u=!0:(d=l.value,u=d.number>0);var f=`auto`,p=t[3];if(p.type===`ordgroup`){if(p.body.length>0){var m=Q(p.body[0],`textord`);f=$r[Number(m.text)]}}else p=Q(p,`textord`),f=$r[Number(p.text)];return{type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:c,size:f}},htmlBuilder:Zr,mathmlBuilder:Qr}),K({type:`infix`,names:[`\\above`],props:{numArgs:1,argTypes:[`size`],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:Q(t[0],`size`).value,token:i}}}),K({type:`genfrac`,names:[`\\\\abovefrac`],props:{numArgs:3,argTypes:[`math`,`size`,`math`]},handler:e((e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=f(Q(t[1],`infix`).size),o=t[2],s=a.number>0;return{type:`genfrac`,mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null,size:`auto`}},`handler`),htmlBuilder:Zr,mathmlBuilder:Qr});var ti=e((e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?Y(e.sup,t.havingStyle(n.sup()),t):Y(e.sub,t.havingStyle(n.sub()),t),i=Q(e.base,`horizBrace`)):i=Q(e,`horizBrace`);var a=Y(i.base,t.havingBaseStyle(D.DISPLAY)),o=An.svgSpan(i,t),s;if(i.isOver?(s=W.makeVList({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o}]},t),s.children[0].children[0].children[1].classes.push(`svg-align`)):(s=W.makeVList({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o},{type:`kern`,size:.1},{type:`elem`,elem:a}]},t),s.children[0].children[0].children[0].classes.push(`svg-align`)),r){var c=W.makeSpan([`mord`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?W.makeVList({positionType:`firstBaseline`,children:[{type:`elem`,elem:c},{type:`kern`,size:.2},{type:`elem`,elem:r}]},t):W.makeVList({positionType:`bottom`,positionData:c.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:c}]},t)}return W.makeSpan([`mord`,i.isOver?`mover`:`munder`],[s],t)},`htmlBuilder$3`);K({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`horizBrace`,mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:ti,mathmlBuilder:e((e,t)=>{var n=An.mathMLnode(e.label);return new X.MathNode(e.isOver?`mover`:`munder`,[Z(e.base,t),n])},`mathmlBuilder$2`)}),K({type:`href`,names:[`\\href`],props:{numArgs:2,argTypes:[`url`,`original`],allowedInText:!0},handler:e((e,t)=>{var{parser:n}=e,r=t[1],i=Q(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:q(r)}:n.formatUnsupportedCmd(`\\href`)},`handler`),htmlBuilder:e((e,t)=>{var n=J(e.body,t,!1);return W.makeAnchor(e.href,[],n,t)},`htmlBuilder`),mathmlBuilder:e((e,t)=>{var n=bn(e.body,t);return n instanceof pn||(n=new pn(`mrow`,[n])),n.setAttribute(`href`,e.href),n},`mathmlBuilder`)}),K({type:`href`,names:[`\\url`],props:{numArgs:1,argTypes:[`url`],allowedInText:!0},handler:e((e,t)=>{var{parser:n}=e,r=Q(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a{var{parser:n,funcName:i,token:a}=e,o=Q(t[0],`raw`).string,s=t[1];n.settings.strict&&n.settings.reportNonstrict(`htmlExtension`,`HTML extension is disabled on strict mode`);var c,l={};switch(i){case`\\htmlClass`:l.class=o,c={command:`\\htmlClass`,class:o};break;case`\\htmlId`:l.id=o,c={command:`\\htmlId`,id:o};break;case`\\htmlStyle`:l.style=o,c={command:`\\htmlStyle`,style:o};break;case`\\htmlData`:for(var u=o.split(`,`),d=0;d{var n=J(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=W.makeSpan(r,n,t);for(var a in e.attributes)a!==`class`&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},`htmlBuilder`),mathmlBuilder:e((e,t)=>bn(e.body,t),`mathmlBuilder`)}),K({type:`htmlmathml`,names:[`\\html@mathml`],props:{numArgs:2,allowedInText:!0},handler:e((e,t)=>{var{parser:n}=e;return{type:`htmlmathml`,mode:n.mode,html:q(t[0]),mathml:q(t[1])}},`handler`),htmlBuilder:e((e,t)=>{var n=J(e.html,t,!1);return W.makeFragment(n)},`htmlBuilder`),mathmlBuilder:e((e,t)=>bn(e.mathml,t),`mathmlBuilder`)});var ni=e(function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new r(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!Ie(n))throw new r(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n},`sizeData`);K({type:`includegraphics`,names:[`\\includegraphics`],props:{numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1},handler:e((e,t,n)=>{var{parser:i}=e,a={number:0,unit:`em`},o={number:.9,unit:`em`},s={number:0,unit:`em`},c=``;if(n[0])for(var l=Q(n[0],`raw`).string.split(`,`),u=0;u{var n=O(e.height,t),r=0;e.totalheight.number>0&&(r=O(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=O(e.width,t));var a={height:k(n+r)};i>0&&(a.width=k(i)),r>0&&(a.verticalAlign=k(-r));var o=new We(e.src,e.alt,a);return o.height=n,o.depth=r,o},`htmlBuilder`),mathmlBuilder:e((e,t)=>{var n=new X.MathNode(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=O(e.height,t),i=0;if(e.totalheight.number>0&&(i=O(e.totalheight,t)-r,n.setAttribute(`valign`,k(-i))),n.setAttribute(`height`,k(r+i)),e.width.number>0){var a=O(e.width,t);n.setAttribute(`width`,k(a))}return n.setAttribute(`src`,e.src),n},`mathmlBuilder`)}),K({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],props:{numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=Q(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`)),n.mode!==`math`&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` works only in math mode`)):o&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` doesn't support mu units`)}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return W.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=O(e.dimension,t);return new X.SpaceNode(n)}}),K({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],props:{numArgs:1,allowedInText:!0},handler:e((e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},`handler`),htmlBuilder:e((e,t)=>{var n;e.alignment===`clap`?(n=W.makeSpan([],[Y(e.body,t)]),n=W.makeSpan([`inner`],[n],t)):n=W.makeSpan([`inner`],[Y(e.body,t)]);var r=W.makeSpan([`fix`],[]),i=W.makeSpan([e.alignment],[n,r],t),a=W.makeSpan([`strut`]);return a.style.height=k(i.height+i.depth),i.depth&&(a.style.verticalAlign=k(-i.depth)),i.children.unshift(a),i=W.makeSpan([`thinbox`],[i],t),W.makeSpan([`mord`,`vbox`],[i],t)},`htmlBuilder`),mathmlBuilder:e((e,t)=>{var n=new X.MathNode(`mpadded`,[Z(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n},`mathmlBuilder`)}),K({type:`styling`,names:[`\\(`,`$`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,body:o}}}),K({type:`text`,names:[`\\)`,`\\]`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new r(`Mismatched `+e.funcName)}});var ri=e((e,t)=>{switch(t.style.size){case D.DISPLAY.size:return e.display;case D.TEXT.size:return e.text;case D.SCRIPT.size:return e.script;case D.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}},`chooseMathStyle`);K({type:`mathchoice`,names:[`\\mathchoice`],props:{numArgs:4,primitive:!0},handler:e((e,t)=>{var{parser:n}=e;return{type:`mathchoice`,mode:n.mode,display:q(t[0]),text:q(t[1]),script:q(t[2]),scriptscript:q(t[3])}},`handler`),htmlBuilder:e((e,t)=>{var n=J(ri(e,t),t,!1);return W.makeFragment(n)},`htmlBuilder`),mathmlBuilder:e((e,t)=>bn(ri(e,t),t),`mathmlBuilder`)});var ii=e((e,t,n,r,i,a,o)=>{e=W.makeSpan([],[e]);var s=n&&p.isCharacterBox(n),c,l;if(t){var u=Y(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=Y(n,r.havingStyle(i.sub()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var f;if(l&&c){var m=r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+o;f=W.makeVList({positionType:`bottom`,positionData:m,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:k(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:k(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]},r)}else if(c){var h=e.height-o;f=W.makeVList({positionType:`top`,positionData:h,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:k(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e}]},r)}else if(l){var g=e.depth+o;f=W.makeVList({positionType:`bottom`,positionData:g,children:[{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:k(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var _=[f];if(c&&a!==0&&!s){var v=W.makeSpan([`mspace`],[],r);v.style.marginRight=k(a),_.unshift(v)}return W.makeSpan([`mop`,`op-limits`],_,r)},`assembleSupSub`),ai=[`\\smallint`],oi=e((e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=Q(e.base,`op`),i=!0):a=Q(e,`op`);var o=t.style,s=!1;o.size===D.DISPLAY.size&&a.symbol&&!ai.includes(a.name)&&(s=!0);var c;if(a.symbol){var l=s?`Size2-Regular`:`Size1-Regular`,u=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(u=a.name.slice(1),a.name=u===`oiint`?`\\iint`:`\\iiint`),c=W.makeSymbol(a.name,l,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),u.length>0){var d=c.italic,f=W.staticSvg(u+`Size`+(s?`2`:`1`),t);c=W.makeVList({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:0},{type:`elem`,elem:f,shift:s?.08:0}]},t),a.name=`\\`+u,c.classes.unshift(`mop`),c.italic=d}}else if(a.body){var p=J(a.body,t,!0);p.length===1&&p[0]instanceof Ke?(c=p[0],c.classes[0]=`mop`):c=W.makeSpan([`mop`],p,t)}else{for(var m=[],h=1;h{var n;if(e.symbol)n=new pn(`mo`,[hn(e.name,e.mode)]),ai.includes(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new pn(`mo`,yn(e.body,t));else{n=new pn(`mi`,[new mn(e.name.slice(1))]);var r=new pn(`mo`,[hn(`⁡`,`text`)]);n=e.parentIsSupSub?new pn(`mrow`,[n,r]):fn([n,r])}return n},`mathmlBuilder$1`),ci={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`};K({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),props:{numArgs:0},handler:e((e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=ci[i]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},`handler`),htmlBuilder:oi,mathmlBuilder:si}),K({type:`op`,names:[`\\mathop`],props:{numArgs:1,primitive:!0},handler:e((e,t)=>{var{parser:n}=e,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:q(r)}},`handler`),htmlBuilder:oi,mathmlBuilder:si});var li={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`};K({type:`op`,names:`\\arcsin.\\arccos.\\arctan.\\arctg.\\arcctg.\\arg.\\ch.\\cos.\\cosec.\\cosh.\\cot.\\cotg.\\coth.\\csc.\\ctg.\\cth.\\deg.\\dim.\\exp.\\hom.\\ker.\\lg.\\ln.\\log.\\sec.\\sin.\\sinh.\\sh.\\tan.\\tanh.\\tg.\\th`.split(`.`),props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:oi,mathmlBuilder:si}),K({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:oi,mathmlBuilder:si}),K({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=li[r]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:oi,mathmlBuilder:si});var ui=e((e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=Q(e.base,`operatorname`),i=!0):a=Q(e,`operatorname`);var o;if(a.body.length>0){for(var s=J(a.body.map(e=>{var t=e.text;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),c=0;c{var{parser:n,funcName:r}=e,i=t[0];return{type:`operatorname`,mode:n.mode,body:q(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},`handler`),htmlBuilder:ui,mathmlBuilder:e((e,t)=>{for(var n=yn(e.body,t.withFont(`mathrm`)),r=!0,i=0;ie.toText()).join(``);n=[new X.TextNode(s)]}var c=new X.MathNode(`mi`,n);c.setAttribute(`mathvariant`,`normal`);var l=new X.MathNode(`mo`,[hn(`⁡`,`text`)]);return e.parentIsSupSub?new X.MathNode(`mrow`,[c,l]):X.newDocumentFragment([c,l])},`mathmlBuilder`)}),$(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),Zt({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?W.makeFragment(J(e.body,t,!1)):W.makeSpan([`mord`],J(e.body,t,!0),t)},mathmlBuilder(e,t){return bn(e.body,t,!0)}}),K({type:`overline`,names:[`\\overline`],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=Y(e.body,t.havingCrampedStyle()),r=W.makeLineSpan(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness,a=W.makeVList({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]},t);return W.makeSpan([`mord`,`overline`],[a],t)},mathmlBuilder(e,t){var n=new X.MathNode(`mo`,[new X.TextNode(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new X.MathNode(`mover`,[Z(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),K({type:`phantom`,names:[`\\phantom`],props:{numArgs:1,allowedInText:!0},handler:e((e,t)=>{var{parser:n}=e,r=t[0];return{type:`phantom`,mode:n.mode,body:q(r)}},`handler`),htmlBuilder:e((e,t)=>{var n=J(e.body,t.withPhantom(),!1);return W.makeFragment(n)},`htmlBuilder`),mathmlBuilder:e((e,t)=>{var n=yn(e.body,t);return new X.MathNode(`mphantom`,n)},`mathmlBuilder`)}),K({type:`hphantom`,names:[`\\hphantom`],props:{numArgs:1,allowedInText:!0},handler:e((e,t)=>{var{parser:n}=e,r=t[0];return{type:`hphantom`,mode:n.mode,body:r}},`handler`),htmlBuilder:e((e,t)=>{var n=W.makeSpan([],[Y(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=yn(q(e.body),t),r=new X.MathNode(`mphantom`,n),i=new X.MathNode(`mpadded`,[r]);return i.setAttribute(`height`,`0px`),i.setAttribute(`depth`,`0px`),i},`mathmlBuilder`)}),K({type:`vphantom`,names:[`\\vphantom`],props:{numArgs:1,allowedInText:!0},handler:e((e,t)=>{var{parser:n}=e,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},`handler`),htmlBuilder:e((e,t)=>{var n=W.makeSpan([`inner`],[Y(e.body,t.withPhantom())]),r=W.makeSpan([`fix`],[]);return W.makeSpan([`mord`,`rlap`],[n,r],t)},`htmlBuilder`),mathmlBuilder:e((e,t)=>{var n=yn(q(e.body),t),r=new X.MathNode(`mphantom`,n),i=new X.MathNode(`mpadded`,[r]);return i.setAttribute(`width`,`0px`),i},`mathmlBuilder`)}),K({type:`raisebox`,names:[`\\raisebox`],props:{numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e,r=Q(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Y(e.body,t),r=O(e.dy,t);return W.makeVList({positionType:`shift`,positionData:-r,children:[{type:`elem`,elem:n}]},t)},mathmlBuilder(e,t){var n=new X.MathNode(`mpadded`,[Z(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),K({type:`internal`,names:[`\\relax`],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:`internal`,mode:t.mode}}}),K({type:`rule`,names:[`\\rule`],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`]},handler(e,t,n){var{parser:r}=e,i=n[0],a=Q(t[0],`size`),o=Q(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&Q(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=W.makeSpan([`mord`,`rule`],[],t),r=O(e.width,t),i=O(e.height,t),a=e.shift?O(e.shift,t):0;return n.style.borderRightWidth=k(r),n.style.borderTopWidth=k(i),n.style.bottom=k(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=O(e.width,t),r=O(e.height,t),i=e.shift?O(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new X.MathNode(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,k(n)),o.setAttribute(`height`,k(r));var s=new X.MathNode(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,k(i)):(s.setAttribute(`height`,k(i)),s.setAttribute(`depth`,k(-i))),s.setAttribute(`voffset`,k(i)),s}});function di(e,t,n){for(var r=J(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:fi.indexOf(r)+1,body:a}},`handler`),htmlBuilder:e((e,t)=>{var n=t.havingSize(e.size);return di(e.body,n,t)},`htmlBuilder`),mathmlBuilder:e((e,t)=>{var n=t.havingSize(e.size),r=yn(e.body,n),i=new X.MathNode(`mstyle`,r);return i.setAttribute(`mathsize`,k(n.sizeMultiplier)),i},`mathmlBuilder`)}),K({type:`smash`,names:[`\\smash`],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:e((e,t,n)=>{var{parser:r}=e,i=!1,a=!1,o=n[0]&&Q(n[0],`ordgroup`);if(o)for(var s=``,c=0;c{var n=W.makeSpan([],[Y(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new X.MathNode(`mpadded`,[Z(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n},`mathmlBuilder`)}),K({type:`sqrt`,names:[`\\sqrt`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Y(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=W.wrapFragment(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.idn.height+n.depth+a&&(a=(a+u-n.height-n.depth)/2);var d=s.height-n.height-a-c;n.style.paddingLeft=k(l);var f=W.makeVList({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+d)},{type:`elem`,elem:s},{type:`kern`,size:c}]},t);if(e.index){var p=t.havingStyle(D.SCRIPTSCRIPT),m=Y(e.index,p,t),h=.6*(f.height-f.depth),g=W.makeVList({positionType:`shift`,positionData:-h,children:[{type:`elem`,elem:m}]},t),_=W.makeSpan([`root`],[g]);return W.makeSpan([`mord`,`sqrt`],[_,f],t)}else return W.makeSpan([`mord`,`sqrt`],[f],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new X.MathNode(`mroot`,[Z(n,t),Z(r,t)]):new X.MathNode(`msqrt`,[Z(n,t)])}});var pi={display:D.DISPLAY,text:D.TEXT,script:D.SCRIPT,scriptscript:D.SCRIPTSCRIPT};K({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=pi[e.style],r=t.havingStyle(n).withFont(``);return di(e.body,r,t)},mathmlBuilder(e,t){var n=pi[e.style],r=t.havingStyle(n),i=yn(e.body,r),a=new X.MathNode(`mstyle`,i),o={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return a.setAttribute(`scriptlevel`,o[0]),a.setAttribute(`displaystyle`,o[1]),a}});var mi=e(function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===D.DISPLAY.size||n.alwaysHandleSupSub)?oi:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===D.DISPLAY.size||n.limits)?ui:null:n.type===`accent`?p.isCharacterBox(n.base)?Nn:null:n.type===`horizBrace`&&!e.sub===n.isOver?ti:null:null},`htmlBuilderDelegate`);Zt({type:`supsub`,htmlBuilder(e,t){var n=mi(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,o=Y(r,t),s,c,l=t.fontMetrics(),u=0,d=0,f=r&&p.isCharacterBox(r);if(i){var m=t.havingStyle(t.style.sup());s=Y(i,m,t),f||(u=o.height-m.fontMetrics().supDrop*m.sizeMultiplier/t.sizeMultiplier)}if(a){var h=t.havingStyle(t.style.sub());c=Y(a,h,t),f||(d=o.depth+h.fontMetrics().subDrop*h.sizeMultiplier/t.sizeMultiplier)}var g=t.style===D.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2,_=t.sizeMultiplier,v=k(.5/l.ptPerEm/_),y=null;if(c){var b=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof Ke||b)&&(y=k(-o.italic))}var x;if(s&&c){u=Math.max(u,g,s.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var S=4*l.defaultRuleThickness;if(u-s.depth-(c.height-d)0&&(u+=C,d-=C)}var w=[{type:`elem`,elem:c,shift:d,marginRight:v,marginLeft:y},{type:`elem`,elem:s,shift:-u,marginRight:v}];x=W.makeVList({positionType:`individualShift`,children:w},t)}else if(c){d=Math.max(d,l.sub1,c.height-.8*l.xHeight);var T=[{type:`elem`,elem:c,marginLeft:y,marginRight:v}];x=W.makeVList({positionType:`shift`,positionData:d,children:T},t)}else if(s)u=Math.max(u,g,s.depth+.25*l.xHeight),x=W.makeVList({positionType:`shift`,positionData:-u,children:[{type:`elem`,elem:s,marginRight:v}]},t);else throw Error(`supsub must have either sup or sub.`);var E=cn(o,`right`)||`mord`;return W.makeSpan([E],[o,W.makeSpan([`msupsub`],[x])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[Z(e.base,t)];e.sub&&a.push(Z(e.sub,t)),e.sup&&a.push(Z(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===D.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===D.DISPLAY)?`mover`:`msup`}else if(e.sup){var c=e.base;o=c&&c.type===`op`&&c.limits&&t.style===D.DISPLAY||c&&c.type===`operatorname`&&c.alwaysHandleSupSub&&(t.style===D.DISPLAY||c.limits)?`munderover`:`msubsup`}else{var l=e.base;o=l&&l.type===`op`&&l.limits&&(t.style===D.DISPLAY||l.alwaysHandleSupSub)||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(l.limits||t.style===D.DISPLAY)?`munder`:`msub`}return new X.MathNode(o,a)}}),Zt({type:`atom`,htmlBuilder(e,t){return W.mathsym(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new X.MathNode(`mo`,[hn(e.text,e.mode)]);if(e.family===`bin`){var r=_n(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}});var hi={mi:`italic`,mn:`normal`,mtext:`normal`};Zt({type:`mathord`,htmlBuilder(e,t){return W.makeOrd(e,t,`mathord`)},mathmlBuilder(e,t){var n=new X.MathNode(`mi`,[hn(e.text,e.mode,t)]),r=_n(e,t)||`italic`;return r!==hi[n.type]&&n.setAttribute(`mathvariant`,r),n}}),Zt({type:`textord`,htmlBuilder(e,t){return W.makeOrd(e,t,`textord`)},mathmlBuilder(e,t){var n=hn(e.text,e.mode,t),r=_n(e,t)||`normal`,i=e.mode===`text`?new X.MathNode(`mtext`,[n]):/[0-9]/.test(e.text)?new X.MathNode(`mn`,[n]):e.text===`\\prime`?new X.MathNode(`mo`,[n]):new X.MathNode(`mi`,[n]);return r!==hi[i.type]&&i.setAttribute(`mathvariant`,r),i}});var gi={"\\nobreak":`nobreak`,"\\allowbreak":`allowbreak`},_i={" ":{},"\\ ":{},"~":{className:`nobreak`},"\\space":{},"\\nobreakspace":{className:`nobreak`}};Zt({type:`spacing`,htmlBuilder(e,t){if(_i.hasOwnProperty(e.text)){var n=_i[e.text].className||``;if(e.mode===`text`){var i=W.makeOrd(e,t,`textord`);return i.classes.push(n),i}else return W.makeSpan([`mspace`,n],[W.mathsym(e.text,e.mode,t)],t)}else if(gi.hasOwnProperty(e.text))return W.makeSpan([`mspace`,gi[e.text]],[],t);else throw new r(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(_i.hasOwnProperty(e.text))n=new X.MathNode(`mtext`,[new X.TextNode(`\xA0`)]);else if(gi.hasOwnProperty(e.text))return new X.MathNode(`mspace`);else throw new r(`Unknown type of space "`+e.text+`"`);return n}});var vi=e(()=>{var e=new X.MathNode(`mtd`,[]);return e.setAttribute(`width`,`50%`),e},`pad`);Zt({type:`tag`,mathmlBuilder(e,t){var n=new X.MathNode(`mtable`,[new X.MathNode(`mtr`,[vi(),new X.MathNode(`mtd`,[bn(e.body,t)]),vi(),new X.MathNode(`mtd`,[bn(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}});var yi={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},bi={"\\textbf":`textbf`,"\\textmd":`textmd`},xi={"\\textit":`textit`,"\\textup":`textup`},Si=e((e,t)=>{var n=e.font;return n?yi[n]?t.withTextFontFamily(yi[n]):bi[n]?t.withTextFontWeight(bi[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(xi[n]):t},`optionsWithFont`);K({type:`text`,names:[`\\text`,`\\textrm`,`\\textsf`,`\\texttt`,`\\textnormal`,`\\textbf`,`\\textmd`,`\\textit`,`\\textup`,`\\emph`],props:{numArgs:1,argTypes:[`text`],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`text`,mode:n.mode,body:q(i),font:r}},htmlBuilder(e,t){var n=Si(e,t),r=J(e.body,n,!0);return W.makeSpan([`mord`,`text`],r,n)},mathmlBuilder(e,t){var n=Si(e,t);return bn(e.body,n)}}),K({type:`underline`,names:[`\\underline`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`underline`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Y(e.body,t),r=W.makeLineSpan(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness,a=W.makeVList({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]},t);return W.makeSpan([`mord`,`underline`],[a],t)},mathmlBuilder(e,t){var n=new X.MathNode(`mo`,[new X.TextNode(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new X.MathNode(`munder`,[Z(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),K({type:`vcenter`,names:[`\\vcenter`],props:{numArgs:1,argTypes:[`original`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`vcenter`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Y(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return W.makeVList({positionType:`shift`,positionData:i,children:[{type:`elem`,elem:n}]},t)},mathmlBuilder(e,t){return new X.MathNode(`mpadded`,[Z(e.body,t)],[`vcenter`])}}),K({type:`verb`,names:[`\\verb`],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new r(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=Ci(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?`␣`:`\xA0`),`makeVerb`),wi=Jt,Ti=`[ \r + ]`,Ei=`\\\\[a-zA-Z@]+`,Di=`\\\\[^\ud800-\udfff]`,Oi=`(`+Ei+`)`+Ti+`*`,ki=`\\\\( +|[ \r ]+ +?)[ \r ]*`,Ai=`[̀-ͯ]`,ji=RegExp(Ai+`+$`),Mi=`(`+Ti+`+)|`+(ki+`|`)+`([!-\\[\\]-‧‪-퟿豈-￿]`+(Ai+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(Ai+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+Oi)+(`|`+Di+`)`),Ni=class{static{e(this,`Lexer`)}constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(Mi,`g`),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,i=this.tokenRegex.lastIndex;if(i===e.length)return new n(`EOF`,new t(this,i,i));var a=this.tokenRegex.exec(e);if(a===null||a.index!==i)throw new r(`Unexpected character: '`+e[i]+`'`,new n(e[i],new t(this,i,i+1)));var o=a[6]||a[3]||(a[2]?`\\ `:` `);if(this.catcodes[o]===14){var s=e.indexOf(` +`,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict(`commentAtEnd`,`% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)`)):this.tokenRegex.lastIndex=s+1,this.lex()}return new n(o,new t(this,i,this.tokenRegex.lastIndex))}},Pi=class{static{e(this,`Namespace`)}constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new r(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}},Fi=Ir;$(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),$(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),$(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),$(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),$(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),$(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),$(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Ii={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};$(`\\char`,function(e){var t=e.popToken(),n,i=``;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]===`\\`)i=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new r("\\char` missing argument");else i=t.text.charCodeAt(0);else n=10;if(n){if(i=Ii[t.text],i==null||i>=n)throw new r(`Invalid base-`+n+` digit `+t.text);for(var a;(a=Ii[e.future().text])!=null&&a{var a=e.consumeArg().tokens;if(a.length!==1)throw new r(`\\newcommand's first argument must be a macro name`);var o=a[0].text,s=e.isDefined(o);if(s&&!t)throw new r(`\\newcommand{`+o+`} attempting to redefine `+(o+`; use \\renewcommand`));if(!s&&!n)throw new r(`\\renewcommand{`+o+`} when command `+o+` does not yet exist; use \\newcommand`);var c=0;if(a=e.consumeArg().tokens,a.length===1&&a[0].text===`[`){for(var l=``,u=e.expandNextToken();u.text!==`]`&&u.text!==`EOF`;)l+=u.text,u=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new r(`Invalid number of arguments: `+l);c=parseInt(l),a=e.consumeArg().tokens}return s&&i||e.macros.set(o,{tokens:a,numArgs:c}),``},`newcommand`);$(`\\newcommand`,e=>Li(e,!1,!0,!1)),$(`\\renewcommand`,e=>Li(e,!0,!1,!1)),$(`\\providecommand`,e=>Li(e,!0,!0,!0)),$(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),$(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),$(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),wi[n],A.math[n],A.text[n]),``}),$(`\\bgroup`,`{`),$(`\\egroup`,`}`),$(`~`,`\\nobreakspace`),$(`\\lq`,"`"),$(`\\rq`,`'`),$(`\\aa`,`\\r a`),$(`\\AA`,`\\r A`),$(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),$(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),$(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),$(`ℬ`,`\\mathscr{B}`),$(`ℰ`,`\\mathscr{E}`),$(`ℱ`,`\\mathscr{F}`),$(`ℋ`,`\\mathscr{H}`),$(`ℐ`,`\\mathscr{I}`),$(`ℒ`,`\\mathscr{L}`),$(`ℳ`,`\\mathscr{M}`),$(`ℛ`,`\\mathscr{R}`),$(`ℭ`,`\\mathfrak{C}`),$(`ℌ`,`\\mathfrak{H}`),$(`ℨ`,`\\mathfrak{Z}`),$(`\\Bbbk`,`\\Bbb{k}`),$(`·`,`\\cdotp`),$(`\\llap`,`\\mathllap{\\textrm{#1}}`),$(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),$(`\\clap`,`\\mathclap{\\textrm{#1}}`),$(`\\mathstrut`,`\\vphantom{(}`),$(`\\underbar`,`\\underline{\\text{#1}}`),$(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}`),$(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),$(`\\ne`,`\\neq`),$(`≠`,`\\neq`),$(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),$(`∉`,`\\notin`),$(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),$(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),$(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),$(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),$(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),$(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),$(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),$(`⟂`,`\\perp`),$(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),$(`∌`,`\\notni`),$(`⌜`,`\\ulcorner`),$(`⌝`,`\\urcorner`),$(`⌞`,`\\llcorner`),$(`⌟`,`\\lrcorner`),$(`©`,`\\copyright`),$(`®`,`\\textregistered`),$(`️`,`\\textregistered`),$(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),$(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),$(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),$(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),$(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),$(`⋮`,`\\vdots`),$(`\\varGamma`,`\\mathit{\\Gamma}`),$(`\\varDelta`,`\\mathit{\\Delta}`),$(`\\varTheta`,`\\mathit{\\Theta}`),$(`\\varLambda`,`\\mathit{\\Lambda}`),$(`\\varXi`,`\\mathit{\\Xi}`),$(`\\varPi`,`\\mathit{\\Pi}`),$(`\\varSigma`,`\\mathit{\\Sigma}`),$(`\\varUpsilon`,`\\mathit{\\Upsilon}`),$(`\\varPhi`,`\\mathit{\\Phi}`),$(`\\varPsi`,`\\mathit{\\Psi}`),$(`\\varOmega`,`\\mathit{\\Omega}`),$(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),$(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),$(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),$(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),$(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),$(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),$(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),$(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`);var Ri={",":`\\dotsc`,"\\not":`\\dotsb`,"+":`\\dotsb`,"=":`\\dotsb`,"<":`\\dotsb`,">":`\\dotsb`,"-":`\\dotsb`,"*":`\\dotsb`,":":`\\dotsb`,"\\DOTSB":`\\dotsb`,"\\coprod":`\\dotsb`,"\\bigvee":`\\dotsb`,"\\bigwedge":`\\dotsb`,"\\biguplus":`\\dotsb`,"\\bigcap":`\\dotsb`,"\\bigcup":`\\dotsb`,"\\prod":`\\dotsb`,"\\sum":`\\dotsb`,"\\bigotimes":`\\dotsb`,"\\bigoplus":`\\dotsb`,"\\bigodot":`\\dotsb`,"\\bigsqcup":`\\dotsb`,"\\And":`\\dotsb`,"\\longrightarrow":`\\dotsb`,"\\Longrightarrow":`\\dotsb`,"\\longleftarrow":`\\dotsb`,"\\Longleftarrow":`\\dotsb`,"\\longleftrightarrow":`\\dotsb`,"\\Longleftrightarrow":`\\dotsb`,"\\mapsto":`\\dotsb`,"\\longmapsto":`\\dotsb`,"\\hookrightarrow":`\\dotsb`,"\\doteq":`\\dotsb`,"\\mathbin":`\\dotsb`,"\\mathrel":`\\dotsb`,"\\relbar":`\\dotsb`,"\\Relbar":`\\dotsb`,"\\xrightarrow":`\\dotsb`,"\\xleftarrow":`\\dotsb`,"\\DOTSI":`\\dotsi`,"\\int":`\\dotsi`,"\\oint":`\\dotsi`,"\\iint":`\\dotsi`,"\\iiint":`\\dotsi`,"\\iiiint":`\\dotsi`,"\\idotsint":`\\dotsi`,"\\DOTSX":`\\dotsx`};$(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in Ri?t=Ri[n]:(n.slice(0,4)===`\\not`||n in A.math&&[`bin`,`rel`].includes(A.math[n].group))&&(t=`\\dotsb`),t});var zi={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};$(`\\dotso`,function(e){return e.future().text in zi?`\\ldots\\,`:`\\ldots`}),$(`\\dotsc`,function(e){var t=e.future().text;return t in zi&&t!==`,`?`\\ldots\\,`:`\\ldots`}),$(`\\cdots`,function(e){return e.future().text in zi?`\\@cdots\\,`:`\\@cdots`}),$(`\\dotsb`,`\\cdots`),$(`\\dotsm`,`\\cdots`),$(`\\dotsi`,`\\!\\cdots`),$(`\\dotsx`,`\\ldots\\,`),$(`\\DOTSI`,`\\relax`),$(`\\DOTSB`,`\\relax`),$(`\\DOTSX`,`\\relax`),$(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),$(`\\,`,`\\tmspace+{3mu}{.1667em}`),$(`\\thinspace`,`\\,`),$(`\\>`,`\\mskip{4mu}`),$(`\\:`,`\\tmspace+{4mu}{.2222em}`),$(`\\medspace`,`\\:`),$(`\\;`,`\\tmspace+{5mu}{.2777em}`),$(`\\thickspace`,`\\;`),$(`\\!`,`\\tmspace-{3mu}{.1667em}`),$(`\\negthinspace`,`\\!`),$(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),$(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),$(`\\enspace`,`\\kern.5em `),$(`\\enskip`,`\\hskip.5em\\relax`),$(`\\quad`,`\\hskip1em\\relax`),$(`\\qquad`,`\\hskip2em\\relax`),$(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),$(`\\tag@paren`,`\\tag@literal{({#1})}`),$(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new r(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),$(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),$(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),$(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),$(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),$(`\\newline`,`\\\\\\relax`),$(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`);var Bi=k(Ce[`Main-Regular`][84][1]-.7*Ce[`Main-Regular`][65][1]);$(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+Bi+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),$(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+Bi+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),$(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),$(`\\@hspace`,`\\hskip #1\\relax`),$(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),$(`\\ordinarycolon`,`:`),$(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),$(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),$(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),$(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),$(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),$(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),$(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),$(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),$(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),$(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),$(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),$(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),$(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),$(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),$(`∷`,`\\dblcolon`),$(`∹`,`\\eqcolon`),$(`≔`,`\\coloneqq`),$(`≕`,`\\eqqcolon`),$(`⩴`,`\\Coloneqq`),$(`\\ratio`,`\\vcentcolon`),$(`\\coloncolon`,`\\dblcolon`),$(`\\colonequals`,`\\coloneqq`),$(`\\coloncolonequals`,`\\Coloneqq`),$(`\\equalscolon`,`\\eqqcolon`),$(`\\equalscoloncolon`,`\\Eqqcolon`),$(`\\colonminus`,`\\coloneq`),$(`\\coloncolonminus`,`\\Coloneq`),$(`\\minuscolon`,`\\eqcolon`),$(`\\minuscoloncolon`,`\\Eqcolon`),$(`\\coloncolonapprox`,`\\Colonapprox`),$(`\\coloncolonsim`,`\\Colonsim`),$(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),$(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),$(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),$(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),$(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),$(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),$(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),$(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),$(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),$(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),$(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),$(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),$(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),$(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),$(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),$(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),$(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),$(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),$(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),$(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),$(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),$(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),$(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),$(`\\imath`,`\\html@mathml{\\@imath}{ı}`),$(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),$(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),$(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),$(`⟦`,`\\llbracket`),$(`⟧`,`\\rrbracket`),$(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),$(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),$(`⦃`,`\\lBrace`),$(`⦄`,`\\rBrace`),$(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),$(`⦵`,`\\minuso`),$(`\\darr`,`\\downarrow`),$(`\\dArr`,`\\Downarrow`),$(`\\Darr`,`\\Downarrow`),$(`\\lang`,`\\langle`),$(`\\rang`,`\\rangle`),$(`\\uarr`,`\\uparrow`),$(`\\uArr`,`\\Uparrow`),$(`\\Uarr`,`\\Uparrow`),$(`\\N`,`\\mathbb{N}`),$(`\\R`,`\\mathbb{R}`),$(`\\Z`,`\\mathbb{Z}`),$(`\\alef`,`\\aleph`),$(`\\alefsym`,`\\aleph`),$(`\\Alpha`,`\\mathrm{A}`),$(`\\Beta`,`\\mathrm{B}`),$(`\\bull`,`\\bullet`),$(`\\Chi`,`\\mathrm{X}`),$(`\\clubs`,`\\clubsuit`),$(`\\cnums`,`\\mathbb{C}`),$(`\\Complex`,`\\mathbb{C}`),$(`\\Dagger`,`\\ddagger`),$(`\\diamonds`,`\\diamondsuit`),$(`\\empty`,`\\emptyset`),$(`\\Epsilon`,`\\mathrm{E}`),$(`\\Eta`,`\\mathrm{H}`),$(`\\exist`,`\\exists`),$(`\\harr`,`\\leftrightarrow`),$(`\\hArr`,`\\Leftrightarrow`),$(`\\Harr`,`\\Leftrightarrow`),$(`\\hearts`,`\\heartsuit`),$(`\\image`,`\\Im`),$(`\\infin`,`\\infty`),$(`\\Iota`,`\\mathrm{I}`),$(`\\isin`,`\\in`),$(`\\Kappa`,`\\mathrm{K}`),$(`\\larr`,`\\leftarrow`),$(`\\lArr`,`\\Leftarrow`),$(`\\Larr`,`\\Leftarrow`),$(`\\lrarr`,`\\leftrightarrow`),$(`\\lrArr`,`\\Leftrightarrow`),$(`\\Lrarr`,`\\Leftrightarrow`),$(`\\Mu`,`\\mathrm{M}`),$(`\\natnums`,`\\mathbb{N}`),$(`\\Nu`,`\\mathrm{N}`),$(`\\Omicron`,`\\mathrm{O}`),$(`\\plusmn`,`\\pm`),$(`\\rarr`,`\\rightarrow`),$(`\\rArr`,`\\Rightarrow`),$(`\\Rarr`,`\\Rightarrow`),$(`\\real`,`\\Re`),$(`\\reals`,`\\mathbb{R}`),$(`\\Reals`,`\\mathbb{R}`),$(`\\Rho`,`\\mathrm{P}`),$(`\\sdot`,`\\cdot`),$(`\\sect`,`\\S`),$(`\\spades`,`\\spadesuit`),$(`\\sub`,`\\subset`),$(`\\sube`,`\\subseteq`),$(`\\supe`,`\\supseteq`),$(`\\Tau`,`\\mathrm{T}`),$(`\\thetasym`,`\\vartheta`),$(`\\weierp`,`\\wp`),$(`\\Zeta`,`\\mathrm{Z}`),$(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),$(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),$(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),$(`\\bra`,`\\mathinner{\\langle{#1}|}`),$(`\\ket`,`\\mathinner{|{#1}\\rangle}`),$(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),$(`\\Bra`,`\\left\\langle#1\\right|`),$(`\\Ket`,`\\left|#1\\right\\rangle`);var Vi=e(t=>n=>{var r=n.consumeArg().tokens,i=n.consumeArg().tokens,a=n.consumeArg().tokens,o=n.consumeArg().tokens,s=n.macros.get(`|`),c=n.macros.get(`\\|`);n.macros.beginGroup();var l=e(e=>n=>{t&&(n.macros.set(`|`,s),a.length&&n.macros.set(`\\|`,c));var r=e;return!e&&a.length&&n.future().text===`|`&&(n.popToken(),r=!0),{tokens:r?a:i,numArgs:0}},`midMacro`);n.macros.set(`|`,l(!1)),a.length&&n.macros.set(`\\|`,l(!0));var u=n.consumeArg().tokens,d=n.expandTokens([...o,...u,...r]);return n.macros.endGroup(),{tokens:d.reverse(),numArgs:0}},`braketHelper`);$(`\\bra@ket`,Vi(!1)),$(`\\bra@set`,Vi(!0)),$(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),$(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),$(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),$(`\\angln`,`{\\angl n}`),$(`\\blue`,`\\textcolor{##6495ed}{#1}`),$(`\\orange`,`\\textcolor{##ffa500}{#1}`),$(`\\pink`,`\\textcolor{##ff00af}{#1}`),$(`\\red`,`\\textcolor{##df0030}{#1}`),$(`\\green`,`\\textcolor{##28ae7b}{#1}`),$(`\\gray`,`\\textcolor{gray}{#1}`),$(`\\purple`,`\\textcolor{##9d38bd}{#1}`),$(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),$(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),$(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),$(`\\blueD`,`\\textcolor{##11accd}{#1}`),$(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),$(`\\tealA`,`\\textcolor{##94fff5}{#1}`),$(`\\tealB`,`\\textcolor{##26edd5}{#1}`),$(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),$(`\\tealD`,`\\textcolor{##01a995}{#1}`),$(`\\tealE`,`\\textcolor{##208170}{#1}`),$(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),$(`\\greenB`,`\\textcolor{##8af281}{#1}`),$(`\\greenC`,`\\textcolor{##74cf70}{#1}`),$(`\\greenD`,`\\textcolor{##1fab54}{#1}`),$(`\\greenE`,`\\textcolor{##0d923f}{#1}`),$(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),$(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),$(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),$(`\\goldD`,`\\textcolor{##e07d10}{#1}`),$(`\\goldE`,`\\textcolor{##a75a05}{#1}`),$(`\\redA`,`\\textcolor{##fca9a9}{#1}`),$(`\\redB`,`\\textcolor{##ff8482}{#1}`),$(`\\redC`,`\\textcolor{##f9685d}{#1}`),$(`\\redD`,`\\textcolor{##e84d39}{#1}`),$(`\\redE`,`\\textcolor{##bc2612}{#1}`),$(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),$(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),$(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),$(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),$(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),$(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),$(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),$(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),$(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),$(`\\purpleE`,`\\textcolor{##543b78}{#1}`),$(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),$(`\\mintB`,`\\textcolor{##edf2df}{#1}`),$(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),$(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),$(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),$(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),$(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),$(`\\grayE`,`\\textcolor{##babec2}{#1}`),$(`\\grayF`,`\\textcolor{##888d93}{#1}`),$(`\\grayG`,`\\textcolor{##626569}{#1}`),$(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),$(`\\grayI`,`\\textcolor{##21242c}{#1}`),$(`\\kaBlue`,`\\textcolor{##314453}{#1}`),$(`\\kaGreen`,`\\textcolor{##71B307}{#1}`);var Hi={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Ui=class{static{e(this,`MacroExpander`)}constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Pi(Fi,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Ni(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var r,i,a;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;r=this.popToken(),{tokens:a,end:i}=this.consumeArg([`]`])}else ({tokens:a,start:r,end:i}=this.consumeArg());return this.pushToken(new n(`EOF`,i.loc)),this.pushTokens(a),new n(``,t.range(r,i))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var i=this.future(),a,o=0,s=0;do{if(a=this.popToken(),t.push(a),a.text===`{`)++o;else if(a.text===`}`){if(--o,o===-1)throw new r(`Extra }`,a)}else if(a.text===`EOF`)throw new r(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[s]:`}`)+`'`,a);if(e&&n)if((o===0||o===1&&e[s]===`{`)&&a.text===e[s]){if(++s,s===e.length){t.splice(-s,s);break}}else s=0}while(o!==0||n);return i.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:i,end:a}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new r(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],i=0;ithis.settings.maxExpand)throw new r(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,i=t.noexpand?null:this._getExpansion(n);if(i==null||e&&i.unexpandable){if(e&&i==null&&n[0]===`\\`&&!this.isDefined(n))throw new r(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var a=i.tokens,o=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var s=a.length-1;s>=0;--s){var c=a[s];if(c.text===`#`){if(s===0)throw new r(`Incomplete placeholder at end of macro body`,c);if(c=a[--s],c.text===`#`)a.splice(s+1,1);else if(/^[1-9]$/.test(c.text))a.splice(s,2,...o[c.text-1]);else throw new r(`Not a valid argument number`,c)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text=`\\relax`),e}throw Error()}expandMacro(e){return this.macros.has(e)?this.expandTokens([new n(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.indexOf(`#`)!==-1)for(var a=r.replace(/##/g,``);a.indexOf(`#`+(i+1))!==-1;)++i;for(var o=new Ni(r,this.settings),s=[],c=o.lex();c.text!==`EOF`;)s.push(c),c=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||wi.hasOwnProperty(e)||A.math.hasOwnProperty(e)||A.text.hasOwnProperty(e)||Hi.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t==null?wi.hasOwnProperty(e)&&!wi[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},Wi=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Gi=Object.freeze({"₊":`+`,"₋":`-`,"₌":`=`,"₍":`(`,"₎":`)`,"₀":`0`,"₁":`1`,"₂":`2`,"₃":`3`,"₄":`4`,"₅":`5`,"₆":`6`,"₇":`7`,"₈":`8`,"₉":`9`,ₐ:`a`,ₑ:`e`,ₕ:`h`,ᵢ:`i`,ⱼ:`j`,ₖ:`k`,ₗ:`l`,ₘ:`m`,ₙ:`n`,ₒ:`o`,ₚ:`p`,ᵣ:`r`,ₛ:`s`,ₜ:`t`,ᵤ:`u`,ᵥ:`v`,ₓ:`x`,ᵦ:`β`,ᵧ:`γ`,ᵨ:`ρ`,ᵩ:`ϕ`,ᵪ:`χ`,"⁺":`+`,"⁻":`-`,"⁼":`=`,"⁽":`(`,"⁾":`)`,"⁰":`0`,"¹":`1`,"²":`2`,"³":`3`,"⁴":`4`,"⁵":`5`,"⁶":`6`,"⁷":`7`,"⁸":`8`,"⁹":`9`,ᴬ:`A`,ᴮ:`B`,ᴰ:`D`,ᴱ:`E`,ᴳ:`G`,ᴴ:`H`,ᴵ:`I`,ᴶ:`J`,ᴷ:`K`,ᴸ:`L`,ᴹ:`M`,ᴺ:`N`,ᴼ:`O`,ᴾ:`P`,ᴿ:`R`,ᵀ:`T`,ᵁ:`U`,ⱽ:`V`,ᵂ:`W`,ᵃ:`a`,ᵇ:`b`,ᶜ:`c`,ᵈ:`d`,ᵉ:`e`,ᶠ:`f`,ᵍ:`g`,ʰ:`h`,ⁱ:`i`,ʲ:`j`,ᵏ:`k`,ˡ:`l`,ᵐ:`m`,ⁿ:`n`,ᵒ:`o`,ᵖ:`p`,ʳ:`r`,ˢ:`s`,ᵗ:`t`,ᵘ:`u`,ᵛ:`v`,ʷ:`w`,ˣ:`x`,ʸ:`y`,ᶻ:`z`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),Ki={"́":{text:`\\'`,math:`\\acute`},"̀":{text:"\\`",math:`\\grave`},"̈":{text:`\\"`,math:`\\ddot`},"̃":{text:`\\~`,math:`\\tilde`},"̄":{text:`\\=`,math:`\\bar`},"̆":{text:`\\u`,math:`\\breve`},"̌":{text:`\\v`,math:`\\check`},"̂":{text:`\\^`,math:`\\hat`},"̇":{text:`\\.`,math:`\\dot`},"̊":{text:`\\r`,math:`\\mathring`},"̋":{text:`\\H`},"̧":{text:`\\c`}},qi={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},Ji=class i{static{e(this,`Parser`)}constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new Ui(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new r(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken??=this.gullet.expandNextToken(),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set(`\\color`,`\\textcolor`);try{var e=this.parseExpression(!1);return this.expect(`EOF`),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new n(`}`)),this.gullet.pushTokens(e);var r=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,r}parseExpression(e,t){for(var n=[];;){this.mode===`math`&&this.consumeSpaces();var r=this.fetch();if(i.endOfExpression.indexOf(r.text)!==-1||t&&r.text===t||e&&wi[r.text]&&wi[r.text].infix)break;var a=this.parseAtom(t);if(!a)break;a.type!==`internal`&&n.push(a)}return this.mode===`text`&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var t=-1,n,i=0;i=0&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Latin-1/Unicode text character "`+n[0]+`" used in math mode`,e);var c=A[this.mode][n].group,l=t.range(e),u;if(Qe.hasOwnProperty(c)){var d=c;u={type:`atom`,mode:this.mode,family:d,loc:l,text:n}}else u={type:c,mode:this.mode,loc:l,text:n};s=u}else if(n.charCodeAt(0)>=128)this.settings.strict&&(le(n.charCodeAt(0))?this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Unicode text character "`+n[0]+`" used in math mode`,e):this.settings.reportNonstrict(`unknownSymbol`,`Unrecognized Unicode character "`+n[0]+`"`+(` (`+n.charCodeAt(0)+`)`),e)),s={type:`textord`,mode:`text`,loc:t.range(e),text:n};else return null;if(this.consume(),o)for(var f=0;f{let m=d;return t(),c(f,a(r(s(u)(s(b),1))),{default:e(()=>[p[1]||=o(`h1`,null,`What is Machine Learning?`,-1),p[2]||=o(`p`,null,`Machine learning enables systems to learn from data without explicit programming.`,-1),n(m,null,{default:e(()=>[...p[0]||=[o(`ul`,null,[o(`li`,null,[o(`strong`,null,`Pattern Recognition`),i(`: Discovers patterns in data automatically`)]),o(`li`,null,[o(`strong`,null,`Continuous Improvement`),i(`: Performance improves with more data`)]),o(`li`,null,[o(`strong`,null,`Automation`),i(`: Reduces manual rule creation`)]),o(`li`,null,[o(`strong`,null,`Adaptability`),i(`: Adjusts to new situations`)])],-1)]]),_:1})]),_:1},16)}}};export{p as default}; \ No newline at end of file diff --git a/docs/dist/assets/md-BbhCIpoP.js b/docs/dist/assets/md-BbhCIpoP.js deleted file mode 100644 index 2bcb01a8..00000000 --- a/docs/dist/assets/md-BbhCIpoP.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as e,B as t,D as n,bt as r,v as i,vt as a,y as o}from"./modules/shiki-yoNnvMyB.js";import{nt as s,tt as c}from"./index-hODKC6Hw.js";import{t as l}from"./slidev/center-fwMEwbLV.js";var u={__name:`test-slidev-manual.md__slidev_5`,setup(u){let{$slidev:d,$nav:f,$clicksContext:p,$clicks:m,$page:h,$renderContext:g,$frontmatter:_}=s();return p.setup(),(s,u)=>(t(),o(l,r(n(a(c)(a(_),4))),{default:e(()=>[...u[0]||=[i(`h1`,null,`Deep Learning`,-1),i(`div`,{class:`text-6xl my-4`},` 🧠 `,-1),i(`p`,null,`Neural networks with multiple layers that excel at complex pattern recognition`,-1)]]),_:1},16))}};export{u as default}; \ No newline at end of file diff --git a/docs/dist/assets/md-CXiE5qPE.js b/docs/dist/assets/md-CXiE5qPE.js new file mode 100644 index 00000000..b057d584 --- /dev/null +++ b/docs/dist/assets/md-CXiE5qPE.js @@ -0,0 +1 @@ +import{E as e,Q as t,_ as n,_t as r,v as i,x as a,yt as o,z as s}from"./modules/shiki-BmLmNVDB.js";import{nt as c,rt as l}from"./index-BEBAY2Mg.js";import{t as u}from"./slidev/default-CswKUK6M.js";var d={__name:`test-presentation.md__slidev_5`,setup(d){let{$slidev:f,$nav:p,$clicksContext:m,$clicks:h,$page:g,$renderContext:_,$frontmatter:v}=l();return m.setup(),(l,d)=>(s(),i(u,o(e(r(c)(r(v),4))),{default:t(()=>[...d[0]||=[n(`h1`,null,`Final Test`,-1),n(`p`,null,`Thank you for testing!`,-1),n(`p`,null,[n(`strong`,null,`What we tested:`)],-1),n(`ol`,null,[n(`li`,null,`Export from Obsidian vault`),n(`li`,null,`Standalone bundle generation`),n(`li`,null,`File protocol compatibility`),n(`li`,null,`All Slidev features`)],-1),n(`p`,null,[a(`🎉 `),n(`strong`,null,`Success!`)],-1)]]),_:1},16))}};export{d as default}; \ No newline at end of file diff --git a/docs/dist/assets/md-CgEFMm-d.js b/docs/dist/assets/md-CgEFMm-d.js deleted file mode 100644 index 985fe0c4..00000000 --- a/docs/dist/assets/md-CgEFMm-d.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as e,B as t,D as n,bt as r,v as i,vt as a,y as o}from"./modules/shiki-yoNnvMyB.js";import{nt as s,tt as c}from"./index-hODKC6Hw.js";import{t as l}from"./slidev/default-BuNamc3V.js";var u={__name:`test-slidev-manual.md__slidev_4`,setup(u){let{$slidev:d,$nav:f,$clicksContext:p,$clicks:m,$page:h,$renderContext:g,$frontmatter:_}=s();return p.setup(),(s,u)=>(t(),o(l,r(n(a(c)(a(_),3))),{default:e(()=>[...u[0]||=[i(`h1`,null,`Unsupervised Learning`,-1),i(`p`,null,`Discover hidden patterns in unlabeled data`,-1),i(`div`,{grid:`~ cols-2 gap-4`},[i(`div`,null,[i(`h2`,null,`Clustering`),i(`ul`,null,[i(`li`,null,`Group similar items`),i(`li`,null,`Customer segmentation`),i(`li`,null,`Document organization`)])]),i(`div`,null,[i(`h2`,null,`Dimensionality Reduction`),i(`ul`,null,[i(`li`,null,`Compress data`),i(`li`,null,`Visualization`),i(`li`,null,`Feature extraction`)])])],-1)]]),_:1},16))}};export{u as default}; \ No newline at end of file diff --git a/docs/dist/assets/md-Cl2ivKeZ.js b/docs/dist/assets/md-Cl2ivKeZ.js new file mode 100644 index 00000000..7b088f36 --- /dev/null +++ b/docs/dist/assets/md-Cl2ivKeZ.js @@ -0,0 +1,9 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/c4Diagram-MWKDPP7W-B4gqPfDM.js","assets/chunk-7TFACZ55-BO7C1qvL.js","assets/chunk-PTVI3W5X-DVfdoxm6.js","assets/chunk-BSZA5ISF-LqNHBHyp.js","assets/chunk-Q52JI7PB-BeSPinqD.js","assets/index-BEBAY2Mg.js","assets/_plugin-vue_export-helper-BDNMzG2s.js","assets/rolldown-runtime-QTnfLwEv.js","assets/slidev/env-DWr22PMh.js","assets/utils-T1it7q9-.js","assets/modules/shiki-BmLmNVDB.js","assets/modules/shiki-BrmBd2_v.css","assets/modules/vue-5vwy5Re_.js","assets/slidev/useClicks-C2yK8i93.js","assets/index-JRGd7JqD.css","assets/chunk-V7P66DNM-D246Sefn.js","assets/chunk-O4A3IS3O-BIKKhWCb.js","assets/flowDiagram-3HAHYXQ6-CUkRnLXc.js","assets/chunk-7723GVCQ-CfHgq7qP.js","assets/chunk-GTILCTU2-D-9HFTK6.js","assets/chunk-HQMLCRZ6-HgqAiHMi.js","assets/chunk-PLCLPJVV-rGjVDjLw.js","assets/chunk-SZ5Y56Q4-Bki2Aicm.js","assets/chunk-YSJUE5HW-eH4JtoEG.js","assets/chunk-KEUPHFFI-DMlFzrf2.js","assets/chunk-PWCFYZI5-BQGIuzFC.js","assets/chunk-RTBOCTTP-BZPyT8j-.js","assets/chunk-RTI7CJYH-CrTK6TD7.js","assets/chunk-SNQTKDUU-CQmHT9KX.js","assets/chunk-TRQY2T3P-DxnI4jXA.js","assets/erDiagram-T2DQBZM5-C8AUcwiF.js","assets/gitGraphDiagram-6WOFZIJB-Eotd4PqX.js","assets/chunk-BBDM4ZFP-DhnAO8sj.js","assets/chunk-6ZKBGPIT-B4RTUexp.js","assets/chunk-IALYP65X-Bv3ioVcB.js","assets/ganttDiagram-2ISF3G2B-DZcsr_tz.js","assets/infoDiagram-EYWOMQDI-BJ8tSyXV.js","assets/chunk-PUIB63ON-iBBh92CL.js","assets/pieDiagram-2C4A3L6T-D9TqfYOw.js","assets/quadrantDiagram-K3KQ5NL4-CSkM0GVH.js","assets/xychartDiagram-2MMURBJR-DRRLGK8k.js","assets/requirementDiagram-WYUPVDHP-OQ_zciRf.js","assets/sequenceDiagram-37ID66UD-CbxdgltU.js","assets/classDiagram-SEOGYEGJ-DtufOZgx.js","assets/chunk-VFD24L5A-DOz8HER0.js","assets/classDiagram-v2-AOBZDD47-DtufOZgx.js","assets/stateDiagram-FKBH27AD-wg29hInV.js","assets/chunk-L44QOBYK-BUo4Kp3w.js","assets/chunk-T5XCKZAJ-Dtmpyu6x.js","assets/chunk-XAKTCX7R-ChjAedyW.js","assets/stateDiagram-v2-PT3EUVB6-CnIolAzq.js","assets/journeyDiagram-MYZUOU3L-C0LOb0yK.js","assets/timeline-definition-VWZII4OX-BKomOEmI.js","assets/mindmap-definition-AITDCVNG-vBLswTWc.js","assets/kanban-definition-ERDM4LRJ-BWJtwu8J.js","assets/sankeyDiagram-TAHJUD2B-qMV_bEeK.js","assets/diagram-N34NG4AO-Ce2IMmXG.js","assets/diagram-ZEGC52LS-D6s9aonb.js","assets/blockDiagram-DM4EUEQ4-DWhoBwG_.js","assets/diagram-CAG56N7L-xpVb9jbo.js","assets/architectureDiagram-BSNNHI6N-zY0Hknmz.js","assets/chunk-234R4QNB-By2FNiLO.js","assets/diagram-AU3YPP64-Bsy6zzMO.js","assets/ishikawaDiagram-RFIIXC3A-Cq2QwUE1.js","assets/vennDiagram-CDPVD3PM-D6Ru9b0A.js","assets/diagram-OKXK7GIF-BJX4wcF0.js","assets/wardleyDiagram-OB3YXH5L-B0fZBZtL.js"])))=>i.map(i=>d[i]); +import{r as e,t}from"./rolldown-runtime-QTnfLwEv.js";import{E as n,Q as r,S as i,T as a,X as o,Y as s,_ as c,_t as l,b as u,g as d,lt as f,v as p,w as m,xt as h,yt as g,z as _}from"./modules/shiki-BmLmNVDB.js";import{a as v,i as y}from"./utils-T1it7q9-.js";import{g as b,ht as x,nt as S,p as C,rt as ee}from"./index-BEBAY2Mg.js";import{t as te}from"./slidev/default-CswKUK6M.js";import{r as w}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{I as T,L as ne,T as E}from"./chunk-V7P66DNM-D246Sefn.js";import{$ as D,D as re,L as ie,O as ae,R as O,S as k,T as oe,U as se,V as A,X as ce,at as le,f as ue,g as de,h as fe,l as pe,n as me,nt as he,q as ge,r as _e,rt as ve,t as ye,u as be,v as xe,w as Se,y as Ce,z as we}from"./chunk-Q52JI7PB-BeSPinqD.js";import{t as Te}from"./chunk-PUIB63ON-iBBh92CL.js";import{n as Ee,t as De}from"./chunk-PWCFYZI5-BQGIuzFC.js";import"./chunk-PLCLPJVV-rGjVDjLw.js";import"./chunk-GTILCTU2-D-9HFTK6.js";import"./chunk-7TFACZ55-BO7C1qvL.js";import{_ as Oe,i as ke,m as Ae,o as je,p as Me,s as Ne,v as j}from"./chunk-BSZA5ISF-LqNHBHyp.js";import"./chunk-SZ5Y56Q4-Bki2Aicm.js";import{a as Pe,r as Fe}from"./chunk-YSJUE5HW-eH4JtoEG.js";import"./chunk-HQMLCRZ6-HgqAiHMi.js";import"./chunk-RTI7CJYH-CrTK6TD7.js";import"./chunk-TRQY2T3P-DxnI4jXA.js";import{n as Ie}from"./chunk-SNQTKDUU-CQmHT9KX.js";var Le=m({__name:`ShadowRoot`,props:{innerHtml:{}},emits:[`shadow`],setup(e,{emit:t}){let n=e,r=t,i=f(),a=d(()=>i.value?i.value.shadowRoot||i.value.attachShadow({mode:`open`}):null);return o(()=>{a.value&&n.innerHtml&&(r(`shadow`,a.value),a.value.innerHTML=n.innerHtml)}),(e,t)=>(_(),u(`div`,{ref_key:`el`,ref:i},null,512))}}),Re=e(t(((e,t)=>{var n=(function(){var e=String.fromCharCode,t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`,n=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$`,r={};function i(e,t){if(!r[e]){r[e]={};for(var n=0;n>>8,n[r*2+1]=o%256}return n},decompressFromUint8Array:function(t){if(t==null)return a.decompress(t);for(var n=Array(t.length/2),r=0,i=n.length;r>=1}else{for(i=1,r=0;r>=1}u--,u==0&&(u=2**f,f++),delete o[l]}else for(i=a[l],r=0;r>=1;u--,u==0&&(u=2**f,f++),a[c]=d++,l=String(s)}if(l!==``){if(Object.prototype.hasOwnProperty.call(o,l)){if(l.charCodeAt(0)<256){for(r=0;r>=1}else{for(i=1,r=0;r>=1}u--,u==0&&(u=2**f,f++),delete o[l]}else for(i=a[l],r=0;r>=1;u--,u==0&&(u=2**f,f++)}for(i=2,r=0;r>=1;for(;;)if(m<<=1,h==t-1){p.push(n(m));break}else h++;return p.join(``)},decompress:function(e){return e==null?``:e==``?null:a._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(t,n,r){var i=[],a=4,o=4,s=3,c=``,l=[],u,d,f,p,m,h,g,_={val:r(0),position:n,index:1};for(u=0;u<3;u+=1)i[u]=u;for(f=0,m=2**2,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=+(p>0)*h,h<<=1;switch(f){case 0:for(f=0,m=2**8,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=+(p>0)*h,h<<=1;g=e(f);break;case 1:for(f=0,m=2**16,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=+(p>0)*h,h<<=1;g=e(f);break;case 2:return``}for(i[3]=g,d=g,l.push(g);;){if(_.index>t)return``;for(f=0,m=2**s,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=+(p>0)*h,h<<=1;switch(g=f){case 0:for(f=0,m=2**8,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=+(p>0)*h,h<<=1;i[o++]=e(f),g=o-1,a--;break;case 1:for(f=0,m=2**16,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=+(p>0)*h,h<<=1;i[o++]=e(f),g=o-1,a--;break;case 2:return l.join(``)}if(a==0&&(a=2**s,s++),i[g])c=i[g];else if(g===o)c=d+d.charAt(0);else return null;l.push(c),i[o++]=d+c.charAt(0),a--,d=c,a==0&&(a=2**s,s++)}}};return a})();typeof define==`function`&&define.amd?define(function(){return n}):t!==void 0&&t!=null?t.exports=n:typeof angular<`u`&&angular!=null&&angular.module(`LZString`,[]).factory(`LZString`,function(){return n})}))(),1),ze=`c4`,Be={id:ze,detector:w(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./c4Diagram-MWKDPP7W-B4gqPfDM.js`);return{diagram:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]));return{id:ze,diagram:e}},`loader`)},Ve=`flowchart`,He={id:Ve,detector:w((e,t)=>t?.flowchart?.defaultRenderer===`dagre-wrapper`||t?.flowchart?.defaultRenderer===`elk`?!1:/^\s*graph/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./flowDiagram-3HAHYXQ6-CUkRnLXc.js`);return{diagram:e}},__vite__mapDeps([17,18,2,15,1,3,4,5,6,7,8,9,10,11,12,13,14,19,20,21,22,23,24,16,25,26,27,28,29]));return{id:Ve,diagram:e}},`loader`)},Ue=`flowchart-v2`,We={id:Ue,detector:w((e,t)=>t?.flowchart?.defaultRenderer===`dagre-d3`?!1:(t?.flowchart?.defaultRenderer===`elk`&&(t.layout=`elk`),/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer===`dagre-wrapper`?!0:/^\s*flowchart/.test(e)),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./flowDiagram-3HAHYXQ6-CUkRnLXc.js`);return{diagram:e}},__vite__mapDeps([17,18,2,15,1,3,4,5,6,7,8,9,10,11,12,13,14,19,20,21,22,23,24,16,25,26,27,28,29]));return{id:Ue,diagram:e}},`loader`)},Ge=`er`,Ke={id:Ge,detector:w(e=>/^\s*erDiagram/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./erDiagram-T2DQBZM5-C8AUcwiF.js`);return{diagram:e}},__vite__mapDeps([30,18,2,15,1,3,4,5,6,7,8,9,10,11,12,13,14,19,20,21,22,23,24,27,28,29]));return{id:Ge,diagram:e}},`loader`)},qe=`gitGraph`,Je={id:qe,detector:w(e=>/^\s*gitGraph/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./gitGraphDiagram-6WOFZIJB-Eotd4PqX.js`);return{diagram:e}},__vite__mapDeps([31,32,5,6,7,8,9,10,11,12,13,14,2,33,1,3,4,15,34]));return{id:qe,diagram:e}},`loader`)},Ye=`gantt`,Xe={id:Ye,detector:w(e=>/^\s*gantt/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./ganttDiagram-2ISF3G2B-DZcsr_tz.js`);return{diagram:e}},__vite__mapDeps([35,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]));return{id:Ye,diagram:e}},`loader`)},Ze=`info`,Qe={id:Ze,detector:w(e=>/^\s*info/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./infoDiagram-EYWOMQDI-BJ8tSyXV.js`);return{diagram:e}},__vite__mapDeps([36,32,5,6,7,8,9,10,11,12,13,14,2,37,4,15]));return{id:Ze,diagram:e}},`loader`)},$e=`pie`,et={id:$e,detector:w(e=>/^\s*pie/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./pieDiagram-2C4A3L6T-D9TqfYOw.js`);return{diagram:e}},__vite__mapDeps([38,32,5,6,7,8,9,10,11,12,13,14,2,33,1,3,4,15,37]));return{id:$e,diagram:e}},`loader`)},tt=`quadrantChart`,nt={id:tt,detector:w(e=>/^\s*quadrantChart/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./quadrantDiagram-K3KQ5NL4-CSkM0GVH.js`);return{diagram:e}},__vite__mapDeps([39,2,4,5,6,7,8,9,10,11,12,13,14,15]));return{id:tt,diagram:e}},`loader`)},rt=`xychart`,it={id:rt,detector:w(e=>/^\s*xychart(-beta)?/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./xychartDiagram-2MMURBJR-DRRLGK8k.js`);return{diagram:e}},__vite__mapDeps([40,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,37,23]));return{id:rt,diagram:e}},`loader`)},at=`requirement`,ot={id:at,detector:w(e=>/^\s*requirement(Diagram)?/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./requirementDiagram-WYUPVDHP-OQ_zciRf.js`);return{diagram:e}},__vite__mapDeps([41,18,2,15,1,3,4,5,6,7,8,9,10,11,12,13,14,19,20,21,22,23,24,27,28,29]));return{id:at,diagram:e}},`loader`)},st=`sequence`,ct={id:st,detector:w(e=>/^\s*sequenceDiagram/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./sequenceDiagram-37ID66UD-CbxdgltU.js`);return{diagram:e}},__vite__mapDeps([42,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,34,16,25]));return{id:st,diagram:e}},`loader`)},lt=`class`,ut={id:lt,detector:w((e,t)=>t?.class?.defaultRenderer===`dagre-wrapper`?!1:/^\s*classDiagram/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./classDiagram-SEOGYEGJ-DtufOZgx.js`);return{diagram:e}},__vite__mapDeps([43,18,2,15,1,3,4,5,6,7,8,9,10,11,12,13,14,19,20,21,22,23,24,16,27,28,29,44,26]));return{id:lt,diagram:e}},`loader`)},dt=`classDiagram`,ft={id:dt,detector:w((e,t)=>/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer===`dagre-wrapper`?!0:/^\s*classDiagram-v2/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./classDiagram-v2-AOBZDD47-DtufOZgx.js`);return{diagram:e}},__vite__mapDeps([45,18,2,15,1,3,4,5,6,7,8,9,10,11,12,13,14,19,20,21,22,23,24,16,27,28,29,44,26]));return{id:dt,diagram:e}},`loader`)},pt=`state`,mt={id:pt,detector:w((e,t)=>t?.state?.defaultRenderer===`dagre-wrapper`?!1:/^\s*stateDiagram/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./stateDiagram-FKBH27AD-wg29hInV.js`);return{diagram:e}},__vite__mapDeps([46,18,2,15,1,3,4,5,6,7,8,9,10,11,12,13,14,19,20,21,22,23,24,47,28,29,27,48,49]));return{id:pt,diagram:e}},`loader`)},ht=`stateDiagram`,gt={id:ht,detector:w((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer===`dagre-wrapper`),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./stateDiagram-v2-PT3EUVB6-CnIolAzq.js`);return{diagram:e}},__vite__mapDeps([50,18,2,15,1,3,4,5,6,7,8,9,10,11,12,13,14,19,20,21,22,23,24,47,28,29,27]));return{id:ht,diagram:e}},`loader`)},_t=`journey`,vt={id:_t,detector:w(e=>/^\s*journey/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./journeyDiagram-MYZUOU3L-C0LOb0yK.js`);return{diagram:e}},__vite__mapDeps([51,1,2,16,4,5,6,7,8,9,10,11,12,13,14,15,26]));return{id:_t,diagram:e}},`loader`)},yt={draw:w((e,t,n)=>{E.debug(`rendering svg for syntax error +`);let r=Te(t),i=r.append(`g`);r.attr(`viewBox`,`0 0 2412 512`),pe(r,100,512,!0),i.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z`),i.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z`),i.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z`),i.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z`),i.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z`),i.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z`),i.append(`text`).attr(`class`,`error-text`).attr(`x`,1440).attr(`y`,250).attr(`font-size`,`150px`).style(`text-anchor`,`middle`).text(`Syntax error in text`),i.append(`text`).attr(`class`,`error-text`).attr(`x`,1250).attr(`y`,400).attr(`font-size`,`100px`).style(`text-anchor`,`middle`).text(`mermaid version ${n}`)},`draw`)},bt=yt,xt={db:{},renderer:yt,parser:{parse:w(()=>{},`parse`)}},St=`flowchart-elk`,Ct={id:St,detector:w((e,t={})=>/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer===`elk`?(t.layout=`elk`,!0):!1,`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./flowDiagram-3HAHYXQ6-CUkRnLXc.js`);return{diagram:e}},__vite__mapDeps([17,18,2,15,1,3,4,5,6,7,8,9,10,11,12,13,14,19,20,21,22,23,24,16,25,26,27,28,29]));return{id:St,diagram:e}},`loader`)},wt=`timeline`,Tt={id:wt,detector:w(e=>/^\s*timeline/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./timeline-definition-VWZII4OX-BKomOEmI.js`);return{diagram:e}},__vite__mapDeps([52,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,37]));return{id:wt,diagram:e}},`loader`)},Et=`mindmap`,Dt={id:Et,detector:w(e=>/^\s*mindmap/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./mindmap-definition-AITDCVNG-vBLswTWc.js`);return{diagram:e}},__vite__mapDeps([53,18,2,15,1,3,4,5,6,7,8,9,10,11,12,13,14,19,20,21,22,23,24,27,28,29]));return{id:Et,diagram:e}},`loader`)},Ot=`kanban`,kt={id:Ot,detector:w(e=>/^\s*kanban/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./kanban-definition-ERDM4LRJ-BWJtwu8J.js`);return{diagram:e}},__vite__mapDeps([54,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,19,20,21,22,23,37,25,26]));return{id:Ot,diagram:e}},`loader`)},At=`sankey`,jt={id:At,detector:w(e=>/^\s*sankey(-beta)?/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./sankeyDiagram-TAHJUD2B-qMV_bEeK.js`);return{diagram:e}},__vite__mapDeps([55,2,4,5,6,7,8,9,10,11,12,13,14,15]));return{id:At,diagram:e}},`loader`)},Mt=`packet`,Nt={id:Mt,detector:w(e=>/^\s*packet(-beta)?/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./diagram-N34NG4AO-Ce2IMmXG.js`);return{diagram:e}},__vite__mapDeps([56,32,5,6,7,8,9,10,11,12,13,14,2,33,1,3,4,15,37]));return{id:Mt,diagram:e}},`loader`)},Pt=`radar`,Ft={id:Pt,detector:w(e=>/^\s*radar-beta/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./diagram-ZEGC52LS-D6s9aonb.js`);return{diagram:e}},__vite__mapDeps([57,32,5,6,7,8,9,10,11,12,13,14,2,33,1,3,4,15,37]));return{id:Pt,diagram:e}},`loader`)},It=`block`,Lt={id:It,detector:w(e=>/^\s*block(-beta)?/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./blockDiagram-DM4EUEQ4-DWhoBwG_.js`);return{diagram:e}},__vite__mapDeps([58,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,26,27,22,49,23]));return{id:It,diagram:e}},`loader`)},Rt=`treeView`,zt={id:Rt,detector:w(e=>/^\s*treeView-beta/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./diagram-CAG56N7L-xpVb9jbo.js`);return{diagram:e}},__vite__mapDeps([59,32,5,6,7,8,9,10,11,12,13,14,2,33,1,3,4,15,34,37]));return{id:Rt,diagram:e}},`loader`)},Bt=`architecture`,Vt={id:Bt,detector:w(e=>/^\s*architecture/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./architectureDiagram-BSNNHI6N-zY0Hknmz.js`);return{diagram:e}},__vite__mapDeps([60,61,2,32,5,6,7,8,9,10,11,12,13,14,33,1,3,4,15,37,23]));return{id:Bt,diagram:e}},`loader`)},Ht=`eventmodeling`,Ut={id:Ht,detector:w(e=>/^\s*eventmodeling/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./diagram-AU3YPP64-Bsy6zzMO.js`);return{diagram:e}},__vite__mapDeps([62,32,5,6,7,8,9,10,11,12,13,14,2,33,1,3,4,15]));return{id:Ht,diagram:e}},`loader`)},Wt=`ishikawa`,Gt={id:Wt,detector:w(e=>/^\s*ishikawa(-beta)?\b/i.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./ishikawaDiagram-RFIIXC3A-Cq2QwUE1.js`);return{diagram:e}},__vite__mapDeps([63,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,21,37]));return{id:Wt,diagram:e}},`loader`)},Kt=`venn`,qt={id:Kt,detector:w(e=>/^\s*venn-beta/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./vennDiagram-CDPVD3PM-D6Ru9b0A.js`);return{diagram:e}},__vite__mapDeps([64,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,21,37]));return{id:Kt,diagram:e}},`loader`)},Jt=`treemap`,Yt={id:Jt,detector:w(e=>/^\s*treemap/.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./diagram-OKXK7GIF-BJX4wcF0.js`);return{diagram:e}},__vite__mapDeps([65,32,5,6,7,8,9,10,11,12,13,14,2,33,1,3,4,15,19,24,37]));return{id:Jt,diagram:e}},`loader`)},Xt=`wardley-beta`,Zt={id:Xt,detector:w(e=>/^\s*wardley-beta/i.test(e),`detector`),loader:w(async()=>{let{diagram:e}=await x(async()=>{let{diagram:e}=await import(`./wardleyDiagram-OB3YXH5L-B0fZBZtL.js`);return{diagram:e}},__vite__mapDeps([66,32,5,6,7,8,9,10,11,12,13,14,2,33,1,3,4,15,37]));return{id:Xt,diagram:e}},`loader`)},Qt=!1,M=w(()=>{Qt||(Qt=!0,O(`error`,xt,e=>e.toLowerCase().trim()===`error`),O(`---`,{db:{clear:w(()=>{},`clear`)},styles:{},renderer:{draw:w(()=>{},`draw`)},parser:{parse:w(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},`parse`)},init:w(()=>null,`init`)},e=>e.toLowerCase().trimStart().startsWith(`---`)),we(Ct,Dt,Vt),we(Be,kt,ft,ut,Ke,Xe,Qe,et,ot,ct,We,He,Tt,Je,gt,mt,vt,nt,jt,Nt,it,Lt,Ut,zt,Ft,Gt,Yt,qt,Zt))},`addDiagrams`),$t=w(async()=>{E.debug(`Loading registered diagrams`);let e=(await Promise.allSettled(Object.entries(de).map(async([e,{detector:t,loader:n}])=>{if(n)try{Se(e)}catch{try{let{diagram:e,id:r}=await n();O(r,e,t)}catch(t){throw E.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete de[e],t}}}))).filter(e=>e.status===`rejected`);if(e.length>0){E.error(`Failed to load ${e.length} external diagrams`);for(let t of e)E.error(t);throw Error(`Failed to load ${e.length} external diagrams`)}},`loadRegisteredDiagrams`),en=`comm`,tn=`rule`,nn=`decl`,rn=`@media`,an=`@import`,on=`@supports`,sn=`@namespace`,cn=`@keyframes`,ln=`@layer`,un=`@scope`,dn=Math.abs,fn=String.fromCharCode;function pn(e){return e.trim()}w(pn,`trim`);function N(e,t,n){return e.replace(t,n)}w(N,`replace`);function mn(e,t,n){return e.indexOf(t,n)}w(mn,`indexof`);function P(e,t){return e.charCodeAt(t)|0}w(P,`charat`);function F(e,t,n){return e.slice(t,n)}w(F,`substr`);function I(e){return e.length}w(I,`strlen`);function hn(e){return e.length}w(hn,`sizeof`);function L(e,t){return t.push(e),e}w(L,`append`);var gn=1,R=1,_n=0,z=0,B=0,V=``;function H(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:gn,column:R,length:o,return:``,siblings:s}}w(H,`node`);function vn(){return B}w(vn,`char`);function yn(){return B=z>0?P(V,--z):0,R--,B===10&&(R=1,gn--),B}w(yn,`prev`);function U(){return B=z<_n?P(V,z++):0,R++,B===10&&(R=1,gn++),B}w(U,`next`);function W(){return P(V,z)}w(W,`peek`);function G(){return z}w(G,`caret`);function K(e,t){return F(V,e,t)}w(K,`slice`);function q(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}w(q,`token`);function bn(e){return gn=R=1,_n=I(V=e),z=0,[]}w(bn,`alloc`);function xn(e){return V=``,e}w(xn,`dealloc`);function J(e){return pn(K(z-1,Y(e===91?e+2:e===40?e+1:e)))}w(J,`delimit`);function Sn(e){for(;(B=W())&&B<33;)U();return q(e)>2||q(B)>3?``:` `}w(Sn,`whitespace`);function Cn(e,t){for(;--t&&U()&&!(B<48||B>102||B>57&&B<65||B>70&&B<97););return K(e,G()+(t<6&&W()==32&&U()==32))}w(Cn,`escaping`);function Y(e){for(;U();)switch(B){case e:return z;case 34:case 39:e!==34&&e!==39&&Y(B);break;case 40:e===41&&Y(e);break;case 92:U();break}return z}w(Y,`delimiter`);function wn(e,t){for(;U()&&e+B!==57&&!(e+B===84&&W()===47););return`/*`+K(t,z-1)+`*`+fn(e===47?e:U())}w(wn,`commenter`);function Tn(e){for(;!q(W());)U();return K(e,z)}w(Tn,`identifier`);function En(e){return xn(X(``,null,null,null,[``],e=bn(e),0,[0],e))}w(En,`compile`);function X(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=U()){case 40:if(m!=108&&P(C,d-1)==58){mn(C+=N(J(v),`&`,`&\f`),`&\f`,dn(l?s[l-1]:0))!=-1&&(_=-1);break}case 34:case 39:case 91:C+=J(v);break;case 9:case 10:case 13:case 32:C+=Sn(m);break;case 92:C+=Cn(G()-1,7);continue;case 47:switch(W()){case 42:case 47:L(On(wn(U(),G()),t,n,c),c),(q(m||1)==5||q(W()||1)==5)&&I(C)&&F(C,-1,void 0)!==` `&&(C+=` `);break;default:C+=`/`}break;case 123*h:s[l++]=I(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=N(C,/\f/g,``)),p>0&&(I(C)-d||h===0&&m===47)&&L(p>32?kn(C+`;`,r,n,d-1,c):kn(N(C,` `,``)+`;`,r,n,d-2,c),c);break;case 59:C+=`;`;default:if(L(S=Dn(C,t,n,l,u,i,s,y,b=[],x=[],d,a),a),v===123)if(u===0)X(C,t,S,S,b,a,d,s,x);else{switch(f){case 99:if(P(C,3)===110)break;case 108:if(P(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?X(e,S,S,r&&L(Dn(e,S,S,0,0,i,s,y,i,b=[],d,x),x),i,x,d,s,r?b:x):X(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+I(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&yn()==125)continue}switch(C+=fn(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(I(C)-1)*_,_=1;break;case 64:W()===45&&(C+=J(U())),f=W(),u=d=I(y=C+=Tn(G())),v++;break;case 45:m===45&&I(C)==2&&(h=0)}}return a}w(X,`parse`);function Dn(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=hn(p),h=0,g=0,_=0;h0?p[v]+` `+y:N(y,/&\f/g,p[v])))&&(c[_++]=b);return H(e,t,n,i===0?tn:s,c,l,u,d)}w(Dn,`ruleset`);function On(e,t,n,r){return H(e,t,n,en,fn(vn()),F(e,2,-2),0,r)}w(On,`comment`);function kn(e,t,n,r,i){return H(e,t,n,nn,F(e,0,r),F(e,r+1,-1),r,i)}w(kn,`declaration`);function An(e,t){for(var n=``,r=0;r{Ln.forEach(e=>{e()}),Ln=[]},`attachFunctions`),zn=w(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,``).trimStart(),`cleanupComments`);function Bn(e){let t=e.match(Ce);if(!t)return{text:e,metadata:{}};let n=Ee(t[1],{schema:De})??{};n=typeof n==`object`&&!Array.isArray(n)?n:{};let r={};return n.displayMode&&(r.displayMode=n.displayMode.toString()),n.title&&(r.title=n.title.toString()),n.config&&(r.config=n.config),{text:e.slice(t[0].length),metadata:r}}w(Bn,`extractFrontMatter`);var Vn=w(e=>e.replace(/\r\n?/g,` +`).replace(/<(\w+)([^>]*)>/g,(e,t,n)=>`<`+t+n.replace(/="([^"]*)"/g,`='$1'`)+`>`),`cleanupText`),Hn=w(e=>{let{text:t,metadata:n}=Bn(e),{displayMode:r,title:i,config:a={}}=n;return r&&(a.gantt||={},a.gantt.displayMode=r),{title:i,config:a,text:t}},`processFrontmatter`),Un=w(e=>{let t=j.detectInit(e)??{},n=j.detectDirective(e,`wrap`);return Array.isArray(n)?t.wrap=n.some(({type:e})=>e===`wrap`):n?.type===`wrap`&&(t.wrap=!0),{text:Oe(e),directive:t}},`processDirectives`);function Wn(e){let t=Hn(Vn(e)),n=Un(t.text),r=ke(t.config,n.directive);return e=zn(n.text),{code:e,title:t.title,config:r}}w(Wn,`preprocessDiagram`);function Gn(e){let t=new TextEncoder().encode(e),n=Array.from(t,e=>String.fromCodePoint(e)).join(``);return btoa(n)}w(Gn,`toBase64`);var Kn=5e4,qn=`graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa`,Jn=`sandbox`,Yn=`loose`,Xn=`http://www.w3.org/2000/svg`,Zn=`http://www.w3.org/1999/xlink`,Qn=`http://www.w3.org/1999/xhtml`,$n=`100%`,er=`100%`,tr=`border:0;margin:0;`,nr=`margin:0`,rr=`allow-top-navigation-by-user-activation allow-popups`,ir=`The "iframe" tag is not supported by your browser.`,ar=[`foreignobject`],or=[`dominant-baseline`];function sr(e){let t=Wn(e);return A(),me(t.config??{}),t}w(sr,`processAndSetConfigs`);async function cr(e,t){M();try{let{code:t,config:n}=sr(e);return{diagramType:(await br(t)).type,config:n}}catch(e){if(t?.suppressErrors)return!1;throw e}}w(cr,`parse`);var lr=w((e,t,n=[])=>`.${e} ${t} ${se(`{ ${n.join(` !important; `)} !important; }`)}`,`cssImportantStyles`),ur=w((e,t=new Map)=>{let n=new CSSStyleSheet;if(e.fontFamily!==void 0&&n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,n.cssRules.length),e.altFontFamily!==void 0&&n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,n.cssRules.length),t instanceof Map){let r=re(e)?[`> *`,`span`]:[`rect`,`polygon`,`ellipse`,`circle`,`path`];t.forEach(e=>{Ae(e.styles)||r.forEach(t=>{n.insertRule(lr(e.id,t,e.styles),n.cssRules.length)}),Ae(e.textStyles)||n.insertRule(lr(e.id,`tspan`,(e?.textStyles||[]).map(e=>e.replace(`color`,`fill`))),n.cssRules.length)})}let r=``;if(e.themeCSS!==void 0)if(typeof n.replaceSync==`function`){let t=new CSSStyleSheet;t.replaceSync(e.themeCSS),r=be(t)+` +`}else r+=`${e.themeCSS} +`;return r+be(n)},`createCssStyles`),dr=w((e,t)=>An(En(`${e}{${t}}`),Mn([w(function(t,n,r,i){if(t.type===`rule`&&Array.isArray(t.props)){if(t.parent&&t.parent.type===cn)return;t.props=t.props.map(t=>t.startsWith(e)?t:`${e} ${t}`)}else t.type.startsWith(`@`)&&([rn,on,ln,un,`@container`,`@starting-style`,cn].includes(t.type)||(E.warn(`Removing unsupported at-rule ${t.type} from CSS`),t.type=en))},`addNamespace`),jn])),`compileCSS`),fr=w((e,t,n,r)=>dr(r,he(t,ur(e,n),{...e.themeVariables,theme:e.theme,look:e.look},r)),`createUserStyles`),pr=w((e=``,t,n)=>{let r=e;return!n&&!t&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,`marker-end="url(#`)),r=je(r),r=r.replace(/
    /g,`
    `),r},`cleanUpSvgCode`),mr=w((e=``,t)=>``,`putIntoIFrame`),hr=w((e,t,n,r,i)=>{let a=e.append(`div`);a.attr(`id`,n),r&&a.attr(`style`,r);let o=a.append(`svg`).attr(`id`,t).attr(`width`,`100%`).attr(`xmlns`,Xn);return i&&o.attr(`xmlns:xlink`,i),o.append(`g`),e},`appendDivSvgG`);function gr(e,t){return e.append(`iframe`).attr(`id`,t).attr(`style`,`width: 100%; height: 100%;`).attr(`sandbox`,``)}w(gr,`sandboxedIframe`);var _r=w((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},`removeExistingElements`),vr=w(async function(e,t,n){M();let r=sr(t);t=r.code;let i=k();E.debug(i),t.length>(i?.maxTextSize??Kn)&&(t=qn);let a=`#${e}`,o=`i`+e,s=`#`+o,c=`d`+e,l=`#`+c,u=w(()=>{let e=T(f?s:l).node();e&&`remove`in e&&e.remove()},`removeTempElements`),d=T(document.body),f=i.securityLevel===Jn,p=i.securityLevel===Yn,m=i.fontFamily;n===void 0?(_r(document,e,c,o),f?(d=T(gr(T(document.body),o).nodes()[0].contentDocument.body),d.node().style.margin=`0`):d=T(`body`),hr(d,e,c)):(n&&(n.innerHTML=``),f?(d=T(gr(T(n),o).nodes()[0].contentDocument.body),d.node().style.margin=`0`):d=T(n),hr(d,e,c,`font-family: ${m}`,Zn));let h,g;try{h=await In.fromText(t,{title:r.title})}catch(e){if(i.suppressErrorRendering)throw u(),e;h=await In.fromText(`error`),g=e}let _=d.select(l).node(),v=h.type,y=_.firstChild,b=y.firstChild,x=h.renderer.getClasses?.(t,h),S=fr(i,v,x,a),C=document.createElement(`style`);C.innerHTML=S,y.insertBefore(C,b);try{await h.renderer.draw(t,e,`11.15.0`,h)}catch(n){throw i.suppressErrorRendering?u():bt.draw(t,e,`11.15.0`),n}let ee=d.select(`${l} svg`),te=h.db.getAccTitle?.(),ne=h.db.getAccDescription?.();xr(v,ee,te,ne),d.select(`[id="${e}"]`).selectAll(`foreignobject > *`).attr(`xmlns`,Qn);let D=d.select(l).node().innerHTML;if(E.debug(`config.arrowMarkerAbsolute`,i.arrowMarkerAbsolute),D=pr(D,f,xe(i.arrowMarkerAbsolute)),f){let e=d.select(l+` svg`).node();D=mr(D,e)}else p||(D=ie.sanitize(D,{ADD_TAGS:ar,ADD_ATTR:or,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(Rn(),g)throw g;return u(),{diagramType:v,svg:D,bindFunctions:h.db.bindFunctions}},`render`);function yr(e={}){let t=_e({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||={},t.themeVariables.fontFamily=t.fontFamily),ge(t),t?.theme&&t.theme in ve?t.themeVariables=ve[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=ve.default.getThemeVariables(t.themeVariables)),ne((typeof t==`object`?D(t):ae()).logLevel),M()}w(yr,`initialize`);var br=w((e,t={})=>{let{code:n}=Wn(e);return In.fromText(n,t)},`getDiagramFromText`);function xr(e,t,n,r){Pn(t,e),Fn(t,n,r,t.attr(`id`))}w(xr,`addA11yInfo`);var Z=Object.freeze({render:vr,parse:cr,getDiagramFromText:br,initialize:yr,getConfig:k,setConfig:ce,getSiteConfig:ae,updateSiteConfig:le,reset:w(()=>{A()},`reset`),globalReset:w(()=>{A(ue)},`globalReset`),defaultConfig:ue});ne(k().logLevel),A(k());var Sr=w((e,t,n)=>{E.warn(e),Me(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},`handleError`),Cr=w(async function(e={querySelector:`.mermaid`}){try{await wr(e)}catch(t){if(Me(t)&&E.error(t.str),$.parseError&&$.parseError(t),!e.suppressErrors)throw E.error(`Use the suppressErrors option to suppress these errors`),t}},`run`),wr=w(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:`.mermaid`}){let r=Z.getConfig();E.debug(`${e?``:`No `}Callback function found`);let i;if(n)i=n;else if(t)i=document.querySelectorAll(t);else throw Error(`Nodes and querySelector are both undefined`);E.debug(`Found ${i.length} diagrams`),r?.startOnLoad!==void 0&&(E.debug(`Start On Load: `+r?.startOnLoad),Z.updateSiteConfig({startOnLoad:r?.startOnLoad}));let a=new j.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed),o,s=[];for(let t of Array.from(i)){if(E.info(`Rendering diagram: `+t.id),t.getAttribute(`data-processed`))continue;t.setAttribute(`data-processed`,`true`);let n=`mermaid-${a.next()}`;o=t.innerHTML,o=Fe(j.entityDecode(o)).trim().replace(//gi,`
    `);let r=j.detectInit(o);r&&E.debug(`Detected early reinit: `,r);try{let{svg:r,bindFunctions:i}=await Nr(n,o,t);t.innerHTML=r,e&&await e(n),i&&i(t)}catch(e){Sr(e,s,$.parseError)}}if(s.length>0)throw s[0]},`runThrowsErrors`),Tr=w(function(e){Z.initialize(e)},`initialize`),Er=w(async function(e,t,n){E.warn(`mermaid.init is deprecated. Please use run instead.`),e&&Tr(e);let r={postRenderCallback:n,querySelector:`.mermaid`};typeof t==`string`?r.querySelector=t:t&&(t instanceof HTMLElement?r.nodes=[t]:r.nodes=t),await Cr(r)},`init`),Dr=w(async(e,{lazyLoad:t=!0}={})=>{M(),we(...e),t===!1&&await $t()},`registerExternalDiagrams`),Or=w(function(){if($.startOnLoad){let{startOnLoad:e}=Z.getConfig();e&&$.run().catch(e=>E.error(`Mermaid failed to initialize`,e))}},`contentLoaded`);typeof document<`u`&&window.addEventListener(`load`,Or,!1);var kr=w(function(e){$.parseError=e},`setParseErrorHandler`),Q=[],Ar=!1,jr=w(async()=>{if(!Ar){for(Ar=!0;Q.length>0;){let e=Q.shift();if(e)try{await e()}catch(e){E.error(`Error executing queue`,e)}}Ar=!1}},`executeQueue`),Mr=w(async(e,t)=>new Promise((n,r)=>{let i=w(()=>new Promise((i,a)=>{Z.parse(e,t).then(e=>{i(e),n(e)},e=>{E.error(`Error parsing`,e),$.parseError?.(e),a(e),r(e)})}),`performCall`);Q.push(i),jr().catch(r)}),`parse`),Nr=w((e,t,n)=>new Promise((r,i)=>{let a=w(()=>new Promise((a,o)=>{Z.render(e,t,n).then(e=>{a(e),r(e)},e=>{E.error(`Error parsing`,e),$.parseError?.(e),o(e),i(e)})}),`performCall`);Q.push(a),jr().catch(i)}),`render`),$={startOnLoad:!0,mermaidAPI:Z,parse:Mr,render:Nr,init:Er,run:Cr,registerExternalDiagrams:Dr,registerLayoutLoaders:Ie,initialize:Tr,parseError:void 0,contentLoaded:Or,setParseErrorHandler:kr,detectType:fe,registerIconPacks:Pe,getRegisteredDiagramsMetadata:w(()=>Object.keys(de).map(e=>({id:e})),`getRegisteredDiagramsMetadata`)},Pr=$,Fr=Object.assign({}),Ir=Object.assign({}),Lr=[Object.values(Fr)[0],Object.values(Ir)[0]].filter(Boolean),Rr=Object.assign({}),zr=Object.assign({}),Br=[Object.values(Rr)[0],Object.values(zr)[0]].filter(Boolean),Vr=v(async()=>{let e={theme:`default`};for(let t of Br)Object.assign(e,await t());return e});Pr.startOnLoad=!1,Pr.initialize({startOnLoad:!1});var Hr=new Map,Ur;async function Wr(e,t){Ur??=document.getElementById(`mermaid-rendering-container`);let n=e+JSON.stringify(t),r=Hr.get(n);if(r)return r;let i=Re.default.decompressFromBase64(e);for(let e of Lr){let r=await e();if(r){let e=await r(i,t);return Hr.set(n,e),e}}Pr.initialize({startOnLoad:!1,...y(await Vr()||{}),...y(t)});let a=C(),{svg:o}=await Pr.render(a,i,Ur);return Hr.set(n,o),o}var Gr={key:0,border:`1 red rounded`,class:`pa-3 text-wrap`},Kr=m({__name:`Mermaid`,props:{codeLz:{},scale:{},theme:{}},setup(e){let t=e,n=a(),r=f(),i=f(null),c=f(``);o(async e=>{let r=!1;e(()=>{r=!0}),i.value=null;try{let e=await Wr(t.codeLz||``,{theme:t.theme||(b.value?`dark`:void 0),...n.attrs});r||(c.value=e)}catch(e){i.value=`${e}`,console.warn(e)}});let l=f();return s(c,()=>{l.value=void 0}),o(()=>{let e=r.value?.children?.[0];if(e&&e.hasAttribute(`viewBox`)&&l.value==null){let t=Number.parseFloat(e.getAttribute(`viewBox`)?.split(` `)[3]||``);l.value=Number.isNaN(t)?void 0:t}},{flush:`post`}),o(()=>{let e=r.value?.children?.[0];e!=null&&t.scale!=null&&l.value!=null&&(e.setAttribute(`height`,`${l.value*t.scale}`),e.removeAttribute(`width`),e.removeAttribute(`style`))},{flush:`post`}),(e,t)=>i.value?(_(),u(`pre`,Gr,h(i.value),1)):(_(),p(Le,{key:1,class:`mermaid`,"inner-html":c.value,onShadow:t[0]||=e=>r.value=e},null,8,[`inner-html`]))}}),qr={__name:`test-presentation.md__slidev_4`,setup(e){let{$slidev:t,$nav:a,$clicksContext:o,$clicks:s,$page:u,$renderContext:d,$frontmatter:f}=ee();return o.setup(),(e,t)=>{let a=Kr;return _(),p(te,g(n(l(S)(l(f),3))),{default:r(()=>[t[0]||=c(`h1`,null,`Mermaid Support`,-1),i(a,{"code-lz":`OYJwhgDgFgBAMgJQFAxgQQNoHkBGBnASwBMCwA7GAOQHsAXAUwF0YBaFgPhgCEMBlAG2L0AbtwCuBfkUYpurDjADCAby5iyRfvRgAVAJ4R6AX1mL57AD4J6wMfzAgLMACIYAsndoEWAM0naACR03OBlUMzZLXlpyIjB+ajJ6JwBRPgIyYC0YADF/MJgU81yMZ2oxHC0WRUEAYwBrGCxDMgLnYoBxDEp6eiI8GF56EGFhxiA=`})]),_:1},16)}}};export{qr as default}; \ No newline at end of file diff --git a/docs/dist/assets/md-DDBHlo0Y.js b/docs/dist/assets/md-DDBHlo0Y.js deleted file mode 100644 index eb6dcb30..00000000 --- a/docs/dist/assets/md-DDBHlo0Y.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as e,B as t,C as n,D as r,bt as i,v as a,vt as o,y as s}from"./modules/shiki-yoNnvMyB.js";import{nt as c,tt as l}from"./index-hODKC6Hw.js";import{t as u}from"./slidev/VClicks-241EYX7i.js";import{t as d}from"./slidev/center-fwMEwbLV.js";var f={__name:`test-slidev-manual.md__slidev_7`,setup(f){let{$slidev:p,$nav:m,$clicksContext:h,$clicks:g,$page:_,$renderContext:v,$frontmatter:y}=c();return h.setup(),(c,f)=>{let p=u;return t(),s(d,i(r(o(l)(o(y),6))),{default:e(()=>[f[1]||=a(`h1`,null,`The Future of ML`,-1),n(p,null,{default:e(()=>[...f[0]||=[a(`ul`,null,[a(`li`,null,`More accessible tools and platforms`),a(`li`,null,`Integration with edge devices`),a(`li`,null,`Ethical AI and responsible development`),a(`li`,null,`Continued breakthroughs in research`)],-1)]]),_:1})]),_:1},16)}}};export{f as default}; \ No newline at end of file diff --git a/docs/dist/assets/md-D_fsd_0G.js b/docs/dist/assets/md-D_fsd_0G.js deleted file mode 100644 index a38bc3e3..00000000 --- a/docs/dist/assets/md-D_fsd_0G.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as e,B as t,D as n,bt as r,v as i,vt as a,y as o}from"./modules/shiki-yoNnvMyB.js";import{nt as s,tt as c}from"./index-hODKC6Hw.js";import{t as l}from"./slidev/default-BuNamc3V.js";var u={__name:`test-slidev-manual.md__slidev_6`,setup(u){let{$slidev:d,$nav:f,$clicksContext:p,$clicks:m,$page:h,$renderContext:g,$frontmatter:_}=s();return p.setup(),(s,u)=>(t(),o(l,r(n(a(c)(a(_),5))),{default:e(()=>[...u[0]||=[i(`h1`,null,`Applications Across Industries`,-1),i(`div`,{grid:`~ cols-2 gap-8`},[i(`div`,null,[i(`h3`,null,`Healthcare`),i(`ul`,null,[i(`li`,null,`Disease diagnosis`),i(`li`,null,`Drug discovery`),i(`li`,null,`Medical imaging`)]),i(`h3`,null,`Finance`),i(`ul`,null,[i(`li`,null,`Fraud detection`),i(`li`,null,`Trading algorithms`),i(`li`,null,`Risk assessment`)])]),i(`div`,null,[i(`h3`,null,`Technology`),i(`ul`,null,[i(`li`,null,`Voice assistants`),i(`li`,null,`Recommendation systems`),i(`li`,null,`Computer vision`)]),i(`h3`,null,`Transportation`),i(`ul`,null,[i(`li`,null,`Self-driving cars`),i(`li`,null,`Route optimization`),i(`li`,null,`Predictive maintenance`)])])],-1)]]),_:1},16))}};export{u as default}; \ No newline at end of file diff --git a/docs/dist/assets/md-JXSPOz9R.css b/docs/dist/assets/md-JXSPOz9R.css deleted file mode 100644 index 69b4ad8a..00000000 --- a/docs/dist/assets/md-JXSPOz9R.css +++ /dev/null @@ -1 +0,0 @@ -.slidev-layout.end[data-v-d4a90a1f]{-webkit-user-select:none;user-select:none;--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity)) ;text-align:center;--un-text-opacity:.85;height:100%;color:rgb(255 255 255/var(--un-text-opacity)) ;letter-spacing:.1em;place-content:center;font-size:1.25rem;line-height:1.75rem;display:grid} diff --git a/docs/dist/assets/mindmap-definition-AITDCVNG-vBLswTWc.js b/docs/dist/assets/mindmap-definition-AITDCVNG-vBLswTWc.js new file mode 100644 index 00000000..13b79ae6 --- /dev/null +++ b/docs/dist/assets/mindmap-definition-AITDCVNG-vBLswTWc.js @@ -0,0 +1,96 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{T as t}from"./chunk-V7P66DNM-D246Sefn.js";import{C as n,G as r,N as i,P as a,S as o,d as s,j as c,m as l}from"./chunk-Q52JI7PB-BeSPinqD.js";import"./chunk-PLCLPJVV-rGjVDjLw.js";import"./chunk-GTILCTU2-D-9HFTK6.js";import"./chunk-7TFACZ55-BO7C1qvL.js";import"./chunk-BSZA5ISF-LqNHBHyp.js";import"./chunk-SZ5Y56Q4-Bki2Aicm.js";import"./chunk-YSJUE5HW-eH4JtoEG.js";import"./chunk-HQMLCRZ6-HgqAiHMi.js";import"./chunk-RTI7CJYH-CrTK6TD7.js";import"./chunk-TRQY2T3P-DxnI4jXA.js";import{r as u,t as d}from"./chunk-SNQTKDUU-CQmHT9KX.js";import{t as f}from"./chunk-7723GVCQ-CfHgq7qP.js";import{t as p}from"./chunk-KEUPHFFI-DMlFzrf2.js";var m=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,6,13,15,16,19,22],h=[1,33],g=[1,34],_=[1,6,7,11,13,15,16,19,22],v={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`MINDMAP`,11:`EOF`,13:`SPACELIST`,15:`ICON`,16:`CLASS`,19:`NODE_DSTART`,20:`NODE_DESCR`,21:`NODE_DEND`,22:`NODE_ID`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 16:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 17:case 21:r.decorateNode({class:a[s]});break;case 18:r.getLogger().trace(`SPACELIST`);break;case 19:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 20:r.decorateNode({icon:a[s]});break;case 25:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 26:this.$={id:a[s],descr:a[s],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},t(l,[2,3]),{1:[2,2]},t(l,[2,4]),t(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:r,9:22,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:u,7:d,10:23,11:f},t(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:c}),t(p,[2,18]),t(p,[2,19]),t(p,[2,20]),t(p,[2,21]),t(p,[2,23]),t(p,[2,24]),t(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:d,10:32,11:f},{1:[2,7],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},t(m,[2,14],{7:h,11:g}),t(_,[2,8]),t(_,[2,9]),t(_,[2,10]),t(p,[2,15]),t(p,[2,16]),t(p,[2,17]),{20:[1,35]},{21:[1,36]},t(m,[2,13],{7:h,11:g}),t(_,[2,11]),t(_,[2,12]),{21:[1,37]},t(p,[2,25]),t(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};v.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e(function(e,t,n,r){switch(n){case 0:return e.getLogger().trace(`Found comment`,t.yytext),6;case 1:return 8;case 2:this.begin(`CLASS`);break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:e.getLogger().trace(`Begin icon`),this.begin(`ICON`);break;case 6:return e.getLogger().trace(`SPACELINE`),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace(`end icon`),this.popState();break;case 10:return e.getLogger().trace(`Exploding node`),this.begin(`NODE`),19;case 11:return e.getLogger().trace(`Cloud`),this.begin(`NODE`),19;case 12:return e.getLogger().trace(`Explosion Bang`),this.begin(`NODE`),19;case 13:return e.getLogger().trace(`Cloud Bang`),this.begin(`NODE`),19;case 14:return this.begin(`NODE`),19;case 15:return this.begin(`NODE`),19;case 16:return this.begin(`NODE`),19;case 17:return this.begin(`NODE`),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin(`NSTR2`);break;case 22:return`NODE_DESCR`;case 23:this.popState();break;case 24:e.getLogger().trace(`Starting NSTR`),this.begin(`NSTR`);break;case 25:return e.getLogger().trace(`description:`,t.yytext),`NODE_DESCR`;case 26:this.popState();break;case 27:return this.popState(),e.getLogger().trace(`node end ))`),`NODE_DEND`;case 28:return this.popState(),e.getLogger().trace(`node end )`),`NODE_DEND`;case 29:return this.popState(),e.getLogger().trace(`node end ...`,t.yytext),`NODE_DEND`;case 30:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 31:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 32:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 33:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 34:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 35:return e.getLogger().trace(`Long description:`,t.yytext),20;case 36:return e.getLogger().trace(`Long description:`,t.yytext),20}},`anonymous`),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}}})();function y(){this.yy={}}return e(y,`Parser`),y.prototype=v,v.Parser=y,new y})();m.parser=m;var h=m,g=[];for(let e=0;e<256;++e)g.push((e+256).toString(16).slice(1));function _(e,t=0){return(g[e[t+0]]+g[e[t+1]]+g[e[t+2]]+g[e[t+3]]+`-`+g[e[t+4]]+g[e[t+5]]+`-`+g[e[t+6]]+g[e[t+7]]+`-`+g[e[t+8]]+g[e[t+9]]+`-`+g[e[t+10]]+g[e[t+11]]+g[e[t+12]]+g[e[t+13]]+g[e[t+14]]+g[e[t+15]]).toLowerCase()}e(_,`unsafeStringify`);var v=new Uint8Array(16);function y(){return crypto.getRandomValues(v)}e(y,`rng`);function b(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():x(e,t,n)}e(b,`v4`);function x(e,t,n){e||={};let r=e.random??e.rng?.()??y();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return _(r)}e(x,`_v4`);var S=b,C=12,w={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},T=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=w,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{e(this,`MindmapDB`)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let t=this.nodes.length-1;t>=0;t--)if(this.nodes[t].level0?this.nodes[0]:null}addNode(e,i,a,o){t.info(`addNode`,e,i,a,o);let s=!1;this.nodes.length===0?(this.baseLevel=e,e=0,s=!0):this.baseLevel!==void 0&&(e-=this.baseLevel,s=!1);let c=n(),u=c.mindmap?.padding??l.mindmap.padding;switch(o){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:u*=2;break}let d={id:this.count++,nodeId:r(i,c),level:e,descr:r(a,c),type:o,children:[],width:c.mindmap?.maxNodeWidth??l.mindmap.maxNodeWidth,padding:u,isRoot:s},f=this.getParent(e);if(f)f.children.push(d),this.nodes.push(d);else if(s)this.nodes.push(d);else throw Error(`There can be only one root. No parent could be found for ("${d.descr}")`)}getType(e,n){switch(t.debug(`In get type`,e,n),e){case`[`:return this.nodeType.RECT;case`(`:return n===`)`?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case`((`:return this.nodeType.CIRCLE;case`)`:return this.nodeType.CLOUD;case`))`:return this.nodeType.BANG;case`{{`:return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,t){this.elements[e]=t}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;let t=n(),i=this.nodes[this.nodes.length-1];e.icon&&(i.icon=r(e.icon,t)),e.class&&(i.class=r(e.class,t))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return`no-border`;case this.nodeType.RECT:return`rect`;case this.nodeType.ROUNDED_RECT:return`rounded-rect`;case this.nodeType.CIRCLE:return`circle`;case this.nodeType.CLOUD:return`cloud`;case this.nodeType.BANG:return`bang`;case this.nodeType.HEXAGON:return`hexgon`;default:return`no-border`}}assignSections(e,t){if(e.level===0?e.section=void 0:e.section=t,e.children)for(let[n,r]of e.children.entries()){let i=e.level===0?n%(C-1):t;this.assignSections(r,i)}}flattenNodes(t,r){let i=n(),a=[`mindmap-node`];t.isRoot===!0?a.push(`section-root`,`section--1`):t.section!==void 0&&a.push(`section-${t.section}`),t.class&&a.push(t.class);let o=a.join(` `),s=e(e=>{let t=(i.theme?.toLowerCase()??``).includes(`redux`);switch(e){case w.CIRCLE:return`mindmapCircle`;case w.RECT:return`rect`;case w.ROUNDED_RECT:return`rounded`;case w.CLOUD:return`cloud`;case w.BANG:return`bang`;case w.HEXAGON:return`hexagon`;case w.DEFAULT:return t?`rounded`:`defaultMindmapNode`;case w.NO_BORDER:default:return`rect`}},`getShapeFromType`),c={id:t.id.toString(),domId:`node_`+t.id.toString(),label:t.descr,labelType:`markdown`,isGroup:!1,shape:s(t.type),width:t.width,height:t.height??0,padding:t.padding,cssClasses:o,cssStyles:[],look:i.look,icon:t.icon,x:t.x,y:t.y,level:t.level,nodeId:t.nodeId,type:t.type,section:t.section};if(r.push(c),t.children)for(let e of t.children)this.flattenNodes(e,r)}generateEdges(e,t){if(!e.children)return;let r=n();for(let n of e.children){let i=`edge`;n.section!==void 0&&(i+=` section-edge-${n.section}`);let a=e.level+1;i+=` edge-depth-${a}`;let o={id:`edge_${e.id}_${n.id}`,start:e.id.toString(),end:n.id.toString(),type:`normal`,curve:`basis`,thickness:`normal`,look:r.look,classes:i,depth:e.level,section:n.section};t.push(o),this.generateEdges(n,t)}}getData(){let e=this.getMindmap(),r=n(),i=c().layout!==void 0,a=r;if(i||(a.layout=`cose-bilkent`),!e)return{nodes:[],edges:[],config:a};t.debug(`getData: mindmapRoot`,e,r),this.assignSections(e);let o=[],s=[];this.flattenNodes(e,o),this.generateEdges(e,s),t.debug(`getData: processed ${o.length} nodes and ${s.length} edges`);let l=new Map;for(let e of o)l.set(e.id,{shape:e.shape,width:e.width,height:e.height,padding:e.padding});return{nodes:o,edges:s,config:a,rootNode:e,markers:[`point`],direction:`TB`,nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(l),type:`mindmap`,diagramId:`mindmap-`+S()}}getLogger(){return t}},E={draw:e(async(e,n,r,i)=>{t.debug(`Rendering mindmap diagram +`+e);let a=i.db,s=a.getData(),c=f(n,s.config.securityLevel);if(s.type=i.type,s.layoutAlgorithm=d(s.config.layout,{fallback:`cose-bilkent`}),s.diagramId=n,!a.getMindmap())return;s.nodes.forEach(e=>{e.shape===`rounded`?(e.radius=15,e.taper=15,e.stroke=`none`,e.width=0,e.padding=15):e.shape===`circle`?e.padding=10:e.shape===`rect`?(e.width=0,e.padding=10):e.shape===`hexagon`&&(e.width=0,e.height=0)}),await u(s,c);let{themeVariables:m}=o(),{useGradient:h,gradientStart:g,gradientStop:_}=m;if(h&&g&&_){let e=c.attr(`id`),t=c.append(`defs`).append(`linearGradient`).attr(`id`,`${e}-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);t.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,g).attr(`stop-opacity`,1),t.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,_).attr(`stop-opacity`,1)}p(c,s.config.mindmap?.padding??l.mindmap.padding,`mindmapDiagram`,s.config.mindmap?.useMaxWidth??l.mindmap.useMaxWidth)},`draw`)},D=e(e=>{let{theme:t,look:n}=e,r=``;for(let t=0;t{let r=``;for(let i=0;i{let{theme:t}=e,n=e.svgId,r=e.dropShadow?e.dropShadow.replace(`url(#drop-shadow)`,`url(${n}-drop-shadow)`):`none`;return` + .edge { + stroke-width: 3; + } + ${D(e)} + .section-root rect, .section-root path, .section-root circle, .section-root polygon { + fill: ${e.git0}; + } + .section-root text { + fill: ${e.gitBranchLabel0}; + } + .section-root span { + color: ${t?.includes(`redux`)?e.nodeBorder:e.gitBranchLabel0}; + } + .icon-container { + height:100%; + display: flex; + justify-content: center; + align-items: center; + } + .edge { + fill: none; + } + .mindmap-node-label { + dy: 1em; + alignment-baseline: middle; + text-anchor: middle; + dominant-baseline: middle; + text-align: center; + } + [data-look="neo"].mindmap-node { + filter: ${r}; + } + [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon { + fill: ${t?.includes(`redux`)?e.mainBkg:e.git0}; + } + [data-look="neo"].mindmap-node.section-root .text-inner-tspan { + fill: ${t?.includes(`redux`)?e.nodeBorder:e[`cScaleLabel`+ +(t===`neutral`)]}; + } + ${e.useGradient&&n&&e.mainBkg?O(e.THEME_COLOR_LIMIT,n,e.mainBkg):``} +`},`getStyles`)};export{k as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/modules/shiki-BmLmNVDB.js b/docs/dist/assets/modules/shiki-BmLmNVDB.js new file mode 100644 index 00000000..817c6cff --- /dev/null +++ b/docs/dist/assets/modules/shiki-BmLmNVDB.js @@ -0,0 +1,9 @@ +import{n as e}from"../rolldown-runtime-QTnfLwEv.js";function t(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var n={},r=[],i=()=>{},a=()=>!1,o=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),s=e=>e.startsWith(`onUpdate:`),c=Object.assign,l=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},u=Object.prototype.hasOwnProperty,d=(e,t)=>u.call(e,t),f=Array.isArray,p=e=>C(e)===`[object Map]`,m=e=>C(e)===`[object Set]`,h=e=>C(e)===`[object Date]`,g=e=>C(e)===`[object RegExp]`,_=e=>typeof e==`function`,v=e=>typeof e==`string`,y=e=>typeof e==`symbol`,b=e=>typeof e==`object`&&!!e,x=e=>(b(e)||_(e))&&_(e.then)&&_(e.catch),S=Object.prototype.toString,C=e=>S.call(e),w=e=>C(e).slice(8,-1),T=e=>C(e)===`[object Object]`,E=e=>v(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,D=t(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ee=t(`bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo`),O=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},te=/-\w/g,k=O(e=>e.replace(te,e=>e.slice(1).toUpperCase())),ne=/\B([A-Z])/g,A=O(e=>e.replace(ne,`-$1`).toLowerCase()),re=O(e=>e.charAt(0).toUpperCase()+e.slice(1)),j=O(e=>e?`on${re(e)}`:``),M=(e,t)=>!Object.is(e,t),ie=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},oe=e=>{let t=parseFloat(e);return isNaN(t)?e:t},se=e=>{let t=v(e)?Number(e):NaN;return isNaN(t)?e:t},ce,le=()=>ce||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function ue(e,t){return e+JSON.stringify(t,(e,t)=>typeof t==`function`?t.toString():t)}var de=t(`Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol`);function fe(e){if(f(e)){let t={};for(let n=0;n{if(e){let n=e.split(me);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function _e(e){let t=``;if(v(e))t=e;else if(f(e))for(let n=0;nje(e,t))}var Ne=e=>!!(e&&e.__v_isRef===!0),Pe=e=>v(e)?e:e==null?``:f(e)||b(e)&&(e.toString===S||!_(e.toString))?Ne(e)?Pe(e.value):JSON.stringify(e,Fe,2):String(e),Fe=(e,t)=>Ne(t)?Fe(e,t.value):p(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ie(t,r)+` =>`]=n,e),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ie(e))}:y(t)?Ie(t):b(t)&&!f(t)&&!T(t)?String(t):t,Ie=(e,t=``)=>y(e)?`Symbol(${e.description??t})`:e;function Le(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}var N,Re=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&N&&(N.active?(this.parent=N,this.index=(N.scopes||=[]).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e0&&--this._on===0){if(N===this)N=this.prevScope;else{let e=N;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t0)return;if(Ke){let e=Ke;for(Ke=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ge;){let t=Ge;for(Ge=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Xe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ze(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),et(r),tt(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Qe(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&($e(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function $e(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===lt)||(e.globalVersion=lt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Qe(e))))return;e.flags|=2;let t=e.dep,n=P,r=it;P=e,it=!0;try{Xe(e);let n=e.fn(e._value);(t.version===0||M(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{P=n,it=r,Ze(e),e.flags&=-3}}function et(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)et(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function tt(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function nt(e,t){e.effect instanceof Ue&&(e=e.effect.fn);let n=new Ue(e);t&&c(n,t);try{n.run()}catch(e){throw n.stop(),e}let r=n.run.bind(n);return r.effect=n,r}function rt(e){e.effect.stop()}var it=!0,at=[];function ot(){at.push(it),it=!1}function st(){let e=at.pop();it=e===void 0?!0:e}function ct(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=P;P=void 0;try{t()}finally{P=e}}}var lt=0,ut=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},dt=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!P||!it||P===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==P)t=this.activeLink=new ut(P,this),P.deps?(t.prevDep=P.depsTail,P.depsTail.nextDep=t,P.depsTail=t):P.deps=P.depsTail=t,ft(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=P.depsTail,t.nextDep=void 0,P.depsTail.nextDep=t,P.depsTail=t,P.deps===t&&(P.deps=e)}return t}trigger(e){this.version++,lt++,this.notify(e)}notify(e){Je();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ye()}}};function ft(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)ft(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var pt=new WeakMap,mt=Symbol(``),ht=Symbol(``),gt=Symbol(``);function _t(e,t,n){if(it&&P){let t=pt.get(e);t||pt.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new dt),r.map=t,r.key=n),r.track()}}function vt(e,t,n,r,i,a){let o=pt.get(e);if(!o){lt++;return}let s=e=>{e&&e.trigger()};if(Je(),t===`clear`)o.forEach(s);else{let i=f(e),a=i&&E(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===gt||!y(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(gt)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(mt)),p(e)&&s(o.get(ht)));break;case`delete`:i||(s(o.get(mt)),p(e)&&s(o.get(ht)));break;case`set`:p(e)&&s(o.get(mt));break}}Ye()}function yt(e,t){let n=pt.get(e);return n&&n.get(t)}function bt(e){let t=F(e);return t===e?t:(_t(t,`iterate`,gt),ln(e)?t:t.map(fn))}function xt(e){return _t(e=F(e),`iterate`,gt),e}function St(e,t){return cn(e)?pn(sn(e)?fn(t):t):fn(t)}var Ct={__proto__:null,[Symbol.iterator](){return wt(this,Symbol.iterator,e=>St(this,e))},concat(...e){return bt(this).concat(...e.map(e=>f(e)?bt(e):e))},entries(){return wt(this,`entries`,e=>(e[1]=St(this,e[1]),e))},every(e,t){return Et(this,`every`,e,t,void 0,arguments)},filter(e,t){return Et(this,`filter`,e,t,e=>e.map(e=>St(this,e)),arguments)},find(e,t){return Et(this,`find`,e,t,e=>St(this,e),arguments)},findIndex(e,t){return Et(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return Et(this,`findLast`,e,t,e=>St(this,e),arguments)},findLastIndex(e,t){return Et(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return Et(this,`forEach`,e,t,void 0,arguments)},includes(...e){return Ot(this,`includes`,e)},indexOf(...e){return Ot(this,`indexOf`,e)},join(e){return bt(this).join(e)},lastIndexOf(...e){return Ot(this,`lastIndexOf`,e)},map(e,t){return Et(this,`map`,e,t,void 0,arguments)},pop(){return kt(this,`pop`)},push(...e){return kt(this,`push`,e)},reduce(e,...t){return Dt(this,`reduce`,e,t)},reduceRight(e,...t){return Dt(this,`reduceRight`,e,t)},shift(){return kt(this,`shift`)},some(e,t){return Et(this,`some`,e,t,void 0,arguments)},splice(...e){return kt(this,`splice`,e)},toReversed(){return bt(this).toReversed()},toSorted(e){return bt(this).toSorted(e)},toSpliced(...e){return bt(this).toSpliced(...e)},unshift(...e){return kt(this,`unshift`,e)},values(){return wt(this,`values`,e=>St(this,e))}};function wt(e,t,n){let r=xt(e),i=r[t]();return r!==e&&!ln(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var Tt=Array.prototype;function Et(e,t,n,r,i,a){let o=xt(e),s=o!==e&&!ln(e),c=o[t];if(c!==Tt[t]){let t=c.apply(e,a);return s?fn(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,St(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function Dt(e,t,n,r){let i=xt(e),a=i!==e&&!ln(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=St(e,t)),n.call(this,t,St(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?St(e,c):c}function Ot(e,t,n){let r=F(e);_t(r,`iterate`,gt);let i=r[t](...n);return(i===-1||i===!1)&&un(n[0])?(n[0]=F(n[0]),r[t](...n)):i}function kt(e,t,n=[]){ot(),Je();let r=F(e)[t].apply(e,n);return Ye(),st(),r}var At=t(`__proto__,__v_isRef,__isVue`),jt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(y));function Mt(e){y(e)||(e=String(e));let t=F(this);return _t(t,`has`,e),t.hasOwnProperty(e)}var Nt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?$t:Qt:i?Zt:Xt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=f(e);if(!r){let e;if(a&&(e=Ct[t]))return e;if(t===`hasOwnProperty`)return Mt}let o=Reflect.get(e,t,I(e)?e:n);if((y(t)?jt.has(t):At(t))||(r||_t(e,`get`,t),i))return o;if(I(o)){let e=a&&E(t)?o:o.value;return r&&b(e)?rn(e):e}return b(o)?r?rn(o):tn(o):o}},Pt=class extends Nt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=f(e)&&E(t);if(!this._isShallow){let e=cn(i);if(!ln(n)&&!cn(n)&&(i=F(i),n=F(n)),!a&&I(i)&&!I(n))return e||(i.value=n),!0}let o=a?Number(t)e,Vt=e=>Reflect.getPrototypeOf(e);function Ht(e,t,n){return function(...r){let i=this.__v_raw,a=F(i),o=p(a),s=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?Bt:t?pn:fn;return!t&&_t(a,`iterate`,l?ht:mt),c(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:s?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function Ut(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Wt(e,t){let n={get(n){let r=this.__v_raw,i=F(r),a=F(n);e||(M(n,a)&&_t(i,`get`,n),_t(i,`get`,a));let{has:o}=Vt(i),s=t?Bt:e?pn:fn;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&_t(F(t),`iterate`,mt),t.size},has(t){let n=this.__v_raw,r=F(n),i=F(t);return e||(M(t,i)&&_t(r,`has`,t),_t(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=F(a),s=t?Bt:e?pn:fn;return!e&&_t(o,`iterate`,mt),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return c(n,e?{add:Ut(`add`),set:Ut(`set`),delete:Ut(`delete`),clear:Ut(`clear`)}:{add(e){let n=F(this),r=Vt(n),i=F(e),a=!t&&!ln(e)&&!cn(e)?i:e;return r.has.call(n,a)||M(e,a)&&r.has.call(n,e)||M(i,a)&&r.has.call(n,i)||(n.add(a),vt(n,`add`,a,a)),this},set(e,n){!t&&!ln(n)&&!cn(n)&&(n=F(n));let r=F(this),{has:i,get:a}=Vt(r),o=i.call(r,e);o||=(e=F(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?M(n,s)&&vt(r,`set`,e,n,s):vt(r,`add`,e,n),this},delete(e){let t=F(this),{has:n,get:r}=Vt(t),i=n.call(t,e);i||=(e=F(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&vt(t,`delete`,e,void 0,a),o},clear(){let e=F(this),t=e.size!==0,n=e.clear();return t&&vt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Ht(r,e,t)}),n}function Gt(e,t){let n=Wt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(d(n,r)&&r in t?n:t,r,i)}var Kt={get:Gt(!1,!1)},qt={get:Gt(!1,!0)},Jt={get:Gt(!0,!1)},Yt={get:Gt(!0,!0)},Xt=new WeakMap,Zt=new WeakMap,Qt=new WeakMap,$t=new WeakMap;function en(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function tn(e){return cn(e)?e:on(e,!1,It,Kt,Xt)}function nn(e){return on(e,!1,Rt,qt,Zt)}function rn(e){return on(e,!0,Lt,Jt,Qt)}function an(e){return on(e,!0,zt,Yt,$t)}function on(e,t,n,r,i){if(!b(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=en(w(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function sn(e){return cn(e)?sn(e.__v_raw):!!(e&&e.__v_isReactive)}function cn(e){return!!(e&&e.__v_isReadonly)}function ln(e){return!!(e&&e.__v_isShallow)}function un(e){return e?!!e.__v_raw:!1}function F(e){let t=e&&e.__v_raw;return t?F(t):e}function dn(e){return!d(e,`__v_skip`)&&Object.isExtensible(e)&&ae(e,`__v_skip`,!0),e}var fn=e=>b(e)?tn(e):e,pn=e=>b(e)?rn(e):e;function I(e){return e?e.__v_isRef===!0:!1}function mn(e){return gn(e,!1)}function hn(e){return gn(e,!0)}function gn(e,t){return I(e)?e:new _n(e,t)}var _n=class{constructor(e,t){this.dep=new dt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:F(e),this._value=t?e:fn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||ln(e)||cn(e);e=n?e:F(e),M(e,t)&&(this._rawValue=e,this._value=n?e:fn(e),this.dep.trigger())}};function vn(e){e.dep&&e.dep.trigger()}function yn(e){return I(e)?e.value:e}function bn(e){return _(e)?e():yn(e)}var xn={get:(e,t,n)=>t===`__v_raw`?e:yn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return I(i)&&!I(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Sn(e){return sn(e)?e:new Proxy(e,xn)}var Cn=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new dt,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function wn(e){return new Cn(e)}function Tn(e){let t=f(e)?Array(e.length):{};for(let n in e)t[n]=kn(e,n);return t}var En=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=y(t)?t:String(t),this._raw=F(e);let r=!0,i=e;if(!f(e)||y(this._key)||!E(this._key))do r=!un(i)||ln(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=yn(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&I(this._raw[this._key])){let t=this._object[this._key];if(I(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return yt(this._raw,this._key)}},Dn=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function On(e,t,n){return I(e)?e:_(e)?new Dn(e):b(e)&&arguments.length>1?kn(e,t,n):mn(e)}function kn(e,t,n){return new En(e,t,n)}var An=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new dt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=lt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&P!==this)return qe(this,!0),!0}get value(){let e=this.dep.track();return $e(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function jn(e,t,n=!1){let r,i;return _(e)?r=e:(r=e.get,i=e.set),new An(r,i,n)}var Mn={GET:`get`,HAS:`has`,ITERATE:`iterate`},Nn={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},Pn={},Fn=new WeakMap,In=void 0;function Ln(){return In}function Rn(e,t=!1,n=In){if(n){let t=Fn.get(n);t||Fn.set(n,t=[]),t.push(e)}}function zn(e,t,r=n){let{immediate:a,deep:o,once:s,scheduler:c,augmentJob:u,call:d}=r,p=e=>o?e:ln(e)||o===!1||o===0?Bn(e,1):Bn(e),m,h,g,v,y=!1,b=!1;if(I(e)?(h=()=>e.value,y=ln(e)):sn(e)?(h=()=>p(e),y=!0):f(e)?(b=!0,y=e.some(e=>sn(e)||ln(e)),h=()=>e.map(e=>{if(I(e))return e.value;if(sn(e))return p(e);if(_(e))return d?d(e,2):e()})):h=_(e)?t?d?()=>d(e,2):e:()=>{if(g){ot();try{g()}finally{st()}}let t=In;In=m;try{return d?d(e,3,[v]):e(v)}finally{In=t}}:i,t&&o){let e=h,t=o===!0?1/0:o;h=()=>Bn(e(),t)}let x=Be(),S=()=>{m.stop(),x&&x.active&&l(x.effects,m)};if(s&&t){let e=t;t=(...t)=>{e(...t),S()}}let C=b?Array(e.length).fill(Pn):Pn,w=e=>{if(!(!(m.flags&1)||!m.dirty&&!e))if(t){let e=m.run();if(o||y||(b?e.some((e,t)=>M(e,C[t])):M(e,C))){g&&g();let n=In;In=m;try{let n=[e,C===Pn?void 0:b&&C[0]===Pn?[]:C,v];C=e,d?d(t,3,n):t(...n)}finally{In=n}}}else m.run()};return u&&u(w),m=new Ue(h),m.scheduler=c?()=>c(w,!1):w,v=e=>Rn(e,!1,m),g=m.onStop=()=>{let e=Fn.get(m);if(e){if(d)d(e,4);else for(let t of e)t();Fn.delete(m)}},t?a?w(!0):C=m.run():c?c(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function Bn(e,t=1/0,n){if(t<=0||!b(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,I(e))Bn(e.value,t,n);else if(f(e))for(let r=0;r{Bn(e,t,n)});else if(T(e)){for(let r in e)Bn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Bn(e[r],t,n)}return e}var Vn=[];function Hn(e){Vn.push(e)}function Un(){Vn.pop()}function Wn(e,t){}var Gn={SETUP_FUNCTION:0,0:`SETUP_FUNCTION`,RENDER_FUNCTION:1,1:`RENDER_FUNCTION`,NATIVE_EVENT_HANDLER:5,5:`NATIVE_EVENT_HANDLER`,COMPONENT_EVENT_HANDLER:6,6:`COMPONENT_EVENT_HANDLER`,VNODE_HOOK:7,7:`VNODE_HOOK`,DIRECTIVE_HOOK:8,8:`DIRECTIVE_HOOK`,TRANSITION_HOOK:9,9:`TRANSITION_HOOK`,APP_ERROR_HANDLER:10,10:`APP_ERROR_HANDLER`,APP_WARN_HANDLER:11,11:`APP_WARN_HANDLER`,FUNCTION_REF:12,12:`FUNCTION_REF`,ASYNC_COMPONENT_LOADER:13,13:`ASYNC_COMPONENT_LOADER`,SCHEDULER:14,14:`SCHEDULER`,COMPONENT_UPDATE:15,15:`COMPONENT_UPDATE`,APP_UNMOUNT_CLEANUP:16,16:`APP_UNMOUNT_CLEANUP`},Kn={sp:`serverPrefetch hook`,bc:`beforeCreate hook`,c:`created hook`,bm:`beforeMount hook`,m:`mounted hook`,bu:`beforeUpdate hook`,u:`updated`,bum:`beforeUnmount hook`,um:`unmounted hook`,a:`activated hook`,da:`deactivated hook`,ec:`errorCaptured hook`,rtc:`renderTracked hook`,rtg:`renderTriggered hook`,0:`setup function`,1:`render function`,2:`watcher getter`,3:`watcher callback`,4:`watcher cleanup function`,5:`native event handler`,6:`component event handler`,7:`vnode hook`,8:`directive hook`,9:`transition hook`,10:`app errorHandler`,11:`app warnHandler`,12:`ref function`,13:`async component loader`,14:`scheduler flush`,15:`component update`,16:`app unmount cleanup function`};function qn(e,t,n,r){try{return r?e(...r):e()}catch(e){Yn(e,t,n)}}function Jn(e,t,n,r){if(_(e)){let i=qn(e,t,n,r);return i&&x(i)&&i.catch(e=>{Yn(e,t,n)}),i}if(f(e)){let i=[];for(let a=0;a>>1,i=Zn[r],a=dr(i);a=dr(n)?Zn.push(e):Zn.splice(ar(t),0,e),e.flags|=1,sr()}}function sr(){rr||=nr.then(fr)}function cr(e){f(e)?$n.push(...e):er&&e.id===-1?er.splice(tr+1,0,e):e.flags&1||($n.push(e),e.flags|=1),sr()}function lr(e,t,n=Qn+1){for(;ndr(e)-dr(t));if($n.length=0,er){er.push(...e);return}for(er=e,tr=0;tre.id==null?e.flags&2?-1:1/0:e.id;function fr(e){try{for(Qn=0;Qnpr.emit(e,...t)),mr=[]):typeof window<`u`&&window.HTMLElement&&!(window.navigator?.userAgent)?.includes(`jsdom`)?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{hr(e,t)}),setTimeout(()=>{pr||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,mr=[])},3e3)):mr=[]}var L=null,gr=null;function _r(e){let t=L;return L=e,gr=e&&e.type.__scopeId||null,t}function vr(e){gr=e}function yr(){gr=null}var br=e=>xr;function xr(e,t=L,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&hs(-1);let i=_r(t),a;try{a=e(...n)}finally{_r(i),r._d&&hs(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Sr(e,t){if(L===null)return e;let r=nc(L),i=e.dirs||=[];for(let e=0;e1)return n&&_(t)?t.call(r&&r.proxy):t}}function Er(){return!!(zs()||io)}var Dr=Symbol.for(`v-scx`),Or=()=>Tr(Dr);function kr(e,t){return Nr(e,null,t)}function Ar(e,t){return Nr(e,null,{flush:`post`})}function jr(e,t){return Nr(e,null,{flush:`sync`})}function Mr(e,t,n){return Nr(e,t,n)}function Nr(e,t,r=n){let{immediate:a,deep:o,flush:s,once:l}=r,u=c({},r),d=t&&a||!t&&s!==`post`,f;if(Gs){if(s===`sync`){let e=Or();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=i,e.resume=i,e.pause=i,e}}let p=H;u.call=(e,t,n)=>Jn(e,p,t,n);let m=!1;s===`post`?u.scheduler=e=>{R(e,p&&p.suspense)}:s!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():or(e)}),u.augmentJob=e=>{t&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=zn(e,t,u);return Gs&&(f?f.push(h):d&&h()),h}function Pr(e,t,n){let r=this.proxy,i=v(e)?e.includes(`.`)?Fr(r,e):()=>r[e]:e.bind(r,r),a;_(t)?a=t:(a=t.handler,n=t);let o=Hs(this),s=Nr(i,a.bind(r),n);return o(),s}function Fr(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;ee.__isTeleport,zr=e=>e&&(e.disabled||e.disabled===``),Br=e=>e&&(e.defer||e.defer===``),Vr=e=>typeof SVGElement<`u`&&e instanceof SVGElement,Hr=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,Ur=(e,t)=>{let n=e&&e.to;return v(n)?t?t(n):null:n},Wr={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=zr(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=zr(e.props),r=e.target=Ur(e.props,m),a=Yr(r,e,h,p);r&&(o!==`svg`&&Vr(r)?o=`svg`:o!==`mathml`&&Hr(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),Jr(e,!1)))},S=e=>{let t=()=>{Ir.get(e)===t&&(Ir.delete(e),zr(e.props)&&(b(e,_(e.el)||n,e.anchor),Jr(e,!0)),x(e))};Ir.set(e,t),R(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),Br(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),Jr(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=Ir.get(e);if(u){u.flags|=8,Ir.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=zr(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||Vr(p)?o=`svg`:(o===`mathml`||Hr(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),Wo(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Gr(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=t.target=Ur(t.props,m);e&&Gr(t,e,null,l,0)}else g&&Gr(t,p,h,l,1);Jr(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=a||!zr(f),m=Ir.get(e);if(m&&(m.flags|=8,Ir.delete(e)),d&&(i(l),i(u)),a&&i(c),!m&&o&16)for(let e=0;e{e.isMounted=!0}),ta(()=>{e.isUnmounting=!0}),e}var $r=[Function,Array],ei={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:$r,onEnter:$r,onAfterEnter:$r,onEnterCancelled:$r,onBeforeLeave:$r,onLeave:$r,onAfterLeave:$r,onLeaveCancelled:$r,onBeforeAppear:$r,onAppear:$r,onAfterAppear:$r,onAppearCancelled:$r},ti=e=>{let t=e.subTree;return t.component?ti(t.component):t},ni={name:`BaseTransition`,props:ei,setup(e,{slots:t}){let n=zs(),r=Qr();return()=>{let i=t.default&&ui(t.default(),!0),a=i&&i.length?ri(i):n.subTree?As():void 0;if(!a)return;let o=F(e),{mode:s}=o;if(r.isLeaving)return si(a);let c=ci(a);if(!c)return si(a);let l=oi(c,o,r,n,e=>l=e);c.type!==B&&li(c,l);let u=n.subTree&&ci(n.subTree);if(u&&u.type!==B&&!bs(u,c)&&ti(n).type!==B){let e=oi(u,o,r,n);if(li(u,e),s===`out-in`&&c.type!==B)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},si(a);s===`in-out`&&c.type!==B?e.delayLeave=(e,t,n)=>{let i=ai(r,u);i[String(u.key)]=u,e[Xr]=()=>{t(),e[Xr]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function ri(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==B){t=n;break}}return t}var ii=ni;function ai(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function oi(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:m,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:_,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,x=String(e.key),S=ai(n,e),C=(e,t)=>{e&&Jn(e,r,9,t)},w=(e,t)=>{let n=t[1];C(e,t),f(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted)if(a)r=_||c;else return;t[Xr]&&t[Xr](!0);let i=S[x];i&&bs(e,i)&&i.el[Xr]&&i.el[Xr](),C(r,[t])},enter(t){if(S[x]===e)return;let r=l,i=u,o=d;if(!n.isMounted)if(a)r=v||l,i=y||u,o=b||d;else return;let s=!1;t[Zr]=e=>{s||(s=!0,C(e?o:i,[t]),T.delayedLeave&&T.delayedLeave(),t[Zr]=void 0)};let c=t[Zr].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[Zr]&&t[Zr](!0),n.isUnmounting)return r();C(p,[t]);let a=!1;t[Xr]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[Xr]=void 0,S[i]===e&&delete S[i])};let o=t[Xr].bind(null,!1);S[i]=e,m?w(m,[t,o]):o()},clone(e){let a=oi(e,t,n,r,i);return i&&i(a),a}};return T}function si(e){if(Bi(e))return e=Ds(e),e.children=null,e}function ci(e){if(!Bi(e))return Rr(e.type)&&e.children?ri(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&_(n.default))return n.default()}}function li(e,t){e.shapeFlag&6&&e.component?(e.transition=t,li(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ui(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let e=0;er.value,set:e=>r.value=e})}return r}function hi(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var gi=new WeakMap;function _i(e,t,r,i,o=!1){if(f(e)){e.forEach((e,n)=>_i(e,t&&(f(t)?t[n]:t),r,i,o));return}if(Li(i)&&!o){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&_i(e,t,r,i.component.subTree);return}let s=i.shapeFlag&4?nc(i.component):i.el,c=o?null:s,{i:u,r:p}=e,m=t&&t.r,h=u.refs===n?u.refs={}:u.refs,g=u.setupState,y=F(g),b=g===n?a:e=>hi(h,e)?!1:d(y,e),x=(e,t)=>!(t&&hi(h,t));if(m!=null&&m!==p){if(vi(t),v(m))h[m]=null,b(m)&&(g[m]=null);else if(I(m)){let e=t;x(m,e.k)&&(m.value=null),e.k&&(h[e.k]=null)}}if(_(p))qn(p,u,12,[c,h]);else{let t=v(p),n=I(p);if(t||n){let i=()=>{if(e.f){let n=t?b(p)?g[p]:h[p]:x(p)||!e.k?p.value:h[e.k];if(o)f(n)&&l(n,s);else if(f(n))n.includes(s)||n.push(s);else if(t)h[p]=[s],b(p)&&(g[p]=h[p]);else{let t=[s];x(p,e.k)&&(p.value=t),e.k&&(h[e.k]=t)}}else t?(h[p]=c,b(p)&&(g[p]=c)):n&&(x(p,e.k)&&(p.value=c),e.k&&(h[e.k]=c))};if(c){let t=()=>{i(),gi.delete(e)};t.id=-1,gi.set(e,t),R(t,r)}else vi(e),i()}}}function vi(e){let t=gi.get(e);t&&(t.flags|=8,gi.delete(e))}var yi=!1,bi=()=>{yi||=(console.error(`Hydration completed but contains mismatches.`),!0)},xi=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,Si=e=>e.namespaceURI.includes(`MathML`),Ci=e=>{if(e.nodeType===1){if(xi(e))return`svg`;if(Si(e))return`mathml`}},wi=e=>e.nodeType===8;function Ti(e){let{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:s,remove:c,insert:l,createComment:u}}=e,d=(e,t)=>{if(!t.hasChildNodes()){n(null,e,t),ur(),t._vnode=e;return}f(t.firstChild,e,null,null,null),ur(),t._vnode=e},f=(n,r,o,c,u,d=!1)=>{d||=!!r.dynamicChildren;let b=wi(n)&&n.data===`[`,x=()=>g(n,r,o,c,u,b),{type:S,ref:C,shapeFlag:w,patchFlag:T}=r,E=n.nodeType;r.el=n,T===-2&&(d=!1,r.dynamicChildren=null);let D=null;switch(S){case cs:E===3?(n.data!==r.children&&(bi(),n.data=r.children),D=a(n)):r.children===``?(l(r.el=i(``),s(n),n),D=n):D=x();break;case B:y(n)?(D=a(n),v(r.el=n.content.firstChild,n,o)):D=E!==8||b?x():a(n);break;case ls:if(b&&(n=a(n),E=n.nodeType),E===1||E===3){D=n;let e=!r.children.length;for(let t=0;t{s||=!!t.dynamicChildren;let{type:l,props:u,patchFlag:d,shapeFlag:f,dirs:p,transition:h}=t,g=l===`input`||l===`option`;if(g||d!==-1){p&&Cr(t,null,n,`created`);let l=!1;if(y(e)){l=Uo(null,h)&&n&&n.vnode.props&&n.vnode.props.appear;let r=e.content.firstChild;if(l){let e=r.getAttribute(`class`);e&&(r.$cls=e),h.beforeEnter(r)}v(r,e,n),t.el=e=r}if(f&16&&!(u&&(u.innerHTML||u.textContent))){let r=m(e.firstChild,t,e,n,i,a,s);for(r&&!Oi(e,1)&&bi();r;){let e=r;r=r.nextSibling,c(e)}}else if(f&8){let n=t.children;n[0]===` +`&&(e.tagName===`PRE`||e.tagName===`TEXTAREA`)&&(n=n.slice(1));let{textContent:r}=e;r!==n&&r!==n.replace(/\r\n|\r/g,` +`)&&(Oi(e,0)||bi(),e.textContent=t.children)}if(u){if(g||!s||d&48){let t=e.tagName.includes(`-`);for(let i in u)(g&&(i.endsWith(`value`)||i===`indeterminate`)||o(i)&&!D(i)||i[0]===`.`||t&&!D(i))&&r(e,i,null,u[i],void 0,n)}else if(u.onClick)r(e,`onClick`,null,u.onClick,void 0,n);else if(d&4&&sn(u.style))for(let e in u.style)u.style[e]}let _;(_=u&&u.onVnodeBeforeMount)&&Fs(_,n,t),p&&Cr(t,null,n,`beforeMount`),((_=u&&u.onVnodeMounted)||p||l)&&as(()=>{_&&Fs(_,n,t),l&&h.enter(e),p&&Cr(t,null,n,`mounted`)},i)}return e.nextSibling},m=(e,t,r,o,s,c,u)=>{u||=!!t.dynamicChildren;let d=t.children,p=d.length,m=!1;for(let t=0;t{let{slotScopeIds:c}=t;c&&(i=i?i.concat(c):c);let d=s(e),f=m(a(e),t,d,n,r,i,o);return f&&wi(f)&&f.data===`]`?a(t.anchor=f):(bi(),l(t.anchor=u(`]`),d,f),f)},g=(e,t,r,i,o,l)=>{if(Oi(e.parentElement,1)||bi(),t.el=null,l){let t=_(e);for(;;){let n=a(e);if(n&&n!==t)c(n);else break}}let u=a(e),d=s(e);return c(e),n(null,t,d,u,r,i,Ci(d),o),r&&(r.vnode.el=t.el,yo(r,t.el)),u},_=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=a(e),e&&wi(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return a(e);r--}return e},v=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},y=e=>e.nodeType===1&&e.tagName===`TEMPLATE`;return[d,f]}var Ei=`data-allow-mismatch`,Di={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function Oi(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Ei);)e=e.parentElement;let n=e&&e.getAttribute(Ei);if(n==null)return!1;if(n===``)return!0;{let e=n.split(`,`);return t===0&&e.includes(`children`)?!0:e.includes(Di[t])}}var ki=le().requestIdleCallback||(e=>setTimeout(e,1)),Ai=le().cancelIdleCallback||(e=>clearTimeout(e)),ji=(e=1e4)=>t=>{let n=ki(t,{timeout:e});return()=>Ai(n)};function Mi(e){let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t0&&r0&&n0&&i(t,n)=>{let r=new IntersectionObserver(e=>{for(let n of e)if(n.isIntersecting){r.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element){if(Mi(e))return t(),r.disconnect(),!1;r.observe(e)}}),()=>r.disconnect()},Pi=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener(`change`,t,{once:!0}),()=>n.removeEventListener(`change`,t)}},Fi=(e=[])=>(t,n)=>{v(e)&&(e=[e]);let r=!1,i=e=>{r||(r=!0,a(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},a=()=>{n(t=>{for(let n of e)t.removeEventListener(n,i)})};return n(t=>{for(let n of e)t.addEventListener(n,i,{once:!0})}),a};function Ii(e,t){if(wi(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(wi(r))if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++;r=r.nextSibling}}else t(e)}var Li=e=>!!e.type.__asyncLoader;function Ri(e){_(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return di({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=!1;(t.bu||=[]).push(()=>r=!0);let i=()=>{r||n()},o=a?()=>{let n=a(i,t=>Ii(e,t));n&&(t.bum||=[]).push(n)}:i;u?o():p().then(()=>!t.isUnmounted&&o())},get __asyncResolved(){return u},setup(){let e=H;if(pi(e),u)return()=>zi(u,e);let t=t=>{l=null,Yn(t,e,13,!r)};if(s&&e.suspense||Gs)return p().then(t=>()=>zi(t,e)).catch(e=>(t(e),()=>r?V(r,{error:e}):null));let a=mn(!1),c=mn(),d=mn(!!i);return i&&setTimeout(()=>{d.value=!1},i),o!=null&&setTimeout(()=>{if(!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o),p().then(()=>{a.value=!0,e.parent&&Bi(e.parent.vnode)&&e.parent.update()}).catch(e=>{t(e),c.value=e}),()=>{if(a.value&&u)return zi(u,e);if(c.value&&r)return V(r,{error:c.value});if(n&&!d.value)return zi(n,e)}}})}function zi(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=V(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var Bi=e=>e.type.__isKeepAlive,Vi={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=zs(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let i=new Map,a=new Set,o=null,s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d(`div`);r.activate=(e,t,n,r,i)=>{let a=e.component;l(e,t,n,0,s),c(a.vnode,e,t,n,a,s,r,e.slotScopeIds,i),R(()=>{a.isDeactivated=!1,a.a&&ie(a.a);let t=e.props&&e.props.onVnodeMounted;t&&Fs(t,a.parent,e)},s)},r.deactivate=e=>{let t=e.component;qo(t.m),qo(t.a),l(e,f,null,1,s),R(()=>{t.da&&ie(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&Fs(n,t.parent,e),t.isDeactivated=!0},s)};function p(e){qi(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=rc(Li(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!bs(t,o))?p(t):o&&qi(o),i.delete(e),a.delete(e)}Mr(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>Hi(e,t)),t&&m(e=>!Hi(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{g!=null&&(Yo(n.subTree.type)?R(()=>{i.set(g,Ji(n.subTree))},n.subTree.suspense):i.set(g,Ji(n.subTree)))};return Qi(_),ea(_),ta(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=Ji(t);if(e.type===i.type&&e.key===i.key){qi(i);let e=i.component.da;e&&R(e,r);return}p(e)})}),()=>{if(g=null,!t.default)return o=null;let n=t.default(),r=n[0];if(n.length>1)return o=null,n;if(!ys(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=Ji(r);if(s.type===B)return o=null,s;let c=s.type,l=rc(Li(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!Hi(u,l))||d&&l&&Hi(d,l))return s.shapeFlag&=-257,o=s,r;let p=s.key==null?c:s.key,m=i.get(p);return s.el&&(s=Ds(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&li(s,s.transition),s.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),f&&a.size>parseInt(f,10)&&h(a.values().next().value)),s.shapeFlag|=256,o=s,Yo(r.type)?r:s}}};function Hi(e,t){return f(e)?e.some(e=>Hi(e,t)):v(e)?e.split(`,`).includes(t):g(e)?(e.lastIndex=0,e.test(t)):!1}function Ui(e,t){Gi(e,`a`,t)}function Wi(e,t){Gi(e,`da`,t)}function Gi(e,t,n=H){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Yi(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Bi(e.parent.vnode)&&Ki(r,t,n,e),e=e.parent}}function Ki(e,t,n,r){let i=Yi(t,e,r,!0);na(()=>{l(r[t],i)},n)}function qi(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ji(e){return e.shapeFlag&128?e.ssContent:e}function Yi(e,t,n=H,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{ot();let i=Hs(n),a=Jn(t,n,e,r);return i(),st(),a};return r?i.unshift(a):i.push(a),a}}var Xi=e=>(t,n=H)=>{(!Gs||e===`sp`)&&Yi(e,(...e)=>t(...e),n)},Zi=Xi(`bm`),Qi=Xi(`m`),$i=Xi(`bu`),ea=Xi(`u`),ta=Xi(`bum`),na=Xi(`um`),ra=Xi(`sp`),ia=Xi(`rtg`),aa=Xi(`rtc`);function oa(e,t=H){Yi(`ec`,e,t)}var sa=`components`,ca=`directives`;function la(e,t){return pa(sa,e,!0,t)||e}var ua=Symbol.for(`v-ndc`);function da(e){return v(e)?pa(sa,e,!1)||e:e||ua}function fa(e){return pa(ca,e)}function pa(e,t,n=!0,r=!1){let i=L||H;if(i){let n=i.type;if(e===sa){let e=rc(n,!1);if(e&&(e===t||e===k(t)||e===re(k(t))))return n}let a=ma(i[e]||n[e],t)||ma(i.appContext[e],t);return!a&&r?n:a}}function ma(e,t){return e&&(e[t]||e[k(t)]||e[re(k(t))])}function ha(e,t,n,r){let i,a=n&&n[r],o=f(e);if(o||v(e)){let n=o&&sn(e),r=!1,s=!1;n&&(r=!ln(e),s=cn(e),e=xt(e)),i=Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function _a(e,t,n={},r,i){if(L.ce||L.parent&&Li(L.parent)&&L.parent.ce){let e=Object.keys(n).length>0;return t!=="default"&&(n.name=t),fs(),vs(z,null,[V(`slot`,n,r&&r())],e?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),fs();let o=a&&va(a(n)),s=n.key||o&&o.key,c=vs(z,{key:(s&&!y(s)?s:`_${t}`)+(!o&&r?`_fb`:``)},o||(r?r():[]),o&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),a&&a._c&&(a._d=!0),c}function va(e){return e.some(e=>ys(e)?!(e.type===B||e.type===z&&!va(e.children)):!0)?e:null}function ya(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:j(r)]=e[r];return n}var ba=e=>e?Ws(e)?nc(e):ba(e.parent):null,xa=c(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ba(e.parent),$root:e=>ba(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ga(e),$forceUpdate:e=>e.f||=()=>{or(e.update)},$nextTick:e=>e.n||=ir.bind(e.proxy),$watch:e=>Pr.bind(e)}),Sa=(e,t)=>e!==n&&!e.__isScriptSetup&&d(e,t),Ca={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(t[0]!==`$`){let e=s[t];if(e!==void 0)switch(e){case 1:return i[t];case 2:return a[t];case 4:return r[t];case 3:return o[t]}else if(Sa(i,t))return s[t]=1,i[t];else if(a!==n&&d(a,t))return s[t]=2,a[t];else if(d(o,t))return s[t]=3,o[t];else if(r!==n&&d(r,t))return s[t]=4,r[t];else Ba&&(s[t]=0)}let u=xa[t],f,p;if(u)return t===`$attrs`&&_t(e.attrs,`get`,``),u(e);if((f=c.__cssModules)&&(f=f[t]))return f;if(r!==n&&d(r,t))return s[t]=4,r[t];if(p=l.config.globalProperties,d(p,t))return p[t]},set({_:e},t,r){let{data:i,setupState:a,ctx:o}=e;return Sa(a,t)?(a[t]=r,!0):i!==n&&d(i,t)?(i[t]=r,!0):d(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(o[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==n&&c[0]!==`$`&&d(e,c)||Sa(t,c)||d(o,c)||d(i,c)||d(xa,c)||d(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?d(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}},wa=c({},Ca,{get(e,t){if(t!==Symbol.unscopables)return Ca.get(e,t,e)},has(e,t){return t[0]!==`_`&&!de(t)}});function Ta(){return null}function Ea(){return null}function Da(e){}function Oa(e){}function ka(){return null}function Aa(){}function ja(e,t){return null}function Ma(){return Pa(`useSlots`).slots}function Na(){return Pa(`useAttrs`).attrs}function Pa(e){let t=zs();return t.setupContext||=tc(t)}function Fa(e){return f(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function Ia(e,t){let n=Fa(e);for(let e in t){if(e.startsWith(`__skip`))continue;let r=n[e];r?f(r)||_(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:r===null&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function La(e,t){return!e||!t?e||t:f(e)&&f(t)?e.concat(t):c({},Fa(e),Fa(t))}function Ra(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function za(e){let t=zs(),n=Gs,r=e();Us(),n&&Vs(!1);let i=()=>{Hs(t),n&&Vs(!0)},a=()=>{zs()!==t&&t.scope.off(),Us(),n&&Vs(!1)};return x(r)&&(r=r.catch(e=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(a)),e})),[r,()=>{i(),Promise.resolve().then(a)}]}var Ba=!0;function Va(e){let t=Ga(e),n=e.proxy,r=e.ctx;Ba=!1,t.beforeCreate&&Ua(t.beforeCreate,e,`bc`);let{data:a,computed:o,methods:s,watch:c,provide:l,inject:u,created:d,beforeMount:p,mounted:m,beforeUpdate:h,updated:g,activated:v,deactivated:y,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:w,render:T,renderTracked:E,renderTriggered:D,errorCaptured:ee,serverPrefetch:O,expose:te,inheritAttrs:k,components:ne,directives:A,filters:re}=t;if(u&&Ha(u,r,null),s)for(let e in s){let t=s[e];_(t)&&(r[e]=t.bind(n))}if(a){let t=a.call(n,n);b(t)&&(e.data=tn(t))}if(Ba=!0,o)for(let e in o){let t=o[e],a=ac({get:_(t)?t.bind(n,n):_(t.get)?t.get.bind(n,n):i,set:!_(t)&&_(t.set)?t.set.bind(n):i});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(let e in c)Wa(c[e],r,n,e);if(l){let e=_(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{wr(t,e[t])})}d&&Ua(d,e,`c`);function j(e,t){f(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(j(Zi,p),j(Qi,m),j($i,h),j(ea,g),j(Ui,v),j(Wi,y),j(oa,ee),j(aa,E),j(ia,D),j(ta,S),j(na,w),j(ra,O),f(te))if(te.length){let t=e.exposed||={};te.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};T&&e.render===i&&(e.render=T),k!=null&&(e.inheritAttrs=k),ne&&(e.components=ne),A&&(e.directives=A),O&&pi(e)}function Ha(e,t,n=i){f(e)&&(e=Xa(e));for(let n in e){let r=e[n],i;i=b(r)?`default`in r?Tr(r.from||n,r.default,!0):Tr(r.from||n):Tr(r),I(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Ua(e,t,n){Jn(f(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Wa(e,t,n,r){let i=r.includes(`.`)?Fr(n,r):()=>n[r];if(v(e)){let n=t[e];_(n)&&Mr(i,n)}else if(_(e))Mr(i,e.bind(n));else if(b(e))if(f(e))e.forEach(e=>Wa(e,t,n,r));else{let r=_(e.handler)?e.handler.bind(n):t[e.handler];_(r)&&Mr(i,r,e)}}function Ga(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Ka(c,e,o,!0)),Ka(c,t,o)),b(t)&&a.set(t,c),c}function Ka(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Ka(e,a,n,!0),i&&i.forEach(t=>Ka(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=qa[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var qa={data:Ja,props:$a,emits:$a,methods:Qa,computed:Qa,beforeCreate:Za,created:Za,beforeMount:Za,mounted:Za,beforeUpdate:Za,updated:Za,beforeDestroy:Za,beforeUnmount:Za,destroyed:Za,unmounted:Za,activated:Za,deactivated:Za,errorCaptured:Za,serverPrefetch:Za,components:Qa,directives:Qa,watch:eo,provide:Ja,inject:Ya};function Ja(e,t){return t?e?function(){return c(_(e)?e.call(this,this):e,_(t)?t.call(this,this):t)}:t:e}function Ya(e,t){return Qa(Xa(e),Xa(t))}function Xa(e){if(f(e)){let t={};for(let n=0;n{let l,u=n,d;return jr(()=>{let t=e[a];M(l,t)&&(l=t,c())}),{get(){return s(),r.get?r.get(l):l},set(e){let s=r.set?r.set(e):e;if(!M(s,l)&&!(u!==n&&M(e,u)))return;let f=i.vnode.props;f&&(t in f||a in f||o in f)&&(`onUpdate:${t}`in f||`onUpdate:${a}`in f||`onUpdate:${o}`in f)||(l=e,c()),i.emit(`update:${t}`,s),M(e,s)&&M(e,u)&&!M(s,d)&&c(),u=e,d=s}}});return c[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?s||n:c,done:!1}:{done:!0}}}},c}var oo=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${k(t)}Modifiers`]||e[`${A(t)}Modifiers`];function so(e,t,...r){if(e.isUnmounted)return;let i=e.vnode.props||n,a=r,o=t.startsWith(`update:`),s=o&&oo(i,t.slice(7));s&&(s.trim&&(a=r.map(e=>v(e)?e.trim():e)),s.number&&(a=r.map(oe)));let c,l=i[c=j(t)]||i[c=j(k(t))];!l&&o&&(l=i[c=j(A(t))]),l&&Jn(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Jn(u,e,6,a)}}var co=new WeakMap;function lo(e,t,n=!1){let r=n?co:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!_(e)){let r=e=>{let n=lo(e,t,!0);n&&(s=!0,c(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(b(e)&&r.set(e,null),null):(f(a)?a.forEach(e=>o[e]=null):c(o,a),b(e)&&r.set(e,o),o)}function uo(e,t){return!e||!o(t)?!1:(t=t.slice(2).replace(/Once$/,``),d(e,t[0].toLowerCase()+t.slice(1))||d(e,A(t))||d(e,t))}function fo(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=_r(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=js(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=js(e.length>1?e(f,{attrs:c,slots:o,emit:l}):e(f,null)),y=t.props?c:mo(c)}}catch(t){us.length=0,Yn(t,e,1),v=V(B)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(s)&&(y=ho(y,a)),b=Ds(b,y,!1,!0))}return n.dirs&&(b=Ds(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&li(b,n.transition),v=b,_r(_),v}function po(e,t=!0){let n;for(let t=0;t{let t;for(let n in e)(n===`class`||n===`style`||o(n))&&((t||={})[n]=e[n]);return t},ho=(e,t)=>{let n={};for(let r in e)(!s(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function go(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?_o(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;tObject.create(bo),So=e=>Object.getPrototypeOf(e)===bo;function Co(e,t,n,r=!1){let i={},a=xo();e.propsDefaults=Object.create(null),To(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:nn(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function wo(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=F(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r{p=!0;let[n,r]=Oo(e,t,!0);c(l,n),r&&u.push(...r)};!i&&t.mixins.length&&t.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}if(!s&&!p)return b(e)&&a.set(e,r),r;if(f(s))for(let e=0;ee===`_`||e===`_ctx`||e===`$stable`,jo=e=>f(e)?e.map(js):[js(e)],Mo=(e,t,n)=>{if(t._n)return t;let r=xr((...e)=>jo(t(...e)),n);return r._c=!1,r},No=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Ao(n))continue;let i=e[n];if(_(i))t[n]=Mo(n,i,r);else if(i!=null){let e=jo(i);t[n]=()=>e}}},Po=(e,t)=>{let n=jo(t);e.slots.default=()=>n},Fo=(e,t,n)=>{for(let r in t)(n||!Ao(r))&&(e[r]=t[r])},Io=(e,t,n)=>{let r=e.slots=xo();if(e.vnode.shapeFlag&32){let e=t._;e?(Fo(r,t,n),n&&ae(r,`_`,e,!0)):No(t,r)}else t&&Po(e,t)},Lo=(e,t,r)=>{let{vnode:i,slots:a}=e,o=!0,s=n;if(i.shapeFlag&32){let e=t._;e?r&&e===1?o=!1:Fo(a,t,r):(o=!t.$stable,No(t,a)),s=t}else t&&(Po(e,t),s={default:1});if(o)for(let e in a)!Ao(e)&&s[e]==null&&delete a[e]},R=as;function Ro(e){return Bo(e)}function zo(e){return Bo(e,Ti)}function Bo(e,t){let a=le();a.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=i,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!bs(e,t)&&(r=ge(e),de(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case cs:y(e,t,n,r);break;case B:b(e,t,n,r);break;case ls:e??x(t,n,r,o);break;case z:ne(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?A(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,ye)}u!=null&&i?_i(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&_i(e.ref,null,a,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)T(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),O(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},T=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&ee(e.children,d,null,r,i,Vo(e,a),s,u),_&&Cr(e,null,r,`created`),E(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!D(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&Fs(f,r,e)}_&&Cr(e,null,r,`beforeMount`);let v=Uo(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&R(()=>{try{f&&Fs(f,r,e),v&&g.enter(d),_&&Cr(e,null,r,`mounted`)}finally{}},i)},E=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t{for(let l=c;l{let l=t.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=e.patchFlag&16;let m=e.props||n,h=t.props||n,g;if(r&&Ho(r,!1),(g=h.onVnodeBeforeUpdate)&&Fs(g,r,t,e),f&&Cr(t,e,r,`beforeUpdate`),r&&Ho(r,!0),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?te(e.dynamicChildren,d,l,r,i,Vo(t,a),o):s||oe(e,t,l,null,r,i,Vo(t,a),o,!1),u>0){if(u&16)k(l,m,h,r,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=t.dynamicProps;for(let t=0;t{g&&Fs(g,r,t,e),f&&Cr(t,e,r,`updated`)},i)},te=(e,t,n,r,i,a,o)=>{for(let s=0;s{if(t!==r){if(t!==n)for(let n in t)!D(n)&&!(n in r)&&c(e,n,t[n],null,a,i);for(let n in r){if(D(n))continue;let o=r[n],s=t[n];o!==s&&n!==`value`&&c(e,n,s,o,a,i)}`value`in r&&c(e,`value`,t.value,r.value,a)}},ne=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),ee(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(te(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&Wo(e,t,!0)):oe(e,t,n,f,i,a,s,c,l)},A=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):re(t,n,r,i,a,o,c):j(e,t,c)},re=(e,t,n,r,i,a,o)=>{let s=e.component=Rs(e,r,i);if(Bi(e)&&(s.ctx.renderer=ye),Ks(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,M,o),!e.el){let r=s.subTree=V(B);b(null,r,t,n),e.placeholder=r.el}}else M(s,e,t,n,i,a,o)},j=(e,t,n)=>{let r=t.component=e.component;if(go(e,t,n))if(r.asyncDep&&!r.asyncResolved){ae(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},M=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=Ko(e);if(n){t&&(t.el=c.el,ae(e,t,o)),n.asyncDep.then(()=>{R(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Ho(e,!1),t?(t.el=c.el,ae(e,t,o)):t=c,n&&ie(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Fs(d,s,t,c),Ho(e,!0);let f=fo(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),ge(p),e,i,a),t.el=f.el,u===null&&yo(e,f.el),r&&R(r,i),(d=t.props&&t.props.onVnodeUpdated)&&R(()=>Fs(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Li(t);if(Ho(e,!1),l&&ie(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Fs(o,d,t),Ho(e,!0),s&&xe){let t=()=>{e.subTree=fo(e),xe(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=fo(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&R(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;R(()=>Fs(o,d,e),i)}(t.shapeFlag&256||d&&Li(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&R(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Ue(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>or(u),Ho(e,!0),l()},ae=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,wo(e,t.props,r,n),Lo(e,t.children,n),ot(),lr(e),st()},oe=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){ce(l,d,n,r,i,a,o,s,c);return}else if(f&256){se(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&he(l,i,a),d!==l&&p(n,d)):u&16?m&16?ce(l,d,n,r,i,a,o,s,c):he(l,i,a,!0):(u&8&&p(n,``),m&16&&ee(d,n,r,i,a,o,s,c))},se=(e,t,n,i,a,o,s,c,l)=>{e||=r,t||=r;let u=e.length,d=t.length,f=Math.min(u,d),p;for(p=0;pd?he(e,a,o,!0,!1,f):ee(t,n,i,a,o,s,c,l,f)},ce=(e,t,n,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let r=e[u],i=t[u]=l?Ms(t[u]):js(t[u]);if(bs(r,i))v(r,i,n,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let r=e[f],i=t[p]=l?Ms(t[p]):js(t[p]);if(bs(r,i))v(r,i,n,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,r=ep)for(;u<=f;)de(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?Ms(t[u]):js(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u=b){de(r,a,o,!0);continue}let i;if(r.key!=null)i=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&bs(r,t[_])){i=_;break}i===void 0?de(r,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(r,t[i],n,null,a,o,s,c,l),y++)}let w=x?Go(C):r;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,r=t[e],f=t[e+1],p=e+1{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){ue(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,ye);return}if(c===z){o(a,t,n);for(let e=0;el.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[Xr];a._isLeaving&&a[Xr](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}else o(a,t,n)},de=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(ot(),_i(s,null,n,e,!0),st()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Li(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Fs(_,t,e),u&6)me(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Cr(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,ye,r):l&&!l.hasOnce&&(a!==z||d>0&&d&64)?he(l,t,n,!1,!0):(a===z&&d&384||!i&&u&16)&&he(c,t,n),r&&fe(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&R(()=>{_&&Fs(_,t,e),h&&Cr(e,null,t,`unmounted`),v&&(e.el=null)},n)},fe=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===z){pe(n,r);return}if(t===ls){C(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},pe=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},me=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;qo(c),qo(l),r&&ie(r),i.stop(),a&&(a.flags|=8,de(o,e,t,n)),s&&R(s,t),R(()=>{e.isUnmounted=!0},t)},he=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o{if(e.shapeFlag&6)return ge(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Lr];return n?h(n):t},_e=!1,ve=(e,t,n)=>{let r;e==null?t._vnode&&(de(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,_e||=(_e=!0,lr(r),ur(),!1)},ye={p:v,um:de,m:ue,r:fe,mt:re,mc:ee,pc:oe,pbc:te,n:ge,o:e},be,xe;return t&&([be,xe]=t(ye)),{render:ve,hydrate:be,createApp:ro(ve,be)}}function Vo({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function Ho({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Uo(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Wo(e,t,n=!1){let r=e.children,i=t.children;if(f(r)&&f(i))for(let e=0;e>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function Ko(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ko(t)}function qo(e){if(e)for(let t=0;te.__isSuspense,Xo=0,Zo={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)$o(t,n,r,i,a,o,s,c,l);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}es(e,t,n,r,i,o,s,c,l)}},hydrate:ns,normalize:rs};function Qo(e,t){let n=e.props&&e.props[t];_(n)&&n()}function $o(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=ts(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(Qo(e,`onPending`),Qo(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),os(f,e.ssFallback)):f.resolve(!1,!0)}function es(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,bs(h,f)?(c(h,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():g&&(_||(c(m,p,n,r,i,null,a,o,s),os(d,p)))):(d.pendingId=Xo++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():(c(m,p,n,r,i,null,a,o,s),os(d,p))):m&&bs(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0)):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&bs(m,f))c(m,f,n,r,i,d,a,o,s),os(d,f);else if(Qo(t,`onPending`),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=Xo++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):e===0&&d.fallback(p)}}function ts(e,t,n,r,i,a,o,s,c,l,u=!1){let{p:d,m:f,um:p,n:m,o:{parentNode:h,remove:g}}=l,_,v=ss(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?se(e.props.timeout):void 0,b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:Xo++,timeout:typeof y==`number`?y:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:o,pendingId:s,effects:c,parentComponent:l,container:u,isInFallback:d}=x,g=!1;if(x.isHydrating)x.isHydrating=!1;else if(!e){g=i&&o.transition&&o.transition.mode===`out-in`;let e=!1;g&&(i.transition.afterLeave=()=>{s===x.pendingId&&(f(o,u,a===b&&!e?m(i):a,0),cr(c),d&&r.ssFallback&&(r.ssFallback.el=null))}),i&&!x.isFallbackMountPending&&(h(i.el)===u&&(a=m(i),e=!0),p(i,l,x,!0),!g&&d&&r.ssFallback&&R(()=>r.ssFallback.el=null,x)),g||f(o,u,a,0)}x.isFallbackMountPending=!1,os(x,o),x.pendingBranch=null,x.isInFallback=!1;let y=x.parent,S=!1;for(;y;){if(y.pendingBranch){y.effects.push(...c),S=!0;break}y=y.parent}!S&&!g&&cr(c),x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!n&&t.resolve()),Qo(r,`onResolve`)},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;Qo(t,`onFallback`);let o=m(n),l=()=>{x.isFallbackMountPending=!1,x.isInFallback&&(d(null,e,i,o,r,null,a,s,c),os(x,e))},u=e.transition&&e.transition.mode===`out-in`;u&&(x.isFallbackMountPending=!0,n.transition.afterLeave=l),x.isInFallback=!0,p(n,r,null,!0),u||l()},move(e,t,n){x.activeBranch&&f(x.activeBranch,e,t,n),x.container=e},next(){return x.activeBranch&&m(x.activeBranch)},registerDep(e,t,n){let r=!!x.pendingBranch;r&&x.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{Yn(t,e,0)}).then(a=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;Us(),e.asyncResolved=!0;let{vnode:s}=e;Js(e,a,!1),i&&(s.el=i);let c=!i&&e.subTree.el;t(e,s,h(i||e.subTree.el),i?null:m(e.subTree),x,o,n),c&&(s.placeholder=null,g(c)),yo(e,s.el),r&&--x.deps===0&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&p(x.activeBranch,n,e,t),x.pendingBranch&&p(x.pendingBranch,n,e,t)}};return x}function ns(e,t,n,r,i,a,o,s,c){let l=t.suspense=ts(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function rs(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=is(r?n.default:n),e.ssFallback=r?is(n.fallback):V(B)}function is(e){let t;if(_(e)){let n=ms&&e._c;n&&(e._d=!1,fs()),e=e(),n&&(e._d=!0,t=ds,ps())}return f(e)&&(e=po(e)),e=js(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function as(e,t){t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):cr(e)}function os(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,yo(r,i))}function ss(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var z=Symbol.for(`v-fgt`),cs=Symbol.for(`v-txt`),B=Symbol.for(`v-cmt`),ls=Symbol.for(`v-stc`),us=[],ds=null;function fs(e=!1){us.push(ds=e?null:[])}function ps(){us.pop(),ds=us[us.length-1]||null}var ms=1;function hs(e,t=!1){ms+=e,e<0&&ds&&t&&(ds.hasOnce=!0)}function gs(e){return e.dynamicChildren=ms>0?ds||r:null,ps(),ms>0&&ds&&ds.push(e),e}function _s(e,t,n,r,i,a){return gs(ws(e,t,n,r,i,a,!0))}function vs(e,t,n,r,i){return gs(V(e,t,n,r,i,!0))}function ys(e){return e?e.__v_isVNode===!0:!1}function bs(e,t){return e.type===t.type&&e.key===t.key}function xs(e){}var Ss=({key:e})=>e??null,Cs=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:v(e)||I(e)||_(e)?{i:L,r:e,k:t,f:!!n}:e);function ws(e,t=null,n=null,r=0,i=null,a=e===z?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ss(t),ref:t&&Cs(t),scopeId:gr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:L};return s?(Ns(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=v(n)?8:16),ms>0&&!o&&ds&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&ds.push(c),c}var V=Ts;function Ts(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===ua)&&(e=B),ys(e)){let r=Ds(e,t,!0);return n&&Ns(r,n),ms>0&&!a&&ds&&(r.shapeFlag&6?ds[ds.indexOf(e)]=r:ds.push(r)),r.patchFlag=-2,r}if(ic(e)&&(e=e.__vccOpts),t){t=Es(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=_e(e)),b(n)&&(un(n)&&!f(n)&&(n=c({},n)),t.style=fe(n))}let o=v(e)?1:Yo(e)?128:Rr(e)?64:b(e)?4:_(e)?2:0;return ws(e,t,n,r,i,o,a,!0)}function Es(e){return e?un(e)||So(e)?c({},e):e:null}function Ds(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Ps(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Ss(l),ref:t&&t.ref?n&&a?f(a)?a.concat(Cs(t)):[a,Cs(t)]:Cs(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==z?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ds(e.ssContent),ssFallback:e.ssFallback&&Ds(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&li(u,c.clone(u)),u}function Os(e=` `,t=0){return V(cs,null,e,t)}function ks(e,t){let n=V(ls,null,e);return n.staticCount=t,n}function As(e=``,t=!1){return t?(fs(),vs(B,null,e)):V(B,null,e)}function js(e){return e==null||typeof e==`boolean`?V(B):f(e)?V(z,null,e.slice()):ys(e)?Ms(e):V(cs,null,String(e))}function Ms(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ds(e)}function Ns(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(f(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Ns(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!So(t)?t._ctx=L:r===3&&L&&(L.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else _(t)?(t={default:t,_ctx:L},n=32):(t=String(t),r&64?(n=16,t=[Os(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ps(...e){let t={};for(let n=0;nH||L,Bs,Vs;{let e=le(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Bs=t(`__VUE_INSTANCE_SETTERS__`,e=>H=e),Vs=t(`__VUE_SSR_SETTERS__`,e=>Gs=e)}var Hs=e=>{let t=H;return Bs(e),e.scope.on(),()=>{e.scope.off(),Bs(t)}},Us=()=>{H&&H.scope.off(),Bs(null)};function Ws(e){return e.vnode.shapeFlag&4}var Gs=!1;function Ks(e,t=!1,n=!1){t&&Vs(t);let{props:r,children:i}=e.vnode,a=Ws(e);Co(e,r,a,t),Io(e,i,n||t);let o=a?qs(e,t):void 0;return t&&Vs(!1),o}function qs(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ca);let{setup:r}=n;if(r){ot();let n=e.setupContext=r.length>1?tc(e):null,i=Hs(e),a=qn(r,e,0,[e.props,n]),o=x(a);if(st(),i(),(o||e.sp)&&!Li(e)&&pi(e),o){if(a.then(Us,Us),t)return a.then(n=>{Js(e,n,t)}).catch(t=>{Yn(t,e,0)});e.asyncDep=a}else Js(e,a,t)}else $s(e,t)}function Js(e,t,n){_(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)&&(e.setupState=Sn(t)),$s(e,n)}var Ys,Xs;function Zs(e){Ys=e,Xs=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,wa))}}var Qs=()=>!Ys;function $s(e,t,n){let r=e.type;if(!e.render){if(!t&&Ys&&!r.render){let t=r.template||Ga(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r,s=c(c({isCustomElement:n,delimiters:a},i),o);r.render=Ys(t,s)}}e.render=r.render||i,Xs&&Xs(e)}{let t=Hs(e);ot();try{Va(e)}finally{st(),t()}}}var ec={get(e,t){return _t(e,`get`,``),e[t]}};function tc(e){return{attrs:new Proxy(e.attrs,ec),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function nc(e){return e.exposed?e.exposeProxy||=new Proxy(Sn(dn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in xa)return xa[n](e)},has(e,t){return t in e||t in xa}}):e.proxy}function rc(e,t=!0){return _(e)?e.displayName||e.name:e.name||t&&e.__name}function ic(e){return _(e)&&`__vccOpts`in e}var ac=(e,t)=>jn(e,t,Gs);function oc(e,t,n){try{hs(-1);let r=arguments.length;return r===2?b(t)&&!f(t)?ys(t)?V(e,null,[t]):V(e,t):V(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ys(n)&&(n=[n]),V(e,t,n))}finally{hs(1)}}function sc(){return;function e(t,n,r){let i=t[r];if(f(i)&&i.includes(n)||b(i)&&n in i||t.extends&&e(t.extends,n,r)||t.mixins&&t.mixins.some(t=>e(t,n,r)))return!0}}function cc(e,t,n,r){let i=n[r];if(i&&lc(i,e))return i;let a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function lc(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&ds&&ds.push(e),!0}var uc=`3.5.35`,dc=i,fc=Kn,pc=pr,mc=hr,hc={createComponentInstance:Rs,setupComponent:Ks,renderComponentRoot:fo,setCurrentRenderingInstance:_r,isVNode:ys,normalizeVNode:js,getComponentPublicInstance:nc,ensureValidVNode:va,pushWarningContext:Hn,popWarningContext:Un},gc=e({BaseTransition:()=>ii,BaseTransitionPropsValidators:()=>ei,Comment:()=>B,DeprecationTypes:()=>null,EffectScope:()=>Re,ErrorCodes:()=>Gn,ErrorTypeStrings:()=>fc,Fragment:()=>z,KeepAlive:()=>Vi,ReactiveEffect:()=>Ue,Static:()=>ls,Suspense:()=>Zo,Teleport:()=>qr,Text:()=>cs,TrackOpTypes:()=>Mn,Transition:()=>Ac,TransitionGroup:()=>Rl,TriggerOpTypes:()=>Nn,VueElement:()=>Al,assertNumber:()=>Wn,callWithAsyncErrorHandling:()=>Jn,callWithErrorHandling:()=>qn,camelize:()=>k,capitalize:()=>re,cloneVNode:()=>Ds,compatUtils:()=>null,computed:()=>ac,createApp:()=>yu,createBlock:()=>vs,createCommentVNode:()=>As,createElementBlock:()=>_s,createElementVNode:()=>ws,createHydrationRenderer:()=>zo,createPropsRestProxy:()=>Ra,createRenderer:()=>Ro,createSSRApp:()=>bu,createSlots:()=>ga,createStaticVNode:()=>ks,createTextVNode:()=>Os,createVNode:()=>V,customRef:()=>wn,defineAsyncComponent:()=>Ri,defineComponent:()=>di,defineCustomElement:()=>Dl,defineEmits:()=>Ea,defineExpose:()=>Da,defineModel:()=>Aa,defineOptions:()=>Oa,defineProps:()=>Ta,defineSSRCustomElement:()=>Ol,defineSlots:()=>ka,devtools:()=>pc,effect:()=>nt,effectScope:()=>ze,getCurrentInstance:()=>zs,getCurrentScope:()=>Be,getCurrentWatcher:()=>Ln,getTransitionRawChildren:()=>ui,guardReactiveProps:()=>Es,h:()=>oc,handleError:()=>Yn,hasInjectionContext:()=>Er,hydrate:()=>vu,hydrateOnIdle:()=>ji,hydrateOnInteraction:()=>Fi,hydrateOnMediaQuery:()=>Pi,hydrateOnVisible:()=>Ni,initCustomFormatter:()=>sc,initDirectivesForSSR:()=>wu,inject:()=>Tr,isMemoSame:()=>lc,isProxy:()=>un,isReactive:()=>sn,isReadonly:()=>cn,isRef:()=>I,isRuntimeOnly:()=>Qs,isShallow:()=>ln,isVNode:()=>ys,markRaw:()=>dn,mergeDefaults:()=>Ia,mergeModels:()=>La,mergeProps:()=>Ps,nextTick:()=>ir,nodeOps:()=>wc,normalizeClass:()=>_e,normalizeProps:()=>ve,normalizeStyle:()=>fe,onActivated:()=>Ui,onBeforeMount:()=>Zi,onBeforeUnmount:()=>ta,onBeforeUpdate:()=>$i,onDeactivated:()=>Wi,onErrorCaptured:()=>oa,onMounted:()=>Qi,onRenderTracked:()=>aa,onRenderTriggered:()=>ia,onScopeDispose:()=>Ve,onServerPrefetch:()=>ra,onUnmounted:()=>na,onUpdated:()=>ea,onWatcherCleanup:()=>Rn,openBlock:()=>fs,patchProp:()=>Cl,popScopeId:()=>yr,provide:()=>wr,proxyRefs:()=>Sn,pushScopeId:()=>vr,queuePostFlushCb:()=>cr,reactive:()=>tn,readonly:()=>rn,ref:()=>mn,registerRuntimeCompiler:()=>Zs,render:()=>_u,renderList:()=>ha,renderSlot:()=>_a,resolveComponent:()=>la,resolveDirective:()=>fa,resolveDynamicComponent:()=>da,resolveFilter:()=>null,resolveTransitionHooks:()=>oi,setBlockTracking:()=>hs,setDevtoolsHook:()=>mc,setTransitionHooks:()=>li,shallowReactive:()=>nn,shallowReadonly:()=>an,shallowRef:()=>hn,ssrContextKey:()=>Dr,ssrUtils:()=>hc,stop:()=>rt,toDisplayString:()=>Pe,toHandlerKey:()=>j,toHandlers:()=>ya,toRaw:()=>F,toRef:()=>On,toRefs:()=>Tn,toValue:()=>bn,transformVNodeArgs:()=>xs,triggerRef:()=>vn,unref:()=>yn,useAttrs:()=>Na,useCssModule:()=>Nl,useCssVars:()=>Qc,useHost:()=>jl,useId:()=>fi,useModel:()=>ao,useSSRContext:()=>Or,useShadowRoot:()=>Ml,useSlots:()=>Ma,useTemplateRef:()=>mi,useTransitionState:()=>Qr,vModelCheckbox:()=>Xl,vModelDynamic:()=>ru,vModelRadio:()=>Ql,vModelSelect:()=>$l,vModelText:()=>Yl,vShow:()=>Jc,version:()=>uc,warn:()=>dc,watch:()=>Mr,watchEffect:()=>kr,watchPostEffect:()=>Ar,watchSyncEffect:()=>jr,withAsyncContext:()=>za,withCtx:()=>xr,withDefaults:()=>ja,withDirectives:()=>Sr,withKeys:()=>du,withMemo:()=>cc,withModifiers:()=>lu,withScopeId:()=>br}),_c=void 0,vc=typeof window<`u`&&window.trustedTypes;if(vc)try{_c=vc.createPolicy(`vue`,{createHTML:e=>e})}catch{}var yc=_c?e=>_c.createHTML(e):e=>e,bc=`http://www.w3.org/2000/svg`,xc=`http://www.w3.org/1998/Math/MathML`,Sc=typeof document<`u`?document:null,Cc=Sc&&Sc.createElement(`template`),wc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?Sc.createElementNS(bc,e):t===`mathml`?Sc.createElementNS(xc,e):n?Sc.createElement(e,{is:n}):Sc.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Sc.createTextNode(e),createComment:e=>Sc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Sc.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{Cc.innerHTML=yc(r===`svg`?`${e}`:r===`mathml`?`${e}`:e);let i=Cc.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Tc=`transition`,Ec=`animation`,Dc=Symbol(`_vtc`),Oc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},kc=c({},ei,Oc),Ac=(e=>(e.displayName=`Transition`,e.props=kc,e))((e,{slots:t})=>oc(ii,Nc(e),t)),jc=(e,t=[])=>{f(e)?e.forEach(e=>e(...t)):e&&e(...t)},Mc=e=>e?f(e)?e.some(e=>e.length>1):e.length>1:!1;function Nc(e){let t={};for(let n in e)n in Oc||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:d=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=Pc(i),g=h&&h[0],_=h&&h[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:w=y,onAppearCancelled:T=b}=t,E=(e,t,n,r)=>{e._enterCancelled=r,Lc(e,t?d:s),Lc(e,t?u:o),n&&n()},D=(e,t)=>{e._isLeaving=!1,Lc(e,f),Lc(e,m),Lc(e,p),t&&t()},ee=e=>(t,n)=>{let i=e?w:y,o=()=>E(t,e,n);jc(i,[t,o]),Rc(()=>{Lc(t,e?l:a),Ic(t,e?d:s),Mc(i)||Bc(t,r,g,o)})};return c(t,{onBeforeEnter(e){jc(v,[e]),Ic(e,a),Ic(e,o)},onBeforeAppear(e){jc(C,[e]),Ic(e,l),Ic(e,u)},onEnter:ee(!1),onAppear:ee(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>D(e,t);Ic(e,f),e._enterCancelled?(Ic(e,p),Wc(e)):(Wc(e),Ic(e,p)),Rc(()=>{e._isLeaving&&(Lc(e,f),Ic(e,m),Mc(x)||Bc(e,r,_,n))}),jc(x,[e,n])},onEnterCancelled(e){E(e,!1,void 0,!0),jc(b,[e])},onAppearCancelled(e){E(e,!0,void 0,!0),jc(T,[e])},onLeaveCancelled(e){D(e),jc(S,[e])}})}function Pc(e){if(e==null)return null;if(b(e))return[Fc(e.enter),Fc(e.leave)];{let t=Fc(e);return[t,t]}}function Fc(e){return se(e)}function Ic(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Dc]||(e[Dc]=new Set)).add(t)}function Lc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[Dc];n&&(n.delete(t),n.size||(e[Dc]=void 0))}function Rc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var zc=0;function Bc(e,t,n,r){let i=e._endId=++zc,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Vc(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u(n[e]||``).split(`, `),i=r(`${Tc}Delay`),a=r(`${Tc}Duration`),o=Hc(i,a),s=r(`${Ec}Delay`),c=r(`${Ec}Duration`),l=Hc(s,c),u=null,d=0,f=0;t===Tc?o>0&&(u=Tc,d=o,f=a.length):t===Ec?l>0&&(u=Ec,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?Tc:Ec:null,f=u?u===Tc?a.length:c.length:0);let p=u===Tc&&/\b(?:transform|all)(?:,|$)/.test(r(`${Tc}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Hc(e,t){for(;e.lengthUc(t)+Uc(e[n])))}function Uc(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Wc(e){return(e?e.ownerDocument:document).body.offsetHeight}function Gc(e,t,n){let r=e[Dc];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Kc=Symbol(`_vod`),qc=Symbol(`_vsh`),Jc={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Kc]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):Yc(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Yc(e,!0),r.enter(e)):r.leave(e,()=>{Yc(e,!1)}):Yc(e,t))},beforeUnmount(e,{value:t}){Yc(e,t)}};function Yc(e,t){e.style.display=t?e[Kc]:`none`,e[qc]=!t}function Xc(){Jc.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}var Zc=Symbol(``);function Qc(e){let t=zs();if(!t)return;let n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>el(e,n))},r=()=>{let r=e(t.proxy);t.ce?el(t.ce,r):$c(t.subTree,r),n(r)};$i(()=>{cr(r)}),Qi(()=>{Mr(r,i,{flush:`post`});let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),na(()=>e.disconnect())})}function $c(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{$c(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)el(e.el,t);else if(e.type===z)e.children.forEach(e=>$c(e,t));else if(e.type===ls){let{el:n,anchor:r}=e;for(;n&&(el(n,t),n!==r);)n=n.nextSibling}}function el(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=Le(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[Zc]=r}}var tl=/(?:^|;)\s*display\s*:/;function nl(e,t,n){let r=e.style,i=v(n),a=!1;if(n&&!i){if(t)if(v(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??il(r,t,``)}else for(let e in t)n[e]??il(r,e,``);for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?il(r,i,``):cl(e,i,!v(t)&&t?t[i]:void 0,o)||il(r,i,o)}}else if(i){if(t!==n){let e=r[Zc];e&&(n+=`;`+e),r.cssText=n,a=tl.test(n)}}else t&&e.removeAttribute(`style`);Kc in e&&(e[Kc]=a?r.display:``,e[qc]&&(r.display=`none`))}var rl=/\s*!important$/;function il(e,t,n){if(f(n))n.forEach(n=>il(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=sl(e,t);rl.test(n)?e.setProperty(A(r),n.replace(rl,``),`important`):e[r]=n}}var al=[`Webkit`,`Moz`,`ms`],ol={};function sl(e,t){let n=ol[t];if(n)return n;let r=k(t);if(r!==`filter`&&r in e)return ol[t]=r;r=re(r);for(let n=0;nvl||=(yl.then(()=>vl=0),Date.now());function xl(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(f(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;ne.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Cl=(e,t,n,r,i,a)=>{let c=i===`svg`;t===`class`?Gc(e,r,c):t===`style`?nl(e,n,r):o(t)?s(t)||hl(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):wl(e,t,r,c))?(dl(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&ul(e,t,r,c,a,t!==`value`)):e._isVueCE&&(Tl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!v(r)))?dl(e,k(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),ul(e,t,r,c))};function wl(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Sl(t)&&_(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return Sl(t)&&v(n)?!1:t in e}function Tl(e,t){let n=e._def.props;if(!n)return!1;let r=k(t);return Array.isArray(n)?n.some(e=>k(e)===r):Object.keys(n).some(e=>k(e)===r)}var El={};function Dl(e,t,n){let r=di(e,t);T(r)&&(r=c({},r,t));class i extends Al{constructor(e){super(r,e,n)}}return i.def=r,i}var Ol=((e,t)=>Dl(e,t,bu)),kl=typeof HTMLElement<`u`?HTMLElement:class{},Al=class e extends kl{constructor(e,t={},n=yu){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==yu?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow(c({},e.shadowRootOptions,{mode:`open`})),this._root=this.shadowRoot)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.assignedSlot||t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,ir(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&=(this._teleportTargets.clear(),void 0))})}_processMutations(e){for(let t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let e=0;e{this._resolved=!0,this._pendingResolve=void 0;let{props:n,styles:r}=e,i;if(n&&!f(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=se(this._props[e])),(i||=Object.create(null))[k(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let t=this._instance&&this._instance.exposed;if(t)for(let e in t)d(this,e)||Object.defineProperty(this,e,{get:()=>yn(t[e])})}_resolveProps(e){let{props:t}=e,n=f(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&n.includes(e)&&this._setProp(e,this[e]);for(let e of n.map(k))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),n=t?this.getAttribute(e):El,r=k(e);t&&this._numberProps&&this._numberProps[r]&&(n=se(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===El?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){let n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),t===!0?this.setAttribute(A(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(A(e),t+``):t||this.removeAttribute(A(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),_u(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=V(this._def,c(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,T(t[0])?c({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),A(e)!==e&&t(A(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let r=this._nonce,i=this.shadowRoot,a=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i),o=null;for(let s=e.length-1;s>=0;s--){let c=document.createElement(`style`);r&&c.setAttribute(`nonce`,r),c.textContent=e[s],i.insertBefore(c,o||a),o=c,s===0&&(n||this._styleAnchors.set(this._def,c),t&&this._styleAnchors.set(t,c))}}_getStyleAnchor(e){if(!e)return null;let t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t(delete e.props.mode,e))({name:`TransitionGroup`,props:c({},kc,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=zs(),r=Qr(),i,a;return ea(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!Ul(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(zl),i.forEach(Bl);let r=i.filter(Vl);Wc(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;Ic(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[Il]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[Il]=null,Lc(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let o=F(e),s=Nc(o),c=o.tag||z;if(i=[],a)for(let e=0;e{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=Vc(r);return a.removeChild(r),o}var Wl=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return f(t)?e=>ie(t,e):t};function Gl(e){e.target.composing=!0}function Kl(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var ql=Symbol(`_assign`);function Jl(e,t,n){return t&&(e=e.trim()),n&&(e=oe(e)),e}var Yl={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[ql]=Wl(i);let a=r||i.props&&i.props.type===`number`;fl(e,t?`change`:`input`,t=>{t.target.composing||e[ql](Jl(e.value,n,a))}),(n||a)&&fl(e,`change`,()=>{e.value=Jl(e.value,n,a)}),t||(fl(e,`compositionstart`,Gl),fl(e,`compositionend`,Kl),fl(e,`change`,Kl))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[ql]=Wl(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?oe(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},Xl={deep:!0,created(e,t,n){e[ql]=Wl(n),fl(e,`change`,()=>{let t=e._modelValue,n=tu(e),r=e.checked,i=e[ql];if(f(t)){let e=Me(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(m(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(nu(e,r))})},mounted:Zl,beforeUpdate(e,t,n){e[ql]=Wl(n),Zl(e,t,n)}};function Zl(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(f(t))i=Me(t,r.props.value)>-1;else if(m(t))i=t.has(r.props.value);else{if(t===n)return;i=je(t,nu(e,!0))}e.checked!==i&&(e.checked=i)}var Ql={created(e,{value:t},n){e.checked=je(t,n.props.value),e[ql]=Wl(n),fl(e,`change`,()=>{e[ql](tu(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[ql]=Wl(r),t!==n&&(e.checked=je(t,r.props.value))}},$l={deep:!0,created(e,{value:t,modifiers:{number:n}},r){let i=m(t);fl(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?oe(tu(e)):tu(e));e[ql](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,ir(()=>{e._assigning=!1})}),e[ql]=Wl(r)},mounted(e,{value:t}){eu(e,t)},beforeUpdate(e,t,n){e[ql]=Wl(n)},updated(e,{value:t}){e._assigning||eu(e,t)}};function eu(e,t){let n=e.multiple,r=f(t);if(!(n&&!r&&!m(t))){for(let i=0,a=e.options.length;iString(e)===String(o)):a.selected=Me(t,o)>-1}else a.selected=t.has(o);else if(je(tu(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function tu(e){return`_value`in e?e._value:e.value}function nu(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var ru={created(e,t,n){au(e,t,n,null,`created`)},mounted(e,t,n){au(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){au(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){au(e,t,n,r,`updated`)}};function iu(e,t){switch(e){case`SELECT`:return $l;case`TEXTAREA`:return Yl;default:switch(t){case`checkbox`:return Xl;case`radio`:return Ql;default:return Yl}}}function au(e,t,n,r,i){let a=iu(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function ou(){Yl.getSSRProps=({value:e})=>({value:e}),Ql.getSSRProps=({value:e},t)=>{if(t.props&&je(t.props.value,e))return{checked:!0}},Xl.getSSRProps=({value:e},t)=>{if(f(e)){if(t.props&&Me(e,t.props.value)>-1)return{checked:!0}}else if(m(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},ru.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=iu(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var su=[`ctrl`,`shift`,`alt`,`meta`],cu={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>su.some(n=>e[`${n}Key`]&&!t.includes(n))},lu=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=A(n.key);if(t.some(e=>e===r||uu[e]===r))return e(n)}))},fu=c({patchProp:Cl},wc),pu,mu=!1;function hu(){return pu||=Ro(fu)}function gu(){return pu=mu?pu:zo(fu),mu=!0,pu}var _u=((...e)=>{hu().render(...e)}),vu=((...e)=>{gu().hydrate(...e)}),yu=((...e)=>{let t=hu().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Su(e);if(!r)return;let i=t._component;!_(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,xu(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),bu=((...e)=>{let t=gu().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=Su(e);if(t)return n(t,!0,xu(t))},t});function xu(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Su(e){return v(e)?document.querySelector(e):e}var Cu=!1,wu=()=>{Cu||(Cu=!0,ou(),Xc())},Tu=Symbol(``),Eu=Symbol(``),Du=Symbol(``),Ou=Symbol(``),ku=Symbol(``),Au=Symbol(``),ju=Symbol(``),Mu=Symbol(``),Nu=Symbol(``),Pu=Symbol(``),Fu=Symbol(``),Iu=Symbol(``),Lu=Symbol(``),Ru=Symbol(``),zu=Symbol(``),Bu=Symbol(``),Vu=Symbol(``),Hu=Symbol(``),Uu=Symbol(``),Wu=Symbol(``),Gu=Symbol(``),Ku=Symbol(``),qu=Symbol(``),Ju=Symbol(``),Yu=Symbol(``),Xu=Symbol(``),Zu=Symbol(``),Qu=Symbol(``),$u=Symbol(``),ed=Symbol(``),td=Symbol(``),nd=Symbol(``),rd=Symbol(``),id=Symbol(``),ad=Symbol(``),od=Symbol(``),sd=Symbol(``),cd=Symbol(``),ld=Symbol(``),ud={[Tu]:`Fragment`,[Eu]:`Teleport`,[Du]:`Suspense`,[Ou]:`KeepAlive`,[ku]:`BaseTransition`,[Au]:`openBlock`,[ju]:`createBlock`,[Mu]:`createElementBlock`,[Nu]:`createVNode`,[Pu]:`createElementVNode`,[Fu]:`createCommentVNode`,[Iu]:`createTextVNode`,[Lu]:`createStaticVNode`,[Ru]:`resolveComponent`,[zu]:`resolveDynamicComponent`,[Bu]:`resolveDirective`,[Vu]:`resolveFilter`,[Hu]:`withDirectives`,[Uu]:`renderList`,[Wu]:`renderSlot`,[Gu]:`createSlots`,[Ku]:`toDisplayString`,[qu]:`mergeProps`,[Ju]:`normalizeClass`,[Yu]:`normalizeStyle`,[Xu]:`normalizeProps`,[Zu]:`guardReactiveProps`,[Qu]:`toHandlers`,[$u]:`camelize`,[ed]:`capitalize`,[td]:`toHandlerKey`,[nd]:`setBlockTracking`,[rd]:`pushScopeId`,[id]:`popScopeId`,[ad]:`withCtx`,[od]:`unref`,[sd]:`isRef`,[cd]:`withMemo`,[ld]:`isMemoSame`};function dd(e){Object.getOwnPropertySymbols(e).forEach(t=>{ud[t]=e[t]})}var fd={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:``};function pd(e,t=``){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:fd}}function md(e,t,n,r,i,a,o,s=!1,c=!1,l=!1,u=fd){return e&&(s?(e.helper(Au),e.helper(Cd(e.inSSR,l))):e.helper(Sd(e.inSSR,l)),o&&e.helper(Hu)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:a,directives:o,isBlock:s,disableTracking:c,isComponent:l,loc:u}}function hd(e,t=fd){return{type:17,loc:t,elements:e}}function gd(e,t=fd){return{type:15,loc:t,properties:e}}function U(e,t){return{type:16,loc:fd,key:v(e)?W(e,!0):e,value:t}}function W(e,t=!1,n=fd,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function _d(e,t=fd){return{type:8,loc:t,children:e}}function G(e,t=[],n=fd){return{type:14,loc:n,callee:e,arguments:t}}function vd(e,t=void 0,n=!1,r=!1,i=fd){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function yd(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:fd}}function bd(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:fd}}function xd(e){return{type:21,body:e,loc:fd}}function Sd(e,t){return e||t?Nu:Pu}function Cd(e,t){return e||t?ju:Mu}function wd(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Sd(r,e.isComponent)),t(Au),t(Cd(r,e.isComponent)))}var Td=new Uint8Array([123,123]),Ed=new Uint8Array([125,125]);function Dd(e){return e>=97&&e<=122||e>=65&&e<=90}function Od(e){return e===32||e===10||e===9||e===12||e===13}function kd(e){return e===47||e===62||Od(e)}function Ad(e){let t=new Uint8Array(e.length);for(let n=0;n100){let t=-1,n=r;for(;t+1>>1;this.newlines[r]=0;t--)if(e>this.newlines[t]){i=t;break}return i>=0&&(t=i+2,n=e-this.newlines[i]),{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){e===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){let e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){let t=this.sequenceIndex===this.currentSequence.length;if(!(t?kd(e):(e|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!t){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(e===62||Od(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart=e||(this.state===28?this.currentSequence===jd.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}};function Nd(e,{compatConfig:t}){let n=t&&t[e];return e===`MODE`?n||3:n}function Pd(e,t){let n=Nd(`MODE`,t),r=Nd(e,t);return n===3?r===!0:r!==!1}function Fd(e,t,n,...r){return Pd(e,t)}function Id(e){throw e}function Ld(e){}function K(e,t,n,r){let i=`https://vuejs.org/error-reference/#compiler-${e}`,a=SyntaxError(String(i));return a.code=e,a.loc=t,a}var Rd=e=>e.type===4&&e.isStatic;function zd(e){switch(e){case`Teleport`:case`teleport`:return Eu;case`Suspense`:case`suspense`:return Du;case`KeepAlive`:case`keep-alive`:return Ou;case`BaseTransition`:case`base-transition`:return ku}}var Bd=/^$|^\d|[^\$\w\xA0-\uFFFF]/,Vd=e=>!Bd.test(e),Hd=/[A-Za-z_$\xA0-\uFFFF]/,Ud=/[\.\?\w$\xA0-\uFFFF]/,Wd=/\s+[.[]\s*|\s*[.[]\s+/g,Gd=e=>e.type===4?e.content:e.loc.source,Kd=e=>{let t=Gd(e).trim().replace(Wd,e=>e.trim()),n=0,r=[],i=0,a=0,o=null;for(let e=0;e|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,Jd=e=>qd.test(Gd(e));function Yd(e,t,n=!1){for(let r=0;re.type===7&&e.name===`bind`&&(!e.arg||e.arg.type!==4||!e.arg.isStatic))}function $d(e){return e.type===5||e.type===2}function ef(e){return e.type===7&&e.name===`pre`}function tf(e){return e.type===7&&e.name===`slot`}function nf(e){return e.type===1&&e.tagType===3}function rf(e){return e.type===1&&e.tagType===2}var af=new Set([Xu,Zu]);function of(e,t=[]){if(e&&!v(e)&&e.type===14){let n=e.callee;if(!v(n)&&af.has(n))return of(e.arguments[0],t.concat(e))}return[e,t]}function sf(e,t,n){let r,i=e.type===13?e.props:e.arguments[2],a=[],o;if(i&&!v(i)&&i.type===14){let e=of(i);i=e[0],a=e[1],o=a[a.length-1]}if(i==null||v(i))r=gd([t]);else if(i.type===14){let e=i.arguments[0];!v(e)&&e.type===15?cf(t,e)||e.properties.unshift(t):i.callee===Qu?r=G(n.helper(qu),[gd([t]),i]):i.arguments.unshift(gd([t])),!r&&(r=i)}else i.type===15?(cf(t,i)||i.properties.unshift(t),r=i):(r=G(n.helper(qu),[gd([t]),i]),o&&o.callee===Zu&&(o=a[a.length-2]));e.type===13?o?o.arguments[0]=r:e.props=r:o?o.arguments[0]=r:e.arguments[2]=r}function cf(e,t){let n=!1;if(e.key.type===4){let r=e.key.content;n=t.properties.some(e=>e.key.type===4&&e.key.content===r)}return n}function lf(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,n)=>t===`-`?`_`:e.charCodeAt(n).toString())}`}function uf(e){return e.type===14&&e.callee===cd?e.arguments[1].returns:e}var df=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function ff(e){for(let t=0;t0,isVoidTag:a,isPreTag:a,isIgnoreNewlineTag:a,isCustomElement:a,onError:Id,onWarn:Ld,comments:!1,prefixIdentifiers:!1},q=hf,gf=null,_f=``,vf=null,J=null,yf=``,bf=-1,xf=-1,Sf=0,Cf=!1,wf=null,Y=[],X=new Md(Y,{onerr:Kf,ontext(e,t){kf(Z(e,t),e,t)},ontextentity(e,t,n){kf(e,t,n)},oninterpolation(e,t){if(Cf)return kf(Z(e,t),e,t);let n=e+X.delimiterOpen.length,r=t-X.delimiterClose.length;for(;Od(_f.charCodeAt(n));)n++;for(;Od(_f.charCodeAt(r-1));)r--;let i=Z(n,r);i.includes(`&`)&&(i=q.decodeEntities(i,!1)),Vf({type:5,content:Gf(i,!1,Q(n,r)),loc:Q(e,t)})},onopentagname(e,t){let n=Z(e,t);vf={type:1,tag:n,ns:q.getNamespace(n,Y[0],q.ns),tagType:0,props:[],children:[],loc:Q(e-1,t),codegenNode:void 0}},onopentagend(e){Of(e)},onclosetag(e,t){let n=Z(e,t);if(!q.isVoidTag(n)){let r=!1;for(let e=0;e0&&Kf(24,Y[0].loc.start.offset);for(let n=0;n<=e;n++)Af(Y.shift(),t,n(e.type===7?e.rawName:e.name)===n)&&Kf(2,t)},onattribend(e,t){if(vf&&J){if(Uf(J.loc,t),e!==0)if(yf.includes(`&`)&&(yf=q.decodeEntities(yf,!0)),J.type===6)J.name===`class`&&(yf=Bf(yf).trim()),e===1&&!yf&&Kf(13,t),J.value={type:2,content:yf,loc:e===1?Q(bf,xf):Q(bf-1,xf+1)},X.inSFCRoot&&vf.tag===`template`&&J.name===`lang`&&yf&&yf!==`html`&&X.enterRCDATA(Ad(`e.content===`sync`))>-1&&Fd(`COMPILER_V_BIND_SYNC`,q,J.loc,J.arg.loc.source)&&(J.name=`model`,J.modifiers.splice(e,1))}(J.type!==7||J.name!==`pre`)&&vf.props.push(J)}yf=``,bf=xf=-1},oncomment(e,t){q.comments&&Vf({type:3,content:Z(e,t),loc:Q(e-4,t+3)})},onend(){let e=_f.length;for(let t=0;t{let i=t.start.offset+n;return Gf(e,!1,Q(i,i+e.length),0,+!!r)},s={source:o(a.trim(),n.indexOf(a,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1},c=i.trim().replace(Ef,``).trim(),l=i.indexOf(c),u=c.match(Tf);if(u){c=c.replace(Tf,``).trim();let e=u[1].trim(),t;if(e&&(t=n.indexOf(e,l+c.length),s.key=o(e,t,!0)),u[2]){let r=u[2].trim();r&&(s.index=o(r,n.indexOf(r,s.key?t+e.length:l+c.length),!0))}}return c&&(s.value=o(c,l,!0)),s}function Z(e,t){return _f.slice(e,t)}function Of(e){X.inSFCRoot&&(vf.innerLoc=Q(e+1,e+1)),Vf(vf);let{tag:t,ns:n}=vf;n===0&&q.isPreTag(t)&&Sf++,q.isVoidTag(t)?Af(vf,e):(Y.unshift(vf),(n===1||n===2)&&(X.inXML=!0)),vf=null}function kf(e,t,n){{let t=Y[0]&&Y[0].tag;t!==`script`&&t!==`style`&&e.includes(`&`)&&(e=q.decodeEntities(e,!1))}let r=Y[0]||gf,i=r.children[r.children.length-1];i&&i.type===2?(i.content+=e,Uf(i.loc,n)):r.children.push({type:2,content:e,loc:Q(t,n)})}function Af(e,t,n=!1){n?Uf(e.loc,Mf(t,60)):Uf(e.loc,jf(t,62)+1),X.inSFCRoot&&(e.children.length?e.innerLoc.end=c({},e.children[e.children.length-1].loc.end):e.innerLoc.end=c({},e.innerLoc.start),e.innerLoc.source=Z(e.innerLoc.start.offset,e.innerLoc.end.offset));let{tag:r,ns:i,children:a}=e;if(Cf||(r===`slot`?e.tagType=2:Pf(e)?e.tagType=3:Ff(e)&&(e.tagType=1)),X.inRCDATA||(e.children=Rf(a)),i===0&&q.isIgnoreNewlineTag(r)){let e=a[0];e&&e.type===2&&(e.content=e.content.replace(/^\r?\n/,``))}i===0&&q.isPreTag(r)&&Sf--,wf===e&&(Cf=X.inVPre=!1,wf=null),X.inXML&&(Y[0]?Y[0].ns:q.ns)===0&&(X.inXML=!1);{let t=e.props;if(!X.inSFCRoot&&Pd(`COMPILER_NATIVE_TEMPLATE`,q)&&e.tag===`template`&&!Pf(e)){let t=Y[0]||gf,n=t.children.indexOf(e);t.children.splice(n,1,...e.children)}let n=t.find(e=>e.type===6&&e.name===`inline-template`);n&&Fd(`COMPILER_INLINE_TEMPLATE`,q,n.loc)&&e.children.length&&(n.value={type:2,content:Z(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function jf(e,t){let n=e;for(;_f.charCodeAt(n)!==t&&n<_f.length-1;)n++;return n}function Mf(e,t){let n=e;for(;_f.charCodeAt(n)!==t&&n>=0;)n--;return n}var Nf=new Set([`if`,`else`,`else-if`,`for`,`slot`]);function Pf({tag:e,props:t}){if(e===`template`){for(let e=0;e64&&e<91}var Lf=/\r\n/g;function Rf(e){let t=q.whitespace!==`preserve`,n=!1;for(let r=0;re.type!==3);return t.length===1&&t[0].type===1&&!rf(t[0])?t[0]:null}function Zf(e,t,n,r=!1,i=!1){let{children:a}=e,o=[];for(let t=0;t0){if(e>=2){s.codegenNode.patchFlag=-1,o.push(s);continue}}else{let e=s.codegenNode;if(e.type===13){let t=e.patchFlag;if((t===void 0||t===512||t===1)&&tp(s,n)>=2){let t=np(s);t&&(e.props=n.hoist(t))}e.dynamicProps&&=n.hoist(e.dynamicProps)}}}else if(s.type===12&&(r?0:Qf(s,n))>=2){s.codegenNode.type===14&&s.codegenNode.arguments.length>0&&s.codegenNode.arguments.push(`-1`),o.push(s);continue}if(s.type===1){let t=s.tagType===1;t&&n.scopes.vSlot++,Zf(s,e,n,!1,i),t&&n.scopes.vSlot--}else if(s.type===11)Zf(s,e,n,s.children.length===1,!0);else if(s.type===9)for(let t=0;te.key===t||e.key.content===t);return n&&n.value}}o.length&&n.transformHoist&&n.transformHoist(a,n,e)}function Qf(e,t){let{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;let r=n.get(e);if(r!==void 0)return r;let i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!==`svg`&&e.tag!==`foreignObject`&&e.tag!==`math`)return 0;if(i.patchFlag===void 0){let r=3,a=tp(e,t);if(a===0)return n.set(e,0),0;a1)for(let i=0;in&&(D.childIndex--,D.onNodeRemoved()),D.parent.children.splice(n,1)},onNodeRemoved:i,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){v(e)&&(e=W(e)),D.hoists.push(e);let t=W(`_hoisted_${D.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1,n=!1){let r=bd(D.cached.length,e,t,n);return D.cached.push(r),r}};return D.filters=new Set,D}function ip(e,t){let n=rp(e,t);sp(e,n),t.hoistStatic&&Yf(e,n),t.ssr||ap(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function ap(e,t){let{helper:n}=t,{children:r}=e;if(r.length===1){let n=Xf(e);if(n&&n.codegenNode){let r=n.codegenNode;r.type===13&&wd(r,t),e.codegenNode=r}else e.codegenNode=r[0]}else r.length>1&&(e.codegenNode=md(t,n(Tu),void 0,e.children,64,void 0,void 0,!0,void 0,!1))}function op(e,t){let n=0,r=()=>{n--};for(;nt===e:t=>e.test(t);return(e,r)=>{if(e.type===1){let{props:i}=e;if(e.tagType===3&&i.some(tf))return;let a=[];for(let o=0;o`${ud[e]}: _${ud[e]}`;function dp(e,{mode:t=`function`,prefixIdentifiers:n=t===`module`,sourceMap:r=!1,filename:i=`template.vue.html`,scopeId:a=null,optimizeImports:o=!1,runtimeGlobalName:s=`Vue`,runtimeModuleName:c=`vue`,ssrRuntimeModuleName:l=`vue/server-renderer`,ssr:u=!1,isTS:d=!1,inSSR:f=!1}){let p={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:a,optimizeImports:o,runtimeGlobalName:s,runtimeModuleName:c,ssrRuntimeModuleName:l,ssr:u,isTS:d,inSSR:f,source:e.source,code:``,column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(e){return`_${ud[e]}`},push(e,t=-2,n){p.code+=e},indent(){m(++p.indentLevel)},deindent(e=!1){e?--p.indentLevel:m(--p.indentLevel)},newline(){m(p.indentLevel)}};function m(e){p.push(` +`+` `.repeat(e),0)}return p}function fp(e,t={}){let n=dp(e,t);t.onContextCreated&&t.onContextCreated(n);let{mode:r,push:i,prefixIdentifiers:a,indent:o,deindent:s,newline:c,scopeId:l,ssr:u}=n,d=Array.from(e.helpers),f=d.length>0,p=!a&&r!==`module`;if(pp(e,n),i(`function ${u?`ssrRender`:`render`}(${(u?[`_ctx`,`_push`,`_parent`,`_attrs`]:[`_ctx`,`_cache`]).join(`, `)}) {`),o(),p&&(i(`with (_ctx) {`),o(),f&&(i(`const { ${d.map(up).join(`, `)} } = _Vue +`,-1),c())),e.components.length&&(mp(e.components,`component`,n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(mp(e.directives,`directive`,n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),mp(e.filters,`filter`,n),c()),e.temps>0){i(`let `);for(let t=0;t0?`, `:``}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(i(` +`,0),c()),u||i(`return `),e.codegenNode?vp(e.codegenNode,n):i(`null`),p&&(s(),i(`}`)),s(),i(`}`),{ast:e,code:n.code,preamble:``,map:n.map?n.map.toJSON():void 0}}function pp(e,t){let{ssr:n,prefixIdentifiers:r,push:i,newline:a,runtimeModuleName:o,runtimeGlobalName:s,ssrRuntimeModuleName:c}=t,l=s,u=Array.from(e.helpers);u.length>0&&(i(`const _Vue = ${l} +`,-1),e.hoists.length&&i(`const { ${[Nu,Pu,Fu,Iu,Lu].filter(e=>u.includes(e)).map(up).join(`, `)} } = _Vue +`,-1)),hp(e.hoists,t),a(),i(`return `)}function mp(e,t,{helper:n,push:r,newline:i,isTS:a}){let o=n(t===`filter`?Vu:t===`component`?Ru:Bu);for(let n=0;n3||!1;t.push(`[`),n&&t.indent(),_p(e,t,n),n&&t.deindent(),t.push(`]`)}function _p(e,t,n=!1,r=!0){let{push:i,newline:a}=t;for(let o=0;oe||`null`)}function Dp(e,t){let{push:n,helper:r,pure:i}=t,a=v(e.callee)?e.callee:r(e.callee);i&&n(lp),n(a+`(`,-2,e),_p(e.arguments,t),n(`)`)}function Op(e,t){let{push:n,indent:r,deindent:i,newline:a}=t,{properties:o}=e;if(!o.length){n(`{}`,-2,e);return}let s=o.length>1||!1;n(s?`{`:`{ `),s&&r();for(let e=0;e `),(c||s)&&(n(`{`),r()),o?(c&&n(`return `),f(o)?gp(o,t):vp(o,t)):s&&vp(s,t),(c||s)&&(i(),n(`}`)),l&&(e.isNonScopedSlot&&n(`, undefined, true`),n(`)`))}function jp(e,t){let{test:n,consequent:r,alternate:i,newline:a}=e,{push:o,indent:s,deindent:c,newline:l}=t;if(n.type===4){let e=!Vd(n.content);e&&o(`(`),bp(n,t),e&&o(`)`)}else o(`(`),vp(n,t),o(`)`);a&&s(),t.indentLevel++,a||o(` `),o(`? `),vp(r,t),t.indentLevel--,a&&l(),a||o(` `),o(`: `);let u=i.type===19;u||t.indentLevel++,vp(i,t),u||t.indentLevel--,a&&c(!0)}function Mp(e,t){let{push:n,helper:r,indent:i,deindent:a,newline:o}=t,{needPauseTracking:s,needArraySpread:c}=e;c&&n(`[...(`),n(`_cache[${e.index}] || (`),s&&(i(),n(`${r(nd)}(-1`),e.inVOnce&&n(`, true`),n(`),`),o(),n(`(`)),n(`_cache[${e.index}] = `),vp(e.value,t),s&&(n(`).cacheIndex = ${e.index},`),o(),n(`${r(nd)}(1),`),o(),n(`_cache[${e.index}]`),a()),n(`)`),c&&n(`)]`)}RegExp(`\\b`+`arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield`.split(`,`).join(`\\b|\\b`)+`\\b`);var Np=cp(/^(?:if|else|else-if)$/,(e,t,n)=>Pp(e,t,n,(e,t,r)=>{let i=n.parent.children,a=i.indexOf(e),o=0;for(;a-->=0;){let e=i[a];e&&e.type===9&&(o+=e.branches.length)}return()=>{if(r)e.codegenNode=Ip(t,o,n);else{let r=Rp(e.codegenNode);r.alternate=Ip(t,o+e.branches.length-1,n)}}}));function Pp(e,t,n,r){if(t.name!==`else`&&(!t.exp||!t.exp.content.trim())){let r=t.exp?t.exp.loc:e.loc;n.onError(K(28,t.loc)),t.exp=W(`true`,!1,r)}if(t.name===`if`){let i=Fp(e,t),a={type:9,loc:Hf(e.loc),branches:[i]};if(n.replaceNode(a),r)return r(a,i,!0)}else{let i=n.parent.children,a=i.indexOf(e);for(;a-->=-1;){let o=i[a];if(o&&mf(o)){n.removeNode(o);continue}if(o&&o.type===9){(t.name===`else-if`||t.name===`else`)&&o.branches[o.branches.length-1].condition===void 0&&n.onError(K(30,e.loc)),n.removeNode();let i=Fp(e,t);o.branches.push(i);let a=r&&r(o,i,!1);sp(i,n),a&&a(),n.currentNode=null}else n.onError(K(30,e.loc));break}}}function Fp(e,t){let n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name===`else`?void 0:t.exp,children:n&&!Yd(e,`for`)?e.children:[e],userKey:Xd(e,`key`),isTemplateIf:n}}function Ip(e,t,n){return e.condition?yd(e.condition,Lp(e,t,n),G(n.helper(Fu),[`""`,`true`])):Lp(e,t,n)}function Lp(e,t,n){let{helper:r}=n,i=U(`key`,W(`${t}`,!1,fd,2)),{children:a}=e,o=a[0];if(a.length!==1||o.type!==1)if(a.length===1&&o.type===11){let e=o.codegenNode;return sf(e,i,n),e}else return md(n,r(Tu),gd([i]),a,64,void 0,void 0,!0,!1,!1,e.loc);else{let e=o.codegenNode,t=uf(e);return t.type===13&&wd(t,n),sf(t,i,n),e}}function Rp(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}var zp=cp(`for`,(e,t,n)=>{let{helper:r,removeHelper:i}=n;return Bp(e,t,n,t=>{let a=G(r(Uu),[t.source]),o=nf(e),s=Yd(e,`memo`),c=Xd(e,`key`,!1,!0);c&&c.type;let l=c&&(c.type===6?c.value?W(c.value.content,!0):void 0:c.exp),u=l?U(`key`,l):null,d=t.source.type===4&&t.source.constType>0,f=d?64:c?128:256;return t.codegenNode=md(n,r(Tu),void 0,a,f,void 0,void 0,!0,!d,!1,e.loc),()=>{let c,{children:f}=t,p=f.length!==1||f[0].type!==1,m=rf(e)?e:o&&e.children.length===1&&rf(e.children[0])?e.children[0]:null;if(m?(c=m.codegenNode,o&&u&&sf(c,u,n)):p?c=md(n,r(Tu),u?gd([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(c=f[0].codegenNode,o&&u&&sf(c,u,n),c.isBlock!==!d&&(c.isBlock?(i(Au),i(Cd(n.inSSR,c.isComponent))):i(Sd(n.inSSR,c.isComponent))),c.isBlock=!d,c.isBlock?(r(Au),r(Cd(n.inSSR,c.isComponent))):r(Sd(n.inSSR,c.isComponent))),s){let e=vd(Hp(t.parseResult,[W(`_cached`)]));e.body=xd([_d([`const _memo = (`,s.exp,`)`]),_d([`if (_cached && _cached.el`,...l?[` && _cached.key === `,l]:[],` && ${n.helperString(ld)}(_cached, _memo)) return _cached`]),_d([`const _item = `,c]),W(`_item.memo = _memo`),W(`return _item`)]),a.arguments.push(e,W(`_cache`),W(String(n.cached.length))),n.cached.push(null)}else a.arguments.push(vd(Hp(t.parseResult),c,!0))}})});function Bp(e,t,n,r){if(!t.exp){n.onError(K(31,t.loc));return}let i=t.forParseResult;if(!i){n.onError(K(32,t.loc));return}Vp(i,n);let{addIdentifiers:a,removeIdentifiers:o,scopes:s}=n,{source:c,value:l,key:u,index:d}=i,f={type:11,loc:t.loc,source:c,valueAlias:l,keyAlias:u,objectIndexAlias:d,parseResult:i,children:nf(e)?e.children:[e]};n.replaceNode(f),s.vFor++;let p=r&&r(f);return()=>{s.vFor--,p&&p()}}function Vp(e,t){e.finalized||=!0}function Hp({value:e,key:t,index:n},r=[]){return Up([e,t,n,...r])}function Up(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||W(`_`.repeat(t+1),!1))}var Wp=W(`undefined`,!1),Gp=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){let n=Yd(e,`slot`);if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Kp=(e,t,n,r)=>vd(e,n,!1,!0,n.length?n[0].loc:r);function qp(e,t,n=Kp){t.helper(ad);let{children:r,loc:i}=e,a=[],o=[],s=t.scopes.vSlot>0||t.scopes.vFor>0,c=Yd(e,`slot`,!0);if(c){let{arg:e,exp:t}=c;e&&!Rd(e)&&(s=!0),a.push(U(e||W(`default`,!0),n(t,void 0,r,i)))}let l=!1,u=!1,d=[],f=new Set,p=0;for(let e=0;e{let a=n(e,void 0,r,i);return t.compatConfig&&(a.isNonScopedSlot=!0),U(`default`,a)};l?d.length&&!d.every(pf)&&(u?t.onError(K(39,d[0].loc)):a.push(e(void 0,d))):a.push(e(void 0,r))}let m=s?2:Yp(e.children)?3:1,h=gd(a.concat(U(`_`,W(m+``,!1))),i);return o.length&&(h=G(t.helper(Gu),[h,hd(o)])),{slots:h,hasDynamicSlots:s}}function Jp(e,t,n){let r=[U(`name`,e),U(`fn`,t)];return n!=null&&r.push(U(`key`,W(String(n),!0))),gd(r)}function Yp(e){for(let t=0;tfunction(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;let{tag:n,props:r}=e,i=e.tagType===1,a=i?Qp(e,t):`"${n}"`,o=b(a)&&a.callee===zu,s,c,l=0,u,d,f,p=o||a===Eu||a===Du||!i&&(n===`svg`||n===`foreignObject`||n===`math`);if(r.length>0){let n=$p(e,t,void 0,i,o);s=n.props,l=n.patchFlag,d=n.dynamicPropNames;let r=n.directives;f=r&&r.length?hd(r.map(e=>nm(e,t))):void 0,n.shouldUseBlock&&(p=!0)}if(e.children.length>0)if(a===Ou&&(p=!0,l|=1024),i&&a!==Eu&&a!==Ou){let{slots:n,hasDynamicSlots:r}=qp(e,t);c=n,r&&(l|=1024)}else if(e.children.length===1&&a!==Eu){let n=e.children[0],r=n.type,i=r===5||r===8;i&&Qf(n,t)===0&&(l|=1),c=i||r===2?n:e.children}else c=e.children;d&&d.length&&(u=rm(d)),e.codegenNode=md(t,a,s,c,l===0?void 0:l,u,f,!!p,!1,i,e.loc)};function Qp(e,t,n=!1){let{tag:r}=e,i=im(r),a=Xd(e,`is`,!1,!0);if(a)if(i||Pd(`COMPILER_IS_ON_ELEMENT`,t)){let e;if(a.type===6?e=a.value&&W(a.value.content,!0):(e=a.exp,e||=W(`is`,!1,a.arg.loc)),e)return G(t.helper(zu),[e])}else a.type===6&&a.value.content.startsWith(`vue:`)&&(r=a.value.content.slice(4));let o=zd(r)||t.isBuiltInComponent(r);return o?(n||t.helper(o),o):(t.helper(Ru),t.components.add(r),lf(r,`component`))}function $p(e,t,n=e.props,r,i,a=!1){let{tag:s,loc:c,children:l}=e,u=[],d=[],f=[],p=l.length>0,m=!1,h=0,g=!1,_=!1,v=!1,b=!1,x=!1,S=!1,C=[],w=e=>{u.length&&(d.push(gd(em(u),c)),u=[]),e&&d.push(e)},T=()=>{t.scopes.vFor>0&&u.push(U(W(`ref_for`,!0),W(`true`)))},E=({key:e,value:n})=>{if(Rd(e)){let a=e.content,s=o(a);if(s&&(!r||i)&&a.toLowerCase()!==`onclick`&&a!==`onUpdate:modelValue`&&!D(a)&&(b=!0),s&&D(a)&&(S=!0),s&&n.type===14&&(n=n.arguments[0]),n.type===20||(n.type===4||n.type===8)&&Qf(n,t)>0)return;a===`ref`?g=!0:a===`class`?_=!0:a===`style`?v=!0:a!==`key`&&!C.includes(a)&&C.push(a),r&&(a===`class`||a===`style`)&&!C.includes(a)&&C.push(a)}else x=!0};for(let i=0;ie.content===`prop`)&&(h|=32);let S=t.directiveTransforms[n];if(S){let{props:n,needRuntime:r}=S(o,e,t);!a&&n.forEach(E),b&&i&&!Rd(i)?w(gd(n,c)):u.push(...n),r&&(f.push(o),y(r)&&Xp.set(o,r))}else ee(n)||(f.push(o),p&&(m=!0))}}let O;if(d.length?(w(),O=d.length>1?G(t.helper(qu),d,c):d[0]):u.length&&(O=gd(em(u),c)),x?h|=16:(_&&!r&&(h|=2),v&&!r&&(h|=4),C.length&&(h|=8),b&&(h|=32)),!m&&(h===0||h===32)&&(g||S||f.length>0)&&(h|=512),!t.inSSR&&O)switch(O.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;tU(e,t)),i))}return hd(n,e.loc)}function rm(e){let t=`[`;for(let n=0,r=e.length;n{if(rf(e)){let{children:n,loc:r}=e,{slotName:i,slotProps:a}=om(e,t),o=[t.prefixIdentifiers?`_ctx.$slots`:`$slots`,i,`{}`,`undefined`,`true`],s=2;a&&(o[2]=a,s=3),n.length&&(o[3]=vd([],n,!1,!1,r),s=4),t.scopeId&&!t.slotted&&(s=5),o.splice(s),e.codegenNode=G(t.helper(Wu),o,r)}};function om(e,t){let n=`"default"`,r,i=[];for(let t=0;t0){let{props:n,directives:a}=$p(e,t,i,!1,!1);r=n,a.length&&t.onError(K(36,a[0].loc))}return{slotName:n,slotProps:r}}var sm=(e,t,n,r)=>{let{loc:i,modifiers:a,arg:o}=e;!e.exp&&!a.length&&n.onError(K(35,i));let s;if(o.type===4)if(o.isStatic){let e=o.content;e.startsWith(`vue:`)&&(e=`vnode-${e.slice(4)}`),s=W(t.tagType!==0||e.startsWith(`vnode`)||!/[A-Z]/.test(e)?j(k(e)):`on:${e}`,!0,o.loc)}else s=_d([`${n.helperString(td)}(`,o,`)`]);else s=o,s.children.unshift(`${n.helperString(td)}(`),s.children.push(`)`);let c=e.exp;c&&!c.content.trim()&&(c=void 0);let l=n.cacheHandlers&&!c&&!n.inVOnce;if(c){let e=Kd(c),t=!(e||Jd(c)),n=c.content.includes(`;`);(t||l&&e)&&(c=_d([`${t?`$event`:`(...args)`} => ${n?`{`:`(`}`,c,n?`}`:`)`]))}let u={props:[U(s,c||W(`() => {}`,!1,i))]};return r&&(u=r(u)),l&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(e=>e.key.isHandlerKey=!0),u},cm=(e,t,n)=>{let{modifiers:r,loc:i}=e,a=e.arg,{exp:o}=e;return o&&o.type===4&&!o.content.trim()&&(o=void 0),a.type===4?a.isStatic||(a.content=a.content?`${a.content} || ""`:`""`):(a.children.unshift(`(`),a.children.push(`) || ""`)),r.some(e=>e.content===`camel`)&&(a.type===4?a.isStatic?a.content=k(a.content):a.content=`${n.helperString($u)}(${a.content})`:(a.children.unshift(`${n.helperString($u)}(`),a.children.push(`)`))),n.inSSR||(r.some(e=>e.content===`prop`)&&lm(a,`.`),r.some(e=>e.content===`attr`)&&lm(a,`^`)),{props:[U(a,o)]}},lm=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(`)`))},um=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{let n=e.children,r,i=!1;for(let e=0;ee.type===7&&!t.directiveTransforms[e.name])&&e.tag!==`template`)))for(let e=0;e{if(e.type===1&&Yd(e,`once`,!0))return dm.has(e)||t.inVOnce||t.inSSR?void 0:(dm.add(e),t.inVOnce=!0,t.helper(nd),()=>{t.inVOnce=!1;let e=t.currentNode;e.codegenNode&&=t.cache(e.codegenNode,!0,!0)})},pm=(e,t,n)=>{let{exp:r,arg:i}=e;if(!r)return n.onError(K(41,e.loc)),mm();let a=r.loc.source.trim(),o=r.type===4?r.content:a,s=n.bindingMetadata[a];if(s===`props`||s===`props-aliased`)return n.onError(K(44,r.loc)),mm();if(s===`literal-const`||s===`setup-const`)return n.onError(K(45,r.loc)),mm();if(!o.trim()||!Kd(r))return n.onError(K(42,r.loc)),mm();let c=i||W(`modelValue`,!0),l=i?Rd(i)?`onUpdate:${k(i.content)}`:_d([`"onUpdate:" + `,i]):`onUpdate:modelValue`,u;u=_d([`${n.isTS?`($event: any)`:`$event`} => ((`,r,`) = $event)`]);let d=[U(c,e.exp),U(l,u)];if(e.modifiers.length&&t.tagType===1){let t=e.modifiers.map(e=>e.content).map(e=>(Vd(e)?e:JSON.stringify(e))+`: true`).join(`, `),n=i?Rd(i)?`${i.content}Modifiers`:_d([i,` + "Modifiers"`]):`modelModifiers`;d.push(U(n,W(`{ ${t} }`,!1,e.loc,2)))}return mm(d)};function mm(e=[]){return{props:e}}var hm=/[\w).+\-_$\]]/,gm=(e,t)=>{Pd(`COMPILER_FILTERS`,t)&&(e.type===5?_m(e.content,t):e.type===1&&e.props.forEach(e=>{e.type===7&&e.name!==`for`&&e.exp&&_m(e.exp,t)}))};function _m(e,t){if(e.type===4)vm(e,t);else for(let n=0;n=0&&(t=n.charAt(e),t===` `);e--);(!t||!hm.test(t))&&(o=!0)}}m===void 0?m=n.slice(0,p).trim():u!==0&&g();function g(){h.push(n.slice(u,p).trim()),u=p+1}if(h.length){for(p=0;p{if(e.type===1){let n=Yd(e,`memo`);return!n||bm.has(e)||t.inSSR?void 0:(bm.add(e),()=>{let r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&wd(r,t),e.codegenNode=G(t.helper(cd),[n.exp,vd(void 0,r),`_cache`,String(t.cached.length)]),t.cached.push(null))})}},Sm=(e,t)=>{if(e.type===1){for(let n of e.props)if(n.type===7&&n.name===`bind`&&(!n.exp||n.exp.type===4&&!n.exp.content.trim())&&n.arg){let e=n.arg;if(e.type!==4||!e.isStatic)t.onError(K(53,e.loc)),n.exp=W(``,!0,e.loc);else{let t=k(e.content);(Hd.test(t[0])||t[0]===`-`)&&(n.exp=W(t,!1,e.loc))}}}};function Cm(e){return[[Sm,fm,Np,xm,zp,gm,am,Zp,Gp,um],{on:sm,bind:cm,model:pm}]}function wm(e,t={}){let n=t.onError||Id,r=t.mode===`module`;t.prefixIdentifiers===!0?n(K(48)):r&&n(K(49)),t.cacheHandlers&&n(K(50)),t.scopeId&&!r&&n(K(51));let i=c({},t,{prefixIdentifiers:!1}),a=v(e)?Jf(e,i):e,[o,s]=Cm();return ip(a,c({},i,{nodeTransforms:[...o,...t.nodeTransforms||[]],directiveTransforms:c({},s,t.directiveTransforms||{})})),fp(a,i)}var Tm=()=>({props:[]}),Em=Symbol(``),Dm=Symbol(``),Om=Symbol(``),km=Symbol(``),Am=Symbol(``),jm=Symbol(``),Mm=Symbol(``),Nm=Symbol(``),Pm=Symbol(``),Fm=Symbol(``);dd({[Em]:`vModelRadio`,[Dm]:`vModelCheckbox`,[Om]:`vModelText`,[km]:`vModelSelect`,[Am]:`vModelDynamic`,[jm]:`withModifiers`,[Mm]:`withKeys`,[Nm]:`vShow`,[Pm]:`Transition`,[Fm]:`TransitionGroup`});var Im;function Lm(e,t=!1){return Im||=document.createElement(`div`),t?(Im.innerHTML=`
    `,Im.children[0].getAttribute(`foo`)):(Im.innerHTML=e,Im.textContent)}var Rm={parseMode:`html`,isVoidTag:Ee,isNativeTag:e=>Ce(e)||we(e)||Te(e),isPreTag:e=>e===`pre`,isIgnoreNewlineTag:e=>e===`pre`||e===`textarea`,decodeEntities:Lm,isBuiltInComponent:e=>{if(e===`Transition`||e===`transition`)return Pm;if(e===`TransitionGroup`||e===`transition-group`)return Fm},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2)if(t.tag===`annotation-xml`){if(e===`svg`)return 1;t.props.some(e=>e.type===6&&e.name===`encoding`&&e.value!=null&&(e.value.content===`text/html`||e.value.content===`application/xhtml+xml`))&&(r=0)}else /^m(?:[ions]|text)$/.test(t.tag)&&e!==`mglyph`&&e!==`malignmark`&&(r=0);else t&&r===1&&(t.tag===`foreignObject`||t.tag===`desc`||t.tag===`title`)&&(r=0);if(r===0){if(e===`svg`)return 1;if(e===`math`)return 2}return r}},zm=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name===`style`&&t.value&&(e.props[n]={type:7,name:`bind`,arg:W(`style`,!0,t.loc),exp:Bm(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Bm=(e,t)=>{let n=ge(e);return W(JSON.stringify(n),!1,t,3)};function Vm(e,t){return K(e,t,void 0)}var Hm=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Vm(54,i)),t.children.length&&(n.onError(Vm(55,i)),t.children.length=0),{props:[U(W(`innerHTML`,!0,i),r||W(``,!0))]}},Um=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Vm(56,i)),t.children.length&&(n.onError(Vm(57,i)),t.children.length=0),{props:[U(W(`textContent`,!0),r?Qf(r,n)>0?r:G(n.helperString(Ku),[r],i):W(``,!0))]}},Wm=(e,t,n)=>{let r=pm(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(Vm(59,e.arg.loc));let{tag:i}=t,a=n.isCustomElement(i);if(i===`input`||i===`textarea`||i===`select`||a){let o=Om,s=!1;if(i===`input`||a){let r=Xd(t,`type`);if(r){if(r.type===7)o=Am;else if(r.value)switch(r.value.content){case`radio`:o=Em;break;case`checkbox`:o=Dm;break;case`file`:s=!0,n.onError(Vm(60,e.loc));break;default:break}}else Qd(t)&&(o=Am)}else i===`select`&&(o=km);s||(r.needRuntime=n.helper(o))}else n.onError(Vm(58,e.loc));return r.props=r.props.filter(e=>!(e.key.type===4&&e.key.content===`modelValue`)),r},Gm=t(`passive,once,capture`),Km=t(`stop,prevent,self,ctrl,shift,alt,meta,exact,middle`),qm=t(`left,right`),Jm=t(`onkeyup,onkeydown,onkeypress`),Ym=(e,t,n,r)=>{let i=[],a=[],o=[];for(let s=0;sRd(e)&&e.content.toLowerCase()===`onclick`?W(t,!0):e.type===4?e:_d([`(`,e,`) === "onClick" ? "${t}" : (`,e,`)`]),Zm=(e,t,n)=>sm(e,t,n,t=>{let{modifiers:r}=e;if(!r.length)return t;let{key:i,value:a}=t.props[0],{keyModifiers:o,nonKeyModifiers:s,eventOptionModifiers:c}=Ym(i,r,n,e.loc);if(s.includes(`right`)&&(i=Xm(i,`onContextmenu`)),s.includes(`middle`)&&(i=Xm(i,`onMouseup`)),s.length&&(a=G(n.helper(jm),[a,JSON.stringify(s)])),o.length&&(!Rd(i)||Jm(i.content.toLowerCase()))&&(a=G(n.helper(Mm),[a,JSON.stringify(o)])),c.length){let e=c.map(re).join(``);i=Rd(i)?W(`${i.content}${e}`,!0):_d([`(`,i,`) + "${e}"`])}return{props:[U(i,a)]}}),Qm=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Vm(62,i)),{props:[],needRuntime:n.helper(Nm)}},$m=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag===`script`||e.tag===`style`)&&t.removeNode()},eh=[zm],th={cloak:Tm,html:Hm,text:Um,model:Wm,on:Zm,show:Qm};function nh(e,t={}){return wm(e,c({},Rm,t,{nodeTransforms:[$m,...eh,...t.nodeTransforms||[]],directiveTransforms:c({},th,t.directiveTransforms||{}),transformHoist:null}))}var rh=Object.create(null);function ih(e,t){if(!v(e))if(e.nodeType)e=e.innerHTML;else return i;let n=ue(e,t),r=rh[n];if(r)return r;if(e[0]===`#`){let t=document.querySelector(e);e=t?t.innerHTML:``}let a=c({hoistStatic:!0,onError:void 0,onWarn:i},t);!a.isCustomElement&&typeof customElements<`u`&&(a.isCustomElement=e=>!!customElements.get(e));let{code:o}=nh(e,a),s=Function(`Vue`,o)(gc);return s._rc=!0,rh[n]=s}Zs(ih);var ah=[`top`,`right`,`bottom`,`left`],oh=[`start`,`end`],sh=ah.reduce((e,t)=>e.concat(t,t+`-`+oh[0],t+`-`+oh[1]),[]),ch=Math.min,lh=Math.max,uh={left:`right`,right:`left`,bottom:`top`,top:`bottom`},dh={start:`end`,end:`start`};function fh(e,t,n){return lh(e,ch(t,n))}function ph(e,t){return typeof e==`function`?e(t):e}function mh(e){return e.split(`-`)[0]}function hh(e){return e.split(`-`)[1]}function gh(e){return e===`x`?`y`:`x`}function _h(e){return e===`y`?`height`:`width`}function vh(e){return[`top`,`bottom`].includes(mh(e))?`y`:`x`}function yh(e){return gh(vh(e))}function bh(e,t,n){n===void 0&&(n=!1);let r=hh(e),i=yh(e),a=_h(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Th(o)),[o,Th(o)]}function xh(e){let t=Th(e);return[Sh(e),t,Sh(t)]}function Sh(e){return e.replace(/start|end/g,e=>dh[e])}function Ch(e,t,n){let r=[`left`,`right`],i=[`right`,`left`],a=[`top`,`bottom`],o=[`bottom`,`top`];switch(e){case`top`:case`bottom`:return n?t?i:r:t?r:i;case`left`:case`right`:return t?a:o;default:return[]}}function wh(e,t,n,r){let i=hh(e),a=Ch(mh(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Sh)))),a}function Th(e){return e.replace(/left|right|bottom|top/g,e=>uh[e])}function Eh(e){return{top:0,right:0,bottom:0,left:0,...e}}function Dh(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Eh(e)}function Oh(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function kh(e,t,n){let{reference:r,floating:i}=e,a=vh(t),o=yh(t),s=_h(o),c=mh(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(hh(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}var Ah=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=kh(l,r,c),f=r,p={},m=0;for(let n=0;n({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=ph(e,t)||{};if(l==null)return{};let d=Dh(u),f={x:n,y:r},p=yh(i),m=_h(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=ch(d[_],T),D=ch(d[v],T),ee=E,O=C-h[m]-D,te=C/2-h[m]/2+w,k=fh(ee,te,O),ne=!c.arrow&&hh(i)!=null&&te!==k&&a.reference[m]/2-(tehh(t)===e),...n.filter(t=>hh(t)!==e)]:n.filter(e=>mh(e)===e)).filter(n=>e?hh(n)===e||(t?Sh(n)!==n:!1):!0)}var Ph=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:o}=t,{crossAxis:s=!1,alignment:c,allowedPlacements:l=sh,autoAlignment:u=!0,...d}=ph(e,t),f=c!==void 0||l===sh?Nh(c||null,u,l):l,p=await jh(t,d),m=r.autoPlacement?.index||0,h=f[m];if(h==null)return{};let g=bh(h,n,await(a.isRTL==null?void 0:a.isRTL(o.floating)));if(i!==h)return{reset:{placement:f[0]}};let _=[p[mh(h)],p[g[0]],p[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:h,overflows:_}],y=f[m+1];if(y)return{data:{index:m+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=hh(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),x=b.filter(e=>e[2].slice(0,hh(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:m+1,overflows:v},reset:{placement:x}}}}},Fh=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=ph(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=mh(r),_=vh(o),v=mh(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Th(o)]:xh(o)),x=p!==`none`;!d&&x&&b.push(...wh(o,m,p,y));let S=[o,...b],C=await jh(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=bh(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=vh(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};async function Ih(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=mh(n),s=hh(n),c=vh(n)===`y`,l=[`left`,`top`].includes(o)?-1:1,u=a&&c?-1:1,d=ph(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Lh=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Ih(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Rh=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=ph(e,t),l={x:n,y:r},u=await jh(t,c),d=vh(mh(i)),f=gh(d),p=l[f],m=l[d];if(a){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=p+u[e],r=p-u[t];p=fh(n,p,r)}if(o){let e=d===`y`?`top`:`left`,t=d===`y`?`bottom`:`right`,n=m+u[e],r=m-u[t];m=fh(n,m,r)}let h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},zh=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=ph(e,t),c=await jh(t,s),l=mh(n),u=hh(n),d=vh(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=ch(p-c[m],g),y=ch(f-c[h],_),b=!t.middlewareData.shift,x=v,S=y;if(d?S=u||b?ch(y,_):_:x=u||b?ch(v,g):g,b&&!u){let e=lh(c.left,0),t=lh(c.right,0),n=lh(c.top,0),r=lh(c.bottom,0);d?S=f-2*(e!==0||t!==0?e+t:lh(c.left,c.right)):x=p-2*(n!==0||r!==0?n+r:lh(c.top,c.bottom))}await o({...t,availableWidth:S,availableHeight:x});let C=await i.getDimensions(a.floating);return f!==C.width||p!==C.height?{reset:{rects:!0}}:{}}}};function Bh(e){return e.ownerDocument?.defaultView||window}function Vh(e){return Bh(e).getComputedStyle(e)}var Hh=Math.min,Uh=Math.max,Wh=Math.round;function Gh(e){let t=Vh(e),n=parseFloat(t.width),r=parseFloat(t.height),i=e.offsetWidth,a=e.offsetHeight,o=Wh(n)!==i||Wh(r)!==a;return o&&(n=i,r=a),{width:n,height:r,fallback:o}}function Kh(e){return Zh(e)?(e.nodeName||``).toLowerCase():``}var qh;function Jh(){if(qh)return qh;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(qh=e.brands.map((e=>e.brand+`/`+e.version)).join(` `),qh):navigator.userAgent}function Yh(e){return e instanceof Bh(e).HTMLElement}function Xh(e){return e instanceof Bh(e).Element}function Zh(e){return e instanceof Bh(e).Node}function Qh(e){return typeof ShadowRoot>`u`?!1:e instanceof Bh(e).ShadowRoot||e instanceof ShadowRoot}function $h(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Vh(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&![`inline`,`contents`].includes(i)}function eg(e){return[`table`,`td`,`th`].includes(Kh(e))}function tg(e){let t=/firefox/i.test(Jh()),n=Vh(e),r=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!==`none`||n.perspective!==`none`||!!r&&r!==`none`||t&&n.willChange===`filter`||t&&!!n.filter&&n.filter!==`none`||[`transform`,`perspective`].some((e=>n.willChange.includes(e)))||[`paint`,`layout`,`strict`,`content`].some((e=>{let t=n.contain;return t!=null&&t.includes(e)}))}function ng(){return!/^((?!chrome|android).)*safari/i.test(Jh())}function rg(e){return[`html`,`body`,`#document`].includes(Kh(e))}function ig(e){return Xh(e)?e:e.contextElement}var ag={x:1,y:1};function og(e){let t=ig(e);if(!Yh(t))return ag;let n=t.getBoundingClientRect(),{width:r,height:i,fallback:a}=Gh(t),o=(a?Wh(n.width):n.width)/r,s=(a?Wh(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}function sg(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ig(e),o=ag;t&&(r?Xh(r)&&(o=og(r)):o=og(e));let s=a?Bh(a):window,c=!ng()&&n,l=(i.left+(c&&s.visualViewport?.offsetLeft||0))/o.x,u=(i.top+(c&&s.visualViewport?.offsetTop||0))/o.y,d=i.width/o.x,f=i.height/o.y;if(a){let e=Bh(a),t=r&&Xh(r)?Bh(r):r,n=e.frameElement;for(;n&&r&&t!==e;){let e=og(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,l*=e.x,u*=e.y,d*=e.x,f*=e.y,l+=t.x,u+=t.y,n=Bh(n).frameElement}}return{width:d,height:f,top:u,right:l+d,bottom:u+f,left:l,x:l,y:u}}function cg(e){return((Zh(e)?e.ownerDocument:e.document)||window.document).documentElement}function lg(e){return Xh(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ug(e){return sg(cg(e)).left+lg(e).scrollLeft}function dg(e){if(Kh(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Qh(e)&&e.host||cg(e);return Qh(t)?t.host:t}function fg(e){let t=dg(e);return rg(t)?t.ownerDocument.body:Yh(t)&&$h(t)?t:fg(t)}function pg(e,t){t===void 0&&(t=[]);let n=fg(e),r=n===e.ownerDocument?.body,i=Bh(n);return r?t.concat(i,i.visualViewport||[],$h(n)?n:[]):t.concat(n,pg(n))}function mg(e,t,n){return t===`viewport`?Oh(function(e,t){let n=Bh(e),r=cg(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=ng();(e||!e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}(e,n)):Xh(t)?Oh(function(e,t){let n=sg(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Yh(e)?og(e):{x:1,y:1};return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}(t,n)):Oh(function(e){let t=cg(e),n=lg(e),r=e.ownerDocument.body,i=Uh(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Uh(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+ug(e),s=-n.scrollTop;return Vh(r).direction===`rtl`&&(o+=Uh(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}(cg(e)))}function hg(e){return Yh(e)&&Vh(e).position!==`fixed`?e.offsetParent:null}function gg(e){let t=Bh(e),n=hg(e);for(;n&&eg(n)&&Vh(n).position===`static`;)n=hg(n);return n&&(Kh(n)===`html`||Kh(n)===`body`&&Vh(n).position===`static`&&!tg(n))?t:n||function(e){let t=dg(e);for(;Yh(t)&&!rg(t);){if(tg(t))return t;t=dg(t)}return null}(e)||t}function _g(e,t,n){let r=Yh(t),i=cg(t),a=sg(e,!0,n===`fixed`,t),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&n!==`fixed`)if((Kh(t)!==`body`||$h(i))&&(o=lg(t)),Yh(t)){let e=sg(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=ug(i));return{x:a.left+o.scrollLeft-s.x,y:a.top+o.scrollTop-s.y,width:a.width,height:a.height}}var vg={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?function(e,t){let n=t.get(e);if(n)return n;let r=pg(e).filter((e=>Xh(e)&&Kh(e)!==`body`)),i=null,a=Vh(e).position===`fixed`,o=a?dg(e):e;for(;Xh(o)&&!rg(o);){let e=Vh(o),t=tg(o);(a?t||i:t||e.position!==`static`||!i||![`absolute`,`fixed`].includes(i.position))?i=e:r=r.filter((e=>e!==o)),o=dg(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=a[0],s=a.reduce(((e,n)=>{let r=mg(t,n,i);return e.top=Uh(r.top,e.top),e.right=Hh(r.right,e.right),e.bottom=Hh(r.bottom,e.bottom),e.left=Uh(r.left,e.left),e}),mg(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=Yh(n),a=cg(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s={x:1,y:1},c={x:0,y:0};if((i||!i&&r!==`fixed`)&&((Kh(n)!==`body`||$h(a))&&(o=lg(n)),Yh(n))){let e=sg(n);s=og(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+c.x,y:t.y*s.y-o.scrollTop*s.y+c.y}},isElement:Xh,getDimensions:function(e){return Yh(e)?Gh(e):e.getBoundingClientRect()},getOffsetParent:gg,getDocumentElement:cg,getScale:og,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e,i=this.getOffsetParent||gg,a=this.getDimensions;return{reference:_g(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Vh(e).direction===`rtl`},yg=(e,t,n)=>{let r=new Map,i={platform:vg,...n},a={...i.platform,_c:r};return Ah(e,t,{...i,platform:a})};function bg(e,t){for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]==`object`&&e[n]?bg(e[n],t[n]):e[n]=t[n])}var xg={disabled:!1,distance:5,skidding:0,container:`body`,boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:`absolute`,preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:`top`,triggers:[`hover`,`focus`,`touch`],hideTriggers:e=>[...e,`click`],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:`...`},dropdown:{placement:`bottom`,triggers:[`click`],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:`dropdown`,triggers:[`hover`,`focus`],popperTriggers:[`hover`],delay:{show:0,hide:400}}}};function Sg(e,t){let n=xg.themes[e]||{},r;do r=n[t],typeof r>`u`?n.$extend?n=xg.themes[n.$extend]||{}:(n=null,r=xg[t]):n=null;while(n);return r}function Cg(e){let t=[e],n=xg.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=xg.themes[n.$extend]||{}):n=null;while(n);return t.map(e=>`v-popper--theme-${e}`)}function wg(e){let t=[e],n=xg.themes[e]||{};do n.$extend?(t.push(n.$extend),n=xg.themes[n.$extend]||{}):n=null;while(n);return t}var Tg=!1;if(typeof window<`u`){Tg=!1;try{let e=Object.defineProperty({},"passive",{get(){Tg=!0}});window.addEventListener(`test`,null,e)}catch{}}var Eg=!1;typeof window<`u`&&typeof navigator<`u`&&(Eg=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var Dg=[`auto`,`top`,`bottom`,`left`,`right`].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Og={hover:`mouseenter`,focus:`focus`,click:`click`,touch:`touchstart`,pointer:`pointerdown`},kg={hover:`mouseleave`,focus:`blur`,click:`click`,touch:`touchend`,pointer:`pointerup`};function Ag(e,t){let n=e.indexOf(t);n!==-1&&e.splice(n,1)}function jg(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}var Mg=[],Ng=null,Pg={};function Fg(e){let t=Pg[e];return t||=Pg[e]=[],t}var Ig=function(){};typeof window<`u`&&(Ig=window.Element);function $(e){return function(t){return Sg(t.theme,e)}}var Lg=`__floating-vue__popper`,Rg=()=>di({name:`VPopper`,provide(){return{[Lg]:{parentPopper:this}}},inject:{[Lg]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:$(`disabled`)},positioningDisabled:{type:Boolean,default:$(`positioningDisabled`)},placement:{type:String,default:$(`placement`),validator:e=>Dg.includes(e)},delay:{type:[String,Number,Object],default:$(`delay`)},distance:{type:[Number,String],default:$(`distance`)},skidding:{type:[Number,String],default:$(`skidding`)},triggers:{type:Array,default:$(`triggers`)},showTriggers:{type:[Array,Function],default:$(`showTriggers`)},hideTriggers:{type:[Array,Function],default:$(`hideTriggers`)},popperTriggers:{type:Array,default:$(`popperTriggers`)},popperShowTriggers:{type:[Array,Function],default:$(`popperShowTriggers`)},popperHideTriggers:{type:[Array,Function],default:$(`popperHideTriggers`)},container:{type:[String,Object,Ig,Boolean],default:$(`container`)},boundary:{type:[String,Ig],default:$(`boundary`)},strategy:{type:String,validator:e=>[`absolute`,`fixed`].includes(e),default:$(`strategy`)},autoHide:{type:[Boolean,Function],default:$(`autoHide`)},handleResize:{type:Boolean,default:$(`handleResize`)},instantMove:{type:Boolean,default:$(`instantMove`)},eagerMount:{type:Boolean,default:$(`eagerMount`)},popperClass:{type:[String,Array,Object],default:$(`popperClass`)},computeTransformOrigin:{type:Boolean,default:$(`computeTransformOrigin`)},autoMinSize:{type:Boolean,default:$(`autoMinSize`)},autoSize:{type:[Boolean,String],default:$(`autoSize`)},autoMaxSize:{type:Boolean,default:$(`autoMaxSize`)},autoBoundaryMaxSize:{type:Boolean,default:$(`autoBoundaryMaxSize`)},preventOverflow:{type:Boolean,default:$(`preventOverflow`)},overflowPadding:{type:[Number,String],default:$(`overflowPadding`)},arrowPadding:{type:[Number,String],default:$(`arrowPadding`)},arrowOverflow:{type:Boolean,default:$(`arrowOverflow`)},flip:{type:Boolean,default:$(`flip`)},shift:{type:Boolean,default:$(`shift`)},shiftCrossAxis:{type:Boolean,default:$(`shiftCrossAxis`)},noAutoFocus:{type:Boolean,default:$(`noAutoFocus`)},disposeTimeout:{type:Number,default:$(`disposeTimeout`)}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:``,strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join(`_`)}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId==null?this.randomId:this.ariaId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide==`function`?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){return this[Lg]?.parentPopper},hasPopperShowTriggerHover(){return this.popperTriggers?.includes(`hover`)||this.popperShowTriggers?.includes(`hover`)}},watch:{shown:`$_autoShowHide`,disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:`$_refreshListeners`,deep:!0},positioningDisabled:`$_refreshListeners`,...[`placement`,`distance`,`skidding`,`boundary`,`strategy`,`overflowPadding`,`arrowPadding`,`preventOverflow`,`shift`,`shiftCrossAxis`,`flip`].reduce((e,t)=>(e[t]=`$_computePosition`,e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var r;(r=this.parentPopper)!=null&&r.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit(`show`),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit(`update:shown`,!0))},hide({event:e=null,skipDelay:t=!1}={}){if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit(`hide`),this.$emit(`update:shown`,!1)}},init(){this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode?.call(this)??this.$el,this.$_targetNodes=this.targetNodes().filter(e=>e.nodeType===e.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(`.v-popper__inner`),this.$_arrowNode=this.$_popperNode.querySelector(`.v-popper__arrow-container`),this.$_swapTargetAttrs(`title`,`data-original-title`),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs(`data-original-title`,`title`))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit(`resize`))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;let e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(Lh({mainAxis:this.distance,crossAxis:this.skidding}));let t=this.placement.startsWith(`auto`);if(t?e.middleware.push(Ph({alignment:this.placement.split(`-`)[1]??``})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Rh({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(Fh({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Mh({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:`arrowOverflow`,fn:({placement:e,rects:t,middlewareData:n})=>{let r,{centerOffset:i}=n.arrow;return r=e.startsWith(`top`)||e.startsWith(`bottom`)?Math.abs(i)>t.reference.width/2:Math.abs(i)>t.reference.height/2,{data:{overflow:r}}}}),this.autoMinSize||this.autoSize){let t=this.autoSize?this.autoSize:this.autoMinSize?`min`:null;e.middleware.push({name:`autoSize`,fn:({rects:e,placement:n,middlewareData:r})=>{var i;if((i=r.autoSize)!=null&&i.skip)return{};let a,o;return n.startsWith(`top`)||n.startsWith(`bottom`)?a=e.reference.width:o=e.reference.height,this.$_innerNode.style[t===`min`?`minWidth`:t===`max`?`maxWidth`:`width`]=a==null?null:`${a}px`,this.$_innerNode.style[t===`min`?`minHeight`:t===`max`?`maxHeight`:`height`]=o==null?null:`${o}px`,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(zh({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:e,availableHeight:t})=>{this.$_innerNode.style.maxWidth=e==null?null:`${e}px`,this.$_innerNode.style.maxHeight=t==null?null:`${t}px`}})));let n=await yg(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Ng&&this.instantMove&&Ng.instantMove&&Ng!==this.parentPopper){Ng.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay(`show`))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Ng=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay(`hide`))},$_computeDelay(e){let t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await jg(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...pg(this.$_referenceNode),...pg(this.$_popperNode)],`scroll`,()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){let e=this.$_referenceNode.getBoundingClientRect(),t=this.$_popperNode.querySelector(`.v-popper__wrapper`),n=t.parentNode.getBoundingClientRect(),r=e.x+e.width/2-(n.left+t.offsetLeft),i=e.y+e.height/2-(n.top+t.offsetTop);this.result.transformOrigin=`${r}px ${i}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":``});let e=this.showGroup;if(e){let t;for(let n=0;n0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,Ag(Mg,this),Mg.length===0&&document.body.classList.remove(`v-popper--some-open`);for(let e of wg(this.theme)){let t=Fg(e);Ag(t,this),t.length===0&&document.body.classList.remove(`v-popper--some-open--${e}`)}Ng===this&&(Ng=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);let t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners(`scroll`),this.$emit(`apply-hide`),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await jg(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e==`string`?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw Error(`No container for popover: `+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){let e=e=>{this.isShown&&!this.$_hideInProgress||(e.usedByTooltip=!0,!this.$_preventShow&&this.show({event:e}))};this.$_registerTriggerListeners(this.$_targetNodes,Og,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Og,this.popperTriggers,this.popperShowTriggers,e);let t=e=>{e.usedByTooltip||this.hide({event:e})};this.$_registerTriggerListeners(this.$_targetNodes,kg,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],kg,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(e=>e.addEventListener(t,n,Tg?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,r,i){let a=n;r!=null&&(a=typeof r==`function`?r(a):r),a.forEach(n=>{let r=t[n];r&&this.$_registerEventListeners(e,r,i)})},$_removeEventListeners(e){let t=[];this.$_events.forEach(n=>{let{targetNodes:r,eventType:i,handler:a}=n;!e||e===i?r.forEach(e=>e.removeEventListener(i,a)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit(`close-directive`):this.$emit(`auto-hide`),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(let n of this.$_targetNodes){let r=n.getAttribute(e);r&&(n.removeAttribute(e),n.setAttribute(t,r))}},$_applyAttrsToTarget(e){for(let t of this.$_targetNodes)for(let n in e){let r=e[n];r==null?t.removeAttribute(n):t.setAttribute(n,r)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){let e=this.$_referenceNode.getBoundingClientRect();if(qg>=e.left&&qg<=e.right&&Jg>=e.top&&Jg<=e.bottom){let e=this.$_popperNode.getBoundingClientRect(),t=qg-Gg,n=Jg-Kg,r=e.left+e.width/2-Gg+(e.top+e.height/2)-Kg+e.width+e.height,i=Gg+t*r,a=Kg+n*r;return Yg(Gg,Kg,i,a,e.left,e.top,e.left,e.bottom)||Yg(Gg,Kg,i,a,e.left,e.top,e.right,e.top)||Yg(Gg,Kg,i,a,e.right,e.top,e.right,e.bottom)||Yg(Gg,Kg,i,a,e.left,e.bottom,e.right,e.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<`u`&&typeof window<`u`){if(Eg){let e=Tg?{passive:!0,capture:!0}:!0;document.addEventListener(`touchstart`,e=>zg(e,!0),e),document.addEventListener(`touchend`,e=>Bg(e,!0),e)}else window.addEventListener(`mousedown`,e=>zg(e,!1),!0),window.addEventListener(`click`,e=>Bg(e,!1),!0);window.addEventListener(`resize`,Wg)}function zg(e,t){if(xg.autoHideOnMousedown)Vg(e,t);else for(let t=0;t=0;r--){let i=Mg[r];try{let r=i.containsGlobalTarget=i.mouseDownContains||i.popperNode().contains(e.target);i.pendingHide=!1,requestAnimationFrame(()=>{if(i.pendingHide=!1,!n[i.randomId]&&Hg(i,r,e)){if(i.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&r){let e=i.parentPopper;for(;e;)n[e.randomId]=!0,e=e.parentPopper;return}let a=i.parentPopper;for(;a&&Hg(a,a.containsGlobalTarget,e);)a.$_handleGlobalClose(e,t),a=a.parentPopper}})}catch{}}}function Hg(e,t,n){return n.closeAllPopover||n.closePopover&&t||Ug(e,n)&&!t}function Ug(e,t){if(typeof e.autoHide==`function`){let n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function Wg(){for(let e=0;e{Gg=qg,Kg=Jg,qg=e.clientX,Jg=e.clientY},Tg?{passive:!0}:void 0);function Yg(e,t,n,r,i,a,o,s){let c=((o-i)*(t-a)-(s-a)*(e-i))/((s-a)*(n-e)-(o-i)*(r-t)),l=((n-e)*(t-a)-(r-t)*(e-i))/((s-a)*(n-e)-(o-i)*(r-t));return c>=0&&c<=1&&l>=0&&l<=1}var Xg={extends:Rg()},Zg=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};function Qg(e,t,n,r,i,a){return fs(),_s(`div`,{ref:`reference`,class:_e([`v-popper`,{"v-popper--shown":e.slotData.isShown}])},[_a(e.$slots,`default`,ve(Es(e.slotData)))],2)}var $g=Zg(Xg,[[`render`,Qg]]);function e_(){var e=window.navigator.userAgent,t=e.indexOf(`MSIE `);if(t>0)return parseInt(e.substring(t+5,e.indexOf(`.`,t)),10);if(e.indexOf(`Trident/`)>0){var n=e.indexOf(`rv:`);return parseInt(e.substring(n+3,e.indexOf(`.`,n)),10)}var r=e.indexOf(`Edge/`);return r>0?parseInt(e.substring(r+5,e.indexOf(`.`,r)),10):-1}var t_;function n_(){n_.init||(n_.init=!0,t_=e_()!==-1)}var r_={name:`ResizeObserver`,props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:[`notify`],mounted(){n_(),ir(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});let e=document.createElement(`object`);this._resizeObject=e,e.setAttribute(`aria-hidden`,`true`),e.setAttribute(`tabindex`,-1),e.onload=this.addResizeHandlers,e.type=`text/html`,t_&&this.$el.appendChild(e),e.data=`about:blank`,t_||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit(`notify`,{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener(`resize`,this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!t_&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener(`resize`,this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},i_=br(`data-v-b329ee4c`);vr(`data-v-b329ee4c`);var a_={class:`resize-observer`,tabindex:`-1`};yr(),r_.render=i_((e,t,n,r,i,a)=>(fs(),vs(`div`,a_))),r_.__scopeId=`data-v-b329ee4c`,r_.__file=`src/components/ResizeObserver.vue`;var o_=(e=`theme`)=>({computed:{themeClass(){return Cg(this[e])}}}),s_=di({name:`VPopperContent`,components:{ResizeObserver:r_},mixins:[o_()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:[`hide`,`resize`],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),c_=[`id`,`aria-hidden`,`tabindex`,`data-popper-placement`],l_={ref:`inner`,class:`v-popper__inner`},u_=[ws(`div`,{class:`v-popper__arrow-outer`},null,-1),ws(`div`,{class:`v-popper__arrow-inner`},null,-1)];function d_(e,t,n,r,i,a){let o=la(`ResizeObserver`);return fs(),_s(`div`,{id:e.popperId,ref:`popover`,class:_e([`v-popper__popper`,[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:fe(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?`false`:`true`,tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||=du(t=>e.autoHide&&e.$emit(`hide`),[`esc`])},[ws(`div`,{class:`v-popper__backdrop`,onClick:t[0]||=t=>e.autoHide&&e.$emit(`hide`)}),ws(`div`,{class:`v-popper__wrapper`,style:fe(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[ws(`div`,l_,[e.mounted?(fs(),_s(z,{key:0},[ws(`div`,null,[_a(e.$slots,`default`)]),e.handleResize?(fs(),vs(o,{key:0,onNotify:t[1]||=t=>e.$emit(`resize`,t)})):As(``,!0)],64)):As(``,!0)],512),ws(`div`,{ref:`arrow`,class:`v-popper__arrow-container`,style:fe(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},u_,4)],4)],46,c_)}var f_=Zg(s_,[[`render`,d_]]),p_={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},m_=function(){};typeof window<`u`&&(m_=window.Element);var h_=di({name:`VPopperWrapper`,components:{Popper:$g,PopperContent:f_},mixins:[p_,o_(`finalTheme`)],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,m_,Boolean],default:void 0},boundary:{type:[String,m_],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function g_(e,t,n,r,i,a){let o=la(`PopperContent`),s=la(`Popper`);return fs(),vs(s,Ps({ref:`popper`},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||=()=>e.$emit(`show`),onHide:t[1]||=()=>e.$emit(`hide`),"onUpdate:shown":t[2]||=t=>e.$emit(`update:shown`,t),onApplyShow:t[3]||=()=>e.$emit(`apply-show`),onApplyHide:t[4]||=()=>e.$emit(`apply-hide`),onCloseGroup:t[5]||=()=>e.$emit(`close-group`),onCloseDirective:t[6]||=()=>e.$emit(`close-directive`),onAutoHide:t[7]||=()=>e.$emit(`auto-hide`),onResize:t[8]||=()=>e.$emit(`resize`)}),{default:xr(({popperId:t,isShown:n,shouldMountContent:r,skipTransition:i,autoHide:a,show:s,hide:c,handleResize:l,onResize:u,classes:d,result:f})=>[_a(e.$slots,`default`,{shown:n,show:s,hide:c}),V(o,{ref:`popperContent`,"popper-id":t,theme:e.finalTheme,shown:n,mounted:r,"skip-transition":i,"auto-hide":a,"handle-resize":l,classes:d,result:f,onHide:c,onResize:u},{default:xr(()=>[_a(e.$slots,`popper`,{shown:n,hide:c})]),_:2},1032,[`popper-id`,`theme`,`shown`,`mounted`,`skip-transition`,`auto-hide`,`handle-resize`,`classes`,`result`,`onHide`,`onResize`])]),_:3},16,[`theme`,`target-nodes`,`popper-node`,`class`])}var __=Zg(h_,[[`render`,g_]]),v_={...__,name:`VDropdown`,vPopperTheme:`dropdown`},y_={...__,name:`VMenu`,vPopperTheme:`menu`},b_={...__,name:`VTooltip`,vPopperTheme:`tooltip`},x_=di({name:`VTooltipDirective`,components:{Popper:Rg(),PopperContent:f_},mixins:[p_],inheritAttrs:!1,props:{theme:{type:String,default:`tooltip`},html:{type:Boolean,default:e=>Sg(e.theme,`html`)},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Sg(e.theme,`loadingContent`)},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content==`function`},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content==`function`&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;let e=++this.$_fetchId,t=this.content(this);t.then?t.then(t=>this.onResult(e,t)):this.onResult(e,t)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),S_=[`innerHTML`],C_=[`textContent`];function w_(e,t,n,r,i,a){let o=la(`PopperContent`),s=la(`Popper`);return fs(),vs(s,Ps({ref:`popper`},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:xr(({popperId:t,isShown:n,shouldMountContent:r,skipTransition:i,autoHide:a,hide:s,handleResize:c,onResize:l,classes:u,result:d})=>[V(o,{ref:`popperContent`,class:_e({"v-popper--tooltip-loading":e.loading}),"popper-id":t,theme:e.theme,shown:n,mounted:r,"skip-transition":i,"auto-hide":a,"handle-resize":c,classes:u,result:d,onHide:s,onResize:l},{default:xr(()=>[e.html?(fs(),_s(`div`,{key:0,innerHTML:e.finalContent},null,8,S_)):(fs(),_s(`div`,{key:1,textContent:Pe(e.finalContent)},null,8,C_))]),_:2},1032,[`class`,`popper-id`,`theme`,`shown`,`mounted`,`skip-transition`,`auto-hide`,`handle-resize`,`classes`,`result`,`onHide`,`onResize`])]),_:1},16,[`theme`,`target-nodes`,`popper-node`,`onApplyShow`,`onApplyHide`])}var T_=Zg(x_,[[`render`,w_]]),E_=`v-popper--has-tooltip`;function D_(e,t){let n=e.placement;if(!n&&t)for(let e of Dg)t[e]&&(n=e);return n||=Sg(e.theme||`tooltip`,`placement`),n}function O_(e,t,n){let r,i=typeof t;return r=i===`string`?{content:t}:t&&i===`object`?t:{content:!1},r.placement=D_(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}var k_,A_,j_=0;function M_(){if(k_)return;A_=mn([]),k_=yu({name:`VTooltipDirectiveApp`,setup(){return{directives:A_}},render(){return this.directives.map(e=>oc(T_,{...e.options,shown:e.shown||e.options.shown,key:e.id}))},devtools:{hide:!0}});let e=document.createElement(`div`);document.body.appendChild(e),k_.mount(e)}function N_(e,t,n){M_();let r=mn(O_(e,t,n)),i=mn(!1),a={id:j_++,options:r,shown:i};return A_.value.push(a),e.classList&&e.classList.add(E_),e.$_popper={options:r,item:a,show(){i.value=!0},hide(){i.value=!1}}}function P_(e){if(e.$_popper){let t=A_.value.indexOf(e.$_popper.item);t!==-1&&A_.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(E_)}function F_(e,{value:t,modifiers:n}){let r=O_(e,t,n);if(!r.content||Sg(r.theme||`tooltip`,`disabled`))P_(e);else{let i;e.$_popper?(i=e.$_popper,i.options.value=r):i=N_(e,t,n),typeof t.shown<`u`&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?i.show():i.hide())}}var I_={beforeMount:F_,updated:F_,beforeUnmount(e){P_(e)}};function L_(e){e.addEventListener(`mousedown`,z_),e.addEventListener(`click`,z_),e.addEventListener(`touchstart`,B_,Tg?{passive:!0}:!1)}function R_(e){e.removeEventListener(`mousedown`,z_),e.removeEventListener(`click`,z_),e.removeEventListener(`touchstart`,B_),e.removeEventListener(`touchend`,V_),e.removeEventListener(`touchcancel`,H_)}function z_(e){let t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function B_(e){if(e.changedTouches.length===1){let t=e.currentTarget;t.$_vclosepopover_touch=!0,t.$_vclosepopover_touchPoint=e.changedTouches[0],t.addEventListener(`touchend`,V_),t.addEventListener(`touchcancel`,H_)}}function V_(e){let t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){let n=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function H_(e){let t=e.currentTarget;t.$_vclosepopover_touch=!1}var U_={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>`u`||t)&&L_(e)},updated(e,{value:t,oldValue:n,modifiers:r}){e.$_closePopoverModifiers=r,t!==n&&(typeof t>`u`||t?L_(e):R_(e))},beforeUnmount(e){R_(e)}},W_=v_,G_=b_;function K_(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,bg(xg,t),e.directive(`tooltip`,I_),e.directive(`close-popper`,U_),e.component(`VTooltip`,b_),e.component(`VDropdown`,v_),e.component(`VMenu`,y_))}var q_={version:`5.2.2`,install:K_,options:xg},J_=typeof navigator<`u`&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),Y_={install:(e,t={})=>{if(typeof window<`u`&&(window.addEventListener(`vitepress:codeGroupTabActivate`,Wg,{passive:!0}),window.addEventListener(`click`,e=>{e.composedPath().some(e=>e?.classList?.contains?.(`vp-code-group`)||e?.classList?.contains?.(`tabs`))&&Wg()},{passive:!0}),!J_)){let t=!1;window.addEventListener(`mousedown`,()=>{t=!0},{passive:!0}),window.addEventListener(`mouseup`,()=>{t=!1},{passive:!0});let n=e.component;e.component=function(...e){let r=n.apply(this,e);if(e.length>=2&&e[0]===`VMenu`)try{let n=e[1].components.Popper.extends,r=n.methods.show;n.methods.show=function(...e){if(!t)return r.apply(this,e)};let i=n.methods.hide;n.methods.hide=function(...e){if(!t)return i.apply(this,e)}}catch(e){console.error(`Failed to patch FloatingVue`,e)}return r}}e.use(q_,{strategy:`fixed`,...t,themes:{...t.themes,twoslash:{$extend:`dropdown`,triggers:J_?[`touch`]:[`hover`,`touch`],popperTriggers:J_?[`touch`]:[`hover`,`touch`],placement:`bottom-start`,overflowPadding:10,delay:0,handleResize:!1,autoHide:!0,noAutoFocus:!0,instantMove:!0,flip:!1,arrowPadding:8,autoBoundaryMaxSize:!0,...t.themes?.twoslash??{}},"twoslash-query":{$extend:`twoslash`,triggers:[`click`],popperTriggers:[`click`],autoHide:!1,noAutoFocus:!0,...t.themes?.[`twoslash-query`]??{}},"twoslash-completion":{$extend:`twoslash-query`,triggers:[`click`],popperTriggers:[`click`],autoHide:!1,noAutoFocus:!0,distance:0,arrowOverflow:!0,...t.themes?.[`twoslash-completion`]??{}}}})}};export{Sr as $,ys as A,wr as B,Ri as C,oc as D,Es as E,ta as F,da as G,_a as H,Wi as I,mi as J,ao as K,Qi as L,Ps as M,ir as N,Er as O,Ui as P,xr as Q,na as R,V as S,zs as T,la as U,ha as V,fa as W,kr as X,Mr as Y,jr as Z,ws as _,yn as _t,Ac as a,dn as at,_s as b,fe as bt,Xl as c,rn as ct,du as d,an as dt,wn as et,lu as f,hn as ft,ac as g,bn as gt,Vi as h,Tn as ht,Wg as i,I as it,La as j,Tr as k,Yl as l,mn as lt,z as m,On as mt,G_ as n,Be as nt,Rl as o,Ve as ot,B as p,F as pt,Ma as q,W_ as r,cn as rt,yu as s,tn as st,Y_ as t,ze as tt,Jc as u,nn as ut,vs as v,_e as vt,di as w,Os as x,Pe as xt,As as y,ve as yt,fs as z}; \ No newline at end of file diff --git a/docs/dist/assets/modules/shiki-yoNnvMyB.js b/docs/dist/assets/modules/shiki-yoNnvMyB.js deleted file mode 100644 index d0bf9246..00000000 --- a/docs/dist/assets/modules/shiki-yoNnvMyB.js +++ /dev/null @@ -1,9 +0,0 @@ -import{n as e}from"../rolldown-runtime-QTnfLwEv.js";function t(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var n={},r=[],i=()=>{},a=()=>!1,o=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),s=e=>e.startsWith(`onUpdate:`),c=Object.assign,l=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},u=Object.prototype.hasOwnProperty,d=(e,t)=>u.call(e,t),f=Array.isArray,p=e=>C(e)===`[object Map]`,m=e=>C(e)===`[object Set]`,h=e=>C(e)===`[object Date]`,g=e=>C(e)===`[object RegExp]`,_=e=>typeof e==`function`,v=e=>typeof e==`string`,y=e=>typeof e==`symbol`,b=e=>typeof e==`object`&&!!e,x=e=>(b(e)||_(e))&&_(e.then)&&_(e.catch),S=Object.prototype.toString,C=e=>S.call(e),w=e=>C(e).slice(8,-1),T=e=>C(e)===`[object Object]`,E=e=>v(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,D=t(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ee=t(`bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo`),O=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},te=/-\w/g,k=O(e=>e.replace(te,e=>e.slice(1).toUpperCase())),ne=/\B([A-Z])/g,A=O(e=>e.replace(ne,`-$1`).toLowerCase()),re=O(e=>e.charAt(0).toUpperCase()+e.slice(1)),j=O(e=>e?`on${re(e)}`:``),M=(e,t)=>!Object.is(e,t),ie=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},oe=e=>{let t=parseFloat(e);return isNaN(t)?e:t},se=e=>{let t=v(e)?Number(e):NaN;return isNaN(t)?e:t},ce,le=()=>ce||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function ue(e,t){return e+JSON.stringify(t,(e,t)=>typeof t==`function`?t.toString():t)}var de=t(`Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol`);function fe(e){if(f(e)){let t={};for(let n=0;n{if(e){let n=e.split(me);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function _e(e){let t=``;if(v(e))t=e;else if(f(e))for(let n=0;nje(e,t))}var Ne=e=>!!(e&&e.__v_isRef===!0),Pe=e=>v(e)?e:e==null?``:f(e)||b(e)&&(e.toString===S||!_(e.toString))?Ne(e)?Pe(e.value):JSON.stringify(e,Fe,2):String(e),Fe=(e,t)=>Ne(t)?Fe(e,t.value):p(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ie(t,r)+` =>`]=n,e),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ie(e))}:y(t)?Ie(t):b(t)&&!f(t)&&!T(t)?String(t):t,Ie=(e,t=``)=>y(e)?`Symbol(${e.description??t})`:e;function Le(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}var N,Re=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&N&&(N.active?(this.parent=N,this.index=(N.scopes||=[]).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e0&&--this._on===0){if(N===this)N=this.prevScope;else{let e=N;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t0)return;if(Ke){let e=Ke;for(Ke=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ge;){let t=Ge;for(Ge=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Xe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ze(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),et(r),tt(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Qe(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&($e(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function $e(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===lt)||(e.globalVersion=lt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Qe(e))))return;e.flags|=2;let t=e.dep,n=P,r=it;P=e,it=!0;try{Xe(e);let n=e.fn(e._value);(t.version===0||M(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{P=n,it=r,Ze(e),e.flags&=-3}}function et(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)et(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function tt(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function nt(e,t){e.effect instanceof Ue&&(e=e.effect.fn);let n=new Ue(e);t&&c(n,t);try{n.run()}catch(e){throw n.stop(),e}let r=n.run.bind(n);return r.effect=n,r}function rt(e){e.effect.stop()}var it=!0,at=[];function ot(){at.push(it),it=!1}function st(){let e=at.pop();it=e===void 0?!0:e}function ct(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=P;P=void 0;try{t()}finally{P=e}}}var lt=0,ut=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},dt=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!P||!it||P===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==P)t=this.activeLink=new ut(P,this),P.deps?(t.prevDep=P.depsTail,P.depsTail.nextDep=t,P.depsTail=t):P.deps=P.depsTail=t,ft(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=P.depsTail,t.nextDep=void 0,P.depsTail.nextDep=t,P.depsTail=t,P.deps===t&&(P.deps=e)}return t}trigger(e){this.version++,lt++,this.notify(e)}notify(e){Je();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ye()}}};function ft(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)ft(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var pt=new WeakMap,mt=Symbol(``),ht=Symbol(``),gt=Symbol(``);function _t(e,t,n){if(it&&P){let t=pt.get(e);t||pt.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new dt),r.map=t,r.key=n),r.track()}}function vt(e,t,n,r,i,a){let o=pt.get(e);if(!o){lt++;return}let s=e=>{e&&e.trigger()};if(Je(),t===`clear`)o.forEach(s);else{let i=f(e),a=i&&E(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===gt||!y(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(gt)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(mt)),p(e)&&s(o.get(ht)));break;case`delete`:i||(s(o.get(mt)),p(e)&&s(o.get(ht)));break;case`set`:p(e)&&s(o.get(mt));break}}Ye()}function yt(e,t){let n=pt.get(e);return n&&n.get(t)}function bt(e){let t=F(e);return t===e?t:(_t(t,`iterate`,gt),ln(e)?t:t.map(fn))}function xt(e){return _t(e=F(e),`iterate`,gt),e}function St(e,t){return cn(e)?pn(sn(e)?fn(t):t):fn(t)}var Ct={__proto__:null,[Symbol.iterator](){return wt(this,Symbol.iterator,e=>St(this,e))},concat(...e){return bt(this).concat(...e.map(e=>f(e)?bt(e):e))},entries(){return wt(this,`entries`,e=>(e[1]=St(this,e[1]),e))},every(e,t){return Et(this,`every`,e,t,void 0,arguments)},filter(e,t){return Et(this,`filter`,e,t,e=>e.map(e=>St(this,e)),arguments)},find(e,t){return Et(this,`find`,e,t,e=>St(this,e),arguments)},findIndex(e,t){return Et(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return Et(this,`findLast`,e,t,e=>St(this,e),arguments)},findLastIndex(e,t){return Et(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return Et(this,`forEach`,e,t,void 0,arguments)},includes(...e){return Ot(this,`includes`,e)},indexOf(...e){return Ot(this,`indexOf`,e)},join(e){return bt(this).join(e)},lastIndexOf(...e){return Ot(this,`lastIndexOf`,e)},map(e,t){return Et(this,`map`,e,t,void 0,arguments)},pop(){return kt(this,`pop`)},push(...e){return kt(this,`push`,e)},reduce(e,...t){return Dt(this,`reduce`,e,t)},reduceRight(e,...t){return Dt(this,`reduceRight`,e,t)},shift(){return kt(this,`shift`)},some(e,t){return Et(this,`some`,e,t,void 0,arguments)},splice(...e){return kt(this,`splice`,e)},toReversed(){return bt(this).toReversed()},toSorted(e){return bt(this).toSorted(e)},toSpliced(...e){return bt(this).toSpliced(...e)},unshift(...e){return kt(this,`unshift`,e)},values(){return wt(this,`values`,e=>St(this,e))}};function wt(e,t,n){let r=xt(e),i=r[t]();return r!==e&&!ln(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var Tt=Array.prototype;function Et(e,t,n,r,i,a){let o=xt(e),s=o!==e&&!ln(e),c=o[t];if(c!==Tt[t]){let t=c.apply(e,a);return s?fn(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,St(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function Dt(e,t,n,r){let i=xt(e),a=i!==e&&!ln(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=St(e,t)),n.call(this,t,St(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?St(e,c):c}function Ot(e,t,n){let r=F(e);_t(r,`iterate`,gt);let i=r[t](...n);return(i===-1||i===!1)&&un(n[0])?(n[0]=F(n[0]),r[t](...n)):i}function kt(e,t,n=[]){ot(),Je();let r=F(e)[t].apply(e,n);return Ye(),st(),r}var At=t(`__proto__,__v_isRef,__isVue`),jt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(y));function Mt(e){y(e)||(e=String(e));let t=F(this);return _t(t,`has`,e),t.hasOwnProperty(e)}var Nt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?$t:Qt:i?Zt:Xt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=f(e);if(!r){let e;if(a&&(e=Ct[t]))return e;if(t===`hasOwnProperty`)return Mt}let o=Reflect.get(e,t,I(e)?e:n);if((y(t)?jt.has(t):At(t))||(r||_t(e,`get`,t),i))return o;if(I(o)){let e=a&&E(t)?o:o.value;return r&&b(e)?rn(e):e}return b(o)?r?rn(o):tn(o):o}},Pt=class extends Nt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=f(e)&&E(t);if(!this._isShallow){let e=cn(i);if(!ln(n)&&!cn(n)&&(i=F(i),n=F(n)),!a&&I(i)&&!I(n))return e||(i.value=n),!0}let o=a?Number(t)e,Vt=e=>Reflect.getPrototypeOf(e);function Ht(e,t,n){return function(...r){let i=this.__v_raw,a=F(i),o=p(a),s=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?Bt:t?pn:fn;return!t&&_t(a,`iterate`,l?ht:mt),c(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:s?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function Ut(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Wt(e,t){let n={get(n){let r=this.__v_raw,i=F(r),a=F(n);e||(M(n,a)&&_t(i,`get`,n),_t(i,`get`,a));let{has:o}=Vt(i),s=t?Bt:e?pn:fn;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&_t(F(t),`iterate`,mt),t.size},has(t){let n=this.__v_raw,r=F(n),i=F(t);return e||(M(t,i)&&_t(r,`has`,t),_t(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=F(a),s=t?Bt:e?pn:fn;return!e&&_t(o,`iterate`,mt),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return c(n,e?{add:Ut(`add`),set:Ut(`set`),delete:Ut(`delete`),clear:Ut(`clear`)}:{add(e){let n=F(this),r=Vt(n),i=F(e),a=!t&&!ln(e)&&!cn(e)?i:e;return r.has.call(n,a)||M(e,a)&&r.has.call(n,e)||M(i,a)&&r.has.call(n,i)||(n.add(a),vt(n,`add`,a,a)),this},set(e,n){!t&&!ln(n)&&!cn(n)&&(n=F(n));let r=F(this),{has:i,get:a}=Vt(r),o=i.call(r,e);o||=(e=F(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?M(n,s)&&vt(r,`set`,e,n,s):vt(r,`add`,e,n),this},delete(e){let t=F(this),{has:n,get:r}=Vt(t),i=n.call(t,e);i||=(e=F(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&vt(t,`delete`,e,void 0,a),o},clear(){let e=F(this),t=e.size!==0,n=e.clear();return t&&vt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Ht(r,e,t)}),n}function Gt(e,t){let n=Wt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(d(n,r)&&r in t?n:t,r,i)}var Kt={get:Gt(!1,!1)},qt={get:Gt(!1,!0)},Jt={get:Gt(!0,!1)},Yt={get:Gt(!0,!0)},Xt=new WeakMap,Zt=new WeakMap,Qt=new WeakMap,$t=new WeakMap;function en(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function tn(e){return cn(e)?e:on(e,!1,It,Kt,Xt)}function nn(e){return on(e,!1,Rt,qt,Zt)}function rn(e){return on(e,!0,Lt,Jt,Qt)}function an(e){return on(e,!0,zt,Yt,$t)}function on(e,t,n,r,i){if(!b(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=en(w(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function sn(e){return cn(e)?sn(e.__v_raw):!!(e&&e.__v_isReactive)}function cn(e){return!!(e&&e.__v_isReadonly)}function ln(e){return!!(e&&e.__v_isShallow)}function un(e){return e?!!e.__v_raw:!1}function F(e){let t=e&&e.__v_raw;return t?F(t):e}function dn(e){return!d(e,`__v_skip`)&&Object.isExtensible(e)&&ae(e,`__v_skip`,!0),e}var fn=e=>b(e)?tn(e):e,pn=e=>b(e)?rn(e):e;function I(e){return e?e.__v_isRef===!0:!1}function mn(e){return gn(e,!1)}function hn(e){return gn(e,!0)}function gn(e,t){return I(e)?e:new _n(e,t)}var _n=class{constructor(e,t){this.dep=new dt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:F(e),this._value=t?e:fn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||ln(e)||cn(e);e=n?e:F(e),M(e,t)&&(this._rawValue=e,this._value=n?e:fn(e),this.dep.trigger())}};function vn(e){e.dep&&e.dep.trigger()}function yn(e){return I(e)?e.value:e}function bn(e){return _(e)?e():yn(e)}var xn={get:(e,t,n)=>t===`__v_raw`?e:yn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return I(i)&&!I(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Sn(e){return sn(e)?e:new Proxy(e,xn)}var Cn=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new dt,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function wn(e){return new Cn(e)}function Tn(e){let t=f(e)?Array(e.length):{};for(let n in e)t[n]=kn(e,n);return t}var En=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=y(t)?t:String(t),this._raw=F(e);let r=!0,i=e;if(!f(e)||y(this._key)||!E(this._key))do r=!un(i)||ln(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=yn(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&I(this._raw[this._key])){let t=this._object[this._key];if(I(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return yt(this._raw,this._key)}},Dn=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function On(e,t,n){return I(e)?e:_(e)?new Dn(e):b(e)&&arguments.length>1?kn(e,t,n):mn(e)}function kn(e,t,n){return new En(e,t,n)}var An=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new dt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=lt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&P!==this)return qe(this,!0),!0}get value(){let e=this.dep.track();return $e(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function jn(e,t,n=!1){let r,i;return _(e)?r=e:(r=e.get,i=e.set),new An(r,i,n)}var Mn={GET:`get`,HAS:`has`,ITERATE:`iterate`},Nn={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},Pn={},Fn=new WeakMap,In=void 0;function Ln(){return In}function Rn(e,t=!1,n=In){if(n){let t=Fn.get(n);t||Fn.set(n,t=[]),t.push(e)}}function zn(e,t,r=n){let{immediate:a,deep:o,once:s,scheduler:c,augmentJob:u,call:d}=r,p=e=>o?e:ln(e)||o===!1||o===0?Bn(e,1):Bn(e),m,h,g,v,y=!1,b=!1;if(I(e)?(h=()=>e.value,y=ln(e)):sn(e)?(h=()=>p(e),y=!0):f(e)?(b=!0,y=e.some(e=>sn(e)||ln(e)),h=()=>e.map(e=>{if(I(e))return e.value;if(sn(e))return p(e);if(_(e))return d?d(e,2):e()})):h=_(e)?t?d?()=>d(e,2):e:()=>{if(g){ot();try{g()}finally{st()}}let t=In;In=m;try{return d?d(e,3,[v]):e(v)}finally{In=t}}:i,t&&o){let e=h,t=o===!0?1/0:o;h=()=>Bn(e(),t)}let x=Be(),S=()=>{m.stop(),x&&x.active&&l(x.effects,m)};if(s&&t){let e=t;t=(...t)=>{let n=e(...t);return S(),n}}let C=b?Array(e.length).fill(Pn):Pn,w=e=>{if(!(!(m.flags&1)||!m.dirty&&!e))if(t){let n=m.run();if(e||o||y||(b?n.some((e,t)=>M(e,C[t])):M(n,C))){g&&g();let e=In;In=m;try{let e=[n,C===Pn?void 0:b&&C[0]===Pn?[]:C,v];C=n,d?d(t,3,e):t(...e)}finally{In=e}}}else m.run()};return u&&u(w),m=new Ue(h),m.scheduler=c?()=>c(w,!1):w,v=e=>Rn(e,!1,m),g=m.onStop=()=>{let e=Fn.get(m);if(e){if(d)d(e,4);else for(let t of e)t();Fn.delete(m)}},t?a?w(!0):C=m.run():c?c(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function Bn(e,t=1/0,n){if(t<=0||!b(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,I(e))Bn(e.value,t,n);else if(f(e))for(let r=0;r{Bn(e,t,n)});else if(T(e)){for(let r in e)Bn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Bn(e[r],t,n)}return e}var Vn=[];function Hn(e){Vn.push(e)}function Un(){Vn.pop()}function Wn(e,t){}var Gn={SETUP_FUNCTION:0,0:`SETUP_FUNCTION`,RENDER_FUNCTION:1,1:`RENDER_FUNCTION`,NATIVE_EVENT_HANDLER:5,5:`NATIVE_EVENT_HANDLER`,COMPONENT_EVENT_HANDLER:6,6:`COMPONENT_EVENT_HANDLER`,VNODE_HOOK:7,7:`VNODE_HOOK`,DIRECTIVE_HOOK:8,8:`DIRECTIVE_HOOK`,TRANSITION_HOOK:9,9:`TRANSITION_HOOK`,APP_ERROR_HANDLER:10,10:`APP_ERROR_HANDLER`,APP_WARN_HANDLER:11,11:`APP_WARN_HANDLER`,FUNCTION_REF:12,12:`FUNCTION_REF`,ASYNC_COMPONENT_LOADER:13,13:`ASYNC_COMPONENT_LOADER`,SCHEDULER:14,14:`SCHEDULER`,COMPONENT_UPDATE:15,15:`COMPONENT_UPDATE`,APP_UNMOUNT_CLEANUP:16,16:`APP_UNMOUNT_CLEANUP`},Kn={sp:`serverPrefetch hook`,bc:`beforeCreate hook`,c:`created hook`,bm:`beforeMount hook`,m:`mounted hook`,bu:`beforeUpdate hook`,u:`updated`,bum:`beforeUnmount hook`,um:`unmounted hook`,a:`activated hook`,da:`deactivated hook`,ec:`errorCaptured hook`,rtc:`renderTracked hook`,rtg:`renderTriggered hook`,0:`setup function`,1:`render function`,2:`watcher getter`,3:`watcher callback`,4:`watcher cleanup function`,5:`native event handler`,6:`component event handler`,7:`vnode hook`,8:`directive hook`,9:`transition hook`,10:`app errorHandler`,11:`app warnHandler`,12:`ref function`,13:`async component loader`,14:`scheduler flush`,15:`component update`,16:`app unmount cleanup function`};function qn(e,t,n,r){try{return r?e(...r):e()}catch(e){Yn(e,t,n)}}function Jn(e,t,n,r){if(_(e)){let i=qn(e,t,n,r);return i&&x(i)&&i.catch(e=>{Yn(e,t,n)}),i}if(f(e)){let i=[];for(let a=0;a>>1,i=Zn[r],a=dr(i);a=dr(n)?Zn.push(e):Zn.splice(ar(t),0,e),e.flags|=1,sr()}}function sr(){rr||=nr.then(fr)}function cr(e){f(e)?$n.push(...e):er&&e.id===-1?er.splice(tr+1,0,e):e.flags&1||($n.push(e),e.flags|=1),sr()}function lr(e,t,n=Qn+1){for(;ndr(e)-dr(t));if($n.length=0,er){er.push(...e);return}for(er=e,tr=0;tre.id==null?e.flags&2?-1:1/0:e.id;function fr(e){try{for(Qn=0;Qnpr.emit(e,...t)),mr=[]):typeof window<`u`&&window.HTMLElement&&!(window.navigator?.userAgent)?.includes(`jsdom`)?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{hr(e,t)}),setTimeout(()=>{pr||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,mr=[])},3e3)):mr=[]}var L=null,gr=null;function _r(e){let t=L;return L=e,gr=e&&e.type.__scopeId||null,t}function vr(e){gr=e}function yr(){gr=null}var br=e=>xr;function xr(e,t=L,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&hs(-1);let i=_r(t),a;try{a=e(...n)}finally{_r(i),r._d&&hs(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Sr(e,t){if(L===null)return e;let r=nc(L),i=e.dirs||=[];for(let e=0;e1)return n&&_(t)?t.call(r&&r.proxy):t}}function Er(){return!!(zs()||io)}var Dr=Symbol.for(`v-scx`),Or=()=>Tr(Dr);function kr(e,t){return Nr(e,null,t)}function Ar(e,t){return Nr(e,null,{flush:`post`})}function jr(e,t){return Nr(e,null,{flush:`sync`})}function Mr(e,t,n){return Nr(e,t,n)}function Nr(e,t,r=n){let{immediate:a,deep:o,flush:s,once:l}=r,u=c({},r),d=t&&a||!t&&s!==`post`,f;if(Gs){if(s===`sync`){let e=Or();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=i,e.resume=i,e.pause=i,e}}let p=H;u.call=(e,t,n)=>Jn(e,p,t,n);let m=!1;s===`post`?u.scheduler=e=>{R(e,p&&p.suspense)}:s!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():or(e)}),u.augmentJob=e=>{t&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=zn(e,t,u);return Gs&&(f?f.push(h):d&&h()),h}function Pr(e,t,n){let r=this.proxy,i=v(e)?e.includes(`.`)?Fr(r,e):()=>r[e]:e.bind(r,r),a;_(t)?a=t:(a=t.handler,n=t);let o=Hs(this),s=Nr(i,a.bind(r),n);return o(),s}function Fr(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;ee.__isTeleport,zr=e=>e&&(e.disabled||e.disabled===``),Br=e=>e&&(e.defer||e.defer===``),Vr=e=>typeof SVGElement<`u`&&e instanceof SVGElement,Hr=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,Ur=(e,t)=>{let n=e&&e.to;return v(n)?t?t(n):null:n},Wr={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=zr(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=zr(e.props),r=e.target=Ur(e.props,m),a=Yr(r,e,h,p);r&&(o!==`svg`&&Vr(r)?o=`svg`:o!==`mathml`&&Hr(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),Jr(e,!1)))},S=e=>{let t=()=>{Ir.get(e)===t&&(Ir.delete(e),zr(e.props)&&(b(e,_(e.el)||n,e.anchor),Jr(e,!0)),x(e))};Ir.set(e,t),R(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),Br(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),Jr(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=Ir.get(e);if(u){u.flags|=8,Ir.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=zr(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||Vr(p)?o=`svg`:(o===`mathml`||Hr(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),Wo(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Gr(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=t.target=Ur(t.props,m);e&&Gr(t,e,null,l,0)}else g&&Gr(t,p,h,l,1);Jr(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=a||!zr(f),m=Ir.get(e);if(m&&(m.flags|=8,Ir.delete(e)),d&&(i(l),i(u)),a&&i(c),!m&&o&16)for(let e=0;e{e.isMounted=!0}),ta(()=>{e.isUnmounting=!0}),e}var $r=[Function,Array],ei={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:$r,onEnter:$r,onAfterEnter:$r,onEnterCancelled:$r,onBeforeLeave:$r,onLeave:$r,onAfterLeave:$r,onLeaveCancelled:$r,onBeforeAppear:$r,onAppear:$r,onAfterAppear:$r,onAppearCancelled:$r},ti=e=>{let t=e.subTree;return t.component?ti(t.component):t},ni={name:`BaseTransition`,props:ei,setup(e,{slots:t}){let n=zs(),r=Qr();return()=>{let i=t.default&&ui(t.default(),!0),a=i&&i.length?ri(i):n.subTree?As():void 0;if(!a)return;let o=F(e),{mode:s}=o;if(r.isLeaving)return si(a);let c=ci(a);if(!c)return si(a);let l=oi(c,o,r,n,e=>l=e);c.type!==B&&li(c,l);let u=n.subTree&&ci(n.subTree);if(u&&u.type!==B&&!bs(u,c)&&ti(n).type!==B){let e=oi(u,o,r,n);if(li(u,e),s===`out-in`&&c.type!==B)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},si(a);s===`in-out`&&c.type!==B?e.delayLeave=(e,t,n)=>{let i=ai(r,u);i[String(u.key)]=u,e[Xr]=()=>{t(),e[Xr]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function ri(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==B){t=n;break}}return t}var ii=ni;function ai(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function oi(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:m,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:_,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,x=String(e.key),S=ai(n,e),C=(e,t)=>{e&&Jn(e,r,9,t)},w=(e,t)=>{let n=t[1];C(e,t),f(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted)if(a)r=_||c;else return;t[Xr]&&t[Xr](!0);let i=S[x];i&&bs(e,i)&&i.el[Xr]&&i.el[Xr](),C(r,[t])},enter(t){if(S[x]===e)return;let r=l,i=u,o=d;if(!n.isMounted)if(a)r=v||l,i=y||u,o=b||d;else return;let s=!1;t[Zr]=e=>{s||(s=!0,C(e?o:i,[t]),T.delayedLeave&&T.delayedLeave(),t[Zr]=void 0)};let c=t[Zr].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[Zr]&&t[Zr](!0),n.isUnmounting)return r();C(p,[t]);let a=!1;t[Xr]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[Xr]=void 0,S[i]===e&&delete S[i])};let o=t[Xr].bind(null,!1);S[i]=e,m?w(m,[t,o]):o()},clone(e){let a=oi(e,t,n,r,i);return i&&i(a),a}};return T}function si(e){if(Bi(e))return e=Ds(e),e.children=null,e}function ci(e){if(!Bi(e))return Rr(e.type)&&e.children?ri(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&_(n.default))return n.default()}}function li(e,t){e.shapeFlag&6&&e.component?(e.transition=t,li(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ui(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let e=0;er.value,set:e=>r.value=e})}return r}function hi(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var gi=new WeakMap;function _i(e,t,r,i,o=!1){if(f(e)){e.forEach((e,n)=>_i(e,t&&(f(t)?t[n]:t),r,i,o));return}if(Li(i)&&!o){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&_i(e,t,r,i.component.subTree);return}let s=i.shapeFlag&4?nc(i.component):i.el,c=o?null:s,{i:u,r:p}=e,m=t&&t.r,h=u.refs===n?u.refs={}:u.refs,g=u.setupState,y=F(g),b=g===n?a:e=>hi(h,e)?!1:d(y,e),x=(e,t)=>!(t&&hi(h,t));if(m!=null&&m!==p){if(vi(t),v(m))h[m]=null,b(m)&&(g[m]=null);else if(I(m)){let e=t;x(m,e.k)&&(m.value=null),e.k&&(h[e.k]=null)}}if(_(p))qn(p,u,12,[c,h]);else{let t=v(p),n=I(p);if(t||n){let i=()=>{if(e.f){let n=t?b(p)?g[p]:h[p]:x(p)||!e.k?p.value:h[e.k];if(o)f(n)&&l(n,s);else if(f(n))n.includes(s)||n.push(s);else if(t)h[p]=[s],b(p)&&(g[p]=h[p]);else{let t=[s];x(p,e.k)&&(p.value=t),e.k&&(h[e.k]=t)}}else t?(h[p]=c,b(p)&&(g[p]=c)):n&&(x(p,e.k)&&(p.value=c),e.k&&(h[e.k]=c))};if(c){let t=()=>{i(),gi.delete(e)};t.id=-1,gi.set(e,t),R(t,r)}else vi(e),i()}}}function vi(e){let t=gi.get(e);t&&(t.flags|=8,gi.delete(e))}var yi=!1,bi=()=>{yi||=(console.error(`Hydration completed but contains mismatches.`),!0)},xi=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,Si=e=>e.namespaceURI.includes(`MathML`),Ci=e=>{if(e.nodeType===1){if(xi(e))return`svg`;if(Si(e))return`mathml`}},wi=e=>e.nodeType===8;function Ti(e){let{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:s,remove:c,insert:l,createComment:u}}=e,d=(e,t)=>{if(!t.hasChildNodes()){n(null,e,t),ur(),t._vnode=e;return}f(t.firstChild,e,null,null,null),ur(),t._vnode=e},f=(n,r,o,c,u,d=!1)=>{d||=!!r.dynamicChildren;let b=wi(n)&&n.data===`[`,x=()=>g(n,r,o,c,u,b),{type:S,ref:C,shapeFlag:w,patchFlag:T}=r,E=n.nodeType;r.el=n,T===-2&&(d=!1,r.dynamicChildren=null);let D=null;switch(S){case cs:E===3?(n.data!==r.children&&(bi(),n.data=r.children),D=a(n)):r.children===``?(l(r.el=i(``),s(n),n),D=n):D=x();break;case B:y(n)?(D=a(n),v(r.el=n.content.firstChild,n,o)):D=E!==8||b?x():a(n);break;case ls:if(b&&(n=a(n),E=n.nodeType),E===1||E===3){D=n;let e=!r.children.length;for(let t=0;t{s||=!!t.dynamicChildren;let{type:l,props:u,patchFlag:d,shapeFlag:f,dirs:p,transition:h}=t,g=l===`input`||l===`option`;if(g||d!==-1){p&&Cr(t,null,n,`created`);let l=!1;if(y(e)){l=Uo(null,h)&&n&&n.vnode.props&&n.vnode.props.appear;let r=e.content.firstChild;if(l){let e=r.getAttribute(`class`);e&&(r.$cls=e),h.beforeEnter(r)}v(r,e,n),t.el=e=r}if(f&16&&!(u&&(u.innerHTML||u.textContent))){let r=m(e.firstChild,t,e,n,i,a,s);for(r&&!Oi(e,1)&&bi();r;){let e=r;r=r.nextSibling,c(e)}}else if(f&8){let n=t.children;n[0]===` -`&&(e.tagName===`PRE`||e.tagName===`TEXTAREA`)&&(n=n.slice(1));let{textContent:r}=e;r!==n&&r!==n.replace(/\r\n|\r/g,` -`)&&(Oi(e,0)||bi(),e.textContent=t.children)}if(u){if(g||!s||d&48){let t=e.tagName.includes(`-`);for(let i in u)(g&&(i.endsWith(`value`)||i===`indeterminate`)||o(i)&&!D(i)||i[0]===`.`||t&&!D(i))&&r(e,i,null,u[i],void 0,n)}else if(u.onClick)r(e,`onClick`,null,u.onClick,void 0,n);else if(d&4&&sn(u.style))for(let e in u.style)u.style[e]}let _;(_=u&&u.onVnodeBeforeMount)&&Fs(_,n,t),p&&Cr(t,null,n,`beforeMount`),((_=u&&u.onVnodeMounted)||p||l)&&as(()=>{_&&Fs(_,n,t),l&&h.enter(e),p&&Cr(t,null,n,`mounted`)},i)}return e.nextSibling},m=(e,t,r,o,s,c,u)=>{u||=!!t.dynamicChildren;let d=t.children,p=d.length,m=!1;for(let t=0;t{let{slotScopeIds:c}=t;c&&(i=i?i.concat(c):c);let d=s(e),f=m(a(e),t,d,n,r,i,o);return f&&wi(f)&&f.data===`]`?a(t.anchor=f):(bi(),l(t.anchor=u(`]`),d,f),f)},g=(e,t,r,i,o,l)=>{if(Oi(e.parentElement,1)||bi(),t.el=null,l){let t=_(e);for(;;){let n=a(e);if(n&&n!==t)c(n);else break}}let u=a(e),d=s(e);return c(e),n(null,t,d,u,r,i,Ci(d),o),r&&(r.vnode.el=t.el,yo(r,t.el)),u},_=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=a(e),e&&wi(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return a(e);r--}return e},v=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},y=e=>e.nodeType===1&&e.tagName===`TEMPLATE`;return[d,f]}var Ei=`data-allow-mismatch`,Di={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function Oi(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Ei);)e=e.parentElement;let n=e&&e.getAttribute(Ei);if(n==null)return!1;if(n===``)return!0;{let e=n.split(`,`);return t===0&&e.includes(`children`)?!0:e.includes(Di[t])}}var ki=le().requestIdleCallback||(e=>setTimeout(e,1)),Ai=le().cancelIdleCallback||(e=>clearTimeout(e)),ji=(e=1e4)=>t=>{let n=ki(t,{timeout:e});return()=>Ai(n)};function Mi(e){let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t0&&r0&&n0&&i(t,n)=>{let r=new IntersectionObserver(e=>{for(let n of e)if(n.isIntersecting){r.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element){if(Mi(e))return t(),r.disconnect(),!1;r.observe(e)}}),()=>r.disconnect()},Pi=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener(`change`,t,{once:!0}),()=>n.removeEventListener(`change`,t)}},Fi=(e=[])=>(t,n)=>{v(e)&&(e=[e]);let r=!1,i=e=>{r||(r=!0,a(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},a=()=>{n(t=>{for(let n of e)t.removeEventListener(n,i)})};return n(t=>{for(let n of e)t.addEventListener(n,i,{once:!0})}),a};function Ii(e,t){if(wi(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(wi(r))if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++;r=r.nextSibling}}else t(e)}var Li=e=>!!e.type.__asyncLoader;function Ri(e){_(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return di({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=!1;(t.bu||=[]).push(()=>r=!0);let i=()=>{r||n()},o=a?()=>{let n=a(i,t=>Ii(e,t));n&&(t.bum||=[]).push(n)}:i;u?o():p().then(()=>!t.isUnmounted&&o())},get __asyncResolved(){return u},setup(){let e=H;if(pi(e),u)return()=>zi(u,e);let t=t=>{l=null,Yn(t,e,13,!r)};if(s&&e.suspense||Gs)return p().then(t=>()=>zi(t,e)).catch(e=>(t(e),()=>r?V(r,{error:e}):null));let a=mn(!1),c=mn(),d=mn(!!i),f,m;return na(()=>{f!=null&&clearTimeout(f),m!=null&&clearTimeout(m)}),i&&(m=setTimeout(()=>{e.isUnmounted||(d.value=!1)},i)),o!=null&&(f=setTimeout(()=>{if(!e.isUnmounted&&!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o)),p().then(()=>{e.isUnmounted||(a.value=!0,e.parent&&Bi(e.parent.vnode)&&e.parent.update())}).catch(n=>{if(e.isUnmounted){l=null;return}t(n),c.value=n}),()=>{if(a.value&&u)return zi(u,e);if(c.value&&r)return V(r,{error:c.value});if(n&&!d.value)return zi(n,e)}}})}function zi(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=V(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var Bi=e=>e.type.__isKeepAlive,Vi={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=zs(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let i=new Map,a=new Set,o=null,s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d(`div`);r.activate=(e,t,n,r,i)=>{let a=e.component;l(e,t,n,0,s),c(a.vnode,e,t,n,a,s,r,e.slotScopeIds,i),R(()=>{a.isDeactivated=!1,a.a&&ie(a.a);let t=e.props&&e.props.onVnodeMounted;t&&Fs(t,a.parent,e)},s)},r.deactivate=e=>{let t=e.component;qo(t.m),qo(t.a),l(e,f,null,1,s),R(()=>{t.da&&ie(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&Fs(n,t.parent,e),t.isDeactivated=!0},s)};function p(e){qi(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=rc(Li(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!bs(t,o))?p(t):o&&qi(o),i.delete(e),a.delete(e)}Mr(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>Hi(e,t)),t&&m(e=>!Hi(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{g!=null&&(Yo(n.subTree.type)?R(()=>{i.set(g,Ji(n.subTree))},n.subTree.suspense):i.set(g,Ji(n.subTree)))};return Qi(_),ea(_),ta(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=Ji(t);if(e.type===i.type&&e.key===i.key){qi(i);let e=i.component.da;e&&R(e,r);return}p(e)})}),()=>{if(g=null,!t.default)return o=null;let n=t.default(),r=n[0];if(n.length>1)return o=null,n;if(!ys(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=Ji(r);if(s.type===B)return o=null,s;let c=s.type,l=rc(Li(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!Hi(u,l))||d&&l&&Hi(d,l))return s.shapeFlag&=-257,o=s,r;let p=s.key==null?c:s.key,m=i.get(p);return s.el&&(s=Ds(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&li(s,s.transition),s.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),f&&a.size>parseInt(f,10)&&h(a.values().next().value)),s.shapeFlag|=256,o=s,Yo(r.type)?r:s}}};function Hi(e,t){return f(e)?e.some(e=>Hi(e,t)):v(e)?e.split(`,`).includes(t):g(e)?(e.lastIndex=0,e.test(t)):!1}function Ui(e,t){Gi(e,`a`,t)}function Wi(e,t){Gi(e,`da`,t)}function Gi(e,t,n=H){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Yi(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Bi(e.parent.vnode)&&Ki(r,t,n,e),e=e.parent}}function Ki(e,t,n,r){let i=Yi(t,e,r,!0);na(()=>{l(r[t],i)},n)}function qi(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ji(e){return e.shapeFlag&128?e.ssContent:e}function Yi(e,t,n=H,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{ot();let i=Hs(n),a=Jn(t,n,e,r);return i(),st(),a};return r?i.unshift(a):i.push(a),a}}var Xi=e=>(t,n=H)=>{(!Gs||e===`sp`)&&Yi(e,(...e)=>t(...e),n)},Zi=Xi(`bm`),Qi=Xi(`m`),$i=Xi(`bu`),ea=Xi(`u`),ta=Xi(`bum`),na=Xi(`um`),ra=Xi(`sp`),ia=Xi(`rtg`),aa=Xi(`rtc`);function oa(e,t=H){Yi(`ec`,e,t)}var sa=`components`,ca=`directives`;function la(e,t){return pa(sa,e,!0,t)||e}var ua=Symbol.for(`v-ndc`);function da(e){return v(e)?pa(sa,e,!1)||e:e||ua}function fa(e){return pa(ca,e)}function pa(e,t,n=!0,r=!1){let i=L||H;if(i){let n=i.type;if(e===sa){let e=rc(n,!1);if(e&&(e===t||e===k(t)||e===re(k(t))))return n}let a=ma(i[e]||n[e],t)||ma(i.appContext[e],t);return!a&&r?n:a}}function ma(e,t){return e&&(e[t]||e[k(t)]||e[re(k(t))])}function ha(e,t,n,r){let i,a=n&&n[r],o=f(e);if(o||v(e)){let n=o&&sn(e),r=!1,s=!1;n&&(r=!ln(e),s=cn(e),e=xt(e)),i=Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function _a(e,t,n={},r,i){if(L.ce||L.parent&&Li(L.parent)&&L.parent.ce){let e=Object.keys(n).length>0;return t!=="default"&&(n.name=t),fs(),vs(z,null,[V(`slot`,n,r&&r())],e?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),fs();let o=a&&va(a(n)),s=n.key||o&&o.key,c=vs(z,{key:(s&&!y(s)?s:`_${t}`)+(!o&&r?`_fb`:``)},o||(r?r():[]),o&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),a&&a._c&&(a._d=!0),c}function va(e){return e.some(e=>ys(e)?!(e.type===B||e.type===z&&!va(e.children)):!0)?e:null}function ya(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:j(r)]=e[r];return n}var ba=e=>e?Ws(e)?nc(e):ba(e.parent):null,xa=c(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ba(e.parent),$root:e=>ba(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ga(e),$forceUpdate:e=>e.f||=()=>{or(e.update)},$nextTick:e=>e.n||=ir.bind(e.proxy),$watch:e=>Pr.bind(e)}),Sa=(e,t)=>e!==n&&!e.__isScriptSetup&&d(e,t),Ca={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(t[0]!==`$`){let e=s[t];if(e!==void 0)switch(e){case 1:return i[t];case 2:return a[t];case 4:return r[t];case 3:return o[t]}else if(Sa(i,t))return s[t]=1,i[t];else if(a!==n&&d(a,t))return s[t]=2,a[t];else if(d(o,t))return s[t]=3,o[t];else if(r!==n&&d(r,t))return s[t]=4,r[t];else Ba&&(s[t]=0)}let u=xa[t],f,p;if(u)return t===`$attrs`&&_t(e.attrs,`get`,``),u(e);if((f=c.__cssModules)&&(f=f[t]))return f;if(r!==n&&d(r,t))return s[t]=4,r[t];if(p=l.config.globalProperties,d(p,t))return p[t]},set({_:e},t,r){let{data:i,setupState:a,ctx:o}=e;return Sa(a,t)?(a[t]=r,!0):i!==n&&d(i,t)?(i[t]=r,!0):d(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(o[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==n&&c[0]!==`$`&&d(e,c)||Sa(t,c)||d(o,c)||d(i,c)||d(xa,c)||d(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?d(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}},wa=c({},Ca,{get(e,t){if(t!==Symbol.unscopables)return Ca.get(e,t,e)},has(e,t){return t[0]!==`_`&&!de(t)}});function Ta(){return null}function Ea(){return null}function Da(e){}function Oa(e){}function ka(){return null}function Aa(){}function ja(e,t){return null}function Ma(){return Pa(`useSlots`).slots}function Na(){return Pa(`useAttrs`).attrs}function Pa(e){let t=zs();return t.setupContext||=tc(t)}function Fa(e){return f(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function Ia(e,t){let n=Fa(e);for(let e in t){if(e.startsWith(`__skip`))continue;let r=n[e];r?f(r)||_(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:r===null&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function La(e,t){return!e||!t?e||t:f(e)&&f(t)?e.concat(t):c({},Fa(e),Fa(t))}function Ra(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function za(e){let t=zs(),n=Gs,r=e();Us(),n&&Vs(!1);let i=()=>{Hs(t),n&&Vs(!0)},a=()=>{zs()!==t&&t.scope.off(),Us(),n&&Vs(!1)};return x(r)&&(r=r.catch(e=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(a)),e})),[r,()=>{i(),Promise.resolve().then(a)}]}var Ba=!0;function Va(e){let t=Ga(e),n=e.proxy,r=e.ctx;Ba=!1,t.beforeCreate&&Ua(t.beforeCreate,e,`bc`);let{data:a,computed:o,methods:s,watch:c,provide:l,inject:u,created:d,beforeMount:p,mounted:m,beforeUpdate:h,updated:g,activated:v,deactivated:y,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:w,render:T,renderTracked:E,renderTriggered:D,errorCaptured:ee,serverPrefetch:O,expose:te,inheritAttrs:k,components:ne,directives:A,filters:re}=t;if(u&&Ha(u,r,null),s)for(let e in s){let t=s[e];_(t)&&(r[e]=t.bind(n))}if(a){let t=a.call(n,n);b(t)&&(e.data=tn(t))}if(Ba=!0,o)for(let e in o){let t=o[e],a=ac({get:_(t)?t.bind(n,n):_(t.get)?t.get.bind(n,n):i,set:!_(t)&&_(t.set)?t.set.bind(n):i});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(let e in c)Wa(c[e],r,n,e);if(l){let e=_(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{wr(t,e[t])})}d&&Ua(d,e,`c`);function j(e,t){f(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(j(Zi,p),j(Qi,m),j($i,h),j(ea,g),j(Ui,v),j(Wi,y),j(oa,ee),j(aa,E),j(ia,D),j(ta,S),j(na,w),j(ra,O),f(te))if(te.length){let t=e.exposed||={};te.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};T&&e.render===i&&(e.render=T),k!=null&&(e.inheritAttrs=k),ne&&(e.components=ne),A&&(e.directives=A),O&&pi(e)}function Ha(e,t,n=i){f(e)&&(e=Xa(e));for(let n in e){let r=e[n],i;i=b(r)?`default`in r?Tr(r.from||n,r.default,!0):Tr(r.from||n):Tr(r),I(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Ua(e,t,n){Jn(f(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Wa(e,t,n,r){let i=r.includes(`.`)?Fr(n,r):()=>n[r];if(v(e)){let n=t[e];_(n)&&Mr(i,n)}else if(_(e))Mr(i,e.bind(n));else if(b(e))if(f(e))e.forEach(e=>Wa(e,t,n,r));else{let r=_(e.handler)?e.handler.bind(n):t[e.handler];_(r)&&Mr(i,r,e)}}function Ga(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Ka(c,e,o,!0)),Ka(c,t,o)),b(t)&&a.set(t,c),c}function Ka(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Ka(e,a,n,!0),i&&i.forEach(t=>Ka(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=qa[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var qa={data:Ja,props:$a,emits:$a,methods:Qa,computed:Qa,beforeCreate:Za,created:Za,beforeMount:Za,mounted:Za,beforeUpdate:Za,updated:Za,beforeDestroy:Za,beforeUnmount:Za,destroyed:Za,unmounted:Za,activated:Za,deactivated:Za,errorCaptured:Za,serverPrefetch:Za,components:Qa,directives:Qa,watch:eo,provide:Ja,inject:Ya};function Ja(e,t){return t?e?function(){return c(_(e)?e.call(this,this):e,_(t)?t.call(this,this):t)}:t:e}function Ya(e,t){return Qa(Xa(e),Xa(t))}function Xa(e){if(f(e)){let t={};for(let n=0;n{let l,u=n,d;return jr(()=>{let t=e[a];M(l,t)&&(l=t,c())}),{get(){return s(),r.get?r.get(l):l},set(e){let s=r.set?r.set(e):e;if(!M(s,l)&&!(u!==n&&M(e,u)))return;let f=i.vnode.props,p=!!(f&&(t in f||a in f||o in f)&&(`onUpdate:${t}`in f||`onUpdate:${a}`in f||`onUpdate:${o}`in f));p||(l=e,c()),i.emit(`update:${t}`,s),M(e,u)&&(M(e,s)&&!M(s,d)||p&&u!==n&&!M(s,l))&&c(),u=e,d=s}}});return c[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?s||n:c,done:!1}:{done:!0}}}},c}var oo=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${k(t)}Modifiers`]||e[`${A(t)}Modifiers`];function so(e,t,...r){if(e.isUnmounted)return;let i=e.vnode.props||n,a=r,o=t.startsWith(`update:`),s=o&&oo(i,t.slice(7));s&&(s.trim&&(a=r.map(e=>v(e)?e.trim():e)),s.number&&(a=r.map(oe)));let c,l=i[c=j(t)]||i[c=j(k(t))];!l&&o&&(l=i[c=j(A(t))]),l&&Jn(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Jn(u,e,6,a)}}var co=new WeakMap;function lo(e,t,n=!1){let r=n?co:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!_(e)){let r=e=>{let n=lo(e,t,!0);n&&(s=!0,c(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(b(e)&&r.set(e,null),null):(f(a)?a.forEach(e=>o[e]=null):c(o,a),b(e)&&r.set(e,o),o)}function uo(e,t){return!e||!o(t)?!1:(t=t.slice(2).replace(/Once$/,``),d(e,t[0].toLowerCase()+t.slice(1))||d(e,A(t))||d(e,t))}function fo(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=_r(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=js(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=js(e.length>1?e(f,{attrs:c,slots:o,emit:l}):e(f,null)),y=t.props?c:mo(c)}}catch(t){us.length=0,Yn(t,e,1),v=V(B)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(s)&&(y=ho(y,a)),b=Ds(b,y,!1,!0))}return n.dirs&&(b=Ds(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&li(b,n.transition),v=b,_r(_),v}function po(e,t=!0){let n;for(let t=0;t{let t;for(let n in e)(n===`class`||n===`style`||o(n))&&((t||={})[n]=e[n]);return t},ho=(e,t)=>{let n={};for(let r in e)(!s(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function go(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?_o(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;tObject.create(bo),So=e=>Object.getPrototypeOf(e)===bo;function Co(e,t,n,r=!1){let i={},a=xo();e.propsDefaults=Object.create(null),To(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:nn(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function wo(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=F(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r{p=!0;let[n,r]=Oo(e,t,!0);c(l,n),r&&u.push(...r)};!i&&t.mixins.length&&t.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}if(!s&&!p)return b(e)&&a.set(e,r),r;if(f(s))for(let e=0;ee===`_`||e===`_ctx`||e===`$stable`,jo=e=>f(e)?e.map(js):[js(e)],Mo=(e,t,n)=>{if(t._n)return t;let r=xr((...e)=>jo(t(...e)),n);return r._c=!1,r},No=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Ao(n))continue;let i=e[n];if(_(i))t[n]=Mo(n,i,r);else if(i!=null){let e=jo(i);t[n]=()=>e}}},Po=(e,t)=>{let n=jo(t);e.slots.default=()=>n},Fo=(e,t,n)=>{for(let r in t)(n||!Ao(r))&&(e[r]=t[r])},Io=(e,t,n)=>{let r=e.slots=xo();if(e.vnode.shapeFlag&32){let e=t._;e?(Fo(r,t,n),n&&ae(r,`_`,e,!0)):No(t,r)}else t&&Po(e,t)},Lo=(e,t,r)=>{let{vnode:i,slots:a}=e,o=!0,s=n;if(i.shapeFlag&32){let e=t._;e?r&&e===1?o=!1:Fo(a,t,r):(o=!t.$stable,No(t,a)),s=t}else t&&(Po(e,t),s={default:1});if(o)for(let e in a)!Ao(e)&&s[e]==null&&delete a[e]},R=as;function Ro(e){return Bo(e)}function zo(e){return Bo(e,Ti)}function Bo(e,t){let a=le();a.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=i,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!bs(e,t)&&(r=ge(e),de(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case cs:y(e,t,n,r);break;case B:b(e,t,n,r);break;case ls:e??x(t,n,r,o);break;case z:ne(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?A(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,ye)}u!=null&&i?_i(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&_i(e.ref,null,a,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)T(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),O(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},T=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&ee(e.children,d,null,r,i,Vo(e,a),s,u),_&&Cr(e,null,r,`created`),E(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!D(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&Fs(f,r,e)}_&&Cr(e,null,r,`beforeMount`);let v=Uo(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&R(()=>{try{f&&Fs(f,r,e),v&&g.enter(d),_&&Cr(e,null,r,`mounted`)}finally{}},i)},E=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t{for(let l=c;l{let l=t.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=e.patchFlag&16;let m=e.props||n,h=t.props||n,g;if(r&&Ho(r,!1),(g=h.onVnodeBeforeUpdate)&&Fs(g,r,t,e),f&&Cr(t,e,r,`beforeUpdate`),r&&Ho(r,!0),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?te(e.dynamicChildren,d,l,r,i,Vo(t,a),o):s||oe(e,t,l,null,r,i,Vo(t,a),o,!1),u>0){if(u&16)k(l,m,h,r,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=t.dynamicProps;for(let t=0;t{g&&Fs(g,r,t,e),f&&Cr(t,e,r,`updated`)},i)},te=(e,t,n,r,i,a,o)=>{for(let s=0;s{if(t!==r){if(t!==n)for(let n in t)!D(n)&&!(n in r)&&c(e,n,t[n],null,a,i);for(let n in r){if(D(n))continue;let o=r[n],s=t[n];o!==s&&n!==`value`&&c(e,n,s,o,a,i)}`value`in r&&c(e,`value`,t.value,r.value,a)}},ne=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),ee(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(te(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&Wo(e,t,!0)):oe(e,t,n,f,i,a,s,c,l)},A=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):re(t,n,r,i,a,o,c):j(e,t,c)},re=(e,t,n,r,i,a,o)=>{let s=e.component=Rs(e,r,i);if(Bi(e)&&(s.ctx.renderer=ye),Ks(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,M,o),!e.el){let r=s.subTree=V(B);b(null,r,t,n),e.placeholder=r.el}}else M(s,e,t,n,i,a,o)},j=(e,t,n)=>{let r=t.component=e.component;if(go(e,t,n))if(r.asyncDep&&!r.asyncResolved){ae(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},M=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=Ko(e);if(n){t&&(t.el=c.el,ae(e,t,o)),n.asyncDep.then(()=>{R(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Ho(e,!1),t?(t.el=c.el,ae(e,t,o)):t=c,n&&ie(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Fs(d,s,t,c),Ho(e,!0);let f=fo(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),ge(p),e,i,a),t.el=f.el,u===null&&yo(e,f.el),r&&R(r,i),(d=t.props&&t.props.onVnodeUpdated)&&R(()=>Fs(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Li(t);if(Ho(e,!1),l&&ie(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Fs(o,d,t),Ho(e,!0),s&&xe){let t=()=>{e.subTree=fo(e),xe(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=fo(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&R(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;R(()=>Fs(o,d,e),i)}(t.shapeFlag&256||d&&Li(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&R(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Ue(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>or(u),Ho(e,!0),l()},ae=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,wo(e,t.props,r,n),Lo(e,t.children,n),ot(),lr(e),st()},oe=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){ce(l,d,n,r,i,a,o,s,c);return}else if(f&256){se(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&he(l,i,a),d!==l&&p(n,d)):u&16?m&16?ce(l,d,n,r,i,a,o,s,c):he(l,i,a,!0):(u&8&&p(n,``),m&16&&ee(d,n,r,i,a,o,s,c))},se=(e,t,n,i,a,o,s,c,l)=>{e||=r,t||=r;let u=e.length,d=t.length,f=Math.min(u,d),p;for(p=0;pd?he(e,a,o,!0,!1,f):ee(t,n,i,a,o,s,c,l,f)},ce=(e,t,n,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let r=e[u],i=t[u]=l?Ms(t[u]):js(t[u]);if(bs(r,i))v(r,i,n,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let r=e[f],i=t[p]=l?Ms(t[p]):js(t[p]);if(bs(r,i))v(r,i,n,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,r=ep)for(;u<=f;)de(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?Ms(t[u]):js(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u=b){de(r,a,o,!0);continue}let i;if(r.key!=null)i=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&bs(r,t[_])){i=_;break}i===void 0?de(r,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(r,t[i],n,null,a,o,s,c,l),y++)}let w=x?Go(C):r;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,r=t[e],f=t[e+1],p=e+1{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){ue(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,ye);return}if(c===z){o(a,t,n);for(let e=0;el.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[Xr];a._isLeaving&&a[Xr](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}else o(a,t,n)},de=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(ot(),_i(s,null,n,e,!0),st()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Li(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Fs(_,t,e),u&6)me(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Cr(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,ye,r):l&&!l.hasOnce&&(a!==z||d>0&&d&64)?he(l,t,n,!1,!0):(a===z&&d&384||!i&&u&16)&&he(c,t,n),r&&fe(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&R(()=>{_&&Fs(_,t,e),h&&Cr(e,null,t,`unmounted`),v&&(e.el=null)},n)},fe=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===z){pe(n,r);return}if(t===ls){C(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},pe=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},me=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;qo(c),qo(l),r&&ie(r),i.stop(),a&&(a.flags|=8,de(o,e,t,n)),s&&R(s,t),R(()=>{e.isUnmounted=!0},t)},he=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o{if(e.shapeFlag&6)return ge(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Lr];return n?h(n):t},_e=!1,ve=(e,t,n)=>{let r;e==null?t._vnode&&(de(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,_e||=(_e=!0,lr(r),ur(),!1)},ye={p:v,um:de,m:ue,r:fe,mt:re,mc:ee,pc:oe,pbc:te,n:ge,o:e},be,xe;return t&&([be,xe]=t(ye)),{render:ve,hydrate:be,createApp:ro(ve,be)}}function Vo({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function Ho({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Uo(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Wo(e,t,n=!1){let r=e.children,i=t.children;if(f(r)&&f(i))for(let e=0;e>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function Ko(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ko(t)}function qo(e){if(e)for(let t=0;te.__isSuspense,Xo=0,Zo={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)$o(t,n,r,i,a,o,s,c,l);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}es(e,t,n,r,i,o,s,c,l)}},hydrate:ns,normalize:rs};function Qo(e,t){let n=e.props&&e.props[t];_(n)&&n()}function $o(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=ts(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(Qo(e,`onPending`),Qo(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),os(f,e.ssFallback)):f.resolve(!1,!0)}function es(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,bs(h,f)?(c(h,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():g&&(_||(c(m,p,n,r,i,null,a,o,s),os(d,p)))):(d.pendingId=Xo++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():(c(m,p,n,r,i,null,a,o,s),os(d,p))):m&&bs(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0)):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&bs(m,f))c(m,f,n,r,i,d,a,o,s),os(d,f);else if(Qo(t,`onPending`),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=Xo++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):e===0&&d.fallback(p)}}function ts(e,t,n,r,i,a,o,s,c,l,u=!1){let{p:d,m:f,um:p,n:m,o:{parentNode:h,remove:g}}=l,_,v=ss(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?se(e.props.timeout):void 0,b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:Xo++,timeout:typeof y==`number`?y:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:o,pendingId:s,effects:c,parentComponent:l,container:u,isInFallback:d}=x,g=!1;if(x.isHydrating)x.isHydrating=!1;else if(!e){g=i&&o.transition&&o.transition.mode===`out-in`;let e=!1;g&&(i.transition.afterLeave=()=>{s===x.pendingId&&(f(o,u,a===b&&!e?m(i):a,0),cr(c),d&&r.ssFallback&&(r.ssFallback.el=null))}),i&&!x.isFallbackMountPending&&(h(i.el)===u&&(a=m(i),e=!0),p(i,l,x,!0),!g&&d&&r.ssFallback&&R(()=>r.ssFallback.el=null,x)),g||f(o,u,a,0)}x.isFallbackMountPending=!1,os(x,o),x.pendingBranch=null,x.isInFallback=!1;let y=x.parent,S=!1;for(;y;){if(y.pendingBranch){y.effects.push(...c),S=!0;break}y=y.parent}!S&&!g&&cr(c),x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!n&&t.resolve()),Qo(r,`onResolve`)},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;Qo(t,`onFallback`);let o=m(n),l=()=>{x.isFallbackMountPending=!1,x.isInFallback&&(d(null,e,i,o,r,null,a,s,c),os(x,e))},u=e.transition&&e.transition.mode===`out-in`;u&&(x.isFallbackMountPending=!0,n.transition.afterLeave=l),x.isInFallback=!0,p(n,r,null,!0),u||l()},move(e,t,n){x.activeBranch&&f(x.activeBranch,e,t,n),x.container=e},next(){return x.activeBranch&&m(x.activeBranch)},registerDep(e,t,n){let r=!!x.pendingBranch;r&&x.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{Yn(t,e,0)}).then(a=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;Us(),e.asyncResolved=!0;let{vnode:s}=e;Js(e,a,!1),i&&(s.el=i);let c=!i&&e.subTree.el;t(e,s,h(i||e.subTree.el),i?null:m(e.subTree),x,o,n),c&&(s.placeholder=null,g(c)),yo(e,s.el),r&&--x.deps===0&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&p(x.activeBranch,n,e,t),x.pendingBranch&&p(x.pendingBranch,n,e,t)}};return x}function ns(e,t,n,r,i,a,o,s,c){let l=t.suspense=ts(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function rs(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=is(r?n.default:n),e.ssFallback=r?is(n.fallback):V(B)}function is(e){let t;if(_(e)){let n=ms&&e._c;n&&(e._d=!1,fs()),e=e(),n&&(e._d=!0,t=ds,ps())}return f(e)&&(e=po(e)),e=js(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function as(e,t){t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):cr(e)}function os(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,yo(r,i))}function ss(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var z=Symbol.for(`v-fgt`),cs=Symbol.for(`v-txt`),B=Symbol.for(`v-cmt`),ls=Symbol.for(`v-stc`),us=[],ds=null;function fs(e=!1){us.push(ds=e?null:[])}function ps(){us.pop(),ds=us[us.length-1]||null}var ms=1;function hs(e,t=!1){ms+=e,e<0&&ds&&t&&(ds.hasOnce=!0)}function gs(e){return e.dynamicChildren=ms>0?ds||r:null,ps(),ms>0&&ds&&ds.push(e),e}function _s(e,t,n,r,i,a){return gs(ws(e,t,n,r,i,a,!0))}function vs(e,t,n,r,i){return gs(V(e,t,n,r,i,!0))}function ys(e){return e?e.__v_isVNode===!0:!1}function bs(e,t){return e.type===t.type&&e.key===t.key}function xs(e){}var Ss=({key:e})=>e??null,Cs=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:v(e)||I(e)||_(e)?{i:L,r:e,k:t,f:!!n}:e);function ws(e,t=null,n=null,r=0,i=null,a=e===z?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ss(t),ref:t&&Cs(t),scopeId:gr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:L};return s?(Ns(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=v(n)?8:16),ms>0&&!o&&ds&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&ds.push(c),c}var V=Ts;function Ts(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===ua)&&(e=B),ys(e)){let r=Ds(e,t,!0);return n&&Ns(r,n),ms>0&&!a&&ds&&(r.shapeFlag&6?ds[ds.indexOf(e)]=r:ds.push(r)),r.patchFlag=-2,r}if(ic(e)&&(e=e.__vccOpts),t){t=Es(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=_e(e)),b(n)&&(un(n)&&!f(n)&&(n=c({},n)),t.style=fe(n))}let o=v(e)?1:Yo(e)?128:Rr(e)?64:b(e)?4:_(e)?2:0;return ws(e,t,n,r,i,o,a,!0)}function Es(e){return e?un(e)||So(e)?c({},e):e:null}function Ds(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Ps(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Ss(l),ref:t&&t.ref?n&&a?f(a)?a.concat(Cs(t)):[a,Cs(t)]:Cs(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==z?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ds(e.ssContent),ssFallback:e.ssFallback&&Ds(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&li(u,c.clone(u)),u}function Os(e=` `,t=0){return V(cs,null,e,t)}function ks(e,t){let n=V(ls,null,e);return n.staticCount=t,n}function As(e=``,t=!1){return t?(fs(),vs(B,null,e)):V(B,null,e)}function js(e){return e==null||typeof e==`boolean`?V(B):f(e)?V(z,null,e.slice()):ys(e)?Ms(e):V(cs,null,String(e))}function Ms(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ds(e)}function Ns(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(f(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Ns(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!So(t)?t._ctx=L:r===3&&L&&(L.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else _(t)?(t={default:t,_ctx:L},n=32):(t=String(t),r&64?(n=16,t=[Os(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ps(...e){let t={};for(let n=0;nH||L,Bs,Vs;{let e=le(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Bs=t(`__VUE_INSTANCE_SETTERS__`,e=>H=e),Vs=t(`__VUE_SSR_SETTERS__`,e=>Gs=e)}var Hs=e=>{let t=H;return Bs(e),e.scope.on(),()=>{e.scope.off(),Bs(t)}},Us=()=>{H&&H.scope.off(),Bs(null)};function Ws(e){return e.vnode.shapeFlag&4}var Gs=!1;function Ks(e,t=!1,n=!1){t&&Vs(t);let{props:r,children:i}=e.vnode,a=Ws(e);Co(e,r,a,t),Io(e,i,n||t);let o=a?qs(e,t):void 0;return t&&Vs(!1),o}function qs(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ca);let{setup:r}=n;if(r){ot();let n=e.setupContext=r.length>1?tc(e):null,i=Hs(e),a=qn(r,e,0,[e.props,n]),o=x(a);if(st(),i(),(o||e.sp)&&!Li(e)&&pi(e),o){if(a.then(Us,Us),t)return a.then(n=>{Js(e,n,t)}).catch(t=>{Yn(t,e,0)});e.asyncDep=a}else Js(e,a,t)}else $s(e,t)}function Js(e,t,n){_(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)&&(e.setupState=Sn(t)),$s(e,n)}var Ys,Xs;function Zs(e){Ys=e,Xs=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,wa))}}var Qs=()=>!Ys;function $s(e,t,n){let r=e.type;if(!e.render){if(!t&&Ys&&!r.render){let t=r.template||Ga(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r,s=c(c({isCustomElement:n,delimiters:a},i),o);r.render=Ys(t,s)}}e.render=r.render||i,Xs&&Xs(e)}{let t=Hs(e);ot();try{Va(e)}finally{st(),t()}}}var ec={get(e,t){return _t(e,`get`,``),e[t]}};function tc(e){return{attrs:new Proxy(e.attrs,ec),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function nc(e){return e.exposed?e.exposeProxy||=new Proxy(Sn(dn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in xa)return xa[n](e)},has(e,t){return t in e||t in xa}}):e.proxy}function rc(e,t=!0){return _(e)?e.displayName||e.name:e.name||t&&e.__name}function ic(e){return _(e)&&`__vccOpts`in e}var ac=(e,t)=>jn(e,t,Gs);function oc(e,t,n){try{hs(-1);let r=arguments.length;return r===2?b(t)&&!f(t)?ys(t)?V(e,null,[t]):V(e,t):V(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ys(n)&&(n=[n]),V(e,t,n))}finally{hs(1)}}function sc(){return;function e(t,n,r){let i=t[r];if(f(i)&&i.includes(n)||b(i)&&n in i||t.extends&&e(t.extends,n,r)||t.mixins&&t.mixins.some(t=>e(t,n,r)))return!0}}function cc(e,t,n,r){let i=n[r];if(i&&lc(i,e))return i;let a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function lc(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&ds&&ds.push(e),!0}var uc=`3.5.38`,dc=i,fc=Kn,pc=pr,mc=hr,hc={createComponentInstance:Rs,setupComponent:Ks,renderComponentRoot:fo,setCurrentRenderingInstance:_r,isVNode:ys,normalizeVNode:js,getComponentPublicInstance:nc,ensureValidVNode:va,pushWarningContext:Hn,popWarningContext:Un},gc=e({BaseTransition:()=>ii,BaseTransitionPropsValidators:()=>ei,Comment:()=>B,DeprecationTypes:()=>null,EffectScope:()=>Re,ErrorCodes:()=>Gn,ErrorTypeStrings:()=>fc,Fragment:()=>z,KeepAlive:()=>Vi,ReactiveEffect:()=>Ue,Static:()=>ls,Suspense:()=>Zo,Teleport:()=>qr,Text:()=>cs,TrackOpTypes:()=>Mn,Transition:()=>Ac,TransitionGroup:()=>Rl,TriggerOpTypes:()=>Nn,VueElement:()=>Al,assertNumber:()=>Wn,callWithAsyncErrorHandling:()=>Jn,callWithErrorHandling:()=>qn,camelize:()=>k,capitalize:()=>re,cloneVNode:()=>Ds,compatUtils:()=>null,computed:()=>ac,createApp:()=>yu,createBlock:()=>vs,createCommentVNode:()=>As,createElementBlock:()=>_s,createElementVNode:()=>ws,createHydrationRenderer:()=>zo,createPropsRestProxy:()=>Ra,createRenderer:()=>Ro,createSSRApp:()=>bu,createSlots:()=>ga,createStaticVNode:()=>ks,createTextVNode:()=>Os,createVNode:()=>V,customRef:()=>wn,defineAsyncComponent:()=>Ri,defineComponent:()=>di,defineCustomElement:()=>Dl,defineEmits:()=>Ea,defineExpose:()=>Da,defineModel:()=>Aa,defineOptions:()=>Oa,defineProps:()=>Ta,defineSSRCustomElement:()=>Ol,defineSlots:()=>ka,devtools:()=>pc,effect:()=>nt,effectScope:()=>ze,getCurrentInstance:()=>zs,getCurrentScope:()=>Be,getCurrentWatcher:()=>Ln,getTransitionRawChildren:()=>ui,guardReactiveProps:()=>Es,h:()=>oc,handleError:()=>Yn,hasInjectionContext:()=>Er,hydrate:()=>vu,hydrateOnIdle:()=>ji,hydrateOnInteraction:()=>Fi,hydrateOnMediaQuery:()=>Pi,hydrateOnVisible:()=>Ni,initCustomFormatter:()=>sc,initDirectivesForSSR:()=>wu,inject:()=>Tr,isMemoSame:()=>lc,isProxy:()=>un,isReactive:()=>sn,isReadonly:()=>cn,isRef:()=>I,isRuntimeOnly:()=>Qs,isShallow:()=>ln,isVNode:()=>ys,markRaw:()=>dn,mergeDefaults:()=>Ia,mergeModels:()=>La,mergeProps:()=>Ps,nextTick:()=>ir,nodeOps:()=>wc,normalizeClass:()=>_e,normalizeProps:()=>ve,normalizeStyle:()=>fe,onActivated:()=>Ui,onBeforeMount:()=>Zi,onBeforeUnmount:()=>ta,onBeforeUpdate:()=>$i,onDeactivated:()=>Wi,onErrorCaptured:()=>oa,onMounted:()=>Qi,onRenderTracked:()=>aa,onRenderTriggered:()=>ia,onScopeDispose:()=>Ve,onServerPrefetch:()=>ra,onUnmounted:()=>na,onUpdated:()=>ea,onWatcherCleanup:()=>Rn,openBlock:()=>fs,patchProp:()=>Cl,popScopeId:()=>yr,provide:()=>wr,proxyRefs:()=>Sn,pushScopeId:()=>vr,queuePostFlushCb:()=>cr,reactive:()=>tn,readonly:()=>rn,ref:()=>mn,registerRuntimeCompiler:()=>Zs,render:()=>_u,renderList:()=>ha,renderSlot:()=>_a,resolveComponent:()=>la,resolveDirective:()=>fa,resolveDynamicComponent:()=>da,resolveFilter:()=>null,resolveTransitionHooks:()=>oi,setBlockTracking:()=>hs,setDevtoolsHook:()=>mc,setTransitionHooks:()=>li,shallowReactive:()=>nn,shallowReadonly:()=>an,shallowRef:()=>hn,ssrContextKey:()=>Dr,ssrUtils:()=>hc,stop:()=>rt,toDisplayString:()=>Pe,toHandlerKey:()=>j,toHandlers:()=>ya,toRaw:()=>F,toRef:()=>On,toRefs:()=>Tn,toValue:()=>bn,transformVNodeArgs:()=>xs,triggerRef:()=>vn,unref:()=>yn,useAttrs:()=>Na,useCssModule:()=>Nl,useCssVars:()=>Qc,useHost:()=>jl,useId:()=>fi,useModel:()=>ao,useSSRContext:()=>Or,useShadowRoot:()=>Ml,useSlots:()=>Ma,useTemplateRef:()=>mi,useTransitionState:()=>Qr,vModelCheckbox:()=>Xl,vModelDynamic:()=>ru,vModelRadio:()=>Ql,vModelSelect:()=>$l,vModelText:()=>Yl,vShow:()=>Jc,version:()=>uc,warn:()=>dc,watch:()=>Mr,watchEffect:()=>kr,watchPostEffect:()=>Ar,watchSyncEffect:()=>jr,withAsyncContext:()=>za,withCtx:()=>xr,withDefaults:()=>ja,withDirectives:()=>Sr,withKeys:()=>du,withMemo:()=>cc,withModifiers:()=>lu,withScopeId:()=>br}),_c=void 0,vc=typeof window<`u`&&window.trustedTypes;if(vc)try{_c=vc.createPolicy(`vue`,{createHTML:e=>e})}catch{}var yc=_c?e=>_c.createHTML(e):e=>e,bc=`http://www.w3.org/2000/svg`,xc=`http://www.w3.org/1998/Math/MathML`,Sc=typeof document<`u`?document:null,Cc=Sc&&Sc.createElement(`template`),wc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?Sc.createElementNS(bc,e):t===`mathml`?Sc.createElementNS(xc,e):n?Sc.createElement(e,{is:n}):Sc.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Sc.createTextNode(e),createComment:e=>Sc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Sc.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{Cc.innerHTML=yc(r===`svg`?`${e}`:r===`mathml`?`${e}`:e);let i=Cc.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Tc=`transition`,Ec=`animation`,Dc=Symbol(`_vtc`),Oc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},kc=c({},ei,Oc),Ac=(e=>(e.displayName=`Transition`,e.props=kc,e))((e,{slots:t})=>oc(ii,Nc(e),t)),jc=(e,t=[])=>{f(e)?e.forEach(e=>e(...t)):e&&e(...t)},Mc=e=>e?f(e)?e.some(e=>e.length>1):e.length>1:!1;function Nc(e){let t={};for(let n in e)n in Oc||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:d=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=Pc(i),g=h&&h[0],_=h&&h[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:w=y,onAppearCancelled:T=b}=t,E=(e,t,n,r)=>{e._enterCancelled=r,Lc(e,t?d:s),Lc(e,t?u:o),n&&n()},D=(e,t)=>{e._isLeaving=!1,Lc(e,f),Lc(e,m),Lc(e,p),t&&t()},ee=e=>(t,n)=>{let i=e?w:y,o=()=>E(t,e,n);jc(i,[t,o]),Rc(()=>{Lc(t,e?l:a),Ic(t,e?d:s),Mc(i)||Bc(t,r,g,o)})};return c(t,{onBeforeEnter(e){jc(v,[e]),Ic(e,a),Ic(e,o)},onBeforeAppear(e){jc(C,[e]),Ic(e,l),Ic(e,u)},onEnter:ee(!1),onAppear:ee(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>D(e,t);Ic(e,f),e._enterCancelled?(Ic(e,p),Wc(e)):(Wc(e),Ic(e,p)),Rc(()=>{e._isLeaving&&(Lc(e,f),Ic(e,m),Mc(x)||Bc(e,r,_,n))}),jc(x,[e,n])},onEnterCancelled(e){E(e,!1,void 0,!0),jc(b,[e])},onAppearCancelled(e){E(e,!0,void 0,!0),jc(T,[e])},onLeaveCancelled(e){D(e),jc(S,[e])}})}function Pc(e){if(e==null)return null;if(b(e))return[Fc(e.enter),Fc(e.leave)];{let t=Fc(e);return[t,t]}}function Fc(e){return se(e)}function Ic(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Dc]||(e[Dc]=new Set)).add(t)}function Lc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[Dc];n&&(n.delete(t),n.size||(e[Dc]=void 0))}function Rc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var zc=0;function Bc(e,t,n,r){let i=e._endId=++zc,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Vc(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u(n[e]||``).split(`, `),i=r(`${Tc}Delay`),a=r(`${Tc}Duration`),o=Hc(i,a),s=r(`${Ec}Delay`),c=r(`${Ec}Duration`),l=Hc(s,c),u=null,d=0,f=0;t===Tc?o>0&&(u=Tc,d=o,f=a.length):t===Ec?l>0&&(u=Ec,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?Tc:Ec:null,f=u?u===Tc?a.length:c.length:0);let p=u===Tc&&/\b(?:transform|all)(?:,|$)/.test(r(`${Tc}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Hc(e,t){for(;e.lengthUc(t)+Uc(e[n])))}function Uc(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Wc(e){return(e?e.ownerDocument:document).body.offsetHeight}function Gc(e,t,n){let r=e[Dc];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Kc=Symbol(`_vod`),qc=Symbol(`_vsh`),Jc={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Kc]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):Yc(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Yc(e,!0),r.enter(e)):r.leave(e,()=>{Yc(e,!1)}):Yc(e,t))},beforeUnmount(e,{value:t}){Yc(e,t)}};function Yc(e,t){e.style.display=t?e[Kc]:`none`,e[qc]=!t}function Xc(){Jc.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}var Zc=Symbol(``);function Qc(e){let t=zs();if(!t)return;let n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>el(e,n))},r=()=>{let r=e(t.proxy);t.ce?el(t.ce,r):$c(t.subTree,r),n(r)};$i(()=>{cr(r)}),Qi(()=>{Mr(r,i,{flush:`post`});let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),na(()=>e.disconnect())})}function $c(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{$c(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)el(e.el,t);else if(e.type===z)e.children.forEach(e=>$c(e,t));else if(e.type===ls){let{el:n,anchor:r}=e;for(;n&&(el(n,t),n!==r);)n=n.nextSibling}}function el(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=Le(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[Zc]=r}}var tl=/(?:^|;)\s*display\s*:/;function nl(e,t,n){let r=e.style,i=v(n),a=!1;if(n&&!i){if(t)if(v(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??il(r,t,``)}else for(let e in t)n[e]??il(r,e,``);for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?il(r,i,``):cl(e,i,!v(t)&&t?t[i]:void 0,o)||il(r,i,o)}}else if(i){if(t!==n){let e=r[Zc];e&&(n+=`;`+e),r.cssText=n,a=tl.test(n)}}else t&&e.removeAttribute(`style`);Kc in e&&(e[Kc]=a?r.display:``,e[qc]&&(r.display=`none`))}var rl=/\s*!important$/;function il(e,t,n){if(f(n))n.forEach(n=>il(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=sl(e,t);rl.test(n)?e.setProperty(A(r),n.replace(rl,``),`important`):e[r]=n}}var al=[`Webkit`,`Moz`,`ms`],ol={};function sl(e,t){let n=ol[t];if(n)return n;let r=k(t);if(r!==`filter`&&r in e)return ol[t]=r;r=re(r);for(let n=0;nvl||=(yl.then(()=>vl=0),Date.now());function xl(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(f(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;ne.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Cl=(e,t,n,r,i,a)=>{let c=i===`svg`;t===`class`?Gc(e,r,c):t===`style`?nl(e,n,r):o(t)?s(t)||hl(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):wl(e,t,r,c))?(dl(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&ul(e,t,r,c,a,t!==`value`)):e._isVueCE&&(Tl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!v(r)))?dl(e,k(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),ul(e,t,r,c))};function wl(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Sl(t)&&_(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return Sl(t)&&v(n)?!1:t in e}function Tl(e,t){let n=e._def.props;if(!n)return!1;let r=k(t);return Array.isArray(n)?n.some(e=>k(e)===r):Object.keys(n).some(e=>k(e)===r)}var El={};function Dl(e,t,n){let r=di(e,t);T(r)&&(r=c({},r,t));class i extends Al{constructor(e){super(r,e,n)}}return i.def=r,i}var Ol=((e,t)=>Dl(e,t,bu)),kl=typeof HTMLElement<`u`?HTMLElement:class{},Al=class e extends kl{constructor(e,t={},n=yu){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==yu?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow(c({},e.shadowRootOptions,{mode:`open`})),this._root=this.shadowRoot)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.assignedSlot||t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,ir(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&=(this._teleportTargets.clear(),void 0))})}_processMutations(e){for(let t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let e=0;e{this._resolved=!0,this._pendingResolve=void 0;let{props:n,styles:r}=e,i;if(n&&!f(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=se(this._props[e])),(i||=Object.create(null))[k(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let t=this._instance&&this._instance.exposed;if(t)for(let e in t)d(this,e)||Object.defineProperty(this,e,{get:()=>yn(t[e])})}_resolveProps(e){let{props:t}=e,n=f(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&n.includes(e)&&this._setProp(e,this[e]);for(let e of n.map(k))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),n=t?this.getAttribute(e):El,r=k(e);t&&this._numberProps&&this._numberProps[r]&&(n=se(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===El?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){let n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),t===!0?this.setAttribute(A(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(A(e),t+``):t||this.removeAttribute(A(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),_u(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=V(this._def,c(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,T(t[0])?c({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),A(e)!==e&&t(A(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let r=this._nonce,i=this.shadowRoot,a=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i),o=null;for(let s=e.length-1;s>=0;s--){let c=document.createElement(`style`);r&&c.setAttribute(`nonce`,r),c.textContent=e[s],i.insertBefore(c,o||a),o=c,s===0&&(n||this._styleAnchors.set(this._def,c),t&&this._styleAnchors.set(t,c))}}_getStyleAnchor(e){if(!e)return null;let t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t(delete e.props.mode,e))({name:`TransitionGroup`,props:c({},kc,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=zs(),r=Qr(),i,a;return ea(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!Ul(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(zl),i.forEach(Bl);let r=i.filter(Vl);Wc(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;Ic(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[Il]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[Il]=null,Lc(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let o=F(e),s=Nc(o),c=o.tag||z;if(i=[],a)for(let e=0;e{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=Vc(r);return a.removeChild(r),o}var Wl=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return f(t)?e=>ie(t,e):t};function Gl(e){e.target.composing=!0}function Kl(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var ql=Symbol(`_assign`);function Jl(e,t,n){return t&&(e=e.trim()),n&&(e=oe(e)),e}var Yl={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[ql]=Wl(i);let a=r||i.props&&i.props.type===`number`;fl(e,t?`change`:`input`,t=>{t.target.composing||e[ql](Jl(e.value,n,a))}),(n||a)&&fl(e,`change`,()=>{e.value=Jl(e.value,n,a)}),t||(fl(e,`compositionstart`,Gl),fl(e,`compositionend`,Kl),fl(e,`change`,Kl))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[ql]=Wl(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?oe(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},Xl={deep:!0,created(e,t,n){e[ql]=Wl(n),fl(e,`change`,()=>{let t=e._modelValue,n=tu(e),r=e.checked,i=e[ql];if(f(t)){let e=Me(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(m(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(nu(e,r))})},mounted:Zl,beforeUpdate(e,t,n){e[ql]=Wl(n),Zl(e,t,n)}};function Zl(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(f(t))i=Me(t,r.props.value)>-1;else if(m(t))i=t.has(r.props.value);else{if(t===n)return;i=je(t,nu(e,!0))}e.checked!==i&&(e.checked=i)}var Ql={created(e,{value:t},n){e.checked=je(t,n.props.value),e[ql]=Wl(n),fl(e,`change`,()=>{e[ql](tu(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[ql]=Wl(r),t!==n&&(e.checked=je(t,r.props.value))}},$l={deep:!0,created(e,{value:t,modifiers:{number:n}},r){let i=m(t);fl(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?oe(tu(e)):tu(e));e[ql](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,ir(()=>{e._assigning=!1})}),e[ql]=Wl(r)},mounted(e,{value:t}){eu(e,t)},beforeUpdate(e,t,n){e[ql]=Wl(n)},updated(e,{value:t}){e._assigning||eu(e,t)}};function eu(e,t){let n=e.multiple,r=f(t);if(!(n&&!r&&!m(t))){for(let i=0,a=e.options.length;iString(e)===String(o)):a.selected=Me(t,o)>-1}else a.selected=t.has(o);else if(je(tu(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function tu(e){return`_value`in e?e._value:e.value}function nu(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var ru={created(e,t,n){au(e,t,n,null,`created`)},mounted(e,t,n){au(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){au(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){au(e,t,n,r,`updated`)}};function iu(e,t){switch(e){case`SELECT`:return $l;case`TEXTAREA`:return Yl;default:switch(t){case`checkbox`:return Xl;case`radio`:return Ql;default:return Yl}}}function au(e,t,n,r,i){let a=iu(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function ou(){Yl.getSSRProps=({value:e})=>({value:e}),Ql.getSSRProps=({value:e},t)=>{if(t.props&&je(t.props.value,e))return{checked:!0}},Xl.getSSRProps=({value:e},t)=>{if(f(e)){if(t.props&&Me(e,t.props.value)>-1)return{checked:!0}}else if(m(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},ru.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=iu(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var su=[`ctrl`,`shift`,`alt`,`meta`],cu={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>su.some(n=>e[`${n}Key`]&&!t.includes(n))},lu=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=A(n.key);if(t.some(e=>e===r||uu[e]===r))return e(n)}))},fu=c({patchProp:Cl},wc),pu,mu=!1;function hu(){return pu||=Ro(fu)}function gu(){return pu=mu?pu:zo(fu),mu=!0,pu}var _u=((...e)=>{hu().render(...e)}),vu=((...e)=>{gu().hydrate(...e)}),yu=((...e)=>{let t=hu().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Su(e);if(!r)return;let i=t._component;!_(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,xu(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),bu=((...e)=>{let t=gu().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=Su(e);if(t)return n(t,!0,xu(t))},t});function xu(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Su(e){return v(e)?document.querySelector(e):e}var Cu=!1,wu=()=>{Cu||(Cu=!0,ou(),Xc())},Tu=Symbol(``),Eu=Symbol(``),Du=Symbol(``),Ou=Symbol(``),ku=Symbol(``),Au=Symbol(``),ju=Symbol(``),Mu=Symbol(``),Nu=Symbol(``),Pu=Symbol(``),Fu=Symbol(``),Iu=Symbol(``),Lu=Symbol(``),Ru=Symbol(``),zu=Symbol(``),Bu=Symbol(``),Vu=Symbol(``),Hu=Symbol(``),Uu=Symbol(``),Wu=Symbol(``),Gu=Symbol(``),Ku=Symbol(``),qu=Symbol(``),Ju=Symbol(``),Yu=Symbol(``),Xu=Symbol(``),Zu=Symbol(``),Qu=Symbol(``),$u=Symbol(``),ed=Symbol(``),td=Symbol(``),nd=Symbol(``),rd=Symbol(``),id=Symbol(``),ad=Symbol(``),od=Symbol(``),sd=Symbol(``),cd=Symbol(``),ld=Symbol(``),ud={[Tu]:`Fragment`,[Eu]:`Teleport`,[Du]:`Suspense`,[Ou]:`KeepAlive`,[ku]:`BaseTransition`,[Au]:`openBlock`,[ju]:`createBlock`,[Mu]:`createElementBlock`,[Nu]:`createVNode`,[Pu]:`createElementVNode`,[Fu]:`createCommentVNode`,[Iu]:`createTextVNode`,[Lu]:`createStaticVNode`,[Ru]:`resolveComponent`,[zu]:`resolveDynamicComponent`,[Bu]:`resolveDirective`,[Vu]:`resolveFilter`,[Hu]:`withDirectives`,[Uu]:`renderList`,[Wu]:`renderSlot`,[Gu]:`createSlots`,[Ku]:`toDisplayString`,[qu]:`mergeProps`,[Ju]:`normalizeClass`,[Yu]:`normalizeStyle`,[Xu]:`normalizeProps`,[Zu]:`guardReactiveProps`,[Qu]:`toHandlers`,[$u]:`camelize`,[ed]:`capitalize`,[td]:`toHandlerKey`,[nd]:`setBlockTracking`,[rd]:`pushScopeId`,[id]:`popScopeId`,[ad]:`withCtx`,[od]:`unref`,[sd]:`isRef`,[cd]:`withMemo`,[ld]:`isMemoSame`};function dd(e){Object.getOwnPropertySymbols(e).forEach(t=>{ud[t]=e[t]})}var fd={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:``};function pd(e,t=``){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:fd}}function md(e,t,n,r,i,a,o,s=!1,c=!1,l=!1,u=fd){return e&&(s?(e.helper(Au),e.helper(Cd(e.inSSR,l))):e.helper(Sd(e.inSSR,l)),o&&e.helper(Hu)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:a,directives:o,isBlock:s,disableTracking:c,isComponent:l,loc:u}}function hd(e,t=fd){return{type:17,loc:t,elements:e}}function gd(e,t=fd){return{type:15,loc:t,properties:e}}function U(e,t){return{type:16,loc:fd,key:v(e)?W(e,!0):e,value:t}}function W(e,t=!1,n=fd,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function _d(e,t=fd){return{type:8,loc:t,children:e}}function G(e,t=[],n=fd){return{type:14,loc:n,callee:e,arguments:t}}function vd(e,t=void 0,n=!1,r=!1,i=fd){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function yd(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:fd}}function bd(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:fd}}function xd(e){return{type:21,body:e,loc:fd}}function Sd(e,t){return e||t?Nu:Pu}function Cd(e,t){return e||t?ju:Mu}function wd(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Sd(r,e.isComponent)),t(Au),t(Cd(r,e.isComponent)))}var Td=new Uint8Array([123,123]),Ed=new Uint8Array([125,125]);function Dd(e){return e>=97&&e<=122||e>=65&&e<=90}function Od(e){return e===32||e===10||e===9||e===12||e===13}function kd(e){return e===47||e===62||Od(e)}function Ad(e){let t=new Uint8Array(e.length);for(let n=0;n100){let t=-1,n=r;for(;t+1>>1;this.newlines[r]=0;t--)if(e>this.newlines[t]){i=t;break}return i>=0&&(t=i+2,n=e-this.newlines[i]),{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){e===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){let e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){let t=this.sequenceIndex===this.currentSequence.length;if(!(t?kd(e):(e|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!t){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(e===62||Od(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart=e||(this.state===28?this.currentSequence===jd.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}};function Nd(e,{compatConfig:t}){let n=t&&t[e];return e===`MODE`?n||3:n}function Pd(e,t){let n=Nd(`MODE`,t),r=Nd(e,t);return n===3?r===!0:r!==!1}function Fd(e,t,n,...r){return Pd(e,t)}function Id(e){throw e}function Ld(e){}function K(e,t,n,r){let i=`https://vuejs.org/error-reference/#compiler-${e}`,a=SyntaxError(String(i));return a.code=e,a.loc=t,a}var Rd=e=>e.type===4&&e.isStatic;function zd(e){switch(e){case`Teleport`:case`teleport`:return Eu;case`Suspense`:case`suspense`:return Du;case`KeepAlive`:case`keep-alive`:return Ou;case`BaseTransition`:case`base-transition`:return ku}}var Bd=/^$|^\d|[^\$\w\xA0-\uFFFF]/,Vd=e=>!Bd.test(e),Hd=/[A-Za-z_$\xA0-\uFFFF]/,Ud=/[\.\?\w$\xA0-\uFFFF]/,Wd=/\s+[.[]\s*|\s*[.[]\s+/g,Gd=e=>e.type===4?e.content:e.loc.source,Kd=e=>{let t=Gd(e).trim().replace(Wd,e=>e.trim()),n=0,r=[],i=0,a=0,o=null;for(let e=0;e|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,Jd=e=>qd.test(Gd(e));function Yd(e,t,n=!1){for(let r=0;re.type===7&&e.name===`bind`&&(!e.arg||e.arg.type!==4||!e.arg.isStatic))}function $d(e){return e.type===5||e.type===2}function ef(e){return e.type===7&&e.name===`pre`}function tf(e){return e.type===7&&e.name===`slot`}function nf(e){return e.type===1&&e.tagType===3}function rf(e){return e.type===1&&e.tagType===2}var af=new Set([Xu,Zu]);function of(e,t=[]){if(e&&!v(e)&&e.type===14){let n=e.callee;if(!v(n)&&af.has(n))return of(e.arguments[0],t.concat(e))}return[e,t]}function sf(e,t,n){let r,i=e.type===13?e.props:e.arguments[2],a=[],o;if(i&&!v(i)&&i.type===14){let e=of(i);i=e[0],a=e[1],o=a[a.length-1]}if(i==null||v(i))r=gd([t]);else if(i.type===14){let e=i.arguments[0];!v(e)&&e.type===15?cf(t,e)||e.properties.unshift(t):i.callee===Qu?r=G(n.helper(qu),[gd([t]),i]):i.arguments.unshift(gd([t])),!r&&(r=i)}else i.type===15?(cf(t,i)||i.properties.unshift(t),r=i):(r=G(n.helper(qu),[gd([t]),i]),o&&o.callee===Zu&&(o=a[a.length-2]));e.type===13?o?o.arguments[0]=r:e.props=r:o?o.arguments[0]=r:e.arguments[2]=r}function cf(e,t){let n=!1;if(e.key.type===4){let r=e.key.content;n=t.properties.some(e=>e.key.type===4&&e.key.content===r)}return n}function lf(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,n)=>t===`-`?`_`:e.charCodeAt(n).toString())}`}function uf(e){return e.type===14&&e.callee===cd?e.arguments[1].returns:e}var df=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function ff(e){for(let t=0;t0,isVoidTag:a,isPreTag:a,isIgnoreNewlineTag:a,isCustomElement:a,onError:Id,onWarn:Ld,comments:!1,prefixIdentifiers:!1},q=hf,gf=null,_f=``,vf=null,J=null,yf=``,bf=-1,xf=-1,Sf=0,Cf=!1,wf=null,Y=[],X=new Md(Y,{onerr:Kf,ontext(e,t){kf(Z(e,t),e,t)},ontextentity(e,t,n){kf(e,t,n)},oninterpolation(e,t){if(Cf)return kf(Z(e,t),e,t);let n=e+X.delimiterOpen.length,r=t-X.delimiterClose.length;for(;Od(_f.charCodeAt(n));)n++;for(;Od(_f.charCodeAt(r-1));)r--;let i=Z(n,r);i.includes(`&`)&&(i=q.decodeEntities(i,!1)),Vf({type:5,content:Gf(i,!1,Q(n,r)),loc:Q(e,t)})},onopentagname(e,t){let n=Z(e,t);vf={type:1,tag:n,ns:q.getNamespace(n,Y[0],q.ns),tagType:0,props:[],children:[],loc:Q(e-1,t),codegenNode:void 0}},onopentagend(e){Of(e)},onclosetag(e,t){let n=Z(e,t);if(!q.isVoidTag(n)){let r=!1;for(let e=0;e0&&Kf(24,Y[0].loc.start.offset);for(let n=0;n<=e;n++)Af(Y.shift(),t,n(e.type===7?e.rawName:e.name)===n)&&Kf(2,t)},onattribend(e,t){if(vf&&J){if(Uf(J.loc,t),e!==0)if(yf.includes(`&`)&&(yf=q.decodeEntities(yf,!0)),J.type===6)J.name===`class`&&(yf=Bf(yf).trim()),e===1&&!yf&&Kf(13,t),J.value={type:2,content:yf,loc:e===1?Q(bf,xf):Q(bf-1,xf+1)},X.inSFCRoot&&vf.tag===`template`&&J.name===`lang`&&yf&&yf!==`html`&&X.enterRCDATA(Ad(`e.content===`sync`))>-1&&Fd(`COMPILER_V_BIND_SYNC`,q,J.loc,J.arg.loc.source)&&(J.name=`model`,J.modifiers.splice(e,1))}(J.type!==7||J.name!==`pre`)&&vf.props.push(J)}yf=``,bf=xf=-1},oncomment(e,t){q.comments&&Vf({type:3,content:Z(e,t),loc:Q(e-4,t+3)})},onend(){let e=_f.length;for(let t=0;t{let i=t.start.offset+n;return Gf(e,!1,Q(i,i+e.length),0,+!!r)},s={source:o(a.trim(),n.indexOf(a,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1},c=i.trim().replace(Ef,``).trim(),l=i.indexOf(c),u=c.match(Tf);if(u){c=c.replace(Tf,``).trim();let e=u[1].trim(),t;if(e&&(t=n.indexOf(e,l+c.length),s.key=o(e,t,!0)),u[2]){let r=u[2].trim();r&&(s.index=o(r,n.indexOf(r,s.key?t+e.length:l+c.length),!0))}}return c&&(s.value=o(c,l,!0)),s}function Z(e,t){return _f.slice(e,t)}function Of(e){X.inSFCRoot&&(vf.innerLoc=Q(e+1,e+1)),Vf(vf);let{tag:t,ns:n}=vf;n===0&&q.isPreTag(t)&&Sf++,q.isVoidTag(t)?Af(vf,e):(Y.unshift(vf),(n===1||n===2)&&(X.inXML=!0)),vf=null}function kf(e,t,n){{let t=Y[0]&&Y[0].tag;t!==`script`&&t!==`style`&&e.includes(`&`)&&(e=q.decodeEntities(e,!1))}let r=Y[0]||gf,i=r.children[r.children.length-1];i&&i.type===2?(i.content+=e,Uf(i.loc,n)):r.children.push({type:2,content:e,loc:Q(t,n)})}function Af(e,t,n=!1){n?Uf(e.loc,Mf(t,60)):Uf(e.loc,jf(t,62)+1),X.inSFCRoot&&(e.children.length?e.innerLoc.end=c({},e.children[e.children.length-1].loc.end):e.innerLoc.end=c({},e.innerLoc.start),e.innerLoc.source=Z(e.innerLoc.start.offset,e.innerLoc.end.offset));let{tag:r,ns:i,children:a}=e;if(Cf||(r===`slot`?e.tagType=2:Pf(e)?e.tagType=3:Ff(e)&&(e.tagType=1)),X.inRCDATA||(e.children=Rf(a)),i===0&&q.isIgnoreNewlineTag(r)){let e=a[0];e&&e.type===2&&(e.content=e.content.replace(/^\r?\n/,``))}i===0&&q.isPreTag(r)&&Sf--,wf===e&&(Cf=X.inVPre=!1,wf=null),X.inXML&&(Y[0]?Y[0].ns:q.ns)===0&&(X.inXML=!1);{let t=e.props;if(!X.inSFCRoot&&Pd(`COMPILER_NATIVE_TEMPLATE`,q)&&e.tag===`template`&&!Pf(e)){let t=Y[0]||gf,n=t.children.indexOf(e);t.children.splice(n,1,...e.children)}let n=t.find(e=>e.type===6&&e.name===`inline-template`);n&&Fd(`COMPILER_INLINE_TEMPLATE`,q,n.loc)&&e.children.length&&(n.value={type:2,content:Z(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function jf(e,t){let n=e;for(;_f.charCodeAt(n)!==t&&n<_f.length-1;)n++;return n}function Mf(e,t){let n=e;for(;_f.charCodeAt(n)!==t&&n>=0;)n--;return n}var Nf=new Set([`if`,`else`,`else-if`,`for`,`slot`]);function Pf({tag:e,props:t}){if(e===`template`){for(let e=0;e64&&e<91}var Lf=/\r\n/g;function Rf(e){let t=q.whitespace!==`preserve`,n=!1;for(let r=0;re.type!==3);return t.length===1&&t[0].type===1&&!rf(t[0])?t[0]:null}function Zf(e,t,n,r=!1,i=!1){let{children:a}=e,o=[];for(let t=0;t0){if(e>=2){s.codegenNode.patchFlag=-1,o.push(s);continue}}else{let e=s.codegenNode;if(e.type===13){let t=e.patchFlag;if((t===void 0||t===512||t===1)&&tp(s,n)>=2){let t=np(s);t&&(e.props=n.hoist(t))}e.dynamicProps&&=n.hoist(e.dynamicProps)}}}else if(s.type===12&&(r?0:Qf(s,n))>=2){s.codegenNode.type===14&&s.codegenNode.arguments.length>0&&s.codegenNode.arguments.push(`-1`),o.push(s);continue}if(s.type===1){let t=s.tagType===1;t&&n.scopes.vSlot++,Zf(s,e,n,!1,i),t&&n.scopes.vSlot--}else if(s.type===11)Zf(s,e,n,s.children.length===1,!0);else if(s.type===9)for(let t=0;te.key===t||e.key.content===t);return n&&n.value}}o.length&&n.transformHoist&&n.transformHoist(a,n,e)}function Qf(e,t){let{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;let r=n.get(e);if(r!==void 0)return r;let i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!==`svg`&&e.tag!==`foreignObject`&&e.tag!==`math`)return 0;if(i.patchFlag===void 0){let r=3,a=tp(e,t);if(a===0)return n.set(e,0),0;a1)for(let i=0;in&&(D.childIndex--,D.onNodeRemoved()),D.parent.children.splice(n,1)},onNodeRemoved:i,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){v(e)&&(e=W(e)),D.hoists.push(e);let t=W(`_hoisted_${D.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1,n=!1){let r=bd(D.cached.length,e,t,n);return D.cached.push(r),r}};return D.filters=new Set,D}function ip(e,t){let n=rp(e,t);sp(e,n),t.hoistStatic&&Yf(e,n),t.ssr||ap(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function ap(e,t){let{helper:n}=t,{children:r}=e;if(r.length===1){let n=Xf(e);if(n&&n.codegenNode){let r=n.codegenNode;r.type===13&&wd(r,t),e.codegenNode=r}else e.codegenNode=r[0]}else r.length>1&&(e.codegenNode=md(t,n(Tu),void 0,e.children,64,void 0,void 0,!0,void 0,!1))}function op(e,t){let n=0,r=()=>{n--};for(;nt===e:t=>e.test(t);return(e,r)=>{if(e.type===1){let{props:i}=e;if(e.tagType===3&&i.some(tf))return;let a=[];for(let o=0;o`${ud[e]}: _${ud[e]}`;function dp(e,{mode:t=`function`,prefixIdentifiers:n=t===`module`,sourceMap:r=!1,filename:i=`template.vue.html`,scopeId:a=null,optimizeImports:o=!1,runtimeGlobalName:s=`Vue`,runtimeModuleName:c=`vue`,ssrRuntimeModuleName:l=`vue/server-renderer`,ssr:u=!1,isTS:d=!1,inSSR:f=!1}){let p={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:a,optimizeImports:o,runtimeGlobalName:s,runtimeModuleName:c,ssrRuntimeModuleName:l,ssr:u,isTS:d,inSSR:f,source:e.source,code:``,column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(e){return`_${ud[e]}`},push(e,t=-2,n){p.code+=e},indent(){m(++p.indentLevel)},deindent(e=!1){e?--p.indentLevel:m(--p.indentLevel)},newline(){m(p.indentLevel)}};function m(e){p.push(` -`+` `.repeat(e),0)}return p}function fp(e,t={}){let n=dp(e,t);t.onContextCreated&&t.onContextCreated(n);let{mode:r,push:i,prefixIdentifiers:a,indent:o,deindent:s,newline:c,scopeId:l,ssr:u}=n,d=Array.from(e.helpers),f=d.length>0,p=!a&&r!==`module`;if(pp(e,n),i(`function ${u?`ssrRender`:`render`}(${(u?[`_ctx`,`_push`,`_parent`,`_attrs`]:[`_ctx`,`_cache`]).join(`, `)}) {`),o(),p&&(i(`with (_ctx) {`),o(),f&&(i(`const { ${d.map(up).join(`, `)} } = _Vue -`,-1),c())),e.components.length&&(mp(e.components,`component`,n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(mp(e.directives,`directive`,n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),mp(e.filters,`filter`,n),c()),e.temps>0){i(`let `);for(let t=0;t0?`, `:``}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(i(` -`,0),c()),u||i(`return `),e.codegenNode?vp(e.codegenNode,n):i(`null`),p&&(s(),i(`}`)),s(),i(`}`),{ast:e,code:n.code,preamble:``,map:n.map?n.map.toJSON():void 0}}function pp(e,t){let{ssr:n,prefixIdentifiers:r,push:i,newline:a,runtimeModuleName:o,runtimeGlobalName:s,ssrRuntimeModuleName:c}=t,l=s,u=Array.from(e.helpers);u.length>0&&(i(`const _Vue = ${l} -`,-1),e.hoists.length&&i(`const { ${[Nu,Pu,Fu,Iu,Lu].filter(e=>u.includes(e)).map(up).join(`, `)} } = _Vue -`,-1)),hp(e.hoists,t),a(),i(`return `)}function mp(e,t,{helper:n,push:r,newline:i,isTS:a}){let o=n(t===`filter`?Vu:t===`component`?Ru:Bu);for(let n=0;n3||!1;t.push(`[`),n&&t.indent(),_p(e,t,n),n&&t.deindent(),t.push(`]`)}function _p(e,t,n=!1,r=!0){let{push:i,newline:a}=t;for(let o=0;oe||`null`)}function Dp(e,t){let{push:n,helper:r,pure:i}=t,a=v(e.callee)?e.callee:r(e.callee);i&&n(lp),n(a+`(`,-2,e),_p(e.arguments,t),n(`)`)}function Op(e,t){let{push:n,indent:r,deindent:i,newline:a}=t,{properties:o}=e;if(!o.length){n(`{}`,-2,e);return}let s=o.length>1||!1;n(s?`{`:`{ `),s&&r();for(let e=0;e `),(c||s)&&(n(`{`),r()),o?(c&&n(`return `),f(o)?gp(o,t):vp(o,t)):s&&vp(s,t),(c||s)&&(i(),n(`}`)),l&&(e.isNonScopedSlot&&n(`, undefined, true`),n(`)`))}function jp(e,t){let{test:n,consequent:r,alternate:i,newline:a}=e,{push:o,indent:s,deindent:c,newline:l}=t;if(n.type===4){let e=!Vd(n.content);e&&o(`(`),bp(n,t),e&&o(`)`)}else o(`(`),vp(n,t),o(`)`);a&&s(),t.indentLevel++,a||o(` `),o(`? `),vp(r,t),t.indentLevel--,a&&l(),a||o(` `),o(`: `);let u=i.type===19;u||t.indentLevel++,vp(i,t),u||t.indentLevel--,a&&c(!0)}function Mp(e,t){let{push:n,helper:r,indent:i,deindent:a,newline:o}=t,{needPauseTracking:s,needArraySpread:c}=e;c&&n(`[...(`),n(`_cache[${e.index}] || (`),s&&(i(),n(`${r(nd)}(-1`),e.inVOnce&&n(`, true`),n(`),`),o(),n(`(`)),n(`_cache[${e.index}] = `),vp(e.value,t),s&&(n(`).cacheIndex = ${e.index},`),o(),n(`${r(nd)}(1),`),o(),n(`_cache[${e.index}]`),a()),n(`)`),c&&n(`)]`)}RegExp(`\\b`+`arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield`.split(`,`).join(`\\b|\\b`)+`\\b`);var Np=cp(/^(?:if|else|else-if)$/,(e,t,n)=>Pp(e,t,n,(e,t,r)=>{let i=n.parent.children,a=i.indexOf(e),o=0;for(;a-->=0;){let e=i[a];e&&e.type===9&&(o+=e.branches.length)}return()=>{if(r)e.codegenNode=Ip(t,o,n);else{let r=Rp(e.codegenNode);r.alternate=Ip(t,o+e.branches.length-1,n)}}}));function Pp(e,t,n,r){if(t.name!==`else`&&(!t.exp||!t.exp.content.trim())){let r=t.exp?t.exp.loc:e.loc;n.onError(K(28,t.loc)),t.exp=W(`true`,!1,r)}if(t.name===`if`){let i=Fp(e,t),a={type:9,loc:Hf(e.loc),branches:[i]};if(n.replaceNode(a),r)return r(a,i,!0)}else{let i=n.parent.children,a=i.indexOf(e);for(;a-->=-1;){let o=i[a];if(o&&mf(o)){n.removeNode(o);continue}if(o&&o.type===9){(t.name===`else-if`||t.name===`else`)&&o.branches[o.branches.length-1].condition===void 0&&n.onError(K(30,e.loc)),n.removeNode();let i=Fp(e,t);o.branches.push(i);let a=r&&r(o,i,!1);sp(i,n),a&&a(),n.currentNode=null}else n.onError(K(30,e.loc));break}}}function Fp(e,t){let n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name===`else`?void 0:t.exp,children:n&&!Yd(e,`for`)?e.children:[e],userKey:Xd(e,`key`),isTemplateIf:n}}function Ip(e,t,n){return e.condition?yd(e.condition,Lp(e,t,n),G(n.helper(Fu),[`""`,`true`])):Lp(e,t,n)}function Lp(e,t,n){let{helper:r}=n,i=U(`key`,W(`${t}`,!1,fd,2)),{children:a}=e,o=a[0];if(a.length!==1||o.type!==1)if(a.length===1&&o.type===11){let e=o.codegenNode;return sf(e,i,n),e}else return md(n,r(Tu),gd([i]),a,64,void 0,void 0,!0,!1,!1,e.loc);else{let e=o.codegenNode,t=uf(e);return t.type===13&&wd(t,n),sf(t,i,n),e}}function Rp(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}var zp=cp(`for`,(e,t,n)=>{let{helper:r,removeHelper:i}=n;return Bp(e,t,n,t=>{let a=G(r(Uu),[t.source]),o=nf(e),s=Yd(e,`memo`),c=Xd(e,`key`,!1,!0);c&&c.type;let l=c&&(c.type===6?c.value?W(c.value.content,!0):void 0:c.exp),u=l?U(`key`,l):null,d=t.source.type===4&&t.source.constType>0,f=d?64:c?128:256;return t.codegenNode=md(n,r(Tu),void 0,a,f,void 0,void 0,!0,!d,!1,e.loc),()=>{let c,{children:f}=t,p=f.length!==1||f[0].type!==1,m=rf(e)?e:o&&e.children.length===1&&rf(e.children[0])?e.children[0]:null;if(m?(c=m.codegenNode,o&&u&&sf(c,u,n)):p?c=md(n,r(Tu),u?gd([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(c=f[0].codegenNode,o&&u&&sf(c,u,n),c.isBlock!==!d&&(c.isBlock?(i(Au),i(Cd(n.inSSR,c.isComponent))):i(Sd(n.inSSR,c.isComponent))),c.isBlock=!d,c.isBlock?(r(Au),r(Cd(n.inSSR,c.isComponent))):r(Sd(n.inSSR,c.isComponent))),s){let e=vd(Hp(t.parseResult,[W(`_cached`)]));e.body=xd([_d([`const _memo = (`,s.exp,`)`]),_d([`if (_cached && _cached.el`,...l?[` && _cached.key === `,l]:[],` && ${n.helperString(ld)}(_cached, _memo)) return _cached`]),_d([`const _item = `,c]),W(`_item.memo = _memo`),W(`return _item`)]),a.arguments.push(e,W(`_cache`),W(String(n.cached.length))),n.cached.push(null)}else a.arguments.push(vd(Hp(t.parseResult),c,!0))}})});function Bp(e,t,n,r){if(!t.exp){n.onError(K(31,t.loc));return}let i=t.forParseResult;if(!i){n.onError(K(32,t.loc));return}Vp(i,n);let{addIdentifiers:a,removeIdentifiers:o,scopes:s}=n,{source:c,value:l,key:u,index:d}=i,f={type:11,loc:t.loc,source:c,valueAlias:l,keyAlias:u,objectIndexAlias:d,parseResult:i,children:nf(e)?e.children:[e]};n.replaceNode(f),s.vFor++;let p=r&&r(f);return()=>{s.vFor--,p&&p()}}function Vp(e,t){e.finalized||=!0}function Hp({value:e,key:t,index:n},r=[]){return Up([e,t,n,...r])}function Up(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||W(`_`.repeat(t+1),!1))}var Wp=W(`undefined`,!1),Gp=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){let n=Yd(e,`slot`);if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Kp=(e,t,n,r)=>vd(e,n,!1,!0,n.length?n[0].loc:r);function qp(e,t,n=Kp){t.helper(ad);let{children:r,loc:i}=e,a=[],o=[],s=t.scopes.vSlot>0||t.scopes.vFor>0,c=Yd(e,`slot`,!0);if(c){let{arg:e,exp:t}=c;e&&!Rd(e)&&(s=!0),a.push(U(e||W(`default`,!0),n(t,void 0,r,i)))}let l=!1,u=!1,d=[],f=new Set,p=0;for(let e=0;e{let a=n(e,void 0,r,i);return t.compatConfig&&(a.isNonScopedSlot=!0),U(`default`,a)};l?d.length&&!d.every(pf)&&(u?t.onError(K(39,d[0].loc)):a.push(e(void 0,d))):a.push(e(void 0,r))}let m=s?2:Yp(e.children)?3:1,h=gd(a.concat(U(`_`,W(m+``,!1))),i);return o.length&&(h=G(t.helper(Gu),[h,hd(o)])),{slots:h,hasDynamicSlots:s}}function Jp(e,t,n){let r=[U(`name`,e),U(`fn`,t)];return n!=null&&r.push(U(`key`,W(String(n),!0))),gd(r)}function Yp(e){for(let t=0;tfunction(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;let{tag:n,props:r}=e,i=e.tagType===1,a=i?Qp(e,t):`"${n}"`,o=b(a)&&a.callee===zu,s,c,l=0,u,d,f,p=o||a===Eu||a===Du||!i&&(n===`svg`||n===`foreignObject`||n===`math`);if(r.length>0){let n=$p(e,t,void 0,i,o);s=n.props,l=n.patchFlag,d=n.dynamicPropNames;let r=n.directives;f=r&&r.length?hd(r.map(e=>nm(e,t))):void 0,n.shouldUseBlock&&(p=!0)}if(e.children.length>0)if(a===Ou&&(p=!0,l|=1024),i&&a!==Eu&&a!==Ou){let{slots:n,hasDynamicSlots:r}=qp(e,t);c=n,r&&(l|=1024)}else if(e.children.length===1&&a!==Eu){let n=e.children[0],r=n.type,i=r===5||r===8;i&&Qf(n,t)===0&&(l|=1),c=i||r===2?n:e.children}else c=e.children;d&&d.length&&(u=rm(d)),e.codegenNode=md(t,a,s,c,l===0?void 0:l,u,f,!!p,!1,i,e.loc)};function Qp(e,t,n=!1){let{tag:r}=e,i=im(r),a=Xd(e,`is`,!1,!0);if(a)if(i||Pd(`COMPILER_IS_ON_ELEMENT`,t)){let e;if(a.type===6?e=a.value&&W(a.value.content,!0):(e=a.exp,e||=W(`is`,!1,a.arg.loc)),e)return G(t.helper(zu),[e])}else a.type===6&&a.value.content.startsWith(`vue:`)&&(r=a.value.content.slice(4));let o=zd(r)||t.isBuiltInComponent(r);return o?(n||t.helper(o),o):(t.helper(Ru),t.components.add(r),lf(r,`component`))}function $p(e,t,n=e.props,r,i,a=!1){let{tag:s,loc:c,children:l}=e,u=[],d=[],f=[],p=l.length>0,m=!1,h=0,g=!1,_=!1,v=!1,b=!1,x=!1,S=!1,C=[],w=e=>{u.length&&(d.push(gd(em(u),c)),u=[]),e&&d.push(e)},T=()=>{t.scopes.vFor>0&&u.push(U(W(`ref_for`,!0),W(`true`)))},E=({key:e,value:n})=>{if(Rd(e)){let a=e.content,s=o(a);if(s&&(!r||i)&&a.toLowerCase()!==`onclick`&&a!==`onUpdate:modelValue`&&!D(a)&&(b=!0),s&&D(a)&&(S=!0),s&&n.type===14&&(n=n.arguments[0]),n.type===20||(n.type===4||n.type===8)&&Qf(n,t)>0)return;a===`ref`?g=!0:a===`class`?_=!0:a===`style`?v=!0:a!==`key`&&!C.includes(a)&&C.push(a),r&&(a===`class`||a===`style`)&&!C.includes(a)&&C.push(a)}else x=!0};for(let i=0;ie.content===`prop`)&&(h|=32);let S=t.directiveTransforms[n];if(S){let{props:n,needRuntime:r}=S(o,e,t);!a&&n.forEach(E),b&&i&&!Rd(i)?w(gd(n,c)):u.push(...n),r&&(f.push(o),y(r)&&Xp.set(o,r))}else ee(n)||(f.push(o),p&&(m=!0))}}let O;if(d.length?(w(),O=d.length>1?G(t.helper(qu),d,c):d[0]):u.length&&(O=gd(em(u),c)),x?h|=16:(_&&!r&&(h|=2),v&&!r&&(h|=4),C.length&&(h|=8),b&&(h|=32)),!m&&(h===0||h===32)&&(g||S||f.length>0)&&(h|=512),!t.inSSR&&O)switch(O.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;tU(e,t)),i))}return hd(n,e.loc)}function rm(e){let t=`[`;for(let n=0,r=e.length;n{if(rf(e)){let{children:n,loc:r}=e,{slotName:i,slotProps:a}=om(e,t),o=[t.prefixIdentifiers?`_ctx.$slots`:`$slots`,i,`{}`,`undefined`,`true`],s=2;a&&(o[2]=a,s=3),n.length&&(o[3]=vd([],n,!1,!1,r),s=4),t.scopeId&&!t.slotted&&(s=5),o.splice(s),e.codegenNode=G(t.helper(Wu),o,r)}};function om(e,t){let n=`"default"`,r,i=[];for(let t=0;t0){let{props:n,directives:a}=$p(e,t,i,!1,!1);r=n,a.length&&t.onError(K(36,a[0].loc))}return{slotName:n,slotProps:r}}var sm=(e,t,n,r)=>{let{loc:i,modifiers:a,arg:o}=e;!e.exp&&!a.length&&n.onError(K(35,i));let s;if(o.type===4)if(o.isStatic){let e=o.content;e.startsWith(`vue:`)&&(e=`vnode-${e.slice(4)}`),s=W(t.tagType!==0||e.startsWith(`vnode`)||!/[A-Z]/.test(e)?j(k(e)):`on:${e}`,!0,o.loc)}else s=_d([`${n.helperString(td)}(`,o,`)`]);else s=o,s.children.unshift(`${n.helperString(td)}(`),s.children.push(`)`);let c=e.exp;c&&!c.content.trim()&&(c=void 0);let l=n.cacheHandlers&&!c&&!n.inVOnce;if(c){let e=Kd(c),t=!(e||Jd(c)),n=c.content.includes(`;`);(t||l&&e)&&(c=_d([`${t?`$event`:`(...args)`} => ${n?`{`:`(`}`,c,n?`}`:`)`]))}let u={props:[U(s,c||W(`() => {}`,!1,i))]};return r&&(u=r(u)),l&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(e=>e.key.isHandlerKey=!0),u},cm=(e,t,n)=>{let{modifiers:r,loc:i}=e,a=e.arg,{exp:o}=e;return o&&o.type===4&&!o.content.trim()&&(o=void 0),a.type===4?a.isStatic||(a.content=a.content?`${a.content} || ""`:`""`):(a.children.unshift(`(`),a.children.push(`) || ""`)),r.some(e=>e.content===`camel`)&&(a.type===4?a.isStatic?a.content=k(a.content):a.content=`${n.helperString($u)}(${a.content})`:(a.children.unshift(`${n.helperString($u)}(`),a.children.push(`)`))),n.inSSR||(r.some(e=>e.content===`prop`)&&lm(a,`.`),r.some(e=>e.content===`attr`)&&lm(a,`^`)),{props:[U(a,o)]}},lm=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(`)`))},um=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{let n=e.children,r,i=!1;for(let e=0;ee.type===7&&!t.directiveTransforms[e.name])&&e.tag!==`template`)))for(let e=0;e{if(e.type===1&&Yd(e,`once`,!0))return dm.has(e)||t.inVOnce||t.inSSR?void 0:(dm.add(e),t.inVOnce=!0,t.helper(nd),()=>{t.inVOnce=!1;let e=t.currentNode;e.codegenNode&&=t.cache(e.codegenNode,!0,!0)})},pm=(e,t,n)=>{let{exp:r,arg:i}=e;if(!r)return n.onError(K(41,e.loc)),mm();let a=r.loc.source.trim(),o=r.type===4?r.content:a,s=n.bindingMetadata[a];if(s===`props`||s===`props-aliased`)return n.onError(K(44,r.loc)),mm();if(s===`literal-const`||s===`setup-const`)return n.onError(K(45,r.loc)),mm();if(!o.trim()||!Kd(r))return n.onError(K(42,r.loc)),mm();let c=i||W(`modelValue`,!0),l=i?Rd(i)?`onUpdate:${k(i.content)}`:_d([`"onUpdate:" + `,i]):`onUpdate:modelValue`,u;u=_d([`${n.isTS?`($event: any)`:`$event`} => ((`,r,`) = $event)`]);let d=[U(c,e.exp),U(l,u)];if(e.modifiers.length&&t.tagType===1){let t=e.modifiers.map(e=>e.content).map(e=>(Vd(e)?e:JSON.stringify(e))+`: true`).join(`, `),n=i?Rd(i)?`${i.content}Modifiers`:_d([i,` + "Modifiers"`]):`modelModifiers`;d.push(U(n,W(`{ ${t} }`,!1,e.loc,2)))}return mm(d)};function mm(e=[]){return{props:e}}var hm=/[\w).+\-_$\]]/,gm=(e,t)=>{Pd(`COMPILER_FILTERS`,t)&&(e.type===5?_m(e.content,t):e.type===1&&e.props.forEach(e=>{e.type===7&&e.name!==`for`&&e.exp&&_m(e.exp,t)}))};function _m(e,t){if(e.type===4)vm(e,t);else for(let n=0;n=0&&(t=n.charAt(e),t===` `);e--);(!t||!hm.test(t))&&(o=!0)}}m===void 0?m=n.slice(0,p).trim():u!==0&&g();function g(){h.push(n.slice(u,p).trim()),u=p+1}if(h.length){for(p=0;p{if(e.type===1){let n=Yd(e,`memo`);return!n||bm.has(e)||t.inSSR?void 0:(bm.add(e),()=>{let r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&wd(r,t),e.codegenNode=G(t.helper(cd),[n.exp,vd(void 0,r),`_cache`,String(t.cached.length)]),t.cached.push(null))})}},Sm=(e,t)=>{if(e.type===1){for(let n of e.props)if(n.type===7&&n.name===`bind`&&(!n.exp||n.exp.type===4&&!n.exp.content.trim())&&n.arg){let e=n.arg;if(e.type!==4||!e.isStatic)t.onError(K(53,e.loc)),n.exp=W(``,!0,e.loc);else{let t=k(e.content);(Hd.test(t[0])||t[0]===`-`)&&(n.exp=W(t,!1,e.loc))}}}};function Cm(e){return[[Sm,fm,Np,xm,zp,gm,am,Zp,Gp,um],{on:sm,bind:cm,model:pm}]}function wm(e,t={}){let n=t.onError||Id,r=t.mode===`module`;t.prefixIdentifiers===!0?n(K(48)):r&&n(K(49)),t.cacheHandlers&&n(K(50)),t.scopeId&&!r&&n(K(51));let i=c({},t,{prefixIdentifiers:!1}),a=v(e)?Jf(e,i):e,[o,s]=Cm();return ip(a,c({},i,{nodeTransforms:[...o,...t.nodeTransforms||[]],directiveTransforms:c({},s,t.directiveTransforms||{})})),fp(a,i)}var Tm=()=>({props:[]}),Em=Symbol(``),Dm=Symbol(``),Om=Symbol(``),km=Symbol(``),Am=Symbol(``),jm=Symbol(``),Mm=Symbol(``),Nm=Symbol(``),Pm=Symbol(``),Fm=Symbol(``);dd({[Em]:`vModelRadio`,[Dm]:`vModelCheckbox`,[Om]:`vModelText`,[km]:`vModelSelect`,[Am]:`vModelDynamic`,[jm]:`withModifiers`,[Mm]:`withKeys`,[Nm]:`vShow`,[Pm]:`Transition`,[Fm]:`TransitionGroup`});var Im;function Lm(e,t=!1){return Im||=document.createElement(`div`),t?(Im.innerHTML=`
    `,Im.children[0].getAttribute(`foo`)):(Im.innerHTML=e,Im.textContent)}var Rm={parseMode:`html`,isVoidTag:Ee,isNativeTag:e=>Ce(e)||we(e)||Te(e),isPreTag:e=>e===`pre`,isIgnoreNewlineTag:e=>e===`pre`||e===`textarea`,decodeEntities:Lm,isBuiltInComponent:e=>{if(e===`Transition`||e===`transition`)return Pm;if(e===`TransitionGroup`||e===`transition-group`)return Fm},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2)if(t.tag===`annotation-xml`){if(e===`svg`)return 1;t.props.some(e=>e.type===6&&e.name===`encoding`&&e.value!=null&&(e.value.content===`text/html`||e.value.content===`application/xhtml+xml`))&&(r=0)}else /^m(?:[ions]|text)$/.test(t.tag)&&e!==`mglyph`&&e!==`malignmark`&&(r=0);else t&&r===1&&(t.tag===`foreignObject`||t.tag===`desc`||t.tag===`title`)&&(r=0);if(r===0){if(e===`svg`)return 1;if(e===`math`)return 2}return r}},zm=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name===`style`&&t.value&&(e.props[n]={type:7,name:`bind`,arg:W(`style`,!0,t.loc),exp:Bm(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Bm=(e,t)=>{let n=ge(e);return W(JSON.stringify(n),!1,t,3)};function Vm(e,t){return K(e,t,void 0)}var Hm=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Vm(54,i)),t.children.length&&(n.onError(Vm(55,i)),t.children.length=0),{props:[U(W(`innerHTML`,!0,i),r||W(``,!0))]}},Um=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Vm(56,i)),t.children.length&&(n.onError(Vm(57,i)),t.children.length=0),{props:[U(W(`textContent`,!0),r?Qf(r,n)>0?r:G(n.helperString(Ku),[r],i):W(``,!0))]}},Wm=(e,t,n)=>{let r=pm(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(Vm(59,e.arg.loc));let{tag:i}=t,a=n.isCustomElement(i);if(i===`input`||i===`textarea`||i===`select`||a){let o=Om,s=!1;if(i===`input`||a){let r=Xd(t,`type`);if(r){if(r.type===7)o=Am;else if(r.value)switch(r.value.content){case`radio`:o=Em;break;case`checkbox`:o=Dm;break;case`file`:s=!0,n.onError(Vm(60,e.loc));break;default:break}}else Qd(t)&&(o=Am)}else i===`select`&&(o=km);s||(r.needRuntime=n.helper(o))}else n.onError(Vm(58,e.loc));return r.props=r.props.filter(e=>!(e.key.type===4&&e.key.content===`modelValue`)),r},Gm=t(`passive,once,capture`),Km=t(`stop,prevent,self,ctrl,shift,alt,meta,exact,middle`),qm=t(`left,right`),Jm=t(`onkeyup,onkeydown,onkeypress`),Ym=(e,t,n,r)=>{let i=[],a=[],o=[];for(let s=0;sRd(e)&&e.content.toLowerCase()===`onclick`?W(t,!0):e.type===4?e:_d([`(`,e,`) === "onClick" ? "${t}" : (`,e,`)`]),Zm=(e,t,n)=>sm(e,t,n,t=>{let{modifiers:r}=e;if(!r.length)return t;let{key:i,value:a}=t.props[0],{keyModifiers:o,nonKeyModifiers:s,eventOptionModifiers:c}=Ym(i,r,n,e.loc);if(s.includes(`right`)&&(i=Xm(i,`onContextmenu`)),s.includes(`middle`)&&(i=Xm(i,`onMouseup`)),s.length&&(a=G(n.helper(jm),[a,JSON.stringify(s)])),o.length&&(!Rd(i)||Jm(i.content.toLowerCase()))&&(a=G(n.helper(Mm),[a,JSON.stringify(o)])),c.length){let e=c.map(re).join(``);i=Rd(i)?W(`${i.content}${e}`,!0):_d([`(`,i,`) + "${e}"`])}return{props:[U(i,a)]}}),Qm=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Vm(62,i)),{props:[],needRuntime:n.helper(Nm)}},$m=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag===`script`||e.tag===`style`)&&t.removeNode()},eh=[zm],th={cloak:Tm,html:Hm,text:Um,model:Wm,on:Zm,show:Qm};function nh(e,t={}){return wm(e,c({},Rm,t,{nodeTransforms:[$m,...eh,...t.nodeTransforms||[]],directiveTransforms:c({},th,t.directiveTransforms||{}),transformHoist:null}))}var rh=Object.create(null);function ih(e,t){if(!v(e))if(e.nodeType)e=e.innerHTML;else return i;let n=ue(e,t),r=rh[n];if(r)return r;if(e[0]===`#`){let t=document.querySelector(e);e=t?t.innerHTML:``}let a=c({hoistStatic:!0,onError:void 0,onWarn:i},t);!a.isCustomElement&&typeof customElements<`u`&&(a.isCustomElement=e=>!!customElements.get(e));let{code:o}=nh(e,a),s=Function(`Vue`,o)(gc);return s._rc=!0,rh[n]=s}Zs(ih);var ah=[`top`,`right`,`bottom`,`left`],oh=[`start`,`end`],sh=ah.reduce((e,t)=>e.concat(t,t+`-`+oh[0],t+`-`+oh[1]),[]),ch=Math.min,lh=Math.max,uh={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function dh(e,t,n){return lh(e,ch(t,n))}function fh(e,t){return typeof e==`function`?e(t):e}function ph(e){return e.split(`-`)[0]}function mh(e){return e.split(`-`)[1]}function hh(e){return e===`x`?`y`:`x`}function gh(e){return e===`y`?`height`:`width`}function _h(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function vh(e){return hh(_h(e))}function yh(e,t,n){n===void 0&&(n=!1);let r=mh(e),i=vh(e),a=gh(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Oh(o)),[o,Oh(o)]}function bh(e){let t=Oh(e);return[xh(e),t,xh(t)]}function xh(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Sh=[`left`,`right`],Ch=[`right`,`left`],wh=[`top`,`bottom`],Th=[`bottom`,`top`];function Eh(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Ch:Sh:t?Sh:Ch;case`left`:case`right`:return t?wh:Th;default:return[]}}function Dh(e,t,n,r){let i=mh(e),a=Eh(ph(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(xh)))),a}function Oh(e){let t=ph(e);return uh[t]+e.slice(t.length)}function kh(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ah(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:kh(e)}function jh(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Mh(e,t,n){let{reference:r,floating:i}=e,a=_h(t),o=vh(t),s=gh(o),c=ph(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(mh(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function Nh(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=fh(t,e),p=Ah(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=jh(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=jh(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Ph=50,Fh=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Nh},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Mh(l,r,c),f=r,p=0,m={};for(let n=0;n({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=fh(e,t)||{};if(l==null)return{};let d=Ah(u),f={x:n,y:r},p=vh(i),m=gh(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=ch(d[_],T),D=ch(d[v],T),ee=E,O=C-h[m]-D,te=C/2-h[m]/2+w,k=dh(ee,te,O),ne=!c.arrow&&mh(i)!=null&&te!==k&&a.reference[m]/2-(temh(t)===e),...n.filter(t=>mh(t)!==e)]:n.filter(e=>ph(e)===e)).filter(n=>e?mh(n)===e||(t?xh(n)!==n:!1):!0)}var Rh=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:o}=t,{crossAxis:s=!1,alignment:c,allowedPlacements:l=sh,autoAlignment:u=!0,...d}=fh(e,t),f=c!==void 0||l===sh?Lh(c||null,u,l):l,p=await a.detectOverflow(t,d),m=r.autoPlacement?.index||0,h=f[m];if(h==null)return{};let g=yh(h,n,await(a.isRTL==null?void 0:a.isRTL(o.floating)));if(i!==h)return{reset:{placement:f[0]}};let _=[p[ph(h)],p[g[0]],p[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:h,overflows:_}],y=f[m+1];if(y)return{data:{index:m+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=mh(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),x=b.filter(e=>e[2].slice(0,mh(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:m+1,overflows:v},reset:{placement:x}}}}},zh=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=fh(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=ph(r),_=_h(o),v=ph(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Oh(o)]:bh(o)),x=p!==`none`;!d&&x&&b.push(...Dh(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=yh(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==_h(t))||T.every(e=>_h(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=_h(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}},Bh=new Set([`left`,`top`]);async function Vh(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=ph(n),s=mh(n),c=_h(n)===`y`,l=Bh.has(o)?-1:1,u=a&&c?-1:1,d=fh(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Hh=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Vh(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Uh=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=fh(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=_h(ph(i)),p=hh(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=dh(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=dh(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},Wh=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=fh(e,t),u=await o.detectOverflow(t,l),d=ph(i),f=mh(i),p=_h(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=ch(h-u[g],v),x=ch(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=lh(u.left,0),t=lh(u.right,0),n=lh(u.top,0),r=lh(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:lh(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:lh(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Gh(e){return e.ownerDocument?.defaultView||window}function Kh(e){return Gh(e).getComputedStyle(e)}var qh=Math.min,Jh=Math.max,Yh=Math.round;function Xh(e){let t=Kh(e),n=parseFloat(t.width),r=parseFloat(t.height),i=e.offsetWidth,a=e.offsetHeight,o=Yh(n)!==i||Yh(r)!==a;return o&&(n=i,r=a),{width:n,height:r,fallback:o}}function Zh(e){return ng(e)?(e.nodeName||``).toLowerCase():``}var Qh;function $h(){if(Qh)return Qh;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Qh=e.brands.map((e=>e.brand+`/`+e.version)).join(` `),Qh):navigator.userAgent}function eg(e){return e instanceof Gh(e).HTMLElement}function tg(e){return e instanceof Gh(e).Element}function ng(e){return e instanceof Gh(e).Node}function rg(e){return typeof ShadowRoot>`u`?!1:e instanceof Gh(e).ShadowRoot||e instanceof ShadowRoot}function ig(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Kh(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&![`inline`,`contents`].includes(i)}function ag(e){return[`table`,`td`,`th`].includes(Zh(e))}function og(e){let t=/firefox/i.test($h()),n=Kh(e),r=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!==`none`||n.perspective!==`none`||!!r&&r!==`none`||t&&n.willChange===`filter`||t&&!!n.filter&&n.filter!==`none`||[`transform`,`perspective`].some((e=>n.willChange.includes(e)))||[`paint`,`layout`,`strict`,`content`].some((e=>{let t=n.contain;return t!=null&&t.includes(e)}))}function sg(){return!/^((?!chrome|android).)*safari/i.test($h())}function cg(e){return[`html`,`body`,`#document`].includes(Zh(e))}function lg(e){return tg(e)?e:e.contextElement}var ug={x:1,y:1};function dg(e){let t=lg(e);if(!eg(t))return ug;let n=t.getBoundingClientRect(),{width:r,height:i,fallback:a}=Xh(t),o=(a?Yh(n.width):n.width)/r,s=(a?Yh(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}function fg(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=lg(e),o=ug;t&&(r?tg(r)&&(o=dg(r)):o=dg(e));let s=a?Gh(a):window,c=!sg()&&n,l=(i.left+(c&&s.visualViewport?.offsetLeft||0))/o.x,u=(i.top+(c&&s.visualViewport?.offsetTop||0))/o.y,d=i.width/o.x,f=i.height/o.y;if(a){let e=Gh(a),t=r&&tg(r)?Gh(r):r,n=e.frameElement;for(;n&&r&&t!==e;){let e=dg(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,l*=e.x,u*=e.y,d*=e.x,f*=e.y,l+=t.x,u+=t.y,n=Gh(n).frameElement}}return{width:d,height:f,top:u,right:l+d,bottom:u+f,left:l,x:l,y:u}}function pg(e){return((ng(e)?e.ownerDocument:e.document)||window.document).documentElement}function mg(e){return tg(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function hg(e){return fg(pg(e)).left+mg(e).scrollLeft}function gg(e){if(Zh(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||rg(e)&&e.host||pg(e);return rg(t)?t.host:t}function _g(e){let t=gg(e);return cg(t)?t.ownerDocument.body:eg(t)&&ig(t)?t:_g(t)}function vg(e,t){t===void 0&&(t=[]);let n=_g(e),r=n===e.ownerDocument?.body,i=Gh(n);return r?t.concat(i,i.visualViewport||[],ig(n)?n:[]):t.concat(n,vg(n))}function yg(e,t,n){return t===`viewport`?jh(function(e,t){let n=Gh(e),r=pg(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=sg();(e||!e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}(e,n)):tg(t)?jh(function(e,t){let n=fg(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=eg(e)?dg(e):{x:1,y:1};return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}(t,n)):jh(function(e){let t=pg(e),n=mg(e),r=e.ownerDocument.body,i=Jh(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Jh(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+hg(e),s=-n.scrollTop;return Kh(r).direction===`rtl`&&(o+=Jh(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}(pg(e)))}function bg(e){return eg(e)&&Kh(e).position!==`fixed`?e.offsetParent:null}function xg(e){let t=Gh(e),n=bg(e);for(;n&&ag(n)&&Kh(n).position===`static`;)n=bg(n);return n&&(Zh(n)===`html`||Zh(n)===`body`&&Kh(n).position===`static`&&!og(n))?t:n||function(e){let t=gg(e);for(;eg(t)&&!cg(t);){if(og(t))return t;t=gg(t)}return null}(e)||t}function Sg(e,t,n){let r=eg(t),i=pg(t),a=fg(e,!0,n===`fixed`,t),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&n!==`fixed`)if((Zh(t)!==`body`||ig(i))&&(o=mg(t)),eg(t)){let e=fg(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=hg(i));return{x:a.left+o.scrollLeft-s.x,y:a.top+o.scrollTop-s.y,width:a.width,height:a.height}}var Cg={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?function(e,t){let n=t.get(e);if(n)return n;let r=vg(e).filter((e=>tg(e)&&Zh(e)!==`body`)),i=null,a=Kh(e).position===`fixed`,o=a?gg(e):e;for(;tg(o)&&!cg(o);){let e=Kh(o),t=og(o);(a?t||i:t||e.position!==`static`||!i||![`absolute`,`fixed`].includes(i.position))?i=e:r=r.filter((e=>e!==o)),o=gg(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=a[0],s=a.reduce(((e,n)=>{let r=yg(t,n,i);return e.top=Jh(r.top,e.top),e.right=qh(r.right,e.right),e.bottom=qh(r.bottom,e.bottom),e.left=Jh(r.left,e.left),e}),yg(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=eg(n),a=pg(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s={x:1,y:1},c={x:0,y:0};if((i||!i&&r!==`fixed`)&&((Zh(n)!==`body`||ig(a))&&(o=mg(n)),eg(n))){let e=fg(n);s=dg(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+c.x,y:t.y*s.y-o.scrollTop*s.y+c.y}},isElement:tg,getDimensions:function(e){return eg(e)?Xh(e):e.getBoundingClientRect()},getOffsetParent:xg,getDocumentElement:pg,getScale:dg,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e,i=this.getOffsetParent||xg,a=this.getDimensions;return{reference:Sg(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Kh(e).direction===`rtl`},wg=(e,t,n)=>{let r=new Map,i={platform:Cg,...n},a={...i.platform,_c:r};return Fh(e,t,{...i,platform:a})};function Tg(e,t){for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]==`object`&&e[n]?Tg(e[n],t[n]):e[n]=t[n])}var Eg={disabled:!1,distance:5,skidding:0,container:`body`,boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:`absolute`,preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:`top`,triggers:[`hover`,`focus`,`touch`],hideTriggers:e=>[...e,`click`],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:`...`},dropdown:{placement:`bottom`,triggers:[`click`],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:`dropdown`,triggers:[`hover`,`focus`],popperTriggers:[`hover`],delay:{show:0,hide:400}}}};function Dg(e,t){let n=Eg.themes[e]||{},r;do r=n[t],typeof r>`u`?n.$extend?n=Eg.themes[n.$extend]||{}:(n=null,r=Eg[t]):n=null;while(n);return r}function Og(e){let t=[e],n=Eg.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Eg.themes[n.$extend]||{}):n=null;while(n);return t.map(e=>`v-popper--theme-${e}`)}function kg(e){let t=[e],n=Eg.themes[e]||{};do n.$extend?(t.push(n.$extend),n=Eg.themes[n.$extend]||{}):n=null;while(n);return t}var Ag=!1;if(typeof window<`u`){Ag=!1;try{let e=Object.defineProperty({},"passive",{get(){Ag=!0}});window.addEventListener(`test`,null,e)}catch{}}var jg=!1;typeof window<`u`&&typeof navigator<`u`&&(jg=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var Mg=[`auto`,`top`,`bottom`,`left`,`right`].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Ng={hover:`mouseenter`,focus:`focus`,click:`click`,touch:`touchstart`,pointer:`pointerdown`},Pg={hover:`mouseleave`,focus:`blur`,click:`click`,touch:`touchend`,pointer:`pointerup`};function Fg(e,t){let n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Ig(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}var Lg=[],Rg=null,zg={};function Bg(e){let t=zg[e];return t||=zg[e]=[],t}var Vg=function(){};typeof window<`u`&&(Vg=window.Element);function $(e){return function(t){return Dg(t.theme,e)}}var Hg=`__floating-vue__popper`,Ug=()=>di({name:`VPopper`,provide(){return{[Hg]:{parentPopper:this}}},inject:{[Hg]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:$(`disabled`)},positioningDisabled:{type:Boolean,default:$(`positioningDisabled`)},placement:{type:String,default:$(`placement`),validator:e=>Mg.includes(e)},delay:{type:[String,Number,Object],default:$(`delay`)},distance:{type:[Number,String],default:$(`distance`)},skidding:{type:[Number,String],default:$(`skidding`)},triggers:{type:Array,default:$(`triggers`)},showTriggers:{type:[Array,Function],default:$(`showTriggers`)},hideTriggers:{type:[Array,Function],default:$(`hideTriggers`)},popperTriggers:{type:Array,default:$(`popperTriggers`)},popperShowTriggers:{type:[Array,Function],default:$(`popperShowTriggers`)},popperHideTriggers:{type:[Array,Function],default:$(`popperHideTriggers`)},container:{type:[String,Object,Vg,Boolean],default:$(`container`)},boundary:{type:[String,Vg],default:$(`boundary`)},strategy:{type:String,validator:e=>[`absolute`,`fixed`].includes(e),default:$(`strategy`)},autoHide:{type:[Boolean,Function],default:$(`autoHide`)},handleResize:{type:Boolean,default:$(`handleResize`)},instantMove:{type:Boolean,default:$(`instantMove`)},eagerMount:{type:Boolean,default:$(`eagerMount`)},popperClass:{type:[String,Array,Object],default:$(`popperClass`)},computeTransformOrigin:{type:Boolean,default:$(`computeTransformOrigin`)},autoMinSize:{type:Boolean,default:$(`autoMinSize`)},autoSize:{type:[Boolean,String],default:$(`autoSize`)},autoMaxSize:{type:Boolean,default:$(`autoMaxSize`)},autoBoundaryMaxSize:{type:Boolean,default:$(`autoBoundaryMaxSize`)},preventOverflow:{type:Boolean,default:$(`preventOverflow`)},overflowPadding:{type:[Number,String],default:$(`overflowPadding`)},arrowPadding:{type:[Number,String],default:$(`arrowPadding`)},arrowOverflow:{type:Boolean,default:$(`arrowOverflow`)},flip:{type:Boolean,default:$(`flip`)},shift:{type:Boolean,default:$(`shift`)},shiftCrossAxis:{type:Boolean,default:$(`shiftCrossAxis`)},noAutoFocus:{type:Boolean,default:$(`noAutoFocus`)},disposeTimeout:{type:Number,default:$(`disposeTimeout`)}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:``,strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join(`_`)}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId==null?this.randomId:this.ariaId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide==`function`?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){return this[Hg]?.parentPopper},hasPopperShowTriggerHover(){return this.popperTriggers?.includes(`hover`)||this.popperShowTriggers?.includes(`hover`)}},watch:{shown:`$_autoShowHide`,disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:`$_refreshListeners`,deep:!0},positioningDisabled:`$_refreshListeners`,...[`placement`,`distance`,`skidding`,`boundary`,`strategy`,`overflowPadding`,`arrowPadding`,`preventOverflow`,`shift`,`shiftCrossAxis`,`flip`].reduce((e,t)=>(e[t]=`$_computePosition`,e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var r;(r=this.parentPopper)!=null&&r.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit(`show`),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit(`update:shown`,!0))},hide({event:e=null,skipDelay:t=!1}={}){if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit(`hide`),this.$emit(`update:shown`,!1)}},init(){this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode?.call(this)??this.$el,this.$_targetNodes=this.targetNodes().filter(e=>e.nodeType===e.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(`.v-popper__inner`),this.$_arrowNode=this.$_popperNode.querySelector(`.v-popper__arrow-container`),this.$_swapTargetAttrs(`title`,`data-original-title`),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs(`data-original-title`,`title`))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit(`resize`))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;let e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(Hh({mainAxis:this.distance,crossAxis:this.skidding}));let t=this.placement.startsWith(`auto`);if(t?e.middleware.push(Rh({alignment:this.placement.split(`-`)[1]??``})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Uh({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(zh({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Ih({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:`arrowOverflow`,fn:({placement:e,rects:t,middlewareData:n})=>{let r,{centerOffset:i}=n.arrow;return r=e.startsWith(`top`)||e.startsWith(`bottom`)?Math.abs(i)>t.reference.width/2:Math.abs(i)>t.reference.height/2,{data:{overflow:r}}}}),this.autoMinSize||this.autoSize){let t=this.autoSize?this.autoSize:this.autoMinSize?`min`:null;e.middleware.push({name:`autoSize`,fn:({rects:e,placement:n,middlewareData:r})=>{var i;if((i=r.autoSize)!=null&&i.skip)return{};let a,o;return n.startsWith(`top`)||n.startsWith(`bottom`)?a=e.reference.width:o=e.reference.height,this.$_innerNode.style[t===`min`?`minWidth`:t===`max`?`maxWidth`:`width`]=a==null?null:`${a}px`,this.$_innerNode.style[t===`min`?`minHeight`:t===`max`?`maxHeight`:`height`]=o==null?null:`${o}px`,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(Wh({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:e,availableHeight:t})=>{this.$_innerNode.style.maxWidth=e==null?null:`${e}px`,this.$_innerNode.style.maxHeight=t==null?null:`${t}px`}})));let n=await wg(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Rg&&this.instantMove&&Rg.instantMove&&Rg!==this.parentPopper){Rg.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay(`show`))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Rg=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay(`hide`))},$_computeDelay(e){let t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Ig(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...vg(this.$_referenceNode),...vg(this.$_popperNode)],`scroll`,()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){let e=this.$_referenceNode.getBoundingClientRect(),t=this.$_popperNode.querySelector(`.v-popper__wrapper`),n=t.parentNode.getBoundingClientRect(),r=e.x+e.width/2-(n.left+t.offsetLeft),i=e.y+e.height/2-(n.top+t.offsetTop);this.result.transformOrigin=`${r}px ${i}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":``});let e=this.showGroup;if(e){let t;for(let n=0;n0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,Fg(Lg,this),Lg.length===0&&document.body.classList.remove(`v-popper--some-open`);for(let e of kg(this.theme)){let t=Bg(e);Fg(t,this),t.length===0&&document.body.classList.remove(`v-popper--some-open--${e}`)}Rg===this&&(Rg=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);let t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners(`scroll`),this.$emit(`apply-hide`),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Ig(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e==`string`?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw Error(`No container for popover: `+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){let e=e=>{this.isShown&&!this.$_hideInProgress||(e.usedByTooltip=!0,!this.$_preventShow&&this.show({event:e}))};this.$_registerTriggerListeners(this.$_targetNodes,Ng,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Ng,this.popperTriggers,this.popperShowTriggers,e);let t=e=>{e.usedByTooltip||this.hide({event:e})};this.$_registerTriggerListeners(this.$_targetNodes,Pg,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Pg,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(e=>e.addEventListener(t,n,Ag?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,r,i){let a=n;r!=null&&(a=typeof r==`function`?r(a):r),a.forEach(n=>{let r=t[n];r&&this.$_registerEventListeners(e,r,i)})},$_removeEventListeners(e){let t=[];this.$_events.forEach(n=>{let{targetNodes:r,eventType:i,handler:a}=n;!e||e===i?r.forEach(e=>e.removeEventListener(i,a)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit(`close-directive`):this.$emit(`auto-hide`),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(let n of this.$_targetNodes){let r=n.getAttribute(e);r&&(n.removeAttribute(e),n.setAttribute(t,r))}},$_applyAttrsToTarget(e){for(let t of this.$_targetNodes)for(let n in e){let r=e[n];r==null?t.removeAttribute(n):t.setAttribute(n,r)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){let e=this.$_referenceNode.getBoundingClientRect();if(Qg>=e.left&&Qg<=e.right&&$g>=e.top&&$g<=e.bottom){let e=this.$_popperNode.getBoundingClientRect(),t=Qg-Xg,n=$g-Zg,r=e.left+e.width/2-Xg+(e.top+e.height/2)-Zg+e.width+e.height,i=Xg+t*r,a=Zg+n*r;return e_(Xg,Zg,i,a,e.left,e.top,e.left,e.bottom)||e_(Xg,Zg,i,a,e.left,e.top,e.right,e.top)||e_(Xg,Zg,i,a,e.right,e.top,e.right,e.bottom)||e_(Xg,Zg,i,a,e.left,e.bottom,e.right,e.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<`u`&&typeof window<`u`){if(jg){let e=Ag?{passive:!0,capture:!0}:!0;document.addEventListener(`touchstart`,e=>Wg(e,!0),e),document.addEventListener(`touchend`,e=>Gg(e,!0),e)}else window.addEventListener(`mousedown`,e=>Wg(e,!1),!0),window.addEventListener(`click`,e=>Gg(e,!1),!0);window.addEventListener(`resize`,Yg)}function Wg(e,t){if(Eg.autoHideOnMousedown)Kg(e,t);else for(let t=0;t=0;r--){let i=Lg[r];try{let r=i.containsGlobalTarget=i.mouseDownContains||i.popperNode().contains(e.target);i.pendingHide=!1,requestAnimationFrame(()=>{if(i.pendingHide=!1,!n[i.randomId]&&qg(i,r,e)){if(i.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&r){let e=i.parentPopper;for(;e;)n[e.randomId]=!0,e=e.parentPopper;return}let a=i.parentPopper;for(;a&&qg(a,a.containsGlobalTarget,e);)a.$_handleGlobalClose(e,t),a=a.parentPopper}})}catch{}}}function qg(e,t,n){return n.closeAllPopover||n.closePopover&&t||Jg(e,n)&&!t}function Jg(e,t){if(typeof e.autoHide==`function`){let n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function Yg(){for(let e=0;e{Xg=Qg,Zg=$g,Qg=e.clientX,$g=e.clientY},Ag?{passive:!0}:void 0);function e_(e,t,n,r,i,a,o,s){let c=((o-i)*(t-a)-(s-a)*(e-i))/((s-a)*(n-e)-(o-i)*(r-t)),l=((n-e)*(t-a)-(r-t)*(e-i))/((s-a)*(n-e)-(o-i)*(r-t));return c>=0&&c<=1&&l>=0&&l<=1}var t_={extends:Ug()},n_=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};function r_(e,t,n,r,i,a){return fs(),_s(`div`,{ref:`reference`,class:_e([`v-popper`,{"v-popper--shown":e.slotData.isShown}])},[_a(e.$slots,`default`,ve(Es(e.slotData)))],2)}var i_=n_(t_,[[`render`,r_]]);function a_(){var e=window.navigator.userAgent,t=e.indexOf(`MSIE `);if(t>0)return parseInt(e.substring(t+5,e.indexOf(`.`,t)),10);if(e.indexOf(`Trident/`)>0){var n=e.indexOf(`rv:`);return parseInt(e.substring(n+3,e.indexOf(`.`,n)),10)}var r=e.indexOf(`Edge/`);return r>0?parseInt(e.substring(r+5,e.indexOf(`.`,r)),10):-1}var o_;function s_(){s_.init||(s_.init=!0,o_=a_()!==-1)}var c_={name:`ResizeObserver`,props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:[`notify`],mounted(){s_(),ir(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});let e=document.createElement(`object`);this._resizeObject=e,e.setAttribute(`aria-hidden`,`true`),e.setAttribute(`tabindex`,-1),e.onload=this.addResizeHandlers,e.type=`text/html`,o_&&this.$el.appendChild(e),e.data=`about:blank`,o_||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit(`notify`,{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener(`resize`,this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!o_&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener(`resize`,this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},l_=br(`data-v-b329ee4c`);vr(`data-v-b329ee4c`);var u_={class:`resize-observer`,tabindex:`-1`};yr(),c_.render=l_((e,t,n,r,i,a)=>(fs(),vs(`div`,u_))),c_.__scopeId=`data-v-b329ee4c`,c_.__file=`src/components/ResizeObserver.vue`;var d_=(e=`theme`)=>({computed:{themeClass(){return Og(this[e])}}}),f_=di({name:`VPopperContent`,components:{ResizeObserver:c_},mixins:[d_()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:[`hide`,`resize`],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),p_=[`id`,`aria-hidden`,`tabindex`,`data-popper-placement`],m_={ref:`inner`,class:`v-popper__inner`},h_=[ws(`div`,{class:`v-popper__arrow-outer`},null,-1),ws(`div`,{class:`v-popper__arrow-inner`},null,-1)];function g_(e,t,n,r,i,a){let o=la(`ResizeObserver`);return fs(),_s(`div`,{id:e.popperId,ref:`popover`,class:_e([`v-popper__popper`,[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:fe(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?`false`:`true`,tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||=du(t=>e.autoHide&&e.$emit(`hide`),[`esc`])},[ws(`div`,{class:`v-popper__backdrop`,onClick:t[0]||=t=>e.autoHide&&e.$emit(`hide`)}),ws(`div`,{class:`v-popper__wrapper`,style:fe(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[ws(`div`,m_,[e.mounted?(fs(),_s(z,{key:0},[ws(`div`,null,[_a(e.$slots,`default`)]),e.handleResize?(fs(),vs(o,{key:0,onNotify:t[1]||=t=>e.$emit(`resize`,t)})):As(``,!0)],64)):As(``,!0)],512),ws(`div`,{ref:`arrow`,class:`v-popper__arrow-container`,style:fe(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},h_,4)],4)],46,p_)}var __=n_(f_,[[`render`,g_]]),v_={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},y_=function(){};typeof window<`u`&&(y_=window.Element);var b_=di({name:`VPopperWrapper`,components:{Popper:i_,PopperContent:__},mixins:[v_,d_(`finalTheme`)],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,y_,Boolean],default:void 0},boundary:{type:[String,y_],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function x_(e,t,n,r,i,a){let o=la(`PopperContent`),s=la(`Popper`);return fs(),vs(s,Ps({ref:`popper`},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||=()=>e.$emit(`show`),onHide:t[1]||=()=>e.$emit(`hide`),"onUpdate:shown":t[2]||=t=>e.$emit(`update:shown`,t),onApplyShow:t[3]||=()=>e.$emit(`apply-show`),onApplyHide:t[4]||=()=>e.$emit(`apply-hide`),onCloseGroup:t[5]||=()=>e.$emit(`close-group`),onCloseDirective:t[6]||=()=>e.$emit(`close-directive`),onAutoHide:t[7]||=()=>e.$emit(`auto-hide`),onResize:t[8]||=()=>e.$emit(`resize`)}),{default:xr(({popperId:t,isShown:n,shouldMountContent:r,skipTransition:i,autoHide:a,show:s,hide:c,handleResize:l,onResize:u,classes:d,result:f})=>[_a(e.$slots,`default`,{shown:n,show:s,hide:c}),V(o,{ref:`popperContent`,"popper-id":t,theme:e.finalTheme,shown:n,mounted:r,"skip-transition":i,"auto-hide":a,"handle-resize":l,classes:d,result:f,onHide:c,onResize:u},{default:xr(()=>[_a(e.$slots,`popper`,{shown:n,hide:c})]),_:2},1032,[`popper-id`,`theme`,`shown`,`mounted`,`skip-transition`,`auto-hide`,`handle-resize`,`classes`,`result`,`onHide`,`onResize`])]),_:3},16,[`theme`,`target-nodes`,`popper-node`,`class`])}var S_=n_(b_,[[`render`,x_]]),C_={...S_,name:`VDropdown`,vPopperTheme:`dropdown`},w_={...S_,name:`VMenu`,vPopperTheme:`menu`},T_={...S_,name:`VTooltip`,vPopperTheme:`tooltip`},E_=di({name:`VTooltipDirective`,components:{Popper:Ug(),PopperContent:__},mixins:[v_],inheritAttrs:!1,props:{theme:{type:String,default:`tooltip`},html:{type:Boolean,default:e=>Dg(e.theme,`html`)},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Dg(e.theme,`loadingContent`)},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content==`function`},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content==`function`&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;let e=++this.$_fetchId,t=this.content(this);t.then?t.then(t=>this.onResult(e,t)):this.onResult(e,t)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),D_=[`innerHTML`],O_=[`textContent`];function k_(e,t,n,r,i,a){let o=la(`PopperContent`),s=la(`Popper`);return fs(),vs(s,Ps({ref:`popper`},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:xr(({popperId:t,isShown:n,shouldMountContent:r,skipTransition:i,autoHide:a,hide:s,handleResize:c,onResize:l,classes:u,result:d})=>[V(o,{ref:`popperContent`,class:_e({"v-popper--tooltip-loading":e.loading}),"popper-id":t,theme:e.theme,shown:n,mounted:r,"skip-transition":i,"auto-hide":a,"handle-resize":c,classes:u,result:d,onHide:s,onResize:l},{default:xr(()=>[e.html?(fs(),_s(`div`,{key:0,innerHTML:e.finalContent},null,8,D_)):(fs(),_s(`div`,{key:1,textContent:Pe(e.finalContent)},null,8,O_))]),_:2},1032,[`class`,`popper-id`,`theme`,`shown`,`mounted`,`skip-transition`,`auto-hide`,`handle-resize`,`classes`,`result`,`onHide`,`onResize`])]),_:1},16,[`theme`,`target-nodes`,`popper-node`,`onApplyShow`,`onApplyHide`])}var A_=n_(E_,[[`render`,k_]]),j_=`v-popper--has-tooltip`;function M_(e,t){let n=e.placement;if(!n&&t)for(let e of Mg)t[e]&&(n=e);return n||=Dg(e.theme||`tooltip`,`placement`),n}function N_(e,t,n){let r,i=typeof t;return r=i===`string`?{content:t}:t&&i===`object`?t:{content:!1},r.placement=M_(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}var P_,F_,I_=0;function L_(){if(P_)return;F_=mn([]),P_=yu({name:`VTooltipDirectiveApp`,setup(){return{directives:F_}},render(){return this.directives.map(e=>oc(A_,{...e.options,shown:e.shown||e.options.shown,key:e.id}))},devtools:{hide:!0}});let e=document.createElement(`div`);document.body.appendChild(e),P_.mount(e)}function R_(e,t,n){L_();let r=mn(N_(e,t,n)),i=mn(!1),a={id:I_++,options:r,shown:i};return F_.value.push(a),e.classList&&e.classList.add(j_),e.$_popper={options:r,item:a,show(){i.value=!0},hide(){i.value=!1}}}function z_(e){if(e.$_popper){let t=F_.value.indexOf(e.$_popper.item);t!==-1&&F_.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(j_)}function B_(e,{value:t,modifiers:n}){let r=N_(e,t,n);if(!r.content||Dg(r.theme||`tooltip`,`disabled`))z_(e);else{let i;e.$_popper?(i=e.$_popper,i.options.value=r):i=R_(e,t,n),typeof t.shown<`u`&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?i.show():i.hide())}}var V_={beforeMount:B_,updated:B_,beforeUnmount(e){z_(e)}};function H_(e){e.addEventListener(`mousedown`,W_),e.addEventListener(`click`,W_),e.addEventListener(`touchstart`,G_,Ag?{passive:!0}:!1)}function U_(e){e.removeEventListener(`mousedown`,W_),e.removeEventListener(`click`,W_),e.removeEventListener(`touchstart`,G_),e.removeEventListener(`touchend`,K_),e.removeEventListener(`touchcancel`,q_)}function W_(e){let t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function G_(e){if(e.changedTouches.length===1){let t=e.currentTarget;t.$_vclosepopover_touch=!0,t.$_vclosepopover_touchPoint=e.changedTouches[0],t.addEventListener(`touchend`,K_),t.addEventListener(`touchcancel`,q_)}}function K_(e){let t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){let n=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function q_(e){let t=e.currentTarget;t.$_vclosepopover_touch=!1}var J_={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>`u`||t)&&H_(e)},updated(e,{value:t,oldValue:n,modifiers:r}){e.$_closePopoverModifiers=r,t!==n&&(typeof t>`u`||t?H_(e):U_(e))},beforeUnmount(e){U_(e)}},Y_=C_,X_=T_;function Z_(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Tg(Eg,t),e.directive(`tooltip`,V_),e.directive(`close-popper`,J_),e.component(`VTooltip`,T_),e.component(`VDropdown`,C_),e.component(`VMenu`,w_))}var Q_={version:`5.2.2`,install:Z_,options:Eg},$_=typeof navigator<`u`&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),ev={install:(e,t={})=>{if(typeof window<`u`&&(window.addEventListener(`vitepress:codeGroupTabActivate`,Yg,{passive:!0}),window.addEventListener(`click`,e=>{e.composedPath().some(e=>e?.classList?.contains?.(`vp-code-group`)||e?.classList?.contains?.(`tabs`))&&Yg()},{passive:!0}),!$_)){let t=!1;window.addEventListener(`mousedown`,()=>{t=!0},{passive:!0}),window.addEventListener(`mouseup`,()=>{t=!1},{passive:!0});let n=e.component;e.component=function(...e){let r=n.apply(this,e);if(e.length>=2&&e[0]===`VMenu`)try{let n=e[1].components.Popper.extends,r=n.methods.show;n.methods.show=function(...e){if(!t)return r.apply(this,e)};let i=n.methods.hide;n.methods.hide=function(...e){if(!t)return i.apply(this,e)}}catch(e){console.error(`Failed to patch FloatingVue`,e)}return r}}e.use(Q_,{strategy:`fixed`,...t,themes:{...t.themes,twoslash:{$extend:`dropdown`,triggers:$_?[`touch`]:[`hover`,`touch`],popperTriggers:$_?[`touch`]:[`hover`,`touch`],placement:`bottom-start`,overflowPadding:10,delay:0,handleResize:!1,autoHide:!0,noAutoFocus:!0,instantMove:!0,flip:!1,arrowPadding:8,autoBoundaryMaxSize:!0,...t.themes?.twoslash??{}},"twoslash-query":{$extend:`twoslash`,triggers:[`click`],popperTriggers:[`click`],autoHide:!1,noAutoFocus:!0,...t.themes?.[`twoslash-query`]??{}},"twoslash-completion":{$extend:`twoslash-query`,triggers:[`click`],popperTriggers:[`click`],autoHide:!1,noAutoFocus:!0,distance:0,arrowOverflow:!0,...t.themes?.[`twoslash-completion`]??{}}}})}};export{xr as $,Tr as A,fs as B,V as C,Es as D,zs as E,Ui as F,fa as G,ha as H,ta as I,Ma as J,da as K,Wi as L,La as M,Ps as N,oc as O,ir as P,jr as Q,Qi as R,Os as S,Pe as St,di as T,_a as U,wr as V,la as W,Mr as X,mi as Y,kr as Z,ac as _,bn as _t,Ac as a,I as at,As as b,ve as bt,Xl as c,tn as ct,du as d,nn as dt,Sr as et,lu as f,an as ft,cs as g,Tn as gt,Vi as h,On as ht,Yg as i,cn as it,ys as j,Er as k,Yl as l,rn as lt,z as m,F as mt,X_ as n,ze as nt,Rl as o,dn as ot,B as p,hn as pt,ao as q,Y_ as r,Be as rt,yu as s,Ve as st,ev as t,wn as tt,Jc as u,mn as ut,ws as v,yn as vt,Ri as w,_s as x,fe as xt,vs as y,_e as yt,na as z}; \ No newline at end of file diff --git a/docs/dist/assets/modules/unplugin-icons-CHgNQGBt.js b/docs/dist/assets/modules/unplugin-icons-CHgNQGBt.js new file mode 100644 index 00000000..bfbf821c --- /dev/null +++ b/docs/dist/assets/modules/unplugin-icons-CHgNQGBt.js @@ -0,0 +1 @@ +import{_ as e,at as t,b as n,z as r}from"./shiki-BmLmNVDB.js";var i={class:`slidev-icon`,viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`};function a(t,a){return r(),n(`svg`,i,[...a[0]||=[e(`path`,{fill:`currentColor`,d:`M200 32h-36.26a47.92 47.92 0 0 0-71.48 0H56a16 16 0 0 0-16 16v168a16 16 0 0 0 16 16h144a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16m-72 0a32 32 0 0 1 32 32H96a32 32 0 0 1 32-32m72 184H56V48h26.75A47.9 47.9 0 0 0 80 64v8a8 8 0 0 0 8 8h80a8 8 0 0 0 8-8v-8a47.9 47.9 0 0 0-2.75-16H200Z`},null,-1)]])}var o=t({name:`ph-clipboard`,render:a}),s={class:`slidev-icon`,viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`};function c(t,i){return r(),n(`svg`,s,[...i[0]||=[e(`path`,{fill:`currentColor`,d:`M173.66 98.34a8 8 0 0 1 0 11.32l-56 56a8 8 0 0 1-11.32 0l-24-24a8 8 0 0 1 11.32-11.32L112 148.69l50.34-50.35a8 8 0 0 1 11.32 0M232 128A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104m-16 0a88 88 0 1 0-88 88a88.1 88.1 0 0 0 88-88`},null,-1)]])}var l=t({name:`ph-check-circle`,render:c}),u={class:`slidev-icon`,viewBox:`0 0 32 32`,width:`1.2em`,height:`1.2em`};function d(t,i){return r(),n(`svg`,u,[...i[0]||=[e(`path`,{fill:`currentColor`,d:`M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6M5.394 6.813L6.81 5.399l3.505 3.506L8.9 10.319zM2 15.005h5v2H2zm3.394 10.193L8.9 21.692l1.414 1.414l-3.505 3.506zM15 25.005h2v5h-2zm6.687-1.9l1.414-1.414l3.506 3.506l-1.414 1.414zm3.313-8.1h5v2h-5zm-3.313-6.101l3.506-3.506l1.414 1.414l-3.506 3.506zM15 2.005h2v5h-2z`},null,-1)]])}var f=t({name:`carbon-sun`,render:d}),p={class:`slidev-icon`,viewBox:`0 0 32 32`,width:`1.2em`,height:`1.2em`};function m(t,i){return r(),n(`svg`,p,[...i[0]||=[e(`path`,{fill:`currentColor`,d:`M13.503 5.414a15.076 15.076 0 0 0 11.593 18.194a11.1 11.1 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1 1 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.07 13.07 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3`},null,-1)]])}var h=t({name:`carbon-moon`,render:m}),g={class:`slidev-icon`,viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`};function _(t,i){return r(),n(`svg`,g,[...i[0]||=[e(`path`,{fill:`currentColor`,d:`m220.49 207.8l-12.69 12.69a12 12 0 0 1-17 0l-56.57-56.57L115 214.08l-.13.33a15.84 15.84 0 0 1-14.61 9.59h-.78a15.82 15.82 0 0 1-14.41-11L32.8 52.92A15.95 15.95 0 0 1 52.92 32.8L213 85.07a16 16 0 0 1 1.41 29.8l-.33.13l-50.16 19.27l56.57 56.56a12 12 0 0 1 0 16.97`},null,-1)]])}var v=t({name:`ph-cursor-fill`,render:_});export{o as a,l as i,h as n,f as r,v as t}; \ No newline at end of file diff --git a/docs/dist/assets/modules/unplugin-icons-SB3WWAiu.js b/docs/dist/assets/modules/unplugin-icons-SB3WWAiu.js deleted file mode 100644 index 819aa365..00000000 --- a/docs/dist/assets/modules/unplugin-icons-SB3WWAiu.js +++ /dev/null @@ -1 +0,0 @@ -import{B as e,ot as t,v as n,x as r}from"./shiki-yoNnvMyB.js";var i={class:`slidev-icon`,viewBox:`0 0 32 32`,width:`1.2em`,height:`1.2em`};function a(t,a){return e(),r(`svg`,i,[...a[0]||=[n(`path`,{fill:`currentColor`,d:`m18 6l-1.43 1.393L24.15 15H4v2h20.15l-7.58 7.573L18 26l10-10z`},null,-1)]])}var o=t({name:`carbon-arrow-right`,render:a}),s={class:`slidev-icon`,viewBox:`0 0 32 32`,width:`1.2em`,height:`1.2em`};function c(t,i){return e(),r(`svg`,s,[...i[0]||=[n(`path`,{fill:`currentColor`,"fill-rule":`evenodd`,d:`M16 2a14 14 0 0 0-4.43 27.28c.7.13 1-.3 1-.67v-2.38c-3.89.84-4.71-1.88-4.71-1.88a3.7 3.7 0 0 0-1.62-2.05c-1.27-.86.1-.85.1-.85a2.94 2.94 0 0 1 2.14 1.45a3 3 0 0 0 4.08 1.16a2.93 2.93 0 0 1 .88-1.87c-3.1-.36-6.37-1.56-6.37-6.92a5.4 5.4 0 0 1 1.44-3.76a5 5 0 0 1 .14-3.7s1.17-.38 3.85 1.43a13.3 13.3 0 0 1 7 0c2.67-1.81 3.84-1.43 3.84-1.43a5 5 0 0 1 .14 3.7a5.4 5.4 0 0 1 1.44 3.76c0 5.38-3.27 6.56-6.39 6.91a3.33 3.33 0 0 1 .95 2.59v3.84c0 .46.25.81 1 .67A14 14 0 0 0 16 2`},null,-1)]])}var l=t({name:`carbon-logo-github`,render:c}),u={class:`slidev-icon`,viewBox:`0 0 32 32`,width:`1.2em`,height:`1.2em`};function d(t,i){return e(),r(`svg`,u,[...i[0]||=[n(`path`,{fill:`currentColor`,d:`M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6M5.394 6.813L6.81 5.399l3.505 3.506L8.9 10.319zM2 15.005h5v2H2zm3.394 10.193L8.9 21.692l1.414 1.414l-3.505 3.506zM15 25.005h2v5h-2zm6.687-1.9l1.414-1.414l3.506 3.506l-1.414 1.414zm3.313-8.1h5v2h-5zm-3.313-6.101l3.506-3.506l1.414 1.414l-3.506 3.506zM15 2.005h2v5h-2z`},null,-1)]])}var f=t({name:`carbon-sun`,render:d}),p={class:`slidev-icon`,viewBox:`0 0 32 32`,width:`1.2em`,height:`1.2em`};function m(t,i){return e(),r(`svg`,p,[...i[0]||=[n(`path`,{fill:`currentColor`,d:`M13.503 5.414a15.076 15.076 0 0 0 11.593 18.194a11.1 11.1 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1 1 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.07 13.07 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3`},null,-1)]])}var h=t({name:`carbon-moon`,render:m}),g={class:`slidev-icon`,viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`};function _(t,i){return e(),r(`svg`,g,[...i[0]||=[n(`path`,{fill:`currentColor`,d:`m220.49 207.8l-12.69 12.69a12 12 0 0 1-17 0l-56.57-56.57L115 214.08l-.13.33a15.84 15.84 0 0 1-14.61 9.59h-.78a15.82 15.82 0 0 1-14.41-11L32.8 52.92A15.95 15.95 0 0 1 52.92 32.8L213 85.07a16 16 0 0 1 1.41 29.8l-.33.13l-50.16 19.27l56.57 56.56a12 12 0 0 1 0 16.97`},null,-1)]])}var v=t({name:`ph-cursor-fill`,render:_});export{o as a,l as i,h as n,f as r,v as t}; \ No newline at end of file diff --git a/docs/dist/assets/modules/vue-5vwy5Re_.js b/docs/dist/assets/modules/vue-5vwy5Re_.js new file mode 100644 index 00000000..498e1f2a --- /dev/null +++ b/docs/dist/assets/modules/vue-5vwy5Re_.js @@ -0,0 +1,5 @@ +import{B as e,D as t,L as n,N as r,O as i,R as a,T as o,X as s,Y as c,_t as l,ct as u,dt as d,et as f,ft as p,g as m,gt as h,ht as g,it as _,k as v,lt as y,m as b,mt as x,nt as S,ot as C,pt as w,q as T,st as E,tt as D,ut as ee,w as O}from"./shiki-BmLmNVDB.js";var k=typeof document<`u`;function A(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function te(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&A(e.default)}var j=Object.assign;function ne(e,t){let n={};for(let r in t){let i=t[r];n[r]=M(i)?i.map(e):e(i)}return n}var re=()=>{},M=Array.isArray;function ie(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var N=Symbol(``);function ae(e,t){return j(Error(),{type:e,[N]:!0},t)}function P(e,t){return e instanceof Error&&N in e&&(t==null||!!(e.type&t))}var oe=Symbol(``),se=Symbol(``),ce=Symbol(``),le=Symbol(``),ue=Symbol(``);function de(){return v(ce)}function fe(e){return v(le)}var pe=/#/g,me=/&/g,he=/\//g,ge=/=/g,_e=/\?/g,ve=/\+/g,ye=/%5B/g,be=/%5D/g,F=/%5E/g,xe=/%60/g,Se=/%7B/g,Ce=/%7C/g,we=/%7D/g,Te=/%20/g;function Ee(e){return e==null?``:encodeURI(``+e).replace(Ce,`|`).replace(ye,`[`).replace(be,`]`)}function De(e){return Ee(e).replace(Se,`{`).replace(we,`}`).replace(F,`^`)}function Oe(e){return Ee(e).replace(ve,`%2B`).replace(Te,`+`).replace(pe,`%23`).replace(me,`%26`).replace(xe,"`").replace(Se,`{`).replace(we,`}`).replace(F,`^`)}function ke(e){return Oe(e).replace(ge,`%3D`)}function Ae(e){return Ee(e).replace(pe,`%23`).replace(_e,`%3F`)}function je(e){return Ae(e).replace(he,`%2F`)}function Me(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var Ne=/\/$/,Pe=e=>e.replace(Ne,``);function Fe(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=Ue(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:Me(o)}}function Ie(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Le(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function Re(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&ze(t.matched[r],n.matched[i])&&Be(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ze(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Be(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Ve(e[n],t[n]))return!1;return!0}function Ve(e,t){return M(e)?He(e,t):M(t)?He(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function He(e,t){return M(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function Ue(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var I={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function We(e){if(!e)if(k){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),Pe(e)}var Ge=/^[^#]+#/;function Ke(e,t){return e.replace(Ge,`#`)+t}function qe(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var Je=()=>({left:window.scrollX,top:window.scrollY});function Ye(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=qe(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Xe(e,t){return(history.state?history.state.position-t:-1)+e}var Ze=new Map;function Qe(e,t){Ze.set(e,t)}function $e(e){let t=Ze.get(e);return Ze.delete(e),t}function et(e){return typeof e==`string`||e&&typeof e==`object`}function tt(e){return typeof e==`string`||typeof e==`symbol`}function nt(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;ee&&Oe(e)):[r&&Oe(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function it(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=M(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function at(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function L(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(ae(4,{from:n,to:t})):e instanceof Error?c(e):et(e)?c(ae(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function ot(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(A(s)){let c=(s.__vccOpts||s)[t];c&&a.push(L(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=te(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&L(c,n,r,o,e,i)()}))}}return a}function st(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;oze(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>ze(e,s))||i.push(s))}return[n,r,i]}var ct=()=>location.protocol+`//`+location.host;function lt(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Le(n,``)}return Le(n,e)+r+i}function ut(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=lt(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(j({},e.state,{scroll:Je()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function dt(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Je():null}}function ft(e){let{history:t,location:n}=window,r={value:lt(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:ct()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,j({},t.state,dt(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=j({},i.value,t.state,{forward:e,scroll:Je()});a(o.current,o,!0),a(e,j({},dt(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function pt(e){e=We(e);let t=ft(e),n=ut(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=j({location:``,base:e,go:r,createHref:Ke.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}var mt={type:0,value:``},ht=/[a-zA-Z0-9_]/;function gt(e){if(!e)return[[]];if(e===`/`)return[[mt]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;st.length?t.length===1&&t[0]===80?1:-1:0}function St(e,t){let n=0,r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}var wt={strict:!1,end:!0,sensitive:!1};function Tt(e,t,n){let r=j(bt(gt(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Et(e,t){let n=[],r=new Map;t=ie(wt,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Ot(e);s.aliasOf=r&&r.record;let l=ie(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Ot(j({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Tt(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!At(d)&&o(e.name)),Pt(d)&&c(d),s.children){let e=s.children;for(let t=0;t{o(f)}:re}function o(e){if(tt(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Mt(e,n);n.splice(t,0,e),e.record.name&&!At(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw ae(1,{location:e});s=i.record.name,a=j(Dt(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Dt(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw ae(1,{location:e,currentLocation:t});s=i.record.name,a=j({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:jt(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Dt(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Ot(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:kt(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function kt(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function At(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function jt(e){return e.reduce((e,t)=>j(e,t.meta),{})}function Mt(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;St(e,t[i])<0?r=i:n=i+1}let i=Nt(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Nt(e){let t=e;for(;t=t.parent;)if(Pt(t)&&St(e,t)===0)return t}function Pt({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ft(e){let t=v(ce),n=v(le),r=m(()=>{let n=l(e.to);return t.resolve(n)}),i=m(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(ze.bind(null,i));if(o>-1)return o;let s=Bt(e[t-2]);return t>1&&Bt(i)===s&&a[a.length-1].path!==s?a.findIndex(ze.bind(null,e[t-2])):o}),a=m(()=>i.value>-1&&zt(n.params,r.value.params)),o=m(()=>i.value>-1&&i.value===n.matched.length-1&&Be(n.params,r.value.params));function s(n={}){if(Rt(n)){let n=t[l(e.replace)?`replace`:`push`](l(e.to)).catch(re);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:m(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function It(e){return e.length===1?e[0]:e}var Lt=O({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:Ft,setup(e,{slots:n}){let r=E(Ft(e)),{options:i}=v(ce),a=m(()=>({[Vt(e.activeClass,i.linkActiveClass,`router-link-active`)]:r.isActive,[Vt(e.exactActiveClass,i.linkExactActiveClass,`router-link-exact-active`)]:r.isExactActive}));return()=>{let i=n.default&&It(n.default(r));return e.custom?i:t(`a`,{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},i)}}});function Rt(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function zt(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!M(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function Bt(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Vt=(e,t,n)=>e??t??n,Ht=O({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(n,{attrs:r,slots:i}){let a=v(ue),o=m(()=>n.route||a.value),s=v(se,0),u=m(()=>{let e=l(s),{matched:t}=o.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),d=m(()=>o.value.matched[u.value]);e(se,m(()=>u.value+1)),e(oe,d),e(ue,o);let f=y();return c(()=>[f.value,d.value,n.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!ze(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let e=o.value,a=n.name,s=d.value,c=s&&s.components[a];if(!c)return Ut(i.default,{Component:c,route:e});let l=s.props[a],u=t(c,j({},l?l===!0?e.params:typeof l==`function`?l(e):l:null,r,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[a]=null)},ref:f}));return Ut(i.default,{Component:u,route:e})||u}}});function Ut(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Wt=Ht;function Gt(e){let t=Et(e.routes,e),n=e.parseQuery||nt,i=e.stringifyQuery||rt,a=e.history,o=at(),s=at(),c=at(),u=p(I),d=I;k&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let f=ne.bind(null,e=>``+e),m=ne.bind(null,je),h=ne.bind(null,Me);function g(e,n){let r,i;return tt(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function _(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function v(){return t.getRoutes().map(e=>e.record)}function y(e){return!!t.getRecordMatcher(e)}function b(e,r){if(r=j({},r||u.value),typeof e==`string`){let i=Fe(n,e,r.path),o=t.resolve({path:i.path},r),s=a.createHref(i.fullPath);return j(i,o,{params:h(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=j({},e,{path:Fe(n,e.path,r.path).path});else{let t=j({},e.params);for(let e in t)t[e]??delete t[e];o=j({},e,{params:m(t)}),r.params=m(r.params)}let s=t.resolve(o,r),c=e.hash||``;s.params=f(h(s.params));let l=Ie(i,j({},e,{hash:De(c),path:s.path})),d=a.createHref(l);return j({fullPath:l,hash:c,query:i===rt?it(e.query):e.query||{}},s,{redirectedFrom:void 0,href:d})}function x(e){return typeof e==`string`?Fe(n,e,u.value.path):j({},e)}function S(e,t){if(d!==e)return ae(8,{from:t,to:e})}function C(e){return E(e)}function w(e){return C(j(x(e),{replace:!0}))}function T(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=x(i):{path:i},i.params={}),j({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function E(e,t){let n=d=b(e),r=u.value,a=e.state,o=e.force,s=e.replace===!0,c=T(n,r);if(c)return E(j(x(c),{state:typeof c==`object`?j({},a,c.state):a,force:o,replace:s}),t||n);let l=n;l.redirectedFrom=t;let f;return!o&&Re(i,r,n)&&(f=ae(16,{to:l,from:r}),ge(r,r,!0,!1)),(f?Promise.resolve(f):A(l,r)).catch(e=>P(e)?P(e,2)?e:he(e):pe(e,l,r)).then(e=>{if(e){if(P(e,2))return E(j({replace:s},x(e.to),{state:typeof e.to==`object`?j({},a,e.to.state):a,force:o}),t||l)}else e=ie(l,r,!0,s,a);return te(l,r,e),e})}function D(e,t){let n=S(e,t);return n?Promise.reject(n):Promise.resolve()}function O(e){let t=ye.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function A(e,t){let n,[r,i,a]=st(e,t);n=ot(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(L(r,e,t))});let c=D.bind(null,e,t);return n.push(c),F(n).then(()=>{n=[];for(let r of o.list())n.push(L(r,e,t));return n.push(c),F(n)}).then(()=>{n=ot(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(L(r,e,t))});return n.push(c),F(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter)if(M(r.beforeEnter))for(let i of r.beforeEnter)n.push(L(i,e,t));else n.push(L(r.beforeEnter,e,t));return n.push(c),F(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=ot(a,`beforeRouteEnter`,e,t,O),n.push(c),F(n))).then(()=>{n=[];for(let r of s.list())n.push(L(r,e,t));return n.push(c),F(n)}).catch(e=>P(e,8)?e:Promise.reject(e))}function te(e,t,n){c.list().forEach(r=>O(()=>r(e,t,n)))}function ie(e,t,n,r,i){let o=S(e,t);if(o)return o;let s=t===I,c=k?history.state:{};n&&(r||s?a.replace(e.fullPath,j({scroll:s&&c&&c.scroll},i)):a.push(e.fullPath,i)),u.value=e,ge(e,t,n,s),he()}let N;function oe(){N||=a.listen((e,t,n)=>{if(!be.listening)return;let r=b(e),i=T(r,be.currentRoute.value);if(i){E(j(i,{replace:!0,force:!0}),r).catch(re);return}d=r;let o=u.value;k&&Qe(Xe(o.fullPath,n.delta),Je()),A(r,o).catch(e=>P(e,12)?e:P(e,2)?(E(j(x(e.to),{force:!0}),r).then(e=>{P(e,20)&&!n.delta&&n.type===`pop`&&a.go(-1,!1)}).catch(re),Promise.reject()):(n.delta&&a.go(-n.delta,!1),pe(e,r,o))).then(e=>{e||=ie(r,o,!1),e&&(n.delta&&!P(e,8)?a.go(-n.delta,!1):n.type===`pop`&&P(e,20)&&a.go(-1,!1)),te(r,o,e)}).catch(re)})}let se=at(),de=at(),fe;function pe(e,t,n){he(e);let r=de.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function me(){return fe&&u.value!==I?Promise.resolve():new Promise((e,t)=>{se.add([e,t])})}function he(e){return fe||(fe=!e,oe(),se.list().forEach(([t,n])=>e?n(e):t()),se.reset()),e}function ge(t,n,i,a){let{scrollBehavior:o}=e;if(!k||!o)return Promise.resolve();let s=!i&&$e(Xe(t.fullPath,0))||(a||!i)&&history.state&&history.state.scroll||null;return r().then(()=>o(t,n,s)).then(e=>e&&Ye(e)).catch(e=>pe(e,t,n))}let _e=e=>a.go(e),ve,ye=new Set,be={currentRoute:u,listening:!0,addRoute:g,removeRoute:_,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:v,resolve:b,options:e,push:C,replace:w,go:_e,back:()=>_e(-1),forward:()=>_e(1),beforeEach:o.add,beforeResolve:s.add,afterEach:c.add,onError:de.add,isReady:me,install(e){e.component(`RouterLink`,Lt),e.component(`RouterView`,Wt),e.config.globalProperties.$router=be,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>l(u)}),k&&!ve&&u.value===I&&(ve=!0,C(a.location).catch(e=>{}));let t={};for(let e in I)Object.defineProperty(t,e,{get:()=>u.value[e],enumerable:!0});e.provide(ce,be),e.provide(le,ee(t)),e.provide(ue,u);let n=e.unmount;ye.add(e),e.unmount=function(){ye.delete(e),ye.size<1&&(d=I,N&&N(),N=null,u.value=I,ve=!1,fe=!1),n()}}};function F(e){return e.reduce((e,t)=>e.then(()=>O(t)),Promise.resolve())}return be}function R(e,t){return S()?(C(e,t),!0):!1}var Kt=new WeakMap,qt=(...e)=>{let t=e[0],n=o()?.proxy??S();if(n==null&&!i())throw Error(`injectLocal must be called in setup`);return n&&Kt.has(n)&&t in Kt.get(n)?Kt.get(n)[t]:v(...e)};function Jt(t,n){let r=o()?.proxy??S();if(r==null)throw Error(`provideLocal must be called in setup`);Kt.has(r)||Kt.set(r,Object.create(null));let i=Kt.get(r);return i[t]=n,e(t,n)}var z=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var Yt=e=>e!==void 0,Xt=e=>e!=null,Zt=Object.prototype.toString,Qt=e=>Zt.call(e)===`[object Object]`,$t=()=>+Date.now(),B=()=>{},en=tn();function tn(){var e,t;return z&&!!(!((e=window)==null||(e=e.navigator)==null)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function nn(...e){if(e.length!==1)return x(...e);let t=e[0];return typeof t==`function`?u(f(()=>({get:t,set:B}))):y(t)}function rn(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}var an=e=>e();function on(e,t={}){let n,r,i=B,a=e=>{clearTimeout(e),i(),i=B},o;return s=>{let c=h(e),l=h(t.maxWait);return n&&a(n),c<=0||l!==void 0&&l<=0?(r&&=(a(r),void 0),Promise.resolve(s())):new Promise((e,u)=>{i=t.rejectOnCancel?u:e,o=s,l&&!r&&(r=setTimeout(()=>{n&&a(n),r=void 0,e(o())},l)),n=setTimeout(()=>{r&&a(r),r=void 0,e(s())},c)})}}function sn(e=an,t={}){let{initialState:n=`active`}=t,r=nn(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:d(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function cn(e){let t;function n(){return t||=e(),t}return n.reset=async()=>{let e=t;t=void 0,e&&await e},n}function ln(e,t){if(typeof e==`number`)return e+t;let n=e.match(/^-?\d+\.?\d*/)?.[0]||``,r=e.slice(n.length),i=Number.parseFloat(n)+t;return Number.isNaN(i)?e:i+r}function un(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function dn(e,t,n=!1){return Object.fromEntries(Object.entries(e).filter(([e,r])=>(!n||r!==void 0)&&!t.includes(e)))}function fn(e){return Array.isArray(e)?e:[e]}function pn(e){return e||o()}function mn(e){if(!z)return e;let t=0,n,r,i=()=>{--t,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return((...a)=>(t+=1,r||(r=D(!0),n=r.run(()=>e(...a))),R(i),n))}function hn(e,t,n={}){let{eventFilter:r=an,...i}=n;return c(e,rn(r,t),i)}function gn(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=sn(r,{initialState:i});return{stop:hn(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function _n(e,t={}){if(!_(e))return g(e);let n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(let r in e.value)n[r]=f(()=>({get(){return e.value[r]},set(n){if(h(t.replaceRef)??!0)if(Array.isArray(e.value)){let t=[...e.value];t[r]=n,e.value=t}else{let t={...e.value,[r]:n};Object.setPrototypeOf(t,Object.getPrototypeOf(e.value)),e.value=t}else e.value[r]=n}}));return n}function V(e,t=!0,i){pn(i)?n(e,i):t?e():r(e)}function vn(e,t=1e3,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=null,o=p(!1);function s(){a&&=(clearInterval(a),null)}function l(){o.value=!1,s()}function u(){let n=h(t);n<=0||(o.value=!0,i&&e(),s(),o.value&&(a=setInterval(e,n)))}return r&&z&&u(),(_(t)||typeof t==`function`)&&R(c(t,()=>{o.value&&z&&u()})),R(l),{isActive:d(o),pause:l,resume:u}}function yn(e=1e3,t={}){let{controls:n=!1,immediate:r=!0,callback:i}=t,a=p(0),o=()=>a.value+=1,s=()=>{a.value=0},c=vn(i?()=>{o(),i(a.value)}:o,e,{immediate:r});return n?{counter:d(a),reset:s,...c}:d(a)}function bn(e,t,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=p(!1),o;function s(){o&&=(clearTimeout(o),void 0)}function c(){a.value=!1,s()}function l(...n){i&&e(),s(),a.value=!0,o=setTimeout(()=>{a.value=!1,o=void 0,e(...n)},h(t))}return r&&(a.value=!0,z&&l()),R(c),{isPending:d(a),start:l,stop:c}}function xn(e=!1,t={}){let{truthyValue:n=!0,falsyValue:r=!1}=t,i=_(e),a=p(e);function o(e){if(arguments.length)return a.value=e,a.value;{let e=h(n);return a.value=a.value===e?h(r):e,a.value}}return i?o:[a,o]}function Sn(e,t,n={}){let{debounce:r=0,maxWait:i=void 0,...a}=n;return hn(e,t,{...a,eventFilter:on(r,{maxWait:i})})}var Cn=Sn;function wn(e,t,n={}){let{eventFilter:r=an,...i}=n,a=rn(r,t),o,s,l;if(i.flush===`sync`){let t=!1;s=()=>{},o=e=>{t=!0,e(),t=!1},l=c(e,(...e)=>{t||a(...e)},i)}else{let t=[],n=0,r=0;s=()=>{n=r},t.push(c(e,()=>{r++},{...i,flush:`sync`})),o=e=>{let t=r;e(),n+=r-t},t.push(c(e,(...e)=>{let t=n>0&&n===r;n=0,r=0,!t&&a(...e)},i)),l=()=>{t.forEach(e=>e())}}return{stop:l,ignoreUpdates:o,ignorePrevAsyncUpdates:s}}var Tn=wn;function En(e,t,n){return c(e,t,{...n,immediate:!0})}function Dn(e,t,n){let i=c(e,(e,a,o)=>{e&&(n?.once&&r(()=>i()),t(e,a,o))},{...n,once:!1});return i}var H=z?window:void 0,On=z?window.document:void 0,kn=z?window.navigator:void 0;z&&window.location;function U(e){let t=h(e);return t?.$el??t}function W(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=m(()=>{let t=fn(h(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return En(()=>[n.value?.map(e=>U(e))??[H].filter(e=>e!=null),fn(h(n.value?e[1]:e[0])),fn(l(n.value?e[2]:e[1])),h(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=Qt(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}var An=!1;function jn(e,t,n={}){let{window:r=H,ignore:i=[],capture:a=!0,detectIframe:o=!1,controls:s=!1}=n;if(!r)return s?{stop:B,cancel:B,trigger:B}:B;if(en&&!An){An=!0;let e={passive:!0};Array.from(r.document.body.children).forEach(t=>t.addEventListener(`click`,B,e)),r.document.documentElement.addEventListener(`click`,B,e)}let c=!0,l=e=>h(i).some(t=>{if(typeof t==`string`)return Array.from(r.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{let n=U(t);return n&&(e.target===n||e.composedPath().includes(n))}});function u(e){let t=h(e);return t&&t.$.subTree.shapeFlag===16}function d(e,t){let n=h(e),r=n.$.subTree&&n.$.subTree.children;return r==null||!Array.isArray(r)?!1:r.some(e=>e.el===t.target||t.composedPath().includes(e.el))}let f=n=>{let r=U(e);if(n.target!=null&&!(!(r instanceof Element)&&u(e)&&d(e,n))&&!(!r||r===n.target||n.composedPath().includes(r))){if(`detail`in n&&n.detail===0&&(c=!l(n)),!c){c=!0;return}t(n)}},p=!1,m=[W(r,`click`,e=>{p||(p=!0,setTimeout(()=>{p=!1},0),f(e))},{passive:!0,capture:a}),W(r,`pointerdown`,t=>{let n=U(e);c=!l(t)&&!!(n&&!t.composedPath().includes(n))},{passive:!0}),o&&W(r,`blur`,n=>{setTimeout(()=>{let i=U(e),a=r.document.activeElement;for(;a?.shadowRoot;)a=a.shadowRoot.activeElement;a?.tagName===`IFRAME`&&!i?.contains(r.document.activeElement)&&t(n)},0)},{passive:!0})].filter(Boolean),g=()=>m.forEach(e=>e());return s?{stop:g,cancel:()=>{c=!1},trigger:e=>{c=!0,f(e),c=!1}}:g}function Mn(){let e=p(!1),t=o();return t&&n(()=>{e.value=!0},t),e}function G(e){let t=Mn();return m(()=>(t.value,!!e()))}function Nn(e,t,n={}){let{window:r=H,...i}=n,a,o=G(()=>r&&`MutationObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},l=c(m(()=>{let t=fn(h(e)).map(U).filter(Xt);return new Set(t)}),e=>{s(),o.value&&e.size&&(a=new MutationObserver(t),e.forEach(e=>a.observe(e,i)))},{immediate:!0,flush:`post`}),u=()=>a?.takeRecords(),d=()=>{l(),s()};return R(d),{isSupported:o,stop:d,takeRecords:u}}function Pn(e,t,n={}){let{window:r=H,document:i=r?.document,flush:a=`sync`}=n;if(!r||!i)return B;let o,c=e=>{o?.(),o=e},l=s(()=>{let n=U(e);if(n){let{stop:e}=Nn(i,e=>{e.map(e=>[...e.removedNodes]).flat().some(e=>e===n||e.contains(n))&&t(e)},{window:r,childList:!0,subtree:!0});c(e)}},{flush:a}),u=()=>{l(),c()};return R(u),u}function Fn(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function In(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]==`object`?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);let{target:i=H,eventName:a=`keydown`,passive:o=!1,dedupe:s=!1}=r,c=Fn(t);return W(i,a,e=>{e.repeat&&h(s)||c(e)&&n(e)},o)}function Ln(e={}){let{window:t=H,deep:n=!0,triggerOnRemoval:r=!1}=e,i=e.document??t?.document,a=()=>{let e=i?.activeElement;if(n)for(var t;e?.shadowRoot;)e=e==null||(t=e.shadowRoot)==null?void 0:t.activeElement;return e},o=p(),s=()=>{o.value=a()};if(t){let e={capture:!0,passive:!0};W(t,`blur`,e=>{e.relatedTarget===null&&s()},e),W(t,`focus`,s,e)}return r&&Pn(o,s,{document:i}),s(),o}var Rn=Symbol(`vueuse-ssr-width`);function zn(){let e=i()?qt(Rn,null):null;return typeof e==`number`?e:void 0}function K(e,t={}){let{window:n=H,ssrWidth:r=zn()}=t,i=G(()=>n&&`matchMedia`in n&&typeof n.matchMedia==`function`),a=p(typeof r==`number`),o=p(),c=p(!1);return s(()=>{if(a.value){a.value=!i.value,c.value=h(e).split(`,`).some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),i=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||i);return n&&a&&(a=r>=un(n[1])),i&&a&&(a=r<=un(i[1])),t?!a:a});return}i.value&&(o.value=n.matchMedia(h(e)),c.value=o.value.matches)}),W(o,`change`,e=>{c.value=e.matches},{passive:!0}),m(()=>c.value)}var Bn={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function Vn(e,t={}){function n(t,n){let r=h(e[h(t)]);return n!=null&&(r=ln(r,n)),typeof r==`number`&&(r=`${r}px`),r}let{window:r=H,strategy:i=`min-width`,ssrWidth:a=zn()}=t,o=typeof a==`number`,s=o?p(!1):{value:!0};o&&V(()=>s.value=!!r);function c(e,t){return!s.value&&o?e===`min`?a>=un(t):a<=un(t):r?r.matchMedia(`(${e}-width: ${t})`).matches:!1}let l=e=>K(()=>`(min-width: ${n(e)})`,t),u=e=>K(()=>`(max-width: ${n(e)})`,t),d=Object.keys(e).reduce((e,t)=>(Object.defineProperty(e,t,{get:()=>i===`min-width`?l(t):u(t),enumerable:!0,configurable:!0}),e),{});function f(){let t=Object.keys(e).map(e=>[e,d[e],un(n(e))]).sort((e,t)=>e[2]-t[2]);return m(()=>t.filter(([,e])=>e.value).map(([e])=>e))}return Object.assign(d,{greaterOrEqual:l,smallerOrEqual:u,greater(e){return K(()=>`(min-width: ${n(e,.1)})`,t)},smaller(e){return K(()=>`(max-width: ${n(e,-.1)})`,t)},between(e,r){return K(()=>`(min-width: ${n(e)}) and (max-width: ${n(r,-.1)})`,t)},isGreater(e){return c(`min`,n(e,.1))},isGreaterOrEqual(e){return c(`min`,n(e))},isSmaller(e){return c(`max`,n(e,-.1))},isSmallerOrEqual(e){return c(`max`,n(e))},isInBetween(e,t){return c(`min`,n(e))&&c(`max`,n(t,-.1))},current:f,active(){let e=f();return m(()=>e.value.length===0?``:e.value.at(i===`min-width`?-1:0))}})}function Hn(e,t={}){let{controls:n=!1,navigator:r=kn}=t,i=G(()=>r&&`permissions`in r),a=p(),o=typeof e==`string`?{name:e}:e,s=p(),c=()=>{s.value=a.value?.state??`prompt`};W(a,`change`,c,{passive:!0});let l=cn(async()=>{if(i.value){if(!a.value)try{a.value=await r.permissions.query(o)}catch{a.value=void 0}finally{c()}if(n)return w(a.value)}});return l(),n?{state:s,isSupported:i,query:l}:s}function Un(e={}){let{navigator:t=kn,read:n=!1,source:r,copiedDuring:i=1500,legacy:a=!1}=e,o=G(()=>t&&`clipboard`in t),s=Hn(`clipboard-read`),c=Hn(`clipboard-write`),l=m(()=>o.value||a),u=p(``),f=p(!1),g=p(!1),_=bn(()=>f.value=!1,i,{immediate:!1}),v=0;async function y(){let e=!(o.value&&w(s.value));if(!e)try{u.value=await t.clipboard.readText()}catch{e=!0}e&&(u.value=C())}l.value&&n&&W([`copy`,`cut`],y,{passive:!0});async function b(e){let n=e??h(r);if(l.value&&n!=null){g.value=!0;let e=!(o.value&&w(c.value));if(!e)try{let e=x(n);await t.clipboard.write([e])}catch{e=!0}if(e)if(typeof n==`string`)u.value=n,S(n);else{let e=++v,t=await n();t!=null&&e===v&&(u.value=t,S(t))}f.value=!0,_.start(),g.value=!1}}function x(e){return typeof e==`string`?(u.value=e,new ClipboardItem({"text/plain":e})):new ClipboardItem({"text/plain":e().then((e=``)=>(u.value=e,new Blob([e],{type:`text/plain`})))})}function S(e){let t=document.createElement(`textarea`);t.value=e,t.style.position=`absolute`,t.style.opacity=`0`,t.setAttribute(`readonly`,``),document.body.appendChild(t),t.select(),document.execCommand(`copy`),t.remove()}function C(){var e,t;return((e=document)==null||(t=e.getSelection)==null||(t=t.call(e))==null?void 0:t.toString())??``}function w(e){return e===`granted`||e===`prompt`}return{copyPending:d(g),isSupported:l,text:d(u),copied:d(f),copy:b}}function Wn(e){return JSON.parse(JSON.stringify(e))}var Gn=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},Kn=`__vueuse_ssr_handlers__`,qn=Jn();function Jn(){return Kn in Gn||(Gn[Kn]=Gn[Kn]||{}),Gn[Kn]}function Yn(e,t){return qn[e]||t}function Xn(e){return K(`(prefers-color-scheme: dark)`,e)}function Zn(e){return e==null?`any`:e instanceof Set?`set`:e instanceof Map?`map`:e instanceof Date?`date`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:typeof e==`object`?`object`:Number.isNaN(e)?`any`:`number`}var Qn={boolean:{read:e=>e===`true`,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},$n=`vueuse-storage`;function er(e,t,n,i={}){let{flush:a=`pre`,deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:d,window:f=H,eventFilter:g,onError:_=e=>{console.error(e)},initOnMounted:v}=i,b=(d?p:y)(typeof t==`function`?t():t),x=m(()=>h(e));if(!n)try{n=Yn(`getDefaultStorage`,()=>H?.localStorage)()}catch(e){_(e)}if(!n)return b;let S=h(t),C=Zn(S),w=i.serializer??Qn[C],{pause:T,resume:E}=gn(b,e=>O(e),{flush:a,deep:o,eventFilter:g});c(x,()=>A(),{flush:a});let D=!1;f&&s&&(n instanceof Storage?W(f,`storage`,e=>{v&&!D||A(e)},{passive:!0}):W(f,$n,e=>{v&&!D||te(e)})),v?V(()=>{D=!0,A()}):A();function ee(e,t){if(f){let r={key:x.value,oldValue:e,newValue:t,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent(`storage`,r):new CustomEvent($n,{detail:r}))}}function O(e){try{let t=n.getItem(x.value);if(e==null)ee(t,null),n.removeItem(x.value);else{let r=w.write(e);t!==r&&(n.setItem(x.value,r),ee(t,r))}}catch(e){_(e)}}function k(e){let t=e?e.newValue:n.getItem(x.value);if(t==null)return l&&S!=null&&n.setItem(x.value,w.write(S)),S;if(!e&&u){let e=w.read(t);return typeof u==`function`?u(e,S):C===`object`&&!Array.isArray(e)?{...S,...e}:e}else if(typeof t!=`string`)return t;else return w.read(t)}function A(e){if(!(e&&e.storageArea!==n)){if(e&&e.key==null){b.value=S;return}if(!(e&&e.key!==x.value)){T();try{let t=w.write(b.value);(e===void 0||e?.newValue!==t)&&(b.value=k(e))}catch(e){_(e)}finally{e?r(E):E()}}}}function te(e){A(e.detail)}return b}function tr(e={}){let{document:t=On}=e;if(!t)return p(`visible`);let n=p(t.visibilityState);return W(t,`visibilitychange`,()=>{n.value=t.visibilityState},{passive:!0}),n}var nr={speed:2,margin:30,direction:`both`};function rr(e){e.scrollLeft>e.scrollWidth-e.clientWidth&&(e.scrollLeft=Math.max(0,e.scrollWidth-e.clientWidth)),e.scrollTop>e.scrollHeight-e.clientHeight&&(e.scrollTop=Math.max(0,e.scrollHeight-e.clientHeight))}function ir(e,t={}){let{pointerTypes:n,preventDefault:r,stopPropagation:i,exact:a,onMove:o,onEnd:s,onStart:l,initialValue:u,axis:d=`both`,draggingElement:f=H,containerElement:p,handle:g=e,buttons:_=[0],restrictInView:v,autoScroll:b=!1}=t,x=y(h(u)??{x:0,y:0}),S=y(),C=e=>n?n.includes(e.pointerType):!0,w=e=>{h(r)&&e.preventDefault(),h(i)&&e.stopPropagation()},T=h(b),E=typeof T==`object`?{speed:h(T.speed)??nr.speed,margin:h(T.margin)??nr.margin,direction:T.direction??nr.direction}:nr,D=e=>typeof e==`number`?[e,e]:[e.x,e.y],ee=(e,t,n)=>{let{clientWidth:r,clientHeight:i,scrollLeft:a,scrollTop:o,scrollWidth:s,scrollHeight:c}=e,[l,u]=D(E.margin),[d,f]=D(E.speed),p=0,m=0;(E.direction===`x`||E.direction===`both`)&&(n.x0?p=-d:n.x+t.width>r-l&&a0?m=-f:n.y+t.height>i-u&&o{let t=h(p);t&&!O&&(O=setInterval(()=>{let n=h(e).getBoundingClientRect(),{x:r,y:i}=x.value,a={x:r-t.scrollLeft,y:i-t.scrollTop};a.x>=0&&a.y>=0&&(ee(t,n,a),a.x+=t.scrollLeft,a.y+=t.scrollTop,x.value=a)},1e3/60))},A=()=>{O&&=(clearInterval(O),null)},te=(e,t,n,r)=>{let[i,a]=typeof n==`number`?[n,n]:[n.x,n.y],{clientWidth:o,clientHeight:s}=t;return e.xo-i||e.ys-a};h(b)&&c(x,()=>{if(h(t.disabled)||!S.value)return;let n=h(p);if(!n)return;let r=h(e).getBoundingClientRect(),{x:i,y:a}=x.value;te({x:i-n.scrollLeft,y:a-n.scrollTop},n,E.margin,r)?k():A()});let j=n=>{var r;if(!h(_).includes(n.button)||h(t.disabled)||!C(n)||h(a)&&n.target!==h(e))return;let i=h(p),o=i==null||(r=i.getBoundingClientRect)==null?void 0:r.call(i),s=h(e).getBoundingClientRect(),c={x:n.clientX-(i?s.left-o.left+(b?0:i.scrollLeft):s.left),y:n.clientY-(i?s.top-o.top+(b?0:i.scrollTop):s.top)};l?.(c,n)!==!1&&(S.value=c,w(n))},ne=n=>{if(h(t.disabled)||!C(n)||!S.value)return;let r=h(p);r instanceof HTMLElement&&rr(r);let i=h(e).getBoundingClientRect(),{x:a,y:s}=x.value;if((d===`x`||d===`both`)&&(a=n.clientX-S.value.x,r&&(a=Math.min(Math.max(0,a),r.scrollWidth-i.width))),(d===`y`||d===`both`)&&(s=n.clientY-S.value.y,r&&(s=Math.min(Math.max(0,s),r.scrollHeight-i.height))),h(b)&&r&&(O===null&&ee(r,i,{x:a,y:s}),a+=r.scrollLeft,s+=r.scrollTop),r&&(v||b)){if(d!==`y`){let e=a-r.scrollLeft;e<0?a=r.scrollLeft:e>r.clientWidth-i.width&&(a=r.clientWidth-i.width+r.scrollLeft)}if(d!==`x`){let e=s-r.scrollTop;e<0?s=r.scrollTop:e>r.clientHeight-i.height&&(s=r.clientHeight-i.height+r.scrollTop)}}x.value={x:a,y:s},o?.(x.value,n),w(n)},re=e=>{h(t.disabled)||!C(e)||S.value&&(S.value=void 0,b&&A(),s?.(x.value,e),w(e))};if(z){let e=()=>({capture:t.capture??!0,passive:!h(r)});W(g,`pointerdown`,j,e),W(f,`pointermove`,ne,e),W(f,`pointerup`,re,e)}return{..._n(x),position:x,isDragging:m(()=>!!S.value),style:m(()=>` + left: ${x.value.x}px; + top: ${x.value.y}px; + ${b?`text-wrap: nowrap;`:``} + `)}}function ar(e,t,n={}){let{window:r=H,...i}=n,a,o=G(()=>r&&`ResizeObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},l=c(m(()=>{let t=h(e);return Array.isArray(t)?t.map(e=>U(e)):[U(t)]}),e=>{if(s(),o.value&&r){a=new ResizeObserver(t);for(let t of e)t&&a.observe(t,i)}},{immediate:!0,flush:`post`}),u=()=>{s(),l()};return R(u),{isSupported:o,stop:u}}function or(e,t={}){let{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:a=!0,updateTiming:o=`sync`}=t,s=p(0),l=p(0),u=p(0),d=p(0),f=p(0),m=p(0),h=p(0),g=p(0);function _(){let t=U(e);if(!t){n&&(s.value=0,l.value=0,u.value=0,d.value=0,f.value=0,m.value=0,h.value=0,g.value=0);return}let r=t.getBoundingClientRect();s.value=r.height,l.value=r.bottom,u.value=r.left,d.value=r.right,f.value=r.top,m.value=r.width,h.value=r.x,g.value=r.y}function v(){o===`sync`?_():o===`next-frame`&&requestAnimationFrame(()=>_())}return ar(e,v),c(()=>U(e),e=>!e&&v()),Nn(e,v,{attributeFilter:[`style`,`class`]}),i&&W(`scroll`,v,{capture:!0,passive:!0}),r&&W(`resize`,v,{passive:!0}),V(()=>{a&&v()}),{height:s,bottom:l,left:u,right:d,top:f,width:m,x:h,y:g,update:v}}function sr(e,t={width:0,height:0},n={}){let{window:r=H,box:i=`content-box`}=n,a=m(()=>{var t;return(t=U(e))==null||(t=t.namespaceURI)==null?void 0:t.includes(`svg`)}),o=p(t.width),s=p(t.height),{stop:l}=ar(e,([t])=>{let n=i===`border-box`?t.borderBoxSize:i===`content-box`?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&a.value){let t=U(e);if(t){let e=t.getBoundingClientRect();o.value=e.width,s.value=e.height}}else if(n){let e=fn(n);o.value=e.reduce((e,{inlineSize:t})=>e+t,0),s.value=e.reduce((e,{blockSize:t})=>e+t,0)}else o.value=t.contentRect.width,s.value=t.contentRect.height},n);V(()=>{let n=U(e);n&&(o.value=`offsetWidth`in n?n.offsetWidth:t.width,s.value=`offsetHeight`in n?n.offsetHeight:t.height)});let u=c(()=>U(e),e=>{o.value=e?t.width:0,s.value=e?t.height:0});function d(){l(),u()}return{width:o,height:s,stop:d}}var cr=[`fullscreenchange`,`webkitfullscreenchange`,`webkitendfullscreen`,`mozfullscreenchange`,`MSFullscreenChange`];function lr(e,t={}){let{document:n=On,autoExit:r=!1}=t,i=m(()=>U(e)??n?.documentElement),a=p(!1),o=m(()=>[`requestFullscreen`,`webkitRequestFullscreen`,`webkitEnterFullscreen`,`webkitEnterFullScreen`,`webkitRequestFullScreen`,`mozRequestFullScreen`,`msRequestFullscreen`].find(e=>n&&e in n||i.value&&e in i.value)),s=m(()=>[`exitFullscreen`,`webkitExitFullscreen`,`webkitExitFullScreen`,`webkitCancelFullScreen`,`mozCancelFullScreen`,`msExitFullscreen`].find(e=>n&&e in n||i.value&&e in i.value)),c=m(()=>[`fullScreen`,`webkitIsFullScreen`,`webkitDisplayingFullscreen`,`mozFullScreen`,`msFullscreenElement`].find(e=>n&&e in n||i.value&&e in i.value)),l=[`fullscreenElement`,`webkitFullscreenElement`,`mozFullScreenElement`,`msFullscreenElement`].find(e=>n&&e in n),u=G(()=>i.value&&n&&o.value!==void 0&&s.value!==void 0&&c.value!==void 0),d=()=>l?n?.[l]===i.value:!1,f=()=>{if(c.value){if(n&&n[c.value]!=null)return n[c.value];{let e=i.value;if(e?.[c.value]!=null)return!!e[c.value]}}return!1};async function h(){if(!(!u.value||!a.value)){if(s.value)if(n?.[s.value]!=null)await n[s.value]();else{let e=i.value;e?.[s.value]!=null&&await e[s.value]()}a.value=!1}}async function g(){if(!u.value||a.value)return;f()&&await h();let e=i.value;o.value&&e?.[o.value]!=null&&(await e[o.value](),a.value=!0)}async function _(){await(a.value?h():g())}let v=()=>{let e=f();(!e||e&&d())&&(a.value=e)},y={capture:!1,passive:!0};return W(n,cr,v,y),W(()=>U(i),cr,v,y),V(v,!1),r&&R(h),{isSupported:u,isFullscreen:a,enter:g,exit:h,toggle:_}}function ur(e,t,n={}){let{window:r=H}=n;return er(e,t,r?.localStorage,n)}var dr={ctrl:`control`,command:`meta`,cmd:`meta`,option:`alt`,up:`arrowup`,down:`arrowdown`,left:`arrowleft`,right:`arrowright`};function fr(e={}){let{reactive:t=!1,target:n=H,aliasMap:r=dr,passive:i=!0,onEventFired:a=B}=e,o=E(new Set),s={toJSON(){return{}},current:o},c=t?E(s):s,l=new Set,u=new Map([[`Meta`,l],[`Shift`,new Set],[`Alt`,new Set]]),d=new Set;function f(e,n){e in c&&(t?c[e]=n:c[e].value=n)}function g(){o.clear();for(let e of d)f(e,!1)}function _(e,t,n){if(!(!e||typeof t.getModifierState!=`function`)){for(let[e,r]of u)if(t.getModifierState(e)){n.forEach(e=>r.add(e));break}}}function v(e,t){if(e)return;let n=`${t[0].toUpperCase()}${t.slice(1)}`,r=u.get(n);if(![`shift`,`alt`].includes(t)||!r)return;let i=Array.from(r),a=i.indexOf(t);i.forEach((e,t)=>{t>=a&&(o.delete(e),f(e,!1))}),r.clear()}function y(e,t){let n=e.key?.toLowerCase(),r=[e.code?.toLowerCase(),n].filter(Boolean);if(n){n&&(t?o.add(n):o.delete(n));for(let e of r)d.add(e),f(e,t);_(t,e,[...o,...r]),v(t,n),n===`meta`&&!t&&(l.forEach(e=>{o.delete(e),f(e,!1)}),l.clear())}}W(n,`keydown`,e=>(y(e,!0),a(e)),{passive:i}),W(n,`keyup`,e=>(y(e,!1),a(e)),{passive:i}),W(`blur`,g,{passive:i}),W(`focus`,g,{passive:i});let b=new Proxy(c,{get(e,n,i){if(typeof n!=`string`)return Reflect.get(e,n,i);if(n=n.toLowerCase(),n in r&&(n=r[n]),!(n in c))if(/[+_-]/.test(n)){let e=n.split(/[+_-]/g).map(e=>e.trim());c[n]=m(()=>e.map(e=>h(b[e])).every(Boolean))}else c[n]=p(!1);let a=Reflect.get(e,n,i);return t?h(a):a}});return b}var pr={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof MouseEvent?[e.movementX,e.movementY]:null};function mr(e={}){let{type:t=`page`,touch:n=!0,resetOnTouchEnds:r=!1,initialValue:i={x:0,y:0},window:a=H,target:o=a,scroll:s=!0,eventFilter:c}=e,l=null,u=0,d=0,f=p(i.x),m=p(i.y),h=p(null),g=typeof t==`function`?t:pr[t],_=e=>{let t=g(e);l=e,t&&([f.value,m.value]=t,h.value=`mouse`),a&&(u=a.scrollX,d=a.scrollY)},v=e=>{if(e.touches.length>0){let t=g(e.touches[0]);t&&([f.value,m.value]=t,h.value=`touch`)}},y=()=>{if(!l||!a)return;let e=g(l);l instanceof MouseEvent&&e&&(f.value=e[0]+a.scrollX-u,m.value=e[1]+a.scrollY-d)},b=()=>{f.value=i.x,m.value=i.y},x=c?e=>c(()=>_(e),{}):e=>_(e),S=c?e=>c(()=>v(e),{}):e=>v(e),C=c?()=>c(()=>y(),{}):()=>y();if(o){let e={passive:!0};W(o,[`mousemove`,`dragover`],x,e),n&&t!==`movement`&&(W(o,[`touchstart`,`touchmove`],S,e),r&&W(o,`touchend`,b,e)),s&&t===`page`&&W(a,`scroll`,C,e)}return{x:f,y:m,sourceType:h}}function hr(e,t={}){let n=nn(e),{threshold:r=50,onSwipe:i,onSwipeEnd:a,onSwipeStart:o,disableTextSelect:s=!1}=t,c=E({x:0,y:0}),l=(e,t)=>{c.x=e,c.y=t},f=E({x:0,y:0}),h=(e,t)=>{f.x=e,f.y=t},g=m(()=>c.x-f.x),_=m(()=>c.y-f.y),{max:v,abs:y}=Math,b=m(()=>v(y(g.value),y(_.value))>=r),x=p(!1),S=p(!1),C=m(()=>b.value?y(g.value)>y(_.value)?g.value>0?`left`:`right`:_.value>0?`up`:`down`:`none`),w=e=>{let n=e.buttons===0,r=e.buttons===1;return t.pointerTypes?.includes(e.pointerType)??(n||r)??!0},T={passive:!0},D=[W(e,`pointerdown`,e=>{if(!w(e))return;S.value=!0,e.target?.setPointerCapture(e.pointerId);let{clientX:t,clientY:n}=e;l(t,n),h(t,n),o?.(e)},T),W(e,`pointermove`,e=>{if(!w(e)||!S.value)return;let{clientX:t,clientY:n}=e;h(t,n),!x.value&&b.value&&(x.value=!0),x.value&&i?.(e)},T),W(e,`pointerup`,e=>{w(e)&&(x.value&&a?.(e,C.value),S.value=!1,x.value=!1)},T)];return V(()=>{var e;if((e=n.value)==null||(e=e.style)==null||e.setProperty(`touch-action`,`pan-y`),s){var t,r,i;(t=n.value)==null||(t=t.style)==null||t.setProperty(`-webkit-user-select`,`none`),(r=n.value)==null||(r=r.style)==null||r.setProperty(`-ms-user-select`,`none`),(i=n.value)==null||(i=i.style)==null||i.setProperty(`user-select`,`none`)}}),{isSwiping:d(x),direction:d(C),posStart:u(c),posEnd:u(f),distanceX:g,distanceY:_,stop:()=>D.forEach(e=>e())}}var gr=0;function _r(e,t={}){let n=p(!1),{document:r=On,immediate:i=!0,manual:a=!1,id:o=`vueuse_styletag_${++gr}`}=t,s=p(e),l=()=>{},u=()=>{if(!r)return;let e=r.getElementById(o)||r.createElement(`style`);e.isConnected||(e.id=o,t.nonce&&(e.nonce=t.nonce),t.media&&(e.media=t.media),r.head.appendChild(e)),!n.value&&(l=c(s,t=>{e.textContent=t},{immediate:!0}),n.value=!0)},f=()=>{!r||!n.value||(l(),r.head.removeChild(r.getElementById(o)),n.value=!1)};return i&&!a&&V(u),a||R(f),{id:o,css:s,unload:f,load:u,isLoaded:d(n)}}function vr(e,t,n,i={}){var a,s;let{clone:l=!1,passive:u=!1,eventName:d,deep:f=!1,defaultValue:p,shouldEmit:h}=i,g=o(),_=n||g?.emit||(g==null||(a=g.$emit)==null?void 0:a.bind(g))||(g==null||(s=g.proxy)==null||(s=s.$emit)==null?void 0:s.bind(g?.proxy)),v=d;t||=`modelValue`,v||=`update:${t.toString()}`;let b=e=>l?typeof l==`function`?l(e):Wn(e):e,x=()=>Yt(e[t])?b(e[t]):p,S=e=>{h?h(e)&&_(v,e):_(v,e)};if(u){let n=y(x()),i=!1;return c(()=>e[t],e=>{i||(i=!0,n.value=b(e),r(()=>i=!1))}),c(n,n=>{!i&&(n!==e[t]||f)&&S(n)},{deep:f}),n}else return m({get(){return x()},set(e){S(e)}})}function yr(e={}){let{navigator:t=kn,document:n=On}=e,r=p(!1),i=p(null),a=tr({document:n}),o=G(()=>t&&`wakeLock`in t),s=m(()=>!!i.value&&a.value===`visible`);o.value&&(W(i,`release`,()=>{r.value=i.value?.type??!1},{passive:!0}),Dn(()=>a.value===`visible`&&n?.visibilityState===`visible`&&r.value,e=>{r.value=!1,c(e)}));async function c(e){await i.value?.release(),i.value=o.value?await t.wakeLock.request(e):null}async function l(e){a.value===`visible`?await c(e):r.value=e}async function u(){r.value=!1;let e=i.value;i.value=null,await e?.release()}return R(()=>{u()}),{sentinel:i,isSupported:o,isActive:s,request:l,forceRequest:c,release:u}}function br(e={}){let{window:t=H}=e;if(!t)return p(!1);let n=p(t.document.hasFocus()),r={passive:!0};return W(t,`blur`,()=>{n.value=!1},r),W(t,`focus`,()=>{n.value=!0},r),n}function xr(e={}){let{window:t=H,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:a=!0,type:o=`inner`}=e,s=p(n),l=p(r),u=()=>{if(t)if(o===`outer`)s.value=t.outerWidth,l.value=t.outerHeight;else if(o===`visual`&&t.visualViewport){let{width:e,height:n,scale:r}=t.visualViewport;s.value=Math.round(e*r),l.value=Math.round(n*r)}else a?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight)};u(),V(u);let d={passive:!0};return W(`resize`,u,d),t&&o===`visual`&&t.visualViewport&&W(t.visualViewport,`resize`,u,d),i&&c(K(`(orientation: portrait)`),()=>u()),{width:s,height:l}}function Sr(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function Cr(e,t,n=`.`,r){if(!Sr(t))return Cr(e,{},n,r);let i={...t};for(let t of Object.keys(e)){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(Array.isArray(a)&&Array.isArray(i[t])?i[t]=[...a,...i[t]]:Sr(a)&&Sr(i[t])?i[t]=Cr(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a))}return i}function wr(e){return(...t)=>t.reduce((t,n)=>Cr(t,n,``,e),{})}var Tr=wr();function Er(e){return S()?(C(e),!0):!1}var Dr=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var Or=e=>e!=null,kr=Object.prototype.toString,Ar=e=>kr.call(e)===`[object Object]`,jr=()=>{};function Mr(e){return Array.isArray(e)?e:[e]}function Nr(e){return e||o()}function Pr(e,t){Nr(t)&&a(e,t)}function Fr(e,t,n){return c(e,t,{...n,immediate:!0})}var Ir=Dr?window:void 0;Dr&&window.document,Dr&&window.navigator,Dr&&window.location;function Lr(e){let t=h(e);return t?.$el??t}function q(...e){let t=[],n=()=>{t.forEach(e=>e()),t.length=0},r=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),i=m(()=>{let t=Mr(h(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0}),a=Fr(()=>[i.value?.map(e=>Lr(e))??[Ir].filter(e=>e!=null),Mr(h(i.value?e[1]:e[0])),Mr(l(i.value?e[2]:e[1])),h(i.value?e[3]:e[2])],([e,i,a,o])=>{if(n(),!e?.length||!i?.length||!a?.length)return;let s=Ar(o)?{...o}:o;t.push(...e.flatMap(e=>i.flatMap(t=>a.map(n=>r(e,t,n,s)))))},{flush:`post`});return Er(n),()=>{a(),n()}}function Rr(){let e=p(!1),t=o();return t&&n(()=>{e.value=!0},t),e}function zr(e){let t=Rr();return m(()=>(t.value,!!e()))}function Br(e,t,n={}){let{root:r,rootMargin:i=`0px`,threshold:a=0,window:o=Ir,immediate:s=!0}=n,l=zr(()=>o&&`IntersectionObserver`in o),u=m(()=>Mr(h(e)).map(Lr).filter(Or)),d=jr,f=p(s),g=l.value?c(()=>[u.value,Lr(r),f.value],([e,n])=>{if(d(),!f.value||!e.length)return;let r=new IntersectionObserver(t,{root:Lr(n),rootMargin:i,threshold:a});e.forEach(e=>e&&r.observe(e)),d=()=>{r.disconnect(),d=jr}},{immediate:s,flush:`post`}):jr,_=()=>{d(),g(),f.value=!1};return Er(_),{isSupported:l,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:_}}var Vr=1/60*1e3,Hr=typeof performance<`u`?()=>performance.now():()=>Date.now(),Ur=typeof window<`u`?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Hr()),Vr);function Wr(e){let t=[],n=[],r=0,i=!1,a=!1,o=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{let c=s&&i,l=c?t:n;return a&&o.add(e),l.indexOf(e)===-1&&(l.push(e),c&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);t!==-1&&n.splice(t,1),o.delete(e)},process:c=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n(e[t]=Wr(()=>qr=!0),e),{}),Qr=Xr.reduce((e,t)=>{let n=Zr[t];return e[t]=(e,t=!1,r=!1)=>(qr||ni(),n.schedule(e,t,r)),e},{}),$r=Xr.reduce((e,t)=>(e[t]=Zr[t].cancel,e),{});Xr.reduce((e,t)=>(e[t]=()=>Zr[t].process(Yr),e),{});var ei=e=>Zr[e].process(Yr),ti=e=>{qr=!1,Yr.delta=Kr?Vr:Math.max(Math.min(e-Yr.timestamp,Gr),1),Yr.timestamp=e,Jr=!0,Xr.forEach(ei),Jr=!1,qr&&(Kr=!1,Ur(ti))},ni=()=>{qr=!0,Kr=!0,Jr||Ur(ti)},ri=()=>Yr;function ii(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);iMath.min(Math.max(n,e),t),oi=.001,si=.01,ci=.05;function li({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a,o=1-t;o=ai(ci,1,o),e=ai(si,10,e/1e3),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=fi(t,o),c=Math.exp(-i);return oi-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=fi(t**2,o);return(-i(t)+oi>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=di(i,a,s);if(e*=1e3,isNaN(c))return{stiffness:100,damping:10,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var ui=12;function di(e,t,n){let r=n;for(let n=1;ne[t]!==void 0)}function gi(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!hi(e,mi)&&hi(e,pi)){let n=li(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function _i(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,a=ii(e,[`from`,`to`,`restSpeed`,`restDelta`]);let o={done:!1,value:t},{stiffness:s,damping:c,mass:l,velocity:u,duration:d,isResolvedFromDuration:f}=gi(a),p=vi,m=vi;function h(){let e=u?-(u/1e3):0,r=n-t,a=c/(2*Math.sqrt(s*l)),o=Math.sqrt(s/l)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),a<1){let t=fi(o,a);p=i=>{let s=Math.exp(-a*o*i);return n-s*((e+a*o*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},m=n=>{let i=Math.exp(-a*o*n);return a*o*i*(Math.sin(t*n)*(e+a*o*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+a*o*r)-t*r*Math.sin(t*n))}}else if(a===1)p=t=>n-Math.exp(-o*t)*(r+(e+o*r)*t);else{let t=o*Math.sqrt(a*a-1);p=i=>{let s=Math.exp(-a*o*i),c=Math.min(t*i,300);return n-s*((e+a*o*r)*Math.sinh(c)+t*r*Math.cosh(c))/t}}}return h(),{next:e=>{let t=p(e);if(f)o.done=e>=d;else{let a=m(e)*1e3,s=Math.abs(a)<=r,c=Math.abs(n-t)<=i;o.done=s&&c}return o.value=o.done?n:t,o},flipTarget:()=>{u=-u,[t,n]=[n,t],h()}}}_i.needsInterpolation=(e,t)=>typeof e==`string`||typeof t==`string`;var vi=e=>0,yi=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},bi=(e,t,n)=>-n*e+n*t+e,xi=(e,t)=>n=>Math.max(Math.min(n,t),e),Si=e=>e%1?Number(e.toFixed(5)):e,Ci=/(-)?([\d]*\.?[\d])+/g,wi=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Ti=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ei(e){return typeof e==`string`}var Di={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Oi=Object.assign(Object.assign({},Di),{transform:xi(0,1)}),ki=Object.assign(Object.assign({},Di),{default:1}),Ai=e=>({test:t=>Ei(t)&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),J=Ai(`deg`),ji=Ai(`%`),Y=Ai(`px`),Mi=Object.assign(Object.assign({},ji),{parse:e=>ji.parse(e)/100,transform:e=>ji.transform(e*100)}),Ni=(e,t)=>n=>!!(Ei(n)&&Ti.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Pi=(e,t,n)=>r=>{if(!Ei(r))return r;let[i,a,o,s]=r.match(Ci);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},X={test:Ni(`hsl`,`hue`),parse:Pi(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+ji.transform(Si(t))+`, `+ji.transform(Si(n))+`, `+Si(Oi.transform(r))+`)`},Fi=xi(0,255),Ii=Object.assign(Object.assign({},Di),{transform:e=>Math.round(Fi(e))}),Z={test:Ni(`rgb`,`red`),parse:Pi(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Ii.transform(e)+`, `+Ii.transform(t)+`, `+Ii.transform(n)+`, `+Si(Oi.transform(r))+`)`};function Li(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Ri={test:Ni(`#`),parse:Li,transform:Z.transform},Q={test:e=>Z.test(e)||Ri.test(e)||X.test(e),parse:e=>Z.test(e)?Z.parse(e):X.test(e)?X.parse(e):Ri.parse(e),transform:e=>Ei(e)?e:e.hasOwnProperty(`red`)?Z.transform(e):X.transform(e)},zi="${c}",Bi="${n}";function Vi(e){return isNaN(e)&&Ei(e)&&(e.match(Ci)?.length??0)+(e.match(wi)?.length??0)>0}function Hi(e){typeof e==`number`&&(e=`${e}`);let t=[],n=0,r=e.match(wi);r&&(n=r.length,e=e.replace(wi,zi),t.push(...r.map(Q.parse)));let i=e.match(Ci);return i&&(e=e.replace(Ci,Bi),t.push(...i.map(Di.parse))),{values:t,numColors:n,tokenised:e}}function Ui(e){return Hi(e).values}function Wi(e){let{values:t,numColors:n,tokenised:r}=Hi(e),i=t.length;return e=>{let t=r;for(let r=0;rtypeof e==`number`?0:e;function Ki(e){let t=Ui(e);return Wi(e)(t.map(Gi))}var qi={test:Vi,parse:Ui,createTransformer:Wi,getAnimatableNone:Ki},Ji=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Yi(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Ci)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Ji.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Xi=/([a-z-]*)\(.*?\)/g,Zi=Object.assign(Object.assign({},qi),{getAnimatableNone:e=>{let t=e.match(Xi);return t?t.map(Yi).join(` `):e}});function Qi(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function $i({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Qi(s,r,e+1/3),a=Qi(s,r,e),o=Qi(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}var ea=(e,t,n)=>{let r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},ta=[Ri,Z,X],na=e=>ta.find(t=>t.test(e)),ra=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,ia=(e,t)=>{let n=na(e),r=na(t);ra(e),ra(t);let i=n.parse(e),a=r.parse(t);n===X&&(i=$i(i),n=Z),r===X&&(a=$i(a),r=Z);let o=Object.assign({},i);return e=>{for(let t in o)t!==`alpha`&&(o[t]=ea(i[t],a[t],e));return o.alpha=bi(i.alpha,a.alpha,e),n.transform(o)}},aa=e=>typeof e==`number`,oa=(e,t)=>n=>t(e(n)),sa=(...e)=>e.reduce(oa);function ca(e,t){return aa(e)?n=>bi(e,t,n):Q.test(e)?ia(e,t):fa(e,t)}var la=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>ca(e,t[n]));return e=>{for(let t=0;t{let n=Object.assign(Object.assign({},e),t),r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=ca(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function da(e){let t=qi.parse(e),n=t.length,r=0,i=0,a=0;for(let e=0;e{let n=qi.createTransformer(t),r=da(e),i=da(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?sa(la(r.parsed,i.parsed),n):(`${e}${t}`,n=>`${n>0?t:e}`)},pa=(e,t)=>n=>bi(e,t,n);function ma(e){if(typeof e==`number`)return pa;if(typeof e==`string`)return Q.test(e)?ia:fa;if(Array.isArray(e))return la;if(typeof e==`object`)return ua}function ha(e,t,n){let r=[],i=n||ma(e[0]),a=e.length-1;for(let n=0;nn(yi(e,t,r))}function _a(e,t){let n=e.length,r=n-1;return i=>{let a=0,o=!1;if(i<=e[0]?o=!0:i>=e[r]&&(a=r-1,o=!0),!o){let t=1;for(;ti||t===r);t++);a=t-1}let s=yi(e[a],e[a+1],i);return t[a](s)}}function va(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;t.length,!r||!Array.isArray(r)||(r.length,a-1),e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let o=ha(t,r,i),s=a===2?ga(e,o):_a(e,o);return n?t=>s(ai(e[0],e[a-1],t)):s}var ya=e=>t=>1-e(1-t),ba=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,xa=e=>t=>t**+e,Sa=e=>t=>t*t*((e+1)*t-e),Ca=e=>{let t=Sa(e);return e=>(e*=2)<1?.5*t(e):.5*(2-2**(-10*(e-1)))},wa=1.525,Ta=4/11,Ea=8/11,Da=9/10,Oa=e=>e,ka=xa(2),Aa=ya(ka),ja=ba(ka),Ma=e=>1-Math.sin(Math.acos(e)),Na=ya(Ma),Pa=ba(Na),Fa=Sa(wa),Ia=ya(Fa),La=ba(Fa),Ra=Ca(wa),za=4356/361,Ba=35442/1805,Va=16061/1805,Ha=e=>{if(e===1||e===0)return e;let t=e*e;return ee<.5?.5*(1-Ha(1-e*2)):.5*Ha(e*2-1)+.5;function Ga(e,t){return e.map(()=>t||ja).splice(0,e.length-1)}function Ka(e){let t=e.length;return e.map((e,n)=>n===0?0:n/(t-1))}function qa(e,t){return e.map(e=>e*t)}function Ja({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){let a={done:!1,value:e},o=Array.isArray(t)?t:[e,t],s=qa(r&&r.length===o.length?r:Ka(o),i);function c(){return va(s,o,{ease:Array.isArray(n)?n:Ga(o,n)})}let l=c();return{next:e=>(a.value=l(e),a.done=e>=i,a),flipTarget:()=>{o.reverse(),l=c()}}}function Ya({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:a}){let o={done:!1,value:t},s=n*e,c=t+s,l=a===void 0?c:a(c);return l!==c&&(s=l-t),{next:e=>{let t=-s*Math.exp(-e/r);return o.done=!(t>i||t<-i),o.value=o.done?l:l+t,o},flipTarget:()=>{}}}var Xa={keyframes:Ja,spring:_i,decay:Ya};function Za(e){if(Array.isArray(e.to))return Ja;if(Xa[e.type])return Xa[e.type];let t=new Set(Object.keys(e));return t.has(`ease`)||t.has(`duration`)&&!t.has(`dampingRatio`)?Ja:t.has(`dampingRatio`)||t.has(`stiffness`)||t.has(`mass`)||t.has(`damping`)||t.has(`restSpeed`)||t.has(`restDelta`)?_i:Ja}function Qa(e,t,n=0){return e-t-n}function $a(e,t,n=0,r=!0){return r?Qa(t+-e,t,n):t-(e-t)+n}function eo(e,t,n,r){return r?e>=t+n:e<=-n}var to=e=>{let t=({delta:t})=>e(t);return{start:()=>Qr.update(t,!0),stop:()=>$r.update(t)}};function no(e){var t,{from:n,autoplay:r=!0,driver:i=to,elapsed:a=0,repeat:o=0,repeatType:s=`loop`,repeatDelay:c=0,onPlay:l,onStop:u,onComplete:d,onRepeat:f,onUpdate:p}=e,m=ii(e,[`from`,`autoplay`,`driver`,`elapsed`,`repeat`,`repeatType`,`repeatDelay`,`onPlay`,`onStop`,`onComplete`,`onRepeat`,`onUpdate`]);let{to:h}=m,g,_=0,v=m.duration,y,b=!1,x=!0,S,C=Za(m);(t=C).needsInterpolation?.call(t,n,h)&&(S=va([0,100],[n,h],{clamp:!1}),n=0,h=100);let w=C(Object.assign(Object.assign({},m),{from:n,to:h}));function T(){_++,s===`reverse`?(x=_%2==0,a=$a(a,v,c,x)):(a=Qa(a,v,c),s===`mirror`&&w.flipTarget()),b=!1,f&&f()}function E(){g.stop(),d&&d()}function D(e){if(x||(e=-e),a+=e,!b){let e=w.next(Math.max(0,a));y=e.value,S&&(y=S(y)),b=x?e.done:a<=0}p?.(y),b&&(_===0&&(v??=a),_{u?.(),g.stop()}}}function ro(e,t){return t?1e3/t*e:0}function io({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:a=750,bounceStiffness:o=500,bounceDamping:s=10,restDelta:c=1,modifyTarget:l,driver:u,onUpdate:d,onComplete:f,onStop:p}){let m;function h(e){return n!==void 0&&er}function g(e){return n===void 0?r:r===void 0||Math.abs(n-e){var n;d?.(t),(n=e.onUpdate)==null||n.call(e,t)},onComplete:f,onStop:p}))}function v(e){_(Object.assign({type:`spring`,stiffness:o,damping:s,restDelta:c},e))}if(h(e))v({from:e,velocity:t,to:g(e)});else{let r=i*t+e;l!==void 0&&(r=l(r));let o=g(r),s=o===n?-1:1,u,d;_({type:`decay`,from:e,velocity:t,timeConstant:a,power:i,restDelta:c,modifyTarget:l,onUpdate:h(r)?e=>{u=d,d=e,t=ro(e-u,ri().delta),(s===1&&e>o||s===-1&&em?.stop()}}var ao=(e,t)=>1-3*t+3*e,oo=(e,t)=>3*t-6*e,so=e=>3*e,co=(e,t,n)=>((ao(t,n)*e+oo(t,n))*e+so(t))*e,lo=(e,t,n)=>3*ao(t,n)*e*e+2*oo(t,n)*e+so(t),uo=1e-7,fo=10;function po(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=co(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>uo&&++s=ho?go(t,c,e,n):l===0?c:po(t,r,r+vo,e,n)}return e=>e===0||e===1?e:co(a(e),t,r)}var bo={},xo=class{subscriptions=new Set;add(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}notify(e,t,n){if(this.subscriptions.size)for(let r of this.subscriptions)r(e,t,n)}clear(){this.subscriptions.clear()}};function So(e){return!Number.isNaN(Number.parseFloat(e))}var Co=class{current;prev;timeDelta=0;lastUpdated=0;updateSubscribers=new xo;stopAnimation;canTrackVelocity=!1;constructor(e){this.prev=this.current=e,this.canTrackVelocity=So(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}set(e){this.updateAndNotify(e)}updateAndNotify=e=>{this.prev=this.current,this.current=e;let{delta:t,timestamp:n}=ri();this.lastUpdated!==n&&(this.timeDelta=t,this.lastUpdated=n),Qr.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)};get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?ro(Number.parseFloat(this.current)-Number.parseFloat(this.prev),this.timeDelta):0}scheduleVelocityCheck=()=>Qr.postRender(this.velocityCheck);velocityCheck=({timestamp:e})=>{this.canTrackVelocity||=So(this.current),e!==this.lastUpdated&&(this.prev=this.current)};start(e){return this.stop(),new Promise(t=>{let{stop:n}=e(t);this.stopAnimation=n}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}};function wo(e){return new Co(e)}var{isArray:To}=Array;function Eo(){let e=y({}),t=t=>{let n=t=>{e.value[t]&&(e.value[t].stop(),e.value[t].destroy(),delete e.value[t])};t?To(t)?t.forEach(n):n(t):Object.keys(e.value).forEach(n)};return Pr(t),{motionValues:e,get:(t,n,r)=>{if(e.value[t])return e.value[t];let i=wo(n);return i.onChange(e=>r[t]=e),e.value[t]=i,i},stop:t}}function Do(e){return Array.isArray(e)}function $(){return{type:`spring`,stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function Oo(e){return{type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}}function ko(e){return{type:`spring`,stiffness:550,damping:e===0?100:30,restDelta:.01,restSpeed:10}}function Ao(){return{type:`keyframes`,ease:`linear`,duration:300}}function jo(e){return{type:`keyframes`,duration:800,values:e}}var Mo={default:ko,x:$,y:$,z:$,rotate:$,rotateX:$,rotateY:$,rotateZ:$,scaleX:Oo,scaleY:Oo,scale:Oo,backgroundColor:Ao,color:Ao,opacity:Ao};function No(e,t){let n;return n=Do(t)?jo:Mo[e]||Mo.default,{to:t,...n(t)}}var Po={...Di,transform:Math.round},Fo={color:Q,backgroundColor:Q,outlineColor:Q,fill:Q,stroke:Q,borderColor:Q,borderTopColor:Q,borderRightColor:Q,borderBottomColor:Q,borderLeftColor:Q,borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,radius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,size:Y,top:Y,right:Y,bottom:Y,left:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,rotate:J,rotateX:J,rotateY:J,rotateZ:J,scale:ki,scaleX:ki,scaleY:ki,scaleZ:ki,skew:J,skewX:J,skewY:J,distance:Y,translateX:Y,translateY:Y,translateZ:Y,x:Y,y:Y,z:Y,perspective:Y,transformPerspective:Y,opacity:Oi,originX:Mi,originY:Mi,originZ:Y,zIndex:Po,filter:Zi,WebkitFilter:Zi,fillOpacity:Oi,strokeOpacity:Oi,numOctaves:Po},Io=e=>Fo[e];function Lo(e,t){return t&&typeof e==`number`&&t.transform?t.transform(e):e}function Ro(e,t){let n=Io(e);return n!==Zi&&(n=qi),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var zo={linear:Oa,easeIn:ka,easeInOut:ja,easeOut:Aa,circIn:Ma,circInOut:Pa,circOut:Na,backIn:Fa,backInOut:La,backOut:Ia,anticipate:Ra,bounceIn:Ua,bounceInOut:Wa,bounceOut:Ha};function Bo(e){if(Array.isArray(e)){let[t,n,r,i]=e;return yo(t,n,r,i)}else if(typeof e==`string`)return zo[e];return e}function Vo(e){return Array.isArray(e)&&typeof e[0]!=`number`}function Ho(e,t){return e===`zIndex`?!1:!!(typeof t==`number`||Array.isArray(t)||typeof t==`string`&&qi.test(t)&&!t.startsWith(`url(`))}function Uo(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function Wo({ease:e,times:t,delay:n,...r}){let i={...r};return t&&(i.offset=t),e&&(i.ease=Vo(e)?e.map(Bo):Bo(e)),n&&(i.elapsed=-n),i}function Go(e,t,n){return Array.isArray(t.to)&&(e.duration||=800),Uo(t),Ko(e)||(e={...e,...No(n,t.to)}),{...t,...Wo(e)}}function Ko({delay:e,repeat:t,repeatType:n,repeatDelay:r,from:i,...a}){return!!Object.keys(a).length}function qo(e,t){return e[t]||e.default||e}function Jo(e,t,n,r,i){let a=qo(r,e),o=a.from===null||a.from===void 0?t.get():a.from,s=Ho(e,n);o===`none`&&s&&typeof n==`string`&&(o=Ro(e,n));let c=Ho(e,o);function l(s){let c={from:o,to:n,velocity:r.velocity?r.velocity:t.getVelocity(),onUpdate:e=>t.set(e)};return a.type===`inertia`||a.type===`decay`?io({...c,...a}):no({...Go(a,c,e),onUpdate:e=>{c.onUpdate(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{i&&i(),s&&s()}})}function u(e){return t.set(n),i&&i(),e&&e(),{stop:()=>{}}}return!c||!s||a.type===!1?u:l}function Yo(){let{motionValues:e,stop:t,get:n}=Eo();return{motionValues:e,stop:t,push:(e,t,r,i={},a)=>{let o=r[e],s=n(e,o,r);if(i&&i.immediate){s.set(t);return}let c=Jo(e,s,t,i,a);s.start(c)}}}function Xo(e,t={},{motionValues:n,push:r,stop:i}=Yo()){let a=l(t),o=y(!1);c(n,e=>{o.value=Object.values(e).filter(e=>e.isAnimating()).length>0},{immediate:!0,deep:!0});let s=e=>{if(!a||!a[e])throw Error(`The variant ${e} does not exist.`);return a[e]},u=t=>{typeof t==`string`&&(t=s(t));let n=Object.entries(t).map(([n,i])=>{if(n!==`transition`)return new Promise(a=>r(n,i,e,t.transition||No(n,t[n]),a))}).filter(Boolean);async function i(){await Promise.all(n),t.transition?.onComplete?.()}return Promise.all([i()])};return{isAnimating:o,apply:u,set:t=>{let n=Ar(t)?t:s(t);Object.entries(n).forEach(([t,n])=>{t!==`transition`&&r(t,n,e,{immediate:!0})})},leave:async e=>{let t;if(a&&(a.leave&&(t=a.leave),!a.leave&&a.initial&&(t=a.initial)),!t){e();return}await u(t),e()},stop:i}}var Zo=typeof window<`u`,Qo=()=>Zo&&(window.onpointerdown===null||void 0),$o=()=>Zo&&(window.ontouchstart===null||void 0),es=()=>Zo&&(window.onmousedown===null||void 0);function ts({target:e,state:t,variants:n,apply:r}){let i=l(n),a=y(!1),o=y(!1),s=y(!1),u=m(()=>{let e=[...Object.keys(t.value||{})];return i?(i.hovered&&(e=[...e,...Object.keys(i.hovered)]),i.tapped&&(e=[...e,...Object.keys(i.tapped)]),i.focused&&(e=[...e,...Object.keys(i.focused)]),e):e}),d=m(()=>{let e={};Object.assign(e,t.value),a.value&&i.hovered&&Object.assign(e,i.hovered),o.value&&i.tapped&&Object.assign(e,i.tapped),s.value&&i.focused&&Object.assign(e,i.focused);for(let t in e)u.value.includes(t)||delete e[t];return e});i.hovered&&(q(e,`mouseenter`,()=>a.value=!0),q(e,`mouseleave`,()=>{a.value=!1,o.value=!1})),i.tapped&&(es()&&(q(e,`mousedown`,()=>o.value=!0),q(e,`mouseup`,()=>o.value=!1)),Qo()&&(q(e,`pointerdown`,()=>o.value=!0),q(e,`pointerup`,()=>o.value=!1)),$o()&&(q(e,`touchstart`,()=>o.value=!0),q(e,`touchend`,()=>o.value=!1))),i.focused&&(q(e,`focus`,()=>s.value=!0),q(e,`blur`,()=>s.value=!1)),c([a,o,s],()=>{r(d.value)})}function ns({set:e,target:t,variants:n,variant:r}){let i=l(n);c(()=>t,()=>{i&&(i.initial&&(e(`initial`),r.value=`initial`),i.enter&&(r.value=`enter`))},{immediate:!0,flush:`pre`})}function rs({state:e,apply:t}){c(e,e=>{e&&t(e)},{immediate:!0})}function is({target:e,variants:t,variant:n}){let r=l(t);r&&(r.visible||r.visibleOnce)&&Br(e,([{isIntersecting:e}])=>{r.visible?e?n.value=`visible`:n.value=`initial`:r.visibleOnce&&(e&&n.value!==`visibleOnce`?n.value=`visibleOnce`:n.value||=`initial`)})}function as(e,t={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){t.lifeCycleHooks&&ns(e),t.syncVariants&&rs(e),t.visibilityHooks&&is(e),t.eventListeners&&ts(e)}function os(e={}){let t=E({...e}),n=y({});return c(t,()=>{let e={};for(let[n,r]of Object.entries(t))e[n]=Lo(r,Io(n));n.value=e},{immediate:!0,deep:!0}),{state:t,style:n}}function ss(e,t){c(()=>Lr(e),e=>{e&&t(e)},{immediate:!0})}var cs={x:`translateX`,y:`translateY`,z:`translateZ`};function ls(e={},t=!0){let n=E({...e}),r=y(``);return c(n,e=>{let n=``,i=!1;if(t&&(e.x||e.y||e.z)){let t=[e.x||0,e.y||0,e.z||0].map(e=>Lo(e,Y)).join(`,`);n+=`translate3d(${t}) `,i=!0}for(let[r,i]of Object.entries(e)){if(t&&(r===`x`||r===`y`||r===`z`))continue;let e=Lo(i,Io(r));n+=`${cs[r]||r}(${e}) `}t&&!i&&(n+=`translateZ(0px) `),r.value=n.trim()},{immediate:!0,deep:!0}),{state:n,transform:r}}var us=[``,`X`,`Y`,`Z`],ds=[`perspective`,`translate`,`scale`,`rotate`,`skew`],fs=[`transformPerspective`,`x`,`y`,`z`];ds.forEach(e=>{us.forEach(t=>{let n=e+t;fs.push(n)})});var ps=new Set(fs);function ms(e){return ps.has(e)}var hs=new Set([`originX`,`originY`,`originZ`]);function gs(e){return hs.has(e)}function _s(e){let t={},n={};return Object.entries(e).forEach(([e,r])=>{ms(e)||gs(e)?t[e]=r:n[e]=r}),{transform:t,style:n}}function vs(e){let{transform:t,style:n}=_s(e),{transform:r}=ls(t),{style:i}=os(n);return r.value&&(i.value.transform=r.value),i.value}function ys(e,t){let n,r,{state:i,style:a}=os();return ss(e,e=>{r=e;for(let t of Object.keys(Fo))e.style[t]===null||e.style[t]===``||ms(t)||gs(t)||(i[t]=e.style[t]);n&&Object.entries(n).forEach(([t,n])=>e.style[t]=n),t&&t(i)}),c(a,e=>{if(!r){n=e;return}for(let t in e)r.style[t]=e[t]},{immediate:!0}),{style:i}}function bs(e){let t=e.trim().split(/\) |\)/);if(t.length===1)return{};let n=e=>e.endsWith(`px`)||e.endsWith(`deg`)?Number.parseFloat(e):Number.isNaN(Number(e))?Number(e):e;return t.reduce((e,t)=>{if(!t)return e;let[r,i]=t.split(`(`),a=i.split(`,`).map(e=>n(e.endsWith(`)`)?e.replace(`)`,``):e.trim())),o=a.length===1?a[0]:a;return{...e,[r]:o}},{})}function xs(e,t){Object.entries(bs(t)).forEach(([t,n])=>{let r=[`x`,`y`,`z`];if(t===`translate3d`){if(n===0){r.forEach(t=>e[t]=0);return}n.forEach((t,n)=>e[r[n]]=t);return}if(n=Number.parseFloat(`${n}`),t===`translateX`){e.x=n;return}if(t===`translateY`){e.y=n;return}if(t===`translateZ`){e.z=n;return}e[t]=n})}function Ss(e,t){let n,r,{state:i,transform:a}=ls();return ss(e,e=>{r=e,e.style.transform&&xs(i,e.style.transform),n&&(e.style.transform=n),t&&t(i)}),c(a,e=>{if(!r){n=e;return}r.style.transform=e},{immediate:!0}),{transform:i}}function Cs(e){return Object.entries(e)}function ws(e,t){let n=E({}),r=e=>Object.entries(e).forEach(([e,t])=>n[e]=t),{style:i}=ys(e,r),{transform:a}=Ss(e,r);return c(n,e=>{Cs(e).forEach(([e,t])=>{let n=ms(e)?a:i;n[e]&&n[e]===t||(n[e]=t)})},{immediate:!0,deep:!0}),ss(e,()=>t&&r(t)),{motionProperties:n,style:i,transform:a}}function Ts(e={}){let t=l(e),n=y();return{state:m(()=>{if(n.value)return t[n.value]}),variant:n}}function Es(e,t={},n){let{motionProperties:r}=ws(e),{variant:i,state:a}=Ts(t),o={target:e,variant:i,variants:t,state:a,motionProperties:r,...Xo(r,t)};return as(o,n),o}var Ds=[`delay`,`duration`],Os=[`initial`,`enter`,`leave`,`visible`,`visible-once`,`visibleOnce`,`hovered`,`tapped`,`focused`,...Ds];function ks(e){return Ds.includes(e)}function As(e,t){let n=e.props?e.props:e.data&&e.data.attrs?e.data.attrs:{};if(n){n.variants&&Ar(n.variants)&&(t.value={...t.value,...n.variants});for(let e of Os)if(!(!n||!n[e])){if(ks(e)&&typeof n[e]==`number`){for(let r of[`enter`,`visible`,`visibleOnce`]){let i=t.value[r];i!=null&&(i.transition??={},i.transition[e]=n[e])}continue}if(Ar(n[e])){let r=n[e];e===`visible-once`&&(e=`visibleOnce`),t.value[e]=r}}}}function js(e,t=!1){return{created:(n,r,i)=>{let a=r.value&&typeof r.value==`string`?r.value:i.key;a&&bo[a]&&bo[a].stop();let o=y(t?structuredClone(w(e)||{}):e||{});typeof r.value==`object`&&(o.value=r.value),As(i,o);let s=Es(n,o,{eventListeners:!0,lifeCycleHooks:!0,syncVariants:!0,visibilityHooks:!1});n.motionInstance=s,a&&(bo[a]=s)},mounted:(e,t,n)=>{e.motionInstance&&is(e.motionInstance)},getSSRProps(t,n){let{initial:r}=t.value||n&&n?.props||{};r=l(r);let i=Tr({},e?.initial||{},r||{});if(!(!i||Object.keys(i).length===0))return{style:vs(i)}}}}var Ms={__proto__:null,fade:{initial:{opacity:0},enter:{opacity:1}},fadeVisible:{initial:{opacity:0},visible:{opacity:1}},fadeVisibleOnce:{initial:{opacity:0},visibleOnce:{opacity:1}},pop:{initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},popVisible:{initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},popVisibleOnce:{initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},rollBottom:{initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollLeft:{initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollRight:{initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollTop:{initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleBottom:{initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleLeft:{initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceBottom:{initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollVisibleOnceLeft:{initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollVisibleOnceRight:{initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollVisibleOnceTop:{initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollVisibleRight:{initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleTop:{initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},slideBottom:{initial:{y:100,opacity:0},enter:{y:0,opacity:1}},slideLeft:{initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},slideRight:{initial:{x:100,opacity:0},enter:{x:0,opacity:1}},slideTop:{initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},slideVisibleBottom:{initial:{y:100,opacity:0},visible:{y:0,opacity:1}},slideVisibleLeft:{initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceBottom:{initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},slideVisibleOnceLeft:{initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},slideVisibleOnceRight:{initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},slideVisibleOnceTop:{initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},slideVisibleRight:{initial:{x:100,opacity:0},visible:{x:0,opacity:1}},slideVisibleTop:{initial:{y:-100,opacity:0},visible:{y:0,opacity:1}}},Ns=Symbol(``),Ps={preset:{type:String,required:!1},instance:{type:Object,required:!1},variants:{type:Object,required:!1},initial:{type:Object,required:!1},enter:{type:Object,required:!1},leave:{type:Object,required:!1},visible:{type:Object,required:!1},visibleOnce:{type:Object,required:!1},hovered:{type:Object,required:!1},tapped:{type:Object,required:!1},focused:{type:Object,required:!1},delay:{type:[Number,String],required:!1},duration:{type:[Number,String],required:!1}};function Fs(e){return Object.prototype.toString.call(e)===`[object Object]`}function Is(e){if(Array.isArray(e))return e.map(Is);if(Fs(e)){let t={};for(let n in e)t[n]=Is(e[n]);return t}return e}function Ls(e){let t=E({}),n=v(Ns,{}),r=m(()=>e.preset==null?{}:n!=null&&e.preset in n?structuredClone(w(n)[e.preset]):e.preset in Ms?structuredClone(Ms[e.preset]):{}),i=m(()=>({initial:e.initial,enter:e.enter,leave:e.leave,visible:e.visible,visibleOnce:e.visibleOnce,hovered:e.hovered,tapped:e.tapped,focused:e.focused}));function a(e,t){for(let n of[`delay`,`duration`]){if(t[n]==null)continue;let r=Number.parseInt(t[n]);for(let t of[`enter`,`visible`,`visibleOnce`]){let i=e[t];i!=null&&(i.transition??={},i.transition[n]=r)}}return e}let o=m(()=>a({...Tr({},i.value,r.value,e.variants||{})},e));function s(e,n,r){e.props??={},e.props.style??={},e.props.style={...e.props.style,...r};let i=a(Is(o.value),e.props);return e.props.onVnodeMounted=({el:e})=>{t[n]=Es(e,i)},e.props.onVnodeUpdated=({el:e})=>{let r=vs(t[n].state);for(let[t,n]of Object.entries(r))e.style[t]=n},e}return{motionConfig:o,setNodeInstance:s}}O({name:`Motion`,props:{...Ps,is:{type:[String,Object],default:`div`}},setup(e){let n=T(),{motionConfig:r,setNodeInstance:i}=Ls(e);return()=>{let a=vs(r.value.initial||{}),o=t(e.is,void 0,n);return i(o,0,a),o}}}),O({name:`MotionGroup`,props:{...Ps,is:{type:[String,Object],required:!1}},setup(e){let n=T(),{motionConfig:r,setNodeInstance:i}=Ls(e);return()=>{let a=vs(r.value.initial||{}),o=n.default?.()||[];for(let e=0;ee.every(e=>h(e)))}var zs=Rs;function Bs(e){return m(()=>!h(e))}var Vs=Bs;function Hs(...e){return m(()=>e.some(e=>h(e)))}var Us=Hs;export{qt as A,fe as B,vr as C,mn as D,xr as E,yn as F,vn as I,xn as L,dn as M,Jt as N,Cn as O,$t as P,Gt as R,_r as S,br as T,de as V,fr as _,Bn as a,hr as b,Ln as c,ir as d,or as f,ur as g,lr as h,js as i,z as j,Tn as k,Vn as l,W as m,Vs as n,jn as o,sr as p,Us as r,In as s,zs as t,Un as u,K as v,yr as w,Xn as x,mr as y,pt as z}; \ No newline at end of file diff --git a/docs/dist/assets/modules/vue-ejhLULwH.js b/docs/dist/assets/modules/vue-ejhLULwH.js deleted file mode 100644 index 96f4b210..00000000 --- a/docs/dist/assets/modules/vue-ejhLULwH.js +++ /dev/null @@ -1,5 +0,0 @@ -import{A as e,E as t,J as n,O as r,P as i,R as a,T as o,V as s,X as c,Z as l,_ as u,_t as d,at as f,ct as p,dt as m,ft as h,gt as g,ht as _,k as v,lt as y,m as b,mt as x,nt as S,pt as C,rt as w,st as T,tt as E,ut as D,vt as O,z as k}from"./shiki-yoNnvMyB.js";var A=typeof document<`u`;function j(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function ee(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&j(e.default)}var M=Object.assign;function te(e,t){let n={};for(let r in t){let i=t[r];n[r]=N(i)?i.map(e):e(i)}return n}var ne=()=>{},N=Array.isArray;function re(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var P=Symbol(``);function ie(e,t){return M(Error(),{type:e,[P]:!0},t)}function F(e,t){return e instanceof Error&&P in e&&(t==null||!!(e.type&t))}var ae=Symbol(``),oe=Symbol(``),se=Symbol(``),ce=Symbol(``),le=Symbol(``);function ue(){return e(se)}function de(t){return e(ce)}var fe=/#/g,pe=/&/g,me=/\//g,he=/=/g,ge=/\?/g,_e=/\+/g,ve=/%5B/g,ye=/%5D/g,I=/%5E/g,be=/%60/g,xe=/%7B/g,Se=/%7C/g,Ce=/%7D/g,we=/%20/g;function Te(e){return e==null?``:encodeURI(``+e).replace(Se,`|`).replace(ve,`[`).replace(ye,`]`)}function Ee(e){return Te(e).replace(xe,`{`).replace(Ce,`}`).replace(I,`^`)}function De(e){return Te(e).replace(_e,`%2B`).replace(we,`+`).replace(fe,`%23`).replace(pe,`%26`).replace(be,"`").replace(xe,`{`).replace(Ce,`}`).replace(I,`^`)}function Oe(e){return De(e).replace(he,`%3D`)}function ke(e){return Te(e).replace(fe,`%23`).replace(ge,`%3F`)}function Ae(e){return ke(e).replace(me,`%2F`)}function je(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var Me=/\/$/,Ne=e=>e.replace(Me,``);function Pe(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=He(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:je(o)}}function Fe(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Ie(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function Le(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Re(t.matched[r],n.matched[i])&&ze(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Re(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ze(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Be(e[n],t[n]))return!1;return!0}function Be(e,t){return N(e)?Ve(e,t):N(t)?Ve(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Ve(e,t){return N(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function He(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var L={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function Ue(e){if(!e)if(A){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),Ne(e)}var We=/^[^#]+#/;function Ge(e,t){return e.replace(We,`#`)+t}function Ke(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var qe=()=>({left:window.scrollX,top:window.scrollY});function Je(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Ke(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Ye(e,t){return(history.state?history.state.position-t:-1)+e}var Xe=new Map;function Ze(e,t){Xe.set(e,t)}function Qe(e){let t=Xe.get(e);return Xe.delete(e),t}function $e(e){return typeof e==`string`||e&&typeof e==`object`}function et(e){return typeof e==`string`||typeof e==`symbol`}function tt(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;ee&&De(e)):[r&&De(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function rt(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=N(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function it(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function R(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(ie(4,{from:n,to:t})):e instanceof Error?c(e):$e(e)?c(ie(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function at(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(j(s)){let c=(s.__vccOpts||s)[t];c&&a.push(R(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=ee(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&R(c,n,r,o,e,i)()}))}}return a}function ot(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;oRe(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>Re(e,s))||i.push(s))}return[n,r,i]}var st=()=>location.protocol+`//`+location.host;function ct(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Ie(n,``)}return Ie(n,e)+r+i}function lt(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=ct(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(M({},e.state,{scroll:qe()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function ut(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?qe():null}}function dt(e){let{history:t,location:n}=window,r={value:ct(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:st()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,M({},t.state,ut(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=M({},i.value,t.state,{forward:e,scroll:qe()});a(o.current,o,!0),a(e,M({},ut(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function ft(e){e=Ue(e);let t=dt(e),n=lt(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=M({location:``,base:e,go:r,createHref:Ge.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function pt(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),ft(e)}var mt={type:0,value:``},ht=/[a-zA-Z0-9_]/;function gt(e){if(!e)return[[]];if(e===`/`)return[[mt]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;st.length?t.length===1&&t[0]===80?1:-1:0}function St(e,t){let n=0,r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}var wt={strict:!1,end:!0,sensitive:!1};function Tt(e,t,n){let r=M(bt(gt(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Et(e,t){let n=[],r=new Map;t=re(wt,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Ot(e);s.aliasOf=r&&r.record;let l=re(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Ot(M({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Tt(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!At(d)&&o(e.name)),Pt(d)&&c(d),s.children){let e=s.children;for(let t=0;t{o(f)}:ne}function o(e){if(et(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Mt(e,n);n.splice(t,0,e),e.record.name&&!At(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw ie(1,{location:e});s=i.record.name,a=M(Dt(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Dt(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw ie(1,{location:e,currentLocation:t});s=i.record.name,a=M({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:jt(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Dt(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Ot(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:kt(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function kt(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function At(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function jt(e){return e.reduce((e,t)=>M(e,t.meta),{})}function Mt(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;St(e,t[i])<0?r=i:n=i+1}let i=Nt(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Nt(e){let t=e;for(;t=t.parent;)if(Pt(t)&&St(e,t)===0)return t}function Pt({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ft(t){let n=e(se),r=e(ce),i=u(()=>{let e=O(t.to);return n.resolve(e)}),a=u(()=>{let{matched:e}=i.value,{length:t}=e,n=e[t-1],a=r.matched;if(!n||!a.length)return-1;let o=a.findIndex(Re.bind(null,n));if(o>-1)return o;let s=Bt(e[t-2]);return t>1&&Bt(n)===s&&a[a.length-1].path!==s?a.findIndex(Re.bind(null,e[t-2])):o}),o=u(()=>a.value>-1&&zt(r.params,i.value.params)),s=u(()=>a.value>-1&&a.value===r.matched.length-1&&ze(r.params,i.value.params));function c(e={}){if(Rt(e)){let e=n[O(t.replace)?`replace`:`push`](O(t.to)).catch(ne);return t.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>e),e}return Promise.resolve()}return{route:i,href:u(()=>i.value.href),isActive:o,isExactActive:s,navigate:c}}function It(e){return e.length===1?e[0]:e}var Lt=o({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:Ft,setup(t,{slots:n}){let i=p(Ft(t)),{options:a}=e(se),o=u(()=>({[Vt(t.activeClass,a.linkActiveClass,`router-link-active`)]:i.isActive,[Vt(t.exactActiveClass,a.linkExactActiveClass,`router-link-exact-active`)]:i.isExactActive}));return()=>{let e=n.default&&It(n.default(i));return t.custom?e:r(`a`,{"aria-current":i.isExactActive?t.ariaCurrentValue:null,href:i.href,onClick:i.navigate,class:o.value},e)}}});function Rt(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function zt(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!N(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function Bt(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Vt=(e,t,n)=>e??t??n,Ht=o({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(t,{attrs:n,slots:i}){let a=e(le),o=u(()=>t.route||a.value),l=e(oe,0),d=u(()=>{let e=O(l),{matched:t}=o.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),f=u(()=>o.value.matched[d.value]);s(oe,u(()=>d.value+1)),s(ae,f),s(le,o);let p=D();return c(()=>[p.value,f.value,t.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!Re(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let e=o.value,a=t.name,s=f.value,c=s&&s.components[a];if(!c)return Ut(i.default,{Component:c,route:e});let l=s.props[a],u=r(c,M({},l?l===!0?e.params:typeof l==`function`?l(e):l:null,n,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[a]=null)},ref:p}));return Ut(i.default,{Component:u,route:e})||u}}});function Ut(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Wt=Ht;function Gt(e){let t=Et(e.routes,e),n=e.parseQuery||tt,r=e.stringifyQuery||nt,a=e.history,o=it(),s=it(),c=it(),l=C(L),u=L;A&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let d=te.bind(null,e=>``+e),f=te.bind(null,Ae),p=te.bind(null,je);function h(e,n){let r,i;return et(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function g(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function _(){return t.getRoutes().map(e=>e.record)}function v(e){return!!t.getRecordMatcher(e)}function y(e,i){if(i=M({},i||l.value),typeof e==`string`){let r=Pe(n,e,i.path),o=t.resolve({path:r.path},i),s=a.createHref(r.fullPath);return M(r,o,{params:p(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=M({},e,{path:Pe(n,e.path,i.path).path});else{let t=M({},e.params);for(let e in t)t[e]??delete t[e];o=M({},e,{params:f(t)}),i.params=f(i.params)}let s=t.resolve(o,i),c=e.hash||``;s.params=d(p(s.params));let u=Fe(r,M({},e,{hash:Ee(c),path:s.path})),m=a.createHref(u);return M({fullPath:u,hash:c,query:r===nt?rt(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function b(e){return typeof e==`string`?Pe(n,e,l.value.path):M({},e)}function x(e,t){if(u!==e)return ie(8,{from:t,to:e})}function S(e){return E(e)}function w(e){return S(M(b(e),{replace:!0}))}function T(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=b(i):{path:i},i.params={}),M({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function E(e,t){let n=u=y(e),i=l.value,a=e.state,o=e.force,s=e.replace===!0,c=T(n,i);if(c)return E(M(b(c),{state:typeof c==`object`?M({},a,c.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&Le(r,i,n)&&(f=ie(16,{to:d,from:i}),he(i,i,!0,!1)),(f?Promise.resolve(f):j(d,i)).catch(e=>F(e)?F(e,2)?e:me(e):fe(e,d,i)).then(e=>{if(e){if(F(e,2))return E(M({replace:s},b(e.to),{state:typeof e.to==`object`?M({},a,e.to.state):a,force:o}),t||d)}else e=re(d,i,!0,s,a);return ee(d,i,e),e})}function D(e,t){let n=x(e,t);return n?Promise.reject(n):Promise.resolve()}function k(e){let t=ve.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function j(e,t){let n,[r,i,a]=ot(e,t);n=at(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(R(r,e,t))});let c=D.bind(null,e,t);return n.push(c),I(n).then(()=>{n=[];for(let r of o.list())n.push(R(r,e,t));return n.push(c),I(n)}).then(()=>{n=at(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(R(r,e,t))});return n.push(c),I(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter)if(N(r.beforeEnter))for(let i of r.beforeEnter)n.push(R(i,e,t));else n.push(R(r.beforeEnter,e,t));return n.push(c),I(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=at(a,`beforeRouteEnter`,e,t,k),n.push(c),I(n))).then(()=>{n=[];for(let r of s.list())n.push(R(r,e,t));return n.push(c),I(n)}).catch(e=>F(e,8)?e:Promise.reject(e))}function ee(e,t,n){c.list().forEach(r=>k(()=>r(e,t,n)))}function re(e,t,n,r,i){let o=x(e,t);if(o)return o;let s=t===L,c=A?history.state:{};n&&(r||s?a.replace(e.fullPath,M({scroll:s&&c&&c.scroll},i)):a.push(e.fullPath,i)),l.value=e,he(e,t,n,s),me()}let P;function ae(){P||=a.listen((e,t,n)=>{if(!ye.listening)return;let r=y(e),i=T(r,ye.currentRoute.value);if(i){E(M(i,{replace:!0,force:!0}),r).catch(ne);return}u=r;let o=l.value;A&&Ze(Ye(o.fullPath,n.delta),qe()),j(r,o).catch(e=>F(e,12)?e:F(e,2)?(E(M(b(e.to),{force:!0}),r).then(e=>{F(e,20)&&!n.delta&&n.type===`pop`&&a.go(-1,!1)}).catch(ne),Promise.reject()):(n.delta&&a.go(-n.delta,!1),fe(e,r,o))).then(e=>{e||=re(r,o,!1),e&&(n.delta&&!F(e,8)?a.go(-n.delta,!1):n.type===`pop`&&F(e,20)&&a.go(-1,!1)),ee(r,o,e)}).catch(ne)})}let oe=it(),ue=it(),de;function fe(e,t,n){me(e);let r=ue.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function pe(){return de&&l.value!==L?Promise.resolve():new Promise((e,t)=>{oe.add([e,t])})}function me(e){return de||(de=!e,ae(),oe.list().forEach(([t,n])=>e?n(e):t()),oe.reset()),e}function he(t,n,r,a){let{scrollBehavior:o}=e;if(!A||!o)return Promise.resolve();let s=!r&&Qe(Ye(t.fullPath,0))||(a||!r)&&history.state&&history.state.scroll||null;return i().then(()=>o(t,n,s)).then(e=>e&&Je(e)).catch(e=>fe(e,t,n))}let ge=e=>a.go(e),_e,ve=new Set,ye={currentRoute:l,listening:!0,addRoute:h,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:_,resolve:y,options:e,push:S,replace:w,go:ge,back:()=>ge(-1),forward:()=>ge(1),beforeEach:o.add,beforeResolve:s.add,afterEach:c.add,onError:ue.add,isReady:pe,install(e){e.component(`RouterLink`,Lt),e.component(`RouterView`,Wt),e.config.globalProperties.$router=ye,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>O(l)}),A&&!_e&&l.value===L&&(_e=!0,S(a.location).catch(e=>{}));let t={};for(let e in L)Object.defineProperty(t,e,{get:()=>l.value[e],enumerable:!0});e.provide(se,ye),e.provide(ce,m(t)),e.provide(le,l);let n=e.unmount;ve.add(e),e.unmount=function(){ve.delete(e),ve.size<1&&(u=L,P&&P(),P=null,l.value=L,_e=!1,de=!1),n()}}};function I(e){return e.reduce((e,t)=>e.then(()=>k(t)),Promise.resolve())}return ye}function z(e,t){return w()?(T(e,t),!0):!1}var Kt=new WeakMap,qt=(...n)=>{let r=n[0],i=t()?.proxy??w();if(i==null&&!v())throw Error(`injectLocal must be called in setup`);return i&&Kt.has(i)&&r in Kt.get(i)?Kt.get(i)[r]:e(...n)};function Jt(e,n){let r=t()?.proxy??w();if(r==null)throw Error(`provideLocal must be called in setup`);Kt.has(r)||Kt.set(r,Object.create(null));let i=Kt.get(r);return i[e]=n,s(e,n)}var B=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var Yt=e=>e!==void 0,Xt=e=>e!=null,Zt=Object.prototype.toString,Qt=e=>Zt.call(e)===`[object Object]`,$t=()=>+Date.now(),V=()=>{},en=tn();function tn(){var e,t;return B&&!!(!((e=window)==null||(e=e.navigator)==null)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function nn(...e){if(e.length!==1)return _(...e);let t=e[0];return typeof t==`function`?y(E(()=>({get:t,set:V}))):D(t)}function rn(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}var an=e=>e();function on(e,t={}){let n,r,i=V,a=e=>{clearTimeout(e),i(),i=V},o;return s=>{let c=d(e),l=d(t.maxWait);return n&&a(n),c<=0||l!==void 0&&l<=0?(r&&=(a(r),void 0),Promise.resolve(s())):new Promise((e,u)=>{i=t.rejectOnCancel?u:e,o=s,l&&!r&&(r=setTimeout(()=>{n&&a(n),r=void 0,e(o())},l)),n=setTimeout(()=>{r&&a(r),r=void 0,e(s())},c)})}}function sn(e=an,t={}){let{initialState:n=`active`}=t,r=nn(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:h(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function cn(e,t){if(typeof e==`number`)return e+t;let n=e.match(/^-?\d+\.?\d*/)?.[0]||``,r=e.slice(n.length),i=Number.parseFloat(n)+t;return Number.isNaN(i)?e:i+r}function ln(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function un(e,t,n=!1){return Object.fromEntries(Object.entries(e).filter(([e,r])=>(!n||r!==void 0)&&!t.includes(e)))}function dn(e){return Array.isArray(e)?e:[e]}function fn(e){return e||t()}function pn(e){if(!B)return e;let t=0,n,r,i=()=>{--t,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return((...a)=>(t+=1,r||(r=S(!0),n=r.run(()=>e(...a))),z(i),n))}function mn(e,t,n={}){let{eventFilter:r=an,...i}=n;return c(e,rn(r,t),i)}function hn(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=sn(r,{initialState:i});return{stop:mn(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function gn(e,t={}){if(!f(e))return g(e);let n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(let r in e.value)n[r]=E(()=>({get(){return e.value[r]},set(n){if(d(t.replaceRef)??!0)if(Array.isArray(e.value)){let t=[...e.value];t[r]=n,e.value=t}else{let t={...e.value,[r]:n};Object.setPrototypeOf(t,Object.getPrototypeOf(e.value)),e.value=t}else e.value[r]=n}}));return n}function H(e,t=!0,n){fn(n)?a(e,n):t?e():i(e)}function _n(e,t=1e3,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=null,o=C(!1);function s(){a&&=(clearInterval(a),null)}function l(){o.value=!1,s()}function u(){let n=d(t);n<=0||(o.value=!0,i&&e(),s(),o.value&&(a=setInterval(e,n)))}return r&&B&&u(),(f(t)||typeof t==`function`)&&z(c(t,()=>{o.value&&B&&u()})),z(l),{isActive:h(o),pause:l,resume:u}}function vn(e=1e3,t={}){let{controls:n=!1,immediate:r=!0,callback:i}=t,a=C(0),o=()=>a.value+=1,s=()=>{a.value=0},c=_n(i?()=>{o(),i(a.value)}:o,e,{immediate:r});return n?{counter:h(a),reset:s,...c}:h(a)}function yn(e=!1,t={}){let{truthyValue:n=!0,falsyValue:r=!1}=t,i=f(e),a=C(e);function o(e){if(arguments.length)return a.value=e,a.value;{let e=d(n);return a.value=a.value===e?d(r):e,a.value}}return i?o:[a,o]}function bn(e,t,n={}){let{debounce:r=0,maxWait:i=void 0,...a}=n;return mn(e,t,{...a,eventFilter:on(r,{maxWait:i})})}var xn=bn;function Sn(e,t,n={}){let{eventFilter:r=an,...i}=n,a=rn(r,t),o,s,l;if(i.flush===`sync`){let t=!1;s=()=>{},o=e=>{t=!0,e(),t=!1},l=c(e,(...e)=>{t||a(...e)},i)}else{let t=[],n=0,r=0;s=()=>{n=r},t.push(c(e,()=>{r++},{...i,flush:`sync`})),o=e=>{let t=r;e(),n+=r-t},t.push(c(e,(...e)=>{let t=n>0&&n===r;n=0,r=0,!t&&a(...e)},i)),l=()=>{t.forEach(e=>e())}}return{stop:l,ignoreUpdates:o,ignorePrevAsyncUpdates:s}}var Cn=Sn;function wn(e,t,n){return c(e,t,{...n,immediate:!0})}function Tn(e,t,n){let r=c(e,(e,a,o)=>{e&&(n?.once&&i(()=>r()),t(e,a,o))},{...n,once:!1});return r}var U=B?window:void 0,En=B?window.document:void 0,Dn=B?window.navigator:void 0;B&&window.location;function W(e){let t=d(e);return t?.$el??t}function G(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=u(()=>{let t=dn(d(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return wn(()=>[n.value?.map(e=>W(e))??[U].filter(e=>e!=null),dn(d(n.value?e[1]:e[0])),dn(O(n.value?e[2]:e[1])),d(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=Qt(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}var On=!1;function kn(e,t,n={}){let{window:r=U,ignore:i=[],capture:a=!0,detectIframe:o=!1,controls:s=!1}=n;if(!r)return s?{stop:V,cancel:V,trigger:V}:V;if(en&&!On){On=!0;let e={passive:!0};Array.from(r.document.body.children).forEach(t=>t.addEventListener(`click`,V,e)),r.document.documentElement.addEventListener(`click`,V,e)}let c=!0,l=e=>d(i).some(t=>{if(typeof t==`string`)return Array.from(r.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{let n=W(t);return n&&(e.target===n||e.composedPath().includes(n))}});function u(e){let t=d(e);return t&&t.$.subTree.shapeFlag===16}function f(e,t){let n=d(e),r=n.$.subTree&&n.$.subTree.children;return r==null||!Array.isArray(r)?!1:r.some(e=>e.el===t.target||t.composedPath().includes(e.el))}let p=n=>{let r=W(e);if(n.target!=null&&!(!(r instanceof Element)&&u(e)&&f(e,n))&&!(!r||r===n.target||n.composedPath().includes(r))){if(`detail`in n&&n.detail===0&&(c=!l(n)),!c){c=!0;return}t(n)}},m=!1,h=[G(r,`click`,e=>{m||(m=!0,setTimeout(()=>{m=!1},0),p(e))},{passive:!0,capture:a}),G(r,`pointerdown`,t=>{let n=W(e);c=!l(t)&&!!(n&&!t.composedPath().includes(n))},{passive:!0}),o&&G(r,`blur`,n=>{setTimeout(()=>{let i=W(e),a=r.document.activeElement;for(;a?.shadowRoot;)a=a.shadowRoot.activeElement;a?.tagName===`IFRAME`&&!i?.contains(r.document.activeElement)&&t(n)},0)},{passive:!0})].filter(Boolean),g=()=>h.forEach(e=>e());return s?{stop:g,cancel:()=>{c=!1},trigger:e=>{c=!0,p(e),c=!1}}:g}function An(){let e=C(!1),n=t();return n&&a(()=>{e.value=!0},n),e}function jn(e){let t=An();return u(()=>(t.value,!!e()))}function Mn(e,t,n={}){let{window:r=U,...i}=n,a,o=jn(()=>r&&`MutationObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},l=c(u(()=>{let t=dn(d(e)).map(W).filter(Xt);return new Set(t)}),e=>{s(),o.value&&e.size&&(a=new MutationObserver(t),e.forEach(e=>a.observe(e,i)))},{immediate:!0,flush:`post`}),f=()=>a?.takeRecords(),p=()=>{l(),s()};return z(p),{isSupported:o,stop:p,takeRecords:f}}function Nn(e,t,n={}){let{window:r=U,document:i=r?.document,flush:a=`sync`}=n;if(!r||!i)return V;let o,s=e=>{o?.(),o=e},c=l(()=>{let n=W(e);if(n){let{stop:e}=Mn(i,e=>{e.map(e=>[...e.removedNodes]).flat().some(e=>e===n||e.contains(n))&&t(e)},{window:r,childList:!0,subtree:!0});s(e)}},{flush:a}),u=()=>{c(),s()};return z(u),u}function Pn(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Fn(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]==`object`?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);let{target:i=U,eventName:a=`keydown`,passive:o=!1,dedupe:s=!1}=r,c=Pn(t);return G(i,a,e=>{e.repeat&&d(s)||c(e)&&n(e)},o)}function In(e={}){let{window:t=U,deep:n=!0,triggerOnRemoval:r=!1}=e,i=e.document??t?.document,a=()=>{let e=i?.activeElement;if(n)for(var t;e?.shadowRoot;)e=e==null||(t=e.shadowRoot)==null?void 0:t.activeElement;return e},o=C(),s=()=>{o.value=a()};if(t){let e={capture:!0,passive:!0};G(t,`blur`,e=>{e.relatedTarget===null&&s()},e),G(t,`focus`,s,e)}return r&&Nn(o,s,{document:i}),s(),o}var Ln=Symbol(`vueuse-ssr-width`);function Rn(){let e=v()?qt(Ln,null):null;return typeof e==`number`?e:void 0}function K(e,t={}){let{window:n=U,ssrWidth:r=Rn()}=t,i=jn(()=>n&&`matchMedia`in n&&typeof n.matchMedia==`function`),a=C(typeof r==`number`),o=C(),s=C(!1);return l(()=>{if(a.value){a.value=!i.value,s.value=d(e).split(`,`).some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),i=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||i);return n&&a&&(a=r>=ln(n[1])),i&&a&&(a=r<=ln(i[1])),t?!a:a});return}i.value&&(o.value=n.matchMedia(d(e)),s.value=o.value.matches)}),G(o,`change`,e=>{s.value=e.matches},{passive:!0}),u(()=>s.value)}var zn={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function Bn(e,t={}){function n(t,n){let r=d(e[d(t)]);return n!=null&&(r=cn(r,n)),typeof r==`number`&&(r=`${r}px`),r}let{window:r=U,strategy:i=`min-width`,ssrWidth:a=Rn()}=t,o=typeof a==`number`,s=o?C(!1):{value:!0};o&&H(()=>s.value=!!r);function c(e,t){return!s.value&&o?e===`min`?a>=ln(t):a<=ln(t):r?r.matchMedia(`(${e}-width: ${t})`).matches:!1}let l=e=>K(()=>`(min-width: ${n(e)})`,t),f=e=>K(()=>`(max-width: ${n(e)})`,t),p=Object.keys(e).reduce((e,t)=>(Object.defineProperty(e,t,{get:()=>i===`min-width`?l(t):f(t),enumerable:!0,configurable:!0}),e),{});function m(){let t=Object.keys(e).map(e=>[e,p[e],ln(n(e))]).sort((e,t)=>e[2]-t[2]);return u(()=>t.filter(([,e])=>e.value).map(([e])=>e))}return Object.assign(p,{greaterOrEqual:l,smallerOrEqual:f,greater(e){return K(()=>`(min-width: ${n(e,.1)})`,t)},smaller(e){return K(()=>`(max-width: ${n(e,-.1)})`,t)},between(e,r){return K(()=>`(min-width: ${n(e)}) and (max-width: ${n(r,-.1)})`,t)},isGreater(e){return c(`min`,n(e,.1))},isGreaterOrEqual(e){return c(`min`,n(e))},isSmaller(e){return c(`max`,n(e,-.1))},isSmallerOrEqual(e){return c(`max`,n(e))},isInBetween(e,t){return c(`min`,n(e))&&c(`max`,n(t,-.1))},current:m,active(){let e=m();return u(()=>e.value.length===0?``:e.value.at(i===`min-width`?-1:0))}})}function Vn(e){return JSON.parse(JSON.stringify(e))}var Hn=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},Un=`__vueuse_ssr_handlers__`,Wn=Gn();function Gn(){return Un in Hn||(Hn[Un]=Hn[Un]||{}),Hn[Un]}function Kn(e,t){return Wn[e]||t}function qn(e){return K(`(prefers-color-scheme: dark)`,e)}function Jn(e){return e==null?`any`:e instanceof Set?`set`:e instanceof Map?`map`:e instanceof Date?`date`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:typeof e==`object`?`object`:Number.isNaN(e)?`any`:`number`}var Yn={boolean:{read:e=>e===`true`,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Xn=`vueuse-storage`;function Zn(e,t,n,r={}){let{flush:a=`pre`,deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:f=!1,shallow:p,window:m=U,eventFilter:h,onError:g=e=>{console.error(e)},initOnMounted:_}=r,v=(p?C:D)(typeof t==`function`?t():t),y=u(()=>d(e));if(!n)try{n=Kn(`getDefaultStorage`,()=>U?.localStorage)()}catch(e){g(e)}if(!n)return v;let b=d(t),x=Jn(b),S=r.serializer??Yn[x],{pause:w,resume:T}=hn(v,e=>k(e),{flush:a,deep:o,eventFilter:h});c(y,()=>j(),{flush:a});let E=!1;m&&s&&(n instanceof Storage?G(m,`storage`,e=>{_&&!E||j(e)},{passive:!0}):G(m,Xn,e=>{_&&!E||ee(e)})),_?H(()=>{E=!0,j()}):j();function O(e,t){if(m){let r={key:y.value,oldValue:e,newValue:t,storageArea:n};m.dispatchEvent(n instanceof Storage?new StorageEvent(`storage`,r):new CustomEvent(Xn,{detail:r}))}}function k(e){try{let t=n.getItem(y.value);if(e==null)O(t,null),n.removeItem(y.value);else{let r=S.write(e);t!==r&&(n.setItem(y.value,r),O(t,r))}}catch(e){g(e)}}function A(e){let t=e?e.newValue:n.getItem(y.value);if(t==null)return l&&b!=null&&n.setItem(y.value,S.write(b)),b;if(!e&&f){let e=S.read(t);return typeof f==`function`?f(e,b):x===`object`&&!Array.isArray(e)?{...b,...e}:e}else if(typeof t!=`string`)return t;else return S.read(t)}function j(e){if(!(e&&e.storageArea!==n)){if(e&&e.key==null){v.value=b;return}if(!(e&&e.key!==y.value)){w();try{let t=S.write(v.value);(e===void 0||e?.newValue!==t)&&(v.value=A(e))}catch(e){g(e)}finally{e?i(T):T()}}}}function ee(e){j(e.detail)}return v}function Qn(e={}){let{document:t=En}=e;if(!t)return C(`visible`);let n=C(t.visibilityState);return G(t,`visibilitychange`,()=>{n.value=t.visibilityState},{passive:!0}),n}var $n={speed:2,margin:30,direction:`both`};function er(e){e.scrollLeft>e.scrollWidth-e.clientWidth&&(e.scrollLeft=Math.max(0,e.scrollWidth-e.clientWidth)),e.scrollTop>e.scrollHeight-e.clientHeight&&(e.scrollTop=Math.max(0,e.scrollHeight-e.clientHeight))}function tr(e,t={}){let{pointerTypes:n,preventDefault:r,stopPropagation:i,exact:a,onMove:o,onEnd:s,onStart:l,initialValue:f,axis:p=`both`,draggingElement:m=U,containerElement:h,handle:g=e,buttons:_=[0],restrictInView:v,autoScroll:y=!1}=t,b=D(d(f)??{x:0,y:0}),x=D(),S=e=>n?n.includes(e.pointerType):!0,C=e=>{d(r)&&e.preventDefault(),d(i)&&e.stopPropagation()},w=d(y),T=typeof w==`object`?{speed:d(w.speed)??$n.speed,margin:d(w.margin)??$n.margin,direction:w.direction??$n.direction}:$n,E=e=>typeof e==`number`?[e,e]:[e.x,e.y],O=(e,t,n)=>{let{clientWidth:r,clientHeight:i,scrollLeft:a,scrollTop:o,scrollWidth:s,scrollHeight:c}=e,[l,u]=E(T.margin),[d,f]=E(T.speed),p=0,m=0;(T.direction===`x`||T.direction===`both`)&&(n.x0?p=-d:n.x+t.width>r-l&&a0?m=-f:n.y+t.height>i-u&&o{let t=d(h);t&&!k&&(k=setInterval(()=>{let n=d(e).getBoundingClientRect(),{x:r,y:i}=b.value,a={x:r-t.scrollLeft,y:i-t.scrollTop};a.x>=0&&a.y>=0&&(O(t,n,a),a.x+=t.scrollLeft,a.y+=t.scrollTop,b.value=a)},1e3/60))},j=()=>{k&&=(clearInterval(k),null)},ee=(e,t,n,r)=>{let[i,a]=typeof n==`number`?[n,n]:[n.x,n.y],{clientWidth:o,clientHeight:s}=t;return e.xo-i||e.ys-a};d(y)&&c(b,()=>{if(d(t.disabled)||!x.value)return;let n=d(h);if(!n)return;let r=d(e).getBoundingClientRect(),{x:i,y:a}=b.value;ee({x:i-n.scrollLeft,y:a-n.scrollTop},n,T.margin,r)?A():j()});let M=n=>{var r;if(!d(_).includes(n.button)||d(t.disabled)||!S(n)||d(a)&&n.target!==d(e))return;let i=d(h),o=i==null||(r=i.getBoundingClientRect)==null?void 0:r.call(i),s=d(e).getBoundingClientRect(),c={x:n.clientX-(i?s.left-o.left+(y?0:i.scrollLeft):s.left),y:n.clientY-(i?s.top-o.top+(y?0:i.scrollTop):s.top)};l?.(c,n)!==!1&&(x.value=c,C(n))},te=n=>{if(d(t.disabled)||!S(n)||!x.value)return;let r=d(h);r instanceof HTMLElement&&er(r);let i=d(e).getBoundingClientRect(),{x:a,y:s}=b.value;if((p===`x`||p===`both`)&&(a=n.clientX-x.value.x,r&&(a=Math.min(Math.max(0,a),r.scrollWidth-i.width))),(p===`y`||p===`both`)&&(s=n.clientY-x.value.y,r&&(s=Math.min(Math.max(0,s),r.scrollHeight-i.height))),d(y)&&r&&(k===null&&O(r,i,{x:a,y:s}),a+=r.scrollLeft,s+=r.scrollTop),r&&(v||y)){if(p!==`y`){let e=a-r.scrollLeft;e<0?a=r.scrollLeft:e>r.clientWidth-i.width&&(a=r.clientWidth-i.width+r.scrollLeft)}if(p!==`x`){let e=s-r.scrollTop;e<0?s=r.scrollTop:e>r.clientHeight-i.height&&(s=r.clientHeight-i.height+r.scrollTop)}}b.value={x:a,y:s},o?.(b.value,n),C(n)},ne=e=>{d(t.disabled)||!S(e)||x.value&&(x.value=void 0,y&&j(),s?.(b.value,e),C(e))};if(B){let e=()=>({capture:t.capture??!0,passive:!d(r)});G(g,`pointerdown`,M,e),G(m,`pointermove`,te,e),G(m,`pointerup`,ne,e)}return{...gn(b),position:b,isDragging:u(()=>!!x.value),style:u(()=>` - left: ${b.value.x}px; - top: ${b.value.y}px; - ${y?`text-wrap: nowrap;`:``} - `)}}function nr(e,t,n={}){let{window:r=U,...i}=n,a,o=jn(()=>r&&`ResizeObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},l=c(u(()=>{let t=d(e);return Array.isArray(t)?t.map(e=>W(e)):[W(t)]}),e=>{if(s(),o.value&&r){a=new ResizeObserver(t);for(let t of e)t&&a.observe(t,i)}},{immediate:!0,flush:`post`}),f=()=>{s(),l()};return z(f),{isSupported:o,stop:f}}function rr(e,t={}){let{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:a=!0,updateTiming:o=`sync`}=t,s=C(0),l=C(0),u=C(0),d=C(0),f=C(0),p=C(0),m=C(0),h=C(0);function g(){let t=W(e);if(!t){n&&(s.value=0,l.value=0,u.value=0,d.value=0,f.value=0,p.value=0,m.value=0,h.value=0);return}let r=t.getBoundingClientRect();s.value=r.height,l.value=r.bottom,u.value=r.left,d.value=r.right,f.value=r.top,p.value=r.width,m.value=r.x,h.value=r.y}function _(){o===`sync`?g():o===`next-frame`&&requestAnimationFrame(()=>g())}return nr(e,_),c(()=>W(e),e=>!e&&_()),Mn(e,_,{attributeFilter:[`style`,`class`]}),i&&G(`scroll`,_,{capture:!0,passive:!0}),r&&G(`resize`,_,{passive:!0}),H(()=>{a&&_()}),{height:s,bottom:l,left:u,right:d,top:f,width:p,x:m,y:h,update:_}}function ir(e,t={width:0,height:0},n={}){let{window:r=U,box:i=`content-box`}=n,a=u(()=>{var t;return(t=W(e))==null||(t=t.namespaceURI)==null?void 0:t.includes(`svg`)}),o=C(t.width),s=C(t.height),{stop:l}=nr(e,([t])=>{let n=i===`border-box`?t.borderBoxSize:i===`content-box`?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&a.value){let t=W(e);if(t){let e=t.getBoundingClientRect();o.value=e.width,s.value=e.height}}else if(n){let e=dn(n);o.value=e.reduce((e,{inlineSize:t})=>e+t,0),s.value=e.reduce((e,{blockSize:t})=>e+t,0)}else o.value=t.contentRect.width,s.value=t.contentRect.height},n);H(()=>{let n=W(e);n&&(o.value=`offsetWidth`in n?n.offsetWidth:t.width,s.value=`offsetHeight`in n?n.offsetHeight:t.height)});let d=c(()=>W(e),e=>{o.value=e?t.width:0,s.value=e?t.height:0});function f(){l(),d()}return{width:o,height:s,stop:f}}var ar=[`fullscreenchange`,`webkitfullscreenchange`,`webkitendfullscreen`,`mozfullscreenchange`,`MSFullscreenChange`];function or(e,t={}){let{document:n=En,autoExit:r=!1}=t,i=u(()=>W(e)??n?.documentElement),a=C(!1),o=u(()=>[`requestFullscreen`,`webkitRequestFullscreen`,`webkitEnterFullscreen`,`webkitEnterFullScreen`,`webkitRequestFullScreen`,`mozRequestFullScreen`,`msRequestFullscreen`].find(e=>n&&e in n||i.value&&e in i.value)),s=u(()=>[`exitFullscreen`,`webkitExitFullscreen`,`webkitExitFullScreen`,`webkitCancelFullScreen`,`mozCancelFullScreen`,`msExitFullscreen`].find(e=>n&&e in n||i.value&&e in i.value)),c=u(()=>[`fullScreen`,`webkitIsFullScreen`,`webkitDisplayingFullscreen`,`mozFullScreen`,`msFullscreenElement`].find(e=>n&&e in n||i.value&&e in i.value)),l=[`fullscreenElement`,`webkitFullscreenElement`,`mozFullScreenElement`,`msFullscreenElement`].find(e=>n&&e in n),d=jn(()=>i.value&&n&&o.value!==void 0&&s.value!==void 0&&c.value!==void 0),f=()=>l?n?.[l]===i.value:!1,p=()=>{if(c.value){if(n&&n[c.value]!=null)return n[c.value];{let e=i.value;if(e?.[c.value]!=null)return!!e[c.value]}}return!1};async function m(){if(!(!d.value||!a.value)){if(s.value)if(n?.[s.value]!=null)await n[s.value]();else{let e=i.value;e?.[s.value]!=null&&await e[s.value]()}a.value=!1}}async function h(){if(!d.value||a.value)return;p()&&await m();let e=i.value;o.value&&e?.[o.value]!=null&&(await e[o.value](),a.value=!0)}async function g(){await(a.value?m():h())}let _=()=>{let e=p();(!e||e&&f())&&(a.value=e)},v={capture:!1,passive:!0};return G(n,ar,_,v),G(()=>W(i),ar,_,v),H(_,!1),r&&z(m),{isSupported:d,isFullscreen:a,enter:h,exit:m,toggle:g}}function sr(e,t,n={}){let{window:r=U}=n;return Zn(e,t,r?.localStorage,n)}var cr={ctrl:`control`,command:`meta`,cmd:`meta`,option:`alt`,up:`arrowup`,down:`arrowdown`,left:`arrowleft`,right:`arrowright`};function lr(e={}){let{reactive:t=!1,target:n=U,aliasMap:r=cr,passive:i=!0,onEventFired:a=V}=e,o=p(new Set),s={toJSON(){return{}},current:o},c=t?p(s):s,l=new Set,f=new Map([[`Meta`,l],[`Shift`,new Set],[`Alt`,new Set]]),m=new Set;function h(e,n){e in c&&(t?c[e]=n:c[e].value=n)}function g(){o.clear();for(let e of m)h(e,!1)}function _(e,t,n){if(!(!e||typeof t.getModifierState!=`function`)){for(let[e,r]of f)if(t.getModifierState(e)){n.forEach(e=>r.add(e));break}}}function v(e,t){if(e)return;let n=`${t[0].toUpperCase()}${t.slice(1)}`,r=f.get(n);if(![`shift`,`alt`].includes(t)||!r)return;let i=Array.from(r),a=i.indexOf(t);i.forEach((e,t)=>{t>=a&&(o.delete(e),h(e,!1))}),r.clear()}function y(e,t){let n=e.key?.toLowerCase(),r=[e.code?.toLowerCase(),n].filter(Boolean);if(n){n&&(t?o.add(n):o.delete(n));for(let e of r)m.add(e),h(e,t);_(t,e,[...o,...r]),v(t,n),n===`meta`&&!t&&(l.forEach(e=>{o.delete(e),h(e,!1)}),l.clear())}}G(n,`keydown`,e=>(y(e,!0),a(e)),{passive:i}),G(n,`keyup`,e=>(y(e,!1),a(e)),{passive:i}),G(`blur`,g,{passive:i}),G(`focus`,g,{passive:i});let b=new Proxy(c,{get(e,n,i){if(typeof n!=`string`)return Reflect.get(e,n,i);if(n=n.toLowerCase(),n in r&&(n=r[n]),!(n in c))if(/[+_-]/.test(n)){let e=n.split(/[+_-]/g).map(e=>e.trim());c[n]=u(()=>e.map(e=>d(b[e])).every(Boolean))}else c[n]=C(!1);let a=Reflect.get(e,n,i);return t?d(a):a}});return b}var ur={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof MouseEvent?[e.movementX,e.movementY]:null};function dr(e={}){let{type:t=`page`,touch:n=!0,resetOnTouchEnds:r=!1,initialValue:i={x:0,y:0},window:a=U,target:o=a,scroll:s=!0,eventFilter:c}=e,l=null,u=0,d=0,f=C(i.x),p=C(i.y),m=C(null),h=typeof t==`function`?t:ur[t],g=e=>{let t=h(e);l=e,t&&([f.value,p.value]=t,m.value=`mouse`),a&&(u=a.scrollX,d=a.scrollY)},_=e=>{if(e.touches.length>0){let t=h(e.touches[0]);t&&([f.value,p.value]=t,m.value=`touch`)}},v=()=>{if(!l||!a)return;let e=h(l);l instanceof MouseEvent&&e&&(f.value=e[0]+a.scrollX-u,p.value=e[1]+a.scrollY-d)},y=()=>{f.value=i.x,p.value=i.y},b=c?e=>c(()=>g(e),{}):e=>g(e),x=c?e=>c(()=>_(e),{}):e=>_(e),S=c?()=>c(()=>v(),{}):()=>v();if(o){let e={passive:!0};G(o,[`mousemove`,`dragover`],b,e),n&&t!==`movement`&&(G(o,[`touchstart`,`touchmove`],x,e),r&&G(o,`touchend`,y,e)),s&&t===`page`&&G(a,`scroll`,S,e)}return{x:f,y:p,sourceType:m}}function fr(e,t={}){let n=nn(e),{threshold:r=50,onSwipe:i,onSwipeEnd:a,onSwipeStart:o,disableTextSelect:s=!1}=t,c=p({x:0,y:0}),l=(e,t)=>{c.x=e,c.y=t},d=p({x:0,y:0}),f=(e,t)=>{d.x=e,d.y=t},m=u(()=>c.x-d.x),g=u(()=>c.y-d.y),{max:_,abs:v}=Math,b=u(()=>_(v(m.value),v(g.value))>=r),x=C(!1),S=C(!1),w=u(()=>b.value?v(m.value)>v(g.value)?m.value>0?`left`:`right`:g.value>0?`up`:`down`:`none`),T=e=>{let n=e.buttons===0,r=e.buttons===1;return t.pointerTypes?.includes(e.pointerType)??(n||r)??!0},E={passive:!0},D=[G(e,`pointerdown`,e=>{if(!T(e))return;S.value=!0,e.target?.setPointerCapture(e.pointerId);let{clientX:t,clientY:n}=e;l(t,n),f(t,n),o?.(e)},E),G(e,`pointermove`,e=>{if(!T(e)||!S.value)return;let{clientX:t,clientY:n}=e;f(t,n),!x.value&&b.value&&(x.value=!0),x.value&&i?.(e)},E),G(e,`pointerup`,e=>{T(e)&&(x.value&&a?.(e,w.value),S.value=!1,x.value=!1)},E)];return H(()=>{var e;if((e=n.value)==null||(e=e.style)==null||e.setProperty(`touch-action`,`pan-y`),s){var t,r,i;(t=n.value)==null||(t=t.style)==null||t.setProperty(`-webkit-user-select`,`none`),(r=n.value)==null||(r=r.style)==null||r.setProperty(`-ms-user-select`,`none`),(i=n.value)==null||(i=i.style)==null||i.setProperty(`user-select`,`none`)}}),{isSwiping:h(x),direction:h(w),posStart:y(c),posEnd:y(d),distanceX:m,distanceY:g,stop:()=>D.forEach(e=>e())}}var pr=0;function mr(e,t={}){let n=C(!1),{document:r=En,immediate:i=!0,manual:a=!1,id:o=`vueuse_styletag_${++pr}`}=t,s=C(e),l=()=>{},u=()=>{if(!r)return;let e=r.getElementById(o)||r.createElement(`style`);e.isConnected||(e.id=o,t.nonce&&(e.nonce=t.nonce),t.media&&(e.media=t.media),r.head.appendChild(e)),!n.value&&(l=c(s,t=>{e.textContent=t},{immediate:!0}),n.value=!0)},d=()=>{!r||!n.value||(l(),r.head.removeChild(r.getElementById(o)),n.value=!1)};return i&&!a&&H(u),a||z(d),{id:o,css:s,unload:d,load:u,isLoaded:h(n)}}function hr(e,n,r,a={}){var o,s;let{clone:l=!1,passive:d=!1,eventName:f,deep:p=!1,defaultValue:m,shouldEmit:h}=a,g=t(),_=r||g?.emit||(g==null||(o=g.$emit)==null?void 0:o.bind(g))||(g==null||(s=g.proxy)==null||(s=s.$emit)==null?void 0:s.bind(g?.proxy)),v=f;n||=`modelValue`,v||=`update:${n.toString()}`;let y=e=>l?typeof l==`function`?l(e):Vn(e):e,b=()=>Yt(e[n])?y(e[n]):m,x=e=>{h?h(e)&&_(v,e):_(v,e)};if(d){let t=D(b()),r=!1;return c(()=>e[n],e=>{r||(r=!0,t.value=y(e),i(()=>r=!1))}),c(t,t=>{!r&&(t!==e[n]||p)&&x(t)},{deep:p}),t}else return u({get(){return b()},set(e){x(e)}})}function gr(e={}){let{navigator:t=Dn,document:n=En}=e,r=C(!1),i=C(null),a=Qn({document:n}),o=jn(()=>t&&`wakeLock`in t),s=u(()=>!!i.value&&a.value===`visible`);o.value&&(G(i,`release`,()=>{r.value=i.value?.type??!1},{passive:!0}),Tn(()=>a.value===`visible`&&n?.visibilityState===`visible`&&r.value,e=>{r.value=!1,c(e)}));async function c(e){await i.value?.release(),i.value=o.value?await t.wakeLock.request(e):null}async function l(e){a.value===`visible`?await c(e):r.value=e}async function d(){r.value=!1;let e=i.value;i.value=null,await e?.release()}return z(()=>{d()}),{sentinel:i,isSupported:o,isActive:s,request:l,forceRequest:c,release:d}}function _r(e={}){let{window:t=U}=e;if(!t)return C(!1);let n=C(t.document.hasFocus()),r={passive:!0};return G(t,`blur`,()=>{n.value=!1},r),G(t,`focus`,()=>{n.value=!0},r),n}function vr(e={}){let{window:t=U,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:a=!0,type:o=`inner`}=e,s=C(n),l=C(r),u=()=>{if(t)if(o===`outer`)s.value=t.outerWidth,l.value=t.outerHeight;else if(o===`visual`&&t.visualViewport){let{width:e,height:n,scale:r}=t.visualViewport;s.value=Math.round(e*r),l.value=Math.round(n*r)}else a?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight)};u(),H(u);let d={passive:!0};return G(`resize`,u,d),t&&o===`visual`&&t.visualViewport&&G(t.visualViewport,`resize`,u,d),i&&c(K(`(orientation: portrait)`),()=>u()),{width:s,height:l}}function yr(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function br(e,t,n=`.`,r){if(!yr(t))return br(e,{},n,r);let i={...t};for(let t of Object.keys(e)){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(Array.isArray(a)&&Array.isArray(i[t])?i[t]=[...a,...i[t]]:yr(a)&&yr(i[t])?i[t]=br(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a))}return i}function xr(e){return(...t)=>t.reduce((t,n)=>br(t,n,``,e),{})}var Sr=xr();function Cr(e){return w()?(T(e),!0):!1}var wr=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var Tr=e=>e!=null,Er=Object.prototype.toString,Dr=e=>Er.call(e)===`[object Object]`,Or=()=>{};function kr(e){return Array.isArray(e)?e:[e]}function Ar(e){return e||t()}function jr(e,t){Ar(t)&&k(e,t)}function Mr(e,t,n){return c(e,t,{...n,immediate:!0})}var Nr=wr?window:void 0;wr&&window.document,wr&&window.navigator,wr&&window.location;function Pr(e){let t=d(e);return t?.$el??t}function q(...e){let t=[],n=()=>{t.forEach(e=>e()),t.length=0},r=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),i=u(()=>{let t=kr(d(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0}),a=Mr(()=>[i.value?.map(e=>Pr(e))??[Nr].filter(e=>e!=null),kr(d(i.value?e[1]:e[0])),kr(O(i.value?e[2]:e[1])),d(i.value?e[3]:e[2])],([e,i,a,o])=>{if(n(),!e?.length||!i?.length||!a?.length)return;let s=Dr(o)?{...o}:o;t.push(...e.flatMap(e=>i.flatMap(t=>a.map(n=>r(e,t,n,s)))))},{flush:`post`});return Cr(n),()=>{a(),n()}}function Fr(){let e=C(!1),n=t();return n&&a(()=>{e.value=!0},n),e}function Ir(e){let t=Fr();return u(()=>(t.value,!!e()))}function Lr(e,t,n={}){let{root:r,rootMargin:i=`0px`,threshold:a=0,window:o=Nr,immediate:s=!0}=n,l=Ir(()=>o&&`IntersectionObserver`in o),f=u(()=>kr(d(e)).map(Pr).filter(Tr)),p=Or,m=C(s),h=l.value?c(()=>[f.value,Pr(r),m.value],([e,n])=>{if(p(),!m.value||!e.length)return;let r=new IntersectionObserver(t,{root:Pr(n),rootMargin:i,threshold:a});e.forEach(e=>e&&r.observe(e)),p=()=>{r.disconnect(),p=Or}},{immediate:s,flush:`post`}):Or,g=()=>{p(),h(),m.value=!1};return Cr(g),{isSupported:l,isActive:m,pause(){p(),m.value=!1},resume(){m.value=!0},stop:g}}var Rr=1/60*1e3,zr=typeof performance<`u`?()=>performance.now():()=>Date.now(),Br=typeof window<`u`?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(zr()),Rr);function Vr(e){let t=[],n=[],r=0,i=!1,a=!1,o=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{let c=s&&i,l=c?t:n;return a&&o.add(e),l.indexOf(e)===-1&&(l.push(e),c&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);t!==-1&&n.splice(t,1),o.delete(e)},process:c=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n(e[t]=Vr(()=>Wr=!0),e),{}),Yr=qr.reduce((e,t)=>{let n=Jr[t];return e[t]=(e,t=!1,r=!1)=>(Wr||$r(),n.schedule(e,t,r)),e},{}),Xr=qr.reduce((e,t)=>(e[t]=Jr[t].cancel,e),{});qr.reduce((e,t)=>(e[t]=()=>Jr[t].process(Kr),e),{});var Zr=e=>Jr[e].process(Kr),Qr=e=>{Wr=!1,Kr.delta=Ur?Rr:Math.max(Math.min(e-Kr.timestamp,Hr),1),Kr.timestamp=e,Gr=!0,qr.forEach(Zr),Gr=!1,Wr&&(Ur=!1,Br(Qr))},$r=()=>{Wr=!0,Ur=!0,Gr||Br(Qr)},ei=()=>Kr;function ti(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);iMath.min(Math.max(n,e),t),ri=.001,ii=.01,ai=.05;function oi({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a,o=1-t;o=ni(ai,1,o),e=ni(ii,10,e/1e3),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=li(t,o),c=Math.exp(-i);return ri-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=li(t**2,o);return(-i(t)+ri>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=ci(i,a,s);if(e*=1e3,isNaN(c))return{stiffness:100,damping:10,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var si=12;function ci(e,t,n){let r=n;for(let n=1;ne[t]!==void 0)}function pi(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!fi(e,di)&&fi(e,ui)){let n=oi(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function mi(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,a=ti(e,[`from`,`to`,`restSpeed`,`restDelta`]);let o={done:!1,value:t},{stiffness:s,damping:c,mass:l,velocity:u,duration:d,isResolvedFromDuration:f}=pi(a),p=hi,m=hi;function h(){let e=u?-(u/1e3):0,r=n-t,a=c/(2*Math.sqrt(s*l)),o=Math.sqrt(s/l)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),a<1){let t=li(o,a);p=i=>{let s=Math.exp(-a*o*i);return n-s*((e+a*o*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},m=n=>{let i=Math.exp(-a*o*n);return a*o*i*(Math.sin(t*n)*(e+a*o*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+a*o*r)-t*r*Math.sin(t*n))}}else if(a===1)p=t=>n-Math.exp(-o*t)*(r+(e+o*r)*t);else{let t=o*Math.sqrt(a*a-1);p=i=>{let s=Math.exp(-a*o*i),c=Math.min(t*i,300);return n-s*((e+a*o*r)*Math.sinh(c)+t*r*Math.cosh(c))/t}}}return h(),{next:e=>{let t=p(e);if(f)o.done=e>=d;else{let a=m(e)*1e3,s=Math.abs(a)<=r,c=Math.abs(n-t)<=i;o.done=s&&c}return o.value=o.done?n:t,o},flipTarget:()=>{u=-u,[t,n]=[n,t],h()}}}mi.needsInterpolation=(e,t)=>typeof e==`string`||typeof t==`string`;var hi=e=>0,gi=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},_i=(e,t,n)=>-n*e+n*t+e,vi=(e,t)=>n=>Math.max(Math.min(n,t),e),yi=e=>e%1?Number(e.toFixed(5)):e,bi=/(-)?([\d]*\.?[\d])+/g,xi=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Si=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ci(e){return typeof e==`string`}var wi={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Ti=Object.assign(Object.assign({},wi),{transform:vi(0,1)}),Ei=Object.assign(Object.assign({},wi),{default:1}),Di=e=>({test:t=>Ci(t)&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),J=Di(`deg`),Oi=Di(`%`),Y=Di(`px`),ki=Object.assign(Object.assign({},Oi),{parse:e=>Oi.parse(e)/100,transform:e=>Oi.transform(e*100)}),Ai=(e,t)=>n=>!!(Ci(n)&&Si.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),ji=(e,t,n)=>r=>{if(!Ci(r))return r;let[i,a,o,s]=r.match(bi);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},X={test:Ai(`hsl`,`hue`),parse:ji(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Oi.transform(yi(t))+`, `+Oi.transform(yi(n))+`, `+yi(Ti.transform(r))+`)`},Mi=vi(0,255),Ni=Object.assign(Object.assign({},wi),{transform:e=>Math.round(Mi(e))}),Z={test:Ai(`rgb`,`red`),parse:ji(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Ni.transform(e)+`, `+Ni.transform(t)+`, `+Ni.transform(n)+`, `+yi(Ti.transform(r))+`)`};function Pi(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Fi={test:Ai(`#`),parse:Pi,transform:Z.transform},Q={test:e=>Z.test(e)||Fi.test(e)||X.test(e),parse:e=>Z.test(e)?Z.parse(e):X.test(e)?X.parse(e):Fi.parse(e),transform:e=>Ci(e)?e:e.hasOwnProperty(`red`)?Z.transform(e):X.transform(e)},Ii="${c}",Li="${n}";function Ri(e){return isNaN(e)&&Ci(e)&&(e.match(bi)?.length??0)+(e.match(xi)?.length??0)>0}function zi(e){typeof e==`number`&&(e=`${e}`);let t=[],n=0,r=e.match(xi);r&&(n=r.length,e=e.replace(xi,Ii),t.push(...r.map(Q.parse)));let i=e.match(bi);return i&&(e=e.replace(bi,Li),t.push(...i.map(wi.parse))),{values:t,numColors:n,tokenised:e}}function Bi(e){return zi(e).values}function Vi(e){let{values:t,numColors:n,tokenised:r}=zi(e),i=t.length;return e=>{let t=r;for(let r=0;rtypeof e==`number`?0:e;function Ui(e){let t=Bi(e);return Vi(e)(t.map(Hi))}var Wi={test:Ri,parse:Bi,createTransformer:Vi,getAnimatableNone:Ui},Gi=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Ki(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(bi)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Gi.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var qi=/([a-z-]*)\(.*?\)/g,Ji=Object.assign(Object.assign({},Wi),{getAnimatableNone:e=>{let t=e.match(qi);return t?t.map(Ki).join(` `):e}});function Yi(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Xi({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Yi(s,r,e+1/3),a=Yi(s,r,e),o=Yi(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}var Zi=(e,t,n)=>{let r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},Qi=[Fi,Z,X],$i=e=>Qi.find(t=>t.test(e)),ea=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,ta=(e,t)=>{let n=$i(e),r=$i(t);ea(e),ea(t);let i=n.parse(e),a=r.parse(t);n===X&&(i=Xi(i),n=Z),r===X&&(a=Xi(a),r=Z);let o=Object.assign({},i);return e=>{for(let t in o)t!==`alpha`&&(o[t]=Zi(i[t],a[t],e));return o.alpha=_i(i.alpha,a.alpha,e),n.transform(o)}},na=e=>typeof e==`number`,ra=(e,t)=>n=>t(e(n)),ia=(...e)=>e.reduce(ra);function aa(e,t){return na(e)?n=>_i(e,t,n):Q.test(e)?ta(e,t):la(e,t)}var oa=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>aa(e,t[n]));return e=>{for(let t=0;t{let n=Object.assign(Object.assign({},e),t),r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=aa(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function ca(e){let t=Wi.parse(e),n=t.length,r=0,i=0,a=0;for(let e=0;e{let n=Wi.createTransformer(t),r=ca(e),i=ca(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?ia(oa(r.parsed,i.parsed),n):(`${e}${t}`,n=>`${n>0?t:e}`)},ua=(e,t)=>n=>_i(e,t,n);function da(e){if(typeof e==`number`)return ua;if(typeof e==`string`)return Q.test(e)?ta:la;if(Array.isArray(e))return oa;if(typeof e==`object`)return sa}function fa(e,t,n){let r=[],i=n||da(e[0]),a=e.length-1;for(let n=0;nn(gi(e,t,r))}function ma(e,t){let n=e.length,r=n-1;return i=>{let a=0,o=!1;if(i<=e[0]?o=!0:i>=e[r]&&(a=r-1,o=!0),!o){let t=1;for(;ti||t===r);t++);a=t-1}let s=gi(e[a],e[a+1],i);return t[a](s)}}function ha(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;t.length,!r||!Array.isArray(r)||(r.length,a-1),e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let o=fa(t,r,i),s=a===2?pa(e,o):ma(e,o);return n?t=>s(ni(e[0],e[a-1],t)):s}var ga=e=>t=>1-e(1-t),_a=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,va=e=>t=>t**+e,ya=e=>t=>t*t*((e+1)*t-e),ba=e=>{let t=ya(e);return e=>(e*=2)<1?.5*t(e):.5*(2-2**(-10*(e-1)))},xa=1.525,Sa=4/11,Ca=8/11,wa=9/10,Ta=e=>e,Ea=va(2),Da=ga(Ea),Oa=_a(Ea),ka=e=>1-Math.sin(Math.acos(e)),Aa=ga(ka),ja=_a(Aa),Ma=ya(xa),Na=ga(Ma),Pa=_a(Ma),Fa=ba(xa),Ia=4356/361,La=35442/1805,Ra=16061/1805,za=e=>{if(e===1||e===0)return e;let t=e*e;return ee<.5?.5*(1-za(1-e*2)):.5*za(e*2-1)+.5;function Ha(e,t){return e.map(()=>t||Oa).splice(0,e.length-1)}function Ua(e){let t=e.length;return e.map((e,n)=>n===0?0:n/(t-1))}function Wa(e,t){return e.map(e=>e*t)}function Ga({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){let a={done:!1,value:e},o=Array.isArray(t)?t:[e,t],s=Wa(r&&r.length===o.length?r:Ua(o),i);function c(){return ha(s,o,{ease:Array.isArray(n)?n:Ha(o,n)})}let l=c();return{next:e=>(a.value=l(e),a.done=e>=i,a),flipTarget:()=>{o.reverse(),l=c()}}}function Ka({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:a}){let o={done:!1,value:t},s=n*e,c=t+s,l=a===void 0?c:a(c);return l!==c&&(s=l-t),{next:e=>{let t=-s*Math.exp(-e/r);return o.done=!(t>i||t<-i),o.value=o.done?l:l+t,o},flipTarget:()=>{}}}var qa={keyframes:Ga,spring:mi,decay:Ka};function Ja(e){if(Array.isArray(e.to))return Ga;if(qa[e.type])return qa[e.type];let t=new Set(Object.keys(e));return t.has(`ease`)||t.has(`duration`)&&!t.has(`dampingRatio`)?Ga:t.has(`dampingRatio`)||t.has(`stiffness`)||t.has(`mass`)||t.has(`damping`)||t.has(`restSpeed`)||t.has(`restDelta`)?mi:Ga}function Ya(e,t,n=0){return e-t-n}function Xa(e,t,n=0,r=!0){return r?Ya(t+-e,t,n):t-(e-t)+n}function Za(e,t,n,r){return r?e>=t+n:e<=-n}var Qa=e=>{let t=({delta:t})=>e(t);return{start:()=>Yr.update(t,!0),stop:()=>Xr.update(t)}};function $a(e){var t,{from:n,autoplay:r=!0,driver:i=Qa,elapsed:a=0,repeat:o=0,repeatType:s=`loop`,repeatDelay:c=0,onPlay:l,onStop:u,onComplete:d,onRepeat:f,onUpdate:p}=e,m=ti(e,[`from`,`autoplay`,`driver`,`elapsed`,`repeat`,`repeatType`,`repeatDelay`,`onPlay`,`onStop`,`onComplete`,`onRepeat`,`onUpdate`]);let{to:h}=m,g,_=0,v=m.duration,y,b=!1,x=!0,S,C=Ja(m);(t=C).needsInterpolation?.call(t,n,h)&&(S=ha([0,100],[n,h],{clamp:!1}),n=0,h=100);let w=C(Object.assign(Object.assign({},m),{from:n,to:h}));function T(){_++,s===`reverse`?(x=_%2==0,a=Xa(a,v,c,x)):(a=Ya(a,v,c),s===`mirror`&&w.flipTarget()),b=!1,f&&f()}function E(){g.stop(),d&&d()}function D(e){if(x||(e=-e),a+=e,!b){let e=w.next(Math.max(0,a));y=e.value,S&&(y=S(y)),b=x?e.done:a<=0}p?.(y),b&&(_===0&&(v??=a),_{u?.(),g.stop()}}}function eo(e,t){return t?1e3/t*e:0}function to({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:a=750,bounceStiffness:o=500,bounceDamping:s=10,restDelta:c=1,modifyTarget:l,driver:u,onUpdate:d,onComplete:f,onStop:p}){let m;function h(e){return n!==void 0&&er}function g(e){return n===void 0?r:r===void 0||Math.abs(n-e){var n;d?.(t),(n=e.onUpdate)==null||n.call(e,t)},onComplete:f,onStop:p}))}function v(e){_(Object.assign({type:`spring`,stiffness:o,damping:s,restDelta:c},e))}if(h(e))v({from:e,velocity:t,to:g(e)});else{let r=i*t+e;l!==void 0&&(r=l(r));let o=g(r),s=o===n?-1:1,u,d;_({type:`decay`,from:e,velocity:t,timeConstant:a,power:i,restDelta:c,modifyTarget:l,onUpdate:h(r)?e=>{u=d,d=e,t=eo(e-u,ei().delta),(s===1&&e>o||s===-1&&em?.stop()}}var no=(e,t)=>1-3*t+3*e,ro=(e,t)=>3*t-6*e,io=e=>3*e,ao=(e,t,n)=>((no(t,n)*e+ro(t,n))*e+io(t))*e,oo=(e,t,n)=>3*no(t,n)*e*e+2*ro(t,n)*e+io(t),so=1e-7,co=10;function lo(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=ao(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>so&&++s=fo?po(t,c,e,n):l===0?c:lo(t,r,r+ho,e,n)}return e=>e===0||e===1?e:ao(a(e),t,r)}var _o={},vo=class{subscriptions=new Set;add(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}notify(e,t,n){if(this.subscriptions.size)for(let r of this.subscriptions)r(e,t,n)}clear(){this.subscriptions.clear()}};function yo(e){return!Number.isNaN(Number.parseFloat(e))}var bo=class{current;prev;timeDelta=0;lastUpdated=0;updateSubscribers=new vo;stopAnimation;canTrackVelocity=!1;constructor(e){this.prev=this.current=e,this.canTrackVelocity=yo(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}set(e){this.updateAndNotify(e)}updateAndNotify=e=>{this.prev=this.current,this.current=e;let{delta:t,timestamp:n}=ei();this.lastUpdated!==n&&(this.timeDelta=t,this.lastUpdated=n),Yr.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)};get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?eo(Number.parseFloat(this.current)-Number.parseFloat(this.prev),this.timeDelta):0}scheduleVelocityCheck=()=>Yr.postRender(this.velocityCheck);velocityCheck=({timestamp:e})=>{this.canTrackVelocity||=yo(this.current),e!==this.lastUpdated&&(this.prev=this.current)};start(e){return this.stop(),new Promise(t=>{let{stop:n}=e(t);this.stopAnimation=n}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}};function xo(e){return new bo(e)}var{isArray:So}=Array;function Co(){let e=D({}),t=t=>{let n=t=>{e.value[t]&&(e.value[t].stop(),e.value[t].destroy(),delete e.value[t])};t?So(t)?t.forEach(n):n(t):Object.keys(e.value).forEach(n)};return jr(t),{motionValues:e,get:(t,n,r)=>{if(e.value[t])return e.value[t];let i=xo(n);return i.onChange(e=>r[t]=e),e.value[t]=i,i},stop:t}}function wo(e){return Array.isArray(e)}function $(){return{type:`spring`,stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function To(e){return{type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}}function Eo(e){return{type:`spring`,stiffness:550,damping:e===0?100:30,restDelta:.01,restSpeed:10}}function Do(){return{type:`keyframes`,ease:`linear`,duration:300}}function Oo(e){return{type:`keyframes`,duration:800,values:e}}var ko={default:Eo,x:$,y:$,z:$,rotate:$,rotateX:$,rotateY:$,rotateZ:$,scaleX:To,scaleY:To,scale:To,backgroundColor:Do,color:Do,opacity:Do};function Ao(e,t){let n;return n=wo(t)?Oo:ko[e]||ko.default,{to:t,...n(t)}}var jo={...wi,transform:Math.round},Mo={color:Q,backgroundColor:Q,outlineColor:Q,fill:Q,stroke:Q,borderColor:Q,borderTopColor:Q,borderRightColor:Q,borderBottomColor:Q,borderLeftColor:Q,borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,radius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,size:Y,top:Y,right:Y,bottom:Y,left:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,rotate:J,rotateX:J,rotateY:J,rotateZ:J,scale:Ei,scaleX:Ei,scaleY:Ei,scaleZ:Ei,skew:J,skewX:J,skewY:J,distance:Y,translateX:Y,translateY:Y,translateZ:Y,x:Y,y:Y,z:Y,perspective:Y,transformPerspective:Y,opacity:Ti,originX:ki,originY:ki,originZ:Y,zIndex:jo,filter:Ji,WebkitFilter:Ji,fillOpacity:Ti,strokeOpacity:Ti,numOctaves:jo},No=e=>Mo[e];function Po(e,t){return t&&typeof e==`number`&&t.transform?t.transform(e):e}function Fo(e,t){let n=No(e);return n!==Ji&&(n=Wi),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Io={linear:Ta,easeIn:Ea,easeInOut:Oa,easeOut:Da,circIn:ka,circInOut:ja,circOut:Aa,backIn:Ma,backInOut:Pa,backOut:Na,anticipate:Fa,bounceIn:Ba,bounceInOut:Va,bounceOut:za};function Lo(e){if(Array.isArray(e)){let[t,n,r,i]=e;return go(t,n,r,i)}else if(typeof e==`string`)return Io[e];return e}function Ro(e){return Array.isArray(e)&&typeof e[0]!=`number`}function zo(e,t){return e===`zIndex`?!1:!!(typeof t==`number`||Array.isArray(t)||typeof t==`string`&&Wi.test(t)&&!t.startsWith(`url(`))}function Bo(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function Vo({ease:e,times:t,delay:n,...r}){let i={...r};return t&&(i.offset=t),e&&(i.ease=Ro(e)?e.map(Lo):Lo(e)),n&&(i.elapsed=-n),i}function Ho(e,t,n){return Array.isArray(t.to)&&(e.duration||=800),Bo(t),Uo(e)||(e={...e,...Ao(n,t.to)}),{...t,...Vo(e)}}function Uo({delay:e,repeat:t,repeatType:n,repeatDelay:r,from:i,...a}){return!!Object.keys(a).length}function Wo(e,t){return e[t]||e.default||e}function Go(e,t,n,r,i){let a=Wo(r,e),o=a.from===null||a.from===void 0?t.get():a.from,s=zo(e,n);o===`none`&&s&&typeof n==`string`&&(o=Fo(e,n));let c=zo(e,o);function l(s){let c={from:o,to:n,velocity:r.velocity?r.velocity:t.getVelocity(),onUpdate:e=>t.set(e)};return a.type===`inertia`||a.type===`decay`?to({...c,...a}):$a({...Ho(a,c,e),onUpdate:e=>{c.onUpdate(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{i&&i(),s&&s()}})}function u(e){return t.set(n),i&&i(),e&&e(),{stop:()=>{}}}return!c||!s||a.type===!1?u:l}function Ko(){let{motionValues:e,stop:t,get:n}=Co();return{motionValues:e,stop:t,push:(e,t,r,i={},a)=>{let o=r[e],s=n(e,o,r);if(i&&i.immediate){s.set(t);return}let c=Go(e,s,t,i,a);s.start(c)}}}function qo(e,t={},{motionValues:n,push:r,stop:i}=Ko()){let a=O(t),o=D(!1);c(n,e=>{o.value=Object.values(e).filter(e=>e.isAnimating()).length>0},{immediate:!0,deep:!0});let s=e=>{if(!a||!a[e])throw Error(`The variant ${e} does not exist.`);return a[e]},l=t=>{typeof t==`string`&&(t=s(t));let n=Object.entries(t).map(([n,i])=>{if(n!==`transition`)return new Promise(a=>r(n,i,e,t.transition||Ao(n,t[n]),a))}).filter(Boolean);async function i(){await Promise.all(n),t.transition?.onComplete?.()}return Promise.all([i()])};return{isAnimating:o,apply:l,set:t=>{let n=Dr(t)?t:s(t);Object.entries(n).forEach(([t,n])=>{t!==`transition`&&r(t,n,e,{immediate:!0})})},leave:async e=>{let t;if(a&&(a.leave&&(t=a.leave),!a.leave&&a.initial&&(t=a.initial)),!t){e();return}await l(t),e()},stop:i}}var Jo=typeof window<`u`,Yo=()=>Jo&&(window.onpointerdown===null||void 0),Xo=()=>Jo&&(window.ontouchstart===null||void 0),Zo=()=>Jo&&(window.onmousedown===null||void 0);function Qo({target:e,state:t,variants:n,apply:r}){let i=O(n),a=D(!1),o=D(!1),s=D(!1),l=u(()=>{let e=[...Object.keys(t.value||{})];return i?(i.hovered&&(e=[...e,...Object.keys(i.hovered)]),i.tapped&&(e=[...e,...Object.keys(i.tapped)]),i.focused&&(e=[...e,...Object.keys(i.focused)]),e):e}),d=u(()=>{let e={};Object.assign(e,t.value),a.value&&i.hovered&&Object.assign(e,i.hovered),o.value&&i.tapped&&Object.assign(e,i.tapped),s.value&&i.focused&&Object.assign(e,i.focused);for(let t in e)l.value.includes(t)||delete e[t];return e});i.hovered&&(q(e,`mouseenter`,()=>a.value=!0),q(e,`mouseleave`,()=>{a.value=!1,o.value=!1})),i.tapped&&(Zo()&&(q(e,`mousedown`,()=>o.value=!0),q(e,`mouseup`,()=>o.value=!1)),Yo()&&(q(e,`pointerdown`,()=>o.value=!0),q(e,`pointerup`,()=>o.value=!1)),Xo()&&(q(e,`touchstart`,()=>o.value=!0),q(e,`touchend`,()=>o.value=!1))),i.focused&&(q(e,`focus`,()=>s.value=!0),q(e,`blur`,()=>s.value=!1)),c([a,o,s],()=>{r(d.value)})}function $o({set:e,target:t,variants:n,variant:r}){let i=O(n);c(()=>t,()=>{i&&(i.initial&&(e(`initial`),r.value=`initial`),i.enter&&(r.value=`enter`))},{immediate:!0,flush:`pre`})}function es({state:e,apply:t}){c(e,e=>{e&&t(e)},{immediate:!0})}function ts({target:e,variants:t,variant:n}){let r=O(t);r&&(r.visible||r.visibleOnce)&&Lr(e,([{isIntersecting:e}])=>{r.visible?e?n.value=`visible`:n.value=`initial`:r.visibleOnce&&(e&&n.value!==`visibleOnce`?n.value=`visibleOnce`:n.value||=`initial`)})}function ns(e,t={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){t.lifeCycleHooks&&$o(e),t.syncVariants&&es(e),t.visibilityHooks&&ts(e),t.eventListeners&&Qo(e)}function rs(e={}){let t=p({...e}),n=D({});return c(t,()=>{let e={};for(let[n,r]of Object.entries(t))e[n]=Po(r,No(n));n.value=e},{immediate:!0,deep:!0}),{state:t,style:n}}function is(e,t){c(()=>Pr(e),e=>{e&&t(e)},{immediate:!0})}var as={x:`translateX`,y:`translateY`,z:`translateZ`};function os(e={},t=!0){let n=p({...e}),r=D(``);return c(n,e=>{let n=``,i=!1;if(t&&(e.x||e.y||e.z)){let t=[e.x||0,e.y||0,e.z||0].map(e=>Po(e,Y)).join(`,`);n+=`translate3d(${t}) `,i=!0}for(let[r,i]of Object.entries(e)){if(t&&(r===`x`||r===`y`||r===`z`))continue;let e=Po(i,No(r));n+=`${as[r]||r}(${e}) `}t&&!i&&(n+=`translateZ(0px) `),r.value=n.trim()},{immediate:!0,deep:!0}),{state:n,transform:r}}var ss=[``,`X`,`Y`,`Z`],cs=[`perspective`,`translate`,`scale`,`rotate`,`skew`],ls=[`transformPerspective`,`x`,`y`,`z`];cs.forEach(e=>{ss.forEach(t=>{let n=e+t;ls.push(n)})});var us=new Set(ls);function ds(e){return us.has(e)}var fs=new Set([`originX`,`originY`,`originZ`]);function ps(e){return fs.has(e)}function ms(e){let t={},n={};return Object.entries(e).forEach(([e,r])=>{ds(e)||ps(e)?t[e]=r:n[e]=r}),{transform:t,style:n}}function hs(e){let{transform:t,style:n}=ms(e),{transform:r}=os(t),{style:i}=rs(n);return r.value&&(i.value.transform=r.value),i.value}function gs(e,t){let n,r,{state:i,style:a}=rs();return is(e,e=>{r=e;for(let t of Object.keys(Mo))e.style[t]===null||e.style[t]===``||ds(t)||ps(t)||(i[t]=e.style[t]);n&&Object.entries(n).forEach(([t,n])=>e.style[t]=n),t&&t(i)}),c(a,e=>{if(!r){n=e;return}for(let t in e)r.style[t]=e[t]},{immediate:!0}),{style:i}}function _s(e){let t=e.trim().split(/\) |\)/);if(t.length===1)return{};let n=e=>e.endsWith(`px`)||e.endsWith(`deg`)?Number.parseFloat(e):Number.isNaN(Number(e))?Number(e):e;return t.reduce((e,t)=>{if(!t)return e;let[r,i]=t.split(`(`),a=i.split(`,`).map(e=>n(e.endsWith(`)`)?e.replace(`)`,``):e.trim())),o=a.length===1?a[0]:a;return{...e,[r]:o}},{})}function vs(e,t){Object.entries(_s(t)).forEach(([t,n])=>{let r=[`x`,`y`,`z`];if(t===`translate3d`){if(n===0){r.forEach(t=>e[t]=0);return}n.forEach((t,n)=>e[r[n]]=t);return}if(n=Number.parseFloat(`${n}`),t===`translateX`){e.x=n;return}if(t===`translateY`){e.y=n;return}if(t===`translateZ`){e.z=n;return}e[t]=n})}function ys(e,t){let n,r,{state:i,transform:a}=os();return is(e,e=>{r=e,e.style.transform&&vs(i,e.style.transform),n&&(e.style.transform=n),t&&t(i)}),c(a,e=>{if(!r){n=e;return}r.style.transform=e},{immediate:!0}),{transform:i}}function bs(e){return Object.entries(e)}function xs(e,t){let n=p({}),r=e=>Object.entries(e).forEach(([e,t])=>n[e]=t),{style:i}=gs(e,r),{transform:a}=ys(e,r);return c(n,e=>{bs(e).forEach(([e,t])=>{let n=ds(e)?a:i;n[e]&&n[e]===t||(n[e]=t)})},{immediate:!0,deep:!0}),is(e,()=>t&&r(t)),{motionProperties:n,style:i,transform:a}}function Ss(e={}){let t=O(e),n=D();return{state:u(()=>{if(n.value)return t[n.value]}),variant:n}}function Cs(e,t={},n){let{motionProperties:r}=xs(e),{variant:i,state:a}=Ss(t),o={target:e,variant:i,variants:t,state:a,motionProperties:r,...qo(r,t)};return ns(o,n),o}var ws=[`delay`,`duration`],Ts=[`initial`,`enter`,`leave`,`visible`,`visible-once`,`visibleOnce`,`hovered`,`tapped`,`focused`,...ws];function Es(e){return ws.includes(e)}function Ds(e,t){let n=e.props?e.props:e.data&&e.data.attrs?e.data.attrs:{};if(n){n.variants&&Dr(n.variants)&&(t.value={...t.value,...n.variants});for(let e of Ts)if(!(!n||!n[e])){if(Es(e)&&typeof n[e]==`number`){for(let r of[`enter`,`visible`,`visibleOnce`]){let i=t.value[r];i!=null&&(i.transition??={},i.transition[e]=n[e])}continue}if(Dr(n[e])){let r=n[e];e===`visible-once`&&(e=`visibleOnce`),t.value[e]=r}}}}function Os(e,t=!1){return{created:(n,r,i)=>{let a=r.value&&typeof r.value==`string`?r.value:i.key;a&&_o[a]&&_o[a].stop();let o=D(t?structuredClone(x(e)||{}):e||{});typeof r.value==`object`&&(o.value=r.value),Ds(i,o);let s=Cs(n,o,{eventListeners:!0,lifeCycleHooks:!0,syncVariants:!0,visibilityHooks:!1});n.motionInstance=s,a&&(_o[a]=s)},mounted:(e,t,n)=>{e.motionInstance&&ts(e.motionInstance)},getSSRProps(t,n){let{initial:r}=t.value||n&&n?.props||{};r=O(r);let i=Sr({},e?.initial||{},r||{});if(!(!i||Object.keys(i).length===0))return{style:hs(i)}}}}var ks={__proto__:null,fade:{initial:{opacity:0},enter:{opacity:1}},fadeVisible:{initial:{opacity:0},visible:{opacity:1}},fadeVisibleOnce:{initial:{opacity:0},visibleOnce:{opacity:1}},pop:{initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},popVisible:{initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},popVisibleOnce:{initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},rollBottom:{initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollLeft:{initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollRight:{initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollTop:{initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleBottom:{initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleLeft:{initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceBottom:{initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollVisibleOnceLeft:{initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollVisibleOnceRight:{initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollVisibleOnceTop:{initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollVisibleRight:{initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleTop:{initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},slideBottom:{initial:{y:100,opacity:0},enter:{y:0,opacity:1}},slideLeft:{initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},slideRight:{initial:{x:100,opacity:0},enter:{x:0,opacity:1}},slideTop:{initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},slideVisibleBottom:{initial:{y:100,opacity:0},visible:{y:0,opacity:1}},slideVisibleLeft:{initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceBottom:{initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},slideVisibleOnceLeft:{initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},slideVisibleOnceRight:{initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},slideVisibleOnceTop:{initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},slideVisibleRight:{initial:{x:100,opacity:0},visible:{x:0,opacity:1}},slideVisibleTop:{initial:{y:-100,opacity:0},visible:{y:0,opacity:1}}},As=Symbol(``),js={preset:{type:String,required:!1},instance:{type:Object,required:!1},variants:{type:Object,required:!1},initial:{type:Object,required:!1},enter:{type:Object,required:!1},leave:{type:Object,required:!1},visible:{type:Object,required:!1},visibleOnce:{type:Object,required:!1},hovered:{type:Object,required:!1},tapped:{type:Object,required:!1},focused:{type:Object,required:!1},delay:{type:[Number,String],required:!1},duration:{type:[Number,String],required:!1}};function Ms(e){return Object.prototype.toString.call(e)===`[object Object]`}function Ns(e){if(Array.isArray(e))return e.map(Ns);if(Ms(e)){let t={};for(let n in e)t[n]=Ns(e[n]);return t}return e}function Ps(t){let n=p({}),r=e(As,{}),i=u(()=>t.preset==null?{}:r!=null&&t.preset in r?structuredClone(x(r)[t.preset]):t.preset in ks?structuredClone(ks[t.preset]):{}),a=u(()=>({initial:t.initial,enter:t.enter,leave:t.leave,visible:t.visible,visibleOnce:t.visibleOnce,hovered:t.hovered,tapped:t.tapped,focused:t.focused}));function o(e,t){for(let n of[`delay`,`duration`]){if(t[n]==null)continue;let r=Number.parseInt(t[n]);for(let t of[`enter`,`visible`,`visibleOnce`]){let i=e[t];i!=null&&(i.transition??={},i.transition[n]=r)}}return e}let s=u(()=>o({...Sr({},a.value,i.value,t.variants||{})},t));function c(e,t,r){e.props??={},e.props.style??={},e.props.style={...e.props.style,...r};let i=o(Ns(s.value),e.props);return e.props.onVnodeMounted=({el:e})=>{n[t]=Cs(e,i)},e.props.onVnodeUpdated=({el:e})=>{let r=hs(n[t].state);for(let[t,n]of Object.entries(r))e.style[t]=n},e}return{motionConfig:s,setNodeInstance:c}}o({name:`Motion`,props:{...js,is:{type:[String,Object],default:`div`}},setup(e){let t=n(),{motionConfig:i,setNodeInstance:a}=Ps(e);return()=>{let n=hs(i.value.initial||{}),o=r(e.is,void 0,t);return a(o,0,n),o}}}),o({name:`MotionGroup`,props:{...js,is:{type:[String,Object],required:!1}},setup(e){let t=n(),{motionConfig:i,setNodeInstance:a}=Ps(e);return()=>{let n=hs(i.value.initial||{}),o=t.default?.()||[];for(let e=0;ee.every(e=>d(e)))}var Is=Fs;function Ls(e){return u(()=>!d(e))}var Rs=Ls;function zs(...e){return u(()=>e.some(e=>d(e)))}var Bs=zs;export{B as A,ue as B,gr as C,xn as D,pn as E,_n as F,yn as I,Gt as L,Jt as M,$t as N,Cn as O,vn as P,pt as R,hr as S,vr as T,K as _,zn as a,qn as b,In as c,rr as d,ir as f,lr as g,sr as h,Os as i,un as j,qt as k,Bn as l,or as m,Rs as n,kn as o,G as p,Bs as r,Fn as s,Is as t,tr as u,dr as v,_r as w,mr as x,fr as y,de as z}; \ No newline at end of file diff --git a/docs/dist/assets/overview-D7vu7syH.css b/docs/dist/assets/overview-D7vu7syH.css new file mode 100644 index 00000000..afe9a08f --- /dev/null +++ b/docs/dist/assets/overview-D7vu7syH.css @@ -0,0 +1 @@ +.overview-slide-block:hover .overview-slide-action[data-v-59b8b5ee]{opacity:.6}.overview-slide-action[data-v-59b8b5ee]:hover{opacity:.8} diff --git a/docs/dist/assets/overview-w4321ysu.css b/docs/dist/assets/overview-w4321ysu.css deleted file mode 100644 index c66eef3b..00000000 --- a/docs/dist/assets/overview-w4321ysu.css +++ /dev/null @@ -1 +0,0 @@ -.overview-slide-block:hover .overview-slide-action[data-v-b549b664]{opacity:.6}.overview-slide-action[data-v-b549b664]:hover{opacity:.8} diff --git a/docs/dist/assets/packet-YPE3B663-JK7CTFV3-BtD8gqfM.js b/docs/dist/assets/packet-YPE3B663-JK7CTFV3-BtD8gqfM.js new file mode 100644 index 00000000..8b9530b4 --- /dev/null +++ b/docs/dist/assets/packet-YPE3B663-JK7CTFV3-BtD8gqfM.js @@ -0,0 +1 @@ +import{g as e}from"./chunk-BBDM4ZFP-DhnAO8sj.js";export{e as createPacketServices}; \ No newline at end of file diff --git a/docs/dist/assets/pie-LRSECV5Y-YQIUPWZK-CryW0pna.js b/docs/dist/assets/pie-LRSECV5Y-YQIUPWZK-CryW0pna.js new file mode 100644 index 00000000..86c903be --- /dev/null +++ b/docs/dist/assets/pie-LRSECV5Y-YQIUPWZK-CryW0pna.js @@ -0,0 +1 @@ +import{m as e}from"./chunk-BBDM4ZFP-DhnAO8sj.js";export{e as createPieServices}; \ No newline at end of file diff --git a/docs/dist/assets/pieDiagram-2C4A3L6T-D9TqfYOw.js b/docs/dist/assets/pieDiagram-2C4A3L6T-D9TqfYOw.js new file mode 100644 index 00000000..d1763d96 --- /dev/null +++ b/docs/dist/assets/pieDiagram-2C4A3L6T-D9TqfYOw.js @@ -0,0 +1,30 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{M as t,N as n,T as r,n as i}from"./chunk-V7P66DNM-D246Sefn.js";import{C as a,E as o,J as s,Q as c,Y as l,b as u,l as d,m as f,o as p,x as m}from"./chunk-Q52JI7PB-BeSPinqD.js";import{t as h}from"./chunk-PUIB63ON-iBBh92CL.js";import"./chunk-7TFACZ55-BO7C1qvL.js";import{h as g,i as _}from"./chunk-BSZA5ISF-LqNHBHyp.js";import{y as v}from"./chunk-BBDM4ZFP-DhnAO8sj.js";import{t as y}from"./chunk-6ZKBGPIT-B4RTUexp.js";var b=f.pie,x={sections:new Map,showData:!1,config:b},S=x.sections,C=x.showData,w=structuredClone(b),T={getConfig:e(()=>structuredClone(w),`getConfig`),clear:e(()=>{S=new Map,C=x.showData,p()},`clear`),setDiagramTitle:c,getDiagramTitle:o,setAccTitle:l,getAccTitle:m,setAccDescription:s,getAccDescription:u,addSection:e(({label:e,value:t})=>{if(t<0)throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);S.has(e)||(S.set(e,t),r.debug(`added new section: ${e}, with value: ${t}`))},`addSection`),getSections:e(()=>S,`getSections`),setShowData:e(e=>{C=e},`setShowData`),getShowData:e(()=>C,`getShowData`)},E=e((e,t)=>{y(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),D={parse:e(async e=>{let t=await v(`pie`,e);r.debug(t),E(t,T)},`parse`)},O=e(e=>` + .pieCircle{ + stroke: ${e.pieStrokeColor}; + stroke-width : ${e.pieStrokeWidth}; + opacity : ${e.pieOpacity}; + } + .pieOuterCircle{ + stroke: ${e.pieOuterStrokeColor}; + stroke-width: ${e.pieOuterStrokeWidth}; + fill: none; + } + .pieTitleText { + text-anchor: middle; + font-size: ${e.pieTitleTextSize}; + fill: ${e.pieTitleTextColor}; + font-family: ${e.fontFamily}; + } + .slice { + font-family: ${e.fontFamily}; + fill: ${e.pieSectionTextColor}; + font-size:${e.pieSectionTextSize}; + // fill: white; + } + .legend text { + fill: ${e.pieLegendTextColor}; + font-family: ${e.fontFamily}; + font-size: ${e.pieLegendTextSize}; + } +`,`getStyles`),k=e(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),r=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/t*100>=1);return n().value(e=>e.value).sort(null)(r)},`createPieArcs`),A={parser:D,db:T,renderer:{draw:e((e,n,o,s)=>{r.debug(`rendering pie chart +`+e);let c=s.db,l=a(),u=_(c.getConfig(),l.pie),f=h(n),p=f.append(`g`);p.attr(`transform`,`translate(225,225)`);let{themeVariables:m}=l,[v]=g(m.pieOuterStrokeWidth);v??=2;let y=u.textPosition,b=i().innerRadius(0).outerRadius(185),x=i().innerRadius(185*y).outerRadius(185*y);p.append(`circle`).attr(`cx`,0).attr(`cy`,0).attr(`r`,185+v/2).attr(`class`,`pieOuterCircle`);let S=c.getSections(),C=k(S),w=[m.pie1,m.pie2,m.pie3,m.pie4,m.pie5,m.pie6,m.pie7,m.pie8,m.pie9,m.pie10,m.pie11,m.pie12],T=0;S.forEach(e=>{T+=e});let E=C.filter(e=>(e.data.value/T*100).toFixed(0)!==`0`),D=t(w).domain([...S.keys()]);p.selectAll(`mySlices`).data(E).enter().append(`path`).attr(`d`,b).attr(`fill`,e=>D(e.data.label)).attr(`class`,`pieCircle`),p.selectAll(`mySlices`).data(E).enter().append(`text`).text(e=>(e.data.value/T*100).toFixed(0)+`%`).attr(`transform`,e=>`translate(`+x.centroid(e)+`)`).style(`text-anchor`,`middle`).attr(`class`,`slice`);let O=p.append(`text`).text(c.getDiagramTitle()).attr(`x`,0).attr(`y`,-400/2).attr(`class`,`pieTitleText`),A=[...S.entries()].map(([e,t])=>({label:e,value:t})),j=p.selectAll(`.legend`).data(A).enter().append(`g`).attr(`class`,`legend`).attr(`transform`,(e,t)=>{let n=22*A.length/2;return`translate(216,`+(t*22-n)+`)`});j.append(`rect`).attr(`width`,18).attr(`height`,18).style(`fill`,e=>D(e.label)).style(`stroke`,e=>D(e.label)),j.append(`text`).attr(`x`,22).attr(`y`,14).text(e=>c.getShowData()?`${e.label} [${e.value}]`:e.label);let M=512+Math.max(...j.selectAll(`text`).nodes().map(e=>e?.getBoundingClientRect().width??0)),N=O.node()?.getBoundingClientRect().width??0,P=450/2-N/2,F=450/2+N/2,I=Math.min(0,P),L=Math.max(M,F)-I;f.attr(`viewBox`,`${I} 0 ${L} 450`),d(f,450,L,u.useMaxWidth)},`draw`)},styles:O};export{A as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/presenter-Cm0VOfT3.css b/docs/dist/assets/presenter-W-ysBRXT.css similarity index 58% rename from docs/dist/assets/presenter-Cm0VOfT3.css rename to docs/dist/assets/presenter-W-ysBRXT.css index 3e32b3ba..777c9089 100644 --- a/docs/dist/assets/presenter-Cm0VOfT3.css +++ b/docs/dist/assets/presenter-W-ysBRXT.css @@ -1 +1 @@ -.slidev-presenter[data-v-bff7e64f]{--slidev-controls-foreground:current}.grid-container[data-v-bff7e64f]{--slidev-presenter-notes-width:360px;--slidev-presenter-notes-row-size:280px;background-color:#9ca3af33;flex:1;gap:1px;display:grid;position:relative;overflow:hidden}.grid-container.layout1[data-v-bff7e64f]{grid-template-columns:var(--slidev-presenter-notes-width) minmax(0, 1fr);grid-template-rows:minmax(0, 2fr) minmax(0, var(--slidev-presenter-notes-row-size)) min-content;grid-template-areas:"main main""note next""bottom bottom"}.grid-container.layout2[data-v-bff7e64f]{grid-template-columns:var(--slidev-presenter-notes-width) minmax(0, 1fr);grid-template-rows:minmax(0, var(--slidev-presenter-notes-row-size)) minmax(0, 1fr) min-content;grid-template-areas:"note main""note next""bottom bottom"}@media (aspect-ratio<=3/5){.grid-container.layout1[data-v-bff7e64f]{grid-template:"main"2fr"note"1fr"next"1fr"bottom"min-content/1fr}}@media (aspect-ratio>=1){.grid-container.layout1[data-v-bff7e64f]{grid-template-columns:minmax(0, 1fr) minmax(0, 1.1fr) var(--slidev-presenter-notes-width);grid-template-rows:minmax(0, 1fr) minmax(0, var(--slidev-presenter-notes-row-size)) min-content;grid-template-areas:"main main next""main main note""bottom bottom bottom"}}.grid-container.layout3[data-v-bff7e64f]{grid-template-columns:var(--slidev-presenter-notes-width) minmax(0, 1fr);grid-template-rows:minmax(0, var(--slidev-presenter-notes-row-size)) minmax(0, 1fr) min-content;grid-template-areas:"note next""main next""bottom bottom"}.grid-section[data-v-bff7e64f]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity)) }.dark .grid-section[data-v-bff7e64f]{--un-bg-opacity:1;background-color:rgb(18 18 18/var(--un-bg-opacity)) }.grid-section.top[data-v-bff7e64f]{grid-area:top}.grid-section.main[data-v-bff7e64f]{grid-area:main}.grid-section.next[data-v-bff7e64f]{grid-area:next}.grid-section.note[data-v-bff7e64f]{grid-area:note}.grid-section.bottom[data-v-bff7e64f]{grid-area:bottom}.notes-resizer[data-v-bff7e64f]{cursor:col-resize;z-index:10;touch-action:none;width:12px;height:100%;position:absolute;top:0}.notes-resizer[data-v-bff7e64f]:before{content:"";opacity:.2;background-color:currentColor;width:1px;height:100%;position:absolute;top:0;left:50%;transform:translate(-50%)}.notes-row-resizer[data-v-bff7e64f]{cursor:row-resize;z-index:10;touch-action:none;width:100%;height:12px;position:absolute;left:0}.notes-row-resizer[data-v-bff7e64f]:before{content:"";opacity:.2;background-color:currentColor;width:100%;height:1px;position:absolute;top:50%;left:0;transform:translateY(-50%)}.notes-vertical-resizer[data-v-bff7e64f]{right:var(--slidev-presenter-notes-width);top:0;bottom:var(--slidev-presenter-bottom-height,0px);cursor:col-resize;z-index:10;touch-action:none;width:12px;position:absolute;transform:translate(50%)}.notes-vertical-resizer[data-v-bff7e64f]:before{content:"";width:1px;height:100%;position:absolute;top:0;left:50%;transform:translate(-50%)}.notes-vertical-resizer-left[data-v-bff7e64f]{left:var(--slidev-presenter-notes-width);top:0;bottom:var(--slidev-presenter-bottom-height,0px);cursor:col-resize;z-index:10;touch-action:none;width:12px;position:absolute;transform:translate(-50%)}.notes-vertical-resizer-left[data-v-bff7e64f]:before{content:"";width:1px;height:100%;position:absolute;top:0;left:50%;transform:translate(-50%)} +.slidev-presenter[data-v-7696994b]{--slidev-controls-foreground:current}.grid-container[data-v-7696994b]{--slidev-presenter-notes-width:360px;--slidev-presenter-notes-row-size:280px;background-color:#9ca3af33;flex:1;gap:1px;display:grid;position:relative;overflow:hidden}.grid-container.layout1[data-v-7696994b]{grid-template-columns:var(--slidev-presenter-notes-width) minmax(0, 1fr);grid-template-rows:minmax(0, 2fr) minmax(0, var(--slidev-presenter-notes-row-size)) min-content;grid-template-areas:"main main""note next""bottom bottom"}.grid-container.layout2[data-v-7696994b]{grid-template-columns:var(--slidev-presenter-notes-width) minmax(0, 1fr);grid-template-rows:minmax(0, var(--slidev-presenter-notes-row-size)) minmax(0, 1fr) min-content;grid-template-areas:"note main""note next""bottom bottom"}@media (aspect-ratio<=3/5){.grid-container.layout1[data-v-7696994b]{grid-template:"main"2fr"note"1fr"next"1fr"bottom"min-content/1fr}}@media (aspect-ratio>=1){.grid-container.layout1[data-v-7696994b]{grid-template-columns:minmax(0, 1fr) minmax(0, 1.1fr) var(--slidev-presenter-notes-width);grid-template-rows:minmax(0, 1fr) minmax(0, var(--slidev-presenter-notes-row-size)) min-content;grid-template-areas:"main main next""main main note""bottom bottom bottom"}}.grid-container.layout3[data-v-7696994b]{grid-template-columns:var(--slidev-presenter-notes-width) minmax(0, 1fr);grid-template-rows:minmax(0, var(--slidev-presenter-notes-row-size)) minmax(0, 1fr) min-content;grid-template-areas:"note next""main next""bottom bottom"}.grid-section[data-v-7696994b]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity)) }.dark .grid-section[data-v-7696994b]{--un-bg-opacity:1;background-color:rgb(18 18 18/var(--un-bg-opacity)) }.grid-section.top[data-v-7696994b]{grid-area:top}.grid-section.main[data-v-7696994b]{grid-area:main}.grid-section.next[data-v-7696994b]{grid-area:next}.grid-section.note[data-v-7696994b]{grid-area:note}.grid-section.bottom[data-v-7696994b]{grid-area:bottom}.notes-resizer[data-v-7696994b]{cursor:col-resize;z-index:10;touch-action:none;width:12px;height:100%;position:absolute;top:0}.notes-resizer[data-v-7696994b]:before{content:"";opacity:.2;background-color:currentColor;width:1px;height:100%;position:absolute;top:0;left:50%;transform:translate(-50%)}.notes-row-resizer[data-v-7696994b]{cursor:row-resize;z-index:10;touch-action:none;width:100%;height:12px;position:absolute;left:0}.notes-row-resizer[data-v-7696994b]:before{content:"";opacity:.2;background-color:currentColor;width:100%;height:1px;position:absolute;top:50%;left:0;transform:translateY(-50%)}.notes-vertical-resizer[data-v-7696994b]{right:var(--slidev-presenter-notes-width);top:0;bottom:var(--slidev-presenter-bottom-height,0px);cursor:col-resize;z-index:10;touch-action:none;width:12px;position:absolute;transform:translate(50%)}.notes-vertical-resizer[data-v-7696994b]:before{content:"";width:1px;height:100%;position:absolute;top:0;left:50%;transform:translate(-50%)}.notes-vertical-resizer-left[data-v-7696994b]{left:var(--slidev-presenter-notes-width);top:0;bottom:var(--slidev-presenter-bottom-height,0px);cursor:col-resize;z-index:10;touch-action:none;width:12px;position:absolute;transform:translate(-50%)}.notes-vertical-resizer-left[data-v-7696994b]:before{content:"";width:1px;height:100%;position:absolute;top:0;left:50%;transform:translate(-50%)} diff --git a/docs/dist/assets/quadrantDiagram-K3KQ5NL4-CSkM0GVH.js b/docs/dist/assets/quadrantDiagram-K3KQ5NL4-CSkM0GVH.js new file mode 100644 index 00000000..f2db4937 --- /dev/null +++ b/docs/dist/assets/quadrantDiagram-K3KQ5NL4-CSkM0GVH.js @@ -0,0 +1,7 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{I as t,S as n,T as r}from"./chunk-V7P66DNM-D246Sefn.js";import{C as i,E as a,G as o,J as s,Q as c,Y as l,b as u,k as d,l as f,m as p,o as m,x as h}from"./chunk-Q52JI7PB-BeSPinqD.js";var g=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,3],r=[1,4],i=[1,5],a=[1,6],o=[1,7],s=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],c=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],l=[55,56,57],u=[2,36],d=[1,37],f=[1,36],p=[1,38],m=[1,35],h=[1,43],g=[1,41],_=[1,45],v=[1,14],y=[1,23],b=[1,18],x=[1,19],S=[1,20],C=[1,21],w=[1,22],T=[1,24],E=[1,25],D=[1,26],O=[1,27],k=[1,28],A=[1,29],j=[1,32],M=[1,33],N=[1,34],P=[1,39],F=[1,40],I=[1,42],L=[1,44],R=[1,63],z=[1,62],B=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],ee=[1,66],te=[1,67],ne=[1,68],re=[1,69],ie=[1,70],ae=[1,71],oe=[1,72],se=[1,73],ce=[1,74],le=[1,75],ue=[1,76],de=[1,77],V=[4,5,6,7,8,9,10,11,12,13,14,15,18],H=[1,91],U=[1,92],W=[1,93],G=[1,100],K=[1,94],q=[1,97],J=[1,95],Y=[1,96],X=[1,98],Z=[1,99],fe=[1,103],pe=[10,55,56,57],Q=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],me={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:`error`,4:`ALPHA`,5:`NUM`,6:`NODE_STRING`,7:`DOWN`,8:`MINUS`,9:`DEFAULT`,10:`COMMA`,11:`COLON`,12:`AMP`,13:`BRKT`,14:`MULT`,15:`UNICODE_TEXT`,17:`UNIT`,18:`SPACE`,19:`STYLE`,20:`PCT`,25:`CLASSDEF`,28:`QUADRANT`,35:`title`,36:`title_value`,37:`acc_title`,38:`acc_title_value`,39:`acc_descr`,40:`acc_descr_value`,41:`acc_descr_multiline_value`,42:`section`,44:`point_start`,45:`point_x`,46:`point_y`,47:`class_name`,48:`X-AXIS`,49:`AXIS-TEXT-DELIMITER`,50:`Y-AXIS`,51:`QUADRANT_1`,52:`QUADRANT_2`,53:`QUADRANT_3`,54:`QUADRANT_4`,55:`NEWLINE`,56:`SEMI`,57:`EOF`,60:`STR`,61:`MD_STR`,63:`PUNCTUATION`,64:`PLUS`,65:`EQUALS`,66:`DOT`,67:`UNDERSCORE`},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 23:this.$=a[s];break;case 24:this.$=a[s-1]+``+a[s];break;case 26:this.$=a[s-1]+a[s];break;case 27:this.$=[a[s].trim()];break;case 28:a[s-2].push(a[s].trim()),this.$=a[s-2];break;case 29:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 37:this.$=[];break;case 42:this.$=a[s].trim(),r.setDiagramTitle(this.$);break;case 43:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 44:case 45:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 46:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 47:r.addPoint(a[s-3],``,a[s-1],a[s],[]);break;case 48:r.addPoint(a[s-4],a[s-3],a[s-1],a[s],[]);break;case 49:r.addPoint(a[s-4],``,a[s-2],a[s-1],a[s]);break;case 50:r.addPoint(a[s-5],a[s-4],a[s-2],a[s-1],a[s]);break;case 51:r.setXAxisLeftText(a[s-2]),r.setXAxisRightText(a[s]);break;case 52:a[s-1].text+=` ⟶ `,r.setXAxisLeftText(a[s-1]);break;case 53:r.setXAxisLeftText(a[s]);break;case 54:r.setYAxisBottomText(a[s-2]),r.setYAxisTopText(a[s]);break;case 55:a[s-1].text+=` ⟶ `,r.setYAxisBottomText(a[s-1]);break;case 56:r.setYAxisBottomText(a[s]);break;case 57:r.setQuadrant1Text(a[s]);break;case 58:r.setQuadrant2Text(a[s]);break;case 59:r.setQuadrant3Text(a[s]);break;case 60:r.setQuadrant4Text(a[s]);break;case 64:this.$={text:a[s],type:`text`};break;case 65:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 66:this.$={text:a[s],type:`text`};break;case 67:this.$={text:a[s],type:`markdown`};break;case 68:this.$=a[s];break;case 69:this.$=a[s-1]+``+a[s];break}},`anonymous`),table:[{18:n,26:1,27:2,28:r,55:i,56:a,57:o},{1:[3]},{18:n,26:8,27:2,28:r,55:i,56:a,57:o},{18:n,26:9,27:2,28:r,55:i,56:a,57:o},t(s,[2,33],{29:10}),t(c,[2,61]),t(c,[2,62]),t(c,[2,63]),{1:[2,30]},{1:[2,31]},t(l,u,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),t(s,[2,34]),{27:46,55:i,56:a,57:o},t(l,[2,37]),t(l,u,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),t(l,[2,39]),t(l,[2,40]),t(l,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(l,[2,45]),t(l,[2,46]),{18:[1,51]},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:52,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:53,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:54,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:55,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:56,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:57,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,44:[1,58],47:[1,59],58:61,59:60,63:N,64:P,65:F,66:I,67:L},t(B,[2,64]),t(B,[2,66]),t(B,[2,67]),t(B,[2,70]),t(B,[2,71]),t(B,[2,72]),t(B,[2,73]),t(B,[2,74]),t(B,[2,75]),t(B,[2,76]),t(B,[2,77]),t(B,[2,78]),t(B,[2,79]),t(B,[2,80]),t(B,[2,81]),t(s,[2,35]),t(l,[2,38]),t(l,[2,42]),t(l,[2,43]),t(l,[2,44]),{3:65,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,21:64},t(l,[2,53],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,49:[1,78],63:N,64:P,65:F,66:I,67:L}),t(l,[2,56],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,49:[1,79],63:N,64:P,65:F,66:I,67:L}),t(l,[2,57],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,58],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,59],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,60],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),{45:[1,80]},{44:[1,81]},t(B,[2,65]),t(B,[2,82]),t(B,[2,83]),t(B,[2,84]),{3:83,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,18:[1,82]},t(V,[2,23]),t(V,[2,1]),t(V,[2,2]),t(V,[2,3]),t(V,[2,4]),t(V,[2,5]),t(V,[2,6]),t(V,[2,7]),t(V,[2,8]),t(V,[2,9]),t(V,[2,10]),t(V,[2,11]),t(V,[2,12]),t(l,[2,52],{58:31,43:84,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),t(l,[2,55],{58:31,43:85,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),{46:[1,86]},{45:[1,87]},{4:H,5:U,6:W,8:G,11:K,13:q,16:90,17:J,18:Y,19:X,20:Z,22:89,23:88},t(V,[2,24]),t(l,[2,51],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,54],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,47],{22:89,16:90,23:101,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{46:[1,102]},t(l,[2,29],{10:fe}),t(pe,[2,27],{16:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),t(Q,[2,25]),t(Q,[2,13]),t(Q,[2,14]),t(Q,[2,15]),t(Q,[2,16]),t(Q,[2,17]),t(Q,[2,18]),t(Q,[2,19]),t(Q,[2,20]),t(Q,[2,21]),t(Q,[2,22]),t(l,[2,49],{10:fe}),t(l,[2,48],{22:89,16:90,23:105,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{4:H,5:U,6:W,8:G,11:K,13:q,16:90,17:J,18:Y,19:X,20:Z,22:106},t(Q,[2,26]),t(l,[2,50],{10:fe}),t(pe,[2,28],{16:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z})],defaultActions:{8:[2,30],9:[2,31]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};me.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin(`title`),35;case 5:return this.popState(),`title_value`;case 6:return this.begin(`acc_title`),37;case 7:return this.popState(),`acc_title_value`;case 8:return this.begin(`acc_descr`),39;case 9:return this.popState(),`acc_descr_value`;case 10:this.begin(`acc_descr_multiline`);break;case 11:this.popState();break;case 12:return`acc_descr_multiline_value`;case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin(`md_string`);break;case 22:return`MD_STR`;case 23:this.popState();break;case 24:this.begin(`string`);break;case 25:this.popState();break;case 26:return`STR`;case 27:this.begin(`class_name`);break;case 28:return this.popState(),47;case 29:return this.begin(`point_start`),44;case 30:return this.begin(`point_x`),45;case 31:this.popState();break;case 32:this.popState(),this.begin(`point_y`);break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},`anonymous`),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}})();function $(){this.yy={}}return e($,`Parser`),$.prototype=me,me.Parser=$,new $})();g.parser=g;var _=g,v=d(),y=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{e(this,`QuadrantBuilder`)}getDefaultData(){return{titleText:``,quadrant1Text:``,quadrant2Text:``,quadrant3Text:``,quadrant4Text:``,xAxisLeftText:``,xAxisRightText:``,yAxisBottomText:``,yAxisTopText:``,points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:p.quadrantChart?.chartWidth||500,chartWidth:p.quadrantChart?.chartHeight||500,titlePadding:p.quadrantChart?.titlePadding||10,titleFontSize:p.quadrantChart?.titleFontSize||20,quadrantPadding:p.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:p.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:p.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:p.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:p.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:p.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:p.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:p.quadrantChart?.pointTextPadding||5,pointLabelFontSize:p.quadrantChart?.pointLabelFontSize||12,pointRadius:p.quadrantChart?.pointRadius||5,xAxisPosition:p.quadrantChart?.xAxisPosition||`top`,yAxisPosition:p.quadrantChart?.yAxisPosition||`left`,quadrantInternalBorderStrokeWidth:p.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:p.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:v.quadrant1Fill,quadrant2Fill:v.quadrant2Fill,quadrant3Fill:v.quadrant3Fill,quadrant4Fill:v.quadrant4Fill,quadrant1TextFill:v.quadrant1TextFill,quadrant2TextFill:v.quadrant2TextFill,quadrant3TextFill:v.quadrant3TextFill,quadrant4TextFill:v.quadrant4TextFill,quadrantPointFill:v.quadrantPointFill,quadrantPointTextFill:v.quadrantPointTextFill,quadrantXAxisTextFill:v.quadrantXAxisTextFill,quadrantYAxisTextFill:v.quadrantYAxisTextFill,quadrantTitleFill:v.quadrantTitleFill,quadrantInternalBorderStrokeFill:v.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:v.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,r.info(`clear called`)}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,t){this.classes.set(e,t)}setConfig(e){r.trace(`setConfig called with: `,e),this.config={...this.config,...e}}setThemeConfig(e){r.trace(`setThemeConfig called with: `,e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,t,n,r){let i=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,a={top:e===`top`&&t?i:0,bottom:e===`bottom`&&t?i:0},o=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,s={left:this.config.yAxisPosition===`left`&&n?o:0,right:this.config.yAxisPosition===`right`&&n?o:0},c=this.config.titleFontSize+this.config.titlePadding*2,l={top:r?c:0},u=this.config.quadrantPadding+s.left,d=this.config.quadrantPadding+a.top+l.top,f=this.config.chartWidth-this.config.quadrantPadding*2-s.left-s.right,p=this.config.chartHeight-this.config.quadrantPadding*2-a.top-a.bottom-l.top;return{xAxisSpace:a,yAxisSpace:s,titleSpace:l,quadrantSpace:{quadrantLeft:u,quadrantTop:d,quadrantWidth:f,quadrantHalfWidth:f/2,quadrantHeight:p,quadrantHalfHeight:p/2}}}getAxisLabels(e,t,n,r){let{quadrantSpace:i,titleSpace:a}=r,{quadrantHalfHeight:o,quadrantHeight:s,quadrantLeft:c,quadrantHalfWidth:l,quadrantTop:u,quadrantWidth:d}=i,f=!!this.data.xAxisRightText,p=!!this.data.yAxisTopText,m=[];return this.data.xAxisLeftText&&t&&m.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+(f?l/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.xAxisRightText&&t&&m.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+l+(f?l/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.yAxisBottomText&&n&&m.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+d+this.config.quadrantPadding,y:u+s-(p?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:-90}),this.data.yAxisTopText&&n&&m.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+d+this.config.quadrantPadding,y:u+o-(p?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:-90}),m}getQuadrants(e){let{quadrantSpace:t}=e,{quadrantHalfHeight:n,quadrantLeft:r,quadrantHalfWidth:i,quadrantTop:a}=t,o=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r+i,y:a,width:i,height:n,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r,y:a,width:i,height:n,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r+i,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant4Fill}];for(let e of o)e.text.x=e.x+e.width/2,this.data.points.length===0?(e.text.y=e.y+e.height/2,e.text.horizontalPos=`middle`):(e.text.y=e.y+this.config.quadrantTextTopPadding,e.text.horizontalPos=`top`);return o}getQuadrantPoints(e){let{quadrantSpace:t}=e,{quadrantHeight:r,quadrantLeft:i,quadrantTop:a,quadrantWidth:o}=t,s=n().domain([0,1]).range([i,o+i]),c=n().domain([0,1]).range([r+a,a]);return this.data.points.map(e=>{let t=this.classes.get(e.className);return t&&(e={...t,...e}),{x:s(e.x),y:c(e.y),fill:e.color??this.themeConfig.quadrantPointFill,radius:e.radius??this.config.pointRadius,text:{text:e.text,fill:this.themeConfig.quadrantPointTextFill,x:s(e.x),y:c(e.y)+this.config.pointTextPadding,verticalPos:`center`,horizontalPos:`top`,fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:e.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:e.strokeWidth??`0px`}})}getBorders(e){let t=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:n}=e,{quadrantHalfHeight:r,quadrantHeight:i,quadrantLeft:a,quadrantHalfWidth:o,quadrantTop:s,quadrantWidth:c}=n;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s,x2:a+c+t,y2:s},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a+c,y1:s+t,x2:a+c,y2:s+i-t},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s+i,x2:a+c+t,y2:s+i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a,y1:s+t,x2:a,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+o,y1:s+t,x2:a+o,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+t,y1:s+r,x2:a+c-t,y2:s+r}]}getTitle(e){if(e)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:`top`,verticalPos:`center`,rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){let e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),t=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),n=this.config.showTitle&&!!this.data.titleText,r=this.data.points.length>0?`bottom`:this.config.xAxisPosition,i=this.calculateSpace(r,e,t,n);return{points:this.getQuadrantPoints(i),quadrants:this.getQuadrants(i),axisLabels:this.getAxisLabels(r,e,t,i),borderLines:this.getBorders(i),title:this.getTitle(n)}}},b=class extends Error{static{e(this,`InvalidStyleError`)}constructor(e,t,n){super(`value for ${e} ${t} is invalid, please use a valid ${n}`),this.name=`InvalidStyleError`}};function x(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}e(x,`validateHexCode`);function S(e){return!/^\d+$/.test(e)}e(S,`validateNumber`);function C(e){return!/^\d+px$/.test(e)}e(C,`validateSizeInPixels`);var w=i();function T(e){return o(e.trim(),w)}e(T,`textSanitizer`);var E=new y;function D(e){E.setData({quadrant1Text:T(e.text)})}e(D,`setQuadrant1Text`);function O(e){E.setData({quadrant2Text:T(e.text)})}e(O,`setQuadrant2Text`);function k(e){E.setData({quadrant3Text:T(e.text)})}e(k,`setQuadrant3Text`);function A(e){E.setData({quadrant4Text:T(e.text)})}e(A,`setQuadrant4Text`);function j(e){E.setData({xAxisLeftText:T(e.text)})}e(j,`setXAxisLeftText`);function M(e){E.setData({xAxisRightText:T(e.text)})}e(M,`setXAxisRightText`);function N(e){E.setData({yAxisTopText:T(e.text)})}e(N,`setYAxisTopText`);function P(e){E.setData({yAxisBottomText:T(e.text)})}e(P,`setYAxisBottomText`);function F(e){let t={};for(let n of e){let[e,r]=n.trim().split(/\s*:\s*/);if(e===`radius`){if(S(r))throw new b(e,r,`number`);t.radius=parseInt(r)}else if(e===`color`){if(x(r))throw new b(e,r,`hex code`);t.color=r}else if(e===`stroke-color`){if(x(r))throw new b(e,r,`hex code`);t.strokeColor=r}else if(e===`stroke-width`){if(C(r))throw new b(e,r,`number of pixels (eg. 10px)`);t.strokeWidth=r}else throw Error(`style named ${e} is not supported.`)}return t}e(F,`parseStyles`);function I(e,t,n,r,i){let a=F(i);E.addPoints([{x:n,y:r,text:T(e.text),className:t,...a}])}e(I,`addPoint`);function L(e,t){E.addClass(e,F(t))}e(L,`addClass`);function R(e){E.setConfig({chartWidth:e})}e(R,`setWidth`);function z(e){E.setConfig({chartHeight:e})}e(z,`setHeight`);function B(){let{themeVariables:e,quadrantChart:t}=i();return t&&E.setConfig(t),E.setThemeConfig({quadrant1Fill:e.quadrant1Fill,quadrant2Fill:e.quadrant2Fill,quadrant3Fill:e.quadrant3Fill,quadrant4Fill:e.quadrant4Fill,quadrant1TextFill:e.quadrant1TextFill,quadrant2TextFill:e.quadrant2TextFill,quadrant3TextFill:e.quadrant3TextFill,quadrant4TextFill:e.quadrant4TextFill,quadrantPointFill:e.quadrantPointFill,quadrantPointTextFill:e.quadrantPointTextFill,quadrantXAxisTextFill:e.quadrantXAxisTextFill,quadrantYAxisTextFill:e.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:e.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:e.quadrantInternalBorderStrokeFill,quadrantTitleFill:e.quadrantTitleFill}),E.setData({titleText:a()}),E.build()}e(B,`getQuadrantData`);var ee={parser:_,db:{setWidth:R,setHeight:z,setQuadrant1Text:D,setQuadrant2Text:O,setQuadrant3Text:k,setQuadrant4Text:A,setXAxisLeftText:j,setXAxisRightText:M,setYAxisTopText:N,setYAxisBottomText:P,parseStyles:F,addPoint:I,addClass:L,getQuadrantData:B,clear:e(function(){E.clear(),m()},`clear`),setAccTitle:l,getAccTitle:h,setDiagramTitle:c,getDiagramTitle:a,getAccDescription:u,setAccDescription:s},renderer:{draw:e((n,a,o,s)=>{function c(e){return e===`top`?`hanging`:`middle`}e(c,`getDominantBaseLine`);function l(e){return e===`left`?`start`:`middle`}e(l,`getTextAnchor`);function u(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}e(u,`getTransformation`);let d=i();r.debug(`Rendering quadrant chart +`+n);let p=d.securityLevel,m;p===`sandbox`&&(m=t(`#i`+a));let h=t(p===`sandbox`?m.nodes()[0].contentDocument.body:`body`).select(`[id="${a}"]`),g=h.append(`g`).attr(`class`,`main`),_=d.quadrantChart?.chartWidth??500,v=d.quadrantChart?.chartHeight??500;f(h,v,_,d.quadrantChart?.useMaxWidth??!0),h.attr(`viewBox`,`0 0 `+_+` `+v),s.db.setHeight(v),s.db.setWidth(_);let y=s.db.getQuadrantData(),b=g.append(`g`).attr(`class`,`quadrants`),x=g.append(`g`).attr(`class`,`border`),S=g.append(`g`).attr(`class`,`data-points`),C=g.append(`g`).attr(`class`,`labels`),w=g.append(`g`).attr(`class`,`title`);y.title&&w.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,y.title.fill).attr(`font-size`,y.title.fontSize).attr(`dominant-baseline`,c(y.title.horizontalPos)).attr(`text-anchor`,l(y.title.verticalPos)).attr(`transform`,u(y.title)).text(y.title.text),y.borderLines&&x.selectAll(`line`).data(y.borderLines).enter().append(`line`).attr(`x1`,e=>e.x1).attr(`y1`,e=>e.y1).attr(`x2`,e=>e.x2).attr(`y2`,e=>e.y2).style(`stroke`,e=>e.strokeFill).style(`stroke-width`,e=>e.strokeWidth);let T=b.selectAll(`g.quadrant`).data(y.quadrants).enter().append(`g`).attr(`class`,`quadrant`);T.append(`rect`).attr(`x`,e=>e.x).attr(`y`,e=>e.y).attr(`width`,e=>e.width).attr(`height`,e=>e.height).attr(`fill`,e=>e.fill),T.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>c(e.text.horizontalPos)).attr(`text-anchor`,e=>l(e.text.verticalPos)).attr(`transform`,e=>u(e.text)).text(e=>e.text.text),C.selectAll(`g.label`).data(y.axisLabels).enter().append(`g`).attr(`class`,`label`).append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text).attr(`fill`,e=>e.fill).attr(`font-size`,e=>e.fontSize).attr(`dominant-baseline`,e=>c(e.horizontalPos)).attr(`text-anchor`,e=>l(e.verticalPos)).attr(`transform`,e=>u(e));let E=S.selectAll(`g.data-point`).data(y.points).enter().append(`g`).attr(`class`,`data-point`);E.append(`circle`).attr(`cx`,e=>e.x).attr(`cy`,e=>e.y).attr(`r`,e=>e.radius).attr(`fill`,e=>e.fill).attr(`stroke`,e=>e.strokeColor).attr(`stroke-width`,e=>e.strokeWidth),E.append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text.text).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>c(e.text.horizontalPos)).attr(`text-anchor`,e=>l(e.text.verticalPos)).attr(`transform`,e=>u(e.text))},`draw`)},styles:e(()=>``,`styles`)};export{ee as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/radar-GUYGQ44K-S4BGN5FN-x7QM25Od.js b/docs/dist/assets/radar-GUYGQ44K-S4BGN5FN-x7QM25Od.js new file mode 100644 index 00000000..b0a32e13 --- /dev/null +++ b/docs/dist/assets/radar-GUYGQ44K-S4BGN5FN-x7QM25Od.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-BBDM4ZFP-DhnAO8sj.js";export{e as createRadarServices}; \ No newline at end of file diff --git a/docs/dist/assets/requirementDiagram-WYUPVDHP-OQ_zciRf.js b/docs/dist/assets/requirementDiagram-WYUPVDHP-OQ_zciRf.js new file mode 100644 index 00000000..b5c0c1a3 --- /dev/null +++ b/docs/dist/assets/requirementDiagram-WYUPVDHP-OQ_zciRf.js @@ -0,0 +1,84 @@ +import{n as e,r as t}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{T as n}from"./chunk-V7P66DNM-D246Sefn.js";import{C as r,E as i,J as a,Q as o,S as s,Y as c,b as l,o as u,x as d}from"./chunk-Q52JI7PB-BeSPinqD.js";import"./chunk-PLCLPJVV-rGjVDjLw.js";import"./chunk-GTILCTU2-D-9HFTK6.js";import"./chunk-7TFACZ55-BO7C1qvL.js";import{v as f}from"./chunk-BSZA5ISF-LqNHBHyp.js";import"./chunk-SZ5Y56Q4-Bki2Aicm.js";import"./chunk-YSJUE5HW-eH4JtoEG.js";import"./chunk-HQMLCRZ6-HgqAiHMi.js";import"./chunk-RTI7CJYH-CrTK6TD7.js";import"./chunk-TRQY2T3P-DxnI4jXA.js";import{r as p,t as m}from"./chunk-SNQTKDUU-CQmHT9KX.js";import{t as h}from"./chunk-7723GVCQ-CfHgq7qP.js";import{t as g}from"./chunk-KEUPHFFI-DMlFzrf2.js";var _=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,3],r=[1,4],i=[1,5],a=[1,6],o=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],s=[1,22],c=[2,7],l=[1,26],u=[1,27],d=[1,28],f=[1,29],p=[1,33],m=[1,34],h=[1,35],g=[1,36],_=[1,37],v=[1,38],y=[1,24],b=[1,31],x=[1,32],S=[1,30],C=[1,39],w=[1,40],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],E=[1,61],D=[89,90],O=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],k=[27,29],ee=[1,70],A=[1,71],te=[1,72],ne=[1,73],re=[1,74],ie=[1,75],ae=[1,76],j=[1,83],M=[1,80],N=[1,84],P=[1,85],F=[1,86],I=[1,87],L=[1,88],R=[1,89],z=[1,90],B=[1,91],V=[1,92],oe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],H=[63,64],se=[1,101],ce=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],U=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],W=[1,110],G=[1,106],K=[1,107],q=[1,108],J=[1,109],Y=[1,111],X=[1,116],Z=[1,117],Q=[1,114],$=[1,115],le={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:`error`,5:`NEWLINE`,6:`RD`,8:`EOF`,9:`acc_title`,10:`acc_title_value`,11:`acc_descr`,12:`acc_descr_value`,13:`acc_descr_multiline_value`,21:`direction_tb`,22:`direction_bt`,23:`direction_rl`,24:`direction_lr`,27:`STRUCT_START`,29:`STYLE_SEPARATOR`,31:`ID`,32:`COLONSEP`,34:`TEXT`,36:`RISK`,38:`VERIFYMTHD`,40:`STRUCT_STOP`,41:`REQUIREMENT`,42:`FUNCTIONAL_REQUIREMENT`,43:`INTERFACE_REQUIREMENT`,44:`PERFORMANCE_REQUIREMENT`,45:`PHYSICAL_REQUIREMENT`,46:`DESIGN_CONSTRAINT`,47:`LOW_RISK`,48:`MED_RISK`,49:`HIGH_RISK`,50:`VERIFY_ANALYSIS`,51:`VERIFY_DEMONSTRATION`,52:`VERIFY_INSPECTION`,53:`VERIFY_TEST`,54:`ELEMENT`,57:`TYPE`,59:`DOCREF`,61:`END_ARROW_L`,63:`LINE`,64:`END_ARROW_R`,65:`CONTAINS`,66:`COPIES`,67:`DERIVES`,68:`SATISFIES`,69:`VERIFIES`,70:`REFINES`,71:`TRACES`,72:`CLASSDEF`,74:`CLASS`,75:`ALPHA`,76:`COMMA`,77:`STYLE`,80:`NUM`,81:`COLON`,82:`UNIT`,83:`SPACE`,84:`BRKT`,85:`PCT`,86:`MINUS`,87:`LABEL`,88:`SEMICOLON`,89:`unqString`,90:`qString`},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:r.setDirection(`TB`);break;case 18:r.setDirection(`BT`);break;case 19:r.setDirection(`RL`);break;case 20:r.setDirection(`LR`);break;case 21:r.addRequirement(a[s-3],a[s-4]);break;case 22:r.addRequirement(a[s-5],a[s-6]),r.setClass([a[s-5]],a[s-3]);break;case 23:r.setNewReqId(a[s-2]);break;case 24:r.setNewReqText(a[s-2]);break;case 25:r.setNewReqRisk(a[s-2]);break;case 26:r.setNewReqVerifyMethod(a[s-2]);break;case 29:this.$=r.RequirementType.REQUIREMENT;break;case 30:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=r.RiskLevel.LOW_RISK;break;case 36:this.$=r.RiskLevel.MED_RISK;break;case 37:this.$=r.RiskLevel.HIGH_RISK;break;case 38:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=r.VerifyType.VERIFY_TEST;break;case 42:r.addElement(a[s-3]);break;case 43:r.addElement(a[s-5]),r.setClass([a[s-5]],a[s-3]);break;case 44:r.setNewElementType(a[s-2]);break;case 45:r.setNewElementDocRef(a[s-2]);break;case 48:r.addRelationship(a[s-2],a[s],a[s-4]);break;case 49:r.addRelationship(a[s-2],a[s-4],a[s]);break;case 50:this.$=r.Relationships.CONTAINS;break;case 51:this.$=r.Relationships.COPIES;break;case 52:this.$=r.Relationships.DERIVES;break;case 53:this.$=r.Relationships.SATISFIES;break;case 54:this.$=r.Relationships.VERIFIES;break;case 55:this.$=r.Relationships.REFINES;break;case 56:this.$=r.Relationships.TRACES;break;case 57:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 58:r.setClass(a[s-1],a[s]);break;case 59:r.setClass([a[s-2]],a[s]);break;case 60:case 62:this.$=[a[s]];break;case 61:case 63:this.$=a[s-2].concat([a[s]]);break;case 64:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 65:this.$=[a[s]];break;case 66:a[s-2].push(a[s]),this.$=a[s-2];break;case 68:this.$=a[s-1]+a[s];break}},`anonymous`),table:[{3:1,4:2,6:n,9:r,11:i,13:a},{1:[3]},{3:8,4:2,5:[1,7],6:n,9:r,11:i,13:a},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(o,[2,6]),{3:12,4:2,6:n,9:r,11:i,13:a},{1:[2,2]},{4:17,5:s,7:13,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},e(o,[2,4]),e(o,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:s,7:42,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:43,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:44,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:45,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:46,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:47,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:48,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:49,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:50,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(T,[2,17]),e(T,[2,18]),e(T,[2,19]),e(T,[2,20]),{30:60,33:62,75:E,89:C,90:w},{30:63,33:62,75:E,89:C,90:w},{30:64,33:62,75:E,89:C,90:w},e(D,[2,29]),e(D,[2,30]),e(D,[2,31]),e(D,[2,32]),e(D,[2,33]),e(D,[2,34]),e(O,[2,81]),e(O,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(k,[2,79]),e(k,[2,80]),{27:[1,67],29:[1,68]},e(k,[2,85]),e(k,[2,86]),{62:69,65:ee,66:A,67:te,68:ne,69:re,70:ie,71:ae},{62:77,65:ee,66:A,67:te,68:ne,69:re,70:ie,71:ae},{30:78,33:62,75:E,89:C,90:w},{73:79,75:j,76:M,78:81,79:82,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V},e(oe,[2,60]),e(oe,[2,62]),{73:93,75:j,76:M,78:81,79:82,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V},{30:94,33:62,75:E,76:M,89:C,90:w},{5:[1,95]},{30:96,33:62,75:E,89:C,90:w},{5:[1,97]},{30:98,33:62,75:E,89:C,90:w},{63:[1,99]},e(H,[2,50]),e(H,[2,51]),e(H,[2,52]),e(H,[2,53]),e(H,[2,54]),e(H,[2,55]),e(H,[2,56]),{64:[1,100]},e(T,[2,59],{76:M}),e(T,[2,64],{76:se}),{33:103,75:[1,102],89:C,90:w},e(ce,[2,65],{79:104,75:j,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V}),e(U,[2,67]),e(U,[2,69]),e(U,[2,70]),e(U,[2,71]),e(U,[2,72]),e(U,[2,73]),e(U,[2,74]),e(U,[2,75]),e(U,[2,76]),e(U,[2,77]),e(U,[2,78]),e(T,[2,57],{76:se}),e(T,[2,58],{76:M}),{5:W,28:105,31:G,34:K,36:q,38:J,40:Y},{27:[1,112],76:M},{5:X,40:Z,56:113,57:Q,59:$},{27:[1,118],76:M},{33:119,89:C,90:w},{33:120,89:C,90:w},{75:j,78:121,79:82,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V},e(oe,[2,61]),e(oe,[2,63]),e(U,[2,68]),e(T,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:W,28:126,31:G,34:K,36:q,38:J,40:Y},e(T,[2,28]),{5:[1,127]},e(T,[2,42]),{32:[1,128]},{32:[1,129]},{5:X,40:Z,56:130,57:Q,59:$},e(T,[2,47]),{5:[1,131]},e(T,[2,48]),e(T,[2,49]),e(ce,[2,66],{79:104,75:j,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V}),{33:132,89:C,90:w},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(T,[2,27]),{5:W,28:145,31:G,34:K,36:q,38:J,40:Y},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(T,[2,46]),{5:X,40:Z,56:152,57:Q,59:$},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(T,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(T,[2,43]),{5:W,28:159,31:G,34:K,36:q,38:J,40:Y},{5:W,28:160,31:G,34:K,36:q,38:J,40:Y},{5:W,28:161,31:G,34:K,36:q,38:J,40:Y},{5:W,28:162,31:G,34:K,36:q,38:J,40:Y},{5:X,40:Z,56:163,57:Q,59:$},{5:X,40:Z,56:164,57:Q,59:$},e(T,[2,23]),e(T,[2,24]),e(T,[2,25]),e(T,[2,26]),e(T,[2,44]),e(T,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,ee,A;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var te=``;for(O in A=[],s[w])this.terminals_[O]&&O>f&&A.push(`'`+this.terminals_[O]+`'`);te=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+A.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(te,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:A})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),ee=s[r[r.length-2]][r[r.length-1]],r.push(ee);break;case 3:return!0}}return!0},`parse`)};le.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:t(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t(function(){return this.next()||this.lex()},`lex`),begin:t(function(e){this.conditionStack.push(e)},`begin`),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t(function(e){this.begin(e)},`pushState`),stateStackSize:t(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t(function(e,t,n,r){switch(n){case 0:return`title`;case 1:return this.begin(`acc_title`),9;case 2:return this.popState(),`acc_title_value`;case 3:return this.begin(`acc_descr`),11;case 4:return this.popState(),`acc_descr_value`;case 5:this.begin(`acc_descr_multiline`);break;case 6:this.popState();break;case 7:return`acc_descr_multiline_value`;case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin(`style`),77;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return`PERCENT`;case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin(`string`);break;case 58:this.popState();break;case 59:return this.begin(`style`),72;case 60:return this.begin(`style`),74;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin(`string`);break;case 65:this.popState();break;case 66:return`qString`;case 67:return t.yytext=t.yytext.trim(),89;case 68:return 75;case 69:return 80;case 70:return 76}},`anonymous`),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}}})();function ue(){this.yy={}}return t(ue,`Parser`),ue.prototype=le,le.Parser=ue,new ue})();_.parser=_;var v=_,y=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction=`TB`,this.RequirementType={REQUIREMENT:`Requirement`,FUNCTIONAL_REQUIREMENT:`Functional Requirement`,INTERFACE_REQUIREMENT:`Interface Requirement`,PERFORMANCE_REQUIREMENT:`Performance Requirement`,PHYSICAL_REQUIREMENT:`Physical Requirement`,DESIGN_CONSTRAINT:`Design Constraint`},this.RiskLevel={LOW_RISK:`Low`,MED_RISK:`Medium`,HIGH_RISK:`High`},this.VerifyType={VERIFY_ANALYSIS:`Analysis`,VERIFY_DEMONSTRATION:`Demonstration`,VERIFY_INSPECTION:`Inspection`,VERIFY_TEST:`Test`},this.Relationships={CONTAINS:`contains`,COPIES:`copies`,DERIVES:`derives`,SATISFIES:`satisfies`,VERIFIES:`verifies`,REFINES:`refines`,TRACES:`traces`},this.setAccTitle=c,this.getAccTitle=d,this.setAccDescription=a,this.getAccDescription=l,this.setDiagramTitle=o,this.getDiagramTitle=i,this.getConfig=t(()=>r().requirement,`getConfig`),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{t(this,`RequirementDB`)}getDirection(){return this.direction}setDirection(e){this.direction=e}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:``,text:``,risk:``,verifyMethod:``,name:``,type:``,cssStyles:[],classes:[`default`]}}getInitialElement(){return{name:``,type:``,docRef:``,cssStyles:[],classes:[`default`]}}addRequirement(e,t){return this.requirements.has(e)||this.requirements.set(e,{name:e,type:t,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:[`default`]}),this.resetLatestRequirement(),this.requirements.get(e)}getRequirements(){return this.requirements}setNewReqId(e){this.latestRequirement!==void 0&&(this.latestRequirement.requirementId=e)}setNewReqText(e){this.latestRequirement!==void 0&&(this.latestRequirement.text=e)}setNewReqRisk(e){this.latestRequirement!==void 0&&(this.latestRequirement.risk=e)}setNewReqVerifyMethod(e){this.latestRequirement!==void 0&&(this.latestRequirement.verifyMethod=e)}addElement(e){return this.elements.has(e)||(this.elements.set(e,{name:e,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:[`default`]}),n.info(`Added new element: `,e)),this.resetLatestElement(),this.elements.get(e)}getElements(){return this.elements}setNewElementType(e){this.latestElement!==void 0&&(this.latestElement.type=e)}setNewElementDocRef(e){this.latestElement!==void 0&&(this.latestElement.docRef=e)}addRelationship(e,t,n){this.relations.push({type:e,src:t,dst:n})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,u()}setCssStyle(e,t){for(let n of e){let e=this.requirements.get(n)??this.elements.get(n);if(!t||!e)return;for(let n of t)n.includes(`,`)?e.cssStyles.push(...n.split(`,`)):e.cssStyles.push(n)}}setClass(e,t){for(let n of e){let e=this.requirements.get(n)??this.elements.get(n);if(e)for(let n of t){e.classes.push(n);let t=this.classes.get(n)?.styles;t&&e.cssStyles.push(...t)}}}defineClass(e,t){for(let n of e){let e=this.classes.get(n);e===void 0&&(e={id:n,styles:[],textStyles:[]},this.classes.set(n,e)),t&&t.forEach(function(t){if(/color/.exec(t)){let n=t.replace(`fill`,`bgFill`);e.textStyles.push(n)}e.styles.push(t)}),this.requirements.forEach(e=>{e.classes.includes(n)&&e.cssStyles.push(...t.flatMap(e=>e.split(`,`)))}),this.elements.forEach(e=>{e.classes.includes(n)&&e.cssStyles.push(...t.flatMap(e=>e.split(`,`)))})}}getClasses(){return this.classes}getData(){let e=r(),t=[],n=[];for(let n of this.requirements.values()){let r=n;r.id=n.name,r.cssStyles=n.cssStyles,r.cssClasses=n.classes.join(` `),r.shape=`requirementBox`,r.look=e.look,r.colorIndex=t.length,t.push(r)}for(let n of this.elements.values()){let r=n;r.shape=`requirementBox`,r.look=e.look,r.id=n.name,r.cssStyles=n.cssStyles,r.cssClasses=n.classes.join(` `),r.colorIndex=t.length,t.push(r)}for(let t of this.relations){let r=0,i=t.type===this.Relationships.CONTAINS,a={id:`${t.src}-${t.dst}-${r}`,start:this.requirements.get(t.src)?.name??this.elements.get(t.src)?.name,end:this.requirements.get(t.dst)?.name??this.elements.get(t.dst)?.name,label:`<<${t.type}>>`,classes:`relationshipLine`,style:[`fill:none`,i?``:`stroke-dasharray: 10,7`],labelpos:`c`,thickness:`normal`,type:`normal`,pattern:i?`normal`:`dashed`,arrowTypeStart:i?`requirement_contains`:``,arrowTypeEnd:i?``:`requirement_arrow`,look:e.look,labelType:`markdown`};n.push(a),r++}return{nodes:t,edges:n,other:{},config:e,direction:this.getDirection()}}},b=t(e=>{let{themeVariables:t,look:n}=s(),{bkgColorArray:r,borderColorArray:i}=t;if(!i?.length)return``;let a=``;for(let t=0;t{let{look:t,themeVariables:n}=s(),{requirementEdgeLabelBackground:r}=n;return` + ${b(e)} + marker { + fill: ${e.relationColor}; + stroke: ${e.relationColor}; + } + + marker.cross { + stroke: ${e.lineColor}; + } + + svg { + font-family: ${e.fontFamily}; + font-size: ${e.fontSize}; + } + + .reqBox { + fill: ${e.requirementBackground}; + fill-opacity: 1.0; + stroke: ${e.requirementBorderColor}; + stroke-width: ${e.requirementBorderSize}; + } + + .reqTitle, .reqLabel{ + fill: ${e.requirementTextColor}; + } + .reqLabelBox { + fill: ${e.relationLabelBackground}; + fill-opacity: 1.0; + } + + .req-title-line { + stroke: ${e.requirementBorderColor}; + stroke-width: ${e.requirementBorderSize}; + } + .relationshipLine { + stroke: ${e.relationColor}; + stroke-width: ${t===`neo`?e.strokeWidth:`1px`}; + } + .relationshipLabel { + fill: ${e.relationLabelColor}; + } + .edgeLabel { + background-color: ${e.edgeLabelBackground}; + } + .edgeLabel .label rect { + fill: ${e.edgeLabelBackground}; + } + .edgeLabel .label text { + fill: ${e.relationLabelColor}; + } + .divider { + stroke: ${e.nodeBorder}; + stroke-width: 1; + } + .label { + font-family: ${e.fontFamily}; + color: ${e.nodeTextColor||e.textColor}; + } + .label text,span { + fill: ${e.nodeTextColor||e.textColor}; + color: ${e.nodeTextColor||e.textColor}; + } + .labelBkg { + background-color: ${r??e.edgeLabelBackground}; + } + +`},`getStyles`),S={};e(S,{draw:()=>C});var C=t(async function(e,t,i,a){n.info(`REF0:`),n.info(`Drawing requirement diagram (unified)`,t);let{securityLevel:o,state:s,layout:c,look:l}=r(),u=a.db.getData(),d=h(t,o);u.type=a.type,u.layoutAlgorithm=m(c),u.nodeSpacing=s?.nodeSpacing??50,u.rankSpacing=s?.rankSpacing??50,u.markers=l===`neo`?[`requirement_contains_neo`,`requirement_arrow_neo`]:[`requirement_contains`,`requirement_arrow`],u.diagramId=t,await p(u,d),f.insertTitle(d,`requirementDiagramTitleText`,s?.titleTopMargin??25,a.db.getDiagramTitle()),g(d,8,`requirementDiagram`,s?.useMaxWidth??!0)},`draw`),w={parser:v,get db(){return new y},renderer:S,styles:x};export{w as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/sankeyDiagram-TAHJUD2B-qMV_bEeK.js b/docs/dist/assets/sankeyDiagram-TAHJUD2B-qMV_bEeK.js new file mode 100644 index 00000000..211aa93a --- /dev/null +++ b/docs/dist/assets/sankeyDiagram-TAHJUD2B-qMV_bEeK.js @@ -0,0 +1,40 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{I as t,M as n,t as r}from"./chunk-V7P66DNM-D246Sefn.js";import{C as i,E as a,J as o,Q as s,Y as c,b as l,c as u,et as d,o as f,p,x as m}from"./chunk-Q52JI7PB-BeSPinqD.js";var h=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,9],r=[1,10],i=[1,5,10,12],a={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:`error`,4:`SANKEY`,5:`NEWLINE`,10:`EOF`,11:`field[source]`,12:`COMMA`,13:`field[target]`,14:`field[value]`,18:`DQUOTE`,19:`ESCAPED_TEXT`,20:`NON_ESCAPED_TEXT`},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 7:let e=r.findOrCreateNode(a[s-4].trim().replaceAll(`""`,`"`)),t=r.findOrCreateNode(a[s-2].trim().replaceAll(`""`,`"`)),n=parseFloat(a[s].trim());r.addLink(e,t,n);break;case 8:case 9:case 11:this.$=a[s];break;case 10:this.$=a[s-1];break}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:r},{1:[2,6],7:11,10:[1,12]},t(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(i,[2,8]),t(i,[2,9]),{19:[1,16]},t(i,[2,11]),{1:[2,1]},{1:[2,5]},t(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:r},{15:18,16:7,17:8,18:n,20:r},{18:[1,19]},t(r,[2,3]),{12:[1,20]},t(i,[2,10]),{15:21,16:7,17:8,18:n,20:r},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};a.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e(function(e,t,n,r){switch(n){case 0:return this.pushState(`csv`),4;case 1:return this.pushState(`csv`),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState(`escaped_text`),18;case 6:return 20;case 7:return this.popState(`escaped_text`),18;case 8:return 19}},`anonymous`),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}}})();function o(){this.yy={}}return e(o,`Parser`),o.prototype=a,a.Parser=o,new o})();h.parser=h;var g=h,_=[],v=[],y=new Map,b=e(()=>{_=[],v=[],y=new Map,f()},`clear`),x=class{constructor(e,t,n=0){this.source=e,this.target=t,this.value=n}static{e(this,`SankeyLink`)}},S=e((e,t,n)=>{_.push(new x(e,t,n))},`addLink`),C=class{constructor(e){this.ID=e}static{e(this,`SankeyNode`)}},w={nodesMap:y,getConfig:e(()=>i().sankey,`getConfig`),getNodes:e(()=>v,`getNodes`),getLinks:e(()=>_,`getLinks`),getGraph:e(()=>({nodes:v.map(e=>({id:e.ID})),links:_.map(e=>({source:e.source.ID,target:e.target.ID,value:e.value}))}),`getGraph`),addLink:S,findOrCreateNode:e(e=>{e=u.sanitizeText(e,i());let t=y.get(e);return t===void 0&&(t=new C(e),y.set(e,t),v.push(t)),t},`findOrCreateNode`),getAccTitle:m,setAccTitle:c,getAccDescription:l,setAccDescription:o,getDiagramTitle:a,setDiagramTitle:s,clear:b};function T(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n=i)&&(n=i)}return n}e(T,`max`);function E(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}e(E,`min`);function D(e,t){let n=0;if(t===void 0)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}e(D,`sum`);function O(e){return e.target.depth}e(O,`targetDepth`);function k(e){return e.depth}e(k,`left`);function A(e,t){return t-1-e.height}e(A,`right`);function j(e,t){return e.sourceLinks.length?e.depth:t-1}e(j,`justify`);function M(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?E(e.sourceLinks,O)-1:0}e(M,`center`);function N(e){return function(){return e}}e(N,`constant`);function P(e,t){return I(e.source,t.source)||e.index-t.index}e(P,`ascendingSourceBreadth`);function F(e,t){return I(e.target,t.target)||e.index-t.index}e(F,`ascendingTargetBreadth`);function I(e,t){return e.y0-t.y0}e(I,`ascendingBreadth`);function L(e){return e.value}e(L,`value`);function R(e){return e.index}e(R,`defaultId`);function z(e){return e.nodes}e(z,`defaultNodes`);function B(e){return e.links}e(B,`defaultLinks`);function V(e,t){let n=e.get(t);if(!n)throw Error(`missing: `+t);return n}e(V,`find`);function H({nodes:e}){for(let t of e){let e=t.y0,n=e;for(let n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(let e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}e(H,`computeLinkBreadths`);function U(){let t=0,n=0,r=1,i=1,a=24,o=8,s,c=R,l=j,u,d,f=z,p=B,m=6;function h(){let e={nodes:f.apply(null,arguments),links:p.apply(null,arguments)};return g(e),_(e),v(e),y(e),S(e),H(e),e}e(h,`sankey`),h.update=function(e){return H(e),e},h.nodeId=function(e){return arguments.length?(c=typeof e==`function`?e:N(e),h):c},h.nodeAlign=function(e){return arguments.length?(l=typeof e==`function`?e:N(e),h):l},h.nodeSort=function(e){return arguments.length?(u=e,h):u},h.nodeWidth=function(e){return arguments.length?(a=+e,h):a},h.nodePadding=function(e){return arguments.length?(o=s=+e,h):o},h.nodes=function(e){return arguments.length?(f=typeof e==`function`?e:N(e),h):f},h.links=function(e){return arguments.length?(p=typeof e==`function`?e:N(e),h):p},h.linkSort=function(e){return arguments.length?(d=e,h):d},h.size=function(e){return arguments.length?(t=n=0,r=+e[0],i=+e[1],h):[r-t,i-n]},h.extent=function(e){return arguments.length?(t=+e[0][0],r=+e[1][0],n=+e[0][1],i=+e[1][1],h):[[t,n],[r,i]]},h.iterations=function(e){return arguments.length?(m=+e,h):m};function g({nodes:e,links:t}){for(let[t,n]of e.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];let n=new Map(e.map((t,n)=>[c(t,n,e),t]));for(let[e,r]of t.entries()){r.index=e;let{source:t,target:i}=r;typeof t!=`object`&&(t=r.source=V(n,t)),typeof i!=`object`&&(i=r.target=V(n,i)),t.sourceLinks.push(r),i.targetLinks.push(r)}if(d!=null)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(d),n.sort(d)}e(g,`computeNodeLinks`);function _({nodes:e}){for(let t of e)t.value=t.fixedValue===void 0?Math.max(D(t.sourceLinks,L),D(t.targetLinks,L)):t.fixedValue}e(_,`computeNodeValues`);function v({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.depth=i;for(let{target:t}of e.sourceLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}e(v,`computeNodeDepths`);function y({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.height=i;for(let{source:t}of e.targetLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}e(y,`computeNodeHeights`);function b({nodes:e}){let n=T(e,e=>e.depth)+1,i=(r-t-a)/(n-1),o=Array(n);for(let r of e){let e=Math.max(0,Math.min(n-1,Math.floor(l.call(null,r,n))));r.layer=e,r.x0=t+e*i,r.x1=r.x0+a,o[e]?o[e].push(r):o[e]=[r]}if(u)for(let e of o)e.sort(u);return o}e(b,`computeNodeLayers`);function x(e){let t=E(e,e=>(i-n-(e.length-1)*s)/D(e,L));for(let r of e){let e=n;for(let n of r){n.y0=e,n.y1=e+n.value*t,e=n.y1+s;for(let e of n.sourceLinks)e.width=e.value*t}e=(i-e+s)/(r.length+1);for(let t=0;te.length)-1)),x(t);for(let e=0;e0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,M(e)}u===void 0&&i.sort(I),O(i,n)}}e(C,`relaxLeftToRight`);function w(e,t,n){for(let r=e.length-2;r>=0;--r){let i=e[r];for(let e of i){let n=0,r=0;for(let{target:t,value:i}of e.sourceLinks){let a=i*(t.layer-e.layer);n+=G(e,t)*a,r+=a}if(!(r>0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,M(e)}u===void 0&&i.sort(I),O(i,n)}}e(w,`relaxRightToLeft`);function O(e,t){let r=e.length>>1,a=e[r];A(e,a.y0-s,r-1,t),k(e,a.y1+s,r+1,t),A(e,i,e.length-1,t),k(e,n,0,t)}e(O,`resolveCollisions`);function k(e,t,n,r){for(;n1e-6&&(i.y0+=a,i.y1+=a),t=i.y1+s}}e(k,`resolveCollisionsTopToBottom`);function A(e,t,n,r){for(;n>=0;--n){let i=e[n],a=(i.y1-t)*r;a>1e-6&&(i.y0-=a,i.y1-=a),t=i.y0-s}}e(A,`resolveCollisionsBottomToTop`);function M({sourceLinks:e,targetLinks:t}){if(d===void 0){for(let{source:{sourceLinks:e}}of t)e.sort(F);for(let{target:{targetLinks:t}}of e)t.sort(P)}}e(M,`reorderNodeLinks`);function U(e){if(d===void 0)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(F),n.sort(P)}e(U,`reorderLinks`);function W(e,t){let n=e.y0-(e.sourceLinks.length-1)*s/2;for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n+=i+s}for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n-=i}return n}e(W,`targetTop`);function G(e,t){let n=t.y0-(t.targetLinks.length-1)*s/2;for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n+=i+s}for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n-=i}return n}return e(G,`sourceTop`),h}e(U,`Sankey`);var W=Math.PI,G=2*W,K=1e-6,ee=G-K;function q(){this._x0=this._y0=this._x1=this._y1=null,this._=``}e(q,`Path`);function J(){return new q}e(J,`path`),q.prototype=J.prototype={constructor:q,moveTo:e(function(e,t){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)},`moveTo`),closePath:e(function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+=`Z`)},`closePath`),lineTo:e(function(e,t){this._+=`L`+(this._x1=+e)+`,`+(this._y1=+t)},`lineTo`),quadraticCurveTo:e(function(e,t,n,r){this._+=`Q`+ +e+`,`+ +t+`,`+(this._x1=+n)+`,`+(this._y1=+r)},`quadraticCurveTo`),bezierCurveTo:e(function(e,t,n,r,i,a){this._+=`C`+ +e+`,`+ +t+`,`+ +n+`,`+ +r+`,`+(this._x1=+i)+`,`+(this._y1=+a)},`bezierCurveTo`),arcTo:e(function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(i<0)throw Error(`negative radius: `+i);if(this._x1===null)this._+=`M`+(this._x1=e)+`,`+(this._y1=t);else if(d>K)if(!(Math.abs(u*s-c*l)>K)||!i)this._+=`L`+(this._x1=e)+`,`+(this._y1=t);else{var f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((W-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>K&&(this._+=`L`+(e+y*l)+`,`+(t+y*u)),this._+=`A`+i+`,`+i+`,0,0,`+ +(u*f>l*p)+`,`+(this._x1=e+b*s)+`,`+(this._y1=t+b*c)}},`arcTo`),arc:e(function(e,t,n,r,i,a){e=+e,t=+t,n=+n,a=!!a;var o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;if(n<0)throw Error(`negative radius: `+n);this._x1===null?this._+=`M`+c+`,`+l:(Math.abs(this._x1-c)>K||Math.abs(this._y1-l)>K)&&(this._+=`L`+c+`,`+l),n&&(d<0&&(d=d%G+G),d>ee?this._+=`A`+n+`,`+n+`,0,1,`+u+`,`+(e-o)+`,`+(t-s)+`A`+n+`,`+n+`,0,1,`+u+`,`+(this._x1=c)+`,`+(this._y1=l):d>K&&(this._+=`A`+n+`,`+n+`,0,`+ +(d>=W)+`,`+u+`,`+(this._x1=e+n*Math.cos(i))+`,`+(this._y1=t+n*Math.sin(i))))},`arc`),rect:e(function(e,t,n,r){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)+`h`+ +n+`v`+ +r+`h`+-n+`Z`},`rect`),toString:e(function(){return this._},`toString`)};var te=J;function Y(t){return e(function(){return t},`constant`)}e(Y,`default`);function X(e){return e[0]}e(X,`x`);function Z(e){return e[1]}e(Z,`y`);var ne=Array.prototype.slice;function Q(e){return e.source}e(Q,`linkSource`);function $(e){return e.target}e($,`linkTarget`);function re(t){var n=Q,r=$,i=X,a=Z,o=null;function s(){var e,s=ne.call(arguments),c=n.apply(this,s),l=r.apply(this,s);if(o||=e=te(),t(o,+i.apply(this,(s[0]=c,s)),+a.apply(this,s),+i.apply(this,(s[0]=l,s)),+a.apply(this,s)),e)return o=null,e+``||null}return e(s,`link`),s.source=function(e){return arguments.length?(n=e,s):n},s.target=function(e){return arguments.length?(r=e,s):r},s.x=function(e){return arguments.length?(i=typeof e==`function`?e:Y(+e),s):i},s.y=function(e){return arguments.length?(a=typeof e==`function`?e:Y(+e),s):a},s.context=function(e){return arguments.length?(o=e??null,s):o},s}e(re,`link`);function ie(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}e(ie,`curveHorizontal`);function ae(){return re(ie)}e(ae,`linkHorizontal`);function oe(e){return[e.source.x1,e.y0]}e(oe,`horizontalSource`);function se(e){return[e.target.x0,e.y1]}e(se,`horizontalTarget`);function ce(){return ae().source(oe).target(se)}e(ce,`default`);var le=class t{static{e(this,`Uid`)}static{this.count=0}static next(e){return new t(e+ ++t.count)}constructor(e){this.id=e,this.href=`#${e}`}toString(){return`url(`+this.href+`)`}},ue={left:k,right:A,center:M,justify:j},de=e(e=>{let t=0,n=0;for(let r of e){let e=r.value??0;e>t&&(t=e,n=r.layer??0)}return n},`findCentralNodeLayer`),fe={draw:e(function(a,o,s,c){let{securityLevel:l,sankey:u}=i(),f=p.sankey,m;l===`sandbox`&&(m=t(`#i`+o));let h=t(l===`sandbox`?m.nodes()[0].contentDocument.body:`body`),g=l===`sandbox`?h.select(`[id="${o}"]`):t(`[id="${o}"]`),_=u?.width??f.width,v=u?.height??f.width,y=u?.useMaxWidth??f.useMaxWidth,b=u?.nodeAlignment??f.nodeAlignment,x=u?.prefix??f.prefix,S=u?.suffix??f.suffix,C=u?.showValues??f.showValues,w=u?.nodeWidth??f.nodeWidth??10,T=u?.nodePadding??f.nodePadding??12,E=u?.labelStyle??f.labelStyle??`legacy`,D=u?.nodeColors??{},O=c.db.getGraph(),k=ue[b];U().nodeId(e=>e.id).nodeWidth(w).nodePadding(T+(C?15:0)).nodeAlign(k).extent([[0,0],[_,v]])(O);let A=de(O.nodes),j=n(r),M=e(e=>D[e]??j(e),`getNodeColor`);g.append(`g`).attr(`class`,`nodes`).selectAll(`.node`).data(O.nodes).join(`g`).attr(`class`,`node`).attr(`id`,e=>(e.uid=le.next(`node-`)).id).attr(`transform`,function(e){return`translate(`+e.x0+`,`+e.y0+`)`}).attr(`x`,e=>e.x0).attr(`y`,e=>e.y0).append(`rect`).attr(`height`,e=>e.y1-e.y0).attr(`width`,e=>e.x1-e.x0).attr(`fill`,e=>M(e.id));let N=e(({id:e,value:t})=>C?`${e} +${x}${Math.round(t*100)/100}${S}`:e,`getText`),P=e(e=>E===`outlined`?(e.layer??0)F.selectAll(e?`.${e}`:`text`).data(O.nodes).join(`text`).attr(`class`,e??null).attr(`x`,e=>P(e).x).attr(`y`,e=>(e.y1+e.y0)/2).attr(`dy`,`${C?`0`:`0.35`}em`).attr(`text-anchor`,e=>P(e).anchor).text(N),`appendLabel`);E===`outlined`?(I(`sankey-label-bg`),I(`sankey-label-fg`)):I();let L=g.append(`g`).attr(`class`,`links`).attr(`fill`,`none`).attr(`stroke-opacity`,.5).selectAll(`.link`).data(O.links).join(`g`).attr(`class`,`link`).style(`mix-blend-mode`,`multiply`),R=u?.linkColor??`gradient`;if(R===`gradient`){let e=L.append(`linearGradient`).attr(`id`,e=>(e.uid=le.next(`linearGradient-`)).id).attr(`gradientUnits`,`userSpaceOnUse`).attr(`x1`,e=>e.source.x1).attr(`x2`,e=>e.target.x0);e.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,e=>M(e.source.id)),e.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,e=>M(e.target.id))}let z;switch(R){case`gradient`:z=e(e=>e.uid,`coloring`);break;case`source`:z=e(e=>M(e.source.id),`coloring`);break;case`target`:z=e(e=>M(e.target.id),`coloring`);break;default:z=R}L.append(`path`).attr(`d`,ce()).attr(`stroke`,z).attr(`stroke-width`,e=>Math.max(1,e.width)),d(void 0,g,0,y)},`draw`)},pe=e(e=>e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,``).replaceAll(/([\n\r])+/g,` +`).trim(),`prepareTextForParsing`),me=e(e=>`.label { + font-family: ${e.fontFamily}; + } + + .node-labels { + font-family: ${e.fontFamily}; + } + + /* Outlined label style - background stroke for better readability */ + .sankey-label-bg { + stroke: ${e.mainBkg||e.background||`#fff`}; + stroke-width: 4px; + stroke-linejoin: round; + paint-order: stroke; + } + + /* Foreground label text */ + .sankey-label-fg { + fill: ${e.textColor}; + } + + /* Node styling */ + .node rect { + shape-rendering: crispEdges; + } + + /* Link styling */ + .link { + fill: none; + stroke-opacity: 0.5; + mix-blend-mode: multiply; + } +`,`getStyles`),he=g.parse.bind(g);g.parse=e=>he(pe(e));var ge={styles:me,parser:g,db:w,renderer:fe};export{ge as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/sequenceDiagram-37ID66UD-CbxdgltU.js b/docs/dist/assets/sequenceDiagram-37ID66UD-CbxdgltU.js new file mode 100644 index 00000000..9834af7e --- /dev/null +++ b/docs/dist/assets/sequenceDiagram-37ID66UD-CbxdgltU.js @@ -0,0 +1,162 @@ +import{i as e,r as t}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{I as n,T as r}from"./chunk-V7P66DNM-D246Sefn.js";import{A as i,B as a,C as o,E as s,G as c,J as l,M as u,Q as d,S as f,Y as p,Z as m,b as h,c as g,i as _,l as v,o as y,r as b,x}from"./chunk-Q52JI7PB-BeSPinqD.js";import{n as S,t as C}from"./chunk-PWCFYZI5-BQGIuzFC.js";import{t as w}from"./chunk-7TFACZ55-BO7C1qvL.js";import{h as T,v as E}from"./chunk-BSZA5ISF-LqNHBHyp.js";import{a as D,c as O,i as k,n as A,r as j,s as M}from"./chunk-O4A3IS3O-BIKKhWCb.js";import{t as N}from"./chunk-IALYP65X-Bv3ioVcB.js";var P=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,2],r=[1,3],i=[1,4],a=[2,4],o=[1,9],s=[1,11],c=[1,12],l=[1,14],u=[1,15],d=[1,17],f=[1,18],p=[1,19],m=[1,25],h=[1,26],g=[1,27],_=[1,28],v=[1,29],y=[1,30],b=[1,31],x=[1,32],S=[1,33],C=[1,34],w=[1,35],T=[1,36],E=[1,37],D=[1,38],O=[1,39],k=[1,40],A=[1,42],j=[1,43],M=[1,44],N=[1,45],P=[1,46],F=[1,47],I=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],L=[1,74],ee=[1,80],R=[1,81],te=[1,82],ne=[1,83],re=[1,84],z=[1,85],B=[1,86],V=[1,87],ie=[1,88],H=[1,89],U=[1,90],W=[1,91],ae=[1,92],oe=[1,93],se=[1,94],G=[1,95],ce=[1,96],K=[1,97],le=[1,98],ue=[1,99],de=[1,100],fe=[1,101],pe=[1,102],me=[1,103],he=[1,104],ge=[1,105],_e=[2,78],ve=[4,5,17,51,53,54],ye=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],be=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],xe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Se=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Ce=[5,52],q=[70,71,72,73],J=[1,151],we={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NEWLINE`,6:`SD`,10:`INVALID`,14:`create`,15:`box`,16:`restOfLine`,17:`end`,19:`autonumber`,20:`NUM`,21:`off`,22:`activate`,24:`deactivate`,30:`title`,31:`legacy_title`,32:`acc_title`,33:`acc_title_value`,34:`acc_descr`,35:`acc_descr_value`,36:`acc_descr_multiline_value`,37:`loop`,38:`rect`,39:`opt`,40:`alt`,42:`par`,44:`par_over`,45:`critical`,47:`break`,48:`option`,49:`and`,50:`else`,51:`participant`,52:`AS`,53:`participant_actor`,54:`destroy`,56:`note`,59:`over`,61:`links`,62:`link`,63:`properties`,64:`details`,66:`,`,67:`left_of`,68:`right_of`,70:`+`,71:`-`,72:`()`,73:`ACTOR`,75:`CONFIG_START`,76:`CONFIG_CONTENT`,77:`CONFIG_END`,78:`SOLID_OPEN_ARROW`,79:`DOTTED_OPEN_ARROW`,80:`SOLID_ARROW`,81:`SOLID_ARROW_TOP`,82:`SOLID_ARROW_BOTTOM`,83:`STICK_ARROW_TOP`,84:`STICK_ARROW_BOTTOM`,85:`SOLID_ARROW_TOP_DOTTED`,86:`SOLID_ARROW_BOTTOM_DOTTED`,87:`STICK_ARROW_TOP_DOTTED`,88:`STICK_ARROW_BOTTOM_DOTTED`,89:`SOLID_ARROW_TOP_REVERSE`,90:`SOLID_ARROW_BOTTOM_REVERSE`,91:`STICK_ARROW_TOP_REVERSE`,92:`STICK_ARROW_BOTTOM_REVERSE`,93:`SOLID_ARROW_TOP_REVERSE_DOTTED`,94:`SOLID_ARROW_BOTTOM_REVERSE_DOTTED`,95:`STICK_ARROW_TOP_REVERSE_DOTTED`,96:`STICK_ARROW_BOTTOM_REVERSE_DOTTED`,97:`BIDIRECTIONAL_SOLID_ARROW`,98:`DOTTED_ARROW`,99:`BIDIRECTIONAL_DOTTED_ARROW`,100:`SOLID_CROSS`,101:`DOTTED_CROSS`,102:`SOLID_POINT`,103:`DOTTED_POINT`,104:`TXT`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.apply(a[s]),a[s];case 4:case 10:this.$=[];break;case 5:case 11:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:case 7:case 12:case 13:this.$=a[s];break;case 8:case 9:case 14:this.$=[];break;case 16:a[s].type=`createParticipant`,this.$=a[s];break;case 17:a[s-1].unshift({type:`boxStart`,boxData:r.parseBoxData(a[s-2])}),a[s-1].push({type:`boxEnd`,boxText:a[s-2]}),this.$=a[s-1];break;case 19:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-2]),sequenceIndexStep:Number(a[s-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:`sequenceIndex`,sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:`sequenceIndex`,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor};break;case 24:this.$={type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-1].actor};break;case 30:r.setDiagramTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 31:r.setDiagramTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 32:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 33:case 34:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 35:a[s-1].unshift({type:`loopStart`,loopText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.LOOP_START}),a[s-1].push({type:`loopEnd`,loopText:a[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 36:a[s-1].unshift({type:`rectStart`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_START}),a[s-1].push({type:`rectEnd`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=a[s-1];break;case 37:a[s-1].unshift({type:`optStart`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_START}),a[s-1].push({type:`optEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=a[s-1];break;case 38:a[s-1].unshift({type:`altStart`,altText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.ALT_START}),a[s-1].push({type:`altEnd`,signalType:r.LINETYPE.ALT_END}),this.$=a[s-1];break;case 39:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 40:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_OVER_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 41:a[s-1].unshift({type:`criticalStart`,criticalText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.CRITICAL_START}),a[s-1].push({type:`criticalEnd`,signalType:r.LINETYPE.CRITICAL_END}),this.$=a[s-1];break;case 42:a[s-1].unshift({type:`breakStart`,breakText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_START}),a[s-1].push({type:`breakEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_END}),this.$=a[s-1];break;case 44:this.$=a[s-3].concat([{type:`option`,optionText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.CRITICAL_OPTION},a[s]]);break;case 46:this.$=a[s-3].concat([{type:`and`,parText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.PAR_AND},a[s]]);break;case 48:this.$=a[s-3].concat([{type:`else`,altText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.ALT_ELSE},a[s]]);break;case 49:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 50:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 51:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 52:case 57:a[s-1].draw=`actor`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 53:a[s-1].type=`destroyParticipant`,this.$=a[s-1];break;case 54:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 55:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 56:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 58:this.$=[a[s-1],{type:`addNote`,placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 59:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:`addNote`,placement:r.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 60:this.$=[a[s-1],{type:`addLinks`,actor:a[s-1].actor,text:a[s]}];break;case 61:this.$=[a[s-1],{type:`addALink`,actor:a[s-1].actor,text:a[s]}];break;case 62:this.$=[a[s-1],{type:`addProperties`,actor:a[s-1].actor,text:a[s]}];break;case 63:this.$=[a[s-1],{type:`addDetails`,actor:a[s-1].actor,text:a[s]}];break;case 66:this.$=[a[s-2],a[s]];break;case 67:this.$=a[s];break;case 68:this.$=r.PLACEMENT.LEFTOF;break;case 69:this.$=r.PLACEMENT.RIGHTOF;break;case 70:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0},{type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor}];break;case 71:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-4].actor}];break;case 72:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor}];break;case 73:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s],activate:!1,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-4].actor}];break;case 74:this.$=[a[s-5],a[s-1],{type:`addMessage`,from:a[s-5].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-5].actor}];break;case 75:this.$=[a[s-3],a[s-1],{type:`addMessage`,from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 76:this.$={type:`addParticipant`,actor:a[s-1],config:a[s]};break;case 77:this.$=a[s-1].trim();break;case 78:this.$={type:`addParticipant`,actor:a[s]};break;case 79:this.$=r.LINETYPE.SOLID_OPEN;break;case 80:this.$=r.LINETYPE.DOTTED_OPEN;break;case 81:this.$=r.LINETYPE.SOLID;break;case 82:this.$=r.LINETYPE.SOLID_TOP;break;case 83:this.$=r.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=r.LINETYPE.STICK_TOP;break;case 85:this.$=r.LINETYPE.STICK_BOTTOM;break;case 86:this.$=r.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=r.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=r.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=r.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=r.LINETYPE.DOTTED;break;case 100:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=r.LINETYPE.SOLID_CROSS;break;case 102:this.$=r.LINETYPE.DOTTED_CROSS;break;case 103:this.$=r.LINETYPE.SOLID_POINT;break;case 104:this.$=r.LINETYPE.DOTTED_POINT;break;case 105:this.$=r.parseMessage(a[s].trim().substring(1));break}},`anonymous`),table:[{3:1,4:n,5:r,6:i},{1:[3]},{3:5,4:n,5:r,6:i},{3:6,4:n,5:r,6:i},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},e(I,[2,5]),{9:48,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},e(I,[2,7]),e(I,[2,8]),e(I,[2,9]),e(I,[2,15]),{13:49,51:D,53:O,54:k},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:F},{23:56,73:F},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(I,[2,30]),e(I,[2,31]),{33:[1,62]},{35:[1,63]},e(I,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:L},{23:75,55:76,73:L},{23:77,73:F},{69:78,72:[1,79],78:ee,79:R,80:te,81:ne,82:re,83:z,84:B,85:V,86:ie,87:H,88:U,89:W,90:ae,91:oe,92:se,93:G,94:ce,95:K,96:le,97:ue,98:de,99:fe,100:pe,101:me,102:he,103:ge},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:F},{23:111,73:F},{23:112,73:F},{23:113,73:F},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],_e),e(I,[2,6]),e(I,[2,16]),e(ve,[2,10],{11:114}),e(I,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(I,[2,22]),{5:[1,118]},{5:[1,119]},e(I,[2,25]),e(I,[2,26]),e(I,[2,27]),e(I,[2,28]),e(I,[2,29]),e(I,[2,32]),e(I,[2,33]),e(ye,a,{7:120}),e(ye,a,{7:121}),e(ye,a,{7:122}),e(be,a,{41:123,7:124}),e(xe,a,{43:125,7:126}),e(xe,a,{7:126,43:127}),e(Se,a,{46:128,7:129}),e(ye,a,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Ce,_e,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:F},{69:146,78:ee,79:R,80:te,81:ne,82:re,83:z,84:B,85:V,86:ie,87:H,88:U,89:W,90:ae,91:oe,92:se,93:G,94:ce,95:K,96:le,97:ue,98:de,99:fe,100:pe,101:me,102:he,103:ge},e(q,[2,79]),e(q,[2,80]),e(q,[2,81]),e(q,[2,82]),e(q,[2,83]),e(q,[2,84]),e(q,[2,85]),e(q,[2,86]),e(q,[2,87]),e(q,[2,88]),e(q,[2,89]),e(q,[2,90]),e(q,[2,91]),e(q,[2,92]),e(q,[2,93]),e(q,[2,94]),e(q,[2,95]),e(q,[2,96]),e(q,[2,97]),e(q,[2,98]),e(q,[2,99]),e(q,[2,100]),e(q,[2,101]),e(q,[2,102]),e(q,[2,103]),e(q,[2,104]),{23:147,73:F},{23:149,60:148,73:F},{73:[2,68]},{73:[2,69]},{58:150,104:J},{58:152,104:J},{58:153,104:J},{58:154,104:J},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:D,53:O,54:k},{5:[1,160]},e(I,[2,20]),e(I,[2,21]),e(I,[2,23]),e(I,[2,24]),{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,161],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,162],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,163],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,164]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,47],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,50:[1,165],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,166]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,45],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,49:[1,167],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,168]},{17:[1,169]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,43],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,48:[1,170],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,171],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{16:[1,172]},e(I,[2,50]),{16:[1,173]},e(I,[2,55]),e(Ce,[2,76]),{76:[1,174]},{16:[1,175]},e(I,[2,52]),{16:[1,176]},e(I,[2,57]),e(I,[2,53]),{23:177,73:F},{23:178,73:F},{23:179,73:F},{58:180,104:J},{23:181,72:[1,182],73:F},{58:183,104:J},{58:184,104:J},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(I,[2,17]),e(ve,[2,11]),{13:186,51:D,53:O,54:k},e(ve,[2,13]),e(ve,[2,14]),e(I,[2,19]),e(I,[2,35]),e(I,[2,36]),e(I,[2,37]),e(I,[2,38]),{16:[1,187]},e(I,[2,39]),{16:[1,188]},e(I,[2,40]),e(I,[2,41]),{16:[1,189]},e(I,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:J},{58:196,104:J},{58:197,104:J},{5:[2,75]},{58:198,104:J},{23:199,73:F},{5:[2,58]},{5:[2,59]},{23:200,73:F},e(ve,[2,12]),e(be,a,{7:124,41:201}),e(xe,a,{7:126,43:202}),e(Se,a,{7:129,46:203}),e(I,[2,49]),e(I,[2,54]),e(Ce,[2,77]),e(I,[2,51]),e(I,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:J},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};we.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:t(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t(function(){return this.next()||this.lex()},`lex`),begin:t(function(e){this.conditionStack.push(e)},`begin`),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t(function(e){this.begin(e)},`pushState`),stateStackSize:t(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t(function(e,t,n,r){switch(n){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 20;case 7:return this.begin(`CONFIG`),75;case 8:return 76;case 9:return this.popState(),this.begin(`ALIAS`),77;case 10:return this.popState(),this.popState(),77;case 11:return t.yytext=t.yytext.trim(),73;case 12:return t.yytext=t.yytext.trim(),this.begin(`ALIAS`),73;case 13:return t.yytext=t.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return t.yytext=t.yytext.trim(),this.popState(),10;case 16:return this.begin(`LINE`),15;case 17:return this.begin(`ID`),51;case 18:return this.begin(`ID`),53;case 19:return 14;case 20:return this.begin(`ID`),54;case 21:return this.popState(),this.popState(),this.begin(`LINE`),52;case 22:return this.popState(),this.popState(),5;case 23:return this.begin(`LINE`),37;case 24:return this.begin(`LINE`),38;case 25:return this.begin(`LINE`),39;case 26:return this.begin(`LINE`),40;case 27:return this.begin(`LINE`),50;case 28:return this.begin(`LINE`),42;case 29:return this.begin(`LINE`),44;case 30:return this.begin(`LINE`),49;case 31:return this.begin(`LINE`),45;case 32:return this.begin(`LINE`),48;case 33:return this.begin(`LINE`),47;case 34:return this.popState(),16;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin(`ID`),22;case 45:return this.begin(`ID`),24;case 46:return 30;case 47:return 31;case 48:return this.begin(`acc_title`),32;case 49:return this.popState(),`acc_title_value`;case 50:return this.begin(`acc_descr`),34;case 51:return this.popState(),`acc_descr_value`;case 52:this.begin(`acc_descr_multiline`);break;case 53:this.popState();break;case 54:return`acc_descr_multiline_value`;case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 59:return 5;case 60:return t.yytext=t.yytext.trim(),73;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:return 104;case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 92:return 5;case 93:return 10}},`anonymous`),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}}})();function Te(){this.yy={}}return t(Te,`Parser`),Te.prototype=we,we.Parser=Te,new Te})();P.parser=P;var F=P,I={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},L={FILLED:0,OPEN:1},ee={LEFTOF:0,RIGHTOF:1,OVER:2},R={ACTOR:`actor`,BOUNDARY:`boundary`,COLLECTIONS:`collections`,CONTROL:`control`,DATABASE:`database`,ENTITY:`entity`,PARTICIPANT:`participant`,QUEUE:`queue`},te=class{constructor(){this.state=new N(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=p,this.setAccDescription=l,this.setDiagramTitle=d,this.getAccTitle=x,this.getAccDescription=h,this.getDiagramTitle=s,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(o().wrap),this.LINETYPE=I,this.ARROWTYPE=L,this.PLACEMENT=ee}static{t(this,`SequenceDB`)}addBox(e){this.state.records.boxes.push({name:e.text,wrap:e.wrap??this.autoWrap(),fill:e.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(e,t,n,r,i){let a=this.state.records.currentBox,o;if(i!==void 0){let e;e=i.includes(` +`)?i+` +`:`{ +`+i+` +}`,o=S(e,{schema:C})}r=o?.type??r,o?.alias&&(!n||n.text===t)&&(n={text:o.alias,wrap:n?.wrap,type:r});let s=this.state.records.actors.get(e);if(s){if(this.state.records.currentBox&&s.box&&this.state.records.currentBox!==s.box)throw Error(`A same participant should only be defined in one Box: ${s.name} can't be in '${s.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(a=s.box?s.box:this.state.records.currentBox,s.box=a,s&&t===s.name&&n==null)return}if(n?.text??(n={text:t,type:r}),(r==null||n.text==null)&&(n={text:t,type:r}),this.state.records.actors.set(e,{box:a,name:t,description:n.text,wrap:n.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:r??`participant`}),this.state.records.prevActor){let t=this.state.records.actors.get(this.state.records.prevActor);t&&(t.nextActor=e)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(e),this.state.records.prevActor=e}activationCount(e){let t,n=0;if(!e)return 0;for(t=0;t>-`,token:`->>-`,line:`1`,loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:[`'ACTIVE_PARTICIPANT'`]},t}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:t,message:n?.text??``,wrap:n?.wrap??this.autoWrap(),type:r,activate:i,centralConnection:a??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(e=>e.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(e){return this.state.records.actors.get(e)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(e){this.state.records.wrapEnabled=e}extractWrap(e){if(e===void 0)return{};e=e.trim();let t=/^:?wrap:/.exec(e)===null?/^:?nowrap:/.exec(e)===null?void 0:!1:!0;return{cleanedText:(t===void 0?e:e.replace(/^:?(?:no)?wrap:/,``)).trim(),wrap:t}}autoWrap(){return this.state.records.wrapEnabled===void 0?o().sequence?.wrap??!1:this.state.records.wrapEnabled}clear(){this.state.reset(),y()}parseMessage(e){let t=e.trim(),{wrap:n,cleanedText:i}=this.extractWrap(t),a={text:i,wrap:n};return r.debug(`parseMessage: ${JSON.stringify(a)}`),a}parseBoxData(e){let t=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e),n=t?.[1]?t[1].trim():`transparent`,r=t?.[2]?t[2].trim():void 0;if(window?.CSS)window.CSS.supports(`color`,n)||(n=`transparent`,r=e.trim());else{let t=new Option().style;t.color=n,t.color!==n&&(n=`transparent`,r=e.trim())}let{wrap:i,cleanedText:a}=this.extractWrap(r);return{text:a?c(a,o()):void 0,color:n,wrap:i}}addNote(e,t,n){let r={actor:e,placement:t,message:n.text,wrap:n.wrap??this.autoWrap()},i=[].concat(e,e);this.state.records.notes.push(r),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:i[0],to:i[1],message:n.text,wrap:n.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:t})}addLinks(e,t){let n=this.getActor(e);try{let e=c(t.text,o());e=e.replace(/=/g,`=`),e=e.replace(/&/g,`&`);let r=JSON.parse(e);this.insertLinks(n,r)}catch(e){r.error(`error while parsing actor link text`,e)}}addALink(e,t){let n=this.getActor(e);try{let e={},r=c(t.text,o()),i=r.indexOf(`@`);r=r.replace(/=/g,`=`),r=r.replace(/&/g,`&`);let a=r.slice(0,i-1).trim();e[a]=r.slice(i+1).trim(),this.insertLinks(n,e)}catch(e){r.error(`error while parsing actor link text`,e)}}insertLinks(e,t){if(e.links==null)e.links=t;else for(let n in t)e.links[n]=t[n]}addProperties(e,t){let n=this.getActor(e);try{let e=c(t.text,o()),r=JSON.parse(e);this.insertProperties(n,r)}catch(e){r.error(`error while parsing actor properties text`,e)}}insertProperties(e,t){if(e.properties==null)e.properties=t;else for(let n in t)e.properties[n]=t[n]}boxEnd(){this.state.records.currentBox=void 0}addDetails(e,t){let n=this.getActor(e),i=document.getElementById(t.text);try{let e=i.innerHTML,t=JSON.parse(e);t.properties&&this.insertProperties(n,t.properties),t.links&&this.insertLinks(n,t.links)}catch(e){r.error(`error while parsing actor details text`,e)}}getActorProperty(e,t){if(e?.properties!==void 0)return e.properties[t]}apply(e){if(Array.isArray(e))e.forEach(e=>{this.apply(e)});else switch(e.type){case`sequenceIndex`:this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:e.sequenceIndex,step:e.sequenceIndexStep,visible:e.sequenceVisible},wrap:!1,type:e.signalType});break;case`addParticipant`:this.addActor(e.actor,e.actor,e.description,e.draw,e.config);break;case`createParticipant`:if(this.state.records.actors.has(e.actor))throw Error(`It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior`);this.state.records.lastCreated=e.actor,this.addActor(e.actor,e.actor,e.description,e.draw,e.config),this.state.records.createdActors.set(e.actor,this.state.records.messages.length);break;case`destroyParticipant`:this.state.records.lastDestroyed=e.actor,this.state.records.destroyedActors.set(e.actor,this.state.records.messages.length);break;case`activeStart`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`centralConnection`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`centralConnectionReverse`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`activeEnd`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`addNote`:this.addNote(e.actor,e.placement,e.text);break;case`addLinks`:this.addLinks(e.actor,e.text);break;case`addALink`:this.addALink(e.actor,e.text);break;case`addProperties`:this.addProperties(e.actor,e.text);break;case`addDetails`:this.addDetails(e.actor,e.text);break;case`addMessage`:if(this.state.records.lastCreated){if(e.to!==this.state.records.lastCreated)throw Error(`The created participant `+this.state.records.lastCreated.name+` does not have an associated creating message after its declaration. Please check the sequence diagram.`);this.state.records.lastCreated=void 0}else if(this.state.records.lastDestroyed){if(e.to!==this.state.records.lastDestroyed&&e.from!==this.state.records.lastDestroyed)throw Error(`The destroyed participant `+this.state.records.lastDestroyed.name+` does not have an associated destroying message after its declaration. Please check the sequence diagram.`);this.state.records.lastDestroyed=void 0}this.addSignal(e.from,e.to,e.msg,e.signalType,e.activate,e.centralConnection);break;case`boxStart`:this.addBox(e.boxData);break;case`boxEnd`:this.boxEnd();break;case`loopStart`:this.addSignal(void 0,void 0,e.loopText,e.signalType);break;case`loopEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`rectStart`:this.addSignal(void 0,void 0,e.color,e.signalType);break;case`rectEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`optStart`:this.addSignal(void 0,void 0,e.optText,e.signalType);break;case`optEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`altStart`:this.addSignal(void 0,void 0,e.altText,e.signalType);break;case`else`:this.addSignal(void 0,void 0,e.altText,e.signalType);break;case`altEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`setAccTitle`:p(e.text);break;case`parStart`:this.addSignal(void 0,void 0,e.parText,e.signalType);break;case`and`:this.addSignal(void 0,void 0,e.parText,e.signalType);break;case`parEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`criticalStart`:this.addSignal(void 0,void 0,e.criticalText,e.signalType);break;case`option`:this.addSignal(void 0,void 0,e.optionText,e.signalType);break;case`criticalEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`breakStart`:this.addSignal(void 0,void 0,e.breakText,e.signalType);break;case`breakEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break}}getConfig(){return o().sequence}},ne=t(e=>{let t=e.dropShadow??`none`,{look:n}=o();return`.actor { + stroke: ${e.actorBorder}; + fill: ${e.actorBkg}; + stroke-width: ${e.strokeWidth??1}; + } + + rect.actor.outer-path[data-look="neo"] { + filter: ${t}; + } + + rect.note[data-look="neo"] { + stroke:${e.noteBorderColor}; + fill:${e.noteBkgColor}; + filter: ${t}; + } + + text.actor > tspan { + fill: ${e.actorTextColor}; + stroke: none; + } + + .actor-line { + stroke: ${e.actorLineColor}; + } + + .innerArc { + stroke-width: 1.5; + stroke-dasharray: none; + } + + .messageLine0 { + stroke-width: 1.5; + stroke-dasharray: none; + stroke: ${e.signalColor}; + } + + .messageLine1 { + stroke-width: 1.5; + stroke-dasharray: 2, 2; + stroke: ${e.signalColor}; + } + + [id$="-arrowhead"] path { + fill: ${e.signalColor}; + stroke: ${e.signalColor}; + } + + .sequenceNumber { + fill: ${e.sequenceNumberColor}; + } + + [id$="-sequencenumber"] { + fill: ${e.signalColor}; + } + + [id$="-crosshead"] path { + fill: ${e.signalColor}; + stroke: ${e.signalColor}; + } + + .messageText { + fill: ${e.signalTextColor}; + stroke: none; + } + + .labelBox { + stroke: ${e.labelBoxBorderColor}; + fill: ${e.labelBoxBkgColor}; + filter: ${n===`neo`?t:`none`}; + } + + .labelText, .labelText > tspan { + fill: ${e.labelTextColor}; + stroke: none; + } + + .loopText, .loopText > tspan { + fill: ${e.loopTextColor}; + stroke: none; + } + + .sectionTitle, .sectionTitle > tspan { + fill: ${e.loopTextColor}; + stroke: none; + } + + .loopLine { + stroke-width: 2px; + stroke-dasharray: 2, 2; + stroke: ${e.labelBoxBorderColor}; + fill: ${e.labelBoxBorderColor}; + } + + .note { + //stroke: #decc93; + stroke: ${e.noteBorderColor}; + fill: ${e.noteBkgColor}; + } + + .noteText, .noteText > tspan { + fill: ${e.noteTextColor}; + stroke: none; + ${e.noteFontWeight?`font-weight: ${e.noteFontWeight};`:``} + } + + .activation0 { + fill: ${e.activationBkgColor}; + stroke: ${e.activationBorderColor}; + } + + .activation1 { + fill: ${e.activationBkgColor}; + stroke: ${e.activationBorderColor}; + } + + .activation2 { + fill: ${e.activationBkgColor}; + stroke: ${e.activationBorderColor}; + } + + .actorPopupMenu { + position: absolute; + } + + .actorPopupMenuPanel { + position: absolute; + fill: ${e.actorBkg}; + box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); + filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4)); +} + .actor-man circle, line { + fill: ${e.actorBkg}; + stroke-width: 2px; + } + + g rect.rect { + filter: ${t}; + stroke: ${e.nodeBorder}; + } +`},`getStyles`),re=e(w(),1),z=36,B=`actor-top`,V=`actor-bottom`,ie=`actor-box`,H=`actor-man`,U=new Set([`redux-color`,`redux-dark-color`]),W=t(function(e,t){let n=D(e,t);return f().look===`neo`&&n.attr(`data-look`,`neo`),n},`drawRect`),ae=t(function(e,t,n,r,i){if(t.links===void 0||t.links===null||Object.keys(t.links).length===0)return{height:0,width:0};let a=t.links,o=t.actorCnt,s=t.rectData;var c=`none`;i&&(c=`block !important`);let l=e.append(`g`);l.attr(`id`,`actor`+o+`_popup`),l.attr(`class`,`actorPopupMenu`),l.attr(`display`,c);var u=``;s.class!==void 0&&(u=` `+s.class);let d=s.width>n?s.width:n,f=l.append(`rect`);if(f.attr(`class`,`actorPopupMenuPanel`+u),f.attr(`x`,s.x),f.attr(`y`,s.height),f.attr(`fill`,s.fill),f.attr(`stroke`,s.stroke),f.attr(`width`,d),f.attr(`height`,s.height),f.attr(`rx`,s.rx),f.attr(`ry`,s.ry),a!=null){var p=20;for(let e in a){var m=l.append(`a`),h=(0,re.sanitizeUrl)(a[e]);m.attr(`xlink:href`,h),m.attr(`target`,`_blank`),Me(r)(e,m,s.x+10,s.height+p,d,20,{class:`actor`},r),p+=30}}return f.attr(`height`,p),{height:s.height+p,width:d}},`drawPopup`),oe=t(function(e){return`var pu = document.getElementById('`+e+`'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }`},`popupMenuToggle`),se=t(async function(e,t,n=null){let r=e.append(`foreignObject`),i=await a(t.text,f()),o=r.append(`xhtml:div`).attr(`style`,`width: fit-content;`).attr(`xmlns`,`http://www.w3.org/1999/xhtml`).html(i).node().getBoundingClientRect();if(r.attr(`height`,Math.round(o.height)).attr(`width`,Math.round(o.width)),t.class===`noteText`){let n=e.node().firstChild;n.setAttribute(`height`,o.height+2*t.textMargin);let i=n.getBBox();r.attr(`x`,Math.round(i.x+i.width/2-o.width/2)).attr(`y`,Math.round(i.y+i.height/2-o.height/2))}else if(n){let{startx:e,stopx:i,starty:a}=n;if(e>i){let t=e;e=i,i=t}r.attr(`x`,Math.round(e+Math.abs(e-i)/2-o.width/2)),t.class===`loopText`?r.attr(`y`,Math.round(a)):r.attr(`y`,Math.round(a-o.height))}return[r]},`drawKatex`),G=t(function(e,n){let r=0,i=0,a=n.text.split(g.lineBreakRegex),[o,s]=T(n.fontSize),c=[],l=0,u=t(()=>n.y,`yfunc`);if(n.valign!==void 0&&n.textMargin!==void 0&&n.textMargin>0)switch(n.valign){case`top`:case`start`:u=t(()=>Math.round(n.y+n.textMargin),`yfunc`);break;case`middle`:case`center`:u=t(()=>Math.round(n.y+(r+i+n.textMargin)/2),`yfunc`);break;case`bottom`:case`end`:u=t(()=>Math.round(n.y+(r+i+2*n.textMargin)-n.textMargin),`yfunc`);break}if(n.anchor!==void 0&&n.textMargin!==void 0&&n.width!==void 0)switch(n.anchor){case`left`:case`start`:n.x=Math.round(n.x+n.textMargin),n.anchor=`start`,n.dominantBaseline=`middle`,n.alignmentBaseline=`middle`;break;case`middle`:case`center`:n.x=Math.round(n.x+n.width/2),n.anchor=`middle`,n.dominantBaseline=`middle`,n.alignmentBaseline=`middle`;break;case`right`:case`end`:n.x=Math.round(n.x+n.width-n.textMargin),n.anchor=`end`,n.dominantBaseline=`middle`,n.alignmentBaseline=`middle`;break}for(let[t,d]of a.entries()){n.textMargin!==void 0&&n.textMargin===0&&o!==void 0&&(l=t*o);let a=e.append(`text`);a.attr(`x`,n.x),a.attr(`y`,u()),n.anchor!==void 0&&a.attr(`text-anchor`,n.anchor).attr(`dominant-baseline`,n.dominantBaseline).attr(`alignment-baseline`,n.alignmentBaseline),n.fontFamily!==void 0&&a.style(`font-family`,n.fontFamily),s!==void 0&&a.style(`font-size`,s),n.fontWeight!==void 0&&a.style(`font-weight`,n.fontWeight),n.fill!==void 0&&a.attr(`fill`,n.fill),n.class!==void 0&&a.attr(`class`,n.class),n.dy===void 0?l!==0&&a.attr(`dy`,l):a.attr(`dy`,n.dy);let f=d||`​`;if(n.tspan){let e=a.append(`tspan`);e.attr(`x`,n.x),n.fill!==void 0&&e.attr(`fill`,n.fill),e.text(f)}else a.text(f);n.valign!==void 0&&n.textMargin!==void 0&&n.textMargin>0&&(i+=(a._groups||a)[0][0].getBBox().height,r=i),c.push(a)}return c},`drawText`),ce=t(function(e,n){function r(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}t(r,`genPoints`);let i=e.append(`polygon`);return i.attr(`points`,r(n.x,n.y,n.width,n.height,7)),i.attr(`class`,`labelBox`),n.y+=n.height/2,G(e,n),i},`drawLabel`),K=-1,le=t((e,t,n,r)=>{e.select&&n.forEach(n=>{let i=t.get(n),a=e.select(`#actor`+i.actorCnt);!r.mirrorActors&&i.stopy?a.attr(`y2`,i.stopy+i.height/2):r.mirrorActors&&a.attr(`y2`,i.stopy)})},`fixLifeLineHeights`),ue=t(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+t.height,{look:c,theme:l,themeVariables:d}=n,{bkgColorArray:f,borderColorArray:p}=d,m=e.append(`g`).lower();var h=m;r||(K++,Object.keys(t.links||{}).length&&!n.forceMenus&&h.attr(`onclick`,oe(`actor${K}_popup`)).attr(`cursor`,`pointer`),h.append(`line`).attr(`id`,`actor`+K).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),h=m.append(`g`),t.actorCnt=K,t.links!=null&&h.attr(`id`,`root-`+K),c===`neo`&&h.attr(`data-look`,`neo`));let g=M();var _=`actor`;t.properties?.class?_=t.properties.class:g.fill=`#eaeaea`,r?_+=` ${V}`:_+=` ${B}`,g.x=t.x,g.y=a,g.width=t.width,g.height=t.height,g.class=_,g.rx=3,g.ry=3,g.name=t.name,c===`neo`&&(g.rx=6,g.ry=6);let v=W(h,g),y=i.get(t.name)??0;if(U.has(l)&&(v.style(`stroke`,p[y%p.length]),v.style(`fill`,f[y%p.length])),c===`neo`&&v.attr(`filter`,`url(#drop-shadow)`),t.rectData=g,t.properties?.icon){let e=t.properties.icon.trim();e.charAt(0)===`@`?j(h,g.x+g.width-20,g.y+10,e.substr(1)):k(h,g.x+g.width-20,g.y+10,e)}r||(h.attr(`data-et`,`participant`),h.attr(`data-type`,`participant`),h.attr(`data-id`,t.name)),Y(n,u(t.description))(t.description,h,g.x,g.y,g.width,g.height,{class:`actor ${ie}`},n);let b=t.height;if(v.node){let e=v.node().getBBox();t.height=e.height,b=e.height}return b},`drawActorTypeParticipant`),de=t(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+t.height,{look:c,theme:l,themeVariables:d}=n,{bkgColorArray:f,borderColorArray:p}=d,m=e.append(`g`).lower();var h=m;r||(K++,Object.keys(t.links||{}).length&&!n.forceMenus&&h.attr(`onclick`,oe(`actor${K}_popup`)).attr(`cursor`,`pointer`),h.append(`line`).attr(`id`,`actor`+K).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),h=m.append(`g`),t.actorCnt=K,t.links!=null&&h.attr(`id`,`root-`+K),c===`neo`&&h.attr(`data-look`,`neo`));let g=M();var _=`actor`;t.properties?.class?_=t.properties.class:g.fill=`#eaeaea`,r?_+=` ${V}`:_+=` ${B}`,g.x=t.x,g.y=a,g.width=t.width,g.height=t.height,g.class=_,g.name=t.name;let v={...g,x:g.x+-6,y:g.y+6,class:`actor`},y=W(h,g),b=W(h,v);t.rectData=g,c===`neo`&&h.attr(`filter`,`url(#drop-shadow)`);let x=i.get(t.name)??0;if(U.has(l)&&(y.style(`stroke`,p[x%p.length]),y.style(`fill`,f[x%p.length]),b.style(`stroke`,p[x%p.length]),b.style(`fill`,f[x%p.length])),t.properties?.icon){let e=t.properties.icon.trim();e.charAt(0)===`@`?j(h,g.x+g.width-20,g.y+10,e.substr(1)):k(h,g.x+g.width-20,g.y+10,e)}Y(n,u(t.description))(t.description,h,g.x-6,g.y+6,g.width,g.height,{class:`actor ${ie}`},n);let S=t.height;if(y.node){let e=y.node().getBBox();t.height=e.height,S=e.height}return r||(h.attr(`data-et`,`participant`),h.attr(`data-type`,`collections`),h.attr(`data-id`,t.name)),S},`drawActorTypeCollections`),fe=t(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+t.height,{look:c,theme:l,themeVariables:d}=n,{bkgColorArray:f,borderColorArray:p}=d,m=e.append(`g`).lower(),h=m;r||(K++,Object.keys(t.links||{}).length&&!n.forceMenus&&h.attr(`onclick`,oe(`actor${K}_popup`)).attr(`cursor`,`pointer`),h.append(`line`).attr(`id`,`actor`+K).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),h=m.append(`g`),t.actorCnt=K,t.links!=null&&h.attr(`id`,`root-`+K),c===`neo`&&h.attr(`data-look`,`neo`));let g=M(),_=`actor`;t.properties?.class?_=t.properties.class:g.fill=`#eaeaea`,r?_+=` ${V}`:_+=` ${B}`,h.attr(`class`,_),g.x=t.x,g.y=a,g.width=t.width,g.height=t.height,g.name=t.name;let v=g.height/2,y=v/(2.5+g.height/50),b=h.append(`g`),x=h.append(`g`),S=`M ${g.x},${g.y+v} + a ${y},${v} 0 0 0 0,${g.height} + h ${g.width-2*y} + a ${y},${v} 0 0 0 0,-${g.height} + Z + `;b.append(`path`).attr(`d`,S),x.append(`path`).attr(`d`,`M ${g.x},${g.y+v} + a ${y},${v} 0 0 0 0,${g.height}`),b.attr(`transform`,`translate(${y}, ${-(g.height/2)})`),x.attr(`transform`,`translate(${g.width-y}, ${-g.height/2})`),t.rectData=g,c===`neo`&&b.attr(`filter`,`url(#drop-shadow)`);let C=i.get(t.name)??0;if(U.has(l)&&(b.style(`stroke`,p[C%p.length]),b.style(`fill`,f[C%p.length]),x.style(`stroke`,p[C%p.length]),x.style(`fill`,f[C%p.length])),t.properties?.icon){let e=t.properties.icon.trim(),n=g.x+g.width-20,r=g.y+10;e.charAt(0)===`@`?j(h,n,r,e.substr(1)):k(h,n,r,e)}Y(n,u(t.description))(t.description,h,g.x,g.y,g.width,g.height,{class:`actor ${ie}`},n);let w=t.height,T=b.select(`path:last-child`);if(T.node()){let e=T.node().getBBox();t.height=e.height,w=e.height}return r||(h.attr(`data-et`,`participant`),h.attr(`data-type`,`queue`),h.attr(`data-id`,t.name)),w},`drawActorTypeQueue`),pe=t(function(e,t,n,r,i,a){let o=r?t.stopy:t.starty,s=t.x+t.width/2,c=o+75,{look:l,theme:d,themeVariables:f}=n,{bkgColorArray:p,borderColorArray:m,actorBorder:h,actorBkg:g}=f,_=e.append(`g`).lower();r||(K++,_.append(`line`).attr(`id`,`actor`+K).attr(`x1`,s).attr(`y1`,c).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=K);let v=e.append(`g`),y=H;r?y+=` ${V}`:y+=` ${B}`,v.attr(`class`,y),v.attr(`name`,t.name);let b=M();b.x=t.x,b.y=o,b.fill=`#eaeaea`,b.width=t.width,b.height=t.height,b.class=`actor`;let x=t.x+t.width/2,S=o+32;v.append(`defs`).append(`marker`).attr(`id`,i+`-filled-head-control`).attr(`refX`,11).attr(`refY`,5.8).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`172.5`).attr(`stroke-width`,1.2).append(`path`).attr(`d`,`M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z`),v.append(`circle`).attr(`cx`,x).attr(`cy`,S).attr(`r`,22).attr(`filter`,`${l===`neo`?`url(#drop-shadow)`:``}`),v.append(`line`).attr(`marker-end`,`url(#`+i+`-filled-head-control)`).attr(`transform`,`translate(${x}, ${S-22})`);let C=a.get(t.name)??0;return U.has(d)?(v.style(`stroke`,m[C%m.length]),v.style(`fill`,p[C%m.length])):(v.style(`stroke`,h),v.style(`fill`,g)),t.height=v.node().getBBox().height+2*(n?.sequence?.labelBoxHeight??0),Y(n,u(t.description))(t.description,v,b.x,b.y+22+(r?5:12),b.width,b.height,{class:`actor ${H}`},n),r||(v.attr(`data-et`,`participant`),v.attr(`data-type`,`control`),v.attr(`data-id`,t.name)),t.height},`drawActorTypeControl`),me=t(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+75,{look:c,theme:l,themeVariables:d}=n,{bkgColorArray:f,borderColorArray:p}=d,m=e.append(`g`).lower(),h=e.append(`g`),g=`actor`;r?g+=` ${V}`:g+=` ${B}`,h.attr(`class`,g),h.attr(`name`,t.name);let _=M();_.x=t.x,_.y=a,_.fill=`#eaeaea`,_.width=t.width,_.height=t.height,_.class=`actor`;let v=t.x+t.width/2,y=a+(r?10:25);h.append(`circle`).attr(`cx`,v).attr(`cy`,y).attr(`r`,22).attr(`width`,t.width).attr(`height`,t.height),h.append(`line`).attr(`x1`,v-22).attr(`x2`,v+22).attr(`y1`,y+22).attr(`y2`,y+22).attr(`stroke-width`,2),c===`neo`&&h.attr(`filter`,`url(#drop-shadow)`);let b=i.get(t.name)??0;return U.has(l)&&(h.style(`stroke`,p[b%p.length]),h.style(`fill`,f[b%p.length])),t.height=h.node().getBBox().height+(n?.sequence?.labelBoxHeight??0),r||(K++,m.append(`line`).attr(`id`,`actor`+K).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=K),Y(n,u(t.description))(t.description,h,_.x,_.y+(r?15:30),_.width,_.height,{class:`actor ${H}`},n),r?h.attr(`transform`,`translate(0, 22)`):(h.attr(`transform`,`translate(0, ${22/2-5})`),h.attr(`data-et`,`participant`),h.attr(`data-type`,`entity`),h.attr(`data-id`,t.name)),t.height},`drawActorTypeEntity`),he=t(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+t.height+2*n.boxTextMargin,{theme:c,themeVariables:l,look:d}=n,{bkgColorArray:f,borderColorArray:p,actorBorder:m}=l,h=e.append(`g`).lower(),g=h;r||(K++,Object.keys(t.links||{}).length&&!n.forceMenus&&g.attr(`onclick`,oe(`actor${K}_popup`)).attr(`cursor`,`pointer`),g.append(`line`).attr(`id`,`actor`+K).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),g=h.append(`g`),t.actorCnt=K,t.links!=null&&g.attr(`id`,`root-`+K),d===`neo`&&g.attr(`data-look`,`neo`));let _=M(),v=`actor`;t.properties?.class?v=t.properties.class:_.fill=`#eaeaea`,r?v+=` ${V}`:v+=` ${B}`,_.x=t.x,_.y=a,_.width=t.width,_.height=t.height,_.class=v,_.name=t.name,_.x=t.x,_.y=a;let y=_.width/3,b=_.width/3,x=y/2,S=x/(2.5+y/50),C=g.append(`g`);C.attr(`class`,v);let w=` + M ${_.x},${_.y+S} + a ${x},${S} 0 0 0 ${y},0 + a ${x},${S} 0 0 0 -${y},0 + l 0,${b-2*S} + a ${x},${S} 0 0 0 ${y},0 + l 0,-${b-2*S} +`;C.append(`path`).attr(`d`,w),d===`neo`&&C.attr(`filter`,`url(#drop-shadow)`);let T=i.get(t.name)??0;U.has(c)?(C.style(`stroke`,p[T%p.length]),C.style(`fill`,f[T%p.length])):C.style(`stroke`,m),C.attr(`transform`,`translate(${y}, ${S})`),t.rectData=_,Y(n,u(t.description))(t.description,g,_.x,_.y+35,_.width,_.height,{class:`actor ${ie}`},n);let E=C.select(`path:last-child`);return E.node()&&(t.height=E.node().getBBox().height+(n.sequence.labelBoxHeight??0)),r||(g.attr(`data-et`,`participant`),g.attr(`data-type`,`database`),g.attr(`data-id`,t.name)),t.height},`drawActorTypeDatabase`),ge=t(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+80,c=e.append(`g`).lower(),{look:l,theme:d,themeVariables:f}=n,{bkgColorArray:p,borderColorArray:m,actorBorder:h}=f;r||(K++,c.append(`line`).attr(`id`,`actor`+K).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=K);let g=e.append(`g`),_=H;r?_+=` ${V}`:_+=` ${B}`,g.attr(`class`,_),g.attr(`name`,t.name);let v=M();v.x=t.x,v.y=a,v.fill=`#eaeaea`,v.width=t.width,v.height=t.height,v.class=`actor`,g.append(`line`).attr(`id`,`actor-man-torso`+K).attr(`x1`,t.x+t.width/2-22*2.5).attr(`y1`,a+12).attr(`x2`,t.x+t.width/2-15).attr(`y2`,a+12),g.append(`line`).attr(`id`,`actor-man-arms`+K).attr(`x1`,t.x+t.width/2-22*2.5).attr(`y1`,a+2).attr(`x2`,t.x+t.width/2-22*2.5).attr(`y2`,a+22),g.append(`circle`).attr(`cx`,t.x+t.width/2).attr(`cy`,a+12).attr(`r`,22),l===`neo`&&g.attr(`filter`,`url(#drop-shadow)`);let y=i.get(t.name)??0;return U.has(d)?(g.style(`stroke`,m[y%m.length]),g.style(`fill`,p[y%m.length])):g.style(`stroke`,h),t.height=g.node().getBBox().height+(n.sequence.labelBoxHeight??0),Y(n,u(t.description))(t.description,g,v.x,v.y+15,v.width,v.height,{class:`actor ${H}`},n),g.attr(`transform`,`translate(0,21)`),r||(g.attr(`data-et`,`participant`),g.attr(`data-type`,`boundary`),g.attr(`data-id`,t.name)),t.height},`drawActorTypeBoundary`),_e=t(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+80,{look:c,theme:l,themeVariables:d}=n,{bkgColorArray:f,borderColorArray:p,actorBorder:m}=d,h=e.append(`g`).lower();r||(K++,h.append(`line`).attr(`id`,`actor`+K).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=K);let g=e.append(`g`),_=H;r?_+=` ${V}`:_+=` ${B}`,g.attr(`class`,_),g.attr(`name`,t.name),r||g.attr(`data-et`,`participant`).attr(`data-type`,`actor`).attr(`data-id`,t.name);let v=c===`neo`?.5:1,y=c===`neo`?a+(1-v)*30:a;g.append(`line`).attr(`id`,`actor-man-torso`+K).attr(`x1`,o).attr(`y1`,y+25*v).attr(`x2`,o).attr(`y2`,y+45*v),g.append(`line`).attr(`id`,`actor-man-arms`+K).attr(`x1`,o-z/2*v).attr(`y1`,y+33*v).attr(`x2`,o+z/2*v).attr(`y2`,y+33*v),g.append(`line`).attr(`x1`,o-z/2*v).attr(`y1`,y+60*v).attr(`x2`,o).attr(`y2`,y+45*v),g.append(`line`).attr(`x1`,o).attr(`y1`,y+45*v).attr(`x2`,o+(z/2-2)*v).attr(`y2`,y+60*v);let b=g.append(`circle`);b.attr(`cx`,t.x+t.width/2),b.attr(`cy`,y+10*v),b.attr(`r`,15*v),b.attr(`width`,t.width*v),b.attr(`height`,t.height*v),t.height=g.node().getBBox().height;let x=M();x.x=t.x,x.y=y,x.fill=`#eaeaea`,x.width=t.width,x.height=t.height/v,x.class=`actor`,x.rx=3,x.ry=3;let S=i.get(t.name)??0;return U.has(l)?(g.style(`stroke`,p[S%p.length]),g.style(`fill`,f[S%p.length])):g.style(`stroke`,m),Y(n,u(t.description))(t.description,g,x.x,y+35*v-(c===`neo`?10:0),x.width,x.height,{class:`actor ${H}`},n),t.height},`drawActorTypeActor`),ve=t(async function(e,t,n,r,i,a,o){let s=o??new Map([...a.db.getActors().values()].map((e,t)=>[e.name,t]));switch(t.type){case`actor`:return await _e(e,t,n,r,s);case`participant`:return await ue(e,t,n,r,s);case`boundary`:return await ge(e,t,n,r,s);case`control`:return await pe(e,t,n,r,i,s);case`entity`:return await me(e,t,n,r,s);case`database`:return await he(e,t,n,r,s);case`collections`:return await de(e,t,n,r,s);case`queue`:return await fe(e,t,n,r,s)}},`drawActor`),ye=t(function(e,t,n){let r=e.append(`g`);Ce(r,t),t.name&&Y(n)(t.name,r,t.x,t.y+n.boxTextMargin+(t.textMaxHeight||0)/2,t.width,0,{class:`text`},n),r.lower()},`drawBox`),be=t(function(e){return e.append(`g`)},`anchorElement`),xe=t(function(e,t,n,r,i,a,o){let{theme:s,themeVariables:c}=r,{bkgColorArray:l,borderColorArray:u,mainBkg:d}=c,f=M(),p=t.anchored,m=t.actor;f.x=t.startx,f.y=t.starty,f.class=`activation`+i%3,f.width=t.stopx-t.startx,f.height=n-t.starty;let h=W(p,f),g=(o??new Map([...a.db.getActors().values()].map((e,t)=>[e.name,t]))).get(m)??0;U.has(s)&&(h.style(`stroke`,u[g%u.length]),h.style(`fill`,l[g%u.length]??d))},`drawActivation`),Se=t(async function(e,n,r,i,a){let{boxMargin:o,boxTextMargin:s,labelBoxHeight:c,labelBoxWidth:l,messageFontFamily:d,messageFontSize:f,messageFontWeight:p}=i,m=e.append(`g`).attr(`data-et`,`control-structure`).attr(`data-id`,`i`+a.id),h=t(function(e,t,n,r){return m.append(`line`).attr(`x1`,e).attr(`y1`,t).attr(`x2`,n).attr(`y2`,r).attr(`class`,`loopLine`)},`drawLoopLine`);h(n.startx,n.starty,n.stopx,n.starty),h(n.stopx,n.starty,n.stopx,n.stopy),h(n.startx,n.stopy,n.stopx,n.stopy),h(n.startx,n.starty,n.startx,n.stopy),n.sections!==void 0&&n.sections.forEach(function(e){h(n.startx,e.y,n.stopx,e.y).style(`stroke-dasharray`,`3, 3`)});let g=O();g.text=r,g.x=n.startx,g.y=n.starty,g.fontFamily=d,g.fontSize=f,g.fontWeight=p,g.anchor=`middle`,g.valign=`middle`,g.tspan=!1,g.width=Math.max(l??0,50),g.height=c+(i.look===`neo`?15:0)||20,g.textMargin=s,g.class=`labelText`,ce(m,g),g=Ae(),g.text=n.title,g.x=n.startx+l/2+(n.stopx-n.startx)/2,g.y=n.starty+o+s,g.anchor=`middle`,g.valign=`middle`,g.textMargin=s,g.class=`loopText`,g.fontFamily=d,g.fontSize=f,g.fontWeight=p,g.wrap=!0;let _=u(g.text)?await se(m,g,n):G(m,g);if(n.sectionTitles!==void 0){for(let[e,t]of Object.entries(n.sectionTitles))if(t.message){g.text=t.message,g.x=n.startx+(n.stopx-n.startx)/2,g.y=n.sections[e].y+o+s,g.class=`sectionTitle`,g.anchor=`middle`,g.valign=`middle`,g.tspan=!1,g.fontFamily=d,g.fontSize=f,g.fontWeight=p,g.wrap=n.wrap,u(g.text)?(n.starty=n.sections[e].y,await se(m,g,n)):G(m,g);let r=Math.round(_.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));n.sections[e].height+=r-(o+s)}}return n.height=Math.round(n.stopy-n.starty),m},`drawLoop`),Ce=t(function(e,t){A(e,t)},`drawBackgroundRect`),q=t(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-database`).attr(`fill-rule`,`evenodd`).attr(`clip-rule`,`evenodd`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z`)},`insertDatabaseIcon`),J=t(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-computer`).attr(`width`,`24`).attr(`height`,`24`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z`)},`insertComputerIcon`),we=t(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-clock`).attr(`width`,`24`).attr(`height`,`24`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z`)},`insertClockIcon`),Te=t(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-arrowhead`).attr(`refX`,7.9).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M -1 0 L 10 5 L 0 10 z`)},`insertArrowHead`),Ee=t(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-filled-head`).attr(`refX`,15.5).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`)},`insertArrowFilledHead`),De=t(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-sequencenumber`).attr(`refX`,15).attr(`refY`,15).attr(`markerWidth`,60).attr(`markerHeight`,40).attr(`orient`,`auto`).append(`circle`).attr(`cx`,15).attr(`cy`,15).attr(`r`,6)},`insertSequenceNumber`),Oe=t(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-crosshead`).attr(`markerWidth`,15).attr(`markerHeight`,8).attr(`orient`,`auto`).attr(`refX`,4).attr(`refY`,4.5).append(`path`).attr(`fill`,`none`).attr(`stroke`,`#000000`).style(`stroke-dasharray`,`0, 0`).attr(`stroke-width`,`1pt`).attr(`d`,`M 1,2 L 6,7 M 6,2 L 1,7`)},`insertArrowCrossHead`),ke=t(function(e,t){let{theme:n}=t;e.append(`defs`).append(`filter`).attr(`id`,`drop-shadow`).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${n===`redux`||n===`redux-color`?`#000000`:`#FFFFFF`}`)},`insertDropShadow`),Ae=t(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:`#666`,width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},`getTextObj`),je=t(function(){return{x:0,y:0,fill:`#EDF2AE`,stroke:`#666`,width:100,anchor:`start`,height:100,rx:0,ry:0}},`getNoteRect`),Y=(function(){function e(e,t,n,r,i,a,s){o(t.append(`text`).attr(`x`,n+i/2).attr(`y`,r+a/2+5).style(`text-anchor`,`middle`).text(e),s)}t(e,`byText`);function n(e,t,n,r,i,a,s,c){let{actorFontSize:l,actorFontFamily:u,actorFontWeight:d}=c,[f,p]=T(l),m=e.split(g.lineBreakRegex);for(let e=0;ee.height||0))+(this.loops.length===0?0:this.loops.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.messages.length===0?0:this.messages.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.notes.length===0?0:this.notes.map(e=>e.height||0).reduce((e,t)=>e+t))},`getHeight`),clear:t(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},`clear`),addBox:t(function(e){this.boxes.push(e)},`addBox`),addActor:t(function(e){this.actors.push(e)},`addActor`),addLoop:t(function(e){this.loops.push(e)},`addLoop`),addMessage:t(function(e){this.messages.push(e)},`addMessage`),addNote:t(function(e){this.notes.push(e)},`addNote`),lastActor:t(function(){return this.actors[this.actors.length-1]},`lastActor`),lastLoop:t(function(){return this.loops[this.loops.length-1]},`lastLoop`),lastMessage:t(function(){return this.messages[this.messages.length-1]},`lastMessage`),lastNote:t(function(){return this.notes[this.notes.length-1]},`lastNote`),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:t(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,qe(o())},`init`),updateVal:t(function(e,t,n,r){e[t]===void 0?e[t]=n:e[t]=r(n,e[t])},`updateVal`),updateBounds:t(function(e,n,r,i){let a=this,o=0;function s(s){return t(function(t){o++;let c=a.sequenceItems.length-o+1;a.updateVal(t,`starty`,n-c*Z.boxMargin,Math.min),a.updateVal(t,`stopy`,i+c*Z.boxMargin,Math.max),a.updateVal(Q.data,`startx`,e-c*Z.boxMargin,Math.min),a.updateVal(Q.data,`stopx`,r+c*Z.boxMargin,Math.max),s!==`activation`&&(a.updateVal(t,`startx`,e-c*Z.boxMargin,Math.min),a.updateVal(t,`stopx`,r+c*Z.boxMargin,Math.max),a.updateVal(Q.data,`starty`,n-c*Z.boxMargin,Math.min),a.updateVal(Q.data,`stopy`,i+c*Z.boxMargin,Math.max))},`updateItemBounds`)}t(s,`updateFn`),this.sequenceItems.forEach(s()),this.activations.forEach(s(`activation`))},`updateBounds`),insert:t(function(e,t,n,r){let i=g.getMin(e,n),a=g.getMax(e,n),o=g.getMin(t,r),s=g.getMax(t,r);this.updateVal(Q.data,`startx`,i,Math.min),this.updateVal(Q.data,`starty`,o,Math.min),this.updateVal(Q.data,`stopx`,a,Math.max),this.updateVal(Q.data,`stopy`,s,Math.max),this.updateBounds(i,o,a,s)},`insert`),newActivation:t(function(e,t,n){let r=n.get(e.from),i=Je(e.from).length||0,a=r.x+r.width/2+(i-1)*Z.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+Z.activationWidth,stopy:void 0,actor:e.from,anchored:X.anchorElement(t)})},`newActivation`),endActivation:t(function(e){let t=this.activations.map(function(e){return e.actor}).lastIndexOf(e.from);return this.activations.splice(t,1)[0]},`endActivation`),createLoop:t(function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},`createLoop`),newLoop:t(function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},`newLoop`),endLoop:t(function(){return this.sequenceItems.pop()},`endLoop`),isLoopOverlap:t(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},`isLoopOverlap`),addSectionToLoop:t(function(e){let t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:Q.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},`addSectionToLoop`),saveVerticalPos:t(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},`saveVerticalPos`),resetVerticalPos:t(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},`resetVerticalPos`),bumpVerticalPos:t(function(e){this.verticalPos+=e,this.data.stopy=g.getMax(this.data.stopy,this.verticalPos)},`bumpVerticalPos`),getVerticalPos:t(function(){return this.verticalPos},`getVerticalPos`),getBounds:t(function(){return{bounds:this.data,models:this.models}},`getBounds`)},Le=t(async function(e,t,n){Q.bumpVerticalPos(Z.boxMargin),t.height=Z.boxMargin,t.starty=Q.getVerticalPos();let r=M();r.x=t.startx,r.y=t.starty,r.width=t.width||Z.width,r.class=`note`;let i=e.append(`g`);i.attr(`data-et`,`note`),i.attr(`data-id`,`i`+n);let a=X.drawRect(i,r),o=O();o.x=t.startx,o.y=t.starty,o.width=r.width,o.dy=`1em`,o.text=t.message,o.class=`noteText`,o.fontFamily=Z.noteFontFamily,o.fontSize=Z.noteFontSize,o.fontWeight=Z.noteFontWeight,o.anchor=Z.noteAlign,o.textMargin=Z.noteMargin,o.valign=`center`;let s=u(o.text)?await se(i,o):G(i,o),c=Math.round(s.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));a.attr(`height`,c+2*Z.noteMargin),t.height+=c+2*Z.noteMargin,Q.bumpVerticalPos(c+2*Z.noteMargin),t.stopy=t.starty+c+2*Z.noteMargin,t.stopx=t.startx+r.width,Q.insert(t.startx,t.starty,t.stopx,t.stopy),Q.models.addNote(t)},`drawNote`),Re=t(function(e,n,r,i,a,o,s){let c=i.db.getActors(),l=c.get(n.from),u=c.get(n.to),d=r.sequenceVisible,f=l.x+l.width/2,p=u.x+u.width/2,m=f<=p,h=ot(n,i),g=e.append(`g`),_=t((e,t)=>{let n=e?16.5:-16.5;return t?-n:n},`getCircleOffset`),v=t(e=>{g.append(`circle`).attr(`cx`,e).attr(`cy`,s).attr(`r`,5).attr(`width`,10).attr(`height`,10)},`drawCircle`),{CENTRAL_CONNECTION:y,CENTRAL_CONNECTION_REVERSE:b,CENTRAL_CONNECTION_DUAL:x}=i.db.LINETYPE;if(d)switch(n.centralConnection){case y:h&&(p+=_(m,!0));break;case b:h||(f+=_(m,!1));break;case x:h?p+=_(m,!0):f+=_(m,!1);break}switch(n.centralConnection){case y:v(p);break;case b:v(f);break;case x:v(f),v(p);break}},`drawCentralConnection`),ze=t(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),`messageFont`),Be=t(e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),`noteFont`),Ve=t(e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}),`actorFont`);async function He(e,t){Q.bumpVerticalPos(10);let{startx:n,stopx:r,message:i}=t,a=g.splitBreaks(i).length,s=u(i),c=s?await _(i,o()):E.calculateTextDimensions(i,ze(Z));if(!s){let e=c.height/a;t.height+=e,Q.bumpVerticalPos(e)}let l,d=c.height-10,f=c.width;if(n===r){l=Q.getVerticalPos()+d,Z.rightAngles||(d+=Z.boxMargin,l=Q.getVerticalPos()+d),d+=30;let e=g.getMax(f/2,Z.width/2);Q.insert(n-e,Q.getVerticalPos()-10+d,r+e,Q.getVerticalPos()+30+d)}else d+=Z.boxMargin,l=Q.getVerticalPos()+d,Q.insert(n,l-10,r,l);return Q.bumpVerticalPos(d),t.height+=d,t.stopy=t.starty+t.height,Q.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),l}t(He,`boundMessage`);var Ue=t(async function(e,t,n,r,a,o){let{startx:s,stopx:c,starty:l,message:d,type:f,sequenceIndex:p,sequenceVisible:m}=t,h=E.calculateTextDimensions(d,ze(Z)),_=O();_.x=Math.min(s,c),_.y=l+10,_.width=Math.abs(c-s),_.class=`messageText`,_.dy=`1em`,_.text=d,_.fontFamily=Z.messageFontFamily,_.fontSize=Z.messageFontSize,_.fontWeight=Z.messageFontWeight,_.anchor=Z.messageAlign,_.valign=`center`,_.textMargin=Z.wrapPadding,_.tspan=!1,u(_.text)?await se(e,_,{startx:s,stopx:c,starty:n}):G(e,_);let v=h.width,y;if(s===c){let i=m||Z.showSequenceNumbers,o=ot(a,r),l=st(a,r),u=s+(i&&(o||l)?10:0);y=Z.rightAngles?e.append(`path`).attr(`d`,`M ${u},${n} H ${s+g.getMax(Z.width/2,v/2)} V ${n+25} H ${s}`):e.append(`path`).attr(`d`,`M `+u+`,`+n+` C `+(u+60)+`,`+(n-10)+` `+(s+60)+`,`+(n+30)+` `+s+`,`+(n+20)),it(a,r)&&Re(e,a,t,r,s,c,n)}else y=e.append(`line`),y.attr(`x1`,s),y.attr(`y1`,n),y.attr(`x2`,c),y.attr(`y2`,n),it(a,r)&&Re(e,a,t,r,s,c,n);f===r.db.LINETYPE.DOTTED||f===r.db.LINETYPE.DOTTED_CROSS||f===r.db.LINETYPE.DOTTED_POINT||f===r.db.LINETYPE.DOTTED_OPEN||f===r.db.LINETYPE.BIDIRECTIONAL_DOTTED||f===r.db.LINETYPE.SOLID_TOP_DOTTED||f===r.db.LINETYPE.SOLID_BOTTOM_DOTTED||f===r.db.LINETYPE.STICK_TOP_DOTTED||f===r.db.LINETYPE.STICK_BOTTOM_DOTTED||f===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||f===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||f===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||f===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED?(y.style(`stroke-dasharray`,`3, 3`),y.attr(`class`,`messageLine1`)):y.attr(`class`,`messageLine0`),y.attr(`data-et`,`message`),y.attr(`data-id`,`i`+t.id),y.attr(`data-from`,t.from),y.attr(`data-to`,t.to);let b=``;if(Z.arrowMarkerAbsolute&&(b=i(!0)),y.attr(`stroke-width`,2),y.attr(`stroke`,`none`),y.style(`fill`,`none`),(f===r.db.LINETYPE.SOLID_TOP||f===r.db.LINETYPE.SOLID_TOP_DOTTED)&&y.attr(`marker-end`,`url(`+b+`#`+o+`-solidTopArrowHead)`),(f===r.db.LINETYPE.SOLID_BOTTOM||f===r.db.LINETYPE.SOLID_BOTTOM_DOTTED)&&y.attr(`marker-end`,`url(`+b+`#`+o+`-solidBottomArrowHead)`),(f===r.db.LINETYPE.STICK_TOP||f===r.db.LINETYPE.STICK_TOP_DOTTED)&&y.attr(`marker-end`,`url(`+b+`#`+o+`-stickTopArrowHead)`),(f===r.db.LINETYPE.STICK_BOTTOM||f===r.db.LINETYPE.STICK_BOTTOM_DOTTED)&&y.attr(`marker-end`,`url(`+b+`#`+o+`-stickBottomArrowHead)`),(f===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||f===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)&&y.attr(`marker-start`,`url(`+b+`#`+o+`-solidBottomArrowHead)`),(f===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||f===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)&&y.attr(`marker-start`,`url(`+b+`#`+o+`-solidTopArrowHead)`),(f===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE||f===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)&&y.attr(`marker-start`,`url(`+b+`#`+o+`-stickBottomArrowHead)`),(f===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||f===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)&&y.attr(`marker-start`,`url(`+b+`#`+o+`-stickTopArrowHead)`),(f===r.db.LINETYPE.SOLID||f===r.db.LINETYPE.DOTTED)&&y.attr(`marker-end`,`url(`+b+`#`+o+`-arrowhead)`),(f===r.db.LINETYPE.BIDIRECTIONAL_SOLID||f===r.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(y.attr(`marker-start`,`url(`+b+`#`+o+`-arrowhead)`),y.attr(`marker-end`,`url(`+b+`#`+o+`-arrowhead)`)),(f===r.db.LINETYPE.SOLID_POINT||f===r.db.LINETYPE.DOTTED_POINT)&&y.attr(`marker-end`,`url(`+b+`#`+o+`-filled-head)`),(f===r.db.LINETYPE.SOLID_CROSS||f===r.db.LINETYPE.DOTTED_CROSS)&&y.attr(`marker-end`,`url(`+b+`#`+o+`-crosshead)`),m||Z.showSequenceNumbers){let i=f===r.db.LINETYPE.BIDIRECTIONAL_SOLID||f===r.db.LINETYPE.BIDIRECTIONAL_DOTTED,l=f===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||f===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||f===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||f===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||f===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE||f===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||f===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||f===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,u=it(a,r),d=s,m=c;i?(ss?m=c-12:(m=c-6,d+=a?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_DUAL||a?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),m+=u?15:0,y.attr(`x2`,m),y.attr(`x1`,d)):y.attr(`x1`,s+6);let h=0,g=s===c,_=s<=c;h=g?t.fromBounds+1:l?_?t.toBounds-1:t.fromBounds+1:_?t.fromBounds+1:t.toBounds-1;let v=`12px`,x=p.toString().length;x>5?v=`7px`:x>3&&(v=`9px`),e.append(`line`).attr(`x1`,h).attr(`y1`,n).attr(`x2`,h).attr(`y2`,n).attr(`stroke-width`,0).attr(`marker-start`,`url(`+b+`#`+o+`-sequencenumber)`),e.append(`text`).attr(`x`,h).attr(`y`,n+4).attr(`font-family`,`sans-serif`).attr(`font-size`,v).attr(`text-anchor`,`middle`).attr(`class`,`sequenceNumber`).text(p)}},`drawMessage`),We=t(function(e,t,n,r,i,a,o){let s=0,c=0,l,u=0;for(let e of r){let r=t.get(e),a=r.box;l&&l!=a&&(o||Q.models.addBox(l),c+=Z.boxMargin+l.margin),a&&a!=l&&(o||(a.x=s+c,a.y=i),c+=a.margin),r.width=g.getMax(r.width||Z.width,Z.width),r.height=g.getMax(r.height||Z.height,Z.height),r.margin=r.margin||Z.actorMargin,u=g.getMax(u,r.height),n.get(r.name)&&(c+=r.width/2),r.x=s+c,r.starty=Q.getVerticalPos(),Q.insert(r.x,i,r.x+r.width,r.height),s+=r.width+c,r.box&&(r.box.width=s+a.margin-r.box.x),c=r.margin,l=r.box,Q.models.addActor(r)}l&&!o&&Q.models.addBox(l),Q.bumpVerticalPos(u)},`addActorRenderingData`),Ge=t(async function(e,t,n,r,i,a,o){if(r){let r=0;Q.bumpVerticalPos(Z.boxMargin*2);for(let s of n){let n=t.get(s);n.stopy||=Q.getVerticalPos();let c=await X.drawActor(e,n,Z,!0,i,a,o);r=g.getMax(r,c)}Q.bumpVerticalPos(r+Z.boxMargin)}else for(let r of n){let n=t.get(r);await X.drawActor(e,n,Z,!1,i,a,o)}},`drawActors`),Ke=t(function(e,t,n,r){let i=0,a=0;for(let o of n){let n=t.get(o),s=$e(n),c=X.drawPopup(e,n,s,Z,Z.forceMenus,r);c.height>i&&(i=c.height),c.width+n.x>a&&(a=c.width+n.x)}return{maxHeight:i,maxWidth:a}},`drawActorsPopup`),qe=t(function(e){b(Z,e),e.fontFamily&&(Z.actorFontFamily=Z.noteFontFamily=Z.messageFontFamily=e.fontFamily),e.fontSize&&(Z.actorFontSize=Z.noteFontSize=Z.messageFontSize=e.fontSize),e.fontWeight&&(Z.actorFontWeight=Z.noteFontWeight=Z.messageFontWeight=e.fontWeight)},`setConf`),Je=t(function(e){return Q.activations.filter(function(t){return t.actor===e})},`actorActivations`),Ye=t(function(e,t){let n=t.get(e),r=Je(e);return[r.reduce(function(e,t){return g.getMin(e,t.startx)},n.x+n.width/2-1),r.reduce(function(e,t){return g.getMax(e,t.stopx)},n.x+n.width/2+1)]},`activationBounds`);function $(e,t,n,i,a){Q.bumpVerticalPos(n);let o=i;if(t.id&&t.message&&e[t.id]){let n=e[t.id].width,a=ze(Z);t.message=E.wrapLabel(`[${t.message}]`,n-2*Z.wrapPadding,a),t.width=n,t.wrap=!0;let s=E.calculateTextDimensions(t.message,a),c=g.getMax(s.height,Z.labelBoxHeight);o=i+c,r.debug(`${c} - ${t.message}`)}a(t),Q.bumpVerticalPos(o)}t($,`adjustLoopHeightForWrap`);function Xe(e,n,r,i,a,o,s){function c(t,r){t.x{e.add(t.from),e.add(t.to)}),b=b.filter(t=>e.has(t))}let E=new Map(b.map((e,t)=>[h.get(e)?.name??e,t]));We(m,h,g,b,0,x,!1);let D=await lt(x,h,T,s);X.insertArrowHead(m,i),X.insertArrowCrossHead(m,i),X.insertArrowFilledHead(m,i),X.insertSequenceNumber(m,i),X.insertSolidTopArrowHead(m,i),X.insertSolidBottomArrowHead(m,i),X.insertStickTopArrowHead(m,i),X.insertStickBottomArrowHead(m,i),u===`neo`&&X.insertDropShadow(m,Z);function O(e,t){let n=Q.endActivation(e);n.starty+18>t&&(n.starty=t-6,t+=12),X.drawActivation(m,n,t,Z,Je(e.from).length,s,E),Q.insert(n.startx,t-10,n.stopx,t)}t(O,`activeEnd`);let k=1,A=1,j=[],M=[],N=0;for(let e of x){let t,n,i;switch(e.type){case s.db.LINETYPE.NOTE:Q.resetVerticalPos(),n=e.noteModel,await Le(m,n,e.id);break;case s.db.LINETYPE.ACTIVE_START:Q.newActivation(e,m,h);break;case s.db.LINETYPE.CENTRAL_CONNECTION:Q.newActivation(e,m,h);break;case s.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:Q.newActivation(e,m,h);break;case s.db.LINETYPE.ACTIVE_END:O(e,Q.getVerticalPos());break;case s.db.LINETYPE.LOOP_START:$(D,e,Z.boxMargin,Z.boxMargin+Z.boxTextMargin,e=>Q.newLoop(e));break;case s.db.LINETYPE.LOOP_END:t=Q.endLoop(),await X.drawLoop(m,t,`loop`,Z,e),Q.bumpVerticalPos(t.stopy-Q.getVerticalPos()),Q.models.addLoop(t);break;case s.db.LINETYPE.RECT_START:$(D,e,Z.boxMargin,Z.boxMargin,e=>Q.newLoop(void 0,e.message));break;case s.db.LINETYPE.RECT_END:t=Q.endLoop(),M.push(t),Q.models.addLoop(t),Q.bumpVerticalPos(t.stopy-Q.getVerticalPos());break;case s.db.LINETYPE.OPT_START:$(D,e,Z.boxMargin,Z.boxMargin+Z.boxTextMargin,e=>Q.newLoop(e));break;case s.db.LINETYPE.OPT_END:t=Q.endLoop(),await X.drawLoop(m,t,`opt`,Z,e),Q.bumpVerticalPos(t.stopy-Q.getVerticalPos()),Q.models.addLoop(t);break;case s.db.LINETYPE.ALT_START:$(D,e,Z.boxMargin,Z.boxMargin+Z.boxTextMargin,e=>Q.newLoop(e));break;case s.db.LINETYPE.ALT_ELSE:$(D,e,Z.boxMargin+Z.boxTextMargin,Z.boxMargin,e=>Q.addSectionToLoop(e));break;case s.db.LINETYPE.ALT_END:t=Q.endLoop(),await X.drawLoop(m,t,`alt`,Z,e),Q.bumpVerticalPos(t.stopy-Q.getVerticalPos()),Q.models.addLoop(t);break;case s.db.LINETYPE.PAR_START:case s.db.LINETYPE.PAR_OVER_START:$(D,e,Z.boxMargin,Z.boxMargin+Z.boxTextMargin,e=>Q.newLoop(e)),Q.saveVerticalPos();break;case s.db.LINETYPE.PAR_AND:$(D,e,Z.boxMargin+Z.boxTextMargin,Z.boxMargin,e=>Q.addSectionToLoop(e));break;case s.db.LINETYPE.PAR_END:t=Q.endLoop(),await X.drawLoop(m,t,`par`,Z,e),Q.bumpVerticalPos(t.stopy-Q.getVerticalPos()),Q.models.addLoop(t);break;case s.db.LINETYPE.AUTONUMBER:k=e.message.start||k,A=e.message.step||A,e.message.visible?s.db.enableSequenceNumbers():s.db.disableSequenceNumbers();break;case s.db.LINETYPE.CRITICAL_START:$(D,e,Z.boxMargin,Z.boxMargin+Z.boxTextMargin,e=>Q.newLoop(e));break;case s.db.LINETYPE.CRITICAL_OPTION:$(D,e,Z.boxMargin+Z.boxTextMargin,Z.boxMargin,e=>Q.addSectionToLoop(e));break;case s.db.LINETYPE.CRITICAL_END:t=Q.endLoop(),await X.drawLoop(m,t,`critical`,Z,e),Q.bumpVerticalPos(t.stopy-Q.getVerticalPos()),Q.models.addLoop(t);break;case s.db.LINETYPE.BREAK_START:$(D,e,Z.boxMargin,Z.boxMargin+Z.boxTextMargin,e=>Q.newLoop(e));break;case s.db.LINETYPE.BREAK_END:t=Q.endLoop(),await X.drawLoop(m,t,`break`,Z,e),Q.bumpVerticalPos(t.stopy-Q.getVerticalPos()),Q.models.addLoop(t);break;default:try{i=e.msgModel,i.starty=Q.getVerticalPos(),i.sequenceIndex=k,i.sequenceVisible=s.db.showSequenceNumbers(),i.id=e.id,i.from=e.from,i.to=e.to;let t=await He(m,i);Xe(e,i,t,N,h,g,_),j.push({messageModel:i,lineStartY:t,msg:e}),Q.models.addMessage(i)}catch(e){r.error(`error while drawing message`,e)}}[s.db.LINETYPE.SOLID_OPEN,s.db.LINETYPE.DOTTED_OPEN,s.db.LINETYPE.SOLID,s.db.LINETYPE.SOLID_TOP,s.db.LINETYPE.SOLID_BOTTOM,s.db.LINETYPE.STICK_TOP,s.db.LINETYPE.STICK_BOTTOM,s.db.LINETYPE.SOLID_TOP_DOTTED,s.db.LINETYPE.SOLID_BOTTOM_DOTTED,s.db.LINETYPE.STICK_TOP_DOTTED,s.db.LINETYPE.STICK_BOTTOM_DOTTED,s.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,s.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,s.db.LINETYPE.STICK_ARROW_TOP_REVERSE,s.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,s.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,s.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,s.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,s.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,s.db.LINETYPE.DOTTED,s.db.LINETYPE.SOLID_CROSS,s.db.LINETYPE.DOTTED_CROSS,s.db.LINETYPE.SOLID_POINT,s.db.LINETYPE.DOTTED_POINT,s.db.LINETYPE.BIDIRECTIONAL_SOLID,s.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type)&&(k=Math.round((k+A)*100)/100),N++}r.debug(`createdActors`,g),r.debug(`destroyedActors`,_),await Ge(m,h,b,!1,i,s,E);for(let e of j)await Ue(m,e.messageModel,e.lineStartY,s,e.msg,i);Z.mirrorActors&&await Ge(m,h,b,!0,i,s,E),M.forEach(e=>X.drawBackgroundRect(m,e)),le(m,h,b,Z);for(let e of Q.models.boxes){e.height=Q.getVerticalPos()-e.y,Q.insert(e.x,e.y,e.x+e.width,e.height);let t=Z.boxMargin*2;e.startx=e.x-t,e.starty=e.y-t*.25,e.stopx=e.startx+e.width+2*t,e.stopy=e.starty+e.height+t*.75,e.stroke=`rgb(0,0,0, 0.5)`,X.drawBox(m,e,Z)}C&&Q.bumpVerticalPos(Z.boxMargin);let P=Ke(m,h,b,p),{bounds:F}=Q.getBounds();F.startx===void 0&&(F.startx=0),F.starty===void 0&&(F.starty=0),F.stopx===void 0&&(F.stopx=0),F.stopy===void 0&&(F.stopy=0);let I=F.stopy-F.starty;I{let n=ze(Z),r=t.actorKeys.reduce((t,n)=>t+=e.get(n).width+(e.get(n).margin||0),0),a=Z.boxMargin*8;r+=a,r-=2*Z.boxTextMargin,t.wrap&&(t.name=E.wrapLabel(t.name,r-2*Z.wrapPadding,n));let o=E.calculateTextDimensions(t.name,n);i=g.getMax(o.height,i);let s=g.getMax(r,o.width+2*Z.wrapPadding);if(t.margin=Z.boxTextMargin,re.textMaxHeight=i),g.getMax(r,Z.height)}t(et,`calculateActorMargins`);var tt=t(async function(e,t,n){let i=t.get(e.from),a=t.get(e.to),s=i.x,c=a.x,l=e.wrap&&e.message,d=u(e.message)?await _(e.message,o()):E.calculateTextDimensions(l?E.wrapLabel(e.message,Z.width,Be(Z)):e.message,Be(Z)),f={width:l?Z.width:g.getMax(Z.width,d.width+2*Z.noteMargin),height:0,startx:i.x,stopx:0,starty:0,stopy:0,message:e.message};return e.placement===n.db.PLACEMENT.RIGHTOF?(f.width=l?g.getMax(Z.width,d.width):g.getMax(i.width/2+a.width/2,d.width+2*Z.noteMargin),f.startx=s+(i.width+Z.actorMargin)/2):e.placement===n.db.PLACEMENT.LEFTOF?(f.width=l?g.getMax(Z.width,d.width+2*Z.noteMargin):g.getMax(i.width/2+a.width/2,d.width+2*Z.noteMargin),f.startx=s-f.width+(i.width-Z.actorMargin)/2):e.to===e.from?(d=E.calculateTextDimensions(l?E.wrapLabel(e.message,g.getMax(Z.width,i.width),Be(Z)):e.message,Be(Z)),f.width=l?g.getMax(Z.width,i.width):g.getMax(i.width,Z.width,d.width+2*Z.noteMargin),f.startx=s+(i.width-f.width)/2):(f.width=Math.abs(s+i.width/2-(c+a.width/2))+Z.actorMargin,f.startx=s2,m=t(e=>u?-e:e,`adjustValue`);e.from===e.to?f=d:(e.activate&&!p&&(f+=m(Z.activationWidth/2-1)),[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.STICK_TOP,r.db.LINETYPE.STICK_BOTTOM,r.db.LINETYPE.STICK_TOP_DOTTED,r.db.LINETYPE.STICK_BOTTOM_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)||(f+=m(3)),[r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)&&(d-=m(3)));let h=[a,s,c,l],_=Math.abs(d-f);e.wrap&&e.message&&(e.message=E.wrapLabel(e.message,g.getMax(_+2*Z.wrapPadding,Z.width),ze(Z)));let v=E.calculateTextDimensions(e.message,ze(Z));return{width:g.getMax(e.wrap?0:v.width+2*Z.wrapPadding,_+2*Z.wrapPadding,Z.width),height:0,startx:d,stopx:f,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,h),toBounds:Math.max.apply(null,h)}},`buildMessageModel`),lt=t(async function(e,t,n,i){let a={},o=[],s,c,l;for(let n of e){switch(n.type){case i.db.LINETYPE.LOOP_START:case i.db.LINETYPE.ALT_START:case i.db.LINETYPE.OPT_START:case i.db.LINETYPE.PAR_START:case i.db.LINETYPE.PAR_OVER_START:case i.db.LINETYPE.CRITICAL_START:case i.db.LINETYPE.BREAK_START:o.push({id:n.id,msg:n.message,from:2**53-1,to:-(2**53-1),width:0});break;case i.db.LINETYPE.ALT_ELSE:case i.db.LINETYPE.PAR_AND:case i.db.LINETYPE.CRITICAL_OPTION:n.message&&(s=o.pop(),a[s.id]=s,a[n.id]=s,o.push(s));break;case i.db.LINETYPE.LOOP_END:case i.db.LINETYPE.ALT_END:case i.db.LINETYPE.OPT_END:case i.db.LINETYPE.PAR_END:case i.db.LINETYPE.CRITICAL_END:case i.db.LINETYPE.BREAK_END:s=o.pop(),a[s.id]=s;break;case i.db.LINETYPE.ACTIVE_START:{let e=t.get(n.from?n.from:n.to.actor),r=Je(n.from?n.from:n.to.actor).length,i=e.x+e.width/2+(r-1)*Z.activationWidth/2,a={startx:i,stopx:i+Z.activationWidth,actor:n.from,enabled:!0};Q.activations.push(a)}break;case i.db.LINETYPE.ACTIVE_END:{let e=Q.activations.map(e=>e.actor).lastIndexOf(n.from);Q.activations.splice(e,1).splice(0,1)}break}n.placement===void 0?(l=ct(n,t,i),n.msgModel=l,l.startx&&l.stopx&&o.length>0&&o.forEach(e=>{if(s=e,l.startx===l.stopx){let e=t.get(n.from),r=t.get(n.to);s.from=g.getMin(e.x-l.width/2,e.x-e.width/2,s.from),s.to=g.getMax(r.x+l.width/2,r.x+e.width/2,s.to),s.width=g.getMax(s.width,Math.abs(s.to-s.from))-Z.labelBoxWidth}else s.from=g.getMin(l.startx,s.from),s.to=g.getMax(l.stopx,s.to),s.width=g.getMax(s.width,l.width)-Z.labelBoxWidth})):(c=await tt(n,t,i),n.noteModel=c,o.forEach(e=>{s=e,s.from=g.getMin(s.from,c.startx),s.to=g.getMax(s.to,c.startx+c.width),s.width=g.getMax(s.width,Math.abs(s.from-s.to))-Z.labelBoxWidth}))}return Q.activations=[],r.debug(`Loop type widths:`,a),a},`calculateLoopBounds`),ut={parser:F,get db(){return new te},renderer:{bounds:Q,drawActors:Ge,drawActorsPopup:Ke,setConf:qe,draw:Ze},styles:ne,init:t(e=>{e.sequence||={},e.wrap&&(e.sequence.wrap=e.wrap,m({sequence:{wrap:e.wrap}}))},`init`)};export{ut as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/shortcuts-C2vKazfC.css b/docs/dist/assets/shortcuts-B-l-cuzr.css similarity index 69% rename from docs/dist/assets/shortcuts-C2vKazfC.css rename to docs/dist/assets/shortcuts-B-l-cuzr.css index fbf9ba80..339ca691 100644 --- a/docs/dist/assets/shortcuts-C2vKazfC.css +++ b/docs/dist/assets/shortcuts-B-l-cuzr.css @@ -1 +1 @@ -.autocomplete-list[data-v-3d81d0cb]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity)) ;max-height:calc(100vh - 100px);margin-top:.25rem;overflow:auto}.dark .autocomplete-list[data-v-3d81d0cb]{--un-bg-opacity:1;background-color:rgb(18 18 18/var(--un-bg-opacity)) }.autocomplete[data-v-3d81d0cb]{cursor:pointer}.laser-pointer[data-v-54c9b9e4]{background:radial-gradient(circle,#ff5050 0%,#ff0000f2 55%,#ff00001a 100%);border-radius:9999px;width:6px;height:6px;position:absolute;transform:translate(-50%,-50%);box-shadow:0 0 10px #ff0000e6,0 0 22px #ff00008c}.slidev-self-laser-active .slidev-slide-container{cursor:none}.slider{appearance:none;opacity:.7;-webkit-transition:all .2s;background-color:#9ca3af0d;border-width:1px;border-color:#9ca3af33;border-radius:.25rem;outline:none;height:22px;transition:opacity .2s;overflow:hidden}.slider:hover{opacity:1}.slider::-webkit-slider-thumb{appearance:none;background:var(--slidev-theme-primary);cursor:pointer;z-index:10;width:5px;height:22px}.slider::-moz-range-thumb{background:var(--slidev-theme-primary);cursor:pointer;z-index:10;width:5px;height:22px}.item[data-v-9571c68e]{cursor:default;white-space:nowrap;border-radius:.25rem;gap:.25rem;padding:.25rem .5rem;display:flex}.item[data-v-9571c68e]:hover{--un-bg-opacity:.1;background-color:rgb(156 163 175/var(--un-bg-opacity)) }.title[data-v-9571c68e]{-webkit-user-select:none;user-select:none;text-wrap:nowrap;opacity:.75;padding:.25rem .75rem;font-size:.875rem;font-weight:700;line-height:1.25rem}#slideshow[data-v-00d06fe5]{height:100%} +.autocomplete-list[data-v-4467b1ff]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity)) ;max-height:calc(100vh - 100px);margin-top:.25rem;overflow:auto}.dark .autocomplete-list[data-v-4467b1ff]{--un-bg-opacity:1;background-color:rgb(18 18 18/var(--un-bg-opacity)) }.autocomplete[data-v-4467b1ff]{cursor:pointer}.laser-pointer[data-v-300f21bb]{background:radial-gradient(circle,#ff5050 0%,#ff0000f2 55%,#ff00001a 100%);border-radius:9999px;width:6px;height:6px;position:absolute;transform:translate(-50%,-50%);box-shadow:0 0 10px #ff0000e6,0 0 22px #ff00008c}.slidev-self-laser-active .slidev-slide-container{cursor:none}.slider{appearance:none;opacity:.7;-webkit-transition:all .2s;background-color:#9ca3af0d;border-width:1px;border-color:#9ca3af33;border-radius:.25rem;outline:none;height:22px;transition:opacity .2s;overflow:hidden}.slider:hover{opacity:1}.slider::-webkit-slider-thumb{appearance:none;background:var(--slidev-theme-primary);cursor:pointer;z-index:10;width:5px;height:22px}.slider::-moz-range-thumb{background:var(--slidev-theme-primary);cursor:pointer;z-index:10;width:5px;height:22px}.item[data-v-3870d21f]{cursor:default;white-space:nowrap;border-radius:.25rem;gap:.25rem;padding:.25rem .5rem;display:flex}.item[data-v-3870d21f]:hover{--un-bg-opacity:.1;background-color:rgb(156 163 175/var(--un-bg-opacity)) }.title[data-v-3870d21f]{-webkit-user-select:none;user-select:none;text-wrap:nowrap;opacity:.75;padding:.25rem .75rem;font-size:.875rem;font-weight:700;line-height:1.25rem}#slideshow[data-v-fee5c613]{height:100%} diff --git a/docs/dist/assets/slidev/404-Cyn-rlMQ.js b/docs/dist/assets/slidev/404-Cyn-rlMQ.js deleted file mode 100644 index e83f733c..00000000 --- a/docs/dist/assets/slidev/404-Cyn-rlMQ.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as e,B as t,S as n,St as r,T as i,W as a,_ as o,b as s,v as c,vt as l,x as u,y as d}from"../modules/shiki-yoNnvMyB.js";import{B as f}from"../modules/vue-ejhLULwH.js";import{_ as p,mt as m}from"../index-hODKC6Hw.js";var h={class:`grid justify-center text-center pt-15% gap-5`},g={class:`text-2xl`},_={class:`op-60`},v={class:`mt-3 flex flex-col gap-2 max-w-xs mx-auto w-full`},y=m(i({__name:`404`,setup(i){let m=/\d+/,{currentRoute:y}=f(),{total:b}=p(),x=o(()=>{let e=y.value.path.match(m);if(e){let t=+e[0];if(t>0&&t<=b.value)return t}return null});return(i,o)=>{let f=a(`RouterLink`);return t(),u(`div`,h,[c(`div`,null,[o[2]||=c(`h1`,{class:`text-9xl font-light`},` 404 `,-1),c(`p`,g,[o[0]||=n(` Page `,-1),c(`code`,_,r(l(y).path),1),o[1]||=n(` not found `,-1)])]),c(`div`,v,[x.value===1?s(``,!0):(t(),d(f,{key:0,to:`/`,class:`page-link`},{default:e(()=>[...o[3]||=[n(` Go Home `,-1)]]),_:1})),x.value?(t(),d(f,{key:1,to:`/${x.value}`,class:`page-link`},{default:e(()=>[n(` Go to Slide `+r(x.value),1)]),_:1},8,[`to`])):s(``,!0)])])}}}),[[`__scopeId`,`data-v-b1d9b4aa`]]);export{y as default}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/404-DzUxMK27.js b/docs/dist/assets/slidev/404-DzUxMK27.js new file mode 100644 index 00000000..3d4a55d1 --- /dev/null +++ b/docs/dist/assets/slidev/404-DzUxMK27.js @@ -0,0 +1 @@ +import{Q as e,U as t,_ as n,_t as r,b as i,g as a,v as o,w as s,x as c,xt as l,y as u,z as d}from"../modules/shiki-BmLmNVDB.js";import{V as f}from"../modules/vue-5vwy5Re_.js";import{t as p}from"../_plugin-vue_export-helper-BDNMzG2s.js";import{v as m}from"../index-BEBAY2Mg.js";var h={class:`grid justify-center text-center pt-15% gap-5`},g={class:`text-2xl`},_={class:`op-60`},v={class:`mt-3 flex flex-col gap-2 max-w-xs mx-auto w-full`},y=p(s({__name:`404`,setup(s){let p=/\d+/,{currentRoute:y}=f(),{total:b}=m(),x=a(()=>{let e=y.value.path.match(p);if(e){let t=+e[0];if(t>0&&t<=b.value)return t}return null});return(a,s)=>{let f=t(`RouterLink`);return d(),i(`div`,h,[n(`div`,null,[s[2]||=n(`h1`,{class:`text-9xl font-light`},` 404 `,-1),n(`p`,g,[s[0]||=c(` Page `,-1),n(`code`,_,l(r(y).path),1),s[1]||=c(` not found `,-1)])]),n(`div`,v,[x.value===1?u(``,!0):(d(),o(f,{key:0,to:`/`,class:`page-link`},{default:e(()=>[...s[3]||=[c(` Go Home `,-1)]]),_:1})),x.value?(d(),o(f,{key:1,to:`/${x.value}`,class:`page-link`},{default:e(()=>[c(` Go to Slide `+l(x.value),1)]),_:1},8,[`to`])):u(``,!0)])])}}}),[[`__scopeId`,`data-v-1cb65413`]]);export{y as default}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/DrawingControls-CUTQg5_r.js b/docs/dist/assets/slidev/DrawingControls-CUTQg5_r.js deleted file mode 100644 index 3d747016..00000000 --- a/docs/dist/assets/slidev/DrawingControls-CUTQg5_r.js +++ /dev/null @@ -1 +0,0 @@ -import{n as e}from"../rolldown-runtime-QTnfLwEv.js";import{$ as t,B as n,C as r,H as i,St as a,T as o,U as s,b as c,et as l,l as u,m as d,r as f,u as p,ut as m,v as h,vt as g,x as _,xt as v,y,yt as b}from"../modules/shiki-yoNnvMyB.js";import{h as x,u as S}from"../modules/vue-ejhLULwH.js";import{s as C}from"../SlideWrapper-BclWpJbK.js";import{t as w}from"./IconButton-BlFal5-R.js";import{p as T}from"./shortcuts-C9mtjhUG.js";var E=o({__name:`Draggable`,props:{storageKey:{},initial:{}},setup(e){let t=e,r=m(null),i=t.initial??{x:0,y:0},{style:a}=S(r,{initialValue:t.storageKey?x(t.storageKey,i):m(i)});return(e,t)=>(n(),_(`div`,{ref_key:`el`,ref:r,class:`fixed`,style:v(g(a))},[s(e.$slots,`default`)],4))}}),D={class:`flex bg-main p-2`},O={class:`inline-block w-7 text-center`},k={class:`pt-.5`},A={class:`i-carbon:pin-filled transform -rotate-45`},j={class:`i-carbon:pin`},M={class:`i-carbon:error`},N={class:`i-carbon:close-outline`},P=o({__name:`DrawingControls`,setup(e){let{brush:o,canClear:s,canRedo:x,canUndo:S,clear:P,drauu:F,drawingEnabled:I,drawingMode:L,drawingPinned:R,brushColors:z}=C(),B=m(!1);function V(e){e.preventDefault(),e.stopPropagation(),requestAnimationFrame(()=>{requestAnimationFrame(()=>{B.value=!0})})}function H(e){e.pointerType!==`mouse`&&V(e)}function U(){F.undo()}function W(){F.redo()}let G=`stylus`;function K(e){L.value=e,I.value=!0,e!==`eraseLine`&&(G=e)}function q(e){o.value.color=e,I.value=!0,L.value=G}return(e,m)=>g(I)||g(R)?(n(),y(E,{key:0,class:b([`flex flex-wrap text-xl p-2 gap-1 rounded-md bg-main shadow transition-opacity duration-200 z-nav border border-main`,!g(I)&&g(R)?`opacity-40 hover:opacity-90`:``]),"storage-key":`slidev-drawing-pos`,"initial-x":10,"initial-y":10},{default:t(()=>[r(w,{title:`Draw with stylus`,class:b({shallow:g(L)!==`stylus`}),onClick:m[0]||=e=>K(`stylus`)},{default:t(()=>[...m[14]||=[h(`div`,{class:`i-carbon:pen`},null,-1)]]),_:1},8,[`class`]),r(w,{title:`Draw a line`,class:b({shallow:g(L)!==`line`}),onClick:m[1]||=e=>K(`line`)},{default:t(()=>[...m[15]||=[h(`svg`,{width:`1em`,height:`1em`,class:`-mt-0.5`,preserveAspectRatio:`xMidYMid meet`,viewBox:`0 0 24 24`},[h(`path`,{d:`M21.71 3.29a1 1 0 0 0-1.42 0l-18 18a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l18-18a1 1 0 0 0 0-1.42z`,fill:`currentColor`})],-1)]]),_:1},8,[`class`]),r(w,{title:`Draw an arrow`,class:b({shallow:g(L)!==`arrow`}),onClick:m[2]||=e=>K(`arrow`)},{default:t(()=>[...m[16]||=[h(`div`,{class:`i-carbon:arrow-up-right`},null,-1)]]),_:1},8,[`class`]),r(w,{title:`Draw an ellipse`,class:b({shallow:g(L)!==`ellipse`}),onClick:m[3]||=e=>K(`ellipse`)},{default:t(()=>[...m[17]||=[h(`div`,{class:`i-carbon:radio-button`},null,-1)]]),_:1},8,[`class`]),r(w,{title:`Draw a rectangle`,class:b({shallow:g(L)!==`rectangle`}),onClick:m[4]||=e=>K(`rectangle`)},{default:t(()=>[...m[18]||=[h(`div`,{class:`i-carbon:checkbox`},null,-1)]]),_:1},8,[`class`]),r(w,{title:`Erase`,class:b({shallow:g(L)!==`eraseLine`}),onClick:m[5]||=e=>K(`eraseLine`)},{default:t(()=>[...m[19]||=[h(`div`,{class:`i-carbon:erase`},null,-1)]]),_:1},8,[`class`]),r(T),r(g(f),{shown:B.value,"onUpdate:shown":m[8]||=e=>B.value=e,triggers:[]},{popper:t(()=>[h(`div`,D,[h(`div`,O,a(g(o).size),1),h(`div`,k,[l(h(`input`,{"onUpdate:modelValue":m[6]||=e=>g(o).size=e,type:`range`,min:`1`,max:`15`,onChange:m[7]||=e=>L.value=g(G)},null,544),[[u,g(o).size]])])])]),default:t(()=>[r(w,{title:`Adjust stroke width`,class:b({shallow:g(L)===`eraseLine`}),onClick:V,onPointerdown:H,onPointerup:H,onTouchend:V},{default:t(()=>[...m[20]||=[h(`svg`,{viewBox:`0 0 32 32`,width:`1.2em`,height:`1.2em`},[h(`line`,{x1:`2`,y1:`15`,x2:`22`,y2:`4`,stroke:`currentColor`,"stroke-width":`1`,"stroke-linecap":`round`}),h(`line`,{x1:`2`,y1:`24`,x2:`28`,y2:`10`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`}),h(`line`,{x1:`7`,y1:`31`,x2:`29`,y2:`19`,stroke:`currentColor`,"stroke-width":`3`,"stroke-linecap":`round`})],-1)]]),_:1},8,[`class`])]),_:1},8,[`shown`]),(n(!0),_(d,null,i(g(z),e=>(n(),y(w,{key:e,title:`Set brush color`,class:b(g(o).color===e&&g(L)!==`eraseLine`?`active`:`shallow`),onClick:t=>q(e)},{default:t(()=>[h(`div`,{class:b([`w-6 h-6 transition-all transform border`,g(o).color===e?`rounded-md border-gray-300/50`:`rounded-1/2 scale-85 border-white`]),style:v(g(I)?{background:e}:{borderColor:e})},null,6)]),_:2},1032,[`class`,`onClick`]))),128)),r(T),r(w,{title:`Undo`,class:b({disabled:!g(S)}),onClick:m[9]||=e=>U()},{default:t(()=>[...m[21]||=[h(`div`,{class:`i-carbon:undo`},null,-1)]]),_:1},8,[`class`]),r(w,{title:`Redo`,class:b({disabled:!g(x)}),onClick:m[10]||=e=>W()},{default:t(()=>[...m[22]||=[h(`div`,{class:`i-carbon:redo`},null,-1)]]),_:1},8,[`class`]),r(w,{title:`Delete`,class:b({disabled:!g(s)}),onClick:m[11]||=e=>g(P)()},{default:t(()=>[...m[23]||=[h(`div`,{class:`i-carbon:trash-can`},null,-1)]]),_:1},8,[`class`]),r(T),r(w,{title:g(R)?`Unpin drawing`:`Pin drawing`,class:b({shallow:!g(R)}),onClick:m[12]||=e=>R.value=!g(R)},{default:t(()=>[l(h(`div`,A,null,512),[[p,g(R)]]),l(h(`div`,j,null,512),[[p,!g(R)]])]),_:1},8,[`title`,`class`]),g(I)?(n(),y(w,{key:0,title:g(R)?`Drawing pinned`:`Drawing unpinned`,class:b({shallow:!g(I)}),onClick:m[13]||=e=>I.value=!g(I)},{default:t(()=>[l(h(`div`,M,null,512),[[p,g(R)]]),l(h(`div`,N,null,512),[[p,!g(R)]])]),_:1},8,[`title`,`class`])):c(``,!0)]),_:1},8,[`class`])):c(``,!0)}}),F=e({default:()=>I}),I=P;export{F as n,I as t}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/DrawingControls-DW4yl75r.js b/docs/dist/assets/slidev/DrawingControls-DW4yl75r.js new file mode 100644 index 00000000..3bd05b88 --- /dev/null +++ b/docs/dist/assets/slidev/DrawingControls-DW4yl75r.js @@ -0,0 +1 @@ +import{n as e}from"../rolldown-runtime-QTnfLwEv.js";import{$ as t,H as n,Q as r,S as i,V as a,_ as o,_t as s,b as c,bt as l,l as u,lt as d,m as f,r as p,u as m,v as h,vt as g,w as _,xt as v,y,z as b}from"../modules/shiki-BmLmNVDB.js";import{d as x,g as S}from"../modules/vue-5vwy5Re_.js";import{s as C}from"../SlideWrapper-IFU3LLlv.js";import{t as w}from"./IconButton-BAiJUHfk.js";import{p as T}from"./shortcuts-CQBL0mtp.js";var E=_({__name:`Draggable`,props:{storageKey:{},initial:{}},setup(e){let t=e,r=d(null),i=t.initial??{x:0,y:0},{style:a}=x(r,{initialValue:t.storageKey?S(t.storageKey,i):d(i)});return(e,t)=>(b(),c(`div`,{ref_key:`el`,ref:r,class:`fixed`,style:l(s(a))},[n(e.$slots,`default`)],4))}}),D={class:`flex bg-main p-2`},O={class:`inline-block w-7 text-center`},k={class:`pt-.5`},A={class:`i-carbon:pin-filled transform -rotate-45`},j={class:`i-carbon:pin`},M={class:`i-carbon:error`},N={class:`i-carbon:close-outline`},P=_({__name:`DrawingControls`,setup(e){let{brush:n,canClear:_,canRedo:x,canUndo:S,clear:P,drauu:F,drawingEnabled:I,drawingMode:L,drawingPinned:R,brushColors:z}=C(),B=d(!1);function V(e){e.preventDefault(),e.stopPropagation(),requestAnimationFrame(()=>{requestAnimationFrame(()=>{B.value=!0})})}function H(e){e.pointerType!==`mouse`&&V(e)}function U(){F.undo()}function W(){F.redo()}let G=`stylus`;function K(e){L.value=e,I.value=!0,e!==`eraseLine`&&(G=e)}function q(e){n.value.color=e,I.value=!0,L.value=G}return(e,d)=>s(I)||s(R)?(b(),h(E,{key:0,class:g([`flex flex-wrap text-xl p-2 gap-1 rounded-md bg-main shadow transition-opacity duration-200 z-nav border border-main`,!s(I)&&s(R)?`opacity-40 hover:opacity-90`:``]),"storage-key":`slidev-drawing-pos`,"initial-x":10,"initial-y":10},{default:r(()=>[i(w,{title:`Draw with stylus`,class:g({shallow:s(L)!==`stylus`}),onClick:d[0]||=e=>K(`stylus`)},{default:r(()=>[...d[14]||=[o(`div`,{class:`i-carbon:pen`},null,-1)]]),_:1},8,[`class`]),i(w,{title:`Draw a line`,class:g({shallow:s(L)!==`line`}),onClick:d[1]||=e=>K(`line`)},{default:r(()=>[...d[15]||=[o(`svg`,{width:`1em`,height:`1em`,class:`-mt-0.5`,preserveAspectRatio:`xMidYMid meet`,viewBox:`0 0 24 24`},[o(`path`,{d:`M21.71 3.29a1 1 0 0 0-1.42 0l-18 18a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l18-18a1 1 0 0 0 0-1.42z`,fill:`currentColor`})],-1)]]),_:1},8,[`class`]),i(w,{title:`Draw an arrow`,class:g({shallow:s(L)!==`arrow`}),onClick:d[2]||=e=>K(`arrow`)},{default:r(()=>[...d[16]||=[o(`div`,{class:`i-carbon:arrow-up-right`},null,-1)]]),_:1},8,[`class`]),i(w,{title:`Draw an ellipse`,class:g({shallow:s(L)!==`ellipse`}),onClick:d[3]||=e=>K(`ellipse`)},{default:r(()=>[...d[17]||=[o(`div`,{class:`i-carbon:radio-button`},null,-1)]]),_:1},8,[`class`]),i(w,{title:`Draw a rectangle`,class:g({shallow:s(L)!==`rectangle`}),onClick:d[4]||=e=>K(`rectangle`)},{default:r(()=>[...d[18]||=[o(`div`,{class:`i-carbon:checkbox`},null,-1)]]),_:1},8,[`class`]),i(w,{title:`Erase`,class:g({shallow:s(L)!==`eraseLine`}),onClick:d[5]||=e=>K(`eraseLine`)},{default:r(()=>[...d[19]||=[o(`div`,{class:`i-carbon:erase`},null,-1)]]),_:1},8,[`class`]),i(T),i(s(p),{shown:B.value,"onUpdate:shown":d[8]||=e=>B.value=e,triggers:[]},{popper:r(()=>[o(`div`,D,[o(`div`,O,v(s(n).size),1),o(`div`,k,[t(o(`input`,{"onUpdate:modelValue":d[6]||=e=>s(n).size=e,type:`range`,min:`1`,max:`15`,onChange:d[7]||=e=>L.value=s(G)},null,544),[[u,s(n).size]])])])]),default:r(()=>[i(w,{title:`Adjust stroke width`,class:g({shallow:s(L)===`eraseLine`}),onClick:V,onPointerdown:H,onPointerup:H,onTouchend:V},{default:r(()=>[...d[20]||=[o(`svg`,{viewBox:`0 0 32 32`,width:`1.2em`,height:`1.2em`},[o(`line`,{x1:`2`,y1:`15`,x2:`22`,y2:`4`,stroke:`currentColor`,"stroke-width":`1`,"stroke-linecap":`round`}),o(`line`,{x1:`2`,y1:`24`,x2:`28`,y2:`10`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`}),o(`line`,{x1:`7`,y1:`31`,x2:`29`,y2:`19`,stroke:`currentColor`,"stroke-width":`3`,"stroke-linecap":`round`})],-1)]]),_:1},8,[`class`])]),_:1},8,[`shown`]),(b(!0),c(f,null,a(s(z),e=>(b(),h(w,{key:e,title:`Set brush color`,class:g(s(n).color===e&&s(L)!==`eraseLine`?`active`:`shallow`),onClick:t=>q(e)},{default:r(()=>[o(`div`,{class:g([`w-6 h-6 transition-all transform border`,s(n).color===e?`rounded-md border-gray-300/50`:`rounded-1/2 scale-85 border-white`]),style:l(s(I)?{background:e}:{borderColor:e})},null,6)]),_:2},1032,[`class`,`onClick`]))),128)),i(T),i(w,{title:`Undo`,class:g({disabled:!s(S)}),onClick:d[9]||=e=>U()},{default:r(()=>[...d[21]||=[o(`div`,{class:`i-carbon:undo`},null,-1)]]),_:1},8,[`class`]),i(w,{title:`Redo`,class:g({disabled:!s(x)}),onClick:d[10]||=e=>W()},{default:r(()=>[...d[22]||=[o(`div`,{class:`i-carbon:redo`},null,-1)]]),_:1},8,[`class`]),i(w,{title:`Delete`,class:g({disabled:!s(_)}),onClick:d[11]||=e=>s(P)()},{default:r(()=>[...d[23]||=[o(`div`,{class:`i-carbon:trash-can`},null,-1)]]),_:1},8,[`class`]),i(T),i(w,{title:s(R)?`Unpin drawing`:`Pin drawing`,class:g({shallow:!s(R)}),onClick:d[12]||=e=>R.value=!s(R)},{default:r(()=>[t(o(`div`,A,null,512),[[m,s(R)]]),t(o(`div`,j,null,512),[[m,!s(R)]])]),_:1},8,[`title`,`class`]),s(I)?(b(),h(w,{key:0,title:s(R)?`Drawing pinned`:`Drawing unpinned`,class:g({shallow:!s(I)}),onClick:d[13]||=e=>I.value=!s(I)},{default:r(()=>[t(o(`div`,M,null,512),[[m,s(R)]]),t(o(`div`,N,null,512),[[m,!s(R)]])]),_:1},8,[`title`,`class`])):y(``,!0)]),_:1},8,[`class`])):y(``,!0)}}),F=e({default:()=>I}),I=P;export{F as n,I as t}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/DrawingLayer-B_LvgAMt.js b/docs/dist/assets/slidev/DrawingLayer-B_LvgAMt.js deleted file mode 100644 index bc746b4c..00000000 --- a/docs/dist/assets/slidev/DrawingLayer-B_LvgAMt.js +++ /dev/null @@ -1 +0,0 @@ -import{B as e,I as t,R as n,T as r,X as i,ut as a,vt as o,x as s,yt as c}from"../modules/shiki-yoNnvMyB.js";import{nt as l}from"../index-hODKC6Hw.js";import{s as u}from"../SlideWrapper-BclWpJbK.js";var d=r({__name:`DrawingLayer`,setup(r){let{drauu:d,drawingEnabled:f,loadCanvas:p}=u(),m=l().$scale,h=a();return n(()=>{d.mount(h.value,h.value.parentElement),i(m,e=>d.options.coordinateScale=1/e,{immediate:!0}),p()}),t(()=>{d.unmount()}),(t,n)=>(e(),s(`svg`,{ref_key:`svg`,ref:h,class:c([`w-full h-full absolute top-0`,{"pointer-events-none":!o(f),"touch-none":o(f)}])},null,2))}});export{d as default}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/DrawingLayer-CYp0bsc-.js b/docs/dist/assets/slidev/DrawingLayer-CYp0bsc-.js new file mode 100644 index 00000000..0a61e446 --- /dev/null +++ b/docs/dist/assets/slidev/DrawingLayer-CYp0bsc-.js @@ -0,0 +1 @@ +import{F as e,L as t,Y as n,_t as r,b as i,lt as a,vt as o,w as s,z as c}from"../modules/shiki-BmLmNVDB.js";import{rt as l}from"../index-BEBAY2Mg.js";import{s as u}from"../SlideWrapper-IFU3LLlv.js";var d=s({__name:`DrawingLayer`,setup(s){let{drauu:d,drawingEnabled:f,loadCanvas:p}=u(),m=l().$scale,h=a();return t(()=>{d.mount(h.value,h.value.parentElement),n(m,e=>d.options.coordinateScale=1/e,{immediate:!0}),p()}),e(()=>{d.unmount()}),(e,t)=>(c(),i(`svg`,{ref_key:`svg`,ref:h,class:o([`w-full h-full absolute top-0`,{"pointer-events-none":!r(f),"touch-none":r(f)}])},null,2))}});export{d as default}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/IconButton-BAiJUHfk.js b/docs/dist/assets/slidev/IconButton-BAiJUHfk.js new file mode 100644 index 00000000..179888d2 --- /dev/null +++ b/docs/dist/assets/slidev/IconButton-BAiJUHfk.js @@ -0,0 +1 @@ +import{G as e,H as t,Q as n,_ as r,g as i,v as a,vt as o,w as s,xt as c,z as l}from"../modules/shiki-BmLmNVDB.js";var u={class:`sr-only`},d=s({__name:`IconButton`,props:{title:{},icon:{},as:{},to:{},disabled:{type:Boolean},active:{type:Boolean}},setup(s){let d=s,f=i(()=>d.as||(d.to?`router-link`:`button`));return(i,d)=>(l(),a(e(f.value),{class:o([`slidev-icon-btn`,{disabled:s.disabled,active:s.active}]),title:s.title,to:s.to},{default:n(()=>[r(`span`,u,c(s.title),1),t(i.$slots,`default`,{},()=>[r(`div`,{class:o(s.icon)},null,2)])]),_:3},8,[`class`,`title`,`to`]))}});export{d as t}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/IconButton-BlFal5-R.js b/docs/dist/assets/slidev/IconButton-BlFal5-R.js deleted file mode 100644 index 7e7d5440..00000000 --- a/docs/dist/assets/slidev/IconButton-BlFal5-R.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as e,B as t,K as n,St as r,T as i,U as a,_ as o,v as s,y as c,yt as l}from"../modules/shiki-yoNnvMyB.js";var u={class:`sr-only`},d=i({__name:`IconButton`,props:{title:{},icon:{},as:{},to:{},disabled:{type:Boolean},active:{type:Boolean}},setup(i){let d=i,f=o(()=>d.as||(d.to?`router-link`:`button`));return(o,d)=>(t(),c(n(f.value),{class:l([`slidev-icon-btn`,{disabled:i.disabled,active:i.active}]),title:i.title,to:i.to},{default:e(()=>[s(`span`,u,r(i.title),1),a(o.$slots,`default`,{},()=>[s(`div`,{class:l(i.icon)},null,2)])]),_:3},8,[`class`,`title`,`to`]))}});export{d as t}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/Modal-BpXRRqG8.js b/docs/dist/assets/slidev/Modal-BpXRRqG8.js deleted file mode 100644 index deb0d092..00000000 --- a/docs/dist/assets/slidev/Modal-BpXRRqG8.js +++ /dev/null @@ -1 +0,0 @@ -import{B as e,T as t,U as n,b as r,h as i,v as a,vt as o,x as s,y as c,yt as l}from"../modules/shiki-yoNnvMyB.js";import{S as u}from"../modules/vue-ejhLULwH.js";var d={key:0,class:`fixed top-0 bottom-0 left-0 right-0 grid z-modal`},f=t({__name:`Modal`,props:{modelValue:{default:!1},class:{default:``}},emits:[`update:modelValue`],setup(t,{emit:f}){let p=t,m=u(p,`modelValue`,f);function h(){m.value=!1}return(t,u)=>(e(),c(i,null,[o(m)?(e(),s(`div`,d,[a(`div`,{bg:`black opacity-80`,class:`absolute top-0 bottom-0 left-0 right-0 -z-1`,onClick:u[0]||=e=>h()}),a(`div`,{class:l([`m-auto rounded-md bg-main shadow`,p.class]),"dark:border":`~ main`},[n(t.$slots,`default`)],2)])):r(``,!0)],1024))}});export{f as t}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/Modal-CdBImNxA.js b/docs/dist/assets/slidev/Modal-CdBImNxA.js new file mode 100644 index 00000000..05e6e671 --- /dev/null +++ b/docs/dist/assets/slidev/Modal-CdBImNxA.js @@ -0,0 +1 @@ +import{H as e,_ as t,_t as n,b as r,h as i,v as a,vt as o,w as s,y as c,z as l}from"../modules/shiki-BmLmNVDB.js";import{C as u}from"../modules/vue-5vwy5Re_.js";var d={key:0,class:`fixed top-0 bottom-0 left-0 right-0 grid z-modal`},f=s({__name:`Modal`,props:{modelValue:{default:!1},class:{default:``}},emits:[`update:modelValue`],setup(s,{emit:f}){let p=s,m=u(p,`modelValue`,f);function h(){m.value=!1}return(s,u)=>(l(),a(i,null,[n(m)?(l(),r(`div`,d,[t(`div`,{bg:`black opacity-80`,class:`absolute top-0 bottom-0 left-0 right-0 -z-1`,onClick:u[0]||=e=>h()}),t(`div`,{class:o([`m-auto rounded-md bg-main shadow`,p.class]),"dark:border":`~ main`},[e(s.$slots,`default`)],2)])):c(``,!0)],1024))}});export{f as t}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/NoteDisplay-BAqwAo7Q.js b/docs/dist/assets/slidev/NoteDisplay-BAqwAo7Q.js new file mode 100644 index 00000000..22f4fa4f --- /dev/null +++ b/docs/dist/assets/slidev/NoteDisplay-BAqwAo7Q.js @@ -0,0 +1 @@ +import{L as e,N as t,V as n,X as r,Y as i,_ as a,_t as o,b as s,bt as c,g as l,it as u,lt as d,m as f,vt as p,w as m,xt as h,y as g,z as _}from"../modules/shiki-BmLmNVDB.js";import{r as v,s as y}from"../utils-T1it7q9-.js";import{at as b}from"../index-BEBAY2Mg.js";var x=[`title`],S={key:0,"flex-auto":``},C={"text-primary":``},w={op50:``,"text-sm":``},T={key:0,absolute:``,"inset-y-0":``,"right-0":``,"w-0.5":``,"bg-primary":``,"z-1":``},E=m({__name:`ClicksSlider`,props:{clicksContext:{},readonly:{type:Boolean},active:{type:Boolean,default:!0},resettable:{type:Boolean},compact:{type:Boolean},attached:{type:Boolean}},emits:[`activate`,`reset`],setup(e,{emit:t}){let r=e,i=t,m=l(()=>r.clicksContext.total),E=l(()=>v(0,r.clicksContext.clicksStart,m.value)),D=l(()=>m.value-E.value+1),O=l({get(){return r.resettable&&!r.active||r.clicksContext.current>m.value?-1:r.clicksContext.current},set(e){if(r.resettable&&e<0){i(`reset`),r.clicksContext.current=b;return}i(`activate`),r.clicksContext.current=e}}),k=l(()=>r.resettable&&O.value<0),A=l(()=>y(E.value,m.value+1)),j=d(),M;function N(e){let t=j.value.getBoundingClientRect();return(e.clientX-t.left)/Math.max(1,t.width)}function P(e,t){if(r.readonly||!j.value||!t&&!(e.buttons&1))return;let n=N(e);if(r.resettable&&n<0){O.value=-1;return}let i=v(0,n,t?.999999:1)*D.value,a=v(0,O.value-E.value,D.value-1),o=t?E.value+Math.floor(i):O.value;!t&&i>=a+1.5?o=E.value+Math.floor(i-.5):!t&&i(_(),s(`div`,{class:p([`flex gap-1 select-none`,[e.attached?`items-end`:`items-center`,D.value&&r.clicksContext.isMounted?``:`op50`]]),title:`Clicks in this slide: ${D.value}`},[a(`div`,{class:p([`flex items-center font-mono`,[e.compact?`gap-1 min-w-0 mr0`:`gap-0.2 min-w-16 mr1`,e.attached?`h-[22px]`:``]])},[a(`div`,{class:p([`i-carbon:cursor-1 text-sm op50`,e.compact?`ml-1`:``])},null,2),O.value>=0&&O.value!==o(999999)&&e.active?(_(),s(f,{key:0},[e.compact?g(``,!0):(_(),s(`div`,S)),a(`span`,null,[a(`span`,C,h(O.value),1),i[2]||=a(`span`,{op25:``,"text-sm":``},`/`,-1),a(`span`,w,h(m.value),1)])],64)):(_(),s(`div`,{key:1,op50:``,class:p(e.compact?``:`flex-auto pl1`)},[a(`span`,{class:p(e.compact?`inline-block text-center`:``),style:c(e.compact?{width:`${String(m.value).length*2+1}ch`,marginLeft:`-0.25ch`}:void 0)},h(m.value),7)],2))],2),a(`div`,{ref_key:`sliderEl`,ref:j,relative:``,"flex-auto":``,"font-mono":``,flex:`~`,"touch-none":``,class:p([e.attached?`h-[22px]`:`h5`,k.value?`op80`:``]),onPointerdownCapture:F,onPointermove:I,onPointerup:i[0]||=e=>u(M)?M.value=void 0:M=void 0,onPointercancel:i[1]||=e=>u(M)?M.value=void 0:M=void 0},[(_(!0),s(f,null,n(A.value,t=>(_(),s(`div`,{key:t,border:`y main`,"of-hidden":``,relative:``,class:p([t===0?`border-l`:``,t===0?e.attached?`rounded-tl`:`rounded-l`:``,t===m.value?`border-r`:``,t===m.value&&+t!=+O.value?e.attached?`rounded-tr`:`rounded-r`:``,e.attached?`border-b-0`:``]),style:c({width:D.value>0?`${1/D.value*100}%`:`100%`})},[a(`div`,{absolute:``,"inset-0":``,class:p(t<=O.value&&e.active?`bg-primary op15`:``)},null,2),+t==+O.value&&e.active?(_(),s(`div`,T)):g(``,!0),a(`div`,{class:p([+t==+O.value&&e.active?`text-primary font-bold op100`:`op30`,t===m.value?``:`border-r-2 border-main`]),"w-full":``,"h-full":``,"text-xs":``,flex:``,"items-center":``,"justify-center":``,"z-1":``},h(t),3)],6))),128))],34)],10,x))}}),D=[`innerHTML`],O=[`textContent`],k=[`textContent`],A=`slidev-note-fade`,j=`slidev-note-click-mark`,M=m({__name:`NoteDisplay`,props:{class:{},noteHtml:{},note:{},highlight:{type:Boolean,default:!0},placeholder:{},clicksContext:{},autoScroll:{type:Boolean}},emits:[`markerDblclick`,`markerClick`],setup(n,{emit:o}){let c=n,u=o,f=l(()=>c.clicksContext!=null&&c.noteHtml?.includes(j)),m=d(null);function g(){if(!m.value||!f.value)return;let e=Array.from(m.value.querySelectorAll(`.${j}`)),t=new Map,n=new Map,r=0;for(let i of e){let e=Number(i.dataset.clicks);t.set(i,e);let a=i,o=i.parentElement;for(;o&&a!==m.value;)n.has(o)||n.set(o,[[null,r]]),n.get(o).push([a,e]),a=o,o=o.parentElement;r=e}let i=new Map;for(let[e,t]of n){let n=!1,r=0;for(let a of Array.from(e.childNodes)){let o=!1;for(;a===t[r+1]?.[0];)o=!0,r++;if(o)continue;let s=a;if(a.nodeType===3){if(!a.textContent?.trim())continue;s=document.createElement(`span`),s.textContent=a.textContent,e.insertBefore(s,a),a.remove()}n||=r===0,i.set(s,t[r][1])}n||(t[0][1]=-1)}return e=>{let r=c.highlight;for(let[t,i]of n)t.classList.toggle(A,r&&!i.some(([t,n])=>n===e));for(let[t,n]of i)t.classList.toggle(A,r&&n!==e);for(let[n,i]of t)n.classList.remove(A),n.classList.toggle(`${j}-past`,r&&ie+1),n.ondblclick=e=>{r&&(u(`markerDblclick`,e,i),!e.defaultPrevented&&(c.clicksContext.current=i,e.stopPropagation(),e.stopImmediatePropagation()))},n.onclick=e=>{r&&u(`markerClick`,e,i)},r&&c.autoScroll&&i===e&&n.scrollIntoView({block:`center`,behavior:`smooth`})}}let v=d();return i(()=>[c.noteHtml,c.highlight],()=>{t(()=>{v.value=g()})},{immediate:!0}),e(()=>{g()}),r(()=>{let e=c.clicksContext?.current??999999;v.value?.(e)}),(e,t)=>n.noteHtml?(_(),s(`div`,{key:0,ref_key:`noteDisplay`,ref:m,class:p([`prose dark:prose-invert overflow-auto outline-none slidev-note`,[c.class,f.value?`slidev-note-with-clicks`:``]]),innerHTML:n.noteHtml},null,10,D)):n.note?(_(),s(`div`,{key:1,class:p([`prose dark:prose-invert overflow-auto outline-none slidev-note`,c.class])},[a(`p`,{textContent:h(n.note)},null,8,O)],2)):(_(),s(`div`,{key:2,class:p([`prose dark:prose-invert overflow-auto outline-none opacity-50 italic select-none slidev-note`,c.class])},[a(`p`,{textContent:h(c.placeholder||`No notes.`)},null,8,k)],2))}});export{E as n,M as t}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/NoteDisplay-DaGhiV97.js b/docs/dist/assets/slidev/NoteDisplay-DaGhiV97.js deleted file mode 100644 index 2297d214..00000000 --- a/docs/dist/assets/slidev/NoteDisplay-DaGhiV97.js +++ /dev/null @@ -1 +0,0 @@ -import{B as e,H as t,P as n,R as r,St as i,T as a,X as o,Z as s,_ as c,at as l,b as u,m as d,ut as f,v as p,vt as m,x as h,xt as g,yt as _}from"../modules/shiki-yoNnvMyB.js";import{c as v,o as y}from"./utils-ebkCohfA.js";import{rt as b}from"../index-hODKC6Hw.js";var x=[`title`],S={key:0,"flex-auto":``},C={"text-primary":``},w={op50:``,"text-sm":``},T={key:0,absolute:``,"inset-y-0":``,"right-0":``,"w-0.5":``,"bg-primary":``,"z-1":``},E=a({__name:`ClicksSlider`,props:{clicksContext:{},readonly:{type:Boolean},active:{type:Boolean,default:!0},resettable:{type:Boolean},compact:{type:Boolean},attached:{type:Boolean}},emits:[`activate`,`reset`],setup(n,{emit:r}){let a=n,o=r,s=c(()=>a.clicksContext.total),E=c(()=>y(0,a.clicksContext.clicksStart,s.value)),D=c(()=>s.value-E.value+1),O=c({get(){return a.resettable&&!a.active||a.clicksContext.current>s.value?-1:a.clicksContext.current},set(e){if(a.resettable&&e<0){o(`reset`),a.clicksContext.current=b;return}o(`activate`),a.clicksContext.current=e}}),k=c(()=>a.resettable&&O.value<0),A=c(()=>v(E.value,s.value+1)),j=f(),M;function N(e){let t=j.value.getBoundingClientRect();return(e.clientX-t.left)/Math.max(1,t.width)}function P(e,t){if(a.readonly||!j.value||!t&&!(e.buttons&1))return;let n=N(e);if(a.resettable&&n<0){O.value=-1;return}let r=y(0,n,t?.999999:1)*D.value,i=y(0,O.value-E.value,D.value-1),o=t?E.value+Math.floor(r):O.value;!t&&r>=i+1.5?o=E.value+Math.floor(r-.5):!t&&r(e(),h(`div`,{class:_([`flex gap-1 select-none`,[n.attached?`items-end`:`items-center`,D.value&&a.clicksContext.isMounted?``:`op50`]]),title:`Clicks in this slide: ${D.value}`},[p(`div`,{class:_([`flex items-center font-mono`,[n.compact?`gap-1 min-w-0 mr0`:`gap-0.2 min-w-16 mr1`,n.attached?`h-[22px]`:``]])},[p(`div`,{class:_([`i-carbon:cursor-1 text-sm op50`,n.compact?`ml-1`:``])},null,2),O.value>=0&&O.value!==m(999999)&&n.active?(e(),h(d,{key:0},[n.compact?u(``,!0):(e(),h(`div`,S)),p(`span`,null,[p(`span`,C,i(O.value),1),o[2]||=p(`span`,{op25:``,"text-sm":``},`/`,-1),p(`span`,w,i(s.value),1)])],64)):(e(),h(`div`,{key:1,op50:``,class:_(n.compact?``:`flex-auto pl1`)},[p(`span`,{class:_(n.compact?`inline-block text-center`:``),style:g(n.compact?{width:`${String(s.value).length*2+1}ch`,marginLeft:`-0.25ch`}:void 0)},i(s.value),7)],2))],2),p(`div`,{ref_key:`sliderEl`,ref:j,relative:``,"flex-auto":``,"font-mono":``,flex:`~`,"touch-none":``,class:_([n.attached?`h-[22px]`:`h5`,k.value?`op80`:``]),onPointerdownCapture:F,onPointermove:I,onPointerup:o[0]||=e=>l(M)?M.value=void 0:M=void 0,onPointercancel:o[1]||=e=>l(M)?M.value=void 0:M=void 0},[(e(!0),h(d,null,t(A.value,t=>(e(),h(`div`,{key:t,border:`y main`,"of-hidden":``,relative:``,class:_([t===0?`border-l`:``,t===0?n.attached?`rounded-tl`:`rounded-l`:``,t===s.value?`border-r`:``,t===s.value&&+t!=+O.value?n.attached?`rounded-tr`:`rounded-r`:``,n.attached?`border-b-0`:``]),style:g({width:D.value>0?`${1/D.value*100}%`:`100%`})},[p(`div`,{absolute:``,"inset-0":``,class:_(t<=O.value&&n.active?`bg-primary op15`:``)},null,2),+t==+O.value&&n.active?(e(),h(`div`,T)):u(``,!0),p(`div`,{class:_([+t==+O.value&&n.active?`text-primary font-bold op100`:`op30`,t===s.value?``:`border-r-2 border-main`]),"w-full":``,"h-full":``,"text-xs":``,flex:``,"items-center":``,"justify-center":``,"z-1":``},i(t),3)],6))),128))],34)],10,x))}}),D=[`innerHTML`],O=[`textContent`],k=[`textContent`],A=`slidev-note-fade`,j=`slidev-note-click-mark`,M=a({__name:`NoteDisplay`,props:{class:{},noteHtml:{},note:{},highlight:{type:Boolean,default:!0},placeholder:{},clicksContext:{},autoScroll:{type:Boolean}},emits:[`markerDblclick`,`markerClick`],setup(t,{emit:a}){let l=t,u=a,d=c(()=>l.clicksContext!=null&&l.noteHtml?.includes(j)),m=f(null);function g(){if(!m.value||!d.value)return;let e=Array.from(m.value.querySelectorAll(`.${j}`)),t=new Map,n=new Map,r=0;for(let i of e){let e=Number(i.dataset.clicks);t.set(i,e);let a=i,o=i.parentElement;for(;o&&a!==m.value;)n.has(o)||n.set(o,[[null,r]]),n.get(o).push([a,e]),a=o,o=o.parentElement;r=e}let i=new Map;for(let[e,t]of n){let n=!1,r=0;for(let a of Array.from(e.childNodes)){let o=!1;for(;a===t[r+1]?.[0];)o=!0,r++;if(o)continue;let s=a;if(a.nodeType===3){if(!a.textContent?.trim())continue;s=document.createElement(`span`),s.textContent=a.textContent,e.insertBefore(s,a),a.remove()}n||=r===0,i.set(s,t[r][1])}n||(t[0][1]=-1)}return e=>{let r=l.highlight;for(let[t,i]of n)t.classList.toggle(A,r&&!i.some(([t,n])=>n===e));for(let[t,n]of i)t.classList.toggle(A,r&&n!==e);for(let[n,i]of t)n.classList.remove(A),n.classList.toggle(`${j}-past`,r&&ie+1),n.ondblclick=e=>{r&&(u(`markerDblclick`,e,i),!e.defaultPrevented&&(l.clicksContext.current=i,e.stopPropagation(),e.stopImmediatePropagation()))},n.onclick=e=>{r&&u(`markerClick`,e,i)},r&&l.autoScroll&&i===e&&n.scrollIntoView({block:`center`,behavior:`smooth`})}}let v=f();return o(()=>[l.noteHtml,l.highlight],()=>{n(()=>{v.value=g()})},{immediate:!0}),r(()=>{g()}),s(()=>{let e=l.clicksContext?.current??999999;v.value?.(e)}),(n,r)=>t.noteHtml?(e(),h(`div`,{key:0,ref_key:`noteDisplay`,ref:m,class:_([`prose dark:prose-invert overflow-auto outline-none slidev-note`,[l.class,d.value?`slidev-note-with-clicks`:``]]),innerHTML:t.noteHtml},null,10,D)):t.note?(e(),h(`div`,{key:1,class:_([`prose dark:prose-invert overflow-auto outline-none slidev-note`,l.class])},[p(`p`,{textContent:i(t.note)},null,8,O)],2)):(e(),h(`div`,{key:2,class:_([`prose dark:prose-invert overflow-auto outline-none opacity-50 italic select-none slidev-note`,l.class])},[p(`p`,{textContent:i(l.placeholder||`No notes.`)},null,8,k)],2))}});export{E as n,M as t}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/NoteEditable-C2jELoYc.js b/docs/dist/assets/slidev/NoteEditable-C2jELoYc.js new file mode 100644 index 00000000..fe5130fb --- /dev/null +++ b/docs/dist/assets/slidev/NoteEditable-C2jELoYc.js @@ -0,0 +1 @@ +import{$ as e,N as t,X as n,Y as r,_t as i,b as a,bt as o,d as s,l as c,lt as l,mt as u,v as d,vt as f,w as p,z as m}from"../modules/shiki-BmLmNVDB.js";import{C as h,k as g,o as _}from"../modules/vue-5vwy5Re_.js";import{t as v}from"../index-BEBAY2Mg.js";import{t as y}from"./NoteDisplay-BAqwAo7Q.js";var b=[`placeholder`],x=p({__name:`NoteEditable`,props:{no:{type:Number,required:!0},class:{default:``},editing:{default:!1},style:{default:()=>({})},placeholder:{default:`No notes for this slide`},clicksContext:{type:Object},highlight:{default:!0},autoHeight:{default:!1}},emits:[`update:editing`,`markerDblclick`,`markerClick`],setup(p,{emit:x}){let S=p,C=x,w=h(S,`editing`,C,{passive:!0}),{info:T,update:E}=v(u(S,`no`)),D=l(``),O,{ignoreUpdates:k}=g(D,e=>{if(!w.value)return;let t=S.no;clearTimeout(O),O=setTimeout(()=>{E({note:e},t)},500)});r(()=>T.value?.note,(e=``)=>{w.value||(clearTimeout(O),k(()=>{D.value=e}))},{immediate:!0,flush:`sync`});let A=l(),j=l();n(()=>{w.value&&A.value?.focus()}),_(A,()=>{w.value=!1});function M(){!S.autoHeight||!A.value||!w.value||A.value.scrollHeight>A.value.clientHeight&&(A.value.style.height=`${A.value.scrollHeight}px`)}function N(e){w.value&&e.metaKey&&e.key===`s`&&(e.preventDefault(),E({note:D.value},S.no))}return r([D,w],()=>{t(()=>{M()})},{flush:`post`,immediate:!0}),(t,n)=>i(w)?e((m(),a(`textarea`,{key:1,ref_key:`inputEl`,ref:A,"onUpdate:modelValue":n[2]||=e=>D.value=e,class:f([`prose dark:prose-invert resize-none overflow-auto outline-none bg-transparent block border-primary border-2 slidev-note placeholder:op25`,[S.class,D.value?``:`italic`]]),style:o([S.style,j.value==null?{}:{height:`${j.value}px`}]),placeholder:p.placeholder,onKeydown:[n[3]||=s(e=>w.value=!1,[`esc`]),N]},null,46,b)),[[c,D.value]]):(m(),d(y,{key:0,class:f([`border-transparent border-2`,[S.class,D.value?``:`opacity-25 italic select-none`]]),style:o(S.style),note:D.value||p.placeholder,"note-html":i(T)?.noteHTML,"clicks-context":p.clicksContext,"auto-scroll":!p.autoHeight,highlight:S.highlight,onMarkerClick:n[0]||=(e,t)=>C(`markerClick`,e,t),onMarkerDblclick:n[1]||=(e,t)=>C(`markerDblclick`,e,t)},null,8,[`class`,`style`,`note`,`note-html`,`clicks-context`,`auto-scroll`,`highlight`]))}});export{x as t}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/NoteEditable-CvntlA3F.js b/docs/dist/assets/slidev/NoteEditable-CvntlA3F.js deleted file mode 100644 index e1c62e2b..00000000 --- a/docs/dist/assets/slidev/NoteEditable-CvntlA3F.js +++ /dev/null @@ -1 +0,0 @@ -import{B as e,P as t,T as n,X as r,Z as i,d as a,et as o,ht as s,l as c,ut as l,vt as u,x as d,xt as f,y as p,yt as m}from"../modules/shiki-yoNnvMyB.js";import{O as h,S as g,o as _}from"../modules/vue-ejhLULwH.js";import{t as v}from"../index-hODKC6Hw.js";import{t as y}from"./NoteDisplay-DaGhiV97.js";var b=[`placeholder`],x=n({__name:`NoteEditable`,props:{no:{type:Number,required:!0},class:{default:``},editing:{default:!1},style:{default:()=>({})},placeholder:{default:`No notes for this slide`},clicksContext:{type:Object},highlight:{default:!0},autoHeight:{default:!1}},emits:[`update:editing`,`markerDblclick`,`markerClick`],setup(n,{emit:x}){let S=n,C=x,w=g(S,`editing`,C,{passive:!0}),{info:T,update:E}=v(s(S,`no`)),D=l(``),O,{ignoreUpdates:k}=h(D,e=>{if(!w.value)return;let t=S.no;clearTimeout(O),O=setTimeout(()=>{E({note:e},t)},500)});r(()=>T.value?.note,(e=``)=>{w.value||(clearTimeout(O),k(()=>{D.value=e}))},{immediate:!0,flush:`sync`});let A=l(),j=l();i(()=>{w.value&&A.value?.focus()}),_(A,()=>{w.value=!1});function M(){!S.autoHeight||!A.value||!w.value||A.value.scrollHeight>A.value.clientHeight&&(A.value.style.height=`${A.value.scrollHeight}px`)}function N(e){w.value&&e.metaKey&&e.key===`s`&&(e.preventDefault(),E({note:D.value},S.no))}return r([D,w],()=>{t(()=>{M()})},{flush:`post`,immediate:!0}),(t,r)=>u(w)?o((e(),d(`textarea`,{key:1,ref_key:`inputEl`,ref:A,"onUpdate:modelValue":r[2]||=e=>D.value=e,class:m([`prose dark:prose-invert resize-none overflow-auto outline-none bg-transparent block border-primary border-2 slidev-note placeholder:op25`,[S.class,D.value?``:`italic`]]),style:f([S.style,j.value==null?{}:{height:`${j.value}px`}]),placeholder:n.placeholder,onKeydown:[r[3]||=a(e=>w.value=!1,[`esc`]),N]},null,46,b)),[[c,D.value]]):(e(),p(y,{key:0,class:m([`border-transparent border-2`,[S.class,D.value?``:`opacity-25 italic select-none`]]),style:f(S.style),note:D.value||n.placeholder,"note-html":u(T)?.noteHTML,"clicks-context":n.clicksContext,"auto-scroll":!n.autoHeight,highlight:S.highlight,onMarkerClick:r[0]||=(e,t)=>C(`markerClick`,e,t),onMarkerDblclick:r[1]||=(e,t)=>C(`markerDblclick`,e,t)},null,8,[`class`,`style`,`note`,`note-html`,`clicks-context`,`auto-scroll`,`highlight`]))}});export{x as t}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/TimerBar-BQGouMOn.js b/docs/dist/assets/slidev/TimerBar-BQGouMOn.js new file mode 100644 index 00000000..07760540 --- /dev/null +++ b/docs/dist/assets/slidev/TimerBar-BQGouMOn.js @@ -0,0 +1 @@ +import{Q as e,S as t,V as n,_t as r,a as i,b as a,bt as o,g as s,m as c,mt as l,st as u,vt as d,w as f,y as p,z as m}from"../modules/shiki-BmLmNVDB.js";import{n as h}from"../utils-T1it7q9-.js";import{s as g}from"./env-DWr22PMh.js";import{F as _}from"../modules/vue-5vwy5Re_.js";import{o as v,v as y}from"../index-BEBAY2Mg.js";var b={class:`relative flex gap-px`},x=f({__name:`CurrentProgressBar`,props:{clicksContext:{},current:{}},setup(l){let u=l,f=y(),h=s(()=>u.clicksContext??f.clicksContext.value),g=s(()=>u.current??f.currentSlideNo.value),{total:_}=f;return(s,l)=>(m(),a(`div`,b,[(m(!0),a(c,null,n(r(_)-1,n=>(m(),a(`div`,{key:n,class:d([`border-x border-b border-main h-4px transition-all`,n[n===g.value?(m(),a(`div`,{key:0,class:`h-full bg-primary op75 transition-all`,style:o({width:`${h.value.total===0?0:h.value.current/(h.value.total+1)*100}%`})},null,4)):p(``,!0)]),_:2},1024)],6))),128))]))}});function S(){let e=s(()=>g.timer||`stopwatch`),t=s(()=>h(g.duration).seconds),n=_(100,{controls:!0}),r=l(v,`timer`),i=s(()=>r.value?.status),a=s(()=>(n.counter.value,r.value.status===`stopped`||!r.value.startedAt?0:r.value.status===`paused`?r.value.pausedAt-r.value.startedAt:Date.now()-r.value.startedAt)),o=s(()=>a.value/1e3),c=s(()=>o.value/t.value*100),u=s(()=>{if(e.value===`stopwatch`&&(r.value.status===`stopped`||!r.value.startedAt))return{h:``,m:`-`,s:`--`,ms:`-`};let n=e.value===`countdown`?t.value*1e3-a.value:a.value,i=Math.floor(n/1e3/60/60).toString();i===`0`&&(i=``);let o=Math.floor(n/1e3/60%60).toString();i&&(o=o.padStart(2,`0`));let s=Math.floor(n/1e3%60).toString().padStart(2,`0`),c=Math.floor(n%1e3/100).toString();return{h:i,m:o,s,ms:c}});function d(){n.pause(),r.value={status:`stopped`,slides:{},startedAt:0,pausedAt:0}}function f(){r.value&&(r.value?.status===`stopped`?(r.value.status=`running`,r.value.startedAt=Date.now()):r.value.status===`paused`&&(r.value.status=`running`,r.value.startedAt=Date.now()-(r.value.pausedAt-r.value.startedAt)),n.resume())}function p(){r.value.status=`paused`,r.value.pausedAt=Date.now(),n.pause()}function m(){r.value.status===`running`?p():f()}return{state:r,status:i,timer:u,reset:d,toggle:m,resume:f,pause:p,passed:o,percentage:c,duration:t,mode:e}}var C={class:`border-b mt-px border-main relative flex h-4px`},w=f({__name:`TimerBar`,setup(e){let t=u(S()),n=s(()=>t.status===`stopped`?`op50`:t.status===`paused`?`bg-blue`:t.percentage>100?`bg-red`:t.percentage>80?`bg-yellow`:`bg-green`);return(e,r)=>(m(),a(`div`,C,[t.status===`stopped`?p(``,!0):(m(),a(`div`,{key:0,class:d([`h-4px`,n.value]),style:o({width:`${t.percentage}%`})},null,6))]))}});export{S as n,x as r,w as t}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/TimerBar-DRcu8SU0.js b/docs/dist/assets/slidev/TimerBar-DRcu8SU0.js deleted file mode 100644 index b3737a4c..00000000 --- a/docs/dist/assets/slidev/TimerBar-DRcu8SU0.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as e,B as t,C as n,H as r,T as i,_ as a,a as o,b as s,ct as c,ht as l,m as u,vt as d,x as f,xt as p,yt as m}from"../modules/shiki-yoNnvMyB.js";import{n as h}from"./utils-ebkCohfA.js";import{P as g}from"../modules/vue-ejhLULwH.js";import{St as _,_ as v,o as y}from"../index-hODKC6Hw.js";var b={class:`relative flex gap-px`},x=i({__name:`CurrentProgressBar`,props:{clicksContext:{},current:{}},setup(i){let c=i,l=v(),h=a(()=>c.clicksContext??l.clicksContext.value),g=a(()=>c.current??l.currentSlideNo.value),{total:_}=l;return(i,a)=>(t(),f(`div`,b,[(t(!0),f(u,null,r(d(_)-1,r=>(t(),f(`div`,{key:r,class:m([`border-x border-b border-main h-4px transition-all`,r[r===g.value?(t(),f(`div`,{key:0,class:`h-full bg-primary op75 transition-all`,style:p({width:`${h.value.total===0?0:h.value.current/(h.value.total+1)*100}%`})},null,4)):s(``,!0)]),_:2},1024)],6))),128))]))}});function S(){let e=a(()=>_.timer||`stopwatch`),t=a(()=>h(_.duration).seconds),n=g(100,{controls:!0}),r=l(y,`timer`),i=a(()=>r.value?.status),o=a(()=>(n.counter.value,r.value.status===`stopped`||!r.value.startedAt?0:r.value.status===`paused`?r.value.pausedAt-r.value.startedAt:Date.now()-r.value.startedAt)),s=a(()=>o.value/1e3),c=a(()=>s.value/t.value*100),u=a(()=>{if(e.value===`stopwatch`&&(r.value.status===`stopped`||!r.value.startedAt))return{h:``,m:`-`,s:`--`,ms:`-`};let n=e.value===`countdown`?t.value*1e3-o.value:o.value,i=Math.floor(n/1e3/60/60).toString();i===`0`&&(i=``);let a=Math.floor(n/1e3/60%60).toString();i&&(a=a.padStart(2,`0`));let s=Math.floor(n/1e3%60).toString().padStart(2,`0`),c=Math.floor(n%1e3/100).toString();return{h:i,m:a,s,ms:c}});function d(){n.pause(),r.value={status:`stopped`,slides:{},startedAt:0,pausedAt:0}}function f(){r.value&&(r.value?.status===`stopped`?(r.value.status=`running`,r.value.startedAt=Date.now()):r.value.status===`paused`&&(r.value.status=`running`,r.value.startedAt=Date.now()-(r.value.pausedAt-r.value.startedAt)),n.resume())}function p(){r.value.status=`paused`,r.value.pausedAt=Date.now(),n.pause()}function m(){r.value.status===`running`?p():f()}return{state:r,status:i,timer:u,reset:d,toggle:m,resume:f,pause:p,passed:s,percentage:c,duration:t,mode:e}}var C={class:`border-b mt-px border-main relative flex h-4px`},w=i({__name:`TimerBar`,setup(e){let n=c(S()),r=a(()=>n.status===`stopped`?`op50`:n.status===`paused`?`bg-blue`:n.percentage>100?`bg-red`:n.percentage>80?`bg-yellow`:`bg-green`);return(e,i)=>(t(),f(`div`,C,[n.status===`stopped`?s(``,!0):(t(),f(`div`,{key:0,class:m([`h-4px`,r.value]),style:p({width:`${n.percentage}%`})},null,6))]))}});export{S as n,x as r,w as t}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/VClicks-241EYX7i.js b/docs/dist/assets/slidev/VClicks-241EYX7i.js deleted file mode 100644 index a2dfeab1..00000000 --- a/docs/dist/assets/slidev/VClicks-241EYX7i.js +++ /dev/null @@ -1 +0,0 @@ -import{B as e,C as t,G as n,O as r,R as i,T as a,et as o,j as s,m as c,p as l,y as u,z as d}from"../modules/shiki-yoNnvMyB.js";import{a as f,l as p}from"./utils-ebkCohfA.js";import{nt as m,p as h}from"../index-hODKC6Hw.js";var g=a({__name:`VClickGap`,props:{size:{type:[String,Number],default:1}},setup(t){let n=t,{$clicksContext:r}=m(),a=h(),o=+n.size;return Number.isNaN(o)&&(console.warn(`[slidev] Invalid size for VClickGap: ${n.size}`),o=1),i(()=>{let e=r.currentOffset+o-1;r.register(a,{max:e,delta:o})}),d(()=>{r.unregister(a)}),(t,n)=>(e(),u(c))}}),_=[`ul`,`ol`],v=/[\s,]+/,y=a({props:{depth:{type:[Number,String],default:1},every:{type:[Number,String],default:1},at:{type:[Number,String],default:`+1`},hide:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},animation:{type:[String,Array],default:void 0},handleSpecialElements:{type:Boolean,default:!0}},render(){let e=+this.every,i=f(this.at),a=typeof i==`string`,c=this.$slots.default?.();if(i==null||!c)return c;let u=n(`click`),d=(e,t)=>{let n={hide:this.hide};return typeof this.animation==`string`?this.animation.split(v).forEach(e=>{e&&(n[e]=!0)}):Array.isArray(this.animation)&&this.animation.forEach(e=>n[e]=!0),this.fade&&(n.fade=!0),o(e,[[u,t,``,n]])},m=e=>e.flatMap(e=>s(e)&&typeof e.type==`symbol`&&Array.isArray(e.children)?m(e.children):[e]);c=m(p(c));let h=(e,t=1)=>m(e).map(e=>s(e)?_.includes(e.type)&&Array.isArray(e.children)?r(e,{},x(e.children,t+1)):r(e):e),y=1,b=0,x=(t,n=1)=>m(t).map(t=>{if(!s(t)||t.type===l)return t;let o=+i+Math.ceil(y++/e)-1,c;c=n<+this.depth&&Array.isArray(t.children)?r(t,{},h(t.children,n)):r(t);let u=o-b;return b=o,d(c,a?u>=0?`+${u}`:`${u}`:o)}),S=()=>t(g,{size:+i+Math.ceil((y-1)/e)-1-b});if(this.handleSpecialElements){if(c.length===1&&_.includes(c[0].type)&&Array.isArray(c[0].children))return r(c[0],{},[...x(c[0].children),S()]);if(c.length===1&&c[0].type===`table`){let e=c[0];if(Array.isArray(e.children))return r(e,{},e.children.map(e=>s(e)?e.type===`tbody`&&Array.isArray(e.children)?r(e,{},[...x(e.children),S()]):r(e):e))}}return[...x(c),S()]}});export{y as t}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/center-fwMEwbLV.js b/docs/dist/assets/slidev/center-fwMEwbLV.js deleted file mode 100644 index 6724b2ef..00000000 --- a/docs/dist/assets/slidev/center-fwMEwbLV.js +++ /dev/null @@ -1 +0,0 @@ -import{B as e,U as t,v as n,x as r}from"../modules/shiki-yoNnvMyB.js";import{mt as i}from"../index-hODKC6Hw.js";var a={},o={class:`slidev-layout center h-full grid place-content-center`},s={class:`my-auto`};function c(i,a){return e(),r(`div`,o,[n(`div`,s,[t(i.$slots,`default`)])])}var l=i(a,[[`render`,c]]);export{l as t}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/default-BuNamc3V.js b/docs/dist/assets/slidev/default-BuNamc3V.js deleted file mode 100644 index 99850208..00000000 --- a/docs/dist/assets/slidev/default-BuNamc3V.js +++ /dev/null @@ -1 +0,0 @@ -import{B as e,U as t,x as n}from"../modules/shiki-yoNnvMyB.js";import{mt as r}from"../index-hODKC6Hw.js";var i={},a={class:`slidev-layout default`};function o(r,i){return e(),n(`div`,a,[t(r.$slots,`default`)])}var s=r(i,[[`render`,o]]);export{s as t}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/default-CswKUK6M.js b/docs/dist/assets/slidev/default-CswKUK6M.js new file mode 100644 index 00000000..346daca2 --- /dev/null +++ b/docs/dist/assets/slidev/default-CswKUK6M.js @@ -0,0 +1 @@ +import{H as e,b as t,z as n}from"../modules/shiki-BmLmNVDB.js";import{t as r}from"../_plugin-vue_export-helper-BDNMzG2s.js";var i={},a={class:`slidev-layout default`};function o(r,i){return n(),t(`div`,a,[e(r.$slots,`default`)])}var s=r(i,[[`render`,o]]);export{s as t}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/entry-CBP47zd4.js b/docs/dist/assets/slidev/entry-CBP47zd4.js new file mode 100644 index 00000000..f77248e5 --- /dev/null +++ b/docs/dist/assets/slidev/entry-CBP47zd4.js @@ -0,0 +1 @@ +import{Q as e,S as t,U as n,_ as r,b as i,x as a,z as o}from"../modules/shiki-BmLmNVDB.js";import{t as s}from"../_plugin-vue_export-helper-BDNMzG2s.js";var c={},l={class:`h-full w-full flex items-center justify-center gap-5 lt-md:flex-col`};function u(s,c){let u=n(`RouterLink`);return o(),i(`div`,l,[t(u,{to:`/`,class:`page-link`},{default:e(()=>[...c[0]||=[r(`div`,{class:`i-carbon:presentation-file`},null,-1),a(` Slides `,-1)]]),_:1}),t(u,{to:`/presenter`,class:`page-link`},{default:e(()=>[...c[1]||=[r(`div`,{class:`i-carbon:user-speaker`},null,-1),a(` Presenter `,-1)]]),_:1}),t(u,{to:`/notes`,class:`page-link`},{default:e(()=>[...c[2]||=[r(`div`,{class:`i-carbon:catalog`},null,-1),a(` Notes `,-1)]]),_:1}),t(u,{to:`/overview`,class:`page-link`},{default:e(()=>[...c[3]||=[r(`div`,{class:`i-carbon:list-boxes`},null,-1),a(` Overview `,-1)]]),_:1})])}var d=s(c,[[`render`,u],[`__scopeId`,`data-v-6762281a`]]);export{d as default}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/entry-C_dGizEF.js b/docs/dist/assets/slidev/entry-C_dGizEF.js deleted file mode 100644 index 46831da0..00000000 --- a/docs/dist/assets/slidev/entry-C_dGizEF.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as e,B as t,C as n,S as r,W as i,v as a,x as o}from"../modules/shiki-yoNnvMyB.js";import{mt as s}from"../index-hODKC6Hw.js";var c={},l={class:`h-full w-full flex items-center justify-center gap-5 lt-md:flex-col`};function u(s,c){let u=i(`RouterLink`);return t(),o(`div`,l,[n(u,{to:`/`,class:`page-link`},{default:e(()=>[...c[0]||=[a(`div`,{class:`i-carbon:presentation-file`},null,-1),r(` Slides `,-1)]]),_:1}),n(u,{to:`/presenter`,class:`page-link`},{default:e(()=>[...c[1]||=[a(`div`,{class:`i-carbon:user-speaker`},null,-1),r(` Presenter `,-1)]]),_:1}),n(u,{to:`/notes`,class:`page-link`},{default:e(()=>[...c[2]||=[a(`div`,{class:`i-carbon:catalog`},null,-1),r(` Notes `,-1)]]),_:1}),n(u,{to:`/overview`,class:`page-link`},{default:e(()=>[...c[3]||=[a(`div`,{class:`i-carbon:list-boxes`},null,-1),r(` Overview `,-1)]]),_:1})])}var d=s(c,[[`render`,u],[`__scopeId`,`data-v-21750571`]]);export{d as default}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/env-DWr22PMh.js b/docs/dist/assets/slidev/env-DWr22PMh.js new file mode 100644 index 00000000..3010df98 --- /dev/null +++ b/docs/dist/assets/slidev/env-DWr22PMh.js @@ -0,0 +1 @@ +import{g as e}from"../modules/shiki-BmLmNVDB.js";import{o as t}from"../utils-T1it7q9-.js";var n={theme:`default`,title:`Real Obsidian Test`,titleTemplate:`%s - Slidev`,addons:[],remoteAssets:!1,monaco:!0,monacoTypesSource:`local`,monacoTypesAdditionalPackages:[],monacoTypesIgnorePackages:[],monacoRunAdditionalDeps:[],monacoRunUseStrict:!0,download:!1,export:{},info:!1,highlighter:`shiki`,twoslash:!0,lineNumbers:!1,colorSchema:`auto`,routerMode:`history`,aspectRatio:1.7777777777777777,canvasWidth:980,exportFilename:``,selectable:!1,themeConfig:{},fonts:{sans:[`"Avenir Next"`,`"Nunito Sans"`,`ui-sans-serif`,`system-ui`,`-apple-system`,`BlinkMacSystemFont`,`"Segoe UI"`,`Roboto`,`"Helvetica Neue"`,`Arial`,`"Noto Sans"`,`sans-serif`,`"Apple Color Emoji"`,`"Segoe UI Emoji"`,`"Segoe UI Symbol"`,`"Noto Color Emoji"`],serif:[`ui-serif`,`Georgia`,`Cambria`,`"Times New Roman"`,`Times`,`serif`],mono:[`"Fira Code"`,`ui-monospace`,`SFMono-Regular`,`Menlo`,`Monaco`,`Consolas`,`"Liberation Mono"`,`"Courier New"`,`monospace`],webfonts:[`Nunito Sans`,`Fira Code`],provider:`google`,local:[`Avenir Next`],italic:!1,weights:[`200`,`400`,`600`]},favicon:`https://cdn.jsdelivr.net/gh/slidevjs/slidev/assets/favicon.png`,drawings:{enabled:!0,persist:!1,presenterOnly:!1,syncAll:!0},plantUmlServer:`https://www.plantuml.com/plantuml`,codeCopy:!0,magicMoveCopy:!0,author:``,record:`dev`,css:`unocss`,presenter:!0,browserExporter:`dev`,htmlAttrs:{},transition:null,editor:!0,contextMenu:null,wakeLock:!0,mdc:!1,comark:!1,seoMeta:{},notesAutoRuby:{},duration:`30min`,timer:`stopwatch`,magicMoveDuration:800,preloadImages:!0,clickAnimation:``,background:`https://source.unsplash.com/collection/94734566/1920x1080`,class:`text-center`,slidesTitle:`Real Obsidian Test - Slidev`},r=`build`,i=e(()=>n.aspectRatio),a=e(()=>n.canvasWidth),o=e(()=>Math.ceil(a.value/i.value)),s=e(()=>t(n.themeConfig||{},(e,t)=>[`--slidev-theme-${e}`,t])),c=n.slidesTitle;export{c as a,a as i,i as n,s as o,o as r,n as s,r as t}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/md-CRLDuEzr.js b/docs/dist/assets/slidev/md-CRLDuEzr.js deleted file mode 100644 index 84b174c3..00000000 --- a/docs/dist/assets/slidev/md-CRLDuEzr.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as e,B as t,C as n,D as r,S as i,T as a,U as o,_ as s,bt as c,v as l,vt as u,x as d,xt as f,y as p}from"../modules/shiki-yoNnvMyB.js";import{nt as m,tt as h}from"../index-hODKC6Hw.js";import{a as g}from"../modules/unplugin-icons-SB3WWAiu.js";function _(e){return e.startsWith(`/`)?`./`+e.slice(1):e}function v(e,t=!1){let n=e&&[`#`,`rgb`,`hsl`].some(t=>e.indexOf(t)===0),r={background:n?e:void 0,color:e&&!n?`white`:void 0,backgroundImage:n?void 0:e?t?`linear-gradient(#0005, #0008), url(${_(e)})`:`url("${_(e)}")`:void 0,backgroundRepeat:`no-repeat`,backgroundPosition:`center`,backgroundSize:`cover`};return r.background||delete r.background,r}var y={class:`my-auto w-full`},b=a({__name:`cover`,props:{background:{default:``}},setup(e){let{$slidev:n,$nav:r,$clicksContext:i,$clicks:a,$page:c,$renderContext:u,$frontmatter:p}=m(),h=e,g=s(()=>v(h.background,!0));return(e,n)=>(t(),d(`div`,{class:`slidev-layout cover`,style:f(g.value)},[l(`div`,y,[o(e.$slots,`default`)])],4))}}),x={class:`pt-12`},S={__name:`test-slidev-manual.md__slidev_1`,setup(a){let{$slidev:o,$nav:s,$clicksContext:d,$clicks:f,$page:_,$renderContext:v,$frontmatter:y}=m();return d.setup(),(a,s)=>{let d=g;return t(),p(b,c(r(u(h)(u(y),0))),{default:e(()=>[s[2]||=l(`h1`,null,`Introduction to Machine Learning`,-1),s[3]||=l(`p`,null,`Understanding AI’s Most Powerful Subset`,-1),l(`div`,x,[l(`span`,{onClick:s[0]||=(...e)=>u(o).nav.next&&u(o).nav.next(...e),class:`px-2 py-1 rounded cursor-pointer`,hover:`bg-white bg-opacity-10`},[s[1]||=i(` Press Space for next page `,-1),n(d,{class:`inline`})])])]),_:1},16)}}};export{S as default}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/md-CVG46JSc.js b/docs/dist/assets/slidev/md-CVG46JSc.js new file mode 100644 index 00000000..bbd1378b --- /dev/null +++ b/docs/dist/assets/slidev/md-CVG46JSc.js @@ -0,0 +1,13 @@ +import{E as e,H as t,L as n,Q as r,R as i,S as a,X as o,_ as s,_t as c,b as l,bt as u,g as d,k as f,lt as p,v as m,vt as h,w as g,x as _,xt as v,y,yt as b,z as x}from"../modules/shiki-BmLmNVDB.js";import{s as S}from"./env-DWr22PMh.js";import{u as C}from"../modules/vue-5vwy5Re_.js";import{at as w,it as T,m as E,nt as D,p as O,rt as k}from"../index-BEBAY2Mg.js";import{t as A}from"./default-CswKUK6M.js";import{a as j,i as M}from"../modules/unplugin-icons-CHgNQGBt.js";var N=g({__name:`TitleIcon`,props:{title:{}},setup(e){let t={pnpm:`i-vscode-icons:file-type-light-pnpm`,npm:`i-vscode-icons:file-type-npm`,yarn:`i-vscode-icons:file-type-yarn`,bun:`i-vscode-icons:file-type-bun`,deno:`i-vscode-icons:file-type-deno`,vue:`i-vscode-icons:file-type-vue`,svelte:`i-vscode-icons:file-type-svelte`,angular:`i-vscode-icons:file-type-angular`,react:`i-vscode-icons:file-type-reactjs`,next:`i-vscode-icons:file-type-light-next`,nuxt:`i-vscode-icons:file-type-nuxt`,solid:`logos:solidjs-icon`,astro:`i-vscode-icons:file-type-light-astro`,rollup:`i-vscode-icons:file-type-rollup`,webpack:`i-vscode-icons:file-type-webpack`,vite:`i-vscode-icons:file-type-vite`,esbuild:`i-vscode-icons:file-type-esbuild`,"package.json":`i-vscode-icons:file-type-node`,"tsconfig.json":`i-vscode-icons:file-type-tsconfig`,".npmrc":`i-vscode-icons:file-type-npm`,".editorconfig":`i-vscode-icons:file-type-editorconfig`,".eslintrc":`i-vscode-icons:file-type-eslint`,".eslintignore":`i-vscode-icons:file-type-eslint`,"eslint.config":`i-vscode-icons:file-type-eslint`,".gitignore":`i-vscode-icons:file-type-git`,".gitattributes":`i-vscode-icons:file-type-git`,".env":`i-vscode-icons:file-type-dotenv`,".env.example":`i-vscode-icons:file-type-dotenv`,".vscode":`i-vscode-icons:file-type-vscode`,"tailwind.config":`vscode-icons:file-type-tailwind`,"uno.config":`i-vscode-icons:file-type-unocss`,"unocss.config":`i-vscode-icons:file-type-unocss`,".oxlintrc":`i-vscode-icons:file-type-oxlint`,"vue.config":`i-vscode-icons:file-type-vueconfig`,".mts":`i-vscode-icons:file-type-typescript`,".cts":`i-vscode-icons:file-type-typescript`,".ts":`i-vscode-icons:file-type-typescript`,".tsx":`i-vscode-icons:file-type-typescript`,".mjs":`i-vscode-icons:file-type-js`,".cjs":`i-vscode-icons:file-type-js`,".json":`i-vscode-icons:file-type-json`,".js":`i-vscode-icons:file-type-js`,".jsx":`i-vscode-icons:file-type-js`,".md":`i-vscode-icons:file-type-markdown`,".py":`i-vscode-icons:file-type-python`,".ico":`i-vscode-icons:file-type-favicon`,".html":`i-vscode-icons:file-type-html`,".css":`i-vscode-icons:file-type-css`,".scss":`i-vscode-icons:file-type-scss`,".yml":`i-vscode-icons:file-type-light-yaml`,".yaml":`i-vscode-icons:file-type-light-yaml`,".php":`i-vscode-icons:file-type-php`,".svg":`i-vscode-icons:file-type-svg`};function n(e){let n=e.match(/~([^~]+)~/g);if(n&&n.length>0)return n[0].slice(1,-1);let r=Object.keys(t).sort((e,t)=>t.length-e.length);for(let n of r)if(e.toLowerCase().includes(n.toLowerCase()))return t[n];return``}return(t,r)=>n(e.title)?(x(),l(`div`,{key:0,class:h(`${n(e.title)} w-3.5 h-3.5 relative`)},null,2)):y(``,!0)}}),P=[`data-title`],F={key:0,class:`slidev-code-block-title`},I={class:`leading-1em`},L=[`title`],R=g({__name:`CodeBlockWrapper`,props:{ranges:{type:Array,default:()=>[]},finally:{type:[String,Number],default:`last`},startLine:{type:Number,default:1},lines:{type:Boolean,default:S.lineNumbers},at:{type:[String,Number],default:`+1`},maxHeight:{type:String,default:void 0},title:{type:String,default:``}},setup(e){let r=e,{$clicksContext:g}=k(),_=p(),b=O();i(()=>{g.unregister(b)}),o(()=>{_.value?.classList.toggle(`slidev-code-line-numbers`,r.lines)}),n(()=>{if(!g||!r.ranges?.length)return;let e=g.calculateSince(r.at,r.ranges.length-1);g.register(b,e);let t=d(()=>e?Math.max(0,g.current-e.start+1):w),n=d(()=>r.finally===`last`?r.ranges.at(-1):r.finally.toString());o(()=>{if(!_.value)return;let e=r.ranges[t.value]??n.value,i=e===`hide`;_.value.classList.toggle(T,i),i&&(e=r.ranges[t.value+1]??n.value);let a=_.value.querySelector(`.shiki`),o=Array.from(a.querySelectorAll(`code > .line`)),s=o.length;if(E(e,s,r.startLine,e=>[o[e]]),r.maxHeight){let e=Array.from(a.querySelectorAll(`.line.highlighted`));e.reduce((e,t)=>t.offsetHeight+e,0)>_.value.offsetHeight?e[0].scrollIntoView({behavior:`smooth`,block:`start`}):e.length>0&&e[Math.round((e.length-1)/2)].scrollIntoView({behavior:`smooth`,block:`center`})}})});let{copied:D,copy:A}=C();function R(){let e=_.value?.querySelector(`.slidev-code`)?.textContent;e&&A(e)}let z=f(`activeTitle`,null),B=d(()=>z===null&&r.title);return(n,i)=>{let o=M,d=j;return x(),l(`div`,{ref_key:`el`,ref:_,class:h([`slidev-code-wrapper relative group`,{"slidev-code-line-numbers":r.lines,active:c(z)===e.title}]),style:u({"max-height":r.maxHeight,"overflow-y":r.maxHeight?`scroll`:void 0,"--start":r.startLine}),"data-title":e.title},[B.value?(x(),l(`div`,F,[a(N,{title:e.title},null,8,[`title`]),s(`div`,I,v(e.title.replace(/~([^~]+)~/g,``).trim()),1)])):y(``,!0),t(n.$slots,`default`),c(S).codeCopy?(x(),l(`button`,{key:1,class:h([`slidev-code-copy absolute right-0 transition opacity-0 group-hover:opacity-20 hover:!opacity-100`,B.value?`top-10`:`top-0`]),title:c(D)?`Copied`:`Copy`,onClick:i[0]||=e=>R()},[c(D)?(x(),m(o,{key:0,class:`p-2 w-8 h-8`})):(x(),m(d,{key:1,class:`p-2 w-8 h-8`}))],10,L)):y(``,!0)],14,P)}}}),z={__name:`test-presentation.md__slidev_3`,setup(t){let{$slidev:n,$nav:i,$clicksContext:o,$clicks:l,$page:u,$renderContext:d,$frontmatter:f}=k();return o.setup(),(t,n)=>{let i=R;return x(),m(A,b(e(c(D)(c(f),2))),{default:r(()=>[n[1]||=s(`h1`,null,`Code Example`,-1),a(i,{title:``,ranges:[]},{default:r(()=>[...n[0]||=[s(`pre`,{class:`shiki shiki-themes vitesse-dark vitesse-light slidev-code`,style:{"--shiki-dark":`#dbd7caee`,"--shiki-light":`#393a34`,"--shiki-dark-bg":`#121212`,"--shiki-light-bg":`#ffffff`}},[s(`code`,{class:`language-typescript`},[s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-dark":`#CB7676`,"--shiki-light":`#AB5959`}},`interface`),s(`span`,{style:{"--shiki-dark":`#5DA994`,"--shiki-light":`#2E8F82`}},` Presentation`),s(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},` {`)]),_(` +`),s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-dark":`#BD976A`,"--shiki-light":`#B07D48`}},` title`),s(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`: `),s(`span`,{style:{"--shiki-dark":`#5DA994`,"--shiki-light":`#2E8F82`}},`string`),s(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`;`)]),_(` +`),s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-dark":`#BD976A`,"--shiki-light":`#B07D48`}},` slides`),s(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`: `),s(`span`,{style:{"--shiki-dark":`#5DA994`,"--shiki-light":`#2E8F82`}},`number`),s(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`;`)]),_(` +`),s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-dark":`#BD976A`,"--shiki-light":`#B07D48`}},` standalone`),s(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`: `),s(`span`,{style:{"--shiki-dark":`#5DA994`,"--shiki-light":`#2E8F82`}},`boolean`),s(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`;`)]),_(` +`),s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`}`)]),_(` +`),s(`span`,{class:`line`}),_(` +`),s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-dark":`#CB7676`,"--shiki-light":`#AB5959`}},`const `),s(`span`,{style:{"--shiki-dark":`#BD976A`,"--shiki-light":`#B07D48`}},`test`),s(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`: `),s(`span`,{style:{"--shiki-dark":`#5DA994`,"--shiki-light":`#2E8F82`}},`Presentation`),s(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},` =`),s(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},` {`)]),_(` +`),s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-dark":`#B8A965`,"--shiki-light":`#998418`}},` title`),s(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`: `),s(`span`,{style:{"--shiki-dark":`#C98A7D77`,"--shiki-light":`#B5695977`}},`"`),s(`span`,{style:{"--shiki-dark":`#C98A7D`,"--shiki-light":`#B56959`}},`Obsidian NotEMD Test`),s(`span`,{style:{"--shiki-dark":`#C98A7D77`,"--shiki-light":`#B5695977`}},`"`),s(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`)]),_(` +`),s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-dark":`#B8A965`,"--shiki-light":`#998418`}},` slides`),s(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`: `),s(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},`5`),s(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`)]),_(` +`),s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-dark":`#B8A965`,"--shiki-light":`#998418`}},` standalone`),s(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`: `),s(`span`,{style:{"--shiki-dark":`#4D9375`,"--shiki-light":`#1E754F`}},`true`)]),_(` +`),s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`};`)]),_(` +`),s(`span`,{class:`line`}),_(` +`),s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-dark":`#BD976A`,"--shiki-light":`#B07D48`}},`console`),s(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),s(`span`,{style:{"--shiki-dark":`#80A665`,"--shiki-light":`#59873A`}},`log`),s(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),s(`span`,{style:{"--shiki-dark":`#C98A7D77`,"--shiki-light":`#B5695977`}},"`"),s(`span`,{style:{"--shiki-dark":`#C98A7D`,"--shiki-light":`#B56959`}},`Testing `),s(`span`,{style:{"--shiki-dark":`#4D9375`,"--shiki-light":`#1E754F`}},"${"),s(`span`,{style:{"--shiki-dark":`#C98A7D`,"--shiki-light":`#B56959`}},`test`),s(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),s(`span`,{style:{"--shiki-dark":`#C98A7D`,"--shiki-light":`#B56959`}},`title`),s(`span`,{style:{"--shiki-dark":`#4D9375`,"--shiki-light":`#1E754F`}},`}`),s(`span`,{style:{"--shiki-dark":`#C98A7D`,"--shiki-light":`#B56959`}},` with `),s(`span`,{style:{"--shiki-dark":`#4D9375`,"--shiki-light":`#1E754F`}},"${"),s(`span`,{style:{"--shiki-dark":`#C98A7D`,"--shiki-light":`#B56959`}},`test`),s(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),s(`span`,{style:{"--shiki-dark":`#C98A7D`,"--shiki-light":`#B56959`}},`slides`),s(`span`,{style:{"--shiki-dark":`#4D9375`,"--shiki-light":`#1E754F`}},`}`),s(`span`,{style:{"--shiki-dark":`#C98A7D`,"--shiki-light":`#B56959`}},` slides`),s(`span`,{style:{"--shiki-dark":`#C98A7D77`,"--shiki-light":`#B5695977`}},"`"),s(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`);`)])])],-1)]]),_:1})]),_:1},16)}}};export{z as default}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/md-DK5E6CYd.js b/docs/dist/assets/slidev/md-DK5E6CYd.js new file mode 100644 index 00000000..1f2e604c --- /dev/null +++ b/docs/dist/assets/slidev/md-DK5E6CYd.js @@ -0,0 +1 @@ +import{$ as e,A as t,D as n,E as r,L as i,Q as a,R as o,S as s,W as c,_ as l,_t as u,m as d,p as f,v as p,w as m,x as h,yt as g,z as _}from"../modules/shiki-BmLmNVDB.js";import{l as v}from"../utils-T1it7q9-.js";import{r as y}from"./useClicks-C2yK8i93.js";import{nt as b,p as x,rt as S}from"../index-BEBAY2Mg.js";import{t as C}from"./default-CswKUK6M.js";var w=m({__name:`VClickGap`,props:{size:{type:[String,Number],default:1}},setup(e){let t=e,{$clicksContext:n}=S(),r=x(),a=+t.size;return Number.isNaN(a)&&(console.warn(`[slidev] Invalid size for VClickGap: ${t.size}`),a=1),i(()=>{let e=n.currentOffset+a-1;n.register(r,{max:e,delta:a})}),o(()=>{n.unregister(r)}),(e,t)=>(_(),p(d))}}),T=[`ul`,`ol`],E=/[\s,]+/,D=m({props:{depth:{type:[Number,String],default:1},every:{type:[Number,String],default:1},at:{type:[Number,String],default:`+1`},hide:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},animation:{type:[String,Array],default:void 0},handleSpecialElements:{type:Boolean,default:!0}},render(){let r=+this.every,i=y(this.at),a=typeof i==`string`,o=this.$slots.default?.();if(i==null||!o)return o;let l=c(`click`),u=(t,n)=>{let r={hide:this.hide};return typeof this.animation==`string`?this.animation.split(E).forEach(e=>{e&&(r[e]=!0)}):Array.isArray(this.animation)&&this.animation.forEach(e=>r[e]=!0),this.fade&&(r.fade=!0),e(t,[[l,n,``,r]])},d=e=>e.flatMap(e=>t(e)&&typeof e.type==`symbol`&&Array.isArray(e.children)?d(e.children):[e]);o=d(v(o));let p=(e,r=1)=>d(e).map(e=>t(e)?T.includes(e.type)&&Array.isArray(e.children)?n(e,{},g(e.children,r+1)):n(e):e),m=1,h=0,g=(e,o=1)=>d(e).map(e=>{if(!t(e)||e.type===f)return e;let s=+i+Math.ceil(m++/r)-1,c;c=o<+this.depth&&Array.isArray(e.children)?n(e,{},p(e.children,o)):n(e);let l=s-h;return h=s,u(c,a?l>=0?`+${l}`:`${l}`:s)}),_=()=>s(w,{size:+i+Math.ceil((m-1)/r)-1-h});if(this.handleSpecialElements){if(o.length===1&&T.includes(o[0].type)&&Array.isArray(o[0].children))return n(o[0],{},[...g(o[0].children),_()]);if(o.length===1&&o[0].type===`table`){let e=o[0];if(Array.isArray(e.children))return n(e,{},e.children.map(e=>t(e)?e.type===`tbody`&&Array.isArray(e.children)?n(e,{},[...g(e.children),_()]):n(e):e))}}return[...g(o),_()]}}),O={__name:`test-presentation.md__slidev_2`,setup(e){let{$slidev:t,$nav:n,$clicksContext:i,$clicks:o,$page:c,$renderContext:d,$frontmatter:f}=S();return i.setup(),(e,t)=>{let n=D;return _(),p(C,g(r(u(b)(u(f),1))),{default:a(()=>[t[1]||=l(`h1`,null,`Features to Test`,-1),s(n,null,{default:a(()=>[...t[0]||=[l(`ul`,null,[l(`li`,null,[h(`✅ `),l(`strong`,null,`Code Highlighting`),h(` - TypeScript syntax`)]),l(`li`,null,[h(`✅ `),l(`strong`,null,`Vue Components`),h(` - Interactive elements`)]),l(`li`,null,[h(`✅ `),l(`strong`,null,`Animations`),h(` - Click-through effects`)]),l(`li`,null,[h(`✅ `),l(`strong`,null,`Offline Mode`),h(` - No server needed`)]),l(`li`,null,[h(`✅ `),l(`strong`,null,`Single File`),h(` - Portable and shareable`)])],-1)]]),_:1})]),_:1},16)}}};export{O as default}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/md-HD0mG6Gp.js b/docs/dist/assets/slidev/md-HD0mG6Gp.js new file mode 100644 index 00000000..0ebfa9d6 --- /dev/null +++ b/docs/dist/assets/slidev/md-HD0mG6Gp.js @@ -0,0 +1 @@ +import{E as e,H as t,Q as n,_ as r,_t as i,b as a,bt as o,g as s,v as c,w as l,yt as u,z as d}from"../modules/shiki-BmLmNVDB.js";import{nt as f,rt as p}from"../index-BEBAY2Mg.js";function m(e){return e.startsWith(`/`)?`/`+e.slice(1):e}function h(e,t=!1){let n=e&&[`#`,`rgb`,`hsl`].some(t=>e.indexOf(t)===0),r={background:n?e:void 0,color:e&&!n?`white`:void 0,backgroundImage:n?void 0:e?t?`linear-gradient(#0005, #0008), url(${m(e)})`:`url("${m(e)}")`:void 0,backgroundRepeat:`no-repeat`,backgroundPosition:`center`,backgroundSize:`cover`};return r.background||delete r.background,r}var g={class:`my-auto w-full`},_=l({__name:`cover`,props:{background:{default:``}},setup(e){let{$slidev:n,$nav:i,$clicksContext:c,$clicks:l,$page:u,$renderContext:f,$frontmatter:m}=p(),_=e,v=s(()=>h(_.background,!0));return(e,n)=>(d(),a(`div`,{class:`slidev-layout cover`,style:o(v.value)},[r(`div`,g,[t(e.$slots,`default`)])],4))}}),v={__name:`test-presentation.md__slidev_1`,setup(t){let{$slidev:a,$nav:o,$clicksContext:s,$clicks:l,$page:m,$renderContext:h,$frontmatter:g}=p();return s.setup(),(t,a)=>(d(),c(_,u(e(i(f)(i(g),0))),{default:n(()=>[...a[0]||=[r(`h1`,null,`Real Obsidian Test`,-1),r(`p`,null,`Testing Slidev standalone export from Obsidian vault`,-1),r(`p`,null,`Press Space for next page →`,-1)]]),_:1},16))}};export{v as default}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/md-Pg3tJRzD.js b/docs/dist/assets/slidev/md-Pg3tJRzD.js deleted file mode 100644 index ad67f002..00000000 --- a/docs/dist/assets/slidev/md-Pg3tJRzD.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as e,B as t,C as n,D as r,O as i,S as a,T as o,U as s,bt as c,g as l,v as u,vt as d,x as f,y as p,yt as m}from"../modules/shiki-yoNnvMyB.js";import{nt as h,rt as g,tt as _}from"../index-hODKC6Hw.js";import{t as v}from"./VClicks-241EYX7i.js";var y=o({props:{at:{type:[Number,String],default:`+1`},hide:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},animation:{type:String,default:void 0},wrapText:{type:Function,default:e=>i(`span`,e)}},render(){return i(v,{every:g,at:this.at,hide:this.hide,fade:this.fade,animation:this.animation,handleSpecialElements:!1},{default:()=>this.$slots.default?.().map(e=>e.type===l?this.wrapText(e):e)})}}),b=o({__name:`two-cols`,props:{class:{type:String},layoutClass:{type:String}},setup(e){let n=e;return(e,r)=>(t(),f(`div`,{class:m([`slidev-layout two-columns w-full h-full grid grid-cols-2`,n.layoutClass])},[u(`div`,{class:m([`col-left`,n.class])},[s(e.$slots,`default`),s(e.$slots,`left`)],2),u(`div`,{class:m([`col-right`,n.class])},[s(e.$slots,`right`)],2)],2))}}),x={__name:`test-slidev-manual.md__slidev_3`,setup(i){let{$slidev:o,$nav:s,$clicksContext:l,$clicks:f,$page:m,$renderContext:g,$frontmatter:v}=h();return l.setup(),(i,o)=>{let s=y;return t(),p(b,c(r(d(_)(d(v),2))),{right:e(t=>[o[1]||=u(`h2`,null,`Key Features`,-1),o[2]||=u(`ul`,null,[u(`li`,null,[u(`strong`,null,`Training Data`),a(`: Input-output pairs`)]),u(`li`,null,[u(`strong`,null,`Goal`),a(`: Predict outputs for new inputs`)]),u(`li`,null,[u(`strong`,null,`Types`),a(`: `),u(`ul`,null,[u(`li`,null,`Classification (categories)`),u(`li`,null,`Regression (continuous values)`)])])],-1),n(s,null,{default:e(()=>[...o[0]||=[u(`h3`,null,`Examples`,-1),u(`ul`,null,[u(`li`,null,`Email spam detection`),u(`li`,null,`House price prediction`),u(`li`,null,`Medical diagnosis`)],-1)]]),_:1})]),default:e(()=>[o[3]||=u(`h1`,null,`Supervised Learning`,-1),o[4]||=u(`p`,null,`Learn from labeled examples`,-1)]),_:1},16)}}};export{x as default}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/md-wbK3_QlJ.js b/docs/dist/assets/slidev/md-wbK3_QlJ.js deleted file mode 100644 index 9d015120..00000000 --- a/docs/dist/assets/slidev/md-wbK3_QlJ.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as e,B as t,C as n,D as r,S as i,U as a,bt as o,v as s,vt as c,x as l,y as u}from"../modules/shiki-yoNnvMyB.js";import{mt as d,nt as f,tt as p}from"../index-hODKC6Hw.js";import{i as m}from"../modules/unplugin-icons-SB3WWAiu.js";var h={},g={class:`slidev-layout end`};function _(e,n){return t(),l(`div`,g,[a(e.$slots,`default`,{},()=>[n[0]||=i(`END`,-1)],!0)])}var v=d(h,[[`render`,_],[`__scopeId`,`data-v-d4a90a1f`]]),y={class:`abs-br m-6 flex gap-2`},b={href:`https://github.com`,target:`_blank`,alt:`GitHub`,class:`text-xl slidev-icon-btn opacity-50 !border-none !hover:text-white`},x={__name:`test-slidev-manual.md__slidev_8`,setup(i){let{$slidev:a,$nav:l,$clicksContext:d,$clicks:h,$page:g,$renderContext:_,$frontmatter:x}=f();return d.setup(),(i,a)=>{let l=m;return t(),u(v,o(r(c(p)(c(x),7))),{default:e(()=>[a[0]||=s(`h1`,null,`Thank You!`,-1),a[1]||=s(`p`,null,`Questions?`,-1),s(`div`,y,[s(`a`,b,[n(l)])])]),_:1},16)}}};export{x as default}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/notes-4yw326r8.js b/docs/dist/assets/slidev/notes-4yw326r8.js new file mode 100644 index 00000000..2a12cf29 --- /dev/null +++ b/docs/dist/assets/slidev/notes-4yw326r8.js @@ -0,0 +1 @@ +import{Q as e,S as t,Y as n,_ as r,_t as i,b as a,bt as o,g as s,lt as c,m as l,w as u,x as d,xt as f,z as p}from"../modules/shiki-BmLmNVDB.js";import{a as m}from"./env-DWr22PMh.js";import{g as h}from"../modules/vue-5vwy5Re_.js";import{t as g}from"./useClicks-C2yK8i93.js";import{T as _,gt as v,o as y,v as b}from"../index-BEBAY2Mg.js";import{t as x}from"./IconButton-BAiJUHfk.js";import{t as S}from"./Modal-CdBImNxA.js";import{n as C,t as w}from"./NoteDisplay-BAqwAo7Q.js";import{r as T,t as E}from"./TimerBar-BQGouMOn.js";var D={class:`flex my-1`},O={class:`h-full flex flex-col`},k={class:`flex-none border-t border-main`,px3:``,py2:``},A={class:`flex-none border-t border-main`},j={class:`flex gap-1 items-center px-6 py-3`},M={key:0,class:`i-carbon:minimize`},N={key:1,class:`i-carbon:maximize`},P={class:`px2 my-auto`},F={class:`text-lg`},I={class:`opacity-50 text-sm`},L=u({__name:`notes`,setup(u){v({title:`Notes - ${m}`});let{slides:L,total:R}=b(),{isFullscreen:z,toggle:B}=_,V=c(),H=h(`slidev-notes-font-size`,18),U=s(()=>y.page),W=c(!1),G=s(()=>L.value.find(e=>e.no===U.value));n(U,()=>{V.value?.scrollTo({left:0,top:0,behavior:`smooth`}),window.scrollTo({left:0,top:0,behavior:`smooth`})});function K(){H.value+=1}function q(){--H.value}let J=s(()=>{let e=y.clicks,t=y.clicksTotal;return g(c(e),void 0,t)});return(n,s)=>(p(),a(l,null,[t(S,{modelValue:W.value,"onUpdate:modelValue":s[1]||=e=>W.value=e,class:`px-6 py-4 flex flex-col gap-2`},{default:e(()=>[s[3]||=r(`div`,{class:`flex gap-2 text-xl`},[r(`div`,{class:`i-carbon:information my-auto`}),d(` Help `)],-1),s[4]||=r(`div`,{class:`prose dark:prose-invert`},[r(`p`,null,`This is the hands-free live notes viewer.`),r(`p`,null,`It's designed to be used in a separate view or device. The progress is controlled by and auto synced with the main presenter or slide.`)],-1),r(`div`,D,[r(`button`,{class:`slidev-form-button`,onClick:s[0]||=e=>W.value=!1},` Close `)])]),_:1},8,[`modelValue`]),r(`div`,O,[t(T,{"clicks-context":J.value,current:U.value},null,8,[`clicks-context`,`current`]),t(E),r(`div`,{ref_key:`scroller`,ref:V,class:`px-5 py-3 flex-auto h-full overflow-auto`,style:o({fontSize:`${i(H)}px`})},[t(w,{note:G.value?.meta.slide.note,"note-html":G.value?.meta.slide.noteHTML,placeholder:`No notes for Slide ${U.value}.`,"clicks-context":J.value,"auto-scroll":!0},null,8,[`note`,`note-html`,`placeholder`,`clicks-context`])],4),r(`div`,k,[t(C,{"clicks-context":J.value,readonly:``},null,8,[`clicks-context`])]),r(`div`,A,[r(`div`,j,[t(x,{title:i(z)?`Close fullscreen`:`Enter fullscreen`,onClick:i(B)},{default:e(()=>[i(z)?(p(),a(`div`,M)):(p(),a(`div`,N))]),_:1},8,[`title`,`onClick`]),t(x,{title:`Increase font size`,onClick:K},{default:e(()=>[...s[5]||=[r(`div`,{class:`i-carbon:zoom-in`},null,-1)]]),_:1}),t(x,{title:`Decrease font size`,onClick:q},{default:e(()=>[...s[6]||=[r(`div`,{class:`i-carbon:zoom-out`},null,-1)]]),_:1}),t(x,{title:`Edit notes`,to:`/notes-edit`,target:`_blank`},{default:e(()=>[...s[7]||=[r(`div`,{class:`i-carbon:edit`},null,-1)]]),_:1}),t(x,{title:`Help`,class:`rounded-full`,onClick:s[2]||=e=>W.value=!0},{default:e(()=>[...s[8]||=[r(`div`,{class:`i-carbon:help`},null,-1)]]),_:1}),s[9]||=r(`div`,{class:`flex-auto`},null,-1),r(`div`,P,[r(`span`,F,f(U.value),1),r(`span`,I,` / `+f(i(R)),1)])])])])],64))}});export{L as default}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/notes-CSZzM_nQ.js b/docs/dist/assets/slidev/notes-CSZzM_nQ.js deleted file mode 100644 index 42b1eb29..00000000 --- a/docs/dist/assets/slidev/notes-CSZzM_nQ.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as e,B as t,C as n,S as r,St as i,T as a,X as o,_ as s,m as c,ut as l,v as u,vt as d,x as f,xt as p}from"../modules/shiki-yoNnvMyB.js";import{r as m}from"./utils-ebkCohfA.js";import{h}from"../modules/vue-ejhLULwH.js";import{_ as g,ht as _,o as v,w as y,xt as b}from"../index-hODKC6Hw.js";import{t as x}from"./IconButton-BlFal5-R.js";import{t as S}from"./Modal-BpXRRqG8.js";import{n as C,t as w}from"./NoteDisplay-DaGhiV97.js";import{r as T,t as E}from"./TimerBar-DRcu8SU0.js";var D={class:`flex my-1`},O={class:`h-full flex flex-col`},k={class:`flex-none border-t border-main`,px3:``,py2:``},A={class:`flex-none border-t border-main`},j={class:`flex gap-1 items-center px-6 py-3`},M={key:0,class:`i-carbon:minimize`},N={key:1,class:`i-carbon:maximize`},P={class:`px2 my-auto`},F={class:`text-lg`},I={class:`opacity-50 text-sm`},L=a({__name:`notes`,setup(a){_({title:`Notes - ${b}`});let{slides:L,total:R}=g(),{isFullscreen:z,toggle:B}=y,V=l(),H=h(`slidev-notes-font-size`,18),U=s(()=>v.page),W=l(!1),G=s(()=>L.value.find(e=>e.no===U.value));o(U,()=>{V.value?.scrollTo({left:0,top:0,behavior:`smooth`}),window.scrollTo({left:0,top:0,behavior:`smooth`})});function K(){H.value+=1}function q(){--H.value}let J=s(()=>{let e=v.clicks,t=v.clicksTotal;return m(l(e),void 0,t)});return(a,o)=>(t(),f(c,null,[n(S,{modelValue:W.value,"onUpdate:modelValue":o[1]||=e=>W.value=e,class:`px-6 py-4 flex flex-col gap-2`},{default:e(()=>[o[3]||=u(`div`,{class:`flex gap-2 text-xl`},[u(`div`,{class:`i-carbon:information my-auto`}),r(` Help `)],-1),o[4]||=u(`div`,{class:`prose dark:prose-invert`},[u(`p`,null,`This is the hands-free live notes viewer.`),u(`p`,null,`It's designed to be used in a separate view or device. The progress is controlled by and auto synced with the main presenter or slide.`)],-1),u(`div`,D,[u(`button`,{class:`slidev-form-button`,onClick:o[0]||=e=>W.value=!1},` Close `)])]),_:1},8,[`modelValue`]),u(`div`,O,[n(T,{"clicks-context":J.value,current:U.value},null,8,[`clicks-context`,`current`]),n(E),u(`div`,{ref_key:`scroller`,ref:V,class:`px-5 py-3 flex-auto h-full overflow-auto`,style:p({fontSize:`${d(H)}px`})},[n(w,{note:G.value?.meta.slide.note,"note-html":G.value?.meta.slide.noteHTML,placeholder:`No notes for Slide ${U.value}.`,"clicks-context":J.value,"auto-scroll":!0},null,8,[`note`,`note-html`,`placeholder`,`clicks-context`])],4),u(`div`,k,[n(C,{"clicks-context":J.value,readonly:``},null,8,[`clicks-context`])]),u(`div`,A,[u(`div`,j,[n(x,{title:d(z)?`Close fullscreen`:`Enter fullscreen`,onClick:d(B)},{default:e(()=>[d(z)?(t(),f(`div`,M)):(t(),f(`div`,N))]),_:1},8,[`title`,`onClick`]),n(x,{title:`Increase font size`,onClick:K},{default:e(()=>[...o[5]||=[u(`div`,{class:`i-carbon:zoom-in`},null,-1)]]),_:1}),n(x,{title:`Decrease font size`,onClick:q},{default:e(()=>[...o[6]||=[u(`div`,{class:`i-carbon:zoom-out`},null,-1)]]),_:1}),n(x,{title:`Edit notes`,to:`/notes-edit`,target:`_blank`},{default:e(()=>[...o[7]||=[u(`div`,{class:`i-carbon:edit`},null,-1)]]),_:1}),n(x,{title:`Help`,class:`rounded-full`,onClick:o[2]||=e=>W.value=!0},{default:e(()=>[...o[8]||=[u(`div`,{class:`i-carbon:help`},null,-1)]]),_:1}),o[9]||=u(`div`,{class:`flex-auto`},null,-1),u(`div`,P,[u(`span`,F,i(U.value),1),u(`span`,I,` / `+i(d(R)),1)])])])])],64))}});export{L as default}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/notes-edit-Ma5EL_89.js b/docs/dist/assets/slidev/notes-edit-Ma5EL_89.js deleted file mode 100644 index e95f2e35..00000000 --- a/docs/dist/assets/slidev/notes-edit-Ma5EL_89.js +++ /dev/null @@ -1,2 +0,0 @@ -import{$ as e,B as t,C as n,S as r,T as i,et as a,l as o,m as s,ut as c,v as l,x as u}from"../modules/shiki-yoNnvMyB.js";import{D as d}from"../modules/vue-ejhLULwH.js";import{_ as f,ht as p,t as m,xt as h}from"../index-hODKC6Hw.js";import{t as g}from"./IconButton-BlFal5-R.js";import{t as _}from"./Modal-BpXRRqG8.js";var v={class:`flex my-1`},y={class:`h-full`},b={class:`slidev-glass-effect fixed bottom-5 right-5 rounded-full border border-main`},x=i({__name:`notes-edit`,setup(i){let x=/^---\s*#(\d+)\s*$/;p({title:`Notes Edit - ${h}`});let{slides:S}=f(),C=c(!1),w=c(T(S.value));function T(e){let t=[];for(let n of e)n.meta.slide.note?.trim()&&(t.push(`--- #${n.no}`),t.push(``),t.push(n.meta.slide.note),t.push(``));return t.join(` -`)}function E(e,t){let n=e.split(/^(---\s*#\d+\s*)$/gm);n.forEach((e,r)=>{let i=e.match(x);if(i){let e=Number.parseInt(i[1]),a=n[r+1].trim(),o=t.find(t=>t.no===e);o&&(o.meta.slide.note=a,m(e).update({note:a}))}})}return d(w,e=>{E(e,S.value)},{debounce:300}),(i,c)=>(t(),u(s,null,[n(_,{modelValue:C.value,"onUpdate:modelValue":c[1]||=e=>C.value=e,class:`px-6 py-4 flex flex-col gap-2`},{default:e(()=>[c[4]||=l(`div`,{class:`flex gap-2 text-xl`},[l(`div`,{class:`i-carbon:information my-auto`}),r(` Help `)],-1),c[5]||=l(`div`,{class:`prose dark:prose-invert`},[l(`p`,null,`This is the batch notes editor. You can edit the notes for all the slides at once here.`),l(`p`,null,[r(`The note for each slide are separated by `),l(`code`,null,`--- #[no]`),r(` lines, you might want to keep them while editing.`)])],-1),l(`div`,v,[l(`button`,{class:`slidev-form-button`,onClick:c[0]||=e=>C.value=!1},` Close `)])]),_:1},8,[`modelValue`]),l(`div`,y,[l(`div`,b,[n(g,{title:`Help`,class:`rounded-full`,onClick:c[2]||=e=>C.value=!0},{default:e(()=>[...c[6]||=[l(`div`,{class:`i-carbon:help text-2xl`},null,-1)]]),_:1})]),a(l(`textarea`,{"onUpdate:modelValue":c[3]||=e=>w.value=e,class:`prose dark:prose-invert resize-none p5 outline-none bg-transparent block h-full w-full! max-w-full! max-h-full! min-h-full! min-w-full!`},null,512),[[o,w.value]])])],64))}});export{x as default}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/notes-edit-ST06bLI7.js b/docs/dist/assets/slidev/notes-edit-ST06bLI7.js new file mode 100644 index 00000000..1e990f2c --- /dev/null +++ b/docs/dist/assets/slidev/notes-edit-ST06bLI7.js @@ -0,0 +1,2 @@ +import{$ as e,Q as t,S as n,_ as r,b as i,l as a,lt as o,m as s,w as c,x as l,z as u}from"../modules/shiki-BmLmNVDB.js";import{a as d}from"./env-DWr22PMh.js";import{O as f}from"../modules/vue-5vwy5Re_.js";import{gt as p,t as m,v as h}from"../index-BEBAY2Mg.js";import{t as g}from"./IconButton-BAiJUHfk.js";import{t as _}from"./Modal-CdBImNxA.js";var v={class:`flex my-1`},y={class:`h-full`},b={class:`slidev-glass-effect fixed bottom-5 right-5 rounded-full border border-main`},x=c({__name:`notes-edit`,setup(c){let x=/^---\s*#(\d+)\s*$/;p({title:`Notes Edit - ${d}`});let{slides:S}=h(),C=o(!1),w=o(T(S.value));function T(e){let t=[];for(let n of e)n.meta.slide.note?.trim()&&(t.push(`--- #${n.no}`),t.push(``),t.push(n.meta.slide.note),t.push(``));return t.join(` +`)}function E(e,t){let n=e.split(/^(---\s*#\d+\s*)$/gm);n.forEach((e,r)=>{let i=e.match(x);if(i){let e=Number.parseInt(i[1]),a=n[r+1].trim(),o=t.find(t=>t.no===e);o&&(o.meta.slide.note=a,m(e).update({note:a}))}})}return f(w,e=>{E(e,S.value)},{debounce:300}),(o,c)=>(u(),i(s,null,[n(_,{modelValue:C.value,"onUpdate:modelValue":c[1]||=e=>C.value=e,class:`px-6 py-4 flex flex-col gap-2`},{default:t(()=>[c[4]||=r(`div`,{class:`flex gap-2 text-xl`},[r(`div`,{class:`i-carbon:information my-auto`}),l(` Help `)],-1),c[5]||=r(`div`,{class:`prose dark:prose-invert`},[r(`p`,null,`This is the batch notes editor. You can edit the notes for all the slides at once here.`),r(`p`,null,[l(`The note for each slide are separated by `),r(`code`,null,`--- #[no]`),l(` lines, you might want to keep them while editing.`)])],-1),r(`div`,v,[r(`button`,{class:`slidev-form-button`,onClick:c[0]||=e=>C.value=!1},` Close `)])]),_:1},8,[`modelValue`]),r(`div`,y,[r(`div`,b,[n(g,{title:`Help`,class:`rounded-full`,onClick:c[2]||=e=>C.value=!0},{default:t(()=>[...c[6]||=[r(`div`,{class:`i-carbon:help text-2xl`},null,-1)]]),_:1})]),e(r(`textarea`,{"onUpdate:modelValue":c[3]||=e=>w.value=e,class:`prose dark:prose-invert resize-none p5 outline-none bg-transparent block h-full w-full! max-w-full! max-h-full! min-h-full! min-w-full!`},null,512),[[a,w.value]])])],64))}});export{x as default}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/overview-F_OjdvDt.js b/docs/dist/assets/slidev/overview-F_OjdvDt.js new file mode 100644 index 00000000..20d80ffb --- /dev/null +++ b/docs/dist/assets/slidev/overview-F_OjdvDt.js @@ -0,0 +1 @@ +import{L as e,N as t,Q as n,R as r,S as i,V as a,_ as o,_t as s,b as c,bt as l,ft as u,g as d,lt as f,m as p,st as m,v as h,vt as g,w as ee,xt as _,y as v,z as y}from"../modules/shiki-BmLmNVDB.js";import{a as te,n as ne}from"./env-DWr22PMh.js";import{B as re,V as ie}from"../modules/vue-5vwy5Re_.js";import{n as ae}from"./useClicks-C2yK8i93.js";import{t as b}from"../_plugin-vue_export-helper-BDNMzG2s.js";import{$ as x,_ as oe,at as S,g as C,gt as se,h as ce,tt as w,v as le}from"../index-BEBAY2Mg.js";import{n as ue,r as de}from"../modules/unplugin-icons-CHgNQGBt.js";import{i as fe,o as pe,t as me}from"../SlideWrapper-IFU3LLlv.js";import{t as T}from"./IconButton-BAiJUHfk.js";import{n as E}from"./NoteDisplay-BAqwAo7Q.js";import{t as he}from"./NoteEditable-C2jELoYc.js";var ge={class:`h-screen w-screen of-hidden flex`},_e={key:0,class:`grid grid-rows-[auto_max-content] border-r border-main select-none max-h-full h-full`},ve={class:`relative`},ye={class:`absolute left-0 top-0 bottom-0 w-200 flex flex-col flex-auto items-end group p-6px md:p-10px gap-1 max-h-full of-x-visible of-y-auto`,style:{direction:`rtl`}},be=[`onClick`],xe={p2:``,border:`t main`},Se={class:`flex flex-col gap-1 mx-1 items-end`},Ce={key:0,class:`flex items-end gap-2`},we=[`onClick`],Te=[`onDblclick`],Ee={key:2,class:`select-none absolute bottom-0 right-0 bg-main rounded-tl p2 op35 text-xs`},De={key:1,class:`absolute z-2 top-0 right-0 px3 py1.5 border-b border-l rounded-lb bg-main/80 backdrop-blur border-main select-none`},Oe={class:`text-xs op50`},D=450,O=b(ee({__name:`overview`,setup(ee){se({title:`Overview - ${te}`});let b=re(),O=ie(),{openInEditor:ke,slides:k,isEmbedded:A}=le(),j=d(()=>b.query.mode===`preview`),M=d(()=>j.value&&A.value),N=d(()=>j.value?M.value?Math.max(0,x.width.value-16):Math.min(900,Math.max(320,x.width.value-160)):D),Ae=d(()=>N.value/ne.value),P=m(new Map),F=m(new Map),I=f([]),L=f(),R=f(null),z=0,B,V,H=d(()=>k.value.map(e=>Pe(e.meta?.slide?.note||``))),je=d(()=>H.value.reduce((e,t)=>e+t,0)),Me=d(()=>k.value.map(e=>K(e)).reduce((e,t)=>e+t,0)),Ne=d(()=>String(Math.max(1,k.value.length)).length),U=u(),W=new WeakMap;function G(e){return W.has(e)||W.set(e,ae(e,S)),W.get(e)}function K(e){return e.meta?.clicks||G(e)?.total}function q(e){U.value===e?U.value=void 0:U.value=e}function Pe(e){let t=e.match(/[\w`'\-\u0392-\u03C9\u00C0-\u00FF\u0600-\u06FF\u0400-\u04FF]+|[\u4E00-\u9FFF\u3400-\u4DBF\uF900-\uFAFF\u3040-\u309F\uAC00-\uD7AF]+/g),n=0;if(!t)return 0;for(let e=0;e=19968?n+=t[e].length:n+=1;return n}function J(){let e=window.innerHeight||document.documentElement.clientHeight,t,n=[];for(let[r,i]of P.entries()){let a=i.getBoundingClientRect(),o=Math.max(0,Math.min(a.bottom,e)-Math.max(a.top,0));o!==0&&(o>=a.height&&n.push(r),(!t||o>t.visibleHeight)&&(t={idx:r,visibleHeight:o}))}I.value=n.length?n:t?[t.idx]:[]}function Y(e){let t=document.createElement(`a`);t.target=`_blank`,t.href=`/`+e.slice(1),t.click()}function Fe(e){let t=new URL(`/`+e.slice(1),location.href).href;if(A.value){window.parent.postMessage({target:`slidev`,sender:`slidev`,type:`open-external`,url:t},`*`);return}Y(e)}function Ie(e){let t=P.get(e);t&&t.scrollIntoView({behavior:`smooth`,block:`start`})}function X(e){let t=F.get(e)||P.get(e);if(!t||!L.value)return null;let n=L.value.getBoundingClientRect();return t.getBoundingClientRect().top-n.top+L.value.scrollTop}function Z(e){if(!L.value||k.value.length===0)return;let t=Math.min(Math.max(e,1),k.value.length),n=Math.floor(t)-1,r=t-(n+1),i=X(n),a=X(n+1);if(i==null)return;let o=i+(a==null?0:(a-i)*r)-L.value.clientHeight*.5;Math.abs(L.value.scrollTop-o)<1||L.value.scrollTo({top:o})}function Le(){let e=b.query.slideNo,t=Number(Array.isArray(e)?e[0]:e);return Number.isFinite(t)&&t>0?t:void 0}function Q(e){if(!M.value)return;let t=Number(e.toFixed(3)).toString();b.query.slideNo!==t&&O.replace({query:{...b.query,slideNo:t}})}function Re(){if(!L.value||k.value.length===0)return null;let e=L.value.scrollTop+L.value.clientHeight*.5,t=k.value.map((e,t)=>X(t)).filter(e=>e!=null);if(t.length===0)return null;if(t.length===1||e<=t[0])return 1;for(let n=1;n{V=void 0;let e=B;B=void 0,e!=null&&(Q(e),!(Date.now()0&&(z=Date.now()+300,B=void 0,Q(t),Z(t))}function Ve(e,t,n){let r=G(n);r.current===t?r.current=S:r.current=t,e.preventDefault()}function He(e,t){if(e.ctrlKey||e.metaKey){e.preventDefault(),Fe(w(t,!1));return}let n=t.meta?.slide;n&&window.parent.postMessage({target:`slidev`,type:`command`,command:`goto`,args:[n.filepath,n.sourceIndex]},`*`)}return e(()=>{window.addEventListener(`message`,$);let e=M.value?Le():void 0;e!=null&&(z=Date.now()+300,Z(e)),t(()=>{e!=null&&Z(e),J()})}),r(()=>{window.removeEventListener(`message`,$),V&&clearTimeout(V)}),(e,t)=>{let r=ue,u=de;return y(),c(`div`,ge,[s(A)?v(``,!0):(y(),c(`nav`,_e,[o(`div`,ve,[o(`div`,ye,[(y(!0),c(p,null,a(s(k),(e,t)=>(y(),c(`div`,{key:e.no,class:`relative`,style:{direction:`ltr`}},[o(`button`,{class:g([`relative transition duration-300 w-8 h-8 rounded hover:bg-active hover:op100`,I.value.includes(t)?`op100 text-primary bg-gray:5`:`op20`]),onClick:e=>Ie(t)},[o(`div`,null,_(t+1),1)],10,be),e.meta?.slide?.title?(y(),c(`div`,{key:0,class:g([`pointer-events-none select-none absolute left-110% top-50% translate-y--50% ws-nowrap z-label px2 slidev-glass-effect transition duration-400 op0 group-hover:op100`,I.value.includes(t)?`text-primary`:`text-main important-text-op-50`])},_(e.meta?.slide?.title),3)):v(``,!0)]))),128))])]),o(`div`,xe,[s(ce)?(y(),h(T,{key:1,title:s(C)?`Dark mode`:`Light mode`,"pointer-events-none":``,op50:``},{default:n(()=>[s(C)?(y(),h(r,{key:0})):(y(),h(u,{key:1}))]),_:1},8,[`title`])):(y(),h(T,{key:0,title:s(C)?`Switch to light mode theme`:`Switch to dark mode theme`,onClick:t[0]||=e=>s(oe)()},{default:n(()=>[s(C)?(y(),h(r,{key:0})):(y(),h(u,{key:1}))]),_:1},8,[`title`]))])])),o(`main`,{ref_key:`scroller`,ref:L,class:`flex-1 h-full of-auto`,style:l(`grid-template-columns: repeat(auto-fit,minmax(${D}px,1fr))`),onScroll:Be},[(y(!0),c(p,null,a(s(k),(e,r)=>(y(),c(`div`,{key:e.no,ref_for:!0,ref:e=>P.set(r,e),class:g([`overview-slide-block relative of-hidden flex gap-4 min-h-50`,[r===0&&!M.value?`pt2`:``,M.value?`justify-center`:`border-t border-main`]])},[M.value?v(``,!0):(y(),c(`div`,{key:0,class:g([`select-none text-right my5 flex flex-col justify-between items-end`,j.value?`w-9`:`w-13`]),style:l({height:`${Ae.value}px`})},[o(`div`,{class:`self-center text-3xl op20 mb2 text-center mr--14px tabular-nums`,style:l({width:`${Ne.value}ch`})},_(r+1),5),o(`div`,Se,[i(T,{class:g([`overview-slide-action mr--4 op0`,j.value?`text-lg`:``]),title:`Play in new tab`,onClick:t=>Y(s(w)(e,!1))},{default:n(()=>[...t[4]||=[o(`div`,{class:`i-carbon:presentation-file`},null,-1)]]),_:1},8,[`class`,`onClick`]),v(``,!0)])],6)),o(`div`,{class:g([`flex flex-col`,M.value?`my1 gap-0`:`my5 gap-2`]),style:l({width:`${N.value}px`})},[M.value?(y(),c(`div`,Ce,[o(`button`,{type:`button`,class:`select-none pl-1 text-lg leading-tight op60 tabular-nums hover:op90 hover:underline underline-offset-2`,onClick:t=>He(t,e)},_(r+1),9,we),K(e)?(y(),h(E,{key:0,active:U.value===e,"clicks-context":G(e),resettable:``,compact:``,attached:``,class:`ml-auto w-88 min-w-[70%] max-w-[calc(100%-3rem)]`,onDblclick:t=>q(e),onActivate:t=>U.value=e,onReset:t[1]||=e=>U.value=void 0},null,8,[`active`,`clicks-context`,`onDblclick`,`onActivate`])):v(``,!0)])):v(``,!0),o(`div`,{ref_for:!0,ref:e=>F.set(r,e),class:g([`border rounded border-main overflow-hidden bg-main h-max`,[M.value&&K(e)?`rounded-tr-0`:``,M.value?``:`select-none`]]),onDblclick:t=>!M.value&&Y(s(w)(e,!1))},[(y(),h(fe,{key:e.no,width:N.value,class:g(M.value?``:`pointer-events-none important:[&_*]:select-none`)},{default:n(()=>[i(me,{"clicks-context":G(e),route:e,"render-context":`overview`},null,8,[`clicks-context`,`route`]),i(pe,{page:e.no},null,8,[`page`])]),_:2},1032,[`width`,`class`]))],42,Te),K(e)&&!M.value?(y(),h(E,{key:1,active:U.value===e,"clicks-context":G(e),resettable:``,class:g([`ml-1 w-[calc(100%-0.25rem)]`,j.value?``:`mt-2`]),onDblclick:t=>q(e),onActivate:t=>U.value=e,onReset:t[2]||=e=>U.value=void 0},null,8,[`active`,`clicks-context`,`class`,`onDblclick`,`onActivate`])):v(``,!0)],6),j.value?v(``,!0):(y(),h(he,{key:1,no:e.no,class:`relative z-1 max-w-250 w-250 text-lg rounded p3`,"auto-height":!0,highlight:U.value===e,editing:R.value===e.no,"clicks-context":G(e),onDblclick:t=>R.value===e.no?null:R.value=e.no,"onUpdate:editing":t[3]||=e=>R.value=null,onMarkerClick:(t,n)=>Ve(t,n,e)},null,8,[`no`,`highlight`,`editing`,`clicks-context`,`onDblclick`,`onMarkerClick`])),!j.value&&H.value[r]>0?(y(),c(`div`,Ee,_(H.value[r])+` words `,1)):v(``,!0)],2))),128))],36),s(A)?v(``,!0):(y(),c(`div`,De,[o(`div`,Oe,_(s(k).length)+` slides · `+_(Me.value+s(k).length-1)+` clicks · `+_(je.value)+` words `,1)]))])}}}),[[`__scopeId`,`data-v-59b8b5ee`]]);export{O as default}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/overview-QM-_BJsq.js b/docs/dist/assets/slidev/overview-QM-_BJsq.js deleted file mode 100644 index 7ba716de..00000000 --- a/docs/dist/assets/slidev/overview-QM-_BJsq.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as e,B as t,C as n,H as r,P as i,R as a,St as o,T as s,_ as c,b as l,ct as u,m as d,pt as ee,ut as f,v as p,vt as m,x as h,xt as g,y as _,yt as v,z as te}from"../modules/shiki-yoNnvMyB.js";import{i as ne}from"./utils-ebkCohfA.js";import{B as re,z as ie}from"../modules/vue-ejhLULwH.js";import{Q as y,_ as ae,_t as b,et as x,g as oe,h as S,ht as se,m as ce,mt as C,rt as w,vt as le,xt as ue}from"../index-hODKC6Hw.js";import{n as de,r as fe}from"../modules/unplugin-icons-SB3WWAiu.js";import{i as pe,o as me,t as he}from"../SlideWrapper-BclWpJbK.js";import{t as T}from"./IconButton-BlFal5-R.js";import{n as E}from"./NoteDisplay-DaGhiV97.js";import{t as ge}from"./NoteEditable-CvntlA3F.js";var _e={class:`h-screen w-screen of-hidden flex`},ve={key:0,class:`grid grid-rows-[auto_max-content] border-r border-main select-none max-h-full h-full`},ye={class:`relative`},be={class:`absolute left-0 top-0 bottom-0 w-200 flex flex-col flex-auto items-end group p-6px md:p-10px gap-1 max-h-full of-x-visible of-y-auto`,style:{direction:`rtl`}},xe=[`onClick`],Se={p2:``,border:`t main`},Ce={class:`flex flex-col gap-1 mx-1 items-end`},we={key:0,class:`flex items-end gap-2`},Te=[`onClick`],Ee=[`onDblclick`],De={key:2,class:`select-none absolute bottom-0 right-0 bg-main rounded-tl p2 op35 text-xs`},Oe={key:1,class:`absolute z-2 top-0 right-0 px3 py1.5 border-b border-l rounded-lb bg-main/80 backdrop-blur border-main select-none`},ke={class:`text-xs op50`},D=450,O=C(s({__name:`overview`,setup(s){se({title:`Overview - ${ue}`});let C=ie(),O=re(),{openInEditor:Ae,slides:k,isEmbedded:A}=ae(),j=c(()=>C.query.mode===`preview`),M=c(()=>j.value&&A.value),N=c(()=>j.value?M.value?Math.max(0,y.width.value-16):Math.min(900,Math.max(320,y.width.value-160)):D),je=c(()=>N.value/le.value),P=u(new Map),F=u(new Map),I=f([]),L=f(),R=f(null),z=0,B,V,H=c(()=>k.value.map(e=>Fe(e.meta?.slide?.note||``))),Me=c(()=>H.value.reduce((e,t)=>e+t,0)),Ne=c(()=>k.value.map(e=>K(e)).reduce((e,t)=>e+t,0)),Pe=c(()=>String(Math.max(1,k.value.length)).length),U=ee(),W=new WeakMap;function G(e){return W.has(e)||W.set(e,ne(e,w)),W.get(e)}function K(e){return e.meta?.clicks||G(e)?.total}function q(e){U.value===e?U.value=void 0:U.value=e}function Fe(e){let t=e.match(/[\w`'\-\u0392-\u03C9\u00C0-\u00FF\u0600-\u06FF\u0400-\u04FF]+|[\u4E00-\u9FFF\u3400-\u4DBF\uF900-\uFAFF\u3040-\u309F\uAC00-\uD7AF]+/g),n=0;if(!t)return 0;for(let e=0;e=19968?n+=t[e].length:n+=1;return n}function J(){let e=window.innerHeight||document.documentElement.clientHeight,t,n=[];for(let[r,i]of P.entries()){let a=i.getBoundingClientRect(),o=Math.max(0,Math.min(a.bottom,e)-Math.max(a.top,0));o!==0&&(o>=a.height&&n.push(r),(!t||o>t.visibleHeight)&&(t={idx:r,visibleHeight:o}))}I.value=n.length?n:t?[t.idx]:[]}function Y(e){let t=document.createElement(`a`);t.target=`_blank`,t.href=b+e.slice(1),t.click()}function Ie(e){let t=new URL(b+e.slice(1),location.href).href;if(A.value){window.parent.postMessage({target:`slidev`,sender:`slidev`,type:`open-external`,url:t},`*`);return}Y(e)}function Le(e){let t=P.get(e);t&&t.scrollIntoView({behavior:`smooth`,block:`start`})}function X(e){let t=F.get(e)||P.get(e);if(!t||!L.value)return null;let n=L.value.getBoundingClientRect();return t.getBoundingClientRect().top-n.top+L.value.scrollTop}function Z(e){if(!L.value||k.value.length===0)return;let t=Math.min(Math.max(e,1),k.value.length),n=Math.floor(t)-1,r=t-(n+1),i=X(n),a=X(n+1);if(i==null)return;let o=i+(a==null?0:(a-i)*r)-L.value.clientHeight*.5;Math.abs(L.value.scrollTop-o)<1||L.value.scrollTo({top:o})}function Re(){let e=C.query.slideNo,t=Number(Array.isArray(e)?e[0]:e);return Number.isFinite(t)&&t>0?t:void 0}function Q(e){if(!M.value)return;let t=Number(e.toFixed(3)).toString();C.query.slideNo!==t&&O.replace({query:{...C.query,slideNo:t}})}function ze(){if(!L.value||k.value.length===0)return null;let e=L.value.scrollTop+L.value.clientHeight*.5,t=k.value.map((e,t)=>X(t)).filter(e=>e!=null);if(t.length===0)return null;if(t.length===1||e<=t[0])return 1;for(let n=1;n{V=void 0;let e=B;B=void 0,e!=null&&(Q(e),!(Date.now()0&&(z=Date.now()+300,B=void 0,Q(t),Z(t))}function He(e,t,n){let r=G(n);r.current===t?r.current=w:r.current=t,e.preventDefault()}function Ue(e,t){if(e.ctrlKey||e.metaKey){e.preventDefault(),Ie(x(t,!1));return}let n=t.meta?.slide;n&&window.parent.postMessage({target:`slidev`,type:`command`,command:`goto`,args:[n.filepath,n.sourceIndex]},`*`)}return a(()=>{window.addEventListener(`message`,$);let e=M.value?Re():void 0;e!=null&&(z=Date.now()+300,Z(e)),i(()=>{e!=null&&Z(e),J()})}),te(()=>{window.removeEventListener(`message`,$),V&&clearTimeout(V)}),(i,a)=>{let s=de,c=fe;return t(),h(`div`,_e,[m(A)?l(``,!0):(t(),h(`nav`,ve,[p(`div`,ye,[p(`div`,be,[(t(!0),h(d,null,r(m(k),(e,n)=>(t(),h(`div`,{key:e.no,class:`relative`,style:{direction:`ltr`}},[p(`button`,{class:v([`relative transition duration-300 w-8 h-8 rounded hover:bg-active hover:op100`,I.value.includes(n)?`op100 text-primary bg-gray:5`:`op20`]),onClick:e=>Le(n)},[p(`div`,null,o(n+1),1)],10,xe),e.meta?.slide?.title?(t(),h(`div`,{key:0,class:v([`pointer-events-none select-none absolute left-110% top-50% translate-y--50% ws-nowrap z-label px2 slidev-glass-effect transition duration-400 op0 group-hover:op100`,I.value.includes(n)?`text-primary`:`text-main important-text-op-50`])},o(e.meta?.slide?.title),3)):l(``,!0)]))),128))])]),p(`div`,Se,[m(ce)?(t(),_(T,{key:1,title:m(S)?`Dark mode`:`Light mode`,"pointer-events-none":``,op50:``},{default:e(()=>[m(S)?(t(),_(s,{key:0})):(t(),_(c,{key:1}))]),_:1},8,[`title`])):(t(),_(T,{key:0,title:m(S)?`Switch to light mode theme`:`Switch to dark mode theme`,onClick:a[0]||=e=>m(oe)()},{default:e(()=>[m(S)?(t(),_(s,{key:0})):(t(),_(c,{key:1}))]),_:1},8,[`title`]))])])),p(`main`,{ref_key:`scroller`,ref:L,class:`flex-1 h-full of-auto`,style:g(`grid-template-columns: repeat(auto-fit,minmax(${D}px,1fr))`),onScroll:Ve},[(t(!0),h(d,null,r(m(k),(r,i)=>(t(),h(`div`,{key:r.no,ref_for:!0,ref:e=>P.set(i,e),class:v([`overview-slide-block relative of-hidden flex gap-4 min-h-50`,[i===0&&!M.value?`pt2`:``,M.value?`justify-center`:`border-t border-main`]])},[M.value?l(``,!0):(t(),h(`div`,{key:0,class:v([`select-none text-right my5 flex flex-col justify-between items-end`,j.value?`w-9`:`w-13`]),style:g({height:`${je.value}px`})},[p(`div`,{class:`self-center text-3xl op20 mb2 text-center mr--14px tabular-nums`,style:g({width:`${Pe.value}ch`})},o(i+1),5),p(`div`,Ce,[n(T,{class:v([`overview-slide-action mr--4 op0`,j.value?`text-lg`:``]),title:`Play in new tab`,onClick:e=>Y(m(x)(r,!1))},{default:e(()=>[...a[4]||=[p(`div`,{class:`i-carbon:presentation-file`},null,-1)]]),_:1},8,[`class`,`onClick`]),l(``,!0)])],6)),p(`div`,{class:v([`flex flex-col`,M.value?`my1 gap-0`:`my5 gap-2`]),style:g({width:`${N.value}px`})},[M.value?(t(),h(`div`,we,[p(`button`,{type:`button`,class:`select-none pl-1 text-lg leading-tight op60 tabular-nums hover:op90 hover:underline underline-offset-2`,onClick:e=>Ue(e,r)},o(i+1),9,Te),K(r)?(t(),_(E,{key:0,active:U.value===r,"clicks-context":G(r),resettable:``,compact:``,attached:``,class:`ml-auto w-88 min-w-[70%] max-w-[calc(100%-3rem)]`,onDblclick:e=>q(r),onActivate:e=>U.value=r,onReset:a[1]||=e=>U.value=void 0},null,8,[`active`,`clicks-context`,`onDblclick`,`onActivate`])):l(``,!0)])):l(``,!0),p(`div`,{ref_for:!0,ref:e=>F.set(i,e),class:v([`border rounded border-main overflow-hidden bg-main h-max`,[M.value&&K(r)?`rounded-tr-0`:``,M.value?``:`select-none`]]),onDblclick:e=>!M.value&&Y(m(x)(r,!1))},[(t(),_(pe,{key:r.no,width:N.value,class:v(M.value?``:`pointer-events-none important:[&_*]:select-none`)},{default:e(()=>[n(he,{"clicks-context":G(r),route:r,"render-context":`overview`},null,8,[`clicks-context`,`route`]),n(me,{page:r.no},null,8,[`page`])]),_:2},1032,[`width`,`class`]))],42,Ee),K(r)&&!M.value?(t(),_(E,{key:1,active:U.value===r,"clicks-context":G(r),resettable:``,class:v([`ml-1 w-[calc(100%-0.25rem)]`,j.value?``:`mt-2`]),onDblclick:e=>q(r),onActivate:e=>U.value=r,onReset:a[2]||=e=>U.value=void 0},null,8,[`active`,`clicks-context`,`class`,`onDblclick`,`onActivate`])):l(``,!0)],6),j.value?l(``,!0):(t(),_(ge,{key:1,no:r.no,class:`relative z-1 max-w-250 w-250 text-lg rounded p3`,"auto-height":!0,highlight:U.value===r,editing:R.value===r.no,"clicks-context":G(r),onDblclick:e=>R.value===r.no?null:R.value=r.no,"onUpdate:editing":a[3]||=e=>R.value=null,onMarkerClick:(e,t)=>He(e,t,r)},null,8,[`no`,`highlight`,`editing`,`clicks-context`,`onDblclick`,`onMarkerClick`])),!j.value&&H.value[i]>0?(t(),h(`div`,De,o(H.value[i])+` words `,1)):l(``,!0)],2))),128))],36),m(A)?l(``,!0):(t(),h(`div`,Oe,[p(`div`,ke,o(m(k).length)+` slides · `+o(Ne.value+m(k).length-1)+` clicks · `+o(Me.value)+` words `,1)]))])}}}),[[`__scopeId`,`data-v-b549b664`]]);export{O as default}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/play-0An4EZZ7.js b/docs/dist/assets/slidev/play-0An4EZZ7.js deleted file mode 100644 index bbb0e66a..00000000 --- a/docs/dist/assets/slidev/play-0An4EZZ7.js +++ /dev/null @@ -1,2 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DrawingControls-CUTQg5_r.js","../rolldown-runtime-QTnfLwEv.js","../SlideWrapper-BclWpJbK.js","../index-hODKC6Hw.js","./utils-ebkCohfA.js","../modules/shiki-yoNnvMyB.js","../modules/shiki-BrmBd2_v.css","../modules/vue-ejhLULwH.js","../index-CyXYSPNL.css","../SlideWrapper-cGPNHQX8.css","./shortcuts-C9mtjhUG.js","./IconButton-BlFal5-R.js","../shortcuts-C2vKazfC.css","../DrawingControls-Dhbx0szf.css"])))=>i.map(i=>d[i]); -import{$ as e,B as t,C as n,S as r,T as i,X as a,_ as o,at as s,b as c,m as l,pt as u,st as d,ut as f,v as p,vt as m,x as h,xt as g,y as _,yt as v}from"../modules/shiki-yoNnvMyB.js";import{S as y,p as b}from"../modules/vue-ejhLULwH.js";import{B as x,E as S,M as C,R as w,St as T,U as E,X as D,Y as O,_ as k,k as A,o as j,pt as M}from"../index-hODKC6Hw.js";import{t as N}from"../modules/unplugin-icons-SB3WWAiu.js";import{i as P,s as F}from"../SlideWrapper-BclWpJbK.js";import{a as I,c as L,d as R,f as z,l as B,n as V,r as H,s as U,t as W,u as G}from"./shortcuts-C9mtjhUG.js";import{t as K}from"./Modal-BpXRRqG8.js";var q=2e3;function J(e){let t=o(()=>e.value&&S.value);function n(){document.body.style.cursor=`none`}function r(){document.body.style.cursor=``}let i=null;a(t,e=>{e||(r(),i&&clearTimeout(i),i=null)}),d(()=>{r(),i&&clearTimeout(i),i=null}),b(document.body,[`pointermove`,`pointerdown`],()=>{r(),i&&clearTimeout(i),i=t.value?setTimeout(n,q):null},{passive:!0})}``+new URL(`../logo-BYkHSa_O.png`,import.meta.url).href;var Y={class:`slidev-info-dialog slidev-layout flex flex-col gap-4 text-base`},X=[`innerHTML`],Z=i({__name:`InfoDialog`,props:{modelValue:{default:!1}},emits:[`update:modelValue`],setup(n,{emit:i}){let a=y(n,`modelValue`,i),l=o(()=>typeof T.info==`string`);return(n,i)=>(t(),_(K,{modelValue:m(a),"onUpdate:modelValue":i[0]||=e=>s(a)?a.value=e:null,class:`px-6 py-4`},{default:e(()=>[p(`div`,Y,[l.value?(t(),h(`div`,{key:0,class:`mb-4`,innerHTML:m(T).info},null,8,X)):c(``,!0),i[1]||=p(`a`,{href:`https://github.com/slidevjs/slidev`,target:`_blank`,class:`!opacity-100 !border-none !text-current`},[p(`div`,{class:`flex gap-1 children:my-auto`},[p(`div`,{class:`opacity-50 text-sm mr-2`},`Powered by`),p(`img`,{class:`w-5 h-5`,src:``+new URL(`../logo-BYkHSa_O.png`,import.meta.url).href,alt:`Slidev logo`}),p(`div`,{style:{color:`#2082A6`}},[p(`b`,null,`Sli`),r(`dev `)])])],-1)])]),_:1},8,[`modelValue`]))}}),Q=i({__name:`Controls`,setup(e){let{isEmbedded:r}=k(),i=!T.drawings.presenterOnly&&!r.value,a=u();i&&M(()=>import(`./DrawingControls-CUTQg5_r.js`).then(e=>e.n).then(e=>a.value=e.default),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url);let o=u(),d=u();return(e,r)=>(t(),h(l,null,[a.value?(t(),_(m(a),{key:0})):c(``,!0),n(U),n(L),o.value?(t(),_(m(o),{key:1})):c(``,!0),d.value?(t(),_(m(d),{key:2,modelValue:m(E),"onUpdate:modelValue":r[0]||=e=>s(E)?E.value=e:null},null,8,[`modelValue`])):c(``,!0),m(T).info?(t(),_(Z,{key:3,modelValue:m(x),"onUpdate:modelValue":r[1]||=e=>s(x)?x.value=e:null},null,8,[`modelValue`])):c(``,!0),n(B)],64))}}),$={key:0,class:`absolute top-0 left-0 right-0 bottom-0 pointer-events-none text-xl`},ee=i({__name:`PresenterMouse`,setup(e){return(e,r)=>{let i=N;return m(j).cursor?.style===`cursor`?(t(),h(`div`,$,[n(i,{class:`absolute stroke-white dark:stroke-black`,style:g({left:`${m(j).cursor.x}%`,top:`${m(j).cursor.y}%`,strokeWidth:16})},null,8,[`style`])])):c(``,!0)}}}),te=i({__name:`play`,setup(r){let{next:i,prev:a,isPrintMode:s,isPlaying:d,isEmbedded:g}=k(),{isDrawing:y}=F(),b=f();function x(e){w.value||e.button===0&&e.target?.id===`slide-container`&&(e.pageX/window.innerWidth>.5?i():a())}z(b),W(),R(),J(o(()=>d.value&&!g.value&&!w.value));let S=o(()=>C.value||w.value),T=u(),E=o(()=>{let e=``;return O.value.brightness!==D.brightness&&(e+=`brightness(${O.value.brightness}) `),O.value.contrast!==D.contrast&&(e+=`contrast(${O.value.contrast}) `),O.value.sepia!==D.sepia&&(e+=`sepia(${O.value.sepia}) `),O.value.hueRotate!==D.hueRotate&&(e+=`hue-rotate(${O.value.hueRotate}deg) `),O.value.invert&&(e+=`invert(1) `),{filter:e}});return(r,i)=>(t(),h(l,null,[p(`div`,{id:`page-root`,ref_key:`root`,ref:b,class:v([`grid`,m(A)?`grid-rows-[1fr_max-content]`:`grid-cols-[1fr_max-content]`])},[n(P,{style:{background:`var(--slidev-slide-container-background, black)`},"is-main":``,"content-style":E.value,onPointerdown:x,onContextmenu:m(G)},{default:e(()=>[n(V,{"render-context":`slide`}),n(ee),n(I)]),controls:e(()=>[m(s)?c(``,!0):(t(),h(`div`,{key:0,class:v([`absolute bottom-0 left-0 transition duration-300 opacity-0 hover:opacity-100 focus-within:opacity-100 focus-visible:opacity-100`,[S.value?`!opacity-100 right-0`:`opacity-0 p-2`,m(y)?`pointer-events-none`:``]])},[n(H,{persist:S.value},null,8,[`persist`])],2))]),_:1},8,[`content-style`,`onContextmenu`]),T.value&&m(w)?(t(),_(m(T),{key:0,resize:!0})):c(``,!0)],2),m(s)?c(``,!0):(t(),_(Q,{key:0})),i[0]||=p(`div`,{id:`twoslash-container`},null,-1)],64))}});export{te as default}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/play-B_5Fyyu6.js b/docs/dist/assets/slidev/play-B_5Fyyu6.js new file mode 100644 index 00000000..d905e65e --- /dev/null +++ b/docs/dist/assets/slidev/play-B_5Fyyu6.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/slidev/DrawingControls-DW4yl75r.js","assets/rolldown-runtime-QTnfLwEv.js","assets/SlideWrapper-IFU3LLlv.js","assets/_plugin-vue_export-helper-BDNMzG2s.js","assets/index-BEBAY2Mg.js","assets/slidev/env-DWr22PMh.js","assets/utils-T1it7q9-.js","assets/modules/shiki-BmLmNVDB.js","assets/modules/shiki-BrmBd2_v.css","assets/modules/vue-5vwy5Re_.js","assets/slidev/useClicks-C2yK8i93.js","assets/index-JRGd7JqD.css","assets/SlideWrapper-D_cqB02h.css","assets/slidev/shortcuts-CQBL0mtp.js","assets/slidev/IconButton-BAiJUHfk.js","assets/shortcuts-B-l-cuzr.css","assets/DrawingControls-Dhbx0szf.css"])))=>i.map(i=>d[i]); +import{Q as e,S as t,Y as n,_ as r,_t as i,b as a,bt as o,ft as s,g as c,it as l,lt as u,m as d,ot as f,v as p,vt as m,w as h,x as g,y as _,z as v}from"../modules/shiki-BmLmNVDB.js";import{s as y}from"./env-DWr22PMh.js";import{C as b,m as x}from"../modules/vue-5vwy5Re_.js";import{A as S,D as C,N as w,V as T,W as E,X as D,Z as O,ht as k,o as A,v as j,z as M}from"../index-BEBAY2Mg.js";import{t as N}from"../modules/unplugin-icons-CHgNQGBt.js";import{i as P,s as F}from"../SlideWrapper-IFU3LLlv.js";import{a as I,c as L,d as R,f as z,l as B,n as V,r as H,s as U,t as W,u as G}from"./shortcuts-CQBL0mtp.js";import{t as K}from"./Modal-CdBImNxA.js";var q=2e3;function J(e){let t=c(()=>e.value&&C.value);function r(){document.body.style.cursor=`none`}function i(){document.body.style.cursor=``}let a=null;n(t,e=>{e||(i(),a&&clearTimeout(a),a=null)}),f(()=>{i(),a&&clearTimeout(a),a=null}),x(document.body,[`pointermove`,`pointerdown`],()=>{i(),a&&clearTimeout(a),a=t.value?setTimeout(r,q):null},{passive:!0})}var Y={class:`slidev-info-dialog slidev-layout flex flex-col gap-4 text-base`},X=[`innerHTML`],Z=h({__name:`InfoDialog`,props:{modelValue:{default:!1}},emits:[`update:modelValue`],setup(t,{emit:n}){let o=b(t,`modelValue`,n),s=c(()=>typeof y.info==`string`);return(t,n)=>(v(),p(K,{modelValue:i(o),"onUpdate:modelValue":n[0]||=e=>l(o)?o.value=e:null,class:`px-6 py-4`},{default:e(()=>[r(`div`,Y,[s.value?(v(),a(`div`,{key:0,class:`mb-4`,innerHTML:i(y).info},null,8,X)):_(``,!0),n[1]||=r(`a`,{href:`https://github.com/slidevjs/slidev`,target:`_blank`,class:`!opacity-100 !border-none !text-current`},[r(`div`,{class:`flex gap-1 children:my-auto`},[r(`div`,{class:`opacity-50 text-sm mr-2`},`Powered by`),r(`img`,{class:`w-5 h-5`,src:`/assets/logo-BYkHSa_O.png`,alt:`Slidev logo`}),r(`div`,{style:{color:`#2082A6`}},[r(`b`,null,`Sli`),g(`dev `)])])],-1)])]),_:1},8,[`modelValue`]))}}),Q=h({__name:`Controls`,setup(e){let{isEmbedded:n}=j(),r=!y.drawings.presenterOnly&&!n.value,o=s();r&&k(()=>import(`./DrawingControls-DW4yl75r.js`).then(e=>e.n).then(e=>o.value=e.default),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]));let c=s(),u=s();return(e,n)=>(v(),a(d,null,[o.value?(v(),p(i(o),{key:0})):_(``,!0),t(U),t(L),c.value?(v(),p(i(c),{key:1})):_(``,!0),u.value?(v(),p(i(u),{key:2,modelValue:i(E),"onUpdate:modelValue":n[0]||=e=>l(E)?E.value=e:null},null,8,[`modelValue`])):_(``,!0),i(y).info?(v(),p(Z,{key:3,modelValue:i(T),"onUpdate:modelValue":n[1]||=e=>l(T)?T.value=e:null},null,8,[`modelValue`])):_(``,!0),t(B)],64))}}),$={key:0,class:`absolute top-0 left-0 right-0 bottom-0 pointer-events-none text-xl`},ee=h({__name:`PresenterMouse`,setup(e){return(e,n)=>{let r=N;return i(A).cursor?.style===`cursor`?(v(),a(`div`,$,[t(r,{class:`absolute stroke-white dark:stroke-black`,style:o({left:`${i(A).cursor.x}%`,top:`${i(A).cursor.y}%`,strokeWidth:16})},null,8,[`style`])])):_(``,!0)}}}),te=h({__name:`play`,setup(n){let{next:o,prev:l,isPrintMode:f,isPlaying:h,isEmbedded:g}=j(),{isDrawing:y}=F(),b=u();function x(e){M.value||e.button===0&&e.target?.id===`slide-container`&&(e.pageX/window.innerWidth>.5?o():l())}z(b),W(),R(),J(c(()=>h.value&&!g.value&&!M.value));let C=c(()=>w.value||M.value),T=s(),E=c(()=>{let e=``;return D.value.brightness!==O.brightness&&(e+=`brightness(${D.value.brightness}) `),D.value.contrast!==O.contrast&&(e+=`contrast(${D.value.contrast}) `),D.value.sepia!==O.sepia&&(e+=`sepia(${D.value.sepia}) `),D.value.hueRotate!==O.hueRotate&&(e+=`hue-rotate(${D.value.hueRotate}deg) `),D.value.invert&&(e+=`invert(1) `),{filter:e}});return(n,o)=>(v(),a(d,null,[r(`div`,{id:`page-root`,ref_key:`root`,ref:b,class:m([`grid`,i(S)?`grid-rows-[1fr_max-content]`:`grid-cols-[1fr_max-content]`])},[t(P,{style:{background:`var(--slidev-slide-container-background, black)`},"is-main":``,"content-style":E.value,onPointerdown:x,onContextmenu:i(G)},{default:e(()=>[t(V,{"render-context":`slide`}),t(ee),t(I)]),controls:e(()=>[i(f)?_(``,!0):(v(),a(`div`,{key:0,class:m([`absolute bottom-0 left-0 transition duration-300 opacity-0 hover:opacity-100 focus-within:opacity-100 focus-visible:opacity-100`,[C.value?`!opacity-100 right-0`:`opacity-0 p-2`,i(y)?`pointer-events-none`:``]])},[t(H,{persist:C.value},null,8,[`persist`])],2))]),_:1},8,[`content-style`,`onContextmenu`]),T.value&&i(M)?(v(),p(i(T),{key:0,resize:!0})):_(``,!0)],2),i(f)?_(``,!0):(v(),p(Q,{key:0})),o[0]||=r(`div`,{id:`twoslash-container`},null,-1)],64))}});export{te as default}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/presenter-BVffpMW9.js b/docs/dist/assets/slidev/presenter-BVffpMW9.js deleted file mode 100644 index ca00ce2c..00000000 --- a/docs/dist/assets/slidev/presenter-BVffpMW9.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as e,B as t,C as n,R as r,S as i,St as a,T as o,X as s,Y as c,Z as l,_ as u,at as ee,b as d,et as f,m as te,pt as p,u as m,ut as h,v as g,vt as _,x as v,xt as ne,y,yt as b}from"../modules/shiki-yoNnvMyB.js";import{r as re}from"./utils-ebkCohfA.js";import{_ as x,h as S,p as C,w as ie}from"../modules/vue-ejhLULwH.js";import{F as ae,H as oe,O as se,P as w,R as ce,S as le,_ as ue,ht as de,mt as T,n as E,o as fe,x as pe,xt as me}from"../index-hODKC6Hw.js";import{i as he,s as ge,t as _e}from"../SlideWrapper-BclWpJbK.js";import{t as ve}from"./DrawingControls-CUTQg5_r.js";import{t as D}from"./IconButton-BlFal5-R.js";import{a as ye,c as be,d as xe,f as Se,i as Ce,l as we,n as Te,o as Ee,r as De,s as Oe,t as ke,u as Ae}from"./shortcuts-C9mtjhUG.js";import{n as je,t as O}from"./NoteDisplay-DaGhiV97.js";import{n as k,r as Me,t as Ne}from"./TimerBar-DRcu8SU0.js";import"./NoteEditable-CvntlA3F.js";var Pe=o({__name:`NoteStatic`,props:{no:{},class:{},clicksContext:{}},setup(e){let n=e,{info:r}=E(n.no);return(i,a)=>(t(),y(O,{class:b(n.class),note:_(r)?.note,"note-html":_(r)?.noteHTML,"clicks-context":e.clicksContext},null,8,[`class`,`note`,`note-html`,`clicks-context`]))}}),A={"h-full":``,"w-full":``},j={key:0,"w-full":``,"h-full":``,flex:`~ col gap-4 items-center justify-center`},Fe=o({__name:`ScreenCaptureMirror`,setup(e){let n=c(`video`),r=p(null),a=p(!1);async function o(){r.value=await navigator.mediaDevices.getDisplayMedia({video:{cursor:`always`},audio:!1,selfBrowserSurface:`include`,preferCurrentTab:!1}),n.value.srcObject=r.value,n.value.play(),a.value=!0,r.value.addEventListener(`inactive`,()=>{n.value.srcObject=null,a.value=!1}),r.value.addEventListener(`ended`,()=>{n.value.srcObject=null,a.value=!1})}return(e,r)=>(t(),v(`div`,A,[f(g(`video`,{ref_key:`video`,ref:n,class:`w-full h-full object-contain`},null,512),[[m,a.value]]),a.value?d(``,!0):(t(),v(`div`,j,[r[0]||=g(`div`,{op50:``},[i(` Use screen capturing to mirror your main screen back to presenter view.`),g(`br`),i(` Click the button below and `),g(`b`,null,`select your other monitor or window`),i(`. `)],-1),g(`button`,{class:`slidev-form-button`,onClick:o},` Start Screen Mirroring `)]))]))}}),M={class:`w-22px cursor-pointer`},N={class:`group-not-hover:hidden flex flex-col items-center`},P={key:0,class:`i-carbon:pause text-lg`},F={key:1,class:`i-carbon:play`},I={class:`text-3xl px-3 my-auto font-mono`},Ie=o({__name:`TimerInlined`,setup(e){let{status:n,percentage:r,mode:i,timer:o,reset:s,toggle:c}=k(),l=u(()=>n.value===`stopped`?`op50`:n.value===`paused`?`text-blue6 dark:text-blue3`:r.value>100?`text-red6 dark:text-red3`:r.value>80?`text-yellow6 dark:text-yellow3`:`text-green6 dark:text-green3`);return(e,r)=>(t(),v(`div`,{class:b([`group flex items-center justify-center pl-4 select-none`,l.value])},[g(`div`,M,[g(`div`,{class:b([`group-hover:hidden text-2xl`,_(i)===`countdown`?`i-carbon:timer`:`i-carbon:time`])},null,2),g(`div`,N,[g(`div`,{class:`relative op-80 hover:op-100`,onClick:r[0]||=(...e)=>_(c)&&_(c)(...e)},[_(n)===`running`?(t(),v(`div`,P)):(t(),v(`div`,F))]),g(`div`,{class:`op-80 hover:op-100`,onClick:r[1]||=(...e)=>_(s)&&_(s)(...e)},[...r[2]||=[g(`div`,{class:`i-carbon:renew`},null,-1)]])])]),g(`div`,I,[_(o).h?(t(),v(te,{key:0},[g(`span`,null,a(_(o).h),1),r[3]||=g(`span`,{op50:``},`:`,-1)],64)):d(``,!0),g(`span`,null,a(_(o).m),1),r[4]||=g(`span`,{op50:``},`:`,-1),g(`span`,null,a(_(o).s),1)])],2))}}),Le={class:`bg-main h-full slidev-presenter grid grid-rows-[max-content_1fr] of-hidden`},Re={flex:`~ gap-4 items-center`,border:`b main`,p1:``},ze={class:`relative grid-section next flex flex-col p-2 lg:p-4`},Be={key:2,class:`h-full flex justify-center items-center`},Ve={key:3,class:`h-full grid grid-rows-[1fr_min-content]`},L=T(o({__name:`presenter`,setup(i){let a=ie(),o=h(),c=h(),T=h(),E=h();ke(),Se(o),xe();let{clicksContext:O,currentSlideNo:k,currentSlideRoute:A,hasNext:j,nextRoute:M,slides:N,getPrimaryClicks:P}=ue(),{isDrawing:F}=ge();de({title:`Presenter - ${me}`}),h(!1);let I=u(()=>N.value.map(e=>{let t=h(0);return{context:re(t,e?.meta.slide?.frontmatter.clicksStart??0,e?.meta.clicks),clicks:t}})),L=u(()=>O.value.currentL.value&&I.value[L.value[0].no-1]);s(L,()=>{R.value&&L.value&&(R.value.clicks.value=L.value[1])},{immediate:!0});let z=S(`slidev-presenter-main-slide-mode`,`slides`),B=S(`slidev-presenter-notes-width`,360),V=S(`slidev-presenter-notes-row-size`,280),He=h(0),H=h(!1),U=h(!1),Ue=h(0),W=h(360),We=h(0),G=h(280),K={minNotesWidth:240,maxNotesWidth:720,minNotesRowSize:160,maxNotesWidthRatio:.7,maxNotesRowHeightRatio:.75},Ge=x(`(min-aspect-ratio: 1/1)`),q=x(`(max-aspect-ratio: 3/5)`),J=u(()=>w.value===1&&Ge.value),Y=u(()=>!(w.value===1&&q.value)),X=u(()=>w.value===1&&!q.value||w.value===2||w.value===3),Ke=u(()=>w.value===1&&!q.value);function qe(e){return Number.isFinite(e)?Math.max(K.minNotesWidth,Math.min(K.maxNotesWidth,Math.round(e))):K.minNotesWidth}function Je(e){let t=c.value;if(!t)return;let n=t.getBoundingClientRect(),r=e-Ue.value,i=qe(J.value?W.value-r:W.value+r),a=Math.round(n.width*K.maxNotesWidthRatio);B.value=Math.min(i,Math.max(K.minNotesWidth,a))}function Z(e){Y.value&&e.button===0&&(e.preventDefault(),Ue.value=e.clientX,W.value=B.value,H.value=!0)}function Q(e){return Number.isFinite(e)?Math.max(K.minNotesRowSize,Math.round(e)):K.minNotesRowSize}function Ye(e){let t=c.value;if(!t)return;let n=t.getBoundingClientRect(),r=e-We.value,i=Ke.value?G.value-r:G.value+r,a=Math.round(n.height*K.maxNotesRowHeightRatio);V.value=Math.min(Q(i),Math.max(K.minNotesRowSize,a))}function Xe(e){if(!X.value||e.button!==0)return;e.preventDefault();let t=w.value===2?o.value?.getBoundingClientRect().height:T.value?.getBoundingClientRect().height;We.value=e.clientY,G.value=Q(t??V.value),U.value=!0}function Ze(){let e=E.value;e&&(He.value=Math.round(e.getBoundingClientRect().height))}function Qe(){H.value=!1,U.value=!1}function $e(){Ze(),et()}C(window,`pointermove`,e=>{H.value&&Je(e.clientX),U.value&&Ye(e.clientY)}),C(window,`pointerup`,Qe),C(window,`pointercancel`,Qe),r(()=>{$e()}),C(window,`resize`,()=>{$e()});function et(){B.value=qe(B.value),V.value=Q(V.value);let e=c.value;if(!e)return;let t=e.getBoundingClientRect(),n=Math.round(t.width*K.maxNotesWidthRatio),r=Math.round(t.height*K.maxNotesRowHeightRatio);B.value=Math.min(B.value,Math.max(K.minNotesWidth,n)),V.value=Math.min(V.value,Math.max(K.minNotesRowSize,r))}let $=p();return r(()=>{let e=Ee(),t=ie();l(()=>{!e.value||!t.value||F.value||!oe.value?fe.cursor=void 0:fe.cursor={...e.value,style:pe.value}})}),(r,i)=>(t(),v(te,null,[g(`div`,Le,[g(`div`,null,[n(Me),n(Ne)]),g(`div`,{ref_key:`gridContainer`,ref:c,class:b([`grid-container`,`layout${_(w)}`]),style:ne({"--slidev-presenter-notes-width":`${_(B)}px`,"--slidev-presenter-notes-row-size":`${_(V)}px`,"--slidev-presenter-bottom-height":`${He.value}px`})},[Y.value&&J.value?(t(),v(`div`,{key:0,class:`notes-vertical-resizer`,role:`separator`,"aria-orientation":`vertical`,title:`Resize notes panel`,onPointerdown:Z},null,32)):d(``,!0),Y.value&&_(w)===3?(t(),v(`div`,{key:1,class:`notes-vertical-resizer-left`,role:`separator`,"aria-orientation":`vertical`,title:`Resize notes panel`,onPointerdown:Z},null,32)):d(``,!0),g(`div`,{ref_key:`main`,ref:o,class:`relative grid-section main flex flex-col`},[g(`div`,Re,[i[3]||=g(`span`,{op50:``,px2:``},`Current`,-1),i[4]||=g(`div`,{"flex-auto":``},null,-1),n(Ce,{modelValue:_(z),"onUpdate:modelValue":i[0]||=e=>ee(z)?z.value=e:null,options:[{label:`Slides`,value:`slides`},{label:`Screen Mirror`,value:`mirror`}]},null,8,[`modelValue`])]),_(z)===`mirror`?(t(),y(Fe,{key:0})):d(``,!0),f(n(he,{key:`main`,class:`p-2 lg:p-4 flex-auto`,"is-main":``,onContextmenu:_(Ae)},{default:e(()=>[n(Te,{"render-context":`presenter`}),n(ye)]),_:1},8,[`onContextmenu`]),[[m,_(z)===`slides`]]),(t(),y(je,{key:_(A)?.no,"clicks-context":_(P)(_(A)),class:`w-full pb2 px4 flex-none`},null,8,[`clicks-context`]))],512),g(`div`,ze,[X.value&&_(w)===2?(t(),v(`div`,{key:0,class:`notes-row-resizer top-[-6px]`,role:`separator`,"aria-orientation":`horizontal`,title:`Resize notes panel height`,onPointerdown:Xe},null,32)):d(``,!0),L.value&&R.value?(t(),y(he,{key:`next`},{default:e(()=>[(t(),y(_e,{key:L.value[0].no,"clicks-context":R.value.context,route:L.value[0],"render-context":`previewNext`},null,8,[`clicks-context`,`route`]))]),_:1})):(t(),v(`div`,Be,[...i[5]||=[g(`div`,{class:`text-gray-500`},` End of the presentation `,-1)]])),i[6]||=g(`div`,{class:`absolute left-0 top-0 bg-main border-b border-r border-main px2 py1 op50 text-sm`},` Next `,-1)]),g(`div`,{ref_key:`noteSection`,ref:T,class:`relative grid-section note overflow-hidden`},[Y.value&&!J.value&&_(w)!==3?(t(),v(`div`,{key:0,class:`notes-resizer right-[-6px]`,role:`separator`,"aria-orientation":`vertical`,title:`Resize notes panel`,onPointerdown:Z},null,32)):d(``,!0),X.value&&_(w)!==2?(t(),v(`div`,{key:1,class:b([`notes-row-resizer`,Ke.value?`top-[-6px]`:`bottom-[-6px]`]),role:`separator`,"aria-orientation":`horizontal`,title:`Resize notes panel height`,onPointerdown:Xe},null,34)):d(``,!0),$.value&&_(ce)?(t(),y(_($),{key:2,class:`h-full`})):(t(),v(`div`,Ve,[(t(),y(Pe,{key:`static-${_(k)}`,no:_(k),class:`w-full max-w-full h-full overflow-auto p-2 lg:p-4`,style:ne({fontSize:`${_(ae)}em`}),"clicks-context":_(O)},null,8,[`no`,`style`,`clicks-context`])),i[10]||=g(`div`,{"border-t":``,"border-main":``},null,-1),g(`div`,{class:b([`py-1 px-2 text-sm transition`,_(a)?``:`op25`])},[n(D,{title:`Increase font size`,onClick:_(se)},{default:e(()=>[...i[7]||=[g(`div`,{class:`i-carbon:zoom-in`},null,-1)]]),_:1},8,[`onClick`]),n(D,{title:`Decrease font size`,onClick:_(le)},{default:e(()=>[...i[8]||=[g(`div`,{class:`i-carbon:zoom-out`},null,-1)]]),_:1},8,[`onClick`]),d(``,!0)],2)]))],512),g(`div`,{ref_key:`bottomSection`,ref:E,class:`grid-section bottom flex`},[n(De,{persist:!0,class:b([`transition`,_(a)?``:`op25`])},null,8,[`class`]),i[11]||=g(`div`,{"flex-auto":``},null,-1),n(Ie)],512),(t(),y(ve,{key:2}))],6)]),n(be),n(Oe),n(we)],64))}}),[[`__scopeId`,`data-v-bff7e64f`]]);export{L as default}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/presenter-LR8VZmeq.js b/docs/dist/assets/slidev/presenter-LR8VZmeq.js new file mode 100644 index 00000000..eead154b --- /dev/null +++ b/docs/dist/assets/slidev/presenter-LR8VZmeq.js @@ -0,0 +1 @@ +import{$ as e,J as t,L as n,Q as r,S as i,X as a,Y as o,_ as s,_t as c,b as l,bt as u,ft as d,g as f,it as ee,lt as p,m as te,u as m,v as h,vt as g,w as _,x as v,xt as y,y as b,z as x}from"../modules/shiki-BmLmNVDB.js";import{a as ne}from"./env-DWr22PMh.js";import{T as re,g as S,m as C,v as ie}from"../modules/vue-5vwy5Re_.js";import{t as ae}from"./useClicks-C2yK8i93.js";import{t as w}from"../_plugin-vue_export-helper-BDNMzG2s.js";import{C as oe,F as T,I as se,S as ce,U as le,gt as ue,k as de,n as E,o as D,v as fe,z as pe}from"../index-BEBAY2Mg.js";import{i as me,s as he,t as ge}from"../SlideWrapper-IFU3LLlv.js";import{t as _e}from"./DrawingControls-DW4yl75r.js";import{t as ve}from"./IconButton-BAiJUHfk.js";import{a as ye,c as be,d as xe,f as Se,i as Ce,l as we,n as Te,o as Ee,r as De,s as Oe,t as ke,u as Ae}from"./shortcuts-CQBL0mtp.js";import{n as je,t as O}from"./NoteDisplay-BAqwAo7Q.js";import{n as k,r as Me,t as Ne}from"./TimerBar-BQGouMOn.js";import"./NoteEditable-C2jELoYc.js";var Pe=_({__name:`NoteStatic`,props:{no:{},class:{},clicksContext:{}},setup(e){let t=e,{info:n}=E(t.no);return(r,i)=>(x(),h(O,{class:g(t.class),note:c(n)?.note,"note-html":c(n)?.noteHTML,"clicks-context":e.clicksContext},null,8,[`class`,`note`,`note-html`,`clicks-context`]))}}),A={"h-full":``,"w-full":``},j={key:0,"w-full":``,"h-full":``,flex:`~ col gap-4 items-center justify-center`},Fe=_({__name:`ScreenCaptureMirror`,setup(n){let r=t(`video`),i=d(null),a=d(!1);async function o(){i.value=await navigator.mediaDevices.getDisplayMedia({video:{cursor:`always`},audio:!1,selfBrowserSurface:`include`,preferCurrentTab:!1}),r.value.srcObject=i.value,r.value.play(),a.value=!0,i.value.addEventListener(`inactive`,()=>{r.value.srcObject=null,a.value=!1}),i.value.addEventListener(`ended`,()=>{r.value.srcObject=null,a.value=!1})}return(t,n)=>(x(),l(`div`,A,[e(s(`video`,{ref_key:`video`,ref:r,class:`w-full h-full object-contain`},null,512),[[m,a.value]]),a.value?b(``,!0):(x(),l(`div`,j,[n[0]||=s(`div`,{op50:``},[v(` Use screen capturing to mirror your main screen back to presenter view.`),s(`br`),v(` Click the button below and `),s(`b`,null,`select your other monitor or window`),v(`. `)],-1),s(`button`,{class:`slidev-form-button`,onClick:o},` Start Screen Mirroring `)]))]))}}),M={class:`w-22px cursor-pointer`},N={class:`group-not-hover:hidden flex flex-col items-center`},Ie={key:0,class:`i-carbon:pause text-lg`},Le={key:1,class:`i-carbon:play`},Re={class:`text-3xl px-3 my-auto font-mono`},ze=_({__name:`TimerInlined`,setup(e){let{status:t,percentage:n,mode:r,timer:i,reset:a,toggle:o}=k(),u=f(()=>t.value===`stopped`?`op50`:t.value===`paused`?`text-blue6 dark:text-blue3`:n.value>100?`text-red6 dark:text-red3`:n.value>80?`text-yellow6 dark:text-yellow3`:`text-green6 dark:text-green3`);return(e,n)=>(x(),l(`div`,{class:g([`group flex items-center justify-center pl-4 select-none`,u.value])},[s(`div`,M,[s(`div`,{class:g([`group-hover:hidden text-2xl`,c(r)===`countdown`?`i-carbon:timer`:`i-carbon:time`])},null,2),s(`div`,N,[s(`div`,{class:`relative op-80 hover:op-100`,onClick:n[0]||=(...e)=>c(o)&&c(o)(...e)},[c(t)===`running`?(x(),l(`div`,Ie)):(x(),l(`div`,Le))]),s(`div`,{class:`op-80 hover:op-100`,onClick:n[1]||=(...e)=>c(a)&&c(a)(...e)},[...n[2]||=[s(`div`,{class:`i-carbon:renew`},null,-1)]])])]),s(`div`,Re,[c(i).h?(x(),l(te,{key:0},[s(`span`,null,y(c(i).h),1),n[3]||=s(`span`,{op50:``},`:`,-1)],64)):b(``,!0),s(`span`,null,y(c(i).m),1),n[4]||=s(`span`,{op50:``},`:`,-1),s(`span`,null,y(c(i).s),1)])],2))}}),Be={class:`bg-main h-full slidev-presenter grid grid-rows-[max-content_1fr] of-hidden`},Ve={flex:`~ gap-4 items-center`,border:`b main`,p1:``},He={class:`relative grid-section next flex flex-col p-2 lg:p-4`},Ue={key:2,class:`h-full flex justify-center items-center`},We={key:3,class:`h-full grid grid-rows-[1fr_min-content]`},P=w(_({__name:`presenter`,setup(t){let _=re(),v=p(),y=p(),w=p(),E=p();ke(),Se(v),xe();let{clicksContext:O,currentSlideNo:k,currentSlideRoute:A,hasNext:j,nextRoute:M,slides:N,getPrimaryClicks:Ie}=fe(),{isDrawing:Le}=he();ue({title:`Presenter - ${ne}`}),p(!1);let Re=f(()=>N.value.map(e=>{let t=p(0);return{context:ae(t,e?.meta.slide?.frontmatter.clicksStart??0,e?.meta.clicks),clicks:t}})),P=f(()=>O.value.currentP.value&&Re.value[P.value[0].no-1]);o(P,()=>{F.value&&P.value&&(F.value.clicks.value=P.value[1])},{immediate:!0});let I=S(`slidev-presenter-main-slide-mode`,`slides`),L=S(`slidev-presenter-notes-width`,360),R=S(`slidev-presenter-notes-row-size`,280),z=p(0),B=p(!1),V=p(!1),H=p(0),U=p(360),W=p(0),G=p(280),K={minNotesWidth:240,maxNotesWidth:720,minNotesRowSize:160,maxNotesWidthRatio:.7,maxNotesRowHeightRatio:.75},Ge=ie(`(min-aspect-ratio: 1/1)`),q=ie(`(max-aspect-ratio: 3/5)`),J=f(()=>T.value===1&&Ge.value),Y=f(()=>!(T.value===1&&q.value)),X=f(()=>T.value===1&&!q.value||T.value===2||T.value===3),Z=f(()=>T.value===1&&!q.value);function Ke(e){return Number.isFinite(e)?Math.max(K.minNotesWidth,Math.min(K.maxNotesWidth,Math.round(e))):K.minNotesWidth}function qe(e){let t=y.value;if(!t)return;let n=t.getBoundingClientRect(),r=e-H.value,i=Ke(J.value?U.value-r:U.value+r),a=Math.round(n.width*K.maxNotesWidthRatio);L.value=Math.min(i,Math.max(K.minNotesWidth,a))}function Q(e){Y.value&&e.button===0&&(e.preventDefault(),H.value=e.clientX,U.value=L.value,B.value=!0)}function $(e){return Number.isFinite(e)?Math.max(K.minNotesRowSize,Math.round(e)):K.minNotesRowSize}function Je(e){let t=y.value;if(!t)return;let n=t.getBoundingClientRect(),r=e-W.value,i=Z.value?G.value-r:G.value+r,a=Math.round(n.height*K.maxNotesRowHeightRatio);R.value=Math.min($(i),Math.max(K.minNotesRowSize,a))}function Ye(e){if(!X.value||e.button!==0)return;e.preventDefault();let t=T.value===2?v.value?.getBoundingClientRect().height:w.value?.getBoundingClientRect().height;W.value=e.clientY,G.value=$(t??R.value),V.value=!0}function Xe(){let e=E.value;e&&(z.value=Math.round(e.getBoundingClientRect().height))}function Ze(){B.value=!1,V.value=!1}function Qe(){Xe(),$e()}C(window,`pointermove`,e=>{B.value&&qe(e.clientX),V.value&&Je(e.clientY)}),C(window,`pointerup`,Ze),C(window,`pointercancel`,Ze),n(()=>{Qe()}),C(window,`resize`,()=>{Qe()});function $e(){L.value=Ke(L.value),R.value=$(R.value);let e=y.value;if(!e)return;let t=e.getBoundingClientRect(),n=Math.round(t.width*K.maxNotesWidthRatio),r=Math.round(t.height*K.maxNotesRowHeightRatio);L.value=Math.min(L.value,Math.max(K.minNotesWidth,n)),R.value=Math.min(R.value,Math.max(K.minNotesRowSize,r))}let et=d();return n(()=>{let e=Ee(),t=re();a(()=>{!e.value||!t.value||Le.value||!le.value?D.cursor=void 0:D.cursor={...e.value,style:ce.value}})}),(t,n)=>(x(),l(te,null,[s(`div`,Be,[s(`div`,null,[i(Me),i(Ne)]),s(`div`,{ref_key:`gridContainer`,ref:y,class:g([`grid-container`,`layout${c(T)}`]),style:u({"--slidev-presenter-notes-width":`${c(L)}px`,"--slidev-presenter-notes-row-size":`${c(R)}px`,"--slidev-presenter-bottom-height":`${z.value}px`})},[Y.value&&J.value?(x(),l(`div`,{key:0,class:`notes-vertical-resizer`,role:`separator`,"aria-orientation":`vertical`,title:`Resize notes panel`,onPointerdown:Q},null,32)):b(``,!0),Y.value&&c(T)===3?(x(),l(`div`,{key:1,class:`notes-vertical-resizer-left`,role:`separator`,"aria-orientation":`vertical`,title:`Resize notes panel`,onPointerdown:Q},null,32)):b(``,!0),s(`div`,{ref_key:`main`,ref:v,class:`relative grid-section main flex flex-col`},[s(`div`,Ve,[n[3]||=s(`span`,{op50:``,px2:``},`Current`,-1),n[4]||=s(`div`,{"flex-auto":``},null,-1),i(Ce,{modelValue:c(I),"onUpdate:modelValue":n[0]||=e=>ee(I)?I.value=e:null,options:[{label:`Slides`,value:`slides`},{label:`Screen Mirror`,value:`mirror`}]},null,8,[`modelValue`])]),c(I)===`mirror`?(x(),h(Fe,{key:0})):b(``,!0),e(i(me,{key:`main`,class:`p-2 lg:p-4 flex-auto`,"is-main":``,onContextmenu:c(Ae)},{default:r(()=>[i(Te,{"render-context":`presenter`}),i(ye)]),_:1},8,[`onContextmenu`]),[[m,c(I)===`slides`]]),(x(),h(je,{key:c(A)?.no,"clicks-context":c(Ie)(c(A)),class:`w-full pb2 px4 flex-none`},null,8,[`clicks-context`]))],512),s(`div`,He,[X.value&&c(T)===2?(x(),l(`div`,{key:0,class:`notes-row-resizer top-[-6px]`,role:`separator`,"aria-orientation":`horizontal`,title:`Resize notes panel height`,onPointerdown:Ye},null,32)):b(``,!0),P.value&&F.value?(x(),h(me,{key:`next`},{default:r(()=>[(x(),h(ge,{key:P.value[0].no,"clicks-context":F.value.context,route:P.value[0],"render-context":`previewNext`},null,8,[`clicks-context`,`route`]))]),_:1})):(x(),l(`div`,Ue,[...n[5]||=[s(`div`,{class:`text-gray-500`},` End of the presentation `,-1)]])),n[6]||=s(`div`,{class:`absolute left-0 top-0 bg-main border-b border-r border-main px2 py1 op50 text-sm`},` Next `,-1)]),s(`div`,{ref_key:`noteSection`,ref:w,class:`relative grid-section note overflow-hidden`},[Y.value&&!J.value&&c(T)!==3?(x(),l(`div`,{key:0,class:`notes-resizer right-[-6px]`,role:`separator`,"aria-orientation":`vertical`,title:`Resize notes panel`,onPointerdown:Q},null,32)):b(``,!0),X.value&&c(T)!==2?(x(),l(`div`,{key:1,class:g([`notes-row-resizer`,Z.value?`top-[-6px]`:`bottom-[-6px]`]),role:`separator`,"aria-orientation":`horizontal`,title:`Resize notes panel height`,onPointerdown:Ye},null,34)):b(``,!0),et.value&&c(pe)?(x(),h(c(et),{key:2,class:`h-full`})):(x(),l(`div`,We,[(x(),h(Pe,{key:`static-${c(k)}`,no:c(k),class:`w-full max-w-full h-full overflow-auto p-2 lg:p-4`,style:u({fontSize:`${c(se)}em`}),"clicks-context":c(O)},null,8,[`no`,`style`,`clicks-context`])),n[10]||=s(`div`,{"border-t":``,"border-main":``},null,-1),s(`div`,{class:g([`py-1 px-2 text-sm transition`,c(_)?``:`op25`])},[i(ve,{title:`Increase font size`,onClick:c(de)},{default:r(()=>[...n[7]||=[s(`div`,{class:`i-carbon:zoom-in`},null,-1)]]),_:1},8,[`onClick`]),i(ve,{title:`Decrease font size`,onClick:c(oe)},{default:r(()=>[...n[8]||=[s(`div`,{class:`i-carbon:zoom-out`},null,-1)]]),_:1},8,[`onClick`]),b(``,!0)],2)]))],512),s(`div`,{ref_key:`bottomSection`,ref:E,class:`grid-section bottom flex`},[i(De,{persist:!0,class:g([`transition`,c(_)?``:`op25`])},null,8,[`class`]),n[11]||=s(`div`,{"flex-auto":``},null,-1),i(ze)],512),(x(),h(_e,{key:2}))],6)]),i(be),i(Oe),i(we)],64))}}),[[`__scopeId`,`data-v-7696994b`]]);export{P as default}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/shortcuts-C9mtjhUG.js b/docs/dist/assets/slidev/shortcuts-C9mtjhUG.js deleted file mode 100644 index 372f0dc8..00000000 --- a/docs/dist/assets/slidev/shortcuts-C9mtjhUG.js +++ /dev/null @@ -1,4 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DrawingLayer-B_LvgAMt.js","../index-hODKC6Hw.js","../rolldown-runtime-QTnfLwEv.js","./utils-ebkCohfA.js","../modules/shiki-yoNnvMyB.js","../modules/shiki-BrmBd2_v.css","../modules/vue-ejhLULwH.js","../index-CyXYSPNL.css","../SlideWrapper-BclWpJbK.js","../SlideWrapper-cGPNHQX8.css"])))=>i.map(i=>d[i]); -import{$ as e,A as t,B as n,C as r,D as i,H as a,K as o,M as s,N as c,R as l,S as u,St as d,T as f,U as p,X as m,Z as h,_ as g,a as _,at as v,b as y,bt as b,c as x,d as S,et as C,f as w,h as T,i as ee,l as te,m as E,n as ne,o as re,pt as ie,q as ae,u as oe,ut as D,v as O,vt as k,x as A,xt as j,y as M,yt as N}from"../modules/shiki-yoNnvMyB.js";import{i as se,o as ce}from"./utils-ebkCohfA.js";import{B as le,C as ue,F as de,N as fe,S as pe,d as me,n as P,o as he,p as ge,r as _e,s as ve,t as F,v as ye,w as be,y as xe}from"../modules/vue-ejhLULwH.js";import{$ as Se,A as Ce,B as we,C as Te,D as Ee,E as De,G as I,H as Oe,I as ke,J as Ae,K as je,L as Me,N as Ne,P as Pe,Q as Fe,R as Ie,St as L,T as Le,V as R,W as Re,X as z,Y as B,Z as ze,_ as V,_t as Be,b as Ve,bt as He,ft as Ue,g as We,h as Ge,i as Ke,j as qe,m as Je,mt as Ye,nt as Xe,o as Ze,pt as Qe,q as $e,r as et,rt as tt,t as nt,ut as rt,v as it,w as at,x as H,y as ot,yt as st,z as U}from"../index-hODKC6Hw.js";import{a as ct,i as lt,n as ut,o as dt,r as ft,s as pt,t as mt}from"../SlideWrapper-BclWpJbK.js";import{t as W}from"./IconButton-BlFal5-R.js";var ht={},gt={class:`w-1px opacity-10 bg-current m-1 lg:m-2`};function _t(e,t){return n(),A(`div`,gt)}var vt=Ye(ht,[[`render`,_t]]);function yt(e){let{next:t,nextSlide:n,prev:r,prevSlide:i}=V(),{isDrawing:a}=pt(),o=D(0),{direction:s,distanceX:c,distanceY:l}=xe(e,{pointerTypes:[`touch`],onSwipeStart(){a.value||(o.value=fe())},onSwipeEnd(){if(!o.value||a.value)return;let e=Math.abs(c.value),u=Math.abs(l.value);e/window.innerWidth>.3||e>75?s.value===`left`?t():r():(u/window.innerHeight>.4||u>200)&&(s.value===`down`?i():n())}})}function bt(){let{request:e,release:t}=ue();m(ze,n=>{n?e(`screen`):t()},{immediate:!0})}var xt=Object.assign({}),St=Object.assign({}),Ct=[Object.values(xt)[0],Object.values(St)[0]].filter(Boolean),wt,Tt=()=>{if(wt)return wt;let{next:e,nextSlide:t,prev:n,prevSlide:r,hasNext:i,hasPrev:a,currentPage:o,total:s,isPresenter:c,enterPresenter:l,exitPresenter:u,isEmbedded:d,isPresenterAvailable:f}=V(),{drawingEnabled:p}=pt(),{isFullscreen:m,toggle:h}=at;return wt=Ct.reduce((e,t)=>t(e),g(()=>[{small:!0,icon:`i-carbon:arrow-left`,label:`Previous Click`,action:n,disabled:!a.value},{small:!0,icon:`i-carbon:arrow-right`,label:`Next Click`,action:e,disabled:!i.value},{small:!0,icon:`i-carbon:arrow-up`,label:`Previous Slide`,action:r,disabled:o.value<=1},{small:!0,icon:`i-carbon:arrow-down`,label:`Next Slide`,action:t,disabled:o.value>=s.value},`separator`,{icon:`i-carbon:text-annotation-toggle`,label:Ie.value?`Hide editor`:`Show editor`,action:()=>Ie.value=!Ie.value,show:!1},{icon:`i-carbon:pen`,label:p.value?`Hide drawing toolbar`:`Show drawing toolbar`,action:()=>p.value=!p.value},{icon:`i-carbon:apps`,label:`Show slide overview`,action:je},c.value&&{icon:`i-carbon:presentation-file`,label:`Exit Presenter Mode`,action:u},f.value&&{icon:`i-carbon:user-speaker`,label:`Enter Presenter Mode`,action:l},!d.value&&{icon:m.value?`i-carbon:minimize`:`i-carbon:maximize`,label:m.value?`Close fullscreen`:`Enter fullscreen`,action:h}].filter(Boolean)))},Et=ie(null);function Dt(e,t){Et.value={x:e,y:t,items:Tt()}}function Ot(){Et.value=null}function kt(e){if(L.contextMenu!==!0&&L.contextMenu!=null&&L.contextMenu!==`build`||e.shiftKey||e.defaultPrevented)return;let{isEmbedded:t}=V();t.value||(Dt(e.pageX,e.pageY),e.preventDefault(),e.stopPropagation())}var At=[`title`,`onClick`],jt=[`onClick`],Mt={class:`mx-auto flex`},Nt={key:0},Pt={class:`w-full text-xs p2`},Ft={class:`text-main text-opacity-50!`},It=f({__name:`ContextMenu`,setup(e){let t=D();he(t,Ot),ge(document,`mousedown`,e=>{e.buttons&2&&Ot()},{passive:!0,capture:!0});let r=g(()=>L.contextMenu!=null);m(be(),e=>{e||Ot()}),nt(1);let{width:i,height:s}=me(t),c=g(()=>{let e=Et.value?.x;return e?e+i.value>Fe.width.value?Fe.width.value-i.value:e:0}),l=g(()=>{let e=Et.value?.y;return e?e+s.value>Fe.height.value?Fe.height.value-s.value:e:0});return(e,i)=>k(Et)?(n(),A(`div`,{key:0,ref_key:`container`,ref:t,style:j(`left:${c.value}px;top:${l.value}px`),class:`slidev-glass-effect fixed z-context-menu w-60 flex flex-wrap justify-items-start p-1 animate-fade-in animate-duration-100 rounded-md shadow overflow-hidden select-none`,onContextmenu:i[1]||=w(()=>{},[`prevent`]),onClick:i[2]||=(...e)=>k(Ot)&&k(Ot)(...e)},[(n(!0),A(E,null,a(k(Et).items.value,(e,t)=>(n(),A(E,{key:t},[e===`separator`?(n(),A(`div`,{key:t,class:`w-full my1 border-t border-main`})):e.show??!0?(n(),A(E,{key:1},[e.small?(n(),A(`div`,{key:0,class:N([`p-2 w-[40px] h-[40px] inline-block text-center cursor-pointer rounded flex`,e.disabled?`op40`:`hover:bg-active`]),title:e.label,onClick:e.action},[typeof e.icon==`string`?(n(),A(`div`,{key:0,class:N([e.icon,`text-1.2em ma`])},null,2)):(n(),M(o(e.icon),{key:1}))],10,At)):(n(),A(`div`,{key:1,class:N([`w-full grid grid-cols-[35px_1fr] p-2 pl-0 cursor-pointer rounded`,e.disabled?`op40`:`hover:bg-active`]),onClick:e.action},[O(`div`,Mt,[typeof e.icon==`string`?(n(),A(`div`,{key:0,class:N([e.icon,`text-1.2em ma`])},null,2)):(n(),M(o(e.icon),{key:1}))]),typeof e.label==`string`?(n(),A(`div`,Nt,d(e.label),1)):(n(),M(o(e.label),{key:1}))],10,jt))],64)):y(``,!0)],64))),128)),r.value?y(``,!0):(n(),A(E,{key:0},[i[6]||=O(`div`,{class:`w-full my1 border-t border-main`},null,-1),O(`div`,Pt,[O(`div`,Ft,[i[3]||=u(` Hold `,-1),i[4]||=O(`kbd`,{class:`border px1 py0.5 border-main rounded text-primary`},`Shift`,-1),i[5]||=u(` and right click to open the native context menu `,-1),y(``,!0)])])],64))],36)):y(``,!0)}});function G(e){return Array.isArray?Array.isArray(e):Wt(e)===`[object Array]`}function Lt(e){if(typeof e==`string`)return e;if(typeof e==`bigint`)return e.toString();let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function Rt(e){return e==null?``:Lt(e)}function K(e){return typeof e==`string`}function zt(e){return typeof e==`number`}function Bt(e){return e===!0||e===!1||Ht(e)&&Wt(e)==`[object Boolean]`}function Vt(e){return typeof e==`object`}function Ht(e){return Vt(e)&&e!==null}function q(e){return e!=null}function Ut(e){return!e.trim().length}function Wt(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var Gt=`Incorrect 'index' type`,Kt=`Invalid doc index: must be a non-negative integer within the bounds of the docs array`,qt=e=>`Invalid value for key ${e}`,Jt=e=>`Pattern length exceeds max of ${e}.`,Yt=e=>`Missing ${e} property in key`,Xt=e=>`Property 'weight' in key '${e}' must be a positive integer`,Zt=`Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.`,Qt=Object.prototype.hasOwnProperty,$t=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=en(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function en(e){let t=null,n=null,r=null,i=1,a=null;if(K(e)||G(e))r=e,t=tn(e),n=nn(e);else{if(!Qt.call(e,`name`))throw Error(Yt(`name`));let o=e.name;if(r=o,Qt.call(e,`weight`)&&e.weight!==void 0&&(i=e.weight,i<=0))throw Error(Xt(nn(o)));t=tn(o),n=nn(o),a=e.getFn??null}return{path:t,id:n,weight:i,src:r,getFn:a}}function tn(e){return G(e)?e:e.split(`.`)}function nn(e){return G(e)?e.join(`.`):e}function rn(e,t){let n=[],r=!1,i=(e,t,a,o)=>{if(q(e))if(!t[a])n.push(o===void 0?e:{v:e,i:o});else{let s=e[t[a]];if(!q(s))return;if(a===t.length-1&&(K(s)||zt(s)||Bt(s)||typeof s==`bigint`))n.push(o===void 0?Rt(s):{v:Rt(s),i:o});else if(G(s)){r=!0;for(let e=0,n=s.length;ee.score===t.score?e.idx{this._keysMap[e.id]=t})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;let e=this.docs.length;this.records=Array(e);let t=0;if(K(this.docs[0]))for(let n=0;ne&&--this.records[t].i}removeAll(e){let t=new Set;for(let n of e)Number.isInteger(n)&&n>=0&&t.add(n);if(t.size===0)return;this.records=this.records.filter(e=>!t.has(e.i));let n=Array.from(t).sort((e,t)=>e-t);for(let e of this.records){let t=0,r=n.length;for(;t>>1;n[i]t),records:this.records}}};function dn(e,t,{getFn:n=J.getFn,fieldNormWeight:r=J.fieldNormWeight}={}){let i=new un({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(en)),i.setSources(t),i.create(),i}function fn(e,{getFn:t=J.getFn,fieldNormWeight:n=J.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new un({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a}function pn(e=[],t=J.minMatchCharLength){let n=[],r=-1,i=-1,a=0;for(let o=e.length;a=t&&n.push([r,i]),r=-1)}return e[a-1]&&a-r>=t&&n.push([r,a-1]),n}function mn(e,t,n,{location:r=J.location,distance:i=J.distance,threshold:a=J.threshold,findAllMatches:o=J.findAllMatches,minMatchCharLength:s=J.minMatchCharLength,includeMatches:c=J.includeMatches,ignoreLocation:l=J.ignoreLocation}={}){if(t.length>32)throw Error(Jt(32));let u=t.length,d=e.length,f=Math.max(0,Math.min(r,d)),p=a,m=f,h=(e,t)=>{let n=e/u;if(l)return n;let r=Math.abs(f-t);return i?n+r/i:r?1:n},g=s>1||c,_=g?Array(d):[],v;for(;(v=e.indexOf(t,m))>-1;){let e=h(0,v);if(p=Math.min(e,p),m=v+u,g){let e=0;for(;e=a;--r){let i=r-1,o=n[e[i]];if(c[r]=(c[r+1]<<1|1)&o,t&&(c[r]|=(y[r+1]|y[r])<<1|1|y[r+1]),c[r]&C&&(b=h(t,i),b<=p)){if(p=b,m=i,x=t,m<=f)break;a=Math.max(1,2*f-m)}}if(h(t+1,f)>p)break;y=c}if(g&&m>=0){let t=Math.min(d-1,m+u-1+x);for(let r=m;r<=t;r+=1)n[e[r]]&&(_[r]=1)}let w={isMatch:m>=0,score:Math.max(.001,b)};if(g){let e=pn(_,s);e.length?c&&(w.indices=e):w.isMatch=!1}return w}function hn(e){let t={};for(let n=0,r=e.length;ne[0]-t[0]||e[1]-t[1]);let t=[e[0]];for(let n=1,r=e.length;ne.normalize(`NFD`).replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,``).replace(vn,e=>_n[e]):e=>e,bn=class{constructor(e,{location:t=J.location,threshold:n=J.threshold,distance:r=J.distance,includeMatches:i=J.includeMatches,findAllMatches:a=J.findAllMatches,minMatchCharLength:o=J.minMatchCharLength,isCaseSensitive:s=J.isCaseSensitive,ignoreDiacritics:c=J.ignoreDiacritics,ignoreLocation:l=J.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l},e=s?e:e.toLowerCase(),e=c?yn(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:hn(e),startIndex:t})},d=this.pattern.length;if(d>32){let e=0,t=d%32,n=d-t;for(;e{let{isMatch:m,score:h,indices:g}=mn(e,t,n,{location:i+p,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,includeMatches:r,ignoreLocation:l});m&&(f=!0),d+=h,m&&g&&u.push(...g)});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=gn(u)),p}},xn=new Set([`fuzzy`,`include`]);function Sn(e){return e.startsWith(`inverse`)}var Cn=[{type:`exact`,multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:`exact`,search(t){let n=t===e;return{isMatch:n,score:+!n,indices:[0,e.length-1]}}})},{type:`include`,multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:`include`,search(t){let n=0,r,i=[],a=e.length;for(;(r=t.indexOf(e,n))>-1;)n=r+a,i.push([r,n-1]);let o=!!i.length;return{isMatch:o,score:+!o,indices:i}}})},{type:`prefix-exact`,multiRegex:/^\^"(.*)"$/,singleRegex:/^\^(.*)$/,create:e=>({type:`prefix-exact`,search(t){let n=t.startsWith(e);return{isMatch:n,score:+!n,indices:[0,e.length-1]}}})},{type:`inverse-prefix-exact`,multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:`inverse-prefix-exact`,search(t){let n=!t.startsWith(e);return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`inverse-suffix-exact`,multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:`inverse-suffix-exact`,search(t){let n=!t.endsWith(e);return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`suffix-exact`,multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:`suffix-exact`,search(t){let n=t.endsWith(e);return{isMatch:n,score:+!n,indices:[t.length-e.length,t.length-1]}}})},{type:`inverse-exact`,multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:`inverse-exact`,search(t){let n=t.indexOf(e)===-1;return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`fuzzy`,multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{let n=new bn(e,{location:t.location??J.location,threshold:t.threshold??J.threshold,distance:t.distance??J.distance,includeMatches:t.includeMatches??J.includeMatches,findAllMatches:t.findAllMatches??J.findAllMatches,minMatchCharLength:t.minMatchCharLength??J.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??J.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??J.ignoreDiacritics,ignoreLocation:t.ignoreLocation??J.ignoreLocation});return{type:`fuzzy`,search(e){return n.searchIn(e)}}}}],wn=Cn.length,Tn=`\0`,En=`|`;function Dn(e){let t=[],n=e.length,r=0;for(;r=n)break;let i=r;for(;i=n||e[t]===` `){i++;break}if(e[t]===`$`&&(t+1>=n||e[t+1]===` `)){i+=2;break}}i++}t.push(e.substring(r,i)),r=i}else{for(;i{let n=Dn(e.replace(/\u0000/g,`|`).trim()).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e!!(e[Pn.AND]||e[Pn.OR]),Ln=e=>!!e[Fn.PATH],Rn=e=>!G(e)&&Vt(e)&&!In(e),zn=e=>({[Pn.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Bn(e,t,{auto:n=!0}={}){let r=e=>{if(K(e)){let r={keyId:null,pattern:e};return n&&(r.searcher=Nn(e,t)),r}let i=Object.keys(e),a=Ln(e);if(!a&&i.length>1&&!In(e))return r(zn(e));if(Rn(e)){let r=a?e[Fn.PATH]:i[0],o=a?e[Fn.PATTERN]:e[r];if(!K(o))throw Error(qt(r));let s={keyId:nn(r),pattern:o};return n&&(s.searcher=Nn(o,t)),s}let o={children:[],operator:i[0]};return i.forEach(t=>{let n=e[t];G(n)&&n.forEach(e=>{o.children.push(r(e))})}),o};return In(e)||(e=zn(e)),r(e)}function Vn(e,{ignoreFieldNorm:t=J.ignoreFieldNorm}){let n=1;return e.forEach(({key:e,norm:r,score:i})=>{let a=e?e.weight:null;n*=(i===0&&a?2**-52:i)**+((a||1)*(t?1:r))}),n}function Hn(e,{ignoreFieldNorm:t=J.ignoreFieldNorm}){e.forEach(e=>{e.score=Vn(e.matches,{ignoreFieldNorm:t})})}var Un=class{constructor(e){this.limit=e,this.heap=[]}get size(){return this.heap.length}shouldInsert(e){return this.size0;){let n=e-1>>1;if(t[e].score<=t[n].score)break;let r=t[e];t[e]=t[n],t[n]=r,e=n}}_sinkDown(e){let t=this.heap,n=t.length,r=e;do{e=r;let i=2*e+1,a=2*e+2;if(it[r].score&&(r=i),at[r].score&&(r=a),r!==e){let n=t[e];t[e]=t[r],t[r]=n}}while(r!==e)}};function Wn(e){let t=[];return e.matches.forEach(e=>{if(!q(e.indices)||!e.indices.length)return;let n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.id),e.idx>-1&&(n.refIndex=e.idx),t.push(n)}),t}function Gn(e,t,{includeMatches:n=J.includeMatches,includeScore:r=J.includeScore}={}){return e.map(e=>{let{idx:i}=e,a={item:t[i],refIndex:i};return n&&(a.matches=Wn(e)),r&&(a.score=e.score),a})}var Kn=/[\p{L}\p{M}\p{N}_]+/gu,qn=new WeakSet;function Jn(e){qn.has(e)||(qn.add(e),console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))}function Yn(e){if(typeof e==`function`){let t=!1;return n=>{let r=e(n);if(!t&&(t=!0,!Array.isArray(r)||r.some(e=>typeof e!=`string`)))throw Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(r)?`array containing non-strings`:typeof r}.`);return r}}return e instanceof RegExp?(e.global||Jn(e),t=>t.match(e)||[]):e=>e.match(Kn)||[]}function Xn({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:n}={}){let r=Yn(n);return{tokenize(n){return e||(n=n.toLowerCase()),t&&(n=yn(n)),r(n)}}}var Zn=class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=Xn({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});let n=this.analyzer.tokenize(e),{df:r,fieldCount:i}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(let e of n){this.termSearchers.push(new bn(e,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));let n=r.get(e)||0,a=Math.log(1+(i-n+.5)/(n+.5));this.idfWeights.push(a)}this.combineAll=t.tokenMatch===`all`,this.numTerms=this.termSearchers.length,this.useMask=this.numTerms<=31}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};let t=[],n=0,r=0,i=0,a=0,o=this.combineAll&&!this.useMask?new Set:null;for(let s=0;s0?1-n/r:0,c={isMatch:!0,score:Math.max(.001,s)};return this.options.includeMatches&&t.length&&(c.indices=gn(t)),this.combineAll&&(this.useMask?c.matchedMask=a:c.matchedTerms=o,c.termCount=this.numTerms),c}};function Qn(e,t,n,r){let i=r.tokenize(t);if(!i.length)return;e.fieldCount++,e.docFieldCount.set(n,(e.docFieldCount.get(n)||0)+1);let a=new Set(i),o=e.docTermFieldHits.get(n);o||(o=new Map,e.docTermFieldHits.set(n,o));for(let t of a)o.set(t,(o.get(t)||0)+1),e.df.set(t,(e.df.get(t)||0)+1)}function $n(e,t,n,r){let{i,v:a,$:o}=t;if(a!==void 0){Qn(e,a,i,r);return}if(o)for(let t=0;te-t);for(let t of n)nr(e,t);let r=e=>{let t=0,r=n.length;for(;t>>1;n[i]i?r(t):t,n);e.docFieldCount=a;let o=new Map;for(let[t,n]of e.docTermFieldHits)o.set(t>i?r(t):t,n);e.docTermFieldHits=o}var Y=class{constructor(e,t,n){this.options={...J,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new $t(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;let t=Nn(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof un))throw Error(Gt);if(this._myIndex=t||dn(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){let e=Xn({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=er(this._myIndex.records,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}add(e){if(!q(e))return;this._docs.push(e);let t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){let e=Xn({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});tr(this._invertedIndex,t,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}remove(e=()=>!1){let t=[],n=[];for(let r=0,i=this._docs.length;r!e.has(n)),this._myIndex.removeAll(n),this._invalidateSearcherCache()}return t}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw Error(Kt);this._invertedIndex&&rr(this._invertedIndex,[e]);let t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),this._invalidateSearcherCache(),t}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}search(e,t){let{limit:n=-1}=t||{},{includeMatches:r,includeScore:i,shouldSort:a,sortFn:o,ignoreFieldNorm:s}=this.options;if(K(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return zt(n)&&n>-1&&(e=e.slice(0,n)),e}let c=zt(n)&&n>0&&K(e),l;if(c){let t=new Un(n);K(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:s}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:s}),l=t.extractSorted(o)}else l=K(e)?K(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),Hn(l,{ignoreFieldNorm:s}),a&&l.sort(o),zt(n)&&n>-1&&(l=l.slice(0,n));return Gn(l,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch===`all`,{records:a}=this._myIndex,o=t?null:[];return a.forEach(({v:e,i:a,n:s})=>{if(!q(e))return;let c=r.searchIn(e);if(c.isMatch){let r={score:c.score,value:e,norm:s,indices:c.indices};i&&(r.matchedMask=c.matchedMask,r.matchedTerms=c.matchedTerms,r.termCount=c.termCount);let l=[r];if(!i||this._coversAllTokens(l)){let r={item:e,idx:a,matches:l};t?(r.score=Vn(r.matches,{ignoreFieldNorm:n}),t.shouldInsert(r.score)&&t.insert(r)):o.push(r)}}}),o}_searchLogical(e){let t=Bn(e,this.options),n=(e,t,r)=>{if(!(`children`in e)){let{keyId:n,searcher:i}=e,a;return n===null?(a=[],this._myIndex.keys.forEach((e,n)=>{a.push(...this._findMatches({key:e,value:t[n],searcher:i}))})):a=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i}),a&&a.length?[{idx:r,item:t,matches:a}]:[]}let{children:i,operator:a}=e,o=[];for(let e=0,s=i.length;e{if(q(e)){let o=n(t,e,r);o.length&&(i.has(r)||(i.set(r,{idx:r,item:e,matches:[]}),a.push(i.get(r))),o.forEach(({matches:e})=>{i.get(r).matches.push(...e)}))}}),a}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch===`all`,{keys:a,records:o}=this._myIndex,s=t?null:[];return o.forEach(({$:e,i:o})=>{if(!q(e))return;let c=[],l=!1,u=!1;if(a.forEach((t,n)=>{let i=this._findMatches({key:t,value:e[n],searcher:r});i.length?(c.push(...i),i[0].hasInverse&&(u=!0)):l=!0}),!(u&&l)&&c.length&&(!i||this._coversAllTokens(c))){let r={idx:o,item:e,matches:c};t?(r.score=Vn(r.matches,{ignoreFieldNorm:n}),t.shouldInsert(r.score)&&t.insert(r)):s.push(r)}}),s}_findMatches({key:e,value:t,searcher:n}){if(!q(t))return[];let r=[];if(G(t))t.forEach(({v:t,i,n:a})=>{if(!q(t))return;let o=n.searchIn(t);if(o.isMatch){let n={score:o.score,key:e,value:t,idx:i,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(n.matchedMask=o.matchedMask,n.matchedTerms=o.matchedTerms,n.termCount=o.termCount),r.push(n)}});else{let{v:i,n:a}=t,o=n.searchIn(i);if(o.isMatch){let t={score:o.score,key:e,value:i,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(t.matchedMask=o.matchedMask,t.matchedTerms=o.matchedTerms,t.termCount=o.termCount),r.push(t)}}return r}_coversAllTokens(e){let t=e.length?e[0].termCount:void 0;if(t===void 0)return!0;if(t<=31){let n=0;for(let t=0;tMn(e))};var ir=Y,ar={key:0},or={key:1},sr={key:2},cr={key:3},lr={key:4},ur={key:5},dr={key:6},fr={key:7},pr=f({__name:`title-renderer`,props:{no:{}},setup(e){let t=e,{$page:r}=Xe(),i=g(()=>+(t.no??r.value));return(e,t)=>(n(),A(`div`,null,[i.value===1?(n(),A(`p`,ar,`Introduction to Machine Learning`)):i.value===2?(n(),A(`p`,or,`What is Machine Learning?`)):i.value===3?(n(),A(`p`,sr,`Supervised Learning`)):i.value===4?(n(),A(`p`,cr,`Unsupervised Learning`)):i.value===5?(n(),A(`p`,lr,`Deep Learning`)):i.value===6?(n(),A(`p`,ur,`Applications Across Industries`)):i.value===7?(n(),A(`p`,dr,`The Future of ML`)):i.value===8?(n(),A(`p`,fr,`Thank You!`)):y(``,!0)]))}}),mr={class:`bg-main transform`,shadow:`~`,p:`x-4 y-2`,border:`~ transparent rounded dark:main`},hr=[`value`,`disabled`],gr={table:``,"w-full":``,"border-collapse":``},_r=[`border`,`onClick`],vr={"text-right":``,op50:``,"text-sm":``,"table-cell":``,"py-2":``,"pl-4":``,"pr-3":``,"vertical-middle":``},yr=Ye(f({__name:`Goto`,setup(e){let t=D(),i=D(),o=D(),s=D(),c=D(``),l=D(0),{go:u,slides:f}=V();function p(e){return e!=null}let h=g(()=>new ir(f.value.map(e=>e.meta?.slide).filter(p),{keys:[`no`,`title`],threshold:.3,shouldSort:!0,minMatchCharLength:1})),_=g(()=>c.value.startsWith(`/`)?c.value.substring(1):c.value),v=g(()=>_.value?h.value.search(_.value).map(e=>e.item):[]),b=g(()=>!!v.value.length);function x(){if(b.value){let e=v.value.at(l.value||0);e&&u(e.no)}C()}function C(){c.value=``,U.value=!1}function T(e){e.preventDefault(),l.value++,l.value>=v.value.length&&(l.value=0),te()}function ee(e){e.preventDefault(),l.value--,l.value<=-2&&(l.value=v.value.length-1),te()}function te(){let e=s.value?.[l.value];e&&o.value&&(e.offsetTop+e.offsetHeight>o.value.offsetHeight+o.value.scrollTop?o.value.scrollTo({behavior:`smooth`,top:e.offsetTop+e.offsetHeight-o.value.offsetHeight+1}):e.offsetTop{e?(c.value=``,l.value=0,setTimeout(()=>i.value?.focus(),0)):i.value?.blur()}),m(ot,()=>{t.value?.contains(ot.value)||C()}),(e,u)=>(n(),A(`div`,{id:`slidev-goto-dialog`,ref_key:`container`,ref:t,class:N([`fixed right-5 transition-all`,k(U)?`top-5`:`-top-20`]),"w-90":``,"max-w-90":``,"min-w-90":``},[O(`div`,mr,[O(`input`,{id:`slidev-goto-input`,ref_key:`input`,ref:i,value:c.value,type:`text`,disabled:!k(U),class:N([`outline-none bg-transparent`,{"text-red-400":!b.value&&c.value}]),placeholder:`Goto...`,onKeydown:[S(x,[`enter`]),S(C,[`escape`]),S(T,[`down`]),S(ee,[`up`])],onInput:ne},null,42,hr)]),k(U)&&v.value.length>0?(n(),A(`div`,{key:0,ref_key:`list`,ref:o,class:`autocomplete-list`,shadow:`~`,border:`~ transparent rounded dark:main`},[O(`ul`,gr,[(n(!0),A(E,null,a(v.value,(e,t)=>(n(),A(`li`,{ref_for:!0,ref_key:`items`,ref:s,key:e.id,role:`button`,tabindex:`0`,"cursor-pointer":``,hover:`op100`,"table-row":``,"items-center":``,border:t===0?void 0:`t main`,class:N(l.value===t?`bg-active op100`:`op80`),onClick:w(t=>re(e.no),[`stop`,`prevent`])},[O(`div`,vr,d(e.no),1),r(k(pr),{"table-cell":``,"py-2":``,"pr-4":``,"w-full":``,no:e.no},null,8,[`no`])],10,_r))),128))])],512)):y(``,!0)],2))}}),[[`__scopeId`,`data-v-3d81d0cb`]]),br=D(1),xr=g(()=>Ue.value.length),X=D(0),Sr=D(0);function Cr(){X.value>br.value&&--X.value}function wr(){X.valuebr.value){let e=X.value-Sr.value;exr.value&&(e=xr.value),X.value=e}}var Dr=[`onClick`],Or={class:`text-green font-bold`},kr={class:`opacity-50`},Ar={key:1,class:`opacity-50`},jr={class:`fixed top-4 right-4 z-modal text-gray-400 flex flex-col items-center gap-2`},Mr=128,Nr=32,Pr=f({__name:`QuickOverview`,setup(t){let{currentSlideNo:i,go:o,slides:s}=V();function c(){R.value=!1}function l(e){o(e),c()}function u(e){return e===X.value}let f=Ve.smaller(`xs`),p=Ve.smaller(`sm`),m=g(()=>f.value?Fe.width.value-Mr:p.value?(Fe.width.value-Mr-Nr)/2:300),v=g(()=>Math.floor((Fe.width.value-Mr)/(m.value+Nr))),b=D(``);return ge(`keypress`,e=>{if(!R.value){b.value=``;return}if(e.key===`Enter`){e.preventDefault(),b.value?(l(+b.value),b.value=``):l(X.value);return}let t=Number.parseInt(e.key.replace(/\D/g,``));if(Number.isNaN(t)){b.value=``;return}if(!b.value&&t===0)return;if(b.value+=String(t),+b.value>s.value.length){b.value=``;return}let n=s.value.findIndex(e=>`/${e.no}`===b.value);n!==-1&&(X.value=n+1),b.value*10>s.value.length&&(l(+b.value),b.value=``)}),h(()=>{X.value=i.value,Sr.value=v.value}),(t,i)=>(n(),A(E,null,[r(_,{"enter-active-class":`duration-150 ease-out`,"enter-from-class":`opacity-0 scale-102 !backdrop-blur-0px`,"leave-active-class":`duration-200 ease-in`,"leave-to-class":`opacity-0 scale-102 !backdrop-blur-0px`},{default:e(()=>[k(R)?(n(),A(`div`,{key:0,class:`fixed left-0 right-0 top-0 h-[calc(var(--vh,1vh)*100)] z-modal bg-main !bg-opacity-75 p-16 py-20 overflow-y-auto backdrop-blur-5px select-none`,onClick:c},[O(`div`,{class:`grid gap-y-4 gap-x-8 w-full`,style:j(`grid-template-columns: repeat(auto-fit,minmax(${m.value}px,1fr))`)},[(n(!0),A(E,null,a(k(s),(t,i)=>(n(),A(`div`,{key:t.no,class:`relative`},[O(`div`,{class:N([`inline-block border rounded overflow-hidden bg-main hover:border-primary transition`,u(i+1)||k(X)===i+1?`border-primary`:`border-main`]),onClick:e=>l(t.no)},[(n(),M(lt,{key:t.no,no:t.no,"use-snapshot":!0,width:m.value,class:`pointer-events-none`},{default:e(()=>[r(mt,{"clicks-context":k(se)(t,k(tt)),route:t,"render-context":`overview`},null,8,[`clicks-context`,`route`]),r(dt,{page:t.no},null,8,[`page`])]),_:2},1032,[`no`,`width`]))],10,Dr),O(`div`,{class:`absolute top-0`,style:j(`left: ${m.value+5}px`)},[b.value&&String(i+1).startsWith(b.value)?(n(),A(E,{key:0},[O(`span`,Or,d(b.value),1),O(`span`,kr,d(String(i+1).slice(b.value.length)),1)],64)):(n(),A(`span`,Ar,d(i+1),1))],4)]))),128))],4)])):y(``,!0)]),_:1}),C(O(`div`,jr,[r(W,{title:`Close`,class:`text-2xl`,onClick:c},{default:e(()=>[...i[0]||=[O(`div`,{class:`i-carbon:close`},null,-1)]]),_:1}),(n(),M(W,{key:0,as:`a`,title:`Slides Overview`,target:`_blank`,href:`${k(Be)}overview`,"tab-index":`-1`,class:`text-2xl`},{default:e(()=>[...i[1]||=[O(`div`,{class:`i-carbon:list-boxes`},null,-1)]]),_:1},8,[`href`])),y(``,!0)],512),[[oe,k(R)]])],64))}});function Fr(){let e=ye();return g(()=>{let t=ct.value?.getBoundingClientRect();if(!t)return;let n=(e.x.value-t.left)/t.width*100,r=(e.y.value-t.top)/t.height*100;if(!(n<0||n>100||r<0||r>100))return{x:n,y:r}})}var Ir={key:0,class:`absolute top-0 left-0 right-0 bottom-0 pointer-events-none text-xl`},Lr=Ye(f({__name:`LaserPointer`,setup(e){let t=Fr(),{isPresenter:r}=V(),i=g(()=>!r.value&&Ze.cursor?.style===`laser`?Ze.cursor:H.value===`laser`?t.value:null);return l(()=>{h(()=>{document.body.classList.toggle(`slidev-self-laser-active`,H.value===`laser`&&!!i.value)})}),(e,t)=>i.value?(n(),A(`div`,Ir,[O(`div`,{class:`laser-pointer`,style:j({left:`${i.value.x}%`,top:`${i.value.y}%`})},null,4)])):y(``,!0)}}),[[`__scopeId`,`data-v-54c9b9e4`]]),Rr={render:()=>[]},zr={key:0,class:`bg-main text-main shadow-xl absolute bottom-10 left-0 z-menu py2`,border:`~ main rounded-md`},Br=f({__name:`MenuButton`,props:{modelValue:{default:!1},disabled:{default:!1}},setup(e,{emit:t}){let r=pe(e,`modelValue`,t,{passive:!0}),i=D();return he(i,()=>{r.value=!1}),(t,a)=>(n(),A(`div`,{ref_key:`el`,ref:i,class:`flex relative`},[O(`button`,{class:N({disabled:e.disabled}),onClick:a[0]||=e=>r.value=!k(r)},[p(t.$slots,`button`,{value:k(r),class:N({disabled:e.disabled})})],2),(n(),M(T,null,[k(r)?(n(),A(`div`,zr,[p(t.$slots,`menu`)])):y(``,!0)],1024))],512))}}),Vr={border:`~ main rounded`,flex:`~ gap-2 items-center`,relative:``,"h-5":``,"w-5":``,"p0.5":``,"hover:bg-active":``,p1:``},Hr=[`disabled`],Ur=f({__name:`FormCheckbox`,props:s({disabled:{type:Boolean}},{modelValue:{type:Boolean,type:Boolean},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=ae(e,`modelValue`);return(r,i)=>(n(),A(`div`,Vr,[O(`div`,{"i-ri-check-line":``,class:N(t.value?``:`op0`)},null,2),C(O(`input`,{"onUpdate:modelValue":i[0]||=e=>t.value=e,type:`checkbox`,absolute:``,"inset-0":``,"opacity-10":``,disabled:e.disabled},null,8,Hr),[[x,t.value]])]))}}),Wr={"w-30":``,"h-8":``,flex:`~ gap-1 items-center`},Gr={key:0,"w-1.5":``,"h-1.5":``,"bg-primary":``,rounded:``,absolute:``,"top-0":``,"right--2":``},Kr={key:0,"w-1.5":``,"h-1.5":``,"bg-primary":``,rounded:``,absolute:``,"top-0":``,"right--2":``},qr=[`innerHTML`],Z=f({__name:`FormItem`,props:{title:{},nested:{type:[Boolean,Number]},div:{type:Boolean},description:{},dot:{type:Boolean}},emits:[`reset`],setup(t,{emit:r}){let i=r;function a(){i(`reset`)}return(r,i)=>(n(),M(o(t.div?`div`:`label`),{flex:`~ row gap-2 items-center`,"select-none":``},{default:e(()=>[O(`div`,Wr,[t.nested?(n(),A(`div`,{key:0,"i-ri-corner-down-right-line":``,op40:``,style:j(typeof t.nested==`number`?{marginLeft:`${t.nested*.5+.5}rem`}:{marginLeft:`0.25rem`})},null,4)):y(``,!0),t.description?(n(),M(k(ne),{key:2,distance:`10`},{popper:e(()=>[O(`div`,{"text-sm":``,"min-w-90":``,innerHTML:t.description},null,8,qr)]),default:e(()=>[O(`div`,{op75:``,"text-right":``,relative:``,onDblclick:a},[u(d(t.title)+` `,1),t.dot?(n(),A(`div`,Kr)):y(``,!0)],32)]),_:1})):(n(),A(`div`,{key:1,op75:``,relative:``,onDblclick:a},[u(d(t.title)+` `,1),t.dot?(n(),A(`div`,Gr)):y(``,!0)],32))]),p(r.$slots,`default`)]),_:3}))}}),Jr={relative:``,"h-22px":``},Yr={key:0,"pointer-events-none":``,absolute:``,"right-1":``,"top-0.5":``,"text-xs":``,op25:``},Xr=f({__name:`FormSlider`,props:s({max:{},min:{},step:{},unit:{},default:{}},{modelValue:{type:Number},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,r=ae(e,`modelValue`);return(i,a)=>(n(),A(E,null,[O(`div`,{relative:``,"h-22px":``,"w-60":``,"flex-auto":``,onDblclick:a[1]||=e=>t.default===void 0?null:r.value=t.default},[C(O(`input`,c({"onUpdate:modelValue":a[0]||=e=>r.value=e,type:`range`,class:`slider`},t,{absolute:``,"bottom-0":``,"left-0":``,"right-0":``,"top-0":``,"z-10":``,"w-full":``,"align-top":``}),null,16),[[te,r.value,void 0,{number:!0}]]),t.default==null?y(``,!0):(n(),A(`span`,{key:0,border:`r main`,absolute:``,"bottom-0":``,"top-0":``,"h-full":``,"w-1px":``,op75:``,style:j({left:`${(t.default-e.min)/(e.max-e.min)*100}%`})},null,4))],32),O(`div`,Jr,[C(O(`input`,c({"onUpdate:modelValue":a[2]||=e=>r.value=e,type:`number`},t,{border:`~ main rounded`,m0:``,"w-20":``,"bg-gray:5":``,pl2:``,"align-top":``,"text-sm":``}),null,16),[[te,r.value,void 0,{number:!0}]]),t.unit?(n(),A(`span`,Yr,d(t.unit),1)):y(``,!0)])],64))}}),Zr={error:0,client:60,Light:60,Dark:240};function Qr(e,t=1){if(Zr[e])return $r(Zr[e],t);let n=0;for(let t=0;t!r.text||r.color===!1?{}:{color:typeof r.color==`number`?$r(r.color):Qr(r.text),background:typeof r.color==`number`?$r(r.color,.1):Qr(r.text,.1)}),a=g(()=>{switch(r.size||`sm`){case`sm`:return`px-1.5 text-11px leading-1.6em`}return``});return(s,c)=>(n(),M(o(t.as||`span`),{"ws-nowrap":``,rounded:``,class:N(a.value),style:j(i.value)},{default:e(()=>[p(s.$slots,`default`,{},()=>[O(`span`,{textContent:d(r.text)},null,8,ei)])]),_:3},8,[`class`,`style`]))}}),ni={flex:`~ gap-1 items-center`,rounded:``,"bg-gray:4":``,p1:``,"m--1":``},ri=f({__name:`SegmentControl`,props:{options:{},modelValue:{}},emits:[`update:modelValue`],setup(e){return(t,r)=>(n(),A(`div`,ni,[(n(!0),A(E,null,a(e.options,r=>(n(),M(ti,{key:r.value,class:N([`px-2 py-1 text-xs font-mono`,r.value===e.modelValue?``:`op50`]),color:r.value===e.modelValue,"aria-pressed":r.value===e.modelValue,size:`none`,text:r.label,as:`button`,onClick:e=>t.$emit(`update:modelValue`,r.value)},null,8,[`class`,`color`,`aria-pressed`,`text`,`onClick`]))),128))]))}}),ii={"text-sm":``,"select-none":``,flex:`~ col gap-1`,"min-w-30":``,px4:``},ai=f({__name:`Settings`,setup(t){let{isPresenter:i}=V(),{isSupported:a}=ue();return(t,o)=>(n(),A(`div`,ii,[r(Z,{title:`Invert`,dot:k(B).invert!==k(z).invert,onReset:o[1]||=e=>k(B).invert=k(z).invert},{default:e(()=>[r(Ur,{modelValue:k(B).invert,"onUpdate:modelValue":o[0]||=e=>k(B).invert=e},null,8,[`modelValue`])]),_:1},8,[`dot`]),r(Z,{title:`Brightness`,dot:k(B).brightness!==k(z).brightness,onReset:o[3]||=e=>k(B).brightness=k(z).brightness},{default:e(()=>[r(Xr,{modelValue:k(B).brightness,"onUpdate:modelValue":o[2]||=e=>k(B).brightness=e,max:1.5,min:.5,step:.02,default:k(z).brightness},null,8,[`modelValue`,`default`])]),_:1},8,[`dot`]),r(Z,{title:`Contrast`,dot:k(B).contrast!==k(z).contrast,onReset:o[5]||=e=>k(B).contrast=k(z).contrast},{default:e(()=>[r(Xr,{modelValue:k(B).contrast,"onUpdate:modelValue":o[4]||=e=>k(B).contrast=e,max:1.5,min:.5,step:.02,default:k(z).contrast},null,8,[`modelValue`,`default`])]),_:1},8,[`dot`]),r(Z,{title:`Saturation`,dot:k(B).saturate!==k(z).saturate,onReset:o[7]||=e=>k(B).saturate=k(z).saturate},{default:e(()=>[r(Xr,{modelValue:k(B).saturate,"onUpdate:modelValue":o[6]||=e=>k(B).saturate=e,max:1.5,min:.5,step:.02,default:k(z).saturate},null,8,[`modelValue`,`default`])]),_:1},8,[`dot`]),r(Z,{title:`Sepia`,dot:k(B).sepia!==k(z).sepia,onReset:o[9]||=e=>k(B).sepia=k(z).sepia},{default:e(()=>[r(Xr,{modelValue:k(B).sepia,"onUpdate:modelValue":o[8]||=e=>k(B).sepia=e,max:2,min:-2,step:.02,default:k(z).sepia},null,8,[`modelValue`,`default`])]),_:1},8,[`dot`]),r(Z,{title:`Hue Rotate`,dot:k(B).hueRotate!==k(z).hueRotate,onReset:o[11]||=e=>k(B).hueRotate=k(z).hueRotate},{default:e(()=>[r(Xr,{modelValue:k(B).hueRotate,"onUpdate:modelValue":o[10]||=e=>k(B).hueRotate=e,max:180,min:-180,step:.1,default:k(z).hueRotate},null,8,[`modelValue`,`default`])]),_:1},8,[`dot`]),o[16]||=O(`div`,{class:`h-1px opacity-5 bg-current w-full my2`},null,-1),r(Z,{title:`Cursor Style`},{default:e(()=>[r(ri,{modelValue:k(H),"onUpdate:modelValue":o[12]||=e=>v(H)?H.value=e:null,options:[{label:`Cursor`,value:`cursor`},{label:`Laser`,value:`laser`}]},null,8,[`modelValue`])]),_:1}),k(i)?y(``,!0):(n(),M(Z,{key:0,title:`Slide Scale`},{default:e(()=>[r(ri,{modelValue:k(Re),"onUpdate:modelValue":o[13]||=e=>v(Re)?Re.value=e:null,options:[{label:`Fit`,value:0},{label:`1:1`,value:1}]},null,8,[`modelValue`])]),_:1})),k(a)?(n(),M(Z,{key:1,title:`Wake Lock`},{default:e(()=>[r(Ur,{modelValue:k(ze),"onUpdate:modelValue":o[14]||=e=>v(ze)?ze.value=e:null},null,8,[`modelValue`])]),_:1})):y(``,!0),k(i)?y(``,!0):(n(),M(Z,{key:2,title:`Hide Idle Cursor`},{default:e(()=>[r(Ur,{modelValue:k(De),"onUpdate:modelValue":o[15]||=e=>v(De)?De.value=e:null},null,8,[`modelValue`])]),_:1}))]))}}),oi={class:`select-list`},si={class:`title`},ci={class:`items`},li=[`onClick`],ui=Ye(f({__name:`SelectList`,props:{modelValue:{type:[Object,String,Number,Boolean]},title:{type:String},items:{type:Array}},setup(e,{emit:t}){let r=pe(e,`modelValue`,t,{passive:!0});return(t,i)=>(n(),A(`div`,oi,[O(`div`,si,d(e.title),1),O(`div`,ci,[(n(!0),A(E,null,a(e.items,e=>(n(),A(`div`,{key:e.value,class:N([`item`,{active:k(r)===e.value}]),onClick:()=>{r.value=e.value,e.onClick?.()}},[O(`div`,{class:N([`i-carbon:checkmark text-green-500 mya`,{"opacity-0":k(r)!==e.value}])},null,2),O(`div`,{class:N({"opacity-50":k(r)!==e.value})},d(e.display||e.value),3)],10,li))),128))])]))}}),[[`__scopeId`,`data-v-9571c68e`]]),di={"text-sm":``,flex:`~ col gap-2`},fi={px3:``,"ws-nowrap":``},pi={"font-bold":``,"text-primary":``},mi=f({__name:`SyncControls`,setup(t){let{isPresenter:i}=V(),a=g({get:()=>i.value?I.value.presenterReceive:I.value.viewerReceive,set(e){i.value?I.value.presenterReceive=e:I.value.viewerReceive=e}}),o=g({get:()=>i.value?I.value.presenterSend:I.value.viewerSend,set(e){i.value?I.value.presenterSend=e:I.value.viewerSend=e}}),s=g({get:()=>a.value&&o.value?`bidirectional`:a.value&&!o.value?`receive-only`:!a.value&&o.value?`send-only`:`off`,set(e){switch(e){case`bidirectional`:a.value=!0,o.value=!0;break;case`receive-only`:a.value=!0,o.value=!1;break;case`send-only`:a.value=!1,o.value=!0;break;case`off`:a.value=!1,o.value=!1;break}}});return(t,c)=>(n(),M(Br,null,{button:e(()=>[r(W,{title:`Change sync settings`},{default:e(()=>[O(`div`,{class:N([`i-ph:arrow-up-bold mx--1.2 scale-x-80`,o.value?`text-green6 dark:text-green`:`op30`])},null,2),O(`div`,{class:N([`i-ph:arrow-down-bold mx--1.2 scale-x-80`,a.value?`text-green6 dark:text-green`:`op30`])},null,2)]),_:1})]),menu:e(()=>[O(`div`,di,[O(`div`,fi,[c[1]||=O(`span`,{op75:``},`Slides navigation syncing for `,-1),O(`span`,pi,d(k(i)?`presenter`:`viewer`),1)]),c[2]||=O(`div`,{class:`h-1px opacity-10 bg-current w-full`},null,-1),r(ui,{modelValue:s.value,"onUpdate:modelValue":c[0]||=e=>s.value=e,title:`Sync Mode`,items:[{value:`bidirectional`,display:`Bidirectional Sync`},{value:`receive-only`,display:`Receive Only`},{value:`send-only`,display:`Send Only`},{value:`off`,display:`Disable`}]},null,8,[`modelValue`])])]),_:1}))}}),hi={key:0,class:`i-carbon:minimize`},gi={key:1,class:`i-carbon:maximize`},_i={key:0,class:`i-carbon-moon`},vi={key:1,class:`i-carbon-sun`},yi={key:0,class:`i-carbon-magic-wand-filled color-red-600 dark:color-red-400`},bi={key:1,class:`i-carbon-magic-wand`},xi={key:0,class:`i-ph-cursor-fill`},Si={key:1,class:`i-ph-cursor-duotone`},Ci={key:0,"w-2":``,"h-2":``,"bg-primary":``,"rounded-full":``,absolute:``,"top-0.5":``,"right-0.5":``},wi={class:`px2 my-auto`},Ti={class:`text-lg`},Ei={class:`opacity-50 text-sm`},Di=f({__name:`NavControls`,props:{persist:{default:!1}},setup(t){let i=t,{currentSlideNo:a,hasNext:o,hasPrev:s,isEmbedded:c,isPresenter:l,isPresenterAvailable:f,next:p,prev:m,total:h,enterPresenter:_,exitPresenter:v}=V(),{brush:b,drawingEnabled:x}=pt(),S=Ve.smaller(`md`),{isFullscreen:C,toggle:w}=at,T=D();function ee(){T.value&&ot.value&&T.value.contains(ot.value)&&ot.value.blur()}let te=g(()=>i.persist?`text-$slidev-controls-foreground bg-transparent`:`rounded-md bg-main shadow-xl border border-main`),ne=ie();return(t,i)=>(n(),A(`nav`,{ref_key:`root`,ref:T,class:`flex flex-col`},[O(`div`,{class:N([`flex flex-wrap-reverse text-xl gap-0.5 p-1 lg:p-2`,te.value]),onMouseleave:ee},[k(c)?y(``,!0):(n(),M(W,{key:0,title:k(C)?`Close fullscreen`:`Enter fullscreen`,onClick:k(w)},{default:e(()=>[k(C)?(n(),A(`div`,hi)):(n(),A(`div`,gi))]),_:1},8,[`title`,`onClick`])),r(W,{disabled:!k(s),title:`Go to previous slide`,onClick:k(m)},{default:e(()=>[...i[6]||=[O(`div`,{class:`i-carbon:arrow-left`},null,-1)]]),_:1},8,[`disabled`,`onClick`]),r(W,{disabled:!k(o),title:`Go to next slide`,onClick:k(p)},{default:e(()=>[...i[7]||=[O(`div`,{class:`i-carbon:arrow-right`},null,-1)]]),_:1},8,[`disabled`,`onClick`]),k(c)?y(``,!0):(n(),M(W,{key:1,title:`Show slide overview`,onClick:i[0]||=e=>k(je)()},{default:e(()=>[...i[8]||=[O(`div`,{class:`i-carbon:apps`},null,-1)]]),_:1})),k(Je)?y(``,!0):(n(),M(W,{key:2,title:k(Ge)?`Switch to light mode theme`:`Switch to dark mode theme`,onClick:i[1]||=e=>k(We)()},{default:e(()=>[k(Ge)?(n(),A(`div`,_i)):(n(),A(`div`,vi))]),_:1},8,[`title`])),r(vt),k(c)?y(``,!0):(n(),A(E,{key:3},[!k(l)&&!k(S)&&ne.value?(n(),A(E,{key:0},[r(k(ne)),r(vt)],64)):y(``,!0),k(l)?(n(),M(W,{key:1,title:k(H)===`laser`?k(Oe)?`Disable laser pointer`:`Enable laser pointer`:k(Oe)?`Hide presenter cursor`:`Show presenter cursor`,active:k(Oe),onClick:i[2]||=e=>k($e)()},{default:e(()=>[k(H)===`laser`?(n(),A(E,{key:0},[k(Oe)?(n(),A(`div`,yi)):(n(),A(`div`,bi))],64)):(n(),A(E,{key:1},[k(Oe)?(n(),A(`div`,xi)):(n(),A(`div`,Si))],64))]),_:1},8,[`title`,`active`])):y(``,!0),!k(L).drawings.presenterOnly||k(l)?(n(),M(W,{key:2,class:`relative`,title:k(x)?`Hide drawing toolbar`:`Show drawing toolbar`,active:k(x),onClick:i[3]||=e=>x.value=!k(x)},{default:e(()=>[i[9]||=O(`div`,{class:`i-carbon:pen`},null,-1),k(x)?(n(),A(`div`,{key:0,class:`absolute left-1 right-1 bottom-0 h-0.7 rounded-full`,style:j({background:k(b).color})},null,4)):y(``,!0)]),_:1},8,[`title`,`active`])):y(``,!0),r(vt),k(l)?(n(),M(W,{key:3,title:`Play Mode`,onClick:k(v)},{default:e(()=>[...i[10]||=[O(`div`,{class:`i-carbon:presentation-file`},null,-1)]]),_:1},8,[`onClick`])):y(``,!0),k(f)?(n(),M(W,{key:4,title:`Presenter Mode`,onClick:k(_)},{default:e(()=>[...i[11]||=[O(`div`,{class:`i-carbon:user-speaker`},null,-1)]]),_:1},8,[`onClick`])):y(``,!0),y(``,!0)],64)),(n(),A(E,{key:4},[k(L).download?(n(),M(W,{key:0,title:`Download as PDF`,onClick:k(Ke)},{default:e(()=>[...i[13]||=[O(`div`,{class:`i-carbon:download`},null,-1)]]),_:1},8,[`onClick`])):y(``,!0)],64)),y(``,!0),!k(l)&&k(L).info&&!k(c)?(n(),M(W,{key:6,title:`Show info`,onClick:i[5]||=e=>we.value=!k(we)},{default:e(()=>[...i[15]||=[O(`div`,{class:`i-carbon:information`},null,-1)]]),_:1})):y(``,!0),k(c)?y(``,!0):(n(),A(E,{key:7},[r(vt),k(l)?(n(),M(W,{key:0,title:`Toggle Presenter Layout`,class:`aspect-ratio-initial flex items-center`,onClick:k(Ae)},{default:e(()=>[i[16]||=O(`div`,{class:`i-carbon:template`},null,-1),u(` `+d(k(Pe)),1)]),_:1},8,[`onClick`])):y(``,!0),(n(),M(mi,{key:1})),r(Br,null,{button:e(({value:t})=>[r(W,{title:`More Options`,active:t},{default:e(()=>[i[17]||=O(`div`,{class:`i-carbon:settings-adjust`},null,-1),k(Le)?(n(),A(`div`,Ci)):y(``,!0)]),_:1},8,[`active`])]),menu:e(()=>[r(ai)]),_:1})],64)),k(c)?y(``,!0):(n(),M(vt,{key:8})),O(`div`,wi,[O(`span`,Ti,d(k(a)),1),O(`span`,Ei,` / `+d(k(h)),1)]),r(k(Rr))],34)],512))}}),Oi=new Set,ki=new Set,Ai=/\/$/;function ji(e){return e.startsWith(`http`)||e.startsWith(`//`)?e:`${`./`.replace(Ai,``)}${e.startsWith(`/`)?e:`/${e}`}`}function Mi(e){let t=ji(e);if(Oi.has(t)||ki.has(t))return;ki.add(t);let n=new Image;n.onload=()=>{ki.delete(t),Oi.add(t)},n.onerror=()=>{ki.delete(t)},n.src=t}function Ni(e){let t=e.meta?.slide?.images;if(t?.length)for(let e of t)Mi(e)}function Pi(e,t,n,r){let i=L.preloadImages;if(i===!1)return;let a=typeof i==`object`&&i?.ahead||3;h(()=>{let i=e.value,o=r.value;if(!i||!o?.length)return;Ni(i),Ni(t.value),Ni(n.value);let s=i.no-1;for(let e=1;e<=a;e++){let t=s+e;t{let t=r.value,n=setTimeout(()=>{if(t?.length)for(let e of t)Ni(e)},3e3);e(()=>clearTimeout(n))})}function Fi(){let e=le(),t=D(!1),n,r,i=typeof document<`u`&&`startViewTransition`in document;return e.beforeResolve((e,a)=>{let o=Se(a.params.no)?.meta,s=Se(e.params.no)?.meta,c=o?.slide?.no,l=s?.slide?.no;if((c!=null&&l!=null&&c!==l&&((c{n=e,r=t}),d,f=new Promise(e=>d=e);return setTimeout(()=>{document.startViewTransition(()=>(d(),u))},50),f}),i&&e.afterEach(()=>{n?.(),r?.()}),t}var Ii=[`data-drag-id`],Q=10,$=10,Li=`absolute border border-gray bg-gray dark:border-gray-500 dark:bg-gray-800 bg-opacity-30 `,Ri=20,zi=f({__name:`DragControl`,props:{data:{}},setup(e){let{dragId:r,zoom:a,autoHeight:o,x0:s,y0:c,width:l,height:u,rotate:d,isArrow:f}=e.data,p=t(rt,D(1)),m=g(()=>p.value*a.value),{left:_,top:v}=et(),x=f?-1/0:40,S=g(()=>d.value*Math.PI/180),C=g(()=>Math.sin(S.value)),w=g(()=>Math.cos(S.value)),T=g(()=>l.value*w.value+u.value*C.value),ee=g(()=>l.value*C.value+u.value*w.value),te=g(()=>s.value-T.value/2),ne=g(()=>c.value-ee.value/2),re=g(()=>s.value+T.value/2),ie=g(()=>c.value+ee.value/2),ae=g(()=>f&&l.value<0),oe=g(()=>f&&u.value<0),M=null;function se(e){if(e.buttons!==1)return;e.preventDefault(),e.stopPropagation();let t=e.target.getBoundingClientRect(),n=l.value*w.value-u.value*C.value,r=l.value*C.value+u.value*w.value,i=l.value*w.value+u.value*C.value,a=-l.value*C.value+u.value*w.value;M={x0:s.value,y0:c.value,width:l.value,height:u.value,rotate:d.value,dx0:e.clientX-(t.left+t.right)/2,dy0:e.clientY-(t.top+t.bottom)/2,ltx:s.value-n/2,lty:c.value-r/2,rtx:s.value+i/2,rty:c.value-a/2,lbx:s.value-i/2,lby:c.value+a/2,rbx:s.value+n/2,rby:c.value+r/2},e.currentTarget.setPointerCapture(e.pointerId)}function le(e){if(!M||e.buttons!==1)return;e.preventDefault(),e.stopPropagation();let t=(e.clientX-_.value-M.dx0)/m.value,n=(e.clientY-v.value-M.dy0)/m.value;s.value=ce(t,-T.value/2+$,He.value+T.value/2-$),c.value=ce(n,-ee.value/2+$,st.value+ee.value/2-$)}function ue(e){M&&=(e.preventDefault(),e.stopPropagation(),null)}function fe(e,t){return{onPointerdown:se,onPointermove:n=>{if(!M||n.buttons!==1)return;n.preventDefault(),n.stopPropagation();let r=(n.clientX-_.value)/m.value,i=(n.clientY-v.value)/m.value,{ltx:a,lty:o,rtx:d,rty:f,lbx:p,lby:h,rbx:g,rby:y}=M,b=M.width/M.height,S=Math.max(x,x*b);function T(e,t){if(n.shiftKey){let n=Math.max(e,t*b,S);return{w:n,h:n/b}}else return{w:Math.max(e,x),h:Math.max(t,x)}}if(e)if(t){let{w:e,h:t}=T((g-r)*w.value+(y-i)*C.value,-(g-r)*C.value+(y-i)*w.value);r=g-e*w.value+t*C.value,i=y-e*C.value-t*w.value}else{let{w:e,h:t}=T((d-r)*w.value-(i-f)*C.value,(d-r)*C.value+(i-f)*w.value);r=d-e*w.value-t*C.value,i=f-e*C.value+t*w.value}else if(t){let{w:e,h:t}=T((r-p)*w.value-(h-i)*C.value,(r-p)*C.value+(h-i)*w.value);r=p+e*w.value+t*C.value,i=h+e*C.value-t*w.value}else{let{w:e,h:t}=T((r-a)*w.value+(i-o)*C.value,-(r-a)*C.value+(i-o)*w.value);r=a+e*w.value-t*C.value,i=o+e*C.value+t*w.value}e?t?(s.value=(r+g)/2,c.value=(i+y)/2,l.value=(g-r)*w.value+(y-i)*C.value,u.value=-(g-r)*C.value+(y-i)*w.value):(s.value=(r+d)/2,c.value=(i+f)/2,l.value=(d-r)*w.value-(i-f)*C.value,u.value=(d-r)*C.value+(i-f)*w.value):t?(s.value=(r+p)/2,c.value=(i+h)/2,l.value=(r-p)*w.value-(h-i)*C.value,u.value=(r-p)*C.value+(h-i)*w.value):(s.value=(r+a)/2,c.value=(i+o)/2,l.value=(r-a)*w.value+(i-o)*C.value,u.value=-(r-a)*C.value+(i-o)*w.value)},onPointerup:ue,style:{width:`${Q}px`,height:`${Q}px`,margin:`-${Q/2}px`,left:e===ae.value?void 0:`0`,right:e===ae.value?`0`:void 0,top:t===oe.value?void 0:`0`,bottom:t===oe.value?`0`:void 0,cursor:f?`move`:+e+ +t==1?`nesw-resize`:`nwse-resize`,borderRadius:f?`50%`:void 0},class:Li}}function pe(e){return{onPointerdown:se,onPointermove:t=>{if(!M||t.buttons!==1)return;t.preventDefault(),t.stopPropagation();let n=(t.clientX-_.value)/m.value,r=(t.clientY-v.value)/m.value,{ltx:i,lty:a,rtx:o,rty:d,lbx:f,lby:p,rbx:h,rby:g}=M;if(e===`l`){let e=(o+h)/2,t=(d+g)/2;l.value=Math.max((e-n)*w.value+(t-r)*C.value,x),s.value=e-l.value*w.value/2,c.value=t-l.value*C.value/2}else if(e===`r`){let e=(i+f)/2,t=(a+p)/2;l.value=Math.max((n-e)*w.value+(r-t)*C.value,x),s.value=e+l.value*w.value/2,c.value=t+l.value*C.value/2}else if(e===`t`){let e=(f+h)/2,t=(p+g)/2;u.value=Math.max((t-r)*w.value-(e-n)*C.value,x),s.value=e+u.value*C.value/2,c.value=t-u.value*w.value/2}else if(e===`b`){let e=(i+o)/2,t=(a+d)/2;u.value=Math.max((r-t)*w.value-(n-e)*C.value,x),s.value=e-u.value*C.value/2,c.value=t+u.value*w.value/2}},onPointerup:ue,style:{width:`${Q}px`,height:`${Q}px`,margin:`-${Q/2}px`,left:e===`l`?`0`:e===`r`?`100%`:`50%`,top:e===`t`?`0`:e===`b`?`100%`:`50%`,cursor:`lr`.includes(e)?`ew-resize`:`ns-resize`,borderRadius:`50%`},class:Li}}function me(){return{onPointerdown:se,onPointermove:e=>{if(!M||e.buttons!==1)return;e.preventDefault(),e.stopPropagation();let t=(e.clientX-_.value-M.dx0)/m.value-Q/4,n=(e.clientY-v.value-M.dy0)/m.value-Q/4,r=Math.atan2(n-c.value,t-s.value)*180/Math.PI+90;for(let e of[0,90,180,270,360])if(Math.abs(r-e)<5){r=e%360;break}d.value=r},onPointerup:ue,style:{width:`${Q}px`,height:`${Q}px`,margin:`-${Q/2}px`,left:`50%`,top:`-20px`,cursor:`grab`,borderRadius:`50%`},class:Li}}let P={immediate:!1,immediateCallback:!1},he=de(()=>{re.value<=$||s.value--},Ri,P),ge=de(()=>{te.value>=He.value-$||s.value++},Ri,P),_e=de(()=>{ie.value<=$||c.value--},Ri,P),ve=de(()=>{ne.value>=st.value-$||c.value++},Ri,P);return h(()=>{function e(e,t){Ne[e].value?t.resume():t.pause()}e(`left`,he),e(`right`,ge),e(`up`,_e),e(`down`,ve)}),(e,t)=>Number.isFinite(k(s))?(n(),A(`div`,{key:0,id:`drag-control-container`,"data-drag-id":k(r),style:j({position:`absolute`,zIndex:100,left:`${k(a)*(k(s)-Math.abs(k(l))/2)}px`,top:`${k(a)*(k(c)-Math.abs(k(u))/2)}px`,width:`${k(a)*Math.abs(k(l))}px`,height:`${k(a)*Math.abs(k(u))}px`,transformOrigin:`center center`,transform:`rotate(${k(d)}deg)`}),onPointerdown:se,onPointermove:le,onPointerup:ue},[O(`div`,{class:N([`absolute inset-0 z-nav dark:b-gray-400`,k(f)?``:`b b-dark`])},[k(o)?y(``,!0):(n(),A(E,{key:0},[O(`div`,b(i(fe(!0,!0))),null,16),O(`div`,b(i(fe(!1,!1))),null,16),k(f)?y(``,!0):(n(),A(E,{key:0},[O(`div`,b(i(fe(!0,!1))),null,16),O(`div`,b(i(fe(!1,!0))),null,16)],64))],64)),k(f)?y(``,!0):(n(),A(E,{key:1},[O(`div`,b(i(pe(`l`))),null,16),O(`div`,b(i(pe(`r`))),null,16),k(o)?y(``,!0):(n(),A(E,{key:0},[O(`div`,b(i(pe(`t`))),null,16),O(`div`,b(i(pe(`b`))),null,16)],64)),O(`div`,b(i(me())),null,16),O(`div`,{class:`absolute -top-15px w-0 b b-dashed b-dark dark:b-gray-400`,style:j({left:`calc(50% - 1px)`,height:k(o)?`14px`:`10px`})},null,4)],64))],2)],44,Ii)):y(``,!0)}}),Bi=Ye(f({__name:`SlidesShow`,props:{renderContext:{}},setup(t){let{currentSlideRoute:i,currentTransition:s,getPrimaryClicks:l,prevRoute:u,nextRoute:d,slides:f,isPrintMode:p,isPrintWithClicks:m,clicksDirection:_,printRange:v}=V();function b(e){e.meta.preload!==!1&&(e.meta.__preloaded=!0,e.load())}h(()=>{b(i.value),b(u.value),b(d.value)}),h(e=>{let t=f.value,n=setTimeout(()=>{t.forEach(b)},3e3);e(()=>clearTimeout(n))}),Pi(i,u,d,f);let x=Fi(),S=ie();Qe(()=>import(`./DrawingLayer-B_LvgAMt.js`).then(e=>S.value=e.default),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url);let w=g(()=>p.value?v.value.map(e=>f.value[e-1]):f.value.filter(e=>e.meta?.__preloaded||e===i.value));function T(){Ee.value=!0,ee()}return(u,d)=>(n(),A(E,null,[r(k(ut)),(n(),M(o(k(x)&&!k(p)&&!k(Ee)&&!k(Te)?`div`:re),c(k(Ee)||k(Te)||k(p)?{}:k(s),{id:`slideshow`,tag:`div`,class:{"slidev-nav-go-forward":k(_)>0,"slidev-nav-go-backward":k(_)<0},onAfterLeave:T}),{default:e(()=>[(n(!0),A(E,null,a(w.value,e=>C((n(),M(mt,{key:e.no,"clicks-context":k(p)&&!k(m)?k(se)(e,k(tt)):k(l)(e),route:e,"render-context":t.renderContext},null,8,[`clicks-context`,`route`,`render-context`])),[[oe,e===k(i)]])),128))]),_:1},16,[`class`])),k(it)?(n(),M(zi,{key:0,data:k(it)},null,8,[`data`])):y(``,!0),r(k(ft)),S.value?(n(),M(k(S),{key:1})):y(``,!0)],64))}}),[[`__scopeId`,`data-v-00d06fe5`]]),Vi=Object.assign({}),Hi=Object.assign({}),Ui=[Object.values(Vi)[0],Object.values(Hi)[0]].filter(Boolean);function Wi(){let{go:e,goFirst:t,goLast:n,next:r,nextSlide:i,prev:a,prevSlide:o}=V(),{drawingEnabled:s}=pt(),{escape:c,space:l,shift:u,left:d,right:f,up:p,down:m,enter:h,d:g,g:_,o:v,"`":y}=Ne,b={next:r,prev:a,nextSlide:i,prevSlide:o,go:e,goFirst:t,goLast:n,downloadPDF:Ke,toggleDark:We,toggleOverview:je,toggleDrawing:()=>s.value=!s.value,escapeOverview:()=>R.value=!1,showGotoDialog:()=>U.value=!U.value},x=F(P(R),P(it)),S=[{name:`next_space`,key:F(l,P(u)),fn:r,autoRepeat:!0},{name:`prev_space`,key:F(l,u),fn:a,autoRepeat:!0},{name:`next_right`,key:F(f,P(u),x),fn:r,autoRepeat:!0},{name:`prev_left`,key:F(d,P(u),x),fn:a,autoRepeat:!0},{name:`next_page_key`,key:`pageDown`,fn:r,autoRepeat:!0},{name:`prev_page_key`,key:`pageUp`,fn:a,autoRepeat:!0},{name:`next_down`,key:F(m,x),fn:i,autoRepeat:!0},{name:`prev_up`,key:F(p,x),fn:o,autoRepeat:!0},{name:`next_shift`,key:F(f,u),fn:i,autoRepeat:!0},{name:`prev_shift`,key:F(d,u),fn:o,autoRepeat:!0},{name:`toggle_dark`,key:F(g,P(s)),fn:We},{name:`toggle_overview`,key:F(_e(v,y),P(s)),fn:je},{name:`hide_overview`,key:F(c,P(s)),fn:()=>R.value=!1},{name:`goto`,key:F(_,P(s)),fn:()=>U.value=!U.value},{name:`next_overview`,key:F(f,R),fn:wr},{name:`prev_overview`,key:F(d,R),fn:Cr},{name:`up_overview`,key:F(p,R),fn:Tr},{name:`down_overview`,key:F(m,R),fn:Er},{name:`goto_from_overview`,key:F(h,R),fn:()=>{e(X.value),R.value=!1}}],C=new Set(S.map(e=>e.name));for(let e of Ui)S=e(b,S);if(S.filter(e=>e.name&&C.has(e.name)).length===0){let e=[`========== WARNING ==========`,`defineShortcutsSetup did not return any of the base shortcuts.`,`See https://sli.dev/custom/config-shortcuts.html for migration.`,`If it is intentional, return at least one shortcut with one of the base names (e.g. name:"goto").`].join(` - -`);alert(e),console.warn(e)}return S}function Gi(){let{isPrintMode:e}=V(),t=F(P(Ce),P(qe),P(e),ke,P(Me)),n=Wi();new Map(n.map(e=>[e.key,e])).forEach(e=>{e.fn&&r(e.key,e.fn,e.autoRepeat)}),i(`f`,()=>at.toggle());function r(e,n,r=!1){typeof e==`string`&&(e=Ne[e]);let i=F(e,t),a=0,o,s=()=>{if(clearTimeout(o),!i.value){a=0;return}r&&(o=setTimeout(s,Math.max(1e3-a*250,150)),a++),n()};return m(i,s,{flush:`sync`})}function i(e,n){return ve(e,e=>{t.value&&(e.repeat||n())})}}export{Lr as a,yr as c,bt as d,yt as f,ri as i,It as l,Bi as n,Fr as o,vt as p,Di as r,Pr as s,Gi as t,kt as u}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/shortcuts-CQBL0mtp.js b/docs/dist/assets/slidev/shortcuts-CQBL0mtp.js new file mode 100644 index 00000000..54200987 --- /dev/null +++ b/docs/dist/assets/slidev/shortcuts-CQBL0mtp.js @@ -0,0 +1,4 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/slidev/DrawingLayer-CYp0bsc-.js","assets/index-BEBAY2Mg.js","assets/_plugin-vue_export-helper-BDNMzG2s.js","assets/rolldown-runtime-QTnfLwEv.js","assets/slidev/env-DWr22PMh.js","assets/utils-T1it7q9-.js","assets/modules/shiki-BmLmNVDB.js","assets/modules/shiki-BrmBd2_v.css","assets/modules/vue-5vwy5Re_.js","assets/slidev/useClicks-C2yK8i93.js","assets/index-JRGd7JqD.css","assets/SlideWrapper-IFU3LLlv.js","assets/SlideWrapper-D_cqB02h.css"])))=>i.map(i=>d[i]); +import{$ as e,E as t,G as n,H as r,K as i,L as a,M as o,Q as s,S as c,V as l,X as u,Y as d,_ as f,_t as p,a as m,b as h,bt as g,c as _,d as v,f as y,ft as b,g as x,h as S,i as C,it as w,j as T,k as ee,l as E,lt as D,m as O,n as te,o as ne,u as re,v as k,vt as A,w as j,x as ie,xt as M,y as N,yt as P,z as F}from"../modules/shiki-BmLmNVDB.js";import{r as ae}from"../utils-T1it7q9-.js";import{i as oe,r as se,s as I}from"./env-DWr22PMh.js";import{C as ce,I as le,P as ue,T as de,V as fe,b as pe,f as me,m as he,n as L,o as ge,r as _e,s as ve,t as R,w as ye,y as be}from"../modules/vue-5vwy5Re_.js";import{n as xe}from"./useClicks-C2yK8i93.js";import{t as Se}from"../_plugin-vue_export-helper-BDNMzG2s.js";import{$ as Ce,B as z,D as we,E as Te,F as Ee,G as De,H as B,J as Oe,K as V,L as ke,M as Ae,O as je,P as Me,Q as Ne,R as Pe,S as Fe,T as Ie,U as Le,V as Re,X as H,Y as ze,Z as U,_ as Be,at as Ve,b as He,et as Ue,ft as We,g as Ge,h as Ke,ht as qe,i as Je,j as Ye,mt as Xe,o as Ze,q as Qe,r as $e,rt as et,t as tt,v as W,w as nt,x as rt,y as it,z as at}from"../index-BEBAY2Mg.js";import{a as ot,i as st,n as ct,o as lt,r as ut,s as dt,t as ft}from"../SlideWrapper-IFU3LLlv.js";import{t as G}from"./IconButton-BAiJUHfk.js";var pt={},mt={class:`w-1px opacity-10 bg-current m-1 lg:m-2`};function ht(e,t){return F(),h(`div`,mt)}var gt=Se(pt,[[`render`,ht]]);function _t(e){let{next:t,nextSlide:n,prev:r,prevSlide:i}=W(),{isDrawing:a}=dt(),o=D(0),{direction:s,distanceX:c,distanceY:l}=pe(e,{pointerTypes:[`touch`],onSwipeStart(){a.value||(o.value=ue())},onSwipeEnd(){if(!o.value||a.value)return;let e=Math.abs(c.value),u=Math.abs(l.value);e/window.innerWidth>.3||e>75?s.value===`left`?t():r():(u/window.innerHeight>.4||u>200)&&(s.value===`down`?i():n())}})}function vt(){let{request:e,release:t}=ye();d(Ne,n=>{n?e(`screen`):t()},{immediate:!0})}var yt=Object.assign({}),bt=Object.assign({}),xt=[Object.values(yt)[0],Object.values(bt)[0]].filter(Boolean),St,Ct=()=>{if(St)return St;let{next:e,nextSlide:t,prev:n,prevSlide:r,hasNext:i,hasPrev:a,currentPage:o,total:s,isPresenter:c,enterPresenter:l,exitPresenter:u,isEmbedded:d,isPresenterAvailable:f}=W(),{drawingEnabled:p}=dt(),{isFullscreen:m,toggle:h}=Ie;return St=xt.reduce((e,t)=>t(e),x(()=>[{small:!0,icon:`i-carbon:arrow-left`,label:`Previous Click`,action:n,disabled:!a.value},{small:!0,icon:`i-carbon:arrow-right`,label:`Next Click`,action:e,disabled:!i.value},{small:!0,icon:`i-carbon:arrow-up`,label:`Previous Slide`,action:r,disabled:o.value<=1},{small:!0,icon:`i-carbon:arrow-down`,label:`Next Slide`,action:t,disabled:o.value>=s.value},`separator`,{icon:`i-carbon:text-annotation-toggle`,label:at.value?`Hide editor`:`Show editor`,action:()=>at.value=!at.value,show:!1},{icon:`i-carbon:pen`,label:p.value?`Hide drawing toolbar`:`Show drawing toolbar`,action:()=>p.value=!p.value},{icon:`i-carbon:apps`,label:`Show slide overview`,action:Qe},c.value&&{icon:`i-carbon:presentation-file`,label:`Exit Presenter Mode`,action:u},f.value&&{icon:`i-carbon:user-speaker`,label:`Enter Presenter Mode`,action:l},!d.value&&{icon:m.value?`i-carbon:minimize`:`i-carbon:maximize`,label:m.value?`Close fullscreen`:`Enter fullscreen`,action:h}].filter(Boolean)))},wt=b(null);function Tt(e,t){wt.value={x:e,y:t,items:Ct()}}function Et(){wt.value=null}function Dt(e){if(I.contextMenu!==!0&&I.contextMenu!=null&&I.contextMenu!==`build`||e.shiftKey||e.defaultPrevented)return;let{isEmbedded:t}=W();t.value||(Tt(e.pageX,e.pageY),e.preventDefault(),e.stopPropagation())}var Ot=[`title`,`onClick`],kt=[`onClick`],At={class:`mx-auto flex`},jt={key:0},Mt={class:`w-full text-xs p2`},Nt={class:`text-main text-opacity-50!`},Pt=j({__name:`ContextMenu`,setup(e){let t=D();ge(t,Et),he(document,`mousedown`,e=>{e.buttons&2&&Et()},{passive:!0,capture:!0});let r=x(()=>I.contextMenu!=null);d(de(),e=>{e||Et()}),tt(1);let{width:i,height:a}=me(t),o=x(()=>{let e=wt.value?.x;return e?e+i.value>Ce.width.value?Ce.width.value-i.value:e:0}),s=x(()=>{let e=wt.value?.y;return e?e+a.value>Ce.height.value?Ce.height.value-a.value:e:0});return(e,i)=>p(wt)?(F(),h(`div`,{key:0,ref_key:`container`,ref:t,style:g(`left:${o.value}px;top:${s.value}px`),class:`slidev-glass-effect fixed z-context-menu w-60 flex flex-wrap justify-items-start p-1 animate-fade-in animate-duration-100 rounded-md shadow overflow-hidden select-none`,onContextmenu:i[1]||=y(()=>{},[`prevent`]),onClick:i[2]||=(...e)=>p(Et)&&p(Et)(...e)},[(F(!0),h(O,null,l(p(wt).items.value,(e,t)=>(F(),h(O,{key:t},[e===`separator`?(F(),h(`div`,{key:t,class:`w-full my1 border-t border-main`})):e.show??!0?(F(),h(O,{key:1},[e.small?(F(),h(`div`,{key:0,class:A([`p-2 w-[40px] h-[40px] inline-block text-center cursor-pointer rounded flex`,e.disabled?`op40`:`hover:bg-active`]),title:e.label,onClick:e.action},[typeof e.icon==`string`?(F(),h(`div`,{key:0,class:A([e.icon,`text-1.2em ma`])},null,2)):(F(),k(n(e.icon),{key:1}))],10,Ot)):(F(),h(`div`,{key:1,class:A([`w-full grid grid-cols-[35px_1fr] p-2 pl-0 cursor-pointer rounded`,e.disabled?`op40`:`hover:bg-active`]),onClick:e.action},[f(`div`,At,[typeof e.icon==`string`?(F(),h(`div`,{key:0,class:A([e.icon,`text-1.2em ma`])},null,2)):(F(),k(n(e.icon),{key:1}))]),typeof e.label==`string`?(F(),h(`div`,jt,M(e.label),1)):(F(),k(n(e.label),{key:1}))],10,kt))],64)):N(``,!0)],64))),128)),r.value?N(``,!0):(F(),h(O,{key:0},[i[6]||=f(`div`,{class:`w-full my1 border-t border-main`},null,-1),f(`div`,Mt,[f(`div`,Nt,[i[3]||=ie(` Hold `,-1),i[4]||=f(`kbd`,{class:`border px1 py0.5 border-main rounded text-primary`},`Shift`,-1),i[5]||=ie(` and right click to open the native context menu `,-1),N(``,!0)])])],64))],36)):N(``,!0)}});function Ft(e){return Array.isArray?Array.isArray(e):Ut(e)===`[object Array]`}function It(e){if(typeof e==`string`)return e;if(typeof e==`bigint`)return e.toString();let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function Lt(e){return e==null?``:It(e)}function K(e){return typeof e==`string`}function Rt(e){return typeof e==`number`}function zt(e){return e===!0||e===!1||Vt(e)&&Ut(e)==`[object Boolean]`}function Bt(e){return typeof e==`object`}function Vt(e){return Bt(e)&&e!==null}function q(e){return e!=null}function Ht(e){return!e.trim().length}function Ut(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var Wt=`Incorrect 'index' type`,Gt=`Invalid doc index: must be a non-negative integer within the bounds of the docs array`,Kt=e=>`Invalid value for key ${e}`,qt=e=>`Pattern length exceeds max of ${e}.`,Jt=e=>`Missing ${e} property in key`,Yt=e=>`Property 'weight' in key '${e}' must be a positive integer`,Xt=`Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.`,Zt=Object.prototype.hasOwnProperty,Qt=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=$t(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function $t(e){let t=null,n=null,r=null,i=1,a=null;if(K(e)||Ft(e))r=e,t=en(e),n=tn(e);else{if(!Zt.call(e,`name`))throw Error(Jt(`name`));let o=e.name;if(r=o,Zt.call(e,`weight`)&&e.weight!==void 0&&(i=e.weight,i<=0))throw Error(Yt(tn(o)));t=en(o),n=tn(o),a=e.getFn??null}return{path:t,id:n,weight:i,src:r,getFn:a}}function en(e){return Ft(e)?e:e.split(`.`)}function tn(e){return Ft(e)?e.join(`.`):e}function nn(e,t){let n=[],r=!1,i=(e,t,a,o)=>{if(q(e))if(!t[a])n.push(o===void 0?e:{v:e,i:o});else{let s=e[t[a]];if(!q(s))return;if(a===t.length-1&&(K(s)||Rt(s)||zt(s)||typeof s==`bigint`))n.push(o===void 0?Lt(s):{v:Lt(s),i:o});else if(Ft(s)){r=!0;for(let e=0,n=s.length;ee.score===t.score?e.idx{this._keysMap[e.id]=t})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;let e=this.docs.length;this.records=Array(e);let t=0;if(K(this.docs[0]))for(let n=0;ne&&--this.records[t].i}removeAll(e){let t=new Set;for(let n of e)Number.isInteger(n)&&n>=0&&t.add(n);if(t.size===0)return;this.records=this.records.filter(e=>!t.has(e.i));let n=Array.from(t).sort((e,t)=>e-t);for(let e of this.records){let t=0,r=n.length;for(;t>>1;n[i]t),records:this.records}}};function un(e,t,{getFn:n=J.getFn,fieldNormWeight:r=J.fieldNormWeight}={}){let i=new ln({getFn:n,fieldNormWeight:r});return i.setKeys(e.map($t)),i.setSources(t),i.create(),i}function dn(e,{getFn:t=J.getFn,fieldNormWeight:n=J.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new ln({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a}function fn(e=[],t=J.minMatchCharLength){let n=[],r=-1,i=-1,a=0;for(let o=e.length;a=t&&n.push([r,i]),r=-1)}return e[a-1]&&a-r>=t&&n.push([r,a-1]),n}var pn=32;function mn(e,t,n,{location:r=J.location,distance:i=J.distance,threshold:a=J.threshold,findAllMatches:o=J.findAllMatches,minMatchCharLength:s=J.minMatchCharLength,includeMatches:c=J.includeMatches,ignoreLocation:l=J.ignoreLocation}={}){if(t.length>pn)throw Error(qt(pn));let u=t.length,d=e.length,f=Math.max(0,Math.min(r,d)),p=a,m=f,h=(e,t)=>{let n=e/u;if(l)return n;let r=Math.abs(f-t);return i?n+r/i:r?1:n},g=s>1||c,_=g?Array(d):[],v;for(;(v=e.indexOf(t,m))>-1;){let e=h(0,v);if(p=Math.min(e,p),m=v+u,g){let e=0;for(;e=a;--r){let i=r-1,o=n[e[i]];if(c[r]=(c[r+1]<<1|1)&o,t&&(c[r]|=(y[r+1]|y[r])<<1|1|y[r+1]),c[r]&C&&(b=h(t,i),b<=p)){if(p=b,m=i,x=t,m<=f)break;a=Math.max(1,2*f-m)}}if(h(t+1,f)>p)break;y=c}if(g&&m>=0){let t=Math.min(d-1,m+u-1+x);for(let r=m;r<=t;r+=1)n[e[r]]&&(_[r]=1)}let w={isMatch:m>=0,score:Math.max(.001,b)};if(g){let e=fn(_,s);e.length?c&&(w.indices=e):w.isMatch=!1}return w}function hn(e){let t={};for(let n=0,r=e.length;ne[0]-t[0]||e[1]-t[1]);let t=[e[0]];for(let n=1,r=e.length;ne.normalize(`NFD`).replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,``).replace(vn,e=>_n[e]):e=>e,bn=class{constructor(e,{location:t=J.location,threshold:n=J.threshold,distance:r=J.distance,includeMatches:i=J.includeMatches,findAllMatches:a=J.findAllMatches,minMatchCharLength:o=J.minMatchCharLength,isCaseSensitive:s=J.isCaseSensitive,ignoreDiacritics:c=J.ignoreDiacritics,ignoreLocation:l=J.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l},e=s?e:e.toLowerCase(),e=c?yn(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:hn(e),startIndex:t})},d=this.pattern.length;if(d>pn){let e=0,t=d%pn,n=d-t;for(;e{let{isMatch:m,score:h,indices:g}=mn(e,t,n,{location:i+p,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,includeMatches:r,ignoreLocation:l});m&&(f=!0),d+=h,m&&g&&u.push(...g)});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=gn(u)),p}},xn=new Set([`fuzzy`,`include`]);function Sn(e){return e.startsWith(`inverse`)}var Cn=[{type:`exact`,multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:`exact`,search(t){let n=t===e;return{isMatch:n,score:+!n,indices:[0,e.length-1]}}})},{type:`include`,multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:`include`,search(t){let n=0,r,i=[],a=e.length;for(;(r=t.indexOf(e,n))>-1;)n=r+a,i.push([r,n-1]);let o=!!i.length;return{isMatch:o,score:+!o,indices:i}}})},{type:`prefix-exact`,multiRegex:/^\^"(.*)"$/,singleRegex:/^\^(.*)$/,create:e=>({type:`prefix-exact`,search(t){let n=t.startsWith(e);return{isMatch:n,score:+!n,indices:[0,e.length-1]}}})},{type:`inverse-prefix-exact`,multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:`inverse-prefix-exact`,search(t){let n=!t.startsWith(e);return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`inverse-suffix-exact`,multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:`inverse-suffix-exact`,search(t){let n=!t.endsWith(e);return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`suffix-exact`,multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:`suffix-exact`,search(t){let n=t.endsWith(e);return{isMatch:n,score:+!n,indices:[t.length-e.length,t.length-1]}}})},{type:`inverse-exact`,multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:`inverse-exact`,search(t){let n=t.indexOf(e)===-1;return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`fuzzy`,multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{let n=new bn(e,{location:t.location??J.location,threshold:t.threshold??J.threshold,distance:t.distance??J.distance,includeMatches:t.includeMatches??J.includeMatches,findAllMatches:t.findAllMatches??J.findAllMatches,minMatchCharLength:t.minMatchCharLength??J.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??J.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??J.ignoreDiacritics,ignoreLocation:t.ignoreLocation??J.ignoreLocation});return{type:`fuzzy`,search(e){return n.searchIn(e)}}}}],wn=Cn.length,Tn=`\0`,En=`|`;function Dn(e){let t=[],n=e.length,r=0;for(;r=n)break;let i=r;for(;i=n||e[t]===` `){i++;break}if(e[t]===`$`&&(t+1>=n||e[t+1]===` `)){i+=2;break}}i++}t.push(e.substring(r,i)),r=i}else{for(;i{let n=Dn(e.replace(/\u0000/g,`|`).trim()).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e!!(e[Pn.AND]||e[Pn.OR]),Ln=e=>!!e[Fn.PATH],Rn=e=>!Ft(e)&&Bt(e)&&!In(e),zn=e=>({[Pn.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Bn(e,t,{auto:n=!0}={}){let r=e=>{if(K(e)){let r={keyId:null,pattern:e};return n&&(r.searcher=Nn(e,t)),r}let i=Object.keys(e),a=Ln(e);if(!a&&i.length>1&&!In(e))return r(zn(e));if(Rn(e)){let r=a?e[Fn.PATH]:i[0],o=a?e[Fn.PATTERN]:e[r];if(!K(o))throw Error(Kt(r));let s={keyId:tn(r),pattern:o};return n&&(s.searcher=Nn(o,t)),s}let o={children:[],operator:i[0]};return i.forEach(t=>{let n=e[t];Ft(n)&&n.forEach(e=>{o.children.push(r(e))})}),o};return In(e)||(e=zn(e)),r(e)}function Vn(e,{ignoreFieldNorm:t=J.ignoreFieldNorm}){let n=1;return e.forEach(({key:e,norm:r,score:i})=>{let a=e?e.weight:null;n*=(i===0&&a?2**-52:i)**+((a||1)*(t?1:r))}),n}function Hn(e,{ignoreFieldNorm:t=J.ignoreFieldNorm}){e.forEach(e=>{e.score=Vn(e.matches,{ignoreFieldNorm:t})})}var Un=class{constructor(e){this.limit=e,this.heap=[]}get size(){return this.heap.length}shouldInsert(e){return this.size0;){let n=e-1>>1;if(t[e].score<=t[n].score)break;let r=t[e];t[e]=t[n],t[n]=r,e=n}}_sinkDown(e){let t=this.heap,n=t.length,r=e;do{e=r;let i=2*e+1,a=2*e+2;if(it[r].score&&(r=i),at[r].score&&(r=a),r!==e){let n=t[e];t[e]=t[r],t[r]=n}}while(r!==e)}};function Wn(e){let t=[];return e.matches.forEach(e=>{if(!q(e.indices)||!e.indices.length)return;let n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.id),e.idx>-1&&(n.refIndex=e.idx),t.push(n)}),t}function Gn(e,t,{includeMatches:n=J.includeMatches,includeScore:r=J.includeScore}={}){return e.map(e=>{let{idx:i}=e,a={item:t[i],refIndex:i};return n&&(a.matches=Wn(e)),r&&(a.score=e.score),a})}var Kn=/[\p{L}\p{M}\p{N}_]+/gu,qn=new WeakSet;function Jn(e){qn.has(e)||(qn.add(e),console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))}function Yn(e){if(typeof e==`function`){let t=!1;return n=>{let r=e(n);if(!t&&(t=!0,!Array.isArray(r)||r.some(e=>typeof e!=`string`)))throw Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(r)?`array containing non-strings`:typeof r}.`);return r}}return e instanceof RegExp?(e.global||Jn(e),t=>t.match(e)||[]):e=>e.match(Kn)||[]}function Xn({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:n}={}){let r=Yn(n);return{tokenize(n){return e||(n=n.toLowerCase()),t&&(n=yn(n)),r(n)}}}var Zn=31,Qn=class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=Xn({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});let n=this.analyzer.tokenize(e),{df:r,fieldCount:i}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(let e of n){this.termSearchers.push(new bn(e,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));let n=r.get(e)||0,a=Math.log(1+(i-n+.5)/(n+.5));this.idfWeights.push(a)}this.combineAll=t.tokenMatch===`all`,this.numTerms=this.termSearchers.length,this.useMask=this.numTerms<=Zn}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};let t=[],n=0,r=0,i=0,a=0,o=this.combineAll&&!this.useMask?new Set:null;for(let s=0;s0?1-n/r:0,c={isMatch:!0,score:Math.max(.001,s)};return this.options.includeMatches&&t.length&&(c.indices=gn(t)),this.combineAll&&(this.useMask?c.matchedMask=a:c.matchedTerms=o,c.termCount=this.numTerms),c}};function $n(e,t,n,r){let i=r.tokenize(t);if(!i.length)return;e.fieldCount++,e.docFieldCount.set(n,(e.docFieldCount.get(n)||0)+1);let a=new Set(i),o=e.docTermFieldHits.get(n);o||(o=new Map,e.docTermFieldHits.set(n,o));for(let t of a)o.set(t,(o.get(t)||0)+1),e.df.set(t,(e.df.get(t)||0)+1)}function er(e,t,n,r){let{i,v:a,$:o}=t;if(a!==void 0){$n(e,a,i,r);return}if(o)for(let t=0;te-t);for(let t of n)rr(e,t);let r=e=>{let t=0,r=n.length;for(;t>>1;n[i]i?r(t):t,n);e.docFieldCount=a;let o=new Map;for(let[t,n]of e.docTermFieldHits)o.set(t>i?r(t):t,n);e.docTermFieldHits=o}var Y=class{constructor(e,t,n){this.options={...J,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new Qt(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;let t=Nn(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof ln))throw Error(Wt);if(this._myIndex=t||un(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){let e=Xn({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=tr(this._myIndex.records,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}add(e){if(!q(e))return;this._docs.push(e);let t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){let e=Xn({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});nr(this._invertedIndex,t,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}remove(e=()=>!1){let t=[],n=[];for(let r=0,i=this._docs.length;r!e.has(n)),this._myIndex.removeAll(n),this._invalidateSearcherCache()}return t}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw Error(Gt);this._invertedIndex&&ir(this._invertedIndex,[e]);let t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),this._invalidateSearcherCache(),t}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}search(e,t){let{limit:n=-1}=t||{},{includeMatches:r,includeScore:i,shouldSort:a,sortFn:o,ignoreFieldNorm:s}=this.options;if(K(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return Rt(n)&&n>-1&&(e=e.slice(0,n)),e}let c=Rt(n)&&n>0&&K(e),l;if(c){let t=new Un(n);K(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:s}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:s}),l=t.extractSorted(o)}else l=K(e)?K(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),Hn(l,{ignoreFieldNorm:s}),a&&l.sort(o),Rt(n)&&n>-1&&(l=l.slice(0,n));return Gn(l,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch===`all`,{records:a}=this._myIndex,o=t?null:[];return a.forEach(({v:e,i:a,n:s})=>{if(!q(e))return;let c=r.searchIn(e);if(c.isMatch){let r={score:c.score,value:e,norm:s,indices:c.indices};i&&(r.matchedMask=c.matchedMask,r.matchedTerms=c.matchedTerms,r.termCount=c.termCount);let l=[r];if(!i||this._coversAllTokens(l)){let r={item:e,idx:a,matches:l};t?(r.score=Vn(r.matches,{ignoreFieldNorm:n}),t.shouldInsert(r.score)&&t.insert(r)):o.push(r)}}}),o}_searchLogical(e){let t=Bn(e,this.options),n=(e,t,r)=>{if(!(`children`in e)){let{keyId:n,searcher:i}=e,a;return n===null?(a=[],this._myIndex.keys.forEach((e,n)=>{a.push(...this._findMatches({key:e,value:t[n],searcher:i}))})):a=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i}),a&&a.length?[{idx:r,item:t,matches:a}]:[]}let{children:i,operator:a}=e,o=[];for(let e=0,s=i.length;e{if(q(e)){let o=n(t,e,r);o.length&&(i.has(r)||(i.set(r,{idx:r,item:e,matches:[]}),a.push(i.get(r))),o.forEach(({matches:e})=>{i.get(r).matches.push(...e)}))}}),a}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch===`all`,{keys:a,records:o}=this._myIndex,s=t?null:[];return o.forEach(({$:e,i:o})=>{if(!q(e))return;let c=[],l=!1,u=!1;if(a.forEach((t,n)=>{let i=this._findMatches({key:t,value:e[n],searcher:r});i.length?(c.push(...i),i[0].hasInverse&&(u=!0)):l=!0}),!(u&&l)&&c.length&&(!i||this._coversAllTokens(c))){let r={idx:o,item:e,matches:c};t?(r.score=Vn(r.matches,{ignoreFieldNorm:n}),t.shouldInsert(r.score)&&t.insert(r)):s.push(r)}}),s}_findMatches({key:e,value:t,searcher:n}){if(!q(t))return[];let r=[];if(Ft(t))t.forEach(({v:t,i,n:a})=>{if(!q(t))return;let o=n.searchIn(t);if(o.isMatch){let n={score:o.score,key:e,value:t,idx:i,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(n.matchedMask=o.matchedMask,n.matchedTerms=o.matchedTerms,n.termCount=o.termCount),r.push(n)}});else{let{v:i,n:a}=t,o=n.searchIn(i);if(o.isMatch){let t={score:o.score,key:e,value:i,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(t.matchedMask=o.matchedMask,t.matchedTerms=o.matchedTerms,t.termCount=o.termCount),r.push(t)}}return r}_coversAllTokens(e){let t=e.length?e[0].termCount:void 0;if(t===void 0)return!0;if(t<=Zn){let n=0;for(let t=0;tMn(e))};var ar={key:0},or={key:1},sr={key:2},cr={key:3},lr={key:4},ur=j({__name:`title-renderer`,props:{no:{}},setup(e){let t=e,{$page:n}=et(),r=x(()=>+(t.no??n.value));return(e,t)=>(F(),h(`div`,null,[r.value===1?(F(),h(`p`,ar,`Real Obsidian Test`)):r.value===2?(F(),h(`p`,or,`Features to Test`)):r.value===3?(F(),h(`p`,sr,`Code Example`)):r.value===4?(F(),h(`p`,cr,`Mermaid Support`)):r.value===5?(F(),h(`p`,lr,`Final Test`)):N(``,!0)]))}}),dr={class:`bg-main transform`,shadow:`~`,p:`x-4 y-2`,border:`~ transparent rounded dark:main`},fr=[`value`,`disabled`],pr={table:``,"w-full":``,"border-collapse":``},mr=[`border`,`onClick`],hr={"text-right":``,op50:``,"text-sm":``,"table-cell":``,"py-2":``,"pl-4":``,"pr-3":``,"vertical-middle":``},gr=Se(j({__name:`Goto`,setup(e){let t=D(),n=D(),r=D(),i=D(),a=D(``),o=D(0),{go:s,slides:u}=W();function m(e){return e!=null}let g=x(()=>new Y(u.value.map(e=>e.meta?.slide).filter(m),{keys:[`no`,`title`],threshold:.3,shouldSort:!0,minMatchCharLength:1})),_=x(()=>a.value.startsWith(`/`)?a.value.substring(1):a.value),b=x(()=>_.value?g.value.search(_.value).map(e=>e.item):[]),S=x(()=>!!b.value.length);function C(){if(S.value){let e=b.value.at(o.value||0);e&&s(e.no)}w()}function w(){a.value=``,z.value=!1}function T(e){e.preventDefault(),o.value++,o.value>=b.value.length&&(o.value=0),E()}function ee(e){e.preventDefault(),o.value--,o.value<=-2&&(o.value=b.value.length-1),E()}function E(){let e=i.value?.[o.value];e&&r.value&&(e.offsetTop+e.offsetHeight>r.value.offsetHeight+r.value.scrollTop?r.value.scrollTo({behavior:`smooth`,top:e.offsetTop+e.offsetHeight-r.value.offsetHeight+1}):e.offsetTop{e?(a.value=``,o.value=0,setTimeout(()=>n.value?.focus(),0)):n.value?.blur()}),d(He,()=>{t.value?.contains(He.value)||w()}),(e,s)=>(F(),h(`div`,{id:`slidev-goto-dialog`,ref_key:`container`,ref:t,class:A([`fixed right-5 transition-all`,p(z)?`top-5`:`-top-20`]),"w-90":``,"max-w-90":``,"min-w-90":``},[f(`div`,dr,[f(`input`,{id:`slidev-goto-input`,ref_key:`input`,ref:n,value:a.value,type:`text`,disabled:!p(z),class:A([`outline-none bg-transparent`,{"text-red-400":!S.value&&a.value}]),placeholder:`Goto...`,onKeydown:[v(C,[`enter`]),v(w,[`escape`]),v(T,[`down`]),v(ee,[`up`])],onInput:te},null,42,fr)]),p(z)&&b.value.length>0?(F(),h(`div`,{key:0,ref_key:`list`,ref:r,class:`autocomplete-list`,shadow:`~`,border:`~ transparent rounded dark:main`},[f(`ul`,pr,[(F(!0),h(O,null,l(b.value,(e,t)=>(F(),h(`li`,{ref_for:!0,ref_key:`items`,ref:i,key:e.id,role:`button`,tabindex:`0`,"cursor-pointer":``,hover:`op100`,"table-row":``,"items-center":``,border:t===0?void 0:`t main`,class:A(o.value===t?`bg-active op100`:`op80`),onClick:y(t=>ne(e.no),[`stop`,`prevent`])},[f(`div`,hr,M(e.no),1),c(p(ur),{"table-cell":``,"py-2":``,"pr-4":``,"w-full":``,no:e.no},null,8,[`no`])],10,mr))),128))])],512)):N(``,!0)],2))}}),[[`__scopeId`,`data-v-4467b1ff`]]),_r=D(1),vr=x(()=>Xe.value.length),X=D(0),yr=D(0);function br(){X.value>_r.value&&--X.value}function xr(){X.value_r.value){let e=X.value-yr.value;e<_r.value&&(e=_r.value),X.value=e}}function Cr(){if(X.valuevr.value&&(e=vr.value),X.value=e}}var wr=[`onClick`],Tr={class:`text-green font-bold`},Er={class:`opacity-50`},Dr={key:1,class:`opacity-50`},Or={class:`fixed top-4 right-4 z-modal text-gray-400 flex flex-col items-center gap-2`},kr=128,Ar=32,jr=j({__name:`QuickOverview`,setup(t){let{currentSlideNo:n,go:r,slides:i}=W();function a(){B.value=!1}function o(e){r(e),a()}function d(e){return e===X.value}let _=rt.smaller(`xs`),v=rt.smaller(`sm`),y=x(()=>_.value?Ce.width.value-kr:v.value?(Ce.width.value-kr-Ar)/2:300),b=x(()=>Math.floor((Ce.width.value-kr)/(y.value+Ar))),S=D(``);return he(`keypress`,e=>{if(!B.value){S.value=``;return}if(e.key===`Enter`){e.preventDefault(),S.value?(o(+S.value),S.value=``):o(X.value);return}let t=Number.parseInt(e.key.replace(/\D/g,``));if(Number.isNaN(t)){S.value=``;return}if(!S.value&&t===0)return;if(S.value+=String(t),+S.value>i.value.length){S.value=``;return}let n=i.value.findIndex(e=>`/${e.no}`===S.value);n!==-1&&(X.value=n+1),S.value*10>i.value.length&&(o(+S.value),S.value=``)}),u(()=>{X.value=n.value,yr.value=b.value}),(t,n)=>(F(),h(O,null,[c(m,{"enter-active-class":`duration-150 ease-out`,"enter-from-class":`opacity-0 scale-102 !backdrop-blur-0px`,"leave-active-class":`duration-200 ease-in`,"leave-to-class":`opacity-0 scale-102 !backdrop-blur-0px`},{default:s(()=>[p(B)?(F(),h(`div`,{key:0,class:`fixed left-0 right-0 top-0 h-[calc(var(--vh,1vh)*100)] z-modal bg-main !bg-opacity-75 p-16 py-20 overflow-y-auto backdrop-blur-5px select-none`,onClick:a},[f(`div`,{class:`grid gap-y-4 gap-x-8 w-full`,style:g(`grid-template-columns: repeat(auto-fit,minmax(${y.value}px,1fr))`)},[(F(!0),h(O,null,l(p(i),(e,t)=>(F(),h(`div`,{key:e.no,class:`relative`},[f(`div`,{class:A([`inline-block border rounded overflow-hidden bg-main hover:border-primary transition`,d(t+1)||p(X)===t+1?`border-primary`:`border-main`]),onClick:t=>o(e.no)},[(F(),k(st,{key:e.no,no:e.no,"use-snapshot":!0,width:y.value,class:`pointer-events-none`},{default:s(()=>[c(ft,{"clicks-context":p(xe)(e,p(Ve)),route:e,"render-context":`overview`},null,8,[`clicks-context`,`route`]),c(lt,{page:e.no},null,8,[`page`])]),_:2},1032,[`no`,`width`]))],10,wr),f(`div`,{class:`absolute top-0`,style:g(`left: ${y.value+5}px`)},[S.value&&String(t+1).startsWith(S.value)?(F(),h(O,{key:0},[f(`span`,Tr,M(S.value),1),f(`span`,Er,M(String(t+1).slice(S.value.length)),1)],64)):(F(),h(`span`,Dr,M(t+1),1))],4)]))),128))],4)])):N(``,!0)]),_:1}),e(f(`div`,Or,[c(G,{title:`Close`,class:`text-2xl`,onClick:a},{default:s(()=>[...n[0]||=[f(`div`,{class:`i-carbon:close`},null,-1)]]),_:1}),(F(),k(G,{key:0,as:`a`,title:`Slides Overview`,target:`_blank`,href:`${p(`/`)}overview`,"tab-index":`-1`,class:`text-2xl`},{default:s(()=>[...n[1]||=[f(`div`,{class:`i-carbon:list-boxes`},null,-1)]]),_:1},8,[`href`])),N(``,!0)],512),[[re,p(B)]])],64))}});function Mr(){let e=be();return x(()=>{let t=ot.value?.getBoundingClientRect();if(!t)return;let n=(e.x.value-t.left)/t.width*100,r=(e.y.value-t.top)/t.height*100;if(!(n<0||n>100||r<0||r>100))return{x:n,y:r}})}var Nr={key:0,class:`absolute top-0 left-0 right-0 bottom-0 pointer-events-none text-xl`},Pr=Se(j({__name:`LaserPointer`,setup(e){let t=Mr(),{isPresenter:n}=W(),r=x(()=>!n.value&&Ze.cursor?.style===`laser`?Ze.cursor:Fe.value===`laser`?t.value:null);return a(()=>{u(()=>{document.body.classList.toggle(`slidev-self-laser-active`,Fe.value===`laser`&&!!r.value)})}),(e,t)=>r.value?(F(),h(`div`,Nr,[f(`div`,{class:`laser-pointer`,style:g({left:`${r.value.x}%`,top:`${r.value.y}%`})},null,4)])):N(``,!0)}}),[[`__scopeId`,`data-v-300f21bb`]]),Fr={render:()=>[]},Ir={key:0,class:`bg-main text-main shadow-xl absolute bottom-10 left-0 z-menu py2`,border:`~ main rounded-md`},Lr=j({__name:`MenuButton`,props:{modelValue:{default:!1},disabled:{default:!1}},setup(e,{emit:t}){let n=ce(e,`modelValue`,t,{passive:!0}),i=D();return ge(i,()=>{n.value=!1}),(t,a)=>(F(),h(`div`,{ref_key:`el`,ref:i,class:`flex relative`},[f(`button`,{class:A({disabled:e.disabled}),onClick:a[0]||=e=>n.value=!p(n)},[r(t.$slots,`button`,{value:p(n),class:A({disabled:e.disabled})})],2),(F(),k(S,null,[p(n)?(F(),h(`div`,Ir,[r(t.$slots,`menu`)])):N(``,!0)],1024))],512))}}),Rr={border:`~ main rounded`,flex:`~ gap-2 items-center`,relative:``,"h-5":``,"w-5":``,"p0.5":``,"hover:bg-active":``,p1:``},zr=[`disabled`],Br=j({__name:`FormCheckbox`,props:T({disabled:{type:Boolean}},{modelValue:{type:Boolean,type:Boolean},modelModifiers:{}}),emits:[`update:modelValue`],setup(t){let n=i(t,`modelValue`);return(r,i)=>(F(),h(`div`,Rr,[f(`div`,{"i-ri-check-line":``,class:A(n.value?``:`op0`)},null,2),e(f(`input`,{"onUpdate:modelValue":i[0]||=e=>n.value=e,type:`checkbox`,absolute:``,"inset-0":``,"opacity-10":``,disabled:t.disabled},null,8,zr),[[_,n.value]])]))}}),Vr={"w-30":``,"h-8":``,flex:`~ gap-1 items-center`},Hr={key:0,"w-1.5":``,"h-1.5":``,"bg-primary":``,rounded:``,absolute:``,"top-0":``,"right--2":``},Ur={key:0,"w-1.5":``,"h-1.5":``,"bg-primary":``,rounded:``,absolute:``,"top-0":``,"right--2":``},Wr=[`innerHTML`],Z=j({__name:`FormItem`,props:{title:{},nested:{type:[Boolean,Number]},div:{type:Boolean},description:{},dot:{type:Boolean}},emits:[`reset`],setup(e,{emit:t}){let i=t;function a(){i(`reset`)}return(t,i)=>(F(),k(n(e.div?`div`:`label`),{flex:`~ row gap-2 items-center`,"select-none":``},{default:s(()=>[f(`div`,Vr,[e.nested?(F(),h(`div`,{key:0,"i-ri-corner-down-right-line":``,op40:``,style:g(typeof e.nested==`number`?{marginLeft:`${e.nested*.5+.5}rem`}:{marginLeft:`0.25rem`})},null,4)):N(``,!0),e.description?(F(),k(p(te),{key:2,distance:`10`},{popper:s(()=>[f(`div`,{"text-sm":``,"min-w-90":``,innerHTML:e.description},null,8,Wr)]),default:s(()=>[f(`div`,{op75:``,"text-right":``,relative:``,onDblclick:a},[ie(M(e.title)+` `,1),e.dot?(F(),h(`div`,Ur)):N(``,!0)],32)]),_:1})):(F(),h(`div`,{key:1,op75:``,relative:``,onDblclick:a},[ie(M(e.title)+` `,1),e.dot?(F(),h(`div`,Hr)):N(``,!0)],32))]),r(t.$slots,`default`)]),_:3}))}}),Gr={relative:``,"h-22px":``},Kr={key:0,"pointer-events-none":``,absolute:``,"right-1":``,"top-0.5":``,"text-xs":``,op25:``},qr=j({__name:`FormSlider`,props:T({max:{},min:{},step:{},unit:{},default:{}},{modelValue:{type:Number},modelModifiers:{}}),emits:[`update:modelValue`],setup(t){let n=t,r=i(t,`modelValue`);return(i,a)=>(F(),h(O,null,[f(`div`,{relative:``,"h-22px":``,"w-60":``,"flex-auto":``,onDblclick:a[1]||=e=>n.default===void 0?null:r.value=n.default},[e(f(`input`,o({"onUpdate:modelValue":a[0]||=e=>r.value=e,type:`range`,class:`slider`},n,{absolute:``,"bottom-0":``,"left-0":``,"right-0":``,"top-0":``,"z-10":``,"w-full":``,"align-top":``}),null,16),[[E,r.value,void 0,{number:!0}]]),n.default==null?N(``,!0):(F(),h(`span`,{key:0,border:`r main`,absolute:``,"bottom-0":``,"top-0":``,"h-full":``,"w-1px":``,op75:``,style:g({left:`${(n.default-t.min)/(t.max-t.min)*100}%`})},null,4))],32),f(`div`,Gr,[e(f(`input`,o({"onUpdate:modelValue":a[2]||=e=>r.value=e,type:`number`},n,{border:`~ main rounded`,m0:``,"w-20":``,"bg-gray:5":``,pl2:``,"align-top":``,"text-sm":``}),null,16),[[E,r.value,void 0,{number:!0}]]),n.unit?(F(),h(`span`,Kr,M(n.unit),1)):N(``,!0)])],64))}}),Jr={error:0,client:60,Light:60,Dark:240};function Yr(e,t=1){if(Jr[e])return Xr(Jr[e],t);let n=0;for(let t=0;t!t.text||t.color===!1?{}:{color:typeof t.color==`number`?Xr(t.color):Yr(t.text),background:typeof t.color==`number`?Xr(t.color,.1):Yr(t.text,.1)}),a=x(()=>{switch(t.size||`sm`){case`sm`:return`px-1.5 text-11px leading-1.6em`}return``});return(o,c)=>(F(),k(n(e.as||`span`),{"ws-nowrap":``,rounded:``,class:A(a.value),style:g(i.value)},{default:s(()=>[r(o.$slots,`default`,{},()=>[f(`span`,{textContent:M(t.text)},null,8,Zr)])]),_:3},8,[`class`,`style`]))}}),$r={flex:`~ gap-1 items-center`,rounded:``,"bg-gray:4":``,p1:``,"m--1":``},ei=j({__name:`SegmentControl`,props:{options:{},modelValue:{}},emits:[`update:modelValue`],setup(e){return(t,n)=>(F(),h(`div`,$r,[(F(!0),h(O,null,l(e.options,n=>(F(),k(Qr,{key:n.value,class:A([`px-2 py-1 text-xs font-mono`,n.value===e.modelValue?``:`op50`]),color:n.value===e.modelValue,"aria-pressed":n.value===e.modelValue,size:`none`,text:n.label,as:`button`,onClick:e=>t.$emit(`update:modelValue`,n.value)},null,8,[`class`,`color`,`aria-pressed`,`text`,`onClick`]))),128))]))}}),ti={"text-sm":``,"select-none":``,flex:`~ col gap-1`,"min-w-30":``,px4:``},ni=j({__name:`Settings`,setup(e){let{isPresenter:t}=W(),{isSupported:n}=ye();return(e,r)=>(F(),h(`div`,ti,[c(Z,{title:`Invert`,dot:p(H).invert!==p(U).invert,onReset:r[1]||=e=>p(H).invert=p(U).invert},{default:s(()=>[c(Br,{modelValue:p(H).invert,"onUpdate:modelValue":r[0]||=e=>p(H).invert=e},null,8,[`modelValue`])]),_:1},8,[`dot`]),c(Z,{title:`Brightness`,dot:p(H).brightness!==p(U).brightness,onReset:r[3]||=e=>p(H).brightness=p(U).brightness},{default:s(()=>[c(qr,{modelValue:p(H).brightness,"onUpdate:modelValue":r[2]||=e=>p(H).brightness=e,max:1.5,min:.5,step:.02,default:p(U).brightness},null,8,[`modelValue`,`default`])]),_:1},8,[`dot`]),c(Z,{title:`Contrast`,dot:p(H).contrast!==p(U).contrast,onReset:r[5]||=e=>p(H).contrast=p(U).contrast},{default:s(()=>[c(qr,{modelValue:p(H).contrast,"onUpdate:modelValue":r[4]||=e=>p(H).contrast=e,max:1.5,min:.5,step:.02,default:p(U).contrast},null,8,[`modelValue`,`default`])]),_:1},8,[`dot`]),c(Z,{title:`Saturation`,dot:p(H).saturate!==p(U).saturate,onReset:r[7]||=e=>p(H).saturate=p(U).saturate},{default:s(()=>[c(qr,{modelValue:p(H).saturate,"onUpdate:modelValue":r[6]||=e=>p(H).saturate=e,max:1.5,min:.5,step:.02,default:p(U).saturate},null,8,[`modelValue`,`default`])]),_:1},8,[`dot`]),c(Z,{title:`Sepia`,dot:p(H).sepia!==p(U).sepia,onReset:r[9]||=e=>p(H).sepia=p(U).sepia},{default:s(()=>[c(qr,{modelValue:p(H).sepia,"onUpdate:modelValue":r[8]||=e=>p(H).sepia=e,max:2,min:-2,step:.02,default:p(U).sepia},null,8,[`modelValue`,`default`])]),_:1},8,[`dot`]),c(Z,{title:`Hue Rotate`,dot:p(H).hueRotate!==p(U).hueRotate,onReset:r[11]||=e=>p(H).hueRotate=p(U).hueRotate},{default:s(()=>[c(qr,{modelValue:p(H).hueRotate,"onUpdate:modelValue":r[10]||=e=>p(H).hueRotate=e,max:180,min:-180,step:.1,default:p(U).hueRotate},null,8,[`modelValue`,`default`])]),_:1},8,[`dot`]),r[16]||=f(`div`,{class:`h-1px opacity-5 bg-current w-full my2`},null,-1),c(Z,{title:`Cursor Style`},{default:s(()=>[c(ei,{modelValue:p(Fe),"onUpdate:modelValue":r[12]||=e=>w(Fe)?Fe.value=e:null,options:[{label:`Cursor`,value:`cursor`},{label:`Laser`,value:`laser`}]},null,8,[`modelValue`])]),_:1}),p(t)?N(``,!0):(F(),k(Z,{key:0,title:`Slide Scale`},{default:s(()=>[c(ei,{modelValue:p(De),"onUpdate:modelValue":r[13]||=e=>w(De)?De.value=e:null,options:[{label:`Fit`,value:0},{label:`1:1`,value:1}]},null,8,[`modelValue`])]),_:1})),p(n)?(F(),k(Z,{key:1,title:`Wake Lock`},{default:s(()=>[c(Br,{modelValue:p(Ne),"onUpdate:modelValue":r[14]||=e=>w(Ne)?Ne.value=e:null},null,8,[`modelValue`])]),_:1})):N(``,!0),p(t)?N(``,!0):(F(),k(Z,{key:2,title:`Hide Idle Cursor`},{default:s(()=>[c(Br,{modelValue:p(we),"onUpdate:modelValue":r[15]||=e=>w(we)?we.value=e:null},null,8,[`modelValue`])]),_:1}))]))}}),ri={class:`select-list`},ii={class:`title`},ai={class:`items`},oi=[`onClick`],si=Se(j({__name:`SelectList`,props:{modelValue:{type:[Object,String,Number,Boolean]},title:{type:String},items:{type:Array}},setup(e,{emit:t}){let n=ce(e,`modelValue`,t,{passive:!0});return(t,r)=>(F(),h(`div`,ri,[f(`div`,ii,M(e.title),1),f(`div`,ai,[(F(!0),h(O,null,l(e.items,e=>(F(),h(`div`,{key:e.value,class:A([`item`,{active:p(n)===e.value}]),onClick:()=>{n.value=e.value,e.onClick?.()}},[f(`div`,{class:A([`i-carbon:checkmark text-green-500 mya`,{"opacity-0":p(n)!==e.value}])},null,2),f(`div`,{class:A({"opacity-50":p(n)!==e.value})},M(e.display||e.value),3)],10,oi))),128))])]))}}),[[`__scopeId`,`data-v-3870d21f`]]),ci={"text-sm":``,flex:`~ col gap-2`},li={px3:``,"ws-nowrap":``},ui={"font-bold":``,"text-primary":``},di=j({__name:`SyncControls`,setup(e){let{isPresenter:t}=W(),n=x({get:()=>t.value?V.value.presenterReceive:V.value.viewerReceive,set(e){t.value?V.value.presenterReceive=e:V.value.viewerReceive=e}}),r=x({get:()=>t.value?V.value.presenterSend:V.value.viewerSend,set(e){t.value?V.value.presenterSend=e:V.value.viewerSend=e}}),i=x({get:()=>n.value&&r.value?`bidirectional`:n.value&&!r.value?`receive-only`:!n.value&&r.value?`send-only`:`off`,set(e){switch(e){case`bidirectional`:n.value=!0,r.value=!0;break;case`receive-only`:n.value=!0,r.value=!1;break;case`send-only`:n.value=!1,r.value=!0;break;case`off`:n.value=!1,r.value=!1;break}}});return(e,a)=>(F(),k(Lr,null,{button:s(()=>[c(G,{title:`Change sync settings`},{default:s(()=>[f(`div`,{class:A([`i-ph:arrow-up-bold mx--1.2 scale-x-80`,r.value?`text-green6 dark:text-green`:`op30`])},null,2),f(`div`,{class:A([`i-ph:arrow-down-bold mx--1.2 scale-x-80`,n.value?`text-green6 dark:text-green`:`op30`])},null,2)]),_:1})]),menu:s(()=>[f(`div`,ci,[f(`div`,li,[a[1]||=f(`span`,{op75:``},`Slides navigation syncing for `,-1),f(`span`,ui,M(p(t)?`presenter`:`viewer`),1)]),a[2]||=f(`div`,{class:`h-1px opacity-10 bg-current w-full`},null,-1),c(si,{modelValue:i.value,"onUpdate:modelValue":a[0]||=e=>i.value=e,title:`Sync Mode`,items:[{value:`bidirectional`,display:`Bidirectional Sync`},{value:`receive-only`,display:`Receive Only`},{value:`send-only`,display:`Send Only`},{value:`off`,display:`Disable`}]},null,8,[`modelValue`])])]),_:1}))}}),fi={key:0,class:`i-carbon:minimize`},pi={key:1,class:`i-carbon:maximize`},mi={key:0,class:`i-carbon-moon`},hi={key:1,class:`i-carbon-sun`},gi={key:0,class:`i-carbon-magic-wand-filled color-red-600 dark:color-red-400`},_i={key:1,class:`i-carbon-magic-wand`},vi={key:0,class:`i-ph-cursor-fill`},yi={key:1,class:`i-ph-cursor-duotone`},bi={key:0,"w-2":``,"h-2":``,"bg-primary":``,"rounded-full":``,absolute:``,"top-0.5":``,"right-0.5":``},xi={class:`px2 my-auto`},Si={class:`text-lg`},Ci={class:`opacity-50 text-sm`},wi=j({__name:`NavControls`,props:{persist:{default:!1}},setup(e){let t=e,{currentSlideNo:n,hasNext:r,hasPrev:i,isEmbedded:a,isPresenter:o,isPresenterAvailable:l,next:u,prev:d,total:m,enterPresenter:_,exitPresenter:v}=W(),{brush:y,drawingEnabled:S}=dt(),C=rt.smaller(`md`),{isFullscreen:w,toggle:T}=Ie,ee=D();function E(){ee.value&&He.value&&ee.value.contains(He.value)&&He.value.blur()}let te=x(()=>t.persist?`text-$slidev-controls-foreground bg-transparent`:`rounded-md bg-main shadow-xl border border-main`),ne=b();return(e,t)=>(F(),h(`nav`,{ref_key:`root`,ref:ee,class:`flex flex-col`},[f(`div`,{class:A([`flex flex-wrap-reverse text-xl gap-0.5 p-1 lg:p-2`,te.value]),onMouseleave:E},[p(a)?N(``,!0):(F(),k(G,{key:0,title:p(w)?`Close fullscreen`:`Enter fullscreen`,onClick:p(T)},{default:s(()=>[p(w)?(F(),h(`div`,fi)):(F(),h(`div`,pi))]),_:1},8,[`title`,`onClick`])),c(G,{disabled:!p(i),title:`Go to previous slide`,onClick:p(d)},{default:s(()=>[...t[6]||=[f(`div`,{class:`i-carbon:arrow-left`},null,-1)]]),_:1},8,[`disabled`,`onClick`]),c(G,{disabled:!p(r),title:`Go to next slide`,onClick:p(u)},{default:s(()=>[...t[7]||=[f(`div`,{class:`i-carbon:arrow-right`},null,-1)]]),_:1},8,[`disabled`,`onClick`]),p(a)?N(``,!0):(F(),k(G,{key:1,title:`Show slide overview`,onClick:t[0]||=e=>p(Qe)()},{default:s(()=>[...t[8]||=[f(`div`,{class:`i-carbon:apps`},null,-1)]]),_:1})),p(Ke)?N(``,!0):(F(),k(G,{key:2,title:p(Ge)?`Switch to light mode theme`:`Switch to dark mode theme`,onClick:t[1]||=e=>p(Be)()},{default:s(()=>[p(Ge)?(F(),h(`div`,mi)):(F(),h(`div`,hi))]),_:1},8,[`title`])),c(gt),p(a)?N(``,!0):(F(),h(O,{key:3},[!p(o)&&!p(C)&&ne.value?(F(),h(O,{key:0},[c(p(ne)),c(gt)],64)):N(``,!0),p(o)?(F(),k(G,{key:1,title:p(Fe)===`laser`?p(Le)?`Disable laser pointer`:`Enable laser pointer`:p(Le)?`Hide presenter cursor`:`Show presenter cursor`,active:p(Le),onClick:t[2]||=e=>p(Oe)()},{default:s(()=>[p(Fe)===`laser`?(F(),h(O,{key:0},[p(Le)?(F(),h(`div`,gi)):(F(),h(`div`,_i))],64)):(F(),h(O,{key:1},[p(Le)?(F(),h(`div`,vi)):(F(),h(`div`,yi))],64))]),_:1},8,[`title`,`active`])):N(``,!0),!p(I).drawings.presenterOnly||p(o)?(F(),k(G,{key:2,class:`relative`,title:p(S)?`Hide drawing toolbar`:`Show drawing toolbar`,active:p(S),onClick:t[3]||=e=>S.value=!p(S)},{default:s(()=>[t[9]||=f(`div`,{class:`i-carbon:pen`},null,-1),p(S)?(F(),h(`div`,{key:0,class:`absolute left-1 right-1 bottom-0 h-0.7 rounded-full`,style:g({background:p(y).color})},null,4)):N(``,!0)]),_:1},8,[`title`,`active`])):N(``,!0),c(gt),p(o)?(F(),k(G,{key:3,title:`Play Mode`,onClick:p(v)},{default:s(()=>[...t[10]||=[f(`div`,{class:`i-carbon:presentation-file`},null,-1)]]),_:1},8,[`onClick`])):N(``,!0),p(l)?(F(),k(G,{key:4,title:`Presenter Mode`,onClick:p(_)},{default:s(()=>[...t[11]||=[f(`div`,{class:`i-carbon:user-speaker`},null,-1)]]),_:1},8,[`onClick`])):N(``,!0),N(``,!0)],64)),(F(),h(O,{key:4},[p(I).download?(F(),k(G,{key:0,title:`Download as PDF`,onClick:p(Je)},{default:s(()=>[...t[13]||=[f(`div`,{class:`i-carbon:download`},null,-1)]]),_:1},8,[`onClick`])):N(``,!0)],64)),N(``,!0),!p(o)&&p(I).info&&!p(a)?(F(),k(G,{key:6,title:`Show info`,onClick:t[5]||=e=>Re.value=!p(Re)},{default:s(()=>[...t[15]||=[f(`div`,{class:`i-carbon:information`},null,-1)]]),_:1})):N(``,!0),p(a)?N(``,!0):(F(),h(O,{key:7},[c(gt),p(o)?(F(),k(G,{key:0,title:`Toggle Presenter Layout`,class:`aspect-ratio-initial flex items-center`,onClick:p(ze)},{default:s(()=>[t[16]||=f(`div`,{class:`i-carbon:template`},null,-1),ie(` `+M(p(Ee)),1)]),_:1},8,[`onClick`])):N(``,!0),(F(),k(di,{key:1})),c(Lr,null,{button:s(({value:e})=>[c(G,{title:`More Options`,active:e},{default:s(()=>[t[17]||=f(`div`,{class:`i-carbon:settings-adjust`},null,-1),p(Te)?(F(),h(`div`,bi)):N(``,!0)]),_:1},8,[`active`])]),menu:s(()=>[c(ni)]),_:1})],64)),p(a)?N(``,!0):(F(),k(gt,{key:8})),f(`div`,xi,[f(`span`,Si,M(p(n)),1),f(`span`,Ci,` / `+M(p(m)),1)]),c(p(Fr))],34)],512))}}),Ti=new Set,Ei=new Set,Di=/\/$/;function Oi(e){return e.startsWith(`http`)||e.startsWith(`//`)?e:`${`/`.replace(Di,``)}${e.startsWith(`/`)?e:`/${e}`}`}function ki(e){let t=Oi(e);if(Ti.has(t)||Ei.has(t))return;Ei.add(t);let n=new Image;n.onload=()=>{Ei.delete(t),Ti.add(t)},n.onerror=()=>{Ei.delete(t)},n.src=t}function Ai(e){let t=e.meta?.slide?.images;if(t?.length)for(let e of t)ki(e)}function ji(e,t,n,r){let i=I.preloadImages;if(i===!1)return;let a=typeof i==`object`&&i?.ahead||3;u(()=>{let i=e.value,o=r.value;if(!i||!o?.length)return;Ai(i),Ai(t.value),Ai(n.value);let s=i.no-1;for(let e=1;e<=a;e++){let t=s+e;t{let t=r.value,n=setTimeout(()=>{if(t?.length)for(let e of t)Ai(e)},3e3);e(()=>clearTimeout(n))})}function Mi(){let e=fe(),t=D(!1),n,r,i=typeof document<`u`&&`startViewTransition`in document;return e.beforeResolve((e,a)=>{let o=Ue(a.params.no)?.meta,s=Ue(e.params.no)?.meta,c=o?.slide?.no,l=s?.slide?.no;if((c!=null&&l!=null&&c!==l&&((c{n=e,r=t}),d,f=new Promise(e=>d=e);return setTimeout(()=>{document.startViewTransition(()=>(d(),u))},50),f}),i&&e.afterEach(()=>{n?.(),r?.()}),t}var Ni=[`data-drag-id`],Q=10,$=10,Pi=`absolute border border-gray bg-gray dark:border-gray-500 dark:bg-gray-800 bg-opacity-30 `,Fi=20,Ii=j({__name:`DragControl`,props:{data:{}},setup(e){let{dragId:n,zoom:r,autoHeight:i,x0:a,y0:o,width:s,height:c,rotate:l,isArrow:d}=e.data,m=ee(We,D(1)),_=x(()=>m.value*r.value),{left:v,top:y}=$e(),b=d?-1/0:40,S=x(()=>l.value*Math.PI/180),C=x(()=>Math.sin(S.value)),w=x(()=>Math.cos(S.value)),T=x(()=>s.value*w.value+c.value*C.value),E=x(()=>s.value*C.value+c.value*w.value),te=x(()=>a.value-T.value/2),ne=x(()=>o.value-E.value/2),re=x(()=>a.value+T.value/2),k=x(()=>o.value+E.value/2),j=x(()=>d&&s.value<0),ie=x(()=>d&&c.value<0),M=null;function I(e){if(e.buttons!==1)return;e.preventDefault(),e.stopPropagation();let t=e.target.getBoundingClientRect(),n=s.value*w.value-c.value*C.value,r=s.value*C.value+c.value*w.value,i=s.value*w.value+c.value*C.value,u=-s.value*C.value+c.value*w.value;M={x0:a.value,y0:o.value,width:s.value,height:c.value,rotate:l.value,dx0:e.clientX-(t.left+t.right)/2,dy0:e.clientY-(t.top+t.bottom)/2,ltx:a.value-n/2,lty:o.value-r/2,rtx:a.value+i/2,rty:o.value-u/2,lbx:a.value-i/2,lby:o.value+u/2,rbx:a.value+n/2,rby:o.value+r/2},e.currentTarget.setPointerCapture(e.pointerId)}function ce(e){if(!M||e.buttons!==1)return;e.preventDefault(),e.stopPropagation();let t=(e.clientX-v.value-M.dx0)/_.value,n=(e.clientY-y.value-M.dy0)/_.value;a.value=ae(t,-T.value/2+$,oe.value+T.value/2-$),o.value=ae(n,-E.value/2+$,se.value+E.value/2-$)}function ue(e){M&&=(e.preventDefault(),e.stopPropagation(),null)}function de(e,t){return{onPointerdown:I,onPointermove:n=>{if(!M||n.buttons!==1)return;n.preventDefault(),n.stopPropagation();let r=(n.clientX-v.value)/_.value,i=(n.clientY-y.value)/_.value,{ltx:l,lty:u,rtx:d,rty:f,lbx:p,lby:m,rbx:h,rby:g}=M,x=M.width/M.height,S=Math.max(b,b*x);function T(e,t){if(n.shiftKey){let n=Math.max(e,t*x,S);return{w:n,h:n/x}}else return{w:Math.max(e,b),h:Math.max(t,b)}}if(e)if(t){let{w:e,h:t}=T((h-r)*w.value+(g-i)*C.value,-(h-r)*C.value+(g-i)*w.value);r=h-e*w.value+t*C.value,i=g-e*C.value-t*w.value}else{let{w:e,h:t}=T((d-r)*w.value-(i-f)*C.value,(d-r)*C.value+(i-f)*w.value);r=d-e*w.value-t*C.value,i=f-e*C.value+t*w.value}else if(t){let{w:e,h:t}=T((r-p)*w.value-(m-i)*C.value,(r-p)*C.value+(m-i)*w.value);r=p+e*w.value+t*C.value,i=m+e*C.value-t*w.value}else{let{w:e,h:t}=T((r-l)*w.value+(i-u)*C.value,-(r-l)*C.value+(i-u)*w.value);r=l+e*w.value-t*C.value,i=u+e*C.value+t*w.value}e?t?(a.value=(r+h)/2,o.value=(i+g)/2,s.value=(h-r)*w.value+(g-i)*C.value,c.value=-(h-r)*C.value+(g-i)*w.value):(a.value=(r+d)/2,o.value=(i+f)/2,s.value=(d-r)*w.value-(i-f)*C.value,c.value=(d-r)*C.value+(i-f)*w.value):t?(a.value=(r+p)/2,o.value=(i+m)/2,s.value=(r-p)*w.value-(m-i)*C.value,c.value=(r-p)*C.value+(m-i)*w.value):(a.value=(r+l)/2,o.value=(i+u)/2,s.value=(r-l)*w.value+(i-u)*C.value,c.value=-(r-l)*C.value+(i-u)*w.value)},onPointerup:ue,style:{width:`${Q}px`,height:`${Q}px`,margin:`-${Q/2}px`,left:e===j.value?void 0:`0`,right:e===j.value?`0`:void 0,top:t===ie.value?void 0:`0`,bottom:t===ie.value?`0`:void 0,cursor:d?`move`:+e+ +t==1?`nesw-resize`:`nwse-resize`,borderRadius:d?`50%`:void 0},class:Pi}}function fe(e){return{onPointerdown:I,onPointermove:t=>{if(!M||t.buttons!==1)return;t.preventDefault(),t.stopPropagation();let n=(t.clientX-v.value)/_.value,r=(t.clientY-y.value)/_.value,{ltx:i,lty:l,rtx:u,rty:d,lbx:f,lby:p,rbx:m,rby:h}=M;if(e===`l`){let e=(u+m)/2,t=(d+h)/2;s.value=Math.max((e-n)*w.value+(t-r)*C.value,b),a.value=e-s.value*w.value/2,o.value=t-s.value*C.value/2}else if(e===`r`){let e=(i+f)/2,t=(l+p)/2;s.value=Math.max((n-e)*w.value+(r-t)*C.value,b),a.value=e+s.value*w.value/2,o.value=t+s.value*C.value/2}else if(e===`t`){let e=(f+m)/2,t=(p+h)/2;c.value=Math.max((t-r)*w.value-(e-n)*C.value,b),a.value=e+c.value*C.value/2,o.value=t-c.value*w.value/2}else if(e===`b`){let e=(i+u)/2,t=(l+d)/2;c.value=Math.max((r-t)*w.value-(n-e)*C.value,b),a.value=e-c.value*C.value/2,o.value=t+c.value*w.value/2}},onPointerup:ue,style:{width:`${Q}px`,height:`${Q}px`,margin:`-${Q/2}px`,left:e===`l`?`0`:e===`r`?`100%`:`50%`,top:e===`t`?`0`:e===`b`?`100%`:`50%`,cursor:`lr`.includes(e)?`ew-resize`:`ns-resize`,borderRadius:`50%`},class:Pi}}function pe(){return{onPointerdown:I,onPointermove:e=>{if(!M||e.buttons!==1)return;e.preventDefault(),e.stopPropagation();let t=(e.clientX-v.value-M.dx0)/_.value-Q/4,n=(e.clientY-y.value-M.dy0)/_.value-Q/4,r=Math.atan2(n-o.value,t-a.value)*180/Math.PI+90;for(let e of[0,90,180,270,360])if(Math.abs(r-e)<5){r=e%360;break}l.value=r},onPointerup:ue,style:{width:`${Q}px`,height:`${Q}px`,margin:`-${Q/2}px`,left:`50%`,top:`-20px`,cursor:`grab`,borderRadius:`50%`},class:Pi}}let me={immediate:!1,immediateCallback:!1},he=le(()=>{re.value<=$||a.value--},Fi,me),L=le(()=>{te.value>=oe.value-$||a.value++},Fi,me),ge=le(()=>{k.value<=$||o.value--},Fi,me),_e=le(()=>{ne.value>=se.value-$||o.value++},Fi,me);return u(()=>{function e(e,t){Me[e].value?t.resume():t.pause()}e(`left`,he),e(`right`,L),e(`up`,ge),e(`down`,_e)}),(e,u)=>Number.isFinite(p(a))?(F(),h(`div`,{key:0,id:`drag-control-container`,"data-drag-id":p(n),style:g({position:`absolute`,zIndex:100,left:`${p(r)*(p(a)-Math.abs(p(s))/2)}px`,top:`${p(r)*(p(o)-Math.abs(p(c))/2)}px`,width:`${p(r)*Math.abs(p(s))}px`,height:`${p(r)*Math.abs(p(c))}px`,transformOrigin:`center center`,transform:`rotate(${p(l)}deg)`}),onPointerdown:I,onPointermove:ce,onPointerup:ue},[f(`div`,{class:A([`absolute inset-0 z-nav dark:b-gray-400`,p(d)?``:`b b-dark`])},[p(i)?N(``,!0):(F(),h(O,{key:0},[f(`div`,P(t(de(!0,!0))),null,16),f(`div`,P(t(de(!1,!1))),null,16),p(d)?N(``,!0):(F(),h(O,{key:0},[f(`div`,P(t(de(!0,!1))),null,16),f(`div`,P(t(de(!1,!0))),null,16)],64))],64)),p(d)?N(``,!0):(F(),h(O,{key:1},[f(`div`,P(t(fe(`l`))),null,16),f(`div`,P(t(fe(`r`))),null,16),p(i)?N(``,!0):(F(),h(O,{key:0},[f(`div`,P(t(fe(`t`))),null,16),f(`div`,P(t(fe(`b`))),null,16)],64)),f(`div`,P(t(pe())),null,16),f(`div`,{class:`absolute -top-15px w-0 b b-dashed b-dark dark:b-gray-400`,style:g({left:`calc(50% - 1px)`,height:p(i)?`14px`:`10px`})},null,4)],64))],2)],44,Ni)):N(``,!0)}}),Li=Se(j({__name:`SlidesShow`,props:{renderContext:{}},setup(t){let{currentSlideRoute:r,currentTransition:i,getPrimaryClicks:a,prevRoute:d,nextRoute:f,slides:m,isPrintMode:g,isPrintWithClicks:_,clicksDirection:v,printRange:y}=W();function S(e){e.meta.preload!==!1&&(e.meta.__preloaded=!0,e.load())}u(()=>{S(r.value),S(d.value),S(f.value)}),u(e=>{let t=m.value,n=setTimeout(()=>{t.forEach(S)},3e3);e(()=>clearTimeout(n))}),ji(r,d,f,m);let w=Mi(),T=b();qe(()=>import(`./DrawingLayer-CYp0bsc-.js`).then(e=>T.value=e.default),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]));let ee=x(()=>g.value?y.value.map(e=>m.value[e-1]):m.value.filter(e=>e.meta?.__preloaded||e===r.value));function E(){je.value=!0,C()}return(u,d)=>(F(),h(O,null,[c(p(ct)),(F(),k(n(p(w)&&!p(g)&&!p(je)&&!p(nt)?`div`:ne),o(p(je)||p(nt)||p(g)?{}:p(i),{id:`slideshow`,tag:`div`,class:{"slidev-nav-go-forward":p(v)>0,"slidev-nav-go-backward":p(v)<0},onAfterLeave:E}),{default:s(()=>[(F(!0),h(O,null,l(ee.value,n=>e((F(),k(ft,{key:n.no,"clicks-context":p(g)&&!p(_)?p(xe)(n,p(Ve)):p(a)(n),route:n,"render-context":t.renderContext},null,8,[`clicks-context`,`route`,`render-context`])),[[re,n===p(r)]])),128))]),_:1},16,[`class`])),p(it)?(F(),k(Ii,{key:0,data:p(it)},null,8,[`data`])):N(``,!0),c(p(ut)),T.value?(F(),k(p(T),{key:1})):N(``,!0)],64))}}),[[`__scopeId`,`data-v-fee5c613`]]),Ri=Object.assign({}),zi=Object.assign({}),Bi=[Object.values(Ri)[0],Object.values(zi)[0]].filter(Boolean);function Vi(){let{go:e,goFirst:t,goLast:n,next:r,nextSlide:i,prev:a,prevSlide:o}=W(),{drawingEnabled:s}=dt(),{escape:c,space:l,shift:u,left:d,right:f,up:p,down:m,enter:h,d:g,g:_,o:v,"`":y}=Me,b={next:r,prev:a,nextSlide:i,prevSlide:o,go:e,goFirst:t,goLast:n,downloadPDF:Je,toggleDark:Be,toggleOverview:Qe,toggleDrawing:()=>s.value=!s.value,escapeOverview:()=>B.value=!1,showGotoDialog:()=>z.value=!z.value},x=R(L(B),L(it)),S=[{name:`next_space`,key:R(l,L(u)),fn:r,autoRepeat:!0},{name:`prev_space`,key:R(l,u),fn:a,autoRepeat:!0},{name:`next_right`,key:R(f,L(u),x),fn:r,autoRepeat:!0},{name:`prev_left`,key:R(d,L(u),x),fn:a,autoRepeat:!0},{name:`next_page_key`,key:`pageDown`,fn:r,autoRepeat:!0},{name:`prev_page_key`,key:`pageUp`,fn:a,autoRepeat:!0},{name:`next_down`,key:R(m,x),fn:i,autoRepeat:!0},{name:`prev_up`,key:R(p,x),fn:o,autoRepeat:!0},{name:`next_shift`,key:R(f,u),fn:i,autoRepeat:!0},{name:`prev_shift`,key:R(d,u),fn:o,autoRepeat:!0},{name:`toggle_dark`,key:R(g,L(s)),fn:Be},{name:`toggle_overview`,key:R(_e(v,y),L(s)),fn:Qe},{name:`hide_overview`,key:R(c,L(s)),fn:()=>B.value=!1},{name:`goto`,key:R(_,L(s)),fn:()=>z.value=!z.value},{name:`next_overview`,key:R(f,B),fn:xr},{name:`prev_overview`,key:R(d,B),fn:br},{name:`up_overview`,key:R(p,B),fn:Sr},{name:`down_overview`,key:R(m,B),fn:Cr},{name:`goto_from_overview`,key:R(h,B),fn:()=>{e(X.value),B.value=!1}}],C=new Set(S.map(e=>e.name));for(let e of Bi)S=e(b,S);if(S.filter(e=>e.name&&C.has(e.name)).length===0){let e=[`========== WARNING ==========`,`defineShortcutsSetup did not return any of the base shortcuts.`,`See https://sli.dev/custom/config-shortcuts.html for migration.`,`If it is intentional, return at least one shortcut with one of the base names (e.g. name:"goto").`].join(` + +`);alert(e),console.warn(e)}return S}function Hi(){let{isPrintMode:e}=W(),t=R(L(Ye),L(Ae),L(e),ke,L(Pe)),n=Vi();new Map(n.map(e=>[e.key,e])).forEach(e=>{e.fn&&r(e.key,e.fn,e.autoRepeat)}),i(`f`,()=>Ie.toggle());function r(e,n,r=!1){typeof e==`string`&&(e=Me[e]);let i=R(e,t),a=0,o,s=()=>{if(clearTimeout(o),!i.value){a=0;return}r&&(o=setTimeout(s,Math.max(1e3-a*250,150)),a++),n()};return d(i,s,{flush:`sync`})}function i(e,n){return ve(e,e=>{t.value&&(e.repeat||n())})}}export{Pr as a,gr as c,vt as d,_t as f,ei as i,Pt as l,Li as n,Mr as o,gt as p,wi as r,jr as s,Hi as t,Dt as u}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/useClicks-C2yK8i93.js b/docs/dist/assets/slidev/useClicks-C2yK8i93.js new file mode 100644 index 00000000..8bc157d2 --- /dev/null +++ b/docs/dist/assets/slidev/useClicks-C2yK8i93.js @@ -0,0 +1 @@ +import{L as e,R as t,Y as n,g as r,gt as i,lt as a,rt as o,ut as s}from"../modules/shiki-BmLmNVDB.js";import{c,r as l}from"../utils-T1it7q9-.js";function u(e){if(e===!1||e===`false`)return null;if(e==null||e===!0||e===`true`)return`+1`;if(typeof e==`string`&&`+-`.includes(e[0]))return e;let t=+e;return Number.isNaN(t)?(console.error(`Invalid "at" prop value: ${e}`),null):t<=0?(console.warn(`[Slidev] "at" prop value must be greater than 0, but got ${e}, has been set to 1`),1):t}function d(e){return Array.isArray(e)?[u(e[0]),u(e[1])]:null}function f(n,i=0,f){let p=a(!1),m=new Map,h=new Map,g={get current(){return l(+n.value,i,g.total)},set current(e){n.value=p.value?l(e,i,g.total):e},clicksStart:i,get relativeSizeMap(){return m},get maxMap(){return h},get isMounted(){return p.value},setup(){e(()=>{p.value=!0,h=s(h),o(n)||(g.current=n.value)}),t(()=>{p.value=!1,m=new Map,h=new Map})},calculateSince(e,t=1){let n=u(e);if(n==null)return null;let i,a,o;if(typeof n==`string`){let e=g.currentOffset,r=+n;i=e+r,a=e+r+t-1,o=r+t-1}else i=n,a=n+t-1,o=0;return{start:i,end:1/0,max:a,delta:o,currentOffset:r(()=>g.current-i),isCurrent:r(()=>g.current===i),isActive:r(()=>g.current>=i)}},calculateRange(e){let t=d(e);if(t==null)return null;let[n,i]=t,a,o,s;return typeof n==`string`?(a=g.currentOffset+ +n,s=+n):(a=n,s=0),typeof i==`string`?(o=a+ +i,s+=+i):o=i,{start:a,end:o,max:o,delta:s,currentOffset:r(()=>g.current-a),isCurrent:r(()=>g.current===a),isActive:r(()=>a<=g.current&&g.currenti(t),e=>{o.value=Math.max(e,r)}),f(o,r,e?.meta?.clicks)}export{p as n,u as r,f as t}; \ No newline at end of file diff --git a/docs/dist/assets/slidev/utils-ebkCohfA.js b/docs/dist/assets/slidev/utils-ebkCohfA.js deleted file mode 100644 index 1cf7378b..00000000 --- a/docs/dist/assets/slidev/utils-ebkCohfA.js +++ /dev/null @@ -1 +0,0 @@ -import{R as e,X as t,_ as n,_t as r,dt as i,it as a,ut as o,z as s}from"../modules/shiki-yoNnvMyB.js";function c(e,t,n){return Math.min(n,Math.max(t,e))}function l(...e){return d(e).reduce((e,t)=>e+t,0)}function u(e){return e??=[],Array.isArray(e)?e:[e]}function d(e){return u(e).flat(1)}function f(e){return Array.from(new Set(e))}function p(...e){let t,n,r;e.length===1?(t=0,r=1,[n]=e):[t,n,r=1]=e;let i=[],a=t;for(;at(e,n)).filter(m))}function g(e){if(e===!1||e===`false`)return null;if(e==null||e===!0||e===`true`)return`+1`;if(typeof e==`string`&&`+-`.includes(e[0]))return e;let t=+e;return Number.isNaN(t)?(console.error(`Invalid "at" prop value: ${e}`),null):t<=0?(console.warn(`[Slidev] "at" prop value must be greater than 0, but got ${e}, has been set to 1`),1):t}function _(e){return Array.isArray(e)?[g(e[0]),g(e[1])]:null}function v(t,r=0,u){let d=o(!1),f=new Map,p=new Map,m={get current(){return c(+t.value,r,m.total)},set current(e){t.value=d.value?c(e,r,m.total):e},clicksStart:r,get relativeSizeMap(){return f},get maxMap(){return p},get isMounted(){return d.value},setup(){e(()=>{d.value=!0,p=i(p),a(t)||(m.current=t.value)}),s(()=>{d.value=!1,f=new Map,p=new Map})},calculateSince(e,t=1){let r=g(e);if(r==null)return null;let i,a,o;if(typeof r==`string`){let e=m.currentOffset,n=+r;i=e+n,a=e+n+t-1,o=n+t-1}else i=r,a=r+t-1,o=0;return{start:i,end:1/0,max:a,delta:o,currentOffset:n(()=>m.current-i),isCurrent:n(()=>m.current===i),isActive:n(()=>m.current>=i)}},calculateRange(e){let t=_(e);if(t==null)return null;let[r,i]=t,a,o,s;return typeof r==`string`?(a=m.currentOffset+ +r,s=+r):(a=r,s=0),typeof i==`string`?(o=a+ +i,s+=+i):o=i,{start:a,end:o,max:o,delta:s,currentOffset:n(()=>m.current-a),isCurrent:n(()=>m.current===a),isActive:n(()=>a<=m.current&&m.currentr(n),e=>{a.value=Math.max(e,i)}),v(a,i,e?.meta?.clicks)}var b=/[a-z]/i;function x(e){if(typeof e==`number`)return{seconds:e,relative:!1};let t=e.startsWith(`+`);t&&(e=e.slice(1));let n=0;if(e.includes(`:`)){let t=e.split(`:`).map(Number),r=0,i=0,a=0;if(t.length===3)r=t[0],i=t[1],a=t[2];else if(t.length===2)i=t[0],a=t[1];else if(t.length===1)a=t[0];else throw TypeError(`Invalid timestamp format`);if(Number.isNaN(r)||Number.isNaN(i)||Number.isNaN(a))throw TypeError(`Invalid timestamp format`);n=(r||0)*3600+(i||0)*60+(a||0)}else if(!b.test(e))n=Number(e);else{let t={s:1,sec:1,secs:1,m:60,min:60,mins:60,h:3600,hr:3600,hrs:3600,hour:3600,hours:3600,day:86400,days:86400,week:604800,weeks:604800,month:2629746,months:2629746,year:31556952,years:31556952},r=/([\d.]+)([a-z]+)/gi,i=e.matchAll(r);if(i)for(let e of i){let r=Number(e[1]);if(Number.isNaN(r))throw TypeError(`Invalid timestamp value: ${e[1]}`);let i=e[2].toLowerCase();if(!(i in t))throw TypeError(`Invalid timestamp unit: ${i}`);n+=r*t[i]}let a=e.replace(r,``).trim();if(a)throw TypeError(`Unknown timestamp remaining: ${a}`)}return{seconds:n,relative:t}}function S(e,t){if(!t||t===`all`||t===`*`)return p(1,e+1);if(t===`none`)return[];let n=[];for(let r of t.split(/[,;]/g))if(!r.includes(`-`))n.push(+r);else{let[t,i]=r.split(`-`,2);n.push(...p(+t,i?+i+1:e+1))}return f(n).filter(t=>t<=e).sort((e,t)=>e-t)}export{g as a,p as c,y as i,u as l,x as n,c as o,v as r,h as s,S as t}; \ No newline at end of file diff --git a/docs/dist/assets/stateDiagram-FKBH27AD-wg29hInV.js b/docs/dist/assets/stateDiagram-FKBH27AD-wg29hInV.js new file mode 100644 index 00000000..b7b5e74d --- /dev/null +++ b/docs/dist/assets/stateDiagram-FKBH27AD-wg29hInV.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{I as t,T as n,c as r,x as i}from"./chunk-V7P66DNM-D246Sefn.js";import{A as a,C as o,c as s,l as c}from"./chunk-Q52JI7PB-BeSPinqD.js";import"./chunk-PLCLPJVV-rGjVDjLw.js";import"./chunk-GTILCTU2-D-9HFTK6.js";import"./chunk-7TFACZ55-BO7C1qvL.js";import{v as l}from"./chunk-BSZA5ISF-LqNHBHyp.js";import"./chunk-SZ5Y56Q4-Bki2Aicm.js";import"./chunk-YSJUE5HW-eH4JtoEG.js";import"./chunk-HQMLCRZ6-HgqAiHMi.js";import"./chunk-RTI7CJYH-CrTK6TD7.js";import"./chunk-TRQY2T3P-DxnI4jXA.js";import"./chunk-SNQTKDUU-CQmHT9KX.js";import{t as u}from"./chunk-XAKTCX7R-ChjAedyW.js";import"./chunk-7723GVCQ-CfHgq7qP.js";import"./chunk-KEUPHFFI-DMlFzrf2.js";import{t as d}from"./chunk-T5XCKZAJ-Dtmpyu6x.js";import{i as f,n as p,t as m}from"./chunk-L44QOBYK-BUo4Kp3w.js";var h=e(e=>e.append(`circle`).attr(`class`,`start-state`).attr(`r`,o().state.sizeUnit).attr(`cx`,o().state.padding+o().state.sizeUnit).attr(`cy`,o().state.padding+o().state.sizeUnit),`drawStartState`),g=e(e=>e.append(`line`).style(`stroke`,`grey`).style(`stroke-dasharray`,`3`).attr(`x1`,o().state.textHeight).attr(`class`,`divider`).attr(`x2`,o().state.textHeight*2).attr(`y1`,0).attr(`y2`,0),`drawDivider`),_=e((e,t)=>{let n=e.append(`text`).attr(`x`,2*o().state.padding).attr(`y`,o().state.textHeight+2*o().state.padding).attr(`font-size`,o().state.fontSize).attr(`class`,`state-title`).text(t.id),r=n.node().getBBox();return e.insert(`rect`,`:first-child`).attr(`x`,o().state.padding).attr(`y`,o().state.padding).attr(`width`,r.width+2*o().state.padding).attr(`height`,r.height+2*o().state.padding).attr(`rx`,o().state.radius),n},`drawSimpleState`),v=e((t,n)=>{let r=e(function(e,t,n){let r=e.append(`tspan`).attr(`x`,2*o().state.padding).text(t);n||r.attr(`dy`,o().state.textHeight)},`addTspan`),i=t.append(`text`).attr(`x`,2*o().state.padding).attr(`y`,o().state.textHeight+1.3*o().state.padding).attr(`font-size`,o().state.fontSize).attr(`class`,`state-title`).text(n.descriptions[0]).node().getBBox(),a=i.height,s=t.append(`text`).attr(`x`,o().state.padding).attr(`y`,a+o().state.padding*.4+o().state.dividerMargin+o().state.textHeight).attr(`class`,`state-description`),c=!0,l=!0;n.descriptions.forEach(function(e){c||(r(s,e,l),l=!1),c=!1});let u=t.append(`line`).attr(`x1`,o().state.padding).attr(`y1`,o().state.padding+a+o().state.dividerMargin/2).attr(`y2`,o().state.padding+a+o().state.dividerMargin/2).attr(`class`,`descr-divider`),d=s.node().getBBox(),f=Math.max(d.width,i.width);return u.attr(`x2`,f+3*o().state.padding),t.insert(`rect`,`:first-child`).attr(`x`,o().state.padding).attr(`y`,o().state.padding).attr(`width`,f+2*o().state.padding).attr(`height`,d.height+a+2*o().state.padding).attr(`rx`,o().state.radius),t},`drawDescrState`),y=e((e,t,n)=>{let r=o().state.padding,i=2*o().state.padding,a=e.node().getBBox(),s=a.width,c=a.x,l=e.append(`text`).attr(`x`,0).attr(`y`,o().state.titleShift).attr(`font-size`,o().state.fontSize).attr(`class`,`state-title`).text(t.id),u=l.node().getBBox().width+i,d=Math.max(u,s);d===s&&(d+=i);let f,p=e.node().getBBox();t.doc,f=c-r,u>s&&(f=(s-d)/2+r),Math.abs(c-p.x)s&&(f=c-(u-s)/2);let m=1-o().state.textHeight;return e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,m).attr(`class`,n?`alt-composit`:`composit`).attr(`width`,d).attr(`height`,p.height+o().state.textHeight+o().state.titleShift+1).attr(`rx`,`0`),l.attr(`x`,f+r),u<=s&&l.attr(`x`,c+(d-i)/2-u/2+r),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,o().state.titleShift-o().state.textHeight-o().state.padding).attr(`width`,d).attr(`height`,o().state.textHeight*3).attr(`rx`,o().state.radius),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,o().state.titleShift-o().state.textHeight-o().state.padding).attr(`width`,d).attr(`height`,p.height+3+2*o().state.textHeight).attr(`rx`,o().state.radius),e},`addTitleAndBox`),b=e(e=>(e.append(`circle`).attr(`class`,`end-state-outer`).attr(`r`,o().state.sizeUnit+o().state.miniPadding).attr(`cx`,o().state.padding+o().state.sizeUnit+o().state.miniPadding).attr(`cy`,o().state.padding+o().state.sizeUnit+o().state.miniPadding),e.append(`circle`).attr(`class`,`end-state-inner`).attr(`r`,o().state.sizeUnit).attr(`cx`,o().state.padding+o().state.sizeUnit+2).attr(`cy`,o().state.padding+o().state.sizeUnit+2)),`drawEndState`),x=e((e,t)=>{let n=o().state.forkWidth,r=o().state.forkHeight;if(t.parentId){let e=n;n=r,r=e}return e.append(`rect`).style(`stroke`,`black`).style(`fill`,`black`).attr(`width`,n).attr(`height`,r).attr(`x`,o().state.padding).attr(`y`,o().state.padding)},`drawForkJoinState`),S=e((e,t,n,r)=>{let i=0,a=r.append(`text`);a.style(`text-anchor`,`start`),a.attr(`class`,`noteText`);let c=e.replace(/\r\n/g,`
    `);c=c.replace(/\n/g,`
    `);let l=c.split(s.lineBreakRegex),u=1.25*o().state.noteMargin;for(let e of l){let r=e.trim();if(r.length>0){let e=a.append(`tspan`);if(e.text(r),u===0){let t=e.node().getBBox();u+=t.height}i+=u,e.attr(`x`,t+o().state.noteMargin),e.attr(`y`,n+i+1.25*o().state.noteMargin)}}return{textWidth:a.node().getBBox().width,textHeight:i}},`_drawLongText`),C=e((e,t)=>{t.attr(`class`,`state-note`);let n=t.append(`rect`).attr(`x`,0).attr(`y`,o().state.padding),{textWidth:r,textHeight:i}=S(e,0,0,t.append(`g`));return n.attr(`height`,i+2*o().state.noteMargin),n.attr(`width`,r+o().state.noteMargin*2),n},`drawNote`),w=e(function(e,t){let n=t.id,r={id:n,label:t.id,width:0,height:0},i=e.append(`g`).attr(`id`,n).attr(`class`,`stateGroup`);t.type===`start`&&h(i),t.type===`end`&&b(i),(t.type===`fork`||t.type===`join`)&&x(i,t),t.type===`note`&&C(t.note.text,i),t.type===`divider`&&g(i),t.type==="default"&&t.descriptions.length===0&&_(i,t),t.type==="default"&&t.descriptions.length>0&&v(i,t);let a=i.node().getBBox();return r.width=a.width+2*o().state.padding,r.height=a.height+2*o().state.padding,r},`drawState`),T=0,E=e(function(t,c,u){let d=e(function(e){switch(e){case m.relationType.AGGREGATION:return`aggregation`;case m.relationType.EXTENSION:return`extension`;case m.relationType.COMPOSITION:return`composition`;case m.relationType.DEPENDENCY:return`dependency`}},`getRelationType`);c.points=c.points.filter(e=>!Number.isNaN(e.y));let f=c.points,p=i().x(function(e){return e.x}).y(function(e){return e.y}).curve(r),h=t.append(`path`).attr(`d`,p(f)).attr(`id`,`edge`+T).attr(`class`,`transition`),g=``;if(o().state.arrowMarkerAbsolute&&(g=a(!0)),h.attr(`marker-end`,`url(`+g+`#`+d(m.relationType.DEPENDENCY)+`End)`),u.title!==void 0){let e=t.append(`g`).attr(`class`,`stateLabel`),{x:r,y:i}=l.calcLabelPosition(c.points),a=s.getRows(u.title),d=0,f=[],p=0,m=0;for(let t=0;t<=a.length;t++){let o=e.append(`text`).attr(`text-anchor`,`middle`).text(a[t]).attr(`x`,r).attr(`y`,i+d),s=o.node().getBBox();p=Math.max(p,s.width),m=Math.min(m,s.x),n.info(s.x,r,i+d),d===0&&(d=o.node().getBBox().height,n.info(`Title height`,d,i)),f.push(o)}let h=d*a.length;if(a.length>1){let e=(a.length-1)*d*.5;f.forEach((t,n)=>t.attr(`y`,i+n*d-e)),h=d*a.length}let g=e.node().getBBox();e.insert(`rect`,`:first-child`).attr(`class`,`box`).attr(`x`,r-p/2-o().state.padding/2).attr(`y`,i-h/2-o().state.padding/2-3.5).attr(`width`,p+o().state.padding).attr(`height`,h+o().state.padding),n.info(g)}T++},`drawEdge`),D,O={},k=e(function(){},`setConf`),A=e(function(e){e.append(`defs`).append(`marker`).attr(`id`,`dependencyEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`insertMarkers`),j=e(function(e,r,i,a){D=o().state;let s=o().securityLevel,l;s===`sandbox`&&(l=t(`#i`+r));let u=t(s===`sandbox`?l.nodes()[0].contentDocument.body:`body`),d=s===`sandbox`?l.nodes()[0].contentDocument:document;n.debug(`Rendering diagram `+e);let f=u.select(`[id='${r}']`);A(f),N(a.db.getRootDoc(),f.append(`g`).attr(`id`,r+`-root`),void 0,!1,u,d,a);let p=D.padding,m=f.node().getBBox(),h=m.width+p*2,g=m.height+p*2;c(f,g,h*1.75,D.useMaxWidth),f.attr(`viewBox`,`${m.x-D.padding} ${m.y-D.padding} `+h+` `+g)},`draw`),M=e(e=>e?e.length*D.fontSizeFactor:1,`getLabelWidth`),N=e((e,t,r,i,a,o,c)=>{let l=new u({compound:!0,multigraph:!0}),f,p=!0;for(f=0;f{let t=e.parentElement,n=0,r=0;t&&(t.parentElement&&(n=t.parentElement.getBBox().width),r=parseInt(t.getAttribute(`data-x-shift`),10),Number.isNaN(r)&&(r=0)),e.setAttribute(`x1`,0-r+8),e.setAttribute(`x2`,n-r-8)})):n.debug(`No Node `+e+`: `+JSON.stringify(l.node(e)))});let b=v.getBBox();l.edges().forEach(function(e){e!==void 0&&l.edge(e)!==void 0&&(n.debug(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(l.edge(e))),E(t,l.edge(e),l.edge(e).relation))}),b=v.getBBox();let x={id:r||`root`,label:r||`root`,width:0,height:0};return x.width=b.width+2*D.padding,x.height=b.height+2*D.padding,n.debug(`Doc rendered`,x,l),x},`renderDoc`),P={parser:p,get db(){return new m(1)},renderer:{setConf:k,draw:j},styles:f,init:e(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{P as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/stateDiagram-v2-PT3EUVB6-CnIolAzq.js b/docs/dist/assets/stateDiagram-v2-PT3EUVB6-CnIolAzq.js new file mode 100644 index 00000000..5258bb15 --- /dev/null +++ b/docs/dist/assets/stateDiagram-v2-PT3EUVB6-CnIolAzq.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import"./chunk-V7P66DNM-D246Sefn.js";import"./chunk-Q52JI7PB-BeSPinqD.js";import"./chunk-PLCLPJVV-rGjVDjLw.js";import"./chunk-GTILCTU2-D-9HFTK6.js";import"./chunk-7TFACZ55-BO7C1qvL.js";import"./chunk-BSZA5ISF-LqNHBHyp.js";import"./chunk-SZ5Y56Q4-Bki2Aicm.js";import"./chunk-YSJUE5HW-eH4JtoEG.js";import"./chunk-HQMLCRZ6-HgqAiHMi.js";import"./chunk-RTI7CJYH-CrTK6TD7.js";import"./chunk-TRQY2T3P-DxnI4jXA.js";import"./chunk-SNQTKDUU-CQmHT9KX.js";import"./chunk-7723GVCQ-CfHgq7qP.js";import"./chunk-KEUPHFFI-DMlFzrf2.js";import{i as t,n,r,t as i}from"./chunk-L44QOBYK-BUo4Kp3w.js";var a={parser:n,get db(){return new i(2)},renderer:r,styles:t,init:e(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/timeline-definition-VWZII4OX-BKomOEmI.js b/docs/dist/assets/timeline-definition-VWZII4OX-BKomOEmI.js new file mode 100644 index 00000000..c7a625ae --- /dev/null +++ b/docs/dist/assets/timeline-definition-VWZII4OX-BKomOEmI.js @@ -0,0 +1,120 @@ +import{n as e,r as t}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{I as n,T as r,n as i}from"./chunk-V7P66DNM-D246Sefn.js";import{C as a,N as o,P as s,S as c,d as l,et as u,o as d,s as f}from"./chunk-Q52JI7PB-BeSPinqD.js";import{t as p}from"./chunk-PUIB63ON-iBBh92CL.js";import"./chunk-7TFACZ55-BO7C1qvL.js";import{h as m}from"./chunk-BSZA5ISF-LqNHBHyp.js";var h=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,11,13,14,15,17,19,20,23,24],r=[1,12],i=[1,13],a=[1,14],o=[1,15],s=[1,16],c=[1,19],l=[1,20],u={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:`error`,6:`EOF`,7:`timeline`,8:`timeline_lr`,9:`timeline_td`,11:`SPACE`,13:`NEWLINE`,14:`title`,15:`acc_title`,16:`acc_title_value`,17:`acc_descr`,18:`acc_descr_value`,19:`acc_descr_multiline_value`,20:`section`,23:`period`,24:`event`},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 3:r.setDirection(`LR`);break;case 4:r.setDirection(`TD`);break;case 5:this.$=[];break;case 6:a[s-1].push(a[s]),this.$=a[s-1];break;case 7:case 8:this.$=a[s];break;case 9:case 10:this.$=[];break;case 11:r.getCommonDb().setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:this.$=a[s].trim(),r.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[s].trim(),r.getCommonDb().setAccDescription(this.$);break;case 15:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 18:r.addTask(a[s],0,``),this.$=a[s];break;case 19:r.addEvent(a[s].substr(2)),this.$=a[s];break}},`anonymous`),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(n,[2,5],{5:6}),e(n,[2,2]),e(n,[2,3]),e(n,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:r,15:i,17:a,19:o,20:s,21:17,22:18,23:c,24:l},e(n,[2,10],{1:[2,1]}),e(n,[2,6]),{12:21,14:r,15:i,17:a,19:o,20:s,21:17,22:18,23:c,24:l},e(n,[2,8]),e(n,[2,9]),e(n,[2,11]),{16:[1,22]},{18:[1,23]},e(n,[2,14]),e(n,[2,15]),e(n,[2,16]),e(n,[2,17]),e(n,[2,18]),e(n,[2,19]),e(n,[2,7]),e(n,[2,12]),e(n,[2,13])],defaultActions:{},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};u.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:t(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t(function(){return this.next()||this.lex()},`lex`),begin:t(function(e){this.conditionStack.push(e)},`begin`),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t(function(e){this.begin(e)},`pushState`),stateStackSize:t(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin(`acc_title`),15;case 10:return this.popState(),`acc_title_value`;case 11:return this.begin(`acc_descr`),17;case 12:return this.popState(),`acc_descr_value`;case 13:this.begin(`acc_descr_multiline`);break;case 14:this.popState();break;case 15:return`acc_descr_multiline_value`;case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return`INVALID`}},`anonymous`),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}}})();function d(){this.yy={}}return t(d,`Parser`),d.prototype=u,u.Parser=d,new d})();h.parser=h;var g=h,_={};e(_,{addEvent:()=>M,addSection:()=>O,addTask:()=>j,addTaskOrg:()=>N,clear:()=>T,default:()=>ee,getCommonDb:()=>w,getDirection:()=>D,getSections:()=>k,getTasks:()=>A,setDirection:()=>E});var v=``,y=0,b=`LR`,x=[],S=[],C=[],w=t(()=>f,`getCommonDb`),T=t(function(){x.length=0,S.length=0,v=``,C.length=0,b=`LR`,d()},`clear`),E=t(function(e){b=e},`setDirection`),D=t(function(){return b},`getDirection`),O=t(function(e){v=e,x.push(e)},`addSection`),k=t(function(){return x},`getSections`),A=t(function(){let e=P(),t=0;for(;!e&&t<100;)e=P(),t++;return S.push(...C),S},`getTasks`),j=t(function(e,t,n){let r={id:y++,section:v,type:v,task:e,score:t||0,events:n?[n]:[]};C.push(r)},`addTask`),M=t(function(e){C.find(e=>e.id===y-1).events.push(e)},`addEvent`),N=t(function(e){let t={section:v,type:v,description:e,task:e,classes:[]};S.push(t)},`addTaskOrg`),P=t(function(){let e=t(function(e){return C[e].processed},`compileTask`),n=!0;for(let[t,r]of C.entries())e(t),n&&=r.processed;return n},`compileTasks`),ee={clear:T,getCommonDb:w,getDirection:D,setDirection:E,addSection:O,getSections:k,getTasks:A,addTask:j,addTaskOrg:N,addEvent:M},F=0,I=t(function(e,t){let n=e.append(`rect`);return n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),n.attr(`rx`,t.rx),n.attr(`ry`,t.ry),t.class!==void 0&&n.attr(`class`,t.class),n},`drawRect`),te=t(function(e,n){let r=e.append(`circle`).attr(`cx`,n.cx).attr(`cy`,n.cy).attr(`class`,`face`).attr(`r`,15).attr(`stroke-width`,2).attr(`overflow`,`visible`),a=e.append(`g`);a.append(`circle`).attr(`cx`,n.cx-15/3).attr(`cy`,n.cy-15/3).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`),a.append(`circle`).attr(`cx`,n.cx+15/3).attr(`cy`,n.cy-15/3).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`);function o(e){let t=i().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,t).attr(`transform`,`translate(`+n.cx+`,`+(n.cy+2)+`)`)}t(o,`smile`);function s(e){let t=i().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,t).attr(`transform`,`translate(`+n.cx+`,`+(n.cy+7)+`)`)}t(s,`sad`);function c(e){e.append(`line`).attr(`class`,`mouth`).attr(`stroke`,2).attr(`x1`,n.cx-5).attr(`y1`,n.cy+7).attr(`x2`,n.cx+5).attr(`y2`,n.cy+7).attr(`class`,`mouth`).attr(`stroke-width`,`1px`).attr(`stroke`,`#666`)}return t(c,`ambivalent`),n.score>3?o(a):n.score<3?s(a):c(a),r},`drawFace`),ne=t(function(e,t){let n=e.append(`circle`);return n.attr(`cx`,t.cx),n.attr(`cy`,t.cy),n.attr(`class`,`actor-`+t.pos),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`r`,t.r),n.class!==void 0&&n.attr(`class`,n.class),t.title!==void 0&&n.append(`title`).text(t.title),n},`drawCircle`),L=t(function(e,t){let n=t.text.replace(//gi,` `),r=e.append(`text`);r.attr(`x`,t.x),r.attr(`y`,t.y),r.attr(`class`,`legend`),r.style(`text-anchor`,t.anchor),t.class!==void 0&&r.attr(`class`,t.class);let i=r.append(`tspan`);return i.attr(`x`,t.x+t.textMargin*2),i.text(n),r},`drawText`),re=t(function(e,n){function r(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}t(r,`genPoints`);let i=e.append(`polygon`);i.attr(`points`,r(n.x,n.y,50,20,7)),i.attr(`class`,`labelBox`),n.y+=n.labelMargin,n.x+=.5*n.labelMargin,L(e,n)},`drawLabel`),R=t(function(e,t,n){let r=e.append(`g`),i=B();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=n.width,i.height=n.height,i.class=`journey-section section-type-`+t.num,i.rx=3,i.ry=3,I(r,i),V(n)(t.text,r,i.x,i.y,i.width,i.height,{class:`journey-section section-type-`+t.num},n,t.colour)},`drawSection`),z=-1,ie=t(function(e,t,n,r){let i=t.x+n.width/2,a=e.append(`g`);z++,a.append(`line`).attr(`id`,r+`-task`+z).attr(`x1`,i).attr(`y1`,t.y).attr(`x2`,i).attr(`y2`,450).attr(`class`,`task-line`).attr(`stroke-width`,`1px`).attr(`stroke-dasharray`,`4 2`).attr(`stroke`,`#666`),te(a,{cx:i,cy:300+(5-t.score)*30,score:t.score});let o=B();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=n.width,o.height=n.height,o.class=`task task-type-`+t.num,o.rx=3,o.ry=3,I(a,o),V(n)(t.task,a,o.x,o.y,o.width,o.height,{class:`task`},n,t.colour)},`drawTask`),ae=t(function(e,t){I(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:`rect`}).lower()},`drawBackgroundRect`),oe=t(function(){return{x:0,y:0,fill:void 0,"text-anchor":`start`,width:100,height:100,textMargin:0,rx:0,ry:0}},`getTextObj`),B=t(function(){return{x:0,y:0,width:100,anchor:`start`,height:100,rx:0,ry:0}},`getNoteRect`),V=(function(){function e(e,t,n,r,a,o,s,c){i(t.append(`text`).attr(`x`,n+a/2).attr(`y`,r+o/2+5).style(`font-color`,c).style(`text-anchor`,`middle`).text(e),s)}t(e,`byText`);function n(e,t,n,r,a,o,s,c,l){let{taskFontSize:u,taskFontFamily:d}=c,f=e.split(//gi);for(let e=0;e)/).reverse(),i,a=[],o=1.1,s=e.attr(`y`),c=parseFloat(e.attr(`dy`)),l=e.text(null).append(`tspan`).attr(`x`,0).attr(`y`,s).attr(`dy`,c+`em`);for(let n=0;nt||i===`
    `)&&(a.pop(),l.text(a.join(` `).trim()),a=i===`
    `?[``]:[i],l=e.append(`tspan`).attr(`x`,0).attr(`y`,s).attr(`dy`,o+`em`).text(i))})}t(H,`wrap`);var ce=t(function(e,t,r,i,a,o=!1){let{theme:s,look:c}=i,l=s?.includes(`redux`),u=r%(i?.themeVariables?.THEME_COLOR_LIMIT??12)-1,d=e.append(`g`);t.section=u,d.attr(`class`,(t.class?t.class+` `:``)+`timeline-node `+(`section-`+u));let f=d.append(`g`),p=d.append(`g`),m=p.append(`text`).text(t.descr).attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).call(H,t.width).node().getBBox(),h=i.fontSize?.replace?i.fontSize.replace(`px`,``):i.fontSize;if(t.height=m.height+h*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width+=2*t.padding,p.attr(`transform`,`translate(`+t.width/2+`, `+t.padding/2+`)`),l&&p.attr(`transform`,`translate(${t.width/2}, ${o?t.padding/2+3:t.padding})`),ue(f,t,u,a,i),c===`neo`&&(d.attr(`data-look`,`neo`),l)){let t=s.includes(`dark`),r=n(e.node()?.ownerSVGElement??e.node()),i=r.attr(`id`)??``,a=i?`${i}-drop-shadow`:`drop-shadow`;if(r.select(`#${a}`).empty()){let e=r.select(`defs`);(e.empty()?r.append(`defs`):e).append(`filter`).attr(`id`,a).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,t?`0.2`:`0.06`).attr(`flood-color`,t?`#FFFFFF`:`#000000`)}}return t},`drawNode`),le=t(function(e,t,n){let r=e.append(`g`),i=r.append(`text`).text(t.descr).attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).call(H,t.width).node().getBBox(),a=n.fontSize?.replace?n.fontSize.replace(`px`,``):n.fontSize;return r.remove(),i.height+a*1.1*.5+t.padding},`getVirtualNodeHeight`),ue=t(function(e,t,n,r,i){let{theme:a}=i,o=a?.includes(`redux`)?0:5,s=o>0?`M0 ${t.height-5} v${-t.height+10} q0,-${o},${o},-${o} h${t.width-10} q${o},0,${o},${o} v${t.height-5} H0 Z`:`M0 ${t.height-5} v${-(t.height-5)} h${t.width} v${t.height} H0 Z`;e.append(`path`).attr(`id`,r+`-node-`+ F++).attr(`class`,`node-bkg node-`+t.type).attr(`d`,s),a?.includes(`redux`)||e.append(`line`).attr(`class`,`node-line-`+n).attr(`x1`,0).attr(`y1`,t.height).attr(`x2`,t.width).attr(`y2`,t.height)},`defaultBkg`),U={drawRect:I,drawCircle:ne,drawSection:R,drawText:L,drawLabel:re,drawTask:ie,drawBackgroundRect:ae,getTextObj:oe,getNoteRect:B,initGraphics:se,drawNode:ce,getVirtualNodeHeight:le},de=t(function(e,t,i,o){let s=a(),{look:c,theme:l,themeVariables:d}=s,{useGradient:f,gradientStart:p,gradientStop:m}=d,h=s.timeline?.leftMargin??50;r.debug(`timeline`,o.db);let g=s.securityLevel,_;g===`sandbox`&&(_=n(`#i`+t));let v=n(g===`sandbox`?_.nodes()[0].contentDocument.body:`body`).select(`#`+t);v.append(`g`);let y=o.db.getTasks(),b=o.db.getCommonDb().getDiagramTitle();r.debug(`task`,y),U.initGraphics(v,t);let x=o.db.getSections();r.debug(`sections`,x);let S=0,C=0,w=0,T=0,E=50+h,D=50;T=50;let O=0,k=!0;x.forEach(function(e){let t={number:O,descr:e,section:O,width:150,padding:20,maxHeight:S},n=U.getVirtualNodeHeight(v,t,s);r.debug(`sectionHeight before draw`,n),S=Math.max(S,n+20)});let A=0,j=0;r.debug(`tasks.length`,y.length);for(let[e,t]of y.entries()){let n={number:e,descr:t,section:t.section,width:150,padding:20,maxHeight:C},i=U.getVirtualNodeHeight(v,n,s);r.debug(`taskHeight before draw`,i),C=Math.max(C,i+20),A=Math.max(A,t.events.length);let a=0;for(let e of t.events){let n={descr:e,section:t.section,number:t.section,width:150,padding:20,maxHeight:50};a+=U.getVirtualNodeHeight(v,n,s)}t.events.length>0&&(a+=(t.events.length-1)*10),j=Math.max(j,a)}r.debug(`maxSectionHeight before draw`,S),r.debug(`maxTaskHeight before draw`,C),x&&x.length>0?x.forEach(e=>{let n=y.filter(t=>t.section===e),i={number:O,descr:e,section:O,width:200*Math.max(n.length,1)-50,padding:20,maxHeight:S};r.debug(`sectionNode`,i);let a=v.append(`g`),o=U.drawNode(a,i,O,s,t);r.debug(`sectionNode output`,o),a.attr(`transform`,`translate(${E}, ${T})`),D+=S+50,n.length>0&&W(v,n,O,E,D,C,s,A,j,S,!1,t),E+=200*Math.max(n.length,1),D=T,O++}):(k=!1,W(v,y,O,E,D,C,s,A,j,S,!0,t));let M=v.node().getBBox();if(r.debug(`bounds`,M),b&&v.append(`text`).text(b).attr(`x`,c===`neo`?M.x*2+h:M.width/2-h).attr(`font-size`,`4ex`).attr(`font-weight`,`bold`).attr(`y`,20),w=k?S+C+150:C+100,v.append(`g`).attr(`class`,`lineWrapper`).append(`line`).attr(`x1`,h).attr(`y1`,w).attr(`x2`,M.width+3*h).attr(`y2`,w).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#${t}-arrowhead)`),c===`neo`&&f&&l!==`neutral`){let e=v.select(`defs`),t=(e.empty()?v.append(`defs`):e).append(`linearGradient`).attr(`id`,v.attr(`id`)+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);t.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,p).attr(`stop-opacity`,1),t.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,m).attr(`stop-opacity`,1)}u(void 0,v,s.timeline?.padding??50,s.timeline?.useMaxWidth??!1)},`draw`),W=t(function(e,t,n,i,a,o,s,c,l,u,d,f){for(let c of t){let t={descr:c.task,section:n,number:n,width:150,padding:20,maxHeight:o};r.debug(`taskNode`,t);let u=e.append(`g`).attr(`class`,`taskWrapper`),p=U.drawNode(u,t,n,s,f).height;if(r.debug(`taskHeight after draw`,p),u.attr(`transform`,`translate(${i}, ${a})`),o=Math.max(o,p),c.events){let t=e.append(`g`).attr(`class`,`lineWrapper`),r=o;a+=100,r+=fe(e,c.events,n,i,a,s,f),a-=100,t.append(`line`).attr(`x1`,i+190/2).attr(`y1`,a+o).attr(`x2`,i+190/2).attr(`y2`,a+o+100+l+100).attr(`stroke-width`,2).attr(`stroke`,`black`).attr(`marker-end`,`url(#${f}-arrowhead)`).attr(`stroke-dasharray`,`5,5`)}i+=200,d&&!s.timeline?.disableMulticolor&&n++}a-=10},`drawTasks`),fe=t(function(e,t,n,i,a,o,s){let c=0,l=a;a+=100;for(let l of t){let t={descr:l,section:n,number:n,width:150,padding:20,maxHeight:50};r.debug(`eventNode`,t);let u=e.append(`g`).attr(`class`,`eventWrapper`),d=U.drawNode(u,t,n,o,s,!0).height;c+=d,u.attr(`transform`,`translate(${i}, ${a})`),a=a+10+d}return a=l,c},`drawEvents`),pe={setConf:t(()=>{},`setConf`),draw:de},G=200,K=5,me=G+K*2,q=G+100,he=q+K*2,J=10,ge=0,Y=20,X=20,Z=30,Q=50,_e=t(function(e,t,n,i){let o=a(),s=o.timeline?.leftMargin??50;r.debug(`timeline`,i.db);let c=p(t);c.append(`g`);let l=i.db.getTasks(),d=i.db.getCommonDb().getDiagramTitle();r.debug(`task`,l),U.initGraphics(c);let f=i.db.getSections();r.debug(`sections`,f);let h=0,g=0,_=50+s,v=50,y=v,b=_,x=me+X,S=he+Q,C=b+x,w=0,T=f&&f.length>0,E=T?C:_+x,D=Math.max(50,x+S-K*2);f.forEach(function(e){let t={number:w,descr:e,section:w,width:D,padding:K,maxHeight:h},n=U.getVirtualNodeHeight(c,t,o);r.debug(`sectionHeight before draw`,n),h=Math.max(h,n)});let O=0;r.debug(`tasks.length`,l.length);for(let[e,t]of l.entries()){let n={number:e,descr:t,section:t.section,width:G,padding:K,maxHeight:g},i=U.getVirtualNodeHeight(c,n,o);r.debug(`taskHeight before draw`,i),g=Math.max(g,i);let a=0;for(let e of t.events){let n={descr:e,section:t.section,number:t.section,width:q,padding:K,maxHeight:50};a+=U.getVirtualNodeHeight(c,n,o)}t.events.length>0&&(a+=(t.events.length-1)*J),O=Math.max(O,a)+ge}r.debug(`maxSectionHeight before draw`,h),r.debug(`maxTaskHeight before draw`,g);let k=Math.max(g,O)+Z;T?f.forEach(e=>{let t=l.filter(t=>t.section===e),n={number:w,descr:e,section:w,width:D,padding:K,maxHeight:h};r.debug(`sectionNode`,n);let i=c.append(`g`),a=U.drawNode(i,n,w,o);r.debug(`sectionNode output`,a);let s=E-x;i.attr(`transform`,`translate(${s}, ${v})`);let u=v+a.height+Y;t.length>0&&$(c,t,w,E,u,g,o,k,!1);let d=t.length,f=a.height+Y+k*Math.max(d,1)-(d>0?Z*2:0);v+=f,w++}):$(c,l,w,E,v,g,o,k,!0);let A=c.node()?.getBBox();if(!A)throw Error(`bbox not found`);if(r.debug(`bounds`,A),d){if(c.append(`text`).text(d).attr(`x`,A.width/2-s).attr(`font-size`,`4ex`).attr(`font-weight`,`bold`).attr(`y`,20),A=c.node()?.getBBox(),!A)throw Error(`bbox not found`);r.debug(`bounds after title`,A)}let[j]=m(o.fontSize),M=(j??16)*2,N=(j??16)*.5+20,P=c.append(`g`).attr(`class`,`lineWrapper`);P.append(`line`).attr(`x1`,E).attr(`y1`,y-M).attr(`x2`,E).attr(`y2`,A.y+A.height+N).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#arrowhead)`),P.lower(),u(void 0,c,o.timeline?.padding??50,o.timeline?.useMaxWidth??!1)},`draw`),$=t(function(e,t,n,i,a,o,s,c,l){for(let u of t){let t={descr:u.task,section:n,number:n,width:G,padding:K,maxHeight:o};r.debug(`taskNode`,t);let d=e.append(`g`).attr(`class`,`taskWrapper`),f=U.drawNode(d,t,n,s),p=f.height;r.debug(`taskHeight after draw`,p);let m=i-X-f.width;if(d.attr(`transform`,`translate(${m}, ${a})`),o=Math.max(o,p),u.events&&u.events.length>0){let t=a,r=i+Q;ve(e,u.events,n,i,r,t,s)}a+=c,l&&!s.timeline?.disableMulticolor&&n++}},`drawTasks`),ve=t(function(e,t,n,i,a,o,s){let c=o;for(let o of t){let t={descr:o,section:n,number:n,width:q,padding:K,maxHeight:0};r.debug(`eventNode`,t);let l=e.append(`g`).attr(`class`,`eventWrapper`),u=U.drawNode(l,t,n,s).height;l.attr(`transform`,`translate(${a}, ${c})`);let d=e.append(`g`).attr(`class`,`lineWrapper`),f=c+u/2;d.append(`line`).attr(`x1`,i).attr(`y1`,f).attr(`x2`,a).attr(`y2`,f).attr(`stroke-width`,2).attr(`stroke`,`black`).attr(`marker-end`,`url(#arrowhead)`).attr(`stroke-dasharray`,`5,5`),c=c+u+J}return c-o},`drawEvents`),ye={setConf:t(()=>{},`setConf`),draw:_e},be=t(e=>{let{theme:t}=c(),n=t?.includes(`dark`),r=t?.includes(`color`),i=e.svgId?.replace(/^#/,``)??``,a=i?`url(#${i}-drop-shadow)`:e.dropShadow??`none`,o=``;for(let t=0;t{let t=``;for(let t=0;t{},`setConf`),draw:t((e,t,n,r)=>(r?.db?.getDirection?.()??`LR`)===`TD`?ye.draw(e,t,n,r):pe.draw(e,t,n,r),`draw`)},parser:g,styles:t(e=>{let{theme:t}=c(),n=t?.includes(`redux`),r=t===`neutral`,i=e.svgId?.replace(/^#/,``)??``,a=``;if(e.useGradient&&i&&e.THEME_COLOR_LIMIT&&!r)for(let t=0;te+t,0)}function n(e){return e??=[],Array.isArray(e)?e:[e]}function r(e){return n(e).flat(1)}function i(e){return Array.from(new Set(e))}function a(...e){let t,n,r;e.length===1?(t=0,r=1,[n]=e):[t,n,r=1]=e;let i=[],a=t;for(;at(e,n)).filter(o))}function c(e){return Object.keys(e).forEach(t=>e[t]===void 0?delete e[t]:{}),e}function l(e){let t;function n(){return t||=e(),t}return n.reset=async()=>{let e=t;t=void 0,e&&await e},n}var u=/[a-z]/i;function d(e){if(typeof e==`number`)return{seconds:e,relative:!1};let t=e.startsWith(`+`);t&&(e=e.slice(1));let n=0;if(e.includes(`:`)){let t=e.split(`:`).map(Number),r=0,i=0,a=0;if(t.length===3)r=t[0],i=t[1],a=t[2];else if(t.length===2)i=t[0],a=t[1];else if(t.length===1)a=t[0];else throw TypeError(`Invalid timestamp format`);if(Number.isNaN(r)||Number.isNaN(i)||Number.isNaN(a))throw TypeError(`Invalid timestamp format`);n=(r||0)*3600+(i||0)*60+(a||0)}else if(!u.test(e))n=Number(e);else{let t={s:1,sec:1,secs:1,m:60,min:60,mins:60,h:3600,hr:3600,hrs:3600,hour:3600,hours:3600,day:86400,days:86400,week:604800,weeks:604800,month:2629746,months:2629746,year:31556952,years:31556952},r=/([\d.]+)([a-z]+)/gi,i=e.matchAll(r);if(i)for(let e of i){let r=Number(e[1]);if(Number.isNaN(r))throw TypeError(`Invalid timestamp value: ${e[1]}`);let i=e[2].toLowerCase();if(!(i in t))throw TypeError(`Invalid timestamp unit: ${i}`);n+=r*t[i]}let a=e.replace(r,``).trim();if(a)throw TypeError(`Unknown timestamp remaining: ${a}`)}return{seconds:n,relative:t}}function f(e,t){if(!t||t===`all`||t===`*`)return a(1,e+1);if(t===`none`)return[];let n=[];for(let r of t.split(/[,;]/g))if(!r.includes(`-`))n.push(+r);else{let[t,i]=r.split(`-`,2);n.push(...a(+t,i?+i+1:e+1))}return i(n).filter(t=>t<=e).sort((e,t)=>e-t)}export{l as a,t as c,c as i,n as l,d as n,s as o,e as r,a as s,f as t}; \ No newline at end of file diff --git a/docs/dist/assets/vennDiagram-CDPVD3PM-D6Ru9b0A.js b/docs/dist/assets/vennDiagram-CDPVD3PM-D6Ru9b0A.js new file mode 100644 index 00000000..1a3b76f2 --- /dev/null +++ b/docs/dist/assets/vennDiagram-CDPVD3PM-D6Ru9b0A.js @@ -0,0 +1,34 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{I as t}from"./chunk-V7P66DNM-D246Sefn.js";import{E as n,J as r,N as i,P as a,Q as o,S as s,Y as c,b as l,d as u,it as d,l as f,m as p,o as m,x as h}from"./chunk-Q52JI7PB-BeSPinqD.js";import{t as g}from"./chunk-PUIB63ON-iBBh92CL.js";import{t as _}from"./chunk-PLCLPJVV-rGjVDjLw.js";import"./chunk-7TFACZ55-BO7C1qvL.js";import{i as v}from"./chunk-BSZA5ISF-LqNHBHyp.js";var y=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[5,8],r=[7,8,11,12,17,19,22,24],i=[1,17],a=[1,18],o=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],s=[1,31],c=[1,39],l=[7,8,11,12,17,19,22,24,27],u=[1,57],d=[1,56],f=[1,58],p=[1,59],m=[1,60],h=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],g={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:`error`,5:`VENN`,7:`EOF`,8:`NEWLINE`,11:`TITLE`,12:`SET`,14:`BRACKET_LABEL`,15:`COLON`,16:`NUMERIC`,17:`UNION`,19:`TEXT`,20:`IDENTIFIER`,21:`STRING`,22:`INDENT_TEXT`,24:`STYLE`,27:`COMMA`,31:`HEXCOLOR`,32:`RGBCOLOR`,33:`RGBACOLOR`},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:case 3:case 4:this.$=[];break;case 5:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=a[s];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:r.addSubsetData([a[s]],void 0,void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 10:r.addSubsetData([a[s-1]],a[s],void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 11:r.addSubsetData([a[s-2]],void 0,parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 12:r.addSubsetData([a[s-3]],a[s-2],parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 13:if(a[s].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s]),r.addSubsetData(a[s],void 0,void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 14:if(a[s-1].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s-1]),r.addSubsetData(a[s-1],a[s],void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 15:if(a[s-2].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s-2]),r.addSubsetData(a[s-2],void 0,parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 16:if(a[s-3].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s-3]),r.addSubsetData(a[s-3],a[s-2],parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 17:case 18:case 19:r.addTextData(a[s-1],a[s],void 0);break;case 20:case 21:r.addTextData(a[s-2],a[s-1],a[s]);break;case 23:r.addStyleData(a[s-1],a[s]);break;case 24:case 25:case 26:var c=r.getCurrentSets();if(!c)throw Error(`text requires set`);r.addTextData(c,a[s],void 0);break;case 27:case 28:var c=r.getCurrentSets();if(!c)throw Error(`text requires set`);r.addTextData(c,a[s-1],a[s]);break;case 29:case 41:this.$=[a[s]];break;case 30:case 42:this.$=[...a[s-2],a[s]];break;case 31:this.$=[a[s-2],a[s]];break;case 33:this.$=a[s].join(` `);break;case 34:this.$=[a[s]];break;case 35:a[s-1].push(a[s]),this.$=a[s-1];break;case 43:case 44:this.$=a[s];break}},`anonymous`),table:[t(n,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},t(r,[2,4],{6:5}),t(n,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},t(r,[2,5]),t(r,[2,6]),t(r,[2,7]),t(r,[2,8]),{13:16,20:i,21:a},{13:20,18:19,20:i,21:a},{13:20,18:21,20:i,21:a},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:i,21:a},t(r,[2,9],{14:[1,27],15:[1,28]}),t(o,[2,43]),t(o,[2,44]),t(r,[2,13],{14:[1,29],15:[1,30],27:s}),t(o,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:s},t(r,[2,22]),t(r,[2,24],{14:[1,35]}),t(r,[2,25],{14:[1,36]}),t(r,[2,26]),{20:c,25:37,26:38,27:s},t(r,[2,10],{15:[1,40]}),{16:[1,41]},t(r,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:i,21:a},t(r,[2,17],{14:[1,45]}),t(r,[2,18],{14:[1,46]}),t(r,[2,19]),t(r,[2,27]),t(r,[2,28]),t(r,[2,23],{27:[1,47]}),t(l,[2,29]),{15:[1,48]},{16:[1,49]},t(r,[2,11]),{16:[1,50]},t(r,[2,15]),t(o,[2,42]),t(r,[2,20]),t(r,[2,21]),{20:c,26:51},{16:u,20:d,21:[1,53],28:52,29:54,30:55,31:f,32:p,33:m},t(r,[2,12]),t(r,[2,16]),t(l,[2,30]),t(l,[2,31]),t(l,[2,32]),t(l,[2,33],{30:61,16:u,20:d,31:f,32:p,33:m}),t(h,[2,34]),t(h,[2,36]),t(h,[2,37]),t(h,[2,38]),t(h,[2,39]),t(h,[2,40]),t(h,[2,35])],defaultActions:{6:[2,1]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};g.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:break;case 3:if(e.getIndentMode&&e.getIndentMode())return e.consumeIndentText=!0,this.begin(`INITIAL`),22;break;case 4:break;case 5:e.setIndentMode&&e.setIndentMode(!1),this.begin(`INITIAL`),this.unput(t.yytext);break;case 6:return this.begin(`bol`),8;case 7:break;case 8:break;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(e.consumeIndentText)e.consumeIndentText=!1;else return 19;break;case 15:return 24;case 16:return t.yytext=t.yytext.slice(2,-2),14;case 17:return t.yytext=t.yytext.slice(1,-1).trim(),14;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},`anonymous`),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}}})();function _(){this.yy={}}return e(_,`Parser`),_.prototype=g,g.Parser=_,new _})();y.parser=y;var b=y,x=[],S=[],C=[],w=new Set,T,E=!1,D=e((e,t,n)=>{let r=N(e).sort(),i=n??10/e.length**2;T=r,r.length===1&&w.add(r[0]),x.push({sets:r,size:i,label:t?k(t):void 0})},`addSubsetData`),O=e(()=>x,`getSubsetData`),k=e(e=>{let t=e.trim();return t.length>=2&&t.startsWith(`"`)&&t.endsWith(`"`)?t.slice(1,-1):t},`normalizeText`),A=e(e=>e&&k(e),`normalizeStyleValue`),j=e((e,t,n)=>{let r=k(t);S.push({sets:N(e).sort(),id:r,label:n?k(n):void 0})},`addTextData`),M=e((e,t)=>{let n=N(e).sort(),r={};for(let[e,n]of t)r[e]=A(n)??n;C.push({targets:n,styles:r})},`addStyleData`),ee=e(()=>C,`getStyleData`),N=e(e=>e.map(e=>k(e)),`normalizeIdentifierList`),P=e(e=>{let t=N(e).filter(e=>!w.has(e));if(t.length>0)throw Error(`unknown set identifier: ${t.join(`, `)}`)},`validateUnionIdentifiers`),F=e(()=>S,`getTextData`),I=e(()=>T,`getCurrentSets`),L=e(()=>E,`getIndentMode`),te=e(e=>{E=e},`setIndentMode`),ne=p.venn;function re(){return v(ne,s().venn)}e(re,`getConfig`);var ie={getConfig:re,clear:e(()=>{m(),x.length=0,S.length=0,C.length=0,w.clear(),T=void 0,E=!1},`customClear`),setAccTitle:c,getAccTitle:h,setDiagramTitle:o,getDiagramTitle:n,getAccDescription:l,setAccDescription:r,addSubsetData:D,getSubsetData:O,addTextData:j,addStyleData:M,validateUnionIdentifiers:P,getTextData:F,getStyleData:ee,getCurrentSets:I,getIndentMode:L,setIndentMode:te},ae=e(e=>` + .venn-title { + font-size: 32px; + fill: ${e.vennTitleTextColor}; + font-family: ${e.fontFamily}; + } + + .venn-circle text { + font-size: 48px; + font-family: ${e.fontFamily}; + } + + .venn-intersection text { + font-size: 48px; + fill: ${e.vennSetTextColor}; + font-family: ${e.fontFamily}; + } + + .venn-text-node { + font-family: ${e.fontFamily}; + color: ${e.vennSetTextColor}; + } +`,`getStyles`),oe=1e-10;function R(e,t){let n=ce(e),r=n.filter(t=>se(t,e)),i=0,a=0,o=[];if(r.length>1){let t=ue(r);for(let e=0;et.angle-e.angle);let n=r[r.length-1];for(let t=0;tr.radius*2&&(d=r.radius*2),(l==null||l.width>d)&&(l={circle:r,width:d,p1:s,p2:n,large:d>r.radius,sweep:!0})}l!=null&&(o.push(l),i+=z(l.circle.radius,l.width),n=s)}}else{let t=e[0];for(let n=1;nMath.abs(t.radius-e[r].radius)){n=!0;break}n?i=a=0:(i=t.radius*t.radius*Math.PI,o.push({circle:t,p1:{x:t.x,y:t.y+t.radius},p2:{x:t.x-oe,y:t.y+t.radius},width:t.radius*2,large:!0,sweep:!0}))}return a/=2,t&&(t.area=i+a,t.arcArea=i,t.polygonArea=a,t.arcs=o,t.innerPoints=r,t.intersectionPoints=n),i+a}e(R,`intersectionArea`);function se(e,t){return t.every(t=>B(e,t)=e+t)return 0;if(n<=Math.abs(e-t))return Math.PI*Math.min(e,t)*Math.min(e,t);let r=e-(n*n-t*t+e*e)/(2*n),i=t-(n*n-e*e+t*t)/(2*n);return z(e,r)+z(t,i)}e(V,`circleOverlap`);function le(e,t){let n=B(e,t),r=e.radius,i=t.radius;if(n>=r+i||n<=Math.abs(r-i))return[];let a=(r*r-i*i+n*n)/(2*n),o=Math.sqrt(r*r-a*a),s=e.x+a*(t.x-e.x)/n,c=e.y+a*(t.y-e.y)/n,l=-(t.y-e.y)*(o/n),u=-(t.x-e.x)*(o/n);return[{x:s+l,y:c-u},{x:s-l,y:c+u}]}e(le,`circleCircleIntersection`);function ue(e){let t={x:0,y:0};for(let n of e)t.x+=n.x,t.y+=n.y;return t.x/=e.length,t.y/=e.length,t}e(ue,`getCenter`);function de(e,t,n,r){r||={};let i=r.maxIterations||100,a=r.tolerance||1e-10,o=e(t),s=e(n),c=n-t;if(o*s>0)throw`Initial bisect points must have opposite signs`;if(o===0)return t;if(s===0)return n;for(let n=0;n=0&&(t=n),Math.abs(c)H(t))}e(fe,`zerosM`);function U(e,t){let n=0;for(let r=0;re.fx-t.fx,`sortOrder`),v=n.slice(),y=n.slice(),b=n.slice(),x=n.slice();for(let e=0;e{let t=e.slice();return t.fx=e.fx,t.id=e.id,t});e.sort((e,t)=>e.id-t.id),r.history.push({x:h[0].slice(),fx:h[0].fx,simplex:e})}p=0;for(let e=0;e=h[m-1].fx){let n=!1;if(y.fx>e.fx?(K(b,1+d,v,-d,e),b.fx=t(b),b.fx=1)break;for(let e=1;ec+o*a*l||u>=p)d=a;else{if(Math.abs(f)<=-s*l)return a;f*(d-e)>=0&&(d=e),e=a,p=u}return 0}e(m,`zoom`);for(let e=0;e<10;++e){if(K(i.x,1,r.x,a,n),u=i.fx=t(i.x,i.fxprime),f=U(i.fxprime,n),u>c+o*a*l||e&&u>=d)return m(p,a,d);if(Math.abs(f)<=-s*l)return a;if(f>=0)return m(a,p,u);d=u,p=a,a*=2}return a}e(me,`wolfeLineSearch`);function he(e,t,n){let r={x:t.slice(),fx:0,fxprime:t.slice()},i={x:t.slice(),fx:0,fxprime:t.slice()},a=t.slice(),o,s,c=1,l;n||={},l=n.maxIterations||t.length*20,r.fx=e(r.x,r.fxprime),o=r.fxprime.slice(),G(o,r.fxprime,-1);for(let t=0;t{let t={};for(let n=0;nV(e,t,r)-n,0,e+t)}e(q,`distanceFromIntersectArea`);function ve(t,n={}){let r=n.distinct,i=t.map(e=>Object.assign({},e));function a(e){return e.join(`;`)}if(e(a,`toKey`),r){let e=new Map;for(let t of i)for(let n=0;ne===t?0:ee.sets.length===2).forEach(e=>{let a=n[e.sets[0]],o=n[e.sets[1]],s=q(Math.sqrt(t[a].size/Math.PI),Math.sqrt(t[o].size/Math.PI),e.size);r[a][o]=r[o][a]=s;let c=0;e.size+1e-10>=Math.min(t[a].size,t[o].size)?c=1:e.size<=1e-10&&(c=-1),i[a][o]=i[o][a]=c}),{distances:r,constraints:i}}e(ye,`getDistanceMatrices`);function be(e,t,n,r){for(let e=0;e0&&m<=d||f<0&&m>=d||(i+=2*h*h,t[2*a]+=4*h*(o-l),t[2*a+1]+=4*h*(s-u),t[2*c]+=4*h*(l-o),t[2*c+1]+=4*h*(u-s))}}return i}e(be,`constrainedMDSGradient`);function xe(e,t={}){let n=Ce(e,t),r=t.lossFunction||J;if(e.length>=8){let i=Se(e,t),a=r(i,e),o=r(n,e);a+1e-8e.map(e=>e/c));let l=e((e,t)=>be(e,t,o,s),`obj`),u=null;for(let e=0;ee.sets.length===2);for(let e of t){let t=e.weight==null?1:e.weight,n=e.sets[0],r=e.sets[1];e.size+_e>=Math.min(i[n].size,i[r].size)&&(t=0),a[n].push({set:r,size:e.size,weight:t}),a[r].push({set:n,size:e.size,weight:t})}let o=[];Object.keys(a).forEach(e=>{let t=0;for(let n=0;ne[t]));let i=r.weight==null?1:r.weight;n+=i*(t-r.size)*(t-r.size)}return n}e(J,`lossFunction`);function we(e,t){let n=0;for(let r of t){if(r.sets.length===1)continue;let t;if(r.sets.length===2){let n=e[r.sets[0]],i=e[r.sets[1]];t=V(n.radius,i.radius,B(n,i))}else t=R(r.sets.map(t=>e[t]));let i=r.weight==null?1:r.weight,a=Math.log((t+1)/(r.size+1));n+=i*a*a}return n}e(we,`logRatioLossFunction`);function Te(e,t,n){if(n==null?e.sort((e,t)=>t.radius-e.radius):e.sort(n),e.length>0){let t=e[0].x,n=e[0].y;for(let r of e)r.x-=t,r.y-=n}if(e.length===2&&B(e[0],e[1])1){let n=Math.atan2(e[1].x,e[1].y)-t,r=Math.cos(n),i=Math.sin(n);for(let t of e){let e=t.x,n=t.y;t.x=r*e-i*n,t.y=i*e+r*n}}if(e.length>2){let n=Math.atan2(e[2].x,e[2].y)-t;for(;n<0;)n+=2*Math.PI;for(;n>2*Math.PI;)n-=2*Math.PI;if(n>Math.PI){let t=e[1].y/(1e-10+e[1].x);for(let n of e){var r=(n.x+t*n.y)/(1+t*t);n.x=2*r-n.x,n.y=2*r*t-n.y}}}}e(Te,`orientateCircles`);function Ee(t){t.forEach(e=>{e.parent=e});function n(e){return e.parent!==e&&(e.parent=n(e.parent)),e.parent}e(n,`find`);function r(e,t){let r=n(e);r.parent=n(t)}e(r,`union`);for(let e=0;e{delete e.parent}),Array.from(i.values())}e(Ee,`disjointCluster`);function Y(t){let n=e(e=>({max:t.reduce((t,n)=>Math.max(t,n[e]+n.radius),-1/0),min:t.reduce((t,n)=>Math.min(t,n[e]-n.radius),1/0)}),`minMax`);return{xRange:n(`x`),yRange:n(`y`)}}e(Y,`getBoundingBox`);function De(t,n,r){n??=Math.PI/2;let i=Ae(t).map(e=>Object.assign({},e)),a=Ee(i);for(let e of a){Te(e,n,r);let t=Y(e);e.size=(t.xRange.max-t.xRange.min)*(t.yRange.max-t.yRange.min),e.bounds=t}a.sort((e,t)=>t.size-e.size),i=a[0];let o=i.bounds,s=(o.xRange.max-o.xRange.min)/50;function c(e,t,n){if(!e)return;let r=e.bounds,a,c;if(t)a=o.xRange.max-r.xRange.min+s;else{a=o.xRange.max-r.xRange.max;let e=(r.xRange.max-r.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;e<0&&(a+=e)}if(n)c=o.yRange.max-r.yRange.min+s;else{c=o.yRange.max-r.yRange.max;let e=(r.yRange.max-r.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;e<0&&(c+=e)}for(let t of e)t.x+=a,t.y+=c,i.push(t)}e(c,`addCluster`);let l=1;for(;l({radius:u*e.radius,x:r+d+(e.x-o.min)*u,y:r+f+(e.y-s.min)*u,setid:e.setid})))}e(Oe,`scaleSolution`);function ke(e){let t={};for(let n of e)t[n.setid]=n;return t}e(ke,`toObjectNotation`);function Ae(e){return Object.keys(e).map(t=>Object.assign(e[t],{setid:t}))}e(Ae,`fromObjectNotation`);function je(t={}){let n=!1,r=600,i=350,a=15,o=1e3,s=Math.PI/2,c=!0,l=null,u=!0,d=!0,f=null,p=null,m=!1,h=null,g=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,_={},v=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:[`#1f77b4`,`#ff7f0e`,`#2ca02c`,`#d62728`,`#9467bd`,`#8c564b`,`#e377c2`,`#7f7f7f`,`#bcbd22`,`#17becf`],y=0,b=e(function(e){if(e in _)return _[e];var t=_[e]=v[y];return y+=1,y>=v.length&&(y=0),t},`colours`),x=ge,S=J;function C(_){let v=_.datum(),y=new Set;v.forEach(e=>{e.size==0&&e.sets.length==1&&y.add(e.sets[0])}),v=v.filter(e=>!e.sets.some(e=>y.has(e)));let C={},w={};if(v.length>0){let e=x(v,{lossFunction:S,distinct:m});c&&(e=De(e,s,p)),C=Oe(e,r,i,a,l),w=Ne(C,v,g)}let T={};v.forEach(e=>{e.label&&(T[e.sets]=e.label)});function E(e){if(e.sets in T)return T[e.sets];if(e.sets.length==1)return``+e.sets[0]}e(E,`label`),_.selectAll(`svg`).data([C]).enter().append(`svg`);let D=_.select(`svg`);n?D.attr(`viewBox`,`0 0 ${r} ${i}`):D.attr(`width`,r).attr(`height`,i);let O={},k=!1;D.selectAll(`.venn-area path`).each(function(e){let t=this.getAttribute(`d`);e.sets.length==1&&t&&!m&&(k=!0,O[e.sets[0]]=Fe(t))});function A(e){return t=>Re(e.sets.map(e=>{let n=O[e],a=C[e];return n||={x:r/2,y:i/2,radius:1},a||={x:r/2,y:i/2,radius:1},{x:n.x*(1-t)+a.x*t,y:n.y*(1-t)+a.y*t,radius:n.radius*(1-t)+a.radius*t}}),h)}e(A,`pathTween`);let j=D.selectAll(`.venn-area`).data(v,e=>e.sets),M=j.enter().append(`g`).attr(`class`,e=>`venn-area venn-${e.sets.length==1?`circle`:`intersection`}${e.colour||e.color?` venn-coloured`:``}`).attr(`data-venn-sets`,e=>e.sets.join(`_`)),ee=M.append(`path`),N=M.append(`text`).attr(`class`,`label`).text(e=>E(e)).attr(`text-anchor`,`middle`).attr(`dy`,`.35em`).attr(`x`,r/2).attr(`y`,i/2);d&&(ee.style(`fill-opacity`,`0`).filter(e=>e.sets.length==1).style(`fill`,e=>e.colour?e.colour:e.color?e.color:b(e.sets)).style(`fill-opacity`,`.25`),N.style(`fill`,e=>e.colour||e.color?`#FFF`:t.textFill?t.textFill:e.sets.length==1?b(e.sets):`#444`));function P(e){return typeof e.transition==`function`?e.transition(`venn`).duration(o):e}e(P,`asTransition`);let F=_;k&&typeof F.transition==`function`?(F=P(_),F.selectAll(`path`).attrTween(`d`,A)):F.selectAll(`path`).attr(`d`,e=>Re(e.sets.map(e=>C[e])),h);let I=F.selectAll(`text`).filter(e=>e.sets in w).text(e=>E(e)).attr(`x`,e=>Math.floor(w[e.sets].x)).attr(`y`,e=>Math.floor(w[e.sets].y));u&&(k?`on`in I?I.on(`end`,X(C,E)):I.each(`end`,X(C,E)):I.each(X(C,E)));let L=P(j.exit()).remove();typeof j.transition==`function`&&L.selectAll(`path`).attrTween(`d`,A);let te=L.selectAll(`text`).attr(`x`,r/2).attr(`y`,i/2);return f!==null&&(N.style(`font-size`,`0px`),I.style(`font-size`,f),te.style(`font-size`,`0px`)),{circles:C,textCentres:w,nodes:j,enter:M,update:F,exit:L}}return e(C,`chart`),C.wrap=function(e){return arguments.length?(u=e,C):u},C.useViewBox=function(){return n=!0,C},C.width=function(e){return arguments.length?(r=e,C):r},C.height=function(e){return arguments.length?(i=e,C):i},C.padding=function(e){return arguments.length?(a=e,C):a},C.distinct=function(e){return arguments.length?(m=e,C):m},C.colours=function(e){return arguments.length?(b=e,C):b},C.colors=function(e){return arguments.length?(b=e,C):b},C.fontSize=function(e){return arguments.length?(f=e,C):f},C.round=function(e){return arguments.length?(h=e,C):h},C.duration=function(e){return arguments.length?(o=e,C):o},C.layoutFunction=function(e){return arguments.length?(x=e,C):x},C.normalize=function(e){return arguments.length?(c=e,C):c},C.scaleToFit=function(e){return arguments.length?(l=e,C):l},C.styled=function(e){return arguments.length?(d=e,C):d},C.orientation=function(e){return arguments.length?(s=e,C):s},C.orientationOrder=function(e){return arguments.length?(p=e,C):p},C.lossFunction=function(e){return arguments.length?(S=e==="default"?J:e===`logRatio`?we:e,C):S},C}e(je,`VennDiagram`);function X(t,n){return function(r){let i=this,a=t[r.sets[0]].radius||50,o=n(r)||``,s=o.split(/\s+/).reverse(),c=(o.length+s.length)/3,l=s.pop(),u=[l],d=0,f=1.1;i.textContent=null;let p=[];function m(e){let t=i.ownerDocument.createElementNS(i.namespaceURI,`tspan`);return t.textContent=e,p.push(t),i.append(t),t}e(m,`append`);let h=m(l);for(;l=s.pop(),l;){u.push(l);let e=u.join(` `);h.textContent=e,e.length>c&&h.getComputedTextLength()>a&&(u.pop(),h.textContent=u.join(` `),u=[l],h=m(l),d++)}let g=.35-d*f/2,_=i.getAttribute(`x`),v=i.getAttribute(`y`);p.forEach((e,t)=>{e.setAttribute(`x`,_),e.setAttribute(`y`,v),e.setAttribute(`dy`,`${g+t*f}em`)})}}e(X,`wrapText`);function Z(e,t,n){let r=t[0].radius-B(t[0],e);for(let n=1;n=a&&(i=r[n],a=o)}let o=pe(n=>-1*Z({x:n[0],y:n[1]},e,t),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,s={x:n?0:o[0],y:o[1]},c=!0;for(let t of e)if(B(s,t)>t.radius){c=!1;break}for(let e of t)if(B(s,e)e.p1))}e(Q,`computeTextCentre`);function Me(e){let t={},n=Object.keys(e);for(let e of n)t[e]=[];for(let r=0;r0&&console.log(`WARNING: area `+o+` not represented on screen`)}return r}e(Ne,`computeTextCentres`);function Pe(e,t,n){let r=[];return r.push(` +M`,e,t),r.push(` +m`,-n,0),r.push(` +a`,n,n,0,1,0,n*2,0),r.push(` +a`,n,n,0,1,0,-n*2,0),r.join(` `)}e(Pe,`circlePath`);function Fe(e){let t=e.split(` `);return{x:Number.parseFloat(t[1]),y:Number.parseFloat(t[2]),radius:-Number.parseFloat(t[4])}}e(Fe,`circleFromPath`);function Ie(e){if(e.length===0)return[];let t={};return R(e,t),t.arcs}e(Ie,`intersectionAreaArcs`);function Le(e,t){if(e.length===0)return`M 0 0`;let n=10**(t||0),r=t==null?e=>e:e=>Math.round(e*n)/n;if(e.length==1){let t=e[0].circle;return Pe(r(t.x),r(t.y),r(t.radius))}let i=[` +M`,r(e[0].p2.x),r(e[0].p2.y)];for(let t of e){let e=r(t.circle.radius);i.push(` +A`,e,e,0,+!!t.large,+!!t.sweep,r(t.p1.x),r(t.p1.y))}return i.join(` `)}e(Le,`arcsToPath`);function Re(e,t){return Le(Ie(e),t)}e(Re,`intersectionAreaPath`);function ze(t,n={}){let{lossFunction:r,layoutFunction:i=ge,normalize:a=!0,orientation:o=Math.PI/2,orientationOrder:s,width:c=600,height:l=350,padding:u=15,scaleToFit:d=!1,symmetricalTextCentre:f=!1,distinct:p,round:m=2}=n,h=i(t,{lossFunction:r==="default"||!r?J:r===`logRatio`?we:r,distinct:p});a&&(h=De(h,o,s));let g=Oe(h,c,l,u,d),_=Ne(g,t,f),v=new Map(Object.keys(g).map(e=>[e,{set:e,x:g[e].x,y:g[e].y,radius:g[e].radius}])),y=t.map(e=>{let t=e.sets.map(e=>v.get(e)),n=Ie(t);return{circles:t,arcs:n,path:Le(n,m),area:e,has:new Set(e.sets)}});function b(e){let t=``;for(let n of y)n.has.size>e.length&&e.every(e=>n.has.has(e))&&(t+=` `+n.path);return t}return e(b,`genDistinctPath`),y.map(({circles:e,arcs:t,path:n,area:r})=>({data:r,text:_[r.sets],circles:e,arcs:t,path:n,distinctPath:n+b(r.sets)}))}e(ze,`layout`);function Be(e){let t=new Map;for(let n of e){let e=n.targets.join(`|`),r=t.get(e);r?Object.assign(r,n.styles):t.set(e,{...n.styles})}return t}e(Be,`buildStyleByKey`);var Ve=e((e,n,r,o)=>{let c=o.db,l=c.getConfig?.(),{themeVariables:p,look:m,handDrawnSeed:h}=s(),v=m===`handDrawn`,y=[p.venn1,p.venn2,p.venn3,p.venn4,p.venn5,p.venn6,p.venn7,p.venn8].filter(Boolean),b=c.getDiagramTitle?.(),x=c.getSubsetData(),S=c.getTextData(),C=Be(c.getStyleData()),w=l?.width??800,T=l?.height??450,E=w/1600,D=b?48*E:0,O=p.primaryTextColor??p.textColor,k=g(n);k.attr(`viewBox`,`0 0 ${w} ${T}`),b&&k.append(`text`).text(b).attr(`class`,`venn-title`).attr(`font-size`,`${32*E}px`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).attr(`x`,`50%`).attr(`y`,32*E).style(`fill`,p.vennTitleTextColor||p.titleColor);let A=t(document.createElement(`div`)),j=je().width(w).height(T-D);A.datum(x).call(j);let M=v?_.svg(A.select(`svg`).node()):void 0,ee=ze(x,{width:w,height:T-D,padding:l?.padding??15}),N=new Map;for(let e of ee){let t=$([...e.data.sets].sort());N.set(t,e)}S.length>0&&He(l,N,A,S,E,C);let P=i(p.background||`#f4f4f4`);A.selectAll(`.venn-circle`).each(function(e,n){let r=t(this),i=$([...e.sets].sort()),o=C.get(i),s=o?.fill||y[n%y.length]||p.primaryColor;r.classed(`venn-set-${n%8}`,!0);let c=o?.[`fill-opacity`]??.1,l=o?.stroke||s,f=o?.[`stroke-width`]||`${5*E}`;if(v&&M){let e=N.get(i);if(e&&e.circles.length>0){let t=e.circles[0],i=M.circle(t.x,t.y,t.radius*2,{roughness:.7,seed:h,fill:d(s,.7),fillStyle:`hachure`,fillWeight:2,hachureGap:8,hachureAngle:-41+n*60,stroke:l,strokeWidth:parseFloat(String(f))});r.select(`path`).remove(),r.node()?.insertBefore(i,r.select(`text`).node())}}else r.select(`path`).style(`fill`,s).style(`fill-opacity`,c).style(`stroke`,l).style(`stroke-width`,f).style(`stroke-opacity`,.95);let m=o?.color||(P?a(s,30):u(s,30));r.select(`text`).style(`font-size`,`${48*E}px`).style(`fill`,m)}),v&&M?A.selectAll(`.venn-intersection`).each(function(e){let n=t(this),r=$([...e.sets].sort()),i=C.get(r),a=i?.fill;if(a){let e=n.select(`path`),t=e.attr(`d`);if(t){let n=M.path(t,{roughness:.7,seed:h,fill:d(a,.3),fillStyle:`cross-hatch`,fillWeight:2,hachureGap:6,hachureAngle:60,stroke:`none`}),r=e.node();r?.parentNode?.insertBefore(n,r),e.remove()}}else n.select(`path`).style(`fill-opacity`,0);n.select(`text`).style(`font-size`,`${48*E}px`).style(`fill`,i?.color??p.vennSetTextColor??O)}):(A.selectAll(`.venn-intersection text`).style(`font-size`,`${48*E}px`).style(`fill`,e=>{let t=$([...e.sets].sort());return C.get(t)?.color??p.vennSetTextColor??O}),A.selectAll(`.venn-intersection path`).style(`fill-opacity`,e=>{let t=$([...e.sets].sort());return+!!C.get(t)?.fill}).style(`fill`,e=>{let t=$([...e.sets].sort());return C.get(t)?.fill??`transparent`}));let F=k.append(`g`).attr(`transform`,`translate(0, ${D})`),I=A.select(`svg`).node();if(I&&`childNodes`in I)for(let e of[...I.childNodes])F.node()?.appendChild(e);f(k,T,w,l?.useMaxWidth??!0)},`draw`);function $(e){return e.join(`|`)}e($,`stableSetsKey`);function He(e,t,n,r,i,a){let o=e?.useDebugLayout??!1,s=n.select(`svg`).append(`g`).attr(`class`,`venn-text-nodes`),c=new Map;for(let e of r){let t=$(e.sets),n=c.get(t);n?n.push(e):c.set(t,[e])}for(let[e,n]of c.entries()){let r=t.get(e);if(!r?.text)continue;let c=r.text.x,l=r.text.y,u=Math.min(...r.circles.map(e=>e.radius)),d=Math.min(...r.circles.map(e=>e.radius-Math.hypot(c-e.x,l-e.y))),f=Number.isFinite(d)?Math.max(0,d):0;f===0&&Number.isFinite(u)&&(f=u*.6);let p=s.append(`g`).attr(`class`,`venn-text-area`).attr(`font-size`,`${40*i}px`);o&&p.append(`circle`).attr(`class`,`venn-text-debug-circle`).attr(`cx`,c).attr(`cy`,l).attr(`r`,f).attr(`fill`,`none`).attr(`stroke`,`purple`).attr(`stroke-width`,1.5*i).attr(`stroke-dasharray`,`${6*i} ${4*i}`);let m=Math.max(80*i,f*2*.95),h=Math.max(60*i,f*2*.95),g=(r.data.label&&r.data.label.length>0?Math.min(32*i,f*.25):0)+(n.length<=2?30*i:0),_=c-m/2,v=l-h/2+g,y=Math.max(1,Math.ceil(Math.sqrt(n.length))),b=Math.max(1,Math.ceil(n.length/y)),x=m/y,S=h/b;for(let[e,t]of n.entries()){let n=e%y,r=Math.floor(e/y),s=_+x*(n+.5),c=v+S*(r+.5);o&&p.append(`rect`).attr(`class`,`venn-text-debug-cell`).attr(`x`,_+x*n).attr(`y`,v+S*r).attr(`width`,x).attr(`height`,S).attr(`fill`,`none`).attr(`stroke`,`teal`).attr(`stroke-width`,1*i).attr(`stroke-dasharray`,`${4*i} ${3*i}`);let l=x*.9,u=S*.9,d=p.append(`foreignObject`).attr(`class`,`venn-text-node-fo`).attr(`width`,l).attr(`height`,u).attr(`x`,s-l/2).attr(`y`,c-u/2).attr(`overflow`,`visible`),f=a.get(t.id)?.color,m=d.append(`xhtml:span`).attr(`class`,`venn-text-node`).style(`display`,`flex`).style(`width`,`100%`).style(`height`,`100%`).style(`white-space`,`normal`).style(`align-items`,`center`).style(`justify-content`,`center`).style(`text-align`,`center`).style(`overflow-wrap`,`normal`).style(`word-break`,`normal`).text(t.label??t.id);f&&m.style(`color`,f)}}}e(He,`renderTextNodes`);var Ue={parser:b,db:ie,renderer:{draw:Ve},styles:ae};export{Ue as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/wardley-L42UT6IY-YAZPMKU5-eOQL-Mtm.js b/docs/dist/assets/wardley-L42UT6IY-YAZPMKU5-eOQL-Mtm.js new file mode 100644 index 00000000..076eaf35 --- /dev/null +++ b/docs/dist/assets/wardley-L42UT6IY-YAZPMKU5-eOQL-Mtm.js @@ -0,0 +1 @@ +import{v as e}from"./chunk-BBDM4ZFP-DhnAO8sj.js";export{e as createWardleyServices}; \ No newline at end of file diff --git a/docs/dist/assets/wardleyDiagram-OB3YXH5L-B0fZBZtL.js b/docs/dist/assets/wardleyDiagram-OB3YXH5L-B0fZBZtL.js new file mode 100644 index 00000000..02c9a5de --- /dev/null +++ b/docs/dist/assets/wardleyDiagram-OB3YXH5L-B0fZBZtL.js @@ -0,0 +1,78 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{T as t}from"./chunk-V7P66DNM-D246Sefn.js";import{C as n,E as r,J as i,Q as a,S as o,Y as s,b as c,k as l,l as u,o as d,x as f}from"./chunk-Q52JI7PB-BeSPinqD.js";import{t as p}from"./chunk-PUIB63ON-iBBh92CL.js";import"./chunk-7TFACZ55-BO7C1qvL.js";import{i as m}from"./chunk-BSZA5ISF-LqNHBHyp.js";import{y as h}from"./chunk-BBDM4ZFP-DhnAO8sj.js";import{t as g}from"./chunk-6ZKBGPIT-B4RTUexp.js";var _=e((e,t)=>{let n=e<=1?e*100:e;if(n<0||n>100)throw Error(`${t} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return n},`toPercent`),v=e((e,t,n)=>({x:_(t,`${n} evolution`),y:_(e,`${n} visibility`)}),`toCoordinates`),y=e(e=>{if(e){if(e===`+<>`)return`bidirectional`;if(e===`+<`)return`backward`;if(e===`+>`)return`forward`}},`getFlowFromPort`),b=e(e=>{if(!e?.startsWith(`+`))return{};let t=/^\+'([^']*)'/.exec(e)?.[1];return e.includes(`<>`)?{flow:`bidirectional`,label:t}:e.includes(`<`)?{flow:`backward`,label:t}:e.includes(`>`)?{flow:`forward`,label:t}:{label:t}},`extractFlowFromArrow`),x=e((e,t)=>{if(g(e,t),e.size&&t.setSize(e.size.width,e.size.height),e.evolution){let n=e.evolution.stages.map(e=>e.secondName?`${e.name.trim()} / ${e.secondName.trim()}`:e.name.trim()),r=e.evolution.stages.filter(e=>e.boundary!==void 0).map(e=>e.boundary);t.updateAxes({stages:n,stageBoundaries:r})}if(e.anchors.forEach(e=>{let n=v(e.visibility,e.evolution,`Anchor "${e.name}"`);t.addNode(e.name,e.name,n.x,n.y,`anchor`)}),e.components.forEach(e=>{let n=v(e.visibility,e.evolution,`Component "${e.name}"`),r=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,i=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,a=e.decorator?.strategy;t.addNode(e.name,e.name,n.x,n.y,`component`,r,i,e.inertia,a)}),e.notes.forEach(e=>{let n=v(e.visibility,e.evolution,`Note "${e.text}"`);t.addNote(e.text,n.x,n.y)}),e.pipelines.forEach(e=>{let n=t.getNode(e.parent);if(!n||typeof n.y!=`number`)throw Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);let r=n.y;t.startPipeline(e.parent),e.components.forEach(n=>{let i=`${e.parent}_${n.name}`,a=n.label?(n.label.negX?-1:1)*n.label.offsetX:void 0,o=n.label?(n.label.negY?-1:1)*n.label.offsetY:void 0,s=_(n.evolution,`Pipeline component "${n.name}" evolution`);t.addNode(i,n.name,s,r,`pipeline-component`,a,o),t.addPipelineComponent(e.parent,i)})}),e.links.forEach(e=>{let n=!!e.arrow&&(e.arrow.includes(`-.->`)||e.arrow.includes(`.-.`)),r=y(e.fromPort)??y(e.toPort),{flow:i,label:a}=b(e.arrow);!r&&i&&(r=i);let o=e.linkLabel,s=a??o;t.addLink(t.resolveNodeId(e.from),t.resolveNodeId(e.to),n,s,r)}),e.evolves.forEach(e=>{let n=t.getNode(e.component);if(n?.y!==void 0){let r=_(e.target,`Evolve target for "${e.component}"`);t.addTrend(e.component,r,n.y)}}),e.annotations.length>0){let n=e.annotations[0],r=v(n.x,n.y,`Annotations box`);t.setAnnotationsBox(r.x,r.y)}e.annotation.forEach(e=>{let n=v(e.x,e.y,`Annotation ${e.number}`);t.addAnnotation(e.number,[{x:n.x,y:n.y}],e.text)}),e.accelerators.forEach(e=>{let n=v(e.x,e.y,`Accelerator "${e.name}"`);t.addAccelerator(e.name,n.x,n.y)}),e.deaccelerators.forEach(e=>{let n=v(e.x,e.y,`Deaccelerator "${e.name}"`);t.addDeaccelerator(e.name,n.x,n.y)})},`populateDb`),S={parser:{yy:void 0},parse:e(async e=>{let n=await h(`wardley`,e);t.debug(n);let r=S.parser?.yy;if(!r||typeof r.addNode!=`function`)throw Error(`parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);x(n,r)},`parse`)},C=new class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{e(this,`WardleyBuilder`)}addNode(e){let t=this.nodes.get(e.id)??{id:e.id,label:e.label},n={...t,...e,className:e.className??t.className,labelOffsetX:e.labelOffsetX??t.labelOffsetX,labelOffsetY:e.labelOffsetY??t.labelOffsetY};this.nodes.set(e.id,n)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});let t=this.nodes.get(e);t&&(t.isPipelineParent=!0)}addPipelineComponent(e,t){let n=this.pipelines.get(e);n&&n.componentIds.push(t);let r=this.nodes.get(t);r&&(r.inPipeline=!0)}addAnnotation(e){this.annotations.push(e)}addNote(e){this.notes.push(e)}addAccelerator(e){this.accelerators.push(e)}addDeaccelerator(e){this.deaccelerators.push(e)}setAnnotationsBox(e,t){this.annotationsBox={x:e,y:t}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,t){this.size={width:e,height:t}}getNode(e){return this.nodes.get(e)}resolveNodeId(e){if(this.nodes.has(e))return e;for(let[t,n]of this.nodes)if(n.label===e)return t;return e}build(){let e=[];for(let t of this.nodes.values()){if(typeof t.x!=`number`||typeof t.y!=`number`)throw Error(`Node "${t.label}" is missing coordinates`);e.push(t)}return{nodes:e,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}};function w(){return n()[`wardley-beta`]}e(w,`getConfig`);function T(e,t,n,r,i,a,o,s,c){C.addNode({id:e,label:t,x:n,y:r,className:i,labelOffsetX:a,labelOffsetY:o,inertia:s,sourceStrategy:c})}e(T,`addNode`);function E(e,t,n=!1,r,i){C.addLink({source:e,target:t,dashed:n,label:r,flow:i})}e(E,`addLink`);function D(e,t,n){C.addTrend({nodeId:e,targetX:t,targetY:n})}e(D,`addTrend`);function O(e,t,n){C.addAnnotation({number:e,coordinates:t,text:n})}e(O,`addAnnotation`);function k(e,t,n){C.addNote({text:e,x:t,y:n})}e(k,`addNote`);function A(e,t,n){C.addAccelerator({name:e,x:t,y:n})}e(A,`addAccelerator`);function j(e,t,n){C.addDeaccelerator({name:e,x:t,y:n})}e(j,`addDeaccelerator`);function M(e,t){C.setAnnotationsBox(e,t)}e(M,`setAnnotationsBox`);function N(e,t){C.setSize(e,t)}e(N,`setSize`);function P(e){C.startPipeline(e)}e(P,`startPipeline`);function F(e,t){C.addPipelineComponent(e,t)}e(F,`addPipelineComponent`);function I(e){C.setAxes(e)}e(I,`updateAxes`);function L(e){return C.getNode(e)}e(L,`getNode`);function R(e){return C.resolveNodeId(e)}e(R,`resolveNodeId`);function z(){return C.build()}e(z,`getWardleyData`);function B(){C.clear(),d()}e(B,`clear`);var V={getConfig:w,addNode:T,addLink:E,addTrend:D,addAnnotation:O,addNote:k,addAccelerator:A,addDeaccelerator:j,setAnnotationsBox:M,setSize:N,startPipeline:P,addPipelineComponent:F,updateAxes:I,getNode:L,resolveNodeId:R,getWardleyData:z,clear:B,setAccTitle:s,getAccTitle:f,setDiagramTitle:a,getDiagramTitle:r,getAccDescription:c,setAccDescription:i},H=[`Genesis`,`Custom Built`,`Product`,`Commodity`],U=e(()=>{let{themeVariables:e}=n();return{backgroundColor:e.wardley?.backgroundColor??e.background??`#fff`,axisColor:e.wardley?.axisColor??`#000`,axisTextColor:e.wardley?.axisTextColor??e.primaryTextColor??`#222`,gridColor:e.wardley?.gridColor??`rgba(100, 100, 100, 0.2)`,componentFill:e.wardley?.componentFill??`#fff`,componentStroke:e.wardley?.componentStroke??`#000`,componentLabelColor:e.wardley?.componentLabelColor??e.primaryTextColor??`#222`,linkStroke:e.wardley?.linkStroke??`#000`,evolutionStroke:e.wardley?.evolutionStroke??`#dc3545`,annotationStroke:e.wardley?.annotationStroke??`#000`,annotationTextColor:e.wardley?.annotationTextColor??e.primaryTextColor??`#222`,annotationFill:e.wardley?.annotationFill??e.background??`#fff`}},`getTheme`),W=e(()=>{let e=n()[`wardley-beta`];return{width:e?.width??900,height:e?.height??600,padding:e?.padding??48,nodeRadius:e?.nodeRadius??6,nodeLabelOffset:e?.nodeLabelOffset??8,axisFontSize:e?.axisFontSize??12,labelFontSize:e?.labelFontSize??10,showGrid:e?.showGrid??!1,useMaxWidth:e?.useMaxWidth??!0}},`getConfigValues`),G={parser:S,db:V,renderer:{draw:e((n,r,i,a)=>{t.debug(`Rendering Wardley map +`+n);let o=W(),s=U(),c=o.nodeRadius*1.6,l=a.db,d=l.getWardleyData(),f=l.getDiagramTitle(),m=d.size?.width??o.width,h=d.size?.height??o.height,g=p(r);g.selectAll(`*`).remove(),u(g,h,m,o.useMaxWidth),g.attr(`viewBox`,`0 0 ${m} ${h}`);let _=g.append(`g`).attr(`class`,`wardley-map`),v=g.append(`defs`);v.append(`marker`).attr(`id`,`arrow-${r}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,9).attr(`refY`,5).attr(`markerWidth`,6).attr(`markerHeight`,6).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`fill`,s.evolutionStroke).attr(`stroke`,`none`),v.append(`marker`).attr(`id`,`link-arrow-end-${r}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,9).attr(`refY`,5).attr(`markerWidth`,5).attr(`markerHeight`,5).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`fill`,s.linkStroke).attr(`stroke`,`none`),v.append(`marker`).attr(`id`,`link-arrow-start-${r}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,1).attr(`refY`,5).attr(`markerWidth`,5).attr(`markerHeight`,5).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 10 0 L 0 5 L 10 10 z`).attr(`fill`,s.linkStroke).attr(`stroke`,`none`),_.append(`rect`).attr(`class`,`wardley-background`).attr(`width`,m).attr(`height`,h).attr(`fill`,s.backgroundColor);let y=m-o.padding*2,b=h-o.padding*2;f&&_.append(`text`).attr(`class`,`wardley-title`).attr(`x`,m/2).attr(`y`,o.padding/2).attr(`fill`,s.axisTextColor).attr(`font-size`,o.axisFontSize*1.05).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(f);let x=e(e=>o.padding+e/100*y,`projectX`),S=e(e=>h-o.padding-e/100*b,`projectY`),C=_.append(`g`).attr(`class`,`wardley-axes`);C.append(`line`).attr(`x1`,o.padding).attr(`x2`,m-o.padding).attr(`y1`,h-o.padding).attr(`y2`,h-o.padding).attr(`stroke`,s.axisColor).attr(`stroke-width`,1),C.append(`line`).attr(`x1`,o.padding).attr(`x2`,o.padding).attr(`y1`,o.padding).attr(`y2`,h-o.padding).attr(`stroke`,s.axisColor).attr(`stroke-width`,1);let w=d.axes.xLabel??`Evolution`,T=d.axes.yLabel??`Visibility`;C.append(`text`).attr(`class`,`wardley-axis-label wardley-axis-label-x`).attr(`x`,o.padding+y/2).attr(`y`,h-o.padding/4).attr(`fill`,s.axisTextColor).attr(`font-size`,o.axisFontSize).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).text(w),C.append(`text`).attr(`class`,`wardley-axis-label wardley-axis-label-y`).attr(`x`,o.padding/3).attr(`y`,o.padding+b/2).attr(`fill`,s.axisTextColor).attr(`font-size`,o.axisFontSize).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).attr(`transform`,`rotate(-90 ${o.padding/3} ${o.padding+b/2})`).text(T);let E=d.axes.stages&&d.axes.stages.length>0?d.axes.stages:H;if(E.length>0){let e=_.append(`g`).attr(`class`,`wardley-stages`),t=d.axes.stageBoundaries,n=[];if(t&&t.length===E.length){let e=0;t.forEach(t=>{n.push({start:e,end:t}),e=t})}else{let e=1/E.length;E.forEach((t,r)=>{n.push({start:r*e,end:(r+1)*e})})}E.forEach((t,r)=>{let i=n[r],a=o.padding+i.start*y,c=(a+(o.padding+i.end*y))/2;r>0&&e.append(`line`).attr(`x1`,a).attr(`x2`,a).attr(`y1`,o.padding).attr(`y2`,h-o.padding).attr(`stroke`,`#000`).attr(`stroke-width`,1).attr(`stroke-dasharray`,`5 5`).attr(`opacity`,.8),e.append(`text`).attr(`class`,`wardley-stage-label`).attr(`x`,c).attr(`y`,h-o.padding/1.5).attr(`fill`,s.axisTextColor).attr(`font-size`,o.axisFontSize-2).attr(`text-anchor`,`middle`).text(t)})}if(o.showGrid){let e=_.append(`g`).attr(`class`,`wardley-grid`);for(let t=1;t<4;t++){let n=t/4,r=o.padding+y*n;e.append(`line`).attr(`x1`,r).attr(`x2`,r).attr(`y1`,o.padding).attr(`y2`,h-o.padding).attr(`stroke`,s.gridColor).attr(`stroke-dasharray`,`2 6`),e.append(`line`).attr(`x1`,o.padding).attr(`x2`,m-o.padding).attr(`y1`,h-o.padding-b*n).attr(`y2`,h-o.padding-b*n).attr(`stroke`,s.gridColor).attr(`stroke-dasharray`,`2 6`)}}let D=new Map;if(d.nodes.forEach(e=>{D.set(e.id,{x:x(e.x),y:S(e.y),node:e})}),d.pipelines.length>0){let e=_.append(`g`).attr(`class`,`wardley-pipelines`),t=_.append(`g`).attr(`class`,`wardley-pipeline-links`);d.pipelines.forEach(n=>{if(n.componentIds.length===0)return;let r=n.componentIds.map(e=>({id:e,pos:D.get(e),node:d.nodes.find(t=>t.id===e)})).filter(e=>e.pos&&e.node).sort((e,t)=>e.node.x-t.node.x);for(let e=0;e{let t=D.get(e);t&&(i=Math.min(i,t.x),a=Math.max(a,t.x),l=t.y)}),i!==1/0&&a!==-1/0){let t=o.nodeRadius*4,r=l-t/2,u=D.get(n.nodeId);u&&(u.x=(i+a)/2,u.y=r-c/6),e.append(`rect`).attr(`class`,`wardley-pipeline-box`).attr(`x`,i-15).attr(`y`,r).attr(`width`,a-i+30).attr(`height`,t).attr(`fill`,`none`).attr(`stroke`,s.axisColor).attr(`stroke-width`,1.5).attr(`rx`,4).attr(`ry`,4)}})}let O=_.append(`g`).attr(`class`,`wardley-links`),k=new Map;d.pipelines.forEach(e=>{k.set(e.nodeId,new Set(e.componentIds))});let A=d.links.filter(e=>!(!D.has(e.source)||!D.has(e.target)||k.get(e.target)?.has(e.source)));O.selectAll(`line`).data(A).enter().append(`line`).attr(`class`,e=>`wardley-link${e.dashed?` wardley-link--dashed`:``}`).attr(`x1`,e=>{let t=D.get(e.source),n=D.get(e.target),r=d.nodes.find(t=>t.id===e.source).isPipelineParent?c/Math.sqrt(2):o.nodeRadius,i=n.x-t.x,a=n.y-t.y,s=Math.sqrt(i*i+a*a);return t.x+i/s*r}).attr(`y1`,e=>{let t=D.get(e.source),n=D.get(e.target),r=d.nodes.find(t=>t.id===e.source).isPipelineParent?c/Math.sqrt(2):o.nodeRadius,i=n.x-t.x,a=n.y-t.y,s=Math.sqrt(i*i+a*a);return t.y+a/s*r}).attr(`x2`,e=>{let t=D.get(e.source),n=D.get(e.target),r=d.nodes.find(t=>t.id===e.target).isPipelineParent?c/Math.sqrt(2):o.nodeRadius,i=t.x-n.x,a=t.y-n.y,s=Math.sqrt(i*i+a*a);return n.x+i/s*r}).attr(`y2`,e=>{let t=D.get(e.source),n=D.get(e.target),r=d.nodes.find(t=>t.id===e.target).isPipelineParent?c/Math.sqrt(2):o.nodeRadius,i=t.x-n.x,a=t.y-n.y,s=Math.sqrt(i*i+a*a);return n.y+a/s*r}).attr(`stroke`,s.linkStroke).attr(`stroke-width`,1).attr(`stroke-dasharray`,e=>e.dashed?`6 6`:null).attr(`marker-end`,e=>e.flow===`forward`||e.flow===`bidirectional`?`url(#link-arrow-end-${r})`:null).attr(`marker-start`,e=>e.flow===`backward`||e.flow===`bidirectional`?`url(#link-arrow-start-${r})`:null),O.selectAll(`text`).data(A.filter(e=>e.label)).enter().append(`text`).attr(`class`,`wardley-link-label`).attr(`x`,e=>{let t=D.get(e.source),n=D.get(e.target),r=(t.x+n.x)/2,i=n.y-t.y,a=n.x-t.x;return r+i/Math.sqrt(a*a+i*i)*8}).attr(`y`,e=>{let t=D.get(e.source),n=D.get(e.target),r=(t.y+n.y)/2,i=n.x-t.x,a=n.y-t.y,o=Math.sqrt(i*i+a*a);return r+-i/o*8}).attr(`fill`,s.axisTextColor).attr(`font-size`,o.labelFontSize).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).attr(`transform`,e=>{let t=D.get(e.source),n=D.get(e.target),r=(t.x+n.x)/2,i=(t.y+n.y)/2,a=n.x-t.x,o=n.y-t.y,s=Math.sqrt(a*a+o*o),c=o/s,l=-a/s,u=r+c*8,d=i+l*8,f=Math.atan2(o,a)*180/Math.PI;return(f>90||f<-90)&&(f+=180),`rotate(${f} ${u} ${d})`}).text(e=>e.label);let j=_.append(`g`).attr(`class`,`wardley-trends`),M=d.trends.map(e=>{let t=D.get(e.nodeId);if(!t)return null;let n=x(e.targetX),r=S(e.targetY),i=n-t.x,a=r-t.y,s=Math.sqrt(i*i+a*a),c=o.nodeRadius+2;return{origin:t,targetX:n,targetY:r,adjustedX2:s>c?n-i/s*c:n,adjustedY2:s>c?r-a/s*c:r}}).filter(e=>e!==null);j.selectAll(`line`).data(M).enter().append(`line`).attr(`class`,`wardley-trend`).attr(`x1`,e=>e.origin.x).attr(`y1`,e=>e.origin.y).attr(`x2`,e=>e.adjustedX2).attr(`y2`,e=>e.adjustedY2).attr(`stroke`,s.evolutionStroke).attr(`stroke-width`,1).attr(`stroke-dasharray`,`4 4`).attr(`marker-end`,`url(#arrow-${r})`);let N=_.append(`g`).attr(`class`,`wardley-nodes`).selectAll(`g`).data(d.nodes).enter().append(`g`).attr(`class`,e=>[`wardley-node`,e.className?`wardley-node--${e.className}`:``].filter(Boolean).join(` `));N.filter(e=>e.sourceStrategy===`outsource`).append(`circle`).attr(`class`,`wardley-outsource-overlay`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y).attr(`r`,o.nodeRadius*2).attr(`fill`,`#666`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),N.filter(e=>e.sourceStrategy===`buy`).append(`circle`).attr(`class`,`wardley-buy-overlay`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y).attr(`r`,o.nodeRadius*2).attr(`fill`,`#ccc`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),N.filter(e=>e.sourceStrategy===`build`).append(`circle`).attr(`class`,`wardley-build-overlay`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y).attr(`r`,o.nodeRadius*2).attr(`fill`,`#eee`).attr(`stroke`,`#000`).attr(`stroke-width`,1);let P=N.filter(e=>e.sourceStrategy===`market`);P.append(`circle`).attr(`class`,`wardley-market-overlay`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y).attr(`r`,o.nodeRadius*2).attr(`fill`,`white`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),N.filter(e=>!e.isPipelineParent&&e.sourceStrategy!==`market`&&e.className!==`anchor`).append(`circle`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y).attr(`r`,o.nodeRadius).attr(`fill`,s.componentFill).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1);let F=o.nodeRadius*.7,I=o.nodeRadius*1.2;if(P.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>D.get(e.id).x).attr(`y1`,e=>D.get(e.id).y-I).attr(`x2`,e=>D.get(e.id).x-I*Math.cos(Math.PI/6)).attr(`y2`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),P.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>D.get(e.id).x-I*Math.cos(Math.PI/6)).attr(`y1`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`x2`,e=>D.get(e.id).x+I*Math.cos(Math.PI/6)).attr(`y2`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),P.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>D.get(e.id).x+I*Math.cos(Math.PI/6)).attr(`y1`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`x2`,e=>D.get(e.id).x).attr(`y2`,e=>D.get(e.id).y-I).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),P.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y-I).attr(`r`,F).attr(`fill`,`white`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,2),P.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>D.get(e.id).x-I*Math.cos(Math.PI/6)).attr(`cy`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`r`,F).attr(`fill`,`white`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,2),P.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>D.get(e.id).x+I*Math.cos(Math.PI/6)).attr(`cy`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`r`,F).attr(`fill`,`white`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,2),N.filter(e=>e.isPipelineParent===!0).append(`rect`).attr(`x`,e=>D.get(e.id).x-c/2).attr(`y`,e=>D.get(e.id).y-c/2).attr(`width`,c).attr(`height`,c).attr(`fill`,s.componentFill).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),N.filter(e=>e.inertia===!0).append(`line`).attr(`class`,`wardley-inertia`).attr(`x1`,e=>{let t=D.get(e.id),n=e.isPipelineParent?c/2+15:o.nodeRadius+15;return e.sourceStrategy&&(n+=o.nodeRadius+10),t.x+n}).attr(`y1`,e=>{let t=D.get(e.id),n=e.isPipelineParent?c:o.nodeRadius*2;return t.y-n/2}).attr(`x2`,e=>{let t=D.get(e.id),n=e.isPipelineParent?c/2+15:o.nodeRadius+15;return e.sourceStrategy&&(n+=o.nodeRadius+10),t.x+n}).attr(`y2`,e=>{let t=D.get(e.id),n=e.isPipelineParent?c:o.nodeRadius*2;return t.y+n/2}).attr(`stroke`,s.componentStroke).attr(`stroke-width`,6),N.append(`text`).attr(`x`,e=>{let t=D.get(e.id);if(e.className===`anchor`)return e.labelOffsetX===void 0?t.x:t.x+e.labelOffsetX;let n=o.nodeLabelOffset;e.sourceStrategy&&e.labelOffsetX===void 0&&(n+=10);let r=e.labelOffsetX??n;return t.x+r}).attr(`y`,e=>{let t=D.get(e.id);if(e.className===`anchor`)return e.labelOffsetY===void 0?t.y-3:t.y+e.labelOffsetY;let n=-o.nodeLabelOffset;e.sourceStrategy&&e.labelOffsetY===void 0&&(n-=10);let r=e.labelOffsetY??n;return t.y+r}).attr(`class`,`wardley-node-label`).attr(`fill`,e=>e.className===`evolved`?s.evolutionStroke:e.className===`anchor`?`#000`:s.componentLabelColor).attr(`font-size`,o.labelFontSize).attr(`font-weight`,e=>e.className===`anchor`?`bold`:`normal`).attr(`text-anchor`,e=>e.className===`anchor`?`middle`:`start`).attr(`dominant-baseline`,e=>e.className===`anchor`?`middle`:`auto`).text(e=>e.label),d.annotations.length>0){let e=_.append(`g`).attr(`class`,`wardley-annotations`);if(d.annotations.forEach(t=>{let n=t.coordinates.map(e=>({x:x(e.x),y:S(e.y)}));if(n.length>1)for(let t=0;t{let r=e.append(`g`).attr(`class`,`wardley-annotation`);r.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,10).attr(`fill`,`white`).attr(`stroke`,s.axisColor).attr(`stroke-width`,1.5),r.append(`text`).attr(`x`,n.x).attr(`y`,n.y).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`central`).attr(`font-size`,10).attr(`fill`,s.axisTextColor).attr(`font-weight`,`bold`).text(t.number)})}),d.annotationsBox){let t=x(d.annotationsBox.x),n=S(d.annotationsBox.y),r=e.append(`g`).attr(`class`,`wardley-annotations-box`),i=[...d.annotations].filter(e=>e.text).sort((e,t)=>e.number-t.number),a=[];if(i.forEach((e,i)=>{let o=r.append(`text`).attr(`x`,t+10).attr(`y`,n+10+(i+1)*16).attr(`font-size`,11).attr(`fill`,s.axisTextColor).attr(`text-anchor`,`start`).attr(`dominant-baseline`,`middle`).text(`${e.number}. ${e.text}`);a.push(o)}),a.length>0){let e=0,c=0;a.forEach(t=>{let n=t.node(),r=n.getComputedTextLength();e=Math.max(e,r);let i=n.getBBox();c=Math.max(c,i.height)});let l=e+20+105,u=i.length*16+20+c/2,d=o.padding,f=m-o.padding-l,p=o.padding,g=h-o.padding-u;t=Math.max(d,Math.min(t,f)),n=Math.max(p,Math.min(n,g)),a.forEach((e,r)=>{e.attr(`x`,t+10).attr(`y`,n+10+(r+1)*16)}),r.insert(`rect`,`text`).attr(`x`,t).attr(`y`,n).attr(`width`,l).attr(`height`,u).attr(`fill`,`white`).attr(`stroke`,s.axisColor).attr(`stroke-width`,1.5).attr(`rx`,4).attr(`ry`,4)}}}if(d.notes.length>0){let e=_.append(`g`).attr(`class`,`wardley-notes`);d.notes.forEach(t=>{let n=x(t.x),r=S(t.y);e.append(`text`).attr(`x`,n).attr(`y`,r).attr(`text-anchor`,`start`).attr(`font-size`,11).attr(`fill`,s.axisTextColor).attr(`font-weight`,`bold`).text(t.text)})}if(d.accelerators.length>0){let e=_.append(`g`).attr(`class`,`wardley-accelerators`);d.accelerators.forEach(t=>{let n=x(t.x),r=S(t.y),i=` + M ${n} ${r-30/2} + L ${n+60-20} ${r-30/2} + L ${n+60-20} ${r-30/2-8} + L ${n+60} ${r} + L ${n+60-20} ${r+30/2+8} + L ${n+60-20} ${r+30/2} + L ${n} ${r+30/2} + Z + `;e.append(`path`).attr(`d`,i).attr(`fill`,`white`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),e.append(`text`).attr(`x`,n+60/2).attr(`y`,r+30/2+15).attr(`text-anchor`,`middle`).attr(`font-size`,10).attr(`fill`,s.axisTextColor).attr(`font-weight`,`bold`).text(t.name)})}if(d.deaccelerators.length>0){let e=_.append(`g`).attr(`class`,`wardley-deaccelerators`);d.deaccelerators.forEach(t=>{let n=x(t.x),r=S(t.y),i=` + M ${n+60} ${r-30/2} + L ${n+20} ${r-30/2} + L ${n+20} ${r-30/2-8} + L ${n} ${r} + L ${n+20} ${r+30/2+8} + L ${n+20} ${r+30/2} + L ${n+60} ${r+30/2} + Z + `;e.append(`path`).attr(`d`,i).attr(`fill`,`white`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),e.append(`text`).attr(`x`,n+60/2).attr(`y`,r+30/2+15).attr(`text-anchor`,`middle`).attr(`font-size`,10).attr(`fill`,s.axisTextColor).attr(`font-weight`,`bold`).text(t.name)})}},`draw`)},styles:e(({wardley:e}={})=>{let t=m(m(l(),o().themeVariables).wardley,e);return` + .wardley-background { + fill: ${t.backgroundColor}; + } + .wardley-axes line, .wardley-axes path { + stroke: ${t.axisColor}; + } + .wardley-axis-label { + fill: ${t.axisTextColor}; + } + .wardley-stage-label { + fill: ${t.axisTextColor}; + } + .wardley-grid line { + stroke: ${t.gridColor}; + } + .wardley-node circle { + fill: ${t.componentFill}; + stroke: ${t.componentStroke}; + } + .wardley-node-label { + fill: ${t.componentLabelColor}; + } + .wardley-link { + stroke: ${t.linkStroke}; + } + .wardley-link--dashed { + stroke-dasharray: 4 4; + } + .wardley-link-label { + fill: ${t.axisTextColor}; + } + .wardley-trend line { + stroke: ${t.evolutionStroke}; + } + .wardley-annotation-line { + stroke: ${t.annotationStroke}; + } + .wardley-annotation circle { + fill: ${t.annotationFill}; + stroke: ${t.annotationStroke}; + } + .wardley-annotation text { + fill: ${t.annotationTextColor}; + } + .wardley-annotations-box rect { + fill: ${t.annotationFill}; + stroke: ${t.annotationStroke}; + } + .wardley-annotations-box text { + fill: ${t.annotationTextColor}; + } + .wardley-pipeline-box { + stroke: ${t.componentStroke}; + } + .wardley-notes text { + fill: ${t.axisTextColor}; + } + `},`styles`)};export{G as diagram}; \ No newline at end of file diff --git a/docs/dist/assets/xychartDiagram-2MMURBJR-DRRLGK8k.js b/docs/dist/assets/xychartDiagram-2MMURBJR-DRRLGK8k.js new file mode 100644 index 00000000..d94cfcfe --- /dev/null +++ b/docs/dist/assets/xychartDiagram-2MMURBJR-DRRLGK8k.js @@ -0,0 +1,7 @@ +import{r as e}from"./chunk-PTVI3W5X-DVfdoxm6.js";import{S as t,T as n,a as r,x as i}from"./chunk-V7P66DNM-D246Sefn.js";import{E as a,G as o,J as s,Q as c,S as l,Y as u,b as d,k as f,l as p,m,o as h,x as g}from"./chunk-Q52JI7PB-BeSPinqD.js";import{t as _}from"./chunk-PUIB63ON-iBBh92CL.js";import"./chunk-7TFACZ55-BO7C1qvL.js";import{i as v}from"./chunk-BSZA5ISF-LqNHBHyp.js";import{t as y}from"./chunk-YSJUE5HW-eH4JtoEG.js";var b=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,10,12,14,16,18,19,21,23],r=[2,6],i=[1,3],a=[1,5],o=[1,6],s=[1,7],c=[1,5,10,12,14,16,18,19,21,23,34,35,36],l=[1,25],u=[1,26],d=[1,28],f=[1,29],p=[1,30],m=[1,31],h=[1,32],g=[1,33],_=[1,34],v=[1,35],y=[1,36],b=[1,37],x=[1,43],S=[1,42],C=[1,47],w=[1,50],T=[1,10,12,14,16,18,19,21,23,34,35,36],E=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],D=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],O=[1,64],k={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:`error`,5:`XYCHART`,8:`CHART_ORIENTATION`,10:`title`,12:`X_AXIS`,14:`Y_AXIS`,16:`LINE`,18:`BAR`,19:`acc_title`,20:`acc_title_value`,21:`acc_descr`,22:`acc_descr_value`,23:`acc_descr_multiline_value`,24:`SQUARE_BRACES_START`,26:`SQUARE_BRACES_END`,27:`NUMBER_WITH_DECIMAL`,28:`COMMA`,31:`ARROW_DELIMITER`,34:`NEWLINE`,35:`SEMI`,36:`EOF`,38:`STR`,39:`MD_STR`,41:`AMP`,42:`NUM`,43:`ALPHA`,44:`PLUS`,45:`EQUALS`,46:`MULT`,47:`DOT`,48:`BRKT`,49:`MINUS`,50:`UNDERSCORE`},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 5:r.setOrientation(a[s]);break;case 9:r.setDiagramTitle(a[s].text.trim());break;case 12:r.setLineData({text:``,type:`text`},a[s]);break;case 13:r.setLineData(a[s-1],a[s]);break;case 14:r.setBarData({text:``,type:`text`},a[s]);break;case 15:r.setBarData(a[s-1],a[s]);break;case 16:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 19:this.$=a[s-1];break;case 20:this.$=[Number(a[s-2]),...a[s]];break;case 21:this.$=[Number(a[s])];break;case 22:r.setXAxisTitle(a[s]);break;case 23:r.setXAxisTitle(a[s-1]);break;case 24:r.setXAxisTitle({type:`text`,text:``});break;case 25:r.setXAxisBand(a[s]);break;case 26:r.setXAxisRangeData(Number(a[s-2]),Number(a[s]));break;case 27:this.$=a[s-1];break;case 28:this.$=[a[s-2],...a[s]];break;case 29:this.$=[a[s]];break;case 30:r.setYAxisTitle(a[s]);break;case 31:r.setYAxisTitle(a[s-1]);break;case 32:r.setYAxisTitle({type:`text`,text:``});break;case 33:r.setYAxisRangeData(Number(a[s-2]),Number(a[s]));break;case 37:this.$={text:a[s],type:`text`};break;case 38:this.$={text:a[s],type:`text`};break;case 39:this.$={text:a[s],type:`markdown`};break;case 40:this.$=a[s];break;case 41:this.$=a[s-1]+``+a[s];break}},`anonymous`),table:[t(n,r,{3:1,4:2,7:4,5:i,34:a,35:o,36:s}),{1:[3]},t(n,r,{4:2,7:4,3:8,5:i,34:a,35:o,36:s}),t(n,r,{4:2,7:4,6:9,3:10,5:i,8:[1,11],34:a,35:o,36:s}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),{1:[2,1]},t(n,r,{4:2,7:4,3:21,5:i,34:a,35:o,36:s}),{1:[2,3]},t(c,[2,5]),t(n,[2,7],{4:22,34:a,35:o,36:s}),{11:23,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},{11:39,13:38,24:x,27:S,29:40,30:41,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},{11:45,15:44,27:C,33:46,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},{11:49,17:48,24:w,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},{11:52,17:51,24:w,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},{20:[1,53]},{22:[1,54]},t(T,[2,18]),{1:[2,2]},t(T,[2,8]),t(T,[2,9]),t(E,[2,37],{40:55,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b}),t(E,[2,38]),t(E,[2,39]),t(D,[2,40]),t(D,[2,42]),t(D,[2,43]),t(D,[2,44]),t(D,[2,45]),t(D,[2,46]),t(D,[2,47]),t(D,[2,48]),t(D,[2,49]),t(D,[2,50]),t(D,[2,51]),t(T,[2,10]),t(T,[2,22],{30:41,29:56,24:x,27:S}),t(T,[2,24]),t(T,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},t(T,[2,11]),t(T,[2,30],{33:60,27:C}),t(T,[2,32]),{31:[1,61]},t(T,[2,12]),{17:62,24:w},{25:63,27:O},t(T,[2,14]),{17:65,24:w},t(T,[2,16]),t(T,[2,17]),t(D,[2,41]),t(T,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(T,[2,31]),{27:[1,69]},t(T,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(T,[2,15]),t(T,[2,26]),t(T,[2,27]),{11:59,32:72,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},t(T,[2,33]),t(T,[2,19]),{25:73,27:O},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};k.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return this.popState(),34;case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState(`acc_title`),19;case 8:return this.popState(),`acc_title_value`;case 9:return this.pushState(`acc_descr`),21;case 10:return this.popState(),`acc_descr_value`;case 11:this.pushState(`acc_descr_multiline`);break;case 12:this.popState();break;case 13:return`acc_descr_multiline_value`;case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState(`axis_data`),`X_AXIS`;case 18:return this.pushState(`axis_data`),`Y_AXIS`;case 19:return this.pushState(`axis_band_data`),24;case 20:return 31;case 21:return this.pushState(`data`),16;case 22:return this.pushState(`data`),18;case 23:return this.pushState(`data_inner`),24;case 24:return 27;case 25:return this.popState(),26;case 26:this.popState();break;case 27:this.pushState(`string`);break;case 28:this.popState();break;case 29:return`STR`;case 30:return 24;case 31:return 26;case 32:return 43;case 33:return`COLON`;case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 44:break;case 45:return 35;case 46:return 36}},`anonymous`),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\})/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}}})();function A(){this.yy={}}return e(A,`Parser`),A.prototype=k,k.Parser=A,new A})();b.parser=b;var x=b;function S(e){return e.type===`bar`}e(S,`isBarPlot`);function C(e){return e.type===`band`}e(C,`isBandAxisData`);function w(e){return e.type===`linear`}e(w,`isLinearAxisData`);var T=class{constructor(e){this.parentGroup=e}static{e(this,`TextDimensionCalculatorWithFont`)}getMaxDimension(e,t){if(!this.parentGroup)return{width:e.reduce((e,t)=>Math.max(t.length,e),0)*t,height:t};let n={width:0,height:0},r=this.parentGroup.append(`g`).attr(`visibility`,`hidden`).attr(`font-size`,t);for(let i of e){let e=y(r,1,i),a=e?e.width:i.length*t,o=e?e.height:t;n.width=Math.max(n.width,a),n.height=Math.max(n.height,o)}return r.remove(),n}},E=.7,D=.2,O=class{constructor(e,t,n,r){this.axisConfig=e,this.title=t,this.textDimensionCalculator=n,this.axisThemeConfig=r,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition=`left`,this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition=`left`}static{e(this,`BaseAxis`)}setRange(e){this.range=e,this.axisPosition===`left`||this.axisPosition===`right`?this.boundingRect.height=e[1]-e[0]:this.boundingRect.width=e[1]-e[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(e){this.axisPosition=e,this.setRange(this.range)}getTickDistance(){let e=this.getRange();return Math.abs(e[0]-e[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(e=>e.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){E*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(E*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(e){let t=e.height;if(this.axisConfig.showAxisLine&&t>this.axisConfig.axisLineWidth&&(t-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let n=this.getLabelDimension(),r=D*e.width;this.outerPadding=Math.min(n.width/2,r);let i=n.height+this.axisConfig.labelPadding*2;this.labelTextHeight=n.height,i<=t&&(t-=i,this.showLabel=!0)}if(this.axisConfig.showTick&&t>=this.axisConfig.tickLength&&(this.showTick=!0,t-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let e=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=e.height+this.axisConfig.titlePadding*2;this.titleTextHeight=e.height,n<=t&&(t-=n,this.showTitle=!0)}this.boundingRect.width=e.width,this.boundingRect.height=e.height-t}calculateSpaceIfDrawnVertical(e){let t=e.width;if(this.axisConfig.showAxisLine&&t>this.axisConfig.axisLineWidth&&(t-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let n=this.getLabelDimension(),r=D*e.height;this.outerPadding=Math.min(n.height/2,r);let i=n.width+this.axisConfig.labelPadding*2;i<=t&&(t-=i,this.showLabel=!0)}if(this.axisConfig.showTick&&t>=this.axisConfig.tickLength&&(this.showTick=!0,t-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let e=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=e.height+this.axisConfig.titlePadding*2;this.titleTextHeight=e.height,n<=t&&(t-=n,this.showTitle=!0)}this.boundingRect.width=e.width-t,this.boundingRect.height=e.height}calculateSpace(e){return this.axisPosition===`left`||this.axisPosition===`right`?this.calculateSpaceIfDrawnVertical(e):this.calculateSpaceIfDrawnHorizontally(e),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}getDrawableElementsForLeftAxis(){let e=[];if(this.showAxisLine){let t=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;e.push({type:`path`,groupTexts:[`left-axis`,`axisl-line`],data:[{path:`M ${t},${this.boundingRect.y} L ${t},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:`text`,groupTexts:[`left-axis`,`label`],data:this.getTickValues().map(e=>({text:e.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(e),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:`middle`,horizontalPos:`right`}))}),this.showTick){let t=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:`path`,groupTexts:[`left-axis`,`ticks`],data:this.getTickValues().map(e=>({path:`M ${t},${this.getScaleValue(e)} L ${t-this.axisConfig.tickLength},${this.getScaleValue(e)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:`text`,groupTexts:[`left-axis`,`title`],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:`top`,horizontalPos:`center`}]}),e}getDrawableElementsForBottomAxis(){let e=[];if(this.showAxisLine){let t=this.boundingRect.y+this.axisConfig.axisLineWidth/2;e.push({type:`path`,groupTexts:[`bottom-axis`,`axis-line`],data:[{path:`M ${this.boundingRect.x},${t} L ${this.boundingRect.x+this.boundingRect.width},${t}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:`text`,groupTexts:[`bottom-axis`,`label`],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:`top`,horizontalPos:`center`}))}),this.showTick){let t=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:`path`,groupTexts:[`bottom-axis`,`ticks`],data:this.getTickValues().map(e=>({path:`M ${this.getScaleValue(e)},${t} L ${this.getScaleValue(e)},${t+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:`text`,groupTexts:[`bottom-axis`,`title`],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:`top`,horizontalPos:`center`}]}),e}getDrawableElementsForTopAxis(){let e=[];if(this.showAxisLine){let t=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;e.push({type:`path`,groupTexts:[`top-axis`,`axis-line`],data:[{path:`M ${this.boundingRect.x},${t} L ${this.boundingRect.x+this.boundingRect.width},${t}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:`text`,groupTexts:[`top-axis`,`label`],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:`top`,horizontalPos:`center`}))}),this.showTick){let t=this.boundingRect.y;e.push({type:`path`,groupTexts:[`top-axis`,`ticks`],data:this.getTickValues().map(e=>({path:`M ${this.getScaleValue(e)},${t+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(e)},${t+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:`text`,groupTexts:[`top-axis`,`title`],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:`top`,horizontalPos:`center`}]}),e}getDrawableElements(){if(this.axisPosition===`left`)return this.getDrawableElementsForLeftAxis();if(this.axisPosition===`right`)throw Error(`Drawing of right axis is not implemented`);return this.axisPosition===`bottom`?this.getDrawableElementsForBottomAxis():this.axisPosition===`top`?this.getDrawableElementsForTopAxis():[]}},k=class extends O{static{e(this,`BandAxis`)}constructor(e,t,n,i,a){super(e,i,a,t),this.categories=n,this.scale=r().domain(this.categories).range(this.getRange())}setRange(e){super.setRange(e)}recalculateScale(){this.scale=r().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),n.trace(`BandAxis axis final categories, range: `,this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(e){return this.scale(e)??this.getRange()[0]}},A=class extends O{static{e(this,`LinearAxis`)}constructor(e,n,r,i,a){super(e,i,a,n),this.domain=r,this.scale=t().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){let e=[...this.domain];this.axisPosition===`left`&&e.reverse(),this.scale=t().domain(e).range(this.getRange())}getScaleValue(e){return this.scale(e)}};function j(e,t,n,r){let i=new T(r);return C(e)?new k(t,n,e.categories,e.title,i):new A(t,n,[e.min,e.max],e.title,i)}e(j,`getAxis`);var M=class{constructor(e,t,n,r){this.textDimensionCalculator=e,this.chartConfig=t,this.chartData=n,this.chartThemeConfig=r,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}static{e(this,`ChartTitle`)}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){let t=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),n=Math.max(t.width,e.width),r=t.height+2*this.chartConfig.titlePadding;return t.width<=n&&t.height<=r&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=n,this.boundingRect.height=r,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){let e=[];return this.showChartTitle&&e.push({groupTexts:[`chart-title`],type:`text`,data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:`middle`,horizontalPos:`center`,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),e}};function N(e,t,n,r){return new M(new T(r),e,t,n)}e(N,`getChartTitleComponent`);var ee=class{constructor(e,t,n,r,i){this.plotData=e,this.xAxis=t,this.yAxis=n,this.orientation=r,this.plotIndex=i}static{e(this,`LinePlot`)}getDrawableElement(){let e=this.plotData.data.map(e=>[this.xAxis.getScaleValue(e[0]),this.yAxis.getScaleValue(e[1])]),t;return t=this.orientation===`horizontal`?i().y(e=>e[0]).x(e=>e[1])(e):i().x(e=>e[0]).y(e=>e[1])(e),t?[{groupTexts:[`plot`,`line-plot-${this.plotIndex}`],type:`path`,data:[{path:t,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}},te=class{constructor(e,t,n,r,i,a){this.barData=e,this.boundingRect=t,this.xAxis=n,this.yAxis=r,this.orientation=i,this.plotIndex=a}static{e(this,`BarPlot`)}getDrawableElement(){let e=this.barData.data.map(e=>[this.xAxis.getScaleValue(e[0]),this.yAxis.getScaleValue(e[1])]),t=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*.95,n=t/2;return this.orientation===`horizontal`?[{groupTexts:[`plot`,`bar-plot-${this.plotIndex}`],type:`rect`,data:e.map(e=>({x:this.boundingRect.x,y:e[0]-n,height:t,width:e[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:[`plot`,`bar-plot-${this.plotIndex}`],type:`rect`,data:e.map(e=>({x:e[0]-n,y:e[1],width:t,height:this.boundingRect.y+this.boundingRect.height-e[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},ne=class{constructor(e,t,n){this.chartConfig=e,this.chartData=t,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0}}static{e(this,`BasePlot`)}setAxes(e,t){this.xAxis=e,this.yAxis=t}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){return this.boundingRect.width=e.width,this.boundingRect.height=e.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error(`Axes must be passed to render Plots`);let e=[];for(let[t,n]of this.chartData.plots.entries())switch(n.type){case`line`:{let r=new ee(n,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,t);e.push(...r.getDrawableElement())}break;case`bar`:{let r=new te(n,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,t);e.push(...r.getDrawableElement())}break}return e}};function re(e,t,n){return new ne(e,t,n)}e(re,`getPlotComponent`);var ie=class{constructor(e,t,n,r){this.chartConfig=e,this.chartData=t,this.componentStore={title:N(e,t,n,r),plot:re(e,t,n),xAxis:j(t.xAxis,e.xAxis,{titleColor:n.xAxisTitleColor,labelColor:n.xAxisLabelColor,tickColor:n.xAxisTickColor,axisLineColor:n.xAxisLineColor},r),yAxis:j(t.yAxis,e.yAxis,{titleColor:n.yAxisTitleColor,labelColor:n.yAxisLabelColor,tickColor:n.yAxisTickColor,axisLineColor:n.yAxisLineColor},r)}}static{e(this,`Orchestrator`)}calculateVerticalSpace(){let e=this.chartConfig.width,t=this.chartConfig.height,n=0,r=0,i=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),a=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),o=this.componentStore.plot.calculateSpace({width:i,height:a});e-=o.width,t-=o.height,o=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:t}),r=o.height,t-=o.height,this.componentStore.xAxis.setAxisPosition(`bottom`),o=this.componentStore.xAxis.calculateSpace({width:e,height:t}),t-=o.height,this.componentStore.yAxis.setAxisPosition(`left`),o=this.componentStore.yAxis.calculateSpace({width:e,height:t}),n=o.width,e-=o.width,e>0&&(i+=e,e=0),t>0&&(a+=t,t=0),this.componentStore.plot.calculateSpace({width:i,height:a}),this.componentStore.plot.setBoundingBoxXY({x:n,y:r}),this.componentStore.xAxis.setRange([n,n+i]),this.componentStore.xAxis.setBoundingBoxXY({x:n,y:r+a}),this.componentStore.yAxis.setRange([r,r+a]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:r}),this.chartData.plots.some(e=>S(e))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let e=this.chartConfig.width,t=this.chartConfig.height,n=0,r=0,i=0,a=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),o=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),s=this.componentStore.plot.calculateSpace({width:a,height:o});e-=s.width,t-=s.height,s=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:t}),n=s.height,t-=s.height,this.componentStore.xAxis.setAxisPosition(`left`),s=this.componentStore.xAxis.calculateSpace({width:e,height:t}),e-=s.width,r=s.width,this.componentStore.yAxis.setAxisPosition(`top`),s=this.componentStore.yAxis.calculateSpace({width:e,height:t}),t-=s.height,i=n+s.height,e>0&&(a+=e,e=0),t>0&&(o+=t,t=0),this.componentStore.plot.calculateSpace({width:a,height:o}),this.componentStore.plot.setBoundingBoxXY({x:r,y:i}),this.componentStore.yAxis.setRange([r,r+a]),this.componentStore.yAxis.setBoundingBoxXY({x:r,y:n}),this.componentStore.xAxis.setRange([i,i+o]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:i}),this.chartData.plots.some(e=>S(e))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation===`horizontal`?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();let e=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(let t of Object.values(this.componentStore))e.push(...t.getDrawableElements());return e}},ae=class{static{e(this,`XYChartBuilder`)}static build(e,t,n,r){return new ie(e,t,n,r).getDrawableElement()}},P=0,F,I=U(),L=H(),R=W(),z=L.plotColorPalette.split(`,`).map(e=>e.trim()),B=!1,V=!1;function H(){let e=f(),t=l();return v(e.xyChart,t.themeVariables.xyChart)}e(H,`getChartDefaultThemeConfig`);function U(){let e=l();return v(m.xyChart,e.xyChart)}e(U,`getChartDefaultConfig`);function W(){return{yAxis:{type:`linear`,title:``,min:1/0,max:-1/0},xAxis:{type:`band`,title:``,categories:[]},title:``,plots:[]}}e(W,`getChartDefaultData`);function G(e){let t=l();return o(e.trim(),t)}e(G,`textSanitizer`);function K(e){F=e}e(K,`setTmpSVGG`);function q(e){e===`horizontal`?I.chartOrientation=`horizontal`:I.chartOrientation=`vertical`}e(q,`setOrientation`);function J(e){R.xAxis.title=G(e.text)}e(J,`setXAxisTitle`);function Y(e,t){R.xAxis={type:`linear`,title:R.xAxis.title,min:e,max:t},B=!0}e(Y,`setXAxisRangeData`);function X(e){R.xAxis={type:`band`,title:R.xAxis.title,categories:e.map(e=>G(e.text))},B=!0}e(X,`setXAxisBand`);function oe(e){R.yAxis.title=G(e.text)}e(oe,`setYAxisTitle`);function se(e,t){R.yAxis={type:`linear`,title:R.yAxis.title,min:e,max:t},V=!0}e(se,`setYAxisRangeData`);function ce(e){let t=Math.min(...e),n=Math.max(...e),r=w(R.yAxis)?R.yAxis.min:1/0,i=w(R.yAxis)?R.yAxis.max:-1/0;R.yAxis={type:`linear`,title:R.yAxis.title,min:Math.min(r,t),max:Math.max(i,n)}}e(ce,`setYAxisRangeFromPlotData`);function Z(e){let t=[];if(e.length===0)return t;if(!B){let t=w(R.xAxis)?R.xAxis.min:1/0,n=w(R.xAxis)?R.xAxis.max:-1/0;Y(Math.min(t,1),Math.max(n,e.length))}if(V||ce(e),C(R.xAxis)&&(t=R.xAxis.categories.map((t,n)=>[t,e[n]])),w(R.xAxis)){let n=R.xAxis.min,r=R.xAxis.max,i=(r-n)/(e.length-1),a=[];for(let e=n;e<=r;e+=i)a.push(`${e}`);t=a.map((t,n)=>[t,e[n]])}return t}e(Z,`transformDataWithoutCategory`);function Q(e){return z[e===0?0:e%z.length]}e(Q,`getPlotColorFromPalette`);function le(e,t){let n=Z(t);R.plots.push({type:`line`,strokeFill:Q(P),strokeWidth:2,data:n}),P++}e(le,`setLineData`);function $(e,t){let n=Z(t);R.plots.push({type:`bar`,fill:Q(P),data:n}),P++}e($,`setBarData`);function ue(){if(R.plots.length===0)throw Error(`No Plot to render, please provide a plot with some data`);return R.title=a(),ae.build(I,R,L,F)}e(ue,`getDrawableElem`);function de(){return L}e(de,`getChartThemeConfig`);function fe(){return I}e(fe,`getChartConfig`);function pe(){return R}e(pe,`getXYChartData`);var me={parser:x,db:{getDrawableElem:ue,clear:e(function(){h(),P=0,I=U(),R=W(),L=H(),z=L.plotColorPalette.split(`,`).map(e=>e.trim()),B=!1,V=!1},`clear`),setAccTitle:u,getAccTitle:g,setDiagramTitle:c,getDiagramTitle:a,getAccDescription:d,setAccDescription:s,setOrientation:q,setXAxisTitle:J,setXAxisRangeData:Y,setXAxisBand:X,setYAxisTitle:oe,setYAxisRangeData:se,setLineData:le,setBarData:$,setTmpSVGG:K,getChartThemeConfig:de,getChartConfig:fe,getXYChartData:pe},renderer:{draw:e((t,r,i,a)=>{let o=a.db,s=o.getChartThemeConfig(),c=o.getChartConfig(),l=o.getXYChartData().plots[0].data.map(e=>e[1]);function u(e){return e===`top`?`text-before-edge`:`middle`}e(u,`getDominantBaseLine`);function d(e){return e===`left`?`start`:e===`right`?`end`:`middle`}e(d,`getTextAnchor`);function f(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}e(f,`getTextTransformation`),n.debug(`Rendering xychart chart +`+t);let m=_(r),h=m.append(`g`).attr(`class`,`main`),g=h.append(`rect`).attr(`width`,c.width).attr(`height`,c.height).attr(`class`,`background`);p(m,c.height,c.width,!0),m.attr(`viewBox`,`0 0 ${c.width} ${c.height}`),g.attr(`fill`,s.backgroundColor),o.setTmpSVGG(m.append(`g`).attr(`class`,`mermaid-tmp-group`));let v=o.getDrawableElem(),y={};function b(e){let t=h,n=``;for(let[r]of e.entries()){let i=h;r>0&&y[n]&&(i=y[n]),n+=e[r],t=y[n],t||=y[n]=i.append(`g`).attr(`class`,e[r])}return t}e(b,`getGroup`);for(let t of v){if(t.data.length===0)continue;let n=b(t.groupTexts);switch(t.type){case`rect`:if(n.selectAll(`rect`).data(t.data).enter().append(`rect`).attr(`x`,e=>e.x).attr(`y`,e=>e.y).attr(`width`,e=>e.width).attr(`height`,e=>e.height).attr(`fill`,e=>e.fill).attr(`stroke`,e=>e.strokeFill).attr(`stroke-width`,e=>e.strokeWidth),c.showDataLabel){let r=c.showDataLabelOutsideBar;if(c.chartOrientation===`horizontal`){let i=function(e,t){let{data:n,label:r}=e;return t*r.length*a<=n.width-o};e(i,`fitsHorizontally`);let a=.7,o=10,c=t.data.map((e,t)=>({data:e,label:l[t].toString()})).filter(e=>e.data.width>0&&e.data.height>0),u=c.map(e=>{let{data:t}=e,n=t.height*.7;for(;!i(e,n)&&n>0;)--n;return n}),d=Math.floor(Math.min(...u)),f=e(e=>r?e.data.x+e.data.width+10:e.data.x+e.data.width-10,`determineLabelXPosition`);n.selectAll(`text`).data(c).enter().append(`text`).attr(`x`,f).attr(`y`,e=>e.data.y+e.data.height/2).attr(`text-anchor`,r?`start`:`end`).attr(`dominant-baseline`,`middle`).attr(`fill`,s.dataLabelColor).attr(`font-size`,`${d}px`).text(e=>e.label)}else{let i=function(e,t,n){let{data:r,label:i}=e,a=t*i.length*.7,o=r.x+r.width/2,s=o-a/2,c=o+a/2,l=s>=r.x&&c<=r.x+r.width,u=r.y+n+t<=r.y+r.height;return l&&u};e(i,`fitsInBar`);let a=t.data.map((e,t)=>({data:e,label:l[t].toString()})).filter(e=>e.data.width>0&&e.data.height>0),o=a.map(e=>{let{data:t,label:n}=e,r=t.width/(n.length*.7);for(;!i(e,r,10)&&r>0;)--r;return r}),c=Math.floor(Math.min(...o)),u=e(e=>r?e.data.y-10:e.data.y+10,`determineLabelYPosition`);n.selectAll(`text`).data(a).enter().append(`text`).attr(`x`,e=>e.data.x+e.data.width/2).attr(`y`,u).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,r?`auto`:`hanging`).attr(`fill`,s.dataLabelColor).attr(`font-size`,`${c}px`).text(e=>e.label)}}break;case`text`:n.selectAll(`text`).data(t.data).enter().append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,e=>e.fill).attr(`font-size`,e=>e.fontSize).attr(`dominant-baseline`,e=>u(e.verticalPos)).attr(`text-anchor`,e=>d(e.horizontalPos)).attr(`transform`,e=>f(e)).text(e=>e.text);break;case`path`:n.selectAll(`path`).data(t.data).enter().append(`path`).attr(`d`,e=>e.path).attr(`fill`,e=>e.fill?e.fill:`none`).attr(`stroke`,e=>e.strokeFill).attr(`stroke-width`,e=>e.strokeWidth);break}}},`draw`)}};export{me as diagram}; \ No newline at end of file diff --git a/docs/dist/index-standalone.html b/docs/dist/index-standalone.html index a88346e0..b6168f4c 100644 --- a/docs/dist/index-standalone.html +++ b/docs/dist/index-standalone.html @@ -4,15 +4,16 @@ -Introduction to Machine Learning - Slidev +Real Obsidian Test - Slidev - + - - - + + + + @@ -22,52 +23,7 @@ - @@ -77,18 +33,19 @@ - - - - - - + + + + + + + + + +
    diff --git a/package-lock.json b/package-lock.json index 35d9621c..58d56237 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "1.9.2", "license": "MIT", "dependencies": { + "acorn": "^8.17.0", "mermaid": "11.4.1", "minisearch": "^7.2.0", "vega": "^6.2.0", @@ -25,6 +26,7 @@ "jest": "^29.7.0", "lodash": "^4.17.21", "obsidian": "latest", + "playwright": "^1.61.0", "ts-jest": "^29.3.2", "tslib": "2.4.0", "typescript": "^5.9.3" @@ -2409,9 +2411,9 @@ "peer": true }, "node_modules/acorn": { - "version": "8.16.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz", - "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", + "version": "8.17.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.17.0.tgz", + "integrity": "sha512-xRQbDb9BnwDafYNn6Vwl839DYVjqXYb1XVGtWAZ1kcDc6iwAL4hg3B1dZlRiuENFeO2H53gFG3in621AdERVAg==", "license": "MIT", "bin": { "acorn": "bin/acorn" @@ -6176,6 +6178,53 @@ "pathe": "^2.0.3" } }, + "node_modules/playwright": { + "version": "1.61.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.61.0.tgz", + "integrity": "sha512-Z+7BeeqQPRRzklHsVFP4KTGIyMxKUmfeRA4WisM6G3/XW6nwGeX6fX9qYaDa+CiUqpOkb2f6X3nar05R3kSuJQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "playwright-core": "1.61.0" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "fsevents": "2.3.2" + } + }, + "node_modules/playwright-core": { + "version": "1.61.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.61.0.tgz", + "integrity": "sha512-caX7TrY3Ml6egyDX0WUcTHDxodl/b51y5wJOdCEA36QviK/s2g081hvmGs8eaE3DWb6NYZQ6BjO/QkNRPenoPA==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "playwright-core": "cli.js" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/playwright/node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, "node_modules/points-on-curve": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/points-on-curve/-/points-on-curve-0.2.0.tgz", diff --git a/package.json b/package.json index 82596c73..f662d6e8 100644 --- a/package.json +++ b/package.json @@ -47,11 +47,13 @@ "jest": "^29.7.0", "lodash": "^4.17.21", "obsidian": "latest", + "playwright": "^1.61.0", "ts-jest": "^29.3.2", "tslib": "2.4.0", "typescript": "^5.9.3" }, "dependencies": { + "acorn": "^8.17.0", "mermaid": "11.4.1", "minisearch": "^7.2.0", "vega": "^6.2.0", diff --git a/src/constants.ts b/src/constants.ts index 92d8663d..0ed753fd 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -208,6 +208,7 @@ export const DEFAULT_SETTINGS: NotemdSettings = { slideExportFfmpegCrf: 23, slideExportTimeoutMs: 120_000, slideExportTheme: '', + slideExportHtmlMode: 'standalone', }; // Constants for the Sidebar View diff --git a/src/i18n/locales/en.ts b/src/i18n/locales/en.ts index 62c0ca14..6c15826b 100644 --- a/src/i18n/locales/en.ts +++ b/src/i18n/locales/en.ts @@ -969,6 +969,10 @@ export const STRINGS_EN = { enableDesc: 'Allow exporting Markdown files as slide presentations using Slidev. Desktop only — requires Node.js 20+.', defaultFormatName: 'Default export format', defaultFormatDesc: 'MP4 requires ffmpeg in addition to Slidev and Playwright.', + htmlModeName: 'HTML export mode', + htmlModeDesc: 'Standalone: Single-file bundle (2-5MB) that works by double-clicking, no setup needed. Server-script: Smaller files (~900KB) but requires running a local server script.', + htmlModeStandalone: 'Standalone (recommended)', + htmlModeServer: 'Server-script (advanced)', outputSubfolderName: 'Output subfolder', outputSubfolderDesc: 'Vault-relative folder for exported slides.', withClicksName: 'Include click-throughs', diff --git a/src/i18n/locales/zh_cn.ts b/src/i18n/locales/zh_cn.ts index 0be65705..95d1d550 100644 --- a/src/i18n/locales/zh_cn.ts +++ b/src/i18n/locales/zh_cn.ts @@ -960,6 +960,10 @@ export const STRINGS_ZH_CN: DeepPartial = { enableDesc: '允许使用 Slidev 将 Markdown 文件导出为演示文稿。仅桌面端 — 需要 Node.js 20+。', defaultFormatName: '默认导出格式', defaultFormatDesc: 'MP4 除了 Slidev 和 Playwright 外还需要 ffmpeg。', + htmlModeName: 'HTML 导出模式', + htmlModeDesc: '独立模式:单文件打包(2-5MB),双击即可查看,无需配置。服务器脚本模式:文件较小(约900KB),但需运行本地服务器脚本。', + htmlModeStandalone: '独立模式(推荐)', + htmlModeServer: '服务器脚本模式(高级)', outputSubfolderName: '输出子文件夹', outputSubfolderDesc: '相对于库根目录的导出文件夹路径。', withClicksName: '包含点击动画', diff --git a/src/main.ts b/src/main.ts index 9e483da9..72a532db 100644 --- a/src/main.ts +++ b/src/main.ts @@ -97,6 +97,7 @@ import { runGenerateDiagramCommandWithHost, runPreviewDiagramCommandWithHost } from './operations/diagramCommandHostAdapter'; +import { stopAllServers } from './slideExport/localServer'; import { DiagramCommandExecutionHost, runArtifactDiagramExecutionWithHost, @@ -1078,6 +1079,7 @@ export default class NotemdPlugin extends Plugin { onunload() { // Clean up resources if necessary + stopAllServers(); } // --- Settings Management --- @@ -2807,6 +2809,7 @@ export default class NotemdPlugin extends Plugin { ffmpegCrf: this.settings.slideExportFfmpegCrf, slidevTheme: this.settings.slideExportTheme, timeoutMs: this.settings.slideExportTimeoutMs, + htmlMode: this.settings.slideExportHtmlMode, }; const modal = new ProgressModal(this.app, uiStrings.slideExport.exportingSlides); @@ -2830,6 +2833,12 @@ export default class NotemdPlugin extends Plugin { ); modalReporter.log(uiStrings.slideExport.exportSuccess.replace('{path}', outputPath)); new Notice(uiStrings.slideExport.exportComplete); + + // Automatically open in browser via local server + modalReporter.log('Opening in browser...'); + const { openHtmlInBrowser } = await import('./slideExport/localServer'); + const vaultRoot = (this.app.vault.adapter as any).basePath; + await openHtmlInBrowser(outputPath, vaultRoot); } else if (config.format === 'pdf' || config.format === 'png') { const outputPath = await exportSlidevImages( this.app, diff --git a/src/slideExport/htmlLauncher.ts b/src/slideExport/htmlLauncher.ts new file mode 100644 index 00000000..87899f6d --- /dev/null +++ b/src/slideExport/htmlLauncher.ts @@ -0,0 +1,200 @@ +/** + * HTML Launcher for Slidev Exports + * + * Creates a standalone launcher.html that users can open directly in their browser. + * The launcher automatically starts a minimal inline server using Service Worker + * to serve the Slidev export files, bypassing file:// protocol restrictions. + */ + +import { App } from 'obsidian'; +import { getVaultBasePath } from './platformUtils'; + +/** + * Template for the launcher HTML that includes an inline server + */ +const LAUNCHER_TEMPLATE = ` + + + + + Slidev Presentation Launcher + + + +
    +

    🎬 Slidev Presentation

    +

    Click below to launch the presentation

    + +
    +

    📖 How to use:

    +
      +
    1. Click "Launch Presentation" button above
    2. +
    3. A local server will start automatically
    4. +
    5. The presentation will load in your browser
    6. +
    7. You can close this tab when done
    8. +
    +

    Note: This launcher works without requiring any external tools or plugin to be running.

    +
    +
    + + + + + +`; + +/** + * Create launcher HTML file in the export directory + */ +export async function createHtmlLauncher( + app: App, + exportHtmlPath: string, +): Promise { + const vaultRoot = getVaultBasePath(app); + if (!vaultRoot) throw new Error('Vault root path unavailable'); + + // Extract directory from HTML path + const directory = exportHtmlPath.substring(0, exportHtmlPath.lastIndexOf('/')); + const launcherPath = `${directory}/launcher.html`; + + // Write launcher file + await app.vault.adapter.write(launcherPath, LAUNCHER_TEMPLATE); + + return launcherPath; +} diff --git a/src/slideExport/inlineBundler.ts b/src/slideExport/inlineBundler.ts new file mode 100644 index 00000000..ea421d6a --- /dev/null +++ b/src/slideExport/inlineBundler.ts @@ -0,0 +1,302 @@ +/** + * Single-file HTML bundler for Slidev exports + * + * Strategy: Post-process Slidev build output to inline all JavaScript chunks + * into a single HTML file that works under file:// protocol. + * + * Technical approach: + * 1. Parse index.html, extract all \n` + ); + + // Inline CSS + for (const stylePath of styles) { + const absPath = path.join(vaultRoot, baseDir, stylePath); + try { + const css = await app.vault.adapter.read(absPath.replace(vaultRoot + '/', '')); + html = html.replace( + new RegExp(`]*href="${stylePath.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}"[^>]*>`), + `` + ); + } catch (error) { + console.error(`Failed to inline CSS ${stylePath}:`, error); + } + } + + return { + html, + size: html.length, + chunks: chunks.size, + }; +} + +/** + * Test if bundling is feasible for current export + */ +export async function testBundleFeasibility( + app: App, + htmlPath: string, +): Promise<{ feasible: boolean; reason?: string; estimatedSize?: number }> { + try { + const baseDir = htmlPath.substring(0, htmlPath.lastIndexOf('/')); + const { scripts } = await parseHtmlReferences(app, htmlPath); + + if (scripts.length === 0) { + return { feasible: false, reason: 'No scripts found' }; + } + + // Estimate size + const vaultRoot = getVaultBasePath(app); + if (!vaultRoot) throw new Error('Vault root unavailable'); + + let totalSize = 0; + for (const script of scripts) { + const absPath = path.join(vaultRoot, baseDir, script); + try { + const stat = await app.vault.adapter.stat(absPath.replace(vaultRoot + '/', '')); + if (stat) totalSize += stat.size; + } catch { + // Ignore + } + } + + // Add HTML size + const htmlStat = await app.vault.adapter.stat(htmlPath); + if (htmlStat) totalSize += htmlStat.size; + + return { + feasible: true, + estimatedSize: totalSize, + }; + } catch (error) { + return { + feasible: false, + reason: error instanceof Error ? error.message : 'Unknown error', + }; + } +} diff --git a/src/slideExport/localServer.ts b/src/slideExport/localServer.ts new file mode 100644 index 00000000..a105cf5e --- /dev/null +++ b/src/slideExport/localServer.ts @@ -0,0 +1,176 @@ +/** + * Local HTTP server for serving Slidev HTML exports + * + * Slidev exports use ES modules with dynamic imports, which are blocked + * by CORS policy when opened via file:// protocol. This server provides + * a local HTTP server to serve the exports properly. + */ + +import type { Server } from 'http'; +import { spawn, ChildProcess } from 'child_process'; +import { Notice } from 'obsidian'; + +interface ServerInstance { + process: ChildProcess; + port: number; + directory: string; +} + +const activeServers = new Map(); + +/** + * Start a local HTTP server for a directory + */ +export async function startLocalServer(directory: string, preferredPort = 8765): Promise { + // Check if server already running for this directory + const existing = activeServers.get(directory); + if (existing) { + return existing.port; + } + + // Find available port + const port = await findAvailablePort(preferredPort); + + return new Promise((resolve, reject) => { + // Use Node's built-in http-server via npx + const serverProcess = spawn('npx', [ + '-y', + 'http-server', + directory, + '-p', port.toString(), + '--cors', + '-c-1', // Disable caching + '--silent' + ], { + stdio: ['ignore', 'pipe', 'pipe'] + }); + + let started = false; + + serverProcess.stdout?.on('data', (data: Buffer) => { + const output = data.toString(); + if (output.includes('Available on:') || output.includes('Hit CTRL-C')) { + if (!started) { + started = true; + activeServers.set(directory, { + process: serverProcess, + port, + directory + }); + resolve(port); + } + } + }); + + serverProcess.stderr?.on('data', (data: Buffer) => { + console.error('Server error:', data.toString()); + }); + + serverProcess.on('error', (error) => { + if (!started) { + reject(new Error(`Failed to start server: ${error.message}`)); + } + }); + + serverProcess.on('exit', (code) => { + activeServers.delete(directory); + if (!started && code !== 0) { + reject(new Error(`Server exited with code ${code}`)); + } + }); + + // Timeout after 10 seconds + setTimeout(() => { + if (!started) { + serverProcess.kill(); + reject(new Error('Server startup timeout')); + } + }, 10000); + }); +} + +/** + * Stop server for a directory + */ +export function stopLocalServer(directory: string): void { + const server = activeServers.get(directory); + if (server) { + server.process.kill(); + activeServers.delete(directory); + } +} + +/** + * Stop all active servers + */ +export function stopAllServers(): void { + for (const [directory, server] of activeServers.entries()) { + server.process.kill(); + } + activeServers.clear(); +} + +/** + * Get server URL for a directory + */ +export function getServerUrl(directory: string): string | null { + const server = activeServers.get(directory); + return server ? `http://localhost:${server.port}` : null; +} + +/** + * Find an available port starting from preferred port + */ +async function findAvailablePort(startPort: number): Promise { + const { createServer } = await import('http'); + + return new Promise((resolve, reject) => { + const server = createServer(); + + server.listen(startPort, () => { + const address = server.address(); + if (address && typeof address !== 'string') { + const port = address.port; + server.close(() => resolve(port)); + } else { + server.close(() => reject(new Error('Could not determine port'))); + } + }); + + server.on('error', (err: NodeJS.ErrnoException) => { + if (err.code === 'EADDRINUSE') { + // Port in use, try next one + resolve(findAvailablePort(startPort + 1)); + } else { + reject(err); + } + }); + }); +} + +/** + * Open HTML export in browser via local server + */ +export async function openHtmlInBrowser(htmlPath: string, vaultRoot: string): Promise { + try { + // Extract directory from HTML path + const directory = htmlPath.substring(0, htmlPath.lastIndexOf('/')); + const filename = htmlPath.substring(htmlPath.lastIndexOf('/') + 1); + const fullDirectory = `${vaultRoot}/${directory}`; + + // Start server + new Notice('Starting local server...'); + const port = await startLocalServer(fullDirectory); + + // Construct URL + const url = `http://localhost:${port}/${filename}`; + + // Open in default browser + require('electron').shell.openExternal(url); + + new Notice(`Opened in browser: ${url}`); + } catch (error) { + new Notice(`Failed to start server: ${error.message}`); + throw error; + } +} diff --git a/src/slideExport/serverScripts.ts b/src/slideExport/serverScripts.ts new file mode 100644 index 00000000..7a6bb674 --- /dev/null +++ b/src/slideExport/serverScripts.ts @@ -0,0 +1,185 @@ +/** + * Server script generator for Slidev HTML exports + * + * Creates a standalone start-server.sh script that users can run + * to serve their Slidev presentation, making it work properly + * without the plugin being active. + */ + +import { App } from 'obsidian'; +import { getVaultBasePath } from './platformUtils'; + +const SERVER_SCRIPT_TEMPLATE = `#!/bin/bash +# Slidev Presentation Server +# This script starts a local HTTP server to view your Slidev presentation +# Run this script: ./start-server.sh + +PORT=8765 +DIR="$(cd "$(dirname "\${BASH_SOURCE[0]}")" && pwd)" + +echo "Starting Slidev presentation server..." +echo "Server will be available at: http://localhost:\$PORT" +echo "Press Ctrl+C to stop the server" +echo "" + +# Try different server options in order of preference +if command -v python3 &> /dev/null; then + echo "Using Python 3 HTTP server..." + cd "$DIR" && python3 -m http.server $PORT +elif command -v python &> /dev/null; then + echo "Using Python HTTP server..." + cd "$DIR" && python -m http.server $PORT +elif command -v npx &> /dev/null; then + echo "Using npx http-server..." + cd "$DIR" && npx -y http-server -p $PORT --cors -c-1 +else + echo "❌ Error: No HTTP server available!" + echo "" + echo "Please install one of the following:" + echo " - Python 3: https://www.python.org/downloads/" + echo " - Node.js: https://nodejs.org/" + echo "" + echo "After installation, run this script again." + exit 1 +fi +`; + +const SERVER_BAT_TEMPLATE = `@echo off +REM Slidev Presentation Server +REM This script starts a local HTTP server to view your Slidev presentation +REM Run this script: start-server.bat + +set PORT=8765 + +echo Starting Slidev presentation server... +echo Server will be available at: http://localhost:%PORT% +echo Press Ctrl+C to stop the server +echo. + +REM Try different server options +where python3 >nul 2>nul +if %ERRORLEVEL% EQU 0 ( + echo Using Python 3 HTTP server... + python3 -m http.server %PORT% + goto :end +) + +where python >nul 2>nul +if %ERRORLEVEL% EQU 0 ( + echo Using Python HTTP server... + python -m http.server %PORT% + goto :end +) + +where npx >nul 2>nul +if %ERRORLEVEL% EQU 0 ( + echo Using npx http-server... + npx -y http-server -p %PORT% --cors -c-1 + goto :end +) + +echo Error: No HTTP server available! +echo. +echo Please install one of the following: +echo - Python 3: https://www.python.org/downloads/ +echo - Node.js: https://nodejs.org/ +echo. +echo After installation, run this script again. +pause +exit /b 1 + +:end +`; + +const README_TEMPLATE = `# 🎬 Slidev Presentation + +## 🚀 Quick Start + +This Slidev presentation cannot be opened directly by double-clicking \`index.html\` due to browser security restrictions. You need to serve it via HTTP. + +### ✅ Easiest Method: Run the Server Script + +**macOS/Linux:** +\`\`\`bash +./start-server.sh +\`\`\` + +**Windows:** +\`\`\`cmd +start-server.bat +\`\`\` + +The script will automatically: +- Detect available HTTP server (Python or Node.js) +- Start server on http://localhost:8765 +- Open the URL in your browser (you may need to open it manually) + +Press \`Ctrl+C\` to stop the server when done. + +### 📝 Manual Methods + +If the script doesn't work, run any of these in this directory: + +\`\`\`bash +# Python 3 (most common) +python3 -m http.server 8765 + +# Python 2 +python -m SimpleHTTPServer 8765 + +# Node.js +npx -y http-server -p 8765 +\`\`\` + +Then visit: **http://localhost:8765** + +## ❓ Why is a server needed? + +Slidev uses ES modules with dynamic imports. Modern browsers block these under \`file://\` protocol for security. A local HTTP server solves this. + +## 🔐 Security Note + +The server only runs locally on your machine (localhost). No external access is allowed. Stop the server (Ctrl+C) when you're done viewing. + +## 🎯 Keyboard Shortcuts (in presentation) + +- **Space / Arrow Keys**: Navigate slides +- **F**: Toggle fullscreen +- **O**: Toggle overview +- **D**: Toggle dark mode +- **G**: Go to specific slide + +--- + +Generated with NotEMD Obsidian Plugin +`; + +/** + * Create server scripts and README in the export directory + */ +export async function createServerScripts( + app: App, + exportHtmlPath: string, +): Promise { + const vaultRoot = getVaultBasePath(app); + if (!vaultRoot) throw new Error('Vault root path unavailable'); + + // Extract directory from HTML path + const directory = exportHtmlPath.substring(0, exportHtmlPath.lastIndexOf('/')); + + // Write server scripts + await app.vault.adapter.write(`${directory}/start-server.sh`, SERVER_SCRIPT_TEMPLATE); + await app.vault.adapter.write(`${directory}/start-server.bat`, SERVER_BAT_TEMPLATE); + await app.vault.adapter.write(`${directory}/README.md`, README_TEMPLATE); + + // Make shell script executable on Unix systems + try { + const fs = require('fs'); + const path = require('path'); + const scriptPath = path.join(vaultRoot, directory, 'start-server.sh'); + fs.chmodSync(scriptPath, 0o755); + } catch (error) { + // Silently ignore on Windows or if chmod fails + console.warn('Could not make script executable:', error); + } +} diff --git a/src/slideExport/singleFileBundler.ts b/src/slideExport/singleFileBundler.ts new file mode 100644 index 00000000..973fc1c8 --- /dev/null +++ b/src/slideExport/singleFileBundler.ts @@ -0,0 +1,486 @@ +/** + * Single-file HTML bundler for Slidev exports + * + * Converts Slidev's ES module build into a standalone HTML file + * that works under file:// protocol by implementing a custom + * CommonJS-style module system. + * + * Technical approach: + * 1. Parse all JavaScript chunks from build output + * 2. Transform ES modules → CommonJS semantics + * 3. Build custom require() system (no native import()) + * 4. Inline all JS/CSS into single HTML + * 5. Handle Vue components, async imports, CSS modules + */ + +import { App } from 'obsidian'; +import { getVaultBasePath } from './platformUtils'; +import * as path from 'path'; + +interface ModuleInfo { + path: string; + code: string; + size: number; +} + +interface BundleResult { + htmlPath: string; + size: number; + moduleCount: number; +} + +/** + * Collect all JavaScript modules from assets directory + */ +async function collectModules( + app: App, + baseDir: string, +): Promise> { + const modules = new Map(); + const vaultRoot = getVaultBasePath(app); + if (!vaultRoot) throw new Error('Vault root unavailable'); + + async function scanDirectory(dirPath: string, prefix: string) { + try { + const entries = await app.vault.adapter.list(dirPath); + + for (const file of entries.files) { + if (file.endsWith('.js')) { + const code = await app.vault.adapter.read(file); + const relativePath = file.substring(baseDir.length + 1); + const normalizedPath = `./${relativePath}`; + + modules.set(normalizedPath, { + path: normalizedPath, + code, + size: code.length, + }); + } + } + + for (const folder of entries.folders) { + await scanDirectory(folder, prefix); + } + } catch (error) { + // Ignore errors (directory might not exist) + } + } + + await scanDirectory(`${baseDir}/assets`, './assets'); + return modules; +} + +/** + * Transform ES module code to CommonJS-compatible + */ +function transformToCommonJS(code: string, modulePath: string): string { + // 0. Disable Vite's modulepreload polyfill (causes fetch() calls) + // Match: (function(){let e=document.createElement(`link`)...fetch(e.href,n)}})(); + code = code.replace( + /\(function\(\)\{let e=document\.createElement\(`link`\)\.relList[\s\S]*?fetch\(e\.href,n\)\}\}\)\(\);?/, + '// modulepreload polyfill disabled in standalone mode;' + ); + + // 1. Transform static imports: import {...} from "..." + // Match: import{...}from"..." or import ... from "..." + code = code.replace( + /import\s*\{([^}]+)\}\s*from\s*["']([^"']+)["']\s*;?/g, + (match, imports, path) => { + // Parse imported names and their aliases + const importList = imports.split(',').map((imp: string) => { + const parts = imp.trim().split(/\s+as\s+/); + if (parts.length === 2) { + return `${parts[1].trim()}:${parts[0].trim()}`; // alias:original + } + return parts[0].trim(); // same name + }); + + const varName = `__imp_${Math.random().toString(36).substr(2, 9)}`; + let result = `const ${varName}=__require('${path}');`; + + // Destructure imports + importList.forEach((imp: string) => { + if (imp.includes(':')) { + const [alias, original] = imp.split(':'); + result += `const ${alias}=${varName}.${original};`; + } else { + result += `const ${imp}=${varName}.${imp};`; + } + }); + + return result; + } + ); + + // 2. Transform default imports: import Name from "..." + code = code.replace( + /import\s+([a-zA-Z_$][a-zA-Z0-9_$]*)\s+from\s*["']([^"']+)["']\s*;?/g, + (match, name, path) => { + return `const ${name}=__require('${path}').default||__require('${path}');`; + } + ); + + // 3. Transform mixed imports: import Name, {...} from "..." + code = code.replace( + /import\s+([a-zA-Z_$][a-zA-Z0-9_$]*)\s*,\s*\{([^}]+)\}\s*from\s*["']([^"']+)["']\s*;?/g, + (match, defaultName, namedImports, path) => { + const varName = `__imp_${Math.random().toString(36).substr(2, 9)}`; + let result = `const ${varName}=__require('${path}');`; + result += `const ${defaultName}=${varName}.default||${varName};`; + + namedImports.split(',').forEach((imp: string) => { + const parts = imp.trim().split(/\s+as\s+/); + if (parts.length === 2) { + result += `const ${parts[1].trim()}=${varName}.${parts[0].trim()};`; + } else { + const name = parts[0].trim(); + result += `const ${name}=${varName}.${name};`; + } + }); + + return result; + } + ); + + // 4. Replace dynamic import() with __require() calls + code = code.replace( + /import\s*\(\s*(['"`])([^'"`]+)\1\s*\)/g, + (match, quote, path) => { + return `Promise.resolve(__require('${path}'))`; + } + ); + + // 5. Replace import.meta.url with static path + const moduleUrl = `file:///${modulePath}`; + code = code.replace(/import\.meta\.url/g, JSON.stringify(moduleUrl)); + + // 6. Replace import.meta.glob patterns (if any) + code = code.replace( + /import\.meta\.glob\s*\(\s*(['"`])([^'"`]+)\1\s*\)/g, + '{}' // Empty object - slides are loaded differently + ); + + // 7. Handle exports - convert to module.exports + // export { x, y } → module.exports.x = x; module.exports.y = y; + code = code.replace( + /export\s*\{([^}]+)\}\s*;?/g, + (match, exports) => { + return exports.split(',').map((exp: string) => { + const parts = exp.trim().split(/\s+as\s+/); + if (parts.length === 2) { + return `module.exports.${parts[1].trim()}=${parts[0].trim()};`; + } + const name = parts[0].trim(); + return `module.exports.${name}=${name};`; + }).join(''); + } + ); + + // 8. export default X → module.exports.default = X; module.exports = X; + code = code.replace( + /export\s+default\s+/g, + 'module.exports.default=module.exports=' + ); + + // 9. export const/let/var → define then export + code = code.replace( + /export\s+(const|let|var)\s+([a-zA-Z_$][a-zA-Z0-9_$]*)\s*=/g, + (match, keyword, name) => { + return `${keyword} ${name}=module.exports.${name}=`; + } + ); + + // 10. export function/class + code = code.replace( + /export\s+(function|class)\s+([a-zA-Z_$][a-zA-Z0-9_$]*)/g, + (match, keyword, name) => { + return `${keyword} ${name}`; + } + ); + + return code; +} + +/** + * Generate custom module system + */ +function generateModuleSystem(modules: Map): string { + const moduleEntries: string[] = []; + + for (const [modulePath, info] of modules.entries()) { + const transformed = transformToCommonJS(info.code, modulePath); + + // Use JSON.stringify to properly escape all special characters + // Then escape backticks which JSON.stringify doesn't handle + const escaped = JSON.stringify(transformed).replace(/`/g, '\\`'); + + moduleEntries.push(` '${modulePath}': ${escaped}`); + } + + return ` +(function() { + 'use strict'; + + // === Module Registry === + const __moduleCode = { +${moduleEntries.join(',\n')} + }; + + const __moduleCache = {}; + const __pendingModules = {}; + + // === Custom Module Loader === + window.__require = function(modulePath) { + // Normalize path + let resolved = modulePath; + if (!resolved.startsWith('./')) { + resolved = './' + resolved; + } + + // Return cached module + if (__moduleCache[resolved]) { + return __moduleCache[resolved]; + } + + // Check if module exists + if (!__moduleCode[resolved]) { + console.error('[Module Loader] Module not found:', resolved); + console.error('[Module Loader] Available modules:', Object.keys(__moduleCode)); + throw new Error('Cannot find module: ' + resolved); + } + + // Create module environment + const module = { exports: {} }; + const exports = module.exports; + + // Execute module code + try { + // Create a bound version of __require that resolves paths relative to current module + const moduleDir = resolved.substring(0, resolved.lastIndexOf('/')); + const boundRequire = function(requestPath) { + if (requestPath.startsWith('./') || requestPath.startsWith('../')) { + // Resolve relative to the requesting module's directory + const parts = (moduleDir + '/' + requestPath).split('/'); + const resolvedParts = []; + for (const part of parts) { + if (part === '..') { + resolvedParts.pop(); + } else if (part !== '.' && part !== '') { + resolvedParts.push(part); + } + } + return window.__require('./' + resolvedParts.join('/')); + } + return window.__require(requestPath); + }; + + const moduleFunction = new Function( + '__require', + 'module', + 'exports', + 'require', + __moduleCode[resolved] + ); + + moduleFunction(boundRequire, module, exports, boundRequire); + + // Cache the result + __moduleCache[resolved] = module.exports; + + return module.exports; + } catch (error) { + console.error('[Module Loader] Error loading module:', resolved); + console.error('[Module Loader] Error details:', error); + throw error; + } + }; + + // === Dynamic Import Support === + // Override Vite's mapDeps function to prevent fetching + window.__vite__mapDeps = function() { return []; }; + + // Vite's preload helper: P(loader, deps, baseUrl) + window.__vitePreload = function(loader, deps, baseUrl) { + // In inline mode, just execute the loader + // Dependencies are already embedded + return Promise.resolve().then(() => { + if (typeof loader === 'function') { + return loader(); + } + return loader; + }); + }; + + // Replace global P function (if exists) + if (typeof window.P === 'undefined') { + window.P = window.__vitePreload; + } + + console.log('[Module Loader] Initialized with ${modules.size} modules'); + console.log('[Module Loader] Total size: ${ + (Array.from(modules.values()).reduce((sum, m) => sum + m.size, 0) / 1024 / 1024).toFixed(2) + } MB'); +})(); +`; +} + +/** + * Inline all CSS files + */ +async function inlineCSS( + app: App, + html: string, + baseDir: string, +): Promise { + const cssMatches = [...html.matchAll(/]*href="\.\/([^"]+\.css)"[^>]*>/g)]; + + for (const match of cssMatches) { + const cssPath = match[1]; + const fullPath = `${baseDir}/${cssPath}`; + + try { + const css = await app.vault.adapter.read(fullPath); + + // Replace link tag with style tag + html = html.replace( + match[0], + `` + ); + } catch (error) { + console.warn(`Failed to inline CSS: ${cssPath}`, error); + } + } + + return html; +} + +/** + * Create single-file HTML bundle + */ +export async function createSingleFileHtml( + app: App, + htmlPath: string, + onProgress?: (message: string) => void, +): Promise { + const vaultRoot = getVaultBasePath(app); + if (!vaultRoot) throw new Error('Vault root unavailable'); + + const baseDir = htmlPath.substring(0, htmlPath.lastIndexOf('/')); + + // Step 1: Collect all modules + onProgress?.('Collecting JavaScript modules...'); + const modules = await collectModules(app, baseDir); + console.log(`Collected ${modules.size} modules`); + + if (modules.size === 0) { + throw new Error('No JavaScript modules found in build output'); + } + + // Step 2: Generate module system + onProgress?.('Building custom module loader...'); + const moduleSystem = generateModuleSystem(modules); + + // Step 3: Load and transform HTML + onProgress?.('Transforming HTML...'); + let html = await app.vault.adapter.read(htmlPath); + + // Step 4: Remove original script tags + html = html.replace( + /]*\bsrc\s*=\s*["']\.\/assets\/[^"']+["'][^>]*><\/script>/g, + '' + ); + + // Also remove modulepreload links + html = html.replace( + /]*\brel\s*=\s*["']modulepreload["'][^>]*>/g, + '' + ); + + // Step 5: Find entry point + const entryModule = Array.from(modules.keys()).find(path => + path.includes('/index-') && !path.includes('modules/') + ); + + if (!entryModule) { + throw new Error('Could not find entry module (index-*.js)'); + } + + // Step 6: Inject module system and entry point + const initScript = ` + +`; + + html = html.replace('', `${initScript}\n`); + + // Step 7: Inline CSS + onProgress?.('Inlining CSS files...'); + html = await inlineCSS(app, html, baseDir); + + // Step 8: Add inline mode marker + html = html.replace( + '', + '\n ' + ); + + // Step 9: Write output + const outputPath = htmlPath.replace(/\.html$/, '-standalone.html'); + await app.vault.adapter.write(outputPath, html); + + const stat = await app.vault.adapter.stat(outputPath); + + onProgress?.('Single-file bundle created successfully'); + + return { + htmlPath: outputPath, + size: stat?.size || html.length, + moduleCount: modules.size, + }; +} + +/** + * Estimate bundle size before creating + */ +export async function estimateBundleSize( + app: App, + htmlPath: string, +): Promise { + const baseDir = htmlPath.substring(0, htmlPath.lastIndexOf('/')); + const modules = await collectModules(app, baseDir); + + let totalSize = 0; + + // JS modules + for (const module of modules.values()) { + totalSize += module.size; + } + + // HTML base + const htmlStat = await app.vault.adapter.stat(htmlPath); + if (htmlStat) totalSize += htmlStat.size; + + // CSS (estimate) + totalSize += 100 * 1024; // ~100KB for CSS + + // Overhead for module system + totalSize += 50 * 1024; // ~50KB overhead + + return totalSize; +} diff --git a/src/slideExport/slidevExporter.ts b/src/slideExport/slidevExporter.ts index 8b01a3b5..c77f4529 100644 --- a/src/slideExport/slidevExporter.ts +++ b/src/slideExport/slidevExporter.ts @@ -43,8 +43,31 @@ export async function exportSlidevHtml( throw new Error(`Slidev build failed (exit ${result.exitCode}): ${result.stderr || result.error?.message || 'unknown error'}`); } - onProgress?.('slidev-build', 'HTML build complete'); - return `${config.outputSubfolder}/${sourceFile.basename}-slides/index.html`; + const exportPath = `${config.outputSubfolder}/${sourceFile.basename}-slides/index.html`; + + // Check HTML mode setting + if (config.htmlMode === 'standalone') { + // Create single-file bundle + onProgress?.('slidev-build', 'Creating standalone bundle...'); + const { createSingleFileHtml } = await import('./singleFileBundler'); + + const bundleResult = await createSingleFileHtml( + app, + exportPath, + (msg) => onProgress?.('slidev-build', msg) + ); + + onProgress?.('slidev-build', `Standalone HTML created (${(bundleResult.size / 1024 / 1024).toFixed(2)} MB)`); + return bundleResult.htmlPath; + } else { + // Create server scripts for manual serving + onProgress?.('slidev-build', 'Creating server scripts...'); + const { createServerScripts } = await import('./serverScripts'); + await createServerScripts(app, exportPath); + + onProgress?.('slidev-build', 'HTML build complete (requires local server)'); + return exportPath; + } } /** @@ -117,3 +140,16 @@ export async function autoInstallPlaywright( onProgress?.('install-playwright', result.exitCode === 0 ? 'Playwright Chromium installed' : 'Playwright install failed'); return result; } + +/** + * Auto-install http-server for serving HTML exports. + */ +export async function autoInstallHttpServer( + onProgress?: ExportProgressCallback, +): Promise { + onProgress?.('install-http-server', 'Installing http-server...'); + const npx = resolveNpxCommand(); + const result = await execFileAsync(npx, ['-y', 'http-server', '--version'], { timeout: 60_000 }); + onProgress?.('install-http-server', result.exitCode === 0 ? 'http-server installed' : 'http-server install failed'); + return result; +} diff --git a/src/slideExport/types.ts b/src/slideExport/types.ts index 380e860f..cd881b80 100644 --- a/src/slideExport/types.ts +++ b/src/slideExport/types.ts @@ -38,6 +38,7 @@ export interface SlideExportConfig { ffmpegCrf: number; slidevTheme: string; timeoutMs: number; + htmlMode?: 'standalone' | 'server-script'; } export interface ExecResult { diff --git a/src/tests/__mocks__/settings.ts b/src/tests/__mocks__/settings.ts index 1527c1f0..6f264248 100644 --- a/src/tests/__mocks__/settings.ts +++ b/src/tests/__mocks__/settings.ts @@ -147,4 +147,5 @@ export const mockSettings: NotemdSettings = { slideExportFfmpegCrf: 23, slideExportTimeoutMs: 120000, slideExportTheme: '', + slideExportHtmlMode: 'standalone', }; diff --git a/src/types.ts b/src/types.ts index fe06aa22..5785a5a9 100644 --- a/src/types.ts +++ b/src/types.ts @@ -224,6 +224,7 @@ export interface NotemdSettings { slideExportFfmpegCrf: number; slideExportTimeoutMs: number; slideExportTheme: string; + slideExportHtmlMode: 'standalone' | 'server-script'; } // Defines the keys for tasks that can have custom prompts diff --git a/src/ui/NotemdSettingTab.ts b/src/ui/NotemdSettingTab.ts index 24559740..4e7a7316 100644 --- a/src/ui/NotemdSettingTab.ts +++ b/src/ui/NotemdSettingTab.ts @@ -3261,8 +3261,24 @@ export class NotemdSettingTab extends PluginSettingTab { .onChange(async (value) => { this.plugin.settings.slideExportDefaultFormat = value as any; await this.plugin.saveSettings(); + this.display(); })); + // HTML Mode setting (only shown when format is HTML) + if (this.plugin.settings.slideExportDefaultFormat === 'html') { + new Setting(containerEl) + .setName(i18n.slideExport.htmlModeName) + .setDesc(i18n.slideExport.htmlModeDesc) + .addDropdown(dropdown => dropdown + .addOption('standalone', i18n.slideExport.htmlModeStandalone) + .addOption('server-script', i18n.slideExport.htmlModeServer) + .setValue(this.plugin.settings.slideExportHtmlMode) + .onChange(async (value) => { + this.plugin.settings.slideExportHtmlMode = value as 'standalone' | 'server-script'; + await this.plugin.saveSettings(); + })); + } + this.addDeferredTextSetting( new Setting(containerEl) .setName(i18n.slideExport.outputSubfolderName)