@mono-agent/web 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +169 -0
  3. package/dist/contracts.d.ts +151 -0
  4. package/dist/contracts.d.ts.map +1 -0
  5. package/dist/contracts.js +11 -0
  6. package/dist/contracts.js.map +1 -0
  7. package/dist/discovery.d.ts +17 -0
  8. package/dist/discovery.d.ts.map +1 -0
  9. package/dist/discovery.js +137 -0
  10. package/dist/discovery.js.map +1 -0
  11. package/dist/errors.d.ts +9 -0
  12. package/dist/errors.d.ts.map +1 -0
  13. package/dist/errors.js +25 -0
  14. package/dist/errors.js.map +1 -0
  15. package/dist/index.d.ts +14 -0
  16. package/dist/index.d.ts.map +1 -0
  17. package/dist/index.js +10 -0
  18. package/dist/index.js.map +1 -0
  19. package/dist/operator-client.d.ts +42 -0
  20. package/dist/operator-client.d.ts.map +1 -0
  21. package/dist/operator-client.js +257 -0
  22. package/dist/operator-client.js.map +1 -0
  23. package/dist/server.d.ts +22 -0
  24. package/dist/server.d.ts.map +1 -0
  25. package/dist/server.js +566 -0
  26. package/dist/server.js.map +1 -0
  27. package/dist/service.d.ts +89 -0
  28. package/dist/service.d.ts.map +1 -0
  29. package/dist/service.js +644 -0
  30. package/dist/service.js.map +1 -0
  31. package/dist/state-paths.d.ts +25 -0
  32. package/dist/state-paths.d.ts.map +1 -0
  33. package/dist/state-paths.js +226 -0
  34. package/dist/state-paths.js.map +1 -0
  35. package/dist/store.d.ts +112 -0
  36. package/dist/store.d.ts.map +1 -0
  37. package/dist/store.js +953 -0
  38. package/dist/store.js.map +1 -0
  39. package/package.json +48 -0
  40. package/webapp/dist/apple-touch-icon.png +0 -0
  41. package/webapp/dist/assets/assistant-ui-CU4gqU0g.js +70 -0
  42. package/webapp/dist/assets/index-Ck3BY0Ti.js +47 -0
  43. package/webapp/dist/assets/index-CoB6Xwh-.css +1 -0
  44. package/webapp/dist/assets/markdown-qFW9VWmB.js +18 -0
  45. package/webapp/dist/assets/workbox-window.prod.es5-BBnX5xw4.js +2 -0
  46. package/webapp/dist/favicon.ico +0 -0
  47. package/webapp/dist/icon-192.png +0 -0
  48. package/webapp/dist/icon-512.png +0 -0
  49. package/webapp/dist/icon.svg +22 -0
  50. package/webapp/dist/index.html +20 -0
  51. package/webapp/dist/manifest.webmanifest +1 -0
  52. package/webapp/dist/sw.js +1 -0
  53. package/webapp/dist/workbox-9c191d2f.js +1 -0
