gardenjs 1.3.0 → 1.3.2

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.
@@ -16,4 +16,4 @@
16
16
 
17
17
  Outdated base version: https://github.com/primer/github-syntax-dark
18
18
  Current colors taken from GitHub's CSS
19
- */[data-theme=dark] .hljs{color:#c9d1d9}[data-theme=dark] .hljs-doctag,[data-theme=dark] .hljs-keyword,[data-theme=dark] .hljs-meta .hljs-keyword,[data-theme=dark] .hljs-template-tag,[data-theme=dark] .hljs-template-variable,[data-theme=dark] .hljs-type,[data-theme=dark] .hljs-variable.language_{color:#ff7b72}[data-theme=dark] .hljs-title,[data-theme=dark] .hljs-title.class_,[data-theme=dark] .hljs-title.class_.inherited__,[data-theme=dark] .hljs-title.function_{color:#d2a8ff}[data-theme=dark] .hljs-attr,[data-theme=dark] .hljs-attribute,[data-theme=dark] .hljs-literal,[data-theme=dark] .hljs-meta,[data-theme=dark] .hljs-number,[data-theme=dark] .hljs-operator,[data-theme=dark] .hljs-variable,[data-theme=dark] .hljs-selector-attr,[data-theme=dark] .hljs-selector-class,[data-theme=dark] .hljs-selector-id{color:#79c0ff}[data-theme=dark] .hljs-regexp,[data-theme=dark] .hljs-string,[data-theme=dark] .hljs-meta .hljs-string{color:#a5d6ff}[data-theme=dark] .hljs-built_in,[data-theme=dark] .hljs-symbol{color:#ffa657}[data-theme=dark] .hljs-comment,[data-theme=dark] .hljs-code,[data-theme=dark] .hljs-formula{color:#8b949e}[data-theme=dark] .hljs-name,[data-theme=dark] .hljs-quote,[data-theme=dark] .hljs-selector-tag,[data-theme=dark] .hljs-selector-pseudo{color:#7ee787}[data-theme=dark] .hljs-subst{color:#c9d1d9}[data-theme=dark] .hljs-section{color:#1f6feb;font-weight:700}[data-theme=dark] .hljs-bullet{color:#f2cc60}[data-theme=dark] .hljs-emphasis{color:#c9d1d9;font-style:italic}[data-theme=dark] .hljs-strong{color:#c9d1d9;font-weight:700}[data-theme=dark] .hljs-addition{color:#aff5b4;background-color:#033a16}[data-theme=dark] .hljs-deletion{color:#ffdcd7;background-color:#67060c}.stage_iframe.svelte-17n05ij{display:block;align-self:center;margin:auto;height:100%;width:100%;background-color:var(--c-basic-0)}.panel.svelte-17n05ij{display:flex;flex-direction:column;flex-wrap:nowrap;position:relative;margin-bottom:.375rem;height:100%;width:100%;background-color:var(--c-basic-0);border-top:0;border-radius:0 0 .625rem .625rem;overflow-y:auto}.component_link.svelte-1cnyrt6.svelte-1cnyrt6{display:flex;margin:0;padding:.188rem 0;width:100%;height:1.375rem;text-transform:initial;font-size:.813rem;color:var(--c-basic-600);line-height:1.2;font-weight:400}.component_link.svelte-1cnyrt6.svelte-1cnyrt6:hover,.component_link.svelte-1cnyrt6.svelte-1cnyrt6:focus-visible{color:var(--c-primary);font-weight:500;background-color:var(--c-basic-100)}.component_link-container.svelte-1cnyrt6.svelte-1cnyrt6{display:flex;align-items:center}.component_link.svelte-1cnyrt6 .component_dot.svelte-1cnyrt6{margin:0 .5rem 0 -.219rem;height:.375rem;width:.375rem!important;background-color:transparent;border-radius:50%}.component_link.selected.svelte-1cnyrt6 .component_dot.svelte-1cnyrt6{background-color:var(--c-primary)}.component_link.selected.svelte-1cnyrt6.svelte-1cnyrt6{margin-left:-1px;color:var(--c-primary);font-weight:600;background-color:var(--c-primary-bg);border-left:1px solid var(--c-primary)}.component_icon.svelte-1cnyrt6.svelte-1cnyrt6{display:flex;align-items:center;margin:0 .5rem 0 0;color:var(--c-basic-400)}.component_label.svelte-1cnyrt6.svelte-1cnyrt6{margin-right:.5rem;overflow:hidden;white-space:nowrap}.bookmarks.svelte-134qnz1.svelte-134qnz1{display:none}@media (min-height: 500px){.bookmarks.svelte-134qnz1.svelte-134qnz1{display:block}}.bookmarks_title.svelte-134qnz1.svelte-134qnz1{display:flex;justify-content:flex-start;align-items:center;width:100%;margin:0;padding:.5rem .688rem .375rem}.bookmarks_title-icon.svelte-134qnz1.svelte-134qnz1{display:flex;align-items:center;margin-right:.375rem;color:var(--c-primary)}.bookmarks_title-label.svelte-134qnz1.svelte-134qnz1{display:flex;width:100%;font-size:.813rem;color:var(--c-basic-900);font-weight:600;text-transform:uppercase;overflow:hidden;white-space:nowrap}.border-btm.svelte-134qnz1.svelte-134qnz1{margin:1rem 0 .5rem;height:1px;border-bottom:1px solid var(--c-bg-body)}.components.svelte-134qnz1.svelte-134qnz1{margin-left:1.063rem;width:100%;border-left:1px solid var(--c-basic-250)}.component.svelte-134qnz1.svelte-134qnz1{display:flex;height:1.375rem;width:100%;z-index:1}.close.svelte-134qnz1.svelte-134qnz1{position:absolute;display:flex;justify-content:flex-end;align-items:center;right:0;width:1.75rem;height:1.375rem;z-index:9;background-color:var(--c-sidebar-bg)}.component:has(.component_link:hover) .close,.component:has(.component_link:focus-visible) .close{background-color:var(--c-basic-100)}.component:has(.close:hover) .component_link.selected,.component:has(.component_link.selected) .close{background-color:var(--c-primary-bg)!important}.component:has(.close:hover) .component_link,.close.svelte-134qnz1.svelte-134qnz1:hover{background-color:var(--c-basic-100)}.close-icon.svelte-134qnz1.svelte-134qnz1{display:block;color:var(--c-basic-600)}.close.svelte-134qnz1:hover .close-icon.svelte-134qnz1,.close.svelte-134qnz1:focus-visible .close-icon.svelte-134qnz1{color:var(--c-primary);stroke-width:4}.components.svelte-1nn9bvq.svelte-1nn9bvq{margin-left:1.063rem;border-left:1px solid var(--c-basic-250)}.component.svelte-1nn9bvq.svelte-1nn9bvq{height:1.375rem}.level-1.svelte-1nn9bvq.svelte-1nn9bvq{width:100%;margin:0;padding:0;border:none}.folder.svelte-1nn9bvq.svelte-1nn9bvq{display:block;margin:0}.folder_btn.svelte-1nn9bvq.svelte-1nn9bvq{display:flex;justify-content:flex-start;align-items:center;width:100%;margin:0;padding:.5rem .688rem .375rem}.folder_label.svelte-1nn9bvq.svelte-1nn9bvq{display:flex;width:100%;font-size:.813rem;color:var(--c-basic-900);font-weight:600;text-transform:uppercase;overflow:hidden;white-space:nowrap}.folder_btn.svelte-1nn9bvq.svelte-1nn9bvq:hover{background-color:var(--c-basic-100)}.folder_btn.svelte-1nn9bvq:hover .folder_label.svelte-1nn9bvq{color:var(--c-primary)}.folder_btn.svelte-1nn9bvq.svelte-1nn9bvq:focus-visible{color:var(--c-primary);outline:none;background-color:var(--c-basic-100)}.folder_arrow.svelte-1nn9bvq.svelte-1nn9bvq{display:flex;align-items:center;width:.938rem;height:1.25rem;transition:.2s;margin-right:.375rem;color:var(--c-basic-900)}.folder_arrow.unfolded_icon.svelte-1nn9bvq.svelte-1nn9bvq{transform:rotate(180deg);transition:.2s}.folder_icon.svelte-1nn9bvq.svelte-1nn9bvq{display:flex;align-items:center;margin-right:.375rem;color:var(--c-primary)}.btn_level-3.svelte-1nn9bvq .folder_label.svelte-1nn9bvq{font-size:.813rem}.filter_list.svelte-1nn9bvq .highlight{padding:0 .125rem;color:var(--c-primary);font-weight:700}.sidebar_container.svelte-ky94or.svelte-ky94or{--w-sidebar:260px;display:flex;flex-direction:column;position:relative;margin:.375rem 0;width:0;max-width:var(--w-sidebar);height:calc(100vh - .75rem);background-color:var(--c-sidebar-bg);border-radius:.625rem;transition:width .1s;overflow:hidden}.show-sidebar.svelte-ky94or.svelte-ky94or{margin:.375rem .375rem .375rem 0;width:var(--w-sidebar);box-sizing:border-box}.project-identifier.svelte-ky94or.svelte-ky94or{position:relative;display:flex;flex-shrink:0;flex-direction:row;justify-content:center;align-items:center;padding:.25rem .688rem;margin:0 0 .125rem;width:var(--w-sidebar);height:2.25rem;background-color:var(--c-sidebar);inline-size:var(--w-sidebar);overflow:hidden;white-space:nowrap;font-size:1.25rem;color:var(--c-primary);text-decoration:none;font-weight:900;line-height:1}.project-identifier.has-logo.svelte-ky94or.svelte-ky94or{height:auto}.project-identifier.svelte-ky94or.svelte-ky94or:focus-visible{color:var(--c-basic-500)}.project-identifier.svelte-ky94or span.svelte-ky94or{overflow:hidden}.filter.svelte-ky94or.svelte-ky94or{display:flex;flex-shrink:0;margin:0 0 .25rem;padding:.25rem .688rem;height:2.25rem}.filter_input.svelte-ky94or.svelte-ky94or{padding:.125rem .125rem .125rem .688rem;width:100%;height:100%;color:var(--c-basic-900);background-color:var(--c-basic-0);border:1px solid var(--c-primary);border-radius:1.75rem}input.filter_input[type=search].svelte-ky94or.svelte-ky94or{font-size:.813rem}.filter_input.svelte-ky94or.svelte-ky94or::placeholder{font-size:.813rem;color:var(--c-basic-500)}.filter_input.svelte-ky94or.svelte-ky94or:focus-visible{background-color:var(--c-basic-100);border:1px solid var(--c-basic-500)}.filter_zero-results.svelte-ky94or.svelte-ky94or{width:var(--w-sidebar);padding:.5rem .688rem .375rem;text-transform:initial;font-size:.813rem;color:var(--c-basic-600);font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-nav.svelte-ky94or.svelte-ky94or{display:flex;flex-shrink:1;overflow:hidden;visibility:visible;width:var(--w-sidebar);overflow-y:auto;margin:0 0 1rem}.controls.svelte-ky94or.svelte-ky94or{display:none}@media (min-height: 35rem){.controls.svelte-ky94or.svelte-ky94or{display:block;flex-shrink:0;width:var(--w-sidebar);height:103px;bottom:.375rem;padding:0;background-color:var(--c-sidebar);border-top:1px solid var(--c-bg-body);border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem;overflow:hidden}}.controls_btn.svelte-ky94or.svelte-ky94or{display:flex;justify-content:flex-start;align-items:center;width:100%;height:2.125rem;margin:0;padding:0 .688rem;text-align:left}.controls_btn.svelte-ky94or.svelte-ky94or:hover,.controls_btn.svelte-ky94or.svelte-ky94or:focus-visible{background-color:var(--c-basic-100)}.controls_btn-icon.svelte-ky94or.svelte-ky94or{margin:0;color:var(--c-basic-700)}.controls_btn-label.svelte-ky94or.svelte-ky94or{position:relative;align-self:center;margin-left:.75rem;width:100%;color:var(--c-basic-900);font-size:.875rem;font-weight:400}.controls_btn.svelte-ky94or:hover .controls_btn-label.svelte-ky94or,.controls_btn.svelte-ky94or:hover .controls_btn-icon.svelte-ky94or,.controls_btn.svelte-ky94or:focus-visible .controls_btn-label.svelte-ky94or,.controls_btn.svelte-ky94or:focus-visible .controls_btn-icon.svelte-ky94or{color:var(--c-primary)}.topbar.svelte-1blcm4e.svelte-1blcm4e.svelte-1blcm4e{--h-topbar:2.25rem;margin:.375rem 0;width:100%;height:var(--h-topbar);background-color:var(--c-topbar-bg);border-radius:.625rem}.topbar_container.svelte-1blcm4e.svelte-1blcm4e.svelte-1blcm4e{display:flex;justify-content:space-between;width:100%;height:100%;padding:0;overflow:auto hidden}.topbar_nav.svelte-1blcm4e.svelte-1blcm4e.svelte-1blcm4e{display:flex;align-items:center}.topbar_btn.svelte-1blcm4e.svelte-1blcm4e.svelte-1blcm4e{display:flex;align-items:center;padding:0 .375rem;height:var(--h-topbar);background:none}.topbar_btn.svelte-1blcm4e.svelte-1blcm4e.svelte-1blcm4e:hover{background-color:var(--c-basic-100)}.topbar_btn.svelte-1blcm4e svg.svelte-1blcm4e.svelte-1blcm4e{height:1.125rem;color:var(--c-basic-700)}.topbar_btn.svelte-1blcm4e:hover svg.svelte-1blcm4e.svelte-1blcm4e,.topbar_btn.svelte-1blcm4e:focus-visible svg.svelte-1blcm4e.svelte-1blcm4e{color:var(--c-primary)}.topbar_btn.svelte-1blcm4e.svelte-1blcm4e.svelte-1blcm4e:focus-visible{background-color:var(--c-basic-150)}.is-first-btn.svelte-1blcm4e.svelte-1blcm4e.svelte-1blcm4e{border-radius:.5rem 0 0 .5rem}.is-last-btn.svelte-1blcm4e.svelte-1blcm4e.svelte-1blcm4e{border-radius:0 .5rem .5rem 0}@media (max-height: 499px){.bookmark_btn.svelte-1blcm4e.svelte-1blcm4e.svelte-1blcm4e{display:none}}.stagesize-value.svelte-1blcm4e.svelte-1blcm4e.svelte-1blcm4e{display:none}@media (min-width: 640px){.stagesize-value.svelte-1blcm4e.svelte-1blcm4e.svelte-1blcm4e{display:inline-flex;align-items:center;padding:0 1rem;font-size:.75rem}.stagesize-input.svelte-1blcm4e.svelte-1blcm4e.svelte-1blcm4e{padding:.25rem .375rem;width:42px;font-size:.75rem;font-family:ui-monospace,Menlo,Monaco,Cascadia Mono,Segoe UI Mono,Roboto Mono,Oxygen Mono,"Ubuntu Monospace",Source Code Pro,Fira Mono,Droid Sans Mono,Courier New,"monospace";color:var(--c-basic-600);text-align:right;background-color:transparent;border:1px solid var(--c-primary);border-radius:.125rem}.stagesize-input.svelte-1blcm4e.svelte-1blcm4e.svelte-1blcm4e:disabled{border-color:transparent}.stagesize-value-multi_sign.svelte-1blcm4e.svelte-1blcm4e.svelte-1blcm4e{margin:0 .25rem;color:var(--c-basic-700)}}.stagesize-nav.svelte-1blcm4e.svelte-1blcm4e.svelte-1blcm4e{display:none}@media (min-width: 1280px){.stagesize-nav.svelte-1blcm4e.svelte-1blcm4e.svelte-1blcm4e{position:relative;display:inline-flex;margin:0 .75rem;background-color:var(--c-basic-100)}.stagesize-nav.svelte-1blcm4e button.svelte-1blcm4e.svelte-1blcm4e{position:relative;display:flex;justify-content:center;flex-direction:column;align-self:center;height:var(--h-topbar);margin:0;padding:0 .25rem;background:none;overflow:hidden}.stagesize-nav.svelte-1blcm4e button.svelte-1blcm4e.svelte-1blcm4e:hover,.stagesize-nav.svelte-1blcm4e button.svelte-1blcm4e.svelte-1blcm4e:focus-visible{background-color:var(--c-basic-150)}.stagesize-nav.svelte-1blcm4e button.svelte-1blcm4e svg.svelte-1blcm4e{height:1.125rem;color:var(--c-basic-700);transition:.2s}.stagesize-nav.svelte-1blcm4e button.svelte-1blcm4e:hover svg.svelte-1blcm4e,.stagesize-nav.svelte-1blcm4e button.svelte-1blcm4e:focus-visible svg.svelte-1blcm4e,.stagesize-nav.svelte-1blcm4e button.active svg.svelte-1blcm4e.svelte-1blcm4e{color:var(--c-primary)}.stagesize-nav.svelte-1blcm4e button svg.landscape.svelte-1blcm4e.svelte-1blcm4e{transform:rotate(90deg);transition:.2s}.stagesize-nav.svelte-1blcm4e button .dot.svelte-1blcm4e.svelte-1blcm4e{display:block;position:absolute;left:50%;bottom:.125rem;transform:translate(-50%);height:.313rem;width:.313rem;background-color:transparent;border-radius:50%}.stagesize-nav.svelte-1blcm4e button.active.svelte-1blcm4e.svelte-1blcm4e{background-color:var(--c-primary-bg)}.stagesize-nav.svelte-1blcm4e button.active .dot.svelte-1blcm4e.svelte-1blcm4e{background-color:var(--c-primary)}}.dropdown.svelte-1blcm4e.svelte-1blcm4e.svelte-1blcm4e{position:relative;display:inline-block}.dropdown_items.svelte-1blcm4e.svelte-1blcm4e.svelte-1blcm4e{visibility:hidden;position:absolute;left:-.75rem;padding:.375rem 0 0;z-index:9}.dropdown_items.svelte-1blcm4e ul.svelte-1blcm4e.svelte-1blcm4e{margin:0;padding:0;background-color:var(--c-basic-50);filter:drop-shadow(0px 5px 5px rgba(0,0,0,.05)) drop-shadow(0 1px 3px rgba(0,0,0,.1));border-radius:.5rem;overflow:hidden}.dropdown_items.svelte-1blcm4e ul li.svelte-1blcm4e.svelte-1blcm4e{display:block;list-style:none;margin:0;padding:0}.dropdown_items.svelte-1blcm4e ul li button.svelte-1blcm4e.svelte-1blcm4e{display:flex;align-items:center;justify-items:flex-start;width:100%;min-width:113px;padding:.5rem;font-size:.75rem;color:var(--c-basic-900);text-transform:capitalize;white-space:nowrap}.dropdown_items.svelte-1blcm4e ul li button .dropdown_item-dot.svelte-1blcm4e.svelte-1blcm4e{display:block;margin:0 .5rem 0 0;height:.313rem;width:.313rem;background-color:transparent;border-radius:50%}.dropdown_items.svelte-1blcm4e ul li button.active .dropdown_item-dot.svelte-1blcm4e.svelte-1blcm4e,.dropdown_items.svelte-1blcm4e ul li button.active:hover .dropdown_item-dot.svelte-1blcm4e.svelte-1blcm4e{background-color:var(--c-primary)}.dropdown_items.svelte-1blcm4e ul li button.svelte-1blcm4e.svelte-1blcm4e:hover,.dropdown_items.svelte-1blcm4e ul li button.svelte-1blcm4e.svelte-1blcm4e:focus-visible{color:var(--c-primary);font-weight:500;background-color:var(--c-basic-100)}.dropdown_items.svelte-1blcm4e ul li button.active.svelte-1blcm4e.svelte-1blcm4e{color:var(--c-primary);font-weight:500;background-color:var(--c-primary-bg);border-color:var(--c-primary)}.dropdown.svelte-1blcm4e:hover>.dropdown_items.svelte-1blcm4e.svelte-1blcm4e,.dropdown.svelte-1blcm4e:focus-visible>.dropdown_items.svelte-1blcm4e.svelte-1blcm4e{display:block;visibility:visible}.sidebar.svelte-yh1ir7.svelte-yh1ir7{flex-grow:0;flex-shrink:0}.garden.svelte-yh1ir7.svelte-yh1ir7{display:flex;flex-direction:row;flex-wrap:nowrap;flex-grow:1;margin:0;padding:0 .375rem;width:100vw;height:100vh;overflow:hidden;background-color:var(--c-bg-body)}.main.svelte-yh1ir7.svelte-yh1ir7{display:flex;flex-direction:column;width:100%;height:100vh;overflow-y:auto}.message.svelte-yh1ir7.svelte-yh1ir7{display:inline-block;margin:1rem;padding:1rem;background-color:#fff;border-radius:.625rem}.click-completed.svelte-yh1ir7.svelte-yh1ir7{margin:0 0 .75rem;font-size:120%;font-weight:500}.instruction.svelte-yh1ir7 button.svelte-yh1ir7{padding:.125rem .75rem;background:var(--c-basic-150);border-radius:.375rem;font-size:90%;color:var(--c-basic-900);font-weight:600;text-transform:uppercase}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield;margin:0}*,:before,:after{box-sizing:border-box;border:0 solid #fff}*:focus,*:focus:not(:focus-visible){outline:none}html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;background-color:var(--c-bg-body)}body{margin:0;min-height:100vh;text-rendering:optimizeSpeed;line-height:1}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}a{text-decoration-skip-ink:auto}img,picture,embed,object,video{max-width:100%;width:auto;height:auto}img,video,canvas,audio,iframe,embed,object{display:block;border:none}input,button,textarea,select{font:inherit}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}:root{--c-primary: hsl(185, 80%, 40%);--c-primary-bg: hsl(185, 100%, 95%);--c-basic-0: hsl(216, 20%, 100%);--c-basic-50: hsl(216, 20%, 98%);--c-basic-75: hsl(216, 20%, 96%);--c-basic-100: hsl(216, 20%, 94%);--c-basic-150: hsl(216, 20%, 90%);--c-basic-200: hsl(216, 20%, 87%);--c-basic-250: hsl(216, 20%, 84%);--c-basic-300: hsl(216, 20%, 81%);--c-basic-400: hsl(216, 20%, 64%);--c-basic-500: hsl(216, 20%, 46%);--c-basic-600: hsl(216, 20%, 32%);--c-basic-700: hsl(216, 20%, 25%);--c-basic-800: hsl(216, 20%, 15%);--c-basic-900: hsl(216, 20%, 10%);--c-bg-body: var(--c-basic-200);--c-topbar-bg: var(--c-basic-0);--c-sidebar-bg: var(--c-basic-0);--c-dragbar-bg: var(--c-basic-100);--c-dragbar-bg-hover: var(--c-basic-200);--c-dragbar-icon: var(--c-basic-400)}[data-theme=dark]{--c-primary: hsl(185, 80%, 70%);--c-primary-bg: hsl(185, 80%, 17%);--c-basic-0: hsl(216, 30%, 5%);--c-basic-50: hsl(216, 30%, 10%);--c-basic-75: hsl(216, 30%, 14%);--c-basic-100: hsl(216, 30%, 18%);--c-basic-150: hsl(216, 30%, 22%);--c-basic-200: hsl(216, 30%, 25%);--c-basic-250: hsl(216, 30%, 30%);--c-basic-300: hsl(216, 30%, 33%);--c-basic-400: hsl(216, 30%, 46%);--c-basic-500: hsl(216, 30%, 64%);--c-basic-600: hsl(216, 30%, 83%);--c-basic-700: hsl(216, 30%, 90%);--c-basic-800: hsl(216, 30%, 96%);--c-basic-900: hsl(216, 30%, 98%);--c-bg-body: var(--c-basic-150);--c-topbar-bg: var(--c-basic-0);--c-sidebar-bg: var(--c-basic-0);--c-dragbar-bg: var(--c-basic-250);--c-dragbar-bg-hover: var(--c-basic-150);--c-dragbar-icon: var(--c-basic-500)}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";text-shadow:1px 1px 1px rgba(0,0,0,.004);-webkit-font-smoothing:antialiased;-moz-font-smoothing:antialiased}h1,h2,h3,h4,h5,h6{margin:0;color:var(--c-basic-600);line-height:1.2}p{margin:.5rem 0;font-size:.875rem;color:var(--c-basic-600);line-height:1.5}li{font-size:.875rem;line-height:1.5}a,a:visited{font-size:.875rem;line-height:1.5;text-decoration:underline;text-decoration-skip-ink:auto}nav ol,nav ul{margin:0;padding:0;list-style:none}nav li{display:block;margin:0;padding:0}nav a{display:block;margin:0;padding:0;text-decoration:none}button{cursor:pointer;background-color:transparent;border:none}
19
+ */[data-theme=dark] .hljs{color:#c9d1d9}[data-theme=dark] .hljs-doctag,[data-theme=dark] .hljs-keyword,[data-theme=dark] .hljs-meta .hljs-keyword,[data-theme=dark] .hljs-template-tag,[data-theme=dark] .hljs-template-variable,[data-theme=dark] .hljs-type,[data-theme=dark] .hljs-variable.language_{color:#ff7b72}[data-theme=dark] .hljs-title,[data-theme=dark] .hljs-title.class_,[data-theme=dark] .hljs-title.class_.inherited__,[data-theme=dark] .hljs-title.function_{color:#d2a8ff}[data-theme=dark] .hljs-attr,[data-theme=dark] .hljs-attribute,[data-theme=dark] .hljs-literal,[data-theme=dark] .hljs-meta,[data-theme=dark] .hljs-number,[data-theme=dark] .hljs-operator,[data-theme=dark] .hljs-variable,[data-theme=dark] .hljs-selector-attr,[data-theme=dark] .hljs-selector-class,[data-theme=dark] .hljs-selector-id{color:#79c0ff}[data-theme=dark] .hljs-regexp,[data-theme=dark] .hljs-string,[data-theme=dark] .hljs-meta .hljs-string{color:#a5d6ff}[data-theme=dark] .hljs-built_in,[data-theme=dark] .hljs-symbol{color:#ffa657}[data-theme=dark] .hljs-comment,[data-theme=dark] .hljs-code,[data-theme=dark] .hljs-formula{color:#8b949e}[data-theme=dark] .hljs-name,[data-theme=dark] .hljs-quote,[data-theme=dark] .hljs-selector-tag,[data-theme=dark] .hljs-selector-pseudo{color:#7ee787}[data-theme=dark] .hljs-subst{color:#c9d1d9}[data-theme=dark] .hljs-section{color:#1f6feb;font-weight:700}[data-theme=dark] .hljs-bullet{color:#f2cc60}[data-theme=dark] .hljs-emphasis{color:#c9d1d9;font-style:italic}[data-theme=dark] .hljs-strong{color:#c9d1d9;font-weight:700}[data-theme=dark] .hljs-addition{color:#aff5b4;background-color:#033a16}[data-theme=dark] .hljs-deletion{color:#ffdcd7;background-color:#67060c}.stage_iframe.svelte-17n05ij{display:block;align-self:center;margin:auto;height:100%;width:100%;background-color:var(--c-basic-0)}.panel.svelte-17n05ij{display:flex;flex-direction:column;flex-wrap:nowrap;position:relative;margin-bottom:.375rem;height:100%;width:100%;background-color:var(--c-basic-0);border-top:0;border-radius:0 0 .625rem .625rem;overflow-y:auto}.component_link.svelte-1cnyrt6.svelte-1cnyrt6{display:flex;margin:0;padding:.188rem 0;width:100%;height:1.375rem;text-transform:initial;font-size:.813rem;color:var(--c-basic-600);line-height:1.2;font-weight:400}.component_link.svelte-1cnyrt6.svelte-1cnyrt6:hover,.component_link.svelte-1cnyrt6.svelte-1cnyrt6:focus-visible{color:var(--c-primary);font-weight:500;background-color:var(--c-basic-100)}.component_link-container.svelte-1cnyrt6.svelte-1cnyrt6{display:flex;align-items:center}.component_link.svelte-1cnyrt6 .component_dot.svelte-1cnyrt6{margin:0 .5rem 0 -.219rem;height:.375rem;width:.375rem!important;background-color:transparent;border-radius:50%}.component_link.selected.svelte-1cnyrt6 .component_dot.svelte-1cnyrt6{background-color:var(--c-primary)}.component_link.selected.svelte-1cnyrt6.svelte-1cnyrt6{margin-left:-1px;color:var(--c-primary);font-weight:600;background-color:var(--c-primary-bg);border-left:1px solid var(--c-primary)}.component_icon.svelte-1cnyrt6.svelte-1cnyrt6{display:flex;align-items:center;margin:0 .5rem 0 0;color:var(--c-basic-400)}.component_label.svelte-1cnyrt6.svelte-1cnyrt6{margin-right:.5rem;overflow:hidden;white-space:nowrap}.bookmarks.svelte-qxg2ml.svelte-qxg2ml{display:none}@media (min-height: 500px) and (min-width: 500px){.bookmarks.svelte-qxg2ml.svelte-qxg2ml{display:block}}.bookmarks_title.svelte-qxg2ml.svelte-qxg2ml{display:flex;justify-content:flex-start;align-items:center;width:100%;margin:0;padding:.5rem .688rem .375rem}.bookmarks_title-icon.svelte-qxg2ml.svelte-qxg2ml{display:flex;align-items:center;margin-right:.375rem;color:var(--c-primary)}.bookmarks_title-label.svelte-qxg2ml.svelte-qxg2ml{display:flex;width:100%;font-size:.813rem;color:var(--c-basic-900);font-weight:600;text-transform:uppercase;overflow:hidden;white-space:nowrap}.border-btm.svelte-qxg2ml.svelte-qxg2ml{margin:1rem 0 .5rem;height:1px;border-bottom:1px solid var(--c-bg-body)}.components.svelte-qxg2ml.svelte-qxg2ml{margin-left:1.063rem;width:100%;border-left:1px solid var(--c-basic-250)}.component.svelte-qxg2ml.svelte-qxg2ml{display:flex;height:1.375rem;width:100%;z-index:1}.close.svelte-qxg2ml.svelte-qxg2ml{position:absolute;display:flex;justify-content:flex-end;align-items:center;right:0;width:1.75rem;height:1.375rem;z-index:9;background-color:var(--c-sidebar-bg)}.component:has(.component_link:hover) .close,.component:has(.component_link:focus-visible) .close{background-color:var(--c-basic-100)}.component:has(.close:hover) .component_link.selected,.component:has(.component_link.selected) .close{background-color:var(--c-primary-bg)!important}.component:has(.close:hover) .component_link,.close.svelte-qxg2ml.svelte-qxg2ml:hover{background-color:var(--c-basic-100)}.close-icon.svelte-qxg2ml.svelte-qxg2ml{display:block;color:var(--c-basic-600)}.close.svelte-qxg2ml:hover .close-icon.svelte-qxg2ml,.close.svelte-qxg2ml:focus-visible .close-icon.svelte-qxg2ml{color:var(--c-primary);stroke-width:4}.components.svelte-1nn9bvq.svelte-1nn9bvq{margin-left:1.063rem;border-left:1px solid var(--c-basic-250)}.component.svelte-1nn9bvq.svelte-1nn9bvq{height:1.375rem}.level-1.svelte-1nn9bvq.svelte-1nn9bvq{width:100%;margin:0;padding:0;border:none}.folder.svelte-1nn9bvq.svelte-1nn9bvq{display:block;margin:0}.folder_btn.svelte-1nn9bvq.svelte-1nn9bvq{display:flex;justify-content:flex-start;align-items:center;width:100%;margin:0;padding:.5rem .688rem .375rem}.folder_label.svelte-1nn9bvq.svelte-1nn9bvq{display:flex;width:100%;font-size:.813rem;color:var(--c-basic-900);font-weight:600;text-transform:uppercase;overflow:hidden;white-space:nowrap}.folder_btn.svelte-1nn9bvq.svelte-1nn9bvq:hover{background-color:var(--c-basic-100)}.folder_btn.svelte-1nn9bvq:hover .folder_label.svelte-1nn9bvq{color:var(--c-primary)}.folder_btn.svelte-1nn9bvq.svelte-1nn9bvq:focus-visible{color:var(--c-primary);outline:none;background-color:var(--c-basic-100)}.folder_arrow.svelte-1nn9bvq.svelte-1nn9bvq{display:flex;align-items:center;width:.938rem;height:1.25rem;transition:.2s;margin-right:.375rem;color:var(--c-basic-900)}.folder_arrow.unfolded_icon.svelte-1nn9bvq.svelte-1nn9bvq{transform:rotate(180deg);transition:.2s}.folder_icon.svelte-1nn9bvq.svelte-1nn9bvq{display:flex;align-items:center;margin-right:.375rem;color:var(--c-primary)}.btn_level-3.svelte-1nn9bvq .folder_label.svelte-1nn9bvq{font-size:.813rem}.filter_list.svelte-1nn9bvq .highlight{padding:0 .125rem;color:var(--c-primary);font-weight:700}.sidebar_container.svelte-fa7wkd.svelte-fa7wkd{--w-sidebar:260px;display:flex;flex-direction:column;position:relative;margin:.375rem 0;width:0;max-width:var(--w-sidebar);height:calc(100vh - .75rem);background-color:var(--c-sidebar-bg);border-radius:.625rem;transition:width .1s;overflow:hidden}.show-sidebar.svelte-fa7wkd.svelte-fa7wkd{margin:.375rem .375rem .375rem 0;width:var(--w-sidebar);box-sizing:border-box}.project-identifier.svelte-fa7wkd.svelte-fa7wkd{position:relative;display:flex;flex-shrink:0;flex-direction:row;justify-content:center;align-items:center;padding:.25rem .688rem;margin:0 0 .125rem;width:var(--w-sidebar);height:2.25rem;background-color:var(--c-sidebar);inline-size:var(--w-sidebar);overflow:hidden;white-space:nowrap;font-size:1.25rem;color:var(--c-primary);text-decoration:none;font-weight:900;line-height:1}.project-identifier.has-logo.svelte-fa7wkd.svelte-fa7wkd{height:auto}.project-identifier.svelte-fa7wkd.svelte-fa7wkd:focus-visible{color:var(--c-basic-500)}.project-identifier.svelte-fa7wkd span.svelte-fa7wkd{overflow:hidden}.filter.svelte-fa7wkd.svelte-fa7wkd{display:flex;flex-shrink:0;margin:0 0 .25rem;padding:.25rem .688rem;height:2.25rem}.filter_input.svelte-fa7wkd.svelte-fa7wkd{padding:.125rem .125rem .125rem .688rem;width:100%;height:100%;color:var(--c-basic-900);background-color:var(--c-basic-0);border:1px solid var(--c-primary);border-radius:1.75rem}input.filter_input[type=search].svelte-fa7wkd.svelte-fa7wkd{font-size:.813rem}input[type=search].svelte-fa7wkd.svelte-fa7wkd::-webkit-search-cancel-button{-webkit-appearance:none}.filter_input.svelte-fa7wkd.svelte-fa7wkd::placeholder{font-size:.813rem;color:var(--c-basic-500)}.filter_input.svelte-fa7wkd.svelte-fa7wkd:focus-visible{background-color:var(--c-basic-100);border:1px solid var(--c-basic-500)}.filter_zero-results.svelte-fa7wkd.svelte-fa7wkd{width:var(--w-sidebar);padding:.5rem .688rem .375rem;text-transform:initial;font-size:.813rem;color:var(--c-basic-600);font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-nav.svelte-fa7wkd.svelte-fa7wkd{display:flex;flex-shrink:1;overflow:hidden;visibility:visible;width:var(--w-sidebar);overflow-y:auto;margin:0 0 1rem}.controls.svelte-fa7wkd.svelte-fa7wkd{display:none}@media (min-height: 35rem){.controls.svelte-fa7wkd.svelte-fa7wkd{display:block;flex-shrink:0;width:var(--w-sidebar);height:103px;bottom:.375rem;padding:0;background-color:var(--c-sidebar);border-top:1px solid var(--c-bg-body);border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem;overflow:hidden}}.controls_btn.svelte-fa7wkd.svelte-fa7wkd{display:flex;justify-content:flex-start;align-items:center;width:100%;height:2.125rem;margin:0;padding:0 .688rem;text-align:left}.controls_btn.svelte-fa7wkd.svelte-fa7wkd:hover,.controls_btn.svelte-fa7wkd.svelte-fa7wkd:focus-visible{background-color:var(--c-basic-100)}.controls_btn-icon.svelte-fa7wkd.svelte-fa7wkd{margin:0;color:var(--c-basic-700)}.controls_btn-label.svelte-fa7wkd.svelte-fa7wkd{position:relative;align-self:center;margin-left:.75rem;width:100%;color:var(--c-basic-900);font-size:.875rem;font-weight:400}.controls_btn.svelte-fa7wkd:hover .controls_btn-label.svelte-fa7wkd,.controls_btn.svelte-fa7wkd:focus-visible .controls_btn-label.svelte-fa7wkd,.controls_btn.svelte-fa7wkd:hover .controls_btn-icon.svelte-fa7wkd,.controls_btn.svelte-fa7wkd:focus-visible .controls_btn-icon.svelte-fa7wkd{color:var(--c-primary)}.topbar.svelte-1eigker.svelte-1eigker.svelte-1eigker{--h-topbar:2.25rem;margin:.375rem 0;width:100%;height:var(--h-topbar);background-color:var(--c-topbar-bg);border-radius:.625rem}.topbar_container.svelte-1eigker.svelte-1eigker.svelte-1eigker{display:flex;justify-content:space-between;width:100%;height:100%;padding:0;z-index:999999}.topbar_nav.svelte-1eigker.svelte-1eigker.svelte-1eigker{display:flex;align-items:center}.topbar_btn.svelte-1eigker.svelte-1eigker.svelte-1eigker{display:flex;align-items:center;padding:0 .375rem;height:var(--h-topbar);background:none}.topbar_btn.svelte-1eigker.svelte-1eigker.svelte-1eigker:hover,.topbar_btn.svelte-1eigker.svelte-1eigker.svelte-1eigker:focus-visible{background-color:var(--c-basic-100)}.topbar_btn.svelte-1eigker svg.svelte-1eigker.svelte-1eigker{height:1.125rem;color:var(--c-basic-700)}.topbar_btn.svelte-1eigker:hover svg.svelte-1eigker.svelte-1eigker,.topbar_btn.svelte-1eigker:focus-visible svg.svelte-1eigker.svelte-1eigker{color:var(--c-primary)}.is-first-btn.svelte-1eigker.svelte-1eigker.svelte-1eigker{border-radius:.5rem 0 0 .5rem}.is-last-btn.svelte-1eigker.svelte-1eigker.svelte-1eigker{border-radius:0 .5rem .5rem 0}@media (max-height: 499px){.bookmark_btn.svelte-1eigker.svelte-1eigker.svelte-1eigker{display:none}}@media (max-width: 499px){.bookmark_btn.svelte-1eigker.svelte-1eigker.svelte-1eigker,.openexternal_btn.svelte-1eigker.svelte-1eigker.svelte-1eigker{display:none}}.stagesize-value.svelte-1eigker.svelte-1eigker.svelte-1eigker{display:none}@media (min-width: 640px){.stagesize-value.svelte-1eigker.svelte-1eigker.svelte-1eigker{display:inline-flex;align-items:center;padding:0 1rem;font-size:.75rem}.stagesize-input.svelte-1eigker.svelte-1eigker.svelte-1eigker{padding:.25rem .375rem;width:42px;font-size:.75rem;font-family:ui-monospace,Menlo,Monaco,Cascadia Mono,Segoe UI Mono,Roboto Mono,Oxygen Mono,"Ubuntu Monospace",Source Code Pro,Fira Mono,Droid Sans Mono,Courier New,"monospace";color:var(--c-basic-600);text-align:right;background-color:transparent;border:1px solid var(--c-primary);border-radius:.125rem}.stagesize-input.svelte-1eigker.svelte-1eigker.svelte-1eigker:disabled{border-color:transparent}.stagesize-value-multi_sign.svelte-1eigker.svelte-1eigker.svelte-1eigker{margin:0 .25rem;color:var(--c-basic-700)}}.stagesize-nav.svelte-1eigker.svelte-1eigker.svelte-1eigker{display:none}@media (min-width: 1280px){.stagesize-nav.svelte-1eigker.svelte-1eigker.svelte-1eigker{position:relative;display:inline-flex;margin:0 .75rem;background-color:var(--c-basic-100)}.stagesize-nav.svelte-1eigker button.svelte-1eigker.svelte-1eigker{position:relative;display:flex;justify-content:center;flex-direction:column;align-self:center;height:var(--h-topbar);margin:0;padding:0 .25rem;background:none;overflow:hidden}.stagesize-nav.svelte-1eigker button.svelte-1eigker.svelte-1eigker:hover,.stagesize-nav.svelte-1eigker button.svelte-1eigker.svelte-1eigker:focus-visible{background-color:var(--c-basic-150)}.stagesize-nav.svelte-1eigker button.svelte-1eigker svg.svelte-1eigker{height:1.125rem;color:var(--c-basic-700);transition:.2s}.stagesize-nav.svelte-1eigker button.svelte-1eigker:hover svg.svelte-1eigker,.stagesize-nav.svelte-1eigker button.svelte-1eigker:focus-visible svg.svelte-1eigker,.stagesize-nav.svelte-1eigker button.active svg.svelte-1eigker.svelte-1eigker{color:var(--c-primary)}.stagesize-nav.svelte-1eigker button svg.landscape.svelte-1eigker.svelte-1eigker{transform:rotate(90deg);transition:.2s}.stagesize-nav.svelte-1eigker button .dot.svelte-1eigker.svelte-1eigker{display:block;position:absolute;left:50%;bottom:.125rem;transform:translate(-50%);height:.313rem;width:.313rem;background-color:transparent;border-radius:50%}.stagesize-nav.svelte-1eigker button.active.svelte-1eigker.svelte-1eigker{background-color:var(--c-primary-bg)}.stagesize-nav.svelte-1eigker button.active .dot.svelte-1eigker.svelte-1eigker{background-color:var(--c-primary)}}.dropdown.svelte-1eigker.svelte-1eigker.svelte-1eigker{position:relative;display:inline-block;z-index:99}.dropdown_items.svelte-1eigker.svelte-1eigker.svelte-1eigker{visibility:hidden;position:absolute;right:0;padding:.375rem 0 0;z-index:9}.dropdown_items.svelte-1eigker ul.svelte-1eigker.svelte-1eigker{margin:0;padding:0;background-color:var(--c-basic-50);filter:drop-shadow(0px 5px 5px rgba(0,0,0,.05)) drop-shadow(0 1px 3px rgba(0,0,0,.1));border-radius:.5rem;overflow:hidden}.dropdown_items.svelte-1eigker ul li.svelte-1eigker.svelte-1eigker{display:block;list-style:none;margin:0;padding:0}.dropdown_items.svelte-1eigker ul li button.svelte-1eigker.svelte-1eigker{display:flex;align-items:center;justify-items:flex-start;width:100%;min-width:5rem;padding:.5rem;font-size:.75rem;color:var(--c-basic-900);text-transform:capitalize;white-space:nowrap}.dropdown_items.svelte-1eigker ul li button .dropdown_item-dot.svelte-1eigker.svelte-1eigker{display:block;margin:0 .5rem 0 0;height:.313rem;width:.313rem;background-color:transparent;border-radius:50%}.dropdown_items.svelte-1eigker ul li button.active .dropdown_item-dot.svelte-1eigker.svelte-1eigker,.dropdown_items.svelte-1eigker ul li button.active:hover .dropdown_item-dot.svelte-1eigker.svelte-1eigker{background-color:var(--c-primary)}.dropdown_items.svelte-1eigker ul li button.svelte-1eigker.svelte-1eigker:hover,.dropdown_items.svelte-1eigker ul li button.svelte-1eigker.svelte-1eigker:focus-visible{color:var(--c-primary);font-weight:500;background-color:var(--c-basic-100)}.dropdown_items.svelte-1eigker ul li button.active.svelte-1eigker.svelte-1eigker{color:var(--c-primary);font-weight:500;background-color:var(--c-primary-bg);border-color:var(--c-primary)}.dropdown.svelte-1eigker:hover>.dropdown_items.svelte-1eigker.svelte-1eigker,.dropdown.svelte-1eigker:focus-visible>.dropdown_items.svelte-1eigker.svelte-1eigker{display:block;visibility:visible}.sidebar.svelte-yh1ir7.svelte-yh1ir7{flex-grow:0;flex-shrink:0}.garden.svelte-yh1ir7.svelte-yh1ir7{display:flex;flex-direction:row;flex-wrap:nowrap;flex-grow:1;margin:0;padding:0 .375rem;width:100vw;height:100vh;overflow:hidden;background-color:var(--c-bg-body)}.main.svelte-yh1ir7.svelte-yh1ir7{display:flex;flex-direction:column;width:100%;height:100vh;overflow-y:auto}.message.svelte-yh1ir7.svelte-yh1ir7{display:inline-block;margin:1rem;padding:1rem;background-color:#fff;border-radius:.625rem}.click-completed.svelte-yh1ir7.svelte-yh1ir7{margin:0 0 .75rem;font-size:120%;font-weight:500}.instruction.svelte-yh1ir7 button.svelte-yh1ir7{padding:.125rem .75rem;background:var(--c-basic-150);border-radius:.375rem;font-size:90%;color:var(--c-basic-900);font-weight:600;text-transform:uppercase}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield;margin:0}*,:before,:after{box-sizing:border-box;border:0 solid #fff}*:focus,*:focus:not(:focus-visible){outline:none}html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;background-color:var(--c-bg-body)}body{margin:0;min-height:100vh;text-rendering:optimizeSpeed;line-height:1}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}a{text-decoration-skip-ink:auto}img,picture,embed,object,video{max-width:100%;width:auto;height:auto}img,video,canvas,audio,iframe,embed,object{display:block;border:none}input,button,textarea,select{font:inherit}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}:root{--c-primary: hsl(185, 80%, 40%);--c-primary-bg: hsl(185, 100%, 95%);--c-basic-0: hsl(216, 20%, 100%);--c-basic-50: hsl(216, 20%, 98%);--c-basic-75: hsl(216, 20%, 96%);--c-basic-100: hsl(216, 20%, 94%);--c-basic-150: hsl(216, 20%, 90%);--c-basic-200: hsl(216, 20%, 87%);--c-basic-250: hsl(216, 20%, 84%);--c-basic-300: hsl(216, 20%, 81%);--c-basic-400: hsl(216, 20%, 64%);--c-basic-500: hsl(216, 20%, 46%);--c-basic-600: hsl(216, 20%, 32%);--c-basic-700: hsl(216, 20%, 25%);--c-basic-800: hsl(216, 20%, 15%);--c-basic-900: hsl(216, 20%, 10%);--c-bg-body: var(--c-basic-200);--c-topbar-bg: var(--c-basic-0);--c-sidebar-bg: var(--c-basic-0);--c-dragbar-bg: var(--c-basic-100);--c-dragbar-bg-hover: var(--c-basic-200);--c-dragbar-icon: var(--c-basic-400)}[data-theme=dark]{--c-primary: hsl(185, 80%, 70%);--c-primary-bg: hsl(185, 80%, 17%);--c-basic-0: hsl(216, 30%, 5%);--c-basic-50: hsl(216, 30%, 10%);--c-basic-75: hsl(216, 30%, 14%);--c-basic-100: hsl(216, 30%, 18%);--c-basic-150: hsl(216, 30%, 22%);--c-basic-200: hsl(216, 30%, 25%);--c-basic-250: hsl(216, 30%, 30%);--c-basic-300: hsl(216, 30%, 33%);--c-basic-400: hsl(216, 30%, 46%);--c-basic-500: hsl(216, 30%, 64%);--c-basic-600: hsl(216, 30%, 83%);--c-basic-700: hsl(216, 30%, 90%);--c-basic-800: hsl(216, 30%, 96%);--c-basic-900: hsl(216, 30%, 98%);--c-bg-body: var(--c-basic-150);--c-topbar-bg: var(--c-basic-0);--c-sidebar-bg: var(--c-basic-0);--c-dragbar-bg: var(--c-basic-250);--c-dragbar-bg-hover: var(--c-basic-150);--c-dragbar-icon: var(--c-basic-500)}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";text-shadow:1px 1px 1px rgba(0,0,0,.004);-webkit-font-smoothing:antialiased;-moz-font-smoothing:antialiased}h1,h2,h3,h4,h5,h6{margin:0;color:var(--c-basic-600);line-height:1.2}p{margin:.5rem 0;font-size:.875rem;color:var(--c-basic-600);line-height:1.5}li{font-size:.875rem;line-height:1.5}a,a:visited{font-size:.875rem;line-height:1.5;text-decoration:underline;text-decoration-skip-ink:auto}nav ol,nav ul{margin:0;padding:0;list-style:none}nav li{display:block;margin:0;padding:0}nav a{display:block;margin:0;padding:0;text-decoration:none}button{cursor:pointer;background-color:transparent;border:none}
@@ -0,0 +1,48 @@
1
+ var Mi=Object.defineProperty;var Hi=(l,e,t)=>e in l?Mi(l,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[e]=t;var En=(l,e,t)=>Hi(l,typeof e!="symbol"?e+"":e,t);import{S as Te,i as Se,s as be,c as At,e as x,a as B,b as E,d as b,f as p,g as A,h as o,j as ft,t as P,k as j,l as m,m as K,u as jt,n as Dt,o as Wt,p as O,q as F,r as Ze,v as oi,w as ai,x as Et,y as ge,z as Ft,A as yn,B as xe,C as pt,D as ze,E as Ee,F as Oe,G as ye,H as Pe,I as Tn,J as Sn,K as zn,L as vt,M as yt,N as ke,O as _e,P as an,Q as Je,R as ae,T as un,U as cn,V as wt,W as Li,X as U,Y as q,Z as Ii,_ as Z,$ as le}from"./index-OMTxPB5B.js";import{navTree as Ri,routes as Ni}from"../base.js";import{dasMap as Bi}from"../das_import_map.js";import Ai from"../../garden.config.js";function De(l){return(l==null?void 0:l.length)!==void 0?l:Array.from(l)}const ji=l=>({}),Cn=l=>({}),Di=l=>({}),Mn=l=>({});function Wi(l){let e,t,n,i,s,r,a,u;const c=l[8].top,f=At(c,l,l[7],Mn),h=l[8].bottom,g=At(h,l,l[7],Cn);return{c(){e=x("div"),t=x("div"),f&&f.c(),n=B(),i=x("div"),s=B(),g&&g.c(),this.h()},l(d){e=E(d,"DIV",{class:!0});var _=b(e);t=E(_,"DIV",{class:!0,style:!0});var T=b(t);f&&f.l(T),T.forEach(p),n=A(_),i=E(_,"DIV",{class:!0}),b(i).forEach(p),s=A(_),g&&g.l(_),_.forEach(p),this.h()},h(){o(t,"class","top svelte-1pql0kc"),ft(t,"height",l[2]),o(i,"class","dragbar svelte-1pql0kc"),P(i,"dragging",l[1]),o(e,"class","container svelte-1pql0kc")},m(d,_){j(d,e,_),m(e,t),f&&f.m(t,null),m(e,n),m(e,i),m(e,s),g&&g.m(e,null),l[9](e),r=!0,a||(u=K(i,"mousedown",l[3]),a=!0)},p(d,[_]){f&&f.p&&(!r||_&128)&&jt(f,c,d,d[7],r?Wt(c,d[7],_,Di):Dt(d[7]),Mn),(!r||_&4)&&ft(t,"height",d[2]),(!r||_&2)&&P(i,"dragging",d[1]),g&&g.p&&(!r||_&128)&&jt(g,h,d,d[7],r?Wt(h,d[7],_,ji):Dt(d[7]),Cn)},i(d){r||(O(f,d),O(g,d),r=!0)},o(d){F(f,d),F(g,d),r=!1},d(d){d&&p(e),f&&f.d(d),g&&g.d(d),l[9](null),a=!1,u()}}}function Oi(l,e,t){let{$$slots:n={},$$scope:i}=e;const s=Ze();let{topHeight:r}=e,{maxHeight:a}=e,u,c=!1,f=!1,h;const g=new ResizeObserver(w=>{w.forEach(()=>{s("out",{maxHeight:u.offsetHeight,maxWidth:u.offsetWidth})})});oi(()=>{g.observe(u)}),ai(()=>{g.disconnect()});function d(){document.addEventListener("mousemove",_),document.addEventListener("mouseup",T),t(1,c=!0)}const _=w=>{window.getSelection().removeAllRanges();const C=Math.min(a,w.pageY-u.offsetTop-7);t(4,r=C),s("out",{topHeight:r})};function T(){document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",T),s("out",{topHeight:r}),t(1,c=!1)}function z(w){Et[w?"unshift":"push"](()=>{u=w,t(0,u)})}return l.$$set=w=>{"topHeight"in w&&t(4,r=w.topHeight),"maxHeight"in w&&t(5,a=w.maxHeight),"$$scope"in w&&t(7,i=w.$$scope)},l.$$.update=()=>{if(l.$$.dirty&65&&u&&!f){t(6,f=!0);const w=u.offsetHeight;s("out",{maxHeight:w,topHeight:Math.round(w*.7)})}l.$$.dirty&48&&Number.isInteger(r)&&Number.isInteger(a)&&t(2,h=a<r?a+"px":r+"px")},[u,c,h,d,r,a,f,i,n,z]}class Pi extends Te{constructor(e){super(),Se(this,e,Oi,Wi,be,{topHeight:4,maxHeight:5})}}function Ui(l){let e,t,n,i,s='<div class="dragbar-icon svelte-mmou7f"></div>',r,a,u='<div class="dragbar-icon svelte-mmou7f"></div>',c,f,h='<div class="dragbar-icon svelte-mmou7f"></div>',g,d,_;const T=l[10].default,z=At(T,l,l[9],null);return{c(){e=x("div"),t=x("div"),z&&z.c(),n=B(),i=x("div"),i.innerHTML=s,r=B(),a=x("div"),a.innerHTML=u,c=B(),f=x("div"),f.innerHTML=h,this.h()},l(w){e=E(w,"DIV",{class:!0});var C=b(e);t=E(C,"DIV",{class:!0});var y=b(t);z&&z.l(y),y.forEach(p),n=A(C),i=E(C,"DIV",{class:!0,"data-svelte-h":!0}),ge(i)!=="svelte-t0brzg"&&(i.innerHTML=s),r=A(C),a=E(C,"DIV",{class:!0,"data-svelte-h":!0}),ge(a)!=="svelte-tvugpc"&&(a.innerHTML=u),c=A(C),f=E(C,"DIV",{class:!0,"data-svelte-h":!0}),ge(f)!=="svelte-1j8ul53"&&(f.innerHTML=h),C.forEach(p),this.h()},h(){o(t,"class","resizepane"),P(t,"disabled",l[0]),ft(t,"width",l[0]?void 0:l[3]),ft(t,"height",l[0]?void 0:l[2]),o(i,"class","dragbar vertical svelte-mmou7f"),P(i,"disabled",l[0]),o(a,"class","dragbar horizontal svelte-mmou7f"),P(a,"disabled",l[0]),o(f,"class","dragbar corner svelte-mmou7f"),P(f,"disabled",l[0]),o(e,"class","resizepane-container svelte-mmou7f"),P(e,"disabled",l[0])},m(w,C){j(w,e,C),m(e,t),z&&z.m(t,null),l[11](t),m(e,n),m(e,i),m(e,r),m(e,a),m(e,c),m(e,f),g=!0,d||(_=[K(i,"mousedown",l[4]("vertical")),K(a,"mousedown",l[4]("horizontal")),K(f,"mousedown",l[4]("verticalhorizontal"))],d=!0)},p(w,[C]){z&&z.p&&(!g||C&512)&&jt(z,T,w,w[9],g?Wt(T,w[9],C,null):Dt(w[9]),null),(!g||C&1)&&P(t,"disabled",w[0]),C&9&&ft(t,"width",w[0]?void 0:w[3]),C&5&&ft(t,"height",w[0]?void 0:w[2]),(!g||C&1)&&P(i,"disabled",w[0]),(!g||C&1)&&P(a,"disabled",w[0]),(!g||C&1)&&P(f,"disabled",w[0]),(!g||C&1)&&P(e,"disabled",w[0])},i(w){g||(O(z,w),g=!0)},o(w){F(z,w),g=!1},d(w){w&&p(e),z&&z.d(w),l[11](null),d=!1,Ft(_)}}}function qi(l,e,t){let{$$slots:n={},$$scope:i}=e,{disabled:s=!1}=e,{maxHeight:r}=e,{maxWidth:a}=e,{paneHeight:u}=e,{paneWidth:c}=e;const f=Ze();let h,g="",d,_;const T=y=>()=>{g=y,document.addEventListener("mousemove",z),document.addEventListener("mouseup",w)},z=y=>{if(window.getSelection().removeAllRanges(),g.includes("horizontal")){let k=y.pageY-h.offsetTop-11;k>r?k="full":(k=Math.min(r,k),k=Math.max(50,k)),f("out",{stageHeight:k})}if(g.includes("vertical")){let k=y.pageX-h.offsetLeft-10;k>a?k="full":(k=Math.min(a,k),k=Math.max(50,k)),f("out",{stageWidth:k})}};function w(){document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",w)}function C(y){Et[y?"unshift":"push"](()=>{h=y,t(1,h)})}return l.$$set=y=>{"disabled"in y&&t(0,s=y.disabled),"maxHeight"in y&&t(5,r=y.maxHeight),"maxWidth"in y&&t(6,a=y.maxWidth),"paneHeight"in y&&t(7,u=y.paneHeight),"paneWidth"in y&&t(8,c=y.paneWidth),"$$scope"in y&&t(9,i=y.$$scope)},l.$$.update=()=>{l.$$.dirty&161&&(Number.isInteger(u)&&!s?t(2,d=Math.min(u,r)+"px"):t(2,d=r+"px")),l.$$.dirty&320&&(Number.isInteger(c)?t(3,_=Math.min(c,a)+"px"):t(3,_=a+"px"))},[s,h,d,_,T,r,a,u,c,i,n,C]}class Vi extends Te{constructor(e){super(),Se(this,e,qi,Ui,be,{disabled:0,maxHeight:5,maxWidth:6,paneHeight:7,paneWidth:8})}}function Zi(l){let e,t,n;const i=[l[0].props];var s=l[0].page;function r(a,u){let c={};for(let f=0;f<i.length;f+=1)c=zn(c,i[f]);return u!==void 0&&u&1&&(c=zn(c,Tn(i,[Sn(a[0].props)]))),{props:c}}return s&&(e=yn(s,r(l)),e.$on("out",l[1])),{c(){e&&xe(e.$$.fragment),t=pt()},l(a){e&&ze(e.$$.fragment,a),t=pt()},m(a,u){e&&Ee(e,a,u),j(a,t,u),n=!0},p(a,[u]){if(u&1&&s!==(s=a[0].page)){if(e){Oe();const c=e;F(c.$$.fragment,1,0,()=>{ye(c,1)}),Pe()}s?(e=yn(s,r(a,u)),e.$on("out",a[1]),xe(e.$$.fragment),O(e.$$.fragment,1),Ee(e,t.parentNode,t)):e=null}else if(s){const c=u&1?Tn(i,[Sn(a[0].props)]):{};e.$set(c)}},i(a){n||(e&&O(e.$$.fragment,a),n=!0)},o(a){e&&F(e.$$.fragment,a),n=!1},d(a){a&&p(t),e&&ye(e,a)}}}function Fi(l,e,t){let{item:n={}}=e;function i(s){vt.call(this,l,s)}return l.$$set=s=>{"item"in s&&t(0,n=s.item)},[n,i]}class Qi extends Te{constructor(e){super(),Se(this,e,Fi,Zi,be,{item:0})}}function Hn(l,e,t){const n=l.slice();return n[9]=e[t],n}function Ln(l){let e,t,n,i,s,r='<svg class="controls_btn-icon svelte-1rdly8d" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"></rect><line x1="3" x2="21" y1="15" y2="15"></line><path d="m15 8-3 3-3-3"></path></svg>',a,u,c,f,h,g,d,_=De(l[0]),T=[];for(let y=0;y<_.length;y+=1)T[y]=In(Hn(l,_,y));const z=[Xi,Gi],w=[];function C(y,k){return y[1]&&y[1].page?0:1}return c=C(l),f=w[c]=z[c](l),{c(){e=x("div"),t=x("nav"),n=x("ul");for(let y=0;y<T.length;y+=1)T[y].c();i=B(),s=x("button"),s.innerHTML=r,a=B(),u=x("div"),f.c(),this.h()},l(y){e=E(y,"DIV",{class:!0});var k=b(e);t=E(k,"NAV",{class:!0});var L=b(t);n=E(L,"UL",{class:!0});var M=b(n);for(let $=0;$<T.length;$+=1)T[$].l(M);M.forEach(p),L.forEach(p),i=A(k),s=E(k,"BUTTON",{class:!0,title:!0,"data-svelte-h":!0}),ge(s)!=="svelte-675oun"&&(s.innerHTML=r),k.forEach(p),a=A(y),u=E(y,"DIV",{class:!0});var W=b(u);f.l(W),W.forEach(p),this.h()},h(){o(n,"class","svelte-1rdly8d"),o(t,"class","svelte-1rdly8d"),o(s,"class","panel_toggle svelte-1rdly8d"),o(s,"title","Collapse panel"),o(e,"class","panel_nav svelte-1rdly8d"),o(u,"class","panel_pane svelte-1rdly8d")},m(y,k){j(y,e,k),m(e,t),m(t,n);for(let L=0;L<T.length;L+=1)T[L]&&T[L].m(n,null);m(e,i),m(e,s),j(y,a,k),j(y,u,k),w[c].m(u,null),h=!0,g||(d=K(s,"click",l[3]),g=!0)},p(y,k){if(k&7){_=De(y[0]);let M;for(M=0;M<_.length;M+=1){const W=Hn(y,_,M);T[M]?T[M].p(W,k):(T[M]=In(W),T[M].c(),T[M].m(n,null))}for(;M<T.length;M+=1)T[M].d(1);T.length=_.length}let L=c;c=C(y),c===L?w[c].p(y,k):(Oe(),F(w[L],1,1,()=>{w[L]=null}),Pe(),f=w[c],f?f.p(y,k):(f=w[c]=z[c](y),f.c()),O(f,1),f.m(u,null))},i(y){h||(O(f),h=!0)},o(y){F(f),h=!1},d(y){y&&(p(e),p(a),p(u)),yt(T,y),w[c].d(),g=!1,d()}}}function In(l){let e,t,n=l[9].name+"",i,s,r,a,u;return{c(){e=x("li"),t=x("button"),i=ke(n),s=x("span"),r=B(),this.h()},l(c){e=E(c,"LI",{});var f=b(e);t=E(f,"BUTTON",{class:!0});var h=b(t);i=_e(h,n),s=E(h,"SPAN",{class:!0}),b(s).forEach(p),h.forEach(p),r=A(f),f.forEach(p),this.h()},h(){o(s,"class","dot svelte-1rdly8d"),o(t,"class","svelte-1rdly8d"),P(t,"active",l[9]==l[1])},m(c,f){j(c,e,f),m(e,t),m(t,i),m(t,s),m(e,r),a||(u=K(t,"click",function(){an(l[2](l[9]))&&l[2](l[9]).apply(this,arguments)}),a=!0)},p(c,f){l=c,f&1&&n!==(n=l[9].name+"")&&Je(i,n),f&3&&P(t,"active",l[9]==l[1])},d(c){c&&p(e),a=!1,u()}}}function Gi(l){let e;const t=l[7].default,n=At(t,l,l[6],null),i=n||Yi();return{c(){i&&i.c()},l(s){i&&i.l(s)},m(s,r){i&&i.m(s,r),e=!0},p(s,r){n&&n.p&&(!e||r&64)&&jt(n,t,s,s[6],e?Wt(t,s[6],r,null):Dt(s[6]),null)},i(s){e||(O(i,s),e=!0)},o(s){F(i,s),e=!1},d(s){i&&i.d(s)}}}function Xi(l){let e,t;return e=new Qi({props:{item:l[1]}}),e.$on("out",l[4]),{c(){xe(e.$$.fragment)},l(n){ze(e.$$.fragment,n)},m(n,i){Ee(e,n,i),t=!0},p(n,i){const s={};i&2&&(s.item=n[1]),e.$set(s)},i(n){t||(O(e.$$.fragment,n),t=!0)},o(n){F(e.$$.fragment,n),t=!1},d(n){ye(e,n)}}}function Yi(l){let e;return{c(){e=ke("No tab content provided")},l(t){e=_e(t,"No tab content provided")},m(t,n){j(t,e,n)},d(t){t&&p(e)}}}function Ji(l){let e,t,n=l[0].length&&Ln(l);return{c(){e=x("div"),n&&n.c(),this.h()},l(i){e=E(i,"DIV",{class:!0});var s=b(e);n&&n.l(s),s.forEach(p),this.h()},h(){o(e,"class","panel_container svelte-1rdly8d")},m(i,s){j(i,e,s),n&&n.m(e,null),t=!0},p(i,[s]){i[0].length?n?(n.p(i,s),s&1&&O(n,1)):(n=Ln(i),n.c(),O(n,1),n.m(e,null)):n&&(Oe(),F(n,1,1,()=>{n=null}),Pe())},i(i){t||(O(n),t=!0)},o(i){F(n),t=!1},d(i){i&&p(e),n&&n.d()}}}function Ki(l,e,t){let{$$slots:n={},$$scope:i}=e;const s=Ze();let{tabs:r=[]}=e,a={},u;const c=g=>()=>{t(5,a=g.name),s("out",{selecteditem:g})};function f(){s("out",{toggleExpandPanel:!0})}function h(g){u.out&&u.out(g)}return l.$$set=g=>{"tabs"in g&&t(0,r=g.tabs),"$$scope"in g&&t(6,i=g.$$scope)},l.$$.update=()=>{l.$$.dirty&33&&(r?t(1,u=r.find(g=>g.name===a)||r[0]):t(1,u={}))},[r,u,c,f,h,a,i,n]}class $i extends Te{constructor(e){super(),Se(this,e,Ki,Ji,be,{tabs:0})}}function Rn(l,e,t){const n=l.slice();return n[4]=e[t],n}function Nn(l){let e,t,n,i,s=l[4]+"",r,a,u,c;return{c(){e=x("li"),t=x("button"),n=x("span"),i=B(),r=ke(s),a=B(),this.h()},l(f){e=E(f,"LI",{});var h=b(e);t=E(h,"BUTTON",{class:!0});var g=b(t);n=E(g,"SPAN",{class:!0}),b(n).forEach(p),i=A(g),r=_e(g,s),g.forEach(p),a=A(h),h.forEach(p),this.h()},h(){o(n,"class","dot svelte-9ikz8y"),o(t,"class","svelte-9ikz8y"),P(e,"active",l[1]==l[4])},m(f,h){j(f,e,h),m(e,t),m(t,n),m(t,i),m(t,r),m(e,a),u||(c=K(t,"click",function(){an(l[2](l[4]))&&l[2](l[4]).apply(this,arguments)}),u=!0)},p(f,h){l=f,h&1&&s!==(s=l[4]+"")&&Je(r,s),h&3&&P(e,"active",l[1]==l[4])},d(f){f&&p(e),u=!1,c()}}}function el(l){let e,t=De(l[0]),n=[];for(let i=0;i<t.length;i+=1)n[i]=Nn(Rn(l,t,i));return{c(){e=x("ul");for(let i=0;i<n.length;i+=1)n[i].c();this.h()},l(i){e=E(i,"UL",{class:!0});var s=b(e);for(let r=0;r<n.length;r+=1)n[r].l(s);s.forEach(p),this.h()},h(){o(e,"class","stories svelte-9ikz8y")},m(i,s){j(i,e,s);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(i,[s]){if(s&7){t=De(i[0]);let r;for(r=0;r<t.length;r+=1){const a=Rn(i,t,r);n[r]?n[r].p(a,s):(n[r]=Nn(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},i:ae,o:ae,d(i){i&&p(e),yt(n,i)}}}function tl(l,e,t){let{items:n=[]}=e,{selected:i}=e;const s=Ze(),r=a=>()=>{s("out",{selecteditem:a})};return l.$$set=a=>{"items"in a&&t(0,n=a.items),"selected"in a&&t(1,i=a.selected)},[n,i,r]}class nl extends Te{constructor(e){super(),Se(this,e,tl,el,be,{items:0,selected:1})}}function ui(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let lt=ui();function il(l){lt=l}const ci=/[&<>"']/,ll=new RegExp(ci.source,"g"),hi=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,sl=new RegExp(hi.source,"g"),rl={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Bn=l=>rl[l];function de(l,e){if(e){if(ci.test(l))return l.replace(ll,Bn)}else if(hi.test(l))return l.replace(sl,Bn);return l}const ol=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function fi(l){return l.replace(ol,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const al=/(^|[^\[])\^/g;function X(l,e){l=typeof l=="string"?l:l.source,e=e||"";const t={replace:(n,i)=>(i=i.source||i,i=i.replace(al,"$1"),l=l.replace(n,i),t),getRegex:()=>new RegExp(l,e)};return t}const ul=/[^\w:]/g,cl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function An(l,e,t){if(l){let n;try{n=decodeURIComponent(fi(t)).replace(ul,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}e&&!cl.test(t)&&(t=gl(e,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const Nt={},hl=/^[^:]+:\/*[^/]*$/,fl=/^([^:]+:)[\s\S]*$/,dl=/^([^:]+:\/*[^/]*)[\s\S]*$/;function gl(l,e){Nt[" "+l]||(hl.test(l)?Nt[" "+l]=l+"/":Nt[" "+l]=Bt(l,"/",!0)),l=Nt[" "+l];const t=l.indexOf(":")===-1;return e.substring(0,2)==="//"?t?e:l.replace(fl,"$1")+e:e.charAt(0)==="/"?t?e:l.replace(dl,"$1")+e:l+e}const Ot={exec:function(){}};function jn(l,e){const t=l.replace(/\|/g,(s,r,a)=>{let u=!1,c=r;for(;--c>=0&&a[c]==="\\";)u=!u;return u?"|":" |"}),n=t.split(/ \|/);let i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(/\\\|/g,"|");return n}function Bt(l,e,t){const n=l.length;if(n===0)return"";let i=0;for(;i<n;){const s=l.charAt(n-i-1);if(s===e&&!t)i++;else if(s!==e&&t)i++;else break}return l.slice(0,n-i)}function pl(l,e){if(l.indexOf(e[1])===-1)return-1;const t=l.length;let n=0,i=0;for(;i<t;i++)if(l[i]==="\\")i++;else if(l[i]===e[0])n++;else if(l[i]===e[1]&&(n--,n<0))return i;return-1}function ml(l){l&&l.sanitize&&!l.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function Dn(l,e){if(e<1)return"";let t="";for(;e>1;)e&1&&(t+=l),e>>=1,l+=l;return t+l}function Wn(l,e,t,n){const i=e.href,s=e.title?de(e.title):null,r=l[1].replace(/\\([\[\]])/g,"$1");if(l[0].charAt(0)!=="!"){n.state.inLink=!0;const a={type:"link",raw:t,href:i,title:s,text:r,tokens:n.inlineTokens(r)};return n.state.inLink=!1,a}return{type:"image",raw:t,href:i,title:s,text:de(r)}}function kl(l,e){const t=l.match(/^(\s+)(?:```)/);if(t===null)return e;const n=t[1];return e.split(`
2
+ `).map(i=>{const s=i.match(/^\s+/);if(s===null)return i;const[r]=s;return r.length>=n.length?i.slice(n.length):i}).join(`
3
+ `)}class hn{constructor(e){this.options=e||lt}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Bt(n,`
4
+ `)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],i=kl(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:i}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(/#$/.test(n)){const i=Bt(n,"#");(this.options.pedantic||!i||/ $/.test(i))&&(n=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const n=t[0].replace(/^ *>[ \t]?/gm,""),i=this.lexer.state.top;this.lexer.state.top=!0;const s=this.lexer.blockTokens(n);return this.lexer.state.top=i,{type:"blockquote",raw:t[0],tokens:s,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,i,s,r,a,u,c,f,h,g,d,_,T=t[1].trim();const z=T.length>1,w={type:"list",raw:"",ordered:z,start:z?+T.slice(0,-1):"",loose:!1,items:[]};T=z?`\\d{1,9}\\${T.slice(-1)}`:`\\${T}`,this.options.pedantic&&(T=z?T:"[*+-]");const C=new RegExp(`^( {0,3}${T})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(_=!1,!(!(t=C.exec(e))||this.rules.block.hr.test(e)));){if(n=t[0],e=e.substring(n.length),f=t[2].split(`
5
+ `,1)[0].replace(/^\t+/,k=>" ".repeat(3*k.length)),h=e.split(`
6
+ `,1)[0],this.options.pedantic?(r=2,d=f.trimLeft()):(r=t[2].search(/[^ ]/),r=r>4?1:r,d=f.slice(r),r+=t[1].length),u=!1,!f&&/^ *$/.test(h)&&(n+=h+`
7
+ `,e=e.substring(h.length+1),_=!0),!_){const k=new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),L=new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),M=new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),W=new RegExp(`^ {0,${Math.min(3,r-1)}}#`);for(;e&&(g=e.split(`
8
+ `,1)[0],h=g,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(M.test(h)||W.test(h)||k.test(h)||L.test(e)));){if(h.search(/[^ ]/)>=r||!h.trim())d+=`
9
+ `+h.slice(r);else{if(u||f.search(/[^ ]/)>=4||M.test(f)||W.test(f)||L.test(f))break;d+=`
10
+ `+h}!u&&!h.trim()&&(u=!0),n+=g+`
11
+ `,e=e.substring(g.length+1),f=h.slice(r)}}w.loose||(c?w.loose=!0:/\n *\n *$/.test(n)&&(c=!0)),this.options.gfm&&(i=/^\[[ xX]\] /.exec(d),i&&(s=i[0]!=="[ ] ",d=d.replace(/^\[[ xX]\] +/,""))),w.items.push({type:"list_item",raw:n,task:!!i,checked:s,loose:!1,text:d}),w.raw+=n}w.items[w.items.length-1].raw=n.trimRight(),w.items[w.items.length-1].text=d.trimRight(),w.raw=w.raw.trimRight();const y=w.items.length;for(a=0;a<y;a++)if(this.lexer.state.top=!1,w.items[a].tokens=this.lexer.blockTokens(w.items[a].text,[]),!w.loose){const k=w.items[a].tokens.filter(M=>M.type==="space"),L=k.length>0&&k.some(M=>/\n.*\n/.test(M.raw));w.loose=L}if(w.loose)for(a=0;a<y;a++)w.items[a].loose=!0;return w}}html(e){const t=this.rules.block.html.exec(e);if(t){const n={type:"html",raw:t[0],pre:!this.options.sanitizer&&(t[1]==="pre"||t[1]==="script"||t[1]==="style"),text:t[0]};if(this.options.sanitize){const i=this.options.sanitizer?this.options.sanitizer(t[0]):de(t[0]);n.type="paragraph",n.text=i,n.tokens=this.lexer.inline(i)}return n}}def(e){const t=this.rules.block.def.exec(e);if(t){const n=t[1].toLowerCase().replace(/\s+/g," "),i=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:i,title:s}}}table(e){const t=this.rules.block.table.exec(e);if(t){const n={type:"table",header:jn(t[1]).map(i=>({text:i})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(`
12
+ `):[]};if(n.header.length===n.align.length){n.raw=t[0];let i=n.align.length,s,r,a,u;for(s=0;s<i;s++)/^ *-+: *$/.test(n.align[s])?n.align[s]="right":/^ *:-+: *$/.test(n.align[s])?n.align[s]="center":/^ *:-+ *$/.test(n.align[s])?n.align[s]="left":n.align[s]=null;for(i=n.rows.length,s=0;s<i;s++)n.rows[s]=jn(n.rows[s],n.header.length).map(c=>({text:c}));for(i=n.header.length,r=0;r<i;r++)n.header[r].tokens=this.lexer.inline(n.header[r].text);for(i=n.rows.length,r=0;r<i;r++)for(u=n.rows[r],a=0;a<u.length;a++)u[a].tokens=this.lexer.inline(u[a].text);return n}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const n=t[1].charAt(t[1].length-1)===`
13
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:de(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):de(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;const r=Bt(n.slice(0,-1),"\\");if((n.length-r.length)%2===0)return}else{const r=pl(t[2],"()");if(r>-1){const u=(t[0].indexOf("!")===0?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,u).trim(),t[3]=""}}let i=t[2],s="";if(this.options.pedantic){const r=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);r&&(i=r[1],s=r[3])}else s=t[3]?t[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/>$/.test(n)?i=i.slice(1):i=i.slice(1,-1)),Wn(t,{href:i&&i.replace(this.rules.inline._escapes,"$1"),title:s&&s.replace(this.rules.inline._escapes,"$1")},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let i=(n[2]||n[1]).replace(/\s+/g," ");if(i=t[i.toLowerCase()],!i){const s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return Wn(n,i,n[0],this.lexer)}}emStrong(e,t,n=""){let i=this.rules.inline.emStrong.lDelim.exec(e);if(!i||i[3]&&n.match(/[\p{L}\p{N}]/u))return;const s=i[1]||i[2]||"";if(!s||s&&(n===""||this.rules.inline.punctuation.exec(n))){const r=i[0].length-1;let a,u,c=r,f=0;const h=i[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(h.lastIndex=0,t=t.slice(-1*e.length+r);(i=h.exec(t))!=null;){if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!a)continue;if(u=a.length,i[3]||i[4]){c+=u;continue}else if((i[5]||i[6])&&r%3&&!((r+u)%3)){f+=u;continue}if(c-=u,c>0)continue;u=Math.min(u,u+c+f);const g=e.slice(0,r+i.index+(i[0].length-a.length)+u);if(Math.min(r,u)%2){const _=g.slice(1,-1);return{type:"em",raw:g,text:_,tokens:this.lexer.inlineTokens(_)}}const d=g.slice(2,-2);return{type:"strong",raw:g,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(/\n/g," ");const i=/[^ ]/.test(n),s=/^ /.test(n)&&/ $/.test(n);return i&&s&&(n=n.substring(1,n.length-1)),n=de(n,!0),{type:"codespan",raw:t[0],text:n}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let i,s;return n[2]==="@"?(i=de(this.options.mangle?t(n[1]):n[1]),s="mailto:"+i):(i=de(n[1]),s=i),{type:"link",raw:n[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let i,s;if(n[2]==="@")i=de(this.options.mangle?t(n[0]):n[0]),s="mailto:"+i;else{let r;do r=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(r!==n[0]);i=de(n[0]),n[1]==="www."?s="http://"+n[0]:s=n[0]}return{type:"link",raw:n[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let i;return this.lexer.state.inRawBlock?i=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):de(n[0]):n[0]:i=de(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:i}}}}const N={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Ot,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};N._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;N._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;N.def=X(N.def).replace("label",N._label).replace("title",N._title).getRegex();N.bullet=/(?:[*+-]|\d{1,9}[.)])/;N.listItemStart=X(/^( *)(bull) */).replace("bull",N.bullet).getRegex();N.list=X(N.list).replace(/bull/g,N.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+N.def.source+")").getRegex();N._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";N._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;N.html=X(N.html,"i").replace("comment",N._comment).replace("tag",N._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();N.paragraph=X(N._paragraph).replace("hr",N.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",N._tag).getRegex();N.blockquote=X(N.blockquote).replace("paragraph",N.paragraph).getRegex();N.normal={...N};N.gfm={...N.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};N.gfm.table=X(N.gfm.table).replace("hr",N.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",N._tag).getRegex();N.gfm.paragraph=X(N._paragraph).replace("hr",N.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",N.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",N._tag).getRegex();N.pedantic={...N.normal,html:X(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",N._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ot,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:X(N.normal._paragraph).replace("hr",N.hr).replace("heading",` *#{1,6} *[^
14
+ ]`).replace("lheading",N.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const H={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ot,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Ot,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};H._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";H.punctuation=X(H.punctuation).replace(/punctuation/g,H._punctuation).getRegex();H.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;H.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;H._comment=X(N._comment).replace("(?:-->|$)","-->").getRegex();H.emStrong.lDelim=X(H.emStrong.lDelim).replace(/punct/g,H._punctuation).getRegex();H.emStrong.rDelimAst=X(H.emStrong.rDelimAst,"g").replace(/punct/g,H._punctuation).getRegex();H.emStrong.rDelimUnd=X(H.emStrong.rDelimUnd,"g").replace(/punct/g,H._punctuation).getRegex();H._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;H._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;H._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;H.autolink=X(H.autolink).replace("scheme",H._scheme).replace("email",H._email).getRegex();H._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;H.tag=X(H.tag).replace("comment",H._comment).replace("attribute",H._attribute).getRegex();H._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;H._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;H._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;H.link=X(H.link).replace("label",H._label).replace("href",H._href).replace("title",H._title).getRegex();H.reflink=X(H.reflink).replace("label",H._label).replace("ref",N._label).getRegex();H.nolink=X(H.nolink).replace("ref",N._label).getRegex();H.reflinkSearch=X(H.reflinkSearch,"g").replace("reflink",H.reflink).replace("nolink",H.nolink).getRegex();H.normal={...H};H.pedantic={...H.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:X(/^!?\[(label)\]\((.*?)\)/).replace("label",H._label).getRegex(),reflink:X(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",H._label).getRegex()};H.gfm={...H.normal,escape:X(H.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/};H.gfm.url=X(H.gfm.url,"i").replace("email",H.gfm._extended_email).getRegex();H.breaks={...H.gfm,br:X(H.br).replace("{2,}","*").getRegex(),text:X(H.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};function _l(l){return l.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function On(l){let e="",t,n;const i=l.length;for(t=0;t<i;t++)n=l.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),e+="&#"+n+";";return e}class Ke{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||lt,this.options.tokenizer=this.options.tokenizer||new hn,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:N.normal,inline:H.normal};this.options.pedantic?(t.block=N.pedantic,t.inline=H.pedantic):this.options.gfm&&(t.block=N.gfm,this.options.breaks?t.inline=H.breaks:t.inline=H.gfm),this.tokenizer.rules=t}static get rules(){return{block:N,inline:H}}static lex(e,t){return new Ke(t).lex(e)}static lexInline(e,t){return new Ke(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
15
+ `),this.blockTokens(e,this.tokens);let t;for(;t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){this.options.pedantic?e=e.replace(/\t/g," ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(a,u,c)=>u+" ".repeat(c.length));let n,i,s,r;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(n=a.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length),n.raw.length===1&&t.length>0?t[t.length-1].raw+=`
16
+ `:t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
17
+ `+n.raw,i.text+=`
18
+ `+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
19
+ `+n.raw,i.text+=`
20
+ `+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(s=e,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const u=e.slice(1);let c;this.options.extensions.startBlock.forEach(function(f){c=f.call({lexer:this},u),typeof c=="number"&&c>=0&&(a=Math.min(a,c))}),a<1/0&&a>=0&&(s=e.substring(0,a+1))}if(this.state.top&&(n=this.tokenizer.paragraph(s))){i=t[t.length-1],r&&i.type==="paragraph"?(i.raw+=`
21
+ `+n.raw,i.text+=`
22
+ `+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n),r=s.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&i.type==="text"?(i.raw+=`
23
+ `+n.raw,i.text+=`
24
+ `+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n);continue}if(e){const a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,i,s,r=e,a,u,c;if(this.tokens.links){const f=Object.keys(this.tokens.links);if(f.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)f.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,a.index)+"["+Dn("a",a[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,a.index)+"["+Dn("a",a[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.escapedEmSt.exec(r))!=null;)r=r.slice(0,a.index+a[0].length-2)+"++"+r.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(u||(c=""),u=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>(n=f.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),i=t[t.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,r,c)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e,On)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e,On))){e=e.substring(n.raw.length),t.push(n);continue}if(s=e,this.options.extensions&&this.options.extensions.startInline){let f=1/0;const h=e.slice(1);let g;this.options.extensions.startInline.forEach(function(d){g=d.call({lexer:this},h),typeof g=="number"&&g>=0&&(f=Math.min(f,g))}),f<1/0&&f>=0&&(s=e.substring(0,f+1))}if(n=this.tokenizer.inlineText(s,_l)){e=e.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(c=n.raw.slice(-1)),u=!0,i=t[t.length-1],i&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):t.push(n);continue}if(e){const f="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return t}}class fn{constructor(e){this.options=e||lt}code(e,t,n){const i=(t||"").match(/\S*/)[0];if(this.options.highlight){const s=this.options.highlight(e,i);s!=null&&s!==e&&(n=!0,e=s)}return e=e.replace(/\n$/,"")+`
25
+ `,i?'<pre><code class="'+this.options.langPrefix+de(i)+'">'+(n?e:de(e,!0))+`</code></pre>
26
+ `:"<pre><code>"+(n?e:de(e,!0))+`</code></pre>
27
+ `}blockquote(e){return`<blockquote>
28
+ ${e}</blockquote>
29
+ `}html(e){return e}heading(e,t,n,i){if(this.options.headerIds){const s=this.options.headerPrefix+i.slug(n);return`<h${t} id="${s}">${e}</h${t}>
30
+ `}return`<h${t}>${e}</h${t}>
31
+ `}hr(){return this.options.xhtml?`<hr/>
32
+ `:`<hr>
33
+ `}list(e,t,n){const i=t?"ol":"ul",s=t&&n!==1?' start="'+n+'"':"";return"<"+i+s+`>
34
+ `+e+"</"+i+`>
35
+ `}listitem(e){return`<li>${e}</li>
36
+ `}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>
37
+ `}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),`<table>
38
+ <thead>
39
+ `+e+`</thead>
40
+ `+t+`</table>
41
+ `}tablerow(e){return`<tr>
42
+ ${e}</tr>
43
+ `}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>
44
+ `}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){if(e=An(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let i='<a href="'+e+'"';return t&&(i+=' title="'+t+'"'),i+=">"+n+"</a>",i}image(e,t,n){if(e=An(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let i=`<img src="${e}" alt="${n}"`;return t&&(i+=` title="${t}"`),i+=this.options.xhtml?"/>":">",i}text(e){return e}}class di{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class gi{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[e];do i++,n=e+"-"+i;while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=i,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class $e{constructor(e){this.options=e||lt,this.options.renderer=this.options.renderer||new fn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new di,this.slugger=new gi}static parse(e,t){return new $e(t).parse(e)}static parseInline(e,t){return new $e(t).parseInline(e)}parse(e,t=!0){let n="",i,s,r,a,u,c,f,h,g,d,_,T,z,w,C,y,k,L,M;const W=e.length;for(i=0;i<W;i++){if(d=e[i],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[d.type]&&(M=this.options.extensions.renderers[d.type].call({parser:this},d),M!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type))){n+=M||"";continue}switch(d.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{n+=this.renderer.heading(this.parseInline(d.tokens),d.depth,fi(this.parseInline(d.tokens,this.textRenderer)),this.slugger);continue}case"code":{n+=this.renderer.code(d.text,d.lang,d.escaped);continue}case"table":{for(h="",f="",a=d.header.length,s=0;s<a;s++)f+=this.renderer.tablecell(this.parseInline(d.header[s].tokens),{header:!0,align:d.align[s]});for(h+=this.renderer.tablerow(f),g="",a=d.rows.length,s=0;s<a;s++){for(c=d.rows[s],f="",u=c.length,r=0;r<u;r++)f+=this.renderer.tablecell(this.parseInline(c[r].tokens),{header:!1,align:d.align[r]});g+=this.renderer.tablerow(f)}n+=this.renderer.table(h,g);continue}case"blockquote":{g=this.parse(d.tokens),n+=this.renderer.blockquote(g);continue}case"list":{for(_=d.ordered,T=d.start,z=d.loose,a=d.items.length,g="",s=0;s<a;s++)C=d.items[s],y=C.checked,k=C.task,w="",C.task&&(L=this.renderer.checkbox(y),z?C.tokens.length>0&&C.tokens[0].type==="paragraph"?(C.tokens[0].text=L+" "+C.tokens[0].text,C.tokens[0].tokens&&C.tokens[0].tokens.length>0&&C.tokens[0].tokens[0].type==="text"&&(C.tokens[0].tokens[0].text=L+" "+C.tokens[0].tokens[0].text)):C.tokens.unshift({type:"text",text:L}):w+=L),w+=this.parse(C.tokens,z),g+=this.renderer.listitem(w,k,y);n+=this.renderer.list(g,_,T);continue}case"html":{n+=this.renderer.html(d.text);continue}case"paragraph":{n+=this.renderer.paragraph(this.parseInline(d.tokens));continue}case"text":{for(g=d.tokens?this.parseInline(d.tokens):d.text;i+1<W&&e[i+1].type==="text";)d=e[++i],g+=`
45
+ `+(d.tokens?this.parseInline(d.tokens):d.text);n+=t?this.renderer.paragraph(g):g;continue}default:{const $='Token with "'+d.type+'" type was not found.';if(this.options.silent){console.error($);return}else throw new Error($)}}}return n}parseInline(e,t){t=t||this.renderer;let n="",i,s,r;const a=e.length;for(i=0;i<a;i++){if(s=e[i],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]&&(r=this.options.extensions.renderers[s.type].call({parser:this},s),r!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type))){n+=r||"";continue}switch(s.type){case"escape":{n+=t.text(s.text);break}case"html":{n+=t.html(s.text);break}case"link":{n+=t.link(s.href,s.title,this.parseInline(s.tokens,t));break}case"image":{n+=t.image(s.href,s.title,s.text);break}case"strong":{n+=t.strong(this.parseInline(s.tokens,t));break}case"em":{n+=t.em(this.parseInline(s.tokens,t));break}case"codespan":{n+=t.codespan(s.text);break}case"br":{n+=t.br();break}case"del":{n+=t.del(this.parseInline(s.tokens,t));break}case"text":{n+=t.text(s.text);break}default:{const u='Token with "'+s.type+'" type was not found.';if(this.options.silent){console.error(u);return}else throw new Error(u)}}}return n}}class Pt{constructor(e){this.options=e||lt}preprocess(e){return e}postprocess(e){return e}}En(Pt,"passThroughHooks",new Set(["preprocess","postprocess"]));function bl(l,e,t){return n=>{if(n.message+=`
46
+ Please report this to https://github.com/markedjs/marked.`,l){const i="<p>An error occurred:</p><pre>"+de(n.message+"",!0)+"</pre>";if(e)return Promise.resolve(i);if(t){t(null,i);return}return i}if(e)return Promise.reject(n);if(t){t(n);return}throw n}}function pi(l,e){return(t,n,i)=>{typeof n=="function"&&(i=n,n=null);const s={...n};n={...R.defaults,...s};const r=bl(n.silent,n.async,i);if(typeof t>"u"||t===null)return r(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return r(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(ml(n),n.hooks&&(n.hooks.options=n),i){const a=n.highlight;let u;try{n.hooks&&(t=n.hooks.preprocess(t)),u=l(t,n)}catch(h){return r(h)}const c=function(h){let g;if(!h)try{n.walkTokens&&R.walkTokens(u,n.walkTokens),g=e(u,n),n.hooks&&(g=n.hooks.postprocess(g))}catch(d){h=d}return n.highlight=a,h?r(h):i(null,g)};if(!a||a.length<3||(delete n.highlight,!u.length))return c();let f=0;R.walkTokens(u,function(h){h.type==="code"&&(f++,setTimeout(()=>{a(h.text,h.lang,function(g,d){if(g)return c(g);d!=null&&d!==h.text&&(h.text=d,h.escaped=!0),f--,f===0&&c()})},0))}),f===0&&c();return}if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(t):t).then(a=>l(a,n)).then(a=>n.walkTokens?Promise.all(R.walkTokens(a,n.walkTokens)).then(()=>a):a).then(a=>e(a,n)).then(a=>n.hooks?n.hooks.postprocess(a):a).catch(r);try{n.hooks&&(t=n.hooks.preprocess(t));const a=l(t,n);n.walkTokens&&R.walkTokens(a,n.walkTokens);let u=e(a,n);return n.hooks&&(u=n.hooks.postprocess(u)),u}catch(a){return r(a)}}}function R(l,e,t){return pi(Ke.lex,$e.parse)(l,e,t)}R.options=R.setOptions=function(l){return R.defaults={...R.defaults,...l},il(R.defaults),R};R.getDefaults=ui;R.defaults=lt;R.use=function(...l){const e=R.defaults.extensions||{renderers:{},childTokens:{}};l.forEach(t=>{const n={...t};if(n.async=R.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if(i.renderer){const s=e.renderers[i.name];s?e.renderers[i.name]=function(...r){let a=i.renderer.apply(this,r);return a===!1&&(a=s.apply(this,r)),a}:e.renderers[i.name]=i.renderer}if(i.tokenizer){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");e[i.level]?e[i.level].unshift(i.tokenizer):e[i.level]=[i.tokenizer],i.start&&(i.level==="block"?e.startBlock?e.startBlock.push(i.start):e.startBlock=[i.start]:i.level==="inline"&&(e.startInline?e.startInline.push(i.start):e.startInline=[i.start]))}i.childTokens&&(e.childTokens[i.name]=i.childTokens)}),n.extensions=e),t.renderer){const i=R.defaults.renderer||new fn;for(const s in t.renderer){const r=i[s];i[s]=(...a)=>{let u=t.renderer[s].apply(i,a);return u===!1&&(u=r.apply(i,a)),u}}n.renderer=i}if(t.tokenizer){const i=R.defaults.tokenizer||new hn;for(const s in t.tokenizer){const r=i[s];i[s]=(...a)=>{let u=t.tokenizer[s].apply(i,a);return u===!1&&(u=r.apply(i,a)),u}}n.tokenizer=i}if(t.hooks){const i=R.defaults.hooks||new Pt;for(const s in t.hooks){const r=i[s];Pt.passThroughHooks.has(s)?i[s]=a=>{if(R.defaults.async)return Promise.resolve(t.hooks[s].call(i,a)).then(c=>r.call(i,c));const u=t.hooks[s].call(i,a);return r.call(i,u)}:i[s]=(...a)=>{let u=t.hooks[s].apply(i,a);return u===!1&&(u=r.apply(i,a)),u}}n.hooks=i}if(t.walkTokens){const i=R.defaults.walkTokens;n.walkTokens=function(s){let r=[];return r.push(t.walkTokens.call(this,s)),i&&(r=r.concat(i.call(this,s))),r}}R.setOptions(n)})};R.walkTokens=function(l,e){let t=[];for(const n of l)switch(t=t.concat(e.call(R,n)),n.type){case"table":{for(const i of n.header)t=t.concat(R.walkTokens(i.tokens,e));for(const i of n.rows)for(const s of i)t=t.concat(R.walkTokens(s.tokens,e));break}case"list":{t=t.concat(R.walkTokens(n.items,e));break}default:R.defaults.extensions&&R.defaults.extensions.childTokens&&R.defaults.extensions.childTokens[n.type]?R.defaults.extensions.childTokens[n.type].forEach(function(i){t=t.concat(R.walkTokens(n[i],e))}):n.tokens&&(t=t.concat(R.walkTokens(n.tokens,e)))}return t};R.parseInline=pi(Ke.lexInline,$e.parseInline);R.Parser=$e;R.parser=$e.parse;R.Renderer=fn;R.TextRenderer=di;R.Lexer=Ke;R.lexer=Ke.lex;R.Tokenizer=hn;R.Slugger=gi;R.Hooks=Pt;R.parse=R;R.options;R.setOptions;R.use;R.walkTokens;R.parseInline;$e.parse;Ke.lex;const vl="modulepreload",wl=function(l){return"/"+l},Pn={},mi=function(e,t,n){let i=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),a=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));i=Promise.allSettled(t.map(u=>{if(u=wl(u),u in Pn)return;Pn[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":vl,c||(h.as="script"),h.crossOrigin="",h.href=u,a&&h.setAttribute("nonce",a),document.head.appendChild(h),c)return new Promise((g,d)=>{h.addEventListener("load",g),h.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${u}`)))})}))}function s(r){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=r,window.dispatchEvent(a),!a.defaultPrevented)throw r}return i.then(r=>{for(const a of r||[])a.status==="rejected"&&s(a.reason);return e().catch(s)})},ki=async l=>{try{(await mi(async()=>{const{default:t}=await import("./index-DLbPO8Sw.js");return{default:t}},[])).default.highlightElement(l)}catch(e){console.error("Could not load highlight.js",e)}};function xl(l){let e,t,n=R(l[0].descriptionfile||l[0].description)+"";return{c(){e=x("div"),t=new un(!1),this.h()},l(i){e=E(i,"DIV",{class:!0});var s=b(e);t=cn(s,!1),s.forEach(p),this.h()},h(){t.a=null,o(e,"class","markdown-body")},m(i,s){j(i,e,s),t.m(n,e),l[2](e)},p(i,[s]){s&1&&n!==(n=R(i[0].descriptionfile||i[0].description)+"")&&t.p(n)},i:ae,o:ae,d(i){i&&p(e),l[2](null)}}}function El(l,e,t){let{das:n}=e,i;function s(r){Et[r?"unshift":"push"](()=>{i=r,t(1,i)})}return l.$$set=r=>{"das"in r&&t(0,n=r.das)},l.$$.update=()=>{l.$$.dirty&3&&n&&i&&setTimeout(()=>{i&&Array.from(i.querySelectorAll("pre code")).forEach(r=>{ki(r)})},200)},[n,i,s]}class yl extends Te{constructor(e){super(),Se(this,e,El,xl,be,{das:0})}}function Un(l){let e;return{c(){e=ke("Running Gardenjs in devmodus. No Code view supported.")},l(t){e=_e(t,"Running Gardenjs in devmodus. No Code view supported.")},m(t,n){j(t,e,n)},d(t){t&&p(e)}}}function qn(l){let e,t,n;return{c(){e=x("pre"),t=x("code"),n=ke(l[1]),this.h()},l(i){e=E(i,"PRE",{});var s=b(e);t=E(s,"CODE",{class:!0});var r=b(t);n=_e(r,l[1]),r.forEach(p),s.forEach(p),this.h()},h(){o(t,"class","language-xml")},m(i,s){j(i,e,s),m(e,t),m(t,n),l[5](t)},p(i,s){s&2&&Je(n,i[1])},d(i){i&&p(e),l[5](null)}}}function Tl(l){let e,t,n=l[0]&&Un(),i=l[1]&&qn(l);return{c(){e=x("div"),n&&n.c(),t=B(),i&&i.c()},l(s){e=E(s,"DIV",{});var r=b(e);n&&n.l(r),t=A(r),i&&i.l(r),r.forEach(p)},m(s,r){j(s,e,r),n&&n.m(e,null),m(e,t),i&&i.m(e,null)},p(s,[r]){s[0]?n||(n=Un(),n.c(),n.m(e,t)):n&&(n.d(1),n=null),s[1]?i?i.p(s,r):(i=qn(s),i.c(),i.m(e,null)):i&&(i.d(1),i=null)},i:ae,o:ae,d(s){s&&p(e),n&&n.d(),i&&i.d()}}}function Sl(l,e,t){let{componentName:n}=e,{devmodus:i}=e,s,r,a=[];i||u();async function u(){const h=await mi(()=>import("../raw_component_import_map.js"),[]);t(4,a=h.rawComponentMap)}function c(h,g){t(1,s=null),setTimeout(()=>{t(1,s=g[h])})}function f(h){Et[h?"unshift":"push"](()=>{r=h,t(2,r)})}return l.$$set=h=>{"componentName"in h&&t(3,n=h.componentName),"devmodus"in h&&t(0,i=h.devmodus)},l.$$.update=()=>{l.$$.dirty&24&&c(n,a),l.$$.dirty&6&&s&&r&&ki(r)},[i,s,r,n,a,f]}class zl extends Te{constructor(e){super(),Se(this,e,Sl,Tl,be,{componentName:3,devmodus:0})}}function Cl(l){let e,t;return{c(){e=x("iframe"),this.h()},l(n){e=E(n,"IFRAME",{class:!0,title:!0,src:!0,style:!0}),b(e).forEach(p),this.h()},h(){o(e,"class","stage_iframe svelte-17n05ij"),o(e,"title","preview"),wt(e.src,t="/frame.html")||o(e,"src",t),o(e,"style",l[0])},m(n,i){j(n,e,i),l[20](e)},p(n,i){i&1&&o(e,"style",n[0])},d(n){n&&p(e),l[20](null)}}}function Ml(l){let e,t;return e=new Vi({props:{slot:"top",disabled:l[1]!=="full",maxHeight:l[6],maxWidth:l[7],paneHeight:l[4],paneWidth:l[5],$$slots:{default:[Cl]},$$scope:{ctx:l}}}),e.$on("out",l[12]),{c(){xe(e.$$.fragment)},l(n){ze(e.$$.fragment,n)},m(n,i){Ee(e,n,i),t=!0},p(n,i){const s={};i&2&&(s.disabled=n[1]!=="full"),i&64&&(s.maxHeight=n[6]),i&128&&(s.maxWidth=n[7]),i&16&&(s.paneHeight=n[4]),i&32&&(s.paneWidth=n[5]),i&33554945&&(s.$$scope={dirty:i,ctx:n}),e.$set(s)},i(n){t||(O(e.$$.fragment,n),t=!0)},o(n){F(e.$$.fragment,n),t=!1},d(n){ye(e,n)}}}function Vn(l){let e,t;return e=new $i({props:{tabs:l[10]}}),e.$on("out",l[19]),{c(){xe(e.$$.fragment)},l(n){ze(e.$$.fragment,n)},m(n,i){Ee(e,n,i),t=!0},p(n,i){const s={};i&1024&&(s.tabs=n[10]),e.$set(s)},i(n){t||(O(e.$$.fragment,n),t=!0)},o(n){F(e.$$.fragment,n),t=!1},d(n){ye(e,n)}}}function Hl(l){let e,t,n=l[8]&&Vn(l);return{c(){e=x("div"),n&&n.c(),this.h()},l(i){e=E(i,"DIV",{slot:!0,class:!0});var s=b(e);n&&n.l(s),s.forEach(p),this.h()},h(){o(e,"slot","bottom"),o(e,"class","panel svelte-17n05ij")},m(i,s){j(i,e,s),n&&n.m(e,null),t=!0},p(i,s){i[8]?n?(n.p(i,s),s&256&&O(n,1)):(n=Vn(i),n.c(),O(n,1),n.m(e,null)):n&&(Oe(),F(n,1,1,()=>{n=null}),Pe())},i(i){t||(O(n),t=!0)},o(i){F(n),t=!1},d(i){i&&p(e),n&&n.d()}}}function Ll(l){let e,t;return e=new Pi({props:{topHeight:l[2],maxHeight:l[3],$$slots:{bottom:[Hl],top:[Ml]},$$scope:{ctx:l}}}),e.$on("out",l[11]),{c(){xe(e.$$.fragment)},l(n){ze(e.$$.fragment,n)},m(n,i){Ee(e,n,i),t=!0},p(n,[i]){const s={};i&4&&(s.topHeight=n[2]),i&8&&(s.maxHeight=n[3]),i&33556467&&(s.$$scope={dirty:i,ctx:n}),e.$set(s)},i(n){t||(O(e.$$.fragment,n),t=!0)},o(n){F(e.$$.fragment,n),t=!1},d(n){ye(e,n)}}}function Il(l){globalThis.history.pushState({selectedExample:l.detail.selecteditem},"",window.location.pathname.substring(7))}function Rl(l,e,t){let n;const i=Ze();let{componentName:s}=e,{das:r={}}=e,{stageStyle:a}=e,{stageSize:u}=e,{selectedExample:c}=e,{stageContainerHeight:f}=e,{stageContainerMaxHeight:h}=e,{stageHeight:g}=e,{stageWidth:d}=e,{stageMaxHeight:_}=e,{stageMaxWidth:T}=e,{panelExpanded:z}=e,{theme:w}=e,{devmodus:C}=e,y,k;const L=new ResizeObserver(S=>{S.forEach(Q=>{W(Q.contentRect)})});oi(()=>{k&&(L.observe(k),t(9,k.contentWindow.onload=()=>{t(18,y=!0)},k),k.contentWindow.addEventListener("mousemove",function(S){var Q=k.getBoundingClientRect(),I=new CustomEvent("mousemove",{bubbles:!0,cancelable:!1});I.pageX=S.clientX+Q.left,I.pageY=S.clientY+Q.top,k.dispatchEvent(I)}),k.contentWindow.addEventListener("mouseup",function(){var S=new CustomEvent("mouseup",{bubbles:!0,cancelable:!1});k.dispatchEvent(S)}))}),ai(()=>{L.disconnect()});function M(S){var I;const Q=[];return S.description&&Q.push({name:"Notes",props:{das:S},page:yl}),(I=S.examples)!=null&&I.length&&Q.push({name:"Examples",props:{selected:c,items:S.examples.map(se=>se.title)},page:nl,out:Il}),!C&&S.componentfile&&Q.push({name:"Code",props:{componentName:s,devmodus:C},page:zl}),Q}function W(S){i("out",{stageRect:S})}function $(S){S.detail.topHeight&&i("out",{stageContainerHeight:S.detail.topHeight}),S.detail.maxHeight&&i("out",{stageContainerMaxHeight:S.detail.maxHeight}),S.detail.maxWidth&&i("out",{stageContainerWidth:S.detail.maxWidth})}function oe(S){S.detail.stageHeight&&i("out",{stageHeight:S.detail.stageHeight}),S.detail.stageWidth&&i("out",{stageWidth:S.detail.stageWidth})}function ce(S){vt.call(this,l,S)}function Y(S){Et[S?"unshift":"push"](()=>{k=S,t(9,k)})}return l.$$set=S=>{"componentName"in S&&t(13,s=S.componentName),"das"in S&&t(14,r=S.das),"stageStyle"in S&&t(0,a=S.stageStyle),"stageSize"in S&&t(1,u=S.stageSize),"selectedExample"in S&&t(15,c=S.selectedExample),"stageContainerHeight"in S&&t(2,f=S.stageContainerHeight),"stageContainerMaxHeight"in S&&t(3,h=S.stageContainerMaxHeight),"stageHeight"in S&&t(4,g=S.stageHeight),"stageWidth"in S&&t(5,d=S.stageWidth),"stageMaxHeight"in S&&t(6,_=S.stageMaxHeight),"stageMaxWidth"in S&&t(7,T=S.stageMaxWidth),"panelExpanded"in S&&t(8,z=S.panelExpanded),"theme"in S&&t(16,w=S.theme),"devmodus"in S&&t(17,C=S.devmodus)},l.$$.update=()=>{l.$$.dirty&369154&&y&&(!k.contentDocument||/frame.html$/.test(k.contentWindow.location),k.contentWindow.postMessage({selectedExample:c,componentName:s,stageSize:u,theme:w},window.location)),l.$$.dirty&16384&&t(10,n=M(r))},[a,u,f,h,g,d,_,T,z,k,n,$,oe,s,r,c,w,C,y,ce,Y]}class Nl extends Te{constructor(e){super(),Se(this,e,Rl,Ll,be,{componentName:13,das:14,stageStyle:0,stageSize:1,selectedExample:15,stageContainerHeight:2,stageContainerMaxHeight:3,stageHeight:4,stageWidth:5,stageMaxHeight:6,stageMaxWidth:7,panelExpanded:8,theme:16,devmodus:17})}}function Bl(l){let e,t,n,i,s,r='<svg xmlns="http://www.w3.org/2000/svg" width="15" viewBox="0 0 24 24" height="15" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 8a2 2 0 00-1-1.73l-7-4a2 2 0 00-2 0l-7 4A2 2 0 003 8v8a2 2 0 001 1.73l7 4a2 2 0 002 0l7-4A2 2 0 0021 16z"></path><path d="M3.3 7l8.7 5 8.7-5M12 22V12"></path></svg>',a,u,c,f,h;return{c(){e=x("a"),t=x("div"),n=x("div"),i=B(),s=x("div"),s.innerHTML=r,a=B(),u=x("div"),c=new un(!1),this.h()},l(g){e=E(g,"A",{href:!0,class:!0});var d=b(e);t=E(d,"DIV",{class:!0});var _=b(t);n=E(_,"DIV",{class:!0}),b(n).forEach(p),i=A(_),s=E(_,"DIV",{class:!0,"data-svelte-h":!0}),ge(s)!=="svelte-rhhnaq"&&(s.innerHTML=r),a=A(_),u=E(_,"DIV",{class:!0});var T=b(u);c=cn(T,!1),T.forEach(p),_.forEach(p),d.forEach(p),this.h()},h(){o(n,"class","component_dot svelte-1cnyrt6"),o(s,"class","component_icon svelte-1cnyrt6"),c.a=null,o(u,"class","component_label svelte-1cnyrt6"),o(t,"class","component_link-container svelte-1cnyrt6"),o(e,"href",l[0]),o(e,"class","component_link svelte-1cnyrt6"),P(e,"selected",l[1])},m(g,d){j(g,e,d),m(e,t),m(t,n),m(t,i),m(t,s),m(t,a),m(t,u),c.m(l[2],u),f||(h=K(e,"click",Li(l[3])),f=!0)},p(g,[d]){d&4&&c.p(g[2]),d&1&&o(e,"href",g[0]),d&2&&P(e,"selected",g[1])},i:ae,o:ae,d(g){g&&p(e),f=!1,h()}}}function Al(l,e,t){let{href:n}=e,{selected:i}=e,{text:s}=e;function r(){globalThis.history.pushState({},"",n)}return l.$$set=a=>{"href"in a&&t(0,n=a.href),"selected"in a&&t(1,i=a.selected),"text"in a&&t(2,s=a.text)},[n,i,s,r]}class _i extends Te{constructor(e){super(),Se(this,e,Al,Bl,be,{href:0,selected:1,text:2})}}function Zn(l,e,t){const n=l.slice();return n[4]=e[t],n}function Fn(l){let e,t,n,i,s='<svg xmlns="http://www.w3.org/2000/svg" class="close-icon svelte-qxg2ml" height="12" viewBox="0 0 24 24" width="12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6L6 18M6 6l12 12"></path></svg>',r,a,u,c;t=new _i({props:{href:l[4].href,selected:l[4].selected,text:l[4].name}});function f(){return l[2](l[4])}return{c(){e=x("li"),xe(t.$$.fragment),n=B(),i=x("button"),i.innerHTML=s,r=B(),this.h()},l(h){e=E(h,"LI",{class:!0});var g=b(e);ze(t.$$.fragment,g),n=A(g),i=E(g,"BUTTON",{class:!0,"data-svelte-h":!0}),ge(i)!=="svelte-1axzzzj"&&(i.innerHTML=s),r=A(g),g.forEach(p),this.h()},h(){o(i,"class","close svelte-qxg2ml"),o(e,"class","component svelte-qxg2ml")},m(h,g){j(h,e,g),Ee(t,e,null),m(e,n),m(e,i),m(e,r),a=!0,u||(c=K(i,"click",f),u=!0)},p(h,g){l=h;const d={};g&1&&(d.href=l[4].href),g&1&&(d.selected=l[4].selected),g&1&&(d.text=l[4].name),t.$set(d)},i(h){a||(O(t.$$.fragment,h),a=!0)},o(h){F(t.$$.fragment,h),a=!1},d(h){h&&p(e),ye(t),u=!1,c()}}}function jl(l){let e,t,n='<span class="bookmarks_title-icon svelte-qxg2ml"><svg xmlns="http://www.w3.org/2000/svg" class="bookmark_icon" height="15" viewBox="0 0 24 24" width="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"></path></svg></span> <span class="bookmarks_title-label svelte-qxg2ml">Bookmarks</span>',i,s,r,a,u,c,f=De(l[0]),h=[];for(let d=0;d<f.length;d+=1)h[d]=Fn(Zn(l,f,d));const g=d=>F(h[d],1,1,()=>{h[d]=null});return{c(){e=x("div"),t=x("div"),t.innerHTML=n,i=B(),s=x("nav"),r=x("ul");for(let d=0;d<h.length;d+=1)h[d].c();a=B(),u=x("div"),this.h()},l(d){e=E(d,"DIV",{class:!0});var _=b(e);t=E(_,"DIV",{class:!0,"data-svelte-h":!0}),ge(t)!=="svelte-yph7f9"&&(t.innerHTML=n),i=A(_),s=E(_,"NAV",{class:!0});var T=b(s);r=E(T,"UL",{class:!0});var z=b(r);for(let w=0;w<h.length;w+=1)h[w].l(z);z.forEach(p),T.forEach(p),a=A(_),u=E(_,"DIV",{class:!0}),b(u).forEach(p),_.forEach(p),this.h()},h(){o(t,"class","bookmarks_title svelte-qxg2ml"),o(r,"class","components svelte-qxg2ml"),o(s,"class","bookmarks_nav"),o(u,"class","border-btm svelte-qxg2ml"),o(e,"class","bookmarks svelte-qxg2ml")},m(d,_){j(d,e,_),m(e,t),m(e,i),m(e,s),m(s,r);for(let T=0;T<h.length;T+=1)h[T]&&h[T].m(r,null);m(e,a),m(e,u),c=!0},p(d,[_]){if(_&3){f=De(d[0]);let T;for(T=0;T<f.length;T+=1){const z=Zn(d,f,T);h[T]?(h[T].p(z,_),O(h[T],1)):(h[T]=Fn(z),h[T].c(),O(h[T],1),h[T].m(r,null))}for(Oe(),T=f.length;T<h.length;T+=1)g(T);Pe()}},i(d){if(!c){for(let _=0;_<f.length;_+=1)O(h[_]);c=!0}},o(d){h=h.filter(Boolean);for(let _=0;_<h.length;_+=1)F(h[_]);c=!1},d(d){d&&p(e),yt(h,d)}}}function Dl(l,e,t){const n=Ze();let{bookmarks:i=[]}=e;function s(a){n("out",{toggleBookmark:a})}const r=a=>s(a);return l.$$set=a=>{"bookmarks"in a&&t(0,i=a.bookmarks)},[i,s,r]}class Wl extends Te{constructor(e){super(),Se(this,e,Dl,jl,be,{bookmarks:0})}}function Qn(l,e,t){const n=l.slice();return n[6]=e[t],n}function Ol(l){let e,t,n,i='<svg xmlns="http://www.w3.org/2000/svg" width="12" viewBox="0 0 24 24" height="12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 15l-6-6-6 6"></path></svg>',s,r,a='<svg xmlns="http://www.w3.org/2000/svg" width="15" viewBox="0 0 24 24" height="15" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20h16a2 2 0 002-2V8a2 2 0 00-2-2h-7.93a2 2 0 01-1.66-.9l-.82-1.2A2 2 0 007.93 3H4a2 2 0 00-2 2v13c0 1.1.9 2 2 2z"></path></svg>',u,c,f,h=l[6].name+"",g,d,_,T,z,w,C;function y(){return l[3](l[6])}let k=l[6].unfolded&&Gn(l);return{c(){e=x("li"),t=x("button"),n=x("span"),n.innerHTML=i,s=B(),r=x("span"),r.innerHTML=a,u=B(),c=x("span"),f=new un(!1),_=B(),k&&k.c(),T=B(),this.h()},l(L){e=E(L,"LI",{class:!0});var M=b(e);t=E(M,"BUTTON",{class:!0,title:!0});var W=b(t);n=E(W,"SPAN",{class:!0,"data-svelte-h":!0}),ge(n)!=="svelte-1uqfrmg"&&(n.innerHTML=i),s=A(W),r=E(W,"SPAN",{class:!0,"data-svelte-h":!0}),ge(r)!=="svelte-1aixm8"&&(r.innerHTML=a),u=A(W),c=E(W,"SPAN",{class:!0});var $=b(c);f=cn($,!1),$.forEach(p),W.forEach(p),_=A(M),k&&k.l(M),T=A(M),M.forEach(p),this.h()},h(){o(n,"class","folder_arrow svelte-1nn9bvq"),P(n,"unfolded_icon",l[6].unfolded),o(r,"class","folder_icon svelte-1nn9bvq"),f.a=null,o(c,"class","folder_label svelte-1nn9bvq"),o(t,"class",g="folder_btn btn_level-"+l[1]+" svelte-1nn9bvq"),o(t,"title",d=l[6].unfolded?"fold":"unfold"),o(e,"class","folder svelte-1nn9bvq"),P(e,"unfolded",l[6].unfolded)},m(L,M){j(L,e,M),m(e,t),m(t,n),m(t,s),m(t,r),m(t,u),m(t,c),f.m(h,c),m(e,_),k&&k.m(e,null),m(e,T),z=!0,w||(C=K(t,"click",y),w=!0)},p(L,M){l=L,(!z||M&1)&&P(n,"unfolded_icon",l[6].unfolded),(!z||M&1)&&h!==(h=l[6].name+"")&&f.p(h),(!z||M&2&&g!==(g="folder_btn btn_level-"+l[1]+" svelte-1nn9bvq"))&&o(t,"class",g),(!z||M&1&&d!==(d=l[6].unfolded?"fold":"unfold"))&&o(t,"title",d),l[6].unfolded?k?(k.p(l,M),M&1&&O(k,1)):(k=Gn(l),k.c(),O(k,1),k.m(e,T)):k&&(Oe(),F(k,1,1,()=>{k=null}),Pe()),(!z||M&1)&&P(e,"unfolded",l[6].unfolded)},i(L){z||(O(k),z=!0)},o(L){F(k),z=!1},d(L){L&&p(e),k&&k.d(),w=!1,C()}}}function Pl(l){let e,t,n,i;return t=new _i({props:{href:l[6].href,selected:l[6].selected,text:l[6].name}}),{c(){e=x("li"),xe(t.$$.fragment),n=B(),this.h()},l(s){e=E(s,"LI",{class:!0});var r=b(e);ze(t.$$.fragment,r),n=A(r),r.forEach(p),this.h()},h(){o(e,"class","component svelte-1nn9bvq")},m(s,r){j(s,e,r),Ee(t,e,null),m(e,n),i=!0},p(s,r){const a={};r&1&&(a.href=s[6].href),r&1&&(a.selected=s[6].selected),r&1&&(a.text=s[6].name),t.$set(a)},i(s){i||(O(t.$$.fragment,s),i=!0)},o(s){F(t.$$.fragment,s),i=!1},d(s){s&&p(e),ye(t)}}}function Gn(l){let e,t;return e=new bi({props:{nodes:l[6].children,level:l[1]+1}}),e.$on("out",l[4]),{c(){xe(e.$$.fragment)},l(n){ze(e.$$.fragment,n)},m(n,i){Ee(e,n,i),t=!0},p(n,i){const s={};i&1&&(s.nodes=n[6].children),i&2&&(s.level=n[1]+1),e.$set(s)},i(n){t||(O(e.$$.fragment,n),t=!0)},o(n){F(e.$$.fragment,n),t=!1},d(n){ye(e,n)}}}function Xn(l){let e,t,n,i;const s=[Pl,Ol],r=[];function a(u,c){return u[6].isLeaf?0:1}return e=a(l),t=r[e]=s[e](l),{c(){t.c(),n=pt()},l(u){t.l(u),n=pt()},m(u,c){r[e].m(u,c),j(u,n,c),i=!0},p(u,c){let f=e;e=a(u),e===f?r[e].p(u,c):(Oe(),F(r[f],1,1,()=>{r[f]=null}),Pe(),t=r[e],t?t.p(u,c):(t=r[e]=s[e](u),t.c()),O(t,1),t.m(n.parentNode,n))},i(u){i||(O(t),i=!0)},o(u){F(t),i=!1},d(u){u&&p(n),r[e].d(u)}}}function Ul(l){let e,t,n,i=De(l[0]),s=[];for(let a=0;a<i.length;a+=1)s[a]=Xn(Qn(l,i,a));const r=a=>F(s[a],1,1,()=>{s[a]=null});return{c(){e=x("ul");for(let a=0;a<s.length;a+=1)s[a].c();this.h()},l(a){e=E(a,"UL",{class:!0});var u=b(e);for(let c=0;c<s.length;c+=1)s[c].l(u);u.forEach(p),this.h()},h(){o(e,"class",t="filter_list components level-"+l[1]+" svelte-1nn9bvq")},m(a,u){j(a,e,u);for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(e,null);n=!0},p(a,[u]){if(u&7){i=De(a[0]);let c;for(c=0;c<i.length;c+=1){const f=Qn(a,i,c);s[c]?(s[c].p(f,u),O(s[c],1)):(s[c]=Xn(f),s[c].c(),O(s[c],1),s[c].m(e,null))}for(Oe(),c=i.length;c<s.length;c+=1)r(c);Pe()}(!n||u&2&&t!==(t="filter_list components level-"+a[1]+" svelte-1nn9bvq"))&&o(e,"class",t)},i(a){if(!n){for(let u=0;u<i.length;u+=1)O(s[u]);n=!0}},o(a){s=s.filter(Boolean);for(let u=0;u<s.length;u+=1)F(s[u]);n=!1},d(a){a&&p(e),yt(s,a)}}}function ql(l,e,t){const n=Ze();let{nodes:i=[]}=e,{level:s=1}=e;function r(c){n("out",{toggleFoldStatusOfNode:{...c}})}const a=c=>r(c);function u(c){vt.call(this,l,c)}return l.$$set=c=>{"nodes"in c&&t(0,i=c.nodes),"level"in c&&t(1,s=c.level)},[i,s,r,a,u]}class bi extends Te{constructor(e){super(),Se(this,e,ql,Ul,be,{nodes:0,level:1})}}function Vl(l){let e,t;return{c(){e=x("span"),t=ke(l[3]),this.h()},l(n){e=E(n,"SPAN",{class:!0});var i=b(e);t=_e(i,l[3]),i.forEach(p),this.h()},h(){o(e,"class","svelte-fa7wkd")},m(n,i){j(n,e,i),m(e,t)},p(n,i){i&8&&Je(t,n[3])},d(n){n&&p(e)}}}function Zl(l){let e,t,n;return{c(){e=x("img"),this.h()},l(i){e=E(i,"IMG",{src:!0,title:!0,alt:!0}),this.h()},h(){wt(e.src,t="/assets/"+l[4])||o(e,"src",t),o(e,"title","start"),o(e,"alt",n=l[3]+" logo")},m(i,s){j(i,e,s)},p(i,s){s&16&&!wt(e.src,t="/assets/"+i[4])&&o(e,"src",t),s&8&&n!==(n=i[3]+" logo")&&o(e,"alt",n)},d(i){i&&p(e)}}}function Fl(l){let e,t,n;return{c(){e=x("img"),this.h()},l(i){e=E(i,"IMG",{src:!0,title:!0,alt:!0}),this.h()},h(){wt(e.src,t="/assets/"+l[5])||o(e,"src",t),o(e,"title","start"),o(e,"alt",n=l[3]+" logo")},m(i,s){j(i,e,s)},p(i,s){s&32&&!wt(e.src,t="/assets/"+i[5])&&o(e,"src",t),s&8&&n!==(n=i[3]+" logo")&&o(e,"alt",n)},d(i){i&&p(e)}}}function Ql(l){let e,t,n,i,s=l[10].length>0&&Yn(l);return n=new bi({props:{nodes:l[0]}}),n.$on("out",l[15]),{c(){s&&s.c(),e=B(),t=x("nav"),xe(n.$$.fragment),this.h()},l(r){s&&s.l(r),e=A(r),t=E(r,"NAV",{class:!0});var a=b(t);ze(n.$$.fragment,a),a.forEach(p),this.h()},h(){o(t,"class","components-nav svelte-fa7wkd")},m(r,a){s&&s.m(r,a),j(r,e,a),j(r,t,a),Ee(n,t,null),i=!0},p(r,a){r[10].length>0?s?(s.p(r,a),a&1024&&O(s,1)):(s=Yn(r),s.c(),O(s,1),s.m(e.parentNode,e)):s&&(Oe(),F(s,1,1,()=>{s=null}),Pe());const u={};a&1&&(u.nodes=r[0]),n.$set(u)},i(r){i||(O(s),O(n.$$.fragment,r),i=!0)},o(r){F(s),F(n.$$.fragment,r),i=!1},d(r){r&&(p(e),p(t)),s&&s.d(r),ye(n)}}}function Gl(l){let e,t,n,i,s;return{c(){e=x("div"),t=x("div"),n=ke("No results for '"),i=ke(l[6]),s=ke("'"),this.h()},l(r){e=E(r,"DIV",{});var a=b(e);t=E(a,"DIV",{class:!0});var u=b(t);n=_e(u,"No results for '"),i=_e(u,l[6]),s=_e(u,"'"),u.forEach(p),a.forEach(p),this.h()},h(){o(t,"class","filter_zero-results svelte-fa7wkd")},m(r,a){j(r,e,a),m(e,t),m(t,n),m(t,i),m(t,s)},p(r,a){a&64&&Je(i,r[6])},i:ae,o:ae,d(r){r&&p(e)}}}function Yn(l){let e,t;return e=new Wl({props:{bookmarks:l[10]}}),e.$on("out",l[14]),{c(){xe(e.$$.fragment)},l(n){ze(e.$$.fragment,n)},m(n,i){Ee(e,n,i),t=!0},p(n,i){const s={};i&1024&&(s.bookmarks=n[10]),e.$set(s)},i(n){t||(O(e.$$.fragment,n),t=!0)},o(n){F(e.$$.fragment,n),t=!1},d(n){ye(e,n)}}}function Xl(l){let e,t;return{c(){e=U("svg"),t=U("path"),this.h()},l(n){e=q(n,"svg",{class:!0,xmlns:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0});var i=b(e);t=q(i,"path",{d:!0}),b(t).forEach(p),i.forEach(p),this.h()},h(){o(t,"d","M7 15l5 5 5-5M7 9l5-5 5 5"),o(e,"class","controls_btn-icon svelte-fa7wkd"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"height","20"),o(e,"viewBox","0 0 24 24"),o(e,"width","20"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round")},m(n,i){j(n,e,i),m(e,t)},d(n){n&&p(e)}}}function Yl(l){let e,t;return{c(){e=U("svg"),t=U("path"),this.h()},l(n){e=q(n,"svg",{class:!0,xmlns:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0});var i=b(e);t=q(i,"path",{d:!0}),b(t).forEach(p),i.forEach(p),this.h()},h(){o(t,"d","M7 20l5-5 5 5M7 4l5 5 5-5"),o(e,"class","controls_btn-icon svelte-fa7wkd"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"height","20"),o(e,"viewBox","0 0 24 24"),o(e,"width","20"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round")},m(n,i){j(n,e,i),m(e,t)},d(n){n&&p(e)}}}function Jl(l){let e,t,n,i;return{c(){e=U("svg"),t=U("rect"),n=U("line"),i=U("path"),this.h()},l(s){e=q(s,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0});var r=b(e);t=q(r,"rect",{width:!0,height:!0,x:!0,y:!0,rx:!0,ry:!0}),b(t).forEach(p),n=q(r,"line",{x1:!0,x2:!0,y1:!0,y2:!0}),b(n).forEach(p),i=q(r,"path",{d:!0}),b(i).forEach(p),r.forEach(p),this.h()},h(){o(t,"width","18"),o(t,"height","18"),o(t,"x","3"),o(t,"y","3"),o(t,"rx","2"),o(t,"ry","2"),o(n,"x1","3"),o(n,"x2","21"),o(n,"y1","15"),o(n,"y2","15"),o(i,"d","m9 10 3-3 3 3"),o(e,"class","controls_btn-icon svelte-fa7wkd"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"width","20"),o(e,"height","20"),o(e,"viewBox","0 0 24 24"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round")},m(s,r){j(s,e,r),m(e,t),m(e,n),m(e,i)},d(s){s&&p(e)}}}function Kl(l){let e,t,n,i;return{c(){e=U("svg"),t=U("rect"),n=U("line"),i=U("path"),this.h()},l(s){e=q(s,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0});var r=b(e);t=q(r,"rect",{width:!0,height:!0,x:!0,y:!0,rx:!0,ry:!0}),b(t).forEach(p),n=q(r,"line",{x1:!0,x2:!0,y1:!0,y2:!0}),b(n).forEach(p),i=q(r,"path",{d:!0}),b(i).forEach(p),r.forEach(p),this.h()},h(){o(t,"width","18"),o(t,"height","18"),o(t,"x","3"),o(t,"y","3"),o(t,"rx","2"),o(t,"ry","2"),o(n,"x1","3"),o(n,"x2","21"),o(n,"y1","15"),o(n,"y2","15"),o(i,"d","m15 8-3 3-3-3"),o(e,"class","controls_btn-icon svelte-fa7wkd"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"width","20"),o(e,"height","20"),o(e,"viewBox","0 0 24 24"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round")},m(s,r){j(s,e,r),m(e,t),m(e,n),m(e,i)},d(s){s&&p(e)}}}function Jn(l){let e,t='<a class="controls_btn svelte-fa7wkd" href="https://gardenjs.org/docs" target="_blank" rel="noreferrer"><svg class="controls_btn-icon svelte-fa7wkd" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 015.83 1c0 2-3 3-3 3m.08 4h.01"></path></svg> <span class="controls_btn-label svelte-fa7wkd">Gardenjs Docs</span></a>';return{c(){e=x("li"),e.innerHTML=t},l(n){e=E(n,"LI",{"data-svelte-h":!0}),ge(e)!=="svelte-13os4tf"&&(e.innerHTML=t)},m(n,i){j(n,e,i)},d(n){n&&p(e)}}}function $l(l){let e,t,n,i,s,r,a,u,c,f,h,g,d,_,T,z,w=l[2]?"Collapse":"Expand",C,y,k,L,M,W,$,oe,ce=l[7]?"Collapse":"Expand",Y,S,Q,I,se,He,Fe;function ue(D,G){return D[5]&&D[9]==="dark"?Fl:D[4]?Zl:Vl}let ee=ue(l),ie=ee(l);const Ie=[Gl,Ql],ve=[];function Le(D,G){return D[0].length==0&&D[6]?0:1}u=Le(l),c=ve[u]=Ie[u](l);function Ue(D,G){return D[2]?Yl:Xl}let v=Ue(l),pe=v(l);function rt(D,G){return D[7]?Kl:Jl}let we=rt(l),J=we(l),te=l[8]===1&&Jn();return{c(){e=x("header"),t=x("a"),ie.c(),n=B(),i=x("div"),s=x("input"),a=B(),c.c(),f=B(),h=x("nav"),g=x("ul"),d=x("li"),_=x("button"),pe.c(),T=B(),z=x("span"),C=ke(w),y=ke(" Navigation"),L=B(),M=x("li"),W=x("button"),J.c(),$=B(),oe=x("span"),Y=ke(ce),S=ke(" Panel"),I=B(),te&&te.c(),this.h()},l(D){e=E(D,"HEADER",{class:!0});var G=b(e);t=E(G,"A",{class:!0,href:!0});var Re=b(t);ie.l(Re),Re.forEach(p),n=A(G),i=E(G,"DIV",{class:!0});var Ce=b(i);s=E(Ce,"INPUT",{"aria-autocomplete":!0,id:!0,class:!0,autocomplete:!0,type:!0,placeholder:!0}),Ce.forEach(p),a=A(G),c.l(G),f=A(G),h=E(G,"NAV",{class:!0});var mt=b(h);g=E(mt,"UL",{});var Ne=b(g);d=E(Ne,"LI",{});var et=b(d);_=E(et,"BUTTON",{class:!0,title:!0});var me=b(_);pe.l(me),T=A(me),z=E(me,"SPAN",{class:!0});var Qe=b(z);C=_e(Qe,w),y=_e(Qe," Navigation"),Qe.forEach(p),me.forEach(p),et.forEach(p),L=A(Ne),M=E(Ne,"LI",{});var ot=b(M);W=E(ot,"BUTTON",{class:!0,title:!0});var tt=b(W);J.l(tt),$=A(tt),oe=E(tt,"SPAN",{class:!0});var at=b(oe);Y=_e(at,ce),S=_e(at," Panel"),at.forEach(p),tt.forEach(p),ot.forEach(p),I=A(Ne),te&&te.l(Ne),Ne.forEach(p),mt.forEach(p),G.forEach(p),this.h()},h(){o(t,"class","project-identifier svelte-fa7wkd"),o(t,"href","/"),P(t,"has-logo",l[4]),o(s,"aria-autocomplete","list"),o(s,"id","filter"),o(s,"class","filter_input svelte-fa7wkd"),o(s,"autocomplete","off"),o(s,"type","search"),s.value=r=l[6]||"",o(s,"placeholder","Filter..."),o(i,"class","filter svelte-fa7wkd"),o(z,"class","controls_btn-label svelte-fa7wkd"),o(_,"class","controls_btn svelte-fa7wkd"),o(_,"title",k=l[2]?"Collapse":"Restore"),o(oe,"class","controls_btn-label svelte-fa7wkd"),o(W,"class","controls_btn svelte-fa7wkd"),o(W,"title",Q=l[7]?"Collapse":"Restore"),o(h,"class","controls svelte-fa7wkd"),o(e,"class","sidebar_container svelte-fa7wkd"),P(e,"show-sidebar",l[1])},m(D,G){j(D,e,G),m(e,t),ie.m(t,null),m(e,n),m(e,i),m(i,s),m(e,a),ve[u].m(e,null),m(e,f),m(e,h),m(h,g),m(g,d),m(d,_),pe.m(_,null),m(_,T),m(_,z),m(z,C),m(z,y),m(g,L),m(g,M),m(M,W),J.m(W,null),m(W,$),m(W,oe),m(oe,Y),m(oe,S),m(g,I),te&&te.m(g,null),se=!0,He||(Fe=[K(s,"input",l[12]),K(_,"click",l[11]),K(W,"click",l[13])],He=!0)},p(D,[G]){ee===(ee=ue(D))&&ie?ie.p(D,G):(ie.d(1),ie=ee(D),ie&&(ie.c(),ie.m(t,null))),(!se||G&16)&&P(t,"has-logo",D[4]),(!se||G&64&&r!==(r=D[6]||"")&&s.value!==r)&&(s.value=r);let Re=u;u=Le(D),u===Re?ve[u].p(D,G):(Oe(),F(ve[Re],1,1,()=>{ve[Re]=null}),Pe(),c=ve[u],c?c.p(D,G):(c=ve[u]=Ie[u](D),c.c()),O(c,1),c.m(e,f)),v!==(v=Ue(D))&&(pe.d(1),pe=v(D),pe&&(pe.c(),pe.m(_,T))),(!se||G&4)&&w!==(w=D[2]?"Collapse":"Expand")&&Je(C,w),(!se||G&4&&k!==(k=D[2]?"Collapse":"Restore"))&&o(_,"title",k),we!==(we=rt(D))&&(J.d(1),J=we(D),J&&(J.c(),J.m(W,$))),(!se||G&128)&&ce!==(ce=D[7]?"Collapse":"Expand")&&Je(Y,ce),(!se||G&128&&Q!==(Q=D[7]?"Collapse":"Restore"))&&o(W,"title",Q),D[8]===1?te||(te=Jn(),te.c(),te.m(g,null)):te&&(te.d(1),te=null),(!se||G&2)&&P(e,"show-sidebar",D[1])},i(D){se||(O(c),se=!0)},o(D){F(c),se=!1},d(D){D&&p(e),ie.d(),ve[u].d(),pe.d(),J.d(),te&&te.d(),He=!1,Ft(Fe)}}}function es(l,e,t){const n=Ze();let{nodes:i=[]}=e,{sidebarExpanded:s=!0}=e,{rootNodesExpanded:r=!0}=e,{projectTitle:a}=e,{projectLogo:u}=e,{projectLogoDarkmode:c}=e,{filter:f}=e,{panelExpanded:h=!0}=e,{docsLink:g}=e,{appTheme:d}=e,{bookmarks:_=[]}=e;function T(){n("out",{toggleRootFolders:!0})}function z(k){n("out",{filter:{value:k.target.value}})}function w(){n("out",{toggleExpandPanel:!0})}function C(k){vt.call(this,l,k)}function y(k){vt.call(this,l,k)}return l.$$set=k=>{"nodes"in k&&t(0,i=k.nodes),"sidebarExpanded"in k&&t(1,s=k.sidebarExpanded),"rootNodesExpanded"in k&&t(2,r=k.rootNodesExpanded),"projectTitle"in k&&t(3,a=k.projectTitle),"projectLogo"in k&&t(4,u=k.projectLogo),"projectLogoDarkmode"in k&&t(5,c=k.projectLogoDarkmode),"filter"in k&&t(6,f=k.filter),"panelExpanded"in k&&t(7,h=k.panelExpanded),"docsLink"in k&&t(8,g=k.docsLink),"appTheme"in k&&t(9,d=k.appTheme),"bookmarks"in k&&t(10,_=k.bookmarks)},[i,s,r,a,u,c,f,h,g,d,_,T,z,w,C,y]}class ts extends Te{constructor(e){super(),Se(this,e,es,$l,be,{nodes:0,sidebarExpanded:1,rootNodesExpanded:2,projectTitle:3,projectLogo:4,projectLogoDarkmode:5,filter:6,panelExpanded:7,docsLink:8,appTheme:9,bookmarks:10})}}function Kn(l,e,t){const n=l.slice();return n[27]=e[t],n}function ns(l){let e,t,n;return{c(){e=U("svg"),t=U("rect"),n=U("path"),this.h()},l(i){e=q(i,"svg",{xmlns:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var s=b(e);t=q(s,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,ry:!0}),b(t).forEach(p),n=q(s,"path",{d:!0}),b(n).forEach(p),s.forEach(p),this.h()},h(){o(t,"x","3"),o(t,"y","3"),o(t,"width","18"),o(t,"height","18"),o(t,"rx","2"),o(t,"ry","2"),o(n,"d","M9 3v18m5-12l3 3-3 3"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"height","24"),o(e,"viewBox","0 0 24 24"),o(e,"width","24"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"class","svelte-1eigker")},m(i,s){j(i,e,s),m(e,t),m(e,n)},d(i){i&&p(e)}}}function is(l){let e,t,n;return{c(){e=U("svg"),t=U("rect"),n=U("path"),this.h()},l(i){e=q(i,"svg",{xmlns:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var s=b(e);t=q(s,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,ry:!0}),b(t).forEach(p),n=q(s,"path",{d:!0}),b(n).forEach(p),s.forEach(p),this.h()},h(){o(t,"x","3"),o(t,"y","3"),o(t,"width","18"),o(t,"height","18"),o(t,"rx","2"),o(t,"ry","2"),o(n,"d","M9 3v18m7-6l-3-3 3-3"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"height","24"),o(e,"viewBox","0 0 24 24"),o(e,"width","24"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"class","svelte-1eigker")},m(i,s){j(i,e,s),m(e,t),m(e,n)},d(i){i&&p(e)}}}function $n(l){let e,t,n;function i(a,u){return a[6].bookmark?ss:ls}let s=i(l),r=s(l);return{c(){e=x("button"),r.c(),this.h()},l(a){e=E(a,"BUTTON",{class:!0});var u=b(e);r.l(u),u.forEach(p),this.h()},h(){o(e,"class","topbar_btn bookmark_btn svelte-1eigker")},m(a,u){j(a,e,u),r.m(e,null),t||(n=K(e,"click",l[11]),t=!0)},p(a,u){s!==(s=i(a))&&(r.d(1),r=s(a),r&&(r.c(),r.m(e,null)))},d(a){a&&p(e),r.d(),t=!1,n()}}}function ls(l){let e,t;return{c(){e=U("svg"),t=U("path"),this.h()},l(n){e=q(n,"svg",{xmlns:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var i=b(e);t=q(i,"path",{d:!0}),b(t).forEach(p),i.forEach(p),this.h()},h(){o(t,"d","M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"height","24"),o(e,"viewBox","0 0 24 24"),o(e,"width","24"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"class","svelte-1eigker")},m(n,i){j(n,e,i),m(e,t)},d(n){n&&p(e)}}}function ss(l){let e,t;return{c(){e=U("svg"),t=U("path"),this.h()},l(n){e=q(n,"svg",{xmlns:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var i=b(e);t=q(i,"path",{d:!0}),b(t).forEach(p),i.forEach(p),this.h()},h(){o(t,"d","M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"height","24"),o(e,"viewBox","0 0 24 24"),o(e,"width","24"),o(e,"fill","currentColor"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"class","svelte-1eigker")},m(n,i){j(n,e,i),m(e,t)},d(n){n&&p(e)}}}function ei(l){let e,t,n='<svg xmlns="http://www.w3.org/2000/svg" width="24" viewBox="0 0 24 24" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="svelte-1eigker"><circle cx="13.5" cy="6.5" r=".5"></circle><circle cx="17.5" cy="10.5" r=".5"></circle><circle cx="8.5" cy="7.5" r=".5"></circle><circle cx="6.5" cy="12.5" r=".5"></circle><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 011.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z"></path></svg>',i,s,r,a=De(l[3]),u=[];for(let c=0;c<a.length;c+=1)u[c]=ti(Kn(l,a,c));return{c(){e=x("div"),t=x("button"),t.innerHTML=n,i=B(),s=x("div"),r=x("ul");for(let c=0;c<u.length;c+=1)u[c].c();this.h()},l(c){e=E(c,"DIV",{class:!0});var f=b(e);t=E(f,"BUTTON",{class:!0,title:!0,"data-svelte-h":!0}),ge(t)!=="svelte-9j3kdx"&&(t.innerHTML=n),i=A(f),s=E(f,"DIV",{class:!0});var h=b(s);r=E(h,"UL",{class:!0});var g=b(r);for(let d=0;d<u.length;d+=1)u[d].l(g);g.forEach(p),h.forEach(p),f.forEach(p),this.h()},h(){o(t,"class","dropdown_btn topbar_btn svelte-1eigker"),o(t,"title","Switch component theme"),o(r,"class","svelte-1eigker"),o(s,"class","dropdown_items svelte-1eigker"),o(e,"class","dropdown svelte-1eigker")},m(c,f){j(c,e,f),m(e,t),m(e,i),m(e,s),m(s,r);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(r,null)},p(c,f){if(f&65544){a=De(c[3]);let h;for(h=0;h<a.length;h+=1){const g=Kn(c,a,h);u[h]?u[h].p(g,f):(u[h]=ti(g),u[h].c(),u[h].m(r,null))}for(;h<u.length;h+=1)u[h].d(1);u.length=a.length}},d(c){c&&p(e),yt(u,c)}}}function ti(l){let e,t,n,i,s=l[27].name+"",r,a,u,c;function f(){return l[25](l[27])}return{c(){e=x("li"),t=x("button"),n=x("span"),i=B(),r=ke(s),a=B(),this.h()},l(h){e=E(h,"LI",{class:!0});var g=b(e);t=E(g,"BUTTON",{class:!0});var d=b(t);n=E(d,"SPAN",{class:!0}),b(n).forEach(p),i=A(d),r=_e(d,s),d.forEach(p),a=A(g),g.forEach(p),this.h()},h(){o(n,"class","dropdown_item-dot svelte-1eigker"),o(t,"class","svelte-1eigker"),P(t,"active",l[27].active),o(e,"class","svelte-1eigker")},m(h,g){j(h,e,g),m(e,t),m(t,n),m(t,i),m(t,r),m(e,a),u||(c=K(t,"click",f),u=!0)},p(h,g){l=h,g&8&&s!==(s=l[27].name+"")&&Je(r,s),g&8&&P(t,"active",l[27].active)},d(h){h&&p(e),u=!1,c()}}}function rs(l){let e,t;return{c(){e=U("svg"),t=U("path"),this.h()},l(n){e=q(n,"svg",{xmlns:!0,class:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0});var i=b(e);t=q(i,"path",{d:!0}),b(t).forEach(p),i.forEach(p),this.h()},h(){o(t,"d","M12 3a6.364 6.364 0 009 9 9 9 0 11-9-9z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","mode-icon svelte-1eigker"),o(e,"height","24"),o(e,"viewBox","0 0 24 24"),o(e,"width","24"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round")},m(n,i){j(n,e,i),m(e,t)},d(n){n&&p(e)}}}function os(l){let e,t,n;return{c(){e=U("svg"),t=U("circle"),n=U("path"),this.h()},l(i){e=q(i,"svg",{xmlns:!0,class:!0,width:!0,viewBox:!0,height:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0});var s=b(e);t=q(s,"circle",{cx:!0,cy:!0,r:!0}),b(t).forEach(p),n=q(s,"path",{d:!0}),b(n).forEach(p),s.forEach(p),this.h()},h(){o(t,"cx","12"),o(t,"cy","12"),o(t,"r","4"),o(n,"d","M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","mode-icon svelte-1eigker"),o(e,"width","24"),o(e,"viewBox","0 0 24 24"),o(e,"height","24"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round")},m(i,s){j(i,e,s),m(e,t),m(e,n)},d(i){i&&p(e)}}}function as(l){let e,t,n,i,s,r,a,u,c,f,h,g,d,_="/",T,z,w,C,y,k,L,M,W,$,oe,ce,Y,S,Q,I,se,He,Fe,ue,ee,ie,Ie,ve,Le,Ue,v,pe='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="svelte-1eigker"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><path d="M8 21h8m-4-4v4"></path></svg> <span class="dot svelte-1eigker"></span>',rt,we,J,te,D,G,Re,Ce,mt='<svg xmlns="http://www.w3.org/2000/svg" class="open-new-tab-icon svelte-1eigker" height="24" viewBox="0 0 24 24" width="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6m4-3h6v6m-11 5L21 3"></path></svg>',Ne,et,me,Qe,ot,tt;function at(V,ne){return V[0]?is:ns}let zt=at(l),qe=zt(l),he=l[6]&&$n(l),fe=l[3].length>1&&ei(l);function bn(V,ne){return V[7]?os:rs}let Ct=bn(l),Ve=Ct(l);return{c(){e=x("div"),t=x("div"),n=x("div"),i=x("button"),qe.c(),r=B(),he&&he.c(),a=B(),u=x("div"),c=x("div"),f=x("input"),g=B(),d=x("div"),d.textContent=_,T=B(),z=x("input"),C=B(),y=x("div"),k=x("button"),L=U("svg"),M=U("rect"),W=U("path"),$=B(),oe=x("span"),ce=B(),Y=x("button"),S=U("svg"),Q=U("rect"),I=U("path"),se=B(),He=x("span"),Fe=B(),ue=x("button"),ee=U("svg"),ie=U("rect"),Ie=U("path"),ve=B(),Le=x("span"),Ue=B(),v=x("button"),v.innerHTML=pe,rt=B(),we=x("button"),J=U("svg"),te=U("rect"),D=U("rect"),Re=B(),Ce=x("button"),Ce.innerHTML=mt,Ne=B(),fe&&fe.c(),et=B(),me=x("button"),Ve.c(),this.h()},l(V){e=E(V,"DIV",{class:!0});var ne=b(e);t=E(ne,"DIV",{class:!0});var Mt=b(t);n=E(Mt,"DIV",{class:!0});var Ht=b(n);i=E(Ht,"BUTTON",{class:!0,title:!0});var vn=b(i);qe.l(vn),vn.forEach(p),r=A(Ht),he&&he.l(Ht),Ht.forEach(p),a=A(Mt),u=E(Mt,"DIV",{class:!0});var Be=b(u);c=E(Be,"DIV",{class:!0});var ut=b(c);f=E(ut,"INPUT",{class:!0,type:!0,min:!0,max:!0}),g=A(ut),d=E(ut,"DIV",{class:!0,"data-svelte-h":!0}),ge(d)!=="svelte-mwx9s1"&&(d.textContent=_),T=A(ut),z=E(ut,"INPUT",{class:!0,type:!0,min:!0,max:!0}),ut.forEach(p),C=A(Be),y=E(Be,"DIV",{class:!0});var Ae=b(y);k=E(Ae,"BUTTON",{title:!0,class:!0});var Lt=b(k);L=q(Lt,"svg",{xmlns:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var Yt=b(L);M=q(Yt,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,ry:!0}),b(M).forEach(p),W=q(Yt,"path",{d:!0}),b(W).forEach(p),Yt.forEach(p),$=A(Lt),oe=E(Lt,"SPAN",{class:!0}),b(oe).forEach(p),Lt.forEach(p),ce=A(Ae),Y=E(Ae,"BUTTON",{title:!0,class:!0});var It=b(Y);S=q(It,"svg",{xmlns:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var Jt=b(S);Q=q(Jt,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,ry:!0}),b(Q).forEach(p),I=q(Jt,"path",{d:!0}),b(I).forEach(p),Jt.forEach(p),se=A(It),He=E(It,"SPAN",{class:!0}),b(He).forEach(p),It.forEach(p),Fe=A(Ae),ue=E(Ae,"BUTTON",{title:!0,class:!0});var Rt=b(ue);ee=q(Rt,"svg",{xmlns:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var Kt=b(ee);ie=q(Kt,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,ry:!0}),b(ie).forEach(p),Ie=q(Kt,"path",{d:!0}),b(Ie).forEach(p),Kt.forEach(p),ve=A(Rt),Le=E(Rt,"SPAN",{class:!0}),b(Le).forEach(p),Rt.forEach(p),Ue=A(Ae),v=E(Ae,"BUTTON",{title:!0,class:!0,"data-svelte-h":!0}),ge(v)!=="svelte-m2txcz"&&(v.innerHTML=pe),rt=A(Ae),we=E(Ae,"BUTTON",{title:!0,class:!0});var wn=b(we);J=q(wn,"svg",{xmlns:!0,width:!0,viewBox:!0,height:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var $t=b(J);te=q($t,"rect",{width:!0,height:!0,x:!0,y:!0,rx:!0}),b(te).forEach(p),D=q($t,"rect",{width:!0,height:!0,x:!0,y:!0,rx:!0}),b(D).forEach(p),$t.forEach(p),wn.forEach(p),Ae.forEach(p),Re=A(Be),Ce=E(Be,"BUTTON",{class:!0,title:!0,"data-svelte-h":!0}),ge(Ce)!=="svelte-1yyxh1i"&&(Ce.innerHTML=mt),Ne=A(Be),fe&&fe.l(Be),et=A(Be),me=E(Be,"BUTTON",{class:!0,title:!0});var xn=b(me);Ve.l(xn),xn.forEach(p),Be.forEach(p),Mt.forEach(p),ne.forEach(p),this.h()},h(){o(i,"class","topbar_btn is-first-btn svelte-1eigker"),o(i,"title",s=l[0]?"Collapse sidebar":"Expand sidebar"),o(n,"class","topbar_nav svelte-1eigker"),o(f,"class","stagesize-input svelte-1eigker"),o(f,"type","number"),f.disabled=h=l[2]!=="full",f.value=l[8],o(f,"min","50"),o(f,"max",l[5]),o(d,"class","stagesize-value-multi_sign svelte-1eigker"),o(z,"class","stagesize-input svelte-1eigker"),o(z,"type","number"),z.disabled=w=l[2]!=="full",z.value=l[9],o(z,"min","50"),o(z,"max",l[4]),o(c,"class","stagesize-value svelte-1eigker"),o(M,"x","5"),o(M,"y","2"),o(M,"width","14"),o(M,"height","20"),o(M,"rx","2"),o(M,"ry","2"),o(W,"d","M12 18h.01"),o(L,"xmlns","http://www.w3.org/2000/svg"),o(L,"height","24"),o(L,"viewBox","0 0 24 24"),o(L,"width","24"),o(L,"fill","none"),o(L,"stroke","currentColor"),o(L,"stroke-width","1.5"),o(L,"stroke-linecap","round"),o(L,"stroke-linejoin","round"),o(L,"class","svelte-1eigker"),P(L,"landscape",l[1]),o(oe,"class","dot svelte-1eigker"),o(k,"title","Small"),o(k,"class","svelte-1eigker"),P(k,"active",l[2]==="small"),o(Q,"x","4"),o(Q,"y","2"),o(Q,"width","16"),o(Q,"height","20"),o(Q,"rx","2"),o(Q,"ry","2"),o(I,"d","M12 18h.01"),o(S,"xmlns","http://www.w3.org/2000/svg"),o(S,"height","24"),o(S,"viewBox","0 0 24 24"),o(S,"width","24"),o(S,"fill","none"),o(S,"stroke","currentColor"),o(S,"stroke-width","1.5"),o(S,"stroke-linecap","round"),o(S,"stroke-linejoin","round"),o(S,"class","svelte-1eigker"),P(S,"landscape",l[1]),o(He,"class","dot svelte-1eigker"),o(Y,"title","Medium"),o(Y,"class","svelte-1eigker"),P(Y,"active",l[2]==="medium"),o(ie,"x","3"),o(ie,"y","4"),o(ie,"width","18"),o(ie,"height","12"),o(ie,"rx","2"),o(ie,"ry","2"),o(Ie,"d","M2 20h20"),o(ee,"xmlns","http://www.w3.org/2000/svg"),o(ee,"height","24"),o(ee,"viewBox","0 0 24 24"),o(ee,"width","24"),o(ee,"fill","none"),o(ee,"stroke","currentColor"),o(ee,"stroke-width","1.5"),o(ee,"stroke-linecap","round"),o(ee,"stroke-linejoin","round"),o(ee,"class","svelte-1eigker"),P(ee,"landscape",l[1]),o(Le,"class","dot svelte-1eigker"),o(ue,"title","Large"),o(ue,"class","svelte-1eigker"),P(ue,"active",l[2]==="large"),o(v,"title","Full"),o(v,"class","svelte-1eigker"),P(v,"active",l[2]==="full"),o(te,"width","12"),o(te,"height","20"),o(te,"x","6"),o(te,"y","2"),o(te,"rx","2"),o(D,"width","20"),o(D,"height","12"),o(D,"x","2"),o(D,"y","6"),o(D,"rx","2"),o(J,"xmlns","http://www.w3.org/2000/svg"),o(J,"width","24"),o(J,"viewBox","0 0 24 24"),o(J,"height","24"),o(J,"fill","none"),o(J,"stroke","currentColor"),o(J,"stroke-width","1.5"),o(J,"stroke-linecap","round"),o(J,"stroke-linejoin","round"),o(J,"class","svelte-1eigker"),o(we,"title",G=l[1]?"Portrait mode":"Landscape mode"),o(we,"class","svelte-1eigker"),o(y,"class","stagesize-nav svelte-1eigker"),o(Ce,"class","topbar_btn openexternal_btn svelte-1eigker"),o(Ce,"title","Open component in new tab"),o(me,"class","topbar_btn is-last-btn svelte-1eigker"),o(me,"title",Qe=l[7]?"Light mode":"Dark mode"),o(u,"class","topbar_nav svelte-1eigker"),o(t,"class","topbar_container svelte-1eigker"),o(e,"class","topbar svelte-1eigker")},m(V,ne){j(V,e,ne),m(e,t),m(t,n),m(n,i),qe.m(i,null),m(n,r),he&&he.m(n,null),m(t,a),m(t,u),m(u,c),m(c,f),m(c,g),m(c,d),m(c,T),m(c,z),m(u,C),m(u,y),m(y,k),m(k,L),m(L,M),m(L,W),m(k,$),m(k,oe),m(y,ce),m(y,Y),m(Y,S),m(S,Q),m(S,I),m(Y,se),m(Y,He),m(y,Fe),m(y,ue),m(ue,ee),m(ee,ie),m(ee,Ie),m(ue,ve),m(ue,Le),m(y,Ue),m(y,v),m(y,rt),m(y,we),m(we,J),m(J,te),m(J,D),m(u,Re),m(u,Ce),m(u,Ne),fe&&fe.m(u,null),m(u,et),m(u,me),Ve.m(me,null),ot||(tt=[K(i,"click",l[10]),K(f,"change",l[17]),K(z,"change",l[18]),K(k,"click",l[21]),K(Y,"click",l[22]),K(ue,"click",l[23]),K(v,"click",l[24]),K(we,"click",l[14]),K(Ce,"click",l[15]),K(me,"click",l[12])],ot=!0)},p(V,[ne]){zt!==(zt=at(V))&&(qe.d(1),qe=zt(V),qe&&(qe.c(),qe.m(i,null))),ne&1&&s!==(s=V[0]?"Collapse sidebar":"Expand sidebar")&&o(i,"title",s),V[6]?he?he.p(V,ne):(he=$n(V),he.c(),he.m(n,null)):he&&(he.d(1),he=null),ne&4&&h!==(h=V[2]!=="full")&&(f.disabled=h),ne&256&&f.value!==V[8]&&(f.value=V[8]),ne&32&&o(f,"max",V[5]),ne&4&&w!==(w=V[2]!=="full")&&(z.disabled=w),ne&512&&z.value!==V[9]&&(z.value=V[9]),ne&16&&o(z,"max",V[4]),ne&2&&P(L,"landscape",V[1]),ne&4&&P(k,"active",V[2]==="small"),ne&2&&P(S,"landscape",V[1]),ne&4&&P(Y,"active",V[2]==="medium"),ne&2&&P(ee,"landscape",V[1]),ne&4&&P(ue,"active",V[2]==="large"),ne&4&&P(v,"active",V[2]==="full"),ne&2&&G!==(G=V[1]?"Portrait mode":"Landscape mode")&&o(we,"title",G),V[3].length>1?fe?fe.p(V,ne):(fe=ei(V),fe.c(),fe.m(u,et)):fe&&(fe.d(1),fe=null),Ct!==(Ct=bn(V))&&(Ve.d(1),Ve=Ct(V),Ve&&(Ve.c(),Ve.m(me,null))),ne&128&&Qe!==(Qe=V[7]?"Light mode":"Dark mode")&&o(me,"title",Qe)},i:ae,o:ae,d(V){V&&p(e),qe.d(),he&&he.d(),fe&&fe.d(),Ve.d(),ot=!1,Ft(tt)}}}function us(l,e,t){const n=Ze();let{sidebarExpanded:i=!0}=e,{appTheme:s="default"}=e,{landscape:r=!1}=e,{stageSize:a="full"}=e,{themes:u=[]}=e,{stageRect:c}=e,{stageMaxHeight:f}=e,{stageMaxWidth:h}=e,{node:g}=e,d=!1,_,T;function z(){n("out",{toggleExpandSidebar:!0})}function w(){n("out",{toggleBookmark:g})}function C(){n("out",{updateAppTheme:s==="dark"?"default":"dark"})}function y(I){n("out",{stageSize:I})}function k(){n("out",{landscape:!r})}function L(){n("out",{openInTab:!0})}function M(I){n("out",{selectTheme:I})}function W(I){n("out",{stageWidth:Number.parseInt(I.target.value)})}function $(I){n("out",{stageHeight:Number.parseInt(I.target.value)})}const oe=()=>y("small"),ce=()=>y("medium"),Y=()=>y("large"),S=()=>y("full"),Q=I=>M(I.name);return l.$$set=I=>{"sidebarExpanded"in I&&t(0,i=I.sidebarExpanded),"appTheme"in I&&t(19,s=I.appTheme),"landscape"in I&&t(1,r=I.landscape),"stageSize"in I&&t(2,a=I.stageSize),"themes"in I&&t(3,u=I.themes),"stageRect"in I&&t(20,c=I.stageRect),"stageMaxHeight"in I&&t(4,f=I.stageMaxHeight),"stageMaxWidth"in I&&t(5,h=I.stageMaxWidth),"node"in I&&t(6,g=I.node)},l.$$.update=()=>{if(l.$$.dirty&1048576){let{width:I,height:se}=c;t(8,_=Math.round(I)),t(9,T=Math.round(se))}l.$$.dirty&524288&&(t(7,d=s==="dark"),s==="dark"?document.documentElement.setAttribute("data-theme","dark"):document.documentElement.setAttribute("data-theme","light"))},[i,r,a,u,f,h,g,d,_,T,z,w,C,y,k,L,M,W,$,s,c,oe,ce,Y,S,Q]}class cs extends Te{constructor(e){super(),Se(this,e,us,as,be,{sidebarExpanded:0,appTheme:19,landscape:1,stageSize:2,themes:3,stageRect:20,stageMaxHeight:4,stageMaxWidth:5,node:6})}}const ct=[];function vi(l,e){return{subscribe:re(l,e).subscribe}}function re(l,e=ae){let t;const n=new Set;function i(a){if(be(l,a)&&(l=a,t)){const u=!ct.length;for(const c of n)c[1](),ct.push(c,l);if(u){for(let c=0;c<ct.length;c+=2)ct[c][0](ct[c+1]);ct.length=0}}}function s(a){i(a(l))}function r(a,u=ae){const c=[a,u];return n.add(c),n.size===1&&(t=e(i,s)||ae),a(l),()=>{n.delete(c),n.size===0&&t&&(t(),t=null)}}return{set:i,update:s,subscribe:r}}function dn(l,e,t){const n=!Array.isArray(l),i=n?[l]:l;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=e.length<2;return vi(t,(r,a)=>{let u=!1;const c=[];let f=0,h=ae;const g=()=>{if(f)return;h();const _=e(n?c[0]:c,r,a);s?r(_):h=an(_)?_:ae},d=i.map((_,T)=>Ii(_,z=>{c[T]=z,f&=~(1<<T),u&&g()},()=>{f|=1<<T}));return u=!0,g(),function(){Ft(d),h(),u=!1}})}function Qt(l,e,t=i=>i,n=i=>i){const i=re(t(localStorage.getItem(l))??e);return i.subscribe(s=>{localStorage.setItem(l,n(s))}),i}const Ge=re([]),wi=re(""),gn=Qt("stageSize","full"),pn=Qt("landscape",!1,l=>l==="true"),Xe=re(""),xi=re(""),Ye=re(""),en=re("full"),tn=re("full"),hs=dn([Xe,Ye],([l,e])=>Math.min(l,e)-20),fs=dn(xi,l=>l-20),_t=re(!0),Ei=Qt("appTheme","default"),dt=Qt("frameTheme"),nn=re(!0),xt=re(!1);let ht="";const ds={small:{frameheight:"1170px",framewidth:"550px"},medium:{frameheight:"1080px",framewidth:"810px"},large:{frameheight:"960px",framewidth:"1536px"},full:{frameheight:"100%",framewidth:"100%"}};function gs(l){var e;Z(dt)||dt.set(((e=l==null?void 0:l.find(t=>t.active))==null?void 0:e.name)??l[0].name),Ge.set(l==null?void 0:l.map(t=>({...t,active:t.name===Z(dt)}))),Tt()}function ps(l){Ge.set(Z(Ge).map(e=>({...e,active:e.name===l}))),dt.set(l),Tt()}function ms(l){Ei.set(l)}function ks(){return Z(Ge)&&Z(Ge).length>0?Z(Ge).find(l=>l.name===Z(dt))??Z(Ge)[0]:{stageBg:"white"}}function Tt(){const l=ks().stageBg,{frameheight:e,framewidth:t}=ds[Z(gn)],n=Z(pn)?`width: ${e}; height: ${t}`:`width: ${t}; height: ${e}`,i=`background-color: ${l}`;wi.set(`${n}; ${i}; transition: 0s;`)}function _s(l){Xe.set(l),yi()}function bs(l){const e=l-9;Ye.set(e),yi()}function vs(l){xi.set(l)}function ni(l){Number.isInteger(l)?en.set(Math.max(50,l)):en.set(l)}function ii(l){Number.isInteger(l)?tn.set(Math.max(50,l)):tn.set(l)}function yi(){Number.isInteger(Z(Xe))&&Number.isInteger(Z(Ye))&&_t.set(Z(Xe)<Z(Ye))}function li(){Z(_t)?(ht=Z(Xe),Xe.set(Z(Ye))):((!Number.isInteger(ht)||Number.isInteger(ht)&&Z(Ye)-ht<50)&&(ht=Math.round(Z(Ye)*.7)),Xe.set(ht)),_t.set(!Z(_t))}Tt();function ws(){Z(mn)?xt.set(!Z(xt)):nn.set(!Z(nn))}const mn=vi(window.innerWidth<840,l=>{const e=()=>{l(window.innerWidth<840),xt.set(!1)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),xs=dn([nn,xt,mn],([l,e,t])=>t?e:l);function Es(){Z(mn)&&xt.set(!1)}function ys(l){gn.set(l),Tt()}function Ts(l){pn.set(l),Tt()}function Ss(l,e,t=i=>i,n=i=>i){const i=re(t(localStorage.getItem(l))??e);return i.subscribe(s=>{localStorage.setItem(l,n(s))}),i}const it=re([]),gt=re(!0),Gt=re(),Ti=re(),We=Ss("bookmarks",[],JSON.parse,JSON.stringify);let si=!1,Xt="",bt=[],je=[],St;function zs(l){je=l.flatMap(kn).reduce((t,n)=>(t[n.key]=!0,t),{})}function kn(l){return[l,...Cs(l)]}function Cs(l){return l.children?l.children.flatMap(kn):[]}function Ms(l,e){Xt=l,St=e,st(),Ws()}function Hs(l){Gt.set(l),st()}function Ls(l){bt=l,si||(zs(bt),Os(),si=!0),it.set(_n(bt))}function st(){it.set(_n(bt))}function _n(l,e){var n;const t=(n=Z(Gt))==null?void 0:n.toLowerCase();return l.map(i=>{var a;const s=t?(a=i.name)==null?void 0:a.toLowerCase().includes(t):!0,r=t&&s?Is(i.name):i.name;if(i.isLeaf){const c=e||s?{...i,name:r,selected:St===i.key,isLeaf:!0,bookmark:Z(We).find(f=>f.key===i.key)!==void 0}:void 0;return c!=null&&c.selected&&Ti.set(c),c}else{const u=_n(i.children,e||s).filter(f=>f),c=s||u.length>0;return c?{...i,name:r,children:u,unfolded:Rs(i,Xt,t,c),filterMatches:s}:void 0}}).filter(i=>i)}function Is(l){const e=Z(Gt).toLowerCase(),t=l.toLowerCase().indexOf(e),n=t+e.length,i=l.substring(0,t),s=l.substring(t,n),r=l.substring(n);return`${i}<span class="highlight">${s}</span>${r}`}function Rs(l,e,t,n){return t&&n||je[l.key]||(e==null?void 0:e.indexOf(l.key))===0}function Ns(){gt.set(!Z(gt));const l=Z(it).map(e=>({...e,unfolded:Z(gt)&&je[e.key]}));it.set(l)}function Bs(l){if(!Z(gt)){As(l);return}je[l.key]&&Xt.indexOf(l.key)!==0?je[l.key]=!1:je[l.key]=!0,st()}function As(l){gt.set(!0),Object.keys(je).forEach(t=>je[t]=!1);const e=Z(it).map(t=>t.key===l.key||Xt.indexOf(t.key)===0?(je[t.key]=!0,{...t,unfolded:!0}):(je[t.key]=!1,{...t,unfolded:!1}));it.set(e),st()}function ri(l){l.bookmark?js({...l,bookmark:!1}):Ds({...l,bookmark:!0}),st()}function js(l){We.set(Z(We).filter(e=>l.key!==e.key).map(e=>({...e,selected:e.key===St}))),st()}function Ds(l){We.set([...Z(We),l].map(e=>({...e,selected:e.key===St})).sort((e,t)=>e.name.localeCompare(t.name))),st()}function Ws(){We.set([...Z(We)].map(l=>({...l,selected:l.key===St})).sort((l,e)=>l.name.localeCompare(e.name)))}function Os(){const l=bt.flatMap(kn),e=Z(We).filter(t=>l.some(n=>n.key===t.key));We.set(e)}const Si=[],Ps=globalThis.location?globalThis.location.pathname+globalThis.location.search:"";let Me=Ps,nt="",ln,sn={url:Me};(function(){globalThis.history&&(globalThis.history.state&&globalThis.history.state.url==Me&&(sn=globalThis.history.state),globalThis.history.replaceState(sn,null,Me))})();function Us(l,e,t){ln=l,nt=e,t&&qs(t),Ut(sn,Me)}function qs(l){Si.push(l)}function Ut(l,e){Si.forEach(t=>{t(Vs(e),l)})}function Vs(l){const e=l.substring(nt.length),t=Object.keys(ln).find(n=>e.match(new RegExp("^"+n+"$","i")));return t?ln[t]:null}(function(l){if(l){var e=l.pushState;l.pushState=function(t,n,i){if(!(i.startsWith(nt)&&nt.length>0)){if(Me=nt+i,t.url=Me,t.url!==l.state.url||t.selectedExample!==l.state.selectedExample)return Ut(t,Me),e.apply(l,[t,"",Me]);Ut(t,Me),window.location.reload()}}}})(globalThis.history);globalThis.onpopstate=function(l){l.state?Me=l.state.url:Me=nt.length>0?nt:"/",Ut(l.state,Me)};const rn=re(""),qt=re(),Vt=re({}),zi=re("");let Zt,kt,on;function Zs(l){Zt=l,on&&Ci()}function Fs(l,e,t){Zt=l,on||(on=!0,Us(e,t,Qs))}function Qs(l,e){if(qt.set({}),rn.set(""),Vt.set({}),l&&Zt){rn.set(l.fullname),zi.set(l.route);const t=Zt[l.fullname];t.componentfile=l.file,qt.set(t),kt=e,Ci()}}function Ci(){var e,t;const l=Z(qt).examples||[];kt!=null&&kt.selectedExample?Vt.set((e=l.find(n=>n.title==kt.selectedExample))==null?void 0:e.title):Vt.set((t=l[0])==null?void 0:t.title)}function Gs(l){let e,t,n,i,s,r,a,u,c;return n=new ts({props:{projectTitle:l[25],projectLogo:l[26],projectLogoDarkmode:l[27],appTheme:l[6],sidebarExpanded:l[7],rootNodesExpanded:l[8],nodes:l[9],filter:l[10],panelExpanded:l[11],bookmarks:l[12],docsLink:l[3]}}),n.$on("out",l[30]),r=new cs({props:{sidebarExpanded:l[7],node:l[13],themes:l[14],appTheme:l[6],stageRect:l[2],stageSize:l[15],landscape:l[16],stageWidth:l[17],stageHeight:l[18],stageMaxHeight:l[19],stageMaxWidth:l[20]}}),r.$on("out",l[28]),u=new Nl({props:{componentName:l[1],das:l[21],selectedExample:l[5],stageStyle:l[22],stageSize:l[15],stageContainerHeight:l[23],stageContainerMaxHeight:l[24],stageHeight:l[18],stageWidth:l[17],stageMaxHeight:l[19],stageMaxWidth:l[20],theme:l[4],panelExpanded:l[11],devmodus:l[0].devmodus}}),u.$on("out",l[29]),{c(){e=x("div"),t=x("div"),xe(n.$$.fragment),i=B(),s=x("div"),xe(r.$$.fragment),a=B(),xe(u.$$.fragment),this.h()},l(f){e=E(f,"DIV",{class:!0});var h=b(e);t=E(h,"DIV",{class:!0});var g=b(t);ze(n.$$.fragment,g),g.forEach(p),i=A(h),s=E(h,"DIV",{class:!0});var d=b(s);ze(r.$$.fragment,d),a=A(d),ze(u.$$.fragment,d),d.forEach(p),h.forEach(p),this.h()},h(){o(t,"class","sidebar svelte-yh1ir7"),o(s,"class","main svelte-yh1ir7"),o(e,"class","garden svelte-yh1ir7")},m(f,h){j(f,e,h),m(e,t),Ee(n,t,null),m(e,i),m(e,s),Ee(r,s,null),m(s,a),Ee(u,s,null),c=!0},p(f,h){const g={};h[0]&64&&(g.appTheme=f[6]),h[0]&128&&(g.sidebarExpanded=f[7]),h[0]&256&&(g.rootNodesExpanded=f[8]),h[0]&512&&(g.nodes=f[9]),h[0]&1024&&(g.filter=f[10]),h[0]&2048&&(g.panelExpanded=f[11]),h[0]&4096&&(g.bookmarks=f[12]),h[0]&8&&(g.docsLink=f[3]),n.$set(g);const d={};h[0]&128&&(d.sidebarExpanded=f[7]),h[0]&8192&&(d.node=f[13]),h[0]&16384&&(d.themes=f[14]),h[0]&64&&(d.appTheme=f[6]),h[0]&4&&(d.stageRect=f[2]),h[0]&32768&&(d.stageSize=f[15]),h[0]&65536&&(d.landscape=f[16]),h[0]&131072&&(d.stageWidth=f[17]),h[0]&262144&&(d.stageHeight=f[18]),h[0]&524288&&(d.stageMaxHeight=f[19]),h[0]&1048576&&(d.stageMaxWidth=f[20]),r.$set(d);const _={};h[0]&2&&(_.componentName=f[1]),h[0]&2097152&&(_.das=f[21]),h[0]&32&&(_.selectedExample=f[5]),h[0]&4194304&&(_.stageStyle=f[22]),h[0]&32768&&(_.stageSize=f[15]),h[0]&8388608&&(_.stageContainerHeight=f[23]),h[0]&16777216&&(_.stageContainerMaxHeight=f[24]),h[0]&262144&&(_.stageHeight=f[18]),h[0]&131072&&(_.stageWidth=f[17]),h[0]&524288&&(_.stageMaxHeight=f[19]),h[0]&1048576&&(_.stageMaxWidth=f[20]),h[0]&16&&(_.theme=f[4]),h[0]&2048&&(_.panelExpanded=f[11]),h[0]&1&&(_.devmodus=f[0].devmodus),u.$set(_)},i(f){c||(O(n.$$.fragment,f),O(r.$$.fragment,f),O(u.$$.fragment,f),c=!0)},o(f){F(n.$$.fragment,f),F(r.$$.fragment,f),F(u.$$.fragment,f),c=!1},d(f){f&&p(e),ye(n),ye(r),ye(u)}}}function Xs(l){let e,t,n="Relative link was clicked!",i,s,r,a,u="back",c,f;return{c(){e=x("div"),t=x("div"),t.textContent=n,i=B(),s=x("div"),r=ke(`Click the button to return:
47
+ `),a=x("button"),a.textContent=u,this.h()},l(h){e=E(h,"DIV",{class:!0});var g=b(e);t=E(g,"DIV",{class:!0,"data-svelte-h":!0}),ge(t)!=="svelte-jskzqc"&&(t.textContent=n),i=A(g),s=E(g,"DIV",{class:!0});var d=b(s);r=_e(d,`Click the button to return:
48
+ `),a=E(d,"BUTTON",{class:!0,"data-svelte-h":!0}),ge(a)!=="svelte-u4jm95"&&(a.textContent=u),d.forEach(p),g.forEach(p),this.h()},h(){o(t,"class","click-completed svelte-yh1ir7"),o(a,"class","svelte-yh1ir7"),o(s,"class","instruction svelte-yh1ir7"),o(e,"class","message svelte-yh1ir7")},m(h,g){j(h,e,g),m(e,t),m(e,i),m(e,s),m(s,r),m(s,a),c||(f=K(a,"click",l[35]),c=!0)},p:ae,i:ae,o:ae,d(h){h&&p(e),c=!1,f()}}}function Ys(l){let e,t,n,i;const s=[Xs,Gs],r=[];function a(u,c){return window.top!==window.self?0:1}return e=a(),t=r[e]=s[e](l),{c(){t.c(),n=pt()},l(u){t.l(u),n=pt()},m(u,c){r[e].m(u,c),j(u,n,c),i=!0},p(u,c){t.p(u,c)},i(u){i||(O(t),i=!0)},o(u){F(t),i=!1},d(u){u&&p(n),r[e].d(u)}}}let Js="/garden";function Ks(l,e,t){var Le,Ue;let n,i,s,r,a,u,c,f,h,g,d,_,T,z,w,C,y,k,L,M,W,$,oe,ce;le(l,dt,v=>t(4,i=v)),le(l,rn,v=>t(1,s=v)),le(l,Vt,v=>t(5,r=v)),le(l,zi,v=>t(34,a=v)),le(l,Ei,v=>t(6,u=v)),le(l,xs,v=>t(7,c=v)),le(l,gt,v=>t(8,f=v)),le(l,it,v=>t(9,h=v)),le(l,Gt,v=>t(10,g=v)),le(l,_t,v=>t(11,d=v)),le(l,We,v=>t(12,_=v)),le(l,Ti,v=>t(13,T=v)),le(l,Ge,v=>t(14,z=v)),le(l,gn,v=>t(15,w=v)),le(l,pn,v=>t(16,C=v)),le(l,tn,v=>t(17,y=v)),le(l,en,v=>t(18,k=v)),le(l,hs,v=>t(19,L=v)),le(l,fs,v=>t(20,M=v)),le(l,qt,v=>t(21,W=v)),le(l,wi,v=>t(22,$=v)),le(l,Xe,v=>t(23,oe=v)),le(l,Ye,v=>t(24,ce=v));let{routes:Y}=e,{navTree:S}=e,{dasMap:Q}=e,{config:I}=e,se=I.project_title||"",He=((Le=I.project_logo)==null?void 0:Le.split("/").pop())||null,Fe=((Ue=I.project_logo_darkmode)==null?void 0:Ue.split("/").pop())||null,ue={};function ee(v){if(v.detail.openInTab){const pe=window.open("/frame.html","_blank");pe.onload=()=>{pe.postMessage({selectedExample:r,componentName:s,theme:i},window.location.origin)}}v.detail.selectTheme&&ps(v.detail.selectTheme),v.detail.updateAppTheme&&ms(v.detail.updateAppTheme),v.detail.toggleExpandSidebar&&ws(),v.detail.stageWidth&&ii(v.detail.stageWidth),v.detail.stageHeight&&ni(v.detail.stageHeight),v.detail.toggleBookmark&&ri(v.detail.toggleBookmark),v.detail.stageSize&&ys(v.detail.stageSize),v.detail.landscape!==void 0&&Ts(v.detail.landscape)}function ie(v){v.detail.stageRect&&t(2,ue=v.detail.stageRect),v.detail.stageContainerHeight&&_s(v.detail.stageContainerHeight),v.detail.toggleExpandPanel&&li(),v.detail.stageContainerWidth&&vs(v.detail.stageContainerWidth),v.detail.stageContainerMaxHeight&&bs(v.detail.stageContainerMaxHeight),v.detail.stageWidth&&ii(v.detail.stageWidth),v.detail.stageHeight&&ni(v.detail.stageHeight)}function Ie(v){v.detail.toggleFoldStatusOfNode&&Bs(v.detail.toggleFoldStatusOfNode),v.detail.toggleRootFolders&&Ns(),v.detail.filter&&Hs(v.detail.filter.value),v.detail.toggleExpandPanel&&li(),v.detail.toggleBookmark&&ri(v.detail.toggleBookmark)}const ve=()=>{window.top.location.reload()};return l.$$set=v=>{"routes"in v&&t(31,Y=v.routes),"navTree"in v&&t(32,S=v.navTree),"dasMap"in v&&t(33,Q=v.dasMap),"config"in v&&t(0,I=v.config)},l.$$.update=()=>{l.$$.dirty[1]&2&&Ls(S),l.$$.dirty[1]&5&&Y&&Q&&Fs(Q,Y,Js),l.$$.dirty[1]&4&&Zs(Q),l.$$.dirty[0]&1&&gs(I.themes),l.$$.dirty[0]&2|l.$$.dirty[1]&8&&(Ms(a,s),Es()),l.$$.dirty[0]&1&&t(3,n=I.docs_link?1:0)},[I,s,ue,n,i,r,u,c,f,h,g,d,_,T,z,w,C,y,k,L,M,W,$,oe,ce,se,He,Fe,ee,ie,Ie,Y,S,Q,a,ve]}class $s extends Te{constructor(e){super(),Se(this,e,Ks,Ys,be,{routes:31,navTree:32,dasMap:33,config:0},null,[-1,-1])}}new $s({target:document.getElementById("app"),props:{navTree:Ri,routes:Ni,dasMap:Bi,config:Ai}});
package/dist/index.html CHANGED
@@ -5,9 +5,9 @@
5
5
  <link rel="icon" href="/assets/favicon.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Gardenjs UI Component Explorer</title>
8
- <script type="module" crossorigin src="/assets/index-BUA8ZZng.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-CxH-bIBi.js"></script>
9
9
  <link rel="modulepreload" crossorigin href="/assets/index-OMTxPB5B.js">
10
- <link rel="stylesheet" crossorigin href="/assets/index-CcTtNSGU.css">
10
+ <link rel="stylesheet" crossorigin href="/assets/index-C9xFRvgZ.css">
11
11
  </head>
12
12
 
13
13
  <body>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gardenjs",
3
- "version": "1.3.0",
4
- "description": "A lightweight UI component explorer for JavaScript front-end libraries",
3
+ "version": "1.3.2",
4
+ "description": "A component library explorer for UI development, testing and documentation.",
5
5
  "repository": "https://github.com/gardenjs/gardenjs",
6
6
  "homepage": "https://gardenjs.org/",
7
7
  "main": "index.js",
@@ -19,6 +19,7 @@
19
19
  "ui-components",
20
20
  "stories",
21
21
  "ui",
22
+ "html",
22
23
  "javascript",
23
24
  "js-framework",
24
25
  "js",
@@ -43,7 +44,7 @@
43
44
  "./main.scss": "./src/client/assets/scss/main.scss"
44
45
  },
45
46
  "scripts": {
46
- "prepare": "husky install",
47
+ "prepare": "husky",
47
48
  "build": "vite build",
48
49
  "dev": "vite",
49
50
  "preview": "vite preview",
@@ -151,7 +151,7 @@
151
151
  toggleRootFolders()
152
152
  }
153
153
  if (evt.detail.filter) {
154
- updateFilter(evt.detail.filter.value?.toLowerCase())
154
+ updateFilter(evt.detail.filter.value)
155
155
  }
156
156
  if (evt.detail.toggleExpandPanel) {
157
157
  toggleExpandPanel()
@@ -40,7 +40,7 @@
40
40
  .bookmarks {
41
41
  display: none;
42
42
  }
43
- @media (min-height: 500px) {
43
+ @media (min-height: 500px) and (min-width: 500px) {
44
44
  .bookmarks {
45
45
  display: block;
46
46
  }
@@ -48,8 +48,16 @@
48
48
  {/if}
49
49
  </a>
50
50
  <div class="filter">
51
- <!-- prettier-ignore -->
52
- <input aria-autocomplete="list" id="filter" class="filter_input" autocomplete="off" type="search" value={filter || ''} placeholder="Filter..." on:input={updateFilter} />
51
+ <input
52
+ aria-autocomplete="list"
53
+ id="filter"
54
+ class="filter_input"
55
+ autocomplete="off"
56
+ type="search"
57
+ value={filter || ''}
58
+ placeholder="Filter..."
59
+ on:input={updateFilter}
60
+ />
53
61
  </div>
54
62
  {#if nodes.length == 0 && filter}
55
63
  <div>
@@ -167,6 +175,9 @@
167
175
  input.filter_input[type='search'] {
168
176
  font-size: 0.813rem;
169
177
  }
178
+ input[type='search']::-webkit-search-cancel-button {
179
+ -webkit-appearance: none;
180
+ }
170
181
  .filter_input::placeholder {
171
182
  font-size: 0.813rem;
172
183
  color: var(--c-basic-500);
@@ -241,8 +252,8 @@
241
252
  font-weight: 400;
242
253
  }
243
254
  .controls_btn:hover .controls_btn-label,
244
- .controls_btn:hover .controls_btn-icon,
245
255
  .controls_btn:focus-visible .controls_btn-label,
256
+ .controls_btn:hover .controls_btn-icon,
246
257
  .controls_btn:focus-visible .controls_btn-icon {
247
258
  color: var(--c-primary);
248
259
  }
@@ -15,7 +15,8 @@
15
15
  <div class="component_icon">
16
16
  <svg xmlns="http://www.w3.org/2000/svg" width="15" viewBox="0 0 24 24" height="15" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 8a2 2 0 00-1-1.73l-7-4a2 2 0 00-2 0l-7 4A2 2 0 003 8v8a2 2 0 001 1.73l7 4a2 2 0 002 0l7-4A2 2 0 0021 16z" /><path d="M3.3 7l8.7 5 8.7-5M12 22V12" /></svg>
17
17
  </div>
18
- <div class="component_label">{text}</div>
18
+ <!-- eslint-disable-next-line -->
19
+ <div class="component_label">{@html text}</div>
19
20
  </div>
20
21
  </a>
21
22
 
@@ -129,6 +129,9 @@
129
129
  <svg xmlns="http://www.w3.org/2000/svg" width="24" viewBox="0 0 24 24" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="12" height="20" x="6" y="2" rx="2" /><rect width="20" height="12" x="2" y="6" rx="2"/></svg>
130
130
  </button>
131
131
  </div>
132
+ <button class="topbar_btn openexternal_btn" title="Open component in new tab" on:click={openInTab}>
133
+ <svg xmlns="http://www.w3.org/2000/svg" class="open-new-tab-icon" height="24" viewBox="0 0 24 24" width="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6m4-3h6v6m-11 5L21 3" /></svg>
134
+ </button>
132
135
  {#if themes.length > 1}
133
136
  <div class="dropdown">
134
137
  <button class="dropdown_btn topbar_btn" title="Switch component theme">
@@ -148,9 +151,6 @@
148
151
  </div>
149
152
  </div>
150
153
  {/if}
151
- <button class="topbar_btn" title="Open component in new tab" on:click={openInTab}>
152
- <svg xmlns="http://www.w3.org/2000/svg" class="open-new-tab-icon" height="24" viewBox="0 0 24 24" width="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6m4-3h6v6m-11 5L21 3" /></svg>
153
- </button>
154
154
  <button class="topbar_btn is-last-btn" on:click={toggleDarkmode} title={dark ? 'Light mode' : 'Dark mode'}>
155
155
  {#if dark}
156
156
  <svg xmlns="http://www.w3.org/2000/svg" class="mode-icon" width="24" viewBox="0 0 24 24" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="4" /><path d="M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41" /></svg>
@@ -178,7 +178,7 @@
178
178
  width: 100%;
179
179
  height: 100%;
180
180
  padding: 0;
181
- overflow: auto hidden;
181
+ z-index: 999999;
182
182
  }
183
183
  .topbar_nav {
184
184
  display: flex;
@@ -193,7 +193,8 @@
193
193
  height: var(--h-topbar);
194
194
  background: none;
195
195
  }
196
- .topbar_btn:hover {
196
+ .topbar_btn:hover,
197
+ .topbar_btn:focus-visible {
197
198
  background-color: var(--c-basic-100);
198
199
  }
199
200
  .topbar_btn svg {
@@ -204,9 +205,6 @@
204
205
  .topbar_btn:focus-visible svg {
205
206
  color: var(--c-primary);
206
207
  }
207
- .topbar_btn:focus-visible {
208
- background-color: var(--c-basic-150);
209
- }
210
208
  .is-first-btn {
211
209
  border-radius: 0.5rem 0 0 0.5rem;
212
210
  }
@@ -214,12 +212,18 @@
214
212
  border-radius: 0 0.5rem 0.5rem 0;
215
213
  }
216
214
 
217
- /* bookmarks btn */
215
+ /* remove btns on small screens */
218
216
  @media (max-height: 499px) {
219
217
  .bookmark_btn {
220
218
  display: none;
221
219
  }
222
220
  }
221
+ @media (max-width: 499px) {
222
+ .bookmark_btn,
223
+ .openexternal_btn {
224
+ display: none;
225
+ }
226
+ }
223
227
 
224
228
  /* stage size */
225
229
  .stagesize-value {
@@ -329,11 +333,12 @@
329
333
  .dropdown {
330
334
  position: relative;
331
335
  display: inline-block;
336
+ z-index: 99;
332
337
  }
333
338
  .dropdown_items {
334
339
  visibility: hidden;
335
340
  position: absolute;
336
- left: -0.75rem;
341
+ right: 0;
337
342
  padding: 0.375rem 0 0;
338
343
  z-index: 9;
339
344
  }
@@ -357,7 +362,7 @@
357
362
  align-items: center;
358
363
  justify-items: flex-start;
359
364
  width: 100%;
360
- min-width: 113px;
365
+ min-width: 5rem;
361
366
  padding: 0.5rem;
362
367
  font-size: 0.75rem;
363
368
  color: var(--c-basic-900);
@@ -70,7 +70,7 @@ function updateTree() {
70
70
  }
71
71
 
72
72
  function transformNavTree(nodes, parentVisible) {
73
- const filter = get(filterNavTree)
73
+ const filter = get(filterNavTree)?.toLowerCase()
74
74
  return nodes
75
75
  .map((child) => {
76
76
  const filterMatches = filter
@@ -90,7 +90,7 @@ function transformNavTree(nodes, parentVisible) {
90
90
  get(bookmarks).find((b) => b.key === child.key) !== undefined,
91
91
  }
92
92
  : undefined
93
- if (node.selected) {
93
+ if (node?.selected) {
94
94
  selectedNode.set(node)
95
95
  }
96
96
  return node
@@ -115,7 +115,7 @@ function transformNavTree(nodes, parentVisible) {
115
115
  }
116
116
 
117
117
  function highlightFilterMatch(text) {
118
- const filter = get(filterNavTree)
118
+ const filter = get(filterNavTree).toLowerCase()
119
119
  const matchStart = text.toLowerCase().indexOf(filter)
120
120
  const matchEnd = matchStart + filter.length
121
121
  const start = text.substring(0, matchStart)
@@ -214,7 +214,6 @@ function updateBookmarks() {
214
214
  function cleanupBookmarks() {
215
215
  const allNodes = navtree.flatMap(getAllNodes)
216
216
  const validBookmarks = get(bookmarks).filter((bookmark) => {
217
- console.log('DEBUG', 'bookmark', bookmark, 'allno', allNodes)
218
217
  return allNodes.some((node) => node.key === bookmark.key)
219
218
  })
220
219
  bookmarks.set(validBookmarks)
@@ -1,48 +0,0 @@
1
- var Ml=Object.defineProperty;var Hl=(s,e,t)=>e in s?Ml(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var wn=(s,e,t)=>Hl(s,typeof e!="symbol"?e+"":e,t);import{S as Te,i as ze,s as _e,c as At,e as x,a as B,b as E,d as _,f as p,g as A,h as o,j as dt,t as P,k as j,l as m,m as K,u as jt,n as Dt,o as Wt,p as O,q as F,r as Fe,v as il,w as rl,x as Et,y as ke,z as Ft,A as xn,B as xe,C as mt,D as Se,E as Ee,F as We,G as ye,H as Oe,I as En,J as yn,K as Tn,L as vt,M as yt,N as pe,O as me,P as an,Q as Ze,R as ae,T as ol,U as al,V as wt,W as Ll,X as U,Y as q,Z as Il,_ as Z,$ as se}from"./index-OMTxPB5B.js";import{navTree as Rl,routes as Nl}from"../base.js";import{dasMap as Bl}from"../das_import_map.js";import Al from"../../garden.config.js";function je(s){return(s==null?void 0:s.length)!==void 0?s:Array.from(s)}const jl=s=>({}),zn=s=>({}),Dl=s=>({}),Sn=s=>({});function Wl(s){let e,t,n,l,i,r,a,c;const u=s[8].top,f=At(u,s,s[7],Sn),h=s[8].bottom,g=At(h,s,s[7],zn);return{c(){e=x("div"),t=x("div"),f&&f.c(),n=B(),l=x("div"),i=B(),g&&g.c(),this.h()},l(d){e=E(d,"DIV",{class:!0});var b=_(e);t=E(b,"DIV",{class:!0,style:!0});var T=_(t);f&&f.l(T),T.forEach(p),n=A(b),l=E(b,"DIV",{class:!0}),_(l).forEach(p),i=A(b),g&&g.l(b),b.forEach(p),this.h()},h(){o(t,"class","top svelte-1pql0kc"),dt(t,"height",s[2]),o(l,"class","dragbar svelte-1pql0kc"),P(l,"dragging",s[1]),o(e,"class","container svelte-1pql0kc")},m(d,b){j(d,e,b),m(e,t),f&&f.m(t,null),m(e,n),m(e,l),m(e,i),g&&g.m(e,null),s[9](e),r=!0,a||(c=K(l,"mousedown",s[3]),a=!0)},p(d,[b]){f&&f.p&&(!r||b&128)&&jt(f,u,d,d[7],r?Wt(u,d[7],b,Dl):Dt(d[7]),Sn),(!r||b&4)&&dt(t,"height",d[2]),(!r||b&2)&&P(l,"dragging",d[1]),g&&g.p&&(!r||b&128)&&jt(g,h,d,d[7],r?Wt(h,d[7],b,jl):Dt(d[7]),zn)},i(d){r||(O(f,d),O(g,d),r=!0)},o(d){F(f,d),F(g,d),r=!1},d(d){d&&p(e),f&&f.d(d),g&&g.d(d),s[9](null),a=!1,c()}}}function Ol(s,e,t){let{$$slots:n={},$$scope:l}=e;const i=Fe();let{topHeight:r}=e,{maxHeight:a}=e,c,u=!1,f=!1,h;const g=new ResizeObserver(w=>{w.forEach(()=>{i("out",{maxHeight:c.offsetHeight,maxWidth:c.offsetWidth})})});il(()=>{g.observe(c)}),rl(()=>{g.disconnect()});function d(){document.addEventListener("mousemove",b),document.addEventListener("mouseup",T),t(1,u=!0)}const b=w=>{window.getSelection().removeAllRanges();const C=Math.min(a,w.pageY-c.offsetTop-7);t(4,r=C),i("out",{topHeight:r})};function T(){document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",T),i("out",{topHeight:r}),t(1,u=!1)}function S(w){Et[w?"unshift":"push"](()=>{c=w,t(0,c)})}return s.$$set=w=>{"topHeight"in w&&t(4,r=w.topHeight),"maxHeight"in w&&t(5,a=w.maxHeight),"$$scope"in w&&t(7,l=w.$$scope)},s.$$.update=()=>{if(s.$$.dirty&65&&c&&!f){t(6,f=!0);const w=c.offsetHeight;i("out",{maxHeight:w,topHeight:Math.round(w*.7)})}s.$$.dirty&48&&Number.isInteger(r)&&Number.isInteger(a)&&t(2,h=a<r?a+"px":r+"px")},[c,u,h,d,r,a,f,l,n,S]}class Pl extends Te{constructor(e){super(),ze(this,e,Ol,Wl,_e,{topHeight:4,maxHeight:5})}}function Ul(s){let e,t,n,l,i='<div class="dragbar-icon svelte-mmou7f"></div>',r,a,c='<div class="dragbar-icon svelte-mmou7f"></div>',u,f,h='<div class="dragbar-icon svelte-mmou7f"></div>',g,d,b;const T=s[10].default,S=At(T,s,s[9],null);return{c(){e=x("div"),t=x("div"),S&&S.c(),n=B(),l=x("div"),l.innerHTML=i,r=B(),a=x("div"),a.innerHTML=c,u=B(),f=x("div"),f.innerHTML=h,this.h()},l(w){e=E(w,"DIV",{class:!0});var C=_(e);t=E(C,"DIV",{class:!0});var y=_(t);S&&S.l(y),y.forEach(p),n=A(C),l=E(C,"DIV",{class:!0,"data-svelte-h":!0}),ke(l)!=="svelte-t0brzg"&&(l.innerHTML=i),r=A(C),a=E(C,"DIV",{class:!0,"data-svelte-h":!0}),ke(a)!=="svelte-tvugpc"&&(a.innerHTML=c),u=A(C),f=E(C,"DIV",{class:!0,"data-svelte-h":!0}),ke(f)!=="svelte-1j8ul53"&&(f.innerHTML=h),C.forEach(p),this.h()},h(){o(t,"class","resizepane"),P(t,"disabled",s[0]),dt(t,"width",s[0]?void 0:s[3]),dt(t,"height",s[0]?void 0:s[2]),o(l,"class","dragbar vertical svelte-mmou7f"),P(l,"disabled",s[0]),o(a,"class","dragbar horizontal svelte-mmou7f"),P(a,"disabled",s[0]),o(f,"class","dragbar corner svelte-mmou7f"),P(f,"disabled",s[0]),o(e,"class","resizepane-container svelte-mmou7f"),P(e,"disabled",s[0])},m(w,C){j(w,e,C),m(e,t),S&&S.m(t,null),s[11](t),m(e,n),m(e,l),m(e,r),m(e,a),m(e,u),m(e,f),g=!0,d||(b=[K(l,"mousedown",s[4]("vertical")),K(a,"mousedown",s[4]("horizontal")),K(f,"mousedown",s[4]("verticalhorizontal"))],d=!0)},p(w,[C]){S&&S.p&&(!g||C&512)&&jt(S,T,w,w[9],g?Wt(T,w[9],C,null):Dt(w[9]),null),(!g||C&1)&&P(t,"disabled",w[0]),C&9&&dt(t,"width",w[0]?void 0:w[3]),C&5&&dt(t,"height",w[0]?void 0:w[2]),(!g||C&1)&&P(l,"disabled",w[0]),(!g||C&1)&&P(a,"disabled",w[0]),(!g||C&1)&&P(f,"disabled",w[0]),(!g||C&1)&&P(e,"disabled",w[0])},i(w){g||(O(S,w),g=!0)},o(w){F(S,w),g=!1},d(w){w&&p(e),S&&S.d(w),s[11](null),d=!1,Ft(b)}}}function ql(s,e,t){let{$$slots:n={},$$scope:l}=e,{disabled:i=!1}=e,{maxHeight:r}=e,{maxWidth:a}=e,{paneHeight:c}=e,{paneWidth:u}=e;const f=Fe();let h,g="",d,b;const T=y=>()=>{g=y,document.addEventListener("mousemove",S),document.addEventListener("mouseup",w)},S=y=>{if(window.getSelection().removeAllRanges(),g.includes("horizontal")){let k=y.pageY-h.offsetTop-11;k>r?k="full":(k=Math.min(r,k),k=Math.max(50,k)),f("out",{stageHeight:k})}if(g.includes("vertical")){let k=y.pageX-h.offsetLeft-10;k>a?k="full":(k=Math.min(a,k),k=Math.max(50,k)),f("out",{stageWidth:k})}};function w(){document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",w)}function C(y){Et[y?"unshift":"push"](()=>{h=y,t(1,h)})}return s.$$set=y=>{"disabled"in y&&t(0,i=y.disabled),"maxHeight"in y&&t(5,r=y.maxHeight),"maxWidth"in y&&t(6,a=y.maxWidth),"paneHeight"in y&&t(7,c=y.paneHeight),"paneWidth"in y&&t(8,u=y.paneWidth),"$$scope"in y&&t(9,l=y.$$scope)},s.$$.update=()=>{s.$$.dirty&161&&(Number.isInteger(c)&&!i?t(2,d=Math.min(c,r)+"px"):t(2,d=r+"px")),s.$$.dirty&320&&(Number.isInteger(u)?t(3,b=Math.min(u,a)+"px"):t(3,b=a+"px"))},[i,h,d,b,T,r,a,c,u,l,n,C]}class Vl extends Te{constructor(e){super(),ze(this,e,ql,Ul,_e,{disabled:0,maxHeight:5,maxWidth:6,paneHeight:7,paneWidth:8})}}function Zl(s){let e,t,n;const l=[s[0].props];var i=s[0].page;function r(a,c){let u={};for(let f=0;f<l.length;f+=1)u=Tn(u,l[f]);return c!==void 0&&c&1&&(u=Tn(u,En(l,[yn(a[0].props)]))),{props:u}}return i&&(e=xn(i,r(s)),e.$on("out",s[1])),{c(){e&&xe(e.$$.fragment),t=mt()},l(a){e&&Se(e.$$.fragment,a),t=mt()},m(a,c){e&&Ee(e,a,c),j(a,t,c),n=!0},p(a,[c]){if(c&1&&i!==(i=a[0].page)){if(e){We();const u=e;F(u.$$.fragment,1,0,()=>{ye(u,1)}),Oe()}i?(e=xn(i,r(a,c)),e.$on("out",a[1]),xe(e.$$.fragment),O(e.$$.fragment,1),Ee(e,t.parentNode,t)):e=null}else if(i){const u=c&1?En(l,[yn(a[0].props)]):{};e.$set(u)}},i(a){n||(e&&O(e.$$.fragment,a),n=!0)},o(a){e&&F(e.$$.fragment,a),n=!1},d(a){a&&p(t),e&&ye(e,a)}}}function Fl(s,e,t){let{item:n={}}=e;function l(i){vt.call(this,s,i)}return s.$$set=i=>{"item"in i&&t(0,n=i.item)},[n,l]}class Ql extends Te{constructor(e){super(),ze(this,e,Fl,Zl,_e,{item:0})}}function Cn(s,e,t){const n=s.slice();return n[9]=e[t],n}function Mn(s){let e,t,n,l,i,r='<svg class="controls_btn-icon svelte-1rdly8d" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"></rect><line x1="3" x2="21" y1="15" y2="15"></line><path d="m15 8-3 3-3-3"></path></svg>',a,c,u,f,h,g,d,b=je(s[0]),T=[];for(let y=0;y<b.length;y+=1)T[y]=Hn(Cn(s,b,y));const S=[Xl,Gl],w=[];function C(y,k){return y[1]&&y[1].page?0:1}return u=C(s),f=w[u]=S[u](s),{c(){e=x("div"),t=x("nav"),n=x("ul");for(let y=0;y<T.length;y+=1)T[y].c();l=B(),i=x("button"),i.innerHTML=r,a=B(),c=x("div"),f.c(),this.h()},l(y){e=E(y,"DIV",{class:!0});var k=_(e);t=E(k,"NAV",{class:!0});var L=_(t);n=E(L,"UL",{class:!0});var M=_(n);for(let $=0;$<T.length;$+=1)T[$].l(M);M.forEach(p),L.forEach(p),l=A(k),i=E(k,"BUTTON",{class:!0,title:!0,"data-svelte-h":!0}),ke(i)!=="svelte-675oun"&&(i.innerHTML=r),k.forEach(p),a=A(y),c=E(y,"DIV",{class:!0});var W=_(c);f.l(W),W.forEach(p),this.h()},h(){o(n,"class","svelte-1rdly8d"),o(t,"class","svelte-1rdly8d"),o(i,"class","panel_toggle svelte-1rdly8d"),o(i,"title","Collapse panel"),o(e,"class","panel_nav svelte-1rdly8d"),o(c,"class","panel_pane svelte-1rdly8d")},m(y,k){j(y,e,k),m(e,t),m(t,n);for(let L=0;L<T.length;L+=1)T[L]&&T[L].m(n,null);m(e,l),m(e,i),j(y,a,k),j(y,c,k),w[u].m(c,null),h=!0,g||(d=K(i,"click",s[3]),g=!0)},p(y,k){if(k&7){b=je(y[0]);let M;for(M=0;M<b.length;M+=1){const W=Cn(y,b,M);T[M]?T[M].p(W,k):(T[M]=Hn(W),T[M].c(),T[M].m(n,null))}for(;M<T.length;M+=1)T[M].d(1);T.length=b.length}let L=u;u=C(y),u===L?w[u].p(y,k):(We(),F(w[L],1,1,()=>{w[L]=null}),Oe(),f=w[u],f?f.p(y,k):(f=w[u]=S[u](y),f.c()),O(f,1),f.m(c,null))},i(y){h||(O(f),h=!0)},o(y){F(f),h=!1},d(y){y&&(p(e),p(a),p(c)),yt(T,y),w[u].d(),g=!1,d()}}}function Hn(s){let e,t,n=s[9].name+"",l,i,r,a,c;return{c(){e=x("li"),t=x("button"),l=pe(n),i=x("span"),r=B(),this.h()},l(u){e=E(u,"LI",{});var f=_(e);t=E(f,"BUTTON",{class:!0});var h=_(t);l=me(h,n),i=E(h,"SPAN",{class:!0}),_(i).forEach(p),h.forEach(p),r=A(f),f.forEach(p),this.h()},h(){o(i,"class","dot svelte-1rdly8d"),o(t,"class","svelte-1rdly8d"),P(t,"active",s[9]==s[1])},m(u,f){j(u,e,f),m(e,t),m(t,l),m(t,i),m(e,r),a||(c=K(t,"click",function(){an(s[2](s[9]))&&s[2](s[9]).apply(this,arguments)}),a=!0)},p(u,f){s=u,f&1&&n!==(n=s[9].name+"")&&Ze(l,n),f&3&&P(t,"active",s[9]==s[1])},d(u){u&&p(e),a=!1,c()}}}function Gl(s){let e;const t=s[7].default,n=At(t,s,s[6],null),l=n||Yl();return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){n&&n.p&&(!e||r&64)&&jt(n,t,i,i[6],e?Wt(t,i[6],r,null):Dt(i[6]),null)},i(i){e||(O(l,i),e=!0)},o(i){F(l,i),e=!1},d(i){l&&l.d(i)}}}function Xl(s){let e,t;return e=new Ql({props:{item:s[1]}}),e.$on("out",s[4]),{c(){xe(e.$$.fragment)},l(n){Se(e.$$.fragment,n)},m(n,l){Ee(e,n,l),t=!0},p(n,l){const i={};l&2&&(i.item=n[1]),e.$set(i)},i(n){t||(O(e.$$.fragment,n),t=!0)},o(n){F(e.$$.fragment,n),t=!1},d(n){ye(e,n)}}}function Yl(s){let e;return{c(){e=pe("No tab content provided")},l(t){e=me(t,"No tab content provided")},m(t,n){j(t,e,n)},d(t){t&&p(e)}}}function Jl(s){let e,t,n=s[0].length&&Mn(s);return{c(){e=x("div"),n&&n.c(),this.h()},l(l){e=E(l,"DIV",{class:!0});var i=_(e);n&&n.l(i),i.forEach(p),this.h()},h(){o(e,"class","panel_container svelte-1rdly8d")},m(l,i){j(l,e,i),n&&n.m(e,null),t=!0},p(l,[i]){l[0].length?n?(n.p(l,i),i&1&&O(n,1)):(n=Mn(l),n.c(),O(n,1),n.m(e,null)):n&&(We(),F(n,1,1,()=>{n=null}),Oe())},i(l){t||(O(n),t=!0)},o(l){F(n),t=!1},d(l){l&&p(e),n&&n.d()}}}function Kl(s,e,t){let{$$slots:n={},$$scope:l}=e;const i=Fe();let{tabs:r=[]}=e,a={},c;const u=g=>()=>{t(5,a=g.name),i("out",{selecteditem:g})};function f(){i("out",{toggleExpandPanel:!0})}function h(g){c.out&&c.out(g)}return s.$$set=g=>{"tabs"in g&&t(0,r=g.tabs),"$$scope"in g&&t(6,l=g.$$scope)},s.$$.update=()=>{s.$$.dirty&33&&(r?t(1,c=r.find(g=>g.name===a)||r[0]):t(1,c={}))},[r,c,u,f,h,a,l,n]}class $l extends Te{constructor(e){super(),ze(this,e,Kl,Jl,_e,{tabs:0})}}function Ln(s,e,t){const n=s.slice();return n[4]=e[t],n}function In(s){let e,t,n,l,i=s[4]+"",r,a,c,u;return{c(){e=x("li"),t=x("button"),n=x("span"),l=B(),r=pe(i),a=B(),this.h()},l(f){e=E(f,"LI",{});var h=_(e);t=E(h,"BUTTON",{class:!0});var g=_(t);n=E(g,"SPAN",{class:!0}),_(n).forEach(p),l=A(g),r=me(g,i),g.forEach(p),a=A(h),h.forEach(p),this.h()},h(){o(n,"class","dot svelte-9ikz8y"),o(t,"class","svelte-9ikz8y"),P(e,"active",s[1]==s[4])},m(f,h){j(f,e,h),m(e,t),m(t,n),m(t,l),m(t,r),m(e,a),c||(u=K(t,"click",function(){an(s[2](s[4]))&&s[2](s[4]).apply(this,arguments)}),c=!0)},p(f,h){s=f,h&1&&i!==(i=s[4]+"")&&Ze(r,i),h&3&&P(e,"active",s[1]==s[4])},d(f){f&&p(e),c=!1,u()}}}function es(s){let e,t=je(s[0]),n=[];for(let l=0;l<t.length;l+=1)n[l]=In(Ln(s,t,l));return{c(){e=x("ul");for(let l=0;l<n.length;l+=1)n[l].c();this.h()},l(l){e=E(l,"UL",{class:!0});var i=_(e);for(let r=0;r<n.length;r+=1)n[r].l(i);i.forEach(p),this.h()},h(){o(e,"class","stories svelte-9ikz8y")},m(l,i){j(l,e,i);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(l,[i]){if(i&7){t=je(l[0]);let r;for(r=0;r<t.length;r+=1){const a=Ln(l,t,r);n[r]?n[r].p(a,i):(n[r]=In(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},i:ae,o:ae,d(l){l&&p(e),yt(n,l)}}}function ts(s,e,t){let{items:n=[]}=e,{selected:l}=e;const i=Fe(),r=a=>()=>{i("out",{selecteditem:a})};return s.$$set=a=>{"items"in a&&t(0,n=a.items),"selected"in a&&t(1,l=a.selected)},[n,l,r]}class ns extends Te{constructor(e){super(),ze(this,e,ts,es,_e,{items:0,selected:1})}}function cl(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let st=cl();function ls(s){st=s}const ul=/[&<>"']/,ss=new RegExp(ul.source,"g"),hl=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,is=new RegExp(hl.source,"g"),rs={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Rn=s=>rs[s];function ge(s,e){if(e){if(ul.test(s))return s.replace(ss,Rn)}else if(hl.test(s))return s.replace(is,Rn);return s}const os=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function fl(s){return s.replace(os,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const as=/(^|[^\[])\^/g;function X(s,e){s=typeof s=="string"?s:s.source,e=e||"";const t={replace:(n,l)=>(l=l.source||l,l=l.replace(as,"$1"),s=s.replace(n,l),t),getRegex:()=>new RegExp(s,e)};return t}const cs=/[^\w:]/g,us=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Nn(s,e,t){if(s){let n;try{n=decodeURIComponent(fl(t)).replace(cs,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}e&&!us.test(t)&&(t=gs(e,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const Nt={},hs=/^[^:]+:\/*[^/]*$/,fs=/^([^:]+:)[\s\S]*$/,ds=/^([^:]+:\/*[^/]*)[\s\S]*$/;function gs(s,e){Nt[" "+s]||(hs.test(s)?Nt[" "+s]=s+"/":Nt[" "+s]=Bt(s,"/",!0)),s=Nt[" "+s];const t=s.indexOf(":")===-1;return e.substring(0,2)==="//"?t?e:s.replace(fs,"$1")+e:e.charAt(0)==="/"?t?e:s.replace(ds,"$1")+e:s+e}const Ot={exec:function(){}};function Bn(s,e){const t=s.replace(/\|/g,(i,r,a)=>{let c=!1,u=r;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),n=t.split(/ \|/);let l=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;l<n.length;l++)n[l]=n[l].trim().replace(/\\\|/g,"|");return n}function Bt(s,e,t){const n=s.length;if(n===0)return"";let l=0;for(;l<n;){const i=s.charAt(n-l-1);if(i===e&&!t)l++;else if(i!==e&&t)l++;else break}return s.slice(0,n-l)}function ps(s,e){if(s.indexOf(e[1])===-1)return-1;const t=s.length;let n=0,l=0;for(;l<t;l++)if(s[l]==="\\")l++;else if(s[l]===e[0])n++;else if(s[l]===e[1]&&(n--,n<0))return l;return-1}function ms(s){s&&s.sanitize&&!s.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function An(s,e){if(e<1)return"";let t="";for(;e>1;)e&1&&(t+=s),e>>=1,s+=s;return t+s}function jn(s,e,t,n){const l=e.href,i=e.title?ge(e.title):null,r=s[1].replace(/\\([\[\]])/g,"$1");if(s[0].charAt(0)!=="!"){n.state.inLink=!0;const a={type:"link",raw:t,href:l,title:i,text:r,tokens:n.inlineTokens(r)};return n.state.inLink=!1,a}return{type:"image",raw:t,href:l,title:i,text:ge(r)}}function ks(s,e){const t=s.match(/^(\s+)(?:```)/);if(t===null)return e;const n=t[1];return e.split(`
2
- `).map(l=>{const i=l.match(/^\s+/);if(i===null)return l;const[r]=i;return r.length>=n.length?l.slice(n.length):l}).join(`
3
- `)}class cn{constructor(e){this.options=e||st}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Bt(n,`
4
- `)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],l=ks(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:l}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(/#$/.test(n)){const l=Bt(n,"#");(this.options.pedantic||!l||/ $/.test(l))&&(n=l.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const n=t[0].replace(/^ *>[ \t]?/gm,""),l=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(n);return this.lexer.state.top=l,{type:"blockquote",raw:t[0],tokens:i,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,l,i,r,a,c,u,f,h,g,d,b,T=t[1].trim();const S=T.length>1,w={type:"list",raw:"",ordered:S,start:S?+T.slice(0,-1):"",loose:!1,items:[]};T=S?`\\d{1,9}\\${T.slice(-1)}`:`\\${T}`,this.options.pedantic&&(T=S?T:"[*+-]");const C=new RegExp(`^( {0,3}${T})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(b=!1,!(!(t=C.exec(e))||this.rules.block.hr.test(e)));){if(n=t[0],e=e.substring(n.length),f=t[2].split(`
5
- `,1)[0].replace(/^\t+/,k=>" ".repeat(3*k.length)),h=e.split(`
6
- `,1)[0],this.options.pedantic?(r=2,d=f.trimLeft()):(r=t[2].search(/[^ ]/),r=r>4?1:r,d=f.slice(r),r+=t[1].length),c=!1,!f&&/^ *$/.test(h)&&(n+=h+`
7
- `,e=e.substring(h.length+1),b=!0),!b){const k=new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),L=new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),M=new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),W=new RegExp(`^ {0,${Math.min(3,r-1)}}#`);for(;e&&(g=e.split(`
8
- `,1)[0],h=g,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(M.test(h)||W.test(h)||k.test(h)||L.test(e)));){if(h.search(/[^ ]/)>=r||!h.trim())d+=`
9
- `+h.slice(r);else{if(c||f.search(/[^ ]/)>=4||M.test(f)||W.test(f)||L.test(f))break;d+=`
10
- `+h}!c&&!h.trim()&&(c=!0),n+=g+`
11
- `,e=e.substring(g.length+1),f=h.slice(r)}}w.loose||(u?w.loose=!0:/\n *\n *$/.test(n)&&(u=!0)),this.options.gfm&&(l=/^\[[ xX]\] /.exec(d),l&&(i=l[0]!=="[ ] ",d=d.replace(/^\[[ xX]\] +/,""))),w.items.push({type:"list_item",raw:n,task:!!l,checked:i,loose:!1,text:d}),w.raw+=n}w.items[w.items.length-1].raw=n.trimRight(),w.items[w.items.length-1].text=d.trimRight(),w.raw=w.raw.trimRight();const y=w.items.length;for(a=0;a<y;a++)if(this.lexer.state.top=!1,w.items[a].tokens=this.lexer.blockTokens(w.items[a].text,[]),!w.loose){const k=w.items[a].tokens.filter(M=>M.type==="space"),L=k.length>0&&k.some(M=>/\n.*\n/.test(M.raw));w.loose=L}if(w.loose)for(a=0;a<y;a++)w.items[a].loose=!0;return w}}html(e){const t=this.rules.block.html.exec(e);if(t){const n={type:"html",raw:t[0],pre:!this.options.sanitizer&&(t[1]==="pre"||t[1]==="script"||t[1]==="style"),text:t[0]};if(this.options.sanitize){const l=this.options.sanitizer?this.options.sanitizer(t[0]):ge(t[0]);n.type="paragraph",n.text=l,n.tokens=this.lexer.inline(l)}return n}}def(e){const t=this.rules.block.def.exec(e);if(t){const n=t[1].toLowerCase().replace(/\s+/g," "),l=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:l,title:i}}}table(e){const t=this.rules.block.table.exec(e);if(t){const n={type:"table",header:Bn(t[1]).map(l=>({text:l})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(`
12
- `):[]};if(n.header.length===n.align.length){n.raw=t[0];let l=n.align.length,i,r,a,c;for(i=0;i<l;i++)/^ *-+: *$/.test(n.align[i])?n.align[i]="right":/^ *:-+: *$/.test(n.align[i])?n.align[i]="center":/^ *:-+ *$/.test(n.align[i])?n.align[i]="left":n.align[i]=null;for(l=n.rows.length,i=0;i<l;i++)n.rows[i]=Bn(n.rows[i],n.header.length).map(u=>({text:u}));for(l=n.header.length,r=0;r<l;r++)n.header[r].tokens=this.lexer.inline(n.header[r].text);for(l=n.rows.length,r=0;r<l;r++)for(c=n.rows[r],a=0;a<c.length;a++)c[a].tokens=this.lexer.inline(c[a].text);return n}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const n=t[1].charAt(t[1].length-1)===`
13
- `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:ge(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):ge(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;const r=Bt(n.slice(0,-1),"\\");if((n.length-r.length)%2===0)return}else{const r=ps(t[2],"()");if(r>-1){const c=(t[0].indexOf("!")===0?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,c).trim(),t[3]=""}}let l=t[2],i="";if(this.options.pedantic){const r=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(l);r&&(l=r[1],i=r[3])}else i=t[3]?t[3].slice(1,-1):"";return l=l.trim(),/^</.test(l)&&(this.options.pedantic&&!/>$/.test(n)?l=l.slice(1):l=l.slice(1,-1)),jn(t,{href:l&&l.replace(this.rules.inline._escapes,"$1"),title:i&&i.replace(this.rules.inline._escapes,"$1")},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let l=(n[2]||n[1]).replace(/\s+/g," ");if(l=t[l.toLowerCase()],!l){const i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return jn(n,l,n[0],this.lexer)}}emStrong(e,t,n=""){let l=this.rules.inline.emStrong.lDelim.exec(e);if(!l||l[3]&&n.match(/[\p{L}\p{N}]/u))return;const i=l[1]||l[2]||"";if(!i||i&&(n===""||this.rules.inline.punctuation.exec(n))){const r=l[0].length-1;let a,c,u=r,f=0;const h=l[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(h.lastIndex=0,t=t.slice(-1*e.length+r);(l=h.exec(t))!=null;){if(a=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!a)continue;if(c=a.length,l[3]||l[4]){u+=c;continue}else if((l[5]||l[6])&&r%3&&!((r+c)%3)){f+=c;continue}if(u-=c,u>0)continue;c=Math.min(c,c+u+f);const g=e.slice(0,r+l.index+(l[0].length-a.length)+c);if(Math.min(r,c)%2){const b=g.slice(1,-1);return{type:"em",raw:g,text:b,tokens:this.lexer.inlineTokens(b)}}const d=g.slice(2,-2);return{type:"strong",raw:g,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(/\n/g," ");const l=/[^ ]/.test(n),i=/^ /.test(n)&&/ $/.test(n);return l&&i&&(n=n.substring(1,n.length-1)),n=ge(n,!0),{type:"codespan",raw:t[0],text:n}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let l,i;return n[2]==="@"?(l=ge(this.options.mangle?t(n[1]):n[1]),i="mailto:"+l):(l=ge(n[1]),i=l),{type:"link",raw:n[0],text:l,href:i,tokens:[{type:"text",raw:l,text:l}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let l,i;if(n[2]==="@")l=ge(this.options.mangle?t(n[0]):n[0]),i="mailto:"+l;else{let r;do r=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(r!==n[0]);l=ge(n[0]),n[1]==="www."?i="http://"+n[0]:i=n[0]}return{type:"link",raw:n[0],text:l,href:i,tokens:[{type:"text",raw:l,text:l}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let l;return this.lexer.state.inRawBlock?l=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):ge(n[0]):n[0]:l=ge(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:l}}}}const N={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Ot,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};N._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;N._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;N.def=X(N.def).replace("label",N._label).replace("title",N._title).getRegex();N.bullet=/(?:[*+-]|\d{1,9}[.)])/;N.listItemStart=X(/^( *)(bull) */).replace("bull",N.bullet).getRegex();N.list=X(N.list).replace(/bull/g,N.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+N.def.source+")").getRegex();N._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";N._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;N.html=X(N.html,"i").replace("comment",N._comment).replace("tag",N._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();N.paragraph=X(N._paragraph).replace("hr",N.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",N._tag).getRegex();N.blockquote=X(N.blockquote).replace("paragraph",N.paragraph).getRegex();N.normal={...N};N.gfm={...N.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};N.gfm.table=X(N.gfm.table).replace("hr",N.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",N._tag).getRegex();N.gfm.paragraph=X(N._paragraph).replace("hr",N.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",N.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",N._tag).getRegex();N.pedantic={...N.normal,html:X(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",N._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ot,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:X(N.normal._paragraph).replace("hr",N.hr).replace("heading",` *#{1,6} *[^
14
- ]`).replace("lheading",N.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const H={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ot,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Ot,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};H._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";H.punctuation=X(H.punctuation).replace(/punctuation/g,H._punctuation).getRegex();H.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;H.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;H._comment=X(N._comment).replace("(?:-->|$)","-->").getRegex();H.emStrong.lDelim=X(H.emStrong.lDelim).replace(/punct/g,H._punctuation).getRegex();H.emStrong.rDelimAst=X(H.emStrong.rDelimAst,"g").replace(/punct/g,H._punctuation).getRegex();H.emStrong.rDelimUnd=X(H.emStrong.rDelimUnd,"g").replace(/punct/g,H._punctuation).getRegex();H._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;H._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;H._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;H.autolink=X(H.autolink).replace("scheme",H._scheme).replace("email",H._email).getRegex();H._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;H.tag=X(H.tag).replace("comment",H._comment).replace("attribute",H._attribute).getRegex();H._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;H._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;H._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;H.link=X(H.link).replace("label",H._label).replace("href",H._href).replace("title",H._title).getRegex();H.reflink=X(H.reflink).replace("label",H._label).replace("ref",N._label).getRegex();H.nolink=X(H.nolink).replace("ref",N._label).getRegex();H.reflinkSearch=X(H.reflinkSearch,"g").replace("reflink",H.reflink).replace("nolink",H.nolink).getRegex();H.normal={...H};H.pedantic={...H.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:X(/^!?\[(label)\]\((.*?)\)/).replace("label",H._label).getRegex(),reflink:X(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",H._label).getRegex()};H.gfm={...H.normal,escape:X(H.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/};H.gfm.url=X(H.gfm.url,"i").replace("email",H.gfm._extended_email).getRegex();H.breaks={...H.gfm,br:X(H.br).replace("{2,}","*").getRegex(),text:X(H.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};function bs(s){return s.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function Dn(s){let e="",t,n;const l=s.length;for(t=0;t<l;t++)n=s.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),e+="&#"+n+";";return e}class Ke{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||st,this.options.tokenizer=this.options.tokenizer||new cn,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:N.normal,inline:H.normal};this.options.pedantic?(t.block=N.pedantic,t.inline=H.pedantic):this.options.gfm&&(t.block=N.gfm,this.options.breaks?t.inline=H.breaks:t.inline=H.gfm),this.tokenizer.rules=t}static get rules(){return{block:N,inline:H}}static lex(e,t){return new Ke(t).lex(e)}static lexInline(e,t){return new Ke(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
15
- `),this.blockTokens(e,this.tokens);let t;for(;t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){this.options.pedantic?e=e.replace(/\t/g," ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(a,c,u)=>c+" ".repeat(u.length));let n,l,i,r;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(n=a.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length),n.raw.length===1&&t.length>0?t[t.length-1].raw+=`
16
- `:t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length),l=t[t.length-1],l&&(l.type==="paragraph"||l.type==="text")?(l.raw+=`
17
- `+n.raw,l.text+=`
18
- `+n.text,this.inlineQueue[this.inlineQueue.length-1].src=l.text):t.push(n);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length),l=t[t.length-1],l&&(l.type==="paragraph"||l.type==="text")?(l.raw+=`
19
- `+n.raw,l.text+=`
20
- `+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=l.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(i=e,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const c=e.slice(1);let u;this.options.extensions.startBlock.forEach(function(f){u=f.call({lexer:this},c),typeof u=="number"&&u>=0&&(a=Math.min(a,u))}),a<1/0&&a>=0&&(i=e.substring(0,a+1))}if(this.state.top&&(n=this.tokenizer.paragraph(i))){l=t[t.length-1],r&&l.type==="paragraph"?(l.raw+=`
21
- `+n.raw,l.text+=`
22
- `+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):t.push(n),r=i.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),l=t[t.length-1],l&&l.type==="text"?(l.raw+=`
23
- `+n.raw,l.text+=`
24
- `+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):t.push(n);continue}if(e){const a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,l,i,r=e,a,c,u;if(this.tokens.links){const f=Object.keys(this.tokens.links);if(f.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)f.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,a.index)+"["+An("a",a[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,a.index)+"["+An("a",a[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.escapedEmSt.exec(r))!=null;)r=r.slice(0,a.index+a[0].length-2)+"++"+r.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(c||(u=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>(n=f.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),l=t[t.length-1],l&&n.type==="text"&&l.type==="text"?(l.raw+=n.raw,l.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),l=t[t.length-1],l&&n.type==="text"&&l.type==="text"?(l.raw+=n.raw,l.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,r,u)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e,Dn)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e,Dn))){e=e.substring(n.raw.length),t.push(n);continue}if(i=e,this.options.extensions&&this.options.extensions.startInline){let f=1/0;const h=e.slice(1);let g;this.options.extensions.startInline.forEach(function(d){g=d.call({lexer:this},h),typeof g=="number"&&g>=0&&(f=Math.min(f,g))}),f<1/0&&f>=0&&(i=e.substring(0,f+1))}if(n=this.tokenizer.inlineText(i,bs)){e=e.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(u=n.raw.slice(-1)),c=!0,l=t[t.length-1],l&&l.type==="text"?(l.raw+=n.raw,l.text+=n.text):t.push(n);continue}if(e){const f="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return t}}class un{constructor(e){this.options=e||st}code(e,t,n){const l=(t||"").match(/\S*/)[0];if(this.options.highlight){const i=this.options.highlight(e,l);i!=null&&i!==e&&(n=!0,e=i)}return e=e.replace(/\n$/,"")+`
25
- `,l?'<pre><code class="'+this.options.langPrefix+ge(l)+'">'+(n?e:ge(e,!0))+`</code></pre>
26
- `:"<pre><code>"+(n?e:ge(e,!0))+`</code></pre>
27
- `}blockquote(e){return`<blockquote>
28
- ${e}</blockquote>
29
- `}html(e){return e}heading(e,t,n,l){if(this.options.headerIds){const i=this.options.headerPrefix+l.slug(n);return`<h${t} id="${i}">${e}</h${t}>
30
- `}return`<h${t}>${e}</h${t}>
31
- `}hr(){return this.options.xhtml?`<hr/>
32
- `:`<hr>
33
- `}list(e,t,n){const l=t?"ol":"ul",i=t&&n!==1?' start="'+n+'"':"";return"<"+l+i+`>
34
- `+e+"</"+l+`>
35
- `}listitem(e){return`<li>${e}</li>
36
- `}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>
37
- `}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),`<table>
38
- <thead>
39
- `+e+`</thead>
40
- `+t+`</table>
41
- `}tablerow(e){return`<tr>
42
- ${e}</tr>
43
- `}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>
44
- `}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){if(e=Nn(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let l='<a href="'+e+'"';return t&&(l+=' title="'+t+'"'),l+=">"+n+"</a>",l}image(e,t,n){if(e=Nn(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let l=`<img src="${e}" alt="${n}"`;return t&&(l+=` title="${t}"`),l+=this.options.xhtml?"/>":">",l}text(e){return e}}class dl{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class gl{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,l=0;if(this.seen.hasOwnProperty(n)){l=this.seen[e];do l++,n=e+"-"+l;while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=l,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class $e{constructor(e){this.options=e||st,this.options.renderer=this.options.renderer||new un,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new dl,this.slugger=new gl}static parse(e,t){return new $e(t).parse(e)}static parseInline(e,t){return new $e(t).parseInline(e)}parse(e,t=!0){let n="",l,i,r,a,c,u,f,h,g,d,b,T,S,w,C,y,k,L,M;const W=e.length;for(l=0;l<W;l++){if(d=e[l],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[d.type]&&(M=this.options.extensions.renderers[d.type].call({parser:this},d),M!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type))){n+=M||"";continue}switch(d.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{n+=this.renderer.heading(this.parseInline(d.tokens),d.depth,fl(this.parseInline(d.tokens,this.textRenderer)),this.slugger);continue}case"code":{n+=this.renderer.code(d.text,d.lang,d.escaped);continue}case"table":{for(h="",f="",a=d.header.length,i=0;i<a;i++)f+=this.renderer.tablecell(this.parseInline(d.header[i].tokens),{header:!0,align:d.align[i]});for(h+=this.renderer.tablerow(f),g="",a=d.rows.length,i=0;i<a;i++){for(u=d.rows[i],f="",c=u.length,r=0;r<c;r++)f+=this.renderer.tablecell(this.parseInline(u[r].tokens),{header:!1,align:d.align[r]});g+=this.renderer.tablerow(f)}n+=this.renderer.table(h,g);continue}case"blockquote":{g=this.parse(d.tokens),n+=this.renderer.blockquote(g);continue}case"list":{for(b=d.ordered,T=d.start,S=d.loose,a=d.items.length,g="",i=0;i<a;i++)C=d.items[i],y=C.checked,k=C.task,w="",C.task&&(L=this.renderer.checkbox(y),S?C.tokens.length>0&&C.tokens[0].type==="paragraph"?(C.tokens[0].text=L+" "+C.tokens[0].text,C.tokens[0].tokens&&C.tokens[0].tokens.length>0&&C.tokens[0].tokens[0].type==="text"&&(C.tokens[0].tokens[0].text=L+" "+C.tokens[0].tokens[0].text)):C.tokens.unshift({type:"text",text:L}):w+=L),w+=this.parse(C.tokens,S),g+=this.renderer.listitem(w,k,y);n+=this.renderer.list(g,b,T);continue}case"html":{n+=this.renderer.html(d.text);continue}case"paragraph":{n+=this.renderer.paragraph(this.parseInline(d.tokens));continue}case"text":{for(g=d.tokens?this.parseInline(d.tokens):d.text;l+1<W&&e[l+1].type==="text";)d=e[++l],g+=`
45
- `+(d.tokens?this.parseInline(d.tokens):d.text);n+=t?this.renderer.paragraph(g):g;continue}default:{const $='Token with "'+d.type+'" type was not found.';if(this.options.silent){console.error($);return}else throw new Error($)}}}return n}parseInline(e,t){t=t||this.renderer;let n="",l,i,r;const a=e.length;for(l=0;l<a;l++){if(i=e[l],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]&&(r=this.options.extensions.renderers[i.type].call({parser:this},i),r!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type))){n+=r||"";continue}switch(i.type){case"escape":{n+=t.text(i.text);break}case"html":{n+=t.html(i.text);break}case"link":{n+=t.link(i.href,i.title,this.parseInline(i.tokens,t));break}case"image":{n+=t.image(i.href,i.title,i.text);break}case"strong":{n+=t.strong(this.parseInline(i.tokens,t));break}case"em":{n+=t.em(this.parseInline(i.tokens,t));break}case"codespan":{n+=t.codespan(i.text);break}case"br":{n+=t.br();break}case"del":{n+=t.del(this.parseInline(i.tokens,t));break}case"text":{n+=t.text(i.text);break}default:{const c='Token with "'+i.type+'" type was not found.';if(this.options.silent){console.error(c);return}else throw new Error(c)}}}return n}}class Pt{constructor(e){this.options=e||st}preprocess(e){return e}postprocess(e){return e}}wn(Pt,"passThroughHooks",new Set(["preprocess","postprocess"]));function _s(s,e,t){return n=>{if(n.message+=`
46
- Please report this to https://github.com/markedjs/marked.`,s){const l="<p>An error occurred:</p><pre>"+ge(n.message+"",!0)+"</pre>";if(e)return Promise.resolve(l);if(t){t(null,l);return}return l}if(e)return Promise.reject(n);if(t){t(n);return}throw n}}function pl(s,e){return(t,n,l)=>{typeof n=="function"&&(l=n,n=null);const i={...n};n={...R.defaults,...i};const r=_s(n.silent,n.async,l);if(typeof t>"u"||t===null)return r(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return r(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(ms(n),n.hooks&&(n.hooks.options=n),l){const a=n.highlight;let c;try{n.hooks&&(t=n.hooks.preprocess(t)),c=s(t,n)}catch(h){return r(h)}const u=function(h){let g;if(!h)try{n.walkTokens&&R.walkTokens(c,n.walkTokens),g=e(c,n),n.hooks&&(g=n.hooks.postprocess(g))}catch(d){h=d}return n.highlight=a,h?r(h):l(null,g)};if(!a||a.length<3||(delete n.highlight,!c.length))return u();let f=0;R.walkTokens(c,function(h){h.type==="code"&&(f++,setTimeout(()=>{a(h.text,h.lang,function(g,d){if(g)return u(g);d!=null&&d!==h.text&&(h.text=d,h.escaped=!0),f--,f===0&&u()})},0))}),f===0&&u();return}if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(t):t).then(a=>s(a,n)).then(a=>n.walkTokens?Promise.all(R.walkTokens(a,n.walkTokens)).then(()=>a):a).then(a=>e(a,n)).then(a=>n.hooks?n.hooks.postprocess(a):a).catch(r);try{n.hooks&&(t=n.hooks.preprocess(t));const a=s(t,n);n.walkTokens&&R.walkTokens(a,n.walkTokens);let c=e(a,n);return n.hooks&&(c=n.hooks.postprocess(c)),c}catch(a){return r(a)}}}function R(s,e,t){return pl(Ke.lex,$e.parse)(s,e,t)}R.options=R.setOptions=function(s){return R.defaults={...R.defaults,...s},ls(R.defaults),R};R.getDefaults=cl;R.defaults=st;R.use=function(...s){const e=R.defaults.extensions||{renderers:{},childTokens:{}};s.forEach(t=>{const n={...t};if(n.async=R.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach(l=>{if(!l.name)throw new Error("extension name required");if(l.renderer){const i=e.renderers[l.name];i?e.renderers[l.name]=function(...r){let a=l.renderer.apply(this,r);return a===!1&&(a=i.apply(this,r)),a}:e.renderers[l.name]=l.renderer}if(l.tokenizer){if(!l.level||l.level!=="block"&&l.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");e[l.level]?e[l.level].unshift(l.tokenizer):e[l.level]=[l.tokenizer],l.start&&(l.level==="block"?e.startBlock?e.startBlock.push(l.start):e.startBlock=[l.start]:l.level==="inline"&&(e.startInline?e.startInline.push(l.start):e.startInline=[l.start]))}l.childTokens&&(e.childTokens[l.name]=l.childTokens)}),n.extensions=e),t.renderer){const l=R.defaults.renderer||new un;for(const i in t.renderer){const r=l[i];l[i]=(...a)=>{let c=t.renderer[i].apply(l,a);return c===!1&&(c=r.apply(l,a)),c}}n.renderer=l}if(t.tokenizer){const l=R.defaults.tokenizer||new cn;for(const i in t.tokenizer){const r=l[i];l[i]=(...a)=>{let c=t.tokenizer[i].apply(l,a);return c===!1&&(c=r.apply(l,a)),c}}n.tokenizer=l}if(t.hooks){const l=R.defaults.hooks||new Pt;for(const i in t.hooks){const r=l[i];Pt.passThroughHooks.has(i)?l[i]=a=>{if(R.defaults.async)return Promise.resolve(t.hooks[i].call(l,a)).then(u=>r.call(l,u));const c=t.hooks[i].call(l,a);return r.call(l,c)}:l[i]=(...a)=>{let c=t.hooks[i].apply(l,a);return c===!1&&(c=r.apply(l,a)),c}}n.hooks=l}if(t.walkTokens){const l=R.defaults.walkTokens;n.walkTokens=function(i){let r=[];return r.push(t.walkTokens.call(this,i)),l&&(r=r.concat(l.call(this,i))),r}}R.setOptions(n)})};R.walkTokens=function(s,e){let t=[];for(const n of s)switch(t=t.concat(e.call(R,n)),n.type){case"table":{for(const l of n.header)t=t.concat(R.walkTokens(l.tokens,e));for(const l of n.rows)for(const i of l)t=t.concat(R.walkTokens(i.tokens,e));break}case"list":{t=t.concat(R.walkTokens(n.items,e));break}default:R.defaults.extensions&&R.defaults.extensions.childTokens&&R.defaults.extensions.childTokens[n.type]?R.defaults.extensions.childTokens[n.type].forEach(function(l){t=t.concat(R.walkTokens(n[l],e))}):n.tokens&&(t=t.concat(R.walkTokens(n.tokens,e)))}return t};R.parseInline=pl(Ke.lexInline,$e.parseInline);R.Parser=$e;R.parser=$e.parse;R.Renderer=un;R.TextRenderer=dl;R.Lexer=Ke;R.lexer=Ke.lex;R.Tokenizer=cn;R.Slugger=gl;R.Hooks=Pt;R.parse=R;R.options;R.setOptions;R.use;R.walkTokens;R.parseInline;$e.parse;Ke.lex;const vs="modulepreload",ws=function(s){return"/"+s},Wn={},ml=function(e,t,n){let l=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),a=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));l=Promise.allSettled(t.map(c=>{if(c=ws(c),c in Wn)return;Wn[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":vs,u||(h.as="script"),h.crossOrigin="",h.href=c,a&&h.setAttribute("nonce",a),document.head.appendChild(h),u)return new Promise((g,d)=>{h.addEventListener("load",g),h.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(r){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=r,window.dispatchEvent(a),!a.defaultPrevented)throw r}return l.then(r=>{for(const a of r||[])a.status==="rejected"&&i(a.reason);return e().catch(i)})},kl=async s=>{try{(await ml(async()=>{const{default:t}=await import("./index-DLbPO8Sw.js");return{default:t}},[])).default.highlightElement(s)}catch(e){console.error("Could not load highlight.js",e)}};function xs(s){let e,t,n=R(s[0].descriptionfile||s[0].description)+"";return{c(){e=x("div"),t=new ol(!1),this.h()},l(l){e=E(l,"DIV",{class:!0});var i=_(e);t=al(i,!1),i.forEach(p),this.h()},h(){t.a=null,o(e,"class","markdown-body")},m(l,i){j(l,e,i),t.m(n,e),s[2](e)},p(l,[i]){i&1&&n!==(n=R(l[0].descriptionfile||l[0].description)+"")&&t.p(n)},i:ae,o:ae,d(l){l&&p(e),s[2](null)}}}function Es(s,e,t){let{das:n}=e,l;function i(r){Et[r?"unshift":"push"](()=>{l=r,t(1,l)})}return s.$$set=r=>{"das"in r&&t(0,n=r.das)},s.$$.update=()=>{s.$$.dirty&3&&n&&l&&setTimeout(()=>{l&&Array.from(l.querySelectorAll("pre code")).forEach(r=>{kl(r)})},200)},[n,l,i]}class ys extends Te{constructor(e){super(),ze(this,e,Es,xs,_e,{das:0})}}function On(s){let e;return{c(){e=pe("Running Gardenjs in devmodus. No Code view supported.")},l(t){e=me(t,"Running Gardenjs in devmodus. No Code view supported.")},m(t,n){j(t,e,n)},d(t){t&&p(e)}}}function Pn(s){let e,t,n;return{c(){e=x("pre"),t=x("code"),n=pe(s[1]),this.h()},l(l){e=E(l,"PRE",{});var i=_(e);t=E(i,"CODE",{class:!0});var r=_(t);n=me(r,s[1]),r.forEach(p),i.forEach(p),this.h()},h(){o(t,"class","language-xml")},m(l,i){j(l,e,i),m(e,t),m(t,n),s[5](t)},p(l,i){i&2&&Ze(n,l[1])},d(l){l&&p(e),s[5](null)}}}function Ts(s){let e,t,n=s[0]&&On(),l=s[1]&&Pn(s);return{c(){e=x("div"),n&&n.c(),t=B(),l&&l.c()},l(i){e=E(i,"DIV",{});var r=_(e);n&&n.l(r),t=A(r),l&&l.l(r),r.forEach(p)},m(i,r){j(i,e,r),n&&n.m(e,null),m(e,t),l&&l.m(e,null)},p(i,[r]){i[0]?n||(n=On(),n.c(),n.m(e,t)):n&&(n.d(1),n=null),i[1]?l?l.p(i,r):(l=Pn(i),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},i:ae,o:ae,d(i){i&&p(e),n&&n.d(),l&&l.d()}}}function zs(s,e,t){let{componentName:n}=e,{devmodus:l}=e,i,r,a=[];l||c();async function c(){const h=await ml(()=>import("../raw_component_import_map.js"),[]);t(4,a=h.rawComponentMap)}function u(h,g){t(1,i=null),setTimeout(()=>{t(1,i=g[h])})}function f(h){Et[h?"unshift":"push"](()=>{r=h,t(2,r)})}return s.$$set=h=>{"componentName"in h&&t(3,n=h.componentName),"devmodus"in h&&t(0,l=h.devmodus)},s.$$.update=()=>{s.$$.dirty&24&&u(n,a),s.$$.dirty&6&&i&&r&&kl(r)},[l,i,r,n,a,f]}class Ss extends Te{constructor(e){super(),ze(this,e,zs,Ts,_e,{componentName:3,devmodus:0})}}function Cs(s){let e,t;return{c(){e=x("iframe"),this.h()},l(n){e=E(n,"IFRAME",{class:!0,title:!0,src:!0,style:!0}),_(e).forEach(p),this.h()},h(){o(e,"class","stage_iframe svelte-17n05ij"),o(e,"title","preview"),wt(e.src,t="/frame.html")||o(e,"src",t),o(e,"style",s[0])},m(n,l){j(n,e,l),s[20](e)},p(n,l){l&1&&o(e,"style",n[0])},d(n){n&&p(e),s[20](null)}}}function Ms(s){let e,t;return e=new Vl({props:{slot:"top",disabled:s[1]!=="full",maxHeight:s[6],maxWidth:s[7],paneHeight:s[4],paneWidth:s[5],$$slots:{default:[Cs]},$$scope:{ctx:s}}}),e.$on("out",s[12]),{c(){xe(e.$$.fragment)},l(n){Se(e.$$.fragment,n)},m(n,l){Ee(e,n,l),t=!0},p(n,l){const i={};l&2&&(i.disabled=n[1]!=="full"),l&64&&(i.maxHeight=n[6]),l&128&&(i.maxWidth=n[7]),l&16&&(i.paneHeight=n[4]),l&32&&(i.paneWidth=n[5]),l&33554945&&(i.$$scope={dirty:l,ctx:n}),e.$set(i)},i(n){t||(O(e.$$.fragment,n),t=!0)},o(n){F(e.$$.fragment,n),t=!1},d(n){ye(e,n)}}}function Un(s){let e,t;return e=new $l({props:{tabs:s[10]}}),e.$on("out",s[19]),{c(){xe(e.$$.fragment)},l(n){Se(e.$$.fragment,n)},m(n,l){Ee(e,n,l),t=!0},p(n,l){const i={};l&1024&&(i.tabs=n[10]),e.$set(i)},i(n){t||(O(e.$$.fragment,n),t=!0)},o(n){F(e.$$.fragment,n),t=!1},d(n){ye(e,n)}}}function Hs(s){let e,t,n=s[8]&&Un(s);return{c(){e=x("div"),n&&n.c(),this.h()},l(l){e=E(l,"DIV",{slot:!0,class:!0});var i=_(e);n&&n.l(i),i.forEach(p),this.h()},h(){o(e,"slot","bottom"),o(e,"class","panel svelte-17n05ij")},m(l,i){j(l,e,i),n&&n.m(e,null),t=!0},p(l,i){l[8]?n?(n.p(l,i),i&256&&O(n,1)):(n=Un(l),n.c(),O(n,1),n.m(e,null)):n&&(We(),F(n,1,1,()=>{n=null}),Oe())},i(l){t||(O(n),t=!0)},o(l){F(n),t=!1},d(l){l&&p(e),n&&n.d()}}}function Ls(s){let e,t;return e=new Pl({props:{topHeight:s[2],maxHeight:s[3],$$slots:{bottom:[Hs],top:[Ms]},$$scope:{ctx:s}}}),e.$on("out",s[11]),{c(){xe(e.$$.fragment)},l(n){Se(e.$$.fragment,n)},m(n,l){Ee(e,n,l),t=!0},p(n,[l]){const i={};l&4&&(i.topHeight=n[2]),l&8&&(i.maxHeight=n[3]),l&33556467&&(i.$$scope={dirty:l,ctx:n}),e.$set(i)},i(n){t||(O(e.$$.fragment,n),t=!0)},o(n){F(e.$$.fragment,n),t=!1},d(n){ye(e,n)}}}function Is(s){globalThis.history.pushState({selectedExample:s.detail.selecteditem},"",window.location.pathname.substring(7))}function Rs(s,e,t){let n;const l=Fe();let{componentName:i}=e,{das:r={}}=e,{stageStyle:a}=e,{stageSize:c}=e,{selectedExample:u}=e,{stageContainerHeight:f}=e,{stageContainerMaxHeight:h}=e,{stageHeight:g}=e,{stageWidth:d}=e,{stageMaxHeight:b}=e,{stageMaxWidth:T}=e,{panelExpanded:S}=e,{theme:w}=e,{devmodus:C}=e,y,k;const L=new ResizeObserver(z=>{z.forEach(Q=>{W(Q.contentRect)})});il(()=>{k&&(L.observe(k),t(9,k.contentWindow.onload=()=>{t(18,y=!0)},k),k.contentWindow.addEventListener("mousemove",function(z){var Q=k.getBoundingClientRect(),I=new CustomEvent("mousemove",{bubbles:!0,cancelable:!1});I.pageX=z.clientX+Q.left,I.pageY=z.clientY+Q.top,k.dispatchEvent(I)}),k.contentWindow.addEventListener("mouseup",function(){var z=new CustomEvent("mouseup",{bubbles:!0,cancelable:!1});k.dispatchEvent(z)}))}),rl(()=>{L.disconnect()});function M(z){var I;const Q=[];return z.description&&Q.push({name:"Notes",props:{das:z},page:ys}),(I=z.examples)!=null&&I.length&&Q.push({name:"Examples",props:{selected:u,items:z.examples.map(ie=>ie.title)},page:ns,out:Is}),!C&&z.componentfile&&Q.push({name:"Code",props:{componentName:i,devmodus:C},page:Ss}),Q}function W(z){l("out",{stageRect:z})}function $(z){z.detail.topHeight&&l("out",{stageContainerHeight:z.detail.topHeight}),z.detail.maxHeight&&l("out",{stageContainerMaxHeight:z.detail.maxHeight}),z.detail.maxWidth&&l("out",{stageContainerWidth:z.detail.maxWidth})}function oe(z){z.detail.stageHeight&&l("out",{stageHeight:z.detail.stageHeight}),z.detail.stageWidth&&l("out",{stageWidth:z.detail.stageWidth})}function he(z){vt.call(this,s,z)}function Y(z){Et[z?"unshift":"push"](()=>{k=z,t(9,k)})}return s.$$set=z=>{"componentName"in z&&t(13,i=z.componentName),"das"in z&&t(14,r=z.das),"stageStyle"in z&&t(0,a=z.stageStyle),"stageSize"in z&&t(1,c=z.stageSize),"selectedExample"in z&&t(15,u=z.selectedExample),"stageContainerHeight"in z&&t(2,f=z.stageContainerHeight),"stageContainerMaxHeight"in z&&t(3,h=z.stageContainerMaxHeight),"stageHeight"in z&&t(4,g=z.stageHeight),"stageWidth"in z&&t(5,d=z.stageWidth),"stageMaxHeight"in z&&t(6,b=z.stageMaxHeight),"stageMaxWidth"in z&&t(7,T=z.stageMaxWidth),"panelExpanded"in z&&t(8,S=z.panelExpanded),"theme"in z&&t(16,w=z.theme),"devmodus"in z&&t(17,C=z.devmodus)},s.$$.update=()=>{s.$$.dirty&369154&&y&&(!k.contentDocument||/frame.html$/.test(k.contentWindow.location),k.contentWindow.postMessage({selectedExample:u,componentName:i,stageSize:c,theme:w},window.location)),s.$$.dirty&16384&&t(10,n=M(r))},[a,c,f,h,g,d,b,T,S,k,n,$,oe,i,r,u,w,C,y,he,Y]}class Ns extends Te{constructor(e){super(),ze(this,e,Rs,Ls,_e,{componentName:13,das:14,stageStyle:0,stageSize:1,selectedExample:15,stageContainerHeight:2,stageContainerMaxHeight:3,stageHeight:4,stageWidth:5,stageMaxHeight:6,stageMaxWidth:7,panelExpanded:8,theme:16,devmodus:17})}}function Bs(s){let e,t,n,l,i,r='<svg xmlns="http://www.w3.org/2000/svg" width="15" viewBox="0 0 24 24" height="15" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 8a2 2 0 00-1-1.73l-7-4a2 2 0 00-2 0l-7 4A2 2 0 003 8v8a2 2 0 001 1.73l7 4a2 2 0 002 0l7-4A2 2 0 0021 16z"></path><path d="M3.3 7l8.7 5 8.7-5M12 22V12"></path></svg>',a,c,u,f,h;return{c(){e=x("a"),t=x("div"),n=x("div"),l=B(),i=x("div"),i.innerHTML=r,a=B(),c=x("div"),u=pe(s[2]),this.h()},l(g){e=E(g,"A",{href:!0,class:!0});var d=_(e);t=E(d,"DIV",{class:!0});var b=_(t);n=E(b,"DIV",{class:!0}),_(n).forEach(p),l=A(b),i=E(b,"DIV",{class:!0,"data-svelte-h":!0}),ke(i)!=="svelte-rhhnaq"&&(i.innerHTML=r),a=A(b),c=E(b,"DIV",{class:!0});var T=_(c);u=me(T,s[2]),T.forEach(p),b.forEach(p),d.forEach(p),this.h()},h(){o(n,"class","component_dot svelte-1cnyrt6"),o(i,"class","component_icon svelte-1cnyrt6"),o(c,"class","component_label svelte-1cnyrt6"),o(t,"class","component_link-container svelte-1cnyrt6"),o(e,"href",s[0]),o(e,"class","component_link svelte-1cnyrt6"),P(e,"selected",s[1])},m(g,d){j(g,e,d),m(e,t),m(t,n),m(t,l),m(t,i),m(t,a),m(t,c),m(c,u),f||(h=K(e,"click",Ll(s[3])),f=!0)},p(g,[d]){d&4&&Ze(u,g[2]),d&1&&o(e,"href",g[0]),d&2&&P(e,"selected",g[1])},i:ae,o:ae,d(g){g&&p(e),f=!1,h()}}}function As(s,e,t){let{href:n}=e,{selected:l}=e,{text:i}=e;function r(){globalThis.history.pushState({},"",n)}return s.$$set=a=>{"href"in a&&t(0,n=a.href),"selected"in a&&t(1,l=a.selected),"text"in a&&t(2,i=a.text)},[n,l,i,r]}class bl extends Te{constructor(e){super(),ze(this,e,As,Bs,_e,{href:0,selected:1,text:2})}}function qn(s,e,t){const n=s.slice();return n[4]=e[t],n}function Vn(s){let e,t,n,l,i='<svg xmlns="http://www.w3.org/2000/svg" class="close-icon svelte-134qnz1" height="12" viewBox="0 0 24 24" width="12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6L6 18M6 6l12 12"></path></svg>',r,a,c,u;t=new bl({props:{href:s[4].href,selected:s[4].selected,text:s[4].name}});function f(){return s[2](s[4])}return{c(){e=x("li"),xe(t.$$.fragment),n=B(),l=x("button"),l.innerHTML=i,r=B(),this.h()},l(h){e=E(h,"LI",{class:!0});var g=_(e);Se(t.$$.fragment,g),n=A(g),l=E(g,"BUTTON",{class:!0,"data-svelte-h":!0}),ke(l)!=="svelte-1axzzzj"&&(l.innerHTML=i),r=A(g),g.forEach(p),this.h()},h(){o(l,"class","close svelte-134qnz1"),o(e,"class","component svelte-134qnz1")},m(h,g){j(h,e,g),Ee(t,e,null),m(e,n),m(e,l),m(e,r),a=!0,c||(u=K(l,"click",f),c=!0)},p(h,g){s=h;const d={};g&1&&(d.href=s[4].href),g&1&&(d.selected=s[4].selected),g&1&&(d.text=s[4].name),t.$set(d)},i(h){a||(O(t.$$.fragment,h),a=!0)},o(h){F(t.$$.fragment,h),a=!1},d(h){h&&p(e),ye(t),c=!1,u()}}}function js(s){let e,t,n='<span class="bookmarks_title-icon svelte-134qnz1"><svg xmlns="http://www.w3.org/2000/svg" class="bookmark_icon" height="15" viewBox="0 0 24 24" width="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"></path></svg></span> <span class="bookmarks_title-label svelte-134qnz1">Bookmarks</span>',l,i,r,a,c,u,f=je(s[0]),h=[];for(let d=0;d<f.length;d+=1)h[d]=Vn(qn(s,f,d));const g=d=>F(h[d],1,1,()=>{h[d]=null});return{c(){e=x("div"),t=x("div"),t.innerHTML=n,l=B(),i=x("nav"),r=x("ul");for(let d=0;d<h.length;d+=1)h[d].c();a=B(),c=x("div"),this.h()},l(d){e=E(d,"DIV",{class:!0});var b=_(e);t=E(b,"DIV",{class:!0,"data-svelte-h":!0}),ke(t)!=="svelte-yph7f9"&&(t.innerHTML=n),l=A(b),i=E(b,"NAV",{class:!0});var T=_(i);r=E(T,"UL",{class:!0});var S=_(r);for(let w=0;w<h.length;w+=1)h[w].l(S);S.forEach(p),T.forEach(p),a=A(b),c=E(b,"DIV",{class:!0}),_(c).forEach(p),b.forEach(p),this.h()},h(){o(t,"class","bookmarks_title svelte-134qnz1"),o(r,"class","components svelte-134qnz1"),o(i,"class","bookmarks_nav"),o(c,"class","border-btm svelte-134qnz1"),o(e,"class","bookmarks svelte-134qnz1")},m(d,b){j(d,e,b),m(e,t),m(e,l),m(e,i),m(i,r);for(let T=0;T<h.length;T+=1)h[T]&&h[T].m(r,null);m(e,a),m(e,c),u=!0},p(d,[b]){if(b&3){f=je(d[0]);let T;for(T=0;T<f.length;T+=1){const S=qn(d,f,T);h[T]?(h[T].p(S,b),O(h[T],1)):(h[T]=Vn(S),h[T].c(),O(h[T],1),h[T].m(r,null))}for(We(),T=f.length;T<h.length;T+=1)g(T);Oe()}},i(d){if(!u){for(let b=0;b<f.length;b+=1)O(h[b]);u=!0}},o(d){h=h.filter(Boolean);for(let b=0;b<h.length;b+=1)F(h[b]);u=!1},d(d){d&&p(e),yt(h,d)}}}function Ds(s,e,t){const n=Fe();let{bookmarks:l=[]}=e;function i(a){n("out",{toggleBookmark:a})}const r=a=>i(a);return s.$$set=a=>{"bookmarks"in a&&t(0,l=a.bookmarks)},[l,i,r]}class Ws extends Te{constructor(e){super(),ze(this,e,Ds,js,_e,{bookmarks:0})}}function Zn(s,e,t){const n=s.slice();return n[6]=e[t],n}function Os(s){let e,t,n,l='<svg xmlns="http://www.w3.org/2000/svg" width="12" viewBox="0 0 24 24" height="12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 15l-6-6-6 6"></path></svg>',i,r,a='<svg xmlns="http://www.w3.org/2000/svg" width="15" viewBox="0 0 24 24" height="15" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20h16a2 2 0 002-2V8a2 2 0 00-2-2h-7.93a2 2 0 01-1.66-.9l-.82-1.2A2 2 0 007.93 3H4a2 2 0 00-2 2v13c0 1.1.9 2 2 2z"></path></svg>',c,u,f,h=s[6].name+"",g,d,b,T,S,w,C;function y(){return s[3](s[6])}let k=s[6].unfolded&&Fn(s);return{c(){e=x("li"),t=x("button"),n=x("span"),n.innerHTML=l,i=B(),r=x("span"),r.innerHTML=a,c=B(),u=x("span"),f=new ol(!1),b=B(),k&&k.c(),T=B(),this.h()},l(L){e=E(L,"LI",{class:!0});var M=_(e);t=E(M,"BUTTON",{class:!0,title:!0});var W=_(t);n=E(W,"SPAN",{class:!0,"data-svelte-h":!0}),ke(n)!=="svelte-1uqfrmg"&&(n.innerHTML=l),i=A(W),r=E(W,"SPAN",{class:!0,"data-svelte-h":!0}),ke(r)!=="svelte-1aixm8"&&(r.innerHTML=a),c=A(W),u=E(W,"SPAN",{class:!0});var $=_(u);f=al($,!1),$.forEach(p),W.forEach(p),b=A(M),k&&k.l(M),T=A(M),M.forEach(p),this.h()},h(){o(n,"class","folder_arrow svelte-1nn9bvq"),P(n,"unfolded_icon",s[6].unfolded),o(r,"class","folder_icon svelte-1nn9bvq"),f.a=null,o(u,"class","folder_label svelte-1nn9bvq"),o(t,"class",g="folder_btn btn_level-"+s[1]+" svelte-1nn9bvq"),o(t,"title",d=s[6].unfolded?"fold":"unfold"),o(e,"class","folder svelte-1nn9bvq"),P(e,"unfolded",s[6].unfolded)},m(L,M){j(L,e,M),m(e,t),m(t,n),m(t,i),m(t,r),m(t,c),m(t,u),f.m(h,u),m(e,b),k&&k.m(e,null),m(e,T),S=!0,w||(C=K(t,"click",y),w=!0)},p(L,M){s=L,(!S||M&1)&&P(n,"unfolded_icon",s[6].unfolded),(!S||M&1)&&h!==(h=s[6].name+"")&&f.p(h),(!S||M&2&&g!==(g="folder_btn btn_level-"+s[1]+" svelte-1nn9bvq"))&&o(t,"class",g),(!S||M&1&&d!==(d=s[6].unfolded?"fold":"unfold"))&&o(t,"title",d),s[6].unfolded?k?(k.p(s,M),M&1&&O(k,1)):(k=Fn(s),k.c(),O(k,1),k.m(e,T)):k&&(We(),F(k,1,1,()=>{k=null}),Oe()),(!S||M&1)&&P(e,"unfolded",s[6].unfolded)},i(L){S||(O(k),S=!0)},o(L){F(k),S=!1},d(L){L&&p(e),k&&k.d(),w=!1,C()}}}function Ps(s){let e,t,n,l;return t=new bl({props:{href:s[6].href,selected:s[6].selected,text:s[6].name}}),{c(){e=x("li"),xe(t.$$.fragment),n=B(),this.h()},l(i){e=E(i,"LI",{class:!0});var r=_(e);Se(t.$$.fragment,r),n=A(r),r.forEach(p),this.h()},h(){o(e,"class","component svelte-1nn9bvq")},m(i,r){j(i,e,r),Ee(t,e,null),m(e,n),l=!0},p(i,r){const a={};r&1&&(a.href=i[6].href),r&1&&(a.selected=i[6].selected),r&1&&(a.text=i[6].name),t.$set(a)},i(i){l||(O(t.$$.fragment,i),l=!0)},o(i){F(t.$$.fragment,i),l=!1},d(i){i&&p(e),ye(t)}}}function Fn(s){let e,t;return e=new _l({props:{nodes:s[6].children,level:s[1]+1}}),e.$on("out",s[4]),{c(){xe(e.$$.fragment)},l(n){Se(e.$$.fragment,n)},m(n,l){Ee(e,n,l),t=!0},p(n,l){const i={};l&1&&(i.nodes=n[6].children),l&2&&(i.level=n[1]+1),e.$set(i)},i(n){t||(O(e.$$.fragment,n),t=!0)},o(n){F(e.$$.fragment,n),t=!1},d(n){ye(e,n)}}}function Qn(s){let e,t,n,l;const i=[Ps,Os],r=[];function a(c,u){return c[6].isLeaf?0:1}return e=a(s),t=r[e]=i[e](s),{c(){t.c(),n=mt()},l(c){t.l(c),n=mt()},m(c,u){r[e].m(c,u),j(c,n,u),l=!0},p(c,u){let f=e;e=a(c),e===f?r[e].p(c,u):(We(),F(r[f],1,1,()=>{r[f]=null}),Oe(),t=r[e],t?t.p(c,u):(t=r[e]=i[e](c),t.c()),O(t,1),t.m(n.parentNode,n))},i(c){l||(O(t),l=!0)},o(c){F(t),l=!1},d(c){c&&p(n),r[e].d(c)}}}function Us(s){let e,t,n,l=je(s[0]),i=[];for(let a=0;a<l.length;a+=1)i[a]=Qn(Zn(s,l,a));const r=a=>F(i[a],1,1,()=>{i[a]=null});return{c(){e=x("ul");for(let a=0;a<i.length;a+=1)i[a].c();this.h()},l(a){e=E(a,"UL",{class:!0});var c=_(e);for(let u=0;u<i.length;u+=1)i[u].l(c);c.forEach(p),this.h()},h(){o(e,"class",t="filter_list components level-"+s[1]+" svelte-1nn9bvq")},m(a,c){j(a,e,c);for(let u=0;u<i.length;u+=1)i[u]&&i[u].m(e,null);n=!0},p(a,[c]){if(c&7){l=je(a[0]);let u;for(u=0;u<l.length;u+=1){const f=Zn(a,l,u);i[u]?(i[u].p(f,c),O(i[u],1)):(i[u]=Qn(f),i[u].c(),O(i[u],1),i[u].m(e,null))}for(We(),u=l.length;u<i.length;u+=1)r(u);Oe()}(!n||c&2&&t!==(t="filter_list components level-"+a[1]+" svelte-1nn9bvq"))&&o(e,"class",t)},i(a){if(!n){for(let c=0;c<l.length;c+=1)O(i[c]);n=!0}},o(a){i=i.filter(Boolean);for(let c=0;c<i.length;c+=1)F(i[c]);n=!1},d(a){a&&p(e),yt(i,a)}}}function qs(s,e,t){const n=Fe();let{nodes:l=[]}=e,{level:i=1}=e;function r(u){n("out",{toggleFoldStatusOfNode:{...u}})}const a=u=>r(u);function c(u){vt.call(this,s,u)}return s.$$set=u=>{"nodes"in u&&t(0,l=u.nodes),"level"in u&&t(1,i=u.level)},[l,i,r,a,c]}class _l extends Te{constructor(e){super(),ze(this,e,qs,Us,_e,{nodes:0,level:1})}}function Vs(s){let e,t;return{c(){e=x("span"),t=pe(s[3]),this.h()},l(n){e=E(n,"SPAN",{class:!0});var l=_(e);t=me(l,s[3]),l.forEach(p),this.h()},h(){o(e,"class","svelte-ky94or")},m(n,l){j(n,e,l),m(e,t)},p(n,l){l&8&&Ze(t,n[3])},d(n){n&&p(e)}}}function Zs(s){let e,t,n;return{c(){e=x("img"),this.h()},l(l){e=E(l,"IMG",{src:!0,title:!0,alt:!0}),this.h()},h(){wt(e.src,t="/assets/"+s[4])||o(e,"src",t),o(e,"title","start"),o(e,"alt",n=s[3]+" logo")},m(l,i){j(l,e,i)},p(l,i){i&16&&!wt(e.src,t="/assets/"+l[4])&&o(e,"src",t),i&8&&n!==(n=l[3]+" logo")&&o(e,"alt",n)},d(l){l&&p(e)}}}function Fs(s){let e,t,n;return{c(){e=x("img"),this.h()},l(l){e=E(l,"IMG",{src:!0,title:!0,alt:!0}),this.h()},h(){wt(e.src,t="/assets/"+s[5])||o(e,"src",t),o(e,"title","start"),o(e,"alt",n=s[3]+" logo")},m(l,i){j(l,e,i)},p(l,i){i&32&&!wt(e.src,t="/assets/"+l[5])&&o(e,"src",t),i&8&&n!==(n=l[3]+" logo")&&o(e,"alt",n)},d(l){l&&p(e)}}}function Qs(s){let e,t,n,l,i=s[10].length>0&&Gn(s);return n=new _l({props:{nodes:s[0]}}),n.$on("out",s[15]),{c(){i&&i.c(),e=B(),t=x("nav"),xe(n.$$.fragment),this.h()},l(r){i&&i.l(r),e=A(r),t=E(r,"NAV",{class:!0});var a=_(t);Se(n.$$.fragment,a),a.forEach(p),this.h()},h(){o(t,"class","components-nav svelte-ky94or")},m(r,a){i&&i.m(r,a),j(r,e,a),j(r,t,a),Ee(n,t,null),l=!0},p(r,a){r[10].length>0?i?(i.p(r,a),a&1024&&O(i,1)):(i=Gn(r),i.c(),O(i,1),i.m(e.parentNode,e)):i&&(We(),F(i,1,1,()=>{i=null}),Oe());const c={};a&1&&(c.nodes=r[0]),n.$set(c)},i(r){l||(O(i),O(n.$$.fragment,r),l=!0)},o(r){F(i),F(n.$$.fragment,r),l=!1},d(r){r&&(p(e),p(t)),i&&i.d(r),ye(n)}}}function Gs(s){let e,t,n,l,i;return{c(){e=x("div"),t=x("div"),n=pe("No results for '"),l=pe(s[6]),i=pe("'"),this.h()},l(r){e=E(r,"DIV",{});var a=_(e);t=E(a,"DIV",{class:!0});var c=_(t);n=me(c,"No results for '"),l=me(c,s[6]),i=me(c,"'"),c.forEach(p),a.forEach(p),this.h()},h(){o(t,"class","filter_zero-results svelte-ky94or")},m(r,a){j(r,e,a),m(e,t),m(t,n),m(t,l),m(t,i)},p(r,a){a&64&&Ze(l,r[6])},i:ae,o:ae,d(r){r&&p(e)}}}function Gn(s){let e,t;return e=new Ws({props:{bookmarks:s[10]}}),e.$on("out",s[14]),{c(){xe(e.$$.fragment)},l(n){Se(e.$$.fragment,n)},m(n,l){Ee(e,n,l),t=!0},p(n,l){const i={};l&1024&&(i.bookmarks=n[10]),e.$set(i)},i(n){t||(O(e.$$.fragment,n),t=!0)},o(n){F(e.$$.fragment,n),t=!1},d(n){ye(e,n)}}}function Xs(s){let e,t;return{c(){e=U("svg"),t=U("path"),this.h()},l(n){e=q(n,"svg",{class:!0,xmlns:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0});var l=_(e);t=q(l,"path",{d:!0}),_(t).forEach(p),l.forEach(p),this.h()},h(){o(t,"d","M7 15l5 5 5-5M7 9l5-5 5 5"),o(e,"class","controls_btn-icon svelte-ky94or"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"height","20"),o(e,"viewBox","0 0 24 24"),o(e,"width","20"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round")},m(n,l){j(n,e,l),m(e,t)},d(n){n&&p(e)}}}function Ys(s){let e,t;return{c(){e=U("svg"),t=U("path"),this.h()},l(n){e=q(n,"svg",{class:!0,xmlns:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0});var l=_(e);t=q(l,"path",{d:!0}),_(t).forEach(p),l.forEach(p),this.h()},h(){o(t,"d","M7 20l5-5 5 5M7 4l5 5 5-5"),o(e,"class","controls_btn-icon svelte-ky94or"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"height","20"),o(e,"viewBox","0 0 24 24"),o(e,"width","20"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round")},m(n,l){j(n,e,l),m(e,t)},d(n){n&&p(e)}}}function Js(s){let e,t,n,l;return{c(){e=U("svg"),t=U("rect"),n=U("line"),l=U("path"),this.h()},l(i){e=q(i,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0});var r=_(e);t=q(r,"rect",{width:!0,height:!0,x:!0,y:!0,rx:!0,ry:!0}),_(t).forEach(p),n=q(r,"line",{x1:!0,x2:!0,y1:!0,y2:!0}),_(n).forEach(p),l=q(r,"path",{d:!0}),_(l).forEach(p),r.forEach(p),this.h()},h(){o(t,"width","18"),o(t,"height","18"),o(t,"x","3"),o(t,"y","3"),o(t,"rx","2"),o(t,"ry","2"),o(n,"x1","3"),o(n,"x2","21"),o(n,"y1","15"),o(n,"y2","15"),o(l,"d","m9 10 3-3 3 3"),o(e,"class","controls_btn-icon svelte-ky94or"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"width","20"),o(e,"height","20"),o(e,"viewBox","0 0 24 24"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round")},m(i,r){j(i,e,r),m(e,t),m(e,n),m(e,l)},d(i){i&&p(e)}}}function Ks(s){let e,t,n,l;return{c(){e=U("svg"),t=U("rect"),n=U("line"),l=U("path"),this.h()},l(i){e=q(i,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0});var r=_(e);t=q(r,"rect",{width:!0,height:!0,x:!0,y:!0,rx:!0,ry:!0}),_(t).forEach(p),n=q(r,"line",{x1:!0,x2:!0,y1:!0,y2:!0}),_(n).forEach(p),l=q(r,"path",{d:!0}),_(l).forEach(p),r.forEach(p),this.h()},h(){o(t,"width","18"),o(t,"height","18"),o(t,"x","3"),o(t,"y","3"),o(t,"rx","2"),o(t,"ry","2"),o(n,"x1","3"),o(n,"x2","21"),o(n,"y1","15"),o(n,"y2","15"),o(l,"d","m15 8-3 3-3-3"),o(e,"class","controls_btn-icon svelte-ky94or"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"width","20"),o(e,"height","20"),o(e,"viewBox","0 0 24 24"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round")},m(i,r){j(i,e,r),m(e,t),m(e,n),m(e,l)},d(i){i&&p(e)}}}function Xn(s){let e,t='<a class="controls_btn svelte-ky94or" href="https://gardenjs.org/docs" target="_blank" rel="noreferrer"><svg class="controls_btn-icon svelte-ky94or" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 015.83 1c0 2-3 3-3 3m.08 4h.01"></path></svg> <span class="controls_btn-label svelte-ky94or">Gardenjs Docs</span></a>';return{c(){e=x("li"),e.innerHTML=t},l(n){e=E(n,"LI",{"data-svelte-h":!0}),ke(e)!=="svelte-13os4tf"&&(e.innerHTML=t)},m(n,l){j(n,e,l)},d(n){n&&p(e)}}}function $s(s){let e,t,n,l,i,r,a,c,u,f,h,g,d,b,T,S,w=s[2]?"Collapse":"Expand",C,y,k,L,M,W,$,oe,he=s[7]?"Collapse":"Expand",Y,z,Q,I,ie,He,Qe;function ce(D,G){return D[5]&&D[9]==="dark"?Fs:D[4]?Zs:Vs}let ee=ce(s),le=ee(s);const Ie=[Gs,Qs],ve=[];function Le(D,G){return D[0].length==0&&D[6]?0:1}c=Le(s),u=ve[c]=Ie[c](s);function Pe(D,G){return D[2]?Ys:Xs}let v=Pe(s),ue=v(s);function rt(D,G){return D[7]?Ks:Js}let we=rt(s),J=we(s),te=s[8]===1&&Xn();return{c(){e=x("header"),t=x("a"),le.c(),n=B(),l=x("div"),i=x("input"),a=B(),u.c(),f=B(),h=x("nav"),g=x("ul"),d=x("li"),b=x("button"),ue.c(),T=B(),S=x("span"),C=pe(w),y=pe(" Navigation"),L=B(),M=x("li"),W=x("button"),J.c(),$=B(),oe=x("span"),Y=pe(he),z=pe(" Panel"),I=B(),te&&te.c(),this.h()},l(D){e=E(D,"HEADER",{class:!0});var G=_(e);t=E(G,"A",{class:!0,href:!0});var Re=_(t);le.l(Re),Re.forEach(p),n=A(G),l=E(G,"DIV",{class:!0});var et=_(l);i=E(et,"INPUT",{"aria-autocomplete":!0,id:!0,class:!0,autocomplete:!0,type:!0,placeholder:!0}),et.forEach(p),a=A(G),u.l(G),f=A(G),h=E(G,"NAV",{class:!0});var Ce=_(h);g=E(Ce,"UL",{});var Ue=_(g);d=E(Ue,"LI",{});var ot=_(d);b=E(ot,"BUTTON",{class:!0,title:!0});var be=_(b);ue.l(be),T=A(be),S=E(be,"SPAN",{class:!0});var Ge=_(S);C=me(Ge,w),y=me(Ge," Navigation"),Ge.forEach(p),be.forEach(p),ot.forEach(p),L=A(Ue),M=E(Ue,"LI",{});var at=_(M);W=E(at,"BUTTON",{class:!0,title:!0});var tt=_(W);J.l(tt),$=A(tt),oe=E(tt,"SPAN",{class:!0});var ct=_(oe);Y=me(ct,he),z=me(ct," Panel"),ct.forEach(p),tt.forEach(p),at.forEach(p),I=A(Ue),te&&te.l(Ue),Ue.forEach(p),Ce.forEach(p),G.forEach(p),this.h()},h(){o(t,"class","project-identifier svelte-ky94or"),o(t,"href","/"),P(t,"has-logo",s[4]),o(i,"aria-autocomplete","list"),o(i,"id","filter"),o(i,"class","filter_input svelte-ky94or"),o(i,"autocomplete","off"),o(i,"type","search"),i.value=r=s[6]||"",o(i,"placeholder","Filter..."),o(l,"class","filter svelte-ky94or"),o(S,"class","controls_btn-label svelte-ky94or"),o(b,"class","controls_btn svelte-ky94or"),o(b,"title",k=s[2]?"Collapse":"Restore"),o(oe,"class","controls_btn-label svelte-ky94or"),o(W,"class","controls_btn svelte-ky94or"),o(W,"title",Q=s[7]?"Collapse":"Restore"),o(h,"class","controls svelte-ky94or"),o(e,"class","sidebar_container svelte-ky94or"),P(e,"show-sidebar",s[1])},m(D,G){j(D,e,G),m(e,t),le.m(t,null),m(e,n),m(e,l),m(l,i),m(e,a),ve[c].m(e,null),m(e,f),m(e,h),m(h,g),m(g,d),m(d,b),ue.m(b,null),m(b,T),m(b,S),m(S,C),m(S,y),m(g,L),m(g,M),m(M,W),J.m(W,null),m(W,$),m(W,oe),m(oe,Y),m(oe,z),m(g,I),te&&te.m(g,null),ie=!0,He||(Qe=[K(i,"input",s[12]),K(b,"click",s[11]),K(W,"click",s[13])],He=!0)},p(D,[G]){ee===(ee=ce(D))&&le?le.p(D,G):(le.d(1),le=ee(D),le&&(le.c(),le.m(t,null))),(!ie||G&16)&&P(t,"has-logo",D[4]),(!ie||G&64&&r!==(r=D[6]||"")&&i.value!==r)&&(i.value=r);let Re=c;c=Le(D),c===Re?ve[c].p(D,G):(We(),F(ve[Re],1,1,()=>{ve[Re]=null}),Oe(),u=ve[c],u?u.p(D,G):(u=ve[c]=Ie[c](D),u.c()),O(u,1),u.m(e,f)),v!==(v=Pe(D))&&(ue.d(1),ue=v(D),ue&&(ue.c(),ue.m(b,T))),(!ie||G&4)&&w!==(w=D[2]?"Collapse":"Expand")&&Ze(C,w),(!ie||G&4&&k!==(k=D[2]?"Collapse":"Restore"))&&o(b,"title",k),we!==(we=rt(D))&&(J.d(1),J=we(D),J&&(J.c(),J.m(W,$))),(!ie||G&128)&&he!==(he=D[7]?"Collapse":"Expand")&&Ze(Y,he),(!ie||G&128&&Q!==(Q=D[7]?"Collapse":"Restore"))&&o(W,"title",Q),D[8]===1?te||(te=Xn(),te.c(),te.m(g,null)):te&&(te.d(1),te=null),(!ie||G&2)&&P(e,"show-sidebar",D[1])},i(D){ie||(O(u),ie=!0)},o(D){F(u),ie=!1},d(D){D&&p(e),le.d(),ve[c].d(),ue.d(),J.d(),te&&te.d(),He=!1,Ft(Qe)}}}function ei(s,e,t){const n=Fe();let{nodes:l=[]}=e,{sidebarExpanded:i=!0}=e,{rootNodesExpanded:r=!0}=e,{projectTitle:a}=e,{projectLogo:c}=e,{projectLogoDarkmode:u}=e,{filter:f}=e,{panelExpanded:h=!0}=e,{docsLink:g}=e,{appTheme:d}=e,{bookmarks:b=[]}=e;function T(){n("out",{toggleRootFolders:!0})}function S(k){n("out",{filter:{value:k.target.value}})}function w(){n("out",{toggleExpandPanel:!0})}function C(k){vt.call(this,s,k)}function y(k){vt.call(this,s,k)}return s.$$set=k=>{"nodes"in k&&t(0,l=k.nodes),"sidebarExpanded"in k&&t(1,i=k.sidebarExpanded),"rootNodesExpanded"in k&&t(2,r=k.rootNodesExpanded),"projectTitle"in k&&t(3,a=k.projectTitle),"projectLogo"in k&&t(4,c=k.projectLogo),"projectLogoDarkmode"in k&&t(5,u=k.projectLogoDarkmode),"filter"in k&&t(6,f=k.filter),"panelExpanded"in k&&t(7,h=k.panelExpanded),"docsLink"in k&&t(8,g=k.docsLink),"appTheme"in k&&t(9,d=k.appTheme),"bookmarks"in k&&t(10,b=k.bookmarks)},[l,i,r,a,c,u,f,h,g,d,b,T,S,w,C,y]}class ti extends Te{constructor(e){super(),ze(this,e,ei,$s,_e,{nodes:0,sidebarExpanded:1,rootNodesExpanded:2,projectTitle:3,projectLogo:4,projectLogoDarkmode:5,filter:6,panelExpanded:7,docsLink:8,appTheme:9,bookmarks:10})}}function Yn(s,e,t){const n=s.slice();return n[27]=e[t],n}function ni(s){let e,t,n;return{c(){e=U("svg"),t=U("rect"),n=U("path"),this.h()},l(l){e=q(l,"svg",{xmlns:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var i=_(e);t=q(i,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,ry:!0}),_(t).forEach(p),n=q(i,"path",{d:!0}),_(n).forEach(p),i.forEach(p),this.h()},h(){o(t,"x","3"),o(t,"y","3"),o(t,"width","18"),o(t,"height","18"),o(t,"rx","2"),o(t,"ry","2"),o(n,"d","M9 3v18m5-12l3 3-3 3"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"height","24"),o(e,"viewBox","0 0 24 24"),o(e,"width","24"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"class","svelte-1blcm4e")},m(l,i){j(l,e,i),m(e,t),m(e,n)},d(l){l&&p(e)}}}function li(s){let e,t,n;return{c(){e=U("svg"),t=U("rect"),n=U("path"),this.h()},l(l){e=q(l,"svg",{xmlns:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var i=_(e);t=q(i,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,ry:!0}),_(t).forEach(p),n=q(i,"path",{d:!0}),_(n).forEach(p),i.forEach(p),this.h()},h(){o(t,"x","3"),o(t,"y","3"),o(t,"width","18"),o(t,"height","18"),o(t,"rx","2"),o(t,"ry","2"),o(n,"d","M9 3v18m7-6l-3-3 3-3"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"height","24"),o(e,"viewBox","0 0 24 24"),o(e,"width","24"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"class","svelte-1blcm4e")},m(l,i){j(l,e,i),m(e,t),m(e,n)},d(l){l&&p(e)}}}function Jn(s){let e,t,n;function l(a,c){return a[6].bookmark?ii:si}let i=l(s),r=i(s);return{c(){e=x("button"),r.c(),this.h()},l(a){e=E(a,"BUTTON",{class:!0});var c=_(e);r.l(c),c.forEach(p),this.h()},h(){o(e,"class","topbar_btn bookmark_btn svelte-1blcm4e")},m(a,c){j(a,e,c),r.m(e,null),t||(n=K(e,"click",s[11]),t=!0)},p(a,c){i!==(i=l(a))&&(r.d(1),r=i(a),r&&(r.c(),r.m(e,null)))},d(a){a&&p(e),r.d(),t=!1,n()}}}function si(s){let e,t;return{c(){e=U("svg"),t=U("path"),this.h()},l(n){e=q(n,"svg",{xmlns:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var l=_(e);t=q(l,"path",{d:!0}),_(t).forEach(p),l.forEach(p),this.h()},h(){o(t,"d","M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"height","24"),o(e,"viewBox","0 0 24 24"),o(e,"width","24"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"class","svelte-1blcm4e")},m(n,l){j(n,e,l),m(e,t)},d(n){n&&p(e)}}}function ii(s){let e,t;return{c(){e=U("svg"),t=U("path"),this.h()},l(n){e=q(n,"svg",{xmlns:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var l=_(e);t=q(l,"path",{d:!0}),_(t).forEach(p),l.forEach(p),this.h()},h(){o(t,"d","M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"height","24"),o(e,"viewBox","0 0 24 24"),o(e,"width","24"),o(e,"fill","currentColor"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"class","svelte-1blcm4e")},m(n,l){j(n,e,l),m(e,t)},d(n){n&&p(e)}}}function Kn(s){let e,t,n='<svg xmlns="http://www.w3.org/2000/svg" width="24" viewBox="0 0 24 24" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="svelte-1blcm4e"><circle cx="13.5" cy="6.5" r=".5"></circle><circle cx="17.5" cy="10.5" r=".5"></circle><circle cx="8.5" cy="7.5" r=".5"></circle><circle cx="6.5" cy="12.5" r=".5"></circle><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 011.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z"></path></svg>',l,i,r,a=je(s[3]),c=[];for(let u=0;u<a.length;u+=1)c[u]=$n(Yn(s,a,u));return{c(){e=x("div"),t=x("button"),t.innerHTML=n,l=B(),i=x("div"),r=x("ul");for(let u=0;u<c.length;u+=1)c[u].c();this.h()},l(u){e=E(u,"DIV",{class:!0});var f=_(e);t=E(f,"BUTTON",{class:!0,title:!0,"data-svelte-h":!0}),ke(t)!=="svelte-9j3kdx"&&(t.innerHTML=n),l=A(f),i=E(f,"DIV",{class:!0});var h=_(i);r=E(h,"UL",{class:!0});var g=_(r);for(let d=0;d<c.length;d+=1)c[d].l(g);g.forEach(p),h.forEach(p),f.forEach(p),this.h()},h(){o(t,"class","dropdown_btn topbar_btn svelte-1blcm4e"),o(t,"title","Switch component theme"),o(r,"class","svelte-1blcm4e"),o(i,"class","dropdown_items svelte-1blcm4e"),o(e,"class","dropdown svelte-1blcm4e")},m(u,f){j(u,e,f),m(e,t),m(e,l),m(e,i),m(i,r);for(let h=0;h<c.length;h+=1)c[h]&&c[h].m(r,null)},p(u,f){if(f&65544){a=je(u[3]);let h;for(h=0;h<a.length;h+=1){const g=Yn(u,a,h);c[h]?c[h].p(g,f):(c[h]=$n(g),c[h].c(),c[h].m(r,null))}for(;h<c.length;h+=1)c[h].d(1);c.length=a.length}},d(u){u&&p(e),yt(c,u)}}}function $n(s){let e,t,n,l,i=s[27].name+"",r,a,c,u;function f(){return s[25](s[27])}return{c(){e=x("li"),t=x("button"),n=x("span"),l=B(),r=pe(i),a=B(),this.h()},l(h){e=E(h,"LI",{class:!0});var g=_(e);t=E(g,"BUTTON",{class:!0});var d=_(t);n=E(d,"SPAN",{class:!0}),_(n).forEach(p),l=A(d),r=me(d,i),d.forEach(p),a=A(g),g.forEach(p),this.h()},h(){o(n,"class","dropdown_item-dot svelte-1blcm4e"),o(t,"class","svelte-1blcm4e"),P(t,"active",s[27].active),o(e,"class","svelte-1blcm4e")},m(h,g){j(h,e,g),m(e,t),m(t,n),m(t,l),m(t,r),m(e,a),c||(u=K(t,"click",f),c=!0)},p(h,g){s=h,g&8&&i!==(i=s[27].name+"")&&Ze(r,i),g&8&&P(t,"active",s[27].active)},d(h){h&&p(e),c=!1,u()}}}function ri(s){let e,t;return{c(){e=U("svg"),t=U("path"),this.h()},l(n){e=q(n,"svg",{xmlns:!0,class:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0});var l=_(e);t=q(l,"path",{d:!0}),_(t).forEach(p),l.forEach(p),this.h()},h(){o(t,"d","M12 3a6.364 6.364 0 009 9 9 9 0 11-9-9z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","mode-icon svelte-1blcm4e"),o(e,"height","24"),o(e,"viewBox","0 0 24 24"),o(e,"width","24"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round")},m(n,l){j(n,e,l),m(e,t)},d(n){n&&p(e)}}}function oi(s){let e,t,n;return{c(){e=U("svg"),t=U("circle"),n=U("path"),this.h()},l(l){e=q(l,"svg",{xmlns:!0,class:!0,width:!0,viewBox:!0,height:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0});var i=_(e);t=q(i,"circle",{cx:!0,cy:!0,r:!0}),_(t).forEach(p),n=q(i,"path",{d:!0}),_(n).forEach(p),i.forEach(p),this.h()},h(){o(t,"cx","12"),o(t,"cy","12"),o(t,"r","4"),o(n,"d","M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","mode-icon svelte-1blcm4e"),o(e,"width","24"),o(e,"viewBox","0 0 24 24"),o(e,"height","24"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round")},m(l,i){j(l,e,i),m(e,t),m(e,n)},d(l){l&&p(e)}}}function ai(s){let e,t,n,l,i,r,a,c,u,f,h,g,d,b="/",T,S,w,C,y,k,L,M,W,$,oe,he,Y,z,Q,I,ie,He,Qe,ce,ee,le,Ie,ve,Le,Pe,v,ue='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="svelte-1blcm4e"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><path d="M8 21h8m-4-4v4"></path></svg> <span class="dot svelte-1blcm4e"></span>',rt,we,J,te,D,G,Re,et,Ce,Ue='<svg xmlns="http://www.w3.org/2000/svg" class="open-new-tab-icon svelte-1blcm4e" height="24" viewBox="0 0 24 24" width="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6m4-3h6v6m-11 5L21 3"></path></svg>',ot,be,Ge,at,tt;function ct(V,ne){return V[0]?li:ni}let St=ct(s),qe=St(s),fe=s[6]&&Jn(s),de=s[3].length>1&&Kn(s);function kn(V,ne){return V[7]?oi:ri}let Ct=kn(s),Ve=Ct(s);return{c(){e=x("div"),t=x("div"),n=x("div"),l=x("button"),qe.c(),r=B(),fe&&fe.c(),a=B(),c=x("div"),u=x("div"),f=x("input"),g=B(),d=x("div"),d.textContent=b,T=B(),S=x("input"),C=B(),y=x("div"),k=x("button"),L=U("svg"),M=U("rect"),W=U("path"),$=B(),oe=x("span"),he=B(),Y=x("button"),z=U("svg"),Q=U("rect"),I=U("path"),ie=B(),He=x("span"),Qe=B(),ce=x("button"),ee=U("svg"),le=U("rect"),Ie=U("path"),ve=B(),Le=x("span"),Pe=B(),v=x("button"),v.innerHTML=ue,rt=B(),we=x("button"),J=U("svg"),te=U("rect"),D=U("rect"),Re=B(),de&&de.c(),et=B(),Ce=x("button"),Ce.innerHTML=Ue,ot=B(),be=x("button"),Ve.c(),this.h()},l(V){e=E(V,"DIV",{class:!0});var ne=_(e);t=E(ne,"DIV",{class:!0});var Mt=_(t);n=E(Mt,"DIV",{class:!0});var Ht=_(n);l=E(Ht,"BUTTON",{class:!0,title:!0});var bn=_(l);qe.l(bn),bn.forEach(p),r=A(Ht),fe&&fe.l(Ht),Ht.forEach(p),a=A(Mt),c=E(Mt,"DIV",{class:!0});var Ne=_(c);u=E(Ne,"DIV",{class:!0});var ut=_(u);f=E(ut,"INPUT",{class:!0,type:!0,min:!0,max:!0}),g=A(ut),d=E(ut,"DIV",{class:!0,"data-svelte-h":!0}),ke(d)!=="svelte-mwx9s1"&&(d.textContent=b),T=A(ut),S=E(ut,"INPUT",{class:!0,type:!0,min:!0,max:!0}),ut.forEach(p),C=A(Ne),y=E(Ne,"DIV",{class:!0});var Be=_(y);k=E(Be,"BUTTON",{title:!0,class:!0});var Lt=_(k);L=q(Lt,"svg",{xmlns:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var Yt=_(L);M=q(Yt,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,ry:!0}),_(M).forEach(p),W=q(Yt,"path",{d:!0}),_(W).forEach(p),Yt.forEach(p),$=A(Lt),oe=E(Lt,"SPAN",{class:!0}),_(oe).forEach(p),Lt.forEach(p),he=A(Be),Y=E(Be,"BUTTON",{title:!0,class:!0});var It=_(Y);z=q(It,"svg",{xmlns:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var Jt=_(z);Q=q(Jt,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,ry:!0}),_(Q).forEach(p),I=q(Jt,"path",{d:!0}),_(I).forEach(p),Jt.forEach(p),ie=A(It),He=E(It,"SPAN",{class:!0}),_(He).forEach(p),It.forEach(p),Qe=A(Be),ce=E(Be,"BUTTON",{title:!0,class:!0});var Rt=_(ce);ee=q(Rt,"svg",{xmlns:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var Kt=_(ee);le=q(Kt,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,ry:!0}),_(le).forEach(p),Ie=q(Kt,"path",{d:!0}),_(Ie).forEach(p),Kt.forEach(p),ve=A(Rt),Le=E(Rt,"SPAN",{class:!0}),_(Le).forEach(p),Rt.forEach(p),Pe=A(Be),v=E(Be,"BUTTON",{title:!0,class:!0,"data-svelte-h":!0}),ke(v)!=="svelte-m2txcz"&&(v.innerHTML=ue),rt=A(Be),we=E(Be,"BUTTON",{title:!0,class:!0});var _n=_(we);J=q(_n,"svg",{xmlns:!0,width:!0,viewBox:!0,height:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var $t=_(J);te=q($t,"rect",{width:!0,height:!0,x:!0,y:!0,rx:!0}),_(te).forEach(p),D=q($t,"rect",{width:!0,height:!0,x:!0,y:!0,rx:!0}),_(D).forEach(p),$t.forEach(p),_n.forEach(p),Be.forEach(p),Re=A(Ne),de&&de.l(Ne),et=A(Ne),Ce=E(Ne,"BUTTON",{class:!0,title:!0,"data-svelte-h":!0}),ke(Ce)!=="svelte-vy1khe"&&(Ce.innerHTML=Ue),ot=A(Ne),be=E(Ne,"BUTTON",{class:!0,title:!0});var vn=_(be);Ve.l(vn),vn.forEach(p),Ne.forEach(p),Mt.forEach(p),ne.forEach(p),this.h()},h(){o(l,"class","topbar_btn is-first-btn svelte-1blcm4e"),o(l,"title",i=s[0]?"Collapse sidebar":"Expand sidebar"),o(n,"class","topbar_nav svelte-1blcm4e"),o(f,"class","stagesize-input svelte-1blcm4e"),o(f,"type","number"),f.disabled=h=s[2]!=="full",f.value=s[8],o(f,"min","50"),o(f,"max",s[5]),o(d,"class","stagesize-value-multi_sign svelte-1blcm4e"),o(S,"class","stagesize-input svelte-1blcm4e"),o(S,"type","number"),S.disabled=w=s[2]!=="full",S.value=s[9],o(S,"min","50"),o(S,"max",s[4]),o(u,"class","stagesize-value svelte-1blcm4e"),o(M,"x","5"),o(M,"y","2"),o(M,"width","14"),o(M,"height","20"),o(M,"rx","2"),o(M,"ry","2"),o(W,"d","M12 18h.01"),o(L,"xmlns","http://www.w3.org/2000/svg"),o(L,"height","24"),o(L,"viewBox","0 0 24 24"),o(L,"width","24"),o(L,"fill","none"),o(L,"stroke","currentColor"),o(L,"stroke-width","1.5"),o(L,"stroke-linecap","round"),o(L,"stroke-linejoin","round"),o(L,"class","svelte-1blcm4e"),P(L,"landscape",s[1]),o(oe,"class","dot svelte-1blcm4e"),o(k,"title","Small"),o(k,"class","svelte-1blcm4e"),P(k,"active",s[2]==="small"),o(Q,"x","4"),o(Q,"y","2"),o(Q,"width","16"),o(Q,"height","20"),o(Q,"rx","2"),o(Q,"ry","2"),o(I,"d","M12 18h.01"),o(z,"xmlns","http://www.w3.org/2000/svg"),o(z,"height","24"),o(z,"viewBox","0 0 24 24"),o(z,"width","24"),o(z,"fill","none"),o(z,"stroke","currentColor"),o(z,"stroke-width","1.5"),o(z,"stroke-linecap","round"),o(z,"stroke-linejoin","round"),o(z,"class","svelte-1blcm4e"),P(z,"landscape",s[1]),o(He,"class","dot svelte-1blcm4e"),o(Y,"title","Medium"),o(Y,"class","svelte-1blcm4e"),P(Y,"active",s[2]==="medium"),o(le,"x","3"),o(le,"y","4"),o(le,"width","18"),o(le,"height","12"),o(le,"rx","2"),o(le,"ry","2"),o(Ie,"d","M2 20h20"),o(ee,"xmlns","http://www.w3.org/2000/svg"),o(ee,"height","24"),o(ee,"viewBox","0 0 24 24"),o(ee,"width","24"),o(ee,"fill","none"),o(ee,"stroke","currentColor"),o(ee,"stroke-width","1.5"),o(ee,"stroke-linecap","round"),o(ee,"stroke-linejoin","round"),o(ee,"class","svelte-1blcm4e"),P(ee,"landscape",s[1]),o(Le,"class","dot svelte-1blcm4e"),o(ce,"title","Large"),o(ce,"class","svelte-1blcm4e"),P(ce,"active",s[2]==="large"),o(v,"title","Full"),o(v,"class","svelte-1blcm4e"),P(v,"active",s[2]==="full"),o(te,"width","12"),o(te,"height","20"),o(te,"x","6"),o(te,"y","2"),o(te,"rx","2"),o(D,"width","20"),o(D,"height","12"),o(D,"x","2"),o(D,"y","6"),o(D,"rx","2"),o(J,"xmlns","http://www.w3.org/2000/svg"),o(J,"width","24"),o(J,"viewBox","0 0 24 24"),o(J,"height","24"),o(J,"fill","none"),o(J,"stroke","currentColor"),o(J,"stroke-width","1.5"),o(J,"stroke-linecap","round"),o(J,"stroke-linejoin","round"),o(J,"class","svelte-1blcm4e"),o(we,"title",G=s[1]?"Portrait mode":"Landscape mode"),o(we,"class","svelte-1blcm4e"),o(y,"class","stagesize-nav svelte-1blcm4e"),o(Ce,"class","topbar_btn svelte-1blcm4e"),o(Ce,"title","Open component in new tab"),o(be,"class","topbar_btn is-last-btn svelte-1blcm4e"),o(be,"title",Ge=s[7]?"Light mode":"Dark mode"),o(c,"class","topbar_nav svelte-1blcm4e"),o(t,"class","topbar_container svelte-1blcm4e"),o(e,"class","topbar svelte-1blcm4e")},m(V,ne){j(V,e,ne),m(e,t),m(t,n),m(n,l),qe.m(l,null),m(n,r),fe&&fe.m(n,null),m(t,a),m(t,c),m(c,u),m(u,f),m(u,g),m(u,d),m(u,T),m(u,S),m(c,C),m(c,y),m(y,k),m(k,L),m(L,M),m(L,W),m(k,$),m(k,oe),m(y,he),m(y,Y),m(Y,z),m(z,Q),m(z,I),m(Y,ie),m(Y,He),m(y,Qe),m(y,ce),m(ce,ee),m(ee,le),m(ee,Ie),m(ce,ve),m(ce,Le),m(y,Pe),m(y,v),m(y,rt),m(y,we),m(we,J),m(J,te),m(J,D),m(c,Re),de&&de.m(c,null),m(c,et),m(c,Ce),m(c,ot),m(c,be),Ve.m(be,null),at||(tt=[K(l,"click",s[10]),K(f,"change",s[17]),K(S,"change",s[18]),K(k,"click",s[21]),K(Y,"click",s[22]),K(ce,"click",s[23]),K(v,"click",s[24]),K(we,"click",s[14]),K(Ce,"click",s[15]),K(be,"click",s[12])],at=!0)},p(V,[ne]){St!==(St=ct(V))&&(qe.d(1),qe=St(V),qe&&(qe.c(),qe.m(l,null))),ne&1&&i!==(i=V[0]?"Collapse sidebar":"Expand sidebar")&&o(l,"title",i),V[6]?fe?fe.p(V,ne):(fe=Jn(V),fe.c(),fe.m(n,null)):fe&&(fe.d(1),fe=null),ne&4&&h!==(h=V[2]!=="full")&&(f.disabled=h),ne&256&&f.value!==V[8]&&(f.value=V[8]),ne&32&&o(f,"max",V[5]),ne&4&&w!==(w=V[2]!=="full")&&(S.disabled=w),ne&512&&S.value!==V[9]&&(S.value=V[9]),ne&16&&o(S,"max",V[4]),ne&2&&P(L,"landscape",V[1]),ne&4&&P(k,"active",V[2]==="small"),ne&2&&P(z,"landscape",V[1]),ne&4&&P(Y,"active",V[2]==="medium"),ne&2&&P(ee,"landscape",V[1]),ne&4&&P(ce,"active",V[2]==="large"),ne&4&&P(v,"active",V[2]==="full"),ne&2&&G!==(G=V[1]?"Portrait mode":"Landscape mode")&&o(we,"title",G),V[3].length>1?de?de.p(V,ne):(de=Kn(V),de.c(),de.m(c,et)):de&&(de.d(1),de=null),Ct!==(Ct=kn(V))&&(Ve.d(1),Ve=Ct(V),Ve&&(Ve.c(),Ve.m(be,null))),ne&128&&Ge!==(Ge=V[7]?"Light mode":"Dark mode")&&o(be,"title",Ge)},i:ae,o:ae,d(V){V&&p(e),qe.d(),fe&&fe.d(),de&&de.d(),Ve.d(),at=!1,Ft(tt)}}}function ci(s,e,t){const n=Fe();let{sidebarExpanded:l=!0}=e,{appTheme:i="default"}=e,{landscape:r=!1}=e,{stageSize:a="full"}=e,{themes:c=[]}=e,{stageRect:u}=e,{stageMaxHeight:f}=e,{stageMaxWidth:h}=e,{node:g}=e,d=!1,b,T;function S(){n("out",{toggleExpandSidebar:!0})}function w(){n("out",{toggleBookmark:g})}function C(){n("out",{updateAppTheme:i==="dark"?"default":"dark"})}function y(I){n("out",{stageSize:I})}function k(){n("out",{landscape:!r})}function L(){n("out",{openInTab:!0})}function M(I){n("out",{selectTheme:I})}function W(I){n("out",{stageWidth:Number.parseInt(I.target.value)})}function $(I){n("out",{stageHeight:Number.parseInt(I.target.value)})}const oe=()=>y("small"),he=()=>y("medium"),Y=()=>y("large"),z=()=>y("full"),Q=I=>M(I.name);return s.$$set=I=>{"sidebarExpanded"in I&&t(0,l=I.sidebarExpanded),"appTheme"in I&&t(19,i=I.appTheme),"landscape"in I&&t(1,r=I.landscape),"stageSize"in I&&t(2,a=I.stageSize),"themes"in I&&t(3,c=I.themes),"stageRect"in I&&t(20,u=I.stageRect),"stageMaxHeight"in I&&t(4,f=I.stageMaxHeight),"stageMaxWidth"in I&&t(5,h=I.stageMaxWidth),"node"in I&&t(6,g=I.node)},s.$$.update=()=>{if(s.$$.dirty&1048576){let{width:I,height:ie}=u;t(8,b=Math.round(I)),t(9,T=Math.round(ie))}s.$$.dirty&524288&&(t(7,d=i==="dark"),i==="dark"?document.documentElement.setAttribute("data-theme","dark"):document.documentElement.setAttribute("data-theme","light"))},[l,r,a,c,f,h,g,d,b,T,S,w,C,y,k,L,M,W,$,i,u,oe,he,Y,z,Q]}class ui extends Te{constructor(e){super(),ze(this,e,ci,ai,_e,{sidebarExpanded:0,appTheme:19,landscape:1,stageSize:2,themes:3,stageRect:20,stageMaxHeight:4,stageMaxWidth:5,node:6})}}const ht=[];function vl(s,e){return{subscribe:re(s,e).subscribe}}function re(s,e=ae){let t;const n=new Set;function l(a){if(_e(s,a)&&(s=a,t)){const c=!ht.length;for(const u of n)u[1](),ht.push(u,s);if(c){for(let u=0;u<ht.length;u+=2)ht[u][0](ht[u+1]);ht.length=0}}}function i(a){l(a(s))}function r(a,c=ae){const u=[a,c];return n.add(u),n.size===1&&(t=e(l,i)||ae),a(s),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:l,update:i,subscribe:r}}function hn(s,e,t){const n=!Array.isArray(s),l=n?[s]:s;if(!l.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const i=e.length<2;return vl(t,(r,a)=>{let c=!1;const u=[];let f=0,h=ae;const g=()=>{if(f)return;h();const b=e(n?u[0]:u,r,a);i?r(b):h=an(b)?b:ae},d=l.map((b,T)=>Il(b,S=>{u[T]=S,f&=~(1<<T),c&&g()},()=>{f|=1<<T}));return c=!0,g(),function(){Ft(d),h(),c=!1}})}function Qt(s,e,t=l=>l,n=l=>l){const l=re(t(localStorage.getItem(s))??e);return l.subscribe(i=>{localStorage.setItem(s,n(i))}),l}const Xe=re([]),wl=re(""),fn=Qt("stageSize","full"),dn=Qt("landscape",!1,s=>s==="true"),Ye=re(""),xl=re(""),Je=re(""),en=re("full"),tn=re("full"),hi=hn([Ye,Je],([s,e])=>Math.min(s,e)-20),fi=hn(xl,s=>s-20),bt=re(!0),El=Qt("appTheme","default"),gt=Qt("frameTheme"),nn=re(!0),xt=re(!1);let ft="";const di={small:{frameheight:"1170px",framewidth:"550px"},medium:{frameheight:"1080px",framewidth:"810px"},large:{frameheight:"960px",framewidth:"1536px"},full:{frameheight:"100%",framewidth:"100%"}};function gi(s){var e;Z(gt)||gt.set(((e=s==null?void 0:s.find(t=>t.active))==null?void 0:e.name)??s[0].name),Xe.set(s==null?void 0:s.map(t=>({...t,active:t.name===Z(gt)}))),Tt()}function pi(s){Xe.set(Z(Xe).map(e=>({...e,active:e.name===s}))),gt.set(s),Tt()}function mi(s){El.set(s)}function ki(){return Z(Xe)&&Z(Xe).length>0?Z(Xe).find(s=>s.name===Z(gt))??Z(Xe)[0]:{stageBg:"white"}}function Tt(){const s=ki().stageBg,{frameheight:e,framewidth:t}=di[Z(fn)],n=Z(dn)?`width: ${e}; height: ${t}`:`width: ${t}; height: ${e}`,l=`background-color: ${s}`;wl.set(`${n}; ${l}; transition: 0s;`)}function bi(s){Ye.set(s),yl()}function _i(s){const e=s-9;Je.set(e),yl()}function vi(s){xl.set(s)}function el(s){Number.isInteger(s)?en.set(Math.max(50,s)):en.set(s)}function tl(s){Number.isInteger(s)?tn.set(Math.max(50,s)):tn.set(s)}function yl(){Number.isInteger(Z(Ye))&&Number.isInteger(Z(Je))&&bt.set(Z(Ye)<Z(Je))}function nl(){Z(bt)?(ft=Z(Ye),Ye.set(Z(Je))):((!Number.isInteger(ft)||Number.isInteger(ft)&&Z(Je)-ft<50)&&(ft=Math.round(Z(Je)*.7)),Ye.set(ft)),bt.set(!Z(bt))}Tt();function wi(){Z(gn)?xt.set(!Z(xt)):nn.set(!Z(nn))}const gn=vl(window.innerWidth<840,s=>{const e=()=>{s(window.innerWidth<840),xt.set(!1)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),xi=hn([nn,xt,gn],([s,e,t])=>t?e:s);function Ei(){Z(gn)&&xt.set(!1)}function yi(s){fn.set(s),Tt()}function Ti(s){dn.set(s),Tt()}function zi(s,e,t=l=>l,n=l=>l){const l=re(t(localStorage.getItem(s))??e);return l.subscribe(i=>{localStorage.setItem(s,n(i))}),l}const lt=re([]),pt=re(!0),Gt=re(),Tl=re(),De=zi("bookmarks",[],JSON.parse,JSON.stringify);let ll=!1,Xt="",_t=[],Ae=[],zt;function Si(s){Ae=s.flatMap(pn).reduce((t,n)=>(t[n.key]=!0,t),{})}function pn(s){return[s,...Ci(s)]}function Ci(s){return s.children?s.children.flatMap(pn):[]}function Mi(s,e){Xt=s,zt=e,it(),Wi()}function Hi(s){Gt.set(s),it()}function Li(s){_t=s,ll||(Si(_t),Oi(),ll=!0),lt.set(mn(_t))}function it(){lt.set(mn(_t))}function mn(s,e){const t=Z(Gt);return s.map(n=>{var r;const l=t?(r=n.name)==null?void 0:r.toLowerCase().includes(t):!0,i=t&&l?Ii(n.name):n.name;if(n.isLeaf){const c=e||l?{...n,name:i,selected:zt===n.key,isLeaf:!0,bookmark:Z(De).find(u=>u.key===n.key)!==void 0}:void 0;return c.selected&&Tl.set(c),c}else{const a=mn(n.children,e||l).filter(u=>u),c=l||a.length>0;return c?{...n,name:i,children:a,unfolded:Ri(n,Xt,t,c),filterMatches:l}:void 0}}).filter(n=>n)}function Ii(s){const e=Z(Gt),t=s.toLowerCase().indexOf(e),n=t+e.length,l=s.substring(0,t),i=s.substring(t,n),r=s.substring(n);return`${l}<span class="highlight">${i}</span>${r}`}function Ri(s,e,t,n){return t&&n||Ae[s.key]||(e==null?void 0:e.indexOf(s.key))===0}function Ni(){pt.set(!Z(pt));const s=Z(lt).map(e=>({...e,unfolded:Z(pt)&&Ae[e.key]}));lt.set(s)}function Bi(s){if(!Z(pt)){Ai(s);return}Ae[s.key]&&Xt.indexOf(s.key)!==0?Ae[s.key]=!1:Ae[s.key]=!0,it()}function Ai(s){pt.set(!0),Object.keys(Ae).forEach(t=>Ae[t]=!1);const e=Z(lt).map(t=>t.key===s.key||Xt.indexOf(t.key)===0?(Ae[t.key]=!0,{...t,unfolded:!0}):(Ae[t.key]=!1,{...t,unfolded:!1}));lt.set(e),it()}function sl(s){s.bookmark?ji({...s,bookmark:!1}):Di({...s,bookmark:!0}),it()}function ji(s){De.set(Z(De).filter(e=>s.key!==e.key).map(e=>({...e,selected:e.key===zt}))),it()}function Di(s){De.set([...Z(De),s].map(e=>({...e,selected:e.key===zt})).sort((e,t)=>e.name.localeCompare(t.name))),it()}function Wi(){De.set([...Z(De)].map(s=>({...s,selected:s.key===zt})).sort((s,e)=>s.name.localeCompare(e.name)))}function Oi(){const s=_t.flatMap(pn),e=Z(De).filter(t=>(console.log("DEBUG","bookmark",t,"allno",s),s.some(n=>n.key===t.key)));De.set(e)}const zl=[],Pi=globalThis.location?globalThis.location.pathname+globalThis.location.search:"";let Me=Pi,nt="",ln,sn={url:Me};(function(){globalThis.history&&(globalThis.history.state&&globalThis.history.state.url==Me&&(sn=globalThis.history.state),globalThis.history.replaceState(sn,null,Me))})();function Ui(s,e,t){ln=s,nt=e,t&&qi(t),Ut(sn,Me)}function qi(s){zl.push(s)}function Ut(s,e){zl.forEach(t=>{t(Vi(e),s)})}function Vi(s){const e=s.substring(nt.length),t=Object.keys(ln).find(n=>e.match(new RegExp("^"+n+"$","i")));return t?ln[t]:null}(function(s){if(s){var e=s.pushState;s.pushState=function(t,n,l){if(!(l.startsWith(nt)&&nt.length>0)){if(Me=nt+l,t.url=Me,t.url!==s.state.url||t.selectedExample!==s.state.selectedExample)return Ut(t,Me),e.apply(s,[t,"",Me]);Ut(t,Me),window.location.reload()}}}})(globalThis.history);globalThis.onpopstate=function(s){s.state?Me=s.state.url:Me=nt.length>0?nt:"/",Ut(s.state,Me)};const rn=re(""),qt=re(),Vt=re({}),Sl=re("");let Zt,kt,on;function Zi(s){Zt=s,on&&Cl()}function Fi(s,e,t){Zt=s,on||(on=!0,Ui(e,t,Qi))}function Qi(s,e){if(qt.set({}),rn.set(""),Vt.set({}),s&&Zt){rn.set(s.fullname),Sl.set(s.route);const t=Zt[s.fullname];t.componentfile=s.file,qt.set(t),kt=e,Cl()}}function Cl(){var e,t;const s=Z(qt).examples||[];kt!=null&&kt.selectedExample?Vt.set((e=s.find(n=>n.title==kt.selectedExample))==null?void 0:e.title):Vt.set((t=s[0])==null?void 0:t.title)}function Gi(s){let e,t,n,l,i,r,a,c,u;return n=new ti({props:{projectTitle:s[25],projectLogo:s[26],projectLogoDarkmode:s[27],appTheme:s[6],sidebarExpanded:s[7],rootNodesExpanded:s[8],nodes:s[9],filter:s[10],panelExpanded:s[11],bookmarks:s[12],docsLink:s[3]}}),n.$on("out",s[30]),r=new ui({props:{sidebarExpanded:s[7],node:s[13],themes:s[14],appTheme:s[6],stageRect:s[2],stageSize:s[15],landscape:s[16],stageWidth:s[17],stageHeight:s[18],stageMaxHeight:s[19],stageMaxWidth:s[20]}}),r.$on("out",s[28]),c=new Ns({props:{componentName:s[1],das:s[21],selectedExample:s[5],stageStyle:s[22],stageSize:s[15],stageContainerHeight:s[23],stageContainerMaxHeight:s[24],stageHeight:s[18],stageWidth:s[17],stageMaxHeight:s[19],stageMaxWidth:s[20],theme:s[4],panelExpanded:s[11],devmodus:s[0].devmodus}}),c.$on("out",s[29]),{c(){e=x("div"),t=x("div"),xe(n.$$.fragment),l=B(),i=x("div"),xe(r.$$.fragment),a=B(),xe(c.$$.fragment),this.h()},l(f){e=E(f,"DIV",{class:!0});var h=_(e);t=E(h,"DIV",{class:!0});var g=_(t);Se(n.$$.fragment,g),g.forEach(p),l=A(h),i=E(h,"DIV",{class:!0});var d=_(i);Se(r.$$.fragment,d),a=A(d),Se(c.$$.fragment,d),d.forEach(p),h.forEach(p),this.h()},h(){o(t,"class","sidebar svelte-yh1ir7"),o(i,"class","main svelte-yh1ir7"),o(e,"class","garden svelte-yh1ir7")},m(f,h){j(f,e,h),m(e,t),Ee(n,t,null),m(e,l),m(e,i),Ee(r,i,null),m(i,a),Ee(c,i,null),u=!0},p(f,h){const g={};h[0]&64&&(g.appTheme=f[6]),h[0]&128&&(g.sidebarExpanded=f[7]),h[0]&256&&(g.rootNodesExpanded=f[8]),h[0]&512&&(g.nodes=f[9]),h[0]&1024&&(g.filter=f[10]),h[0]&2048&&(g.panelExpanded=f[11]),h[0]&4096&&(g.bookmarks=f[12]),h[0]&8&&(g.docsLink=f[3]),n.$set(g);const d={};h[0]&128&&(d.sidebarExpanded=f[7]),h[0]&8192&&(d.node=f[13]),h[0]&16384&&(d.themes=f[14]),h[0]&64&&(d.appTheme=f[6]),h[0]&4&&(d.stageRect=f[2]),h[0]&32768&&(d.stageSize=f[15]),h[0]&65536&&(d.landscape=f[16]),h[0]&131072&&(d.stageWidth=f[17]),h[0]&262144&&(d.stageHeight=f[18]),h[0]&524288&&(d.stageMaxHeight=f[19]),h[0]&1048576&&(d.stageMaxWidth=f[20]),r.$set(d);const b={};h[0]&2&&(b.componentName=f[1]),h[0]&2097152&&(b.das=f[21]),h[0]&32&&(b.selectedExample=f[5]),h[0]&4194304&&(b.stageStyle=f[22]),h[0]&32768&&(b.stageSize=f[15]),h[0]&8388608&&(b.stageContainerHeight=f[23]),h[0]&16777216&&(b.stageContainerMaxHeight=f[24]),h[0]&262144&&(b.stageHeight=f[18]),h[0]&131072&&(b.stageWidth=f[17]),h[0]&524288&&(b.stageMaxHeight=f[19]),h[0]&1048576&&(b.stageMaxWidth=f[20]),h[0]&16&&(b.theme=f[4]),h[0]&2048&&(b.panelExpanded=f[11]),h[0]&1&&(b.devmodus=f[0].devmodus),c.$set(b)},i(f){u||(O(n.$$.fragment,f),O(r.$$.fragment,f),O(c.$$.fragment,f),u=!0)},o(f){F(n.$$.fragment,f),F(r.$$.fragment,f),F(c.$$.fragment,f),u=!1},d(f){f&&p(e),ye(n),ye(r),ye(c)}}}function Xi(s){let e,t,n="Relative link was clicked!",l,i,r,a,c="back",u,f;return{c(){e=x("div"),t=x("div"),t.textContent=n,l=B(),i=x("div"),r=pe(`Click the button to return:
47
- `),a=x("button"),a.textContent=c,this.h()},l(h){e=E(h,"DIV",{class:!0});var g=_(e);t=E(g,"DIV",{class:!0,"data-svelte-h":!0}),ke(t)!=="svelte-jskzqc"&&(t.textContent=n),l=A(g),i=E(g,"DIV",{class:!0});var d=_(i);r=me(d,`Click the button to return:
48
- `),a=E(d,"BUTTON",{class:!0,"data-svelte-h":!0}),ke(a)!=="svelte-u4jm95"&&(a.textContent=c),d.forEach(p),g.forEach(p),this.h()},h(){o(t,"class","click-completed svelte-yh1ir7"),o(a,"class","svelte-yh1ir7"),o(i,"class","instruction svelte-yh1ir7"),o(e,"class","message svelte-yh1ir7")},m(h,g){j(h,e,g),m(e,t),m(e,l),m(e,i),m(i,r),m(i,a),u||(f=K(a,"click",s[35]),u=!0)},p:ae,i:ae,o:ae,d(h){h&&p(e),u=!1,f()}}}function Yi(s){let e,t,n,l;const i=[Xi,Gi],r=[];function a(c,u){return window.top!==window.self?0:1}return e=a(),t=r[e]=i[e](s),{c(){t.c(),n=mt()},l(c){t.l(c),n=mt()},m(c,u){r[e].m(c,u),j(c,n,u),l=!0},p(c,u){t.p(c,u)},i(c){l||(O(t),l=!0)},o(c){F(t),l=!1},d(c){c&&p(n),r[e].d(c)}}}let Ji="/garden";function Ki(s,e,t){var Le,Pe;let n,l,i,r,a,c,u,f,h,g,d,b,T,S,w,C,y,k,L,M,W,$,oe,he;se(s,gt,v=>t(4,l=v)),se(s,rn,v=>t(1,i=v)),se(s,Vt,v=>t(5,r=v)),se(s,Sl,v=>t(34,a=v)),se(s,El,v=>t(6,c=v)),se(s,xi,v=>t(7,u=v)),se(s,pt,v=>t(8,f=v)),se(s,lt,v=>t(9,h=v)),se(s,Gt,v=>t(10,g=v)),se(s,bt,v=>t(11,d=v)),se(s,De,v=>t(12,b=v)),se(s,Tl,v=>t(13,T=v)),se(s,Xe,v=>t(14,S=v)),se(s,fn,v=>t(15,w=v)),se(s,dn,v=>t(16,C=v)),se(s,tn,v=>t(17,y=v)),se(s,en,v=>t(18,k=v)),se(s,hi,v=>t(19,L=v)),se(s,fi,v=>t(20,M=v)),se(s,qt,v=>t(21,W=v)),se(s,wl,v=>t(22,$=v)),se(s,Ye,v=>t(23,oe=v)),se(s,Je,v=>t(24,he=v));let{routes:Y}=e,{navTree:z}=e,{dasMap:Q}=e,{config:I}=e,ie=I.project_title||"",He=((Le=I.project_logo)==null?void 0:Le.split("/").pop())||null,Qe=((Pe=I.project_logo_darkmode)==null?void 0:Pe.split("/").pop())||null,ce={};function ee(v){if(v.detail.openInTab){const ue=window.open("/frame.html","_blank");ue.onload=()=>{ue.postMessage({selectedExample:r,componentName:i,theme:l},window.location.origin)}}v.detail.selectTheme&&pi(v.detail.selectTheme),v.detail.updateAppTheme&&mi(v.detail.updateAppTheme),v.detail.toggleExpandSidebar&&wi(),v.detail.stageWidth&&tl(v.detail.stageWidth),v.detail.stageHeight&&el(v.detail.stageHeight),v.detail.toggleBookmark&&sl(v.detail.toggleBookmark),v.detail.stageSize&&yi(v.detail.stageSize),v.detail.landscape!==void 0&&Ti(v.detail.landscape)}function le(v){v.detail.stageRect&&t(2,ce=v.detail.stageRect),v.detail.stageContainerHeight&&bi(v.detail.stageContainerHeight),v.detail.toggleExpandPanel&&nl(),v.detail.stageContainerWidth&&vi(v.detail.stageContainerWidth),v.detail.stageContainerMaxHeight&&_i(v.detail.stageContainerMaxHeight),v.detail.stageWidth&&tl(v.detail.stageWidth),v.detail.stageHeight&&el(v.detail.stageHeight)}function Ie(v){var ue;v.detail.toggleFoldStatusOfNode&&Bi(v.detail.toggleFoldStatusOfNode),v.detail.toggleRootFolders&&Ni(),v.detail.filter&&Hi((ue=v.detail.filter.value)==null?void 0:ue.toLowerCase()),v.detail.toggleExpandPanel&&nl(),v.detail.toggleBookmark&&sl(v.detail.toggleBookmark)}const ve=()=>{window.top.location.reload()};return s.$$set=v=>{"routes"in v&&t(31,Y=v.routes),"navTree"in v&&t(32,z=v.navTree),"dasMap"in v&&t(33,Q=v.dasMap),"config"in v&&t(0,I=v.config)},s.$$.update=()=>{s.$$.dirty[1]&2&&Li(z),s.$$.dirty[1]&5&&Y&&Q&&Fi(Q,Y,Ji),s.$$.dirty[1]&4&&Zi(Q),s.$$.dirty[0]&1&&gi(I.themes),s.$$.dirty[0]&2|s.$$.dirty[1]&8&&(Mi(a,i),Ei()),s.$$.dirty[0]&1&&t(3,n=I.docs_link?1:0)},[I,i,ce,n,l,r,c,u,f,h,g,d,b,T,S,w,C,y,k,L,M,W,$,oe,he,ie,He,Qe,ee,le,Ie,Y,z,Q,a,ve]}class $i extends Te{constructor(e){super(),ze(this,e,Ki,Yi,_e,{routes:31,navTree:32,dasMap:33,config:0},null,[-1,-1])}}new $i({target:document.getElementById("app"),props:{navTree:Rl,routes:Nl,dasMap:Bl,config:Al}});