import{r as a,h as t}from"./p-47897087.js";import{R as i}from"./p-4140772f.js";const e=(a,i="/")=>t("ul",{class:"toc-list"},a.map((a=>{var l,n,o;return t("li",null,void 0!==a.parts?t("details",{open:!0},t("summary",null,a.name),e(a.parts,(null!==(l=a.name)&&void 0!==l?l:"")+"/")):t("a",{class:"toc-link",href:i+(null!==(n=a.name)&&void 0!==n?n:"")},a.name," (",t("code",null,i+(null!==(o=a.name)&&void 0!==o?o:"")),")"))}))),l=class{constructor(t){a(this,t),this.collection=void 0,this._collection=this.collection}componentWillLoad(){if(void 0!==this.collection)return;const a=Array.from(document.querySelectorAll('script[type="application/ld+json"]')).reduce(((a,t)=>{let e={};try{e=JSON.parse(t.innerHTML)}catch(l){return a}return i("Collection",e)?[...a,e]:a}),[]);this._collection=a[0]}render(){var a,i;return t("nav",{class:"toc"},e(null!==(i=null===(a=this._collection)||void 0===a?void 0:a.parts)&&void 0!==i?i:[]))}};l.style={default:'a.sc-stencila-vertical-nav-default{font-family:sans-serif;font-family:var(--font-family-body,sans-serif);font-size:1rem;text-decoration:none;color:#000;color:var(--color-key,#000)}.toc.sc-stencila-vertical-nav-default{overflow-y:auto}.toc.sc-stencila-vertical-nav-default>.toc-list.sc-stencila-vertical-nav-default{overflow:hidden;position:relative}.toc.sc-stencila-vertical-nav-default>.toc-list.sc-stencila-vertical-nav-default li.sc-stencila-vertical-nav-default{list-style-type:none;line-height:1.625}.toc-list.sc-stencila-vertical-nav-default{margin:0;padding-left:.5rem}a.toc-link.sc-stencila-vertical-nav-default{height:100%;color:currentColor;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}a.toc-link.sc-stencila-vertical-nav-default:not(.is-active-link):hover{padding-left:.5rem}.is-collapsible.sc-stencila-vertical-nav-default{overflow:hidden;max-height:1000px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.is-collapsed.sc-stencila-vertical-nav-default{max-height:0}.is-position-fixed.sc-stencila-vertical-nav-default{top:0;padding-top:1rem;position:fixed;position:fixed!important}.is-active-link.sc-stencila-vertical-nav-default{font-weight:700}.toc-link.sc-stencila-vertical-nav-default:before{position:absolute;background-color:#f7fafc;background-color:var(--color-neutral-100,#f7fafc);display:inline-block;left:0;width:.25rem;margin-top:-1px;content:" ";height:inherit}.is-active-link.sc-stencila-vertical-nav-default:before{background-color:#4299e1;background-color:var(--color-primary-500,#4299e1)}summary.sc-stencila-vertical-nav-default{font-family:sans-serif;font-family:var(--font-family-body,sans-serif);font-size:1rem}',material:'a.sc-stencila-vertical-nav-material{font-family:sans-serif;font-family:var(--font-family-body,sans-serif);font-size:1rem;text-decoration:none;color:#000;color:var(--color-key,#000)}.toc.sc-stencila-vertical-nav-material{overflow-y:auto}.toc.sc-stencila-vertical-nav-material>.toc-list.sc-stencila-vertical-nav-material{overflow:hidden;position:relative}.toc.sc-stencila-vertical-nav-material>.toc-list.sc-stencila-vertical-nav-material li.sc-stencila-vertical-nav-material{list-style-type:none;line-height:1.625}.toc-list.sc-stencila-vertical-nav-material{margin:0;padding-left:.5rem}a.toc-link.sc-stencila-vertical-nav-material{height:100%;color:currentColor;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}a.toc-link.sc-stencila-vertical-nav-material:not(.is-active-link):hover{padding-left:.5rem}.is-collapsible.sc-stencila-vertical-nav-material{overflow:hidden;max-height:1000px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.is-collapsed.sc-stencila-vertical-nav-material{max-height:0}.is-position-fixed.sc-stencila-vertical-nav-material{top:0;padding-top:1rem;position:fixed;position:fixed!important}.is-active-link.sc-stencila-vertical-nav-material{font-weight:700}.toc-link.sc-stencila-vertical-nav-material:before{position:absolute;background-color:#f7fafc;background-color:var(--color-neutral-100,#f7fafc);display:inline-block;left:0;width:.25rem;margin-top:-1px;content:" ";height:inherit}.is-active-link.sc-stencila-vertical-nav-material:before{background-color:#4299e1;background-color:var(--color-primary-500,#4299e1)}summary.sc-stencila-vertical-nav-material{font-family:sans-serif;font-family:var(--font-family-body,sans-serif);font-size:1rem}'};export{l as stencila_vertical_nav}