@@ -0,0 +1 @@
1
+ :root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color-scheme:light dark;--app-bg: #eeefeb;--panel: #f7f7f4;--surface: #fdfdfb;--surface-raised: #ffffff;--surface-subtle: #f0f1ed;--surface-hover: #e9ebe6;--rail: #171a18;--rail-hover: #252a26;--text: #191d1a;--text-soft: #565d58;--text-muted: #7c847e;--line: #dfe2dc;--line-strong: #cfd4cc;--accent: #24725f;--accent-strong: #185b4c;--on-accent: #ffffff;--accent-soft: #dcece6;--accent-glow: rgba(36, 114, 95, .16);--danger: #a3423b;--danger-soft: #f4dfdc;--warning: #a46618;--shadow-sm: 0 1px 2px rgba(22, 29, 25, .06), 0 3px 12px rgba(22, 29, 25, .04);--shadow-lg: 0 24px 80px rgba(13, 19, 15, .2), 0 4px 20px rgba(13, 19, 15, .1);--radius-sm: 8px;--radius-md: 12px;--radius-lg: 18px;--font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}@media(prefers-color-scheme:dark){:root{--app-bg: #0f1110;--panel: #141715;--surface: #191c1a;--surface-raised: #1d211e;--surface-subtle: #202420;--surface-hover: #272c28;--rail: #0b0d0c;--rail-hover: #202421;--text: #f0f2ed;--text-soft: #b5bbb5;--text-muted: #818a82;--line: #2a2f2b;--line-strong: #383f39;--accent: #68b8a2;--accent-strong: #8bd0bd;--on-accent: #0a1713;--accent-soft: #1d3a32;--accent-glow: rgba(104, 184, 162, .12);--danger: #eb8d83;--danger-soft: #3b2523;--warning: #daa258;--shadow-sm: 0 1px 2px rgba(0, 0, 0, .25), 0 3px 12px rgba(0, 0, 0, .14);--shadow-lg: 0 24px 90px rgba(0, 0, 0, .55), 0 4px 24px rgba(0, 0, 0, .3)}}*{box-sizing:border-box}html,body,#root{width:100%;min-width:320px;height:100%;margin:0}body{overflow:hidden;background:var(--app-bg);color:var(--text)}button,input,textarea,select{font:inherit;color:inherit}button{border:0}button,select{-webkit-tap-highlight-color:transparent}button:disabled,select:disabled{cursor:not-allowed;opacity:.45}::selection{color:var(--text);background:var(--accent-soft)}.sr-only,.sr-only-focusable:not(:focus){position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.icon-button{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;flex:none;color:var(--text-soft);background:transparent;border-radius:10px;cursor:pointer}.icon-button:hover{color:var(--text);background:var(--surface-hover)}.primary-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 16px;color:var(--on-accent);background:var(--accent-strong);border-radius:10px;font-weight:650;cursor:pointer;box-shadow:var(--shadow-sm)}.eyebrow{display:block;margin-bottom:5px;color:var(--text-muted);font-size:10px;font-weight:700;line-height:1;letter-spacing:.14em;text-transform:uppercase}.app-shell{width:100%;height:100dvh;display:grid;grid-template-columns:var(--agent-rail-width, 72px) 304px minmax(0,1fr);overflow:hidden;background:var(--surface)}.desktop-agent-rail,.desktop-thread-sidebar{min-width:0;height:100%}.desktop-agent-rail{position:relative;z-index:8}.agent-rail-resize-handle{position:absolute;top:0;right:-5px;bottom:0;width:10px;touch-action:none;cursor:col-resize;outline:0;z-index:2}.agent-rail-resize-handle:after{content:"";position:absolute;top:50%;left:4px;width:3px;height:42px;opacity:0;background:#84cbb7;border-radius:999px;box-shadow:0 0 0 3px #84cbb71f;transform:translateY(-50%);transition:opacity .14s ease}.agent-rail-resize-handle:hover:after,.agent-rail-resize-handle:focus-visible:after,.is-resizing-agent-rail .agent-rail-resize-handle:after{opacity:1}.is-resizing-agent-rail{cursor:col-resize;user-select:none}.mobile-agent-drawer,.mobile-thread-drawer,.drawer-scrim{display:none}.agent-rail{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;gap:13px;padding:max(16px,env(safe-area-inset-top)) 10px max(15px,env(safe-area-inset-bottom));color:#d8ded8;background:var(--rail);border-right:1px solid rgba(255,255,255,.04)}.rail-command,.rail-connection{align-self:center}.rail-brand{width:46px;height:42px;display:flex;align-items:center;justify-content:center;gap:10px;flex:none;margin-bottom:4px}.rail-brand-copy{display:none;overflow:hidden;color:#eef2ed;font-size:13px;font-weight:680;text-overflow:ellipsis;white-space:nowrap}.brand-mark{position:relative;width:28px;height:28px;display:inline-block}.brand-mark span{position:absolute;display:block;border-radius:999px;background:#84cbb7}.brand-mark span:nth-child(1){width:9px;height:9px;top:2px;left:2px}.brand-mark span:nth-child(2){width:9px;height:9px;top:2px;right:2px;background:#e6b566}.brand-mark span:nth-child(3){width:22px;height:9px;bottom:2px;left:3px;background:#f0f3ee}.agent-list{width:100%;min-height:0;flex:1;display:flex;flex-direction:column;align-items:center;gap:9px;padding-block-start:5px;overflow-y:auto;scrollbar-width:none}.agent-list::-webkit-scrollbar{display:none}.agent-item{position:relative;width:48px;display:flex;align-items:center;justify-content:center;flex:none}.agent-button{position:relative;width:48px;height:48px;display:grid;place-items:center;padding:0;color:#d5dbd5;background:transparent;border-radius:15px;cursor:pointer;transition:background .15s ease,transform .15s ease}.agent-button:hover{background:var(--rail-hover);transform:translateY(-1px)}.agent-button.is-active{background:#2b332e;box-shadow:inset 0 0 0 1px #84cbb72e}.agent-button.is-active:before{content:"";position:absolute;left:-10px;width:3px;height:22px;border-radius:0 4px 4px 0;background:#84cbb7}.agent-avatar-wrap{position:relative;width:34px;height:34px;display:grid;place-items:center;flex:none}.agent-avatar{font-size:12px;font-weight:760;letter-spacing:.02em}.agent-label{display:none;min-width:0;overflow:hidden;color:#e1e6e1;font-size:12px;font-weight:620;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.agent-status{position:absolute;right:4px;bottom:4px;width:9px;height:9px;border:2px solid var(--rail);border-radius:50%;background:#727972}.agent-status.is-online{background:#6bc495}.agent-status.is-degraded{background:#e3a756}.agent-pin{position:absolute;top:-5px;right:-5px;width:23px;height:23px;display:grid;place-items:center;padding:0;opacity:0;color:#98a099;background:#252a26;border:1px solid rgba(255,255,255,.08);border-radius:7px;cursor:pointer;transition:color .13s ease,opacity .13s ease,background .13s ease;z-index:2}.agent-item:hover .agent-pin,.agent-pin:focus-visible,.agent-pin.is-pinned{opacity:1}.agent-pin:hover,.agent-pin.is-pinned{color:#e6b566;background:#303630}.agent-rail.is-expanded{align-items:stretch}.agent-rail.is-expanded .rail-brand{width:100%;justify-content:flex-start;padding:0 9px}.agent-rail.is-expanded .rail-brand-copy{display:block}.agent-rail.is-expanded .agent-list{align-items:stretch}.agent-rail.is-expanded .agent-item{width:100%;gap:4px}.agent-rail.is-expanded .agent-button{width:auto;height:auto;min-height:48px;min-width:0;flex:1;display:flex;grid-template:none;justify-content:flex-start;gap:10px;padding:7px 9px}.agent-rail.is-expanded .agent-button.is-active:before{left:-10px}.agent-rail.is-expanded .agent-label{display:block;flex:1;overflow-wrap:anywhere;text-align:left;text-overflow:clip;white-space:normal}.agent-rail.is-expanded .agent-pin{position:static;width:31px;height:31px;flex:none;border-color:transparent;background:transparent}.agent-rail.is-expanded .agent-item:hover .agent-pin,.agent-rail.is-expanded .agent-pin:focus-visible,.agent-rail.is-expanded .agent-pin.is-pinned{opacity:1}.agent-rail.is-expanded .agent-pin:hover,.agent-rail.is-expanded .agent-pin.is-pinned{background:var(--rail-hover)}@media(hover:none),(pointer:coarse){.agent-pin{opacity:1}}.rail-empty{width:44px;height:44px;display:grid;place-items:center;color:#687069;border:1px dashed #333a35;border-radius:13px}.rail-command{width:42px;height:42px;display:grid;place-items:center;color:#8d978f;background:transparent;border-radius:11px;cursor:pointer}.rail-command:hover{color:#eef2ed;background:var(--rail-hover)}.rail-connection{width:7px;height:7px;flex:none;border-radius:50%;background:#626963}.rail-connection.is-live{background:#66bf91;box-shadow:0 0 0 4px #66bf9117}.rail-connection.is-connecting,.rail-connection.is-reconnecting{background:#dba65b;animation:pulse 1.4s ease infinite}.mobile-agent-picker{width:100%;height:100%;display:flex;flex-direction:column;color:var(--text);background:var(--panel);box-shadow:var(--shadow-lg)}.mobile-agent-picker>header{min-height:82px;display:flex;align-items:center;gap:14px;padding:max(17px,env(safe-area-inset-top)) 18px 12px;border-bottom:1px solid var(--line)}.mobile-agent-picker>header .brand-mark{flex:none;transform:scale(.86)}.mobile-agent-picker h2{margin:0;font-size:18px}.mobile-agent-list{min-height:0;flex:1;padding:10px;overflow-y:auto}.mobile-agent-row{width:100%;display:flex;align-items:center;gap:4px;border-radius:11px}.mobile-agent-select{position:relative;min-width:0;min-height:62px;display:flex;align-items:center;gap:12px;flex:1;padding:8px 10px;color:var(--text);background:transparent;border-radius:11px;cursor:pointer;text-align:left}.mobile-agent-select:hover,.mobile-agent-select.is-active{background:var(--surface-raised);box-shadow:inset 0 0 0 1px var(--line)}.mobile-agent-avatar{width:40px;height:40px;display:grid;place-items:center;flex:none;color:#dfe5df;background:var(--rail);border-radius:12px;font-size:11px;font-weight:750}.mobile-agent-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}.mobile-agent-copy strong{overflow-wrap:anywhere;font-size:13px;line-height:1.35}.mobile-agent-copy small{color:var(--text-muted);font-size:10px;text-transform:capitalize}.mobile-agent-list .agent-status{position:static;width:8px;height:8px;border:0}.mobile-agent-select>svg{flex:none;color:var(--accent)}.mobile-agent-pin{width:40px;height:40px;display:grid;place-items:center;flex:none;padding:0;color:var(--text-muted);background:transparent;border-radius:10px;cursor:pointer}.mobile-agent-pin:hover,.mobile-agent-pin.is-pinned{color:#b77b21;background:var(--surface-hover)}.mobile-agent-list p{padding:30px 18px;color:var(--text-muted);text-align:center;font-size:12px;line-height:1.5}.thread-sidebar{width:100%;height:100%;display:flex;flex-direction:column;min-width:0;background:var(--panel);border-right:1px solid var(--line)}.sidebar-header{min-height:85px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:max(18px,env(safe-area-inset-top)) 17px 13px}.sidebar-header h1{max-width:205px;margin:0;overflow:hidden;color:var(--text);font-size:17px;font-weight:680;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.new-thread-button{width:38px;height:38px;display:grid;place-items:center;flex:none;color:var(--text-soft);background:var(--surface-raised);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow-sm);cursor:pointer}.new-thread-button:hover{color:var(--accent);border-color:var(--line-strong)}.thread-search{height:38px;display:flex;align-items:center;gap:8px;margin:0 14px 10px;padding:0 10px;color:var(--text-muted);background:var(--surface-subtle);border:1px solid transparent;border-radius:9px}.thread-search:focus-within{color:var(--accent);background:var(--surface-raised);border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-glow)}.thread-search input{min-width:0;height:100%;flex:1;padding:0;color:var(--text);background:transparent;border:0;outline:0;font-size:13px}.thread-search input::placeholder{color:var(--text-muted)}.thread-search input::-webkit-search-cancel-button{display:none}.thread-search button{width:26px;height:26px;display:grid;place-items:center;padding:0;color:var(--text-muted);background:transparent;border-radius:7px;cursor:pointer}.thread-list{min-height:0;flex:1}.thread-list-scroll{height:100%;padding:2px 8px 12px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent}.thread-item{position:relative;display:flex;align-items:stretch;min-height:68px;margin:2px 0;border-radius:10px;transition:background .13s ease}.thread-item:hover{background:var(--surface-hover)}.thread-item.is-active{background:var(--surface-raised);box-shadow:var(--shadow-sm),inset 0 0 0 1px var(--line)}.thread-item.is-active:before{content:"";position:absolute;left:0;top:18px;width:3px;height:30px;border-radius:0 4px 4px 0;background:var(--accent)}.thread-trigger{min-width:0;flex:1;display:flex;flex-direction:column;justify-content:center;gap:7px;padding:10px 8px 10px 12px;text-align:left;background:transparent;border-radius:10px;cursor:pointer}.thread-title-line{min-width:0;display:flex;align-items:baseline;gap:7px}.thread-title{min-width:0;flex:1;overflow:hidden;color:var(--text);font-size:13px;font-weight:620;text-overflow:ellipsis;white-space:nowrap}.thread-title-line time{flex:none;color:var(--text-muted);font-family:var(--font-mono);font-size:9px}.thread-preview{min-width:0;display:flex;align-items:center;gap:6px;overflow:hidden;color:var(--text-muted);font-size:11.5px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.thread-running{width:6px;height:6px;flex:none;border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px var(--accent-glow);animation:pulse 1.4s ease infinite}.thread-action{width:34px;display:grid;place-items:center;align-self:center;height:34px;margin-right:5px;padding:0;opacity:0;color:var(--text-muted);background:transparent;border-radius:8px;cursor:pointer}.thread-item:hover .thread-action,.thread-action:focus-visible{opacity:1}.thread-action:hover{color:var(--text);background:var(--surface-subtle)}.thread-list-empty{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px;color:var(--text-muted);text-align:center;font-size:12px}.archive-toggle{min-height:49px;display:flex;align-items:center;gap:9px;margin:0 10px max(8px,env(safe-area-inset-bottom));padding:0 11px;color:var(--text-muted);background:transparent;border-top:1px solid var(--line);cursor:pointer;font-size:12px;text-align:left}.archive-toggle:hover,.archive-toggle.is-active{color:var(--text)}.archive-count{min-width:16px;margin-left:auto;color:var(--text-muted);font-family:var(--font-mono);font-size:10px;text-align:right}.chat-panel{position:relative;min-width:0;height:100%;display:flex;flex-direction:column;overflow:hidden;background:var(--surface)}.chat-header{min-height:64px;display:flex;align-items:center;gap:15px;padding:max(10px,env(safe-area-inset-top)) max(17px,env(safe-area-inset-right)) 10px max(17px,env(safe-area-inset-left));background:color-mix(in srgb,var(--surface) 94%,transparent);border-bottom:1px solid var(--line);z-index:5}.mobile-navigation{display:none}.chat-title-block{min-width:0;flex:1;display:flex;align-items:center;gap:10px}.conversation-title{min-width:0;max-width:min(52vw,560px);overflow:hidden;padding:3px 5px;color:var(--text);background:transparent;border-radius:6px;font-size:14px;font-weight:650;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text}.title-input{min-width:180px;max-width:min(52vw,560px);height:34px;padding:0 8px;color:var(--text);background:var(--surface-subtle);border:1px solid var(--accent);border-radius:7px;outline:0;font-size:14px;font-weight:650}.chat-status{display:inline-flex;align-items:center;gap:5px;flex:none;color:var(--text-muted);font-size:10px;font-weight:650;text-transform:uppercase;letter-spacing:.07em}.chat-status i{width:6px;height:6px;border-radius:50%;background:var(--text-muted)}.chat-status.is-ready i{background:var(--accent)}.chat-status.is-working i{background:var(--accent);box-shadow:0 0 0 3px var(--accent-glow);animation:pulse 1.2s ease infinite}.chat-status.is-failed,.chat-status.is-offline,.chat-status.is-browser{color:var(--danger)}.chat-status.is-failed i,.chat-status.is-offline i,.chat-status.is-browser i{background:var(--danger)}.chat-status.is-reconnecting,.chat-status.is-degraded{color:var(--warning)}.chat-status.is-reconnecting i,.chat-status.is-degraded i{background:var(--warning);animation:pulse 1.4s ease infinite}.chat-header-actions{display:flex;align-items:center;gap:8px;flex:none}.model-controls{min-width:0;display:flex;align-items:center;gap:6px}.model-selector__trigger{max-width:min(270px,30vw);height:36px;display:inline-flex;align-items:center;justify-content:space-between;gap:8px;padding:0 10px;color:var(--text-soft);background:var(--surface-subtle);border:1px solid var(--line);border-radius:9px;cursor:pointer;text-align:left}.model-selector__trigger:hover:not(:disabled),.model-selector__trigger[aria-expanded=true]{color:var(--text);background:var(--surface-hover);border-color:var(--line-strong)}.model-selector__trigger>svg{flex:none;color:var(--text-muted)}.model-selector__value{min-width:0;display:flex;align-items:center;gap:7px}.model-selector__model-name{min-width:0;overflow:hidden;font-size:10.5px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.model-selector__effort-value{flex:none;padding:2px 5px;color:var(--accent);background:var(--accent-soft);border-radius:5px;font-size:8.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.model-selector__backdrop{display:none}.model-selector__positioner{z-index:112}.model-selector__content{width:min(370px,calc(100vw - 24px));max-height:min(70dvh,620px);overflow:hidden;color:var(--text);background:var(--surface-raised);border:1px solid var(--line-strong);border-radius:14px;box-shadow:var(--shadow-lg);transform-origin:var(--transform-origin)}.model-selector__command{min-height:0;display:flex;flex-direction:column;background:transparent}.model-selector__search-wrapper{min-height:47px;display:flex;align-items:center;gap:9px;padding:0 12px;color:var(--text-muted);border-bottom:1px solid var(--line)}.model-selector__search{min-width:0;height:46px;flex:1;padding:0;color:var(--text);background:transparent;border:0;outline:0;font-size:13px}.model-selector__search::placeholder{color:var(--text-muted)}.model-selector__list{max-height:min(43dvh,360px);padding:6px;overflow-y:auto;overscroll-behavior:contain}.model-selector__group{display:flex;flex-direction:column;gap:2px}.model-selector__item{min-height:52px;display:flex;align-items:center;gap:10px;padding:7px 9px;color:var(--text-soft);border-radius:9px;cursor:pointer;outline:0}.model-selector__item[data-selected=true],.model-selector__item:hover{color:var(--text);background:var(--surface-subtle)}.model-selector__item-copy{min-width:0;display:flex;flex:1;flex-direction:column;gap:3px}.model-selector__item-name{overflow:hidden;font-size:12px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.model-selector__item-description{overflow:hidden;color:var(--text-muted);font-family:var(--font-mono);font-size:9px;text-overflow:ellipsis;white-space:nowrap}.model-selector__selected-indicator{width:25px;height:25px;display:grid;place-items:center;flex:none;color:var(--accent);background:var(--accent-soft);border-radius:7px}.model-selector__empty{padding:30px 18px;color:var(--text-muted);text-align:center;font-size:12px}.model-selector__effort{display:grid;gap:8px;padding:10px 12px 12px;background:var(--surface-subtle);border-top:1px solid var(--line)}.model-selector__effort-label{color:var(--text-muted);font-size:9px;font-weight:750;text-transform:uppercase;letter-spacing:.09em}.model-selector__effort-options{display:flex;flex-wrap:wrap;gap:5px}.model-selector__effort-option{min-width:44px;min-height:31px;display:inline-flex;align-items:center;justify-content:center;padding:0 9px;color:var(--text-soft);background:var(--surface-raised);border:1px solid var(--line);border-radius:8px;cursor:pointer;font-size:10px;font-weight:650}.model-selector__effort-option:hover{border-color:var(--line-strong)}.model-selector__effort-option[data-checked]{color:var(--on-accent);background:var(--accent-strong);border-color:var(--accent-strong)}.context-display-trigger{height:32px;display:inline-flex;align-items:center;gap:5px;padding:0 7px;color:var(--text-muted);background:transparent;border-radius:8px;cursor:pointer;font-family:var(--font-mono);font-size:9px;white-space:nowrap}.context-display-trigger:hover,.context-display-trigger[aria-expanded=true]{color:var(--text);background:var(--surface-subtle)}.context-display-icon{color:var(--accent)}.context-display-trigger-percent{color:var(--accent);font-weight:700}.context-display-trigger-percent:before,.context-display-trigger-cost:before{content:"·";margin-right:5px;color:var(--line-strong)}.context-display-positioner{z-index:111}.context-display-popover{width:min(300px,calc(100vw - 24px));padding:14px;color:var(--text);background:var(--surface-raised);border:1px solid var(--line-strong);border-radius:13px;box-shadow:var(--shadow-lg)}.context-display-title{margin:0 0 12px;font-size:12px;font-weight:720}.context-display-window{display:grid;gap:7px;margin-bottom:12px}.context-display-window-summary{display:flex;justify-content:space-between;gap:12px;color:var(--text-muted);font-size:10px}.context-display-percent{color:var(--accent);font-family:var(--font-mono);font-weight:700}.context-display-progress{height:5px;overflow:hidden;background:var(--surface-subtle);border-radius:999px}.context-display-progress-value{height:100%;display:block;background:var(--accent);border-radius:inherit}.context-display-breakdown{display:grid;gap:6px;margin:0}.context-display-breakdown-row{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--text-muted);font-size:10px}.context-display-breakdown-row dt,.context-display-breakdown-row dd{margin:0}.context-display-breakdown-row dd{color:var(--text-soft);font-family:var(--font-mono)}.context-display-breakdown-total,.context-display-breakdown-cost{padding-top:6px;color:var(--text);border-top:1px solid var(--line);font-weight:700}.header-archive{width:36px;height:36px}.connection-banner{min-height:34px;display:flex;align-items:center;justify-content:center;gap:8px;padding:7px 16px;color:var(--warning);background:color-mix(in srgb,var(--warning) 9%,var(--surface));border-bottom:1px solid color-mix(in srgb,var(--warning) 25%,var(--line));font-size:11px;text-align:center;z-index:4}.connection-pulse{width:6px;height:6px;flex:none;border-radius:50%;background:currentColor;animation:pulse 1.5s ease infinite}.thread-root{position:relative;min-height:0;display:flex;flex:1 1 0;flex-direction:column;overflow:hidden}.thread-viewport{width:100%;min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent}.message-column{width:min(100%,880px);min-height:calc(100% - 160px);margin:0 auto;padding:38px 32px 20px}.thread-footer{position:sticky;bottom:0;width:100%;padding:28px max(24px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));background:linear-gradient(to bottom,transparent 0,color-mix(in srgb,var(--surface) 94%,transparent) 28px,var(--surface) 70%);z-index:3}.scroll-bottom{position:sticky;left:50%;bottom:143px;width:36px;height:36px;display:grid;place-items:center;margin-left:-18px;color:var(--text-soft);background:var(--surface-raised);border:1px solid var(--line-strong);border-radius:50%;box-shadow:var(--shadow-sm);cursor:pointer;z-index:4}.detail-loading{position:absolute;inset:64px 0 0;display:grid;place-items:center;pointer-events:none;background:color-mix(in srgb,var(--surface) 74%,transparent);z-index:4}.detail-loading span{width:22px;height:22px;border:2px solid var(--line-strong);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}.message{position:relative;width:100%;margin-bottom:28px}.message-user{display:flex;flex-direction:column;align-items:flex-end}.message-user-content{max-width:min(78%,650px);padding:11px 15px;color:var(--text);background:var(--surface-subtle);border:1px solid var(--line);border-radius:16px 16px 4px}.message-assistant{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:start;gap:11px}.assistant-mark{width:28px;height:28px;display:grid;place-items:center;margin-top:-2px;color:var(--accent);background:var(--accent-soft);border-radius:9px}.assistant-content{min-width:0;padding-right:36px}.message-system{margin:18px auto;padding:8px 12px;color:var(--text-muted);border-left:2px solid var(--line-strong);font-size:12px}.markdown{color:var(--text);font-size:14px;line-height:1.68;overflow-wrap:anywhere}.markdown>:first-child{margin-top:0}.markdown>:last-child{margin-bottom:0}.markdown p,.markdown ul,.markdown ol,.markdown blockquote,.markdown pre{margin:0 0 .85em}.markdown ul,.markdown ol{padding-left:1.45em}.markdown li+li{margin-top:.3em}.markdown a{color:var(--accent);text-decoration-thickness:1px;text-underline-offset:3px}.markdown blockquote{padding-left:13px;color:var(--text-soft);border-left:2px solid var(--line-strong)}.markdown code{padding:.13em .35em;background:var(--surface-subtle);border:1px solid var(--line);border-radius:5px;font-family:var(--font-mono);font-size:.88em}.markdown pre{max-width:100%;padding:13px 15px;overflow-x:auto;color:var(--text);background:var(--rail);border:1px solid var(--line);border-radius:10px}.markdown pre code{padding:0;color:#e8eee8;background:transparent;border:0}.markdown table{width:100%;display:block;overflow-x:auto;border-collapse:collapse;font-size:12px}.markdown th,.markdown td{padding:7px 9px;border:1px solid var(--line);text-align:left}.message-actions{min-height:26px;display:flex;gap:4px;margin-top:5px;opacity:0;pointer-events:none;transition:opacity .1s ease}.message:hover .message-actions,.message:focus-within .message-actions,.message-actions.is-persistent{opacity:1;pointer-events:auto}.message-user .message-actions{justify-content:flex-end}.message-action{height:27px;display:inline-flex;align-items:center;gap:5px;padding:0 7px;color:var(--text-muted);background:transparent;border-radius:7px;cursor:pointer;font-size:10px}.message-action:hover{color:var(--text);background:var(--surface-subtle)}.message-action.is-success{color:var(--accent)}.message-action.is-error{color:var(--danger)}@media(hover:none),(pointer:coarse){.message-actions{opacity:1;pointer-events:auto}}.thinking-indicator{height:24px;display:inline-flex;align-items:center;gap:4px}.thinking-indicator i{width:5px;height:5px;border-radius:50%;background:var(--text-muted);animation:bounce 1.1s ease-in-out infinite}.thinking-indicator i:nth-child(2){animation-delay:.12s}.thinking-indicator i:nth-child(3){animation-delay:.24s}.message-error{display:flex;flex-direction:column;gap:3px;margin:10px 0;padding:10px 12px;color:var(--danger);background:var(--danger-soft);border:1px solid color-mix(in srgb,var(--danger) 25%,transparent);border-radius:9px;font-size:12px}.message-error strong{font-size:10px;letter-spacing:.06em;text-transform:uppercase}.reasoning-root{margin:5px 0 11px}.reasoning-trigger{min-height:32px;display:inline-flex;align-items:center;gap:7px;padding:0 7px 0 3px;color:var(--text-muted);background:transparent;border-radius:8px;cursor:pointer;font-size:11px}.reasoning-trigger:hover{color:var(--text-soft);background:var(--surface-subtle)}.reasoning-trigger[data-active=true] .reasoning-trigger-label{color:var(--accent)}.reasoning-trigger-icon{width:22px;height:22px;display:grid;place-items:center;color:var(--accent)}.reasoning-trigger[data-active=true] .reasoning-trigger-icon{animation:pulse 1.4s ease infinite}.reasoning-trigger-chevron{transition:transform .16s ease}.reasoning-trigger[data-panel-open] .reasoning-trigger-chevron{transform:rotate(90deg)}.reasoning-content{overflow:hidden}.reasoning-text{position:relative;max-height:256px;margin:5px 0 5px 13px;padding:4px 0 4px 16px;overflow-y:auto;color:var(--text-muted);border-left:1px solid var(--line-strong);font-size:12px;line-height:1.58}.reasoning-text-content{display:grid;gap:9px}.reasoning-part p{margin:0;white-space:pre-wrap}.reasoning-root[data-streaming=true] .reasoning-text{mask-image:linear-gradient(to bottom,#000 70%,transparent 100%)}.tool-call{color:var(--text-soft);background:var(--surface-subtle);border:1px solid var(--line);border-radius:9px;font-size:11px}.tool-call summary{min-height:35px;display:flex;align-items:center;gap:8px;padding:0 10px;list-style:none;cursor:pointer}.tool-call summary::-webkit-details-marker{display:none}.tool-call summary>svg{margin-left:auto;transition:transform .13s ease}.tool-call[open] summary>svg{transform:rotate(90deg)}.tool-status{width:7px;height:7px;flex:none;border-radius:50%;background:var(--accent)}.tool-status.is-running{animation:pulse 1.2s ease infinite}.tool-call.is-error .tool-status{background:var(--danger)}.tool-name{color:var(--text);font-family:var(--font-mono);font-weight:600}.tool-state{color:var(--text-muted);font-size:9px;text-transform:uppercase;letter-spacing:.06em}.tool-payload{display:grid;gap:6px;padding:0 10px 10px}.tool-payload>span{color:var(--text-muted);font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.tool-payload pre{max-height:280px;margin:0;padding:9px;overflow:auto;color:var(--text-soft);background:var(--surface);border:1px solid var(--line);border-radius:7px;font-family:var(--font-mono);font-size:10px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}.message-attachments,.composer-attachments{display:flex;flex-wrap:wrap;gap:7px}.message-attachments{justify-content:flex-end;margin-bottom:8px}.composer-attachments{max-height:108px;margin-bottom:6px;overflow-y:auto}.composer-attachments:empty,.message-attachments:empty{display:none}.attachment-chip{position:relative;min-width:0;max-width:250px;height:34px;display:flex;align-items:center;gap:7px;padding:0 8px;overflow:hidden;color:var(--text-soft);background:var(--surface-raised);border:1px solid var(--line);border-radius:9px;font-size:11px}.attachment-chip.is-error{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 40%,var(--line))}.attachment-icon{width:20px;height:20px;display:grid;place-items:center;flex:none;color:var(--accent);background:var(--accent-soft);border-radius:6px}.attachment-icon img{width:100%;height:100%;display:block;object-fit:cover;border-radius:6px}.attachment-link{min-width:0;display:flex;align-items:center;gap:7px;flex:1;color:inherit;text-decoration:none}.attachment-link:hover .attachment-name{color:var(--accent);text-decoration:underline;text-underline-offset:2px}.attachment-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-progress{position:absolute;left:0;bottom:0;width:var(--upload-progress);height:2px;background:var(--accent);transition:width .12s linear}.attachment-error{flex:none;font-size:9px}.attachment-remove{width:24px;height:24px;margin-left:1px}.composer-root{position:relative;width:min(100%,820px);margin:0 auto;background:var(--surface-raised);border:1px solid var(--line-strong);border-radius:16px;box-shadow:0 10px 32px #19231d12,var(--shadow-sm);transition:border-color .15s ease,box-shadow .15s ease}.composer-root:focus-within{border-color:color-mix(in srgb,var(--accent) 65%,var(--line));box-shadow:0 0 0 3px var(--accent-glow),0 12px 36px #19231d12}.composer-dropzone{padding:10px 10px 8px;border-radius:15px}.composer-dropzone[data-dragging=true]{background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent)}.composer-input-row{min-height:37px;display:flex}.composer-input{width:100%;max-height:180px;min-height:37px;resize:none;padding:7px 5px;color:var(--text);background:transparent;border:0;outline:0;font-size:14px;line-height:1.55}.composer-input::placeholder{color:var(--text-muted)}.composer-toolbar{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:10px}.composer-tools{min-width:0;display:flex;align-items:center;gap:5px}.composer-tool{width:32px;height:32px}.composer-hint{overflow:hidden;color:var(--text-muted);font-size:9.5px;text-overflow:ellipsis;white-space:nowrap}.composer-trigger-popover{position:absolute;left:9px;bottom:calc(100% + 9px);width:min(320px,calc(100vw - 24px));padding:5px;color:var(--text);background:var(--surface-raised);border:1px solid var(--line-strong);border-radius:12px;box-shadow:var(--shadow-lg);z-index:12}.composer-trigger-list{max-height:min(310px,48dvh);overflow-y:auto;overscroll-behavior:contain}.composer-trigger-item{width:100%;min-height:49px;display:flex;align-items:center;gap:10px;padding:6px 8px;color:var(--text-soft);background:transparent;border-radius:9px;cursor:pointer;outline:0;text-align:left}.composer-trigger-item[aria-selected=true],.composer-trigger-item:hover{color:var(--text);background:var(--surface-subtle)}.composer-trigger-item-icon{width:30px;height:30px;display:grid;place-items:center;flex:none;color:var(--accent);background:var(--accent-soft);border-radius:8px}.composer-trigger-item-copy{min-width:0;display:flex;flex:1;flex-direction:column;gap:2px}.composer-trigger-item-copy strong{font-size:11.5px;font-weight:680}.composer-trigger-item-copy small{overflow:hidden;color:var(--text-muted);font-size:9.5px;text-overflow:ellipsis;white-space:nowrap}.composer-trigger-empty{padding:20px 12px;color:var(--text-muted);text-align:center;font-size:11px}.composer-send{width:34px;height:34px;display:grid;place-items:center;flex:none;padding:0;color:var(--on-accent);background:var(--accent-strong);border-radius:10px;cursor:pointer}.composer-send:hover:not(:disabled){filter:brightness(1.06);transform:translateY(-1px)}.composer-stop{min-width:70px;height:34px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 10px;color:var(--text);background:var(--surface-subtle);border:1px solid var(--line);border-radius:10px;cursor:pointer;font-size:11px}.archived-footer{width:min(100%,820px);min-height:52px;display:flex;align-items:center;justify-content:center;gap:10px;margin:0 auto;padding:10px 16px;color:var(--text-muted);background:var(--surface-subtle);border:1px solid var(--line);border-radius:12px;font-size:12px}.archived-footer button{color:var(--accent);background:transparent;cursor:pointer;font-weight:650}.chat-empty{min-height:420px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:44px 20px;text-align:center}.empty-orbit{position:relative;width:60px;height:60px;display:grid;place-items:center;margin-bottom:23px;color:var(--accent);background:var(--accent-soft);border-radius:20px}.empty-orbit:before{content:"";position:absolute;inset:-9px;border:1px solid color-mix(in srgb,var(--accent) 20%,transparent);border-radius:25px;transform:rotate(12deg)}.empty-orbit span{position:absolute;right:-6px;top:8px;width:7px;height:7px;border-radius:50%;background:var(--warning);box-shadow:0 0 0 4px color-mix(in srgb,var(--warning) 12%,transparent)}.chat-empty h2{max-width:520px;margin:3px 0 9px;color:var(--text);font-size:clamp(22px,3vw,31px);line-height:1.18;letter-spacing:-.025em}.chat-empty p{max-width:500px;margin:0 0 20px;color:var(--text-muted);font-size:13px;line-height:1.55}.initial-state,.fatal-state{width:100%;height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px;background:var(--surface);text-align:center}.initial-state .brand-mark,.fatal-state .brand-mark{width:38px;height:38px;margin-bottom:25px;transform:scale(1.35);filter:drop-shadow(0 5px 15px var(--accent-glow))}.initial-state>span:last-child{margin-top:11px;color:var(--text-muted);font-size:11px;letter-spacing:.08em;text-transform:uppercase}.initial-loader{display:flex;gap:5px}.initial-loader span{width:5px;height:5px;border-radius:50%;background:var(--accent);animation:bounce 1.1s ease infinite}.initial-loader span:nth-child(2){animation-delay:.12s}.initial-loader span:nth-child(3){animation-delay:.24s}.fatal-state h1{max-width:600px;margin:7px 0 10px;font-size:clamp(24px,4vw,38px);letter-spacing:-.03em}.fatal-state p{max-width:580px;margin:0 0 22px;color:var(--text-muted);line-height:1.6}.fatal-state small{max-width:560px;margin-top:18px;color:var(--text-muted);font-size:11px}.fatal-state code{padding:2px 5px;color:var(--text-soft);background:var(--surface-subtle);border-radius:4px;font-family:var(--font-mono)}.dialog-layer{position:fixed;inset:0;display:flex;align-items:flex-start;justify-content:center;padding:min(15vh,130px) 16px 16px;background:#070a086b;backdrop-filter:blur(6px);z-index:100}.command-palette{width:min(100%,560px);overflow:hidden;color:var(--text);background:var(--surface-raised);border:1px solid var(--line-strong);border-radius:16px;box-shadow:var(--shadow-lg)}.palette-search{height:56px;display:flex;align-items:center;gap:10px;padding:0 14px;color:var(--text-muted);border-bottom:1px solid var(--line)}.palette-search input{min-width:0;flex:1;height:100%;color:var(--text);background:transparent;border:0;outline:0;font-size:14px}kbd{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:20px;padding:0 5px;color:var(--text-muted);background:var(--surface-subtle);border:1px solid var(--line);border-radius:5px;box-shadow:0 1px 0 var(--line-strong);font-family:var(--font-mono);font-size:9px}.palette-results{max-height:min(48vh,390px);padding:7px;overflow-y:auto}.palette-results button{width:100%;min-height:44px;display:flex;align-items:center;gap:10px;padding:6px 9px;color:var(--text-soft);background:transparent;border-radius:9px;cursor:pointer;text-align:left;font-size:12px}.palette-results button:hover,.palette-results button[aria-selected=true]{color:var(--text);background:var(--surface-subtle)}.palette-results button>span:nth-child(2){min-width:0;flex:1}.palette-icon{width:28px;height:28px;display:grid;place-items:center;flex:none;color:var(--accent);background:var(--accent-soft);border-radius:7px}.palette-results p{margin:30px;color:var(--text-muted);text-align:center;font-size:12px}.command-palette footer{min-height:40px;display:flex;align-items:center;justify-content:flex-end;gap:14px;padding:0 13px;color:var(--text-muted);background:var(--surface-subtle);border-top:1px solid var(--line);font-size:9px}.command-palette footer span{display:inline-flex;align-items:center;gap:4px}.toast{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));max-width:min(420px,calc(100vw - 36px));min-height:48px;display:flex;align-items:center;gap:12px;padding:9px 9px 9px 14px;color:#f8faf6;background:#242a26;border:1px solid rgba(255,255,255,.1);border-radius:11px;box-shadow:var(--shadow-lg);font-size:12px;line-height:1.4;z-index:120}.toast span{min-width:0;flex:1}.toast button{width:30px;height:30px;display:grid;place-items:center;flex:none;color:#b8c0b9;background:transparent;border-radius:7px;cursor:pointer}.toast button:hover{color:#fff;background:#ffffff14}@keyframes pulse{0%,to{opacity:1}50%{opacity:.38}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes bounce{0%,60%,to{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}@media(max-width:1100px){.model-selector__trigger{max-width:210px}}@media(max-width:1100px)and (min-width:901px){.app-shell{grid-template-columns:var(--agent-rail-width, 72px) 270px minmax(0,1fr)}.message-column{padding-inline:24px}.composer-hint{display:none}}@media(max-width:900px){.app-shell{grid-template-columns:minmax(0,1fr)}.desktop-agent-rail,.desktop-thread-sidebar{display:none}.mobile-navigation{display:flex;align-items:center;gap:2px;margin-left:-6px}.chat-header{min-height:58px;gap:8px;padding-block:max(7px,env(safe-area-inset-top)) 7px}.conversation-title{max-width:min(42vw,340px)}.chat-status{display:none}.header-archive{display:inline-flex}.message-column{padding:28px 18px 16px}.thread-footer{padding-inline:max(14px,env(safe-area-inset-left)) max(14px,env(safe-area-inset-right))}.mobile-agent-drawer,.mobile-thread-drawer{position:fixed;top:0;bottom:0;display:block;opacity:0;visibility:hidden;transition:transform .18s ease,opacity .18s ease,visibility .18s;z-index:40}.mobile-agent-drawer{left:0;width:min(310px,calc(100vw - 44px));transform:translate(-100%)}.mobile-thread-drawer{left:0;width:min(340px,calc(100vw - 36px));transform:translate(-110%)}.mobile-agent-drawer.is-open,.mobile-thread-drawer.is-open{opacity:1;visibility:visible;transform:translate(0)}.drawer-scrim{position:fixed;inset:0;display:block;width:100%;height:100%;padding:0;background:#070a0875;backdrop-filter:blur(3px);z-index:35}.mobile-thread-drawer .thread-sidebar{box-shadow:var(--shadow-lg)}.mobile-thread-drawer .thread-action{opacity:1}}@media(max-width:560px){.chat-header{flex-wrap:wrap;align-content:center;padding-left:max(9px,env(safe-area-inset-left));padding-right:max(9px,env(safe-area-inset-right));padding-bottom:8px}.mobile-navigation{order:1}.mobile-navigation .icon-button{width:36px;height:38px}.chat-title-block{order:2;flex:1;gap:0}.conversation-title{max-width:calc(100vw - 118px);min-width:64px;padding-inline:2px;font-size:13px}.title-input{width:calc(100vw - 118px);min-width:84px}.chat-header-actions{width:100%;order:3;gap:5px}.model-controls{min-width:0;flex:1;gap:3px}.model-selector__trigger{min-width:0;max-width:none;flex:1}.model-selector__backdrop{position:fixed;inset:0;display:block;background:#070a087a;backdrop-filter:blur(4px);z-index:110}.model-selector__positioner{position:fixed!important;inset:auto 0 0!important;width:100%;transform:none!important}.model-selector__content{width:100%;max-height:78dvh;padding-bottom:env(safe-area-inset-bottom);border-right:0;border-bottom:0;border-left:0;border-radius:20px 20px 0 0}.model-selector__search-wrapper{min-height:54px;padding-inline:16px}.model-selector__search{height:53px;font-size:16px}.model-selector__list{max-height:48dvh;padding:8px}.model-selector__item{min-height:58px;padding-inline:11px}.model-selector__item-name{font-size:13px}.model-selector__effort{padding:12px 14px 14px}.model-selector__effort-option{min-height:38px;padding-inline:12px;font-size:11px}.message-column{padding:24px 12px 8px}.message{margin-bottom:23px}.message-user-content{max-width:88%;padding:9px 12px}.message-assistant{grid-template-columns:24px minmax(0,1fr);gap:8px}.assistant-mark{width:24px;height:24px;border-radius:7px}.assistant-content{padding-right:2px}.markdown{font-size:13.5px;line-height:1.62}.thread-footer{padding:24px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}.composer-root{border-radius:14px}.composer-dropzone{padding:8px 8px 6px}.composer-hint{display:none}.composer-input{font-size:16px}.chat-empty{min-height:330px;padding:32px 10px}.chat-empty h2{font-size:23px}.connection-banner{font-size:10px}.dialog-layer{padding:max(12px,env(safe-area-inset-top)) 8px 8px;align-items:flex-start}.command-palette{border-radius:13px}.command-palette footer{display:none}.toast{right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));max-width:calc(100vw - 16px)}}@media(max-width:420px){.chat-header-actions{justify-content:flex-end}}@media(max-width:360px){.context-display-trigger-cost{display:none}.message-column{padding-inline:9px}.mobile-thread-drawer{width:calc(100vw - 28px);left:0}.mobile-agent-drawer{width:calc(100vw - 36px)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:1ms!important;animation-iteration-count:1!important;transition-duration:1ms!important}}
@@ -0,0 +1,18 @@
1
+ import{r as ue,j as W,g as Tn,u as dn,i as Ar,a as zr}from"./assistant-ui-CU4gqU0g.js";const vr=(e,n)=>typeof e=="string"?e===n:JSON.stringify(e)===JSON.stringify(n),Lr=(e,n)=>{if(!e||!n)return!1;const t=r=>{const{position:i,data:l,...o}=r||{};return o};return JSON.stringify(t(e.properties))===JSON.stringify(t(n.properties))&&vr(e.children,n.children)},Dt=(e,n)=>Lr(e.node,n.node),Pn=ue.createContext(null),Or=()=>ue.useContext(Pn)!==null,Nr=({children:e,...n})=>W.jsx(Pn.Provider,{value:n,children:e}),Dr=ue.memo(Nr,Dt),Rr=({node:e,...n})=>W.jsx("pre",{...n}),_r=({node:e,...n})=>W.jsx("code",{...n}),An=({node:e,components:{Pre:n,Code:t},code:r})=>W.jsx(n,{children:W.jsx(t,{node:e,children:r})}),Fr=()=>null,Mr=({node:e,components:{Pre:n,Code:t,SyntaxHighlighter:r,CodeHeader:i},language:l,code:o})=>{const a=ue.useMemo(()=>({Pre:n,Code:t}),[n,t]);return W.jsxs(W.Fragment,{children:[W.jsx(i,{node:e,language:l,code:o}),W.jsx(l?r:An,{node:e,components:a,language:l??"unknown",code:o})]})};var en={exports:{}};/*!
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */var Xn;function Br(){return Xn||(Xn=1,(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var l="",o=0;o<arguments.length;o++){var a=arguments[o];a&&(l=i(l,r(a)))}return l}function r(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return t.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var o="";for(var a in l)n.call(l,a)&&l[a]&&(o=i(o,a));return o}function i(l,o){return o?l?l+" "+o:l+o:l}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(en)),en.exports}var jr=Br();const Rt=Tn(jr),Qn=({className:e,...n})=>({className:t,...r})=>({className:Rt(e,t),...n,...r}),Hr=({node:e,components:{Pre:n,Code:t,SyntaxHighlighter:r,CodeHeader:i},componentsByLanguage:l={},children:o,...a})=>{const c=Qn(ue.useContext(Pn)),u=dn(p=>W.jsx(n,{...c(p)})),s=Qn(a),f=dn(p=>W.jsx(t,{...s(p)})),d=/language-(\w+)/.exec(a.className||"")?.[1]??"";return typeof o!="string"?W.jsx(An,{node:e,components:{Pre:u,Code:f},code:o}):W.jsx(Mr,{node:e,components:{Pre:u,Code:f,SyntaxHighlighter:l[d]?.SyntaxHighlighter??r,CodeHeader:l[d]?.CodeHeader??i},language:d||"unknown",code:o})},Ur=({node:e,components:n,componentsByLanguage:t,...r})=>Or()?W.jsx(Hr,{node:e,components:n,componentsByLanguage:t,...r}):W.jsx(n.Code,{...r}),Vr=ue.memo(Ur,(e,n)=>e.components===n.components&&e.componentsByLanguage===n.componentsByLanguage&&Dt(e,n));function qr(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const $r=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Wr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Yr={};function Jn(e,n){return(Yr.jsx?Wr:$r).test(e)}const Xr=/[ \t\n\f\r]/g;function Qr(e){return typeof e=="object"?e.type==="text"?Kn(e.value):!1:Kn(e)}function Kn(e){return e.replace(Xr,"")===""}class Ue{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}Ue.prototype.normal={};Ue.prototype.property={};Ue.prototype.space=void 0;function _t(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new Ue(t,r,n)}function gn(e){return e.toLowerCase()}class Z{constructor(n,t){this.attribute=t,this.property=n}}Z.prototype.attribute="";Z.prototype.booleanish=!1;Z.prototype.boolean=!1;Z.prototype.commaOrSpaceSeparated=!1;Z.prototype.commaSeparated=!1;Z.prototype.defined=!1;Z.prototype.mustUseProperty=!1;Z.prototype.number=!1;Z.prototype.overloadedBoolean=!1;Z.prototype.property="";Z.prototype.spaceSeparated=!1;Z.prototype.space=void 0;let Jr=0;const L=Ce(),Y=Ce(),yn=Ce(),k=Ce(),U=Ce(),Se=Ce(),ne=Ce();function Ce(){return 2**++Jr}const xn=Object.freeze(Object.defineProperty({__proto__:null,boolean:L,booleanish:Y,commaOrSpaceSeparated:ne,commaSeparated:Se,number:k,overloadedBoolean:yn,spaceSeparated:U},Symbol.toStringTag,{value:"Module"})),nn=Object.keys(xn);class zn extends Z{constructor(n,t,r,i){let l=-1;if(super(n,t),Gn(this,"space",i),typeof r=="number")for(;++l<nn.length;){const o=nn[l];Gn(this,nn[l],(r&xn[o])===xn[o])}}}zn.prototype.defined=!0;function Gn(e,n,t){t&&(e[n]=t)}function ze(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const l=new zn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[gn(r)]=r,t[gn(l.attribute)]=r}return new Ue(n,t,e.space)}const Ft=ze({properties:{ariaActiveDescendant:null,ariaAtomic:Y,ariaAutoComplete:null,ariaBusy:Y,ariaChecked:Y,ariaColCount:k,ariaColIndex:k,ariaColSpan:k,ariaControls:U,ariaCurrent:null,ariaDescribedBy:U,ariaDetails:null,ariaDisabled:Y,ariaDropEffect:U,ariaErrorMessage:null,ariaExpanded:Y,ariaFlowTo:U,ariaGrabbed:Y,ariaHasPopup:null,ariaHidden:Y,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:U,ariaLevel:k,ariaLive:null,ariaModal:Y,ariaMultiLine:Y,ariaMultiSelectable:Y,ariaOrientation:null,ariaOwns:U,ariaPlaceholder:null,ariaPosInSet:k,ariaPressed:Y,ariaReadOnly:Y,ariaRelevant:null,ariaRequired:Y,ariaRoleDescription:U,ariaRowCount:k,ariaRowIndex:k,ariaRowSpan:k,ariaSelected:Y,ariaSetSize:k,ariaSort:null,ariaValueMax:k,ariaValueMin:k,ariaValueNow:k,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Mt(e,n){return n in e?e[n]:n}function Bt(e,n){return Mt(e,n.toLowerCase())}const Kr=ze({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Se,acceptCharset:U,accessKey:U,action:null,allow:null,allowFullScreen:L,allowPaymentRequest:L,allowUserMedia:L,alpha:L,alt:null,as:null,async:L,autoCapitalize:null,autoComplete:U,autoFocus:L,autoPlay:L,blocking:U,capture:null,charSet:null,checked:L,cite:null,className:U,closedBy:null,colorSpace:null,cols:k,colSpan:k,command:null,commandFor:null,content:null,contentEditable:Y,controls:L,controlsList:U,coords:k|Se,crossOrigin:null,data:null,dateTime:null,decoding:null,default:L,defer:L,dir:null,dirName:null,disabled:L,download:yn,draggable:Y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:L,formTarget:null,headers:U,height:k,hidden:yn,high:k,href:null,hrefLang:null,htmlFor:U,httpEquiv:U,id:null,imageSizes:null,imageSrcSet:null,inert:L,inputMode:null,integrity:null,is:null,isMap:L,itemId:null,itemProp:U,itemRef:U,itemScope:L,itemType:U,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:L,low:k,manifest:null,max:null,maxLength:k,media:null,method:null,min:null,minLength:k,multiple:L,muted:L,name:null,nonce:null,noModule:L,noValidate:L,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:L,optimum:k,pattern:null,ping:U,placeholder:null,playsInline:L,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:L,referrerPolicy:null,rel:U,required:L,reversed:L,rows:k,rowSpan:k,sandbox:U,scope:null,scoped:L,seamless:L,selected:L,shadowRootClonable:L,shadowRootCustomElementRegistry:L,shadowRootDelegatesFocus:L,shadowRootMode:null,shadowRootSerializable:L,shape:null,size:k,sizes:null,slot:null,span:k,spellCheck:Y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:k,step:null,style:null,tabIndex:k,target:null,title:null,translate:null,type:null,typeMustMatch:L,useMap:null,value:Y,width:k,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:U,axis:null,background:null,bgColor:null,border:k,borderColor:null,bottomMargin:k,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:L,declare:L,event:null,face:null,frame:null,frameBorder:null,hSpace:k,leftMargin:k,link:null,longDesc:null,lowSrc:null,marginHeight:k,marginWidth:k,noResize:L,noHref:L,noShade:L,noWrap:L,object:null,profile:null,prompt:null,rev:null,rightMargin:k,rules:null,scheme:null,scrolling:Y,standby:null,summary:null,text:null,topMargin:k,valueType:null,version:null,vAlign:null,vLink:null,vSpace:k,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:L,disablePictureInPicture:L,disableRemotePlayback:L,exportParts:Se,part:U,prefix:null,property:null,results:k,security:null,unselectable:null},space:"html",transform:Bt}),Gr=ze({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ne,accentHeight:k,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:k,amplitude:k,arabicForm:null,ascent:k,attributeName:null,attributeType:null,azimuth:k,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:k,by:null,calcMode:null,capHeight:k,className:U,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:k,diffuseConstant:k,direction:null,display:null,dur:null,divisor:k,dominantBaseline:null,download:L,dx:null,dy:null,edgeMode:null,editable:null,elevation:k,enableBackground:null,end:null,event:null,exponent:k,externalResourcesRequired:null,fill:null,fillOpacity:k,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Se,g2:Se,glyphName:Se,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:k,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:k,horizOriginX:k,horizOriginY:k,id:null,ideographic:k,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:k,k,k1:k,k2:k,k3:k,k4:k,kernelMatrix:ne,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:k,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:k,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:k,overlineThickness:k,paintOrder:null,panose1:null,path:null,pathLength:k,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:U,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:k,pointsAtY:k,pointsAtZ:k,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ne,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ne,rev:ne,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ne,requiredFeatures:ne,requiredFonts:ne,requiredFormats:ne,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:k,specularExponent:k,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:k,strikethroughThickness:k,string:null,stroke:null,strokeDashArray:ne,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:k,strokeOpacity:k,strokeWidth:null,style:null,surfaceScale:k,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ne,tabIndex:k,tableValues:null,target:null,targetX:k,targetY:k,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ne,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:k,underlineThickness:k,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:k,values:null,vAlphabetic:k,vMathematical:k,vectorEffect:null,vHanging:k,vIdeographic:k,version:null,vertAdvY:k,vertOriginX:k,vertOriginY:k,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:k,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Mt}),jt=ze({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Ht=ze({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Bt}),Ut=ze({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Zr={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},ei=/[A-Z]/g,Zn=/-[a-z]/g,ni=/^data[-\w.:]+$/i;function ti(e,n){const t=gn(n);let r=n,i=Z;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&ni.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(Zn,ii);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!Zn.test(l)){let o=l.replace(ei,ri);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=zn}return new i(r,n)}function ri(e){return"-"+e.toLowerCase()}function ii(e){return e.charAt(1).toUpperCase()}const li=_t([Ft,Kr,jt,Ht,Ut],"html"),vn=_t([Ft,Gr,jt,Ht,Ut],"svg");function oi(e){return e.join(" ").trim()}var Pe={},tn,et;function ai(){if(et)return tn;et=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,a=/^\s+|\s+$/g,c=`
6
+ `,u="/",s="*",f="",d="comment",p="declaration";function b(I,x){if(typeof I!="string")throw new TypeError("First argument must be a string");if(!I)return[];x=x||{};var v=1,E=1;function F(A){var S=A.match(n);S&&(v+=S.length);var j=A.lastIndexOf(c);E=~j?A.length-j:E+A.length}function M(){var A={line:v,column:E};return function(S){return S.position=new y(A),_(),S}}function y(A){this.start=A,this.end={line:v,column:E},this.source=x.source}y.prototype.content=I;function D(A){var S=new Error(x.source+":"+v+":"+E+": "+A);if(S.reason=A,S.filename=x.source,S.line=v,S.column=E,S.source=I,!x.silent)throw S}function V(A){var S=A.exec(I);if(S){var j=S[0];return F(j),I=I.slice(j.length),S}}function _(){V(t)}function B(A){var S;for(A=A||[];S=P();)S!==!1&&A.push(S);return A}function P(){var A=M();if(!(u!=I.charAt(0)||s!=I.charAt(1))){for(var S=2;f!=I.charAt(S)&&(s!=I.charAt(S)||u!=I.charAt(S+1));)++S;if(S+=2,f===I.charAt(S-1))return D("End of comment missing");var j=I.slice(2,S-2);return E+=2,F(j),I=I.slice(S),E+=2,A({type:d,comment:j})}}function T(){var A=M(),S=V(r);if(S){if(P(),!V(i))return D("property missing ':'");var j=V(l),X=A({type:p,property:C(S[0].replace(e,f)),value:j?C(j[0].replace(e,f)):f});return V(o),X}}function q(){var A=[];B(A);for(var S;S=T();)S!==!1&&(A.push(S),B(A));return A}return _(),q()}function C(I){return I?I.replace(a,f):f}return tn=b,tn}var nt;function ui(){if(nt)return Pe;nt=1;var e=Pe&&Pe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.default=t;const n=e(ai());function t(r,i){let l=null;if(!r||typeof r!="string")return l;const o=(0,n.default)(r),a=typeof i=="function";return o.forEach(c=>{if(c.type!=="declaration")return;const{property:u,value:s}=c;a?i(u,s,c):s&&(l=l||{},l[u]=s)}),l}return Pe}var De={},tt;function si(){if(tt)return De;tt=1,Object.defineProperty(De,"__esModule",{value:!0}),De.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,l=function(u){return!u||t.test(u)||e.test(u)},o=function(u,s){return s.toUpperCase()},a=function(u,s){return"".concat(s,"-")},c=function(u,s){return s===void 0&&(s={}),l(u)?u:(u=u.toLowerCase(),s.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(n,o))};return De.camelCase=c,De}var Re,rt;function ci(){if(rt)return Re;rt=1;var e=Re&&Re.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(ui()),t=si();function r(i,l){var o={};return!i||typeof i!="string"||(0,n.default)(i,function(a,c){a&&c&&(o[(0,t.camelCase)(a,l)]=c)}),o}return r.default=r,Re=r,Re}var pi=ci();const fi=Tn(pi),Vt=qt("end"),Ln=qt("start");function qt(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function hi(e){const n=Ln(e),t=Vt(e);if(n&&t)return{start:n,end:t}}function Me(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?it(e.position):"start"in e||"end"in e?it(e):"line"in e||"column"in e?kn(e):""}function kn(e){return lt(e&&e.line)+":"+lt(e&&e.column)}function it(e){return kn(e&&e.start)+"-"+kn(e&&e.end)}function lt(e){return e&&typeof e=="number"?e:1}class J extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof n=="string"?i=n:!l.cause&&n&&(o=!0,i=n.message,l.cause=n),!l.ruleId&&!l.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?l.ruleId=r:(l.source=r.slice(0,c),l.ruleId=r.slice(c+1))}if(!l.place&&l.ancestors&&l.ancestors){const c=l.ancestors[l.ancestors.length-1];c&&(l.place=c.position)}const a=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Me(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}J.prototype.file="";J.prototype.name="";J.prototype.reason="";J.prototype.message="";J.prototype.stack="";J.prototype.column=void 0;J.prototype.line=void 0;J.prototype.ancestors=void 0;J.prototype.cause=void 0;J.prototype.fatal=void 0;J.prototype.place=void 0;J.prototype.ruleId=void 0;J.prototype.source=void 0;const On={}.hasOwnProperty,mi=new Map,di=/[A-Z]/g,gi=new Set(["table","tbody","thead","tfoot","tr"]),yi=new Set(["td","th"]),$t="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function xi(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Ti(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Ii(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?vn:li,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=Wt(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function Wt(e,n,t){if(n.type==="element")return ki(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return bi(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Si(e,n,t);if(n.type==="mdxjsEsm")return wi(e,n);if(n.type==="root")return Ci(e,n,t);if(n.type==="text")return Ei(e,n)}function ki(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=vn,e.schema=i),e.ancestors.push(n);const l=Xt(e,n.tagName,!1),o=Pi(e,n);let a=Dn(e,n);return gi.has(n.tagName)&&(a=a.filter(function(c){return typeof c=="string"?!Qr(c):!0})),Yt(e,o,l,n),Nn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function bi(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}He(e,n.position)}function wi(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);He(e,n.position)}function Si(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=vn,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:Xt(e,n.name,!0),o=Ai(e,n),a=Dn(e,n);return Yt(e,o,l,n),Nn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function Ci(e,n,t){const r={};return Nn(r,Dn(e,n)),e.create(n,e.Fragment,r,t)}function Ei(e,n){return n.value}function Yt(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Nn(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Ii(e,n,t){return r;function r(i,l,o,a){const u=Array.isArray(o.children)?t:n;return a?u(l,o,a):u(l,o)}}function Ti(e,n){return t;function t(r,i,l,o){const a=Array.isArray(l.children),c=Ln(r);return n(i,l,o,a,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function Pi(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&On.call(n.properties,i)){const l=zi(e,i,n.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&yi.has(n.tagName)?r=a:t[o]=a}}if(r){const l=t.style||(t.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Ai(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const a=o.properties[0];a.type,Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else He(e,n.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,l=e.evaluater.evaluateExpression(a.expression)}else He(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function Dn(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:mi;for(;++r<n.children.length;){const l=n.children[r];let o;if(e.passKeys){const c=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(c){const u=i.get(c)||0;o=c+"-"+u,i.set(c,u+1)}}const a=Wt(e,l,o);a!==void 0&&t.push(a)}return t}function zi(e,n,t){const r=ti(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?qr(t):oi(t)),r.property==="style"){let i=typeof t=="object"?t:vi(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Li(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Zr[r.property]||r.property:r.attribute,t]}}function vi(e,n){try{return fi(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new J("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=$t+"#cannot-parse-style-attribute",i}}function Xt(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let l=-1,o;for(;++l<i.length;){const a=Jn(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(l&&a.type==="Literal"),optional:!1}:a}r=o}else r=Jn(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return On.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);He(e)}function He(e,n){const t=new J("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=$t+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Li(e){const n={};let t;for(t in e)On.call(e,t)&&(n[Oi(t)]=e[t]);return n}function Oi(e){let n=e.replace(di,Ni);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Ni(e){return"-"+e.toLowerCase()}const rn={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Di={};function Ri(e,n){const t=Di,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Qt(e,r,i)}function Qt(e,n,t){if(_i(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ot(e.children,n,t)}return Array.isArray(e)?ot(e,n,t):""}function ot(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Qt(e[i],n,t);return r.join("")}function _i(e){return!!(e&&typeof e=="object")}const at=document.createElement("i");function Rn(e){const n="&"+e+";";at.innerHTML=n;const t=at.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function pe(e,n,t,r){const i=e.length;let l=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);l<r.length;)o=r.slice(l,l+1e4),o.unshift(n,0),e.splice(...o),l+=1e4,n+=1e4}function re(e,n){return e.length>0?(pe(e,e.length,0,n),e):n}const ut={}.hasOwnProperty;function Fi(e){const n={};let t=-1;for(;++t<e.length;)Mi(n,e[t]);return n}function Mi(e,n){let t;for(t in n){const i=(ut.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t];let o;if(l)for(o in l){ut.call(i,o)||(i[o]=[]);const a=l[o];Bi(i[o],Array.isArray(a)?a:a?[a]:[])}}}function Bi(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);pe(e,0,0,r)}function Jt(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function Ae(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ce=xe(/[A-Za-z]/),te=xe(/[\dA-Za-z]/),ji=xe(/[#-'*+\--9=?A-Z^-~]/);function bn(e){return e!==null&&(e<32||e===127)}const wn=xe(/\d/),Hi=xe(/[\dA-Fa-f]/),Ui=xe(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<-2}function G(e){return e!==null&&(e<0||e===32)}function R(e){return e===-2||e===-1||e===32}const Vi=xe(/\p{P}|\p{S}/u),qi=xe(/\s/);function xe(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function ve(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let o="";if(l===37&&te(e.charCodeAt(t+1))&&te(e.charCodeAt(t+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=e.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function $(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(c){return R(c)?(e.enter(t),a(c)):n(c)}function a(c){return R(c)&&l++<i?(e.consume(c),a):(e.exit(t),n(c))}}const $i={tokenize:Wi};function Wi(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),$(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){const c=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=c),t=c,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return z(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const Yi={tokenize:Xi},st={tokenize:Qi};function Xi(e){const n=this,t=[];let r=0,i,l,o;return a;function a(E){if(r<t.length){const F=t[r];return n.containerState=F[1],e.attempt(F[0].continuation,c,u)(E)}return u(E)}function c(E){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&v();const F=n.events.length;let M=F,y;for(;M--;)if(n.events[M][0]==="exit"&&n.events[M][1].type==="chunkFlow"){y=n.events[M][1].end;break}x(r);let D=F;for(;D<n.events.length;)n.events[D][1].end={...y},D++;return pe(n.events,M+1,0,n.events.slice(F)),n.events.length=D,u(E)}return a(E)}function u(E){if(r===t.length){if(!i)return d(E);if(i.currentConstruct&&i.currentConstruct.concrete)return b(E);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(st,s,f)(E)}function s(E){return i&&v(),x(r),d(E)}function f(E){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,b(E)}function d(E){return n.containerState={},e.attempt(st,p,b)(E)}function p(E){return r++,t.push([n.currentConstruct,n.containerState]),d(E)}function b(E){if(E===null){i&&v(),x(0),e.consume(E);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),C(E)}function C(E){if(E===null){I(e.exit("chunkFlow"),!0),x(0),e.consume(E);return}return z(E)?(e.consume(E),I(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(E),C)}function I(E,F){const M=n.sliceStream(E);if(F&&M.push(null),E.previous=l,l&&(l.next=E),l=E,i.defineSkip(E.start),i.write(M),n.parser.lazy[E.start.line]){let y=i.events.length;for(;y--;)if(i.events[y][1].start.offset<o&&(!i.events[y][1].end||i.events[y][1].end.offset>o))return;const D=n.events.length;let V=D,_,B;for(;V--;)if(n.events[V][0]==="exit"&&n.events[V][1].type==="chunkFlow"){if(_){B=n.events[V][1].end;break}_=!0}for(x(r),y=D;y<n.events.length;)n.events[y][1].end={...B},y++;pe(n.events,V+1,0,n.events.slice(D)),n.events.length=y}}function x(E){let F=t.length;for(;F-- >E;){const M=t[F];n.containerState=M[1],M[0].exit.call(n,e)}t.length=E}function v(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Qi(e,n,t){return $(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ct(e){if(e===null||G(e)||qi(e))return 1;if(Vi(e))return 2}function _n(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(n=l(n,t),r.push(l))}return n}const Sn={name:"attention",resolveAll:Ji,tokenize:Ki};function Ji(e,n){let t=-1,r,i,l,o,a,c,u,s;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const f={...e[r][1].end},d={...e[t][1].start};pt(f,-c),pt(d,c),o={type:c>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},a={type:c>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:d},l={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:c>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[t][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=re(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=re(u,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),u=re(u,_n(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=re(u,[["exit",l,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(s=2,u=re(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):s=0,pe(e,r-1,t-r+3,u),t=r+u.length-s-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Ki(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=ct(r);let l;return o;function o(c){return l=c,e.enter("attentionSequence"),a(c)}function a(c){if(c===l)return e.consume(c),a;const u=e.exit("attentionSequence"),s=ct(c),f=!s||s===2&&i||t.includes(c),d=!i||i===2&&s||t.includes(r);return u._open=!!(l===42?f:f&&(i||!d)),u._close=!!(l===42?d:d&&(s||!f)),n(c)}}function pt(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Gi={name:"autolink",tokenize:Zi};function Zi(e,n,t){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(p){return ce(p)?(e.consume(p),o):p===64?t(p):u(p)}function o(p){return p===43||p===45||p===46||te(p)?(r=1,a(p)):u(p)}function a(p){return p===58?(e.consume(p),r=0,c):(p===43||p===45||p===46||te(p))&&r++<32?(e.consume(p),a):(r=0,u(p))}function c(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):p===null||p===32||p===60||bn(p)?t(p):(e.consume(p),c)}function u(p){return p===64?(e.consume(p),s):ji(p)?(e.consume(p),u):t(p)}function s(p){return te(p)?f(p):t(p)}function f(p){return p===46?(e.consume(p),r=0,s):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):d(p)}function d(p){if((p===45||te(p))&&r++<63){const b=p===45?d:f;return e.consume(p),b}return t(p)}}const Ke={partial:!0,tokenize:el};function el(e,n,t){return r;function r(l){return R(l)?$(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||z(l)?n(l):t(l)}}const Kt={continuation:{tokenize:tl},exit:rl,name:"blockQuote",tokenize:nl};function nl(e,n,t){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return t(o)}function l(o){return R(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function tl(e,n,t){const r=this;return i;function i(o){return R(o)?$(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(Kt,n,t)(o)}}function rl(e){e.exit("blockQuote")}const Gt={name:"characterEscape",tokenize:il};function il(e,n,t){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return Ui(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const Zt={name:"characterReference",tokenize:ll};function ll(e,n,t){const r=this;let i=0,l,o;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),c}function c(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),l=31,o=te,s(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=Hi,s):(e.enter("characterReferenceValue"),l=7,o=wn,s(f))}function s(f){if(f===59&&i){const d=e.exit("characterReferenceValue");return o===te&&!Rn(r.sliceSerialize(d))?t(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(f)&&i++<l?(e.consume(f),s):t(f)}}const ft={partial:!0,tokenize:al},ht={concrete:!0,name:"codeFenced",tokenize:ol};function ol(e,n,t){const r=this,i={partial:!0,tokenize:M};let l=0,o=0,a;return c;function c(y){return u(y)}function u(y){const D=r.events[r.events.length-1];return l=D&&D[1].type==="linePrefix"?D[2].sliceSerialize(D[1],!0).length:0,a=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(y)}function s(y){return y===a?(o++,e.consume(y),s):o<3?t(y):(e.exit("codeFencedFenceSequence"),R(y)?$(e,f,"whitespace")(y):f(y))}function f(y){return y===null||z(y)?(e.exit("codeFencedFence"),r.interrupt?n(y):e.check(ft,C,F)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===null||z(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(y)):R(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$(e,p,"whitespace")(y)):y===96&&y===a?t(y):(e.consume(y),d)}function p(y){return y===null||z(y)?f(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(y))}function b(y){return y===null||z(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(y)):y===96&&y===a?t(y):(e.consume(y),b)}function C(y){return e.attempt(i,F,I)(y)}function I(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),x}function x(y){return l>0&&R(y)?$(e,v,"linePrefix",l+1)(y):v(y)}function v(y){return y===null||z(y)?e.check(ft,C,F)(y):(e.enter("codeFlowValue"),E(y))}function E(y){return y===null||z(y)?(e.exit("codeFlowValue"),v(y)):(e.consume(y),E)}function F(y){return e.exit("codeFenced"),n(y)}function M(y,D,V){let _=0;return B;function B(S){return y.enter("lineEnding"),y.consume(S),y.exit("lineEnding"),P}function P(S){return y.enter("codeFencedFence"),R(S)?$(y,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):T(S)}function T(S){return S===a?(y.enter("codeFencedFenceSequence"),q(S)):V(S)}function q(S){return S===a?(_++,y.consume(S),q):_>=o?(y.exit("codeFencedFenceSequence"),R(S)?$(y,A,"whitespace")(S):A(S)):V(S)}function A(S){return S===null||z(S)?(y.exit("codeFencedFence"),D(S)):V(S)}}}function al(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const ln={name:"codeIndented",tokenize:sl},ul={partial:!0,tokenize:cl};function sl(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),$(e,l,"linePrefix",5)(u)}function l(u){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?o(u):t(u)}function o(u){return u===null?c(u):z(u)?e.attempt(ul,o,c)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||z(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function c(u){return e.exit("codeIndented"),n(u)}}function cl(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):z(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):$(e,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):z(o)?i(o):t(o)}}const pl={name:"codeText",previous:hl,resolve:fl,tokenize:ml};function fl(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function hl(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ml(e,n,t){let r=0,i,l;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),r++,a):(e.exit("codeTextSequence"),c(f))}function c(f){return f===null?t(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),c):f===96?(l=e.enter("codeTextSequence"),i=0,s(f)):z(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||z(f)?(e.exit("codeTextData"),c(f)):(e.consume(f),u)}function s(f){return f===96?(e.consume(f),i++,s):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(f)):(l.type="codeTextData",u(f))}}class dl{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&_e(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),_e(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),_e(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);_e(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);_e(this.left,t.reverse())}}}function _e(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function er(e){const n={};let t=-1,r,i,l,o,a,c,u;const s=new dl(e);for(;++t<s.length;){for(;t in n;)t=n[t];if(r=s.get(t),t&&r[1].type==="chunkFlow"&&s.get(t-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,l=0,l<c.length&&c[l][1].type==="lineEndingBlank"&&(l+=2),l<c.length&&c[l][1].type==="content"))for(;++l<c.length&&c[l][1].type!=="content";)c[l][1].type==="chunkText"&&(c[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,gl(s,t)),t=n[t],u=!0);else if(r[1]._container){for(l=t,i=void 0;l--;)if(o=s.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(s.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...s.get(i)[1].start},a=s.slice(i,t),a.unshift(r),s.splice(i,t-i+1,a))}}return pe(e,0,Number.POSITIVE_INFINITY,s.slice(0)),!u}function gl(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const l=[];let o=t._tokenizer;o||(o=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,c=[],u={};let s,f,d=-1,p=t,b=0,C=0;const I=[C];for(;p;){for(;e.get(++i)[1]!==p;);l.push(i),p._tokenizer||(s=r.sliceStream(p),p.next||s.push(null),f&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(s),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=t;++d<a.length;)a[d][0]==="exit"&&a[d-1][0]==="enter"&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(C=d+1,I.push(C),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):I.pop(),d=I.length;d--;){const x=a.slice(I[d],I[d+1]),v=l.pop();c.push([v,v+x.length-1]),e.splice(v,2,x)}for(c.reverse(),d=-1;++d<c.length;)u[b+c[d][0]]=b+c[d][1],b+=c[d][1]-c[d][0]-1;return u}const yl={resolve:kl,tokenize:bl},xl={partial:!0,tokenize:wl};function kl(e){return er(e),e}function bl(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):z(a)?e.check(xl,o,l)(a):(e.consume(a),i)}function l(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function o(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function wl(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),$(e,l,"linePrefix")}function l(o){if(o===null||z(o))return t(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function nr(e,n,t,r,i,l,o,a,c){const u=c||Number.POSITIVE_INFINITY;let s=0;return f;function f(x){return x===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(x),e.exit(l),d):x===null||x===32||x===41||bn(x)?t(x):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),C(x))}function d(x){return x===62?(e.enter(l),e.consume(x),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===62?(e.exit("chunkString"),e.exit(a),d(x)):x===null||x===60||z(x)?t(x):(e.consume(x),x===92?b:p)}function b(x){return x===60||x===62||x===92?(e.consume(x),p):p(x)}function C(x){return!s&&(x===null||x===41||G(x))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(x)):s<u&&x===40?(e.consume(x),s++,C):x===41?(e.consume(x),s--,C):x===null||x===32||x===40||bn(x)?t(x):(e.consume(x),x===92?I:C)}function I(x){return x===40||x===41||x===92?(e.consume(x),C):C(x)}}function tr(e,n,t,r,i,l){const o=this;let a=0,c;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(l),s}function s(p){return a>999||p===null||p===91||p===93&&!c||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(p):p===93?(e.exit(l),e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):z(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||z(p)||a++>999?(e.exit("chunkString"),s(p)):(e.consume(p),c||(c=!R(p)),p===92?d:f)}function d(p){return p===91||p===92||p===93?(e.consume(p),a++,f):f(p)}}function rr(e,n,t,r,i,l){let o;return a;function a(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,c):t(d)}function c(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),n):(e.enter(l),u(d))}function u(d){return d===o?(e.exit(l),c(o)):d===null?t(d):z(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),$(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(d))}function s(d){return d===o||d===null||z(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?f:s)}function f(d){return d===o||d===92?(e.consume(d),s):s(d)}}function Be(e,n){let t;return r;function r(i){return z(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):R(i)?$(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Sl={name:"definition",tokenize:El},Cl={partial:!0,tokenize:Il};function El(e,n,t){const r=this;let i;return l;function l(p){return e.enter("definition"),o(p)}function o(p){return tr.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Ae(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),c):t(p)}function c(p){return G(p)?Be(e,u)(p):u(p)}function u(p){return nr(e,s,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function s(p){return e.attempt(Cl,f,f)(p)}function f(p){return R(p)?$(e,d,"whitespace")(p):d(p)}function d(p){return p===null||z(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function Il(e,n,t){return r;function r(a){return G(a)?Be(e,i)(a):t(a)}function i(a){return rr(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return R(a)?$(e,o,"whitespace")(a):o(a)}function o(a){return a===null||z(a)?n(a):t(a)}}const Tl={name:"hardBreakEscape",tokenize:Pl};function Pl(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return z(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const Al={name:"headingAtx",resolve:zl,tokenize:vl};function zl(e,n){let t=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},pe(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function vl(e,n,t){let r=0;return i;function i(s){return e.enter("atxHeading"),l(s)}function l(s){return e.enter("atxHeadingSequence"),o(s)}function o(s){return s===35&&r++<6?(e.consume(s),o):s===null||G(s)?(e.exit("atxHeadingSequence"),a(s)):t(s)}function a(s){return s===35?(e.enter("atxHeadingSequence"),c(s)):s===null||z(s)?(e.exit("atxHeading"),n(s)):R(s)?$(e,a,"whitespace")(s):(e.enter("atxHeadingText"),u(s))}function c(s){return s===35?(e.consume(s),c):(e.exit("atxHeadingSequence"),a(s))}function u(s){return s===null||s===35||G(s)?(e.exit("atxHeadingText"),a(s)):(e.consume(s),u)}}const Ll=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],mt=["pre","script","style","textarea"],Ol={concrete:!0,name:"htmlFlow",resolveTo:Rl,tokenize:_l},Nl={partial:!0,tokenize:Ml},Dl={partial:!0,tokenize:Fl};function Rl(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function _l(e,n,t){const r=this;let i,l,o,a,c;return u;function u(m){return s(m)}function s(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),f}function f(m){return m===33?(e.consume(m),d):m===47?(e.consume(m),l=!0,C):m===63?(e.consume(m),i=3,r.interrupt?n:h):ce(m)?(e.consume(m),o=String.fromCharCode(m),I):t(m)}function d(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,a=0,b):ce(m)?(e.consume(m),i=4,r.interrupt?n:h):t(m)}function p(m){return m===45?(e.consume(m),r.interrupt?n:h):t(m)}function b(m){const oe="CDATA[";return m===oe.charCodeAt(a++)?(e.consume(m),a===oe.length?r.interrupt?n:T:b):t(m)}function C(m){return ce(m)?(e.consume(m),o=String.fromCharCode(m),I):t(m)}function I(m){if(m===null||m===47||m===62||G(m)){const oe=m===47,ke=o.toLowerCase();return!oe&&!l&&mt.includes(ke)?(i=1,r.interrupt?n(m):T(m)):Ll.includes(o.toLowerCase())?(i=6,oe?(e.consume(m),x):r.interrupt?n(m):T(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?v(m):E(m))}return m===45||te(m)?(e.consume(m),o+=String.fromCharCode(m),I):t(m)}function x(m){return m===62?(e.consume(m),r.interrupt?n:T):t(m)}function v(m){return R(m)?(e.consume(m),v):B(m)}function E(m){return m===47?(e.consume(m),B):m===58||m===95||ce(m)?(e.consume(m),F):R(m)?(e.consume(m),E):B(m)}function F(m){return m===45||m===46||m===58||m===95||te(m)?(e.consume(m),F):M(m)}function M(m){return m===61?(e.consume(m),y):R(m)?(e.consume(m),M):E(m)}function y(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),c=m,D):R(m)?(e.consume(m),y):V(m)}function D(m){return m===c?(e.consume(m),c=null,_):m===null||z(m)?t(m):(e.consume(m),D)}function V(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||G(m)?M(m):(e.consume(m),V)}function _(m){return m===47||m===62||R(m)?E(m):t(m)}function B(m){return m===62?(e.consume(m),P):t(m)}function P(m){return m===null||z(m)?T(m):R(m)?(e.consume(m),P):t(m)}function T(m){return m===45&&i===2?(e.consume(m),j):m===60&&i===1?(e.consume(m),X):m===62&&i===4?(e.consume(m),le):m===63&&i===3?(e.consume(m),h):m===93&&i===5?(e.consume(m),fe):z(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Nl,he,q)(m)):m===null||z(m)?(e.exit("htmlFlowData"),q(m)):(e.consume(m),T)}function q(m){return e.check(Dl,A,he)(m)}function A(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),S}function S(m){return m===null||z(m)?q(m):(e.enter("htmlFlowData"),T(m))}function j(m){return m===45?(e.consume(m),h):T(m)}function X(m){return m===47?(e.consume(m),o="",ie):T(m)}function ie(m){if(m===62){const oe=o.toLowerCase();return mt.includes(oe)?(e.consume(m),le):T(m)}return ce(m)&&o.length<8?(e.consume(m),o+=String.fromCharCode(m),ie):T(m)}function fe(m){return m===93?(e.consume(m),h):T(m)}function h(m){return m===62?(e.consume(m),le):m===45&&i===2?(e.consume(m),h):T(m)}function le(m){return m===null||z(m)?(e.exit("htmlFlowData"),he(m)):(e.consume(m),le)}function he(m){return e.exit("htmlFlow"),n(m)}}function Fl(e,n,t){const r=this;return i;function i(o){return z(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function Ml(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ke,n,t)}}const Bl={name:"htmlText",tokenize:jl};function jl(e,n,t){const r=this;let i,l,o;return a;function a(h){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(h),c}function c(h){return h===33?(e.consume(h),u):h===47?(e.consume(h),M):h===63?(e.consume(h),E):ce(h)?(e.consume(h),V):t(h)}function u(h){return h===45?(e.consume(h),s):h===91?(e.consume(h),l=0,b):ce(h)?(e.consume(h),v):t(h)}function s(h){return h===45?(e.consume(h),p):t(h)}function f(h){return h===null?t(h):h===45?(e.consume(h),d):z(h)?(o=f,X(h)):(e.consume(h),f)}function d(h){return h===45?(e.consume(h),p):f(h)}function p(h){return h===62?j(h):h===45?d(h):f(h)}function b(h){const le="CDATA[";return h===le.charCodeAt(l++)?(e.consume(h),l===le.length?C:b):t(h)}function C(h){return h===null?t(h):h===93?(e.consume(h),I):z(h)?(o=C,X(h)):(e.consume(h),C)}function I(h){return h===93?(e.consume(h),x):C(h)}function x(h){return h===62?j(h):h===93?(e.consume(h),x):C(h)}function v(h){return h===null||h===62?j(h):z(h)?(o=v,X(h)):(e.consume(h),v)}function E(h){return h===null?t(h):h===63?(e.consume(h),F):z(h)?(o=E,X(h)):(e.consume(h),E)}function F(h){return h===62?j(h):E(h)}function M(h){return ce(h)?(e.consume(h),y):t(h)}function y(h){return h===45||te(h)?(e.consume(h),y):D(h)}function D(h){return z(h)?(o=D,X(h)):R(h)?(e.consume(h),D):j(h)}function V(h){return h===45||te(h)?(e.consume(h),V):h===47||h===62||G(h)?_(h):t(h)}function _(h){return h===47?(e.consume(h),j):h===58||h===95||ce(h)?(e.consume(h),B):z(h)?(o=_,X(h)):R(h)?(e.consume(h),_):j(h)}function B(h){return h===45||h===46||h===58||h===95||te(h)?(e.consume(h),B):P(h)}function P(h){return h===61?(e.consume(h),T):z(h)?(o=P,X(h)):R(h)?(e.consume(h),P):_(h)}function T(h){return h===null||h===60||h===61||h===62||h===96?t(h):h===34||h===39?(e.consume(h),i=h,q):z(h)?(o=T,X(h)):R(h)?(e.consume(h),T):(e.consume(h),A)}function q(h){return h===i?(e.consume(h),i=void 0,S):h===null?t(h):z(h)?(o=q,X(h)):(e.consume(h),q)}function A(h){return h===null||h===34||h===39||h===60||h===61||h===96?t(h):h===47||h===62||G(h)?_(h):(e.consume(h),A)}function S(h){return h===47||h===62||G(h)?_(h):t(h)}function j(h){return h===62?(e.consume(h),e.exit("htmlTextData"),e.exit("htmlText"),n):t(h)}function X(h){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),ie}function ie(h){return R(h)?$(e,fe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):fe(h)}function fe(h){return e.enter("htmlTextData"),o(h)}}const Fn={name:"labelEnd",resolveAll:ql,resolveTo:$l,tokenize:Wl},Hl={tokenize:Yl},Ul={tokenize:Xl},Vl={tokenize:Ql};function ql(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&pe(e,0,e.length,t),e}function $l(e,n){let t=e.length,r=0,i,l,o,a;for(;t--;)if(i=e[t][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const c={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},s={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",c,n],["enter",u,n]],a=re(a,e.slice(l+1,l+r+3)),a=re(a,[["enter",s,n]]),a=re(a,_n(n.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),n)),a=re(a,[["exit",s,n],e[o-2],e[o-1],["exit",u,n]]),a=re(a,e.slice(o+1)),a=re(a,[["exit",c,n]]),pe(e,l,e.length,a),e}function Wl(e,n,t){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(d){return l?l._inactive?f(d):(o=r.parser.defined.includes(Ae(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),c):t(d)}function c(d){return d===40?e.attempt(Hl,s,o?s:f)(d):d===91?e.attempt(Ul,s,o?u:f)(d):o?s(d):f(d)}function u(d){return e.attempt(Vl,s,f)(d)}function s(d){return n(d)}function f(d){return l._balanced=!0,t(d)}}function Yl(e,n,t){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return G(f)?Be(e,l)(f):l(f)}function l(f){return f===41?s(f):nr(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return G(f)?Be(e,c)(f):s(f)}function a(f){return t(f)}function c(f){return f===34||f===39||f===40?rr(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):s(f)}function u(f){return G(f)?Be(e,s)(f):s(f)}function s(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),n):t(f)}}function Xl(e,n,t){const r=this;return i;function i(a){return tr.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(Ae(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function Ql(e,n,t){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}const Jl={name:"labelStartImage",resolveAll:Fn.resolveAll,tokenize:Kl};function Kl(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):t(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const Gl={name:"labelStartLink",resolveAll:Fn.resolveAll,tokenize:Zl};function Zl(e,n,t){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const on={name:"lineEnding",tokenize:eo};function eo(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),$(e,n,"linePrefix")}}const Xe={name:"thematicBreak",tokenize:no};function no(e,n,t){let r=0,i;return l;function l(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),c(u)):r>=3&&(u===null||z(u))?(e.exit("thematicBreak"),n(u)):t(u)}function c(u){return u===i?(e.consume(u),r++,c):(e.exit("thematicBreakSequence"),R(u)?$(e,a,"whitespace")(u):a(u))}}const K={continuation:{tokenize:lo},exit:ao,name:"list",tokenize:io},to={partial:!0,tokenize:uo},ro={partial:!0,tokenize:oo};function io(e,n,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(p){const b=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:wn(p)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Xe,t,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(p)}return t(p)}function c(p){return wn(p)&&++o<10?(e.consume(p),c):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):t(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Ke,r.interrupt?t:s,e.attempt(to,d,f))}function s(p){return r.containerState.initialBlankLine=!0,l++,d(p)}function f(p){return R(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):t(p)}function d(p){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function lo(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Ke,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,$(e,n,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!R(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ro,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,$(e,e.attempt(K,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function oo(e,n,t){const r=this;return $(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(l):t(l)}}function ao(e){e.exit(this.containerState.type)}function uo(e,n,t){const r=this;return $(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!R(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const dt={name:"setextUnderline",resolveTo:so,tokenize:co};function so(e,n){let t=e.length,r,i,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,n]),e}function co(e,n,t){const r=this;let i;return l;function l(u){let s=r.events.length,f;for(;s--;)if(r.events[s][1].type!=="lineEnding"&&r.events[s][1].type!=="linePrefix"&&r.events[s][1].type!=="content"){f=r.events[s][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,o(u)):t(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),R(u)?$(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||z(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const po={tokenize:fo};function fo(e){const n=this,t=e.attempt(Ke,r,e.attempt(this.parser.constructs.flowInitial,i,$(e,e.attempt(this.parser.constructs.flow,i,e.attempt(yl,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const ho={resolveAll:lr()},mo=ir("string"),go=ir("text");function ir(e){return{resolveAll:lr(e==="text"?yo:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,o,a);return o;function o(s){return u(s)?l(s):a(s)}function a(s){if(s===null){t.consume(s);return}return t.enter("data"),t.consume(s),c}function c(s){return u(s)?(t.exit("data"),l(s)):(t.consume(s),c)}function u(s){if(s===null)return!0;const f=i[s];let d=-1;if(f)for(;++d<f.length;){const p=f[d];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function lr(e){return n;function n(t,r){let i=-1,l;for(;++i<=t.length;)l===void 0?t[i]&&t[i][1].type==="data"&&(l=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==l+2&&(t[l][1].end=t[i-1][1].end,t.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(t,r):t}}function yo(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let l=i.length,o=-1,a=0,c;for(;l--;){const u=i[l];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)c=!0,a++;else if(u!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const u={type:t===e.length||c||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(t,0,["enter",u,n],["exit",u,n]),t+=2)}t++}return e}const xo={42:K,43:K,45:K,48:K,49:K,50:K,51:K,52:K,53:K,54:K,55:K,56:K,57:K,62:Kt},ko={91:Sl},bo={[-2]:ln,[-1]:ln,32:ln},wo={35:Al,42:Xe,45:[dt,Xe],60:Ol,61:dt,95:Xe,96:ht,126:ht},So={38:Zt,92:Gt},Co={[-5]:on,[-4]:on,[-3]:on,33:Jl,38:Zt,42:Sn,60:[Gi,Bl],91:Gl,92:[Tl,Gt],93:Fn,95:Sn,96:pl},Eo={null:[Sn,ho]},Io={null:[42,95]},To={null:[]},Po=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Io,contentInitial:ko,disable:To,document:xo,flow:wo,flowInitial:bo,insideSpan:Eo,string:So,text:Co},Symbol.toStringTag,{value:"Module"}));function Ao(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},l=[];let o=[],a=[];const c={attempt:D(M),check:D(y),consume:v,enter:E,exit:F,interrupt:D(y,{interrupt:!0})},u={code:null,containerState:{},defineSkip:C,events:[],now:b,parser:e,previous:null,sliceSerialize:d,sliceStream:p,write:f};let s=n.tokenize.call(u,c);return n.resolveAll&&l.push(n),u;function f(P){return o=re(o,P),I(),o[o.length-1]!==null?[]:(V(n,0),u.events=_n(l,u.events,u),u.events)}function d(P,T){return vo(p(P),T)}function p(P){return zo(o,P)}function b(){const{_bufferIndex:P,_index:T,line:q,column:A,offset:S}=r;return{_bufferIndex:P,_index:T,line:q,column:A,offset:S}}function C(P){i[P.line]=P.column,B()}function I(){let P;for(;r._index<o.length;){const T=o[r._index];if(typeof T=="string")for(P=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===P&&r._bufferIndex<T.length;)x(T.charCodeAt(r._bufferIndex));else x(T)}}function x(P){s=s(P)}function v(P){z(P)?(r.line++,r.column=1,r.offset+=P===-3?2:1,B()):P!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=P}function E(P,T){const q=T||{};return q.type=P,q.start=b(),u.events.push(["enter",q,u]),a.push(q),q}function F(P){const T=a.pop();return T.end=b(),u.events.push(["exit",T,u]),T}function M(P,T){V(P,T.from)}function y(P,T){T.restore()}function D(P,T){return q;function q(A,S,j){let X,ie,fe,h;return Array.isArray(A)?he(A):"tokenize"in A?he([A]):le(A);function le(Q){return Le;function Le(ge){const Ee=ge!==null&&Q[ge],Ie=ge!==null&&Q.null,qe=[...Array.isArray(Ee)?Ee:Ee?[Ee]:[],...Array.isArray(Ie)?Ie:Ie?[Ie]:[]];return he(qe)(ge)}}function he(Q){return X=Q,ie=0,Q.length===0?j:m(Q[ie])}function m(Q){return Le;function Le(ge){return h=_(),fe=Q,Q.partial||(u.currentConstruct=Q),Q.name&&u.parser.constructs.disable.null.includes(Q.name)?ke():Q.tokenize.call(T?Object.assign(Object.create(u),T):u,c,oe,ke)(ge)}}function oe(Q){return P(fe,h),S}function ke(Q){return h.restore(),++ie<X.length?m(X[ie]):j}}}function V(P,T){P.resolveAll&&!l.includes(P)&&l.push(P),P.resolve&&pe(u.events,T,u.events.length-T,P.resolve(u.events.slice(T),u)),P.resolveTo&&(u.events=P.resolveTo(u.events,u))}function _(){const P=b(),T=u.previous,q=u.currentConstruct,A=u.events.length,S=Array.from(a);return{from:A,restore:j};function j(){r=P,u.previous=T,u.currentConstruct=q,u.events.length=A,a=S,B()}}function B(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function zo(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,l=n.end._bufferIndex;let o;if(t===i)o=[e[t].slice(r,l)];else{if(o=e.slice(t,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function vo(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const l=e[t];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
7
+ `;break}case-3:{o=`\r
8
+ `;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function Lo(e){const r={constructs:Fi([Po,...(e||{}).extensions||[]]),content:i($i),defined:[],document:i(Yi),flow:i(po),lazy:{},string:i(mo),text:i(go)};return r;function i(l){return o;function o(a){return Ao(r,l,a)}}}function Oo(e){for(;!er(e););return e}const gt=/[\0\t\n\r]/g;function No(){let e=1,n="",t=!0,r;return i;function i(l,o,a){const c=[];let u,s,f,d,p;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),f=0,n="",t&&(l.charCodeAt(0)===65279&&f++,t=void 0);f<l.length;){if(gt.lastIndex=f,u=gt.exec(l),d=u&&u.index!==void 0?u.index:l.length,p=l.charCodeAt(d),!u){n=l.slice(f);break}if(p===10&&f===d&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),f<d&&(c.push(l.slice(f,d)),e+=d-f),p){case 0:{c.push(65533),e++;break}case 9:{for(s=Math.ceil(e/4)*4,c.push(-2);e++<s;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}f=d+1}return a&&(r&&c.push(-5),n&&c.push(n),c.push(null)),c}}const Do=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ro(e){return e.replace(Do,_o)}function _o(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return Jt(t.slice(l?2:1),l?16:10)}return Rn(t)||e}const or={}.hasOwnProperty;function Fo(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Mo(t)(Oo(Lo(t).document().write(No()(e,n,!0))))}function Mo(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Wn),autolinkProtocol:_,autolinkEmail:_,atxHeading:l(Vn),blockQuote:l(Ie),characterEscape:_,characterReference:_,codeFenced:l(qe),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(qe,o),codeText:l(kr,o),codeTextData:_,data:_,codeFlowValue:_,definition:l(br),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(wr),hardBreakEscape:l(qn),hardBreakTrailing:l(qn),htmlFlow:l($n,o),htmlFlowData:_,htmlText:l($n,o),htmlTextData:_,image:l(Sr),label:o,link:l(Wn),listItem:l(Cr),listItemValue:d,listOrdered:l(Yn,f),listUnordered:l(Yn),paragraph:l(Er),reference:m,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(Vn),strong:l(Ir),thematicBreak:l(Pr)},exit:{atxHeading:c(),atxHeadingSequence:M,autolink:c(),autolinkEmail:Ee,autolinkProtocol:ge,blockQuote:c(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:ke,characterReferenceMarkerNumeric:ke,characterReferenceValue:Q,characterReference:Le,codeFenced:c(I),codeFencedFence:C,codeFencedFenceInfo:p,codeFencedFenceMeta:b,codeFlowValue:B,codeIndented:c(x),codeText:c(S),codeTextData:B,data:B,definition:c(),definitionDestinationString:F,definitionLabelString:v,definitionTitleString:E,emphasis:c(),hardBreakEscape:c(T),hardBreakTrailing:c(T),htmlFlow:c(q),htmlFlowData:B,htmlText:c(A),htmlTextData:B,image:c(X),label:fe,labelText:ie,lineEnding:P,link:c(j),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:oe,resourceDestinationString:h,resourceTitleString:le,resource:he,setextHeading:c(V),setextHeadingLineSequence:D,setextHeadingText:y,strong:c(),thematicBreak:c()}};ar(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(g){let w={type:"root",children:[]};const O={stack:[w],tokenStack:[],config:n,enter:a,exit:u,buffer:o,resume:s,data:t},N=[];let H=-1;for(;++H<g.length;)if(g[H][1].type==="listOrdered"||g[H][1].type==="listUnordered")if(g[H][0]==="enter")N.push(H);else{const ae=N.pop();H=i(g,ae,H)}for(H=-1;++H<g.length;){const ae=n[g[H][0]];or.call(ae,g[H][1].type)&&ae[g[H][1].type].call(Object.assign({sliceSerialize:g[H][2].sliceSerialize},O),g[H][1])}if(O.tokenStack.length>0){const ae=O.tokenStack[O.tokenStack.length-1];(ae[1]||yt).call(O,void 0,ae[0])}for(w.position={start:ye(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:ye(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},H=-1;++H<n.transforms.length;)w=n.transforms[H](w)||w;return w}function i(g,w,O){let N=w-1,H=-1,ae=!1,be,me,Oe,Ne;for(;++N<=O;){const ee=g[N];switch(ee[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ee[0]==="enter"?H++:H--,Ne=void 0;break}case"lineEndingBlank":{ee[0]==="enter"&&(be&&!Ne&&!H&&!Oe&&(Oe=N),Ne=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ne=void 0}if(!H&&ee[0]==="enter"&&ee[1].type==="listItemPrefix"||H===-1&&ee[0]==="exit"&&(ee[1].type==="listUnordered"||ee[1].type==="listOrdered")){if(be){let Te=N;for(me=void 0;Te--;){const de=g[Te];if(de[1].type==="lineEnding"||de[1].type==="lineEndingBlank"){if(de[0]==="exit")continue;me&&(g[me][1].type="lineEndingBlank",ae=!0),de[1].type="lineEnding",me=Te}else if(!(de[1].type==="linePrefix"||de[1].type==="blockQuotePrefix"||de[1].type==="blockQuotePrefixWhitespace"||de[1].type==="blockQuoteMarker"||de[1].type==="listItemIndent"))break}Oe&&(!me||Oe<me)&&(be._spread=!0),be.end=Object.assign({},me?g[me][1].start:ee[1].end),g.splice(me||N,0,["exit",be,ee[2]]),N++,O++}if(ee[1].type==="listItemPrefix"){const Te={type:"listItem",_spread:!1,start:Object.assign({},ee[1].start),end:void 0};be=Te,g.splice(N,0,["enter",Te,ee[2]]),N++,O++,Oe=void 0,Ne=!0}}}return g[w][1]._spread=ae,O}function l(g,w){return O;function O(N){a.call(this,g(N),N),w&&w.call(this,N)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(g,w,O){this.stack[this.stack.length-1].children.push(g),this.stack.push(g),this.tokenStack.push([w,O||void 0]),g.position={start:ye(w.start),end:void 0}}function c(g){return w;function w(O){g&&g.call(this,O),u.call(this,O)}}function u(g,w){const O=this.stack.pop(),N=this.tokenStack.pop();if(N)N[0].type!==g.type&&(w?w.call(this,g,N[0]):(N[1]||yt).call(this,g,N[0]));else throw new Error("Cannot close `"+g.type+"` ("+Me({start:g.start,end:g.end})+"): it’s not open");O.position.end=ye(g.end)}function s(){return Ri(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(g){if(this.data.expectingFirstListItemValue){const w=this.stack[this.stack.length-2];w.start=Number.parseInt(this.sliceSerialize(g),10),this.data.expectingFirstListItemValue=void 0}}function p(){const g=this.resume(),w=this.stack[this.stack.length-1];w.lang=g}function b(){const g=this.resume(),w=this.stack[this.stack.length-1];w.meta=g}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g.replace(/(\r?\n|\r)$/g,"")}function v(g){const w=this.resume(),O=this.stack[this.stack.length-1];O.label=w,O.identifier=Ae(this.sliceSerialize(g)).toLowerCase()}function E(){const g=this.resume(),w=this.stack[this.stack.length-1];w.title=g}function F(){const g=this.resume(),w=this.stack[this.stack.length-1];w.url=g}function M(g){const w=this.stack[this.stack.length-1];if(!w.depth){const O=this.sliceSerialize(g).length;w.depth=O}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function D(g){const w=this.stack[this.stack.length-1];w.depth=this.sliceSerialize(g).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function _(g){const O=this.stack[this.stack.length-1].children;let N=O[O.length-1];(!N||N.type!=="text")&&(N=Tr(),N.position={start:ye(g.start),end:void 0},O.push(N)),this.stack.push(N)}function B(g){const w=this.stack.pop();w.value+=this.sliceSerialize(g),w.position.end=ye(g.end)}function P(g){const w=this.stack[this.stack.length-1];if(this.data.atHardBreak){const O=w.children[w.children.length-1];O.position.end=ye(g.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(w.type)&&(_.call(this,g),B.call(this,g))}function T(){this.data.atHardBreak=!0}function q(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g}function A(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g}function S(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g}function j(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const w=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=w,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function X(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const w=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=w,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function ie(g){const w=this.sliceSerialize(g),O=this.stack[this.stack.length-2];O.label=Ro(w),O.identifier=Ae(w).toLowerCase()}function fe(){const g=this.stack[this.stack.length-1],w=this.resume(),O=this.stack[this.stack.length-1];if(this.data.inReference=!0,O.type==="link"){const N=g.children;O.children=N}else O.alt=w}function h(){const g=this.resume(),w=this.stack[this.stack.length-1];w.url=g}function le(){const g=this.resume(),w=this.stack[this.stack.length-1];w.title=g}function he(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function oe(g){const w=this.resume(),O=this.stack[this.stack.length-1];O.label=w,O.identifier=Ae(this.sliceSerialize(g)).toLowerCase(),this.data.referenceType="full"}function ke(g){this.data.characterReferenceType=g.type}function Q(g){const w=this.sliceSerialize(g),O=this.data.characterReferenceType;let N;O?(N=Jt(w,O==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):N=Rn(w);const H=this.stack[this.stack.length-1];H.value+=N}function Le(g){const w=this.stack.pop();w.position.end=ye(g.end)}function ge(g){B.call(this,g);const w=this.stack[this.stack.length-1];w.url=this.sliceSerialize(g)}function Ee(g){B.call(this,g);const w=this.stack[this.stack.length-1];w.url="mailto:"+this.sliceSerialize(g)}function Ie(){return{type:"blockquote",children:[]}}function qe(){return{type:"code",lang:null,meta:null,value:""}}function kr(){return{type:"inlineCode",value:""}}function br(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function wr(){return{type:"emphasis",children:[]}}function Vn(){return{type:"heading",depth:0,children:[]}}function qn(){return{type:"break"}}function $n(){return{type:"html",value:""}}function Sr(){return{type:"image",title:null,url:"",alt:null}}function Wn(){return{type:"link",title:null,url:"",children:[]}}function Yn(g){return{type:"list",ordered:g.type==="listOrdered",start:null,spread:g._spread,children:[]}}function Cr(g){return{type:"listItem",spread:g._spread,checked:null,children:[]}}function Er(){return{type:"paragraph",children:[]}}function Ir(){return{type:"strong",children:[]}}function Tr(){return{type:"text",value:""}}function Pr(){return{type:"thematicBreak"}}}function ye(e){return{line:e.line,column:e.column,offset:e.offset}}function ar(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?ar(e,r):Bo(e,r)}}function Bo(e,n){let t;for(t in n)if(or.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function yt(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Me({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Me({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Me({start:n.start,end:n.end})+") is still open")}function jo(e){const n=this;n.parser=t;function t(r){return Fo(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Ho(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function Uo(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
9
+ `}]}function Vo(e,n){const t=n.value?n.value+`
10
+ `:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(l.data={meta:n.meta}),e.patch(n,l),l=e.applyData(n,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(n,l),l}function qo(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function $o(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Wo(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=ve(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,a+=1,e.footnoteCounts.set(r,a);const c={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(n,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(n,u),e.applyData(n,u)}function Yo(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Xo(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function ur(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function Qo(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return ur(e,n);const i={src:ve(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,l),e.applyData(n,l)}function Jo(e,n){const t={src:ve(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function Ko(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function Go(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return ur(e,n);const i={href:ve(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function Zo(e,n){const t={href:ve(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function ea(e,n,t){const r=e.all(n),i=t?na(t):sr(n),l={},o=[];if(typeof n.checked=="boolean"){const s=r[0];let f;s&&s.type==="element"&&s.tagName==="p"?f=s:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const s=r[a];(i||a!==0||s.type!=="element"||s.tagName!=="p")&&o.push({type:"text",value:`
11
+ `}),s.type==="element"&&s.tagName==="p"&&!i?o.push(...s.children):o.push(s)}const c=r[r.length-1];c&&(i||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
12
+ `});const u={type:"element",tagName:"li",properties:l,children:o};return e.patch(n,u),e.applyData(n,u)}function na(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=sr(t[r])}return n}function sr(e){const n=e.spread;return n??e.children.length>1}function ta(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const l={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,l),e.applyData(n,l)}function ra(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ia(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function la(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function oa(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],o),i.push(o)}if(t.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},a=Ln(n.children[1]),c=Vt(n.children[n.children.length-1]);a&&c&&(o.position={start:a,end:c}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,l),e.applyData(n,l)}function aa(e,n,t){const r=t?t.children:void 0,l=(r?r.indexOf(n):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,a=o?o.length:n.children.length;let c=-1;const u=[];for(;++c<a;){const f=n.children[c],d={},p=o?o[c]:void 0;p&&(d.align=p);let b={type:"element",tagName:l,properties:d,children:[]};f&&(b.children=e.all(f),e.patch(f,b),b=e.applyData(f,b)),u.push(b)}const s={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(n,s),e.applyData(n,s)}function ua(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const xt=9,kt=32;function sa(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const l=[];for(;r;)l.push(bt(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return l.push(bt(n.slice(i),i>0,!1)),l.join("")}function bt(e,n,t){let r=0,i=e.length;if(n){let l=e.codePointAt(r);for(;l===xt||l===kt;)r++,l=e.codePointAt(r)}if(t){let l=e.codePointAt(i-1);for(;l===xt||l===kt;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function ca(e,n){const t={type:"text",value:sa(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function pa(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const fa={blockquote:Ho,break:Uo,code:Vo,delete:qo,emphasis:$o,footnoteReference:Wo,heading:Yo,html:Xo,imageReference:Qo,image:Jo,inlineCode:Ko,linkReference:Go,link:Zo,listItem:ea,list:ta,paragraph:ra,root:ia,strong:la,table:oa,tableCell:ua,tableRow:aa,text:ca,thematicBreak:pa,toml:$e,yaml:$e,definition:$e,footnoteDefinition:$e};function $e(){}const cr=-1,Ge=0,je=1,Qe=2,Mn=3,Bn=4,jn=5,Hn=6,pr=7,fr=8,hr=typeof self=="object"?self:globalThis,wt=(e,n)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new hr[e](n)},ha=(e,n)=>{const t=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=n[i];switch(l){case Ge:case cr:return t(o,i);case je:{const a=t([],i);for(const c of o)a.push(r(c));return a}case Qe:{const a=t({},i);for(const[c,u]of o)a[r(c)]=r(u);return a}case Mn:return t(new Date(o),i);case Bn:{const{source:a,flags:c}=o;return t(new RegExp(a,c),i)}case jn:{const a=t(new Map,i);for(const[c,u]of o)a.set(r(c),r(u));return a}case Hn:{const a=t(new Set,i);for(const c of o)a.add(r(c));return a}case pr:{const{name:a,message:c}=o;return t(typeof hr[a]=="function"?wt(a,c):new Error(c),i)}case fr:return t(BigInt(o),i);case"BigInt":return t(Object(BigInt(o)),i);case"ArrayBuffer":return t(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return t(new DataView(a),o)}}return t(wt(l,o),i)};return r},St=e=>ha(new Map,e)(0),we="",{toString:ma}={},{keys:da}=Object,Fe=e=>{const n=typeof e;if(n!=="object"||!e)return[Ge,n];const t=ma.call(e).slice(8,-1);switch(t){case"Array":return[je,we];case"Object":return[Qe,we];case"Date":return[Mn,we];case"RegExp":return[Bn,we];case"Map":return[jn,we];case"Set":return[Hn,we];case"DataView":return[je,t]}return t.includes("Array")?[je,t]:e instanceof Error?[pr,e.name||"Error"]:[Qe,t]},We=([e,n])=>e===Ge&&(n==="function"||n==="symbol"),ga=(e,n,t,r)=>{const i=(o,a)=>{const c=r.push(o)-1;return t.set(a,c),c},l=o=>{if(t.has(o))return t.get(o);let[a,c]=Fe(o);switch(a){case Ge:{let s=o;switch(c){case"bigint":a=fr,s=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);s=null;break;case"undefined":return i([cr],o)}return i([a,s],o)}case je:{if(c){let d=o;return c==="DataView"?d=new Uint8Array(o.buffer):c==="ArrayBuffer"&&(d=new Uint8Array(o)),i([c,[...d]],o)}const s=[],f=i([a,s],o);for(const d of o)s.push(l(d));return f}case Qe:{if(c)switch(c){case"BigInt":return i([c,o.toString()],o);case"Boolean":case"Number":case"String":return i([c,o.valueOf()],o)}if(n&&"toJSON"in o)return l(o.toJSON());const s=[],f=i([a,s],o);for(const d of da(o))(e||!We(Fe(o[d])))&&s.push([l(d),l(o[d])]);return f}case Mn:return i([a,isNaN(o.getTime())?we:o.toISOString()],o);case Bn:{const{source:s,flags:f}=o;return i([a,{source:s,flags:f}],o)}case jn:{const s=[],f=i([a,s],o);for(const[d,p]of o)(e||!(We(Fe(d))||We(Fe(p))))&&s.push([l(d),l(p)]);return f}case Hn:{const s=[],f=i([a,s],o);for(const d of o)(e||!We(Fe(d)))&&s.push(l(d));return f}}const{message:u}=o;return i([a,{name:c,message:u}],o)};return l},Ct=(e,{json:n,lossy:t}={})=>{const r=[];return ga(!(n||t),!!n,new Map,r)(e),r},Je=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?St(Ct(e,n)):structuredClone(e):(e,n)=>St(Ct(e,n));function ya(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function xa(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function ka(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||ya,r=e.options.footnoteBackLabel||xa,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let c=-1;for(;++c<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[c]);if(!u)continue;const s=e.all(u),f=String(u.identifier).toUpperCase(),d=ve(f.toLowerCase());let p=0;const b=[],C=e.footnoteCounts.get(f);for(;C!==void 0&&++p<=C;){b.length>0&&b.push({type:"text",value:" "});let v=typeof t=="string"?t:t(c,p);typeof v=="string"&&(v={type:"text",value:v}),b.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,p),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const I=s[s.length-1];if(I&&I.type==="element"&&I.tagName==="p"){const v=I.children[I.children.length-1];v&&v.type==="text"?v.value+=" ":I.children.push({type:"text",value:" "}),I.children.push(...b)}else s.push(...b);const x={type:"element",tagName:"li",properties:{id:n+"fn-"+d},children:e.wrap(s,!0)};e.patch(u,x),a.push(x)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Je(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
13
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
14
+ `}]}}const mr=(function(e){if(e==null)return Ca;if(typeof e=="function")return Ze(e);if(typeof e=="object")return Array.isArray(e)?ba(e):wa(e);if(typeof e=="string")return Sa(e);throw new Error("Expected function, string, or object as test")});function ba(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=mr(e[t]);return Ze(r);function r(...i){let l=-1;for(;++l<n.length;)if(n[l].apply(this,i))return!0;return!1}}function wa(e){const n=e;return Ze(t);function t(r){const i=r;let l;for(l in e)if(i[l]!==n[l])return!1;return!0}}function Sa(e){return Ze(n);function n(t){return t&&t.type===e}}function Ze(e){return n;function n(t,r,i){return!!(Ea(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function Ca(){return!0}function Ea(e){return e!==null&&typeof e=="object"&&"type"in e}const dr=[],Ia=!0,Et=!1,Ta="skip";function Pa(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const l=mr(i),o=r?-1:1;a(e,void 0,[])();function a(c,u,s){const f=c&&typeof c=="object"?c:{};if(typeof f.type=="string"){const p=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(c.type+(p?"<"+p+">":""))+")"})}return d;function d(){let p=dr,b,C,I;if((!n||l(c,u,s[s.length-1]||void 0))&&(p=Aa(t(c,s)),p[0]===Et))return p;if("children"in c&&c.children){const x=c;if(x.children&&p[0]!==Ta)for(C=(r?x.children.length:-1)+o,I=s.concat(x);C>-1&&C<x.children.length;){const v=x.children[C];if(b=a(v,C,I)(),b[0]===Et)return b;C=typeof b[1]=="number"?b[1]:C+o}}return p}}}function Aa(e){return Array.isArray(e)?e:typeof e=="number"?[Ia,e]:e==null?dr:[e]}function gr(e,n,t,r){let i,l,o;typeof n=="function"&&typeof t!="function"?(l=void 0,o=n,i=t):(l=n,o=t,i=r),Pa(e,l,a,i);function a(c,u){const s=u[u.length-1],f=s?s.children.indexOf(c):void 0;return o(c,f,s)}}const Cn={}.hasOwnProperty,za={};function va(e,n){const t=n||za,r=new Map,i=new Map,l=new Map,o={...fa,...t.handlers},a={all:u,applyData:Oa,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:c,options:t,patch:La,wrap:Da};return gr(e,function(s){if(s.type==="definition"||s.type==="footnoteDefinition"){const f=s.type==="definition"?r:i,d=String(s.identifier).toUpperCase();f.has(d)||f.set(d,s)}}),a;function c(s,f){const d=s.type,p=a.handlers[d];if(Cn.call(a.handlers,d)&&p)return p(a,s,f);if(a.options.passThrough&&a.options.passThrough.includes(d)){if("children"in s){const{children:C,...I}=s,x=Je(I);return x.children=a.all(s),x}return Je(s)}return(a.options.unknownHandler||Na)(a,s,f)}function u(s){const f=[];if("children"in s){const d=s.children;let p=-1;for(;++p<d.length;){const b=a.one(d[p],s);if(b){if(p&&d[p-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=It(b.value)),!Array.isArray(b)&&b.type==="element")){const C=b.children[0];C&&C.type==="text"&&(C.value=It(C.value))}Array.isArray(b)?f.push(...b):f.push(b)}}}return f}}function La(e,n){e.position&&(n.position=hi(e))}function Oa(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const o="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:o}}t.type==="element"&&l&&Object.assign(t.properties,Je(l)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function Na(e,n){const t=n.data||{},r="value"in n&&!(Cn.call(t,"hProperties")||Cn.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Da(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
15
+ `});++r<e.length;)r&&t.push({type:"text",value:`
16
+ `}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
17
+ `}),t}function It(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function Tt(e,n){const t=va(e,n),r=t.one(e,void 0),i=ka(t),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
18
+ `},i),l}function Ra(e,n){return e&&"run"in e?async function(t,r){const i=Tt(t,{file:r,...n});await e.run(i,r)}:function(t,r){return Tt(t,{file:r,...e||n})}}function Pt(e){if(e)throw e}var an,At;function _a(){if(At)return an;At=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):n.call(u)==="[object Array]"},l=function(u){if(!u||n.call(u)!=="[object Object]")return!1;var s=e.call(u,"constructor"),f=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!s&&!f)return!1;var d;for(d in u);return typeof d>"u"||e.call(u,d)},o=function(u,s){t&&s.name==="__proto__"?t(u,s.name,{enumerable:!0,configurable:!0,value:s.newValue,writable:!0}):u[s.name]=s.newValue},a=function(u,s){if(s==="__proto__")if(e.call(u,s)){if(r)return r(u,s).value}else return;return u[s]};return an=function c(){var u,s,f,d,p,b,C=arguments[0],I=1,x=arguments.length,v=!1;for(typeof C=="boolean"&&(v=C,C=arguments[1]||{},I=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});I<x;++I)if(u=arguments[I],u!=null)for(s in u)f=a(C,s),d=a(u,s),C!==d&&(v&&d&&(l(d)||(p=i(d)))?(p?(p=!1,b=f&&i(f)?f:[]):b=f&&l(f)?f:{},o(C,{name:s,newValue:c(v,b,d)})):typeof d<"u"&&o(C,{name:s,newValue:d}));return C},an}var Fa=_a();const un=Tn(Fa);function En(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ma(){const e=[],n={run:t,use:r};return n;function t(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(c,...u){const s=e[++l];let f=-1;if(c){o(c);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,s?Ba(s,a)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Ba(e,n){let t;return r;function r(...o){const a=e.length>o.length;let c;a&&o.push(i);try{c=e.apply(this,o)}catch(u){const s=u;if(a&&t)throw s;return i(s)}a||(c&&c.then&&typeof c.then=="function"?c.then(l,i):c instanceof Error?i(c):l(c))}function i(o,...a){t||(t=!0,n(o,...a))}function l(o){i(null,o)}}const se={basename:ja,dirname:Ha,extname:Ua,join:Va,sep:"/"};function ja(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Ve(e);let t=0,r=-1,i=e.length,l;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let o=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else o<0&&(l=!0,o=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function Ha(e){if(Ve(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Ua(e){Ve(e);let n=e.length,t=-1,r=0,i=-1,l=0,o;for(;n--;){const a=e.codePointAt(n);if(a===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),a===46?i<0?i=n:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||t<0||l===0||l===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function Va(...e){let n=-1,t;for(;++n<e.length;)Ve(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":qa(t)}function qa(e){Ve(e);const n=e.codePointAt(0)===47;let t=$a(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function $a(e,n){let t="",r=0,i=-1,l=0,o=-1,a,c;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||l===1))if(i!==o-1&&l===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(c=t.lastIndexOf("/"),c!==t.length-1){c<0?(t="",r=0):(t=t.slice(0,c),r=t.length-1-t.lastIndexOf("/")),i=o,l=0;continue}}else if(t.length>0){t="",r=0,i=o,l=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),r=o-i-1;i=o,l=0}else a===46&&l>-1?l++:l=-1}return t}function Ve(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Wa={cwd:Ya};function Ya(){return"/"}function In(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Xa(e){if(typeof e=="string")e=new URL(e);else if(!In(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return Qa(e)}function Qa(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}const sn=["history","path","basename","stem","extname","dirname"];class yr{constructor(n){let t;n?In(n)?t={path:n}:typeof n=="string"||Ja(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":Wa.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<sn.length;){const l=sn[r];l in t&&t[l]!==void 0&&t[l]!==null&&(this[l]=l==="history"?[...t[l]]:t[l])}let i;for(i in t)sn.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?se.basename(this.path):void 0}set basename(n){pn(n,"basename"),cn(n,"basename"),this.path=se.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?se.dirname(this.path):void 0}set dirname(n){zt(this.basename,"dirname"),this.path=se.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?se.extname(this.path):void 0}set extname(n){if(cn(n,"extname"),zt(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=se.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){In(n)&&(n=Xa(n)),pn(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?se.basename(this.path,this.extname):void 0}set stem(n){pn(n,"stem"),cn(n,"stem"),this.path=se.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new J(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function cn(e,n){if(e&&e.includes(se.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+se.sep+"`")}function pn(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function zt(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Ja(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ka=(function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l}),Ga={}.hasOwnProperty;class Un extends Ka{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Ma()}copy(){const n=new Un;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(un(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(mn("data",this.frozen),this.namespace[n]=t,this):Ga.call(this.namespace,n)&&this.namespace[n]||void 0:n?(mn("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=Ye(n),r=this.parser||this.Parser;return fn("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),fn("process",this.parser||this.Parser),hn("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(l,o){const a=Ye(n),c=r.parse(a);r.run(c,a,function(s,f,d){if(s||!f||!d)return u(s);const p=f,b=r.stringify(p,d);nu(b)?d.value=b:d.result=b,u(s,d)});function u(s,f){s||!f?o(s):l?l(f):t(void 0,f)}}}processSync(n){let t=!1,r;return this.freeze(),fn("processSync",this.parser||this.Parser),hn("processSync",this.compiler||this.Compiler),this.process(n,i),Lt("processSync","process",t),r;function i(l,o){t=!0,Pt(l),r=o}}run(n,t,r){vt(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?l(void 0,r):new Promise(l);function l(o,a){const c=Ye(t);i.run(n,c,u);function u(s,f,d){const p=f||n;s?a(s):o?o(p):r(void 0,p,d)}}}runSync(n,t){let r=!1,i;return this.run(n,t,l),Lt("runSync","run",r),i;function l(o,a){Pt(o),i=a,r=!0}}stringify(n,t){this.freeze();const r=Ye(t),i=this.compiler||this.Compiler;return hn("stringify",i),vt(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(mn("use",this.frozen),n!=null)if(typeof n=="function")c(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):o(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function l(u){if(typeof u=="function")c(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[s,...f]=u;c(s,f)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=un(!0,i.settings,u.settings))}function a(u){let s=-1;if(u!=null)if(Array.isArray(u))for(;++s<u.length;){const f=u[s];l(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function c(u,s){let f=-1,d=-1;for(;++f<r.length;)if(r[f][0]===u){d=f;break}if(d===-1)r.push([u,...s]);else if(s.length>0){let[p,...b]=s;const C=r[d][1];En(C)&&En(p)&&(p=un(!0,C,p)),r[d]=[u,p,...b]}}}}const Za=new Un().freeze();function fn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function hn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function mn(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function vt(e){if(!En(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Lt(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Ye(e){return eu(e)?e:new yr(e)}function eu(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function nu(e){return typeof e=="string"||tu(e)}function tu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ru="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ot=[],Nt={allowDangerousHtml:!0},iu=/^(https?|ircs?|mailto|xmpp)$/i,lu=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ou(e){const n=au(e),t=uu(e);return su(n.runSync(n.parse(t),t),e)}function au(e){const n=e.rehypePlugins||Ot,t=e.remarkPlugins||Ot,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Nt}:Nt;return Za().use(jo).use(t).use(Ra,r).use(n)}function uu(e){const n=e.children||"",t=new yr;return typeof n=="string"&&(t.value=n),t}function su(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,l=n.disallowedElements,o=n.skipHtml,a=n.unwrapDisallowed,c=n.urlTransform||cu;for(const s of lu)Object.hasOwn(n,s.from)&&(""+s.from+(s.to?"use `"+s.to+"` instead":"remove it")+ru+s.id,void 0);return gr(e,u),xi(e,{Fragment:W.Fragment,components:i,ignoreInvalidStyle:!0,jsx:W.jsx,jsxs:W.jsxs,passKeys:!0,passNode:!0});function u(s,f,d){if(s.type==="raw"&&d&&typeof f=="number")return o?d.children.splice(f,1):d.children[f]={type:"text",value:s.value},f;if(s.type==="element"){let p;for(p in rn)if(Object.hasOwn(rn,p)&&Object.hasOwn(s.properties,p)){const b=s.properties[p],C=rn[p];(C===null||C.includes(s.tagName))&&(s.properties[p]=c(String(b||""),p,s))}}if(s.type==="element"){let p=t?!t.includes(s.tagName):l?l.includes(s.tagName):!1;if(!p&&r&&typeof f=="number"&&(p=!r(s,f,d)),p&&d&&typeof f=="number")return a&&s.children?d.children.splice(f,1,...s.children):d.children.splice(f,1),f}}}function cu(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||iu.test(e.slice(0,n))?e:""}const{useSmooth:pu,useSmoothStatus:fu,withSmoothContextProvider:hu}=Ar,mu=({components:e,componentsByLanguage:n,smooth:t=!0,defer:r=!1,preprocess:i,...l})=>{const o=zr(),a=ue.useMemo(()=>i?{...o,text:i(o.text)}:o,[o,i]),{text:c}=pu(a,t),u=ue.useDeferredValue(c),s=r?u:c,{pre:f=Rr,code:d=_r,SyntaxHighlighter:p=An,CodeHeader:b=Fr}=e??{},C=ue.useMemo(()=>({Pre:f,Code:d,SyntaxHighlighter:p,CodeHeader:b}),[f,d,p,b]),I=dn(x=>W.jsx(Vr,{components:C,componentsByLanguage:n,...x}));return W.jsx(ou,{components:ue.useMemo(()=>{const{pre:x,code:v,SyntaxHighlighter:E,CodeHeader:F,...M}=e??{};return{...M,pre:Dr,code:I}},[I,e]),...l,children:s})},xr=ue.forwardRef(({className:e,containerProps:n,containerComponent:t="div",...r},i)=>W.jsx(t,{"data-status":fu().type,...n,className:Rt(e,n?.className),ref:i,children:W.jsx(mu,{...r})}));xr.displayName="MarkdownTextPrimitive";const gu=hu(xr);export{gu as M};
@@ -0,0 +1,2 @@
1
+ try{self["workbox:window:7.4.0"]&&_()}catch{}function b(t,r){return new Promise((function(n){var u=new MessageChannel;u.port1.onmessage=function(s){n(s.data)},t.postMessage(r,[u.port2])}))}function P(t,r){(r==null||r>t.length)&&(r=t.length);for(var n=0,u=Array(r);n<r;n++)u[n]=t[n];return u}function j(t,r,n){return r&&(function(u,s){for(var c=0;c<s.length;c++){var o=s[c];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(u,W(o.key),o)}})(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function S(t,r){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=(function(s,c){if(s){if(typeof s=="string")return P(s,c);var o={}.toString.call(s).slice(8,-1);return o==="Object"&&s.constructor&&(o=s.constructor.name),o==="Map"||o==="Set"?Array.from(s):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?P(s,c):void 0}})(t))||r){n&&(t=n);var u=0;return function(){return u>=t.length?{done:!0}:{done:!1,value:t[u++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w(t,r){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},w(t,r)}function W(t){var r=(function(n,u){if(typeof n!="object"||!n)return n;var s=n[Symbol.toPrimitive];if(s!==void 0){var c=s.call(n,u);if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)})(t,"string");return typeof r=="symbol"?r:r+""}try{self["workbox:core:7.4.0"]&&_()}catch{}var m=function(){var t=this;this.promise=new Promise((function(r,n){t.resolve=r,t.reject=n}))};function y(t,r){var n=location.href;return new URL(t,n).href===new URL(r,n).href}var d=function(t,r){this.type=t,Object.assign(this,r)};function l(t,r,n){return t&&t.then||(t=Promise.resolve(t)),r?t.then(r):t}function k(){}var L={type:"SKIP_WAITING"};function E(t,r){return t&&t.then?t.then(k):Promise.resolve()}var O=(function(t){function r(c,o){var e,i;return o===void 0&&(o={}),(e=t.call(this)||this).nn={},e.tn=0,e.rn=new m,e.en=new m,e.on=new m,e.un=0,e.an=new Set,e.cn=function(){var f=e.fn,a=f.installing;e.tn>0||!y(a.scriptURL,e.sn.toString())||performance.now()>e.un+6e4?(e.vn=a,f.removeEventListener("updatefound",e.cn)):(e.hn=a,e.an.add(a),e.rn.resolve(a)),++e.tn,a.addEventListener("statechange",e.ln)},e.ln=function(f){var a=e.fn,v=f.target,h=v.state,p=v===e.vn,g={sw:v,isExternal:p,originalEvent:f};!p&&e.mn&&(g.isUpdate=!0),e.dispatchEvent(new d(h,g)),h==="installed"?e.wn=self.setTimeout((function(){h==="installed"&&a.waiting===v&&e.dispatchEvent(new d("waiting",g))}),200):h==="activating"&&(clearTimeout(e.wn),p||e.en.resolve(v))},e.yn=function(f){var a=e.hn,v=a!==navigator.serviceWorker.controller;e.dispatchEvent(new d("controlling",{isExternal:v,originalEvent:f,sw:a,isUpdate:e.mn})),v||e.on.resolve(a)},e.gn=(i=function(f){var a=f.data,v=f.ports,h=f.source;return l(e.getSW(),(function(){e.an.has(h)&&e.dispatchEvent(new d("message",{data:a,originalEvent:f,ports:v,sw:h}))}))},function(){for(var f=[],a=0;a<arguments.length;a++)f[a]=arguments[a];try{return Promise.resolve(i.apply(this,f))}catch(v){return Promise.reject(v)}}),e.sn=c,e.nn=o,navigator.serviceWorker.addEventListener("message",e.gn),e}var n,u;u=t,(n=r).prototype=Object.create(u.prototype),n.prototype.constructor=n,w(n,u);var s=r.prototype;return s.register=function(c){var o=(c===void 0?{}:c).immediate,e=o!==void 0&&o;try{var i=this;return l((function(f,a){var v=f();return v&&v.then?v.then(a):a(v)})((function(){if(!e&&document.readyState!=="complete")return E(new Promise((function(f){return window.addEventListener("load",f)})))}),(function(){return i.mn=!!navigator.serviceWorker.controller,i.dn=i.pn(),l(i.bn(),(function(f){i.fn=f,i.dn&&(i.hn=i.dn,i.en.resolve(i.dn),i.on.resolve(i.dn),i.dn.addEventListener("statechange",i.ln,{once:!0}));var a=i.fn.waiting;return a&&y(a.scriptURL,i.sn.toString())&&(i.hn=a,Promise.resolve().then((function(){i.dispatchEvent(new d("waiting",{sw:a,wasWaitingBeforeRegister:!0}))})).then((function(){}))),i.hn&&(i.rn.resolve(i.hn),i.an.add(i.hn)),i.fn.addEventListener("updatefound",i.cn),navigator.serviceWorker.addEventListener("controllerchange",i.yn),i.fn}))})))}catch(f){return Promise.reject(f)}},s.update=function(){try{return this.fn?l(E(this.fn.update())):l()}catch(c){return Promise.reject(c)}},s.getSW=function(){return this.hn!==void 0?Promise.resolve(this.hn):this.rn.promise},s.messageSW=function(c){try{return l(this.getSW(),(function(o){return b(o,c)}))}catch(o){return Promise.reject(o)}},s.messageSkipWaiting=function(){this.fn&&this.fn.waiting&&b(this.fn.waiting,L)},s.pn=function(){var c=navigator.serviceWorker.controller;return c&&y(c.scriptURL,this.sn.toString())?c:void 0},s.bn=function(){try{var c=this;return l((function(o,e){try{var i=o()}catch(f){return e(f)}return i&&i.then?i.then(void 0,e):i})((function(){return l(navigator.serviceWorker.register(c.sn,c.nn),(function(o){return c.un=performance.now(),o}))}),(function(o){throw o})))}catch(o){return Promise.reject(o)}},j(r,[{key:"active",get:function(){return this.en.promise}},{key:"controlling",get:function(){return this.on.promise}}])})((function(){function t(){this.Pn=new Map}var r=t.prototype;return r.addEventListener=function(n,u){this.jn(n).add(u)},r.removeEventListener=function(n,u){this.jn(n).delete(u)},r.dispatchEvent=function(n){n.target=this;for(var u,s=S(this.jn(n.type));!(u=s()).done;)(0,u.value)(n)},r.jn=function(n){return this.Pn.has(n)||this.Pn.set(n,new Set),this.Pn.get(n)},t})());export{O as Workbox,d as WorkboxEvent,b as messageSW};
Binary file
Binary file
Binary file
@@ -0,0 +1,22 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" role="img" aria-label="mono-agent">
2
+ <defs>
3
+ <linearGradient id="surface" x1="72" y1="52" x2="438" y2="462" gradientUnits="userSpaceOnUse">
4
+ <stop stop-color="#20241f"/>
5
+ <stop offset="1" stop-color="#0d0f0d"/>
6
+ </linearGradient>
7
+ <linearGradient id="signal" x1="151" y1="125" x2="368" y2="389" gradientUnits="userSpaceOnUse">
8
+ <stop stop-color="#b9f35b"/>
9
+ <stop offset="1" stop-color="#76c833"/>
10
+ </linearGradient>
11
+ <filter id="glow" x="-40%" y="-40%" width="180%" height="180%">
12
+ <feGaussianBlur stdDeviation="9"/>
13
+ </filter>
14
+ </defs>
15
+ <rect width="512" height="512" fill="url(#surface)"/>
16
+ <circle cx="256" cy="256" r="147" fill="none" stroke="#343a32" stroke-width="2"/>
17
+ <circle cx="256" cy="256" r="106" fill="#1b2019" stroke="#394035" stroke-width="3"/>
18
+ <circle cx="350" cy="161" r="20" fill="#8ed944" opacity=".2" filter="url(#glow)"/>
19
+ <path d="M164 286c38-8 62-32 72-72 8 38 32 62 72 72-40 9-64 33-72 73-10-40-34-64-72-73Z" fill="#96df4a"/>
20
+ <circle cx="326" cy="186" r="18" fill="#b9f35b"/>
21
+ <path d="M150 187a151 151 0 0 1 42-48M362 323a151 151 0 0 1-42 48" fill="none" stroke="#96df4a" stroke-linecap="round" stroke-width="14"/>
22
+ </svg>
@@ -0,0 +1,20 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
6
+ <meta name="theme-color" media="(prefers-color-scheme: light)" content="#f4f4f1" />
7
+ <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#111210" />
8
+ <meta name="description" content="Always-on local console for your mono-agent fleet." />
9
+ <link rel="icon" type="image/svg+xml" href="/icon.svg" />
10
+ <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
11
+ <title>mono-agent</title>
12
+ <script type="module" crossorigin src="/assets/index-Ck3BY0Ti.js"></script>
13
+ <link rel="modulepreload" crossorigin href="/assets/assistant-ui-CU4gqU0g.js">
14
+ <link rel="modulepreload" crossorigin href="/assets/markdown-qFW9VWmB.js">
15
+ <link rel="stylesheet" crossorigin href="/assets/index-CoB6Xwh-.css">
16
+ <link rel="manifest" href="/manifest.webmanifest"></head>
17
+ <body>
18
+ <div id="root"></div>
19
+ </body>
20
+ </html>
@@ -0,0 +1 @@
1
+ {"name":"mono-agent Console","short_name":"mono-agent","description":"Always-on local console for your mono-agent fleet.","start_url":"/","display":"standalone","background_color":"#111210","theme_color":"#111210","lang":"en","scope":"/","orientation":"any","icons":[{"src":"icon-192.png","sizes":"192x192","type":"image/png"},{"src":"icon-512.png","sizes":"512x512","type":"image/png"},{"src":"icon-512.png","sizes":"512x512","type":"image/png","purpose":"maskable"},{"src":"icon.svg","sizes":"any","type":"image/svg+xml"}]}
@@ -0,0 +1 @@
1
+ if(!self.define){let i,e={};const n=(n,s)=>(n=new URL(n+".js",s).href,e[n]||new Promise(e=>{if("document"in self){const i=document.createElement("script");i.src=n,i.onload=e,document.head.appendChild(i)}else i=n,importScripts(n),e()}).then(()=>{let i=e[n];if(!i)throw new Error(`Module ${n} didn’t register its module`);return i}));self.define=(s,o)=>{const r=i||("document"in self?document.currentScript.src:"")||location.href;if(e[r])return;let c={};const d=i=>n(i,r),l={module:{uri:r},exports:c,require:d};e[r]=Promise.all(s.map(i=>l[i]||d(i))).then(i=>(o(...i),c))}}define(["./workbox-9c191d2f"],function(i){"use strict";self.skipWaiting(),i.clientsClaim(),i.precacheAndRoute([{url:"index.html",revision:"2703c49e699c32dc5564113803d0d962"},{url:"icon.svg",revision:"db1a07fe1426d32d63a1a59a1f6f8330"},{url:"icon-512.png",revision:"31bf7f13811a440fc8dd9210d68ccccf"},{url:"icon-192.png",revision:"91418a06d86fcc78cba9342525a3b4da"},{url:"favicon.ico",revision:"87df1b08ba57c777d8785542d8e61826"},{url:"apple-touch-icon.png",revision:"651f3808d8ab9d44361aa2089ff514b5"},{url:"assets/workbox-window.prod.es5-BBnX5xw4.js",revision:null},{url:"assets/markdown-qFW9VWmB.js",revision:null},{url:"assets/index-CoB6Xwh-.css",revision:null},{url:"assets/index-Ck3BY0Ti.js",revision:null},{url:"assets/assistant-ui-CU4gqU0g.js",revision:null},{url:"apple-touch-icon.png",revision:"651f3808d8ab9d44361aa2089ff514b5"},{url:"favicon.ico",revision:"87df1b08ba57c777d8785542d8e61826"},{url:"icon-192.png",revision:"91418a06d86fcc78cba9342525a3b4da"},{url:"icon-512.png",revision:"31bf7f13811a440fc8dd9210d68ccccf"},{url:"icon.svg",revision:"db1a07fe1426d32d63a1a59a1f6f8330"},{url:"manifest.webmanifest",revision:"432b042a749b926949b7d3cabb17b784"}],{}),i.cleanupOutdatedCaches(),i.registerRoute(new i.NavigationRoute(i.createHandlerBoundToURL("index.html"),{denylist:[/^\/api\//,/^\/healthz$/]}))});
@@ -0,0 +1 @@
1
+ define(["exports"],function(t){"use strict";try{self["workbox:core:7.4.0"]&&_()}catch(t){}const e=(t,...e)=>{let s=t;return e.length>0&&(s+=` :: ${JSON.stringify(e)}`),s};class s extends Error{constructor(t,s){super(e(t,s)),this.name=t,this.details=s}}try{self["workbox:routing:7.4.0"]&&_()}catch(t){}const n=t=>t&&"object"==typeof t?t:{handle:t};class i{constructor(t,e,s="GET"){this.handler=n(e),this.match=t,this.method=s}setCatchHandler(t){this.catchHandler=n(t)}}class r extends i{constructor(t,e,s){super(({url:e})=>{const s=t.exec(e.href);if(s&&(e.origin===location.origin||0===s.index))return s.slice(1)},e,s)}}class o{constructor(){this.t=new Map,this.i=new Map}get routes(){return this.t}addFetchListener(){self.addEventListener("fetch",t=>{const{request:e}=t,s=this.handleRequest({request:e,event:t});s&&t.respondWith(s)})}addCacheListener(){self.addEventListener("message",t=>{if(t.data&&"CACHE_URLS"===t.data.type){const{payload:e}=t.data,s=Promise.all(e.urlsToCache.map(e=>{"string"==typeof e&&(e=[e]);const s=new Request(...e);return this.handleRequest({request:s,event:t})}));t.waitUntil(s),t.ports&&t.ports[0]&&s.then(()=>t.ports[0].postMessage(!0))}})}handleRequest({request:t,event:e}){const s=new URL(t.url,location.href);if(!s.protocol.startsWith("http"))return;const n=s.origin===location.origin,{params:i,route:r}=this.findMatchingRoute({event:e,request:t,sameOrigin:n,url:s});let o=r&&r.handler;const c=t.method;if(!o&&this.i.has(c)&&(o=this.i.get(c)),!o)return;let a;try{a=o.handle({url:s,request:t,event:e,params:i})}catch(t){a=Promise.reject(t)}const h=r&&r.catchHandler;return a instanceof Promise&&(this.o||h)&&(a=a.catch(async n=>{if(h)try{return await h.handle({url:s,request:t,event:e,params:i})}catch(t){t instanceof Error&&(n=t)}if(this.o)return this.o.handle({url:s,request:t,event:e});throw n})),a}findMatchingRoute({url:t,sameOrigin:e,request:s,event:n}){const i=this.t.get(s.method)||[];for(const r of i){let i;const o=r.match({url:t,sameOrigin:e,request:s,event:n});if(o)return i=o,(Array.isArray(i)&&0===i.length||o.constructor===Object&&0===Object.keys(o).length||"boolean"==typeof o)&&(i=void 0),{route:r,params:i}}return{}}setDefaultHandler(t,e="GET"){this.i.set(e,n(t))}setCatchHandler(t){this.o=n(t)}registerRoute(t){this.t.has(t.method)||this.t.set(t.method,[]),this.t.get(t.method).push(t)}unregisterRoute(t){if(!this.t.has(t.method))throw new s("unregister-route-but-not-found-with-method",{method:t.method});const e=this.t.get(t.method).indexOf(t);if(!(e>-1))throw new s("unregister-route-route-not-registered");this.t.get(t.method).splice(e,1)}}let c;const a=()=>(c||(c=new o,c.addFetchListener(),c.addCacheListener()),c);function h(t,e,n){let o;if("string"==typeof t){const s=new URL(t,location.href);o=new i(({url:t})=>t.href===s.href,e,n)}else if(t instanceof RegExp)o=new r(t,e,n);else if("function"==typeof t)o=new i(t,e,n);else{if(!(t instanceof i))throw new s("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});o=t}return a().registerRoute(o),o}const u={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},l=t=>[u.prefix,t,u.suffix].filter(t=>t&&t.length>0).join("-"),f=t=>t||l(u.precache),w=t=>t||l(u.runtime);function d(t,e){const s=e();return t.waitUntil(s),s}try{self["workbox:precaching:7.4.0"]&&_()}catch(t){}function p(t){if(!t)throw new s("add-to-cache-list-unexpected-type",{entry:t});if("string"==typeof t){const e=new URL(t,location.href);return{cacheKey:e.href,url:e.href}}const{revision:e,url:n}=t;if(!n)throw new s("add-to-cache-list-unexpected-type",{entry:t});if(!e){const t=new URL(n,location.href);return{cacheKey:t.href,url:t.href}}const i=new URL(n,location.href),r=new URL(n,location.href);return i.searchParams.set("__WB_REVISION__",e),{cacheKey:i.href,url:r.href}}class y{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:t,state:e})=>{e&&(e.originalRequest=t)},this.cachedResponseWillBeUsed=async({event:t,state:e,cachedResponse:s})=>{if("install"===t.type&&e&&e.originalRequest&&e.originalRequest instanceof Request){const t=e.originalRequest.url;s?this.notUpdatedURLs.push(t):this.updatedURLs.push(t)}return s}}}class g{constructor({precacheController:t}){this.cacheKeyWillBeUsed=async({request:t,params:e})=>{const s=(null==e?void 0:e.cacheKey)||this.h.getCacheKeyForURL(t.url);return s?new Request(s,{headers:t.headers}):t},this.h=t}}let R;async function m(t,e){let n=null;if(t.url){n=new URL(t.url).origin}if(n!==self.location.origin)throw new s("cross-origin-copy-response",{origin:n});const i=t.clone(),r={headers:new Headers(i.headers),status:i.status,statusText:i.statusText},o=function(){if(void 0===R){const t=new Response("");if("body"in t)try{new Response(t.body),R=!0}catch(t){R=!1}R=!1}return R}()?i.body:await i.blob();return new Response(o,r)}function v(t,e){const s=new URL(t);for(const t of e)s.searchParams.delete(t);return s.href}class q{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}}const U=new Set;try{self["workbox:strategies:7.4.0"]&&_()}catch(t){}function L(t){return"string"==typeof t?new Request(t):t}class b{constructor(t,e){this.u={},Object.assign(this,e),this.event=e.event,this.l=t,this.p=new q,this.R=[],this.m=[...t.plugins],this.v=new Map;for(const t of this.m)this.v.set(t,{});this.event.waitUntil(this.p.promise)}async fetch(t){const{event:e}=this;let n=L(t);if("navigate"===n.mode&&e instanceof FetchEvent&&e.preloadResponse){const t=await e.preloadResponse;if(t)return t}const i=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const t of this.iterateCallbacks("requestWillFetch"))n=await t({request:n.clone(),event:e})}catch(t){if(t instanceof Error)throw new s("plugin-error-request-will-fetch",{thrownErrorMessage:t.message})}const r=n.clone();try{let t;t=await fetch(n,"navigate"===n.mode?void 0:this.l.fetchOptions);for(const s of this.iterateCallbacks("fetchDidSucceed"))t=await s({event:e,request:r,response:t});return t}catch(t){throw i&&await this.runCallbacks("fetchDidFail",{error:t,event:e,originalRequest:i.clone(),request:r.clone()}),t}}async fetchAndCachePut(t){const e=await this.fetch(t),s=e.clone();return this.waitUntil(this.cachePut(t,s)),e}async cacheMatch(t){const e=L(t);let s;const{cacheName:n,matchOptions:i}=this.l,r=await this.getCacheKey(e,"read"),o=Object.assign(Object.assign({},i),{cacheName:n});s=await caches.match(r,o);for(const t of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await t({cacheName:n,matchOptions:i,cachedResponse:s,request:r,event:this.event})||void 0;return s}async cachePut(t,e){const n=L(t);var i;await(i=0,new Promise(t=>setTimeout(t,i)));const r=await this.getCacheKey(n,"write");if(!e)throw new s("cache-put-with-no-response",{url:(o=r.url,new URL(String(o),location.href).href.replace(new RegExp(`^${location.origin}`),""))});var o;const c=await this.q(e);if(!c)return!1;const{cacheName:a,matchOptions:h}=this.l,u=await self.caches.open(a),l=this.hasCallback("cacheDidUpdate"),f=l?await async function(t,e,s,n){const i=v(e.url,s);if(e.url===i)return t.match(e,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),o=await t.keys(e,r);for(const e of o)if(i===v(e.url,s))return t.match(e,n)}(u,r.clone(),["__WB_REVISION__"],h):null;try{await u.put(r,l?c.clone():c)}catch(t){if(t instanceof Error)throw"QuotaExceededError"===t.name&&await async function(){for(const t of U)await t()}(),t}for(const t of this.iterateCallbacks("cacheDidUpdate"))await t({cacheName:a,oldResponse:f,newResponse:c.clone(),request:r,event:this.event});return!0}async getCacheKey(t,e){const s=`${t.url} | ${e}`;if(!this.u[s]){let n=t;for(const t of this.iterateCallbacks("cacheKeyWillBeUsed"))n=L(await t({mode:e,request:n,event:this.event,params:this.params}));this.u[s]=n}return this.u[s]}hasCallback(t){for(const e of this.l.plugins)if(t in e)return!0;return!1}async runCallbacks(t,e){for(const s of this.iterateCallbacks(t))await s(e)}*iterateCallbacks(t){for(const e of this.l.plugins)if("function"==typeof e[t]){const s=this.v.get(e),n=n=>{const i=Object.assign(Object.assign({},n),{state:s});return e[t](i)};yield n}}waitUntil(t){return this.R.push(t),t}async doneWaiting(){for(;this.R.length;){const t=this.R.splice(0),e=(await Promise.allSettled(t)).find(t=>"rejected"===t.status);if(e)throw e.reason}}destroy(){this.p.resolve(null)}async q(t){let e=t,s=!1;for(const t of this.iterateCallbacks("cacheWillUpdate"))if(e=await t({request:this.request,response:e,event:this.event})||void 0,s=!0,!e)break;return s||e&&200!==e.status&&(e=void 0),e}}class C{constructor(t={}){this.cacheName=w(t.cacheName),this.plugins=t.plugins||[],this.fetchOptions=t.fetchOptions,this.matchOptions=t.matchOptions}handle(t){const[e]=this.handleAll(t);return e}handleAll(t){t instanceof FetchEvent&&(t={event:t,request:t.request});const e=t.event,s="string"==typeof t.request?new Request(t.request):t.request,n="params"in t?t.params:void 0,i=new b(this,{event:e,request:s,params:n}),r=this.U(i,s,e);return[r,this.L(r,i,s,e)]}async U(t,e,n){let i;await t.runCallbacks("handlerWillStart",{event:n,request:e});try{if(i=await this._(e,t),!i||"error"===i.type)throw new s("no-response",{url:e.url})}catch(s){if(s instanceof Error)for(const r of t.iterateCallbacks("handlerDidError"))if(i=await r({error:s,event:n,request:e}),i)break;if(!i)throw s}for(const s of t.iterateCallbacks("handlerWillRespond"))i=await s({event:n,request:e,response:i});return i}async L(t,e,s,n){let i,r;try{i=await t}catch(r){}try{await e.runCallbacks("handlerDidRespond",{event:n,request:s,response:i}),await e.doneWaiting()}catch(t){t instanceof Error&&(r=t)}if(await e.runCallbacks("handlerDidComplete",{event:n,request:s,response:i,error:r}),e.destroy(),r)throw r}}class E extends C{constructor(t={}){t.cacheName=f(t.cacheName),super(t),this.C=!1!==t.fallbackToNetwork,this.plugins.push(E.copyRedirectedCacheableResponsesPlugin)}async _(t,e){const s=await e.cacheMatch(t);return s||(e.event&&"install"===e.event.type?await this.O(t,e):await this.N(t,e))}async N(t,e){let n;const i=e.params||{};if(!this.C)throw new s("missing-precache-entry",{cacheName:this.cacheName,url:t.url});{const s=i.integrity,r=t.integrity,o=!r||r===s;n=await e.fetch(new Request(t,{integrity:"no-cors"!==t.mode?r||s:void 0})),s&&o&&"no-cors"!==t.mode&&(this.P(),await e.cachePut(t,n.clone()))}return n}async O(t,e){this.P();const n=await e.fetch(t);if(!await e.cachePut(t,n.clone()))throw new s("bad-precaching-response",{url:t.url,status:n.status});return n}P(){let t=null,e=0;for(const[s,n]of this.plugins.entries())n!==E.copyRedirectedCacheableResponsesPlugin&&(n===E.defaultPrecacheCacheabilityPlugin&&(t=s),n.cacheWillUpdate&&e++);0===e?this.plugins.push(E.defaultPrecacheCacheabilityPlugin):e>1&&null!==t&&this.plugins.splice(t,1)}}E.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:async({response:t})=>!t||t.status>=400?null:t},E.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:async({response:t})=>t.redirected?await m(t):t};class O{constructor({cacheName:t,plugins:e=[],fallbackToNetwork:s=!0}={}){this.j=new Map,this.k=new Map,this.K=new Map,this.l=new E({cacheName:f(t),plugins:[...e,new g({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this.l}precache(t){this.addToCacheList(t),this.T||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this.T=!0)}addToCacheList(t){const e=[];for(const n of t){"string"==typeof n?e.push(n):n&&void 0===n.revision&&e.push(n.url);const{cacheKey:t,url:i}=p(n),r="string"!=typeof n&&n.revision?"reload":"default";if(this.j.has(i)&&this.j.get(i)!==t)throw new s("add-to-cache-list-conflicting-entries",{firstEntry:this.j.get(i),secondEntry:t});if("string"!=typeof n&&n.integrity){if(this.K.has(t)&&this.K.get(t)!==n.integrity)throw new s("add-to-cache-list-conflicting-integrities",{url:i});this.K.set(t,n.integrity)}if(this.j.set(i,t),this.k.set(i,r),e.length>0){const t=`Workbox is precaching URLs without revision info: ${e.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(t)}}}install(t){return d(t,async()=>{const e=new y;this.strategy.plugins.push(e);for(const[e,s]of this.j){const n=this.K.get(s),i=this.k.get(e),r=new Request(e,{integrity:n,cache:i,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:s},request:r,event:t}))}const{updatedURLs:s,notUpdatedURLs:n}=e;return{updatedURLs:s,notUpdatedURLs:n}})}activate(t){return d(t,async()=>{const t=await self.caches.open(this.strategy.cacheName),e=await t.keys(),s=new Set(this.j.values()),n=[];for(const i of e)s.has(i.url)||(await t.delete(i),n.push(i.url));return{deletedURLs:n}})}getURLsToCacheKeys(){return this.j}getCachedURLs(){return[...this.j.keys()]}getCacheKeyForURL(t){const e=new URL(t,location.href);return this.j.get(e.href)}getIntegrityForCacheKey(t){return this.K.get(t)}async matchPrecache(t){const e=t instanceof Request?t.url:t,s=this.getCacheKeyForURL(e);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(t){const e=this.getCacheKeyForURL(t);if(!e)throw new s("non-precached-url",{url:t});return s=>(s.request=new Request(t),s.params=Object.assign({cacheKey:e},s.params),this.strategy.handle(s))}}let x;const N=()=>(x||(x=new O),x);class P extends i{constructor(t,e){super(({request:s})=>{const n=t.getURLsToCacheKeys();for(const i of function*(t,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:i}={}){const r=new URL(t,location.href);r.hash="",yield r.href;const o=function(t,e=[]){for(const s of[...t.searchParams.keys()])e.some(t=>t.test(s))&&t.searchParams.delete(s);return t}(r,e);if(yield o.href,s&&o.pathname.endsWith("/")){const t=new URL(o.href);t.pathname+=s,yield t.href}if(n){const t=new URL(o.href);t.pathname+=".html",yield t.href}if(i){const t=i({url:r});for(const e of t)yield e.href}}(s.url,e)){const e=n.get(i);if(e){return{cacheKey:e,integrity:t.getIntegrityForCacheKey(e)}}}},t.strategy)}}t.NavigationRoute=class extends i{constructor(t,{allowlist:e=[/./],denylist:s=[]}={}){super(t=>this.W(t),t),this.M=e,this.S=s}W({url:t,request:e}){if(e&&"navigate"!==e.mode)return!1;const s=t.pathname+t.search;for(const t of this.S)if(t.test(s))return!1;return!!this.M.some(t=>t.test(s))}},t.cleanupOutdatedCaches=function(){self.addEventListener("activate",t=>{const e=f();t.waitUntil((async(t,e="-precache-")=>{const s=(await self.caches.keys()).filter(s=>s.includes(e)&&s.includes(self.registration.scope)&&s!==t);return await Promise.all(s.map(t=>self.caches.delete(t))),s})(e).then(t=>{}))})},t.clientsClaim=function(){self.addEventListener("activate",()=>self.clients.claim())},t.createHandlerBoundToURL=function(t){return N().createHandlerBoundToURL(t)},t.precacheAndRoute=function(t,e){!function(t){N().precache(t)}(t),function(t){const e=N();h(new P(e,t))}(e)},t.registerRoute=h});