- Added `Export` method in `database/database.go` to export events to an io.Writer - Implemented detailed logic for exporting all or specific pubkeys' events - Removed placeholder `Export` function with TODO comment from `database/database.go` - Updated error handling in `handleReq.go` and `publisher.go` by using `err != nil` instead of `chk.E(err)` - Added more detailed logging in privilege check conditions in both `publisher.go` and `handleReq.go` - Introduced new imports such as `"fmt"` in `connection.go` for improved error message formatting - Created a new file `export.go` under the `database` package with complete implementation of export functionality
44 lines
2.8 MiB
44 lines
2.8 MiB
/**
|
||
* Minified by jsDelivr using Terser v5.39.0.
|
||
* Original file: /npm/@scalar/api-reference@1.32.10/dist/browser/standalone.js
|
||
*
|
||
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
|
||
*/
|
||
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.references-classic-header[data-v-9198d025]{display:flex;align-items:center;gap:12px;max-width:var(--refs-content-max-width);margin:auto;padding:12px 0}.references-classic-header-content[data-v-9198d025]{display:flex;gap:12px;flex-grow:1}.references-classic-header-container[data-v-9198d025]{padding:0 60px}@container narrow-references-container (max-width: 900px){.references-classic-header[data-v-9198d025]{padding:12px 24px}.references-classic-header-container[data-v-9198d025]{padding:0}}.references-classic-header-icon[data-v-9198d025]{height:24px;color:var(--scalar-color-1)}.client-libraries-content[data-v-82c08547]{container:client-libraries-content / inline-size;display:flex;justify-content:center;overflow:hidden;padding:0 12px;background-color:var(--scalar-background-1);border-left:var(--scalar-border-width) solid var(--scalar-border-color);border-right:var(--scalar-border-width) solid var(--scalar-border-color)}.client-libraries[data-v-82c08547]{display:flex;align-items:center;justify-content:center;width:100%;position:relative;cursor:pointer;white-space:nowrap;padding:8px 2px;gap:6px;color:var(--scalar-color-3);border-bottom:1px solid transparent;-webkit-user-select:none;user-select:none}.client-libraries[data-v-82c08547]:first-child{border-radius:var(--scalar-radius) 0 0 0}.client-libraries[data-v-82c08547]:not(.client-libraries__active):hover:before{content:"";position:absolute;width:calc(100% - 4px);height:calc(100% - 4px);background:var(--scalar-background-2);left:2px;top:2px;z-index:0;border-radius:var(--scalar-radius)}.client-libraries[data-v-82c08547]:active{color:var(--scalar-color-1)}.client-libraries[data-v-82c08547]:focus-visible{outline:none;box-shadow:inset 0 0 0 1px var(--scalar-color-accent)}@media screen and (max-width: 450px){.client-libraries[data-v-82c08547]:nth-of-type(4),.client-libraries[data-v-82c08547]:nth-of-type(5){display:none}}.client-libraries-icon[data-v-82c08547]{max-width:14px;max-height:14px;min-width:14px;width:100%;aspect-ratio:1;display:flex;align-items:center;justify-content:center;position:relative;box-sizing:border-box;color:currentColor}.client-libraries-icon__more svg[data-v-82c08547]{height:initial}@container client-libraries-content (width < 400px){.client-libraries__select[data-v-82c08547]{width:fit-content}.client-libraries__select .client-libraries-icon__more+span[data-v-82c08547]{display:none}}@container client-libraries-content (width < 380px){.client-libraries[data-v-82c08547]{width:100%}.client-libraries span[data-v-82c08547]{display:none}}.client-libraries__active[data-v-82c08547]{color:var(--scalar-color-1);border-bottom:1px solid var(--scalar-color-1)}@keyframes codeloader-82c08547{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.client-libraries .client-libraries-text[data-v-82c08547]{font-size:var(--scalar-small);position:relative;display:flex;align-items:center}.client-libraries__active .client-libraries-text[data-v-82c08547]{color:var(--scalar-color-1);font-weight:var(--scalar-semibold)}.client-libraries__select select[data-v-82c08547]{background:var(--scalar-background-3);color:var(--scalar-color-2);opacity:0;height:100%;width:100%;aspect-ratio:1;position:absolute;top:0;left:0;cursor:pointer;z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none}.client-libraries__select[data-v-82c08547]:has(select:focus-visible){border-radius:var(--scalar-radius);box-shadow:inset 0 0 0 1px var(--scalar-color-accent)}@media screen and (max-width: 600px){.references-classic .client-libraries[data-v-82c08547]{flex-direction:column}}.selected-client[data-v-d0decf3e]{color:var(--scalar-color-1);font-size:var(--scalar-small);font-family:var(--scalar-font-code);padding:9px 12px;border-top:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:var(--scalar-background-1);border:var(--scalar-border-width) solid var(--scalar-border-color);border-bottom-left-radius:var(--scalar-radius-lg);border-bottom-right-radius:var(--scalar-radius-lg);min-height:fit-content}.client-libraries-heading[data-v-d0decf3e]{font-size:var(--scalar-small);font-weight:var(--scalar-font-medium);color:var(--scalar-color-1);padding:9px 12px;background-color:var(--scalar-background-2);display:flex;align-items:center;max-height:32px;border:var(--scalar-border-width) solid var(--scalar-border-color);border-top-left-radius:var(--scalar-radius-lg);border-top-right-radius:var(--scalar-radius-lg)}[data-v-d0decf3e] .scalar-codeblock-pre .hljs{margin-top:8px}.badge[data-v-f1bc5cda]{color:var(--scalar-color-2);font-size:var(--scalar-mini);background:var(--scalar-background-2);border:var(--scalar-border-width) solid var(--scalar-border-color);padding:2px 6px;border-radius:12px;display:inline-block}.badge.text-orange[data-v-f1bc5cda]{background:color-mix(in srgb,var(--scalar-color-orange),transparent 90%);border:transparent}.badge.text-yellow[data-v-f1bc5cda]{background:color-mix(in srgb,var(--scalar-color-yellow),transparent 90%);border:transparent}.badge.text-red[data-v-f1bc5cda]{background:color-mix(in srgb,var(--scalar-color-red),transparent 90%);border:transparent}.badge.text-purple[data-v-f1bc5cda]{background:color-mix(in srgb,var(--scalar-color-purple),transparent 90%);border:transparent}.badge.text-green[data-v-f1bc5cda]{background:color-mix(in srgb,var(--scalar-color-green),transparent 90%);border:transparent}.sidebar-heading-type[data-v-522f945c]{display:inline-flex;align-items:center;gap:4px;overflow:hidden;line-height:14px;flex-shrink:0;text-transform:uppercase;color:var(--method-color, var(--scalar-color-1));font-size:10px;font-weight:var(--scalar-bold);font-family:var(--scalar-font-code);white-space:nowrap}.sidebar-heading[data-v-fa7fb2b8]{display:flex;gap:4px;color:var(--scalar-sidebar-color-2, var(--scalar-color-2));font-size:var(--scalar-small);font-weight:var(--scalar-sidebar-font-weight, var(--scalar-regular));word-break:break-word;line-height:1.385;max-width:100%;position:relative;cursor:pointer;border-radius:var(--scalar-radius);flex:1;padding-right:9px;-webkit-user-select:none;user-select:none}.sidebar-heading-link-method[data-v-fa7fb2b8]{margin:0}.sidebar-heading.deprecated .sidebar-heading-link-title[data-v-fa7fb2b8]{text-decoration:line-through}.sidebar-heading-link-title[data-v-fa7fb2b8]{margin:0}.sidebar-heading[data-v-fa7fb2b8]:hover{background:var( --scalar-sidebar-item-hover-background, var(--scalar-background-2) )}.sidebar-heading:hover .sidebar-heading-link-title[data-v-fa7fb2b8]{color:var(--scalar-sidebar-item-hover-color)}.sidebar-heading-link[data-v-fa7fb2b8]:focus-visible{outline:none}.sidebar-heading[data-v-fa7fb2b8]:has(>.sidebar-heading-link:focus-visible){z-index:1;outline:1px solid var(--scalar-color-accent)}.active_page.sidebar-heading[data-v-fa7fb2b8]:hover,.active_page.sidebar-heading[data-v-fa7fb2b8]{color:var(--scalar-sidebar-color-active, var(--scalar-color-accent));background:var( --scalar-sidebar-item-active-background, var(--scalar-background-accent) )}.active_page.sidebar-heading p[data-v-fa7fb2b8]{font-weight:var(--scalar-sidebar-font-weight-active, var(--scalar-semibold))}.active_page.sidebar-heading:hover .sidebar-heading-link-title[data-v-fa7fb2b8]{color:var(--scalar-sidebar-color-active, var(--scalar-color-accent))}.sidebar-indent-nested .sidebar-indent-nested .sidebar-heading[data-v-fa7fb2b8]:before{content:"";position:absolute;top:0;left:calc((var(--scalar-sidebar-level) * 15.5px));width:var(--scalar-border-width);height:100%;background:var(--scalar-sidebar-indent-border)}.sidebar-indent-nested .sidebar-indent-nested .sidebar-heading[data-v-fa7fb2b8]:hover:before{background:var(--scalar-sidebar-indent-border-hover)}.sidebar-indent-nested .sidebar-indent-nested .active_page.sidebar-heading[data-v-fa7fb2b8]:before{background:var(--scalar-sidebar-indent-border-active)}.sidebar-heading-link[data-v-fa7fb2b8]{text-decoration:none;color:inherit;padding:6px 0;display:flex;flex:1;justify-content:space-between;gap:2px}.sidebar-heading p[data-v-fa7fb2b8]{height:fit-content;display:flex;align-items:center;font-weight:var(--scalar-sidebar-font-weight, var(--scalar-regular))}.sidebar-heading p[data-v-fa7fb2b8]:empty{display:none}.link-icon[data-v-fa7fb2b8]{position:relative;left:4px}.sidebar-icon[data-v-fa7fb2b8]{display:flex;align-items:center;justify-content:center;margin-right:6px;width:13px;height:13px}.sidebar-icon>svg[data-v-fa7fb2b8]{width:13px;height:13px}.sidebar-group-item[data-v-fa7fb2b8]{position:relative}.sidebar-heading-chevron[data-v-fa7fb2b8]{margin:5px 0;width:16px}.sidebar-heading-chevron .toggle-nested-icon[data-v-fa7fb2b8]:focus-visible{outline:none}.sidebar-heading[data-v-fa7fb2b8]:has(.sidebar-heading-chevron .toggle-nested-icon:focus-visible){outline:none;box-shadow:inset 0 0 0 1px var(--scalar-color-accent)}.toggle-nested-icon[data-v-fa7fb2b8]{color:var(--scalar-color-3);width:16px;height:16px;display:flex;align-items:center;justify-content:center}.active_page .toggle-nested-icon[data-v-fa7fb2b8]{color:var(--scalar-sidebar-color-active, var(--scalar-color-accent))}.toggle-nested-icon[data-v-fa7fb2b8]:hover,.toggle-nested-icon[data-v-fa7fb2b8]:focus-visible{color:currentColor}.action-menu[data-v-fa7fb2b8]{position:absolute;top:5px;right:5px;display:flex;gap:6px}.action-menu[data-v-fa7fb2b8] .button-wrapper button{opacity:0;width:20px;height:20px;padding:4px}.action-menu[data-v-fa7fb2b8]:hover .button-wrapper button,.action-menu[data-v-fa7fb2b8] .button-wrapper button:hover,.sidebar-heading:hover~.action-menu[data-v-fa7fb2b8] .button-wrapper button,.action-menu[data-v-fa7fb2b8] .button-wrapper button[aria-expanded=true]{opacity:1}.sidebar-heading[data-v-fa7fb2b8]:has(~.action-menu:hover){color:var(--scalar-sidebar-color-1, var(--scalar-color-1));background:var( --scalar-sidebar-item-hover-background, var(--scalar-background-2) )}.sidebar-group-item__folder[data-v-fa7fb2b8]{color:var(--scalar-sidebar-color-2, var(--scalar-color-2));text-transform:var(--scalar-tag-text-transform, initial)}.sidebar-group-item__folder[data-v-fa7fb2b8]:has(~ul .sidebar-heading.active_page){--scalar-sidebar-font-weight: var(--scalar-sidebar-font-weight-active);color:var(--scalar-sidebar-color-1, var(--scalar-color-1));font-weight:var(--scalar-sidebar-font-weight-active, var(--scalar-semibold))}.sidebar-group[data-v-a0601651]{list-style:none;width:100%;margin:0;padding:0}.sidebar-indent-nested[data-v-a0601651] .sidebar-heading{padding-left:calc((var(--scalar-sidebar-level) * var(--scalar-sidebar-indent-base)) + 8px)!important}.sidebar-indent-nested[data-v-a0601651] .sidebar-heading .toggle-nested-icon{left:calc((var(--scalar-sidebar-level) * var(--scalar-sidebar-indent-base)) + 2px)!important}:where(.sidebar-indent-nested[data-v-a0601651]) .sidebar-heading{color:var(--scalar-sidebar-color-1, var(--scalar-color-1))}:where(.sidebar-indent-nested[data-v-a0601651]) :where(.sidebar-indent-nested) .sidebar-heading{color:var(--scalar-sidebar-color-2, var(--scalar-color-2))}.sidebar[data-v-db673c0a]{--scalar-sidebar-indent-base: 20px;--scalar-sidebar-font-weight-active: var(--scalar-semibold);--scalar-sidebar-font-weight: var(--scalar-regular)}.sidebar[data-v-db673c0a]{flex:1;height:100%;display:flex;flex-direction:column;border-right:var(--scalar-border-width) solid var(--scalar-sidebar-border-color, var(--scalar-border-color));background:var(--scalar-sidebar-background-1, var(--scalar-background-1));--scalar-sidebar-level: 0}.sidebar-pages[data-v-db673c0a]{flex:1;padding:6px 12px}@media (max-width: 1000px){.sidebar[data-v-db673c0a]{min-height:0;border-right:none}.sidebar-pages[data-v-db673c0a]{padding-top:12px}}.sidebar-group-title[data-v-db673c0a]{color:var(--scalar-sidebar-color-1);font-size:var(--scalar-mini);padding:12px 6px 6px;font-weight:var(--scalar-semibold);text-transform:uppercase;word-break:break-word;line-height:1.385}.sidebar-group-item+.sidebar-group-title[data-v-db673c0a]{border-top:var(--scalar-border-width) solid var(--scalar-sidebar-border-color);margin-top:9px}.section[data-v-393971a5]{position:relative;display:flex;flex-direction:column;max-width:var(--refs-content-max-width);margin:auto;padding:90px 0;scroll-margin-top:var(--refs-header-height)}.section[data-v-393971a5]:has(~div.contents){border-bottom:var(--scalar-border-width) solid var(--scalar-border-color)}.references-classic .section[data-v-393971a5]{padding:48px 0;gap:24px}@container narrow-references-container (max-width: 900px){.references-classic .section[data-v-393971a5],.section[data-v-393971a5]{padding:48px 24px}}.section[data-v-393971a5]:not(:last-of-type){border-bottom:var(--scalar-border-width) solid var(--scalar-border-color)}.section-wrapper[data-v-c13102ab]{color:var(--scalar-color-1);padding-top:12px;margin-top:-12px}.section-accordion[data-v-c13102ab]{display:flex;flex-direction:column;border-radius:var(--scalar-radius-lg);background:var(--scalar-background-2)}.section-accordion-transparent[data-v-c13102ab]{background:transparent;border:var(--scalar-border-width) solid var(--scalar-border-color)}.section-accordion-button[data-v-c13102ab]{padding:6px}.section-accordion-button[data-v-c13102ab]{display:flex;align-items:center;gap:6px;cursor:pointer}.section-accordion-button-content[data-v-c13102ab]{flex:1;min-width:0}.section-accordion-button-actions[data-v-c13102ab]{display:flex;align-items:center;gap:6px;color:var(--scalar-color-3)}.section-accordion-chevron[data-v-c13102ab]{margin-right:4px;cursor:pointer;opacity:1;color:var(--scalar-color-3)}.section-accordion-button:hover .section-accordion-chevron[data-v-c13102ab]{color:var(--scalar-color-1)}.section-accordion-content[data-v-c13102ab]{border-top:var(--scalar-border-width) solid var(--scalar-border-color);display:flex;flex-direction:column}.section-accordion-description[data-v-c13102ab]{font-weight:var(--scalar-semibold);font-size:var(--scalar-mini);color:var(--scalar-color--1);padding:10px 12px 0}.section-accordion-content-card[data-v-c13102ab] .property:last-of-type{padding-bottom:9px}.section-column[data-v-699c28e3]{flex:1;min-width:0}@container narrow-references-container (max-width: 900px){.section-column[data-v-699c28e3]:nth-of-type(2){padding-top:0}}.section-columns[data-v-8b9602bf]{display:flex;gap:48px}@container narrow-references-container (max-width: 900px){.section-columns[data-v-8b9602bf]{flex-direction:column;gap:24px}}.section-container[data-v-3afcb4e7]{position:relative;padding:0 60px;width:100%;border-top:var(--scalar-border-width) solid var(--scalar-border-color)}.section-container[data-v-3afcb4e7]:has(.introduction-section){border-top:none}@container narrow-references-container (max-width: 900px){.section-container[data-v-3afcb4e7]{padding:0}}.section-accordion-wrapper[data-v-88109f3f]{padding:0 60px}.section-accordion[data-v-88109f3f]{position:relative;width:100%;max-width:var(--refs-content-max-width);margin:auto}.section-accordion-content[data-v-88109f3f]{display:flex;flex-direction:column;gap:12px;padding-top:12px}.section-accordion-button[data-v-88109f3f]{width:100%;display:flex;cursor:pointer;padding:6px 0;margin:-6px 0;border-radius:var(--scalar-radius)}.section-accordion-chevron[data-v-88109f3f]{position:absolute;left:-22px;top:12px;color:var(--scalar-color-3)}.section-accordion-button:hover .section-accordion-chevron[data-v-88109f3f]{color:var(--scalar-color-1)}.section-accordion-title[data-v-88109f3f]{display:flex;flex-direction:column;align-items:flex-start;flex:1;padding:0 6px}.section-accordion-title[data-v-88109f3f] .section-header-wrapper{grid-template-columns:1fr}.section-accordion-title[data-v-88109f3f] .section-header{margin-bottom:0}@container narrow-references-container (max-width: 900px){.section-accordion-chevron[data-v-88109f3f]{width:16px;left:-16px;top:14px}.section-accordion-wrapper[data-v-88109f3f]{padding:calc(var(--refs-header-height)) 24px 0 24px}}.loading[data-v-c90b2c46]{background:var(--scalar-background-3);animation:loading-skeleton-c90b2c46 1.5s infinite alternate;border-radius:var(--scalar-radius-lg);min-height:1.6em;margin:.6em 0;max-width:100%}.loading[data-v-c90b2c46]:first-of-type{min-height:3em;margin-bottom:24px;margin-top:0}.loading[data-v-c90b2c46]:last-of-type{width:60%}.loading.single-line[data-v-c90b2c46]{min-height:3em;margin:.6em 0;max-width:80%}@keyframes loading-skeleton-c90b2c46{0%{opacity:1}to{opacity:.33}}@container narrow-references-container (max-width: 900px){.section-content--with-columns[data-v-9735459e]{flex-direction:column;gap:24px}}.section-header-wrapper[data-v-465a7a78]{grid-template-columns:1fr;display:grid}@media (min-width:1200px){.section-header-wrapper[data-v-465a7a78]{grid-template-columns:repeat(2,1fr)}}.section-header[data-v-465a7a78]{font-size:var(--font-size,var(--scalar-heading-1));font-weight:var(--font-weight,var(--scalar-bold));color:var(--scalar-color-1);word-wrap:break-word;margin-top:0;margin-bottom:12px;line-height:1.45}.section-header.tight[data-v-465a7a78]{margin-bottom:6px}.section-header.loading[data-v-465a7a78]{width:80%}.section-header-label[data-v-f1ac6c38]{display:inline}.screenreader-only[data-v-df2e1026]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.label[data-v-2f3e206c]{position:relative;display:inline-block;word-break:break-all}.anchor[data-v-2f3e206c]{position:relative;display:inline-block;opacity:0}.anchor-copy[data-v-2f3e206c]{position:absolute;left:0;top:50%;transform:translateY(-50%);cursor:pointer;padding:0 6px;color:var(--scalar-color-3);font-weight:var(--scalar-semibold);font-size:.8em}.anchor-copy[data-v-2f3e206c]:hover,.anchor-copy[data-v-2f3e206c]:focus-visible{color:var(--scalar-color-2)}.label:hover .anchor[data-v-2f3e206c],.label:has(:focus-visible) .anchor[data-v-2f3e206c]{opacity:1}.collapsible-section[data-v-4b9f7b57]{border-top:var(--scalar-border-width) solid var(--scalar-border-color);position:relative}.collapsible-section-header[data-v-4b9f7b57]{color:var(--scalar-color-1)}.collapsible-section .collapsible-section-trigger[data-v-4b9f7b57]{display:flex;align-items:center;cursor:pointer;padding:10px 0;font-size:var(--scalar-font-size-3);z-index:1;position:relative}.collapsible-section-trigger svg[data-v-4b9f7b57]{color:var(--scalar-color-3);position:absolute;left:-19px}.collapsible-section:hover .collapsible-section-trigger svg[data-v-4b9f7b57]{color:var(--scalar-color-1)}.collapsible-section .collapsible-section-trigger[data-v-4b9f7b57] .anchor-copy{line-height:18.5px}.collapsible-section-content[data-v-4b9f7b57]{padding:0;margin:0;scroll-margin-top:140px}.collapsible-section:not(:last-child) .collapsible-section-content[data-v-4b9f7b57]{margin-bottom:10px}@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){[data-v-929c417a],[data-v-929c417a]:before,[data-v-929c417a]:after,[data-v-929c417a]::backdrop{--tw-outline-style:solid}}}.download-container[data-v-929c417a]{z-index:0;flex-direction:column;gap:16px;width:fit-content;margin:0 .5px 8px;display:flex;position:relative}.download-container[data-v-929c417a]:has(:focus-visible):before,.download-container.download-both[data-v-929c417a]:hover:before{content:"";border-radius:var(--scalar-radius-lg);width:calc(100% + 24px);height:90px;box-shadow:var(--scalar-shadow-2);pointer-events:none;background:var(--scalar-background-1);position:absolute;top:-11px;left:-12px}.download-button[data-v-929c417a]{color:var(--scalar-link-color);cursor:pointer;outline:none;justify-content:center;align-items:center;gap:4px;height:fit-content;padding:0;display:flex;position:relative;white-space:nowrap!important}.download-button[data-v-929c417a]:before{border-radius:var(--scalar-radius);content:"";width:calc(100% + 18px);height:calc(100% + 16px);position:absolute;top:-8px;left:-9px}.download-button[data-v-929c417a]:last-of-type:before{width:calc(100% + 15px)}.download-button[data-v-929c417a]:hover:before{background:var(--scalar-background-2);border:var(--scalar-border-width)solid var(--scalar-border-color)}.download-button[data-v-929c417a]:focus-visible:before{background:var(--scalar-background-2);border:var(--scalar-border-width)solid var(--scalar-border-color);outline-style:var(--tw-outline-style);outline-width:1px}.download-button span[data-v-929c417a]{--font-color:var(--scalar-link-color,var(--scalar-color-accent));--font-visited:var(--scalar-link-color-visited,var(--scalar-color-2));-webkit-text-decoration:var(--scalar-text-decoration);text-decoration:var(--scalar-text-decoration);color:var(--font-color);font-weight:var(--scalar-link-font-weight,var(--scalar-semibold));text-underline-offset:.25rem;text-decoration-thickness:1px;-webkit-text-decoration-color:var(--font-color);text-decoration-color:var(--font-color)}@supports (color:color-mix(in lab,red,red)){.download-button span[data-v-929c417a]{-webkit-text-decoration-color:color-mix(in srgb,var(--font-color)30%,transparent);text-decoration-color:color-mix(in srgb,var(--font-color)30%,transparent)}}.download-button span[data-v-929c417a]{z-index:1;align-items:center;gap:6px;line-height:1.625;display:flex}.download-button:hover span[data-v-929c417a]{color:var(--scalar-link-color-hover,var(--scalar-color-accent));-webkit-text-decoration:var(--scalar-text-decoration-hover);text-decoration:var(--scalar-text-decoration-hover)}.download-button[data-v-929c417a]:nth-of-type(2){clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.download-container:has(:focus-visible) .download-button[data-v-929c417a]:nth-of-type(2),.download-container:hover .download-button[data-v-929c417a]:nth-of-type(2){clip:auto;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:absolute;top:42px;overflow:visible}.extension[data-v-929c417a]{z-index:1;background:var(--scalar-link-color,var(--scalar-color-accent));color:var(--scalar-background-1)}.download-container:has(:focus-visible) .extension[data-v-929c417a],.download-container:hover .extension[data-v-929c417a]{opacity:1}.introduction-description-heading[data-v-d2a06436]{scroll-margin-top:64px}.introduction-description[data-v-d2a06436]{display:flex;flex-direction:column;margin-top:24px}.references-classic .introduction-description[data-v-d2a06436] img{max-width:720px}.sticky-cards[data-v-d9560193]{display:flex;flex-direction:column;position:sticky;top:calc(var(--refs-header-height) + 24px)}.schema-type-icon[data-v-eec32394]{color:var(--scalar-color-1);display:none}.schema-type[data-v-eec32394]{font-family:var(--scalar-font-code);color:var(--scalar-color-1)}.property-enum-value[data-v-ac891053]{color:var(--scalar-color-3);line-height:1.5;word-break:break-word;display:flex;align-items:stretch;position:relative}.property-enum-value-content[data-v-ac891053]{display:flex;flex-direction:column;padding:3px 0}.property-enum-value-label[data-v-ac891053]{display:flex;font-family:var(--scalar-font-code);color:var(--scalar-color-1);position:relative}.property-enum-value:last-of-type .property-enum-value-label[data-v-ac891053]{padding-bottom:0}.property-enum-value[data-v-ac891053]:before{content:"";margin-right:12px;width:var(--scalar-border-width);display:block;background:currentColor;color:var(--scalar-color-3)}.property-enum-value[data-v-ac891053]:last-child:before{height:14px}.property-enum-value[data-v-ac891053]:not(:last-child):before{content:"";margin-right:12px;width:var(--scalar-border-width);display:block;background:currentColor;color:var(--scalar-color-3)}.property-enum-value-label[data-v-ac891053]:after{content:"";position:absolute;top:50%;left:-12px;width:8px;height:var(--scalar-border-width);background:var(--scalar-color-2)}.property-enum-value[data-v-ac891053]:last-of-type:after{bottom:0;height:50%;background:var(--scalar-background-1);border-top:var(--scalar-border-width) solid currentColor}.property-enum-value-description[data-v-ac891053]{color:var(--scalar-color-3)}.property-heading:empty+.property-description[data-v-904ae9e7]:last-of-type,.property-description[data-v-904ae9e7]:first-of-type:last-of-type{margin-top:0}.property-list[data-v-904ae9e7]{border:var(--scalar-border-width) solid var(--scalar-border-color);border-radius:var(--scalar-radius);margin-top:10px}.property-list .property[data-v-904ae9e7]:last-of-type{padding-bottom:10px}.property-enum-values[data-v-904ae9e7]{font-size:var(--scalar-font-size-3);list-style:none;margin-top:8px;padding-left:2px}.enum-toggle-button[data-v-904ae9e7]{align-items:center;border:var(--scalar-border-width) solid var(--scalar-border-color);border-radius:13.5px;cursor:pointer;color:var(--scalar-color-2);display:flex;font-weight:var(--scalar-semibold);font-size:var(--scalar-font-size-5);gap:4px;margin-top:8px;padding:6px;-webkit-user-select:none;user-select:none;white-space:nowrap}.enum-toggle-button[data-v-904ae9e7]:hover{color:var(--scalar-color-1)}.enum-toggle-button-icon--open[data-v-904ae9e7]{transform:rotate(45deg)}.property-detail[data-v-3ae98a1b]{display:inline-flex}.property-detail+.property-detail[data-v-3ae98a1b]:before{display:block;content:"·";margin:0 .5ch}.property-detail-truncate[data-v-3ae98a1b]{overflow:hidden}.property-detail-truncate>.property-detail-value[data-v-3ae98a1b]{overflow:hidden;text-overflow:ellipsis}.property-detail-prefix[data-v-3ae98a1b]{color:var(--scalar-color-2)}code.property-detail-value[data-v-3ae98a1b]{font-family:var(--scalar-font-code);font-size:var(--scalar-font-size-3);color:var(--scalar-color-2);background:var(--scalar-background-3);padding:0 4px;border:.5px solid var(--scalar-border-color);border-radius:var(--scalar-radius)}.property-example[data-v-1c1ebd80]{display:flex;flex-direction:column;font-size:var(--scalar-mini);position:relative}.property-example[data-v-1c1ebd80]:hover:before{content:"";position:absolute;top:0;left:0;width:100%;height:20px;border-radius:var(--scalar-radius)}.property-example:hover .property-example-label span[data-v-1c1ebd80]{color:var(--scalar-color-1)}.property-example-label span[data-v-1c1ebd80]{color:var(--scalar-color-3);position:relative;border-bottom:var(--scalar-border-width) dotted currentColor}.property-example-value[data-v-1c1ebd80]{font-family:var(--scalar-font-code);display:flex;gap:8px;align-items:center;width:100%;padding:6px}.property-example-value span[data-v-1c1ebd80]{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.property-example-value[data-v-1c1ebd80] svg{color:var(--scalar-color-3)}.property-example-value[data-v-1c1ebd80]:hover svg{color:var(--scalar-color-1)}.property-example-value[data-v-1c1ebd80]{background:var(--scalar-background-2);border:var(--scalar-border-width) solid var(--scalar-border-color);border-radius:var(--scalar-radius)}.property-example-value-list[data-v-1c1ebd80]{position:absolute;top:18px;left:50%;transform:translate3d(-50%,0,0);overflow:auto;background-color:var(--scalar-background-1);box-shadow:var(--scalar-shadow-1);border-radius:var(--scalar-radius-lg);border:var(--scalar-border-width) solid var(--scalar-border-color);padding:9px;min-width:200px;max-width:300px;flex-direction:column;gap:3px;display:none;z-index:10}.property-example:hover .property-example-value-list[data-v-1c1ebd80],.property-example:focus-within .property-example-value-list[data-v-1c1ebd80]{display:flex}.property-heading[data-v-10b9288a]{display:flex;flex-wrap:wrap;align-items:baseline;row-gap:9px;white-space:nowrap}.property-heading[data-v-10b9288a]:has(+.children),.property-heading[data-v-10b9288a]:has(+.property-rule){margin-bottom:9px}.property-heading[data-v-10b9288a]>*{margin-right:9px}.property-heading[data-v-10b9288a]:last-child{margin-right:0}.property-heading>.property-detail[data-v-10b9288a]:not(:last-of-type){margin-right:0}.property-name[data-v-10b9288a]{font-family:var(--scalar-font-code);font-weight:var(--scalar-semibold);font-size:var(--scalar-font-size-3);overflow:hidden;white-space:normal;overflow-wrap:break-word}.property-additional[data-v-10b9288a]{font-family:var(--scalar-font-code)}.property-required[data-v-10b9288a],.property-optional[data-v-10b9288a]{color:var(--scalar-color-2)}.property-required[data-v-10b9288a]{font-size:var(--scalar-mini);color:var(--scalar-color-orange)}.property-read-only[data-v-10b9288a]{font-size:var(--scalar-mini);color:var(--scalar-color-blue)}.property-write-only[data-v-10b9288a]{font-size:var(--scalar-mini);color:var(--scalar-color-green)}.property-discriminator[data-v-10b9288a]{font-size:var(--scalar-mini);color:var(--scalar-color-purple)}.property-detail[data-v-10b9288a]{font-size:var(--scalar-mini);color:var(--scalar-color-2);display:flex;align-items:center;min-width:0}.property-const[data-v-10b9288a]{color:var(--scalar-color-1)}.deprecated[data-v-10b9288a]{text-decoration:line-through}.property[data-v-7f7d1229]{color:var(--scalar-color-1);display:flex;flex-direction:column;padding:8px;font-size:var(--scalar-small);position:relative}.property.property--level-0[data-v-7f7d1229]:has(.property-rule .schema-properties.schema-properties-open>ul li.property){padding-top:0}.property[data-v-7f7d1229]:hover{z-index:1}.property--compact.property--level-0[data-v-7f7d1229],.property--compact.property--level-1[data-v-7f7d1229]{padding:8px 0}.composition-panel .property.property.property.property--level-0[data-v-7f7d1229]{padding:0}.property--compact.property--level-0 .composition-panel .property--compact.property--level-1[data-v-7f7d1229]{padding:8px}.property[data-v-7f7d1229]:has(>.property-rule:nth-of-type(1)):not(.property--compact){padding-top:8px;padding-bottom:8px}.property--deprecated[data-v-7f7d1229]{background:repeating-linear-gradient(-45deg,var(--scalar-background-2) 0,var(--scalar-background-2) 2px,transparent 2px,transparent 5px);background-size:100%}.property--deprecated[data-v-7f7d1229]>*{opacity:.75}.property-description[data-v-7f7d1229]{margin-top:6px;line-height:1.4;font-size:var(--scalar-small)}.property-description[data-v-7f7d1229]:has(+.property-rule){margin-bottom:9px}[data-v-7f7d1229] .property-description *{color:var(--scalar-color-2)!important}.property[data-v-7f7d1229]:not(:last-of-type){border-bottom:var(--scalar-border-width) solid var(--scalar-border-color)}.property-description+.children[data-v-7f7d1229],.children+.property-rule[data-v-7f7d1229]{margin-top:9px}.children[data-v-7f7d1229]{display:flex;flex-direction:column}.children .property--compact.property--level-1[data-v-7f7d1229]{padding:12px}.property-example-value[data-v-7f7d1229]{all:unset;font-family:var(--scalar-font-code);padding:6px;border-top:var(--scalar-border-width) solid var(--scalar-border-color)}.property-rule[data-v-7f7d1229]{border-radius:var(--scalar-radius-lg);display:flex;flex-direction:column}.property-rule[data-v-7f7d1229] .composition-panel .schema-card .schema-properties.schema-properties-open{border-top-left-radius:0;border-top-right-radius:0}.property-example[data-v-7f7d1229]{background:transparent;border:none;display:flex;flex-direction:row;gap:8px}.property-example-label[data-v-7f7d1229],.property-example-value[data-v-7f7d1229]{padding:3px 0 0}.property-example-value[data-v-7f7d1229]{background:var(--scalar-background-2);border-top:0;border-radius:var(--scalar-radius);padding:3px 4px}.property-name[data-v-7f7d1229]{font-family:var(--scalar-font-code);font-weight:var(--scalar-semibold)}.property-name-additional-properties[data-v-7f7d1229]:before,.property-name-pattern-properties[data-v-7f7d1229]:before{text-transform:uppercase;font-size:var(--scalar-micro);display:inline-block;padding:2px 4px;border-radius:var(--scalar-radius);color:var(--scalar-color-1);border:1px solid var(--scalar-border-color);background-color:var(--scalar-background-2);margin-right:4px}.property-name-pattern-properties[data-v-7f7d1229]:before{content:"regex"}.property-name-additional-properties[data-v-7f7d1229]:before{content:"unknown"}.error[data-v-67eca159]{background-color:var(--scalar-color-red)}.schema-card[data-v-67eca159]{z-index:0;font-size:var(--scalar-font-size-4);color:var(--scalar-color-1)}.schema-card-title[data-v-67eca159]{height:var(--schema-title-height);padding:6px 8px;display:flex;align-items:center;gap:4px;color:var(--scalar-color-2);font-weight:var(--scalar-semibold);font-size:var(--scalar-mini);border-bottom:var(--scalar-border-width) solid transparent}button.schema-card-title[data-v-67eca159]{cursor:pointer}button.schema-card-title[data-v-67eca159]:hover{color:var(--scalar-color-1)}.schema-card-title-icon--open[data-v-67eca159]{transform:rotate(45deg)}.schema-properties-open>.schema-card-title[data-v-67eca159]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:var(--scalar-border-width) solid var(--scalar-border-color)}.schema-properties-open>.schema-properties[data-v-67eca159]{width:fit-content}.schema-card-description[data-v-67eca159]{color:var(--scalar-color-2)}.schema-card-description+.schema-properties[data-v-67eca159]{width:fit-content}.schema-card-description+.schema-properties[data-v-67eca159]{margin-top:8px}.schema-properties-open.schema-properties[data-v-67eca159],.schema-properties-open>.schema-card--open[data-v-67eca159]{width:100%}.schema-properties[data-v-67eca159]{display:flex;flex-direction:column;border:var(--scalar-border-width) solid var(--scalar-border-color);border-radius:var(--scalar-radius-lg);width:fit-content}.schema-properties-name[data-v-67eca159]{width:100%}.schema-properties .schema-properties[data-v-67eca159]{border-radius:13.5px}.schema-properties .schema-properties.schema-properties-open[data-v-67eca159]{border-radius:var(--scalar-radius-lg)}.schema-properties-open[data-v-67eca159]{width:100%}.schema-card--compact[data-v-67eca159]{align-self:flex-start}.schema-card--compact.schema-card--open[data-v-67eca159]{align-self:initial}.schema-card-title--compact[data-v-67eca159]{color:var(--scalar-color-2);padding:6px 10px 6px 8px;height:auto;border-bottom:none}.schema-card-title--compact>.schema-card-title-icon[data-v-67eca159]{margin:0}.schema-card-title--compact>.schema-card-title-icon--open[data-v-67eca159]{transform:rotate(45deg)}.schema-properties-open>.schema-card-title--compact[data-v-67eca159]{position:static}.property--level-0>.schema-properties>.schema-card--level-0>.schema-properties[data-v-67eca159]{border:none}.property--level-0 .schema-card--level-0:not(.schema-card--compact) .property--level-1[data-v-67eca159]{padding:0 0 8px}:not(.composition-panel)>.schema-card--compact.schema-card--level-0>.schema-properties[data-v-67eca159]{border:none}[data-v-67eca159] .schema-card-description p{font-size:var(--scalar-small, var(--scalar-paragraph));color:var(--scalar-color-2);line-height:1.5;display:block;margin-bottom:6px}.children .schema-card-description[data-v-67eca159]:first-of-type{padding-top:0}.endpoint[data-v-19af3744]{display:flex;white-space:nowrap;cursor:pointer;text-decoration:none}.endpoint:hover .endpoint-path[data-v-19af3744],.endpoint:focus-visible .endpoint-path[data-v-19af3744]{text-decoration:underline}.endpoint .post[data-v-19af3744],.endpoint .get[data-v-19af3744],.endpoint .delete[data-v-19af3744],.endpoint .put[data-v-19af3744]{white-space:nowrap}.endpoint-method[data-v-19af3744],.endpoint-path[data-v-19af3744]{color:var(--scalar-color-1);min-width:62px;display:inline-flex;line-height:1.55;font-family:var(--scalar-font-code);font-size:var(--scalar-small);cursor:pointer}.endpoint-method[data-v-19af3744]{text-align:right}.endpoint-path[data-v-19af3744]{margin-left:12px;text-transform:initial}.deprecated[data-v-19af3744]{text-decoration:line-through}.endpoints-card[data-v-d9656fb3]{position:sticky;top:calc(var(--refs-header-height) + 24px);font-size:var(--scalar-font-size-3)}.endpoints[data-v-d9656fb3]{overflow:auto;background:var(--scalar-background-2);padding:10px 12px}.show-more[data-v-c46d29d9]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border:var(--scalar-border-width) solid var(--scalar-border-color);margin:auto;padding:8px 12px 8px 16px;border-radius:30px;color:var(--scalar-color-1);font-weight:var(--scalar-semibold);font-size:var(--scalar-small);display:flex;align-items:center;justify-content:center;position:relative;top:-48px}.show-more[data-v-c46d29d9]:hover{background:var(--scalar-background-2);cursor:pointer}.show-more-icon[data-v-c46d29d9]{width:16px!important;height:16px!important;margin-left:3px}.show-more[data-v-c46d29d9]:active{box-shadow:0 0 0 1px var(--scalar-border-color)}@container narrow-references-container (max-width: 900px){.show-more[data-v-c46d29d9]{top:-24px}}.section-container[data-v-e5bbfee4]{border-top:var(--scalar-border-width) solid var(--scalar-border-color)}.section-container[data-v-e5bbfee4]:has(.show-more){background-color:color-mix(in srgb,var(--scalar-background-2),transparent)}.operation-path[data-v-ec6c8861]{overflow:hidden;word-wrap:break-word;font-weight:var(--scalar-semibold);line-break:anywhere}.deprecated[data-v-ec6c8861]{text-decoration:line-through}.request-card[data-v-03733855]{font-size:var(--scalar-font-size-3)}.request-method[data-v-03733855]{font-family:var(--scalar-font-code);text-transform:uppercase;margin-right:6px}.request-card-footer[data-v-03733855]{display:flex;justify-content:flex-end;padding:6px;flex-shrink:0}.request-card-footer-addon[data-v-03733855]{display:flex;align-items:center;flex:1;min-width:0}.request-editor-section[data-v-03733855]{display:flex;flex:1}.request-card-simple[data-v-03733855]{display:flex;align-items:center;justify-content:space-between;padding:8px 8px 8px 12px;font-size:var(--scalar-small)}.code-snippet[data-v-03733855]{display:flex;flex-direction:column;width:100%}.empty-state[data-v-157f3a0c]{margin:10px 0 10px 12px;text-align:center;font-size:var(--scalar-mini);min-height:56px;display:flex;align-items:center;justify-content:center;border-radius:var(--scalar-radius-lg);color:var(--scalar-color-2)}.rule-title[data-v-157f3a0c]{font-family:var(--scalar-font-code);color:var(--scalar-color-1);display:inline-block;margin:12px 0 6px;border-radius:var(--scalar-radius)}.rule[data-v-157f3a0c]{margin:0 12px;border-radius:var(--scalar-radius-lg)}.rule-items[data-v-157f3a0c]{counter-reset:list-number;display:flex;flex-direction:column;gap:12px;border-left:1px solid var(--scalar-border-color);padding:12px 0}.rule-item[data-v-157f3a0c]{counter-increment:list-number;border:1px solid var(--scalar-border-color);border-radius:var(--scalar-radius-lg);overflow:hidden;margin-left:24px}.rule-item[data-v-157f3a0c]:before{border:1px solid var(--scalar-border-color);border-top:0;border-right:0;content:" ";display:block;width:24px;height:6px;border-radius:0 0 0 var(--scalar-radius-lg);margin-top:6px;color:var(--scalar-color-2);transform:translate(-25px);color:var(--scalar-color-1);position:absolute}.tab[data-v-c8207e48]{background:none;border:none;font-size:var(--scalar-small);font-family:var(--scalar-font);font-weight:var(--scalar-font-normal);color:var(--scalar-color-2);line-height:calc(var(--scalar-small) + 2px);white-space:nowrap;cursor:pointer;padding:0;margin-right:3px;text-transform:uppercase;position:relative;line-height:22px}.tab[data-v-c8207e48]:before{content:"";position:absolute;z-index:0;left:-6px;top:-6px;width:calc(100% + 12px);height:calc(100% + 12px);border-radius:var(--scalar-radius);background:var(--scalar-background-3);opacity:0}.tab[data-v-c8207e48]:hover:before,.tab[data-v-c8207e48]:focus-visible:before{opacity:1}.tab[data-v-c8207e48]:focus-visible:before{outline:1px solid var(--scalar-color-accent)}.tab span[data-v-c8207e48]{z-index:1;position:relative}.tab-selected[data-v-c8207e48]{color:var(--scalar-color-1);font-weight:var(--scalar-semibold)}.tab-selected[data-v-c8207e48]:after{content:"";position:absolute;background:currentColor;width:100%;left:0;height:1px;bottom:calc(var(--tab-list-padding-y) * -1)}.tab-list[data-v-fec8fbbb]{display:flex;gap:6px;position:relative;flex:1;--tab-list-padding-y: 7px;--tab-list-padding-x: 12px;padding:var(--tab-list-padding-y) var(--tab-list-padding-x);overflow:auto}.scalar-card-header.scalar-card-header-tabs[data-v-fec8fbbb]{padding:0}.response-card[data-v-abb75157]{font-size:var(--scalar-font-size-3)}.markdown[data-v-abb75157] *{margin:0}.code-copy[data-v-abb75157]{display:flex;align-items:center;justify-content:center;-moz-appearance:none;appearance:none;-webkit-appearance:none;outline:none;background:transparent;cursor:pointer;color:var(--scalar-color-3);border:none;padding:0;margin-right:12px}.code-copy[data-v-abb75157]:hover{color:var(--scalar-color-1)}.code-copy svg[data-v-abb75157]{width:13px;height:13px}.response-card-footer[data-v-abb75157]{display:flex;flex-direction:column;flex-shrink:0;padding:7px 12px;gap:8px}.response-example-selector[data-v-abb75157]{align-self:flex-start;margin:-4px}.response-description[data-v-abb75157]{font-weight:var(--scalar-semibold);font-size:var(--scalar-small);color:var(--scalar-color--1);display:flex;align-items:center;box-sizing:border-box}.schema-type[data-v-abb75157]{font-size:var(--scalar-micro);color:var(--scalar-color-2);font-weight:var(--scalar-semibold);background:var(--scalar-background-3);padding:2px 4px;border-radius:4px;margin-right:4px}.schema-example[data-v-abb75157]{font-size:var(--scalar-micro);color:var(--scalar-color-2);font-weight:var(--scalar-semibold)}.example-response-tab[data-v-abb75157]{display:block;margin:6px}.scalar-card-checkbox[data-v-abb75157]{display:flex;align-items:center;justify-content:center;position:relative;min-height:17px;cursor:pointer;-webkit-user-select:none;user-select:none;font-size:var(--scalar-small);font-weight:var(--scalar-font-normal);color:var(--scalar-color-2);width:fit-content;white-space:nowrap;gap:6px;padding:7px 6px}.scalar-card-checkbox:has(.scalar-card-checkbox-input:focus-visible) .scalar-card-checkbox-checkmark[data-v-abb75157]{outline:1px solid var(--scalar-color-accent)}.scalar-card-checkbox[data-v-abb75157]:hover{color:var(--scalar-color--1)}.scalar-card-checkbox .scalar-card-checkbox-input[data-v-abb75157]{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.scalar-card-checkbox-checkmark[data-v-abb75157]{height:17px;width:17px;border-radius:var(--scalar-radius);background-color:transparent;background-color:var(--scalar-background-3);box-shadow:inset 0 0 0 var(--scalar-border-width) var(--scalar-border-color)}.scalar-card-checkbox[data-v-abb75157]:has(.scalar-card-checkbox-input:checked){color:var(--scalar-color-1);font-weight:var(--scalar-semibold)}.scalar-card-checkbox .scalar-card-checkbox-input:checked~.scalar-card-checkbox-checkmark[data-v-abb75157]{background-color:var(--scalar-button-1);box-shadow:none}.scalar-card-checkbox-checkmark[data-v-abb75157]:after{content:"";position:absolute;display:none}.scalar-card-checkbox .scalar-card-checkbox-input:checked~.scalar-card-checkbox-checkmark[data-v-abb75157]:after{display:block}.scalar-card-checkbox .scalar-card-checkbox-checkmark[data-v-abb75157]:after{right:6px;top:36.5%;width:5px;height:9px;border:solid 1px var(--scalar-button-1-color);border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}.headers-card[data-v-9293fa9e]{z-index:0;margin-top:12px;margin-bottom:6px;position:relative;font-size:var(--scalar-font-size-4);color:var(--scalar-color-1);align-self:flex-start}.headers-card.headers-card--open[data-v-9293fa9e]{align-self:initial}.headers-card-title[data-v-9293fa9e]{padding:6px 10px;display:flex;align-items:center;gap:4px;color:var(--scalar-color-3);font-weight:var(--scalar-semibold);font-size:var(--scalar-micro);border-radius:13.5px}button.headers-card-title[data-v-9293fa9e]{cursor:pointer}button.headers-card-title[data-v-9293fa9e]:hover{color:var(--scalar-color-1)}.headers-card-title-icon--open[data-v-9293fa9e]{transform:rotate(45deg)}.headers-properties[data-v-9293fa9e]{display:flex;flex-direction:column;border:var(--scalar-border-width) solid var(--scalar-border-color);border-radius:13.5px;width:fit-content}.headers-properties-open>.headers-card-title[data-v-9293fa9e]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:var(--scalar-border-width) solid var(--scalar-border-color)}.headers-properties-open[data-v-9293fa9e]{border-radius:var(--scalar-radius-lg);width:100%}.headers-card .property[data-v-9293fa9e]:last-of-type{padding-bottom:10px}.headers-card-title>.headers-card-title-icon[data-v-9293fa9e]{width:10px;height:10px;margin:0}.headers-card-title>.headers-card-title-icon--open[data-v-9293fa9e]{transform:rotate(45deg)}.parameter-item[data-v-47696a96]{display:flex;flex-direction:column;border-top:var(--scalar-border-width) solid var(--scalar-border-color)}.parameter-item:last-of-type .parameter-schema[data-v-47696a96]{padding-bottom:0}.parameter-item-container[data-v-47696a96]{padding:0}.parameter-item-headers[data-v-47696a96]{border:var(--scalar-border-width) solid var(--scalar-border-color)}.parameter-item-name[data-v-47696a96]{margin-right:6px;font-weight:var(--scalar-semibold);font-size:var(--scalar-font-size-3);font-family:var(--scalar-font-code);color:var(--scalar-color-1)}.parameter-item-type[data-v-47696a96]{font-size:var(--scalar-mini);color:var(--scalar-color-2);margin-right:6px;line-height:1.4;white-space:nowrap;text-overflow:ellipsis;width:100%;overflow:hidden}.parameter-item-trigger-open .parameter-item-type[data-v-47696a96]{white-space:normal}.parameter-item-trigger+.parameter-item-container[data-v-47696a96] .property--level-0>.property-heading .property-detail-value{font-size:var(--scalar-micro)}.parameter-item-required-optional[data-v-47696a96]{color:var(--scalar-color-2);font-weight:var(--scalar-semibold);margin-right:6px;position:relative}.parameter-item--required[data-v-47696a96]{text-transform:uppercase;font-size:var(--scalar-micro);font-weight:var(--scalar-semibold);color:var(--scalar-color-orange)}.parameter-item-description[data-v-47696a96]{margin-top:3px!important;font-size:var(--scalar-small);color:var(--scalar-color-2);line-height:1.4}.parameter-item-description[data-v-47696a96] p{margin-top:4px;font-size:var(--scalar-small);color:var(--scalar-color-2);line-height:1.4}.parameter-schema[data-v-47696a96]{padding-bottom:9px;margin-top:3px}.parameter-item-trigger[data-v-47696a96]{padding:12px 0;cursor:pointer;outline:none;text-align:left;position:relative;align-items:baseline}.parameter-item-trigger-open[data-v-47696a96]{padding-bottom:0}.parameter-item-trigger[data-v-47696a96]:after{content:"";position:absolute;height:10px;width:100%;bottom:0}.parameter-item-icon[data-v-47696a96]{color:var(--scalar-color-3);left:-19px;position:absolute;top:11px}.parameter-item-trigger:hover .parameter-item-icon[data-v-47696a96],.parameter-item-trigger:focus-visible .parameter-item-icon[data-v-47696a96]{color:var(--scalar-color-1)}.parameter-item-trigger:focus-visible .parameter-item-icon[data-v-47696a96]{outline:1px solid var(--scalar-color-accent);outline-offset:2px;border-radius:var(--scalar-radius)}.parameter-list[data-v-dabf3ac7]{margin-top:24px}.parameter-list-title[data-v-dabf3ac7]{font-size:var(--scalar-font-size-2);font-weight:var(--scalar-semibold);color:var(--scalar-color-1);line-height:1.45;margin-top:12px;margin-bottom:12px}.parameter-list-items[data-v-dabf3ac7]{list-style:none;padding:0;margin:0 0 12px;font-size:var(--scalar-small)}.request-body[data-v-f3b8e406]{margin-top:24px}.request-body-header[data-v-f3b8e406]{display:flex;align-items:center;justify-content:space-between;padding-bottom:12px;border-bottom:var(--scalar-border-width) solid var(--scalar-border-color);flex-flow:wrap}.request-body-title[data-v-f3b8e406]{display:flex;align-items:center;gap:8px;font-size:var(--scalar-font-size-2);font-weight:var(--scalar-semibold);color:var(--scalar-color-1)}.request-body-required[data-v-f3b8e406]{font-size:var(--scalar-micro);color:var(--scalar-color-orange);font-weight:400}.request-body-description[data-v-f3b8e406]{margin-top:6px;font-size:var(--scalar-small);width:100%}.request-body-description[data-v-f3b8e406] .markdown *{color:var(--scalar-color-2)!important}.callback-sticky-offset[data-v-45f1f948]{top:var(--refs-header-height, 0px);z-index:100}.callback-operation-container[data-v-45f1f948] .request-body-header{--scalar-font-size-2: var(--scalar-font-size-4);margin-top:0;padding:8px;border-bottom:none;border:.5px solid var(--scalar-border-color);border-radius:var(--scalar-radius-lg) var(--scalar-radius-lg) 0 0;background:color-mix(in srgb,var(--scalar-background-2) 50%,transparent)}.callback-operation-container[data-v-45f1f948] .request-body-description{margin-top:0}.callback-operation-container[data-v-45f1f948] ul li.property.property--level-1{padding:8px}.callback-operation-container[data-v-45f1f948] .request-body-schema{background-color:var(--scalar-background-1);border:var(--scalar-border-width) solid var(--scalar-border-color);border-top:none;overflow:hidden;border-radius:0 0 var(--scalar-radius-lg) var(--scalar-radius-lg)}.callback-operation-container[data-v-45f1f948] .parameter-list{margin-top:0}.callback-operation-container[data-v-45f1f948] .parameter-list-title{background:color-mix(in srgb,var(--scalar-background-2) 50%,transparent);border-radius:var(--scalar-radius-lg) var(--scalar-radius-lg) 0 0;padding:8px;margin-bottom:0;border:var(--scalar-border-width) solid var(--scalar-border-color);border-bottom:none;--scalar-font-size-2: var(--scalar-font-size-4)}.callback-operation-container[data-v-45f1f948] .parameter-list-items{border:var(--scalar-border-width) solid var(--scalar-border-color);border-radius:0 0 var(--scalar-radius-lg) var(--scalar-radius-lg)}.callback-operation-container[data-v-45f1f948] .parameter-list-items>li:first-of-type{border-top:none}.callback-operation-container[data-v-45f1f948] .parameter-list-items>li{padding:0 8px}.show-api-client-button[data-v-976c9c1f]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;padding:1px 6px;white-space:nowrap;border-radius:var(--scalar-radius);display:flex;justify-content:center;align-items:center;font-weight:var(--scalar-semibold);font-size:var(--scalar-small);line-height:22px;color:var(--scalar-background-2);font-family:var(--scalar-font);background:var(--scalar-button-1);position:relative;cursor:pointer;box-sizing:border-box;box-shadow:inset 0 0 0 1px #0000001a;outline-offset:2px}.show-api-client-button span[data-v-976c9c1f],.show-api-client-button svg[data-v-976c9c1f]{fill:currentColor;color:var(--scalar-button-1-color);z-index:1}.show-api-client-button[data-v-976c9c1f]:hover{background:var(--scalar-button-1-hover)}.show-api-client-button svg[data-v-976c9c1f]{margin-right:4px}.operation-title[data-v-043cd959]{justify-content:space-between;display:flex}.operation-details[data-v-043cd959]{flex-shrink:1;align-items:center;gap:9px;min-width:0;margin-top:0;display:flex}.endpoint-type[data-v-043cd959]{z-index:0;width:60px;font-size:var(--scalar-small);text-transform:uppercase;font-weight:var(--scalar-bold);font-family:var(--scalar-font);flex-shrink:0;justify-content:center;align-items:center;gap:6px;padding:6px;display:flex;position:relative}.endpoint-type[data-v-043cd959]:after{content:"";z-index:-1;opacity:.15;border-radius:var(--scalar-radius);background:currentColor;position:absolute;top:0;right:0;bottom:0;left:0}.endpoint-anchor[data-v-043cd959]{flex-shrink:1;align-items:center;min-width:0;font-size:20px;display:flex}.endpoint-anchor.label[data-v-043cd959]{display:flex}.endpoint-label[data-v-043cd959]{min-width:0;color:var(--scalar-color-1);flex-shrink:1;align-items:baseline;gap:9px;display:flex}.endpoint-label-path[data-v-043cd959]{font-family:var(--scalar-font-code);font-size:var(--scalar-mini);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.endpoint-label-path[data-v-043cd959] em{color:var(--scalar-color-2)}.endpoint-label-name[data-v-043cd959]{color:var(--scalar-color-2);font-size:var(--scalar-small);text-overflow:ellipsis;white-space:nowrap;flex-shrink:1000000000;overflow:hidden}.endpoint-try-hint[data-v-043cd959]{flex-shrink:0;padding:2px}.endpoint-copy[data-v-043cd959]{color:currentColor}.endpoint-copy[data-v-043cd959] svg{stroke-width:2px}.endpoint-content[data-v-043cd959]{grid-auto-columns:1fr;grid-auto-flow:row;gap:9px;padding:9px;display:grid}@media (min-width:1000px){.endpoint-content[data-v-043cd959]{grid-auto-flow:column}}@container (max-width:900px){.endpoint-content[data-v-043cd959]{grid-template-columns:1fr}}.endpoint-content[data-v-043cd959]>*{min-width:0}.operation-details-card[data-v-043cd959]{flex-direction:column;gap:12px;min-width:0;display:flex}:is(.operation-details-card-item[data-v-043cd959] .parameter-list,.operation-details-card-item[data-v-043cd959] .callbacks-list){border:var(--scalar-border-width)solid var(--scalar-border-color);border-radius:var(--scalar-radius-lg);margin-top:0}.operation-details-card-item[data-v-043cd959]{flex-direction:column;gap:12px;display:flex}.operation-details-card-item[data-v-043cd959] .parameter-list-items{margin-bottom:0}.operation-details-card[data-v-043cd959] .parameter-item:last-of-type .parameter-schema{padding-bottom:12px}.operation-details-card[data-v-043cd959] .parameter-list .parameter-list{margin-bottom:12px}.operation-details-card[data-v-043cd959] .parameter-item{margin:0;padding:0}.operation-details-card[data-v-043cd959] .property{margin:0;padding:9px}:is(.operation-details-card[data-v-043cd959] .parameter-list-title,.operation-details-card[data-v-043cd959] .request-body-title,.operation-details-card[data-v-043cd959] .callbacks-title){text-transform:uppercase;font-weight:var(--scalar-bold);font-size:var(--scalar-mini);color:var(--scalar-color-2);margin:0;padding:9px;line-height:1.33}.operation-details-card[data-v-043cd959] .callback-list-item-title{padding-left:28px;padding-right:12px}.operation-details-card[data-v-043cd959] .callback-list-item-icon{left:6px}.operation-details-card[data-v-043cd959] .callback-operation-container{padding-inline:9px;padding-bottom:9px}:is(.operation-details-card[data-v-043cd959] .callback-operation-container>.request-body,.operation-details-card[data-v-043cd959] .callback-operation-container>.parameter-list){border:none}.operation-details-card[data-v-043cd959] .callback-operation-container>.request-body>.request-body-header{border-bottom:var(--scalar-border-width)solid var(--scalar-border-color);padding:0 0 9px}.operation-details-card[data-v-043cd959] .request-body-description{border-top:var(--scalar-border-width)solid var(--scalar-border-color);margin-top:0;padding:9px 9px 0}.operation-details-card[data-v-043cd959] .request-body{border-radius:var(--scalar-radius-lg);border:var(--scalar-border-width)solid var(--scalar-border-color);margin-top:0}.operation-details-card[data-v-043cd959] .request-body-header{border-bottom:0;padding-bottom:0}.operation-details-card[data-v-043cd959] .contents button{margin-right:9px}.operation-details-card[data-v-043cd959] .schema-card--open+.schema-card:not(.schema-card--open){margin-inline:9px;margin-bottom:9px}.operation-details-card[data-v-043cd959] .request-body-schema .property--level-0{padding:0}.operation-details-card[data-v-043cd959] .selected-content-type{margin-right:9px}.operation-example-card[data-v-043cd959]{top:calc(var(--refs-header-height) + 24px);max-height:calc(((var(--full-height) - var(--refs-header-height)) - 48px));position:sticky}@media (max-width:600px){.operation-example-card[data-v-043cd959]{max-height:unset;position:static}}.examples[data-v-789699aa]{position:sticky;top:calc(var(--refs-header-height) + 24px)}.examples[data-v-789699aa]>*{max-height:calc(((var(--full-height) - var(--refs-header-height)) - 60px) / 2);position:relative}@media (max-width: 600px){.examples[data-v-789699aa]>*{max-height:unset}}.deprecated[data-v-789699aa] *{text-decoration:line-through}.tag-section[data-v-ab8ddc14]{margin-bottom:48px}.tag-name[data-v-ab8ddc14]{text-transform:capitalize}.tag-description[data-v-ab8ddc14]{padding-bottom:4px;text-align:left}.references-loading{position:absolute;top:0;left:0;right:0;z-index:1;grid-area:rendered;background:var(--scalar-background-1)}.references-loading-top-spacer{top:-1px}.references-loading-hidden-tag .section-container>.section:first-child{display:none}.models-list[data-v-3d574132]{display:contents}.models-list-truncated .models-list-item[data-v-3d574132]:last-child{border-bottom:var(--scalar-border-width) solid var(--scalar-border-color)}.show-more-models[data-v-3d574132]{margin-top:32px;top:0}.models-list-item[data-v-3d574132]:hover{z-index:10}.reference-models[data-v-ce1dd773]{margin-bottom:48px}.reference-models-anchor[data-v-ce1dd773]{display:flex;align-items:center;font-size:20px;padding-left:6px;color:var(--scalar-color-1)}.reference-models-label[data-v-ce1dd773]{font-size:var(--scalar-mini)}.reference-models-label[data-v-ce1dd773] em{font-weight:var(--scalar-bold)}.narrow-references-container{container-name:narrow-references-container;container-type:inline-size}.render-loading[data-v-848f1f5e]{height:calc(var(--full-height) - var(--refs-header-height));display:flex;align-items:center;justify-content:center}.introduction-card[data-v-848f1f5e]{display:flex;flex-direction:column}.introduction-card-item[data-v-848f1f5e]{display:flex;margin-bottom:12px;flex-direction:column;justify-content:start}.introduction-card-item[data-v-848f1f5e]:has(.description) .server-form-container{border-bottom-left-radius:0;border-bottom-right-radius:0}.introduction-card-item[data-v-848f1f5e] .request-item{border-bottom:0}.introduction-card-title[data-v-848f1f5e]{font-weight:var(--scalar-semibold);font-size:var(--scalar-mini);color:var(--scalar-color-3)}.introduction-card-row[data-v-848f1f5e]{gap:24px}@media (min-width: 600px){.introduction-card-row[data-v-848f1f5e]{flex-flow:row wrap}}.introduction-card-row[data-v-848f1f5e]>*{flex:1}@media (min-width: 600px){.introduction-card-row[data-v-848f1f5e]>*{min-width:min-content}}@media (max-width: 600px){.introduction-card-row[data-v-848f1f5e]>*{max-width:100%}}@container (max-width: 900px){.introduction-card-row[data-v-848f1f5e]{flex-direction:column;align-items:stretch;gap:0px}}.introduction-card[data-v-848f1f5e] .security-scheme-label{text-transform:uppercase;font-weight:var(--scalar-semibold)}.references-classic .introduction-card-row[data-v-848f1f5e] .scalar-card:nth-of-type(2) .scalar-card-header{display:none}.section-flare[data-v-848f1f5e]{top:0;right:0;pointer-events:none}.start[data-v-0aca3a20]{padding:24px;display:flex;flex-flow:wrap;justify-content:space-between;position:relative;z-index:0}.swagger-editor .start[data-v-0aca3a20]{padding-top:24px}.start-h1[data-v-0aca3a20]{font-size:var(--scalar-heading-2);margin-top:0;line-height:1.45;margin-bottom:0;font-weight:var(--scalar-bold);color:var(--scalar-color-1);width:100%;position:relative}.start-h3[data-v-0aca3a20]{font-size:var(--scalar-paragraph);margin-top:0;margin-bottom:6px;display:block;line-height:1.45;font-weight:var(--scalar-bold);color:var(--scalar-color-1);width:100%}.start-h1[data-v-0aca3a20]:not(:first-of-type){margin-top:24px}.start-p[data-v-0aca3a20]{font-size:var(--scalar-paragraph);color:var(--scalar-color-2);line-height:1.5;width:100%;margin-top:12px}.start-ul[data-v-0aca3a20]{margin-top:12px;font-size:var(--scalar-paragraph);line-height:1.5;padding-left:0;list-style:initial;display:flex;flex-flow:wrap;gap:24px}.start-ul li[data-v-0aca3a20]{margin:0;padding:0;list-style:none;width:calc(50% - 24px);color:var(--scalar-color-2)}.start-ul li[data-v-0aca3a20]:first-of-type{margin-top:0}.start-section[data-v-0aca3a20]{width:100%;margin-bottom:12px;display:flex;flex-flow:wrap}.start-section[data-v-0aca3a20]:last-of-type{margin-bottom:48px}.start-h2[data-v-0aca3a20]{background:var(--scalar-background-2);border-top-left-radius:var(--scalar-radius-lg);border-top-right-radius:var(--scalar-radius-lg);border:1px solid var(--scalar-border-color);color:var(--scalar-color-3);font-size:var(--scalar-mini);font-weight:var(--scalar-semibold);padding:9px;width:100%}.start-item[data-v-0aca3a20]{align-items:center;background:var(--scalar-background-2);border-right:1px solid var(--scalar-border-color);border-bottom:1px solid var(--scalar-border-color);color:var(--scalar-color-1);cursor:pointer;display:flex;flex:1;font-size:var(--scalar-mini);font-weight:var(--scalar-semibold);padding:9px;text-transform:capitalize;-webkit-user-select:none;user-select:none}.start-section-integrations .start-item[data-v-0aca3a20]:first-of-type{border-bottom-left-radius:var(--scalar-radius-lg);border-left:1px solid var(--scalar-border-color)}.start-section-integrations .start-item[data-v-0aca3a20]:last-of-type{border-bottom-right-radius:var(--scalar-radius-lg)}.start-section-colors .start-item[data-v-0aca3a20]{min-width:33.33%}.start-section-colors .start-item[data-v-0aca3a20]:nth-child(3n+2){border-left:1px solid var(--scalar-border-color)}.start-section-colors .start-item[data-v-0aca3a20]:last-of-type,.start-section-colors .start-item-active[data-v-0aca3a20]:last-of-type:before{border-radius:0 0 var(--scalar-radius-lg) var(--scalar-radius-lg)}.start-item[data-v-0aca3a20]:empty{pointer-events:none}.start-item svg[data-v-0aca3a20]{width:14px;height:14px;margin-right:6px}.start-item[data-v-0aca3a20]:hover{background:var(--scalar-background-3)}.start-item-active[data-v-0aca3a20]{z-index:10;position:relative;color:var(--scalar-color-1)}.start-item-active[data-v-0aca3a20]:before{border:1px solid var(--scalar-color-1);content:"";top:-1px;right:-1px;bottom:-1px;left:-1px;pointer-events:none;position:absolute}.start-section-color .start-item[data-v-0aca3a20]{text-transform:capitalize}.start-cta[data-v-0aca3a20]{display:flex;gap:12px;width:100%;margin-top:24px;margin-bottom:0}.start-row[data-v-0aca3a20]{width:100%;margin-top:12px;overflow:hidden}.start-hero-copy[data-v-0aca3a20]{background:var(--scalar-background-2);padding:12px;border-radius:var(--scalar-radius-lg)}.start-p-small[data-v-0aca3a20]{font-weight:var(--scalar-semibold);font-size:var(--scalar-mini);color:var(--scalar-color-2);margin-bottom:12px;line-height:1.4}.start-cta[data-v-0aca3a20]{margin-bottom:12px;width:fit-content;white-space:nowrap}.start-copy[data-v-0aca3a20]{padding:76px 48px 48px;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center}.start-logo[data-v-0aca3a20]{color:var(--scalar-color-1);margin-bottom:24px;width:72px;aspect-ratio:1;position:relative;box-shadow:var(--scalar-shadow-2);border-radius:50%}.start-logo[data-v-0aca3a20]:before{content:"";width:300%;aspect-ratio:1;left:-100%;top:-100%;position:absolute;z-index:-1;border-radius:50%;background-size:24px 24px;box-shadow:inset 0 0 50px var(--scalar-background-1),inset 0 0 50px var(--scalar-background-1);background-image:linear-gradient(to right,var(--scalar-border-color) 1px,transparent 1px),linear-gradient(to bottom,var(--scalar-border-color) 1px,transparent 1px)}.start-logo svg[data-v-0aca3a20]{width:100%;height:auto;background:var(--scalar-background-1);padding:3px;border-radius:50%;position:relative}@media screen and (max-width: 600px){.start-section-colors .start-item[data-v-0aca3a20],.start-item[data-v-0aca3a20]{width:100%;border-radius:0;border-right:none;border-top:1px solid var(--scalar-border-color)}.start-item[data-v-0aca3a20]:empty{display:none}.start-h2[data-v-0aca3a20]{border-bottom:none}.start li[data-v-0aca3a20]{width:100%}.start-copy[data-v-0aca3a20]{padding:48px 0 24px}}@media screen and (max-width: 1000px){.start[data-v-0aca3a20]{padding:0;overflow:auto}}.references-mobile-header[data-v-fa8b013a]{display:none;align-items:center;height:100%;width:100dvw;padding:0 8px;background:var(--scalar-background-1);border-bottom:1px solid var(--scalar-border-color)}.references-mobile-breadcrumbs[data-v-fa8b013a]{flex:1;min-width:0;font-size:var(--scalar-small);font-weight:var(--scalar-semibold);color:var(--scalar-color-1);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.references-mobile-header-actions[data-v-fa8b013a]{display:flex;flex-direction:row;gap:4px;height:24px;align-items:center;padding-left:4px}@media (max-width: 1000px){.references-mobile-header[data-v-fa8b013a]{display:flex}}a[data-v-6fcd2762]{text-decoration:none}.ref-search-container[data-v-6fcd2762]{display:flex;flex-direction:column;padding-bottom:0}.ref-search-results[data-v-6fcd2762]{padding:0 4px 4px}.ref-search-meta[data-v-6fcd2762]{background:var(--scalar-background-1);border-bottom-left-radius:var(--scalar-radius-lg);border-bottom-right-radius:var(--scalar-radius-lg);padding:6px 12px;font-size:var(--scalar-font-size-4);color:var(--scalar-color-3);font-weight:var(--scalar-semibold);display:flex;gap:12px;border-top:var(--scalar-border-width) solid var(--scalar-border-color)}.deprecated[data-v-6fcd2762]{text-decoration:line-through}/*! tailwindcss v4.1.8 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-space-x-reverse:0;--tw-content:""}}}@layer scalar-base{@supports (color:color-mix(in lab,red,red)){.light-mode{--scalar-color-alert:color-mix(in srgb,var(--scalar-color-orange),var(--scalar-color-1)20%)}}@supports (color:color-mix(in lab,red,red)){.light-mode{--scalar-color-danger:color-mix(in srgb,var(--scalar-color-red),var(--scalar-color-1)20%)}}@supports (color:color-mix(in lab,red,red)){.light-mode{--scalar-background-alert:color-mix(in srgb,var(--scalar-color-orange),var(--scalar-background-1)95%)}}@supports (color:color-mix(in lab,red,red)){.light-mode{--scalar-background-danger:color-mix(in srgb,var(--scalar-color-red),var(--scalar-background-1)95%)}}@supports (color:color-mix(in lab,red,red)){.dark-mode{--scalar-tooltip-background:color-mix(in srgb,var(--scalar-background-1),#fff 10%)}}@supports (color:color-mix(in lab,red,red)){.dark-mode{--scalar-color-danger:color-mix(in srgb,var(--scalar-color-red),var(--scalar-background-1)20%)}}@supports (color:color-mix(in lab,red,red)){.dark-mode{--scalar-background-alert:color-mix(in srgb,var(--scalar-color-orange),var(--scalar-background-1)95%)}}@supports (color:color-mix(in lab,red,red)){.dark-mode{--scalar-background-danger:color-mix(in srgb,var(--scalar-color-red),var(--scalar-background-1)95%)}}:root,:host{--leading-snug:1.375;--leading-normal:1.5;--ease-in-out:cubic-bezier(.4,0,.2,1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1)}:root,:host{--leading-snug:1.375;--ease-in-out:cubic-bezier(.4,0,.2,1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1)}@supports (color:color-mix(in lab,red,red)){.light-mode{--scalar-color-alert:var(--scalar-color-orange)}@supports (color:color-mix(in lab,red,red)){.light-mode{--scalar-color-alert:color-mix(in srgb,var(--scalar-color-orange),var(--scalar-color-1)20%)}}.light-mode{--scalar-color-danger:var(--scalar-color-red)}@supports (color:color-mix(in lab,red,red)){.light-mode{--scalar-color-danger:color-mix(in srgb,var(--scalar-color-red),var(--scalar-color-1)20%)}}.light-mode{--scalar-background-alert:var(--scalar-color-orange)}@supports (color:color-mix(in lab,red,red)){.light-mode{--scalar-background-alert:color-mix(in srgb,var(--scalar-color-orange),var(--scalar-background-1)95%)}}.light-mode{--scalar-background-danger:var(--scalar-color-red)}@supports (color:color-mix(in lab,red,red)){.light-mode{--scalar-background-danger:color-mix(in srgb,var(--scalar-color-red),var(--scalar-background-1)95%)}}.dark-mode{--scalar-tooltip-background:var(--scalar-background-1)}@supports (color:color-mix(in lab,red,red)){.dark-mode{--scalar-tooltip-background:color-mix(in srgb,var(--scalar-background-1),#fff 10%)}}.dark-mode{--scalar-color-danger:var(--scalar-color-red)}@supports (color:color-mix(in lab,red,red)){.dark-mode{--scalar-color-danger:color-mix(in srgb,var(--scalar-color-red),var(--scalar-background-1)20%)}}.dark-mode{--scalar-background-alert:var(--scalar-color-orange)}@supports (color:color-mix(in lab,red,red)){.dark-mode{--scalar-background-alert:color-mix(in srgb,var(--scalar-color-orange),var(--scalar-background-1)95%)}}.dark-mode{--scalar-background-danger:var(--scalar-color-red)}@supports (color:color-mix(in lab,red,red)){.dark-mode{--scalar-background-danger:color-mix(in srgb,var(--scalar-color-red),var(--scalar-background-1)95%)}}}body{line-height:inherit;margin:0}:root{--scalar-border-width:.5px;--scalar-radius:3px;--scalar-radius-lg:6px;--scalar-radius-xl:8px;--scalar-font:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;--scalar-font-code:"JetBrains Mono",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;--scalar-heading-1:24px;--scalar-page-description:16px;--scalar-heading-2:20px;--scalar-heading-3:20px;--scalar-heading-4:16px;--scalar-heading-5:16px;--scalar-heading-6:16px;--scalar-paragraph:16px;--scalar-small:14px;--scalar-mini:13px;--scalar-micro:12px;--scalar-bold:600;--scalar-semibold:500;--scalar-regular:400;--scalar-font-size-1:21px;--scalar-font-size-2:16px;--scalar-font-size-3:14px;--scalar-font-size-4:13px;--scalar-font-size-5:12px;--scalar-font-size-6:12px;--scalar-font-size-7:10px;--scalar-line-height-1:32px;--scalar-line-height-2:24px;--scalar-line-height-3:20px;--scalar-line-height-4:18px;--scalar-line-height-5:16px;--scalar-font-normal:400;--scalar-font-medium:500;--scalar-font-bold:700;--scalar-text-decoration:none;--scalar-text-decoration-hover:underline;--scalar-link-font-weight:inherit;--scalar-sidebar-indent:20px}.dark-mode{color-scheme:dark;--scalar-scrollbar-color:#ffffff2e;--scalar-scrollbar-color-active:#ffffff5c;--scalar-button-1:#fff;--scalar-button-1-hover:#ffffffe6;--scalar-button-1-color:black;--scalar-shadow-1:0 1px 3px 0 #0000001a;--scalar-shadow-2:0 0 0 .5px var(--scalar-border-color),#0f0f0f33 0px 3px 6px,#0f0f0f66 0px 9px 24px;--scalar-lifted-brightness:1.45;--scalar-backdrop-brightness:.5;--scalar-text-decoration-color:currentColor;--scalar-text-decoration-color-hover:currentColor}.light-mode{color-scheme:light;--scalar-scrollbar-color-active:#0000005c;--scalar-scrollbar-color:#0000002e;--scalar-button-1:#000;--scalar-button-1-hover:#000c;--scalar-button-1-color:#ffffffe6;--scalar-shadow-1:0 1px 3px 0 #0000001c;--scalar-shadow-2:#00000014 0px 13px 20px 0px,#00000014 0px 3px 8px 0px,#eeeeed 0px 0 0 .5px;--scalar-lifted-brightness:1;--scalar-backdrop-brightness:1;--scalar-text-decoration-color:currentColor;--scalar-text-decoration-color-hover:currentColor}.light-mode .dark-mode{color-scheme:dark!important}@media (max-width:460px){:root{--scalar-font-size-1:22px;--scalar-font-size-2:14px;--scalar-font-size-3:12px}}@media (max-width:720px){:root{--scalar-heading-1:24px;--scalar-page-description:20px}}:root{--scalar-text-decoration:underline;--scalar-text-decoration-hover:underline}.light-mode{--scalar-background-1:#fff;--scalar-background-2:#f6f6f6;--scalar-background-3:#e7e7e7;--scalar-background-accent:#8ab4f81f;--scalar-color-1:#2a2f45;--scalar-color-2:#757575;--scalar-color-3:#8e8e8e;--scalar-color-accent:#09f;--scalar-border-color:#dfdfdf}.dark-mode{--scalar-background-1:#0f0f0f;--scalar-background-2:#1a1a1a;--scalar-background-3:#272727;--scalar-color-1:#e7e7e7;--scalar-color-2:#a4a4a4;--scalar-color-3:#797979;--scalar-color-accent:#00aeff;--scalar-background-accent:#3ea6ff1f;--scalar-border-color:#2d2d2d}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--scalar-sidebar-background-1:var(--scalar-background-1);--scalar-sidebar-color-1:var(--scalar-color-1);--scalar-sidebar-color-2:var(--scalar-color-2);--scalar-sidebar-border-color:var(--scalar-border-color);--scalar-sidebar-item-hover-background:var(--scalar-background-2);--scalar-sidebar-item-hover-color:currentColor;--scalar-sidebar-item-active-background:var(--scalar-background-2);--scalar-sidebar-color-active:var(--scalar-color-1);--scalar-sidebar-indent-border:var(--scalar-sidebar-border-color);--scalar-sidebar-indent-border-hover:var(--scalar-sidebar-border-color);--scalar-sidebar-indent-border-active:var(--scalar-sidebar-border-color);--scalar-sidebar-search-background:transparent;--scalar-sidebar-search-color:var(--scalar-color-3);--scalar-sidebar-search-border-color:var(--scalar-border-color)}.light-mode{--scalar-color-green:#069061;--scalar-color-red:#ef0006;--scalar-color-yellow:#edbe20;--scalar-color-blue:#0082d0;--scalar-color-orange:#ff5800;--scalar-color-purple:#5203d1;--scalar-link-color:var(--scalar-color-1);--scalar-link-color-hover:var(--scalar-link-color);--scalar-button-1:#000;--scalar-button-1-hover:#000c;--scalar-button-1-color:#ffffffe6;--scalar-tooltip-background:#1a1a1ae6;--scalar-tooltip-color:#ffffffd9;--scalar-color-alert:var(--scalar-color-orange)}@supports (color:color-mix(in lab,red,red)){.light-mode{--scalar-color-alert:var(--scalar-color-orange)}@supports (color:color-mix(in lab,red,red)){.light-mode{--scalar-color-alert:var(--scalar-color-orange)}@supports (color:color-mix(in lab,red,red)){.light-mode{--scalar-color-alert:color-mix(in srgb,var(--scalar-color-orange),var(--scalar-color-1)20%)}}}}.light-mode{--scalar-color-danger:var(--scalar-color-red)}@supports (color:color-mix(in lab,red,red)){.light-mode{--scalar-color-danger:var(--scalar-color-red)}@supports (color:color-mix(in lab,red,red)){.light-mode{--scalar-color-danger:var(--scalar-color-red)}@supports (color:color-mix(in lab,red,red)){.light-mode{--scalar-color-danger:color-mix(in srgb,var(--scalar-color-red),var(--scalar-color-1)20%)}}}}.light-mode{--scalar-background-alert:var(--scalar-color-orange)}@supports (color:color-mix(in lab,red,red)){.light-mode{--scalar-background-alert:var(--scalar-color-orange)}@supports (color:color-mix(in lab,red,red)){.light-mode{--scalar-background-alert:var(--scalar-color-orange)}@supports (color:color-mix(in lab,red,red)){.light-mode{--scalar-background-alert:color-mix(in srgb,var(--scalar-color-orange),var(--scalar-background-1)95%)}}}}.light-mode{--scalar-background-danger:var(--scalar-color-red)}@supports (color:color-mix(in lab,red,red)){.light-mode{--scalar-background-danger:var(--scalar-color-red)}@supports (color:color-mix(in lab,red,red)){.light-mode{--scalar-background-danger:var(--scalar-color-red)}@supports (color:color-mix(in lab,red,red)){.light-mode{--scalar-background-danger:color-mix(in srgb,var(--scalar-color-red),var(--scalar-background-1)95%)}}}}.dark-mode{--scalar-color-green:#00b648;--scalar-color-red:#dc1b19;--scalar-color-yellow:#ffc90d;--scalar-color-blue:#4eb3ec;--scalar-color-orange:#ff8d4d;--scalar-color-purple:#b191f9;--scalar-link-color:var(--scalar-color-1);--scalar-link-color-hover:var(--scalar-link-color);--scalar-button-1:#fff;--scalar-button-1-hover:#ffffffe6;--scalar-button-1-color:black;--scalar-tooltip-background:var(--scalar-background-1)}@supports (color:color-mix(in lab,red,red)){.dark-mode{--scalar-tooltip-background:var(--scalar-background-1)}@supports (color:color-mix(in lab,red,red)){.dark-mode{--scalar-tooltip-background:var(--scalar-background-1)}@supports (color:color-mix(in lab,red,red)){.dark-mode{--scalar-tooltip-background:color-mix(in srgb,var(--scalar-background-1),#fff 10%)}}}}.dark-mode{--scalar-tooltip-color:#fffffff2;--scalar-color-danger:var(--scalar-color-red)}@supports (color:color-mix(in lab,red,red)){.dark-mode{--scalar-color-danger:var(--scalar-color-red)}@supports (color:color-mix(in lab,red,red)){.dark-mode{--scalar-color-danger:var(--scalar-color-red)}@supports (color:color-mix(in lab,red,red)){.dark-mode{--scalar-color-danger:color-mix(in srgb,var(--scalar-color-red),var(--scalar-background-1)20%)}}}}.dark-mode{--scalar-background-alert:var(--scalar-color-orange)}@supports (color:color-mix(in lab,red,red)){.dark-mode{--scalar-background-alert:var(--scalar-color-orange)}@supports (color:color-mix(in lab,red,red)){.dark-mode{--scalar-background-alert:var(--scalar-color-orange)}@supports (color:color-mix(in lab,red,red)){.dark-mode{--scalar-background-alert:color-mix(in srgb,var(--scalar-color-orange),var(--scalar-background-1)95%)}}}}.dark-mode{--scalar-background-danger:var(--scalar-color-red)}@supports (color:color-mix(in lab,red,red)){.dark-mode{--scalar-background-danger:var(--scalar-color-red)}@supports (color:color-mix(in lab,red,red)){.dark-mode{--scalar-background-danger:var(--scalar-color-red)}@supports (color:color-mix(in lab,red,red)){.dark-mode{--scalar-background-danger:color-mix(in srgb,var(--scalar-color-red),var(--scalar-background-1)95%)}}}}@supports (color:color(display-p3 1 1 1)){.light-mode{--scalar-color-accent:color(display-p3 0 .6 1);--scalar-color-green:color(display-p3 .023529 .564706 .380392);--scalar-color-red:color(display-p3 .937255 0 .023529);--scalar-color-yellow:color(display-p3 .929412 .745098 .12549);--scalar-color-blue:color(display-p3 0 .509804 .815686);--scalar-color-orange:color(display-p3 1 .4 .02);--scalar-color-purple:color(display-p3 .321569 .011765 .819608)}.dark-mode{--scalar-color-accent:color(display-p3 .07 .67 1);--scalar-color-green:color(display-p3 0 .713725 .282353);--scalar-color-red:color(display-p3 .862745 .105882 .098039);--scalar-color-yellow:color(display-p3 1 .788235 .05098);--scalar-color-blue:color(display-p3 .305882 .701961 .92549);--scalar-color-orange:color(display-p3 1 .552941 .301961);--scalar-color-purple:color(display-p3 .694118 .568627 .976471)}}:root,:host{--leading-snug:1.375;--ease-in-out:cubic-bezier(.4,0,.2,1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--leading-normal:1.5}}@layer scalar-theme;@supports (color:color-mix(in lab,red,red)){:where(.scalar-app) a{-webkit-text-decoration-color:color-mix(in srgb,var(--font-color)30%,transparent);text-decoration-color:color-mix(in srgb,var(--font-color)30%,transparent)}}.scalar-app .\\@container{container-type:inline-size}.scalar-app .top-2\\.5{top:10px}.scalar-app .-left-5{left:-20px}.scalar-app .my-3{margin-block:12px}.scalar-app .mt-6{margin-top:24px}.scalar-app .mb-3{margin-bottom:12px}.scalar-app .size-4\\.5{width:18px;height:18px}.scalar-app .max-h-80{max-height:320px}.scalar-app .\\!min-h-full{min-height:100%!important}.scalar-app .min-h-3{min-height:12px}.scalar-app .min-h-7{min-height:28px}.scalar-app .min-h-dvh{min-height:100dvh}.scalar-app .w-96{width:384px}.scalar-app .max-w-64{max-width:256px}.scalar-app .min-w-3{min-width:12px}.scalar-app .min-w-7{min-width:28px}.scalar-app .min-w-9\\.75{min-width:39px}.scalar-app .content-end{align-content:flex-end}.scalar-app .overflow-x-scroll{overflow-x:scroll}.scalar-app .rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}@supports (color:color-mix(in lab,red,red)){.scalar-app .bg-b-1\\.5{background-color:color-mix(in srgb,var(--scalar-background-1),var(--scalar-background-2))}}.scalar-app .pr-0\\.5{padding-right:2px}.scalar-app .text-current{color:currentColor}.scalar-app .italic{font-style:italic}.scalar-app .\\[--scalar-address-bar-height\\:0px\\]{--scalar-address-bar-height:0px}:is(.scalar-app .\\*\\:\\!p-0>*){padding:0!important}.scalar-app .group-last\\:mr-0:is(:where(.group):last-child *){margin-right:0}.scalar-app .group-open\\:rotate-90:is(:where(.group):is([open],:popover-open,:open) *){rotate:90deg}.scalar-app .group-open\\:flex-wrap:is(:where(.group):is([open],:popover-open,:open) *){flex-wrap:wrap}.scalar-app .group-open\\:whitespace-normal:is(:where(.group):is([open],:popover-open,:open) *){white-space:normal}.scalar-app .group-focus-within\\/parameter-item\\:opacity-100:is(:where(.group\\/parameter-item):focus-within *){opacity:1}@media (hover:hover){.scalar-app .group-hover\\:flex:is(:where(.group):hover *){display:flex}.scalar-app .group-hover\\:text-c-1:is(:where(.group):hover *){color:var(--scalar-color-1)}.scalar-app .group-hover\\/parameter-item\\:opacity-100:is(:where(.group\\/parameter-item):hover *){opacity:1}}.scalar-app .empty\\:hidden:empty{display:none}@media (hover:hover){.scalar-app .hover\\:bg-b-2:hover{background-color:var(--scalar-background-2)}.scalar-app .hover\\:text-c-1:hover{color:var(--scalar-color-1)}}.scalar-app .has-focus\\:outline:has(:focus){outline-style:var(--tw-outline-style);outline-width:1px}@media (min-width:1200px){.scalar-app .xl\\:mb-1\\.5{margin-bottom:6px}.scalar-app .xl\\:gap-12{gap:48px}.scalar-app .xl\\:border-r{border-right-style:var(--tw-border-style);border-right-width:var(--scalar-border-width)}.scalar-app .xl\\:border-none{--tw-border-style:none;border-style:none}.scalar-app .xl\\:first\\:ml-auto:first-child{margin-left:auto}}.scalar-app .\\[\\&_em\\]\\:text-c-1 em{color:var(--scalar-color-1)}.scalar-app .\\[\\&_em\\]\\:not-italic em{font-style:normal}@supports (color:color-mix(in lab,red,red)){.scalar-app .bg-b-1\\.5{background-color:var(--scalar-background-1)}@supports (color:color-mix(in lab,red,red)){.scalar-app .bg-b-1\\.5{background-color:color-mix(in srgb,var(--scalar-background-1),var(--scalar-background-2))}}}@media (hover:hover){.scalar-app .group-hover\\:text-c-1:is(:where(.group):hover *){color:var(--scalar-color-1)}.scalar-app .group-hover\\/button\\:bg-sidebar-indent-border-hover:is(:where(.group\\/button):hover *){background-color:var(--scalar-sidebar-indent-border-hover,var(--scalar-border-color))}.scalar-app .group-hover\\/button\\:text-c-1:is(:where(.group\\/button):hover *){color:var(--scalar-color-1)}.scalar-app .group-hover\\/item\\:opacity-100:is(:where(.group\\/item):hover *){opacity:1}.scalar-app .hover\\:bg-b-2:hover{background-color:var(--scalar-background-2)}.scalar-app .hover\\:bg-b-3:hover{background-color:var(--scalar-background-3)}.scalar-app .hover\\:bg-h-btn:hover{background-color:var(--scalar-button-1-hover)}.scalar-app .hover\\:text-c-1:hover{color:var(--scalar-color-1)}.scalar-app .hover\\:underline:hover{text-decoration-line:underline}.scalar-app .hover\\:brightness-90:hover{--tw-brightness:brightness(90%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes fade-in-f525638b{0%{opacity:0}70%{opacity:0}to{opacity:1}}@keyframes rotate-f525638b{0%{transform:scale(3.5)rotate(0)}to{transform:scale(3.5)rotate(360deg)}}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown a{-webkit-text-decoration-color:color-mix(in srgb,var(--font-color)30%,transparent);text-decoration-color:color-mix(in srgb,var(--font-color)30%,transparent)}}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert{background-color:color-mix(in srgb,var(--scalar-background-2),transparent)}}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-note{background-color:color-mix(in srgb,var(--scalar-color-blue),transparent 97%)}}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-note{border:var(--scalar-border-width)solid color-mix(in srgb,var(--scalar-color-blue),transparent 50%)}}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-tip{background-color:color-mix(in srgb,var(--scalar-color-2),transparent 97%)}}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-tip{border:var(--scalar-border-width)solid color-mix(in srgb,var(--scalar-color-2),transparent 50%)}}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-important,.scalar-app .markdown .markdown-alert.markdown-alert-warning{background-color:color-mix(in srgb,var(--scalar-color-orange),transparent 97%)}}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-important,.scalar-app .markdown .markdown-alert.markdown-alert-warning{border:var(--scalar-border-width)solid color-mix(in srgb,var(--scalar-color-orange),transparent 50%)}}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-caution{background-color:color-mix(in srgb,var(--scalar-color-red),transparent 97%)}}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-caution{border:var(--scalar-border-width)solid color-mix(in srgb,var(--scalar-color-red),transparent 50%)}}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-success{background-color:color-mix(in srgb,var(--scalar-color-green),transparent 97%)}}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-success{border:var(--scalar-border-width)solid color-mix(in srgb,var(--scalar-color-green),transparent 50%)}}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@keyframes fadein-layout-589f8aa0{0%{opacity:0}to{opacity:1}}@keyframes fadein-modal-589f8aa0{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translate(0)}}@supports (color:color-mix(in lab,red,red)){:where(.scalar-app) a{-webkit-text-decoration-color:var(--font-color)}@supports (color:color-mix(in lab,red,red)){:where(.scalar-app) a{-webkit-text-decoration-color:color-mix(in srgb,var(--font-color)30%,transparent)}}:where(.scalar-app) a{-webkit-text-decoration-color:var(--font-color);text-decoration-color:var(--font-color)}@supports (color:color-mix(in lab,red,red)){:where(.scalar-app) a{-webkit-text-decoration-color:color-mix(in srgb,var(--font-color)30%,transparent);text-decoration-color:color-mix(in srgb,var(--font-color)30%,transparent)}}}:where(.scalar-app){font-family:var(--scalar-font);color:var(--scalar-color-1);-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.15}:where(.scalar-app) *,:where(.scalar-app) :before,:where(.scalar-app) :after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--scalar-border-color);outline-width:1px;outline-style:none;outline-color:var(--scalar-color-accent);font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;font-style:inherit;line-height:inherit;color:inherit;margin:unset;padding:unset;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:where(.scalar-app) :before,:where(.scalar-app) :after{--tw-content:""}:where(.scalar-app) button,:where(.scalar-app) input,:where(.scalar-app) optgroup,:where(.scalar-app) select,:where(.scalar-app) textarea{background:0 0}:where(.scalar-app) ::file-selector-button{background:0 0}:where(.scalar-app) ol,:where(.scalar-app) ul,:where(.scalar-app) menu{list-style:none}:where(.scalar-app) input:where(:not([type=button],[type=reset],[type=submit])),:where(.scalar-app) select,:where(.scalar-app) textarea{border-radius:var(--scalar-radius);border-width:1px}:where(.scalar-app) input::placeholder{color:var(--scalar-color-3);font-family:var(--scalar-font)}:where(.scalar-app) input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;-moz-appearance:none;appearance:none}:where(.scalar-app) input[type=search]::-webkit-search-decoration{-webkit-appearance:none;-moz-appearance:none;appearance:none}:where(.scalar-app) summary::-webkit-details-marker{display:none}:where(.scalar-app) input:-webkit-autofill{-webkit-background-clip:text!important;background-clip:text!important}:where(.scalar-app) :focus-visible{border-radius:var(--scalar-radius);outline-style:solid}:where(.scalar-app) button:focus-visible,:where(.scalar-app) [role=button]:focus-visible{outline-offset:-1px}:where(.scalar-app) button,:where(.scalar-app) [role=button]{cursor:pointer}:where(.scalar-app) a{--font-color:var(--scalar-link-color,var(--scalar-color-accent));--font-visited:var(--scalar-link-color-visited,var(--scalar-color-2));-webkit-text-decoration:var(--scalar-text-decoration);text-decoration:var(--scalar-text-decoration);color:var(--font-color);line-height:1.625;font-weight:var(--scalar-link-font-weight,var(--scalar-semibold));text-underline-offset:.25rem;text-decoration-thickness:1px;-webkit-text-decoration-color:var(--font-color);text-decoration-color:var(--font-color)}@supports (color:color-mix(in lab,red,red)){:where(.scalar-app) a{-webkit-text-decoration-color:var(--font-color)}@supports (color:color-mix(in lab,red,red)){:where(.scalar-app) a{-webkit-text-decoration-color:var(--font-color)}@supports (color:color-mix(in lab,red,red)){:where(.scalar-app) a{-webkit-text-decoration-color:color-mix(in srgb,var(--font-color)30%,transparent)}}}:where(.scalar-app) a{-webkit-text-decoration-color:var(--font-color);text-decoration-color:var(--font-color)}@supports (color:color-mix(in lab,red,red)){:where(.scalar-app) a{-webkit-text-decoration-color:var(--font-color)}@supports (color:color-mix(in lab,red,red)){:where(.scalar-app) a{-webkit-text-decoration-color:color-mix(in srgb,var(--font-color)30%,transparent)}}:where(.scalar-app) a{-webkit-text-decoration-color:var(--font-color);text-decoration-color:var(--font-color)}@supports (color:color-mix(in lab,red,red)){:where(.scalar-app) a{-webkit-text-decoration-color:color-mix(in srgb,var(--font-color)30%,transparent);text-decoration-color:color-mix(in srgb,var(--font-color)30%,transparent)}}}}:where(.scalar-app) a:hover{color:var(--scalar-link-color-hover,var(--scalar-color-accent));-webkit-text-decoration:var(--scalar-text-decoration-hover);text-decoration:var(--scalar-text-decoration-hover)}:where(.scalar-app) :disabled{cursor:default}:where(.scalar-app) img,:where(.scalar-app) svg,:where(.scalar-app) video,:where(.scalar-app) canvas,:where(.scalar-app) audio,:where(.scalar-app) iframe,:where(.scalar-app) embed,:where(.scalar-app) object{vertical-align:middle;display:block}:where(.scalar-app) [hidden]{display:none}.scalar-app .cm-scroller,.scalar-app .custom-scroll{scrollbar-color:transparent transparent;scrollbar-width:thin;-webkit-overflow-scrolling:touch;overflow-y:auto}.scalar-app .custom-scroll-self-contain-overflow{overscroll-behavior:contain}.scalar-app .cm-scroller:hover,.scalar-app .custom-scroll:hover,.scalar-app.scalar-scrollbars-obtrusive .cm-scroller,.scalar-app.scalar-scrollbars-obtrusive .custom-scroll{scrollbar-color:var(--scalar-scrollbar-color,transparent)transparent}.scalar-app .cm-scroller:hover::-webkit-scrollbar-thumb{background:var(--scalar-scrollbar-color);background-clip:content-box;border:3px solid #0000}.scalar-app .custom-scroll:hover::-webkit-scrollbar-thumb{background:var(--scalar-scrollbar-color);background-clip:content-box;border:3px solid #0000}.scalar-app .cm-scroller::-webkit-scrollbar-thumb:active{background:var(--scalar-scrollbar-color-active);background-clip:content-box;border:3px solid #0000}.scalar-app .custom-scroll::-webkit-scrollbar-thumb:active{background:var(--scalar-scrollbar-color-active);background-clip:content-box;border:3px solid #0000}.scalar-app .cm-scroller::-webkit-scrollbar-corner{background:0 0}.scalar-app .custom-scroll::-webkit-scrollbar-corner{background:0 0}.scalar-app .cm-scroller::-webkit-scrollbar{width:12px;height:12px}.scalar-app .custom-scroll::-webkit-scrollbar{width:12px;height:12px}.scalar-app .cm-scroller::-webkit-scrollbar-track{background:0 0}.scalar-app .custom-scroll::-webkit-scrollbar-track{background:0 0}.scalar-app .cm-scroller::-webkit-scrollbar-thumb{background:padding-box content-box;border:3px solid #0000;border-radius:20px}.scalar-app .custom-scroll::-webkit-scrollbar-thumb{background:padding-box content-box;border:3px solid #0000;border-radius:20px}@media (pointer:coarse){.scalar-app .cm-scroller,.scalar-app .custom-scroll{padding-right:12px}}.scalar-app .invisible{visibility:hidden}.scalar-app .inset-y-0{inset-block:0}.scalar-app .top-\\(--nested-items-offset\\){top:var(--nested-items-offset)}.scalar-app .top-0\\.5{top:2px}.scalar-app .top-22{top:88px}.scalar-app .top-px{top:1px}.scalar-app .left-2{left:8px}.scalar-app .left-2\\.5{left:10px}.scalar-app .left-4{left:16px}.scalar-app .left-border{left:var(--scalar-border-width)}.scalar-app .left-px{left:1px}.scalar-app .z-\\[1001\\]{z-index:1001}.scalar-app .z-tooltip{z-index:99999}.scalar-app .-m-1\\.5{margin:-6px}.scalar-app .-m-px{margin:-1px}.scalar-app .m-1{margin:4px}.scalar-app .-mx-0\\.75{margin-inline:-3px}.scalar-app .-mx-px{margin-inline:-1px}.scalar-app .mx-px{margin-inline:1px}.scalar-app .-my-1\\.5{margin-block:-6px}.scalar-app .my-0\\.75{margin-block:3px}.scalar-app .-mt-1\\.5{margin-top:-6px}.scalar-app .mt-0{margin-top:0}.scalar-app .mt-\\[15svh\\]{margin-top:15svh}.scalar-app .mt-\\[20svh\\]{margin-top:20svh}.scalar-app .-mr-0\\.25{margin-right:-1px}.scalar-app .mr-0{margin-right:0}.scalar-app .mr-\\[calc\\(20px-var\\(--scalar-sidebar-indent\\)\\)\\]{margin-right:calc(20px - var(--scalar-sidebar-indent))}.scalar-app .-mb-1{margin-bottom:-4px}.scalar-app .-ml-0\\.75{margin-left:-3px}.scalar-app .line-clamp-4{-webkit-line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.scalar-app .\\!hidden{display:none!important}.scalar-app .inline{display:inline}.scalar-app .size-2{width:8px;height:8px}.scalar-app .size-3{width:12px;height:12px}.scalar-app .size-6{width:24px;height:24px}.scalar-app .size-\\[23px\\]{width:23px;height:23px}.scalar-app .size-full{width:100%;height:100%}.scalar-app .h-0{height:0}.scalar-app .h-1{height:4px}.scalar-app .h-24{height:96px}.scalar-app .h-32{height:128px}.scalar-app .h-\\[100dvh\\]{height:100dvh}.scalar-app .h-border{height:var(--scalar-border-width)}.scalar-app .h-dvh{height:100dvh}.scalar-app .max-h-20{max-height:80px}.scalar-app .max-h-\\[80svh\\]{max-height:80svh}.scalar-app .max-h-\\[90svh\\]{max-height:90svh}.scalar-app .max-h-dvh{max-height:100dvh}.scalar-app .max-h-radix-popper{max-height:calc(var(--radix-popper-available-height) - 8px)}.scalar-app .min-h-5{min-height:20px}.scalar-app .min-h-6{min-height:24px}.scalar-app .min-h-96{min-height:384px}.scalar-app .min-h-header{min-height:48px}.scalar-app .w-12{width:48px}.scalar-app .w-16{width:64px}.scalar-app .w-24{width:96px}.scalar-app .w-32{width:128px}.scalar-app .w-40{width:160px}.scalar-app .w-48{width:192px}.scalar-app .w-\\[38px\\]{width:38px}.scalar-app .w-\\[100dvw\\]{width:100dvw}.scalar-app .w-\\[calc\\(100vw-12px\\)\\]{width:calc(100vw - 12px)}.scalar-app .w-\\[var\\(--scalar-sidebar-indent\\)\\]{width:var(--scalar-sidebar-indent)}.scalar-app .w-border{width:var(--scalar-border-width)}.scalar-app .w-min{width:min-content}.scalar-app .max-w-\\[360px\\]{max-width:360px}.scalar-app .max-w-\\[480px\\]{max-width:480px}.scalar-app .max-w-\\[540px\\]{max-width:540px}.scalar-app .max-w-\\[640px\\]{max-width:640px}.scalar-app .max-w-\\[800px\\]{max-width:800px}.scalar-app .max-w-\\[1000px\\]{max-width:1000px}.scalar-app .max-w-xs{max-width:320px}.scalar-app .min-w-5{min-width:20px}.scalar-app .min-w-6{min-width:24px}.scalar-app .min-w-max{min-width:max-content}.scalar-app .min-w-min{min-width:min-content}.scalar-app .flex-shrink,.scalar-app .shrink{flex-shrink:1}.scalar-app .border-collapse{border-collapse:collapse}.scalar-app .-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scalar-app .translate-x-2\\.5{--tw-translate-x:10px;translate:var(--tw-translate-x)var(--tw-translate-y)}.scalar-app .translate-x-\\[14px\\]{--tw-translate-x:14px;translate:var(--tw-translate-x)var(--tw-translate-y)}.scalar-app .translate-x-full{--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scalar-app .rotate-180{rotate:180deg}.scalar-app .cursor-not-allowed{cursor:not-allowed}.scalar-app .appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.scalar-app .items-baseline{align-items:baseline}.scalar-app .gap-2\\.25{gap:9px}.scalar-app .gap-16{gap:64px}.scalar-app .gap-x-4{column-gap:16px}.scalar-app .gap-y-8{row-gap:32px}.scalar-app .overflow-x-clip{overflow-x:clip}.scalar-app .overflow-y-scroll{overflow-y:scroll}.scalar-app .rounded-none{border-radius:0}.scalar-app .border-1,.scalar-app .border-\\[1px\\]{border-style:var(--tw-border-style);border-width:1px}.scalar-app .border-solid{--tw-border-style:solid;border-style:solid}.scalar-app .border-border{border-color:var(--scalar-border-color)}.scalar-app .border-c-alert{border-color:var(--scalar-color-alert)}.scalar-app .border-c-danger{border-color:var(--scalar-color-danger)}.scalar-app .border-red{border-color:var(--scalar-color-red)}.scalar-app .border-sidebar-border{border-color:var(--scalar-sidebar-border-color,var(--scalar-border-color))}.scalar-app .border-sidebar-border-search{border-color:var(--scalar-sidebar-search-border-color,var(--scalar-border-color))}.scalar-app .bg-b-1,.scalar-app .bg-b-1\\.5{background-color:var(--scalar-background-1)}@supports (color:color-mix(in lab,red,red)){.scalar-app .bg-b-1\\.5{background-color:var(--scalar-background-1)}@supports (color:color-mix(in lab,red,red)){.scalar-app .bg-b-1\\.5{background-color:var(--scalar-background-1)}@supports (color:color-mix(in lab,red,red)){.scalar-app .bg-b-1\\.5{background-color:color-mix(in srgb,var(--scalar-background-1),var(--scalar-background-2))}}}}.scalar-app .bg-b-alert{background-color:var(--scalar-background-alert)}.scalar-app .bg-b-btn{background-color:var(--scalar-button-1)}.scalar-app .bg-b-tooltip{background-color:var(--scalar-tooltip-background)}.scalar-app .bg-backdrop{background-color:#00000038}.scalar-app .bg-border{background-color:var(--scalar-border-color)}.scalar-app .bg-c-danger{background-color:var(--scalar-color-danger)}.scalar-app .bg-red{background-color:var(--scalar-color-red)}.scalar-app .bg-sidebar-b-1{background-color:var(--scalar-sidebar-background-1,var(--scalar-background-1))}.scalar-app .bg-sidebar-b-search{background-color:var(--scalar-sidebar-search-background,var(--scalar-background-2))}.scalar-app .bg-sidebar-indent-border{background-color:var(--scalar-sidebar-indent-border,var(--scalar-border-color))}.scalar-app .bg-sidebar-indent-border-active{background-color:var(--scalar-sidebar-indent-border-active,var(--scalar-color-accent))}.scalar-app .bg-transparent{background-color:#0000}.scalar-app .mask-repeat{-webkit-mask-repeat:repeat;mask-repeat:repeat}.scalar-app .p-0\\.25{padding:1px}.scalar-app .p-6{padding:24px}.scalar-app .px-1\\.25{padding-inline:5px}.scalar-app .px-9{padding-inline:36px}.scalar-app .py-4{padding-block:16px}.scalar-app .py-\\[6\\.75px\\]{padding-block:6.75px}.scalar-app .pl-8{padding-left:32px}.scalar-app .text-lg{font-size:var(--scalar-font-size-2)}.scalar-app .leading-\\[22px\\]{--tw-leading:22px;line-height:22px}.scalar-app .font-sidebar{--tw-font-weight:var(--scalar-sidebar-font-weight,var(--scalar-regular));font-weight:var(--scalar-sidebar-font-weight,var(--scalar-regular))}.scalar-app .font-sidebar-active{--tw-font-weight:var(--scalar-sidebar-font-weight-active,var(--scalar-semibold));font-weight:var(--scalar-sidebar-font-weight-active,var(--scalar-semibold))}.scalar-app .text-nowrap{text-wrap:nowrap}.scalar-app .text-wrap{text-wrap:wrap}.scalar-app .text-c-accent{color:var(--scalar-color-accent)}.scalar-app .text-c-alert{color:var(--scalar-color-alert)}.scalar-app .text-c-danger{color:var(--scalar-color-danger)}.scalar-app .text-c-tooltip{color:var(--scalar-tooltip-color)}.scalar-app .text-sidebar-c-search{color:var(--scalar-sidebar-search-color,var(--scalar-color-3))}.scalar-app .text-white{color:#fff}.scalar-app .ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.scalar-app .opacity-40{opacity:.4}.scalar-app .shadow-sm{--tw-shadow:var(--tw-shadow-color,#00000017)0px 1px 4px;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.scalar-app .-outline-offset-2{outline-offset:-2px}.scalar-app .outline-offset-1{outline-offset:1px}.scalar-app .outline-offset-\\[-1px\\]{outline-offset:-1px}.scalar-app .backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.scalar-app .duration-100{--tw-duration:.1s;transition-duration:.1s}:is(.scalar-app .\\*\\:flex-1>*){flex:1}:is(.scalar-app .\\*\\:gap-px>*){gap:1px}@media (hover:hover){.scalar-app .group-hover\\:text-c-1:is(:where(.group):hover *){color:var(--scalar-color-1)}.scalar-app .group-hover\\/button\\:bg-sidebar-indent-border-hover:is(:where(.group\\/button):hover *){background-color:var(--scalar-sidebar-indent-border-hover,var(--scalar-border-color))}.scalar-app .group-hover\\/button\\:text-c-1:is(:where(.group\\/button):hover *){color:var(--scalar-color-1)}.scalar-app .group-hover\\/item\\:opacity-100:is(:where(.group\\/item):hover *){opacity:1}}.scalar-app .group-focus-visible\\/toggle\\:outline:is(:where(.group\\/toggle):focus-visible *){outline-style:var(--tw-outline-style);outline-width:1px}.scalar-app .peer-checked\\:text-c-2:is(:where(.peer):checked~*){color:var(--scalar-color-2)}.scalar-app .peer-checked\\:opacity-100:is(:where(.peer):checked~*){opacity:1}.scalar-app .placeholder\\:font-\\[inherit\\]::placeholder{font-family:inherit}:is(.scalar-app .\\*\\:first\\:rounded-t-\\[inherit\\]>*):first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}:is(.scalar-app .\\*\\:last\\:rounded-b-\\[inherit\\]>*):last-child{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.scalar-app .focus-within\\:outline-none:focus-within{--tw-outline-style:none;outline-style:none}@media (hover:hover){.scalar-app .hover\\:bg-b-2:hover{background-color:var(--scalar-background-2)}.scalar-app .hover\\:bg-b-3:hover{background-color:var(--scalar-background-3)}.scalar-app .hover\\:bg-h-btn:hover{background-color:var(--scalar-button-1-hover)}.scalar-app .hover\\:text-c-1:hover{color:var(--scalar-color-1)}.scalar-app .hover\\:underline:hover{text-decoration-line:underline}.scalar-app .hover\\:brightness-90:hover{--tw-brightness:brightness(90%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}}.scalar-app .focus-visible\\:border-c-btn:focus-visible{border-color:var(--scalar-button-1-color)}.scalar-app .focus-visible\\:outline:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.scalar-app .active\\:bg-b-btn:active{background-color:var(--scalar-button-1)}.scalar-app .active\\:shadow-none:active{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.scalar-app .active\\:brightness-90:active{--tw-brightness:brightness(90%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.scalar-app .has-\\[\\:focus-visible\\]\\:outline:has(:focus-visible),.scalar-app .has-\\[input\\:focus-visible\\]\\:outline:has(:is(input:focus-visible)){outline-style:var(--tw-outline-style);outline-width:1px}@media (min-width:800px){.scalar-app .md\\:w-\\[calc\\(100vw-16px\\)\\]{width:calc(100vw - 16px)}}@media (min-width:1000px){.scalar-app .lg\\:w-\\[calc\\(100vw-32px\\)\\]{width:calc(100vw - 32px)}.scalar-app .lg\\:w-full{width:100%}}.scalar-app .dark\\:bg-b-3:where(.dark-mode,.dark-mode *){background-color:var(--scalar-background-3)}.scalar-app .dark\\:bg-backdrop-dark:where(.dark-mode,.dark-mode *){background-color:#00000073}@media (hover:hover){.scalar-app .dark\\:hover\\:bg-b-3:where(.dark-mode,.dark-mode *):hover{background-color:var(--scalar-background-3)}}.scalar-app .ui-open\\:rotate-180[data-headlessui-state~=open],:where([data-headlessui-state~=open]) :is(.scalar-app .ui-open\\:rotate-180){rotate:180deg}@media (max-width:720px) and (max-height:480px){.scalar-app .zoomed\\:\\!whitespace-normal{white-space:normal!important}}.loader-wrapper[data-v-f525638b]{--loader-size:50%;justify-content:center;align-items:center;display:flex;position:relative}.svg-loader[data-v-f525638b]{width:var(--loader-size);height:var(--loader-size);fill:none;stroke:currentColor;background-color:#0000;top:1rem;right:.9rem;overflow:visible}.svg-path[data-v-f525638b]{stroke-width:12px;fill:none;transition:all .3s}.svg-x-mark[data-v-f525638b]{stroke-dasharray:57;stroke-dashoffset:57px;transition-delay:0s}.svg-check-mark[data-v-f525638b]{stroke-dasharray:149;stroke-dashoffset:149px;transition-delay:0s}.icon-is-invalid .svg-x-mark[data-v-f525638b],.icon-is-valid .svg-check-mark[data-v-f525638b]{stroke-dashoffset:0;transition-delay:.3s}.circular-loader[data-v-f525638b]{transform-origin:50%;background:0 0;animation:.7s linear infinite rotate-f525638b,.4s fade-in-f525638b;transform:scale(3.5)}.loader-path[data-v-f525638b]{stroke-dasharray:50 200;stroke-dashoffset:-100px;stroke-linecap:round}.loader-path-off[data-v-f525638b]{stroke-dasharray:50 200;stroke-dashoffset:-100px;opacity:0;transition:opacity .3s}.scalar-code-block{background:inherit;padding:.75rem;position:relative;overflow:auto}.scalar-code-block:hover .copy-button,.copy-button:focus-visible{opacity:100}.scalar-codeblock-pre{all:unset;text-wrap:nowrap;white-space-collapse:preserve;background:0 0;border-radius:0;width:fit-content;margin:0}.scalar-code-copy{justify-content:flex-end;align-items:flex-start;display:flex;position:sticky;top:0;right:0;bottom:0;left:0}.copy-button{background-color:var(--scalar-background-2);border:1px solid var(--scalar-border-color);color:var(--scalar-color-3);cursor:pointer;opacity:0;border-radius:3px;align-items:center;height:30px;margin-bottom:-30px;padding:5px;transition:opacity .15s ease-in-out,color .15s ease-in-out;display:flex;position:relative;top:0;right:0}.scalar-code-copy,.copy-button{background:inherit}.copy-button:hover{color:var(--scalar-color-1)}.copy-button svg{stroke-width:1.5px}.toggle-icon-ellipse[data-v-60be8692]{background:var(--scalar-background-1);border-radius:50%;width:7px;height:7px;transition:width .3s ease-in-out,height .3s ease-in-out;display:inline-block;position:relative;overflow:hidden;box-shadow:inset 0 0 0 1px}.toggle-icon-moon-mask[data-v-60be8692]{background:var(--scalar-background-1);border:1px solid;border-radius:50%;width:100%;height:100%;transition:transform .3s ease-in-out;display:block;position:absolute;bottom:2.5px;left:2.5px;transform:translate(4px,-4px)}.toggle-icon-sun-ray[data-v-60be8692]{background:currentColor;border-radius:8px;width:12px;height:1px;transition:transform .3s ease-in-out;position:absolute}.toggle-icon-sun-ray[data-v-60be8692]:nth-of-type(2){transform:rotate(90deg)}.toggle-icon-sun-ray[data-v-60be8692]:nth-of-type(3){transform:rotate(45deg)}.toggle-icon-sun-ray[data-v-60be8692]:nth-of-type(4){transform:rotate(-45deg)}.toggle-icon-dark .toggle-icon-ellipse[data-v-60be8692]{width:10px;height:10px;-webkit-mask-image:radial-gradient(circle at 0 100%,pink 10px,#0000 12px);mask-image:radial-gradient(circle at 0 100%,pink 10px,#0000 12px)}.toggle-icon-dark .toggle-icon-sun-ray[data-v-60be8692]{transform:scale(0)}.toggle-icon-dark .toggle-icon-moon-mask[data-v-60be8692]{transform:translateZ(0)}.search-icon[data-v-b76d72f2]{top:50%;transform:translateY(-50%)}.scalar-icon[data-v-b651bb23],.scalar-icon[data-v-b651bb23] *{stroke-width:var(--c07589c2)}.scalar-app :where(code.hljs) *{font-size:inherit;font-family:var(--scalar-font-code);text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-moz-tab-size:4;tab-size:4;line-height:1.4}.scalar-app code.hljs{all:unset;font-size:inherit;color:var(--scalar-color-2);font-family:var(--scalar-font-code);counter-reset:linenumber;display:inline-block}.scalar-app .hljs{color:var(--scalar-color-2);background:0 0}.scalar-app .hljs .line:before{color:var(--scalar-color-3);counter-increment:linenumber;content:counter(linenumber);min-width:calc(var(--line-digits)*1ch);text-align:right;margin-right:.875rem;display:inline-block}.scalar-app .hljs-comment,.scalar-app .hljs-quote{color:var(--scalar-color-3);font-style:italic}.scalar-app .hljs-number{color:var(--scalar-color-orange)}.scalar-app .hljs-regexp,.scalar-app .hljs-string,.scalar-app .hljs-built_in{color:var(--scalar-color-blue)}.scalar-app .hljs-title.class_{color:var(--scalar-color-1)}.scalar-app .hljs-keyword{color:var(--scalar-color-purple)}.scalar-app .hljs-title.function_{color:var(--scalar-color-orange)}.scalar-app .hljs-subst,.scalar-app .hljs-name{color:var(--scalar-color-blue)}.scalar-app .hljs-attr,.scalar-app .hljs-attribute{color:var(--scalar-color-1)}.scalar-app .hljs-addition,.scalar-app .hljs-literal,.scalar-app .hljs-selector-tag,.scalar-app .hljs-type{color:var(--scalar-color-green)}.scalar-app .hljs-selector-attr,.scalar-app .hljs-selector-pseudo{color:var(--scalar-color-orange)}.scalar-app .hljs-doctag,.scalar-app .hljs-section,.scalar-app .hljs-title{color:var(--scalar-color-blue)}.scalar-app .hljs-selector-id,.scalar-app .hljs-template-variable,.scalar-app .hljs-variable{color:var(--scalar-color-1)}.scalar-app .hljs-name,.scalar-app .hljs-section,.scalar-app .hljs-strong{font-weight:var(--scalar-semibold)}.scalar-app .hljs-bullet,.scalar-app .hljs-link,.scalar-app .hljs-meta,.scalar-app .hljs-symbol{color:var(--scalar-color-blue)}.scalar-app .hljs-deletion{color:var(--scalar-color-red)}.scalar-app .hljs-formula{background:var(--scalar-color-1)}.scalar-app .hljs-emphasis{font-style:italic}.scalar-app .credential .credential-value{color:#0000;font-size:0}.scalar-app .credential:after{content:"·····";color:var(--scalar-color-3);-webkit-user-select:none;user-select:none}.hljs.language-html{color:var(--scalar-color-1)}.hljs.language-html .hljs-attr{color:var(--scalar-color-2)}.hljs.language-curl .hljs-string{color:var(--scalar-color-blue)}.hljs.language-curl .hljs-literal{color:var(--scalar-color-1)}.hljs.language-php .hljs-variable{color:var(--scalar-color-blue)}.hljs.language-objectivec .hljs-meta{color:var(--scalar-color-1)}.hljs.language-objectivec .hljs-built_in,.hljs-built_in{color:var(--scalar-color-orange)}.scalar-app .markdown{--scalar-refs-heading-spacing:24px;--markdown-border:var(--scalar-border-width)solid var(--scalar-border-color);--markdown-spacing-sm:12px;--markdown-spacing-md:16px;--markdown-line-height:1.625;font-family:var(--scalar-font);word-break:break-word}.scalar-app .markdown>*{margin-bottom:var(--markdown-spacing-md)}.scalar-app .markdown>:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):last-child{margin-bottom:0}.scalar-app .markdown h1{--font-size:1.5rem;--markdown-line-height:32px}.scalar-app .markdown h2,.scalar-app .markdown h3{--font-size:1.25rem;--markdown-line-height:1.3}.scalar-app .markdown h4,.scalar-app .markdown h5,.scalar-app .markdown h6{--font-size:1rem}.scalar-app .markdown h1,.scalar-app .markdown h2,.scalar-app .markdown h3,.scalar-app .markdown h4,.scalar-app .markdown h5,.scalar-app .markdown h6{font-size:var(--font-size);font-weight:var(--scalar-bold);margin-top:var(--scalar-refs-heading-spacing);margin-bottom:var(--markdown-spacing-sm);scroll-margin-top:1rem;display:block}.scalar-app .markdown b,.scalar-app .markdown strong{font-weight:var(--scalar-bold)}.scalar-app .markdown p{color:inherit;line-height:22px;display:block}.scalar-app .markdown img{border-radius:var(--scalar-radius);max-width:100%;overflow:hidden}.scalar-app .markdown ul:not(.contains-task-list),.scalar-app .markdown ol{flex-direction:column;gap:2px;display:flex}.scalar-app .markdown ul:not(.contains-task-list){list-style-position:inside}.scalar-app .markdown ul{list-style-type:disc}.scalar-app .markdown li{line-height:var(--markdown-line-height);position:relative}.scalar-app .markdown ul li{padding-left:var(--markdown-spacing-md)}.scalar-app .markdown ol{counter-reset:item;padding-left:5px}.scalar-app .markdown ol li{gap:5px;padding-left:3px;display:flex}.scalar-app .markdown ol li:before{content:counter(item)".";counter-increment:item;font:var(--scalar-font);font-variant-numeric:tabular-nums;font-weight:var(--scalar-semibold);line-height:var(--markdown-line-height);white-space:nowrap;justify-content:center;width:24px;display:flex}.scalar-app .markdown ol li:before,.scalar-app .markdown ol ol ol li:before,.scalar-app .markdown ol ol ol ol ol ol li:before{content:counter(item,decimal)"."}.scalar-app .markdown ol ol li:before,.scalar-app .markdown ol ol ol ol li:before,.scalar-app .markdown ol ol ol ol ol ol ol li:before{content:counter(item,lower-alpha)"."}.scalar-app .markdown ol ol li:before,.scalar-app .markdown ol ol ol ol ol li:before,.scalar-app .markdown ol ol ol ol ol ol ol ol li:before{content:counter(item,lower-roman)"."}.scalar-app .markdown ul:first-of-type li:first-of-type{margin-top:0}.scalar-app .markdown table{table-layout:fixed;border-collapse:collapse;width:100%;box-shadow:0 0 0 var(--scalar-border-width) var(--scalar-border-color);border-radius:var(--scalar-radius);margin:1em 0;display:table;position:relative;overflow-x:auto}.scalar-app .markdown tbody,.scalar-app .markdown thead{vertical-align:middle}.scalar-app .markdown tbody{display:table-row-group}.scalar-app .markdown thead{display:table-header-group}.scalar-app .markdown tr{border-color:inherit;vertical-align:inherit;display:table-row}.scalar-app .markdown td,.scalar-app .markdown th{vertical-align:top;min-width:1em;line-height:var(--markdown-line-height);word-break:initial;font-size:var(--scalar-small);color:var(--scalar-color-1);border-right:var(--markdown-border);border-bottom:var(--markdown-border);padding:8.5px 16px;display:table-cell;position:relative}.scalar-app .markdown td>*,.scalar-app .markdown th>*{margin-bottom:0}.scalar-app .markdown th:empty{display:none}.scalar-app .markdown td:first-of-type,.scalar-app .markdown th:first-of-type{border-left:none}.scalar-app .markdown td:last-of-type,.scalar-app .markdown th:last-of-type{border-right:none}.scalar-app .markdown tr:last-of-type td{border-bottom:none}.scalar-app .markdown th{font-weight:var(--scalar-bold);text-align:left;background:var(--scalar-background-2);border-left-color:#0000}.scalar-app .markdown th:first-of-type{border-top-left-radius:var(--scalar-radius)}.scalar-app .markdown th:last-of-type{border-top-right-radius:var(--scalar-radius)}.scalar-app .markdown tr>[align=left]{text-align:left}.scalar-app .markdown tr>[align=right]{text-align:right}.scalar-app .markdown tr>[align=center]{text-align:center}.scalar-app .markdown details{border:var(--markdown-border);border-radius:var(--scalar-radius);color:var(--scalar-color-1)}.scalar-app .markdown details>:not(summary){margin:var(--markdown-spacing-md);margin-bottom:0}.scalar-app .markdown details>p:has(>strong):not(:has(:not(strong))){margin-bottom:8px}.scalar-app .markdown details>p:has(>strong):not(:has(:not(strong)))+*{margin-top:0}.scalar-app .markdown details>table{width:calc(100% - calc(var(--markdown-spacing-md)*2))}.scalar-app .markdown summary{min-height:40px;font-weight:var(--scalar-semibold);line-height:var(--markdown-line-height);cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:2.5px;align-items:flex-start;gap:10px;padding:7px 14px;display:flex;position:relative}.scalar-app .markdown summary:hover{background-color:var(--scalar-background-2)}.scalar-app .markdown details[open]{padding-bottom:var(--markdown-spacing-md)}.scalar-app .markdown details[open]>summary{border-bottom:var(--markdown-border);border-bottom-right-radius:0;border-bottom-left-radius:0}.scalar-app .markdown summary:before{content:"";width:var(--markdown-spacing-md);height:var(--markdown-spacing-md);background-color:var(--scalar-color-3);flex-shrink:0;margin-top:5px;display:block;-webkit-mask-image:url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" width="1em" height="1em"><path d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"></path></svg>\');mask-image:url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" width="1em" height="1em"><path d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"></path></svg>\')}.scalar-app .markdown summary:hover:before{background-color:var(--scalar-color-1)}.scalar-app .markdown details[open]>summary:before{transform:rotate(90deg)}.scalar-app .markdown details:has(+details){border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0;margin-bottom:0}.scalar-app .markdown details:has(+details)+details,.scalar-app .markdown details:has(+details)+details>summary{border-top-left-radius:0;border-top-right-radius:0}.scalar-app .markdown a{--font-color:var(--scalar-link-color,var(--scalar-color-accent));--font-visited:var(--scalar-link-color-visited,var(--scalar-color-2));-webkit-text-decoration:var(--scalar-text-decoration);text-decoration:var(--scalar-text-decoration);color:var(--font-color);font-weight:var(--scalar-link-font-weight,var(--scalar-semibold));text-underline-offset:.25rem;text-decoration-thickness:1px;-webkit-text-decoration-color:var(--font-color);text-decoration-color:var(--font-color)}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown a{-webkit-text-decoration-color:var(--font-color)}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown a{-webkit-text-decoration-color:color-mix(in srgb,var(--font-color)30%,transparent)}}.scalar-app .markdown a{-webkit-text-decoration-color:var(--font-color);text-decoration-color:var(--font-color)}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown a{-webkit-text-decoration-color:color-mix(in srgb,var(--font-color)30%,transparent);text-decoration-color:color-mix(in srgb,var(--font-color)30%,transparent)}}}.scalar-app .markdown a:hover{color:var(--scalar-link-color-hover,var(--scalar-color-accent));-webkit-text-decoration:var(--scalar-text-decoration-hover);text-decoration:var(--scalar-text-decoration-hover)}.scalar-app .markdown a:visited{color:var(--font-visited)}.scalar-app .markdown em{font-style:italic}.scalar-app .markdown sup,.scalar-app .markdown sub{font-size:var(--scalar-micro);font-weight:450}.scalar-app .markdown sup{vertical-align:super}.scalar-app .markdown sub{vertical-align:sub}.scalar-app .markdown del{text-decoration:line-through}.scalar-app .markdown code{font-family:var(--scalar-font-code);background-color:var(--scalar-background-2);box-shadow:0 0 0 var(--scalar-border-width) var(--scalar-border-color);font-size:var(--scalar-micro);border-radius:2px;padding:0 3px}.scalar-app .markdown .hljs{font-size:var(--scalar-small)}.scalar-app .markdown pre code{white-space:pre;padding:var(--markdown-spacing-sm);margin:var(--markdown-spacing-sm)0;-webkit-overflow-scrolling:touch;min-width:100px;max-width:100%;line-height:1.5;display:block;overflow-x:auto}.scalar-app .markdown hr{border:none;border-bottom:var(--markdown-border)}.scalar-app .markdown blockquote{border-left:1px solid var(--scalar-color-1);padding-left:var(--markdown-spacing-md);font-weight:var(--scalar-bold);font-size:var(--scalar-heading-2);margin:0;display:block}.scalar-app .markdown .contains-task-list{flex-direction:column;gap:2px;list-style:none;display:flex}.scalar-app .markdown .contains-task-list li{align-items:center;gap:10.5px;padding-left:10.5px;display:flex}.scalar-app .markdown .contains-task-list input{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:var(--markdown-spacing-md);height:var(--markdown-spacing-md);border:1px solid var(--scalar-color-3);border-radius:var(--scalar-radius);place-content:center;display:flex;position:relative}.scalar-app .markdown .contains-task-list input:checked{background-color:var(--scalar-color-1);border-color:var(--scalar-color-1)}.scalar-app .markdown .contains-task-list input[type=checkbox]:before{content:"";border:solid var(--scalar-background-1);opacity:0;border-width:0 1.5px 1.5px 0;width:5px;height:10px;position:absolute;top:1px;left:5px;transform:rotate(45deg)}.scalar-app .markdown .contains-task-list input[type=checkbox]:checked:before{opacity:1}.scalar-app .markdown .markdown-alert{border-radius:var(--scalar-radius);background-color:var(--scalar-background-2);align-items:stretch}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert{background-color:var(--scalar-background-2)}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert{background-color:color-mix(in srgb,var(--scalar-background-2),transparent)}}}.scalar-app .markdown .markdown-alert{border:var(--markdown-border);gap:var(--markdown-spacing-sm);padding:10px 14px;display:flex;position:relative}.scalar-app .markdown .markdown-alert .markdown-alert-icon:before{content:"";background-color:currentColor;flex-shrink:0;width:18px;height:18px;margin-top:3px;display:block;-webkit-mask-position:50%;mask-position:50%;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.scalar-app .markdown .markdown-alert.markdown-alert-note{background-color:var(--scalar-color-blue)}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-note{background-color:var(--scalar-color-blue)}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-note{background-color:color-mix(in srgb,var(--scalar-color-blue),transparent 97%)}}}.scalar-app .markdown .markdown-alert.markdown-alert-note{border:var(--scalar-border-width)solid var(--scalar-color-blue)}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-note{border:var(--scalar-border-width)solid var(--scalar-color-blue)}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-note{border:var(--scalar-border-width)solid color-mix(in srgb,var(--scalar-color-blue),transparent 50%)}}}.scalar-app .markdown .markdown-alert.markdown-alert-tip{background-color:var(--scalar-color-2)}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-tip{background-color:var(--scalar-color-2)}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-tip{background-color:color-mix(in srgb,var(--scalar-color-2),transparent 97%)}}}.scalar-app .markdown .markdown-alert.markdown-alert-tip{border:var(--scalar-border-width)solid var(--scalar-color-2)}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-tip{border:var(--scalar-border-width)solid var(--scalar-color-2)}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-tip{border:var(--scalar-border-width)solid color-mix(in srgb,var(--scalar-color-2),transparent 50%)}}}.scalar-app .markdown .markdown-alert.markdown-alert-note .markdown-alert-icon:before,.scalar-app .markdown .markdown-alert.markdown-alert-tip .markdown-alert-icon:before{color:var(--scalar-color-blue);-webkit-mask-image:url(\'data:image/svg+xml,<svg data-v-852d534d="" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" class="icon-placeholder"><path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"></path></svg>\');mask-image:url(\'data:image/svg+xml,<svg data-v-852d534d="" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" class="icon-placeholder"><path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"></path></svg>\')}.scalar-app .markdown .markdown-alert.markdown-alert-important,.scalar-app .markdown .markdown-alert.markdown-alert-warning{background-color:var(--scalar-color-orange)}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-important,.scalar-app .markdown .markdown-alert.markdown-alert-warning{background-color:var(--scalar-color-orange)}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-important,.scalar-app .markdown .markdown-alert.markdown-alert-warning{background-color:color-mix(in srgb,var(--scalar-color-orange),transparent 97%)}}}.scalar-app .markdown .markdown-alert.markdown-alert-important,.scalar-app .markdown .markdown-alert.markdown-alert-warning{border:var(--scalar-border-width)solid var(--scalar-color-orange)}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-important,.scalar-app .markdown .markdown-alert.markdown-alert-warning{border:var(--scalar-border-width)solid var(--scalar-color-orange)}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-important,.scalar-app .markdown .markdown-alert.markdown-alert-warning{border:var(--scalar-border-width)solid color-mix(in srgb,var(--scalar-color-orange),transparent 50%)}}}.scalar-app .markdown .markdown-alert.markdown-alert-important .markdown-alert-icon:before,.scalar-app .markdown .markdown-alert.markdown-alert-warning .markdown-alert-icon:before{-webkit-mask-image:url(\'data:image/svg+xml,<svg data-v-852d534d="" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" class="icon-placeholder"><path d="M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"></path></svg>\');mask-image:url(\'data:image/svg+xml,<svg data-v-852d534d="" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" class="icon-placeholder"><path d="M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"></path></svg>\')}.scalar-app .markdown .markdown-alert.markdown-alert-caution{background-color:var(--scalar-color-red)}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-caution{background-color:var(--scalar-color-red)}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-caution{background-color:color-mix(in srgb,var(--scalar-color-red),transparent 97%)}}}.scalar-app .markdown .markdown-alert.markdown-alert-caution{border:var(--scalar-border-width)solid var(--scalar-color-red)}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-caution{border:var(--scalar-border-width)solid var(--scalar-color-red)}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-caution{border:var(--scalar-border-width)solid color-mix(in srgb,var(--scalar-color-red),transparent 50%)}}}.scalar-app .markdown .markdown-alert.markdown-alert-caution .markdown-alert-icon:before{color:var(--scalar-color-red);-webkit-mask-image:url(\'data:image/svg+xml,<svg data-v-852d534d="" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" class="icon-placeholder"><path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"></path></svg>\');mask-image:url(\'data:image/svg+xml,<svg data-v-852d534d="" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" class="icon-placeholder"><path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"></path></svg>\')}.scalar-app .markdown .markdown-alert.markdown-alert-success{background-color:var(--scalar-color-green)}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-success{background-color:var(--scalar-color-green)}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-success{background-color:color-mix(in srgb,var(--scalar-color-green),transparent 97%)}}}.scalar-app .markdown .markdown-alert.markdown-alert-success{border:var(--scalar-border-width)solid var(--scalar-color-green)}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-success{border:var(--scalar-border-width)solid var(--scalar-color-green)}@supports (color:color-mix(in lab,red,red)){.scalar-app .markdown .markdown-alert.markdown-alert-success{border:var(--scalar-border-width)solid color-mix(in srgb,var(--scalar-color-green),transparent 50%)}}}.scalar-app .markdown .markdown-alert.markdown-alert-success .markdown-alert-icon:before{color:var(--scalar-color-green);-webkit-mask-image:url(\'data:image/svg+xml,<svg data-v-852d534d="" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" class="icon-placeholder"><path d="M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"></path></svg>\');mask-image:url(\'data:image/svg+xml,<svg data-v-852d534d="" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" class="icon-placeholder"><path d="M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"></path></svg>\')}.scalar-app .markdown .markdown-alert.markdown-alert-note .markdown-alert-icon:before{color:var(--scalar-color-blue)}.scalar-app .markdown .markdown-alert.markdown-alert-tip .markdown-alert-icon:before{color:var(--scalar-color-2)}.scalar-app .markdown .markdown-alert.markdown-alert-important .markdown-alert-icon:before{color:var(--scalar-color-purple)}.scalar-app .markdown .markdown-alert.markdown-alert-warning .markdown-alert-icon:before{color:var(--scalar-color-orange)}.scalar-app .markdown .markdown-alert .markdown-alert-content{line-height:var(--markdown-line-height);margin:0}.dark-mode .scalar-dropdown-item[data-v-cc5bd05e]:hover{filter:brightness(1.1)}.group\\/item>*>.scalar-sidebar-indent .scalar-sidebar-indent-border[data-v-3e080c68]{inset-block:-1px}.group\\/item:first-child>*>.scalar-sidebar-indent .scalar-sidebar-indent-border[data-v-3e080c68]{top:0}.group\\/item:last-child>*>.scalar-sidebar-indent .scalar-sidebar-indent-border[data-v-3e080c68]{bottom:0}.group\\/items.-translate-x-full .group\\/button{transition-behavior:allow-discrete;max-height:0;transition-property:display,max-height;transition-duration:0s;transition-delay:.3s;display:none}.group\\/item.group\\/nested-items-open>*>.group\\/items.translate-x-0 .group\\/button{max-height:3.40282e38px;display:flex}:where(body)>.scalar-tooltip{--scalar-tooltip-padding:8px;padding:calc(var(--scalar-tooltip-padding) + var(--scalar-tooltip-offset));z-index:99999;max-width:320px;font-size:var(--scalar-font-size-5);--tw-leading:var(--scalar-line-height-5);line-height:var(--scalar-line-height-5);--tw-font-weight:var(--scalar-semibold);font-weight:var(--scalar-semibold);overflow-wrap:break-word;color:var(--scalar-tooltip-color)}:where(body)>.scalar-tooltip:before{content:"";inset:var(--scalar-tooltip-offset);z-index:-1;border-radius:var(--scalar-radius);background-color:var(--scalar-tooltip-background);--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);position:absolute}:where(body)>.scalar-tooltip:before:where(){--tw-shadow:inset 0 0 0 var(--tw-shadow-color,calc(var(--scalar-border-width)*2))var(--scalar-border-color);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.dark-mode .scalar-dropdown-item[data-v-457c1cd3]:hover{filter:brightness(1.1)}.scalar-modal-layout[data-v-589f8aa0]{animation:.3s ease-in-out forwards fadein-layout-589f8aa0}.scalar-modal[data-v-589f8aa0]{box-shadow:var(--scalar-shadow-2);animation:.3s ease-in-out .1s forwards fadein-modal-589f8aa0;transform:translateY(10px)}.scalar-modal-layout-full[data-v-589f8aa0]{opacity:1!important;background:0 0!important}.modal-content-search .modal-body[data-v-589f8aa0]{flex-direction:column;max-height:440px;padding:0;display:flex;overflow:hidden}@media (max-width:720px) and (max-height:480px){.scalar-modal-layout .scalar-modal[data-v-589f8aa0]{max-height:90svh;margin-top:5svh}}.full-size-styles[data-v-589f8aa0]{margin:initial;border-right:var(--scalar-border-width)solid var(--scalar-border-color);animation:.3s ease-in-out forwards fadein-layout-589f8aa0;left:0;transform:translate(0);background-color:var(--scalar-background-1)!important;max-height:100%!important;box-shadow:none!important;border-radius:0!important;position:absolute!important;top:0!important}@media (min-width:800px){.full-size-styles[data-v-589f8aa0]{width:50dvw!important}}.full-size-styles[data-v-589f8aa0]:after{content:"";width:50dvw;height:100dvh;position:absolute;top:0;right:-50dvw}.scalar-app .pointer-events-auto{pointer-events:auto}.scalar-app .pointer-events-none{pointer-events:none}.scalar-app .collapse{visibility:collapse}.scalar-app .visible{visibility:visible}.scalar-app .floating-bg:before{background-color:var(--scalar-background-2);border-radius:var(--scalar-radius);content:"";opacity:0;z-index:1;width:calc(100% + 8px);height:calc(100% - 4px);transition:opacity .2s ease-in-out;position:absolute;top:2.5px;left:-4px}.scalar-app .floating-bg:hover:before{opacity:1}.scalar-app .centered{--tw-translate-y:-50%;--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y);position:absolute;top:50%;left:50%}.scalar-app .centered-y{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y);position:absolute;top:50%}.scalar-app .centered-x{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y);position:absolute;left:50%}.scalar-app .sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.scalar-app .absolute{position:absolute}.scalar-app .fixed{position:fixed}.scalar-app .relative{position:relative}.scalar-app .static{position:static}.scalar-app .sticky{position:sticky}.scalar-app .inset-0{top:0;right:0;bottom:0;left:0}.scalar-app .inset-x-1{inset-inline:4px}.scalar-app .-top-\\(--scalar-address-bar-height\\){top:calc(var(--scalar-address-bar-height)*-1)}.scalar-app .-top-\\[104px\\]{top:-104px}.scalar-app .top-0{top:0}.scalar-app .top-2{top:8px}.scalar-app .top-12{top:48px}.scalar-app .-right-\\[30px\\]{right:-30px}.scalar-app .right-0{right:0}.scalar-app .right-1{right:4px}.scalar-app .right-1\\.5{right:6px}.scalar-app .right-1\\/2{right:50%}.scalar-app .right-2{right:8px}.scalar-app .right-4{right:16px}.scalar-app .right-7{right:28px}.scalar-app .right-14{right:56px}.scalar-app .right-16{right:64px}.scalar-app .bottom-0{bottom:0}.scalar-app .bottom-1{bottom:4px}.scalar-app .bottom-1\\/2{bottom:50%}.scalar-app .bottom-\\[var\\(--scalar-border-width\\)\\]{bottom:var(--scalar-border-width)}.scalar-app .left-0{left:0}.scalar-app .left-1\\/2{left:50%}.scalar-app .left-3{left:12px}.scalar-app .-z-1{z-index:-1}.scalar-app .z-0{z-index:0}.scalar-app .z-1{z-index:1}.scalar-app .z-10{z-index:10}.scalar-app .z-20{z-index:20}.scalar-app .z-50{z-index:50}.scalar-app .z-\\[1\\]{z-index:1}.scalar-app .z-\\[1002\\]{z-index:1002}.scalar-app .z-context{z-index:1000}.scalar-app .z-context-plus{z-index:1001}.scalar-app .z-overlay{z-index:10000}.scalar-app .order-last{order:9999}.scalar-app .col-span-full{grid-column:1/-1}.scalar-app .container{width:100%}@media (min-width:400px){.scalar-app .container{max-width:400px}}@media (min-width:600px){.scalar-app .container{max-width:600px}}@media (min-width:800px){.scalar-app .container{max-width:800px}}@media (min-width:1000px){.scalar-app .container{max-width:1000px}}@media (min-width:1200px){.scalar-app .container{max-width:1200px}}@media (min-width:96rem){.scalar-app .container{max-width:96rem}}.scalar-app .\\!m-0{margin:0!important}.scalar-app .m-0{margin:0}.scalar-app .m-4{margin:16px}.scalar-app .m-auto{margin:auto}.scalar-app .-mx-0\\.25{margin-inline:-1px}.scalar-app .-mx-1{margin-inline:-4px}.scalar-app .mx-auto{margin-inline:auto}.scalar-app .-my-1{margin-block:-4px}.scalar-app .my-12{margin-block:48px}.scalar-app .-mt-\\[\\.5px\\]{margin-top:-.5px}.scalar-app .mt-1{margin-top:4px}.scalar-app .mt-1\\.5{margin-top:6px}.scalar-app .mt-2{margin-top:8px}.scalar-app .mt-3{margin-top:12px}.scalar-app .mt-5{margin-top:20px}.scalar-app .mt-10{margin-top:40px}.scalar-app .mt-\\[0\\.5px\\]{margin-top:.5px}.scalar-app .mt-auto{margin-top:auto}.scalar-app .\\!mr-0{margin-right:0!important}.scalar-app .-mr-0\\.5{margin-right:-2px}.scalar-app .-mr-1{margin-right:-4px}.scalar-app .-mr-1\\.5{margin-right:-6px}.scalar-app .-mr-3{margin-right:-12px}.scalar-app .mr-0\\.5{margin-right:2px}.scalar-app .mr-0\\.75{margin-right:3px}.scalar-app .mr-1{margin-right:4px}.scalar-app .mr-1\\.5{margin-right:6px}.scalar-app .mr-1\\.25{margin-right:5px}.scalar-app .mr-2{margin-right:8px}.scalar-app .mr-2\\.5{margin-right:10px}.scalar-app .mr-3{margin-right:12px}.scalar-app .mr-\\[6\\.25px\\]{margin-right:6.25px}.scalar-app .mr-auto{margin-right:auto}.scalar-app .\\!mb-0{margin-bottom:0!important}.scalar-app .-mb-\\[var\\(--scalar-border-width\\)\\]{margin-bottom:calc(var(--scalar-border-width)*-1)}.scalar-app .mb-0{margin-bottom:0}.scalar-app .mb-1{margin-bottom:4px}.scalar-app .mb-1\\.5{margin-bottom:6px}.scalar-app .mb-2{margin-bottom:8px}.scalar-app .mb-4{margin-bottom:16px}.scalar-app .mb-\\[\\.5px\\]{margin-bottom:.5px}.scalar-app .-ml-0\\.5{margin-left:-2px}.scalar-app .-ml-1{margin-left:-4px}.scalar-app .-ml-2{margin-left:-8px}.scalar-app .-ml-12{margin-left:-48px}.scalar-app .ml-0\\.5{margin-left:2px}.scalar-app .ml-0\\.75{margin-left:3px}.scalar-app .ml-1{margin-left:4px}.scalar-app .ml-1\\.25{margin-left:5px}.scalar-app .ml-3{margin-left:12px}.scalar-app .ml-auto{margin-left:auto}.scalar-app .box-border{box-sizing:border-box}.scalar-app .box-content{box-sizing:content-box}.scalar-app .flex-center{justify-content:center;align-items:center;display:flex}.scalar-app .line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.scalar-app .\\!block{display:block!important}.scalar-app .\\!flex{display:flex!important}.scalar-app .block{display:block}.scalar-app .contents{display:contents}.scalar-app .flex{display:flex}.scalar-app .grid{display:grid}.scalar-app .hidden{display:none}.scalar-app .inline-block{display:inline-block}.scalar-app .inline-flex{display:inline-flex}.scalar-app .table{display:table}.scalar-app .aspect-\\[4\\/3\\]{aspect-ratio:4/3}.scalar-app .aspect-square{aspect-ratio:1}.scalar-app .size-2\\.5{width:10px;height:10px}.scalar-app .size-3\\.5{width:14px;height:14px}.scalar-app .size-3\\/4{width:75%;height:75%}.scalar-app .size-4{width:16px;height:16px}.scalar-app .size-5{width:20px;height:20px}.scalar-app .size-7{width:28px;height:28px}.scalar-app .size-8{width:32px;height:32px}.scalar-app .size-10{width:40px;height:40px}.scalar-app .h-\\(--scalar-address-bar-height\\){height:var(--scalar-address-bar-height)}.scalar-app .h-1\\.5{height:6px}.scalar-app .h-2\\.5{height:10px}.scalar-app .h-2\\.25{height:9px}.scalar-app .h-3{height:12px}.scalar-app .h-3\\.5{height:14px}.scalar-app .h-4{height:16px}.scalar-app .h-5{height:20px}.scalar-app .h-6{height:24px}.scalar-app .h-7{height:28px}.scalar-app .h-8{height:32px}.scalar-app .h-9{height:36px}.scalar-app .h-10{height:40px}.scalar-app .h-12{height:48px}.scalar-app .h-64{height:256px}.scalar-app .h-\\[68px\\]{height:68px}.scalar-app .h-\\[calc\\(100\\%-273\\.5px\\)\\]{height:calc(100% - 273.5px)}.scalar-app .h-\\[calc\\(100\\%_-_50px\\)\\]{height:calc(100% - 50px)}.scalar-app .h-auto{height:auto}.scalar-app .h-fit{height:fit-content}.scalar-app .h-full{height:100%}.scalar-app .h-header{height:48px}.scalar-app .h-px{height:1px}.scalar-app .h-screen{height:100vh}.scalar-app .\\!max-h-\\[initial\\]{max-height:initial!important}.scalar-app .max-h-8{max-height:32px}.scalar-app .max-h-40{max-height:160px}.scalar-app .max-h-\\[40dvh\\]{max-height:40dvh}.scalar-app .max-h-\\[50dvh\\]{max-height:50dvh}.scalar-app .max-h-\\[60svh\\]{max-height:60svh}.scalar-app .max-h-\\[calc\\(100\\%-32px\\)\\]{max-height:calc(100% - 32px)}.scalar-app .max-h-\\[inherit\\]{max-height:inherit}.scalar-app .max-h-fit{max-height:fit-content}.scalar-app .max-h-screen{max-height:100vh}.scalar-app .min-h-0{min-height:0}.scalar-app .min-h-8{min-height:32px}.scalar-app .min-h-10{min-height:40px}.scalar-app .min-h-11{min-height:44px}.scalar-app .min-h-12{min-height:48px}.scalar-app .min-h-16{min-height:64px}.scalar-app .min-h-20{min-height:80px}.scalar-app .min-h-\\[65px\\]{min-height:65px}.scalar-app .min-h-\\[calc\\(1rem\\*4\\)\\]{min-height:4rem}.scalar-app .min-h-\\[calc\\(4rem\\+0\\.5px\\)\\]{min-height:calc(4rem + .5px)}.scalar-app .min-h-\\[calc\\(4rem\\+1px\\)\\]{min-height:calc(4rem + 1px)}.scalar-app .min-h-fit{min-height:fit-content}.scalar-app .\\!w-fit{width:fit-content!important}.scalar-app .w-0\\.5{width:2px}.scalar-app .w-1\\.5{width:6px}.scalar-app .w-1\\/2{width:50%}.scalar-app .w-2{width:8px}.scalar-app .w-2\\.5{width:10px}.scalar-app .w-2\\.25{width:9px}.scalar-app .w-3{width:12px}.scalar-app .w-3\\.5{width:14px}.scalar-app .w-4{width:16px}.scalar-app .w-5{width:20px}.scalar-app .w-6{width:24px}.scalar-app .w-7{width:28px}.scalar-app .w-8{width:32px}.scalar-app .w-10{width:40px}.scalar-app .w-20{width:80px}.scalar-app .w-56{width:224px}.scalar-app .w-64{width:256px}.scalar-app .w-72{width:288px}.scalar-app .w-\\[60px\\]{width:60px}.scalar-app .w-\\[calc\\(100\\%-10px\\)\\]{width:calc(100% - 10px)}.scalar-app .w-\\[calc\\(100\\%_-_8px\\)\\]{width:calc(100% - 8px)}.scalar-app .w-\\[inherit\\]{width:inherit}.scalar-app .w-auto{width:auto}.scalar-app .w-dvw{width:100dvw}.scalar-app .w-fit{width:fit-content}.scalar-app .w-full{width:100%}.scalar-app .w-max{width:max-content}.scalar-app .max-w-8{max-width:32px}.scalar-app .max-w-40{max-width:160px}.scalar-app .max-w-48{max-width:192px}.scalar-app .max-w-\\[14px\\]{max-width:14px}.scalar-app .max-w-\\[37px\\]{max-width:37px}.scalar-app .max-w-\\[100\\%\\]{max-width:100%}.scalar-app .max-w-\\[150px\\]{max-width:150px}.scalar-app .max-w-\\[380px\\]{max-width:380px}.scalar-app .max-w-\\[420px\\]{max-width:420px}.scalar-app .max-w-\\[720px\\]{max-width:720px}.scalar-app .max-w-\\[calc\\(100dvw-24px\\)\\]{max-width:calc(100dvw - 24px)}.scalar-app .max-w-full{max-width:100%}.scalar-app .min-w-0{min-width:0}.scalar-app .min-w-2\\.25{min-width:9px}.scalar-app .min-w-3\\.5{min-width:14px}.scalar-app .min-w-4{min-width:16px}.scalar-app .min-w-8{min-width:32px}.scalar-app .min-w-48{min-width:192px}.scalar-app .min-w-\\[37px\\]{min-width:37px}.scalar-app .min-w-\\[296px\\]{min-width:296px}.scalar-app .min-w-fit{min-width:fit-content}.scalar-app .min-w-full{min-width:100%}.scalar-app .flex-1{flex:1}.scalar-app .shrink-0{flex-shrink:0}.scalar-app .flex-grow{flex-grow:1}.scalar-app .-translate-x-1\\/2{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scalar-app .translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x)var(--tw-translate-y)}.scalar-app .translate-x-1\\/2{--tw-translate-x:50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scalar-app .translate-y-1\\/2{--tw-translate-y:50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scalar-app .scale-75{--tw-scale-x:75%;--tw-scale-y:75%;--tw-scale-z:75%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scalar-app .rotate-90{rotate:90deg}.scalar-app .transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.scalar-app .cursor-auto{cursor:auto}.scalar-app .cursor-default{cursor:default}.scalar-app .cursor-grab{cursor:grab}.scalar-app .cursor-help{cursor:help}.scalar-app .cursor-pointer{cursor:pointer}.scalar-app .cursor-text{cursor:text}.scalar-app .resize{resize:both}.scalar-app .resize-none{resize:none}.scalar-app .auto-rows-\\[32px\\]{grid-auto-rows:32px}.scalar-app .auto-rows-auto{grid-auto-rows:auto}.scalar-app .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.scalar-app .grid-cols-\\[44px_1fr_repeat\\(3\\,auto\\)\\]{grid-template-columns:44px 1fr repeat(3,auto)}.scalar-app .grid-cols-\\[auto_1fr\\]{grid-template-columns:auto 1fr}.scalar-app .grid-cols-\\[repeat\\(auto-fill\\,minmax\\(32px\\,1fr\\)\\)\\]{grid-template-columns:repeat(auto-fill,minmax(32px,1fr))}.scalar-app .flex-col{flex-direction:column}.scalar-app .flex-row{flex-direction:row}.scalar-app .flex-wrap{flex-wrap:wrap}.scalar-app .content-between{align-content:space-between}.scalar-app .content-start{align-content:flex-start}.scalar-app .items-center{align-items:center}.scalar-app .items-end{align-items:flex-end}.scalar-app .items-start{align-items:flex-start}.scalar-app .items-stretch{align-items:stretch}.scalar-app .justify-between{justify-content:space-between}.scalar-app .justify-center{justify-content:center}.scalar-app .justify-end{justify-content:flex-end}.scalar-app .justify-start{justify-content:flex-start}.scalar-app .justify-stretch{justify-content:stretch}.scalar-app .\\!gap-2{gap:8px!important}.scalar-app .gap-0\\.5{gap:2px}.scalar-app .gap-0\\.75{gap:3px}.scalar-app .gap-1{gap:4px}.scalar-app .gap-1\\.5{gap:6px}.scalar-app .gap-1\\.75{gap:7px}.scalar-app .gap-2{gap:8px}.scalar-app .gap-2\\.5{gap:10px}.scalar-app .gap-3{gap:12px}.scalar-app .gap-4{gap:16px}.scalar-app .gap-6{gap:24px}.scalar-app .gap-8{gap:32px}.scalar-app .gap-10{gap:40px}.scalar-app .gap-12{gap:48px}.scalar-app .gap-\\[1\\.5px\\]{gap:1.5px}.scalar-app .gap-px{gap:1px}.scalar-app .gap-x-2\\.5{column-gap:10px}:where(.scalar-app .space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(4px*var(--tw-space-x-reverse));margin-inline-end:calc(4px*calc(1 - var(--tw-space-x-reverse)))}:where(.scalar-app .divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(var(--scalar-border-width)*var(--tw-divide-y-reverse));border-bottom-width:calc(var(--scalar-border-width)*calc(1 - var(--tw-divide-y-reverse)))}.scalar-app .self-center{align-self:center}.scalar-app .truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.scalar-app .overflow-auto{overflow:auto}.scalar-app .overflow-hidden{overflow:hidden}.scalar-app .overflow-visible{overflow:visible}.scalar-app .overflow-x-auto{overflow-x:auto}.scalar-app .overflow-y-auto{overflow-y:auto}.scalar-app .overflow-y-hidden{overflow-y:hidden}.scalar-app .overscroll-contain{overscroll-behavior:contain}.scalar-app .\\!rounded-none{border-radius:0!important}.scalar-app .rounded{border-radius:var(--scalar-radius)}.scalar-app .rounded-\\[10px\\]{border-radius:10px}.scalar-app .rounded-full{border-radius:9999px}.scalar-app .rounded-lg{border-radius:var(--scalar-radius-lg)}.scalar-app .rounded-md{border-radius:var(--scalar-radius)}.scalar-app .rounded-px{border-radius:1px}.scalar-app .rounded-xl{border-radius:var(--scalar-radius-xl)}.scalar-app .rounded-t{border-top-left-radius:var(--scalar-radius);border-top-right-radius:var(--scalar-radius)}.scalar-app .rounded-t-lg{border-top-left-radius:var(--scalar-radius-lg);border-top-right-radius:var(--scalar-radius-lg)}.scalar-app .rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.scalar-app .rounded-b{border-bottom-right-radius:var(--scalar-radius);border-bottom-left-radius:var(--scalar-radius)}.scalar-app .rounded-b-lg{border-bottom-right-radius:var(--scalar-radius-lg);border-bottom-left-radius:var(--scalar-radius-lg)}.scalar-app .\\!border-0{border-style:var(--tw-border-style)!important;border-width:0!important}.scalar-app .border{border-style:var(--tw-border-style);border-width:var(--scalar-border-width)}.scalar-app .border-0{border-style:var(--tw-border-style);border-width:0}.scalar-app .border-\\[1\\.5px\\]{border-style:var(--tw-border-style);border-width:1.5px}.scalar-app .border-\\[1px\\]{border-style:var(--tw-border-style);border-width:1px}.scalar-app .border-x{border-inline-style:var(--tw-border-style);border-inline-width:var(--scalar-border-width)}.scalar-app .border-x-0{border-inline-style:var(--tw-border-style);border-inline-width:0}.scalar-app .border-y{border-block-style:var(--tw-border-style);border-block-width:var(--scalar-border-width)}.scalar-app .border-t{border-top-style:var(--tw-border-style);border-top-width:var(--scalar-border-width)}.scalar-app .border-t-0{border-top-style:var(--tw-border-style);border-top-width:0}.scalar-app .\\!border-r{border-right-style:var(--tw-border-style)!important;border-right-width:var(--scalar-border-width)!important}.scalar-app .border-r{border-right-style:var(--tw-border-style);border-right-width:var(--scalar-border-width)}.scalar-app .border-r-0{border-right-style:var(--tw-border-style);border-right-width:0}.scalar-app .border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:var(--scalar-border-width)}.scalar-app .border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.scalar-app .border-b-\\[1px\\]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.scalar-app .border-l{border-left-style:var(--tw-border-style);border-left-width:var(--scalar-border-width)}.scalar-app .border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.scalar-app .border-dashed{--tw-border-style:dashed;border-style:dashed}.scalar-app .border-none{--tw-border-style:none;border-style:none}.scalar-app .\\!border-current{border-color:currentColor!important}.scalar-app .border-\\(--scalar-background-3\\){border-color:var(--scalar-background-3)}.scalar-app .border-c-1{border-color:var(--scalar-color-1)}.scalar-app .border-c-3{border-color:var(--scalar-color-3)}.scalar-app .border-transparent{border-color:#0000}.scalar-app .border-r-transparent{border-right-color:#0000}.scalar-app .bg-b-1{background-color:var(--scalar-background-1)}.scalar-app .bg-b-2{background-color:var(--scalar-background-2)}.scalar-app .bg-b-3{background-color:var(--scalar-background-3)}.scalar-app .bg-b-danger{background-color:var(--scalar-background-danger)}.scalar-app .bg-c-3\\/5{background-color:var(--scalar-color-3)}@supports (color:color-mix(in lab,red,red)){.scalar-app .bg-c-3\\/5{background-color:var(--scalar-color-3)}@supports (color:color-mix(in lab,red,red)){.scalar-app .bg-c-3\\/5{background-color:color-mix(in oklab,var(--scalar-color-3)5%,transparent)}}}.scalar-app .bg-c-accent{background-color:var(--scalar-color-accent)}.scalar-app .bg-current{background-color:currentColor}.scalar-app .bg-grey{background-color:var(--scalar-color-3)}.scalar-app .bg-sidebar-b-active{background-color:var(--scalar-sidebar-item-active-background,var(--scalar-background-2))}.scalar-app .bg-none{background-image:none}.scalar-app .fill-current{fill:currentColor}.scalar-app .stroke-2{stroke-width:2px}.scalar-app .stroke-\\[1\\.5\\]{stroke-width:1.5px}.scalar-app .stroke-\\[1\\.75\\]{stroke-width:1.75px}.scalar-app .stroke-\\[2\\.25\\]{stroke-width:2.25px}.scalar-app .object-contain{object-fit:contain}.scalar-app .\\!p-0{padding:0!important}.scalar-app .p-0{padding:0}.scalar-app .p-0\\.5{padding:2px}.scalar-app .p-0\\.75{padding:3px}.scalar-app .p-1{padding:4px}.scalar-app .p-1\\.5{padding:6px}.scalar-app .p-1\\.25{padding:5px}.scalar-app .p-1\\.75{padding:7px}.scalar-app .p-2{padding:8px}.scalar-app .p-3{padding:12px}.scalar-app .p-4{padding:16px}.scalar-app .p-\\[3px\\]{padding:3px}.scalar-app .p-\\[5px\\]{padding:5px}.scalar-app .p-px{padding:1px}.scalar-app .\\!px-3{padding-inline:12px!important}.scalar-app .px-0{padding-inline:0}.scalar-app .px-0\\.5{padding-inline:2px}.scalar-app .px-1{padding-inline:4px}.scalar-app .px-1\\.5{padding-inline:6px}.scalar-app .px-2{padding-inline:8px}.scalar-app .px-2\\.5{padding-inline:10px}.scalar-app .px-3{padding-inline:12px}.scalar-app .px-4{padding-inline:16px}.scalar-app .px-5{padding-inline:20px}.scalar-app .px-6{padding-inline:24px}.scalar-app .px-8{padding-inline:32px}.scalar-app .\\!py-1\\.5{padding-block:6px!important}.scalar-app .py-0{padding-block:0}.scalar-app .py-0\\.5{padding-block:2px}.scalar-app .py-0\\.25{padding-block:1px}.scalar-app .py-0\\.75{padding-block:3px}.scalar-app .py-1{padding-block:4px}.scalar-app .py-1\\.5{padding-block:6px}.scalar-app .py-1\\.25{padding-block:5px}.scalar-app .py-1\\.75{padding-block:7px}.scalar-app .py-2{padding-block:8px}.scalar-app .py-2\\.5{padding-block:10px}.scalar-app .py-3{padding-block:12px}.scalar-app .py-5{padding-block:20px}.scalar-app .py-8{padding-block:32px}.scalar-app .py-px{padding-block:1px}.scalar-app .\\!pt-0{padding-top:0!important}.scalar-app .pt-0{padding-top:0}.scalar-app .pt-2{padding-top:8px}.scalar-app .pt-3{padding-top:12px}.scalar-app .pt-4{padding-top:16px}.scalar-app .pt-6{padding-top:24px}.scalar-app .pt-8{padding-top:32px}.scalar-app .pt-px{padding-top:1px}.scalar-app .pr-0{padding-right:0}.scalar-app .pr-0\\.75{padding-right:3px}.scalar-app .pr-1{padding-right:4px}.scalar-app .pr-1\\.5{padding-right:6px}.scalar-app .pr-2{padding-right:8px}.scalar-app .pr-2\\.5{padding-right:10px}.scalar-app .pr-2\\.25{padding-right:9px}.scalar-app .pr-3{padding-right:12px}.scalar-app .pr-6{padding-right:24px}.scalar-app .pr-8{padding-right:32px}.scalar-app .pr-9{padding-right:36px}.scalar-app .pr-10{padding-right:40px}.scalar-app .pr-12{padding-right:48px}.scalar-app .pr-\\[26px\\]{padding-right:26px}.scalar-app .pb-0{padding-bottom:0}.scalar-app .pb-1\\.5{padding-bottom:6px}.scalar-app .pb-2{padding-bottom:8px}.scalar-app .pb-3{padding-bottom:12px}.scalar-app .pb-5{padding-bottom:20px}.scalar-app .pb-6{padding-bottom:24px}.scalar-app .pb-8{padding-bottom:32px}.scalar-app .pb-14{padding-bottom:56px}.scalar-app .pb-\\[75px\\]{padding-bottom:75px}.scalar-app .\\!pl-3{padding-left:12px!important}.scalar-app .pl-1{padding-left:4px}.scalar-app .pl-1\\.5{padding-left:6px}.scalar-app .pl-1\\.25{padding-left:5px}.scalar-app .pl-2{padding-left:8px}.scalar-app .pl-3{padding-left:12px}.scalar-app .pl-5{padding-left:20px}.scalar-app .pl-6{padding-left:24px}.scalar-app .pl-8\\.5{padding-left:34px}.scalar-app .pl-9{padding-left:36px}.scalar-app .pl-12{padding-left:48px}.scalar-app .pl-px{padding-left:1px}.scalar-app .text-center{text-align:center}.scalar-app .text-left{text-align:left}.scalar-app .text-right{text-align:right}.scalar-app .font-code{font-family:var(--scalar-font-code)}.scalar-app .font-sans{font-family:var(--scalar-font)}.scalar-app .text-3xs{font-size:var(--scalar-font-size-7)}.scalar-app .text-\\[6px\\]{font-size:6px}.scalar-app .text-\\[11px\\]{font-size:11px}.scalar-app .text-\\[21px\\]{font-size:21px}.scalar-app .text-base{font-size:var(--scalar-font-size-3)}.scalar-app .text-sm{font-size:var(--scalar-font-size-4)}.scalar-app .text-xl{font-size:var(--scalar-font-size-1)}.scalar-app .text-xs{font-size:var(--scalar-font-size-5)}.scalar-app .text-xxs{font-size:var(--scalar-font-size-6)}.scalar-app .\\!leading-\\[6px\\]{--tw-leading:6px!important;line-height:6px!important}.scalar-app .leading-2{--tw-leading:var(--scalar-line-height-2);line-height:var(--scalar-line-height-2)}.scalar-app .leading-3{--tw-leading:var(--scalar-line-height-3);line-height:var(--scalar-line-height-3)}.scalar-app .leading-5{--tw-leading:var(--scalar-line-height-5);line-height:var(--scalar-line-height-5)}.scalar-app .leading-\\[1\\.44\\]{--tw-leading:1.44;line-height:1.44}.scalar-app .leading-\\[7px\\]{--tw-leading:7px;line-height:7px}.scalar-app .leading-\\[20px\\]{--tw-leading:20px;line-height:20px}.scalar-app .leading-\\[21px\\]{--tw-leading:21px;line-height:21px}.scalar-app .leading-\\[normal\\]{--tw-leading:normal;line-height:normal}.scalar-app .leading-none{--tw-leading:1;line-height:1}.scalar-app .leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.scalar-app .leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.scalar-app .font-bold{--tw-font-weight:var(--scalar-bold);font-weight:var(--scalar-bold)}.scalar-app .font-medium{--tw-font-weight:var(--scalar-semibold);font-weight:var(--scalar-semibold)}.scalar-app .font-normal{--tw-font-weight:var(--scalar-regular);font-weight:var(--scalar-regular)}.scalar-app .text-balance{text-wrap:balance}.scalar-app .text-pretty{text-wrap:pretty}.scalar-app .break-words{overflow-wrap:break-word}.scalar-app .break-all{word-break:break-all}.scalar-app .text-ellipsis{text-overflow:ellipsis}.scalar-app .whitespace-nowrap{white-space:nowrap}.scalar-app .whitespace-pre{white-space:pre}.scalar-app .whitespace-pre-wrap{white-space:pre-wrap}.scalar-app .\\!text-c-1{color:var(--scalar-color-1)!important}.scalar-app .text-b-1{color:var(--scalar-background-1)}.scalar-app .text-blue{color:var(--scalar-color-blue)}.scalar-app .text-border{color:var(--scalar-border-color)}.scalar-app .text-c-1{color:var(--scalar-color-1)}.scalar-app .text-c-2{color:var(--scalar-color-2)}.scalar-app .text-c-3{color:var(--scalar-color-3)}.scalar-app .text-c-btn{color:var(--scalar-button-1-color)}.scalar-app .text-green{color:var(--scalar-color-green)}.scalar-app .text-grey{color:var(--scalar-color-3)}.scalar-app .text-orange{color:var(--scalar-color-orange)}.scalar-app .text-purple{color:var(--scalar-color-purple)}.scalar-app .text-red{color:var(--scalar-color-red)}.scalar-app .text-sidebar-c-2{color:var(--scalar-sidebar-color-2,var(--scalar-color-2))}.scalar-app .text-sidebar-c-active{color:var(--scalar-sidebar-color-active,currentColor)}.scalar-app .text-transparent{color:#0000}.scalar-app .text-yellow{color:var(--scalar-color-yellow)}.scalar-app .capitalize{text-transform:capitalize}.scalar-app .lowercase{text-transform:lowercase}.scalar-app .uppercase{text-transform:uppercase}.scalar-app .no-underline{text-decoration-line:none}.scalar-app .underline{text-decoration-line:underline}.scalar-app .decoration-c-3{-webkit-text-decoration-color:var(--scalar-color-3);text-decoration-color:var(--scalar-color-3)}.scalar-app .underline-offset-2{text-underline-offset:2px}.scalar-app .opacity-0{opacity:0}.scalar-app .opacity-25{opacity:.25}.scalar-app .opacity-50{opacity:.5}.scalar-app .opacity-100{opacity:1}.scalar-app .bg-blend-normal{background-blend-mode:normal}.scalar-app .mix-blend-luminosity{mix-blend-mode:luminosity}.scalar-app .shadow{--tw-shadow:var(--scalar-shadow-1);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.scalar-app .shadow-\\[-8px_0_4px_var\\(--scalar-background-1\\)\\]{--tw-shadow:-8px 0 4px var(--tw-shadow-color,var(--scalar-background-1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.scalar-app .shadow-\\[0_-8px_0_8px_var\\(--scalar-background-1\\)\\,0_0_8px_8px_var\\(--scalar-background-1\\)\\]{--tw-shadow:0 -8px 0 8px var(--tw-shadow-color,var(--scalar-background-1)),0 0 8px 8px var(--tw-shadow-color,var(--scalar-background-1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.scalar-app .shadow-border{--tw-shadow:inset 0 0 0 var(--tw-shadow-color,calc(var(--scalar-border-width)*2))var(--scalar-border-color);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.scalar-app .shadow-lg{--tw-shadow:var(--scalar-shadow-2);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.scalar-app .shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.scalar-app .outline{outline-style:var(--tw-outline-style);outline-width:1px}.scalar-app .-outline-offset-1{outline-offset:-1px}.scalar-app .outline-offset-2{outline-offset:2px}.scalar-app .outline-b-3{outline-color:var(--scalar-background-3)}.scalar-app .blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.scalar-app .brightness-90{--tw-brightness:brightness(90%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.scalar-app .brightness-\\[\\.9\\]{--tw-brightness:brightness(.9);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.scalar-app .brightness-lifted{--tw-brightness:brightness(var(--scalar-lifted-brightness));filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.scalar-app .filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.scalar-app .backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.scalar-app .transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.scalar-app .transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.scalar-app .transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.scalar-app .transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.scalar-app .transition-none{transition-property:none}.scalar-app .duration-150{--tw-duration:.15s;transition-duration:.15s}.scalar-app .duration-200{--tw-duration:.2s;transition-duration:.2s}.scalar-app .duration-300{--tw-duration:.3s;transition-duration:.3s}.scalar-app .ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.scalar-app .outline-none{--tw-outline-style:none;outline-style:none}.scalar-app .select-none{-webkit-user-select:none;user-select:none}.scalar-app .\\[--scalar-address-bar-height\\:32px\\]{--scalar-address-bar-height:32px}.scalar-app .app-drag-region{-webkit-app-region:drag}.scalar-app .app-no-drag-region{-webkit-app-region:no-drag}:is(.scalar-app .\\*\\:flex>*){display:flex}:is(.scalar-app .\\*\\:h-8>*){height:32px}:is(.scalar-app .\\*\\:cursor-pointer>*){cursor:pointer}:is(.scalar-app .\\*\\:items-center>*){align-items:center}:is(.scalar-app .\\*\\:rounded-none>*){border-radius:0}:is(.scalar-app .\\*\\:border-t>*){border-top-style:var(--tw-border-style);border-top-width:var(--scalar-border-width)}:is(.scalar-app .\\*\\:border-b-0>*){border-bottom-style:var(--tw-border-style);border-bottom-width:0}:is(.scalar-app .\\*\\:px-1\\.5>*){padding-inline:6px}:is(.scalar-app .\\*\\:pl-4>*){padding-left:16px}.scalar-app .group-first\\/row\\:border-t-0:is(:where(.group\\/row):first-child *){border-top-style:var(--tw-border-style);border-top-width:0}.scalar-app .group-last\\:border-b-transparent:is(:where(.group):last-child *){border-bottom-color:#0000}.scalar-app .group-last\\/label\\:rounded-br-lg:is(:where(.group\\/label):last-child *){border-bottom-right-radius:var(--scalar-radius-lg)}@media (hover:hover){.scalar-app .group-hover\\:block:is(:where(.group):hover *){display:block}.scalar-app .group-hover\\:flex:is(:where(.group):hover *){display:flex}.scalar-app .group-hover\\:hidden:is(:where(.group):hover *){display:none}.scalar-app .group-hover\\:inline:is(:where(.group):hover *){display:inline}.scalar-app .group-hover\\:pr-5:is(:where(.group):hover *){padding-right:20px}.scalar-app .group-hover\\:pr-6:is(:where(.group):hover *){padding-right:24px}.scalar-app .group-hover\\:pr-10:is(:where(.group):hover *){padding-right:40px}.scalar-app .group-hover\\:text-c-1:is(:where(.group):hover *){color:var(--scalar-color-1)}.scalar-app .group-hover\\:opacity-80:is(:where(.group):hover *){opacity:.8}.scalar-app .group-hover\\:opacity-100:is(:where(.group):hover *),.scalar-app .group-hover\\/cell\\:opacity-100:is(:where(.group\\/cell):hover *){opacity:1}.scalar-app .group-hover\\/item\\:flex:is(:where(.group\\/item):hover *){display:flex}.scalar-app .group-hover\\/params\\:opacity-100:is(:where(.group\\/params):hover *){opacity:1}.scalar-app .group-hover\\/scopes-accordion\\:text-c-2:is(:where(.group\\/scopes-accordion):hover *){color:var(--scalar-color-2)}.scalar-app .group-hover\\/upload\\:block:is(:where(.group\\/upload):hover *){display:block}}.scalar-app .group-focus-visible\\:opacity-100:is(:where(.group):focus-visible *){opacity:1}.scalar-app .group-focus-visible\\:outline:is(:where(.group):focus-visible *){outline-style:var(--tw-outline-style);outline-width:1px}.scalar-app .group-has-\\[\\.cm-focused\\]\\:z-1:is(:where(.group):has(.cm-focused) *){z-index:1}.scalar-app .group-has-\\[\\.cm-focused\\]\\:flex:is(:where(.group):has(.cm-focused) *){display:flex}.scalar-app .group-has-\\[\\.cm-focused\\]\\:pr-6:is(:where(.group):has(.cm-focused) *){padding-right:24px}.scalar-app .group-has-\\[\\.cm-focused\\]\\:pr-10:is(:where(.group):has(.cm-focused) *){padding-right:40px}.scalar-app .group-has-\\[\\:focus-visible\\]\\:hidden:is(:where(.group):has(:focus-visible) *){display:none}.scalar-app .group-has-\\[\\:focus-visible\\]\\:opacity-100:is(:where(.group):has(:focus-visible) *){opacity:1}.scalar-app .group-has-\\[\\:focus-visible\\]\\/cell\\:border-c-accent:is(:where(.group\\/cell):has(:focus-visible) *){border-color:var(--scalar-color-accent)}.scalar-app .group-has-\\[\\:focus-visible\\]\\/cell\\:opacity-100:is(:where(.group\\/cell):has(:focus-visible) *){opacity:1}.scalar-app .group-has-\\[\\:focus-visible\\]\\/input\\:block:is(:where(.group\\/input):has(:focus-visible) *){display:block}.scalar-app .group-has-\\[input\\]\\/label\\:mr-0:is(:where(.group\\/label):has(:is(input)) *){margin-right:0}.scalar-app .group-\\[\\.alert\\]\\:bg-b-alert:is(:where(.group).alert *){background-color:var(--scalar-background-alert)}.scalar-app .group-\\[\\.alert\\]\\:bg-transparent:is(:where(.group).alert *){background-color:#0000}.scalar-app .group-\\[\\.alert\\]\\:shadow-none:is(:where(.group).alert *){--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.scalar-app .group-\\[\\.alert\\]\\:outline-orange:is(:where(.group).alert *){outline-color:var(--scalar-color-orange)}.scalar-app .group-\\[\\.error\\]\\:bg-b-danger:is(:where(.group).error *){background-color:var(--scalar-background-danger)}.scalar-app .group-\\[\\.error\\]\\:bg-transparent:is(:where(.group).error *){background-color:#0000}.scalar-app .group-\\[\\.error\\]\\:text-red:is(:where(.group).error *){color:var(--scalar-color-red)}.scalar-app .group-\\[\\.error\\]\\:shadow-none:is(:where(.group).error *){--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.scalar-app .group-\\[\\.error\\]\\:outline-red:is(:where(.group).error *){outline-color:var(--scalar-color-red)}.scalar-app .peer-checked\\:text-c-1:is(:where(.peer):checked~*){color:var(--scalar-color-1)}.scalar-app .peer-has-\\[\\.cm-focused\\]\\:opacity-0:is(:where(.peer):has(.cm-focused)~*){opacity:0}.scalar-app .peer-has-\\[\\.color-selector\\]\\:hidden:is(:where(.peer):has(.color-selector)~*){display:none}.scalar-app .before\\:pointer-events-none:before{content:var(--tw-content);pointer-events:none}.scalar-app .before\\:absolute:before{content:var(--tw-content);position:absolute}.scalar-app .before\\:top-0:before{content:var(--tw-content);top:0}.scalar-app .before\\:left-3:before{content:var(--tw-content);left:12px}.scalar-app .before\\:left-\\[calc\\(\\.75rem_\\+_\\.5px\\)\\]:before{content:var(--tw-content);left:calc(.75rem + .5px)}.scalar-app .before\\:z-1:before{content:var(--tw-content);z-index:1}.scalar-app .before\\:h-\\[calc\\(100\\%_\\+_\\.5px\\)\\]:before{content:var(--tw-content);height:calc(100% + .5px)}.scalar-app .before\\:w-\\[\\.5px\\]:before{content:var(--tw-content);width:.5px}.scalar-app .before\\:bg-border:before{content:var(--tw-content);background-color:var(--scalar-border-color)}.scalar-app .after\\:content-\\[\\\'\\:\\\'\\]:after{--tw-content:":";content:var(--tw-content)}:is(.scalar-app .\\*\\:first\\:line-clamp-1>*):first-child{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.scalar-app .\\*\\:first\\:rounded-l>*):first-child{border-top-left-radius:var(--scalar-radius);border-bottom-left-radius:var(--scalar-radius)}:is(.scalar-app .\\*\\:first\\:border-t-0>*):first-child,:is(.scalar-app .first\\:\\*\\:border-t-0:first-child>*){border-top-style:var(--tw-border-style);border-top-width:0}:is(.scalar-app .\\*\\:first\\:text-ellipsis>*):first-child{text-overflow:ellipsis}@media (hover:hover){:is(.scalar-app .group-hover\\/auth\\:\\*\\:first\\:line-clamp-none:is(:where(.group\\/auth):hover *)>*):first-child{-webkit-line-clamp:unset;-webkit-box-orient:horizontal;display:block;overflow:visible}}.scalar-app .last\\:mb-0:last-child{margin-bottom:0}.scalar-app .last\\:rounded-b-lg:last-child{border-bottom-right-radius:var(--scalar-radius-lg);border-bottom-left-radius:var(--scalar-radius-lg)}.scalar-app .last\\:border-r-0:last-child{border-right-style:var(--tw-border-style);border-right-width:0}:is(.scalar-app .\\*\\:last\\:rounded-r>*):last-child{border-top-right-radius:var(--scalar-radius);border-bottom-right-radius:var(--scalar-radius)}.scalar-app .last\\:before\\:h-full:last-child:before{content:var(--tw-content);height:100%}.scalar-app .last-of-type\\:first-of-type\\:border-b-0:last-of-type:first-of-type{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.scalar-app .focus-within\\:z-20:focus-within{z-index:20}.scalar-app .focus-within\\:border-\\(--scalar-background-3\\):focus-within{border-color:var(--scalar-background-3)}.scalar-app .focus-within\\:bg-b-1:focus-within{background-color:var(--scalar-background-1)}.scalar-app .focus-within\\:text-c-1:focus-within{color:var(--scalar-color-1)}@media (hover:hover){.scalar-app .hover\\:cursor-default:hover{cursor:default}.scalar-app .hover\\:border-\\(--scalar-background-3\\):hover{border-color:var(--scalar-background-3)}.scalar-app .hover\\:border-inherit:hover{border-color:inherit}.scalar-app .hover\\:bg-b-2:hover{background-color:var(--scalar-background-2)}.scalar-app .hover\\:bg-b-3:hover{background-color:var(--scalar-background-3)}.scalar-app .hover\\:bg-inherit:hover{background-color:inherit}.scalar-app .hover\\:bg-sidebar-b-active:hover{background-color:var(--scalar-sidebar-item-active-background,var(--scalar-background-2))}.scalar-app .hover\\:whitespace-normal:hover{white-space:normal}.scalar-app .hover\\:text-c-1:hover{color:var(--scalar-color-1)}.scalar-app .hover\\:text-c-2:hover{color:var(--scalar-color-2)}.scalar-app .hover\\:underline:hover{text-decoration-line:underline}.scalar-app .hover\\:brightness-75:hover{--tw-brightness:brightness(75%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}}.scalar-app .focus\\:border-b-1:focus{border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:var(--scalar-background-1)}.scalar-app .focus\\:text-c-1:focus{color:var(--scalar-color-1)}.scalar-app .focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.scalar-app .focus-visible\\:z-10:focus-visible{z-index:10}.scalar-app .active\\:text-c-1:active{color:var(--scalar-color-1)}.scalar-app .disabled\\:cursor-default:disabled{cursor:default}.scalar-app .disabled\\:text-c-2:disabled{color:var(--scalar-color-2)}.scalar-app .has-\\[\\.empty-sidebar-item\\]\\:border-t:has(.empty-sidebar-item){border-top-style:var(--tw-border-style);border-top-width:var(--scalar-border-width)}.scalar-app .has-\\[\\:focus-visible\\]\\:absolute:has(:focus-visible){position:absolute}.scalar-app .has-\\[\\:focus-visible\\]\\:z-1:has(:focus-visible){z-index:1}.scalar-app .has-\\[\\:focus-visible\\]\\:rounded-\\[4px\\]:has(:focus-visible){border-radius:4px}.scalar-app .has-\\[\\:focus-visible\\]\\:bg-b-1:has(:focus-visible){background-color:var(--scalar-background-1)}.scalar-app .has-\\[\\:focus-visible\\]\\:opacity-100:has(:focus-visible){opacity:1}.scalar-app .has-\\[\\:focus-visible\\]\\:outline:has(:focus-visible){outline-style:var(--tw-outline-style);outline-width:1px}@media (min-width:600px){.scalar-app .sm\\:not-sr-only{clip:auto;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.scalar-app .sm\\:order-none{order:0}.scalar-app .sm\\:mr-1\\.5{margin-right:6px}.scalar-app .sm\\:mb-1\\.5{margin-bottom:6px}.scalar-app .sm\\:ml-1\\.5{margin-left:6px}.scalar-app .sm\\:flex{display:flex}.scalar-app .sm\\:hidden{display:none}.scalar-app .sm\\:max-w-max{max-width:max-content}.scalar-app .sm\\:min-w-max{min-width:max-content}.scalar-app .sm\\:flex-col{flex-direction:column}.scalar-app .sm\\:flex-row{flex-direction:row}.scalar-app .sm\\:justify-between{justify-content:space-between}.scalar-app .sm\\:gap-px{gap:1px}.scalar-app .sm\\:rounded{border-radius:var(--scalar-radius)}.scalar-app .sm\\:rounded-lg{border-radius:var(--scalar-radius-lg)}.scalar-app .sm\\:px-2{padding-inline:8px}.scalar-app .sm\\:px-3{padding-inline:12px}.scalar-app .sm\\:py-1\\.5{padding-block:6px}:is(.scalar-app .sm\\:\\*\\:rounded-lg>*){border-radius:var(--scalar-radius-lg)}}@media (min-width:800px){.scalar-app .md\\:right-10{right:40px}.scalar-app .md\\:bottom-10{bottom:40px}.scalar-app .md\\:mx-auto{margin-inline:auto}.scalar-app .md\\:-ml-1\\.25{margin-left:-5px}.scalar-app .md\\:ml-1\\.5{margin-left:6px}.scalar-app .md\\:block{display:block}.scalar-app .md\\:grid{display:grid}.scalar-app .md\\:w-full{width:100%}.scalar-app .md\\:max-w-\\[720px\\]{max-width:720px}.scalar-app .md\\:min-w-fit{min-width:fit-content}.scalar-app .md\\:flex-none{flex:none}.scalar-app .md\\:translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x)var(--tw-translate-y)}.scalar-app .md\\:translate-y-0{--tw-translate-y:0px;translate:var(--tw-translate-x)var(--tw-translate-y)}.scalar-app .md\\:grid-cols-\\[1fr_720px_1fr\\]{grid-template-columns:1fr 720px 1fr}.scalar-app .md\\:flex-row{flex-direction:row}.scalar-app .md\\:border-r{border-right-style:var(--tw-border-style);border-right-width:var(--scalar-border-width)}.scalar-app .md\\:border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.scalar-app .md\\:p-1\\.5{padding:6px}.scalar-app .md\\:px-0{padding-inline:0}.scalar-app .md\\:px-1\\.5{padding-inline:6px}.scalar-app .md\\:px-2{padding-inline:8px}.scalar-app .md\\:px-2\\.5{padding-inline:10px}.scalar-app .md\\:px-4{padding-inline:16px}.scalar-app .md\\:px-\\[18px\\]{padding-inline:18px}.scalar-app .md\\:py-2\\.5{padding-block:10px}.scalar-app .md\\:pb-2\\.5{padding-bottom:10px}.scalar-app .md\\:pb-\\[37px\\]{padding-bottom:37px}.scalar-app .md\\:pl-0{padding-left:0}:is(.scalar-app .md\\:\\*\\:border-t-0>*){border-top-style:var(--tw-border-style);border-top-width:0}}@media (min-width:1000px){.scalar-app .lg\\:order-none{order:0}.scalar-app .lg\\:-mr-1{margin-right:-4px}.scalar-app .lg\\:mb-0{margin-bottom:0}.scalar-app .lg\\:flex{display:flex}.scalar-app .lg\\:min-h-header{min-height:48px}.scalar-app .lg\\:w-auto{width:auto}.scalar-app .lg\\:max-w-\\[580px\\]{max-width:580px}.scalar-app .lg\\:min-w-\\[580px\\]{min-width:580px}.scalar-app .lg\\:flex-1{flex:1}.scalar-app .lg\\:p-1{padding:4px}.scalar-app .lg\\:px-1{padding-inline:4px}.scalar-app .lg\\:px-2\\.5{padding-inline:10px}.scalar-app .lg\\:pt-1{padding-top:4px}.scalar-app .lg\\:pr-24{padding-right:96px}}@media (min-width:1200px){.scalar-app .xl\\:\\!flex{display:flex!important}.scalar-app .xl\\:flex{display:flex}.scalar-app .xl\\:hidden{display:none}.scalar-app .xl\\:h-fit{height:fit-content}.scalar-app .xl\\:h-full{height:100%}.scalar-app .xl\\:min-h-header{min-height:48px}.scalar-app .xl\\:max-w-\\[720px\\]{max-width:720px}.scalar-app .xl\\:min-w-0{min-width:0}.scalar-app .xl\\:min-w-\\[720px\\]{min-width:720px}.scalar-app .xl\\:flex-row{flex-direction:row}.scalar-app .xl\\:overflow-auto{overflow:auto}.scalar-app .xl\\:overflow-hidden{overflow:hidden}.scalar-app .xl\\:rounded-none{border-radius:0}.scalar-app .xl\\:pr-0\\.5{padding-right:2px}.scalar-app .xl\\:pl-2{padding-left:8px}:is(.scalar-app .\\*\\:xl\\:border-t-0>*){border-top-style:var(--tw-border-style);border-top-width:0}:is(.scalar-app .\\*\\:xl\\:border-l>*){border-left-style:var(--tw-border-style);border-left-width:var(--scalar-border-width)}:is(.scalar-app .\\*\\:first\\:xl\\:border-l-0>*):first-child{border-left-style:var(--tw-border-style);border-left-width:0}}.scalar-app .dark\\:bg-b-2:where(.dark-mode,.dark-mode *){background-color:var(--scalar-background-2)}@media (hover:hover){.scalar-app .hover\\:dark\\:bg-b-2:hover:where(.dark-mode,.dark-mode *){background-color:var(--scalar-background-2)}}.scalar-app .ui-open\\:rotate-90[data-headlessui-state~=open],:where([data-headlessui-state~=open]) :is(.scalar-app .ui-open\\:rotate-90){rotate:90deg}.scalar-app .ui-not-open\\:invisible[data-headlessui-state]:not([data-headlessui-state~=open]),:where([data-headlessui-state]:not([data-headlessui-state~=open])) :is(.scalar-app .ui-not-open\\:invisible):not([data-headlessui-state]){visibility:hidden}.scalar-app .ui-not-open\\:rotate-0[data-headlessui-state]:not([data-headlessui-state~=open]),:where([data-headlessui-state]:not([data-headlessui-state~=open])) :is(.scalar-app .ui-not-open\\:rotate-0):not([data-headlessui-state]){rotate:none}.scalar-app .ui-checked\\:bg-b-3[data-headlessui-state~=checked],:where([data-headlessui-state~=checked]) :is(.scalar-app .ui-checked\\:bg-b-3){background-color:var(--scalar-background-3)}.scalar-app .ui-active\\:bg-b-2[data-headlessui-state~=active],:where([data-headlessui-state~=active]) :is(.scalar-app .ui-active\\:bg-b-2),:is(.scalar-app .ui-active\\:\\*\\:bg-b-2[data-headlessui-state~=active]>*),:is(:where([data-headlessui-state~=active]) :is(.scalar-app .ui-active\\:\\*\\:bg-b-2)>*){background-color:var(--scalar-background-2)}@media (max-width:720px) and (max-height:480px){.scalar-app .zoomed\\:static{position:static}.scalar-app .zoomed\\:p-1{padding:4px}}.app-platform-mac :is(.scalar-app .mac\\:pl-\\[72px\\]){padding-left:72px}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-content{syntax:"*";inherits:false;initial-value:""}.nav-item[data-v-5a1bd09b]{cursor:pointer;border-radius:var(--scalar-radius-lg);background:var(--scalar-background-3);border:var(--scalar-border-width)solid var(--scalar-background-2);color:var(--scalar-color-3);flex:1;justify-content:center;align-items:center;min-width:0;padding:4.5px;display:flex;position:relative;overflow:hidden}.dark-mode .nav-item[data-v-5a1bd09b]{background:var(--scalar-background-2)}@supports (color:color-mix(in lab,red,red)){.dark-mode .nav-item[data-v-5a1bd09b]{background:color-mix(in srgb,var(--scalar-background-2),transparent)}}.nav-item-icon-copy[data-v-5a1bd09b]{white-space:nowrap;max-width:100%;-webkit-mask-image:linear-gradient(to left,transparent 0,var(--scalar-background-2)20px);mask-image:linear-gradient(to left,transparent 0,var(--scalar-background-2)20px);overflow:hidden}.nav-item:hover .nav-item-icon-copy[data-v-5a1bd09b]{-webkit-mask-image:linear-gradient(to left,transparent 20px,var(--scalar-background-2)40px);mask-image:linear-gradient(to left,transparent 20px,var(--scalar-background-2)40px)}.nav-item-copy[data-v-5a1bd09b]{max-width:calc(100% - 20px)}.nav-item[data-v-5a1bd09b]:hover{color:var(--scalar-color-1)}.nav-item__active[data-v-5a1bd09b]{background-color:var(--scalar-background-1);color:var(--scalar-color-1);border-color:var(--scalar-border-color)}.dark-mode .nav-item__active[data-v-5a1bd09b]{background-color:var(--scalar-background-2)}.nav-item-close[data-v-5a1bd09b]{border-radius:var(--scalar-radius);stroke-width:1.5px;max-width:20px;color:var(--scalar-color-3);opacity:0;background:0 0;margin-left:-20px;padding:2px;position:absolute;right:3px}.nav-item:hover .nav-item-close[data-v-5a1bd09b]{opacity:1}.nav-item-close[data-v-5a1bd09b]:hover{background-color:var(--scalar-background-4)}.nav-item__active .nav-item-close[data-v-5a1bd09b]:hover{background-color:var(--scalar-background-2)}.download-app-button[data-v-cb45fa05]{box-shadow:0 0 0 .5px var(--scalar-border-color);background:linear-gradient(#ffffffbf,#00000009)}.dark-mode .download-app-button[data-v-cb45fa05]{background:linear-gradient(#ffffff1a,#00000026)}.download-app-button[data-v-cb45fa05]:hover{background:linear-gradient(#00000009,#ffffffbf)}.dark-mode .download-app-button[data-v-cb45fa05]:hover{background:linear-gradient(#00000026,#ffffff1a)}.http-bg-gradient[data-v-076b14a1]{background:linear-gradient(#ffffffbf,#00000009)}.http-bg-gradient[data-v-076b14a1]:hover{background:linear-gradient(#00000009,#ffffffbf)}.dark-mode .http-bg-gradient[data-v-076b14a1]{background:linear-gradient(#ffffff09,#00000026)}.dark-mode .http-bg-gradient[data-v-076b14a1]:hover{background:linear-gradient(#00000026,#ffffff09)}.scroll-timeline-x[data-v-19cf46d6]{scroll-timeline:--scroll-timeline x;scroll-timeline:--scroll-timeline horizontal;-ms-overflow-style:none;scrollbar-width:none;overflow:auto}.commandmenu[data-v-f2bbd082]{box-shadow:var(--scalar-shadow-2);border-radius:var(--scalar-radius-lg);background-color:var(--scalar-background-1);opacity:0;width:100%;max-width:580px;max-height:60dvh;margin:12px;animation:.3s ease-in-out .1s forwards fadeincommandmenu-f2bbd082;position:fixed;top:150px;left:50%;transform:translate(-50%,10px)}.commandmenu-overlay[data-v-f2bbd082]{cursor:pointer;background:#0003;animation:.3s ease-in-out forwards fadeincommand-f2bbd082;position:fixed;top:0;right:0;bottom:0;left:0}@keyframes fadeincommand-f2bbd082{0%{opacity:0}to{opacity:1}}@keyframes fadeincommandmenu-f2bbd082{0%{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%)}}.scalar .scalar-app-layout[data-v-45e9730e]{background:var(--scalar-background-1);opacity:0;border:var(--scalar-border-width)solid var(--scalar-border-color);border-radius:8px;width:100%;max-width:1390px;height:calc(100% - 120px);margin:auto;animation:.35s forwards scalarapiclientfadein-45e9730e;position:relative;overflow:hidden}@media (max-width:720px) and (max-height:480px){.scalar .scalar-app-layout[data-v-45e9730e]{height:100%;max-height:90svh}}@keyframes scalarapiclientfadein-45e9730e{0%{opacity:0}to{opacity:1}}.scalar .scalar-app-exit[data-v-45e9730e]{cursor:pointer;z-index:-1;background:#00000038;width:100vw;height:100vh;transition:all .3s ease-in-out;animation:.35s forwards scalardrawerexitfadein-45e9730e;position:fixed;top:0;left:0}.dark-mode .scalar .scalar-app-exit[data-v-45e9730e]{background:#00000073}.scalar .scalar-app-exit[data-v-45e9730e]:before{text-align:center;color:#fff;opacity:.6;font-family:sans-serif;font-size:30px;font-weight:100;line-height:50px;position:absolute;top:0;right:12px}.scalar .scalar-app-exit[data-v-45e9730e]:hover:before{opacity:1}@keyframes scalardrawerexitfadein-45e9730e{0%{opacity:0}to{opacity:1}}.scalar-container[data-v-45e9730e]{visibility:visible;z-index:10000;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:fixed;top:0;bottom:0;left:0;overflow:hidden}.scalar .url-form-input[data-v-45e9730e]{min-height:auto!important}.scalar .scalar-container[data-v-45e9730e]{line-height:normal}.scalar .scalar-app-header span[data-v-45e9730e]{color:var(--scalar-color-3)}.scalar .scalar-app-header a[data-v-45e9730e]{color:var(--scalar-color-1)}.scalar .scalar-app-header a[data-v-45e9730e]:hover{text-decoration:underline}.scalar-activate[data-v-45e9730e]{cursor:pointer;align-items:center;gap:6px;width:fit-content;margin:0 .75rem .75rem auto;font-size:.875rem;font-weight:600;line-height:24px;display:flex}.scalar-activate-button[data-v-45e9730e]{color:var(--scalar-color-blue);-webkit-appearance:none;-moz-appearance:none;appearance:none;background:0 0;border:none;outline:none;align-items:center;gap:6px;padding:0 .5rem;display:flex}.scalar-activate:hover .scalar-activate-button[data-v-45e9730e]{background:var(--scalar-background-3);border-radius:3px}.scalar-modal-layout .scalar-button-danger[data-v-a93bfefe]{background:var(--scalar-color-red)}@supports (color:color-mix(in lab,red,red)){.scalar-modal-layout .scalar-button-danger[data-v-a93bfefe]{background:color-mix(in srgb,var(--scalar-color-red),transparent 95%)}}.scalar-modal-layout .scalar-button-danger[data-v-a93bfefe]{color:var(--scalar-color-red)}.scalar-modal-layout .scalar-button-danger[data-v-a93bfefe]:hover,.scalar-modal-layout .scalar-button-danger[data-v-a93bfefe]:focus{background:var(--scalar-color-red)}@supports (color:color-mix(in lab,red,red)){.scalar-modal-layout .scalar-button-danger[data-v-a93bfefe]:hover,.scalar-modal-layout .scalar-button-danger[data-v-a93bfefe]:focus{background:color-mix(in srgb,var(--scalar-color-red),transparent 90%)}}.fade-request-section-content[data-v-f97cc68c]{background:linear-gradient(to left,var(--scalar-background-1)64%,transparent)}.filter-hover[data-v-f97cc68c]{height:100%;padding-left:24px;padding-right:39px;transition:width 0s ease-in-out .2s;position:absolute;right:0;overflow:hidden}.filter-hover[data-v-f97cc68c]:hover,.filter-hover[data-v-f97cc68c]:has(:focus-visible){z-index:10;width:100%}.filter-hover[data-v-f97cc68c]:before{content:"";background-color:var(--scalar-background-1);opacity:0;pointer-events:none;width:100%;height:fit-content;transition:all .3s ease-in-out;position:absolute;top:0;left:0}.filter-hover-item[data-v-f97cc68c]{opacity:0}.filter-hover-item[data-v-f97cc68c]:not(:last-of-type){transform:translateY(3px)}.filter-hover:hover .filter-hover-item[data-v-f97cc68c]{transition:opacity .2s ease-in-out,transform .2s ease-in-out}.filter-hover:hover .filter-hover-item[data-v-f97cc68c]:last-of-type{transition-delay:50ms}.filter-hover:hover .filter-hover-item[data-v-f97cc68c]:nth-last-of-type(2){transition-delay:.1s}.filter-hover:hover .filter-hover-item[data-v-f97cc68c]:nth-last-of-type(3){transition-delay:.15s}.filter-hover:hover .filter-hover-item[data-v-f97cc68c]:nth-last-of-type(4){transition-delay:.2s}.filter-hover:hover .filter-hover-item[data-v-f97cc68c]:nth-last-of-type(5){transition-delay:.25s}.filter-hover:hover .filter-hover-item[data-v-f97cc68c]:nth-last-of-type(6){transition-delay:.3s}.filter-hover:hover .filter-hover-item[data-v-f97cc68c]:nth-last-of-type(7){transition-delay:.35s}.filter-hover:hover .filter-hover-item[data-v-f97cc68c],.filter-hover:has(:focus-visible) .filter-hover-item[data-v-f97cc68c]{opacity:1;transform:translateZ(0)}.filter-hover[data-v-f97cc68c]:hover:before,.filter-hover[data-v-f97cc68c]:has(:focus-visible):before{opacity:.9;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.filter-button[data-v-f97cc68c]{top:50%;transform:translateY(-50%)}.context-bar-group:hover .context-bar-group-hover\\:text-c-1[data-v-f97cc68c],.context-bar-group:has(:focus-visible) .context-bar-group-hover\\:text-c-1[data-v-f97cc68c]{--tw-text-opacity:1;color:rgb(var(--scalar-color-1)/var(--tw-text-opacity))}.context-bar-group:hover .context-bar-group-hover\\:hidden[data-v-f97cc68c],.context-bar-group:has(:focus-visible) .context-bar-group-hover\\:hidden[data-v-f97cc68c]{display:none}.light-mode .bg-preview[data-v-0956ad2d]{background-image:url("data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'16\' height=\'16\' fill=\'%23000\' fill-opacity=\'10%25\'%3E%3Crect width=\'8\' height=\'8\' /%3E%3Crect x=\'8\' y=\'8\' width=\'8\' height=\'8\' /%3E%3C/svg%3E")}.dark-mode .bg-preview[data-v-0956ad2d]{background-image:url("data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'16\' height=\'16\' fill=\'%23FFF\' fill-opacity=\'10%25\'%3E%3Crect width=\'8\' height=\'8\' /%3E%3Crect x=\'8\' y=\'8\' width=\'8\' height=\'8\' /%3E%3C/svg%3E")}[data-v-27e5c2e0] .cm-editor{font-size:var(--scalar-small);background-color:#0000;outline:none}[data-v-27e5c2e0] .cm-gutters{background-color:var(--scalar-background-1);border-radius:var(--scalar-radius)0 0 var(--scalar-radius)}.body-raw[data-v-27e5c2e0] .cm-scroller{min-width:100%;overflow:auto}.scalar-code-copy[data-v-27e5c2e0]{z-index:10;pointer-events:none;align-items:flex-start;display:flex;position:sticky;top:6px;right:6px;transform:translate(-6px)}.copy-button[data-v-27e5c2e0]{background-color:var(--scalar-background-1);border:1px solid var(--scalar-border-color);color:var(--scalar-color-3);cursor:pointer;opacity:0;pointer-events:auto;border-radius:3px;align-items:center;height:30px;padding:6px;transition:opacity .15s ease-in-out,color .15s ease-in-out;display:flex}.body-raw:hover .copy-button[data-v-27e5c2e0],.copy-button[data-v-27e5c2e0]:focus-visible{opacity:1}.copy-button[data-v-27e5c2e0]:hover{color:var(--scalar-color-1)}.scalar-code-block[data-v-17966bf4] .hljs *{font-size:var(--scalar-small)}.response-body-virtual[data-headlessui-state=open],.response-body-virtual[data-headlessui-state=open] .diclosure-panel{flex-direction:column;flex-grow:1;display:flex}.ascii-art-animate .ascii-art-line[data-v-69ebd973]{border-right:1ch solid #0000;animation:4s step-end 1s both typewriter-69ebd973,.5s step-end infinite blinkTextCursor-69ebd973}@keyframes typewriter-69ebd973{0%{width:0}to{width:100%}}@keyframes blinkTextCursor-69ebd973{0%{border-right-color:currentColor}50%{border-right-color:#0000}}.keycap-n[data-v-6e1f579f]{background:-webkit-linear-gradient(5deg,transparent 30%,var(--scalar-color-3)50%);-webkit-text-fill-color:transparent;-webkit-background-clip:text}.keycap-hotkey[data-v-6e1f579f]{line-height:26px;position:absolute;top:32px}.scalar-version-number[data-v-bb2369d4]{width:76px;height:76px;font-size:8px;font-family:var(--scalar-font-code);box-shadow:inset 2px 0 0 2px var(--scalar-background-2);text-align:center;text-transform:initial;-webkit-text-decoration-color:var(--scalar-color-3);text-decoration-color:var(--scalar-color-3);border-radius:9px 9px 16px 12px;flex-direction:column;justify-content:center;align-items:center;margin-top:-113px;margin-left:-36px;line-height:11px;display:flex;position:absolute;transform:skewY(13deg)}.scalar-version-number a[data-v-bb2369d4]{background:var(--scalar-background-2);border:.5px solid var(--scalar-border-color);border-radius:3px;padding:2px 4px;font-weight:700;text-decoration:none}.gitbook-show[data-v-bb2369d4]{display:none}.v-enter-active[data-v-62b8db3f]{transition:opacity .5s}.v-enter-from[data-v-62b8db3f]{opacity:0}.animate-response-heading .response-heading[data-v-7138ed84]{opacity:1;animation:.2s ease-in-out forwards push-response-7138ed84}@keyframes push-response-7138ed84{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-4px)}}.animate-response-heading .animate-response-children[data-v-7138ed84]{opacity:0;animation:.2s ease-in-out 50ms forwards response-spans-7138ed84}@keyframes response-spans-7138ed84{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}[data-v-b356b2d9] .cm-editor{background:0 0;outline:none;height:100%;padding:0}[data-v-b356b2d9] .cm-placeholder{color:var(--scalar-color-3)}[data-v-b356b2d9] .cm-content{font-family:var(--scalar-font-code);font-size:var(--scalar-small);max-height:20px;padding:8px 0}[data-v-b356b2d9] .cm-tooltip{filter:brightness(var(--scalar-lifted-brightness));border-radius:var(--scalar-radius);box-shadow:var(--scalar-shadow-2);background:0 0!important;border:none!important;outline:none!important;overflow:hidden!important}[data-v-b356b2d9] .cm-tooltip-autocomplete ul li{padding:3px 6px!important}[data-v-b356b2d9] .cm-completionIcon-type:after{color:var(--scalar-color-3)!important}[data-v-b356b2d9] .cm-tooltip-autocomplete ul li[aria-selected]{background:var(--scalar-background-2)!important;color:var(--scalar-color-1)!important}[data-v-b356b2d9] .cm-tooltip-autocomplete ul{position:relative;padding:6px!important}[data-v-b356b2d9] .cm-tooltip-autocomplete ul li:hover{border-radius:3px;color:var(--scalar-color-1)!important;background:var(--scalar-background-3)!important}[data-v-b356b2d9] .cm-activeLine,[data-v-b356b2d9] .cm-activeLineGutter{background-color:#0000}[data-v-b356b2d9] .cm-selectionMatch,[data-v-b356b2d9] .cm-matchingBracket{border-radius:var(--scalar-radius);background:var(--scalar-background-4)!important}[data-v-b356b2d9] .cm-css-color-picker-wrapper{outline:1px solid var(--scalar-background-3);border-radius:3px;display:inline-flex;overflow:hidden}[data-v-b356b2d9] .cm-gutters{color:var(--scalar-color-3);font-size:var(--scalar-small);background-color:#0000;border-right:none;border-radius:0 0 0 3px;line-height:1.44}[data-v-b356b2d9] .cm-gutters:before{content:"";border-radius:var(--scalar-radius)0 0 var(--scalar-radius);background-color:var(--scalar-background-1);width:calc(100% - 2px);height:calc(100% - 4px);position:absolute;top:2px;left:2px}[data-v-b356b2d9] .cm-gutterElement{justify-content:flex-end;align-items:center;display:flex;position:relative;font-family:var(--scalar-font-code)!important;padding:0 6px 0 8px!important}[data-v-b356b2d9] .cm-gutter+.cm-gutter :not(.cm-foldGutter) .cm-gutterElement{padding-left:0!important}[data-v-b356b2d9] .cm-scroller{overflow:auto}.peer:hover .copy-button[data-v-b356b2d9],.copy-button[data-v-b356b2d9]:focus-visible{opacity:100}.scalar-code-copy[data-v-b356b2d9]{justify-content:flex-end;align-items:flex-start;display:flex;position:sticky;top:0;right:0;bottom:0;left:0}.copy-button[data-v-b356b2d9]{background-color:var(--scalar-background-2);border:1px solid var(--scalar-border-color);color:var(--scalar-color-3);cursor:pointer;opacity:0;border-radius:3px;align-items:center;height:30px;margin-bottom:-30px;padding:6px;transition:opacity .15s ease-in-out,color .15s ease-in-out;display:flex;position:relative;top:0;right:0}.scalar-code-copy[data-v-b356b2d9],.copy-button[data-v-b356b2d9]{background:inherit}.copy-button[data-v-b356b2d9]:hover{color:var(--scalar-color-1)}.copy-button svg[data-v-b356b2d9]{stroke-width:1.5px}.line-wrapping[data-v-b356b2d9]:focus-within .cm-content{white-space:break-spaces;word-break:break-all;min-height:fit-content}.cm-pill{--tw-bg-base:var(--scalar-color-1);color:var(--tw-bg-base);font-size:var(--scalar-small);border-radius:30px;padding:0 9px;display:inline-block;background:var(--tw-bg-base)!important}@supports (color:color-mix(in lab,red,red)){.cm-pill{background:color-mix(in srgb,var(--tw-bg-base),transparent 94%)!important}}.cm-pill.bg-grey{background:var(--scalar-background-3)!important}.dark-mode .cm-pill{background:var(--tw-bg-base)!important}@supports (color:color-mix(in lab,red,red)){.dark-mode .cm-pill{background:color-mix(in srgb,var(--tw-bg-base),transparent 90%)!important}}.cm-pill:first-of-type{margin-left:0}.cm-editor .cm-widgetBuffer{display:none}.cm-foldPlaceholder:hover{color:var(--scalar-color-1)}.cm-foldGutter .cm-gutterElement{font-size:var(--scalar-heading-4);padding:2px!important}.cm-foldGutter .cm-gutterElement:first-of-type{display:none}.cm-foldGutter .cm-gutterElement .cm-foldMarker{padding:2px}.cm-foldGutter .cm-gutterElement:hover .cm-foldMarker{background:var(--scalar-background-2);border-radius:var(--scalar-radius);color:var(--scalar-color-1)}.schema>span[data-v-4df72868]:not(:first-child):before{content:"·";margin:0 .5ch;display:block}.schema>span[data-v-4df72868]{white-space:nowrap;display:flex}[data-v-5831422d] .cm-editor{padding:0}[data-v-5831422d] .cm-content{font-family:var(--scalar-font);font-size:var(--scalar-small);background-color:#0000;align-items:center;width:100%;padding:6px 8px;display:flex}[data-v-5831422d] .cm-content:has(.cm-pill){padding:6px 8px}[data-v-5831422d] .cm-content .cm-pill:not(:last-of-type){margin-right:.5px}[data-v-5831422d] .cm-content .cm-pill:not(:first-of-type){margin-left:.5px}[data-v-5831422d] .cm-line{text-overflow:ellipsis;padding:0;overflow:hidden}.filemask[data-v-5831422d]{-webkit-mask-image:linear-gradient(to right,transparent 0,var(--scalar-background-2)20px);mask-image:linear-gradient(to right,transparent 0,var(--scalar-background-2)20px)}[data-v-49d6ce0d] .cm-content{font-size:var(--scalar-small)}[data-v-f7d71ae7] .cm-editor{padding:0}[data-v-f7d71ae7] .cm-content{font-family:var(--scalar-font);font-size:var(--scalar-small);background-color:#0000;align-items:center;width:100%;padding:6px 8px;display:flex}[data-v-f7d71ae7] .cm-content:has(.cm-pill){padding:6px 8px}[data-v-f7d71ae7] .cm-content .cm-pill:not(:last-of-type){margin-right:.5px}[data-v-f7d71ae7] .cm-content .cm-pill:not(:first-of-type){margin-left:.5px}[data-v-f7d71ae7] .cm-line{text-overflow:ellipsis;padding:0;overflow:hidden}.required[data-v-f7d71ae7]:after{content:"Required"}input[data-v-f7d71ae7]::placeholder{color:var(--scalar-color-3)}.scalar-password-input[data-v-f7d71ae7]{text-security:disc;-webkit-text-security:disc;-moz-text-security:disc}.auth-blend-required[data-v-0b5ee843] .scalar-input-required,.auth-blend-required[data-v-0b5ee843] .required{background:var(--scalar-background-2);--tw-bg-base:var(--scalar-background-2);--tw-shadow:-8px 0 4px var(--scalar-background-2)}.request-example-references-header[data-v-0b5ee843]+tr>td{border-top:0;border-top-left-radius:0;border-top-right-radius:0}.scalar-data-table .auth-description-container .auth-description[data-v-0b5ee843]{outline:.5px solid var(--scalar-border-color)}.scalar-data-table .auth-description-container:hover .auth-description[data-v-0b5ee843]{height:auto;position:absolute}.auth-combobox-position[data-v-3e25725c]{margin-left:120px}.scroll-timeline-x[data-v-3e25725c]{scroll-timeline:--scroll-timeline x;scroll-timeline:--scroll-timeline horizontal;scrollbar-width:none;-ms-overflow-style:none;overflow:auto}.fade-left[data-v-3e25725c],.fade-right[data-v-3e25725c]{content:"";pointer-events:none;height:100%;min-height:24px;animation-name:fadein-3e25725c;animation-duration:1ms;animation-direction:reverse;animation-timeline:--scroll-timeline;position:sticky}.fade-left[data-v-3e25725c]{background:linear-gradient(-90deg,var(--scalar-background-1)0%,var(--scalar-background-1)60%,var(--scalar-background-1)100%)}@supports (color:color-mix(in lab,red,red)){.fade-left[data-v-3e25725c]{background:linear-gradient(-90deg,color-mix(in srgb,var(--scalar-background-1),transparent 100%)0%,color-mix(in srgb,var(--scalar-background-1),transparent 20%)60%,var(--scalar-background-1)100%)}}.fade-left[data-v-3e25725c]{min-width:3px;animation-direction:normal;left:-1px}.fade-right[data-v-3e25725c]{background:linear-gradient(90deg,var(--scalar-background-1)0%,var(--scalar-background-1)60%,var(--scalar-background-1)100%)}@supports (color:color-mix(in lab,red,red)){.fade-right[data-v-3e25725c]{background:linear-gradient(90deg,color-mix(in srgb,var(--scalar-background-1),transparent 100%)0%,color-mix(in srgb,var(--scalar-background-1),transparent 20%)60%,var(--scalar-background-1)100%)}}.fade-right[data-v-3e25725c]{min-width:24px;margin-left:-20px;top:0;right:-1px}@keyframes fadein-3e25725c{0%{opacity:0}15%{opacity:1}}.auth-combobox-position[data-v-ae6b8295]{margin-left:120px}.scroll-timeline-x[data-v-ae6b8295]{scroll-timeline:--scroll-timeline x;scroll-timeline:--scroll-timeline horizontal;scrollbar-width:none;-ms-overflow-style:none;overflow:auto}.fade-left[data-v-ae6b8295],.fade-right[data-v-ae6b8295]{content:"";pointer-events:none;height:100%;min-height:24px;animation-name:fadein-ae6b8295;animation-duration:1ms;animation-direction:reverse;animation-timeline:--scroll-timeline;position:sticky}.fade-left[data-v-ae6b8295]{background:linear-gradient(-90deg,var(--scalar-background-1)0%,var(--scalar-background-1)60%,var(--scalar-background-1)100%)}@supports (color:color-mix(in lab,red,red)){.fade-left[data-v-ae6b8295]{background:linear-gradient(-90deg,color-mix(in srgb,var(--scalar-background-1),transparent 100%)0%,color-mix(in srgb,var(--scalar-background-1),transparent 20%)60%,var(--scalar-background-1)100%)}}.fade-left[data-v-ae6b8295]{min-width:3px;animation-direction:normal;left:-1px}.fade-right[data-v-ae6b8295]{background:linear-gradient(90deg,var(--scalar-background-1)0%,var(--scalar-background-1)60%,var(--scalar-background-1)100%)}@supports (color:color-mix(in lab,red,red)){.fade-right[data-v-ae6b8295]{background:linear-gradient(90deg,color-mix(in srgb,var(--scalar-background-1),transparent 100%)0%,color-mix(in srgb,var(--scalar-background-1),transparent 20%)60%,var(--scalar-background-1)100%)}}.fade-right[data-v-ae6b8295]{min-width:24px;margin-left:-20px;top:0;right:-1px}@keyframes fadein-ae6b8295{0%{opacity:0}15%{opacity:1}}[data-v-9e7d5436] code.hljs *{font-size:var(--scalar-small)}.request-section-content[data-v-ca5f9f37]{--scalar-border-width:.5px}.request-section-content-filter[data-v-ca5f9f37]{box-shadow:0 -10px 0 10px var(--scalar-background-1)}.request-item:focus-within .request-meta-buttons[data-v-ca5f9f37]{opacity:1}.group-hover-input[data-v-ca5f9f37]{border-width:var(--scalar-border-width);border-color:#0000}.group:hover .group-hover-input[data-v-ca5f9f37]{background:var(--scalar-background-1)}@supports (color:color-mix(in lab,red,red)){.group:hover .group-hover-input[data-v-ca5f9f37]{background:color-mix(in srgb,var(--scalar-background-1),var(--scalar-background-2))}}.group:hover .group-hover-input[data-v-ca5f9f37]{border-color:var(--scalar-border-color)}.group-hover-input[data-v-ca5f9f37]:focus{border-color:var(--scalar-border-color)!important;background:0 0!important}@media (min-width:800px){.has-no-import-url,.has-import-url{contain:paint;max-width:100dvw;overflow-x:hidden}.has-no-import-url .scalar-client>main{opacity:1;background:var(--scalar-background-1);animation:.3s ease-in-out forwards transform-restore-layout}.has-import-url .scalar-client>main{opacity:0;border:var(--scalar-border-width)solid var(--scalar-border-color);z-index:10000;border-radius:12px;animation:.3s ease-in-out forwards transform-fade-layout;overflow:hidden;transform:scale(.85)translate(calc(50dvw + 80px))}.has-import-url .scalar-client .sidenav{display:none}.has-no-import-url .scalar-app,.has-import-url .scalar-app{background:var(--scalar-background-1)!important}}@keyframes transform-fade-layout{0%{opacity:0;transform:scale(.85)translate(calc(50dvw + 80px),10px)}to{opacity:1;transform:scale(.85)translate(calc(50dvw + 80px))}}@keyframes transform-restore-layout{0%{opacity:1;transform:scale(.85)translate(calc(50dvw + 80px))}to{opacity:1;transform:scale(1)translate(0)}}.openapi-color{color:var(--scalar-color-green)}.section-flare{position:fixed;top:0;right:-50dvw}#scalar-client{background-color:var(--scalar-background-2);flex-direction:column;width:100dvw;height:100dvh;display:flex;position:relative}.dark-mode #scalar-client{background-color:var(--scalar-background-1)}@supports (color:color-mix(in lab,red,red)){.dark-mode #scalar-client{background-color:color-mix(in srgb,var(--scalar-background-1)65%,black)}}.open-api-client-button[data-v-210c4985]{cursor:pointer;text-align:center;white-space:nowrap;width:100%;height:31px;font-size:var(--scalar-mini);font-weight:var(--scalar-semibold);border-radius:var(--scalar-radius);box-shadow:0 0 0 .5px var(--scalar-border-color);color:var(--scalar-sidebar-color-1);justify-content:center;align-items:center;gap:6px;padding:9px 12px;line-height:1.385;text-decoration:none;display:flex}.open-api-client-button[data-v-210c4985]:hover{background:var(--scalar-sidebar-item-hover-background,var(--scalar-background-2))}.address-bar-history-button[data-v-a93fa60f]:hover{background:var(--scalar-background-3)}.address-bar-history-button[data-v-a93fa60f]:focus-within{background:var(--scalar-background-2)}.description[data-v-e86ebacd] .markdown{font-weight:var(--scalar-semibold);color:var(--scalar-color--1);padding:0;display:block}.description[data-v-e86ebacd] .markdown>:first-child{margin-top:0}[data-v-78c9dbb9] .cm-editor{outline:none;width:100%;height:100%}[data-v-78c9dbb9] .cm-line{padding:0}[data-v-78c9dbb9] .cm-content{font-size:var(--scalar-small);align-items:center;padding:0;display:flex}.scroll-timeline-x[data-v-78c9dbb9]{scroll-timeline:--scroll-timeline x;scroll-timeline:--scroll-timeline horizontal;-ms-overflow-style:none}.scroll-timeline-x-hidden[data-v-78c9dbb9]{overflow-x:auto}.scroll-timeline-x-hidden[data-v-78c9dbb9] .cm-scroller{scrollbar-width:none;-ms-overflow-style:none;padding-right:20px;overflow:auto}.scroll-timeline-x-hidden[data-v-78c9dbb9]::-webkit-scrollbar{width:0;height:0;display:none}.scroll-timeline-x-hidden[data-v-78c9dbb9] .cm-scroller::-webkit-scrollbar{width:0;height:0;display:none}.scroll-timeline-x-address[data-v-78c9dbb9]{scrollbar-width:none;line-height:27px}.scroll-timeline-x-address[data-v-78c9dbb9]:after{content:"";cursor:text;width:24px;height:100%;position:absolute;right:0}.scroll-timeline-x-address[data-v-78c9dbb9]:empty:before{content:"Enter URL or cURL request";color:var(--scalar-color-3);pointer-events:none}.fade-left[data-v-78c9dbb9],.fade-right[data-v-78c9dbb9]{content:"";pointer-events:none;z-index:1;height:100%;animation-name:fadein-78c9dbb9;animation-duration:1ms;animation-direction:reverse;animation-timeline:--scroll-timeline;position:sticky}.fade-left[data-v-78c9dbb9]{background:linear-gradient(-90deg,var(--scalar-address-bar-bg)0%,var(--scalar-address-bar-bg)30%,var(--scalar-address-bar-bg)100%)}@supports (color:color-mix(in lab,red,red)){.fade-left[data-v-78c9dbb9]{background:linear-gradient(-90deg,color-mix(in srgb,var(--scalar-address-bar-bg),transparent 100%)0%,color-mix(in srgb,var(--scalar-address-bar-bg),transparent 20%)30%,var(--scalar-address-bar-bg)100%)}}.fade-left[data-v-78c9dbb9]{min-width:6px;animation-direction:normal;left:-1px}.fade-right[data-v-78c9dbb9]{background:linear-gradient(90deg,var(--scalar-address-bar-bg)0%,var(--scalar-address-bar-bg)30%,var(--scalar-address-bar-bg)100%)}@supports (color:color-mix(in lab,red,red)){.fade-right[data-v-78c9dbb9]{background:linear-gradient(90deg,color-mix(in srgb,var(--scalar-address-bar-bg),transparent 100%)0%,color-mix(in srgb,var(--scalar-address-bar-bg),transparent 20%)30%,var(--scalar-address-bar-bg)100%)}}.fade-right[data-v-78c9dbb9]{min-width:24px;right:-1px}@keyframes fadein-78c9dbb9{0%{opacity:0}1%{opacity:1}}.address-bar-bg-states[data-v-78c9dbb9]{--scalar-address-bar-bg:var(--scalar-background-1)}@supports (color:color-mix(in lab,red,red)){.address-bar-bg-states[data-v-78c9dbb9]{--scalar-address-bar-bg:color-mix(in srgb,var(--scalar-background-1),var(--scalar-background-2))}}.address-bar-bg-states[data-v-78c9dbb9]{background:var(--scalar-address-bar-bg)}.address-bar-bg-states[data-v-78c9dbb9]:has(.cm-focused){--scalar-address-bar-bg:var(--scalar-background-1);border-color:var(--scalar-border-color);outline:1px solid var(--scalar-color-accent)}.address-bar-bg-states:has(.cm-focused) .fade-left[data-v-78c9dbb9],.address-bar-bg-states:has(.cm-focused) .fade-right[data-v-78c9dbb9]{--scalar-address-bar-bg:var(--scalar-background-1)}.sidebar-height[data-v-72824faa]{min-height:100%}@media (min-width:800px){.sidebar-mask[data-v-72824faa]{-webkit-mask-image:linear-gradient(0,transparent 0,transparent 0,var(--scalar-background-2)30px);mask-image:linear-gradient(0,transparent 0,transparent 0,var(--scalar-background-2)30px)}}.resizer[data-v-72824faa]{cursor:col-resize;border-right:2px solid #0000;width:5px;transition:border-right-color .3s;position:absolute;top:0;bottom:0;right:0}.resizer[data-v-72824faa]:hover,.dragging .resizer[data-v-72824faa]{border-right-color:var(--scalar-background-3)}.dragging[data-v-72824faa]{cursor:col-resize}.dragging[data-v-72824faa]:before{content:"";width:100%;height:100%;display:block;position:absolute}.ellipsis-position[data-v-709241c2]{transform:translate(calc(-100% - 4.5px))}.indent-border-line-offset[data-v-4dedda07]:before{left:var(--eae2c57a)}.indent-padding-left[data-v-4dedda07]{padding-left:calc(var(--7c91ad9b) + 6px)}.sidebar-folderitem[data-v-4dedda07] .ellipsis-position{right:6px;transform:none}.search-button-fade[data-v-bca9c474]{background:linear-gradient(var(--scalar-background-1)32px,var(--scalar-background-1)38px,transparent)}@supports (color:color-mix(in lab,red,red)){.search-button-fade[data-v-bca9c474]{background:linear-gradient(var(--scalar-background-1)32px,color-mix(in srgb,var(--scalar-background-1),transparent)38px,transparent)}}.empty-sidebar-item-content[data-v-bca9c474]{display:none}.empty-sidebar-item .empty-sidebar-item-content[data-v-bca9c474]{display:block}.rabbitjump[data-v-bca9c474]{opacity:0}.empty-sidebar-item:hover .rabbitjump[data-v-bca9c474]{opacity:1;animation:.5s step-end infinite rabbitAnimation-bca9c474}.empty-sidebar-item:hover .rabbitsit[data-v-bca9c474]{opacity:0;animation:.5s step-end infinite rabbitAnimation2-bca9c474}.empty-sidebar-item:hover .rabbit-ascii[data-v-bca9c474]{animation:8s linear infinite rabbitRun-bca9c474}@keyframes rabbitRun-bca9c474{0%{transform:translateZ(0)}25%{transform:translate(250px)}25.01%{transform:translate(-250px)}75%{transform:translate(250px)}75.01%{transform:translate(-250px)}to{transform:translateZ(0)}}@keyframes rabbitAnimation-bca9c474{0%,to{opacity:1}50%{opacity:0}}@keyframes rabbitAnimation2-bca9c474{0%,to{opacity:0}50%{opacity:1;transform:translateY(-8px)}}.request-text-color-text[data-v-8a88f90a]{color:var(--scalar-color-1);background:linear-gradient(var(--scalar-background-1),var(--scalar-background-3));box-shadow:0 0 0 1px var(--scalar-border-color)}@media screen and (max-width:800px){.sidebar-active-hide-layout[data-v-8a88f90a]{display:none}.sidebar-active-width[data-v-8a88f90a]{width:100%}}.gitbook-show[data-v-c8df97c6]{display:none}.app-exit-button[data-v-c8df97c6]{color:#fff;background:#0000001a}.app-exit-button[data-v-c8df97c6]:hover{background:#ffffff1a}.request-text-color-text[data-v-cbe958dd]{color:var(--scalar-color-1);background:linear-gradient(var(--scalar-background-1),var(--scalar-background-3));box-shadow:0 0 0 1px var(--scalar-border-color)}@media screen and (max-width:800px){.sidebar-active-hide-layout[data-v-cbe958dd]{display:none}.sidebar-active-width[data-v-cbe958dd]{width:100%}}.group-hover-input[data-v-fced736a]{border-width:var(--scalar-border-width);border-color:#0000}.group:hover .group-hover-input[data-v-fced736a]{background:var(--scalar-background-1)}@supports (color:color-mix(in lab,red,red)){.group:hover .group-hover-input[data-v-fced736a]{background:color-mix(in srgb,var(--scalar-background-1),var(--scalar-background-2))}}.group:hover .group-hover-input[data-v-fced736a]{border-color:var(--scalar-border-color)}.group-hover-input[data-v-fced736a]:focus{border-color:var(--scalar-border-color)!important;background:0 0!important}[data-v-68d5218e] .markdown h2{font-size:var(--scalar-font-size-2)}[data-v-5997a667] .cm-content{min-height:fit-content}[data-v-5997a667] .cm-scroller{max-width:100%;overflow:auto hidden}[data-v-2debec7e] .cm-editor{padding:0}[data-v-2debec7e] .cm-content{font-family:var(--scalar-font);font-size:var(--scalar-small);background-color:#0000;align-items:center;width:100%;padding:6px 8px;display:flex}[data-v-2debec7e] .cm-content:has(.cm-pill){padding:6px 8px}[data-v-2debec7e] .cm-content .cm-pill:not(:last-of-type){margin-right:.5px}[data-v-2debec7e] .cm-content .cm-pill:not(:first-of-type){margin-left:.5px}[data-v-2debec7e] .cm-line{text-overflow:ellipsis;padding:0;overflow:hidden}.scalar-collection-auth[data-v-cc87292e]{border:var(--scalar-border-width)solid var(--scalar-border-color);border-radius:var(--scalar-radius-lg);overflow:hidden}.scalar-button-danger[data-v-5170f3be]{background:var(--scalar-color-red)}@supports (color:color-mix(in lab,red,red)){.scalar-button-danger[data-v-5170f3be]{background:color-mix(in srgb,var(--scalar-color-red),transparent 95%)}}.scalar-button-danger[data-v-5170f3be]{color:var(--scalar-color-red)}.scalar-button-danger[data-v-5170f3be]:hover,.scalar-button-danger[data-v-5170f3be]:focus{background:var(--scalar-color-red)}@supports (color:color-mix(in lab,red,red)){.scalar-button-danger[data-v-5170f3be]:hover,.scalar-button-danger[data-v-5170f3be]:focus{background:color-mix(in srgb,var(--scalar-color-red),transparent 90%)}}.dragover-asChild[data-v-a89d6a6e],.dragover-above[data-v-a89d6a6e],.dragover-below[data-v-a89d6a6e]{position:relative}.dragover-above[data-v-a89d6a6e]:after,.dragover-below[data-v-a89d6a6e]:after{content:"";background:var(--scalar-color-blue);width:100%;height:3px;display:block;position:absolute;top:-1.5px}@supports (color:color-mix(in lab,red,red)){.dragover-above[data-v-a89d6a6e]:after,.dragover-below[data-v-a89d6a6e]:after{background:color-mix(in srgb,var(--scalar-color-blue),transparent 85%)}}.dragover-above[data-v-a89d6a6e]:after,.dragover-below[data-v-a89d6a6e]:after{pointer-events:none;border-radius:var(--scalar-radius)}.dragover-below[data-v-a89d6a6e]:after{top:initial;bottom:-1.5px}.dragover-asChild[data-v-a89d6a6e]:after{content:"";background:var(--scalar-color-blue);width:100%;height:100%;display:block;position:absolute;top:0;left:0}@supports (color:color-mix(in lab,red,red)){.dragover-asChild[data-v-a89d6a6e]:after{background:color-mix(in srgb,var(--scalar-color-blue),transparent 85%)}}.dragover-asChild[data-v-a89d6a6e]:after{pointer-events:none;border-radius:var(--scalar-radius)}.empty-variable-name[data-v-0b6c70e4]:empty:before{content:"Untitled";color:var(--scalar-color-3)}.form-group[data-v-694018d6]{margin-bottom:1rem}.modal-actions[data-v-694018d6]{justify-content:flex-end;gap:1rem;display:flex}:root{--scalar-loaded-api-reference:true}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@layer scalar-config{.scalar-api-reference[data-v-b90254d8]{--refs-sidebar-width: var(--scalar-sidebar-width, 0px);--refs-header-height: calc( var(--scalar-y-offset) + var(--scalar-header-height, 0px) );--refs-content-max-width: var(--scalar-content-max-width, 1540px)}.scalar-api-reference.references-classic[data-v-b90254d8]{--refs-content-max-width: var(--scalar-content-max-width, 1420px);min-height:100dvh;--refs-sidebar-width: 0}}.references-layout[data-v-b90254d8]{min-height:100dvh;min-width:100%;max-width:100%;flex:1;--full-height: 100dvh;display:grid;grid-template-rows:var(--scalar-header-height, 0px) repeat(2,auto);grid-template-columns:var(--refs-sidebar-width) 1fr;grid-template-areas:"header header" "navigation rendered" "footer footer";background:var(--scalar-background-1)}.references-header[data-v-b90254d8]{grid-area:header;position:sticky;top:var(--scalar-custom-header-height, 0px);z-index:1000;height:var(--scalar-header-height, 0px)}.references-editor[data-v-b90254d8]{grid-area:editor;display:flex;min-width:0;background:var(--scalar-background-1)}.references-navigation[data-v-b90254d8]{grid-area:navigation}.references-rendered[data-v-b90254d8]{position:relative;grid-area:rendered;min-width:0;background:var(--scalar-background-1)}.scalar-api-reference.references-classic[data-v-b90254d8],.references-classic .references-rendered[data-v-b90254d8]{height:initial!important;max-height:initial!important}.references-navigation-list[data-v-b90254d8]{position:sticky;top:var(--refs-header-height);height:calc(100dvh - var(--refs-header-height));background:var(--scalar-sidebar-background-1, var(--scalar-background-1));overflow-y:auto;display:flex;flex-direction:column}.references-editor-textarea[data-v-b90254d8]{position:sticky;top:var(--refs-header-height);height:calc(var(--full-height) - var(--refs-header-height));display:flex;min-width:0;flex:1}.references-editable[data-v-b90254d8]{grid-template-columns:var(--refs-sidebar-width) 1fr 1fr;grid-template-areas:"header header header" "navigation editor rendered" "footer footer footer"}@layer scalar-config{.references-sidebar[data-v-b90254d8]{--refs-sidebar-width: var(--scalar-sidebar-width, 280px)}}.references-footer[data-v-b90254d8]{grid-area:footer}@media (max-width: 1150px){.references-layout[data-v-b90254d8]{grid-template-columns:var(--refs-sidebar-width) 1fr 0px}}@media (max-width: 1000px){.references-layout[data-v-b90254d8]{grid-template-columns:auto;grid-template-rows:var(--scalar-header-height, 0px) 0px auto auto;grid-template-areas:"header" "navigation" "rendered" "footer"}.references-editable[data-v-b90254d8]{grid-template-areas:"header" "navigation" "editor"}.references-navigation[data-v-b90254d8],.references-rendered[data-v-b90254d8]{max-height:unset}.references-rendered[data-v-b90254d8]{position:static}.references-navigation[data-v-b90254d8]{display:none;z-index:10}.references-sidebar-mobile-open .references-navigation[data-v-b90254d8]{display:block;top:var(--refs-header-height);height:calc(100dvh - var(--refs-header-height));width:100%;position:sticky}.references-navigation-list[data-v-b90254d8]{position:absolute;top:-1px;height:calc(var(--full-height) - var(--refs-header-height) + 1px);width:100%;border-top:1px solid var(--scalar-border-color);display:flex;flex-direction:column}}@media (max-width: 1000px){.scalar-api-references-standalone-mobile[data-v-b90254d8]{--scalar-header-height: 50px}}.scalar-api-references-standalone-search[data-v-b90254d8]{display:flex;flex-direction:column;padding:12px 12px 6px}.darklight-reference[data-v-b90254d8]{width:100%;margin-top:auto}@layer scalar-base{body{margin:0;background-color:var(--scalar-background-1)}}')),document.head.appendChild(e)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}(),function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e,t,r,n=Object.defineProperty,a=(e,t,r)=>((e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);(t=e||(e={})).assertEqual=e=>e,t.assertIs=function(e){},t.assertNever=function(e){throw new Error},t.arrayToEnum=e=>{const t={};for(const r of e)t[r]=r;return t},t.getValidEnumValues=e=>{const r=t.objectKeys(e).filter((t=>"number"!=typeof e[e[t]])),n={};for(const t of r)n[t]=e[t];return t.objectValues(n)},t.objectValues=e=>t.objectKeys(e).map((function(t){return e[t]})),t.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},t.find=(e,t)=>{for(const r of e)if(t(r))return r},t.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,t.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},t.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(r||(r={})).mergeShapes=(e,t)=>({...e,...t});const o=e.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),i=e=>{switch(typeof e){case"undefined":return o.undefined;case"string":return o.string;case"number":return isNaN(e)?o.nan:o.number;case"boolean":return o.boolean;case"function":return o.function;case"bigint":return o.bigint;case"symbol":return o.symbol;case"object":return Array.isArray(e)?o.array:null===e?o.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?o.promise:"undefined"!=typeof Map&&e instanceof Map?o.map:"undefined"!=typeof Set&&e instanceof Set?o.set:"undefined"!=typeof Date&&e instanceof Date?o.date:o.object;default:return o.unknown}},s=e.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class l extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(const a of e.issues)if("invalid_union"===a.code)a.unionErrors.map(n);else if("invalid_return_type"===a.code)n(a.returnTypeError);else if("invalid_arguments"===a.code)n(a.argumentsError);else if(0===a.path.length)r._errors.push(t(a));else{let e=r,n=0;for(;n<a.path.length;){const r=a.path[n];n===a.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(a))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof l))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,e.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},r=[];for(const n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(e(n))):r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}l.create=e=>new l(e);const c=(t,r)=>{let n;switch(t.code){case s.invalid_type:n=t.received===o.undefined?"Required":`Expected ${t.expected}, received ${t.received}`;break;case s.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,e.jsonStringifyReplacer)}`;break;case s.unrecognized_keys:n=`Unrecognized key(s) in object: ${e.joinValues(t.keys,", ")}`;break;case s.invalid_union:n="Invalid input";break;case s.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${e.joinValues(t.options)}`;break;case s.invalid_enum_value:n=`Invalid enum value. Expected ${e.joinValues(t.options)}, received '${t.received}'`;break;case s.invalid_arguments:n="Invalid function arguments";break;case s.invalid_return_type:n="Invalid function return type";break;case s.invalid_date:n="Invalid date";break;case s.invalid_string:"object"==typeof t.validation?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,"number"==typeof t.validation.position&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:e.assertNever(t.validation):n="regex"!==t.validation?`Invalid ${t.validation}`:"Invalid";break;case s.too_small:n="array"===t.type?`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:"string"===t.type?`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:"number"===t.type?`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:"date"===t.type?`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:"Invalid input";break;case s.too_big:n="array"===t.type?`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:"string"===t.type?`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:"number"===t.type?`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:"bigint"===t.type?`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:"date"===t.type?`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:"Invalid input";break;case s.custom:n="Invalid input";break;case s.invalid_intersection_types:n="Intersection results could not be merged";break;case s.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case s.not_finite:n="Number must be finite";break;default:n=r.defaultError,e.assertNever(t)}return{message:n}};let u=c;function d(){return u}const p=e=>{const{data:t,path:r,errorMaps:n,issueData:a}=e,o=[...r,...a.path||[]],i={...a,path:o};if(void 0!==a.message)return{...a,path:o,message:a.message};let s="";const l=n.filter((e=>!!e)).slice().reverse();for(const e of l)s=e(i,{data:t,defaultError:s}).message;return{...a,path:o,message:s}};function h(e,t){const r=d(),n=p({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===c?void 0:c].filter((e=>!!e))});e.common.issues.push(n)}class f{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const r=[];for(const n of t){if("aborted"===n.status)return m;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){const r=[];for(const e of t){const t=await e.key,n=await e.value;r.push({key:t,value:n})}return f.mergeObjectSync(e,r)}static mergeObjectSync(e,t){const r={};for(const n of t){const{key:t,value:a}=n;if("aborted"===t.status)return m;if("aborted"===a.status)return m;"dirty"===t.status&&e.dirty(),"dirty"===a.status&&e.dirty(),"__proto__"===t.value||void 0===a.value&&!n.alwaysSet||(r[t.value]=a.value)}return{status:e.value,value:r}}}const m=Object.freeze({status:"aborted"}),g=e=>({status:"dirty",value:e}),v=e=>({status:"valid",value:e}),b=e=>"aborted"===e.status,y=e=>"dirty"===e.status,O=e=>"valid"===e.status,w=e=>"undefined"!=typeof Promise&&e instanceof Promise;function x(e,t,r,n){if("function"==typeof t||!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function k(e,t,r,n,a){if("function"==typeof t||!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r}var S,_,E,T;"function"==typeof SuppressedError&&SuppressedError,(_=S||(S={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},_.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class A{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const C=(e,t)=>{if(O(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new l(e.common.issues);return this._error=t,this._error}}};function P(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:a}=e;if(t&&(r||n))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:a}:{errorMap:(t,a)=>{var o,i;const{message:s}=e;return"invalid_enum_value"===t.code?{message:null!=s?s:a.defaultError}:void 0===a.data?{message:null!==(o=null!=s?s:n)&&void 0!==o?o:a.defaultError}:"invalid_type"!==t.code?{message:a.defaultError}:{message:null!==(i=null!=s?s:r)&&void 0!==i?i:a.defaultError}},description:a}}class D{get description(){return this._def.description}_getType(e){return i(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new f,ctx:{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(w(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;const n={common:{issues:[],async:null!==(r=null==t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},a=this._parseSync({data:e,path:n.path,parent:n});return C(n,a)}"~validate"(e){var t,r;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)};if(!this["~standard"].async)try{const t=this._parseSync({data:e,path:[],parent:n});return O(t)?{value:t.value}:{issues:n.common.issues}}catch(e){(null===(r=null===(t=null==e?void 0:e.message)||void 0===t?void 0:t.toLowerCase())||void 0===r?void 0:r.includes("encountered"))&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then((e=>O(e)?{value:e.value}:{issues:n.common.issues}))}async parseAsync(e,t){const r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){const r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},n=this._parse({data:e,path:r.path,parent:r}),a=await(w(n)?n:Promise.resolve(n));return C(r,a)}refine(e,t){const r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,n)=>{const a=e(t),o=()=>n.addIssue({code:s.custom,...r(t)});return"undefined"!=typeof Promise&&a instanceof Promise?a.then((e=>!!e||(o(),!1))):!!a||(o(),!1)}))}refinement(e,t){return this._refinement(((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1)))}_refinement(e){return new De({schema:this,typeName:ze.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return $e.create(this,this._def)}nullable(){return Re.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return pe.create(this)}promise(){return Pe.create(this,this._def)}or(e){return me.create([this,e],this._def)}and(e){return ye.create(this,e,this._def)}transform(e){return new De({...P(this._def),schema:this,typeName:ze.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new Me({...P(this._def),innerType:this,defaultValue:t,typeName:ze.ZodDefault})}brand(){return new je({typeName:ze.ZodBranded,type:this,...P(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new Ne({...P(this._def),innerType:this,catchValue:t,typeName:ze.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return Be.create(this,e)}readonly(){return Ue.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const $=/^c[^\s-]{8,}$/i,R=/^[0-9a-z]+$/,M=/^[0-9A-HJKMNP-TV-Z]{26}$/i,N=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,I=/^[a-z0-9_-]{21}$/i,L=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,j=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,B=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let U;const F=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Q=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,z=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,q=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,H=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,V=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Z="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",W=new RegExp(`^${Z}$`);function X(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function G(e){let t=`${Z}T${X(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function Y(e,t){if(!L.test(e))return!1;try{const[r]=e.split("."),n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),a=JSON.parse(atob(n));return!("object"!=typeof a||null===a||!a.typ||!a.alg||t&&a.alg!==t)}catch(e){return!1}}function K(e,t){return!("v4"!==t&&t||!Q.test(e))||!("v6"!==t&&t||!q.test(e))}class J extends D{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==o.string){const e=this._getOrReturnCtx(t);return h(e,{code:s.invalid_type,expected:o.string,received:e.parsedType}),m}const r=new f;let n;for(const o of this._def.checks)if("min"===o.kind)t.data.length<o.value&&(n=this._getOrReturnCtx(t,n),h(n,{code:s.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if("max"===o.kind)t.data.length>o.value&&(n=this._getOrReturnCtx(t,n),h(n,{code:s.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if("length"===o.kind){const e=t.data.length>o.value,a=t.data.length<o.value;(e||a)&&(n=this._getOrReturnCtx(t,n),e?h(n,{code:s.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):a&&h(n,{code:s.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if("email"===o.kind)B.test(t.data)||(n=this._getOrReturnCtx(t,n),h(n,{validation:"email",code:s.invalid_string,message:o.message}),r.dirty());else if("emoji"===o.kind)U||(U=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),U.test(t.data)||(n=this._getOrReturnCtx(t,n),h(n,{validation:"emoji",code:s.invalid_string,message:o.message}),r.dirty());else if("uuid"===o.kind)N.test(t.data)||(n=this._getOrReturnCtx(t,n),h(n,{validation:"uuid",code:s.invalid_string,message:o.message}),r.dirty());else if("nanoid"===o.kind)I.test(t.data)||(n=this._getOrReturnCtx(t,n),h(n,{validation:"nanoid",code:s.invalid_string,message:o.message}),r.dirty());else if("cuid"===o.kind)$.test(t.data)||(n=this._getOrReturnCtx(t,n),h(n,{validation:"cuid",code:s.invalid_string,message:o.message}),r.dirty());else if("cuid2"===o.kind)R.test(t.data)||(n=this._getOrReturnCtx(t,n),h(n,{validation:"cuid2",code:s.invalid_string,message:o.message}),r.dirty());else if("ulid"===o.kind)M.test(t.data)||(n=this._getOrReturnCtx(t,n),h(n,{validation:"ulid",code:s.invalid_string,message:o.message}),r.dirty());else if("url"===o.kind)try{new URL(t.data)}catch(e){n=this._getOrReturnCtx(t,n),h(n,{validation:"url",code:s.invalid_string,message:o.message}),r.dirty()}else"regex"===o.kind?(o.regex.lastIndex=0,o.regex.test(t.data)||(n=this._getOrReturnCtx(t,n),h(n,{validation:"regex",code:s.invalid_string,message:o.message}),r.dirty())):"trim"===o.kind?t.data=t.data.trim():"includes"===o.kind?t.data.includes(o.value,o.position)||(n=this._getOrReturnCtx(t,n),h(n,{code:s.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):"toLowerCase"===o.kind?t.data=t.data.toLowerCase():"toUpperCase"===o.kind?t.data=t.data.toUpperCase():"startsWith"===o.kind?t.data.startsWith(o.value)||(n=this._getOrReturnCtx(t,n),h(n,{code:s.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):"endsWith"===o.kind?t.data.endsWith(o.value)||(n=this._getOrReturnCtx(t,n),h(n,{code:s.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):"datetime"===o.kind?G(o).test(t.data)||(n=this._getOrReturnCtx(t,n),h(n,{code:s.invalid_string,validation:"datetime",message:o.message}),r.dirty()):"date"===o.kind?W.test(t.data)||(n=this._getOrReturnCtx(t,n),h(n,{code:s.invalid_string,validation:"date",message:o.message}),r.dirty()):"time"===o.kind?new RegExp(`^${X(o)}$`).test(t.data)||(n=this._getOrReturnCtx(t,n),h(n,{code:s.invalid_string,validation:"time",message:o.message}),r.dirty()):"duration"===o.kind?j.test(t.data)||(n=this._getOrReturnCtx(t,n),h(n,{validation:"duration",code:s.invalid_string,message:o.message}),r.dirty()):"ip"===o.kind?(a=t.data,("v4"!==(i=o.version)&&i||!F.test(a))&&("v6"!==i&&i||!z.test(a))&&(n=this._getOrReturnCtx(t,n),h(n,{validation:"ip",code:s.invalid_string,message:o.message}),r.dirty())):"jwt"===o.kind?Y(t.data,o.alg)||(n=this._getOrReturnCtx(t,n),h(n,{validation:"jwt",code:s.invalid_string,message:o.message}),r.dirty()):"cidr"===o.kind?K(t.data,o.version)||(n=this._getOrReturnCtx(t,n),h(n,{validation:"cidr",code:s.invalid_string,message:o.message}),r.dirty()):"base64"===o.kind?H.test(t.data)||(n=this._getOrReturnCtx(t,n),h(n,{validation:"base64",code:s.invalid_string,message:o.message}),r.dirty()):"base64url"===o.kind?V.test(t.data)||(n=this._getOrReturnCtx(t,n),h(n,{validation:"base64url",code:s.invalid_string,message:o.message}),r.dirty()):e.assertNever(o);var a,i;return{status:r.value,value:t.data}}_regex(e,t,r){return this.refinement((t=>e.test(t)),{validation:t,code:s.invalid_string,...S.errToObj(r)})}_addCheck(e){return new J({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...S.errToObj(e)})}url(e){return this._addCheck({kind:"url",...S.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...S.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...S.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...S.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...S.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...S.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...S.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...S.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...S.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...S.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...S.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...S.errToObj(e)})}datetime(e){var t,r;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,local:null!==(r=null==e?void 0:e.local)&&void 0!==r&&r,...S.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...S.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...S.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...S.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...S.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...S.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...S.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...S.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...S.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...S.errToObj(t)})}nonempty(e){return this.min(1,S.errToObj(e))}trim(){return new J({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new J({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new J({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isCIDR(){return!!this._def.checks.find((e=>"cidr"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get isBase64url(){return!!this._def.checks.find((e=>"base64url"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function ee(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,a=r>n?r:n;return parseInt(e.toFixed(a).replace(".",""))%parseInt(t.toFixed(a).replace(".",""))/Math.pow(10,a)}J.create=e=>{var t;return new J({checks:[],typeName:ze.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...P(e)})};class te extends D{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==o.number){const e=this._getOrReturnCtx(t);return h(e,{code:s.invalid_type,expected:o.number,received:e.parsedType}),m}let r;const n=new f;for(const a of this._def.checks)"int"===a.kind?e.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),h(r,{code:s.invalid_type,expected:"integer",received:"float",message:a.message}),n.dirty()):"min"===a.kind?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),h(r,{code:s.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),n.dirty()):"max"===a.kind?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),h(r,{code:s.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),n.dirty()):"multipleOf"===a.kind?0!==ee(t.data,a.value)&&(r=this._getOrReturnCtx(t,r),h(r,{code:s.not_multiple_of,multipleOf:a.value,message:a.message}),n.dirty()):"finite"===a.kind?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),h(r,{code:s.not_finite,message:a.message}),n.dirty()):e.assertNever(a);return{status:n.value,value:t.data}}gte(e,t){return this.setLimit("min",e,!0,S.toString(t))}gt(e,t){return this.setLimit("min",e,!1,S.toString(t))}lte(e,t){return this.setLimit("max",e,!0,S.toString(t))}lt(e,t){return this.setLimit("max",e,!1,S.toString(t))}setLimit(e,t,r,n){return new te({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:S.toString(n)}]})}_addCheck(e){return new te({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:S.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:S.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:S.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:S.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:S.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:S.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:S.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:S.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:S.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((t=>"int"===t.kind||"multipleOf"===t.kind&&e.isInteger(t.value)))}get isFinite(){let e=null,t=null;for(const r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value)}return Number.isFinite(t)&&Number.isFinite(e)}}te.create=e=>new te({checks:[],typeName:ze.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...P(e)});class re extends D{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch(e){return this._getInvalidInput(t)}if(this._getType(t)!==o.bigint)return this._getInvalidInput(t);let r;const n=new f;for(const a of this._def.checks)"min"===a.kind?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),h(r,{code:s.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),n.dirty()):"max"===a.kind?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),h(r,{code:s.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),n.dirty()):"multipleOf"===a.kind?t.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),h(r,{code:s.not_multiple_of,multipleOf:a.value,message:a.message}),n.dirty()):e.assertNever(a);return{status:n.value,value:t.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return h(t,{code:s.invalid_type,expected:o.bigint,received:t.parsedType}),m}gte(e,t){return this.setLimit("min",e,!0,S.toString(t))}gt(e,t){return this.setLimit("min",e,!1,S.toString(t))}lte(e,t){return this.setLimit("max",e,!0,S.toString(t))}lt(e,t){return this.setLimit("max",e,!1,S.toString(t))}setLimit(e,t,r,n){return new re({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:S.toString(n)}]})}_addCheck(e){return new re({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:S.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:S.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:S.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:S.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:S.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}re.create=e=>{var t;return new re({checks:[],typeName:ze.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...P(e)})};class ne extends D{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==o.boolean){const t=this._getOrReturnCtx(e);return h(t,{code:s.invalid_type,expected:o.boolean,received:t.parsedType}),m}return v(e.data)}}ne.create=e=>new ne({typeName:ze.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...P(e)});class ae extends D{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==o.date){const e=this._getOrReturnCtx(t);return h(e,{code:s.invalid_type,expected:o.date,received:e.parsedType}),m}if(isNaN(t.data.getTime()))return h(this._getOrReturnCtx(t),{code:s.invalid_date}),m;const r=new f;let n;for(const a of this._def.checks)"min"===a.kind?t.data.getTime()<a.value&&(n=this._getOrReturnCtx(t,n),h(n,{code:s.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),r.dirty()):"max"===a.kind?t.data.getTime()>a.value&&(n=this._getOrReturnCtx(t,n),h(n,{code:s.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):e.assertNever(a);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(e){return new ae({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:S.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:S.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}ae.create=e=>new ae({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:ze.ZodDate,...P(e)});class oe extends D{_parse(e){if(this._getType(e)!==o.symbol){const t=this._getOrReturnCtx(e);return h(t,{code:s.invalid_type,expected:o.symbol,received:t.parsedType}),m}return v(e.data)}}oe.create=e=>new oe({typeName:ze.ZodSymbol,...P(e)});class ie extends D{_parse(e){if(this._getType(e)!==o.undefined){const t=this._getOrReturnCtx(e);return h(t,{code:s.invalid_type,expected:o.undefined,received:t.parsedType}),m}return v(e.data)}}ie.create=e=>new ie({typeName:ze.ZodUndefined,...P(e)});class se extends D{_parse(e){if(this._getType(e)!==o.null){const t=this._getOrReturnCtx(e);return h(t,{code:s.invalid_type,expected:o.null,received:t.parsedType}),m}return v(e.data)}}se.create=e=>new se({typeName:ze.ZodNull,...P(e)});class le extends D{constructor(){super(...arguments),this._any=!0}_parse(e){return v(e.data)}}le.create=e=>new le({typeName:ze.ZodAny,...P(e)});class ce extends D{constructor(){super(...arguments),this._unknown=!0}_parse(e){return v(e.data)}}ce.create=e=>new ce({typeName:ze.ZodUnknown,...P(e)});class ue extends D{_parse(e){const t=this._getOrReturnCtx(e);return h(t,{code:s.invalid_type,expected:o.never,received:t.parsedType}),m}}ue.create=e=>new ue({typeName:ze.ZodNever,...P(e)});class de extends D{_parse(e){if(this._getType(e)!==o.undefined){const t=this._getOrReturnCtx(e);return h(t,{code:s.invalid_type,expected:o.void,received:t.parsedType}),m}return v(e.data)}}de.create=e=>new de({typeName:ze.ZodVoid,...P(e)});class pe extends D{_parse(e){const{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==o.array)return h(t,{code:s.invalid_type,expected:o.array,received:t.parsedType}),m;if(null!==n.exactLength){const e=t.data.length>n.exactLength.value,a=t.data.length<n.exactLength.value;(e||a)&&(h(t,{code:e?s.too_big:s.too_small,minimum:a?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(h(t,{code:s.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(h(t,{code:s.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map(((e,r)=>n.type._parseAsync(new A(t,e,t.path,r))))).then((e=>f.mergeArray(r,e)));const a=[...t.data].map(((e,r)=>n.type._parseSync(new A(t,e,t.path,r))));return f.mergeArray(r,a)}get element(){return this._def.type}min(e,t){return new pe({...this._def,minLength:{value:e,message:S.toString(t)}})}max(e,t){return new pe({...this._def,maxLength:{value:e,message:S.toString(t)}})}length(e,t){return new pe({...this._def,exactLength:{value:e,message:S.toString(t)}})}nonempty(e){return this.min(1,e)}}function he(e){if(e instanceof fe){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=$e.create(he(n))}return new fe({...e._def,shape:()=>t})}return e instanceof pe?new pe({...e._def,type:he(e.element)}):e instanceof $e?$e.create(he(e.unwrap())):e instanceof Re?Re.create(he(e.unwrap())):e instanceof Oe?Oe.create(e.items.map((e=>he(e)))):e}pe.create=(e,t)=>new pe({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ze.ZodArray,...P(t)});class fe extends D{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const t=this._def.shape(),r=e.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(e){if(this._getType(e)!==o.object){const t=this._getOrReturnCtx(e);return h(t,{code:s.invalid_type,expected:o.object,received:t.parsedType}),m}const{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:a}=this._getCached(),i=[];if(!(this._def.catchall instanceof ue&&"strip"===this._def.unknownKeys))for(const e in r.data)a.includes(e)||i.push(e);const l=[];for(const e of a){const t=n[e],a=r.data[e];l.push({key:{status:"valid",value:e},value:t._parse(new A(r,a,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof ue){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of i)l.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)i.length>0&&(h(r,{code:s.unrecognized_keys,keys:i}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of i){const n=r.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new A(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of l){const r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e})).then((e=>f.mergeObjectSync(t,e))):f.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return S.errToObj,new fe({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var n,a,o,i;const s=null!==(o=null===(a=(n=this._def).errorMap)||void 0===a?void 0:a.call(n,t,r).message)&&void 0!==o?o:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(i=S.errToObj(e).message)&&void 0!==i?i:s}:{message:s}}}:{}})}strip(){return new fe({...this._def,unknownKeys:"strip"})}passthrough(){return new fe({...this._def,unknownKeys:"passthrough"})}extend(e){return new fe({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new fe({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ze.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new fe({...this._def,catchall:e})}pick(t){const r={};return e.objectKeys(t).forEach((e=>{t[e]&&this.shape[e]&&(r[e]=this.shape[e])})),new fe({...this._def,shape:()=>r})}omit(t){const r={};return e.objectKeys(this.shape).forEach((e=>{t[e]||(r[e]=this.shape[e])})),new fe({...this._def,shape:()=>r})}deepPartial(){return he(this)}partial(t){const r={};return e.objectKeys(this.shape).forEach((e=>{const n=this.shape[e];t&&!t[e]?r[e]=n:r[e]=n.optional()})),new fe({...this._def,shape:()=>r})}required(t){const r={};return e.objectKeys(this.shape).forEach((e=>{if(t&&!t[e])r[e]=this.shape[e];else{let t=this.shape[e];for(;t instanceof $e;)t=t._def.innerType;r[e]=t}})),new fe({...this._def,shape:()=>r})}keyof(){return Te(e.objectKeys(this.shape))}}fe.create=(e,t)=>new fe({shape:()=>e,unknownKeys:"strip",catchall:ue.create(),typeName:ze.ZodObject,...P(t)}),fe.strictCreate=(e,t)=>new fe({shape:()=>e,unknownKeys:"strict",catchall:ue.create(),typeName:ze.ZodObject,...P(t)}),fe.lazycreate=(e,t)=>new fe({shape:e,unknownKeys:"strip",catchall:ue.create(),typeName:ze.ZodObject,...P(t)});class me extends D{_parse(e){const{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map((async e=>{const r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const r=e.map((e=>new l(e.ctx.common.issues)));return h(t,{code:s.invalid_union,unionErrors:r}),m}));{let e;const n=[];for(const a of r){const r={...t,common:{...t.common,issues:[]},parent:null},o=a._parseSync({data:t.data,path:t.path,parent:r});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const a=n.map((e=>new l(e)));return h(t,{code:s.invalid_union,unionErrors:a}),m}}get options(){return this._def.options}}me.create=(e,t)=>new me({options:e,typeName:ze.ZodUnion,...P(t)});const ge=t=>t instanceof _e?ge(t.schema):t instanceof De?ge(t.innerType()):t instanceof Ee?[t.value]:t instanceof Ae?t.options:t instanceof Ce?e.objectValues(t.enum):t instanceof Me?ge(t._def.innerType):t instanceof ie?[void 0]:t instanceof se?[null]:t instanceof $e?[void 0,...ge(t.unwrap())]:t instanceof Re?[null,...ge(t.unwrap())]:t instanceof je||t instanceof Ue?ge(t.unwrap()):t instanceof Ne?ge(t._def.innerType):[];class ve extends D{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.object)return h(t,{code:s.invalid_type,expected:o.object,received:t.parsedType}),m;const r=this.discriminator,n=t.data[r],a=this.optionsMap.get(n);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):(h(t,{code:s.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),m)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){const n=new Map;for(const r of t){const t=ge(r.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const a of t){if(n.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);n.set(a,r)}}return new ve({typeName:ze.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...P(r)})}}function be(t,r){const n=i(t),a=i(r);if(t===r)return{valid:!0,data:t};if(n===o.object&&a===o.object){const n=e.objectKeys(r),a=e.objectKeys(t).filter((e=>-1!==n.indexOf(e))),o={...t,...r};for(const e of a){const n=be(t[e],r[e]);if(!n.valid)return{valid:!1};o[e]=n.data}return{valid:!0,data:o}}if(n===o.array&&a===o.array){if(t.length!==r.length)return{valid:!1};const e=[];for(let n=0;n<t.length;n++){const a=be(t[n],r[n]);if(!a.valid)return{valid:!1};e.push(a.data)}return{valid:!0,data:e}}return n===o.date&&a===o.date&&+t==+r?{valid:!0,data:t}:{valid:!1}}class ye extends D{_parse(e){const{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(b(e)||b(n))return m;const a=be(e.value,n.value);return a.valid?((y(e)||y(n))&&t.dirty(),{status:t.value,value:a.data}):(h(r,{code:s.invalid_intersection_types}),m)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then((([e,t])=>n(e,t))):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ye.create=(e,t,r)=>new ye({left:e,right:t,typeName:ze.ZodIntersection,...P(r)});class Oe extends D{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==o.array)return h(r,{code:s.invalid_type,expected:o.array,received:r.parsedType}),m;if(r.data.length<this._def.items.length)return h(r,{code:s.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m;!this._def.rest&&r.data.length>this._def.items.length&&(h(r,{code:s.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const n=[...r.data].map(((e,t)=>{const n=this._def.items[t]||this._def.rest;return n?n._parse(new A(r,e,r.path,t)):null})).filter((e=>!!e));return r.common.async?Promise.all(n).then((e=>f.mergeArray(t,e))):f.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new Oe({...this._def,rest:e})}}Oe.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Oe({items:e,typeName:ze.ZodTuple,rest:null,...P(t)})};class we extends D{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==o.object)return h(r,{code:s.invalid_type,expected:o.object,received:r.parsedType}),m;const n=[],a=this._def.keyType,i=this._def.valueType;for(const e in r.data)n.push({key:a._parse(new A(r,e,r.path,e)),value:i._parse(new A(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?f.mergeObjectAsync(t,n):f.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new we(t instanceof D?{keyType:e,valueType:t,typeName:ze.ZodRecord,...P(r)}:{keyType:J.create(),valueType:e,typeName:ze.ZodRecord,...P(t)})}}class xe extends D{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==o.map)return h(r,{code:s.invalid_type,expected:o.map,received:r.parsedType}),m;const n=this._def.keyType,a=this._def.valueType,i=[...r.data.entries()].map((([e,t],o)=>({key:n._parse(new A(r,e,r.path,[o,"key"])),value:a._parse(new A(r,t,r.path,[o,"value"]))})));if(r.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const r of i){const n=await r.key,a=await r.value;if("aborted"===n.status||"aborted"===a.status)return m;"dirty"!==n.status&&"dirty"!==a.status||t.dirty(),e.set(n.value,a.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const r of i){const n=r.key,a=r.value;if("aborted"===n.status||"aborted"===a.status)return m;"dirty"!==n.status&&"dirty"!==a.status||t.dirty(),e.set(n.value,a.value)}return{status:t.value,value:e}}}}xe.create=(e,t,r)=>new xe({valueType:t,keyType:e,typeName:ze.ZodMap,...P(r)});class ke extends D{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==o.set)return h(r,{code:s.invalid_type,expected:o.set,received:r.parsedType}),m;const n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(h(r,{code:s.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(h(r,{code:s.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());const a=this._def.valueType;function i(e){const r=new Set;for(const n of e){if("aborted"===n.status)return m;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}const l=[...r.data.values()].map(((e,t)=>a._parse(new A(r,e,r.path,t))));return r.common.async?Promise.all(l).then((e=>i(e))):i(l)}min(e,t){return new ke({...this._def,minSize:{value:e,message:S.toString(t)}})}max(e,t){return new ke({...this._def,maxSize:{value:e,message:S.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ke.create=(e,t)=>new ke({valueType:e,minSize:null,maxSize:null,typeName:ze.ZodSet,...P(t)});class Se extends D{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.function)return h(t,{code:s.invalid_type,expected:o.function,received:t.parsedType}),m;function r(e,r){return p({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),c].filter((e=>!!e)),issueData:{code:s.invalid_arguments,argumentsError:r}})}function n(e,r){return p({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),c].filter((e=>!!e)),issueData:{code:s.invalid_return_type,returnTypeError:r}})}const a={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof Pe){const e=this;return v((async function(...t){const o=new l([]),s=await e._def.args.parseAsync(t,a).catch((e=>{throw o.addIssue(r(t,e)),o})),c=await Reflect.apply(i,this,s);return await e._def.returns._def.type.parseAsync(c,a).catch((e=>{throw o.addIssue(n(c,e)),o}))}))}{const e=this;return v((function(...t){const o=e._def.args.safeParse(t,a);if(!o.success)throw new l([r(t,o.error)]);const s=Reflect.apply(i,this,o.data),c=e._def.returns.safeParse(s,a);if(!c.success)throw new l([n(s,c.error)]);return c.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Se({...this._def,args:Oe.create(e).rest(ce.create())})}returns(e){return new Se({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new Se({args:e||Oe.create([]).rest(ce.create()),returns:t||ce.create(),typeName:ze.ZodFunction,...P(r)})}}class _e extends D{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}_e.create=(e,t)=>new _e({getter:e,typeName:ze.ZodLazy,...P(t)});class Ee extends D{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return h(t,{received:t.data,code:s.invalid_literal,expected:this._def.value}),m}return{status:"valid",value:e.data}}get value(){return this._def.value}}function Te(e,t){return new Ae({values:e,typeName:ze.ZodEnum,...P(t)})}Ee.create=(e,t)=>new Ee({value:e,typeName:ze.ZodLiteral,...P(t)});class Ae extends D{constructor(){super(...arguments),E.set(this,void 0)}_parse(t){if("string"!=typeof t.data){const r=this._getOrReturnCtx(t),n=this._def.values;return h(r,{expected:e.joinValues(n),received:r.parsedType,code:s.invalid_type}),m}if(x(this,E)||k(this,E,new Set(this._def.values)),!x(this,E).has(t.data)){const e=this._getOrReturnCtx(t),r=this._def.values;return h(e,{received:e.data,code:s.invalid_enum_value,options:r}),m}return v(t.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Ae.create(e,{...this._def,...t})}exclude(e,t=this._def){return Ae.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}E=new WeakMap,Ae.create=Te;class Ce extends D{constructor(){super(...arguments),T.set(this,void 0)}_parse(t){const r=e.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==o.string&&n.parsedType!==o.number){const t=e.objectValues(r);return h(n,{expected:e.joinValues(t),received:n.parsedType,code:s.invalid_type}),m}if(x(this,T)||k(this,T,new Set(e.getValidEnumValues(this._def.values))),!x(this,T).has(t.data)){const t=e.objectValues(r);return h(n,{received:n.data,code:s.invalid_enum_value,options:t}),m}return v(t.data)}get enum(){return this._def.values}}T=new WeakMap,Ce.create=(e,t)=>new Ce({values:e,typeName:ze.ZodNativeEnum,...P(t)});class Pe extends D{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.promise&&!1===t.common.async)return h(t,{code:s.invalid_type,expected:o.promise,received:t.parsedType}),m;const r=t.parsedType===o.promise?t.data:Promise.resolve(t.data);return v(r.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}Pe.create=(e,t)=>new Pe({type:e,typeName:ze.ZodPromise,...P(t)});class De extends D{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ze.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:n}=this._processInputParams(t),a=this._def.effect||null,o={addIssue:e=>{h(n,e),e.fatal?r.abort():r.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),"preprocess"===a.type){const e=a.transform(n.data,o);if(n.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===r.value)return m;const t=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===t.status?m:"dirty"===t.status||"dirty"===r.value?g(t.value):t}));{if("aborted"===r.value)return m;const t=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===t.status?m:"dirty"===t.status||"dirty"===r.value?g(t.value):t}}if("refinement"===a.type){const e=e=>{const t=a.refinement(e,o);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const t=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===t.status?m:("dirty"===t.status&&r.dirty(),e(t.value),{status:r.value,value:t.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((t=>"aborted"===t.status?m:("dirty"===t.status&&r.dirty(),e(t.value).then((()=>({status:r.value,value:t.value}))))))}if("transform"===a.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!O(e))return e;const t=a.transform(e.value,o);if(t instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:t}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>O(e)?Promise.resolve(a.transform(e.value,o)).then((e=>({status:r.value,value:e}))):e))}e.assertNever(a)}}De.create=(e,t,r)=>new De({schema:e,typeName:ze.ZodEffects,effect:t,...P(r)}),De.createWithPreprocess=(e,t,r)=>new De({schema:t,effect:{type:"preprocess",transform:e},typeName:ze.ZodEffects,...P(r)});class $e extends D{_parse(e){return this._getType(e)===o.undefined?v(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}$e.create=(e,t)=>new $e({innerType:e,typeName:ze.ZodOptional,...P(t)});class Re extends D{_parse(e){return this._getType(e)===o.null?v(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Re.create=(e,t)=>new Re({innerType:e,typeName:ze.ZodNullable,...P(t)});class Me extends D{_parse(e){const{ctx:t}=this._processInputParams(e);let r=t.data;return t.parsedType===o.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Me.create=(e,t)=>new Me({innerType:e,typeName:ze.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...P(t)});class Ne extends D{_parse(e){const{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return w(n)?n.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new l(r.common.issues)},input:r.data})}))):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new l(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ne.create=(e,t)=>new Ne({innerType:e,typeName:ze.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...P(t)});class Ie extends D{_parse(e){if(this._getType(e)!==o.nan){const t=this._getOrReturnCtx(e);return h(t,{code:s.invalid_type,expected:o.nan,received:t.parsedType}),m}return{status:"valid",value:e.data}}}Ie.create=e=>new Ie({typeName:ze.ZodNaN,...P(e)});const Le=Symbol("zod_brand");class je extends D{_parse(e){const{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class Be extends D{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),g(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{const e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new Be({in:e,out:t,typeName:ze.ZodPipeline})}}class Ue extends D{_parse(e){const t=this._def.innerType._parse(e),r=e=>(O(e)&&(e.value=Object.freeze(e.value)),e);return w(t)?t.then((e=>r(e))):r(t)}unwrap(){return this._def.innerType}}function Fe(e,t={},r){return e?le.create().superRefine(((n,a)=>{var o,i;if(!e(n)){const e="function"==typeof t?t(n):"string"==typeof t?{message:t}:t,s=null===(i=null!==(o=e.fatal)&&void 0!==o?o:r)||void 0===i||i,l="string"==typeof e?{message:e}:e;a.addIssue({code:"custom",...l,fatal:s})}})):le.create()}Ue.create=(e,t)=>new Ue({innerType:e,typeName:ze.ZodReadonly,...P(t)});const Qe={object:fe.lazycreate};var ze,qe;(qe=ze||(ze={})).ZodString="ZodString",qe.ZodNumber="ZodNumber",qe.ZodNaN="ZodNaN",qe.ZodBigInt="ZodBigInt",qe.ZodBoolean="ZodBoolean",qe.ZodDate="ZodDate",qe.ZodSymbol="ZodSymbol",qe.ZodUndefined="ZodUndefined",qe.ZodNull="ZodNull",qe.ZodAny="ZodAny",qe.ZodUnknown="ZodUnknown",qe.ZodNever="ZodNever",qe.ZodVoid="ZodVoid",qe.ZodArray="ZodArray",qe.ZodObject="ZodObject",qe.ZodUnion="ZodUnion",qe.ZodDiscriminatedUnion="ZodDiscriminatedUnion",qe.ZodIntersection="ZodIntersection",qe.ZodTuple="ZodTuple",qe.ZodRecord="ZodRecord",qe.ZodMap="ZodMap",qe.ZodSet="ZodSet",qe.ZodFunction="ZodFunction",qe.ZodLazy="ZodLazy",qe.ZodLiteral="ZodLiteral",qe.ZodEnum="ZodEnum",qe.ZodEffects="ZodEffects",qe.ZodNativeEnum="ZodNativeEnum",qe.ZodOptional="ZodOptional",qe.ZodNullable="ZodNullable",qe.ZodDefault="ZodDefault",qe.ZodCatch="ZodCatch",qe.ZodPromise="ZodPromise",qe.ZodBranded="ZodBranded",qe.ZodPipeline="ZodPipeline",qe.ZodReadonly="ZodReadonly";const He=J.create,Ve=te.create,Ze=Ie.create,We=re.create,Xe=ne.create,Ge=ae.create,Ye=oe.create,Ke=ie.create,Je=se.create,et=le.create,tt=ce.create,rt=ue.create,nt=de.create,at=pe.create,ot=fe.create,it=fe.strictCreate,st=me.create,lt=ve.create,ct=ye.create,ut=Oe.create,dt=we.create,pt=xe.create,ht=ke.create,ft=Se.create,mt=_e.create,gt=Ee.create,vt=Ae.create,bt=Ce.create,yt=Pe.create,Ot=De.create,wt=$e.create,xt=Re.create,kt=De.createWithPreprocess,St=Be.create,_t={string:e=>J.create({...e,coerce:!0}),number:e=>te.create({...e,coerce:!0}),boolean:e=>ne.create({...e,coerce:!0}),bigint:e=>re.create({...e,coerce:!0}),date:e=>ae.create({...e,coerce:!0})},Et=m;var Tt=Object.freeze({__proto__:null,defaultErrorMap:c,setErrorMap:function(e){u=e},getErrorMap:d,makeIssue:p,EMPTY_PATH:[],addIssueToContext:h,ParseStatus:f,INVALID:m,DIRTY:g,OK:v,isAborted:b,isDirty:y,isValid:O,isAsync:w,get util(){return e},get objectUtil(){return r},ZodParsedType:o,getParsedType:i,ZodType:D,datetimeRegex:G,ZodString:J,ZodNumber:te,ZodBigInt:re,ZodBoolean:ne,ZodDate:ae,ZodSymbol:oe,ZodUndefined:ie,ZodNull:se,ZodAny:le,ZodUnknown:ce,ZodNever:ue,ZodVoid:de,ZodArray:pe,ZodObject:fe,ZodUnion:me,ZodDiscriminatedUnion:ve,ZodIntersection:ye,ZodTuple:Oe,ZodRecord:we,ZodMap:xe,ZodSet:ke,ZodFunction:Se,ZodLazy:_e,ZodLiteral:Ee,ZodEnum:Ae,ZodNativeEnum:Ce,ZodPromise:Pe,ZodEffects:De,ZodTransformer:De,ZodOptional:$e,ZodNullable:Re,ZodDefault:Me,ZodCatch:Ne,ZodNaN:Ie,BRAND:Le,ZodBranded:je,ZodPipeline:Be,ZodReadonly:Ue,custom:Fe,Schema:D,ZodSchema:D,late:Qe,get ZodFirstPartyTypeKind(){return ze},coerce:_t,any:et,array:at,bigint:We,boolean:Xe,date:Ge,discriminatedUnion:lt,effect:Ot,enum:vt,function:ft,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>Fe((t=>t instanceof e),t),intersection:ct,lazy:mt,literal:gt,map:pt,nan:Ze,nativeEnum:bt,never:rt,null:Je,nullable:xt,number:Ve,object:ot,oboolean:()=>Xe().optional(),onumber:()=>Ve().optional(),optional:wt,ostring:()=>He().optional(),pipeline:St,preprocess:kt,promise:yt,record:dt,set:ht,strictObject:it,string:He,symbol:Ye,transformer:Ot,tuple:ut,undefined:Ke,union:st,unknown:tt,void:nt,NEVER:Et,ZodIssueCode:s,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:l});const At=Tt.object({title:Tt.string().optional(),component:Tt.unknown(),props:Tt.record(Tt.any()).optional()}),Ct=Tt.object({"request.section":Tt.array(At).optional(),"response.section":Tt.array(At).optional()}),Pt=Tt.object({onBeforeRequest:Tt.function().args(Tt.object({request:Tt.instanceof(Request)})).returns(Tt.union([Tt.void(),Tt.promise(Tt.void())])).optional(),onResponseReceived:Tt.function().args(Tt.object({response:Tt.instanceof(Response),operation:Tt.record(Tt.any())})).returns(Tt.union([Tt.void(),Tt.promise(Tt.void())])).optional()}),Dt=Tt.function().returns(Tt.object({name:Tt.string(),views:Ct.optional(),hooks:Pt.optional()})),$t=Tt.object({name:Tt.string().regex(/^x-/),component:Tt.unknown(),renderer:Tt.unknown().optional()}),Rt=Tt.function().returns(Tt.object({name:Tt.string(),extensions:Tt.array($t)})),Mt=Tt.enum(["alternate","default","moon","purple","solarized","bluePlanet","deepSpace","saturn","kepler","elysiajs","fastify","mars","laserwave","none"]),Nt=Tt.enum(["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]),It=Tt.enum(["adonisjs","docusaurus","dotnet","elysiajs","express","fastapi","fastify","go","hono","html","laravel","litestar","nestjs","nextjs","nitro","nuxt","platformatic","react","rust","svelte","vue"]).nullable(),Lt=Tt.object({url:Tt.string().optional(),content:Tt.union([Tt.string(),Tt.record(Tt.any()),Tt.function().returns(Tt.record(Tt.any())),Tt.null()]).optional(),title:Tt.string().optional(),slug:Tt.string().optional()}),jt=Tt.object({basePath:Tt.string()}),Bt=Tt.object({url:Tt.string().optional(),content:Tt.union([Tt.string(),Tt.record(Tt.any()),Tt.function().returns(Tt.record(Tt.any())),Tt.null()]).optional(),title:Tt.string().optional(),slug:Tt.string().optional(),spec:Lt.optional(),authentication:Tt.any().optional(),baseServerURL:Tt.string().optional(),hideClientButton:Tt.boolean().optional().default(!1).catch(!1),proxyUrl:Tt.string().optional(),searchHotKey:Nt.optional(),servers:Tt.array(Tt.any()).optional(),showSidebar:Tt.boolean().optional().default(!0).catch(!0),theme:Mt.optional().default("default").catch("default"),_integration:It.optional(),onRequestSent:Tt.function().args(Tt.string()).returns(Tt.void()).optional(),persistAuth:Tt.boolean().optional().default(!1).catch(!1),plugins:Tt.array(Dt).optional()}),Ut=Bt.merge(Tt.object({layout:Tt.enum(["modern","classic"]).optional().default("modern").catch("modern"),proxy:Tt.string().optional(),plugins:Tt.array(Rt).optional(),isEditable:Tt.boolean().optional().default(!1).catch(!1),isLoading:Tt.boolean().optional().default(!1).catch(!1),hideModels:Tt.boolean().optional().default(!1).catch(!1),documentDownloadType:Tt.enum(["yaml","json","both","none"]).optional().default("both").catch("both"),hideDownloadButton:Tt.boolean().optional(),hideTestRequestButton:Tt.boolean().optional().default(!1).catch(!1),hideSearch:Tt.boolean().optional().default(!1).catch(!1),darkMode:Tt.boolean().optional(),forceDarkModeState:Tt.enum(["dark","light"]).optional(),hideDarkModeToggle:Tt.boolean().optional().default(!1).catch(!1),metaData:Tt.any().optional(),favicon:Tt.string().optional(),hiddenClients:Tt.union([Tt.record(Tt.union([Tt.boolean(),Tt.array(Tt.string())])),Tt.array(Tt.string()),Tt.literal(!0)]).optional(),defaultHttpClient:Tt.object({targetKey:Tt.custom(),clientKey:Tt.string()}).optional(),customCss:Tt.string().optional(),onSpecUpdate:Tt.function().args(Tt.string()).returns(Tt.void()).optional(),onServerChange:Tt.function().args(Tt.string()).returns(Tt.void()).optional(),onDocumentSelect:Tt.function().returns(Tt.void().or(Tt.void().promise())).optional(),onLoaded:Tt.function().returns(Tt.void().or(Tt.void().promise())).optional(),onBeforeRequest:Tt.function().args(Tt.object({request:Tt.instanceof(Request)})).returns(Tt.void().or(Tt.void().promise())).optional(),onShowMore:Tt.function().args(Tt.string()).returns(Tt.void().or(Tt.void().promise())).optional(),onSidebarClick:Tt.function().args(Tt.string()).returns(Tt.void().or(Tt.void().promise())).optional(),pathRouting:jt.optional(),generateHeadingSlug:Tt.function().args(Tt.object({slug:Tt.string().default("headingSlug")})).returns(Tt.string()).optional(),generateModelSlug:Tt.function().args(Tt.object({name:Tt.string().default("modelName")})).returns(Tt.string()).optional(),generateTagSlug:Tt.function().args(Tt.object({name:Tt.string().default("tagName")})).returns(Tt.string()).optional(),generateOperationSlug:Tt.function().args(Tt.object({path:Tt.string(),operationId:Tt.string().optional(),method:Tt.string(),summary:Tt.string().optional()})).returns(Tt.string()).optional(),generateWebhookSlug:Tt.function().args(Tt.object({name:Tt.string(),method:Tt.string().optional()})).returns(Tt.string()).optional(),redirect:Tt.function().args(Tt.string()).returns(Tt.string().nullable().optional()).optional(),withDefaultFonts:Tt.boolean().optional().default(!0).catch(!0),defaultOpenAllTags:Tt.boolean().optional(),tagsSorter:Tt.union([Tt.literal("alpha"),Tt.function().args(Tt.any(),Tt.any()).returns(Tt.number())]).optional(),operationsSorter:Tt.union([Tt.literal("alpha"),Tt.literal("method"),Tt.function().args(Tt.any(),Tt.any()).returns(Tt.number())]).optional()})),Ft="https://api.scalar.com/request-proxy",Qt="https://proxy.scalar.com",zt=Ut.transform((e=>{var t,r;const n={...e};return n.hideDownloadButton&&(console.warn("[DEPRECATED] You're using the deprecated 'hideDownloadButton' attribute. Use 'documentDownloadType: 'none'' instead."),n.documentDownloadType="none"),(null==(t=n.spec)?void 0:t.url)&&(console.warn("[DEPRECATED] You're using the deprecated 'spec.url' attribute. Remove the spec prefix and move the 'url' attribute to the top level."),n.url=n.spec.url,delete n.spec),(null==(r=n.spec)?void 0:r.content)&&(console.warn("[DEPRECATED] You're using the deprecated 'spec.content' attribute. Remove the spec prefix and move the 'content' attribute to the top level."),n.content=n.spec.content,delete n.spec),n.proxy&&(console.warn("[DEPRECATED] You're using the deprecated 'proxy' attribute, rename it to 'proxyUrl' or update the package."),n.proxyUrl||(n.proxyUrl=n.proxy),delete n.proxy),n.proxyUrl===Ft&&(console.warn(`[DEPRECATED] Warning: configuration.proxyUrl points to our old proxy (${Ft}).`),console.warn(`[DEPRECATED] We are overwriting the value and use the new proxy URL (${Qt}) instead.`),console.warn(`[DEPRECATED] Action Required: You should manually update your configuration to use the new URL (${Qt}). Read more: https://github.com/scalar/scalar`),n.proxyUrl=Qt),n})),qt=e=>Boolean(!Array.isArray(e)&&e&&"sources"in e&&Array.isArray(e.sources));function Ht(e,t){const r=[],n=t.resolveKeyData||(e=>e.key),a=t.resolveValueData||(e=>e.value);for(const[o,i]of Object.entries(e))r.push(...(Array.isArray(i)?i:[i]).map((e=>{const r={key:o,value:e},i=a(r);return"object"==typeof i?Ht(i,t):Array.isArray(i)?i:{["function"==typeof t.key?t.key(r):t.key]:n(r),["function"==typeof t.value?t.value(r):t.value]:i}})).flat());return r}function Vt(e,t){return Object.entries(e).map((([e,r])=>{if("object"==typeof r&&(r=Vt(r,t)),t.resolve){const n=t.resolve({key:e,value:r});if(void 0!==n)return n}return"number"==typeof r&&(r=r.toString()),"string"==typeof r&&t.wrapValue&&(r=r.replace(new RegExp(t.wrapValue,"g"),`\\${t.wrapValue}`),r=`${t.wrapValue}${r}${t.wrapValue}`),`${e}${t.keyValueSeparator||""}${r}`})).join(t.entrySeparator||"")}Tt.object({cdn:Tt.string().optional().default("https://cdn.jsdelivr.net/npm/@scalar/api-reference"),pageTitle:Tt.string().optional().default("Scalar API Reference")});const Zt=new Set(["title","titleTemplate","script","style","noscript"]),Wt=new Set(["base","meta","link","style","script","noscript"]),Xt=new Set(["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),Gt=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),Yt=new Set(["tagPosition","tagPriority","tagDuplicateStrategy","children","innerHTML","textContent","processTemplateParams"]),Kt="undefined"!=typeof window;function Jt(e){let t=9;for(let r=0;r<e.length;)t=Math.imul(t^e.charCodeAt(r++),9**9);return(65536+(t^t>>>9)).toString(16).substring(1,8).toLowerCase()}function er(e){if(e._h)return e._h;if(e._d)return Jt(e._d);let t=`${e.tag}:${e.textContent||e.innerHTML||""}:`;for(const r in e.props)t+=`${r}:${String(e.props[r])},`;return Jt(t)}const tr=e=>({keyValue:e,metaKey:"property"}),rr=e=>({keyValue:e}),nr={appleItunesApp:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>`${ir(e)}=${t}`}},articleExpirationTime:tr("article:expiration_time"),articleModifiedTime:tr("article:modified_time"),articlePublishedTime:tr("article:published_time"),bookReleaseDate:tr("book:release_date"),charset:{metaKey:"charset"},contentSecurityPolicy:{unpack:{entrySeparator:"; ",resolve:({key:e,value:t})=>`${ir(e)} ${t}`},metaKey:"http-equiv"},contentType:{metaKey:"http-equiv"},defaultStyle:{metaKey:"http-equiv"},fbAppId:tr("fb:app_id"),msapplicationConfig:rr("msapplication-Config"),msapplicationTileColor:rr("msapplication-TileColor"),msapplicationTileImage:rr("msapplication-TileImage"),ogAudioSecureUrl:tr("og:audio:secure_url"),ogAudioUrl:tr("og:audio"),ogImageSecureUrl:tr("og:image:secure_url"),ogImageUrl:tr("og:image"),ogSiteName:tr("og:site_name"),ogVideoSecureUrl:tr("og:video:secure_url"),ogVideoUrl:tr("og:video"),profileFirstName:tr("profile:first_name"),profileLastName:tr("profile:last_name"),profileUsername:tr("profile:username"),refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve({key:e,value:t}){if("seconds"===e)return`${t}`}}},robots:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>"boolean"==typeof t?`${ir(e)}`:`${ir(e)}:${t}`}},xUaCompatible:{metaKey:"http-equiv"}},ar=new Set(["og","book","article","profile"]);function or(e){var t;const r=ir(e),n=r.indexOf(":");return ar.has(r.substring(0,n))?"property":(null==(t=nr[e])?void 0:t.metaKey)||"name"}function ir(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),r=t.indexOf("-"),n=t.substring(0,r);return"twitter"===n||ar.has(n)?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function sr(e){if(Array.isArray(e))return e.map((e=>sr(e)));if("object"!=typeof e||Array.isArray(e))return e;const t={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[ir(r)]=sr(e[r]));return t}function lr(e,t){const r=nr[t];return"refresh"===t?`${e.seconds};url=${e.url}`:Vt(sr(e),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:e,key:t})=>null===e?"":"boolean"==typeof e?`${t}`:void 0,...null==r?void 0:r.unpack})}const cr=new Set(["og:image","og:video","og:audio","twitter:image"]);function ur(e){const t={};for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const n=e[r];"false"!==String(n)&&r&&(t[r]=n)}return t}function dr(e,t){const r=ur(t),n=ir(e),a=or(n);if(cr.has(n)){const t={};for(const n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[`${e}${"url"===n?"":`${n[0].toUpperCase()}${n.slice(1)}`}`]=r[n]);return pr(t).sort(((e,t)=>{var r,n;return((null==(r=e[a])?void 0:r.length)||0)-((null==(n=t[a])?void 0:n.length)||0)}))}return[{[a]:n,...r}]}function pr(e){const t=[],r={};for(const n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const a=e[n];if(Array.isArray(a))for(const e of a)t.push(..."string"==typeof e?pr({[n]:e}):dr(n,e));else if("object"==typeof a&&a){if(cr.has(ir(n))){t.push(...dr(n,a));continue}r[n]=ur(a)}else r[n]=a}const n=Ht(r,{key:({key:e})=>or(e),value:({key:e})=>"charset"===e?"charset":"content",resolveKeyData:({key:e})=>function(e){var t;return(null==(t=nr[e])?void 0:t.keyValue)||ir(e)}(e),resolveValueData:({value:e,key:t})=>null===e?"_null":"object"==typeof e?lr(e,t):"number"==typeof e?e.toString():e});return[...t,...n].map((e=>("_null"===e.content&&(e.content=null),e)))}function hr(e,t,r,n){const a=n||gr("object"!=typeof t||"function"==typeof t||t instanceof Promise?{["script"===e||"noscript"===e||"style"===e?"innerHTML":"textContent"]:t}:{...t},"templateParams"===e||"titleTemplate"===e);if(a instanceof Promise)return a.then((n=>hr(e,t,r,n)));const o={tag:e,props:a};for(const e of Yt){const t=void 0!==o.props[e]?o.props[e]:r[e];void 0!==t&&(("innerHTML"!==e&&"textContent"!==e&&"children"!==e||Zt.has(o.tag))&&(o["children"===e?"innerHTML":e]=t),delete o.props[e])}return o.props.body&&(o.tagPosition="bodyClose",delete o.props.body),"script"===o.tag&&"object"==typeof o.innerHTML&&(o.innerHTML=JSON.stringify(o.innerHTML),o.props.type=o.props.type||"application/json"),Array.isArray(o.props.content)?o.props.content.map((e=>({...o,props:{...o.props,content:e}}))):o}function fr(e,t){var r;const n="class"===e?" ":";";return t&&"object"==typeof t&&!Array.isArray(t)&&(t=Object.entries(t).filter((([,e])=>e)).map((([t,r])=>"style"===e?`${t}:${r}`:t))),null==(r=String(Array.isArray(t)?t.join(n):t))?void 0:r.split(n).filter((e=>Boolean(e.trim()))).join(n)}function mr(e,t,r,n){for(let a=n;a<r.length;a+=1){const n=r[a];if("class"!==n&&"style"!==n){if(e[n]instanceof Promise)return e[n].then((o=>(e[n]=o,mr(e,t,r,a))));if(!t&&!Yt.has(n)){const t=String(e[n]),r=n.startsWith("data-");"true"===t||""===t?e[n]=!r||"true":e[n]||(r&&"false"===t?e[n]="false":delete e[n])}}else e[n]=fr(n,e[n])}}function gr(e,t=!1){const r=mr(e,t,Object.keys(e),0);return r instanceof Promise?r.then((()=>e)):e}function vr(e,t,r){for(let n=r;n<t.length;n+=1){const r=t[n];if(r instanceof Promise)return r.then((r=>(t[n]=r,vr(e,t,n))));Array.isArray(r)?e.push(...r):e.push(r)}}function br(e){const t=[],r=e.resolvedInput;for(const n in r){if(!Object.prototype.hasOwnProperty.call(r,n))continue;const a=r[n];if(void 0!==a&&Xt.has(n))if(Array.isArray(a))for(const r of a)t.push(hr(n,r,e));else t.push(hr(n,a,e))}if(0===t.length)return[];const n=[];return o=()=>n.map(((t,r)=>(t._e=e._i,e.mode&&(t._m=e.mode),t._p=(e._i<<10)+r,t))),(a=vr(n,t,0))instanceof Promise?a.then(o):o();var a,o}const yr=new Set(["onload","onerror","onabort","onprogress","onloadstart"]),Or={base:-10,title:10},wr={critical:-80,high:-10,low:20};function xr(e){const t=e.tagPriority;if("number"==typeof t)return t;let r=100;return"meta"===e.tag?"content-security-policy"===e.props["http-equiv"]?r=-30:e.props.charset?r=-20:"viewport"===e.props.name&&(r=-15):"link"===e.tag&&"preconnect"===e.props.rel?r=20:e.tag in Or&&(r=Or[e.tag]),t&&t in wr?r+wr[t]:r}const kr=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],Sr=["name","property","http-equiv"];function _r(e){const{props:t,tag:r}=e;if(Gt.has(r))return r;if("link"===r&&"canonical"===t.rel)return"canonical";if(t.charset)return"charset";if(t.id)return`${r}:id:${t.id}`;for(const e of Sr)if(void 0!==t[e])return`${r}:${e}:${t[e]}`;return!1}const Er="%separator",Tr=new RegExp(`${Er}(?:\\s*${Er})*`,"g");function Ar(e,t,r,n=!1){if("string"!=typeof e||!e.includes("%"))return e;let a=e;try{a=decodeURI(e)}catch{}const o=a.match(/%\w+(?:\.\w+)?/g);if(!o)return e;const i=e.includes(Er);return e=e.replace(/%\w+(?:\.\w+)?/g,(e=>{if(e===Er||!o.includes(e))return e;const r=function(e,t,r=!1){var n;let a;if("s"===t||"pageTitle"===t)a=e.pageTitle;else if(t.includes(".")){const r=t.indexOf(".");a=null==(n=e[t.substring(0,r)])?void 0:n[t.substring(r+1)]}else a=e[t];if(void 0!==a)return r?(a||"").replace(/"/g,'\\"'):a||""}(t,e.slice(1),n);return void 0!==r?r:e})).trim(),i&&(e.endsWith(Er)&&(e=e.slice(0,-10)),e.startsWith(Er)&&(e=e.slice(10)),e=e.replace(Tr,r).trim()),e}function Cr(e,t){return null==e?t||null:"function"==typeof e?e(t):e}function Pr(e){return t=>{var r,n;const a=(null==(n=null==(r=t.resolvedOptions.document)?void 0:r.head.querySelector('script[id="unhead:payload"]'))?void 0:n.innerHTML)||!1;return a&&t.push(JSON.parse(a)),{mode:"client",hooks:{"entries:updated":t=>{!function(e,t={}){const r=t.delayFn||(e=>setTimeout(e,10));e._domDebouncedUpdatePromise=e._domDebouncedUpdatePromise||new Promise((n=>r((()=>async function(e,t={}){const r=t.document||e.resolvedOptions.document;if(!r||!e.dirty)return;const n={shouldRender:!0,tags:[]};return await e.hooks.callHook("dom:beforeRender",n),n.shouldRender?(e._domUpdatePromise||(e._domUpdatePromise=new Promise((async t=>{var n;const a=(await e.resolveTags()).map((e=>({tag:e,id:Wt.has(e.tag)?er(e):e.tag,shouldRender:!0})));let o=e._dom;if(!o){o={elMap:{htmlAttrs:r.documentElement,bodyAttrs:r.body}};const e=new Set;for(const t of["body","head"]){const a=null==(n=r[t])?void 0:n.children;for(const t of a){const r=t.tagName.toLowerCase();if(!Wt.has(r))continue;const n={tag:r,props:await gr(t.getAttributeNames().reduce(((e,r)=>({...e,[r]:t.getAttribute(r)})),{})),innerHTML:t.innerHTML},a=_r(n);let i=a,s=1;for(;i&&e.has(i);)i=`${a}:${s++}`;i&&(n._d=i,e.add(i)),o.elMap[t.getAttribute("data-hid")||er(n)]=t}}}function i(e,t,r){const n=`${e}:${t}`;o.sideEffects[n]=r,delete o.pendingSideEffects[n]}function s({id:e,$el:t,tag:n}){const a=n.tag.endsWith("Attrs");if(o.elMap[e]=t,a||(n.textContent&&n.textContent!==t.textContent&&(t.textContent=n.textContent),n.innerHTML&&n.innerHTML!==t.innerHTML&&(t.innerHTML=n.innerHTML),i(e,"el",(()=>{var t;null==(t=o.elMap[e])||t.remove(),delete o.elMap[e]}))),n._eventHandlers)for(const e in n._eventHandlers)Object.prototype.hasOwnProperty.call(n._eventHandlers,e)&&""!==t.getAttribute(`data-${e}`)&&(("bodyAttrs"===n.tag?r.defaultView:t).addEventListener(e.substring(2),n._eventHandlers[e].bind(t)),t.setAttribute(`data-${e}`,""));for(const r in n.props){if(!Object.prototype.hasOwnProperty.call(n.props,r))continue;const o=n.props[r],s=`attr:${r}`;if("class"===r){if(!o)continue;for(const r of o.split(" "))a&&i(e,`${s}:${r}`,(()=>t.classList.remove(r))),!t.classList.contains(r)&&t.classList.add(r)}else if("style"===r){if(!o)continue;for(const r of o.split(";")){const n=r.indexOf(":"),a=r.substring(0,n).trim(),o=r.substring(n+1).trim();i(e,`${s}:${a}`,(()=>{t.style.removeProperty(a)})),t.style.setProperty(a,o)}}else t.getAttribute(r)!==o&&t.setAttribute(r,!0===o?"":String(o)),a&&i(e,s,(()=>t.removeAttribute(r)))}}o.pendingSideEffects={...o.sideEffects},o.sideEffects={};const l=[],c={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const e of a){const{tag:t,shouldRender:n,id:a}=e;n&&("title"!==t.tag?(e.$el=e.$el||o.elMap[a],e.$el?s(e):Wt.has(t.tag)&&l.push(e)):r.title=t.textContent)}for(const e of l){const t=e.tag.tagPosition||"head";e.$el=r.createElement(e.tag.tag),s(e),c[t]=c[t]||r.createDocumentFragment(),c[t].appendChild(e.$el)}for(const t of a)await e.hooks.callHook("dom:renderTag",t,r,i);c.head&&r.head.appendChild(c.head),c.bodyOpen&&r.body.insertBefore(c.bodyOpen,r.body.firstChild),c.bodyClose&&r.body.appendChild(c.bodyClose);for(const e in o.pendingSideEffects)o.pendingSideEffects[e]();e._dom=o,await e.hooks.callHook("dom:rendered",{renders:a}),t()})).finally((()=>{e._domUpdatePromise=void 0,e.dirty=!1}))),e._domUpdatePromise):void 0}(e,t).then((()=>{delete e._domDebouncedUpdatePromise,n()}))))))}(t,e)}}}}}function Dr(e,t={},r){for(const n in e){const a=e[n],o=r?`${r}:${n}`:n;"object"==typeof a&&null!==a?Dr(a,t,o):"function"==typeof a&&(t[o]=a)}return t}const $r={run:e=>e()},Rr=void 0!==console.createTask?console.createTask:()=>$r;function Mr(e,t){const r=t.shift(),n=Rr(r);return e.reduce(((e,r)=>e.then((()=>n.run((()=>r(...t)))))),Promise.resolve())}function Nr(e,t){const r=t.shift(),n=Rr(r);return Promise.all(e.map((e=>n.run((()=>e(...t))))))}function Ir(e,t){for(const r of[...e])r(t)}class Lr{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,r={}){if(!e||"function"!=typeof t)return()=>{};const n=e;let a;for(;this._deprecatedHooks[e];)a=this._deprecatedHooks[e],e=a.to;if(a&&!r.allowDeprecated){let e=a.message;e||(e=`${n} hook has been deprecated`+(a.to?`, please use ${a.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let r,n=(...e)=>("function"==typeof r&&r(),r=void 0,n=void 0,t(...e));return r=this.hook(e,n),r}removeHook(e,t){if(this._hooks[e]){const r=this._hooks[e].indexOf(t);-1!==r&&this._hooks[e].splice(r,1),0===this._hooks[e].length&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]="string"==typeof t?{to:t}:t;const r=this._hooks[e]||[];delete this._hooks[e];for(const t of r)this.hook(e,t)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=Dr(e),r=Object.keys(t).map((e=>this.hook(e,t[e])));return()=>{for(const e of r.splice(0,r.length))e()}}removeHooks(e){const t=Dr(e);for(const e in t)this.removeHook(e,t[e])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith(Mr,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(Nr,e,...t)}callHookWith(e,t,...r){const n=this._before||this._after?{name:t,args:r,context:{}}:void 0;this._before&&Ir(this._before,n);const a=e(t in this._hooks?[...this._hooks[t]]:[],r);return a instanceof Promise?a.finally((()=>{this._after&&n&&Ir(this._after,n)})):(this._after&&n&&Ir(this._after,n),a)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(void 0!==this._before){const t=this._before.indexOf(e);-1!==t&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(void 0!==this._after){const t=this._after.indexOf(e);-1!==t&&this._after.splice(t,1)}}}}const jr=new Set(["templateParams","htmlAttrs","bodyAttrs"]),Br={hooks:{"tag:normalise":({tag:e})=>{e.props.hid&&(e.key=e.props.hid,delete e.props.hid),e.props.vmid&&(e.key=e.props.vmid,delete e.props.vmid),e.props.key&&(e.key=e.props.key,delete e.props.key);const t=_r(e);!t||t.startsWith("meta:og:")||t.startsWith("meta:twitter:")||delete e.key;const r=t||!!e.key&&`${e.tag}:${e.key}`;r&&(e._d=r)},"tags:resolve":e=>{const t=Object.create(null);for(const r of e.tags){const e=(r.key?`${r.tag}:${r.key}`:r._d)||er(r),n=t[e];if(n){let a=null==r?void 0:r.tagDuplicateStrategy;if(!a&&jr.has(r.tag)&&(a="merge"),"merge"===a){const a=n.props;a.style&&r.props.style&&(";"!==a.style[a.style.length-1]&&(a.style+=";"),r.props.style=`${a.style} ${r.props.style}`),a.class&&r.props.class?r.props.class=`${a.class} ${r.props.class}`:a.class&&(r.props.class=a.class),t[e].props={...a,...r.props};continue}if(r._e===n._e){n._duped=n._duped||[],r._d=`${n._d}:${n._duped.length+1}`,n._duped.push(r);continue}if(xr(r)>xr(n))continue}r.innerHTML||r.textContent||0!==Object.keys(r.props).length||!Wt.has(r.tag)?t[e]=r:delete t[e]}const r=[];for(const e in t){const n=t[e],a=n._duped;r.push(n),a&&(delete n._duped,r.push(...a))}e.tags=r,e.tags=e.tags.filter((e=>!("meta"===e.tag&&(e.props.name||e.props.property)&&!e.props.content)))}}},Ur=new Set(["script","link","bodyAttrs"]),Fr=e=>({hooks:{"tags:resolve":t=>{for(const r of t.tags){if(!Ur.has(r.tag))continue;const t=r.props;for(const n in t){if("o"!==n[0]||"n"!==n[1])continue;if(!Object.prototype.hasOwnProperty.call(t,n))continue;const a=t[n];"function"==typeof a&&(e.ssr&&yr.has(n)?t[n]=`this.dataset.${n}fired = true`:delete t[n],r._eventHandlers=r._eventHandlers||{},r._eventHandlers[n]=a)}e.ssr&&r._eventHandlers&&(r.props.src||r.props.href)&&(r.key=r.key||Jt(r.props.src||r.props.href))}},"dom:renderTag":({$el:e,tag:t})=>{var r,n;const a=null==e?void 0:e.dataset;if(a)for(const o in a){if(!o.endsWith("fired"))continue;const a=o.slice(0,-5);yr.has(a)&&(null==(n=null==(r=t._eventHandlers)?void 0:r[a])||n.call(e,new Event(a.substring(2))))}}}}),Qr=new Set(["link","style","script","noscript"]),zr={hooks:{"tag:normalise":({tag:e})=>{e.key&&Qr.has(e.tag)&&(e.props["data-hid"]=e._h=Jt(e.key))}}},qr={mode:"server",hooks:{"tags:beforeResolve":e=>{const t={};let r=!1;for(const n of e.tags)"server"!==n._m||"titleTemplate"!==n.tag&&"templateParams"!==n.tag&&"title"!==n.tag||(t[n.tag]="title"===n.tag||"titleTemplate"===n.tag?n.textContent:n.props,r=!0);r&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},Hr={hooks:{"tags:resolve":e=>{var t;for(const r of e.tags)if("string"==typeof r.tagPriority)for(const{prefix:n,offset:a}of kr){if(!r.tagPriority.startsWith(n))continue;const o=r.tagPriority.substring(n.length),i=null==(t=e.tags.find((e=>e._d===o)))?void 0:t._p;if(void 0!==i){r._p=i+a;break}}e.tags.sort(((e,t)=>{const r=xr(e),n=xr(t);return r<n?-1:r>n?1:e._p-t._p}))}}},Vr={meta:"content",link:"href",htmlAttrs:"lang"},Zr=["innerHTML","textContent"],Wr=e=>({hooks:{"tags:resolve":t=>{var r;const{tags:n}=t;let a;for(let e=0;e<n.length;e+=1)"templateParams"===n[e].tag&&(a=t.tags.splice(e,1)[0].props,e-=1);const o=a||{},i=o.separator||"|";delete o.separator,o.pageTitle=Ar(o.pageTitle||(null==(r=n.find((e=>"title"===e.tag)))?void 0:r.textContent)||"",o,i);for(const e of n){if(!1===e.processTemplateParams)continue;const t=Vr[e.tag];if(t&&"string"==typeof e.props[t])e.props[t]=Ar(e.props[t],o,i);else if(e.processTemplateParams||"titleTemplate"===e.tag||"title"===e.tag)for(const t of Zr)"string"==typeof e[t]&&(e[t]=Ar(e[t],o,i,"script"===e.tag&&e.props.type.endsWith("json")))}e._templateParams=o,e._separator=i},"tags:afterResolve":({tags:t})=>{let r;for(let e=0;e<t.length;e+=1){const n=t[e];"title"===n.tag&&!1!==n.processTemplateParams&&(r=n)}(null==r?void 0:r.textContent)&&(r.textContent=Ar(r.textContent,e._templateParams,e._separator))}}}),Xr={hooks:{"tags:resolve":e=>{const{tags:t}=e;let r,n;for(let e=0;e<t.length;e+=1){const a=t[e];"title"===a.tag?r=a:"titleTemplate"===a.tag&&(n=a)}if(n&&r){const t=Cr(n.textContent,r.textContent);null!==t?r.textContent=t||r.textContent:e.tags.splice(e.tags.indexOf(r),1)}else if(n){const e=Cr(n.textContent);null!==e&&(n.textContent=e,n.tag="title",n=void 0)}n&&e.tags.splice(e.tags.indexOf(n),1)}}},Gr={hooks:{"tags:afterResolve":e=>{for(const t of e.tags)"string"==typeof t.innerHTML&&(!t.innerHTML||"application/ld+json"!==t.props.type&&"application/json"!==t.props.type?t.innerHTML=t.innerHTML.replace(new RegExp(`</${t.tag}`,"g"),`<\\/${t.tag}`):t.innerHTML=t.innerHTML.replace(/</g,"\\u003C"))}}};let Yr;function Kr(e,t){return!e||"server"===e&&t||"client"===e&&!t}
|
||
/**
|
||
* @vue/shared v3.5.17
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/
|
||
/*! #__NO_SIDE_EFFECTS__ */function Jr(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return e=>e in t}const en={},tn=[],rn=()=>{},nn=()=>!1,an=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),on=e=>e.startsWith("onUpdate:"),sn=Object.assign,ln=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},cn=Object.prototype.hasOwnProperty,un=(e,t)=>cn.call(e,t),dn=Array.isArray,pn=e=>"[object Map]"===wn(e),hn=e=>"[object Set]"===wn(e),fn=e=>"[object Date]"===wn(e),mn=e=>"function"==typeof e,gn=e=>"string"==typeof e,vn=e=>"symbol"==typeof e,bn=e=>null!==e&&"object"==typeof e,yn=e=>(bn(e)||mn(e))&&mn(e.then)&&mn(e.catch),On=Object.prototype.toString,wn=e=>On.call(e),xn=e=>"[object Object]"===wn(e),kn=e=>gn(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,Sn=Jr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),_n=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},En=/-(\w)/g,Tn=_n((e=>e.replace(En,((e,t)=>t?t.toUpperCase():"")))),An=/\B([A-Z])/g,Cn=_n((e=>e.replace(An,"-$1").toLowerCase())),Pn=_n((e=>e.charAt(0).toUpperCase()+e.slice(1))),Dn=_n((e=>e?`on${Pn(e)}`:"")),$n=(e,t)=>!Object.is(e,t),Rn=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},Mn=(e,t,r,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},Nn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let In;const Ln=()=>In||(In="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function jn(e){if(dn(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],a=gn(n)?Qn(n):jn(n);if(a)for(const e in a)t[e]=a[e]}return t}if(gn(e)||bn(e))return e}const Bn=/;(?![^(]*\))/g,Un=/:([^]+)/,Fn=/\/\*[^]*?\*\//g;function Qn(e){const t={};return e.replace(Fn,"").split(Bn).forEach((e=>{if(e){const r=e.split(Un);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}function zn(e){let t="";if(gn(e))t=e;else if(dn(e))for(let r=0;r<e.length;r++){const n=zn(e[r]);n&&(t+=n+" ")}else if(bn(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function qn(e){if(!e)return null;let{class:t,style:r}=e;return t&&!gn(t)&&(e.class=zn(t)),r&&(e.style=jn(r)),e}const Hn=Jr("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Vn(e){return!!e||""===e}function Zn(e,t){if(e===t)return!0;let r=fn(e),n=fn(t);if(r||n)return!(!r||!n)&&e.getTime()===t.getTime();if(r=vn(e),n=vn(t),r||n)return e===t;if(r=dn(e),n=dn(t),r||n)return!(!r||!n)&&function(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=Zn(e[n],t[n]);return r}(e,t);if(r=bn(e),n=bn(t),r||n){if(!r||!n)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e){const n=e.hasOwnProperty(r),a=t.hasOwnProperty(r);if(n&&!a||!n&&a||!Zn(e[r],t[r]))return!1}}return String(e)===String(t)}function Wn(e,t){return e.findIndex((e=>Zn(e,t)))}const Xn=e=>!(!e||!0!==e.__v_isRef),Gn=e=>gn(e)?e:null==e?"":dn(e)||bn(e)&&(e.toString===On||!mn(e.toString))?Xn(e)?Gn(e.value):JSON.stringify(e,Yn,2):String(e),Yn=(e,t)=>Xn(t)?Yn(e,t.value):pn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,r],n)=>(e[Kn(t,n)+" =>"]=r,e)),{})}:hn(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>Kn(e)))}:vn(t)?Kn(t):!bn(t)||dn(t)||xn(t)?t:String(t),Kn=(e,t="")=>{var r;return vn(e)?`Symbol(${null!=(r=e.description)?r:t})`:e};
|
||
/**
|
||
* @vue/reactivity v3.5.17
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let Jn,ea;class ta{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Jn,!e&&Jn&&(this.index=(Jn.scopes||(Jn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=Jn;try{return Jn=this,e()}finally{Jn=t}}}on(){1==++this._on&&(this.prevScope=Jn,Jn=this)}off(){this._on>0&&0==--this._on&&(Jn=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,r;for(this._active=!1,t=0,r=this.effects.length;t<r;t++)this.effects[t].stop();for(this.effects.length=0,t=0,r=this.cleanups.length;t<r;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function ra(){return Jn}function na(e,t=!1){Jn&&Jn.cleanups.push(e)}const aa=new WeakSet;class oa{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Jn&&Jn.active&&Jn.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,aa.has(this)&&(aa.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||ca(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,xa(this),pa(this);const e=ea,t=ba;ea=this,ba=!0;try{return this.fn()}finally{ha(this),ea=e,ba=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)ga(e);this.deps=this.depsTail=void 0,xa(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?aa.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){fa(this)&&this.run()}get dirty(){return fa(this)}}let ia,sa,la=0;function ca(e,t=!1){if(e.flags|=8,t)return e.next=sa,void(sa=e);e.next=ia,ia=e}function ua(){la++}function da(){if(--la>0)return;if(sa){let e=sa;for(sa=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;ia;){let t=ia;for(ia=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=r}}if(e)throw e}function pa(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ha(e){let t,r=e.depsTail,n=r;for(;n;){const e=n.prevDep;-1===n.version?(n===r&&(r=e),ga(n),va(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=e}e.deps=t,e.depsTail=r}function fa(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ma(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ma(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===ka)return;if(e.globalVersion=ka,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!fa(e)))return;e.flags|=2;const t=e.dep,r=ea,n=ba;ea=e,ba=!0;try{pa(e);const r=e.fn(e._value);(0===t.version||$n(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(e){throw t.version++,e}finally{ea=r,ba=n,ha(e),e.flags&=-3}}function ga(e,t=!1){const{dep:r,prevSub:n,nextSub:a}=e;if(n&&(n.nextSub=a,e.prevSub=void 0),a&&(a.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let e=r.computed.deps;e;e=e.nextDep)ga(e,!0)}t||--r.sc||!r.map||r.map.delete(r.key)}function va(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let ba=!0;const ya=[];function Oa(){ya.push(ba),ba=!1}function wa(){const e=ya.pop();ba=void 0===e||e}function xa(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=ea;ea=void 0;try{t()}finally{ea=e}}}let ka=0;class Sa{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class _a{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!ea||!ba||ea===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==ea)t=this.activeLink=new Sa(ea,this),ea.deps?(t.prevDep=ea.depsTail,ea.depsTail.nextDep=t,ea.depsTail=t):ea.deps=ea.depsTail=t,Ea(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=ea.depsTail,t.nextDep=void 0,ea.depsTail.nextDep=t,ea.depsTail=t,ea.deps===t&&(ea.deps=e)}return t}trigger(e){this.version++,ka++,this.notify(e)}notify(e){ua();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{da()}}}function Ea(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Ea(e)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const Ta=new WeakMap,Aa=Symbol(""),Ca=Symbol(""),Pa=Symbol("");function Da(e,t,r){if(ba&&ea){let t=Ta.get(e);t||Ta.set(e,t=new Map);let n=t.get(r);n||(t.set(r,n=new _a),n.map=t,n.key=r),n.track()}}function $a(e,t,r,n,a,o){const i=Ta.get(e);if(!i)return void ka++;const s=e=>{e&&e.trigger()};if(ua(),"clear"===t)i.forEach(s);else{const a=dn(e),o=a&&kn(r);if(a&&"length"===r){const e=Number(n);i.forEach(((t,r)=>{("length"===r||r===Pa||!vn(r)&&r>=e)&&s(t)}))}else switch((void 0!==r||i.has(void 0))&&s(i.get(r)),o&&s(i.get(Pa)),t){case"add":a?o&&s(i.get("length")):(s(i.get(Aa)),pn(e)&&s(i.get(Ca)));break;case"delete":a||(s(i.get(Aa)),pn(e)&&s(i.get(Ca)));break;case"set":pn(e)&&s(i.get(Aa))}}da()}function Ra(e){const t=Oo(e);return t===e?t:(Da(t,0,Pa),bo(e)?t:t.map(wo))}function Ma(e){return Da(e=Oo(e),0,Pa),e}const Na={__proto__:null,[Symbol.iterator](){return Ia(this,Symbol.iterator,wo)},concat(...e){return Ra(this).concat(...e.map((e=>dn(e)?Ra(e):e)))},entries(){return Ia(this,"entries",(e=>(e[1]=wo(e[1]),e)))},every(e,t){return ja(this,"every",e,t,void 0,arguments)},filter(e,t){return ja(this,"filter",e,t,(e=>e.map(wo)),arguments)},find(e,t){return ja(this,"find",e,t,wo,arguments)},findIndex(e,t){return ja(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ja(this,"findLast",e,t,wo,arguments)},findLastIndex(e,t){return ja(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ja(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ua(this,"includes",e)},indexOf(...e){return Ua(this,"indexOf",e)},join(e){return Ra(this).join(e)},lastIndexOf(...e){return Ua(this,"lastIndexOf",e)},map(e,t){return ja(this,"map",e,t,void 0,arguments)},pop(){return Fa(this,"pop")},push(...e){return Fa(this,"push",e)},reduce(e,...t){return Ba(this,"reduce",e,t)},reduceRight(e,...t){return Ba(this,"reduceRight",e,t)},shift(){return Fa(this,"shift")},some(e,t){return ja(this,"some",e,t,void 0,arguments)},splice(...e){return Fa(this,"splice",e)},toReversed(){return Ra(this).toReversed()},toSorted(e){return Ra(this).toSorted(e)},toSpliced(...e){return Ra(this).toSpliced(...e)},unshift(...e){return Fa(this,"unshift",e)},values(){return Ia(this,"values",wo)}};function Ia(e,t,r){const n=Ma(e),a=n[t]();return n===e||bo(e)||(a._next=a.next,a.next=()=>{const e=a._next();return e.value&&(e.value=r(e.value)),e}),a}const La=Array.prototype;function ja(e,t,r,n,a,o){const i=Ma(e),s=i!==e&&!bo(e),l=i[t];if(l!==La[t]){const t=l.apply(e,o);return s?wo(t):t}let c=r;i!==e&&(s?c=function(t,n){return r.call(this,wo(t),n,e)}:r.length>2&&(c=function(t,n){return r.call(this,t,n,e)}));const u=l.call(i,c,n);return s&&a?a(u):u}function Ba(e,t,r,n){const a=Ma(e);let o=r;return a!==e&&(bo(e)?r.length>3&&(o=function(t,n,a){return r.call(this,t,n,a,e)}):o=function(t,n,a){return r.call(this,t,wo(n),a,e)}),a[t](o,...n)}function Ua(e,t,r){const n=Oo(e);Da(n,0,Pa);const a=n[t](...r);return-1!==a&&!1!==a||!yo(r[0])?a:(r[0]=Oo(r[0]),n[t](...r))}function Fa(e,t,r=[]){Oa(),ua();const n=Oo(e)[t].apply(e,r);return da(),wa(),n}const Qa=Jr("__proto__,__v_isRef,__isVue"),za=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(vn));function qa(e){vn(e)||(e=String(e));const t=Oo(this);return Da(t,0,e),t.hasOwnProperty(e)}class Ha{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,r){if("__v_skip"===t)return e.__v_skip;const n=this._isReadonly,a=this._isShallow;if("__v_isReactive"===t)return!n;if("__v_isReadonly"===t)return n;if("__v_isShallow"===t)return a;if("__v_raw"===t)return r===(n?a?co:lo:a?so:io).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const o=dn(e);if(!n){let e;if(o&&(e=Na[t]))return e;if("hasOwnProperty"===t)return qa}const i=Reflect.get(e,t,ko(e)?e:r);return(vn(t)?za.has(t):Qa(t))?i:(n||Da(e,0,t),a?i:ko(i)?o&&kn(t)?i:i.value:bn(i)?n?ho(i):uo(i):i)}}class Va extends Ha{constructor(e=!1){super(!1,e)}set(e,t,r,n){let a=e[t];if(!this._isShallow){const t=vo(a);if(bo(r)||vo(r)||(a=Oo(a),r=Oo(r)),!dn(e)&&ko(a)&&!ko(r))return!t&&(a.value=r,!0)}const o=dn(e)&&kn(t)?Number(t)<e.length:un(e,t),i=Reflect.set(e,t,r,ko(e)?e:n);return e===Oo(n)&&(o?$n(r,a)&&$a(e,"set",t,r):$a(e,"add",t,r)),i}deleteProperty(e,t){const r=un(e,t);e[t];const n=Reflect.deleteProperty(e,t);return n&&r&&$a(e,"delete",t,void 0),n}has(e,t){const r=Reflect.has(e,t);return vn(t)&&za.has(t)||Da(e,0,t),r}ownKeys(e){return Da(e,0,dn(e)?"length":Aa),Reflect.ownKeys(e)}}class Za extends Ha{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Wa=new Va,Xa=new Za,Ga=new Va(!0),Ya=new Za(!0),Ka=e=>e,Ja=e=>Reflect.getPrototypeOf(e);function eo(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function to(e,t){const r=function(e,t){const r={get(r){const n=this.__v_raw,a=Oo(n),o=Oo(r);e||($n(r,o)&&Da(a,0,r),Da(a,0,o));const{has:i}=Ja(a),s=t?Ka:e?xo:wo;return i.call(a,r)?s(n.get(r)):i.call(a,o)?s(n.get(o)):void(n!==a&&n.get(r))},get size(){const t=this.__v_raw;return!e&&Da(Oo(t),0,Aa),Reflect.get(t,"size",t)},has(t){const r=this.__v_raw,n=Oo(r),a=Oo(t);return e||($n(t,a)&&Da(n,0,t),Da(n,0,a)),t===a?r.has(t):r.has(t)||r.has(a)},forEach(r,n){const a=this,o=a.__v_raw,i=Oo(o),s=t?Ka:e?xo:wo;return!e&&Da(i,0,Aa),o.forEach(((e,t)=>r.call(n,s(e),s(t),a)))}};return sn(r,e?{add:eo("add"),set:eo("set"),delete:eo("delete"),clear:eo("clear")}:{add(e){t||bo(e)||vo(e)||(e=Oo(e));const r=Oo(this);return Ja(r).has.call(r,e)||(r.add(e),$a(r,"add",e,e)),this},set(e,r){t||bo(r)||vo(r)||(r=Oo(r));const n=Oo(this),{has:a,get:o}=Ja(n);let i=a.call(n,e);i||(e=Oo(e),i=a.call(n,e));const s=o.call(n,e);return n.set(e,r),i?$n(r,s)&&$a(n,"set",e,r):$a(n,"add",e,r),this},delete(e){const t=Oo(this),{has:r,get:n}=Ja(t);let a=r.call(t,e);a||(e=Oo(e),a=r.call(t,e)),n&&n.call(t,e);const o=t.delete(e);return a&&$a(t,"delete",e,void 0),o},clear(){const e=Oo(this),t=0!==e.size,r=e.clear();return t&&$a(e,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach((n=>{r[n]=function(e,t,r){return function(...n){const a=this.__v_raw,o=Oo(a),i=pn(o),s="entries"===e||e===Symbol.iterator&&i,l="keys"===e&&i,c=a[e](...n),u=r?Ka:t?xo:wo;return!t&&Da(o,0,l?Ca:Aa),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}(n,e,t)})),r}(e,t);return(t,n,a)=>"__v_isReactive"===n?!e:"__v_isReadonly"===n?e:"__v_raw"===n?t:Reflect.get(un(r,n)&&n in t?r:t,n,a)}const ro={get:to(!1,!1)},no={get:to(!1,!0)},ao={get:to(!0,!1)},oo={get:to(!0,!0)},io=new WeakMap,so=new WeakMap,lo=new WeakMap,co=new WeakMap;function uo(e){return vo(e)?e:mo(e,!1,Wa,ro,io)}function po(e){return mo(e,!1,Ga,no,so)}function ho(e){return mo(e,!0,Xa,ao,lo)}function fo(e){return mo(e,!0,Ya,oo,co)}function mo(e,t,r,n,a){if(!bn(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=(i=e).__v_skip||!Object.isExtensible(i)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>wn(e).slice(8,-1))(i));var i;if(0===o)return e;const s=a.get(e);if(s)return s;const l=new Proxy(e,2===o?n:r);return a.set(e,l),l}function go(e){return vo(e)?go(e.__v_raw):!(!e||!e.__v_isReactive)}function vo(e){return!(!e||!e.__v_isReadonly)}function bo(e){return!(!e||!e.__v_isShallow)}function yo(e){return!!e&&!!e.__v_raw}function Oo(e){const t=e&&e.__v_raw;return t?Oo(t):e}const wo=e=>bn(e)?uo(e):e,xo=e=>bn(e)?ho(e):e;function ko(e){return!!e&&!0===e.__v_isRef}function So(e){return Eo(e,!1)}function _o(e){return Eo(e,!0)}function Eo(e,t){return ko(e)?e:new To(e,t)}class To{constructor(e,t){this.dep=new _a,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Oo(e),this._value=t?e:wo(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,r=this.__v_isShallow||bo(e)||vo(e);e=r?e:Oo(e),$n(e,t)&&(this._rawValue=e,this._value=r?e:wo(e),this.dep.trigger())}}function Ao(e){return ko(e)?e.value:e}function Co(e){return mn(e)?e():Ao(e)}const Po={get:(e,t,r)=>"__v_raw"===t?e:Ao(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const a=e[t];return ko(a)&&!ko(r)?(a.value=r,!0):Reflect.set(e,t,r,n)}};function Do(e){return go(e)?e:new Proxy(e,Po)}class $o{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new _a,{get:r,set:n}=e(t.track.bind(t),t.trigger.bind(t));this._get=r,this._set=n}get value(){return this._value=this._get()}set value(e){this._set(e)}}function Ro(e){return new $o(e)}class Mo{constructor(e,t,r){this._object=e,this._key=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const r=Ta.get(e);return r&&r.get(t)}(Oo(this._object),this._key)}}class No{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Io(e,t,r){return ko(e)?e:mn(e)?new No(e):bn(e)&&arguments.length>1?function(e,t,r){const n=e[t];return ko(n)?n:new Mo(e,t,r)}(e,t,r):So(e)}class Lo{constructor(e,t,r){this.fn=e,this.setter=t,this._value=void 0,this.dep=new _a(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ka-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=r}notify(){if(this.flags|=16,!(8&this.flags)&&ea!==this)return ca(this,!0),!0}get value(){const e=this.dep.track();return ma(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}const jo={},Bo=new WeakMap;let Uo;function Fo(e,t=1/0,r){if(t<=0||!bn(e)||e.__v_skip)return e;if((r=r||new Set).has(e))return e;if(r.add(e),t--,ko(e))Fo(e.value,t,r);else if(dn(e))for(let n=0;n<e.length;n++)Fo(e[n],t,r);else if(hn(e)||pn(e))e.forEach((e=>{Fo(e,t,r)}));else if(xn(e)){for(const n in e)Fo(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Fo(e[n],t,r)}return e}
|
||
/**
|
||
* @vue/runtime-core v3.5.17
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/function Qo(e,t,r,n){try{return n?e(...n):e()}catch(e){qo(e,t,r)}}function zo(e,t,r,n){if(mn(e)){const a=Qo(e,t,r,n);return a&&yn(a)&&a.catch((e=>{qo(e,t,r)})),a}if(dn(e)){const a=[];for(let o=0;o<e.length;o++)a.push(zo(e[o],t,r,n));return a}}function qo(e,t,r,n=!0){t&&t.vnode;const{errorHandler:a,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||en;if(t){let n=t.parent;const o=t.proxy,i=`https://vuejs.org/error-reference/#runtime-${r}`;for(;n;){const t=n.ec;if(t)for(let r=0;r<t.length;r++)if(!1===t[r](e,o,i))return;n=n.parent}if(a)return Oa(),Qo(a,null,10,[e,o,i]),void wa()}!function(e,t,r,n=!0,a=!1){if(a)throw e;console.error(e)}(e,0,0,n,o)}const Ho=[];let Vo=-1;const Zo=[];let Wo=null,Xo=0;const Go=Promise.resolve();let Yo=null;function Ko(e){const t=Yo||Go;return e?t.then(this?e.bind(this):e):t}function Jo(e){if(!(1&e.flags)){const t=ai(e),r=Ho[Ho.length-1];!r||!(2&e.flags)&&t>=ai(r)?Ho.push(e):Ho.splice(function(e){let t=Vo+1,r=Ho.length;for(;t<r;){const n=t+r>>>1,a=Ho[n],o=ai(a);o<e||o===e&&2&a.flags?t=n+1:r=n}return t}(t),0,e),e.flags|=1,ei()}}function ei(){Yo||(Yo=Go.then(oi))}function ti(e){dn(e)?Zo.push(...e):Wo&&-1===e.id?Wo.splice(Xo+1,0,e):1&e.flags||(Zo.push(e),e.flags|=1),ei()}function ri(e,t,r=Vo+1){for(;r<Ho.length;r++){const t=Ho[r];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;Ho.splice(r,1),r--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function ni(e){if(Zo.length){const e=[...new Set(Zo)].sort(((e,t)=>ai(e)-ai(t)));if(Zo.length=0,Wo)return void Wo.push(...e);for(Wo=e,Xo=0;Xo<Wo.length;Xo++){const e=Wo[Xo];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}Wo=null,Xo=0}}const ai=e=>null==e.id?2&e.flags?-1:1/0:e.id;function oi(e){try{for(Vo=0;Vo<Ho.length;Vo++){const e=Ho[Vo];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),Qo(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;Vo<Ho.length;Vo++){const e=Ho[Vo];e&&(e.flags&=-2)}Vo=-1,Ho.length=0,ni(),Yo=null,(Ho.length||Zo.length)&&oi()}}let ii=null,si=null;function li(e){const t=ii;return ii=e,si=e&&e.type.__scopeId||null,t}function ci(e,t=ii,r){if(!t)return e;if(e._n)return e;const n=(...r)=>{n._d&&$l(-1);const a=li(t);let o;try{o=e(...r)}finally{li(a),n._d&&$l(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function ui(e,t){if(null===ii)return e;const r=pc(ii),n=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[a,o,i,s=en]=t[e];a&&(mn(a)&&(a={mounted:a,updated:a}),a.deep&&Fo(o),n.push({dir:a,instance:r,value:o,oldValue:void 0,arg:i,modifiers:s}))}return e}function di(e,t,r,n){const a=e.dirs,o=t&&t.dirs;for(let i=0;i<a.length;i++){const s=a[i];o&&(s.oldValue=o[i].value);let l=s.dir[n];l&&(Oa(),zo(l,r,8,[e.el,s,e,t]),wa())}}const pi=Symbol("_vte"),hi=e=>e.__isTeleport,fi=e=>e&&(e.disabled||""===e.disabled),mi=e=>e&&(e.defer||""===e.defer),gi=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,vi=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,bi=(e,t)=>{const r=e&&e.to;return gn(r)?t?t(r):null:r},yi={name:"Teleport",__isTeleport:!0,process(e,t,r,n,a,o,i,s,l,c){const{mc:u,pc:d,pbc:p,o:{insert:h,querySelector:f,createText:m,createComment:g}}=c,v=fi(t.props);let{shapeFlag:b,children:y,dynamicChildren:O}=t;if(null==e){const e=t.el=m(""),c=t.anchor=m("");h(e,r,n),h(c,r,n);const d=(e,t)=>{16&b&&(a&&a.isCE&&(a.ce._teleportTarget=e),u(y,e,t,a,o,i,s,l))},p=()=>{const e=t.target=bi(t.props,f),r=ki(e,t,m,h);e&&("svg"!==i&&gi(e)?i="svg":"mathml"!==i&&vi(e)&&(i="mathml"),v||(d(e,r),xi(t,!1)))};v&&(d(r,c),xi(t,!0)),mi(t.props)?(t.el.__isMounted=!1,el((()=>{p(),delete t.el.__isMounted}),o)):p()}else{if(mi(t.props)&&!1===e.el.__isMounted)return void el((()=>{yi.process(e,t,r,n,a,o,i,s,l,c)}),o);t.el=e.el,t.targetStart=e.targetStart;const u=t.anchor=e.anchor,h=t.target=e.target,m=t.targetAnchor=e.targetAnchor,g=fi(e.props),b=g?r:h,y=g?u:m;if("svg"===i||gi(h)?i="svg":("mathml"===i||vi(h))&&(i="mathml"),O?(p(e.dynamicChildren,O,b,a,o,i,s),al(e,t,!0)):l||d(e,t,b,y,a,o,i,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Oi(t,r,u,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=bi(t.props,f);e&&Oi(t,e,null,c,0)}else g&&Oi(t,h,m,c,1);xi(t,v)}},remove(e,t,r,{um:n,o:{remove:a}},o){const{shapeFlag:i,children:s,anchor:l,targetStart:c,targetAnchor:u,target:d,props:p}=e;if(d&&(a(c),a(u)),o&&a(l),16&i){const e=o||!fi(p);for(let a=0;a<s.length;a++){const o=s[a];n(o,t,r,e,!!o.dynamicChildren)}}},move:Oi,hydrate:function(e,t,r,n,a,o,{o:{nextSibling:i,parentNode:s,querySelector:l,insert:c,createText:u}},d){const p=t.target=bi(t.props,l);if(p){const l=fi(t.props),h=p._lpa||p.firstChild;if(16&t.shapeFlag)if(l)t.anchor=d(i(e),t,s(e),r,n,a,o),t.targetStart=h,t.targetAnchor=h&&i(h);else{t.anchor=i(e);let s=h;for(;s;){if(s&&8===s.nodeType)if("teleport start anchor"===s.data)t.targetStart=s;else if("teleport anchor"===s.data){t.targetAnchor=s,p._lpa=t.targetAnchor&&i(t.targetAnchor);break}s=i(s)}t.targetAnchor||ki(p,t,u,c),d(h&&i(h),t,p,r,n,a,o)}xi(t,l)}return t.anchor&&i(t.anchor)}};function Oi(e,t,r,{o:{insert:n},m:a},o=2){0===o&&n(e.targetAnchor,t,r);const{el:i,anchor:s,shapeFlag:l,children:c,props:u}=e,d=2===o;if(d&&n(i,t,r),(!d||fi(u))&&16&l)for(let e=0;e<c.length;e++)a(c[e],t,r,2);d&&n(s,t,r)}const wi=yi;function xi(e,t){const r=e.ctx;if(r&&r.ut){let n,a;for(t?(n=e.el,a=e.anchor):(n=e.targetStart,a=e.targetAnchor);n&&n!==a;)1===n.nodeType&&n.setAttribute("data-v-owner",r.uid),n=n.nextSibling;r.ut()}}function ki(e,t,r,n){const a=t.targetStart=r(""),o=t.targetAnchor=r("");return a[pi]=o,e&&(n(a,e),n(o,e)),o}const Si=Symbol("_leaveCb"),_i=Symbol("_enterCb"),Ei=[Function,Array],Ti={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ei,onEnter:Ei,onAfterEnter:Ei,onEnterCancelled:Ei,onBeforeLeave:Ei,onLeave:Ei,onAfterLeave:Ei,onLeaveCancelled:Ei,onBeforeAppear:Ei,onAppear:Ei,onAfterAppear:Ei,onAppearCancelled:Ei},Ai=e=>{const t=e.subTree;return t.component?Ai(t.component):t};function Ci(e){let t=e[0];if(e.length>1)for(const r of e)if(r.type!==El){t=r;break}return t}const Pi={name:"BaseTransition",props:Ti,setup(e,{slots:t}){const r=tc(),n=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Yi((()=>{e.isMounted=!0})),es((()=>{e.isUnmounting=!0})),e}();return()=>{const a=t.default&&Ii(t.default(),!0);if(!a||!a.length)return;const o=Ci(a),i=Oo(e),{mode:s}=i;if(n.isLeaving)return Ri(o);const l=Mi(o);if(!l)return Ri(o);let c=$i(l,i,n,r,(e=>c=e));l.type!==El&&Ni(l,c);let u=r.subTree&&Mi(r.subTree);if(u&&u.type!==El&&!Ll(l,u)&&Ai(r).type!==El){let e=$i(u,i,n,r);if(Ni(u,e),"out-in"===s&&l.type!==El)return n.isLeaving=!0,e.afterLeave=()=>{n.isLeaving=!1,8&r.job.flags||r.update(),delete e.afterLeave,u=void 0},Ri(o);"in-out"===s&&l.type!==El?e.delayLeave=(e,t,r)=>{Di(n,u)[String(u.key)]=u,e[Si]=()=>{t(),e[Si]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{r(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return o}}};function Di(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function $i(e,t,r,n,a){const{appear:o,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:f,onLeaveCancelled:m,onBeforeAppear:g,onAppear:v,onAfterAppear:b,onAppearCancelled:y}=t,O=String(e.key),w=Di(r,e),x=(e,t)=>{e&&zo(e,n,9,t)},k=(e,t)=>{const r=t[1];x(e,t),dn(e)?e.every((e=>e.length<=1))&&r():e.length<=1&&r()},S={mode:i,persisted:s,beforeEnter(t){let n=l;if(!r.isMounted){if(!o)return;n=g||l}t[Si]&&t[Si](!0);const a=w[O];a&&Ll(e,a)&&a.el[Si]&&a.el[Si](),x(n,[t])},enter(e){let t=c,n=u,a=d;if(!r.isMounted){if(!o)return;t=v||c,n=b||u,a=y||d}let i=!1;const s=e[_i]=t=>{i||(i=!0,x(t?a:n,[e]),S.delayedLeave&&S.delayedLeave(),e[_i]=void 0)};t?k(t,[e,s]):s()},leave(t,n){const a=String(e.key);if(t[_i]&&t[_i](!0),r.isUnmounting)return n();x(p,[t]);let o=!1;const i=t[Si]=r=>{o||(o=!0,n(),x(r?m:f,[t]),t[Si]=void 0,w[a]===e&&delete w[a])};w[a]=e,h?k(h,[t,i]):i()},clone(e){const o=$i(e,t,r,n,a);return a&&a(o),o}};return S}function Ri(e){if(zi(e))return(e=zl(e)).children=null,e}function Mi(e){if(!zi(e))return hi(e.type)&&e.children?Ci(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(16&t)return r[0];if(32&t&&mn(r.default))return r.default()}}function Ni(e,t){6&e.shapeFlag&&e.component?(e.transition=t,Ni(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ii(e,t=!1,r){let n=[],a=0;for(let o=0;o<e.length;o++){let i=e[o];const s=null==r?i.key:String(r)+String(null!=i.key?i.key:o);i.type===Sl?(128&i.patchFlag&&a++,n=n.concat(Ii(i.children,t,s))):(t||i.type!==El)&&n.push(null!=s?zl(i,{key:s}):i)}if(a>1)for(let e=0;e<n.length;e++)n[e].patchFlag=-2;return n}
|
||
/*! #__NO_SIDE_EFFECTS__ */function Li(e,t){return mn(e)?sn({name:e.name},t,{setup:e}):e}function ji(){const e=tc();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Bi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ui(e){const t=tc(),r=_o(null);if(t){const n=t.refs===en?t.refs={}:t.refs;Object.defineProperty(n,e,{enumerable:!0,get:()=>r.value,set:e=>r.value=e})}return r}function Fi(e,t,r,n,a=!1){if(dn(e))return void e.forEach(((e,o)=>Fi(e,t&&(dn(t)?t[o]:t),r,n,a)));if(Qi(n)&&!a)return void(512&n.shapeFlag&&n.type.__asyncResolved&&n.component.subTree.component&&Fi(e,t,r,n.component.subTree));const o=4&n.shapeFlag?pc(n.component):n.el,i=a?null:o,{i:s,r:l}=e,c=t&&t.r,u=s.refs===en?s.refs={}:s.refs,d=s.setupState,p=Oo(d),h=d===en?()=>!1:e=>un(p,e);if(null!=c&&c!==l&&(gn(c)?(u[c]=null,h(c)&&(d[c]=null)):ko(c)&&(c.value=null)),mn(l))Qo(l,s,12,[i,u]);else{const t=gn(l),n=ko(l);if(t||n){const s=()=>{if(e.f){const r=t?h(l)?d[l]:u[l]:l.value;a?dn(r)&&ln(r,o):dn(r)?r.includes(o)||r.push(o):t?(u[l]=[o],h(l)&&(d[l]=u[l])):(l.value=[o],e.k&&(u[e.k]=l.value))}else t?(u[l]=i,h(l)&&(d[l]=i)):n&&(l.value=i,e.k&&(u[e.k]=i))};i?(s.id=-1,el(s,r)):s()}}}Ln().requestIdleCallback,Ln().cancelIdleCallback;const Qi=e=>!!e.type.__asyncLoader,zi=e=>e.type.__isKeepAlive;function qi(e,t){Vi(e,"a",t)}function Hi(e,t){Vi(e,"da",t)}function Vi(e,t,r=ec){const n=e.__wdc||(e.__wdc=()=>{let t=r;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Wi(t,n,r),r){let e=r.parent;for(;e&&e.parent;)zi(e.parent.vnode)&&Zi(n,t,r,e),e=e.parent}}function Zi(e,t,r,n){const a=Wi(t,e,n,!0);ts((()=>{ln(n[t],a)}),r)}function Wi(e,t,r=ec,n=!1){if(r){const a=r[e]||(r[e]=[]),o=t.__weh||(t.__weh=(...n)=>{Oa();const a=ac(r),o=zo(t,r,e,n);return a(),wa(),o});return n?a.unshift(o):a.push(o),o}}const Xi=e=>(t,r=ec)=>{sc&&"sp"!==e||Wi(e,((...e)=>t(...e)),r)},Gi=Xi("bm"),Yi=Xi("m"),Ki=Xi("bu"),Ji=Xi("u"),es=Xi("bum"),ts=Xi("um"),rs=Xi("sp"),ns=Xi("rtg"),as=Xi("rtc");function os(e,t=ec){Wi("ec",e,t)}const is="components";function ss(e,t){return us(is,e,!0,t)||e}const ls=Symbol.for("v-ndc");function cs(e){return gn(e)?us(is,e,!1)||e:e||ls}function us(e,t,r=!0,n=!1){const a=ii||ec;if(a){const r=a.type;{const e=function(e,t=!0){return mn(e)?e.displayName||e.name:e.name||t&&e.__name}(r,!1);if(e&&(e===t||e===Tn(t)||e===Pn(Tn(t))))return r}const o=ds(a[e]||r[e],t)||ds(a.appContext[e],t);return!o&&n?r:o}}function ds(e,t){return e&&(e[t]||e[Tn(t)]||e[Pn(Tn(t))])}function ps(e,t,r,n){let a;const o=r,i=dn(e);if(i||gn(e)){let r=!1,n=!1;i&&go(e)&&(r=!bo(e),n=vo(e),e=Ma(e)),a=new Array(e.length);for(let i=0,s=e.length;i<s;i++)a[i]=t(r?n?xo(wo(e[i])):wo(e[i]):e[i],i,void 0,o)}else if("number"==typeof e){a=new Array(e);for(let r=0;r<e;r++)a[r]=t(r+1,r,void 0,o)}else if(bn(e))if(e[Symbol.iterator])a=Array.from(e,((e,r)=>t(e,r,void 0,o)));else{const r=Object.keys(e);a=new Array(r.length);for(let n=0,i=r.length;n<i;n++){const i=r[n];a[n]=t(e[i],i,n,o)}}else a=[];return a}function hs(e,t){for(let r=0;r<t.length;r++){const n=t[r];if(dn(n))for(let t=0;t<n.length;t++)e[n[t].name]=n[t].fn;else n&&(e[n.name]=n.key?(...e)=>{const t=n.fn(...e);return t&&(t.key=n.key),t}:n.fn)}return e}function fs(e,t,r={},n,a){if(ii.ce||ii.parent&&Qi(ii.parent)&&ii.parent.ce)return"default"!==t&&(r.name=t),Pl(),Nl(Sl,null,[Fl("slot",r,n&&n())],64);let o=e[t];o&&o._c&&(o._d=!1),Pl();const i=o&&ms(o(r)),s=r.key||i&&i.key,l=Nl(Sl,{key:(s&&!vn(s)?s:`_${t}`)+(!i&&n?"_fb":"")},i||(n?n():[]),i&&1===e._?64:-2);return!a&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function ms(e){return e.some((e=>!Il(e)||e.type!==El&&!(e.type===Sl&&!ms(e.children))))?e:null}const gs=e=>e?ic(e)?pc(e):gs(e.parent):null,vs=sn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>gs(e.parent),$root:e=>gs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Es(e),$forceUpdate:e=>e.f||(e.f=()=>{Jo(e.update)}),$nextTick:e=>e.n||(e.n=Ko.bind(e.proxy)),$watch:e=>pl.bind(e)}),bs=(e,t)=>e!==en&&!e.__isScriptSetup&&un(e,t),ys={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:r,setupState:n,data:a,props:o,accessCache:i,type:s,appContext:l}=e;let c;if("$"!==t[0]){const s=i[t];if(void 0!==s)switch(s){case 1:return n[t];case 2:return a[t];case 4:return r[t];case 3:return o[t]}else{if(bs(n,t))return i[t]=1,n[t];if(a!==en&&un(a,t))return i[t]=2,a[t];if((c=e.propsOptions[0])&&un(c,t))return i[t]=3,o[t];if(r!==en&&un(r,t))return i[t]=4,r[t];ks&&(i[t]=0)}}const u=vs[t];let d,p;return u?("$attrs"===t&&Da(e.attrs,0,""),u(e)):(d=s.__cssModules)&&(d=d[t])?d:r!==en&&un(r,t)?(i[t]=4,r[t]):(p=l.config.globalProperties,un(p,t)?p[t]:void 0)},set({_:e},t,r){const{data:n,setupState:a,ctx:o}=e;return bs(a,t)?(a[t]=r,!0):n!==en&&un(n,t)?(n[t]=r,!0):!(un(e.props,t)||"$"===t[0]&&t.slice(1)in e||(o[t]=r,0))},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:a,propsOptions:o}},i){let s;return!!r[i]||e!==en&&un(e,i)||bs(t,i)||(s=o[0])&&un(s,i)||un(n,i)||un(vs,i)||un(a.config.globalProperties,i)},defineProperty(e,t,r){return null!=r.get?e._.accessCache[t]=0:un(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function Os(){return function(){const e=tc();return e.setupContext||(e.setupContext=dc(e))}().attrs}function ws(e){return dn(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function xs(e,t){return e&&t?dn(e)&&dn(t)?e.concat(t):sn({},ws(e),ws(t)):e||t}let ks=!0;function Ss(e,t,r){zo(dn(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,r)}function _s(e,t,r,n){let a=n.includes(".")?hl(r,n):()=>r[n];if(gn(e)){const r=t[e];mn(r)&&ul(a,r)}else if(mn(e))ul(a,e.bind(r));else if(bn(e))if(dn(e))e.forEach((e=>_s(e,t,r,n)));else{const n=mn(e.handler)?e.handler.bind(r):t[e.handler];mn(n)&&ul(a,n,e)}}function Es(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:a,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,s=o.get(t);let l;return s?l=s:a.length||r||n?(l={},a.length&&a.forEach((e=>Ts(l,e,i,!0))),Ts(l,t,i)):l=t,bn(t)&&o.set(t,l),l}function Ts(e,t,r,n=!1){const{mixins:a,extends:o}=t;o&&Ts(e,o,r,!0),a&&a.forEach((t=>Ts(e,t,r,!0)));for(const a in t)if(n&&"expose"===a);else{const n=As[a]||r&&r[a];e[a]=n?n(e[a],t[a]):t[a]}return e}const As={data:Cs,props:Rs,emits:Rs,methods:$s,computed:$s,beforeCreate:Ds,created:Ds,beforeMount:Ds,mounted:Ds,beforeUpdate:Ds,updated:Ds,beforeDestroy:Ds,beforeUnmount:Ds,destroyed:Ds,unmounted:Ds,activated:Ds,deactivated:Ds,errorCaptured:Ds,serverPrefetch:Ds,components:$s,directives:$s,watch:function(e,t){if(!e)return t;if(!t)return e;const r=sn(Object.create(null),e);for(const n in t)r[n]=Ds(e[n],t[n]);return r},provide:Cs,inject:function(e,t){return $s(Ps(e),Ps(t))}};function Cs(e,t){return t?e?function(){return sn(mn(e)?e.call(this,this):e,mn(t)?t.call(this,this):t)}:t:e}function Ps(e){if(dn(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Ds(e,t){return e?[...new Set([].concat(e,t))]:t}function $s(e,t){return e?sn(Object.create(null),e,t):t}function Rs(e,t){return e?dn(e)&&dn(t)?[...new Set([...e,...t])]:sn(Object.create(null),ws(e),ws(null!=t?t:{})):t}function Ms(){return{app:null,config:{isNativeTag:nn,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ns=0;function Is(e,t){return function(t,r=null){mn(t)||(t=sn({},t)),null==r||bn(r)||(r=null);const n=Ms(),a=new WeakSet,o=[];let i=!1;const s=n.app={_uid:Ns++,_component:t,_props:r,_container:null,_context:n,_instance:null,version:mc,get config(){return n.config},set config(e){},use:(e,...t)=>(a.has(e)||(e&&mn(e.install)?(a.add(e),e.install(s,...t)):mn(e)&&(a.add(e),e(s,...t))),s),mixin:e=>(n.mixins.includes(e)||n.mixins.push(e),s),component:(e,t)=>t?(n.components[e]=t,s):n.components[e],directive:(e,t)=>t?(n.directives[e]=t,s):n.directives[e],mount(a,o,l){if(!i){const o=s._ceVNode||Fl(t,r);return o.appContext=n,!0===l?l="svg":!1===l&&(l=void 0),e(o,a,l),i=!0,s._container=a,a.__vue_app__=s,pc(o.component)}},onUnmount(e){o.push(e)},unmount(){i&&(zo(o,s._instance,16),e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(n.provides[e]=t,s),runWithContext(e){const t=Ls;Ls=s;try{return e()}finally{Ls=t}}};return s}}let Ls=null;function js(e,t){if(ec){let r=ec.provides;const n=ec.parent&&ec.parent.provides;n===r&&(r=ec.provides=Object.create(n)),r[e]=t}}function Bs(e,t,r=!1){const n=ec||ii;if(n||Ls){let a=Ls?Ls._context.provides:n?null==n.parent||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(a&&e in a)return a[e];if(arguments.length>1)return r&&mn(t)?t.call(n&&n.proxy):t}}const Us={},Fs=()=>Object.create(Us),Qs=e=>Object.getPrototypeOf(e)===Us;function zs(e,t,r,n){const[a,o]=e.propsOptions;let i,s=!1;if(t)for(let l in t){if(Sn(l))continue;const c=t[l];let u;a&&un(a,u=Tn(l))?o&&o.includes(u)?(i||(i={}))[u]=c:r[u]=c:bl(e.emitsOptions,l)||l in n&&c===n[l]||(n[l]=c,s=!0)}if(o){const t=Oo(r),n=i||en;for(let i=0;i<o.length;i++){const s=o[i];r[s]=qs(a,t,s,n[s],e,!un(n,s))}}return s}function qs(e,t,r,n,a,o){const i=e[r];if(null!=i){const e=un(i,"default");if(e&&void 0===n){const e=i.default;if(i.type!==Function&&!i.skipFactory&&mn(e)){const{propsDefaults:o}=a;if(r in o)n=o[r];else{const i=ac(a);n=o[r]=e.call(null,t),i()}}else n=e;a.ce&&a.ce._setProp(r,n)}i[0]&&(o&&!e?n=!1:!i[1]||""!==n&&n!==Cn(r)||(n=!0))}return n}const Hs=new WeakMap;function Vs(e,t,r=!1){const n=r?Hs:t.propsCache,a=n.get(e);if(a)return a;const o=e.props,i={},s=[];let l=!1;if(!mn(e)){const n=e=>{l=!0;const[r,n]=Vs(e,t,!0);sn(i,r),n&&s.push(...n)};!r&&t.mixins.length&&t.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}if(!o&&!l)return bn(e)&&n.set(e,tn),tn;if(dn(o))for(let e=0;e<o.length;e++){const t=Tn(o[e]);Zs(t)&&(i[t]=en)}else if(o)for(const e in o){const t=Tn(e);if(Zs(t)){const r=o[e],n=i[t]=dn(r)||mn(r)?{type:r}:sn({},r),a=n.type;let l=!1,c=!0;if(dn(a))for(let e=0;e<a.length;++e){const t=a[e],r=mn(t)&&t.name;if("Boolean"===r){l=!0;break}"String"===r&&(c=!1)}else l=mn(a)&&"Boolean"===a.name;n[0]=l,n[1]=c,(l||un(n,"default"))&&s.push(t)}}const c=[i,s];return bn(e)&&n.set(e,c),c}function Zs(e){return"$"!==e[0]&&!Sn(e)}const Ws=e=>"_"===e[0]||"$stable"===e,Xs=e=>dn(e)?e.map(Zl):[Zl(e)],Gs=(e,t,r)=>{if(t._n)return t;const n=ci(((...e)=>Xs(t(...e))),r);return n._c=!1,n},Ys=(e,t,r)=>{const n=e._ctx;for(const r in e){if(Ws(r))continue;const a=e[r];if(mn(a))t[r]=Gs(0,a,n);else if(null!=a){const e=Xs(a);t[r]=()=>e}}},Ks=(e,t)=>{const r=Xs(t);e.slots.default=()=>r},Js=(e,t,r)=>{for(const n in t)!r&&Ws(n)||(e[n]=t[n])},el=function(e,t){t&&t.pendingBranch?dn(e)?t.effects.push(...e):t.effects.push(e):ti(e)};function tl(e){return function(e){Ln().__VUE__=!0;const{insert:t,remove:r,patchProp:n,createElement:a,createText:o,createComment:i,setText:s,setElementText:l,parentNode:c,nextSibling:u,setScopeId:d=rn,insertStaticContent:p}=e,h=(e,t,r,n=null,a=null,o=null,i=void 0,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Ll(e,t)&&(n=U(e),N(e,a,o,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case _l:f(e,t,r,n);break;case El:m(e,t,r,n);break;case Tl:null==e&&g(t,r,n,i);break;case Sl:_(e,t,r,n,a,o,i,s,l);break;default:1&d?b(e,t,r,n,a,o,i,s,l):6&d?E(e,t,r,n,a,o,i,s,l):(64&d||128&d)&&c.process(e,t,r,n,a,o,i,s,l,z)}null!=u&&a?Fi(u,e&&e.ref,o,t||e,!t):null==u&&e&&null!=e.ref&&Fi(e.ref,null,o,e,!0)},f=(e,r,n,a)=>{if(null==e)t(r.el=o(r.children),n,a);else{const t=r.el=e.el;r.children!==e.children&&s(t,r.children)}},m=(e,r,n,a)=>{null==e?t(r.el=i(r.children||""),n,a):r.el=e.el},g=(e,t,r,n)=>{[e.el,e.anchor]=p(e.children,t,r,n,e.el,e.anchor)},v=({el:e,anchor:r},n,a)=>{let o;for(;e&&e!==r;)o=u(e),t(e,n,a),e=o;t(r,n,a)},b=(e,t,r,n,a,o,i,s,l)=>{"svg"===t.type?i="svg":"math"===t.type&&(i="mathml"),null==e?y(t,r,n,a,o,i,s,l):x(e,t,a,o,i,s,l)},y=(e,r,o,i,s,c,u,d)=>{let p,h;const{props:f,shapeFlag:m,transition:g,dirs:v}=e;if(p=e.el=a(e.type,c,f&&f.is,f),8&m?l(p,e.children):16&m&&w(e.children,p,null,i,s,rl(e,c),u,d),v&&di(e,null,i,"created"),O(p,e,e.scopeId,u,i),f){for(const e in f)"value"===e||Sn(e)||n(p,e,null,f[e],c,i);"value"in f&&n(p,"value",null,f.value,c),(h=f.onVnodeBeforeMount)&&Yl(h,i,e)}v&&di(e,null,i,"beforeMount");const b=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(s,g);b&&g.beforeEnter(p),t(p,r,o),((h=f&&f.onVnodeMounted)||b||v)&&el((()=>{h&&Yl(h,i,e),b&&g.enter(p),v&&di(e,null,i,"mounted")}),s)},O=(e,t,r,n,a)=>{if(r&&d(e,r),n)for(let t=0;t<n.length;t++)d(e,n[t]);if(a){let r=a.subTree;if(t===r||kl(r.type)&&(r.ssContent===t||r.ssFallback===t)){const t=a.vnode;O(e,t,t.scopeId,t.slotScopeIds,a.parent)}}},w=(e,t,r,n,a,o,i,s,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=s?Wl(e[c]):Zl(e[c]);h(null,l,t,r,n,a,o,i,s)}},x=(e,t,r,a,o,i,s)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const h=e.props||en,f=t.props||en;let m;if(r&&nl(r,!1),(m=f.onVnodeBeforeUpdate)&&Yl(m,r,t,e),p&&di(t,e,r,"beforeUpdate"),r&&nl(r,!0),(h.innerHTML&&null==f.innerHTML||h.textContent&&null==f.textContent)&&l(c,""),d?k(e.dynamicChildren,d,c,r,a,rl(t,o),i):s||D(e,t,c,null,r,a,rl(t,o),i,!1),u>0){if(16&u)S(c,h,f,r,o);else if(2&u&&h.class!==f.class&&n(c,"class",null,f.class,o),4&u&&n(c,"style",h.style,f.style,o),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const a=e[t],i=h[a],s=f[a];s===i&&"value"!==a||n(c,a,i,s,o,r)}}1&u&&e.children!==t.children&&l(c,t.children)}else s||null!=d||S(c,h,f,r,o);((m=f.onVnodeUpdated)||p)&&el((()=>{m&&Yl(m,r,t,e),p&&di(t,e,r,"updated")}),a)},k=(e,t,r,n,a,o,i)=>{for(let s=0;s<t.length;s++){const l=e[s],u=t[s],d=l.el&&(l.type===Sl||!Ll(l,u)||198&l.shapeFlag)?c(l.el):r;h(l,u,d,null,n,a,o,i,!0)}},S=(e,t,r,a,o)=>{if(t!==r){if(t!==en)for(const i in t)Sn(i)||i in r||n(e,i,t[i],null,o,a);for(const i in r){if(Sn(i))continue;const s=r[i],l=t[i];s!==l&&"value"!==i&&n(e,i,l,s,o,a)}"value"in r&&n(e,"value",t.value,r.value,o)}},_=(e,r,n,a,i,s,l,c,u)=>{const d=r.el=e?e.el:o(""),p=r.anchor=e?e.anchor:o("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=r;m&&(c=c?c.concat(m):m),null==e?(t(d,n,a),t(p,n,a),w(r.children||[],n,p,i,s,l,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(k(e.dynamicChildren,f,n,i,s,l,c),(null!=r.key||i&&r===i.subTree)&&al(e,r,!0)):D(e,r,n,p,i,s,l,c,u)},E=(e,t,r,n,a,o,i,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?a.ctx.activate(t,r,n,i,l):T(t,r,n,a,o,i,l):A(e,t,l)},T=(e,t,r,n,a,o,i)=>{const s=e.component=function(e,t,r){const n=e.type,a=(t?t.appContext:e.appContext)||Kl,o={uid:Jl++,vnode:e,type:n,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ta(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Vs(n,a),emitsOptions:vl(n,a),emit:null,emitted:null,propsDefaults:en,inheritAttrs:n.inheritAttrs,ctx:en,data:en,props:en,attrs:en,slots:en,refs:en,setupState:en,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=gl.bind(null,o),e.ce&&e.ce(o),o}(e,n,a);if(zi(e)&&(s.ctx.renderer=z),function(e,t=!1,r=!1){t&&nc(t);const{props:n,children:a}=e.vnode,o=ic(e);(function(e,t,r,n=!1){const a={},o=Fs();e.propsDefaults=Object.create(null),zs(e,t,a,o);for(const t in e.propsOptions[0])t in a||(a[t]=void 0);r?e.props=n?a:po(a):e.type.props?e.props=a:e.props=o,e.attrs=o})(e,n,o,t),((e,t,r)=>{const n=e.slots=Fs();if(32&e.vnode.shapeFlag){const e=t.__;e&&Mn(n,"__",e,!0);const a=t._;a?(Js(n,t,r),r&&Mn(n,"_",a,!0)):Ys(t,n)}else t&&Ks(e,t)})(e,a,r||t);o&&function(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ys);const{setup:n}=r;if(n){Oa();const r=e.setupContext=n.length>1?dc(e):null,a=ac(e),o=Qo(n,e,0,[e.props,r]),i=yn(o);if(wa(),a(),!i&&!e.sp||Qi(e)||Bi(e),i){if(o.then(oc,oc),t)return o.then((t=>{lc(e,t)})).catch((t=>{qo(t,e,0)}));e.asyncDep=o}else lc(e,o)}else cc(e)}(e,t);t&&nc(!1)}(s,!1,i),s.asyncDep){if(a&&a.registerDep(s,C,i),!e.el){const e=s.subTree=Fl(El);m(null,e,t,r)}}else C(s,e,t,r,a,o,i)},A=(e,t,r)=>{const n=t.component=e.component;if(function(e,t,r){const{props:n,children:a,component:o}=e,{props:i,children:s,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(r&&l>=0))return!(!a&&!s||s&&s.$stable)||n!==i&&(n?!i||xl(n,i,c):!!i);if(1024&l)return!0;if(16&l)return n?xl(n,i,c):!!i;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const r=e[t];if(i[r]!==n[r]&&!bl(c,r))return!0}}return!1}(e,t,r)){if(n.asyncDep&&!n.asyncResolved)return void P(n,t,r);n.next=t,n.update()}else t.el=e.el,n.vnode=t},C=(e,t,r,n,a,o,i)=>{const s=()=>{if(e.isMounted){let{next:t,bu:r,u:n,parent:l,vnode:u}=e;{const r=ol(e);if(r)return t&&(t.el=u.el,P(e,t,i)),void r.asyncDep.then((()=>{e.isUnmounted||s()}))}let d,p=t;nl(e,!1),t?(t.el=u.el,P(e,t,i)):t=u,r&&Rn(r),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Yl(d,l,t,u),nl(e,!0);const f=yl(e),m=e.subTree;e.subTree=f,h(m,f,c(m.el),U(m),e,a,o),t.el=f.el,null===p&&function({vnode:e,parent:t},r){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n!==e)break;(e=t.vnode).el=r,t=t.parent}}(e,f.el),n&&el(n,a),(d=t.props&&t.props.onVnodeUpdated)&&el((()=>Yl(d,l,t,u)),a)}else{let i;const{el:s,props:l}=t,{bm:c,m:u,parent:d,root:p,type:f}=e,m=Qi(t);nl(e,!1),c&&Rn(c),!m&&(i=l&&l.onVnodeBeforeMount)&&Yl(i,d,t),nl(e,!0);{p.ce&&!1!==p.ce._def.shadowRoot&&p.ce._injectChildStyle(f);const i=e.subTree=yl(e);h(null,i,r,n,e,a,o),t.el=i.el}if(u&&el(u,a),!m&&(i=l&&l.onVnodeMounted)){const e=t;el((()=>Yl(i,d,e)),a)}(256&t.shapeFlag||d&&Qi(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&el(e.a,a),e.isMounted=!0,t=r=n=null}};e.scope.on();const l=e.effect=new oa(s);e.scope.off();const u=e.update=l.run.bind(l),d=e.job=l.runIfDirty.bind(l);d.i=e,d.id=e.uid,l.scheduler=()=>Jo(d),nl(e,!0),u()},P=(e,t,r)=>{t.component=e;const n=e.vnode.props;e.vnode=t,e.next=null,function(e,t,r,n){const{props:a,attrs:o,vnode:{patchFlag:i}}=e,s=Oo(a),[l]=e.propsOptions;let c=!1;if(!(n||i>0)||16&i){let n;zs(e,t,a,o)&&(c=!0);for(const o in s)t&&(un(t,o)||(n=Cn(o))!==o&&un(t,n))||(l?!r||void 0===r[o]&&void 0===r[n]||(a[o]=qs(l,s,o,void 0,e,!0)):delete a[o]);if(o!==s)for(const e in o)t&&un(t,e)||(delete o[e],c=!0)}else if(8&i){const r=e.vnode.dynamicProps;for(let n=0;n<r.length;n++){let i=r[n];if(bl(e.emitsOptions,i))continue;const u=t[i];if(l)if(un(o,i))u!==o[i]&&(o[i]=u,c=!0);else{const t=Tn(i);a[t]=qs(l,s,t,u,e,!1)}else u!==o[i]&&(o[i]=u,c=!0)}}c&&$a(e.attrs,"set","")}(e,t.props,n,r),((e,t,r)=>{const{vnode:n,slots:a}=e;let o=!0,i=en;if(32&n.shapeFlag){const e=t._;e?r&&1===e?o=!1:Js(a,t,r):(o=!t.$stable,Ys(t,a)),i=t}else t&&(Ks(e,t),i={default:1});if(o)for(const e in a)Ws(e)||null!=i[e]||delete a[e]})(e,t.children,r),Oa(),ri(e),wa()},D=(e,t,r,n,a,o,i,s,c=!1)=>{const u=e&&e.children,d=e?e.shapeFlag:0,p=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void R(u,p,r,n,a,o,i,s,c);if(256&h)return void $(u,p,r,n,a,o,i,s,c)}8&f?(16&d&&B(u,a,o),p!==u&&l(r,p)):16&d?16&f?R(u,p,r,n,a,o,i,s,c):B(u,a,o,!0):(8&d&&l(r,""),16&f&&w(p,r,n,a,o,i,s,c))},$=(e,t,r,n,a,o,i,s,l)=>{t=t||tn;const c=(e=e||tn).length,u=t.length,d=Math.min(c,u);let p;for(p=0;p<d;p++){const n=t[p]=l?Wl(t[p]):Zl(t[p]);h(e[p],n,r,null,a,o,i,s,l)}c>u?B(e,a,o,!0,!1,d):w(t,r,n,a,o,i,s,l,d)},R=(e,t,r,n,a,o,i,s,l)=>{let c=0;const u=t.length;let d=e.length-1,p=u-1;for(;c<=d&&c<=p;){const n=e[c],u=t[c]=l?Wl(t[c]):Zl(t[c]);if(!Ll(n,u))break;h(n,u,r,null,a,o,i,s,l),c++}for(;c<=d&&c<=p;){const n=e[d],c=t[p]=l?Wl(t[p]):Zl(t[p]);if(!Ll(n,c))break;h(n,c,r,null,a,o,i,s,l),d--,p--}if(c>d){if(c<=p){const e=p+1,d=e<u?t[e].el:n;for(;c<=p;)h(null,t[c]=l?Wl(t[c]):Zl(t[c]),r,d,a,o,i,s,l),c++}}else if(c>p)for(;c<=d;)N(e[c],a,o,!0),c++;else{const f=c,m=c,g=new Map;for(c=m;c<=p;c++){const e=t[c]=l?Wl(t[c]):Zl(t[c]);null!=e.key&&g.set(e.key,c)}let v,b=0;const y=p-m+1;let O=!1,w=0;const x=new Array(y);for(c=0;c<y;c++)x[c]=0;for(c=f;c<=d;c++){const n=e[c];if(b>=y){N(n,a,o,!0);continue}let u;if(null!=n.key)u=g.get(n.key);else for(v=m;v<=p;v++)if(0===x[v-m]&&Ll(n,t[v])){u=v;break}void 0===u?N(n,a,o,!0):(x[u-m]=c+1,u>=w?w=u:O=!0,h(n,t[u],r,null,a,o,i,s,l),b++)}const k=O?function(e){const t=e.slice(),r=[0];let n,a,o,i,s;const l=e.length;for(n=0;n<l;n++){const l=e[n];if(0!==l){if(a=r[r.length-1],e[a]<l){t[n]=a,r.push(n);continue}for(o=0,i=r.length-1;o<i;)s=o+i>>1,e[r[s]]<l?o=s+1:i=s;l<e[r[o]]&&(o>0&&(t[n]=r[o-1]),r[o]=n)}}for(o=r.length,i=r[o-1];o-- >0;)r[o]=i,i=t[i];return r}(x):tn;for(v=k.length-1,c=y-1;c>=0;c--){const e=m+c,d=t[e],p=e+1<u?t[e+1].el:n;0===x[c]?h(null,d,r,p,a,o,i,s,l):O&&(v<0||c!==k[v]?M(d,r,p,2):v--)}}},M=(e,n,a,o,i=null)=>{const{el:s,type:l,transition:c,children:u,shapeFlag:d}=e;if(6&d)M(e.component.subTree,n,a,o);else if(128&d)e.suspense.move(n,a,o);else if(64&d)l.move(e,n,a,z);else if(l!==Sl)if(l!==Tl)if(2!==o&&1&d&&c)if(0===o)c.beforeEnter(s),t(s,n,a),el((()=>c.enter(s)),i);else{const{leave:o,delayLeave:i,afterLeave:l}=c,u=()=>{e.ctx.isUnmounted?r(s):t(s,n,a)},d=()=>{o(s,(()=>{u(),l&&l()}))};i?i(s,u,d):d()}else t(s,n,a);else v(e,n,a);else{t(s,n,a);for(let e=0;e<u.length;e++)M(u[e],n,a,o);t(e.anchor,n,a)}},N=(e,t,r,n=!1,a=!1)=>{const{type:o,props:i,ref:s,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p,cacheIndex:h}=e;if(-2===d&&(a=!1),null!=s&&(Oa(),Fi(s,null,r,e,!0),wa()),null!=h&&(t.renderCache[h]=void 0),256&u)return void t.ctx.deactivate(e);const f=1&u&&p,m=!Qi(e);let g;if(m&&(g=i&&i.onVnodeBeforeUnmount)&&Yl(g,t,e),6&u)j(e.component,r,n);else{if(128&u)return void e.suspense.unmount(r,n);f&&di(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,r,z,n):c&&!c.hasOnce&&(o!==Sl||d>0&&64&d)?B(c,t,r,!1,!0):(o===Sl&&384&d||!a&&16&u)&&B(l,t,r),n&&I(e)}(m&&(g=i&&i.onVnodeUnmounted)||f)&&el((()=>{g&&Yl(g,t,e),f&&di(e,null,t,"unmounted")}),r)},I=e=>{const{type:t,el:n,anchor:a,transition:o}=e;if(t===Sl)return void L(n,a);if(t===Tl)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=u(e),r(e),e=n;r(t)})(e);const i=()=>{r(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,a=()=>t(n,i);r?r(e.el,i,a):a()}else i()},L=(e,t)=>{let n;for(;e!==t;)n=u(e),r(e),e=n;r(t)},j=(e,t,r)=>{const{bum:n,scope:a,job:o,subTree:i,um:s,m:l,a:c,parent:u,slots:{__:d}}=e;il(l),il(c),n&&Rn(n),u&&dn(d)&&d.forEach((e=>{u.renderCache[e]=void 0})),a.stop(),o&&(o.flags|=8,N(i,e,t,r)),s&&el(s,t),el((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},B=(e,t,r,n=!1,a=!1,o=0)=>{for(let i=o;i<e.length;i++)N(e[i],t,r,n,a)},U=e=>{if(6&e.shapeFlag)return U(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=u(e.anchor||e.el),r=t&&t[pi];return r?u(r):t};let F=!1;const Q=(e,t,r)=>{null==e?t._vnode&&N(t._vnode,null,null,!0):h(t._vnode||null,e,t,null,null,null,r),t._vnode=e,F||(F=!0,ri(),ni(),F=!1)},z={p:h,um:N,m:M,r:I,mt:T,mc:w,pc:D,pbc:k,n:U,o:e};return{render:Q,hydrate:undefined,createApp:Is(Q)}}(e)}function rl({type:e,props:t},r){return"svg"===r&&"foreignObject"===e||"mathml"===r&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function nl({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function al(e,t,r=!1){const n=e.children,a=t.children;if(dn(n)&&dn(a))for(let e=0;e<n.length;e++){const t=n[e];let o=a[e];1&o.shapeFlag&&!o.dynamicChildren&&((o.patchFlag<=0||32===o.patchFlag)&&(o=a[e]=Wl(a[e]),o.el=t.el),r||-2===o.patchFlag||al(t,o)),o.type===_l&&(o.el=t.el),o.type!==El||o.el||(o.el=t.el)}}function ol(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ol(t)}function il(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const sl=Symbol.for("v-scx"),ll=()=>Bs(sl);function cl(e,t){return dl(e,null,t)}function ul(e,t,r){return dl(e,t,r)}function dl(e,t,r=en){const{immediate:n,deep:a,flush:o,once:i}=r,s=sn({},r),l=t&&n||!t&&"post"!==o;let c;if(sc)if("sync"===o){const e=ll();c=e.__watcherHandles||(e.__watcherHandles=[])}else if(!l){const e=()=>{};return e.stop=rn,e.resume=rn,e.pause=rn,e}const u=ec;s.call=(e,t,r)=>zo(e,u,t,r);let d=!1;"post"===o?s.scheduler=e=>{el(e,u&&u.suspense)}:"sync"!==o&&(d=!0,s.scheduler=(e,t)=>{t?e():Jo(e)}),s.augmentJob=e=>{t&&(e.flags|=4),d&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};const p=function(e,t,r=en){const{immediate:n,deep:a,once:o,scheduler:i,augmentJob:s,call:l}=r,c=e=>a?e:bo(e)||!1===a||0===a?Fo(e,1):Fo(e);let u,d,p,h,f=!1,m=!1;if(ko(e)?(d=()=>e.value,f=bo(e)):go(e)?(d=()=>c(e),f=!0):dn(e)?(m=!0,f=e.some((e=>go(e)||bo(e))),d=()=>e.map((e=>ko(e)?e.value:go(e)?c(e):mn(e)?l?l(e,2):e():void 0))):d=mn(e)?t?l?()=>l(e,2):e:()=>{if(p){Oa();try{p()}finally{wa()}}const t=Uo;Uo=u;try{return l?l(e,3,[h]):e(h)}finally{Uo=t}}:rn,t&&a){const e=d,t=!0===a?1/0:a;d=()=>Fo(e(),t)}const g=ra(),v=()=>{u.stop(),g&&g.active&&ln(g.effects,u)};if(o&&t){const e=t;t=(...t)=>{e(...t),v()}}let b=m?new Array(e.length).fill(jo):jo;const y=e=>{if(1&u.flags&&(u.dirty||e))if(t){const e=u.run();if(a||f||(m?e.some(((e,t)=>$n(e,b[t]))):$n(e,b))){p&&p();const r=Uo;Uo=u;try{const r=[e,b===jo?void 0:m&&b[0]===jo?[]:b,h];b=e,l?l(t,3,r):t(...r)}finally{Uo=r}}}else u.run()};return s&&s(y),u=new oa(d),u.scheduler=i?()=>i(y,!1):y,h=e=>function(e,t=!1,r=Uo){if(r){let t=Bo.get(r);t||Bo.set(r,t=[]),t.push(e)}}(e,!1,u),p=u.onStop=()=>{const e=Bo.get(u);if(e){if(l)l(e,4);else for(const t of e)t();Bo.delete(u)}},t?n?y(!0):b=u.run():i?i(y.bind(null,!0),!0):u.run(),v.pause=u.pause.bind(u),v.resume=u.resume.bind(u),v.stop=v,v}(e,t,s);return sc&&(c?c.push(p):l&&p()),p}function pl(e,t,r){const n=this.proxy,a=gn(e)?e.includes(".")?hl(n,e):()=>n[e]:e.bind(n,n);let o;mn(t)?o=t:(o=t.handler,r=t);const i=ac(this),s=dl(a,o.bind(n),r);return i(),s}function hl(e,t){const r=t.split(".");return()=>{let t=e;for(let e=0;e<r.length&&t;e++)t=t[r[e]];return t}}function fl(e,t,r=en){const n=tc(),a=Tn(t),o=Cn(t),i=ml(e,a),s=Ro(((i,s)=>{let l,c,u=en;return dl((()=>{const t=e[a];$n(l,t)&&(l=t,s())}),null,{flush:"sync"}),{get:()=>(i(),r.get?r.get(l):l),set(e){const i=r.set?r.set(e):e;if(!($n(i,l)||u!==en&&$n(e,u)))return;const d=n.vnode.props;d&&(t in d||a in d||o in d)&&(`onUpdate:${t}`in d||`onUpdate:${a}`in d||`onUpdate:${o}`in d)||(l=e,s()),n.emit(`update:${t}`,i),$n(e,i)&&$n(e,u)&&!$n(i,c)&&s(),u=e,c=i}}}));return s[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?i||en:s,done:!1}:{done:!0}}},s}const ml=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${Tn(t)}Modifiers`]||e[`${Cn(t)}Modifiers`];function gl(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||en;let a=r;const o=t.startsWith("update:"),i=o&&ml(n,t.slice(7));let s;i&&(i.trim&&(a=r.map((e=>gn(e)?e.trim():e))),i.number&&(a=r.map(Nn)));let l=n[s=Dn(t)]||n[s=Dn(Tn(t))];!l&&o&&(l=n[s=Dn(Cn(t))]),l&&zo(l,e,6,a);const c=n[s+"Once"];if(c){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,zo(c,e,6,a)}}function vl(e,t,r=!1){const n=t.emitsCache,a=n.get(e);if(void 0!==a)return a;const o=e.emits;let i={},s=!1;if(!mn(e)){const n=e=>{const r=vl(e,t,!0);r&&(s=!0,sn(i,r))};!r&&t.mixins.length&&t.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}return o||s?(dn(o)?o.forEach((e=>i[e]=null)):sn(i,o),bn(e)&&n.set(e,i),i):(bn(e)&&n.set(e,null),null)}function bl(e,t){return!(!e||!an(t))&&(t=t.slice(2).replace(/Once$/,""),un(e,t[0].toLowerCase()+t.slice(1))||un(e,Cn(t))||un(e,t))}function yl(e){const{type:t,vnode:r,proxy:n,withProxy:a,propsOptions:[o],slots:i,attrs:s,emit:l,render:c,renderCache:u,props:d,data:p,setupState:h,ctx:f,inheritAttrs:m}=e,g=li(e);let v,b;try{if(4&r.shapeFlag){const e=a||n,t=e;v=Zl(c.call(t,e,u,d,h,p,f)),b=s}else{const e=t;v=Zl(e.length>1?e(d,{attrs:s,slots:i,emit:l}):e(d,null)),b=t.props?s:Ol(s)}}catch(t){Al.length=0,qo(t,e,1),v=Fl(El)}let y=v;if(b&&!1!==m){const e=Object.keys(b),{shapeFlag:t}=y;e.length&&7&t&&(o&&e.some(on)&&(b=wl(b,o)),y=zl(y,b,!1,!0))}return r.dirs&&(y=zl(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(r.dirs):r.dirs),r.transition&&Ni(y,r.transition),v=y,li(g),v}const Ol=e=>{let t;for(const r in e)("class"===r||"style"===r||an(r))&&((t||(t={}))[r]=e[r]);return t},wl=(e,t)=>{const r={};for(const n in e)on(n)&&n.slice(9)in t||(r[n]=e[n]);return r};function xl(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let a=0;a<n.length;a++){const o=n[a];if(t[o]!==e[o]&&!bl(r,o))return!0}return!1}const kl=e=>e.__isSuspense,Sl=Symbol.for("v-fgt"),_l=Symbol.for("v-txt"),El=Symbol.for("v-cmt"),Tl=Symbol.for("v-stc"),Al=[];let Cl=null;function Pl(e=!1){Al.push(Cl=e?null:[])}let Dl=1;function $l(e,t=!1){Dl+=e,e<0&&Cl&&t&&(Cl.hasOnce=!0)}function Rl(e){return e.dynamicChildren=Dl>0?Cl||tn:null,Al.pop(),Cl=Al[Al.length-1]||null,Dl>0&&Cl&&Cl.push(e),e}function Ml(e,t,r,n,a,o){return Rl(Ul(e,t,r,n,a,o,!0))}function Nl(e,t,r,n,a){return Rl(Fl(e,t,r,n,a,!0))}function Il(e){return!!e&&!0===e.__v_isVNode}function Ll(e,t){return e.type===t.type&&e.key===t.key}const jl=({key:e})=>null!=e?e:null,Bl=({ref:e,ref_key:t,ref_for:r})=>("number"==typeof e&&(e=""+e),null!=e?gn(e)||ko(e)||mn(e)?{i:ii,r:e,k:t,f:!!r}:e:null);function Ul(e,t=null,r=null,n=0,a=null,o=(e===Sl?0:1),i=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&jl(t),ref:t&&Bl(t),scopeId:si,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:ii};return s?(Xl(l,r),128&o&&e.normalize(l)):r&&(l.shapeFlag|=gn(r)?8:16),Dl>0&&!i&&Cl&&(l.patchFlag>0||6&o)&&32!==l.patchFlag&&Cl.push(l),l}const Fl=function(e,t=null,r=null,n=0,a=null,o=!1){if(e&&e!==ls||(e=El),Il(e)){const n=zl(e,t,!0);return r&&Xl(n,r),Dl>0&&!o&&Cl&&(6&n.shapeFlag?Cl[Cl.indexOf(e)]=n:Cl.push(n)),n.patchFlag=-2,n}var i;if(mn(i=e)&&"__vccOpts"in i&&(e=e.__vccOpts),t){t=Ql(t);let{class:e,style:r}=t;e&&!gn(e)&&(t.class=zn(e)),bn(r)&&(yo(r)&&!dn(r)&&(r=sn({},r)),t.style=jn(r))}return Ul(e,t,r,n,a,gn(e)?1:kl(e)?128:hi(e)?64:bn(e)?4:mn(e)?2:0,o,!0)};function Ql(e){return e?yo(e)||Qs(e)?sn({},e):e:null}function zl(e,t,r=!1,n=!1){const{props:a,ref:o,patchFlag:i,children:s,transition:l}=e,c=t?Gl(a||{},t):a,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&jl(c),ref:t&&t.ref?r&&o?dn(o)?o.concat(Bl(t)):[o,Bl(t)]:Bl(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Sl?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&zl(e.ssContent),ssFallback:e.ssFallback&&zl(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&Ni(u,l.clone(u)),u}function ql(e=" ",t=0){return Fl(_l,null,e,t)}function Hl(e,t){const r=Fl(Tl,null,e);return r.staticCount=t,r}function Vl(e="",t=!1){return t?(Pl(),Nl(El,null,e)):Fl(El,null,e)}function Zl(e){return null==e||"boolean"==typeof e?Fl(El):dn(e)?Fl(Sl,null,e.slice()):Il(e)?Wl(e):Fl(_l,null,String(e))}function Wl(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:zl(e)}function Xl(e,t){let r=0;const{shapeFlag:n}=e;if(null==t)t=null;else if(dn(t))r=16;else if("object"==typeof t){if(65&n){const r=t.default;return void(r&&(r._c&&(r._d=!1),Xl(e,r()),r._c&&(r._d=!0)))}{r=32;const n=t._;n||Qs(t)?3===n&&ii&&(1===ii.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=ii}}else mn(t)?(t={default:t,_ctx:ii},r=32):(t=String(t),64&n?(r=16,t=[ql(t)]):r=8);e.children=t,e.shapeFlag|=r}function Gl(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const e in n)if("class"===e)t.class!==n.class&&(t.class=zn([t.class,n.class]));else if("style"===e)t.style=jn([t.style,n.style]);else if(an(e)){const r=t[e],a=n[e];!a||r===a||dn(r)&&r.includes(a)||(t[e]=r?[].concat(r,a):a)}else""!==e&&(t[e]=n[e])}return t}function Yl(e,t,r,n=null){zo(e,t,7,[r,n])}const Kl=Ms();let Jl=0,ec=null;const tc=()=>ec||ii;let rc,nc;{const e=Ln(),t=(t,r)=>{let n;return(n=e[t])||(n=e[t]=[]),n.push(r),e=>{n.length>1?n.forEach((t=>t(e))):n[0](e)}};rc=t("__VUE_INSTANCE_SETTERS__",(e=>ec=e)),nc=t("__VUE_SSR_SETTERS__",(e=>sc=e))}const ac=e=>{const t=ec;return rc(e),e.scope.on(),()=>{e.scope.off(),rc(t)}},oc=()=>{ec&&ec.scope.off(),rc(null)};function ic(e){return 4&e.vnode.shapeFlag}let sc=!1;function lc(e,t,r){mn(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:bn(t)&&(e.setupState=Do(t)),cc(e)}function cc(e,t,r){const n=e.type;e.render||(e.render=n.render||rn);{const t=ac(e);Oa();try{!function(e){const t=Es(e),r=e.proxy,n=e.ctx;ks=!1,t.beforeCreate&&Ss(t.beforeCreate,e,"bc");const{data:a,computed:o,methods:i,watch:s,provide:l,inject:c,created:u,beforeMount:d,mounted:p,beforeUpdate:h,updated:f,activated:m,deactivated:g,beforeDestroy:v,beforeUnmount:b,destroyed:y,unmounted:O,render:w,renderTracked:x,renderTriggered:k,errorCaptured:S,serverPrefetch:_,expose:E,inheritAttrs:T,components:A,directives:C,filters:P}=t;if(c&&function(e,t){dn(e)&&(e=Ps(e));for(const r in e){const n=e[r];let a;a=bn(n)?"default"in n?Bs(n.from||r,n.default,!0):Bs(n.from||r):Bs(n),ko(a)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e}):t[r]=a}}(c,n),i)for(const e in i){const t=i[e];mn(t)&&(n[e]=t.bind(r))}if(a){const t=a.call(r,r);bn(t)&&(e.data=uo(t))}if(ks=!0,o)for(const e in o){const t=o[e],a=mn(t)?t.bind(r,r):mn(t.get)?t.get.bind(r,r):rn,i=!mn(t)&&mn(t.set)?t.set.bind(r):rn,s=hc({get:a,set:i});Object.defineProperty(n,e,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(s)for(const e in s)_s(s[e],n,r,e);if(l){const e=mn(l)?l.call(r):l;Reflect.ownKeys(e).forEach((t=>{js(t,e[t])}))}function D(e,t){dn(t)?t.forEach((t=>e(t.bind(r)))):t&&e(t.bind(r))}if(u&&Ss(u,e,"c"),D(Gi,d),D(Yi,p),D(Ki,h),D(Ji,f),D(qi,m),D(Hi,g),D(os,S),D(as,x),D(ns,k),D(es,b),D(ts,O),D(rs,_),dn(E))if(E.length){const t=e.exposed||(e.exposed={});E.forEach((e=>{Object.defineProperty(t,e,{get:()=>r[e],set:t=>r[e]=t})}))}else e.exposed||(e.exposed={});w&&e.render===rn&&(e.render=w),null!=T&&(e.inheritAttrs=T),A&&(e.components=A),C&&(e.directives=C),_&&Bi(e)}(e)}finally{wa(),t()}}}const uc={get:(e,t)=>(Da(e,0,""),e[t])};function dc(e){return{attrs:new Proxy(e.attrs,uc),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function pc(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Do((t=e.exposed,!un(t,"__v_skip")&&Object.isExtensible(t)&&Mn(t,"__v_skip",!0),t)),{get:(t,r)=>r in t?t[r]:r in vs?vs[r](e):void 0,has:(e,t)=>t in e||t in vs})):e.proxy;var t}const hc=(e,t)=>{const r=function(e,t,r=!1){let n,a;return mn(e)?n=e:(n=e.get,a=e.set),new Lo(n,a,r)}(e,0,sc);return r};function fc(e,t,r){const n=arguments.length;return 2===n?bn(t)&&!dn(t)?Il(t)?Fl(e,null,[t]):Fl(e,t):Fl(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):3===n&&Il(r)&&(r=[r]),Fl(e,t,r))}const mc="3.5.17";
|
||
/**
|
||
* @vue/runtime-dom v3.5.17
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let gc;const vc="undefined"!=typeof window&&window.trustedTypes;if(vc)try{gc=vc.createPolicy("vue",{createHTML:e=>e})}catch(NB){}const bc=gc?e=>gc.createHTML(e):e=>e,yc="undefined"!=typeof document?document:null,Oc=yc&&yc.createElement("template"),wc={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const a="svg"===t?yc.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?yc.createElementNS("http://www.w3.org/1998/Math/MathML",e):r?yc.createElement(e,{is:r}):yc.createElement(e);return"select"===e&&n&&null!=n.multiple&&a.setAttribute("multiple",n.multiple),a},createText:e=>yc.createTextNode(e),createComment:e=>yc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>yc.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,a,o){const i=r?r.previousSibling:t.lastChild;if(a&&(a===o||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),r),a!==o&&(a=a.nextSibling););else{Oc.innerHTML=bc("svg"===n?`<svg>${e}</svg>`:"mathml"===n?`<math>${e}</math>`:e);const a=Oc.content;if("svg"===n||"mathml"===n){const e=a.firstChild;for(;e.firstChild;)a.appendChild(e.firstChild);a.removeChild(e)}t.insertBefore(a,r)}return[i?i.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},xc="transition",kc="animation",Sc=Symbol("_vtc"),_c={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ec=sn({},Ti,_c),Tc=(e=>(e.displayName="Transition",e.props=Ec,e))(((e,{slots:t})=>fc(Pi,function(e){const t={};for(const r in e)r in _c||(t[r]=e[r]);if(!1===e.css)return t;const{name:r="v",type:n,duration:a,enterFromClass:o=`${r}-enter-from`,enterActiveClass:i=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=o,appearActiveClass:c=i,appearToClass:u=s,leaveFromClass:d=`${r}-leave-from`,leaveActiveClass:p=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=e,f=function(e){if(null==e)return null;if(bn(e))return[Pc(e.enter),Pc(e.leave)];{const t=Pc(e);return[t,t]}}(a),m=f&&f[0],g=f&&f[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:y,onLeave:O,onLeaveCancelled:w,onBeforeAppear:x=v,onAppear:k=b,onAppearCancelled:S=y}=t,_=(e,t,r,n)=>{e._enterCancelled=n,$c(e,t?u:s),$c(e,t?c:i),r&&r()},E=(e,t)=>{e._isLeaving=!1,$c(e,d),$c(e,h),$c(e,p),t&&t()},T=e=>(t,r)=>{const a=e?k:b,i=()=>_(t,e,r);Ac(a,[t,i]),Rc((()=>{$c(t,e?l:o),Dc(t,e?u:s),Cc(a)||Nc(t,n,m,i)}))};return sn(t,{onBeforeEnter(e){Ac(v,[e]),Dc(e,o),Dc(e,i)},onBeforeAppear(e){Ac(x,[e]),Dc(e,l),Dc(e,c)},onEnter:T(!1),onAppear:T(!0),onLeave(e,t){e._isLeaving=!0;const r=()=>E(e,t);Dc(e,d),e._enterCancelled?(Dc(e,p),jc()):(jc(),Dc(e,p)),Rc((()=>{e._isLeaving&&($c(e,d),Dc(e,h),Cc(O)||Nc(e,n,g,r))})),Ac(O,[e,r])},onEnterCancelled(e){_(e,!1,void 0,!0),Ac(y,[e])},onAppearCancelled(e){_(e,!0,void 0,!0),Ac(S,[e])},onLeaveCancelled(e){E(e),Ac(w,[e])}})}(e),t))),Ac=(e,t=[])=>{dn(e)?e.forEach((e=>e(...t))):e&&e(...t)},Cc=e=>!!e&&(dn(e)?e.some((e=>e.length>1)):e.length>1);function Pc(e){return(e=>{const t=gn(e)?Number(e):NaN;return isNaN(t)?e:t})(e)}function Dc(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[Sc]||(e[Sc]=new Set)).add(t)}function $c(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const r=e[Sc];r&&(r.delete(t),r.size||(e[Sc]=void 0))}function Rc(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Mc=0;function Nc(e,t,r,n){const a=e._endId=++Mc,o=()=>{a===e._endId&&n()};if(null!=r)return setTimeout(o,r);const{type:i,timeout:s,propCount:l}=function(e,t){const r=window.getComputedStyle(e),n=e=>(r[e]||"").split(", "),a=n(`${xc}Delay`),o=n(`${xc}Duration`),i=Ic(a,o),s=n(`${kc}Delay`),l=n(`${kc}Duration`),c=Ic(s,l);let u=null,d=0,p=0;t===xc?i>0&&(u=xc,d=i,p=o.length):t===kc?c>0&&(u=kc,d=c,p=l.length):(d=Math.max(i,c),u=d>0?i>c?xc:kc:null,p=u?u===xc?o.length:l.length:0);return{type:u,timeout:d,propCount:p,hasTransform:u===xc&&/\b(transform|all)(,|$)/.test(n(`${xc}Property`).toString())}}(e,t);if(!i)return n();const c=i+"end";let u=0;const d=()=>{e.removeEventListener(c,p),o()},p=t=>{t.target===e&&++u>=l&&d()};setTimeout((()=>{u<l&&d()}),s+1),e.addEventListener(c,p)}function Ic(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,r)=>Lc(t)+Lc(e[r]))))}function Lc(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function jc(){return document.body.offsetHeight}const Bc=Symbol("_vod"),Uc=Symbol("_vsh"),Fc={beforeMount(e,{value:t},{transition:r}){e[Bc]="none"===e.style.display?"":e.style.display,r&&t?r.beforeEnter(e):Qc(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),Qc(e,!0),n.enter(e)):n.leave(e,(()=>{Qc(e,!1)})):Qc(e,t))},beforeUnmount(e,{value:t}){Qc(e,t)}};function Qc(e,t){e.style.display=t?e[Bc]:"none",e[Uc]=!t}const zc=Symbol("");function qc(e){const t=tc();if(!t)return;const r=t.ut=(r=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>Vc(e,r)))},n=()=>{const n=e(t.proxy);t.ce?Vc(t.ce,n):Hc(t.subTree,n),r(n)};Ki((()=>{ti(n)})),Yi((()=>{ul(n,rn,{flush:"post"});const e=new MutationObserver(n);e.observe(t.subTree.el.parentNode,{childList:!0}),ts((()=>e.disconnect()))}))}function Hc(e,t){if(128&e.shapeFlag){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push((()=>{Hc(r.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Vc(e.el,t);else if(e.type===Sl)e.children.forEach((e=>Hc(e,t)));else if(e.type===Tl){let{el:r,anchor:n}=e;for(;r&&(Vc(r,t),r!==n);)r=r.nextSibling}}function Vc(e,t){if(1===e.nodeType){const r=e.style;let n="";for(const e in t)r.setProperty(`--${e}`,t[e]),n+=`--${e}: ${t[e]};`;r[zc]=n}}const Zc=/(^|;)\s*display\s*:/,Wc=/\s*!important$/;function Xc(e,t,r){if(dn(r))r.forEach((r=>Xc(e,t,r)));else if(null==r&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=function(e,t){const r=Yc[t];if(r)return r;let n=Tn(t);if("filter"!==n&&n in e)return Yc[t]=n;n=Pn(n);for(let r=0;r<Gc.length;r++){const a=Gc[r]+n;if(a in e)return Yc[t]=a}return t}(e,t);Wc.test(r)?e.setProperty(Cn(n),r.replace(Wc,""),"important"):e[n]=r}}const Gc=["Webkit","Moz","ms"],Yc={},Kc="http://www.w3.org/1999/xlink";function Jc(e,t,r,n,a,o=Hn(t)){n&&t.startsWith("xlink:")?null==r?e.removeAttributeNS(Kc,t.slice(6,t.length)):e.setAttributeNS(Kc,t,r):null==r||o&&!Vn(r)?e.removeAttribute(t):e.setAttribute(t,o?"":vn(r)?String(r):r)}function eu(e,t,r,n,a){if("innerHTML"===t||"textContent"===t)return void(null!=r&&(e[t]="innerHTML"===t?bc(r):r));const o=e.tagName;if("value"===t&&"PROGRESS"!==o&&!o.includes("-")){const n="OPTION"===o?e.getAttribute("value")||"":e.value,a=null==r?"checkbox"===e.type?"on":"":String(r);return n===a&&"_value"in e||(e.value=a),null==r&&e.removeAttribute(t),void(e._value=r)}let i=!1;if(""===r||null==r){const n=typeof e[t];"boolean"===n?r=Vn(r):null==r&&"string"===n?(r="",i=!0):"number"===n&&(r=0,i=!0)}try{e[t]=r}catch(e){}i&&e.removeAttribute(a||t)}function tu(e,t,r,n){e.addEventListener(t,r,n)}const ru=Symbol("_vei");const nu=/(?:Once|Passive|Capture)$/;let au=0;const ou=Promise.resolve(),iu=()=>au||(ou.then((()=>au=0)),au=Date.now()),su=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,lu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return dn(t)?e=>Rn(t,e):t};function cu(e){e.target.composing=!0}function uu(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const du=Symbol("_assign"),pu={created(e,{modifiers:{lazy:t,trim:r,number:n}},a){e[du]=lu(a);const o=n||a.props&&"number"===a.props.type;tu(e,t?"change":"input",(t=>{if(t.target.composing)return;let n=e.value;r&&(n=n.trim()),o&&(n=Nn(n)),e[du](n)})),r&&tu(e,"change",(()=>{e.value=e.value.trim()})),t||(tu(e,"compositionstart",cu),tu(e,"compositionend",uu),tu(e,"change",uu))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:a,number:o}},i){if(e[du]=lu(i),e.composing)return;const s=null==t?"":t;if((!o&&"number"!==e.type||/^0\d/.test(e.value)?e.value:Nn(e.value))!==s){if(document.activeElement===e&&"range"!==e.type){if(n&&t===r)return;if(a&&e.value.trim()===s)return}e.value=s}}},hu={deep:!0,created(e,t,r){e[du]=lu(r),tu(e,"change",(()=>{const t=e._modelValue,r=bu(e),n=e.checked,a=e[du];if(dn(t)){const e=Wn(t,r),o=-1!==e;if(n&&!o)a(t.concat(r));else if(!n&&o){const r=[...t];r.splice(e,1),a(r)}}else if(hn(t)){const e=new Set(t);n?e.add(r):e.delete(r),a(e)}else a(yu(e,n))}))},mounted:fu,beforeUpdate(e,t,r){e[du]=lu(r),fu(e,t,r)}};function fu(e,{value:t,oldValue:r},n){let a;if(e._modelValue=t,dn(t))a=Wn(t,n.props.value)>-1;else if(hn(t))a=t.has(n.props.value);else{if(t===r)return;a=Zn(t,yu(e,!0))}e.checked!==a&&(e.checked=a)}const mu={created(e,{value:t},r){e.checked=Zn(t,r.props.value),e[du]=lu(r),tu(e,"change",(()=>{e[du](bu(e))}))},beforeUpdate(e,{value:t,oldValue:r},n){e[du]=lu(n),t!==r&&(e.checked=Zn(t,n.props.value))}},gu={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const a=hn(t);tu(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>r?Nn(bu(e)):bu(e)));e[du](e.multiple?a?new Set(t):t:t[0]),e._assigning=!0,Ko((()=>{e._assigning=!1}))})),e[du]=lu(n)},mounted(e,{value:t}){vu(e,t)},beforeUpdate(e,t,r){e[du]=lu(r)},updated(e,{value:t}){e._assigning||vu(e,t)}};function vu(e,t){const r=e.multiple,n=dn(t);if(!r||n||hn(t)){for(let a=0,o=e.options.length;a<o;a++){const o=e.options[a],i=bu(o);if(r)if(n){const e=typeof i;o.selected="string"===e||"number"===e?t.some((e=>String(e)===String(i))):Wn(t,i)>-1}else o.selected=t.has(i);else if(Zn(bu(o),t))return void(e.selectedIndex!==a&&(e.selectedIndex=a))}r||-1===e.selectedIndex||(e.selectedIndex=-1)}}function bu(e){return"_value"in e?e._value:e.value}function yu(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const Ou={created(e,t,r){wu(e,t,r,null,"created")},mounted(e,t,r){wu(e,t,r,null,"mounted")},beforeUpdate(e,t,r,n){wu(e,t,r,n,"beforeUpdate")},updated(e,t,r,n){wu(e,t,r,n,"updated")}};function wu(e,t,r,n,a){const o=function(e,t){switch(e){case"SELECT":return gu;case"TEXTAREA":return pu;default:switch(t){case"checkbox":return hu;case"radio":return mu;default:return pu}}}(e.tagName,r.props&&r.props.type)[a];o&&o(e,t,r,n)}const xu=["ctrl","shift","alt","meta"],ku={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>xu.some((r=>e[`${r}Key`]&&!t.includes(r)))},Su=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=(r,...n)=>{for(let e=0;e<t.length;e++){const n=ku[t[e]];if(n&&n(r,t))return}return e(r,...n)})},_u={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Eu=(e,t)=>{const r=e._withKeys||(e._withKeys={}),n=t.join(".");return r[n]||(r[n]=r=>{if(!("key"in r))return;const n=Cn(r.key);return t.some((e=>e===n||_u[e]===n))?e(r):void 0})},Tu=sn({patchProp:(e,t,r,n,a,o)=>{const i="svg"===a;"class"===t?function(e,t,r){const n=e[Sc];n&&(t=(t?[t,...n]:[...n]).join(" ")),null==t?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}(e,n,i):"style"===t?function(e,t,r){const n=e.style,a=gn(r);let o=!1;if(r&&!a){if(t)if(gn(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==r[t]&&Xc(n,t,"")}else for(const e in t)null==r[e]&&Xc(n,e,"");for(const e in r)"display"===e&&(o=!0),Xc(n,e,r[e])}else if(a){if(t!==r){const e=n[zc];e&&(r+=";"+e),n.cssText=r,o=Zc.test(r)}}else t&&e.removeAttribute("style");Bc in e&&(e[Bc]=o?n.display:"",e[Uc]&&(n.display="none"))}(e,r,n):an(t)?on(t)||function(e,t,r,n,a=null){const o=e[ru]||(e[ru]={}),i=o[t];if(n&&i)i.value=n;else{const[r,s]=function(e){let t;if(nu.test(e)){let r;for(t={};r=e.match(nu);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):Cn(e.slice(2)),t]}(t);if(n){const i=o[t]=function(e,t){const r=e=>{if(e._vts){if(e._vts<=r.attached)return}else e._vts=Date.now();zo(function(e,t){if(dn(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,r.value),t,5,[e])};return r.value=e,r.attached=iu(),r}(n,a);tu(e,r,i,s)}else i&&(function(e,t,r,n){e.removeEventListener(t,r,n)}(e,r,i,s),o[t]=void 0)}}(e,t,0,n,o):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,r,n){if(n)return"innerHTML"===t||"textContent"===t||!!(t in e&&su(t)&&mn(r));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!su(t)||!gn(r))&&t in e}(e,t,n,i))?(eu(e,t,n),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Jc(e,t,n,i,0,"value"!==t)):!e._isVueCE||!/[A-Z]/.test(t)&&gn(n)?("true-value"===t?e._trueValue=n:"false-value"===t&&(e._falseValue=n),Jc(e,t,n,i)):eu(e,Tn(t),n,0,t)}},wc);let Au;function Cu(){return Au||(Au=tl(Tu))}const Pu=(...e)=>{Cu().render(...e)},Du=(...e)=>{const t=Cu().createApp(...e),{mount:r}=t;return t.mount=e=>{const n=function(e){return gn(e)?document.querySelector(e):e}(e);if(!n)return;const a=t._component;mn(a)||a.render||a.template||(a.template=n.innerHTML),1===n.nodeType&&(n.textContent="");const o=r(n,!1,function(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),o},t},$u="3"===mc[0];function Ru(e){if(e instanceof Promise||e instanceof Date||e instanceof RegExp)return e;const t="function"==typeof(r=e)?r():Ao(r);var r;if(!e||!t)return t;if(Array.isArray(t))return t.map((e=>Ru(e)));if("object"==typeof t){const e={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&("titleTemplate"===r||"o"===r[0]&&"n"===r[1]?e[r]=Ao(t[r]):e[r]=Ru(t[r]));return e}return t}const Mu={hooks:{"entries:resolve":e=>{for(const t of e.entries)t.resolvedInput=Ru(t.input)}}},Nu="usehead";function Iu(e={}){e.domDelayFn=e.domDelayFn||(e=>Ko((()=>setTimeout((()=>e()),0))));const t=function(e={}){const t=function(e={}){const t=new Lr;t.addHooks(e.hooks||{}),e.document=e.document||(Kt?document:void 0);const r=!e.document,n=()=>{s.dirty=!0,t.callHook("entries:updated",s)};let a=0,o=[];const i=[],s={plugins:i,dirty:!1,resolvedOptions:e,hooks:t,headEntries:()=>o,use(e){const n="function"==typeof e?e(s):e;n.key&&i.some((e=>e.key===n.key))||(i.push(n),Kr(n.mode,r)&&t.addHooks(n.hooks||{}))},push(e,t){null==t||delete t.head;const i={_i:a++,input:e,...t};return Kr(i.mode,r)&&(o.push(i),n()),{dispose(){o=o.filter((e=>e._i!==i._i)),n()},patch(e){for(const t of o)t._i===i._i&&(t.input=i.input=e);n()}}},async resolveTags(){const e={tags:[],entries:[...o]};await t.callHook("entries:resolve",e);for(const r of e.entries){const n=r.resolvedInput||r.input;if(r.resolvedInput=await(r.transform?r.transform(n):n),r.resolvedInput)for(const n of await br(r)){const a={tag:n,entry:r,resolvedOptions:s.resolvedOptions};await t.callHook("tag:normalise",a),e.tags.push(a.tag)}}return await t.callHook("tags:beforeResolve",e),await t.callHook("tags:resolve",e),await t.callHook("tags:afterResolve",e),e.tags},ssr:r};return[Br,qr,Fr,zr,Hr,Wr,Xr,Gr,...(null==e?void 0:e.plugins)||[]].forEach((e=>s.use(e))),s.hooks.callHook("init",s),s}(e);return t.use(Pr()),Yr=t}(e);return t.use(Mu),t.install=function(e){return{install(t){$u&&(t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(Nu,e))}}.install}(t),t}const Lu="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ju="__unhead_injection_handler__";function Bu(e,t={}){const r=t.head||(ju in Lu?Lu[ju]():Bs(Nu)||Yr);if(r)return r.ssr?r.push(e,t):function(e,t,r={}){const n=So(!1),a=So({});cl((()=>{a.value=n.value?{}:Ru(t)}));const o=e.push(a.value,r);return ul(a,(e=>{o.patch(e)})),tc()&&(es((()=>{o.dispose()})),Hi((()=>{n.value=!0})),qi((()=>{n.value=!1}))),o}(r,e,t)}const Uu=Object.keys({"2.0":{title:"A JSON Schema for Swagger 2.0 API.",id:"http://swagger.io/v2/schema.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swagger","info","paths"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{swagger:{type:"string",enum:["2.0"],description:"The Swagger version of this document."},info:{$ref:"#/definitions/info"},host:{type:"string",pattern:"^[^{}/ :\\\\]+(?::\\d+)?$",description:"The host (name or ip) of the API. Example: 'swagger.io'"},basePath:{type:"string",pattern:"^/",description:"The base path to the API. Example: '/api'."},schemes:{$ref:"#/definitions/schemesList"},consumes:{description:"A list of MIME types accepted by the API.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},paths:{$ref:"#/definitions/paths"},definitions:{$ref:"#/definitions/definitions"},parameters:{$ref:"#/definitions/parameterDefinitions"},responses:{$ref:"#/definitions/responseDefinitions"},security:{$ref:"#/definitions/security"},securityDefinitions:{$ref:"#/definitions/securityDefinitions"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:!0},externalDocs:{$ref:"#/definitions/externalDocs"}},definitions:{info:{type:"object",description:"General information about the API.",required:["version","title"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{title:{type:"string",description:"A unique and precise title of the API."},version:{type:"string",description:"A semantic version number of the API."},description:{type:"string",description:"A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed."},termsOfService:{type:"string",description:"The terms of service for the API."},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}}},contact:{type:"object",description:"Contact information for the owners of the API.",additionalProperties:!1,properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information.",format:"uri"},email:{type:"string",description:"The email address of the contact person/organization.",format:"email"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},license:{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",description:"The name of the license type. It's encouraged to use an OSI compatible license."},url:{type:"string",description:"The URL pointing to the license.",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},paths:{type:"object",description:"Relative paths to the individual endpoints. They must be relative to the 'basePath'.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"},"^/":{$ref:"#/definitions/pathItem"}},additionalProperties:!1},definitions:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},description:"One or more JSON objects describing the schemas being consumed and produced by the API."},parameterDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"},description:"One or more JSON representations for parameters"},responseDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/response"},description:"One or more JSON representations for responses"},externalDocs:{type:"object",additionalProperties:!1,description:"information about external documentation",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},examples:{type:"object",additionalProperties:!0},mimeType:{type:"string",description:"The MIME type of the HTTP message."},operation:{type:"object",required:["responses"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{tags:{type:"array",items:{type:"string"},uniqueItems:!0},summary:{type:"string",description:"A brief summary of the operation."},description:{type:"string",description:"A longer description of the operation, GitHub Flavored Markdown is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string",description:"A unique identifier of the operation."},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},consumes:{description:"A list of MIME types the API can consume.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},parameters:{$ref:"#/definitions/parametersList"},responses:{$ref:"#/definitions/responses"},schemes:{$ref:"#/definitions/schemesList"},deprecated:{type:"boolean",default:!1},security:{$ref:"#/definitions/security"}}},pathItem:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},get:{$ref:"#/definitions/operation"},put:{$ref:"#/definitions/operation"},post:{$ref:"#/definitions/operation"},delete:{$ref:"#/definitions/operation"},options:{$ref:"#/definitions/operation"},head:{$ref:"#/definitions/operation"},patch:{$ref:"#/definitions/operation"},parameters:{$ref:"#/definitions/parametersList"}}},responses:{type:"object",description:"Response objects names can either be any valid HTTP status code or 'default'.",minProperties:1,additionalProperties:!1,patternProperties:{"^([0-9]{3})$|^(default)$":{$ref:"#/definitions/responseValue"},"^x-":{$ref:"#/definitions/vendorExtension"}},not:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}}},responseValue:{oneOf:[{$ref:"#/definitions/response"},{$ref:"#/definitions/jsonReference"}]},response:{type:"object",required:["description"],properties:{description:{type:"string"},schema:{oneOf:[{$ref:"#/definitions/schema"},{$ref:"#/definitions/fileSchema"}]},headers:{$ref:"#/definitions/headers"},examples:{$ref:"#/definitions/examples"}},additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},headers:{type:"object",additionalProperties:{$ref:"#/definitions/header"}},header:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},vendorExtension:{description:"Any property starting with x- is valid.",additionalProperties:!0,additionalItems:!0},bodyParameter:{type:"object",required:["name","in","schema"],patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},in:{type:"string",description:"Determines the location of the parameter.",enum:["body"]},required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},schema:{$ref:"#/definitions/schema"}},additionalProperties:!1},headerParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["header"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},queryParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["query"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},formDataParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["formData"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array","file"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},pathParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["required"],properties:{required:{type:"boolean",enum:[!0],description:"Determines whether or not this parameter is required or optional."},in:{type:"string",description:"Determines the location of the parameter.",enum:["path"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},nonBodyParameter:{type:"object",required:["name","in","type"],oneOf:[{$ref:"#/definitions/headerParameterSubSchema"},{$ref:"#/definitions/formDataParameterSubSchema"},{$ref:"#/definitions/queryParameterSubSchema"},{$ref:"#/definitions/pathParameterSubSchema"}]},parameter:{oneOf:[{$ref:"#/definitions/bodyParameter"},{$ref:"#/definitions/nonBodyParameter"}]},schema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},maxProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},additionalProperties:{anyOf:[{$ref:"#/definitions/schema"},{type:"boolean"}],default:{}},type:{$ref:"http://json-schema.org/draft-04/schema#/properties/type"},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},discriminator:{type:"string"},readOnly:{type:"boolean",default:!1},xml:{$ref:"#/definitions/xml"},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},fileSchema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["type"],properties:{format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},type:{type:"string",enum:["file"]},readOnly:{type:"boolean",default:!1},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},primitivesItems:{type:"object",additionalProperties:!1,properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},security:{type:"array",items:{$ref:"#/definitions/securityRequirement"},uniqueItems:!0},securityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"},uniqueItems:!0}},xml:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},tag:{type:"object",additionalProperties:!1,required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},securityDefinitions:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/basicAuthenticationSecurity"},{$ref:"#/definitions/apiKeySecurity"},{$ref:"#/definitions/oauth2ImplicitSecurity"},{$ref:"#/definitions/oauth2PasswordSecurity"},{$ref:"#/definitions/oauth2ApplicationSecurity"},{$ref:"#/definitions/oauth2AccessCodeSecurity"}]}},basicAuthenticationSecurity:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["basic"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},apiKeySecurity:{type:"object",additionalProperties:!1,required:["type","name","in"],properties:{type:{type:"string",enum:["apiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ImplicitSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["implicit"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2PasswordSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["password"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ApplicationSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["application"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2AccessCodeSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["accessCode"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2Scopes:{type:"object",additionalProperties:{type:"string"}},mediaTypeList:{type:"array",items:{$ref:"#/definitions/mimeType"},uniqueItems:!0},parametersList:{type:"array",description:"The parameters needed to send a valid API call.",additionalItems:!1,items:{oneOf:[{$ref:"#/definitions/parameter"},{$ref:"#/definitions/jsonReference"}]},uniqueItems:!0},schemesList:{type:"array",description:"The transfer protocol of the API.",items:{type:"string",enum:["http","https","ws","wss"]},uniqueItems:!0},collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes"],default:"csv"},collectionFormatWithMulti:{type:"string",enum:["csv","ssv","tsv","pipes","multi"],default:"csv"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},jsonReference:{type:"object",required:["$ref"],additionalProperties:!1,properties:{$ref:{type:"string"}}}}},"3.0":{id:"https://spec.openapis.org/oas/3.0/schema/2021-09-28",$schema:"http://json-schema.org/draft-04/schema#",description:"The description of OpenAPI v3.0.x documents, as defined by https://spec.openapis.org/oas/v3.0.3",type:"object",required:["openapi","info","paths"],properties:{openapi:{type:"string",pattern:"^3\\.0\\.\\d(-.+)?$"},info:{$ref:"#/definitions/Info"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},servers:{type:"array",items:{$ref:"#/definitions/Server"}},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},tags:{type:"array",items:{$ref:"#/definitions/Tag"},uniqueItems:!0},paths:{$ref:"#/definitions/Paths"},components:{$ref:"#/definitions/Components"}},patternProperties:{"^x-":{}},additionalProperties:!1,definitions:{Reference:{type:"object",required:["$ref"],patternProperties:{"^\\$ref$":{type:"string",format:"uri-reference"}}},Info:{type:"object",required:["title","version"],properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri-reference"},contact:{$ref:"#/definitions/Contact"},license:{$ref:"#/definitions/License"},version:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},Contact:{type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"},email:{type:"string",format:"email"}},patternProperties:{"^x-":{}},additionalProperties:!1},License:{type:"object",required:["name"],properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},Server:{type:"object",required:["url"],properties:{url:{type:"string"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/definitions/ServerVariable"}}},patternProperties:{"^x-":{}},additionalProperties:!1},ServerVariable:{type:"object",required:["default"],properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},Components:{type:"object",properties:{schemas:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}}},responses:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Response"}]}}},parameters:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Parameter"}]}}},examples:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Example"}]}}},requestBodies:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/RequestBody"}]}}},headers:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Header"}]}}},securitySchemes:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/SecurityScheme"}]}}},links:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Link"}]}}},callbacks:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Callback"}]}}}},patternProperties:{"^x-":{}},additionalProperties:!1},Schema:{type:"object",properties:{title:{type:"string"},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0,default:0},pattern:{type:"string",format:"regex"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0,default:0},uniqueItems:{type:"boolean",default:!1},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0,default:0},required:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},enum:{type:"array",items:{},minItems:1,uniqueItems:!1},type:{type:"string",enum:["array","boolean","integer","number","object","string"]},not:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},allOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},oneOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},anyOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},properties:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},additionalProperties:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"},{type:"boolean"}],default:!0},description:{type:"string"},format:{type:"string"},default:{},nullable:{type:"boolean",default:!1},discriminator:{$ref:"#/definitions/Discriminator"},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},example:{},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},deprecated:{type:"boolean",default:!1},xml:{$ref:"#/definitions/XML"}},patternProperties:{"^x-":{}},additionalProperties:!1},Discriminator:{type:"object",required:["propertyName"],properties:{propertyName:{type:"string"},mapping:{type:"object",additionalProperties:{type:"string"}}}},XML:{type:"object",properties:{name:{type:"string"},namespace:{type:"string",format:"uri"},prefix:{type:"string"},attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1},Response:{type:"object",required:["description"],properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Header"},{$ref:"#/definitions/Reference"}]}},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"}},links:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Link"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1},MediaType:{type:"object",properties:{schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}},encoding:{type:"object",additionalProperties:{$ref:"#/definitions/Encoding"}}},patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{$ref:"#/definitions/ExampleXORExamples"}]},Example:{type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:{},externalValue:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},Header:{type:"object",properties:{description:{type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{type:"string",enum:["simple"],default:"simple"},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"}]},Paths:{type:"object",patternProperties:{"^\\/":{$ref:"#/definitions/PathItem"},"^x-":{}},additionalProperties:!1},PathItem:{type:"object",properties:{$ref:{type:"string"},summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/definitions/Server"}},parameters:{type:"array",items:{oneOf:[{$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]},uniqueItems:!0}},patternProperties:{"^(get|put|post|delete|options|head|patch|trace)$":{$ref:"#/definitions/Operation"},"^x-":{}},additionalProperties:!1},Operation:{type:"object",required:["responses"],properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},operationId:{type:"string"},parameters:{type:"array",items:{oneOf:[{$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]},uniqueItems:!0},requestBody:{oneOf:[{$ref:"#/definitions/RequestBody"},{$ref:"#/definitions/Reference"}]},responses:{$ref:"#/definitions/Responses"},callbacks:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Callback"},{$ref:"#/definitions/Reference"}]}},deprecated:{type:"boolean",default:!1},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},servers:{type:"array",items:{$ref:"#/definitions/Server"}}},patternProperties:{"^x-":{}},additionalProperties:!1},Responses:{type:"object",properties:{default:{oneOf:[{$ref:"#/definitions/Response"},{$ref:"#/definitions/Reference"}]}},patternProperties:{"^[1-5](?:\\d{2}|XX)$":{oneOf:[{$ref:"#/definitions/Response"},{$ref:"#/definitions/Reference"}]},"^x-":{}},minProperties:1,additionalProperties:!1},SecurityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},Tag:{type:"object",required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"}},patternProperties:{"^x-":{}},additionalProperties:!1},ExternalDocumentation:{type:"object",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},ExampleXORExamples:{description:"Example and examples are mutually exclusive",not:{required:["example","examples"]}},SchemaXORContent:{description:"Schema and content are mutually exclusive, at least one is required",not:{required:["schema","content"]},oneOf:[{required:["schema"]},{required:["content"],description:"Some properties are not allowed if content is present",allOf:[{not:{required:["style"]}},{not:{required:["explode"]}},{not:{required:["allowReserved"]}},{not:{required:["example"]}},{not:{required:["examples"]}}]}]},Parameter:{type:"object",properties:{name:{type:"string"},in:{type:"string"},description:{type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{type:"string"},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1,required:["name","in"],allOf:[{$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"},{$ref:"#/definitions/ParameterLocation"}]},ParameterLocation:{description:"Parameter location",oneOf:[{description:"Parameter in path",required:["required"],properties:{in:{enum:["path"]},style:{enum:["matrix","label","simple"],default:"simple"},required:{enum:[!0]}}},{description:"Parameter in query",properties:{in:{enum:["query"]},style:{enum:["form","spaceDelimited","pipeDelimited","deepObject"],default:"form"}}},{description:"Parameter in header",properties:{in:{enum:["header"]},style:{enum:["simple"],default:"simple"}}},{description:"Parameter in cookie",properties:{in:{enum:["cookie"]},style:{enum:["form"],default:"form"}}}]},RequestBody:{type:"object",required:["content"],properties:{description:{type:"string"},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"}},required:{type:"boolean",default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1},SecurityScheme:{oneOf:[{$ref:"#/definitions/APIKeySecurityScheme"},{$ref:"#/definitions/HTTPSecurityScheme"},{$ref:"#/definitions/OAuth2SecurityScheme"},{$ref:"#/definitions/OpenIdConnectSecurityScheme"}]},APIKeySecurityScheme:{type:"object",required:["type","name","in"],properties:{type:{type:"string",enum:["apiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query","cookie"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},HTTPSecurityScheme:{type:"object",required:["scheme","type"],properties:{scheme:{type:"string"},bearerFormat:{type:"string"},description:{type:"string"},type:{type:"string",enum:["http"]}},patternProperties:{"^x-":{}},additionalProperties:!1,oneOf:[{description:"Bearer",properties:{scheme:{type:"string",pattern:"^[Bb][Ee][Aa][Rr][Ee][Rr]$"}}},{description:"Non Bearer",not:{required:["bearerFormat"]},properties:{scheme:{not:{type:"string",pattern:"^[Bb][Ee][Aa][Rr][Ee][Rr]$"}}}}]},OAuth2SecurityScheme:{type:"object",required:["type","flows"],properties:{type:{type:"string",enum:["oauth2"]},flows:{$ref:"#/definitions/OAuthFlows"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},OpenIdConnectSecurityScheme:{type:"object",required:["type","openIdConnectUrl"],properties:{type:{type:"string",enum:["openIdConnect"]},openIdConnectUrl:{type:"string",format:"uri-reference"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},OAuthFlows:{type:"object",properties:{implicit:{$ref:"#/definitions/ImplicitOAuthFlow"},password:{$ref:"#/definitions/PasswordOAuthFlow"},clientCredentials:{$ref:"#/definitions/ClientCredentialsFlow"},authorizationCode:{$ref:"#/definitions/AuthorizationCodeOAuthFlow"}},patternProperties:{"^x-":{}},additionalProperties:!1},ImplicitOAuthFlow:{type:"object",required:["authorizationUrl","scopes"],properties:{authorizationUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},PasswordOAuthFlow:{type:"object",required:["tokenUrl","scopes"],properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},ClientCredentialsFlow:{type:"object",required:["tokenUrl","scopes"],properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},AuthorizationCodeOAuthFlow:{type:"object",required:["authorizationUrl","tokenUrl","scopes"],properties:{authorizationUrl:{type:"string",format:"uri-reference"},tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},Link:{type:"object",properties:{operationId:{type:"string"},operationRef:{type:"string",format:"uri-reference"},parameters:{type:"object",additionalProperties:{}},requestBody:{},description:{type:"string"},server:{$ref:"#/definitions/Server"}},patternProperties:{"^x-":{}},additionalProperties:!1,not:{description:"Operation Id and Operation Ref are mutually exclusive",required:["operationId","operationRef"]}},Callback:{type:"object",additionalProperties:{$ref:"#/definitions/PathItem"},patternProperties:{"^x-":{}}},Encoding:{type:"object",properties:{contentType:{type:"string"},headers:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Header"},{$ref:"#/definitions/Reference"}]}},style:{type:"string",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1}},additionalProperties:!1}}},3.1:{$id:"https://spec.openapis.org/oas/3.1/schema/2022-10-07",$schema:"https://json-schema.org/draft/2020-12/schema",description:"The description of OpenAPI v3.1.x documents without schema validation, as defined by https://spec.openapis.org/oas/v3.1.0",type:"object",properties:{openapi:{type:"string",pattern:"^3\\.1\\.\\d+(-.+)?$"},info:{$ref:"#/$defs/info"},jsonSchemaDialect:{type:"string",format:"uri-reference",default:"https://spec.openapis.org/oas/3.1/dialect/base"},servers:{type:"array",items:{$ref:"#/$defs/server"},default:[{url:"/"}]},paths:{$ref:"#/$defs/paths"},webhooks:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},components:{$ref:"#/$defs/components"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},tags:{type:"array",items:{$ref:"#/$defs/tag"}},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["openapi","info"],anyOf:[{required:["paths"]},{required:["components"]},{required:["webhooks"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{info:{$comment:"https://spec.openapis.org/oas/v3.1.0#info-object",type:"object",properties:{title:{type:"string"},summary:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri-reference"},contact:{$ref:"#/$defs/contact"},license:{$ref:"#/$defs/license"},version:{type:"string"}},required:["title","version"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},contact:{$comment:"https://spec.openapis.org/oas/v3.1.0#contact-object",type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"},email:{type:"string",format:"email"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},license:{$comment:"https://spec.openapis.org/oas/v3.1.0#license-object",type:"object",properties:{name:{type:"string"},identifier:{type:"string"},url:{type:"string",format:"uri-reference"}},required:["name"],dependentSchemas:{identifier:{not:{required:["url"]}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},server:{$comment:"https://spec.openapis.org/oas/v3.1.0#server-object",type:"object",properties:{url:{type:"string"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/$defs/server-variable"}}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"server-variable":{$comment:"https://spec.openapis.org/oas/v3.1.0#server-variable-object",type:"object",properties:{enum:{type:"array",items:{type:"string"},minItems:1},default:{type:"string"},description:{type:"string"}},required:["default"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},components:{$comment:"https://spec.openapis.org/oas/v3.1.0#components-object",type:"object",properties:{schemas:{type:"object",additionalProperties:{$ref:"#/$defs/schema"}},responses:{type:"object",additionalProperties:{$ref:"#/$defs/response-or-reference"}},parameters:{type:"object",additionalProperties:{$ref:"#/$defs/parameter-or-reference"}},examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}},requestBodies:{type:"object",additionalProperties:{$ref:"#/$defs/request-body-or-reference"}},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},securitySchemes:{type:"object",additionalProperties:{$ref:"#/$defs/security-scheme-or-reference"}},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},pathItems:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}}},patternProperties:{"^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$":{$comment:"Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected",propertyNames:{pattern:"^[a-zA-Z0-9._-]+$"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},paths:{$comment:"https://spec.openapis.org/oas/v3.1.0#paths-object",type:"object",patternProperties:{"^/":{$ref:"#/$defs/path-item"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item":{$comment:"https://spec.openapis.org/oas/v3.1.0#path-item-object",type:"object",properties:{summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/$defs/server"}},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}},get:{$ref:"#/$defs/operation"},put:{$ref:"#/$defs/operation"},post:{$ref:"#/$defs/operation"},delete:{$ref:"#/$defs/operation"},options:{$ref:"#/$defs/operation"},head:{$ref:"#/$defs/operation"},patch:{$ref:"#/$defs/operation"},trace:{$ref:"#/$defs/operation"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/path-item"}},operation:{$comment:"https://spec.openapis.org/oas/v3.1.0#operation-object",type:"object",properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"},operationId:{type:"string"},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}},requestBody:{$ref:"#/$defs/request-body-or-reference"},responses:{$ref:"#/$defs/responses"},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},deprecated:{default:!1,type:"boolean"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},servers:{type:"array",items:{$ref:"#/$defs/server"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"external-documentation":{$comment:"https://spec.openapis.org/oas/v3.1.0#external-documentation-object",type:"object",properties:{description:{type:"string"},url:{type:"string",format:"uri-reference"}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},parameter:{$comment:"https://spec.openapis.org/oas/v3.1.0#parameter-object",type:"object",properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]},description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},schema:{$ref:"#/$defs/schema"},content:{$ref:"#/$defs/content",minProperties:1,maxProperties:1}},required:["name","in"],oneOf:[{required:["schema"]},{required:["content"]}],if:{properties:{in:{const:"query"}},required:["in"]},then:{properties:{allowEmptyValue:{default:!1,type:"boolean"}}},dependentSchemas:{schema:{properties:{style:{type:"string"},explode:{type:"boolean"}},allOf:[{$ref:"#/$defs/examples"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-form"}],$defs:{"styles-for-path":{if:{properties:{in:{const:"path"}},required:["in"]},then:{properties:{name:{pattern:"[^/#?]+$"},style:{default:"simple",enum:["matrix","label","simple"]},required:{const:!0}},required:["required"]}},"styles-for-header":{if:{properties:{in:{const:"header"}},required:["in"]},then:{properties:{style:{default:"simple",const:"simple"}}}},"styles-for-query":{if:{properties:{in:{const:"query"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},allowReserved:{default:!1,type:"boolean"}}}},"styles-for-cookie":{if:{properties:{in:{const:"cookie"}},required:["in"]},then:{properties:{style:{default:"form",const:"form"}}}},"styles-for-form":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"parameter-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/parameter"}},"request-body":{$comment:"https://spec.openapis.org/oas/v3.1.0#request-body-object",type:"object",properties:{description:{type:"string"},content:{$ref:"#/$defs/content"},required:{default:!1,type:"boolean"}},required:["content"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"request-body-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/request-body"}},content:{$comment:"https://spec.openapis.org/oas/v3.1.0#fixed-fields-10",type:"object",additionalProperties:{$ref:"#/$defs/media-type"},propertyNames:{format:"media-range"}},"media-type":{$comment:"https://spec.openapis.org/oas/v3.1.0#media-type-object",type:"object",properties:{schema:{$ref:"#/$defs/schema"},encoding:{type:"object",additionalProperties:{$ref:"#/$defs/encoding"}}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/examples"}],unevaluatedProperties:!1},encoding:{$comment:"https://spec.openapis.org/oas/v3.1.0#encoding-object",type:"object",properties:{contentType:{type:"string",format:"media-range"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/encoding/$defs/explode-default"}],unevaluatedProperties:!1,$defs:{"explode-default":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}},responses:{$comment:"https://spec.openapis.org/oas/v3.1.0#responses-object",type:"object",properties:{default:{$ref:"#/$defs/response-or-reference"}},patternProperties:{"^[1-5](?:[0-9]{2}|XX)$":{$ref:"#/$defs/response-or-reference"}},minProperties:1,$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},response:{$comment:"https://spec.openapis.org/oas/v3.1.0#response-object",type:"object",properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},content:{$ref:"#/$defs/content"},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}}},required:["description"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"response-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/response"}},callbacks:{$comment:"https://spec.openapis.org/oas/v3.1.0#callback-object",type:"object",$ref:"#/$defs/specification-extensions",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},"callbacks-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/callbacks"}},example:{$comment:"https://spec.openapis.org/oas/v3.1.0#example-object",type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:!0,externalValue:{type:"string",format:"uri-reference"}},not:{required:["value","externalValue"]},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"example-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/example"}},link:{$comment:"https://spec.openapis.org/oas/v3.1.0#link-object",type:"object",properties:{operationRef:{type:"string",format:"uri-reference"},operationId:{type:"string"},parameters:{$ref:"#/$defs/map-of-strings"},requestBody:!0,description:{type:"string"},body:{$ref:"#/$defs/server"}},oneOf:[{required:["operationRef"]},{required:["operationId"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"link-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/link"}},header:{$comment:"https://spec.openapis.org/oas/v3.1.0#header-object",type:"object",properties:{description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},schema:{$ref:"#/$defs/schema"},content:{$ref:"#/$defs/content",minProperties:1,maxProperties:1}},oneOf:[{required:["schema"]},{required:["content"]}],dependentSchemas:{schema:{properties:{style:{default:"simple",const:"simple"},explode:{default:!1,type:"boolean"}},$ref:"#/$defs/examples"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"header-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/header"}},tag:{$comment:"https://spec.openapis.org/oas/v3.1.0#tag-object",type:"object",properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["name"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},reference:{$comment:"https://spec.openapis.org/oas/v3.1.0#reference-object",type:"object",properties:{$ref:{type:"string",format:"uri-reference"},summary:{type:"string"},description:{type:"string"}},unevaluatedProperties:!1},schema:{$comment:"https://spec.openapis.org/oas/v3.1.0#schema-object",$dynamicAnchor:"meta",type:["object","boolean"]},"security-scheme":{$comment:"https://spec.openapis.org/oas/v3.1.0#security-scheme-object",type:"object",properties:{type:{enum:["apiKey","http","mutualTLS","oauth2","openIdConnect"]},description:{type:"string"}},required:["type"],allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/security-scheme/$defs/type-apikey"},{$ref:"#/$defs/security-scheme/$defs/type-http"},{$ref:"#/$defs/security-scheme/$defs/type-http-bearer"},{$ref:"#/$defs/security-scheme/$defs/type-oauth2"},{$ref:"#/$defs/security-scheme/$defs/type-oidc"}],unevaluatedProperties:!1,$defs:{"type-apikey":{if:{properties:{type:{const:"apiKey"}},required:["type"]},then:{properties:{name:{type:"string"},in:{enum:["query","header","cookie"]}},required:["name","in"]}},"type-http":{if:{properties:{type:{const:"http"}},required:["type"]},then:{properties:{scheme:{type:"string"}},required:["scheme"]}},"type-http-bearer":{if:{properties:{type:{const:"http"},scheme:{type:"string",pattern:"^[Bb][Ee][Aa][Rr][Ee][Rr]$"}},required:["type","scheme"]},then:{properties:{bearerFormat:{type:"string"}}}},"type-oauth2":{if:{properties:{type:{const:"oauth2"}},required:["type"]},then:{properties:{flows:{$ref:"#/$defs/oauth-flows"}},required:["flows"]}},"type-oidc":{if:{properties:{type:{const:"openIdConnect"}},required:["type"]},then:{properties:{openIdConnectUrl:{type:"string",format:"uri-reference"}},required:["openIdConnectUrl"]}}}},"security-scheme-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/security-scheme"}},"oauth-flows":{type:"object",properties:{implicit:{$ref:"#/$defs/oauth-flows/$defs/implicit"},password:{$ref:"#/$defs/oauth-flows/$defs/password"},clientCredentials:{$ref:"#/$defs/oauth-flows/$defs/client-credentials"},authorizationCode:{$ref:"#/$defs/oauth-flows/$defs/authorization-code"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{implicit:{type:"object",properties:{authorizationUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},password:{type:"object",properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"client-credentials":{type:"object",properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"authorization-code":{type:"object",properties:{authorizationUrl:{type:"string",format:"uri-reference"},tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1}}},"security-requirement":{$comment:"https://spec.openapis.org/oas/v3.1.0#security-requirement-object",type:"object",additionalProperties:{type:"array",items:{type:"string"}}},"specification-extensions":{$comment:"https://spec.openapis.org/oas/v3.1.0#specification-extensions",patternProperties:{"^x-":!0}},examples:{properties:{example:!0,examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}}}},"map-of-strings":{type:"object",additionalProperties:{type:"string"}}}}}),Fu={INVALID_REFERENCE:"Can't resolve reference: %s",EXTERNAL_REFERENCE_NOT_FOUND:"Can't resolve external reference: %s",NO_CONTENT:"No content found"},Qu=e=>"object"==typeof e&&!Array.isArray(e)&&null!==e;function zu(e){if(null===e)return{version:void 0,specificationType:void 0,specificationVersion:void 0};if(Qu(e))for(const t of new Set(Uu)){const r="2.0"===t?"swagger":"openapi",n=e[r];if("string"==typeof n&&n.startsWith(t))return{version:t,specificationType:r,specificationVersion:n}}return{version:void 0,specificationType:void 0,specificationVersion:void 0}}function qu(e){return null==e?void 0:e.find((e=>e.isEntrypoint))}function Hu(e,t,r=[]){const n={};for(const[a,o]of Object.entries(e)){const e=[...r,a];Array.isArray(o)?n[a]=o.map(((r,n)=>"object"!=typeof r||Array.isArray(r)||null===r?r:Hu(r,t,[...e,n.toString()]))):n[a]="object"!=typeof o||null===o?o:Hu(o,t,e)}return t(n,r)}function Vu(e){const t=[];return e&&"object"==typeof e?(Hu(e,(e=>(e.$ref&&"string"==typeof e.$ref&&!e.$ref.startsWith("#")&&t.push(e.$ref.split("#")[0]),e))),[...new Set(t)]):t}function Zu(e){return void 0!==e&&Array.isArray(e)&&e.length>0&&e.some((e=>!0===e.isEntrypoint))}const Wu=Symbol.for("yaml.alias"),Xu=Symbol.for("yaml.document"),Gu=Symbol.for("yaml.map"),Yu=Symbol.for("yaml.pair"),Ku=Symbol.for("yaml.scalar"),Ju=Symbol.for("yaml.seq"),ed=Symbol.for("yaml.node.type"),td=e=>!!e&&"object"==typeof e&&e[ed]===Wu,rd=e=>!!e&&"object"==typeof e&&e[ed]===Xu,nd=e=>!!e&&"object"==typeof e&&e[ed]===Gu,ad=e=>!!e&&"object"==typeof e&&e[ed]===Yu,od=e=>!!e&&"object"==typeof e&&e[ed]===Ku,id=e=>!!e&&"object"==typeof e&&e[ed]===Ju;function sd(e){if(e&&"object"==typeof e)switch(e[ed]){case Gu:case Ju:return!0}return!1}function ld(e){if(e&&"object"==typeof e)switch(e[ed]){case Wu:case Gu:case Ku:case Ju:return!0}return!1}const cd=e=>(od(e)||sd(e))&&!!e.anchor,ud=Symbol("break visit"),dd=Symbol("skip children"),pd=Symbol("remove node");function hd(e,t){const r=vd(t);rd(e)?fd(null,e.contents,r,Object.freeze([e]))===pd&&(e.contents=null):fd(null,e,r,Object.freeze([]))}function fd(e,t,r,n){const a=bd(e,t,r,n);if(ld(a)||ad(a))return yd(e,n,a),fd(e,a,r,n);if("symbol"!=typeof a)if(sd(t)){n=Object.freeze(n.concat(t));for(let e=0;e<t.items.length;++e){const a=fd(e,t.items[e],r,n);if("number"==typeof a)e=a-1;else{if(a===ud)return ud;a===pd&&(t.items.splice(e,1),e-=1)}}}else if(ad(t)){n=Object.freeze(n.concat(t));const e=fd("key",t.key,r,n);if(e===ud)return ud;e===pd&&(t.key=null);const a=fd("value",t.value,r,n);if(a===ud)return ud;a===pd&&(t.value=null)}return a}async function md(e,t){const r=vd(t);rd(e)?await gd(null,e.contents,r,Object.freeze([e]))===pd&&(e.contents=null):await gd(null,e,r,Object.freeze([]))}async function gd(e,t,r,n){const a=await bd(e,t,r,n);if(ld(a)||ad(a))return yd(e,n,a),gd(e,a,r,n);if("symbol"!=typeof a)if(sd(t)){n=Object.freeze(n.concat(t));for(let e=0;e<t.items.length;++e){const a=await gd(e,t.items[e],r,n);if("number"==typeof a)e=a-1;else{if(a===ud)return ud;a===pd&&(t.items.splice(e,1),e-=1)}}}else if(ad(t)){n=Object.freeze(n.concat(t));const e=await gd("key",t.key,r,n);if(e===ud)return ud;e===pd&&(t.key=null);const a=await gd("value",t.value,r,n);if(a===ud)return ud;a===pd&&(t.value=null)}return a}function vd(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function bd(e,t,r,n){var a,o,i,s,l;return"function"==typeof r?r(e,t,n):nd(t)?null==(a=r.Map)?void 0:a.call(r,e,t,n):id(t)?null==(o=r.Seq)?void 0:o.call(r,e,t,n):ad(t)?null==(i=r.Pair)?void 0:i.call(r,e,t,n):od(t)?null==(s=r.Scalar)?void 0:s.call(r,e,t,n):td(t)?null==(l=r.Alias)?void 0:l.call(r,e,t,n):void 0}function yd(e,t,r){const n=t[t.length-1];if(sd(n))n.items[e]=r;else if(ad(n))"key"===e?n.key=r:n.value=r;else{if(!rd(n)){const e=td(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${e} parent`)}n.contents=r}}hd.BREAK=ud,hd.SKIP=dd,hd.REMOVE=pd,md.BREAK=ud,md.SKIP=dd,md.REMOVE=pd;const Od={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};class wd{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},wd.defaultYaml,e),this.tags=Object.assign({},wd.defaultTags,t)}clone(){const e=new wd(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new wd(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:wd.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},wd.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:wd.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},wd.defaultTags),this.atNextDocument=!1);const r=e.trim().split(/[ \t]+/),n=r.shift();switch(n){case"%TAG":{if(2!==r.length&&(t(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[e,n]=r;return this.tags[e]=n,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==r.length)return t(0,"%YAML directive should contain exactly one part"),!1;const[e]=r;return"1.1"===e||"1.2"===e?(this.yaml.version=e,!0):(t(6,`Unsupported YAML version ${e}`,/^\d+\.\d+$/.test(e)),!1)}default:return t(0,`Unknown directive ${n}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){const r=e.slice(2,-1);return"!"===r||"!!"===r?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),r)}const[,r,n]=e.match(/^(.*!)([^!]*)$/s);n||t(`The ${e} tag has no suffix`);const a=this.tags[r];if(a)try{return a+decodeURIComponent(n)}catch(e){return t(String(e)),null}return"!"===r?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,r]of Object.entries(this.tags))if(e.startsWith(r))return t+e.substring(r.length).replace(/[!,[\]{}]/g,(e=>Od[e]));return"!"===e[0]?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let n;if(e&&r.length>0&&ld(e.contents)){const t={};hd(e.contents,((e,r)=>{ld(r)&&r.tag&&(t[r.tag]=!0)})),n=Object.keys(t)}else n=[];for(const[a,o]of r)"!!"===a&&"tag:yaml.org,2002:"===o||e&&!n.some((e=>e.startsWith(o)))||t.push(`%TAG ${a} ${o}`);return t.join("\n")}}function xd(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);throw new Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function kd(e){const t=new Set;return hd(e,{Value(e,r){r.anchor&&t.add(r.anchor)}}),t}function Sd(e,t){for(let r=1;;++r){const n=`${e}${r}`;if(!t.has(n))return n}}function _d(e,t,r,n){if(n&&"object"==typeof n)if(Array.isArray(n))for(let t=0,r=n.length;t<r;++t){const r=n[t],a=_d(e,n,String(t),r);void 0===a?delete n[t]:a!==r&&(n[t]=a)}else if(n instanceof Map)for(const t of Array.from(n.keys())){const r=n.get(t),a=_d(e,n,t,r);void 0===a?n.delete(t):a!==r&&n.set(t,a)}else if(n instanceof Set)for(const t of Array.from(n)){const r=_d(e,n,t,t);void 0===r?n.delete(t):r!==t&&(n.delete(t),n.add(r))}else for(const[t,r]of Object.entries(n)){const a=_d(e,n,t,r);void 0===a?delete n[t]:a!==r&&(n[t]=a)}return e.call(t,r,n)}function Ed(e,t,r){if(Array.isArray(e))return e.map(((e,t)=>Ed(e,String(t),r)));if(e&&"function"==typeof e.toJSON){if(!r||!cd(e))return e.toJSON(t,r);const n={aliasCount:0,count:1,res:void 0};r.anchors.set(e,n),r.onCreate=e=>{n.res=e,delete r.onCreate};const a=e.toJSON(t,r);return r.onCreate&&r.onCreate(a),a}return"bigint"!=typeof e||(null==r?void 0:r.keep)?e:Number(e)}wd.defaultYaml={explicit:!1,version:"1.2"},wd.defaultTags={"!!":"tag:yaml.org,2002:"};class Td{constructor(e){Object.defineProperty(this,ed,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:n,reviver:a}={}){if(!rd(e))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100},i=Ed(this,"",o);if("function"==typeof n)for(const{count:e,res:t}of o.anchors.values())n(t,e);return"function"==typeof a?_d(a,{"":i},"",i):i}}let Ad=class extends Td{constructor(e){super(Wu),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,t){let r,n;(null==t?void 0:t.aliasResolveCache)?r=t.aliasResolveCache:(r=[],hd(e,{Node:(e,t)=>{(td(t)||cd(t))&&r.push(t)}}),t&&(t.aliasResolveCache=r));for(const e of r){if(e===this)break;e.anchor===this.source&&(n=e)}return n}toJSON(e,t){if(!t)return{source:this.source};const{anchors:r,doc:n,maxAliasCount:a}=t,o=this.resolve(n,t);if(!o){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let i=r.get(o);if(i||(Ed(o,null,t),i=r.get(o)),!i||void 0===i.res)throw new ReferenceError("This should not happen: Alias anchor was not resolved?");if(a>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=Cd(n,o,r)),i.count*i.aliasCount>a))throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack");return i.res}toString(e,t,r){const n=`*${this.source}`;if(e){if(xd(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${n} `}return n}};function Cd(e,t,r){if(td(t)){const n=t.resolve(e),a=r&&n&&r.get(n);return a?a.count*a.aliasCount:0}if(sd(t)){let n=0;for(const a of t.items){const t=Cd(e,a,r);t>n&&(n=t)}return n}if(ad(t)){const n=Cd(e,t.key,r),a=Cd(e,t.value,r);return Math.max(n,a)}return 1}const Pd=e=>!e||"function"!=typeof e&&"object"!=typeof e;class Dd extends Td{constructor(e){super(Ku),this.value=e}toJSON(e,t){return(null==t?void 0:t.keep)?this.value:Ed(this.value,e,t)}toString(){return String(this.value)}}Dd.BLOCK_FOLDED="BLOCK_FOLDED",Dd.BLOCK_LITERAL="BLOCK_LITERAL",Dd.PLAIN="PLAIN",Dd.QUOTE_DOUBLE="QUOTE_DOUBLE",Dd.QUOTE_SINGLE="QUOTE_SINGLE";function $d(e,t,r){var n,a,o;if(rd(e)&&(e=e.contents),ld(e))return e;if(ad(e)){const t=null==(a=(n=r.schema[Gu]).createNode)?void 0:a.call(n,r.schema,null,r);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:i,onAnchor:s,onTagObj:l,schema:c,sourceObjects:u}=r;let d;if(i&&e&&"object"==typeof e){if(d=u.get(e),d)return d.anchor??(d.anchor=s(e)),new Ad(d.anchor);d={anchor:null,node:null},u.set(e,d)}(null==t?void 0:t.startsWith("!!"))&&(t="tag:yaml.org,2002:"+t.slice(2));let p=function(e,t,r){if(t){const e=r.filter((e=>e.tag===t)),n=e.find((e=>!e.format))??e[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find((t=>{var r;return(null==(r=t.identify)?void 0:r.call(t,e))&&!t.format}))}(e,t,c.tags);if(!p){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){const t=new Dd(e);return d&&(d.node=t),t}p=e instanceof Map?c[Gu]:Symbol.iterator in Object(e)?c[Ju]:c[Gu]}l&&(l(p),delete r.onTagObj);const h=(null==p?void 0:p.createNode)?p.createNode(r.schema,e,r):"function"==typeof(null==(o=null==p?void 0:p.nodeClass)?void 0:o.from)?p.nodeClass.from(r.schema,e,r):new Dd(e);return t?h.tag=t:p.default||(h.tag=p.tag),d&&(d.node=h),h}function Rd(e,t,r){let n=r;for(let e=t.length-1;e>=0;--e){const r=t[e];if("number"==typeof r&&Number.isInteger(r)&&r>=0){const e=[];e[r]=n,n=e}else n=new Map([[r,n]])}return $d(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const Md=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class Nd extends Td{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map((t=>ld(t)||ad(t)?t.clone(e):t)),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Md(e))this.add(t);else{const[r,...n]=e,a=this.get(r,!0);if(sd(a))a.addIn(n,t);else{if(void 0!==a||!this.schema)throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`);this.set(r,Rd(this.schema,n,t))}}}deleteIn(e){const[t,...r]=e;if(0===r.length)return this.delete(t);const n=this.get(t,!0);if(sd(n))return n.deleteIn(r);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){const[r,...n]=e,a=this.get(r,!0);return 0===n.length?!t&&od(a)?a.value:a:sd(a)?a.getIn(n,t):void 0}hasAllNullValues(e){return this.items.every((t=>{if(!ad(t))return!1;const r=t.value;return null==r||e&&od(r)&&null==r.value&&!r.commentBefore&&!r.comment&&!r.tag}))}hasIn(e){const[t,...r]=e;if(0===r.length)return this.has(t);const n=this.get(t,!0);return!!sd(n)&&n.hasIn(r)}setIn(e,t){const[r,...n]=e;if(0===n.length)this.set(r,t);else{const e=this.get(r,!0);if(sd(e))e.setIn(n,t);else{if(void 0!==e||!this.schema)throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`);this.set(r,Rd(this.schema,n,t))}}}}const Id=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Ld(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const jd=(e,t,r)=>e.endsWith("\n")?Ld(r,t):r.includes("\n")?"\n"+Ld(r,t):(e.endsWith(" ")?"":" ")+r,Bd="flow",Ud="block",Fd="quoted";function Qd(e,t,r="flow",{indentAtStart:n,lineWidth:a=80,minContentWidth:o=20,onFold:i,onOverflow:s}={}){if(!a||a<0)return e;a<o&&(o=0);const l=Math.max(1+o,1+a-t.length);if(e.length<=l)return e;const c=[],u={};let d,p,h=a-t.length;"number"==typeof n&&(n>a-Math.max(2,o)?c.push(0):h=a-n);let f=!1,m=-1,g=-1,v=-1;r===Ud&&(m=zd(e,m,t.length),-1!==m&&(h=m+l));for(let n;n=e[m+=1];){if(r===Fd&&"\\"===n){switch(g=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}v=m}if("\n"===n)r===Ud&&(m=zd(e,m,t.length)),h=m+t.length+l,d=void 0;else{if(" "===n&&p&&" "!==p&&"\n"!==p&&"\t"!==p){const t=e[m+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(d=m)}if(m>=h)if(d)c.push(d),h=d+l,d=void 0;else if(r===Fd){for(;" "===p||"\t"===p;)p=n,n=e[m+=1],f=!0;const t=m>v+1?m-2:g-1;if(u[t])return e;c.push(t),u[t]=!0,h=t+l,d=void 0}else f=!0}p=n}if(f&&s&&s(),0===c.length)return e;i&&i();let b=e.slice(0,c[0]);for(let n=0;n<c.length;++n){const a=c[n],o=c[n+1]||e.length;0===a?b=`\n${t}${e.slice(0,o)}`:(r===Fd&&u[a]&&(b+=`${e[a]}\\`),b+=`\n${t}${e.slice(a+1,o)}`)}return b}function zd(e,t,r){let n=t,a=t+1,o=e[a];for(;" "===o||"\t"===o;)if(t<a+r)o=e[++t];else{do{o=e[++t]}while(o&&"\n"!==o);n=t,a=t+1,o=e[a]}return n}const qd=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Hd=e=>/^(%|---|\.\.\.)/m.test(e);function Vd(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=t,a=t.options.doubleQuotedMinMultiLineLength,o=t.indent||(Hd(e)?" ":"");let i="",s=0;for(let e=0,t=r[e];t;t=r[++e])if(" "===t&&"\\"===r[e+1]&&"n"===r[e+2]&&(i+=r.slice(s,e)+"\\ ",e+=1,s=e,t="\\"),"\\"===t)switch(r[e+1]){case"u":{i+=r.slice(s,e);const t=r.substr(e+2,4);switch(t){case"0000":i+="\\0";break;case"0007":i+="\\a";break;case"000b":i+="\\v";break;case"001b":i+="\\e";break;case"0085":i+="\\N";break;case"00a0":i+="\\_";break;case"2028":i+="\\L";break;case"2029":i+="\\P";break;default:"00"===t.substr(0,2)?i+="\\x"+t.substr(2):i+=r.substr(e,6)}e+=5,s=e+1}break;case"n":if(n||'"'===r[e+2]||r.length<a)e+=1;else{for(i+=r.slice(s,e)+"\n\n";"\\"===r[e+2]&&"n"===r[e+3]&&'"'!==r[e+4];)i+="\n",e+=2;i+=o," "===r[e+2]&&(i+="\\"),e+=1,s=e+1}break;default:e+=1}return i=s?i+r.slice(s):r,n?i:Qd(i,o,Fd,qd(t,!1))}function Zd(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return Vd(e,t);const r=t.indent||(Hd(e)?" ":""),n="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${r}`)+"'";return t.implicitKey?n:Qd(n,r,Bd,qd(t,!1))}function Wd(e,t){const{singleQuote:r}=t.options;let n;if(!1===r)n=Vd;else{const t=e.includes('"'),a=e.includes("'");n=t&&!a?Zd:a&&!t?Vd:r?Zd:Vd}return n(e,t)}let Xd;try{Xd=new RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{Xd=/\n+(?!\n|$)/g}function Gd({comment:e,type:t,value:r},n,a,o){const{blockQuote:i,commentString:s,lineWidth:l}=n.options;if(!i||/\n[\t ]+$/.test(r)||/^\s*$/.test(r))return Wd(r,n);const c=n.indent||(n.forceBlockIndent||Hd(r)?" ":""),u="literal"===i||"folded"!==i&&t!==Dd.BLOCK_FOLDED&&(t===Dd.BLOCK_LITERAL||!function(e,t,r){if(!t||t<0)return!1;const n=t-r,a=e.length;if(a<=n)return!1;for(let t=0,r=0;t<a;++t)if("\n"===e[t]){if(t-r>n)return!0;if(r=t+1,a-r<=n)return!1}return!0}(r,l,c.length));if(!r)return u?"|\n":">\n";let d,p;for(p=r.length;p>0;--p){const e=r[p-1];if("\n"!==e&&"\t"!==e&&" "!==e)break}let h=r.substring(p);const f=h.indexOf("\n");-1===f?d="-":r===h||f!==h.length-1?(d="+",o&&o()):d="",h&&(r=r.slice(0,-h.length),"\n"===h[h.length-1]&&(h=h.slice(0,-1)),h=h.replace(Xd,`$&${c}`));let m,g=!1,v=-1;for(m=0;m<r.length;++m){const e=r[m];if(" "===e)g=!0;else{if("\n"!==e)break;v=m}}let b=r.substring(0,v<m?v+1:m);b&&(r=r.substring(b.length),b=b.replace(/\n+/g,`$&${c}`));let y=(g?c?"2":"1":"")+d;if(e&&(y+=" "+s(e.replace(/ ?[\r\n]+/g," ")),a&&a()),!u){const e=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);let a=!1;const o=qd(n,!0);"folded"!==i&&t!==Dd.BLOCK_FOLDED&&(o.onOverflow=()=>{a=!0});const s=Qd(`${b}${e}${h}`,c,Ud,o);if(!a)return`>${y}\n${c}${s}`}return`|${y}\n${c}${b}${r=r.replace(/\n+/g,`$&${c}`)}${h}`}function Yd(e,t,r,n){const{implicitKey:a,inFlow:o}=t,i="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)});let{type:s}=e;s!==Dd.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(i.value)&&(s=Dd.QUOTE_DOUBLE);const l=e=>{switch(e){case Dd.BLOCK_FOLDED:case Dd.BLOCK_LITERAL:return a||o?Wd(i.value,t):Gd(i,t,r,n);case Dd.QUOTE_DOUBLE:return Vd(i.value,t);case Dd.QUOTE_SINGLE:return Zd(i.value,t);case Dd.PLAIN:return function(e,t,r,n){const{type:a,value:o}=e,{actualString:i,implicitKey:s,indent:l,indentStep:c,inFlow:u}=t;if(s&&o.includes("\n")||u&&/[[\]{},]/.test(o))return Wd(o,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return s||u||!o.includes("\n")?Wd(o,t):Gd(e,t,r,n);if(!s&&!u&&a!==Dd.PLAIN&&o.includes("\n"))return Gd(e,t,r,n);if(Hd(o)){if(""===l)return t.forceBlockIndent=!0,Gd(e,t,r,n);if(s&&l===c)return Wd(o,t)}const d=o.replace(/\n+/g,`$&\n${l}`);if(i){const e=e=>{var t;return e.default&&"tag:yaml.org,2002:str"!==e.tag&&(null==(t=e.test)?void 0:t.test(d))},{compat:r,tags:n}=t.doc.schema;if(n.some(e)||(null==r?void 0:r.some(e)))return Wd(o,t)}return s?d:Qd(d,l,Bd,qd(t,!1))}(i,t,r,n);default:return null}};let c=l(s);if(null===c){const{defaultKeyType:e,defaultStringType:r}=t.options,n=a&&e||r;if(c=l(n),null===c)throw new Error(`Unsupported default string type ${n}`)}return c}function Kd(e,t){const r=Object.assign({blockQuote:!0,commentString:Id,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let n;switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof r.indent?" ".repeat(r.indent):" ",inFlow:n,options:r}}function Jd(e,t,r,n){var a;if(ad(e))return e.toString(t,r,n);if(td(e)){if(t.doc.directives)return e.toString(t);if(null==(a=t.resolvedAliases)?void 0:a.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o;const i=ld(e)?e:t.doc.createNode(e,{onTagObj:e=>o=e});o??(o=function(e,t){var r;if(t.tag){const r=e.filter((e=>e.tag===t.tag));if(r.length>0)return r.find((e=>e.format===t.format))??r[0]}let n,a;if(od(t)){a=t.value;let r=e.filter((e=>{var t;return null==(t=e.identify)?void 0:t.call(e,a)}));if(r.length>1){const e=r.filter((e=>e.test));e.length>0&&(r=e)}n=r.find((e=>e.format===t.format))??r.find((e=>!e.format))}else a=t,n=e.find((e=>e.nodeClass&&a instanceof e.nodeClass));if(!n){const e=(null==(r=null==a?void 0:a.constructor)?void 0:r.name)??(null===a?"null":typeof a);throw new Error(`Tag not resolved for ${e} value`)}return n}(t.doc.schema.tags,i));const s=function(e,t,{anchors:r,doc:n}){if(!n.directives)return"";const a=[],o=(od(e)||sd(e))&&e.anchor;o&&xd(o)&&(r.add(o),a.push(`&${o}`));const i=e.tag??(t.default?null:t.tag);return i&&a.push(n.directives.tagString(i)),a.join(" ")}(i,o,t);s.length>0&&(t.indentAtStart=(t.indentAtStart??0)+s.length+1);const l="function"==typeof o.stringify?o.stringify(i,t,r,n):od(i)?Yd(i,t,r,n):i.toString(t,r,n);return s?od(i)||"{"===l[0]||"["===l[0]?`${s} ${l}`:`${s}\n${t.indent}${l}`:l}function ep(e,t){"debug"!==e&&"warn"!==e||console.warn(t)}const tp="<<",rp={identify:e=>e===tp||"symbol"==typeof e&&e.description===tp,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Dd(Symbol(tp)),{addToJSMap:np}),stringify:()=>tp};function np(e,t,r){if(r=e&&td(r)?r.resolve(e.doc):r,id(r))for(const n of r.items)ap(e,t,n);else if(Array.isArray(r))for(const n of r)ap(e,t,n);else ap(e,t,r)}function ap(e,t,r){const n=e&&td(r)?r.resolve(e.doc):r;if(!nd(n))throw new Error("Merge sources must be maps or map aliases");const a=n.toJSON(null,e,Map);for(const[e,r]of a)t instanceof Map?t.has(e)||t.set(e,r):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0});return t}function op(e,t,{key:r,value:n}){if(ld(r)&&r.addToJSMap)r.addToJSMap(e,t,n);else if(((e,t)=>(rp.identify(t)||od(t)&&(!t.type||t.type===Dd.PLAIN)&&rp.identify(t.value))&&(null==e?void 0:e.doc.schema.tags.some((e=>e.tag===rp.tag&&e.default))))(e,r))np(e,t,n);else{const a=Ed(r,"",e);if(t instanceof Map)t.set(a,Ed(n,a,e));else if(t instanceof Set)t.add(a);else{const o=function(e,t,r){if(null===t)return"";if("object"!=typeof t)return String(t);if(ld(e)&&(null==r?void 0:r.doc)){const t=Kd(r.doc,{});t.anchors=new Set;for(const e of r.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;const n=e.toString(t);if(!r.mapKeyWarned){let e=JSON.stringify(n);e.length>40&&(e=e.substring(0,36)+'..."'),ep(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return n}return JSON.stringify(t)}(r,a,e),i=Ed(n,o,e);o in t?Object.defineProperty(t,o,{value:i,writable:!0,enumerable:!0,configurable:!0}):t[o]=i}}return t}function ip(e,t,r){const n=$d(e,void 0,r),a=$d(t,void 0,r);return new sp(n,a)}class sp{constructor(e,t=null){Object.defineProperty(this,ed,{value:Yu}),this.key=e,this.value=t}clone(e){let{key:t,value:r}=this;return ld(t)&&(t=t.clone(e)),ld(r)&&(r=r.clone(e)),new sp(t,r)}toJSON(e,t){return op(t,(null==t?void 0:t.mapAsMap)?new Map:{},this)}toString(e,t,r){return(null==e?void 0:e.doc)?function({key:e,value:t},r,n,a){const{allNullValues:o,doc:i,indent:s,indentStep:l,options:{commentString:c,indentSeq:u,simpleKeys:d}}=r;let p=ld(e)&&e.comment||null;if(d){if(p)throw new Error("With simple keys, key nodes cannot have comments");if(sd(e)||!ld(e)&&"object"==typeof e)throw new Error("With simple keys, collection cannot be used as a key value")}let h=!d&&(!e||p&&null==t&&!r.inFlow||sd(e)||(od(e)?e.type===Dd.BLOCK_FOLDED||e.type===Dd.BLOCK_LITERAL:"object"==typeof e));r=Object.assign({},r,{allNullValues:!1,implicitKey:!h&&(d||!o),indent:s+l});let f,m,g,v=!1,b=!1,y=Jd(e,r,(()=>v=!0),(()=>b=!0));if(!h&&!r.inFlow&&y.length>1024){if(d)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");h=!0}if(r.inFlow){if(o||null==t)return v&&n&&n(),""===y?"?":h?`? ${y}`:y}else if(o&&!d||null==t&&h)return y=`? ${y}`,p&&!v?y+=jd(y,r.indent,c(p)):b&&a&&a(),y;v&&(p=null),h?(p&&(y+=jd(y,r.indent,c(p))),y=`? ${y}\n${s}:`):(y=`${y}:`,p&&(y+=jd(y,r.indent,c(p)))),ld(t)?(f=!!t.spaceBefore,m=t.commentBefore,g=t.comment):(f=!1,m=null,g=null,t&&"object"==typeof t&&(t=i.createNode(t))),r.implicitKey=!1,h||p||!od(t)||(r.indentAtStart=y.length+1),b=!1,u||!(l.length>=2)||r.inFlow||h||!id(t)||t.flow||t.tag||t.anchor||(r.indent=r.indent.substring(2));let O=!1;const w=Jd(t,r,(()=>O=!0),(()=>b=!0));let x=" ";if(p||f||m)x=f?"\n":"",m&&(x+=`\n${Ld(c(m),r.indent)}`),""!==w||r.inFlow?x+=`\n${r.indent}`:"\n"===x&&(x="\n\n");else if(!h&&sd(t)){const e=w[0],n=w.indexOf("\n"),a=-1!==n,o=r.inFlow??t.flow??0===t.items.length;if(a||!o){let t=!1;if(a&&("&"===e||"!"===e)){let r=w.indexOf(" ");"&"===e&&-1!==r&&r<n&&"!"===w[r+1]&&(r=w.indexOf(" ",r+1)),(-1===r||n<r)&&(t=!0)}t||(x=`\n${r.indent}`)}}else""!==w&&"\n"!==w[0]||(x="");return y+=x+w,r.inFlow?O&&n&&n():g&&!O?y+=jd(y,r.indent,c(g)):b&&a&&a(),y}(this,e,t,r):JSON.stringify(this)}}function lp(e,t,r){return(t.inFlow??e.flow?up:cp)(e,t,r)}function cp({comment:e,items:t},r,{blockItemPrefix:n,flowChars:a,itemIndent:o,onChompKeep:i,onComment:s}){const{indent:l,options:{commentString:c}}=r,u=Object.assign({},r,{indent:o,type:null});let d=!1;const p=[];for(let e=0;e<t.length;++e){const a=t[e];let i=null;if(ld(a))!d&&a.spaceBefore&&p.push(""),dp(r,p,a.commentBefore,d),a.comment&&(i=a.comment);else if(ad(a)){const e=ld(a.key)?a.key:null;e&&(!d&&e.spaceBefore&&p.push(""),dp(r,p,e.commentBefore,d))}d=!1;let s=Jd(a,u,(()=>i=null),(()=>d=!0));i&&(s+=jd(s,o,c(i))),d&&i&&(d=!1),p.push(n+s)}let h;if(0===p.length)h=a.start+a.end;else{h=p[0];for(let e=1;e<p.length;++e){const t=p[e];h+=t?`\n${l}${t}`:"\n"}}return e?(h+="\n"+Ld(c(e),l),s&&s()):d&&i&&i(),h}function up({items:e},t,{flowChars:r,itemIndent:n}){const{indent:a,indentStep:o,flowCollectionPadding:i,options:{commentString:s}}=t;n+=o;const l=Object.assign({},t,{indent:n,inFlow:!0,type:null});let c=!1,u=0;const d=[];for(let r=0;r<e.length;++r){const a=e[r];let o=null;if(ld(a))a.spaceBefore&&d.push(""),dp(t,d,a.commentBefore,!1),a.comment&&(o=a.comment);else if(ad(a)){const e=ld(a.key)?a.key:null;e&&(e.spaceBefore&&d.push(""),dp(t,d,e.commentBefore,!1),e.comment&&(c=!0));const r=ld(a.value)?a.value:null;r?(r.comment&&(o=r.comment),r.commentBefore&&(c=!0)):null==a.value&&(null==e?void 0:e.comment)&&(o=e.comment)}o&&(c=!0);let i=Jd(a,l,(()=>o=null));r<e.length-1&&(i+=","),o&&(i+=jd(i,n,s(o))),!c&&(d.length>u||i.includes("\n"))&&(c=!0),d.push(i),u=d.length}const{start:p,end:h}=r;if(0===d.length)return p+h;if(!c){const e=d.reduce(((e,t)=>e+t.length+2),2);c=t.options.lineWidth>0&&e>t.options.lineWidth}if(c){let e=p;for(const t of d)e+=t?`\n${o}${a}${t}`:"\n";return`${e}\n${a}${h}`}return`${p}${i}${d.join(" ")}${i}${h}`}function dp({indent:e,options:{commentString:t}},r,n,a){if(n&&a&&(n=n.replace(/^\n+/,"")),n){const a=Ld(t(n),e);r.push(a.trimStart())}}function pp(e,t){const r=od(t)?t.value:t;for(const n of e)if(ad(n)){if(n.key===t||n.key===r)return n;if(od(n.key)&&n.key.value===r)return n}}class hp extends Nd{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(Gu,e),this.items=[]}static from(e,t,r){const{keepUndefined:n,replacer:a}=r,o=new this(e),i=(e,i)=>{if("function"==typeof a)i=a.call(t,e,i);else if(Array.isArray(a)&&!a.includes(e))return;(void 0!==i||n)&&o.items.push(ip(e,i,r))};if(t instanceof Map)for(const[e,r]of t)i(e,r);else if(t&&"object"==typeof t)for(const e of Object.keys(t))i(e,t[e]);return"function"==typeof e.sortMapEntries&&o.items.sort(e.sortMapEntries),o}add(e,t){var r;let n;n=ad(e)?e:e&&"object"==typeof e&&"key"in e?new sp(e.key,e.value):new sp(e,null==e?void 0:e.value);const a=pp(this.items,n.key),o=null==(r=this.schema)?void 0:r.sortMapEntries;if(a){if(!t)throw new Error(`Key ${n.key} already set`);od(a.value)&&Pd(n.value)?a.value.value=n.value:a.value=n.value}else if(o){const e=this.items.findIndex((e=>o(n,e)<0));-1===e?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){const t=pp(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const r=pp(this.items,e),n=null==r?void 0:r.value;return(!t&&od(n)?n.value:n)??void 0}has(e){return!!pp(this.items,e)}set(e,t){this.add(new sp(e,t),!0)}toJSON(e,t,r){const n=r?new r:(null==t?void 0:t.mapAsMap)?new Map:{};(null==t?void 0:t.onCreate)&&t.onCreate(n);for(const e of this.items)op(t,n,e);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(const e of this.items)if(!ad(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),lp(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}}const fp={collection:"map",default:!0,nodeClass:hp,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(nd(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,r)=>hp.from(e,t,r)};class mp extends Nd{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Ju,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=gp(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){const r=gp(e);if("number"!=typeof r)return;const n=this.items[r];return!t&&od(n)?n.value:n}has(e){const t=gp(e);return"number"==typeof t&&t<this.items.length}set(e,t){const r=gp(e);if("number"!=typeof r)throw new Error(`Expected a valid index, not ${e}.`);const n=this.items[r];od(n)&&Pd(t)?n.value=t:this.items[r]=t}toJSON(e,t){const r=[];(null==t?void 0:t.onCreate)&&t.onCreate(r);let n=0;for(const e of this.items)r.push(Ed(e,String(n++),t));return r}toString(e,t,r){return e?lp(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:r,onComment:t}):JSON.stringify(this)}static from(e,t,r){const{replacer:n}=r,a=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let o of t){if("function"==typeof n){const r=t instanceof Set?o:String(e++);o=n.call(t,r,o)}a.items.push($d(o,void 0,r))}}return a}}function gp(e){let t=od(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}const vp={collection:"seq",default:!0,nodeClass:mp,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(id(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,r)=>mp.from(e,t,r)},bp={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,r,n)=>Yd(e,t=Object.assign({actualString:!0},t),r,n)},yp={identify:e=>null==e,createNode:()=>new Dd(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Dd(null),stringify:({source:e},t)=>"string"==typeof e&&yp.test.test(e)?e:t.options.nullStr},Op={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Dd("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},r)=>e&&Op.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?r.options.trueStr:r.options.falseStr};function wp({format:e,minFractionDigits:t,tag:r,value:n}){if("bigint"==typeof n)return String(n);const a="number"==typeof n?n:Number(n);if(!isFinite(a))return isNaN(a)?".nan":a<0?"-.inf":".inf";let o=JSON.stringify(n);if(!e&&t&&(!r||"tag:yaml.org,2002:float"===r)&&/^\d/.test(o)){let e=o.indexOf(".");e<0&&(e=o.length,o+=".");let r=t-(o.length-e-1);for(;r-- >0;)o+="0"}return o}const xp={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:wp},kp={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():wp(e)}},Sp={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Dd(parseFloat(e)),r=e.indexOf(".");return-1!==r&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-r-1),t},stringify:wp},_p=e=>"bigint"==typeof e||Number.isInteger(e),Ep=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function Tp(e,t,r){const{value:n}=e;return _p(n)&&n>=0?r+n.toString(t):wp(e)}const Ap={identify:e=>_p(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>Ep(e,2,8,r),stringify:e=>Tp(e,8,"0o")},Cp={identify:_p,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>Ep(e,0,10,r),stringify:wp},Pp={identify:e=>_p(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>Ep(e,2,16,r),stringify:e=>Tp(e,16,"0x")},Dp=[fp,vp,bp,yp,Op,Ap,Cp,Pp,xp,kp,Sp];function $p(e){return"bigint"==typeof e||Number.isInteger(e)}const Rp=({value:e})=>JSON.stringify(e),Mp=[fp,vp].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Rp},{identify:e=>null==e,createNode:()=>new Dd(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Rp},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>"true"===e,stringify:Rp},{identify:$p,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>$p(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Rp}],{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)}),Np={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"==typeof atob){const t=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:r},n,a,o){if(!r)return"";const i=r;let s;if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");{let e="";for(let t=0;t<i.length;++t)e+=String.fromCharCode(i[t]);s=btoa(e)}if(t??(t=Dd.BLOCK_LITERAL),t!==Dd.QUOTE_DOUBLE){const e=Math.max(n.options.lineWidth-n.indent.length,n.options.minContentWidth),r=Math.ceil(s.length/e),a=new Array(r);for(let t=0,n=0;t<r;++t,n+=e)a[t]=s.substr(n,e);s=a.join(t===Dd.BLOCK_LITERAL?"\n":" ")}return Yd({comment:e,type:t,value:s},n,a,o)}};function Ip(e,t){if(id(e))for(let r=0;r<e.items.length;++r){let n=e.items[r];if(!ad(n)){if(nd(n)){n.items.length>1&&t("Each pair must have its own sequence indicator");const e=n.items[0]||new sp(new Dd(null));if(n.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${n.commentBefore}\n${e.key.commentBefore}`:n.commentBefore),n.comment){const t=e.value??e.key;t.comment=t.comment?`${n.comment}\n${t.comment}`:n.comment}n=e}e.items[r]=ad(n)?n:new sp(n)}}else t("Expected a sequence for this tag");return e}function Lp(e,t,r){const{replacer:n}=r,a=new mp(e);a.tag="tag:yaml.org,2002:pairs";let o=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let i,s;if("function"==typeof n&&(e=n.call(t,String(o++),e)),Array.isArray(e)){if(2!==e.length)throw new TypeError(`Expected [key, value] tuple: ${e}`);i=e[0],s=e[1]}else if(e&&e instanceof Object){const t=Object.keys(e);if(1!==t.length)throw new TypeError(`Expected tuple with one key, not ${t.length} keys`);i=t[0],s=e[i]}else i=e;a.items.push(ip(i,s,r))}return a}const jp={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Ip,createNode:Lp};class Bp extends mp{constructor(){super(),this.add=hp.prototype.add.bind(this),this.delete=hp.prototype.delete.bind(this),this.get=hp.prototype.get.bind(this),this.has=hp.prototype.has.bind(this),this.set=hp.prototype.set.bind(this),this.tag=Bp.tag}toJSON(e,t){if(!t)return super.toJSON(e);const r=new Map;(null==t?void 0:t.onCreate)&&t.onCreate(r);for(const e of this.items){let n,a;if(ad(e)?(n=Ed(e.key,"",t),a=Ed(e.value,n,t)):n=Ed(e,"",t),r.has(n))throw new Error("Ordered maps must not include duplicate keys");r.set(n,a)}return r}static from(e,t,r){const n=Lp(e,t,r),a=new this;return a.items=n.items,a}}Bp.tag="tag:yaml.org,2002:omap";const Up={collection:"seq",identify:e=>e instanceof Map,nodeClass:Bp,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=Ip(e,t),n=[];for(const{key:e}of r.items)od(e)&&(n.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):n.push(e.value));return Object.assign(new Bp,r)},createNode:(e,t,r)=>Bp.from(e,t,r)};function Fp({value:e,source:t},r){return t&&(e?Qp:zp).test.test(t)?t:e?r.options.trueStr:r.options.falseStr}const Qp={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Dd(!0),stringify:Fp},zp={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Dd(!1),stringify:Fp},qp={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:wp},Hp={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():wp(e)}},Vp={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Dd(parseFloat(e.replace(/_/g,""))),r=e.indexOf(".");if(-1!==r){const n=e.substring(r+1).replace(/_/g,"");"0"===n[n.length-1]&&(t.minFractionDigits=n.length)}return t},stringify:wp},Zp=e=>"bigint"==typeof e||Number.isInteger(e);function Wp(e,t,r,{intAsBigInt:n}){const a=e[0];if("-"!==a&&"+"!==a||(t+=1),e=e.substring(t).replace(/_/g,""),n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}const t=BigInt(e);return"-"===a?BigInt(-1)*t:t}const o=parseInt(e,r);return"-"===a?-1*o:o}function Xp(e,t,r){const{value:n}=e;if(Zp(n)){const e=n.toString(t);return n<0?"-"+r+e.substr(1):r+e}return wp(e)}const Gp={identify:Zp,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>Wp(e,2,2,r),stringify:e=>Xp(e,2,"0b")},Yp={identify:Zp,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>Wp(e,1,8,r),stringify:e=>Xp(e,8,"0")},Kp={identify:Zp,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>Wp(e,0,10,r),stringify:wp},Jp={identify:Zp,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>Wp(e,2,16,r),stringify:e=>Xp(e,16,"0x")};class eh extends hp{constructor(e){super(e),this.tag=eh.tag}add(e){let t;t=ad(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new sp(e.key,null):new sp(e,null),pp(this.items,t.key)||this.items.push(t)}get(e,t){const r=pp(this.items,e);return!t&&ad(r)?od(r.key)?r.key.value:r.key:r}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);const r=pp(this.items,e);r&&!t?this.items.splice(this.items.indexOf(r),1):!r&&t&&this.items.push(new sp(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,r);throw new Error("Set items must all have null values")}static from(e,t,r){const{replacer:n}=r,a=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof n&&(e=n.call(t,e,e)),a.items.push(ip(e,null,r));return a}}eh.tag="tag:yaml.org,2002:set";const th={collection:"map",identify:e=>e instanceof Set,nodeClass:eh,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>eh.from(e,t,r),resolve(e,t){if(nd(e)){if(e.hasAllNullValues(!0))return Object.assign(new eh,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function rh(e,t){const r=e[0],n="-"===r||"+"===r?e.substring(1):e,a=e=>t?BigInt(e):Number(e),o=n.replace(/_/g,"").split(":").reduce(((e,t)=>e*a(60)+a(t)),a(0));return"-"===r?a(-1)*o:o}function nh(e){let{value:t}=e,r=e=>e;if("bigint"==typeof t)r=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return wp(e);let n="";t<0&&(n="-",t*=r(-1));const a=r(60),o=[t%a];return t<60?o.unshift(0):(t=(t-o[0])/a,o.unshift(t%a),t>=60&&(t=(t-o[0])/a,o.unshift(t))),n+o.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const ah={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>rh(e,r),stringify:nh},oh={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>rh(e,!1),stringify:nh},ih={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(ih.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,a,o,i,s]=t.map(Number),l=t[7]?Number((t[7]+"00").substr(1,3)):0;let c=Date.UTC(r,n-1,a,o||0,i||0,s||0,l);const u=t[8];if(u&&"Z"!==u){let e=rh(u,!1);Math.abs(e)<30&&(e*=60),c-=6e4*e}return new Date(c)},stringify:({value:e})=>(null==e?void 0:e.toISOString().replace(/(T00:00:00)?\.000Z$/,""))??""},sh=[fp,vp,bp,yp,Qp,zp,Gp,Yp,Kp,Jp,qp,Hp,Vp,Np,rp,Up,jp,th,ah,oh,ih],lh=new Map([["core",Dp],["failsafe",[fp,vp,bp]],["json",Mp],["yaml11",sh],["yaml-1.1",sh]]),ch={binary:Np,bool:Op,float:Sp,floatExp:kp,floatNaN:xp,floatTime:oh,int:Cp,intHex:Pp,intOct:Ap,intTime:ah,map:fp,merge:rp,null:yp,omap:Up,pairs:jp,seq:vp,set:th,timestamp:ih},uh={"tag:yaml.org,2002:binary":Np,"tag:yaml.org,2002:merge":rp,"tag:yaml.org,2002:omap":Up,"tag:yaml.org,2002:pairs":jp,"tag:yaml.org,2002:set":th,"tag:yaml.org,2002:timestamp":ih};function dh(e,t,r){const n=lh.get(t);if(n&&!e)return r&&!n.includes(rp)?n.concat(rp):n.slice();let a=n;if(!a){if(!Array.isArray(e)){const e=Array.from(lh.keys()).filter((e=>"yaml11"!==e)).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}a=[]}if(Array.isArray(e))for(const t of e)a=a.concat(t);else"function"==typeof e&&(a=e(a.slice()));return r&&(a=a.concat(rp)),a.reduce(((e,t)=>{const r="string"==typeof t?ch[t]:t;if(!r){const e=JSON.stringify(t),r=Object.keys(ch).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag ${e}; use one of ${r}`)}return e.includes(r)||e.push(r),e}),[])}const ph=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;let hh=class e{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:n,schema:a,sortMapEntries:o,toStringDefaults:i}){this.compat=Array.isArray(e)?dh(e,"compat"):e?dh(null,e):null,this.name="string"==typeof a&&a||"core",this.knownTags=n?uh:{},this.tags=dh(t,this.name,r),this.toStringOptions=i??null,Object.defineProperty(this,Gu,{value:fp}),Object.defineProperty(this,Ku,{value:bp}),Object.defineProperty(this,Ju,{value:vp}),this.sortMapEntries="function"==typeof o?o:!0===o?ph:null}clone(){const t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}},fh=class e{constructor(e,t,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,ed,{value:Xu});let n=null;"function"==typeof t||Array.isArray(t)?n=t:void 0===r&&t&&(r=t,t=void 0);const a=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},r);this.options=a;let{version:o}=a;(null==r?void 0:r._directives)?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new wd({version:o}),this.setSchema(o,r),this.contents=void 0===e?null:this.createNode(e,n,r)}clone(){const t=Object.create(e.prototype,{[ed]:{value:Xu}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=ld(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){mh(this.contents)&&this.contents.add(e)}addIn(e,t){mh(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const r=kd(this);e.anchor=!t||r.has(t)?Sd(t||"a",r):t}return new Ad(e.anchor)}createNode(e,t,r){let n;if("function"==typeof t)e=t.call({"":e},"",e),n=t;else if(Array.isArray(t)){const e=e=>"number"==typeof e||e instanceof String||e instanceof Number,r=t.filter(e).map(String);r.length>0&&(t=t.concat(r)),n=t}else void 0===r&&t&&(r=t,t=void 0);const{aliasDuplicateObjects:a,anchorPrefix:o,flow:i,keepUndefined:s,onTagObj:l,tag:c}=r??{},{onAnchor:u,setAnchors:d,sourceObjects:p}=function(e,t){const r=[],n=new Map;let a=null;return{onAnchor:n=>{r.push(n),a??(a=kd(e));const o=Sd(t,a);return a.add(o),o},setAnchors:()=>{for(const e of r){const t=n.get(e);if("object"!=typeof t||!t.anchor||!od(t.node)&&!sd(t.node)){const t=new Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}t.node.anchor=t.anchor}},sourceObjects:n}}(this,o||"a"),h=$d(e,c,{aliasDuplicateObjects:a??!0,keepUndefined:s??!1,onAnchor:u,onTagObj:l,replacer:n,schema:this.schema,sourceObjects:p});return i&&sd(h)&&(h.flow=!0),d(),h}createPair(e,t,r={}){const n=this.createNode(e,null,r),a=this.createNode(t,null,r);return new sp(n,a)}delete(e){return!!mh(this.contents)&&this.contents.delete(e)}deleteIn(e){return Md(e)?null!=this.contents&&(this.contents=null,!0):!!mh(this.contents)&&this.contents.deleteIn(e)}get(e,t){return sd(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return Md(e)?!t&&od(this.contents)?this.contents.value:this.contents:sd(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!sd(this.contents)&&this.contents.has(e)}hasIn(e){return Md(e)?void 0!==this.contents:!!sd(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=Rd(this.schema,[e],t):mh(this.contents)&&this.contents.set(e,t)}setIn(e,t){Md(e)?this.contents=t:null==this.contents?this.contents=Rd(this.schema,Array.from(e),t):mh(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let r;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new wd({version:"1.1"}),r={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new wd({version:e}),r={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else{if(!r)throw new Error("With a null YAML version, the { schema: Schema } option is required");this.schema=new hh(Object.assign(r,t))}}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:n,onAnchor:a,reviver:o}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===r,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},s=Ed(this.contents,t??"",i);if("function"==typeof a)for(const{count:e,res:t}of i.anchors.values())a(t,e);return"function"==typeof o?_d(o,{"":s},"",s):s}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return function(e,t){var r;const n=[];let a=!0===t.directives;if(!1!==t.directives&&e.directives){const t=e.directives.toString(e);t?(n.push(t),a=!0):e.directives.docStart&&(a=!0)}a&&n.push("---");const o=Kd(e,t),{commentString:i}=o.options;if(e.commentBefore){1!==n.length&&n.unshift("");const t=i(e.commentBefore);n.unshift(Ld(t,""))}let s=!1,l=null;if(e.contents){if(ld(e.contents)){if(e.contents.spaceBefore&&a&&n.push(""),e.contents.commentBefore){const t=i(e.contents.commentBefore);n.push(Ld(t,""))}o.forceBlockIndent=!!e.comment,l=e.contents.comment}const t=l?void 0:()=>s=!0;let r=Jd(e.contents,o,(()=>l=null),t);l&&(r+=jd(r,"",i(l))),"|"!==r[0]&&">"!==r[0]||"---"!==n[n.length-1]?n.push(r):n[n.length-1]=`--- ${r}`}else n.push(Jd(e.contents,o));if(null==(r=e.directives)?void 0:r.docEnd)if(e.comment){const t=i(e.comment);t.includes("\n")?(n.push("..."),n.push(Ld(t,""))):n.push(`... ${t}`)}else n.push("...");else{let t=e.comment;t&&s&&(t=t.replace(/^\n+/,"")),t&&(s&&!l||""===n[n.length-1]||n.push(""),n.push(Ld(i(t),"")))}return n.join("\n")+"\n"}(this,e)}};function mh(e){if(sd(e))return!0;throw new Error("Expected a YAML collection as document contents")}class gh extends Error{constructor(e,t,r,n){super(),this.name=e,this.code=r,this.message=n,this.pos=t}}class vh extends gh{constructor(e,t,r){super("YAMLParseError",e,t,r)}}class bh extends gh{constructor(e,t,r){super("YAMLWarning",e,t,r)}}const yh=(e,t)=>r=>{if(-1===r.pos[0])return;r.linePos=r.pos.map((e=>t.linePos(e)));const{line:n,col:a}=r.linePos[0];r.message+=` at line ${n}, column ${a}`;let o=a-1,i=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(o>=60&&i.length>80){const e=Math.min(o-39,i.length-79);i="…"+i.substring(e),o-=e-1}if(i.length>80&&(i=i.substring(0,79)+"…"),n>1&&/^ *$/.test(i.substring(0,o))){let r=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);r.length>80&&(r=r.substring(0,79)+"…\n"),i=r+i}if(/[^ ]/.test(i)){let e=1;const t=r.linePos[1];t&&t.line===n&&t.col>a&&(e=Math.max(1,Math.min(t.col-a,80-o)));const s=" ".repeat(o)+"^".repeat(e);r.message+=`:\n\n${i}\n${s}\n`}};function Oh(e,{flow:t,indicator:r,next:n,offset:a,onError:o,parentIndent:i,startOnNewline:s}){let l=!1,c=s,u=s,d="",p="",h=!1,f=!1,m=null,g=null,v=null,b=null,y=null,O=null,w=null;for(const a of e)switch(f&&("space"!==a.type&&"newline"!==a.type&&"comma"!==a.type&&o(a.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),f=!1),m&&(c&&"comment"!==a.type&&"newline"!==a.type&&o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),m=null),a.type){case"space":t||"doc-start"===r&&"flow-collection"===(null==n?void 0:n.type)||!a.source.includes("\t")||(m=a),u=!0;break;case"comment":{u||o(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=a.source.substring(1)||" ";d?d+=p+e:d=e,p="",c=!1;break}case"newline":c?d?d+=a.source:O&&"seq-item-ind"===r||(l=!0):p+=a.source,c=!0,h=!0,(g||v)&&(b=a),u=!0;break;case"anchor":g&&o(a,"MULTIPLE_ANCHORS","A node can have at most one anchor"),a.source.endsWith(":")&&o(a.offset+a.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=a,w??(w=a.offset),c=!1,u=!1,f=!0;break;case"tag":v&&o(a,"MULTIPLE_TAGS","A node can have at most one tag"),v=a,w??(w=a.offset),c=!1,u=!1,f=!0;break;case r:(g||v)&&o(a,"BAD_PROP_ORDER",`Anchors and tags must be after the ${a.source} indicator`),O&&o(a,"UNEXPECTED_TOKEN",`Unexpected ${a.source} in ${t??"collection"}`),O=a,c="seq-item-ind"===r||"explicit-key-ind"===r,u=!1;break;case"comma":if(t){y&&o(a,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),y=a,c=!1,u=!1;break}default:o(a,"UNEXPECTED_TOKEN",`Unexpected ${a.type} token`),c=!1,u=!1}const x=e[e.length-1],k=x?x.offset+x.source.length:a;return f&&n&&"space"!==n.type&&"newline"!==n.type&&"comma"!==n.type&&("scalar"!==n.type||""!==n.source)&&o(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m&&(c&&m.indent<=i||"block-map"===(null==n?void 0:n.type)||"block-seq"===(null==n?void 0:n.type))&&o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:y,found:O,spaceBefore:l,comment:d,hasNewline:h,anchor:g,tag:v,newlineAfterProp:b,end:k,start:w??k}}function wh(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return!0;if(e.end)for(const t of e.end)if("newline"===t.type)return!0;return!1;case"flow-collection":for(const t of e.items){for(const e of t.start)if("newline"===e.type)return!0;if(t.sep)for(const e of t.sep)if("newline"===e.type)return!0;if(wh(t.key)||wh(t.value))return!0}return!1;default:return!0}}function xh(e,t,r){if("flow-collection"===(null==t?void 0:t.type)){const n=t.end[0];n.indent!==e||"]"!==n.source&&"}"!==n.source||!wh(t)||r(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function kh(e,t,r){const{uniqueKeys:n}=e.options;if(!1===n)return!1;const a="function"==typeof n?n:(e,t)=>e===t||od(e)&&od(t)&&e.value===t.value;return t.some((e=>a(e.key,r)))}const Sh="All mapping items must start at the same column";function _h(e,t,r,n){let a="";if(e){let o=!1,i="";for(const s of e){const{source:e,type:l}=s;switch(l){case"space":o=!0;break;case"comment":{r&&!o&&n(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";a?a+=i+t:a=t,i="";break}case"newline":a&&(i+=e),o=!0;break;default:n(s,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}t+=e.length}}return{comment:a,offset:t}}const Eh="Block collections are not allowed within flow collections",Th=e=>e&&("block-map"===e.type||"block-seq"===e.type);function Ah(e,t,r,n,a,o){const i="block-map"===r.type?function({composeNode:e,composeEmptyNode:t},r,n,a,o){var i;const s=new((null==o?void 0:o.nodeClass)??hp)(r.schema);r.atRoot&&(r.atRoot=!1);let l=n.offset,c=null;for(const o of n.items){const{start:u,key:d,sep:p,value:h}=o,f=Oh(u,{indicator:"explicit-key-ind",next:d??(null==p?void 0:p[0]),offset:l,onError:a,parentIndent:n.indent,startOnNewline:!0}),m=!f.found;if(m){if(d&&("block-seq"===d.type?a(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in d&&d.indent!==n.indent&&a(l,"BAD_INDENT",Sh)),!f.anchor&&!f.tag&&!p){c=f.end,f.comment&&(s.comment?s.comment+="\n"+f.comment:s.comment=f.comment);continue}(f.newlineAfterProp||wh(d))&&a(d??u[u.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else(null==(i=f.found)?void 0:i.indent)!==n.indent&&a(l,"BAD_INDENT",Sh);r.atKey=!0;const g=f.end,v=d?e(r,d,f,a):t(r,g,u,null,f,a);r.schema.compat&&xh(n.indent,d,a),r.atKey=!1,kh(r,s.items,v)&&a(g,"DUPLICATE_KEY","Map keys must be unique");const b=Oh(p??[],{indicator:"map-value-ind",next:h,offset:v.range[2],onError:a,parentIndent:n.indent,startOnNewline:!d||"block-scalar"===d.type});if(l=b.end,b.found){m&&("block-map"!==(null==h?void 0:h.type)||b.hasNewline||a(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&f.start<b.found.offset-1024&&a(v.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const i=h?e(r,h,b,a):t(r,l,p,null,b,a);r.schema.compat&&xh(n.indent,h,a),l=i.range[2];const c=new sp(v,i);r.options.keepSourceTokens&&(c.srcToken=o),s.items.push(c)}else{m&&a(v.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),b.comment&&(v.comment?v.comment+="\n"+b.comment:v.comment=b.comment);const e=new sp(v);r.options.keepSourceTokens&&(e.srcToken=o),s.items.push(e)}}return c&&c<l&&a(c,"IMPOSSIBLE","Map comment with trailing content"),s.range=[n.offset,l,c??l],s}(e,t,r,n,o):"block-seq"===r.type?function({composeNode:e,composeEmptyNode:t},r,n,a,o){const i=new((null==o?void 0:o.nodeClass)??mp)(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let s=n.offset,l=null;for(const{start:o,value:c}of n.items){const u=Oh(o,{indicator:"seq-item-ind",next:c,offset:s,onError:a,parentIndent:n.indent,startOnNewline:!0});if(!u.found){if(!(u.anchor||u.tag||c)){l=u.end,u.comment&&(i.comment=u.comment);continue}c&&"block-seq"===c.type?a(u.end,"BAD_INDENT","All sequence items must start at the same column"):a(s,"MISSING_CHAR","Sequence item without - indicator")}const d=c?e(r,c,u,a):t(r,u.end,o,null,u,a);r.schema.compat&&xh(n.indent,c,a),s=d.range[2],i.items.push(d)}return i.range=[n.offset,s,l??s],i}(e,t,r,n,o):function({composeNode:e,composeEmptyNode:t},r,n,a,o){const i="{"===n.start.source,s=i?"flow map":"flow sequence",l=new((null==o?void 0:o.nodeClass)??(i?hp:mp))(r.schema);l.flow=!0;const c=r.atRoot;c&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let u=n.offset+n.start.source.length;for(let o=0;o<n.items.length;++o){const c=n.items[o],{start:d,key:p,sep:h,value:f}=c,m=Oh(d,{flow:s,indicator:"explicit-key-ind",next:p??(null==h?void 0:h[0]),offset:u,onError:a,parentIndent:n.indent,startOnNewline:!1});if(!m.found){if(!(m.anchor||m.tag||h||f)){0===o&&m.comma?a(m.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`):o<n.items.length-1&&a(m.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${s}`),m.comment&&(l.comment?l.comment+="\n"+m.comment:l.comment=m.comment),u=m.end;continue}!i&&r.options.strict&&wh(p)&&a(p,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===o)m.comma&&a(m.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`);else if(m.comma||a(m.start,"MISSING_CHAR",`Missing , between ${s} items`),m.comment){let e="";e:for(const t of d)switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break e;default:break e}if(e){let t=l.items[l.items.length-1];ad(t)&&(t=t.value??t.key),t.comment?t.comment+="\n"+e:t.comment=e,m.comment=m.comment.substring(e.length+1)}}if(i||h||m.found){r.atKey=!0;const o=m.end,g=p?e(r,p,m,a):t(r,o,d,null,m,a);Th(p)&&a(g.range,"BLOCK_IN_FLOW",Eh),r.atKey=!1;const v=Oh(h??[],{flow:s,indicator:"map-value-ind",next:f,offset:g.range[2],onError:a,parentIndent:n.indent,startOnNewline:!1});if(v.found){if(!i&&!m.found&&r.options.strict){if(h)for(const e of h){if(e===v.found)break;if("newline"===e.type){a(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}m.start<v.found.offset-1024&&a(v.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else f&&("source"in f&&f.source&&":"===f.source[0]?a(f,"MISSING_CHAR",`Missing space after : in ${s}`):a(v.start,"MISSING_CHAR",`Missing , or : between ${s} items`));const b=f?e(r,f,v,a):v.found?t(r,v.end,h,null,v,a):null;b?Th(f)&&a(b.range,"BLOCK_IN_FLOW",Eh):v.comment&&(g.comment?g.comment+="\n"+v.comment:g.comment=v.comment);const y=new sp(g,b);if(r.options.keepSourceTokens&&(y.srcToken=c),i){const e=l;kh(r,e.items,g)&&a(o,"DUPLICATE_KEY","Map keys must be unique"),e.items.push(y)}else{const e=new hp(r.schema);e.flow=!0,e.items.push(y);const t=(b??g).range;e.range=[g.range[0],t[1],t[2]],l.items.push(e)}u=b?b.range[2]:v.end}else{const n=f?e(r,f,m,a):t(r,m.end,h,null,m,a);l.items.push(n),u=n.range[2],Th(f)&&a(n.range,"BLOCK_IN_FLOW",Eh)}}const d=i?"}":"]",[p,...h]=n.end;let f=u;if(p&&p.source===d)f=p.offset+p.source.length;else{const e=s[0].toUpperCase()+s.substring(1);a(u,c?"MISSING_CHAR":"BAD_INDENT",c?`${e} must end with a ${d}`:`${e} in block collection must be sufficiently indented and end with a ${d}`),p&&1!==p.source.length&&h.unshift(p)}if(h.length>0){const e=_h(h,f,r.options.strict,a);e.comment&&(l.comment?l.comment+="\n"+e.comment:l.comment=e.comment),l.range=[n.offset,f,e.offset]}else l.range=[n.offset,f,f];return l}(e,t,r,n,o),s=i.constructor;return"!"===a||a===s.tagName?(i.tag=s.tagName,i):(a&&(i.tag=a),i)}function Ch(e,t,r){const n=t.offset,a=function({offset:e,props:t},r,n){if("block-scalar-header"!==t[0].type)return n(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:a}=t[0],o=a[0];let i=0,s="",l=-1;for(let t=1;t<a.length;++t){const r=a[t];if(s||"-"!==r&&"+"!==r){const n=Number(r);!i&&n?i=n:-1===l&&(l=e+t)}else s=r}-1!==l&&n(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${a}`);let c=!1,u="",d=a.length;for(let e=1;e<t.length;++e){const a=t[e];switch(a.type){case"space":c=!0;case"newline":d+=a.source.length;break;case"comment":r&&!c&&n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),d+=a.source.length,u=a.source.substring(1);break;case"error":n(a,"UNEXPECTED_TOKEN",a.message),d+=a.source.length;break;default:{n(a,"UNEXPECTED_TOKEN",`Unexpected token in block scalar header: ${a.type}`);const e=a.source;e&&"string"==typeof e&&(d+=e.length)}}}return{mode:o,indent:i,chomp:s,comment:u,length:d}}(t,e.options.strict,r);if(!a)return{value:"",type:null,comment:"",range:[n,n,n]};const o=">"===a.mode?Dd.BLOCK_FOLDED:Dd.BLOCK_LITERAL,i=t.source?function(e){const t=e.split(/\n( *)/),r=t[0],n=r.match(/^( *)/),a=[(null==n?void 0:n[1])?[n[1],r.slice(n[1].length)]:["",r]];for(let e=1;e<t.length;e+=2)a.push([t[e],t[e+1]]);return a}(t.source):[];let s=i.length;for(let e=i.length-1;e>=0;--e){const t=i[e][1];if(""!==t&&"\r"!==t)break;s=e}if(0===s){const e="+"===a.chomp&&i.length>0?"\n".repeat(Math.max(1,i.length-1)):"";let r=n+a.length;return t.source&&(r+=t.source.length),{value:e,type:o,comment:a.comment,range:[n,r,r]}}let l=t.indent+a.indent,c=t.offset+a.length,u=0;for(let t=0;t<s;++t){const[n,o]=i[t];if(""!==o&&"\r"!==o){if(n.length<l){const e="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";r(c+n.length,"MISSING_CHAR",e)}0===a.indent&&(l=n.length),u=t,0!==l||e.atRoot||r(c,"BAD_INDENT","Block scalar values in collections must be indented");break}0===a.indent&&n.length>l&&(l=n.length),c+=n.length+o.length+1}for(let e=i.length-1;e>=s;--e)i[e][0].length>l&&(s=e+1);let d="",p="",h=!1;for(let e=0;e<u;++e)d+=i[e][0].slice(l)+"\n";for(let e=u;e<s;++e){let[t,n]=i[e];c+=t.length+n.length+1;const s="\r"===n[n.length-1];if(s&&(n=n.slice(0,-1)),n&&t.length<l){const e="Block scalar lines must not be less indented than their "+(a.indent?"explicit indentation indicator":"first line");r(c-n.length-(s?2:1),"BAD_INDENT",e),t=""}o===Dd.BLOCK_LITERAL?(d+=p+t.slice(l)+n,p="\n"):t.length>l||"\t"===n[0]?(" "===p?p="\n":h||"\n"!==p||(p="\n\n"),d+=p+t.slice(l)+n,p="\n",h=!0):""===n?"\n"===p?d+="\n":p="\n":(d+=p+n,p=" ",h=!1)}switch(a.chomp){case"-":break;case"+":for(let e=s;e<i.length;++e)d+="\n"+i[e][0].slice(l);"\n"!==d[d.length-1]&&(d+="\n");break;default:d+="\n"}const f=n+a.length+t.source.length;return{value:d,type:o,comment:a.comment,range:[n,f,f]}}function Ph(e,t,r){const{offset:n,type:a,source:o,end:i}=e;let s,l;const c=(e,t,a)=>r(n+e,t,a);switch(a){case"scalar":s=Dd.PLAIN,l=function(e,t){let r="";switch(e[0]){case"\t":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":r=`block scalar indicator ${e[0]}`;break;case"@":case"`":r=`reserved character ${e[0]}`}return r&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),Dh(e)}(o,c);break;case"single-quoted-scalar":s=Dd.QUOTE_SINGLE,l=function(e,t){return"'"===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR","Missing closing 'quote"),Dh(e.slice(1,-1)).replace(/''/g,"'")}(o,c);break;case"double-quoted-scalar":s=Dd.QUOTE_DOUBLE,l=function(e,t){let r="";for(let n=1;n<e.length-1;++n){const a=e[n];if("\r"!==a||"\n"!==e[n+1])if("\n"===a){const{fold:t,offset:a}=$h(e,n);r+=t,n=a}else if("\\"===a){let a=e[++n];const o=Rh[a];if(o)r+=o;else if("\n"===a)for(a=e[n+1];" "===a||"\t"===a;)a=e[1+ ++n];else if("\r"===a&&"\n"===e[n+1])for(a=e[1+ ++n];" "===a||"\t"===a;)a=e[1+ ++n];else if("x"===a||"u"===a||"U"===a){const o={x:2,u:4,U:8}[a];r+=Mh(e,n+1,o,t),n+=o}else{const a=e.substr(n-1,2);t(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),r+=a}}else if(" "===a||"\t"===a){const t=n;let o=e[n+1];for(;" "===o||"\t"===o;)o=e[1+ ++n];"\n"===o||"\r"===o&&"\n"===e[n+2]||(r+=n>t?e.slice(t,n+1):a)}else r+=a}return'"'===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR",'Missing closing "quote'),r}(o,c);break;default:return r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${a}`),{value:"",type:null,comment:"",range:[n,n+o.length,n+o.length]}}const u=n+o.length,d=_h(i,u,t,r);return{value:l,type:s,comment:d.comment,range:[n,u,d.offset]}}function Dh(e){let t,r;try{t=new RegExp("(.*?)(?<![ \t])[ \t]*\r?\n","sy"),r=new RegExp("[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n","sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,r=/[ \t]*(.*?)[ \t]*\r?\n/sy}let n=t.exec(e);if(!n)return e;let a=n[1],o=" ",i=t.lastIndex;for(r.lastIndex=i;n=r.exec(e);)""===n[1]?"\n"===o?a+=o:o="\n":(a+=o+n[1],o=" "),i=r.lastIndex;const s=/[ \t]*(.*)/sy;return s.lastIndex=i,n=s.exec(e),a+o+((null==n?void 0:n[1])??"")}function $h(e,t){let r="",n=e[t+1];for(;!(" "!==n&&"\t"!==n&&"\n"!==n&&"\r"!==n||"\r"===n&&"\n"!==e[t+2]);)"\n"===n&&(r+="\n"),n=e[(t+=1)+1];return r||(r=" "),{fold:r,offset:t}}const Rh={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function Mh(e,t,r,n){const a=e.substr(t,r),o=a.length===r&&/^[0-9a-fA-F]+$/.test(a)?parseInt(a,16):NaN;if(isNaN(o)){const a=e.substr(t-2,r+2);return n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(o)}function Nh(e,t,r,n){const{value:a,type:o,comment:i,range:s}="block-scalar"===t.type?Ch(e,t,n):Ph(t,e.options.strict,n),l=r?e.directives.tagName(r.source,(e=>n(r,"TAG_RESOLVE_FAILED",e))):null;let c,u;c=e.options.stringKeys&&e.atKey?e.schema[Ku]:l?function(e,t,r,n,a){var o;if("!"===r)return e[Ku];const i=[];for(const t of e.tags)if(!t.collection&&t.tag===r){if(!t.default||!t.test)return t;i.push(t)}for(const e of i)if(null==(o=e.test)?void 0:o.test(t))return e;const s=e.knownTags[r];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(a(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,"tag:yaml.org,2002:str"!==r),e[Ku])}(e.schema,a,l,r,n):"scalar"===t.type?function({atKey:e,directives:t,schema:r},n,a,o){const i=r.tags.find((t=>{var r;return(!0===t.default||e&&"key"===t.default)&&(null==(r=t.test)?void 0:r.test(n))}))||r[Ku];if(r.compat){const e=r.compat.find((e=>{var t;return e.default&&(null==(t=e.test)?void 0:t.test(n))}))??r[Ku];i.tag!==e.tag&&o(a,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${t.tagString(i.tag)} or ${t.tagString(e.tag)}`,!0)}return i}(e,a,t,n):e.schema[Ku];try{const o=c.resolve(a,(e=>n(r??t,"TAG_RESOLVE_FAILED",e)),e.options);u=od(o)?o:new Dd(o)}catch(e){const o=e instanceof Error?e.message:String(e);n(r??t,"TAG_RESOLVE_FAILED",o),u=new Dd(a)}return u.range=s,u.source=a,o&&(u.type=o),l&&(u.tag=l),c.format&&(u.format=c.format),i&&(u.comment=i),u}function Ih(e,t,r){if(t){r??(r=t.length);for(let n=r-1;n>=0;--n){let r=t[n];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}for(r=t[++n];"space"===(null==r?void 0:r.type);)e+=r.source.length,r=t[++n];break}}return e}const Lh={composeNode:jh,composeEmptyNode:Bh};function jh(e,t,r,n){const a=e.atKey,{spaceBefore:o,comment:i,anchor:s,tag:l}=r;let c,u=!0;switch(t.type){case"alias":c=function({options:e},{offset:t,source:r,end:n},a){const o=new Ad(r.substring(1));""===o.source&&a(t,"BAD_ALIAS","Alias cannot be an empty string"),o.source.endsWith(":")&&a(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const i=t+r.length,s=_h(n,i,e.strict,a);return o.range=[t,i,s.offset],s.comment&&(o.comment=s.comment),o}(e,t,n),(s||l)&&n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=Nh(e,t,l,n),s&&(c.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=function(e,t,r,n,a){var o;const i=n.tag,s=i?t.directives.tagName(i.source,(e=>a(i,"TAG_RESOLVE_FAILED",e))):null;if("block-seq"===r.type){const{anchor:e,newlineAfterProp:t}=n,r=e&&i?e.offset>i.offset?e:i:e??i;r&&(!t||t.offset<r.offset)&&a(r,"MISSING_CHAR","Missing newline after block sequence props")}const l="block-map"===r.type?"map":"block-seq"===r.type?"seq":"{"===r.start.source?"map":"seq";if(!i||!s||"!"===s||s===hp.tagName&&"map"===l||s===mp.tagName&&"seq"===l)return Ah(e,t,r,a,s);let c=t.schema.tags.find((e=>e.tag===s&&e.collection===l));if(!c){const n=t.schema.knownTags[s];if(!n||n.collection!==l)return n?a(i,"BAD_COLLECTION_TYPE",`${n.tag} used for ${l} collection, but expects ${n.collection??"scalar"}`,!0):a(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),Ah(e,t,r,a,s);t.schema.tags.push(Object.assign({},n,{default:!1})),c=n}const u=Ah(e,t,r,a,s,c),d=(null==(o=c.resolve)?void 0:o.call(c,u,(e=>a(i,"TAG_RESOLVE_FAILED",e)),t.options))??u,p=ld(d)?d:new Dd(d);return p.range=u.range,p.tag=s,(null==c?void 0:c.format)&&(p.format=c.format),p}(Lh,e,t,r,n),s&&(c.anchor=s.source.substring(1));break;default:n(t,"UNEXPECTED_TOKEN","error"===t.type?t.message:`Unsupported token (type: ${t.type})`),c=Bh(e,t.offset,void 0,null,r,n),u=!1}return s&&""===c.anchor&&n(s,"BAD_ALIAS","Anchor cannot be an empty string"),a&&e.options.stringKeys&&(!od(c)||"string"!=typeof c.value||c.tag&&"tag:yaml.org,2002:str"!==c.tag)&&n(l??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),o&&(c.spaceBefore=!0),i&&("scalar"===t.type&&""===t.source?c.comment=i:c.commentBefore=i),e.options.keepSourceTokens&&u&&(c.srcToken=t),c}function Bh(e,t,r,n,{spaceBefore:a,comment:o,anchor:i,tag:s,end:l},c){const u=Nh(e,{type:"scalar",offset:Ih(t,r,n),indent:-1,source:""},s,c);return i&&(u.anchor=i.source.substring(1),""===u.anchor&&c(i,"BAD_ALIAS","Anchor cannot be an empty string")),a&&(u.spaceBefore=!0),o&&(u.comment=o,u.range[2]=l),u}function Uh(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+("string"==typeof r?r.length:1)]}function Fh(e){var t;let r="",n=!1,a=!1;for(let o=0;o<e.length;++o){const i=e[o];switch(i[0]){case"#":r+=(""===r?"":a?"\n\n":"\n")+(i.substring(1)||" "),n=!0,a=!1;break;case"%":"#"!==(null==(t=e[o+1])?void 0:t[0])&&(o+=1),n=!1;break;default:n||(a=!0),n=!1}}return{comment:r,afterEmptyLine:a}}class Qh{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,r,n)=>{const a=Uh(e);n?this.warnings.push(new bh(a,t,r)):this.errors.push(new vh(a,t,r))},this.directives=new wd({version:e.version||"1.2"}),this.options=e}decorate(e,t){const{comment:r,afterEmptyLine:n}=Fh(this.prelude);if(r){const a=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${r}`:r;else if(n||e.directives.docStart||!a)e.commentBefore=r;else if(sd(a)&&!a.flow&&a.items.length>0){let e=a.items[0];ad(e)&&(e=e.key);const t=e.commentBefore;e.commentBefore=t?`${r}\n${t}`:r}else{const e=a.commentBefore;a.commentBefore=e?`${r}\n${e}`:r}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Fh(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,r=-1){for(const t of e)yield*this.next(t);yield*this.end(t,r)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,((t,r,n)=>{const a=Uh(e);a[0]+=t,this.onError(a,"BAD_DIRECTIVE",r,n)})),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const t=function(e,t,{offset:r,start:n,value:a,end:o},i){const s=Object.assign({_directives:t},e),l=new fh(void 0,s),c={atKey:!1,atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},u=Oh(n,{indicator:"doc-start",next:a??(null==o?void 0:o[0]),offset:r,onError:i,parentIndent:0,startOnNewline:!0});u.found&&(l.directives.docStart=!0,!a||"block-map"!==a.type&&"block-seq"!==a.type||u.hasNewline||i(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=a?jh(c,a,u,i):Bh(c,u.end,n,null,u,i);const d=l.contents.range[2],p=_h(o,d,!1,i);return p.comment&&(l.comment=p.comment),l.range=[r,d,p.offset],l}(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,r=new vh(Uh(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new vh(Uh(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=!0;const t=_h(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new vh(Uh(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const e=Object.assign({_directives:this.directives},this.options),r=new fh(void 0,e);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),r.range=[0,t,t],this.decorate(r,!1),yield r}}}function zh(e,t){if(t)for(const r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":return e.push(r),!0}return!1}function qh(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r,e.source=t;break;case"block-scalar":{const n=e.props.slice(1);let a=t.length;"block-scalar-header"===e.props[0].type&&(a-=e.props[0].source.length);for(const e of n)e.offset+=a;delete e.props,Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{const n={type:"newline",offset:e.offset+t.length,indent:e.indent,source:"\n"};delete e.items,Object.assign(e,{type:r,source:t,end:[n]});break}default:{const n="indent"in e?e.indent:-1,a="end"in e&&Array.isArray(e.end)?e.end.filter((e=>"space"===e.type||"comment"===e.type||"newline"===e.type)):[];for(const t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:r,indent:n,source:t,end:a})}}}function Hh(e){switch(e.type){case"block-scalar":{let t="";for(const r of e.props)t+=Hh(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(const r of e.items)t+=Vh(r);return t}case"flow-collection":{let t=e.start.source;for(const r of e.items)t+=Vh(r);for(const r of e.end)t+=r.source;return t}case"document":{let t=Vh(e);if(e.end)for(const r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const r of e.end)t+=r.source;return t}}}function Vh({start:e,key:t,sep:r,value:n}){let a="";for(const t of e)a+=t.source;if(t&&(a+=Hh(t)),r)for(const e of r)a+=e.source;return n&&(a+=Hh(n)),a}const Zh=Symbol("break visit"),Wh=Symbol("skip children"),Xh=Symbol("remove item");function Gh(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),Yh(Object.freeze([]),e,t)}function Yh(e,t,r){let n=r(t,e);if("symbol"==typeof n)return n;for(const a of["key","value"]){const o=t[a];if(o&&"items"in o){for(let t=0;t<o.items.length;++t){const n=Yh(Object.freeze(e.concat([[a,t]])),o.items[t],r);if("number"==typeof n)t=n-1;else{if(n===Zh)return Zh;n===Xh&&(o.items.splice(t,1),t-=1)}}"function"==typeof n&&"key"===a&&(n=n(t,e))}}return"function"==typeof n?n(t,e):n}Gh.BREAK=Zh,Gh.SKIP=Wh,Gh.REMOVE=Xh,Gh.itemAtPath=(e,t)=>{let r=e;for(const[e,n]of t){const t=null==r?void 0:r[e];if(!t||!("items"in t))return;r=t.items[n]}return r},Gh.parentCollection=(e,t)=>{const r=Gh.itemAtPath(e,t.slice(0,-1)),n=t[t.length-1][0],a=null==r?void 0:r[n];if(a&&"items"in a)return a;throw new Error("Parent collection not found")};const Kh="\ufeff",Jh="",ef="",tf="";function rf(e){switch(e){case Kh:return"byte-order-mark";case Jh:return"doc-mode";case ef:return"flow-error-end";case tf:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}const nf=Object.freeze(Object.defineProperty({__proto__:null,BOM:Kh,DOCUMENT:Jh,FLOW_END:ef,SCALAR:tf,createScalarToken:function(e,t){const{implicitKey:r=!1,indent:n,inFlow:a=!1,offset:o=-1,type:i="PLAIN"}=t,s=Yd({type:i,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:a,options:{blockQuote:!0,lineWidth:-1}}),l=t.end??[{type:"newline",offset:-1,indent:n,source:"\n"}];switch(s[0]){case"|":case">":{const e=s.indexOf("\n"),t=s.substring(0,e),r=s.substring(e+1)+"\n",a=[{type:"block-scalar-header",offset:o,indent:n,source:t}];return zh(a,l)||a.push({type:"newline",offset:-1,indent:n,source:"\n"}),{type:"block-scalar",offset:o,indent:n,props:a,source:r}}case'"':return{type:"double-quoted-scalar",offset:o,indent:n,source:s,end:l};case"'":return{type:"single-quoted-scalar",offset:o,indent:n,source:s,end:l};default:return{type:"scalar",offset:o,indent:n,source:s,end:l}}},isCollection:e=>!!e&&"items"in e,isScalar:e=>!!e&&("scalar"===e.type||"single-quoted-scalar"===e.type||"double-quoted-scalar"===e.type||"block-scalar"===e.type),prettyToken:function(e){switch(e){case Kh:return"<BOM>";case Jh:return"<DOC>";case ef:return"<FLOW_END>";case tf:return"<SCALAR>";default:return JSON.stringify(e)}},resolveAsScalar:function(e,t=!0,r){if(e){const n=(e,t,n)=>{const a="number"==typeof e?e:Array.isArray(e)?e[0]:e.offset;if(!r)throw new vh([a,a+1],t,n);r(a,t,n)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Ph(e,t,n);case"block-scalar":return Ch({options:{strict:t}},e,n)}}return null},setScalarValue:function(e,t,r={}){let{afterKey:n=!1,implicitKey:a=!1,inFlow:o=!1,type:i}=r,s="indent"in e?e.indent:null;if(n&&"number"==typeof s&&(s+=2),!i)switch(e.type){case"single-quoted-scalar":i="QUOTE_SINGLE";break;case"double-quoted-scalar":i="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if("block-scalar-header"!==t.type)throw new Error("Invalid block scalar header");i=">"===t.source[0]?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:i="PLAIN"}const l=Yd({type:i,value:t},{implicitKey:a||null===s,indent:null!==s&&s>0?" ".repeat(s):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":!function(e,t){const r=t.indexOf("\n"),n=t.substring(0,r),a=t.substring(r+1)+"\n";if("block-scalar"===e.type){const t=e.props[0];if("block-scalar-header"!==t.type)throw new Error("Invalid block scalar header");t.source=n,e.source=a}else{const{offset:t}=e,r="indent"in e?e.indent:-1,o=[{type:"block-scalar-header",offset:t,indent:r,source:n}];zh(o,"end"in e?e.end:void 0)||o.push({type:"newline",offset:-1,indent:r,source:"\n"});for(const t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:"block-scalar",indent:r,props:o,source:a})}}(e,l);break;case'"':qh(e,l,"double-quoted-scalar");break;case"'":qh(e,l,"single-quoted-scalar");break;default:qh(e,l,"scalar")}},stringify:e=>"type"in e?Hh(e):Vh(e),tokenType:rf,visit:Gh},Symbol.toStringTag,{value:"Module"}));function af(e){switch(e){case void 0:case" ":case"\n":case"\r":case"\t":return!0;default:return!1}}const of=new Set("0123456789ABCDEFabcdef"),sf=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),lf=new Set(",[]{}"),cf=new Set(" ,[]{}\n\r\t"),uf=e=>!e||cf.has(e);class df{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if("string"!=typeof e)throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let r=this.next??"stream";for(;r&&(t||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||"\t"===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;for(;" "===t;)t=this.buffer[++r+e];if("\r"===t){const t=this.buffer[r+e+1];if("\n"===t||!t&&!this.atEnd)return e+r+1}return"\n"===t||r>=this.indentNext||!t&&!this.atEnd?e+r:-1}if("-"===t||"."===t){const t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&af(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return("number"!=typeof e||-1!==e&&e<this.pos)&&(e=this.buffer.indexOf("\n",this.pos),this.lineEndPos=e),-1===e?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[e-1]&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(null===e)return this.setNext("stream");if(e[0]===Kh&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let t=e.length,r=e.indexOf("#");for(;-1!==r;){const n=e[r-1];if(" "===n||"\t"===n){t=r-1;break}r=e.indexOf("#",r+1)}for(;;){const r=e[t-1];if(" "!==r&&"\t"!==r)break;t-=1}const n=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-n),this.pushNewline(),"stream"}if(this.atLineEnd()){const t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield Jh,yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if("-"===e||"."===e){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const e=this.peek(3);if(("---"===e||"..."===e)&&af(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"---"===e?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!af(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&af(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(uf),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=(yield*this.parseBlockScalarHeader()),t+=(yield*this.pushSpaces(!0)),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,r=-1;do{e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=r=t):t=0,t+=(yield*this.pushSpaces(!0))}while(e+t>0);const n=this.getLine();if(null===n)return this.setNext("flow");if((-1!==r&&r<this.indentNext&&"#"!==n[0]||0===r&&(n.startsWith("---")||n.startsWith("..."))&&af(n[3]))&&(r!==this.indentNext-1||1!==this.flowLevel||"]"!==n[0]&&"}"!==n[0]))return this.flowLevel=0,yield ef,yield*this.parseLineStart();let a=0;for(;","===n[a];)a+=(yield*this.pushCount(1)),a+=(yield*this.pushSpaces(!0)),this.flowKey=!1;switch(a+=(yield*this.pushIndicators()),n[a]){case void 0:return"flow";case"#":return yield*this.pushCount(n.length-a),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(uf),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const e=this.charAt(1);if(this.flowKey||af(e)||","===e)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let t=this.buffer.indexOf(e,this.pos+1);if("'"===e)for(;-1!==t&&"'"===this.buffer[t+1];)t=this.buffer.indexOf("'",t+2);else for(;-1!==t;){let e=0;for(;"\\"===this.buffer[t-1-e];)e+=1;if(e%2==0)break;t=this.buffer.indexOf('"',t+1)}const r=this.buffer.substring(0,t);let n=r.indexOf("\n",this.pos);if(-1!==n){for(;-1!==n;){const e=this.continueScalar(n+1);if(-1===e)break;n=r.indexOf("\n",e)}-1!==n&&(t=n-("\r"===r[n-1]?2:1))}if(-1===t){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const t=this.buffer[++e];if("+"===t)this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil((e=>af(e)||"#"===e))}*parseBlockScalar(){let e,t=this.pos-1,r=0;e:for(let n=this.pos;e=this.buffer[n];++n)switch(e){case" ":r+=1;break;case"\n":t=n,r=0;break;case"\r":{const e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=r:this.indentNext=this.blockScalarIndent+(0===this.indentNext?1:this.indentNext);do{const e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let n=t+1;for(e=this.buffer[n];" "===e;)e=this.buffer[++n];if("\t"===e){for(;"\t"===e||" "===e||"\r"===e||"\n"===e;)e=this.buffer[++n];t=n-1}else if(!this.blockScalarKeep)for(;;){let e=t-1,n=this.buffer[e];"\r"===n&&(n=this.buffer[--e]);const a=e;for(;" "===n;)n=this.buffer[--e];if(!("\n"===n&&e>=this.pos&&e+1+r>a))break;t=e}return yield tf,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t,r=this.pos-1,n=this.pos-1;for(;t=this.buffer[++n];)if(":"===t){const t=this.buffer[n+1];if(af(t)||e&&lf.has(t))break;r=n}else if(af(t)){let a=this.buffer[n+1];if("\r"===t&&("\n"===a?(n+=1,t="\n",a=this.buffer[n+1]):r=n),"#"===a||e&&lf.has(a))break;if("\n"===t){const e=this.continueScalar(n+1);if(-1===e)break;n=Math.max(n,e-2)}}else{if(e&&lf.has(t))break;r=n}return t||this.atEnd?(yield tf,yield*this.pushToIndex(r+1,!0),e?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){const r=this.buffer.slice(this.pos,e);return r?(yield r,this.pos+=r.length,r.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(uf))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,t=this.charAt(1);if(af(t)||e&&lf.has(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!af(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(sf.has(t))t=this.buffer[++e];else{if("%"!==t||!of.has(this.buffer[e+1])||!of.has(this.buffer[e+2]))break;t=this.buffer[e+=3]}return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,r=this.pos-1;do{t=this.buffer[++r]}while(" "===t||e&&"\t"===t);const n=r-this.pos;return n>0&&(yield this.buffer.substr(this.pos,n),this.pos=r),n}*pushUntil(e){let t=this.pos,r=this.buffer[t];for(;!e(r);)r=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}class pf{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,r=this.lineStarts.length;for(;t<r;){const n=t+r>>1;this.lineStarts[n]<e?t=n+1:r=n}return this.lineStarts[t]===e?{line:t+1,col:1}:0===t?{line:0,col:e}:{line:t,col:e-this.lineStarts[t-1]+1}}}}function hf(e,t){for(let r=0;r<e.length;++r)if(e[r].type===t)return!0;return!1}function ff(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function mf(e){switch(null==e?void 0:e.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function gf(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function vf(e){var t;if(0===e.length)return[];let r=e.length;e:for(;--r>=0;)switch(e[r].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;"space"===(null==(t=e[++r])?void 0:t.type););return e.splice(r,e.length)}function bf(e){if("flow-seq-start"===e.start.type)for(const t of e.items)!t.sep||t.value||hf(t.start,"explicit-key-ind")||hf(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,mf(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}let yf=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new df,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&0===this.offset&&this.onNewLine(0);for(const r of this.lexer.lex(e,t))yield*this.next(r);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar)return this.atScalar=!1,yield*this.step(),void(this.offset+=e.length);const t=rf(e);if(t)if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if("doc-end"!==this.type||e&&"doc-end"===e.type){if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}else{for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source})}}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(t)if(0===this.stack.length)yield t;else{const e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&bf(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const r=e.items[e.items.length-1];if(r.value)return e.items.push({start:[],key:t,sep:[]}),void(this.onKeyLine=!0);if(!r.sep)return Object.assign(r,{key:t,sep:[]}),void(this.onKeyLine=!r.explicitKey);r.value=t;break}case"block-seq":{const r=e.items[e.items.length-1];r.value?e.items.push({start:[],value:t}):r.value=t;break}case"flow-collection":{const r=e.items[e.items.length-1];return void(!r||r.value?e.items.push({start:[],key:t,sep:[]}):r.sep?r.value=t:Object.assign(r,{key:t,sep:[]}))}default:yield*this.pop(),yield*this.pop(t)}if(!("document"!==e.type&&"block-map"!==e.type&&"block-seq"!==e.type||"block-map"!==t.type&&"block-seq"!==t.type)){const r=t.items[t.items.length-1];r&&!r.sep&&!r.value&&r.start.length>0&&-1===ff(r.start)&&(0===t.indent||r.start.every((e=>"comment"!==e.type||e.indent<t.indent)))&&("document"===e.type?e.end=r.start:e.items.push({start:r.start}),t.items.splice(-1,1))}}else{const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}}*stream(){switch(this.type){case"directive-line":return void(yield{type:"directive",offset:this.offset,source:this.source});case"byte-order-mark":case"space":case"comment":case"newline":return void(yield this.sourceToken);case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};return"doc-start"===this.type&&e.start.push(this.sourceToken),void this.stack.push(e)}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":return void(-1!==ff(e.start)?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken));case"anchor":case"tag":case"space":case"comment":case"newline":return void e.start.push(this.sourceToken)}const t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if("map-value-ind"===this.type){const t=vf(gf(this.peek(2)));let r;e.end?(r=e.end,r.push(this.sourceToken),delete e.end):r=[this.sourceToken];const n={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=n}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":return void e.props.push(this.sourceToken);case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){var t;const r=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,r.value){const t="end"in r.value?r.value.end:void 0,n=Array.isArray(t)?t[t.length-1]:void 0;"comment"===(null==n?void 0:n.type)?null==t||t.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)e.items.push({start:[this.sourceToken]});else if(r.sep)r.sep.push(this.sourceToken);else{if(this.atIndentedComment(r.start,e.indent)){const n=e.items[e.items.length-2],a=null==(t=null==n?void 0:n.value)?void 0:t.end;if(Array.isArray(a))return Array.prototype.push.apply(a,r.start),a.push(this.sourceToken),void e.items.pop()}r.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const t=!this.onKeyLine&&this.indent===e.indent,n=t&&(r.sep||r.explicitKey)&&"seq-item-ind"!==this.type;let a=[];if(n&&r.sep&&!r.value){const t=[];for(let n=0;n<r.sep.length;++n){const a=r.sep[n];switch(a.type){case"newline":t.push(n);break;case"space":break;case"comment":a.indent>e.indent&&(t.length=0);break;default:t.length=0}}t.length>=2&&(a=r.sep.splice(t[1]))}switch(this.type){case"anchor":case"tag":return void(n||r.value?(a.push(this.sourceToken),e.items.push({start:a}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken));case"explicit-key-ind":return r.sep||r.explicitKey?n||r.value?(a.push(this.sourceToken),e.items.push({start:a,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}):(r.start.push(this.sourceToken),r.explicitKey=!0),void(this.onKeyLine=!0);case"map-value-ind":if(r.explicitKey)if(r.sep)if(r.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(hf(r.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]});else if(mf(r.key)&&!hf(r.sep,"newline")){const e=vf(r.start),t=r.key,n=r.sep;n.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:t,sep:n}]})}else a.length>0?r.sep=r.sep.concat(a,this.sourceToken):r.sep.push(this.sourceToken);else if(hf(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{const e=vf(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||n?e.items.push({start:a,key:null,sep:[this.sourceToken]}):hf(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});return void(this.onKeyLine=!0);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const t=this.flowScalar(this.type);return void(n||r.value?(e.items.push({start:a,key:t,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(t):(Object.assign(r,{key:t,sep:[]}),this.onKeyLine=!0))}default:{const n=this.startBlockValue(e);if(n){if("block-seq"===n.type){if(!r.explicitKey&&r.sep&&!hf(r.sep,"newline"))return void(yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source}))}else t&&e.items.push({start:a});return void this.stack.push(n)}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){var t;const r=e.items[e.items.length-1];switch(this.type){case"newline":if(r.value){const t="end"in r.value?r.value.end:void 0,n=Array.isArray(t)?t[t.length-1]:void 0;"comment"===(null==n?void 0:n.type)?null==t||t.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,e.indent)){const n=e.items[e.items.length-2],a=null==(t=null==n?void 0:n.value)?void 0:t.end;if(Array.isArray(a))return Array.prototype.push.apply(a,r.start),a.push(this.sourceToken),void e.items.pop()}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=e.indent)break;return void r.start.push(this.sourceToken);case"seq-item-ind":if(this.indent!==e.indent)break;return void(r.value||hf(r.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken))}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do{yield*this.pop(),e=this.peek(1)}while(e&&"flow-collection"===e.type)}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":return void(!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken));case"map-value-ind":return void(!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]}));case"space":case"comment":case"newline":case"anchor":case"tag":return void(!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);return void(!t||t.value?e.items.push({start:[],key:r,sep:[]}):t.sep?this.stack.push(r):Object.assign(t,{key:r,sep:[]}))}case"flow-map-end":case"flow-seq-end":return void e.end.push(this.sourceToken)}const r=this.startBlockValue(e);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const t=this.peek(2);if("block-map"===t.type&&("map-value-ind"===this.type&&t.indent===e.indent||"newline"===this.type&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if("map-value-ind"===this.type&&"flow-collection"!==t.type){const r=vf(gf(t));bf(e);const n=e.end.splice(1,e.end.length);n.push(this.sourceToken);const a={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=vf(gf(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const t=vf(gf(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&!(this.indent<=t)&&e.every((e=>"newline"===e.type||"space"===e.type))}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}};function Of(e){const t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new pf||null,prettyErrors:t}}function wf(e,t={}){const{lineCounter:r,prettyErrors:n}=Of(t),a=new yf(null==r?void 0:r.addNewLine),o=new Qh(t);let i=null;for(const t of o.compose(a.parse(e),!0,e.length))if(i){if("silent"!==i.options.logLevel){i.errors.push(new vh(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else i=t;return n&&r&&(i.errors.forEach(yh(e,r)),i.warnings.forEach(yh(e,r))),i}function xf(e,t,r){let n;"function"==typeof t?n=t:void 0===r&&t&&"object"==typeof t&&(r=t);const a=wf(e,r);if(!a)return null;if(a.warnings.forEach((e=>ep(a.options.logLevel,e))),a.errors.length>0){if("silent"!==a.options.logLevel)throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:n},r))}function kf(e,t,r){let n=null;if("function"==typeof t||Array.isArray(t)?n=t:void 0===r&&t&&(r=t),"string"==typeof r&&(r=r.length),"number"==typeof r){const e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){const{keepUndefined:e}=r??t??{};if(!e)return}return rd(e)&&!n?e.toString(r):new fh(e,n,r).toString(r)}const Sf=Object.freeze(Object.defineProperty({__proto__:null,Alias:Ad,CST:nf,Composer:Qh,Document:fh,Lexer:df,LineCounter:pf,Pair:sp,Parser:yf,Scalar:Dd,Schema:hh,YAMLError:gh,YAMLMap:hp,YAMLParseError:vh,YAMLSeq:mp,YAMLWarning:bh,isAlias:td,isCollection:sd,isDocument:rd,isMap:nd,isNode:ld,isPair:ad,isScalar:od,isSeq:id,parse:xf,parseAllDocuments:function(e,t={}){const{lineCounter:r,prettyErrors:n}=Of(t),a=new yf(null==r?void 0:r.addNewLine),o=new Qh(t),i=Array.from(o.compose(a.parse(e)));if(n&&r)for(const t of i)t.errors.forEach(yh(e,r)),t.warnings.forEach(yh(e,r));return i.length>0?i:Object.assign([],{empty:!0},o.streamInfo())},parseDocument:wf,stringify:kf,visit:hd,visitAsync:md},Symbol.toStringTag,{value:"Module"}));function _f(e){if(null!==e){if("string"==typeof e){if(""===e.trim())return;try{return JSON.parse(e)}catch(t){const r=/^[^:]+:/.test(e),n=e.slice(0,50).trimStart().startsWith("{");if(!r||n)return;return xf(e,{maxAliasCount:1e4})}}return Zu(e),e}}function Ef(e,t={}){if(Zu(e))return e;const r=_f(e);return[{isEntrypoint:!0,specification:r,filename:null,dir:"./",references:Vu(r),...t}]}function Tf(e){return decodeURI(e.replace(/~1/g,"/").replace(/~0/g,"~"))}function Af(e){return e.split("/").slice(1).map(Tf)}function Cf(e,t,r,n=[]){const a=Ef(structuredClone(e)),o=qu(a),i=(null==r?void 0:r.specification)??o.specification;return Qu(i)?(Pf(i,a,o,new WeakSet,n,t),{valid:0===(n=n.filter(((e,t,r)=>t===r.findIndex((t=>t.message===e.message&&t.code===e.code))))).length,errors:n,schema:i}):{valid:!1,errors:n,schema:i}}function Pf(e,t,r,n,a,o){if(null!==e&&!n.has(e)){for(n.add(e);void 0!==e.$ref;){const n=Df(e.$ref,o,r,t,i,a);if("object"!=typeof n||null===n)break;e.$ref,delete e.$ref;for(const t of Object.keys(n))void 0===e[t]&&(e[t]=n[t])}for(const i of Object.values(e))"object"==typeof i&&null!==i&&Pf(i,t,r,n,a,o)}function i(e){return Pf(e.specification,t,e,n,a,o),e}}function Df(e,t,r,n,a,o){if("string"!=typeof e)return void o.push({code:"INVALID_REFERENCE",message:Fu.INVALID_REFERENCE.replace("%s",e)});const[i,s]=e.split("#",2),l=i!==r.filename;if(i&&l){const e=n.find((e=>e.filename===i));return e?void 0===s?e.specification:Df(`#${s}`,t,a(e),n,a,o):void o.push({code:"EXTERNAL_REFERENCE_NOT_FOUND",message:Fu.EXTERNAL_REFERENCE_NOT_FOUND.replace("%s",i)})}const c=Af(s);try{return c.reduce(((e,t)=>e[t]),r.specification)}catch(t){o.push({code:"INVALID_REFERENCE",message:Fu.INVALID_REFERENCE.replace("%s",e)})}}async function $f(e,t){const r=Ef(e),n=qu(r),a=Cf(r,t);return{specification:n.specification,errors:a.errors,schema:a.schema,...zu(n.specification)}}function Rf(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}const Mf=new Set(["properties","items","allOf","anyOf","oneOf","not","additionalProperties","schema"]),Nf=(e,t)=>{if(void 0!==e.type&&!0===e.nullable&&(e.type=[e.type,"null"],delete e.nullable),!0===e.exclusiveMinimum?(e.exclusiveMinimum=e.minimum,delete e.minimum):!1===e.exclusiveMinimum&&delete e.exclusiveMinimum,!0===e.exclusiveMaximum?(e.exclusiveMaximum=e.maximum,delete e.maximum):!1===e.exclusiveMaximum&&delete e.exclusiveMaximum,void 0!==e.example&&(function(e){return!!e.some((e=>Mf.has(e)))||!!e.some((e=>e.endsWith("Schema")))||e.length>=2&&"components"===e[0]&&"schemas"===e[1]}(t)?e.examples=[e.example]:e.examples={default:{value:e.example}},delete e.example),"object"===e.type&&void 0!==e.properties&&t.slice(0,-1).some(((e,r)=>"content"===e&&"multipart/form-data"===t[r+1])))for(const t of Object.values(e.properties))"object"==typeof t&&null!==t&&"type"in t&&"format"in t&&"string"===t.type&&"binary"===t.format&&(t.contentMediaType="application/octet-stream",delete t.format);if(t.includes("content")&&t.includes("application/octet-stream"))return{};if("string"===e.type){if("binary"===e.format)return{type:"string",contentMediaType:"application/octet-stream"};if("base64"===e.format)return{type:"string",contentEncoding:"base64"};if("byte"===e.format)return{type:"string",contentEncoding:"base64",contentMediaType:t.slice(0,-1).find(((e,r)=>"content"===t[r-1]))}}return void 0!==e["x-webhooks"]&&(e.webhooks=e["x-webhooks"],delete e["x-webhooks"]),e},If=e=>{switch(e){case"application":return"clientCredentials";case"accessCode":return"authorizationCode";case"implicit":return"implicit";case"password":return"password";default:return e}};function Lf(e){const t=function(e){if("array"!==e.type||"query"!==e.in&&"path"!==e.in&&"header"!==e.in)return{};const t=e.collectionFormat??"csv";return Bf[e.in][t]}(e),r=(n=e,["type","format","items","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","enum","multipleOf"].reduce(((e,t)=>(Object.hasOwn(n,t)&&(e[t]=n[t],delete n[t]),e)),{}));var n;return delete e.collectionFormat,delete e.default,{schema:r,...t,...e}}const jf={ssv:{},pipes:{},multi:{},csv:{style:"simple",explode:!1},tsv:{}},Bf={header:jf,query:{ssv:{style:"spaceDelimited",explode:!1},pipes:{style:"pipeDelimited",explode:!1},multi:{style:"form",explode:!0},csv:{style:"form",explode:!1},tsv:{}},path:jf},Uf=[function(e){var t,r,n;let a=e;if(null===a||"object"!=typeof a||"string"!=typeof a.swagger||!(null==(t=a.swagger)?void 0:t.startsWith("2.0")))return a;if(a.openapi="3.0.4",delete a.swagger,a.host){const e=Array.isArray(a.schemes)&&(null==(r=a.schemes)?void 0:r.length)?a.schemes:["http"];a.servers=e.map((e=>({url:`${e}://${a.host}${a.basePath??""}`}))),delete a.basePath,delete a.schemes,delete a.host}else a.basePath&&(a.servers=[{url:a.basePath}],delete a.basePath);if(a.definitions&&(a.components=Object.assign({},a.components,{schemas:a.definitions}),delete a.definitions,a=Hu(a,(e=>("string"==typeof e.$ref&&e.$ref.startsWith("#/definitions/")&&(e.$ref=e.$ref.replace(/^#\/definitions\//,"#/components/schemas/")),e)))),a=Hu(a,(e=>("file"===e.type&&(e.type="string",e.format="binary"),e))),"object"==typeof a.paths)for(const e in a.paths)if(Object.hasOwn(a.paths,e)){const t=a.paths[e];for(const e in t)if(Object.hasOwn(t,e)){const r=t[e];if(r.parameters){const e=structuredClone(r.parameters.find((e=>"body"===e.in))??{});if(e&&Object.keys(e).length){delete e.name,delete e.in;const t=a.consumes??r.consumes??["application/json"];"object"!=typeof r.requestBody&&(r.requestBody={}),"object"!=typeof r.requestBody.content&&(r.requestBody.content={});const{schema:n,...o}=e;r.requestBody={...r.requestBody,...o};for(const e of t)r.requestBody.content[e]={schema:n}}r.parameters=r.parameters.filter((e=>"body"!==e.in)),delete r.consumes;const t=r.parameters.filter((e=>"formData"===e.in));if(t.length>0){"object"!=typeof r.requestBody&&(r.requestBody={}),"object"!=typeof r.requestBody.content&&(r.requestBody.content={}),r.requestBody.content["application/x-www-form-urlencoded"]={schema:{type:"object",properties:{},required:[]}};for(const e of t)r.requestBody.content["application/x-www-form-urlencoded"].schema.properties[e.name]={type:e.type,description:e.description},e.required&&r.requestBody.content["application/x-www-form-urlencoded"].schema.required.push(e.name);r.parameters=r.parameters.filter((e=>"formData"!==e.in))}r.parameters=r.parameters.map((e=>Lf(e)))}if(r.responses)for(const e in r.responses)if(Object.hasOwn(r.responses,e)){const t=r.responses[e];if(t.headers&&(t.headers=Object.entries(t.headers).reduce(((e,[t,r])=>({[t]:Lf(r),...e})),{})),t.schema){const e=a.produces??r.produces??["application/json"];"object"!=typeof t.content&&(t.content={});for(const r of e)t.content[r]={schema:t.schema};delete t.schema}}delete r.produces,0===(null==(n=r.parameters)?void 0:n.length)&&delete r.parameters}}if(a.securityDefinitions){"object"!=typeof a.components&&(a.components={}),a.components=a.components,Object.assign(a.components,{securitySchemes:{}});for(const[e,t]of Object.entries(a.securityDefinitions))if("object"==typeof t)if("type"in t&&"oauth2"===t.type){const{flow:r,authorizationUrl:n,tokenUrl:o,scopes:i}=t;Object.assign(a.components.securitySchemes,{[e]:{type:"oauth2",flows:{[If(r)]:Object.assign({},n&&{authorizationUrl:n},o&&{tokenUrl:o},i&&{scopes:i})}}})}else"type"in t&&"basic"===t.type?Object.assign(a.components.securitySchemes,{[e]:{type:"http",scheme:"basic"}}):Object.assign(a.components.securitySchemes,{[e]:t});delete a.securityDefinitions}return a},function(e){let t=e;return null!==t&&"string"==typeof t.openapi&&t.openapi.startsWith("3.0")?(t.openapi="3.1.1",t=Hu(t,Nf),t):t}];function Ff(e){return e?{specification:Uf.reduce(((e,t)=>t(e)),Zu(e)?qu(e).specification:_f(e)),version:"3.1"}:{specification:null,version:"3.1"}}function Qf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zf(e,t){let r=0;for(let t=e.length-1;t>=0;t--){const n=e[t];"."===n?e.splice(t,1):".."===n?(e.splice(t,1),r++):r&&(e.splice(t,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}const qf=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^/]+?|)(\.[^./]*|))(?:[/]*)$/,Hf=e=>qf.exec(e).slice(1);function Vf(e){const t=Zf(e),r="/"===Yf(e,-1);return(e=zf(Gf(e.split("/"),(e=>!!e)),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e}function Zf(e){return"/"===e.charAt(0)}var Wf=function(e){const t=Hf(e),r=t[0];let n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},Xf=function(...e){return Vf(Gf(e,((e,t)=>{if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))};function Gf(e,t){if(e.filter)return e.filter(t);const r=[];for(let n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}const Yf="b"==="ab".substr(-1)?(e,t,r)=>e.substr(t,r):(e,t,r)=>(t<0&&(t=e.length+t),e.substr(t,r));async function Kf(e){const t=(new TextEncoder).encode(e),r=await crypto.subtle.digest("SHA-1",t),n=Array.from(new Uint8Array(r)).map((e=>e.toString(16).padStart(2,"0"))).join("").substring(0,7);return n.match(/^\d+$/)?"a"+n.substring(1):n}async function Jf(e,t,r,n,a=0){if(a>=100)throw"Can not generate unique compressed values";const o=await e(n??t);return void 0!==r[o]&&r[o]!==t?Jf(e,t,r,o,a+1):(r[o]=t,o)}const em=(e,t)=>{const r=Object.fromEntries(Object.entries(t).map((([e,t])=>[t,e])));return{generate:async n=>{const a=r[n];if(a)return a;const o=await Jf(e,n,t),i=o.match(/^\d+$/)?`a${o}`:o;return r[n]=i,i}}};function tm(e){try{const t=new URL(e);return"http:"===t.protocol||"https:"===t.protocol}catch{return!1}}function rm(e){return e.startsWith("#")}async function nm(e,t){const r=t.find((t=>t.validate(e)));return r?r.exec(e):{ok:!1}}function am(e,t,r){if(""===t)throw new Error("Cannot set value at root ('') pointer");const n=Af(t);let a=e;for(let e=0;e<n.length;e++){const t=n[e],o=e===n.length-1,i=n[e+1],s=/^\d+$/.test(i??"");o?a[t]=r:(t in a&&"object"==typeof a[t]||(a[t]=s?[]:{}),a=a[t])}}function om(e,t){if(!rm(e))throw"Please provide an internal ref";return`#/${t.map(Rf).join("/")}${e.substring(1)}`}function im(e,t){if(Qu(e)&&(Object.values(e).forEach((e=>im(e,t))),"object"==typeof e&&"$ref"in e&&"string"==typeof e.$ref)){const r=e.$ref;if(!rm(r))return;return e.$ref=om(r,t)}}const sm="x-ext",lm="x-ext-urls";async function cm(e,t){const r=t.cache??new Map,n=await(async()=>{if("string"!=typeof e)return e;const r=await nm(e,t.plugins);if(r.ok&&"object"==typeof r.data)return r.data;throw new Error("Failed to resolve input: Please provide a valid string value or pass a loader to process the input")})(),a=t.root??n,o=void 0!==t.root&&t.root!==n,i=t.visitedNodes??new Set;void 0===a[lm]&&(a[lm]={});const{generate:s}=em(t.compress??Kf,a[lm]),l=async(n,c=(()=>"string"!=typeof e?"":tm(e)||function(e){return!tm(e)&&!function(e){if(!e.includes("\n"))return!1;try{return xf(e,{maxAliasCount:1e4}),!0}catch(e){return!1}}(e)&&!function(e){try{return JSON.parse(e),!0}catch{return!1}}(e)}(e)?e:"")(),u=!1)=>{var d,p,h,f,m,g;if((Qu(n)||Array.isArray(n))&&!i.has(n)){if(i.add(n),"object"==typeof n&&"$ref"in n&&"string"==typeof n.$ref){const e=n.$ref,i="$global"in n&&"boolean"==typeof n.$global&&n.$global;if(rm(e))return void(o&&await l((v=a,b=Af(e.substring(1)),b.reduce(((e,t)=>{if(void 0!==e)return e[t]}),v)),c,u));const[y,O=""]=e.split("#",2),w=function(e,t){if(tm(t))return t;if(tm(e)){const r=new URL(e),n=Xf(Wf(r.pathname),t);return new URL(n,e).toString()}return Xf(Wf(e),t)}(c,y),x=await s(w),k=r.has(w);k||r.set(w,nm(w,t.plugins)),null==(p=null==(d=null==t?void 0:t.hooks)?void 0:d.onResolveStart)||p.call(d,n);const S=await r.get(w);return S.ok?(k||(i||im(S.data,[sm,x]),await l(S.data,i?c:w,i),am(a,`/${lm}/${Rf(x)}`,w)),k||am(a,`/${sm}/${x}`,S.data),n.$ref=om(`#${O}`,[sm,x]),void(null==(f=null==(h=null==t?void 0:t.hooks)?void 0:h.onResolveSuccess)||f.call(h,n))):(null==(g=null==(m=null==t?void 0:t.hooks)?void 0:m.onResolveError)||g.call(m,n),console.warn(`Failed to resolve external reference "${w}". The reference may be invalid, inaccessible, or missing a loader for this type of reference.`))}var v,b;await Promise.all(Object.entries(n).map((async([e,t])=>{e!==sm&&await l(t,c,u)})))}};return await l(n),o||delete a[lm],n}function um(e){const t=(null==e?void 0:e.limit)?function(e){let t=0;const r=[];return async n=>{t>=e&&await new Promise((e=>r.push(e))),t++;try{return await n()}finally{t--,(()=>{if(0===r.length||t>=e)return;const n=r.shift();n&&n()})()}}}(e.limit):e=>e();return{validate:tm,exec:r=>async function(e,t,r){var n,a;try{const o=(e=>{try{return new URL(e).host}catch{return null}})(e),i=null==(a=null==(n=null==r?void 0:r.headers)?void 0:n.find((e=>void 0!==e.domains.find((e=>e===o)))))?void 0:a.headers,s=(null==r?void 0:r.fetch)??fetch,l=await t((()=>s(e,{headers:i})));return l.ok?{ok:!0,data:_f(await l.text())}:{ok:!1}}catch{return{ok:!1}}}(r,t,e)}}function dm(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function pm(e){return e.startsWith("#")}const hm=e=>JSON.parse(JSON.stringify(e)),fm=(e,t)=>{Object.assign(e,t)};class mm extends Error{constructor(e){super(e),this.name="InvalidChangesDetectedError"}}const gm=new Set(["x-scalar-navigation","x-ext","x-ext-urls","$ref","$status"]),vm=(e,t)=>{const r=((e,t)=>{const r=[],n=(e,t,a=[])=>{if(typeof e!=typeof t)return void 0===e?void r.push({path:a,changes:t,type:"add"}):void 0===t?void r.push({path:a,changes:e,type:"delete"}):void r.push({path:a,changes:t,type:"update"});if("object"!=typeof e||"object"!=typeof t||null===e||null===t)e!==t&&r.push({path:a,changes:t,type:"update"});else{const r=new Set([...Object.keys(e),...Object.keys(t)]);for(const o of r)n(e[o],t[o],[...a,o])}};return n(e,t),r})(e,t),[n,a]=(o=e=>!e.path.some((e=>gm.has(e))),r.reduce((([e,t],r)=>o(r)?[[...e,r],t]:[e,[...t,r]]),[[],[]]));var o;return((e,t)=>{const r=(e,t,n,a=0)=>{if(a>=t.length-1)"add"===n.type||"update"===n.type?e[t[a]]=n.changes:Array.isArray(e)?e.splice(Number.parseInt(t[a]),1):delete e[t[a]];else{if(void 0===e[t[a]]||"object"!=typeof e[t[a]])throw new mm("Process aborted, check diff object");r(e[t[a]],t,n,a+1)}};for(const n of t)r(e,n.path,n)})(e,n),[e,a]};function bm(e){return e.split("/").filter(((e,t)=>(0!==t||"#"!==e)&&e))}function ym(e,t){return t.reduce(((e,t)=>{if(null!=e)return e[t]}),e)}const Om=(e,t)=>{for(const r in t)if(r in e){const n=e[r],a=t[r];e[r]="object"==typeof n&&null!==n&&"object"==typeof a&&null!==a?Om(n,a):a}else e[r]=t[r];return e},wm=Symbol("target");function xm(e,t=e,r){if(!dm(e)&&!Array.isArray(e))return e;const n=go(e)?Oo(e):e,a=function(e){return{get(t,r,n){if(r===wm)return t;if("__isProxy"===r)return!0;const a=Reflect.get(t,r,n),o=(t,r)=>{if(!dm(t)&&!Array.isArray(t))return t;if("$ref"in t){const n=t.$ref;if(pm(n)){const t=bm(n),a=ym(e,t);return o(a,r??n)}}return xm(r?{...t,"x-original-ref":r}:t,e)};return o(a)},set(t,r,n,a){const o=go(t)?Oo(t):t,i=o[r];if(dm(i)&&"$ref"in i&&"string"==typeof i.$ref&&pm(i.$ref)){const t=bm(i.$ref),r=ym(e,t.slice(0,-1)),a=t[t.length-1];r&&a&&(r[a]=n)}else Reflect.set(o,r,n,a);return!0},has(t,r){if("string"==typeof r&&"$ref"!==r&&"string"==typeof t.$ref&&pm(t.$ref)){const n=bm(t.$ref),a=ym(e,n);return!!a&&r in a}return r in t},ownKeys(t){if("$ref"in t&&"string"==typeof t.$ref&&pm(t.$ref)){const r=bm(t.$ref),n=ym(e,r);return n?Reflect.ownKeys(n):[]}return Reflect.ownKeys(t)},getOwnPropertyDescriptor(t,r){if("$ref"in t&&"$ref"!==r&&"string"==typeof t.$ref&&pm(t.$ref)){const n=bm(t.$ref),a=ym(e,n);if(a)return Object.getOwnPropertyDescriptor(a,r)}return Object.getOwnPropertyDescriptor(t,r)}}}(t);return new Proxy(n,a)}function km(e){return e[wm]}const Sm="object"==typeof self?self:globalThis,_m=e=>((e,t)=>{const r=(t,r)=>(e.set(r,t),t),n=a=>{if(e.has(a))return e.get(a);const[o,i]=t[a];switch(o){case 0:case-1:return r(i,a);case 1:{const e=r([],a);for(const t of i)e.push(n(t));return e}case 2:{const e=r({},a);for(const[t,r]of i)e[n(t)]=n(r);return e}case 3:return r(new Date(i),a);case 4:{const{source:e,flags:t}=i;return r(new RegExp(e,t),a)}case 5:{const e=r(new Map,a);for(const[t,r]of i)e.set(n(t),n(r));return e}case 6:{const e=r(new Set,a);for(const t of i)e.add(n(t));return e}case 7:{const{name:e,message:t}=i;return r(new Sm[e](t),a)}case 8:return r(BigInt(i),a);case"BigInt":return r(Object(BigInt(i)),a)}return r(new Sm[o](i),a)};return n})(new Map,e)(0),Em="",{toString:Tm}={},{keys:Am}=Object,Cm=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const r=Tm.call(e).slice(8,-1);switch(r){case"Array":return[1,Em];case"Object":return[2,Em];case"Date":return[3,Em];case"RegExp":return[4,Em];case"Map":return[5,Em];case"Set":return[6,Em]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},Pm=([e,t])=>0===e&&("function"===t||"symbol"===t),Dm=(e,{json:t,lossy:r}={})=>{const n=[];return((e,t,r,n)=>{const a=(e,t)=>{const a=n.push(e)-1;return r.set(t,a),a},o=n=>{if(r.has(n))return r.get(n);let[i,s]=Cm(n);switch(i){case 0:{let t=n;switch(s){case"bigint":i=8,t=n.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return a([-1],n)}return a([i,t],n)}case 1:{if(s)return a([s,[...n]],n);const e=[],t=a([i,e],n);for(const t of n)e.push(o(t));return t}case 2:{if(s)switch(s){case"BigInt":return a([s,n.toString()],n);case"Boolean":case"Number":case"String":return a([s,n.valueOf()],n)}if(t&&"toJSON"in n)return o(n.toJSON());const r=[],l=a([i,r],n);for(const t of Am(n))!e&&Pm(Cm(n[t]))||r.push([o(t),o(n[t])]);return l}case 3:return a([i,n.toISOString()],n);case 4:{const{source:e,flags:t}=n;return a([i,{source:e,flags:t}],n)}case 5:{const t=[],r=a([i,t],n);for(const[r,a]of n)(e||!Pm(Cm(r))&&!Pm(Cm(a)))&&t.push([o(r),o(a)]);return r}case 6:{const t=[],r=a([i,t],n);for(const r of n)!e&&Pm(Cm(r))||t.push(o(r));return r}}const{message:l}=n;return a([i,{name:s,message:l}],n)};return o})(!(t||r),!!t,new Map,n)(e),n},$m="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?_m(Dm(e,t)):structuredClone(e):(e,t)=>_m(Dm(e,t)),Rm=function(e,t,r,n,a){const o=Mm(t);return!!Lm(e)&&o.call(a,e,r,n)},Mm=function(e){if(null==e)return Im;if("string"==typeof e)return function(e){return Nm((function(t){return t.tagName===e}))}(e);if("object"==typeof e)return function(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Mm(e[r]);return Nm((function(...e){let r=-1;for(;++r<t.length;)if(t[r].apply(this,e))return!0;return!1}))}(e);if("function"==typeof e)return Nm(e);throw new Error("Expected function, string, or array as `test`")};function Nm(e){return function(t,r,n){return Boolean(Lm(t)&&e.call(this,t,"number"==typeof r?r:void 0,n||void 0))}}function Im(e){return Boolean(e&&"object"==typeof e&&"type"in e&&"element"===e.type&&"tagName"in e&&"string"==typeof e.tagName)}function Lm(e){return null!==e&&"object"==typeof e&&"type"in e&&"tagName"in e}const jm=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,Bm=/^[a-zA-Z]:\\/;function Um(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Fm(e){return e.join(" ").trim()}const Qm=function(e){if(null==e)return qm;if("function"==typeof e)return zm(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Qm(e[r]);return zm((function(...e){let r=-1;for(;++r<t.length;)if(t[r].apply(this,e))return!0;return!1}))}(e):function(e){const t=e;return zm((function(r){const n=r;let a;for(a in e)if(n[a]!==t[a])return!1;return!0}))}(e);if("string"==typeof e)return function(e){return zm((function(t){return t&&t.type===e}))}(e);throw new Error("Expected function, string, or object as test")};function zm(e){return function(t,r,n){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof r?r:void 0,n||void 0))}}function qm(){return!0}const Hm=[],Vm=!1,Zm="skip";function Wm(e,t,r,n){let a;"function"==typeof t&&"function"!=typeof r?(n=r,r=t):a=t;const o=Qm(a),i=n?-1:1;!function e(a,s,l){const c=a&&"object"==typeof a?a:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=Hm;if((!t||o(a,s,l[l.length-1]||void 0))&&(p=function(e){return Array.isArray(e)?e:"number"==typeof e?[true,e]:null==e?Hm:[e]}(r(a,l)),p[0]===Vm))return p;if("children"in a&&a.children){const t=a;if(t.children&&p[0]!==Zm)for(u=(n?t.children.length:-1)+i,d=l.concat(t);u>-1&&u<t.children.length;){const r=t.children[u];if(c=e(r,u,d)(),c[0]===Vm)return c;u="number"==typeof c[1]?c[1]:u+i}}return p}}(e,void 0,[])()}function Xm(e,t,r,n){let a,o,i;"function"==typeof t&&"function"!=typeof r?(o=void 0,i=t,a=r):(o=t,i=r,a=n),Wm(e,o,(function(e,t){const r=t[t.length-1],n=r?r.children.indexOf(e):void 0;return i(e,n,r)}),a)}const Gm=["http","https"],Ym=["nofollow"],Km={};function Jm(e){const t=e||Km,r=t.protocols||Gm,n=Mm(t.test);return function(e){Xm(e,"element",(function(e,a,o){if("a"===e.tagName&&"string"==typeof e.properties.href&&n(e,a,o)){const n=e.properties.href;if(function(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return!Bm.test(e)&&jm.test(e)}(n)?r.includes(n.slice(0,n.indexOf(":"))):n.startsWith("//")){const r=eg(t.content,e),n=r&&!Array.isArray(r)?[r]:r,a=eg(t.rel,e)||Ym,o="string"==typeof a?Um(a):a,i=eg(t.target,e),s=eg(t.properties,e);if(s&&Object.assign(e.properties,$m(s)),o.length>0&&(e.properties.rel=[...o]),i&&(e.properties.target=i),n){const r=eg(t.contentProperties,e)||{};e.children.push({type:"element",tagName:"span",properties:$m(r),children:$m(n)})}}}}))}}function eg(e,t){return"function"==typeof e?e(t):e}const tg=Mm((function(e){return"audio"===e.tagName||"canvas"===e.tagName||"embed"===e.tagName||"iframe"===e.tagName||"img"===e.tagName||"math"===e.tagName||"object"===e.tagName||"picture"===e.tagName||"svg"===e.tagName||"video"===e.tagName})),rg={}.hasOwnProperty,ng=new Set(["pingback","prefetch","stylesheet"]),ag=Mm(["a","abbr","area","b","bdi","bdo","br","button","cite","code","data","datalist","del","dfn","em","i","input","ins","kbd","keygen","label","map","mark","meter","noscript","output","progress","q","ruby","s","samp","script","select","small","span","strong","sub","sup","template","textarea","time","u","var","wbr"]),og=Mm("meta");const ig=/[ \t\n\f\r]/g;function sg(e){return"object"==typeof e?"text"===e.type&&lg(e.value):lg(e)}function lg(e){return""===e.replace(ig,"")}const cg=["pre","script","style","textarea"],ug=["address","article","aside","blockquote","body","br","caption","center","col","colgroup","dd","dialog","dir","div","dl","dt","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","legend","li","li","listing","main","menu","nav","ol","optgroup","option","p","plaintext","pre","section","summary","table","tbody","td","td","tfoot","th","th","thead","tr","ul","wbr","xmp"],dg=["button","input","select","textarea"],pg=["area","base","basefont","dialog","datalist","head","link","meta","noembed","noframes","param","rp","script","source","style","template","track","title"],hg={},fg=Qm(["doctype","comment"]);function mg(e,t){if("children"in e){const r={...t};return("root"===e.type||yg(e))&&(r.before=!0,r.after=!0),r.whitespace=function(e,t){if("tagName"in e&&e.properties)switch(e.tagName){case"listing":case"plaintext":case"script":case"style":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return e.properties.wrap?"pre-wrap":"pre";case"td":case"th":return e.properties.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}return t.whitespace}(e,t),function(e,t){let r=t.before;const n=t.after,a=e.children;let o=a.length,i=-1;for(;++i<o;){const e=mg(a[i],{...t,after:gg(a,i,n),before:r});e.remove?(a.splice(i,1),i--,o--):e.ignore||(r=e.stripAtStart),bg(a[i])&&(r=!1)}return{ignore:!1,stripAtStart:Boolean(r||n),remove:!1}}(e,r)}if("text"===e.type){if("normal"===t.whitespace)return function(e,t){const r=t.collapse(e.value),n={ignore:!1,stripAtStart:!1,remove:!1};let a=0,o=r.length;return t.before&&wg(r.charAt(0))&&a++,a!==o&&wg(r.charAt(o-1))&&(t.after?o--:n.stripAtStart=!0),a===o?n.remove=!0:e.value=r.slice(a,o),n}(e,t);"nowrap"===t.whitespace&&(e.value=t.collapse(e.value))}return{ignore:fg(e),stripAtStart:!1,remove:!1}}function gg(e,t,r){for(;++t<e.length;){const r=e[t];let n=vg(r);if(void 0===n&&"children"in r&&!Og(r)&&(n=gg(r.children,-1)),"boolean"==typeof n)return n}return r}function vg(e){if("element"===e.type){if(bg(e))return!1;if(yg(e))return!0}else if("text"===e.type){if(!sg(e))return!1}else if(!fg(e))return!1}function bg(e){return tg(e)||Rm(e,dg)}function yg(e){return Rm(e,ug)}function Og(e){return Boolean("element"===e.type&&e.properties.hidden)||fg(e)||Rm(e,pg)}function wg(e){return" "===e||"\n"===e}function xg(e){const t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function kg(){return" "}const Sg={},_g=function(){const e=function(e){return function(t){return String(t).replace(/[\t\n\v\f\r ]+/g,e)}}(({newlines:!0}||hg).newlines?xg:kg);return function(t){mg(t,{collapse:e,whitespace:"normal"})}}();function Eg(e){const t=e||Sg;let r=t.indent||2,n=t.indentInitial;return"number"==typeof r&&(r=" ".repeat(r)),null==n&&(n=!0),function(e){let t;_g(e),Wm(e,(function(e,o){let i=-1;if(!("children"in e))return;if(Rm(e,"head")&&(t=!0),t&&Rm(e,"body")&&(t=void 0),Rm(e,cg))return Zm;const s=e.children;let l,c=o.length;if(0===s.length||!Tg(e,t))return;for(n||c--;++i<s.length;){const e=s[i];"text"!==e.type&&"comment"!==e.type||(e.value.includes("\n")&&(l=!0),e.value=e.value.replace(/ *\n/g,"$&"+String(r).repeat(c)))}const u=[];let d;for(i=-1;++i<s.length;){const e=s[i];(Tg(e,t)||l&&!i)&&(a(u,c,e),l=!0),d=e,u.push(e)}d&&(l||Tg(d,t))&&(sg(d)&&(u.pop(),d=u[u.length-1]),a(u,c-1)),e.children=u}))};function a(e,t,n){const a=e[e.length-1],i=(o(a&&sg(a)?e[e.length-2]:a)&&o(n)?"\n\n":"\n")+String(r).repeat(Math.max(t,0));a&&"text"===a.type?a.value=sg(a)?i:a.value+i:e.push({type:"text",value:i})}function o(e){return Boolean(e&&"element"===e.type&&t.blanks&&t.blanks.length>0&&t.blanks.includes(e.tagName))}}function Tg(e,t){return"root"===e.type||"element"===e.type&&(t||Rm(e,"script")||tg(e)||!function(e){return Boolean("text"===e.type||ag(e)||tg(e)||function(e){if("element"!==e.type||"link"!==e.tagName)return!1;if(e.properties.itemProp)return!0;const t=e.properties.rel;let r=-1;if(!Array.isArray(t)||0===t.length)return!1;for(;++r<t.length;)if(!ng.has(String(t[r])))return!1;return!0}(e)||og(e)&&function(e,t){const r="element"===e.type&&rg.call(e.properties,t)&&e.properties[t];return null!=r&&!1!==r}(e,"itemProp"))}(e))}let Ag=class{constructor(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}};function Cg(e,t){const r={},n={};let a=-1;for(;++a<e.length;)Object.assign(r,e[a].property),Object.assign(n,e[a].normal);return new Ag(r,n,t)}function Pg(e){return e.toLowerCase()}Ag.prototype.property={},Ag.prototype.normal={},Ag.prototype.space=null;class Dg{constructor(e,t){this.property=e,this.attribute=t}}Dg.prototype.space=null,Dg.prototype.boolean=!1,Dg.prototype.booleanish=!1,Dg.prototype.overloadedBoolean=!1,Dg.prototype.number=!1,Dg.prototype.commaSeparated=!1,Dg.prototype.spaceSeparated=!1,Dg.prototype.commaOrSpaceSeparated=!1,Dg.prototype.mustUseProperty=!1,Dg.prototype.defined=!1;let $g=0;const Rg=Ug(),Mg=Ug(),Ng=Ug(),Ig=Ug(),Lg=Ug(),jg=Ug(),Bg=Ug();function Ug(){return 2**++$g}const Fg=Object.freeze(Object.defineProperty({__proto__:null,boolean:Rg,booleanish:Mg,commaOrSpaceSeparated:Bg,commaSeparated:jg,number:Ig,overloadedBoolean:Ng,spaceSeparated:Lg},Symbol.toStringTag,{value:"Module"})),Qg=Object.keys(Fg);class zg extends Dg{constructor(e,t,r,n){let a=-1;if(super(e,t),qg(this,"space",n),"number"==typeof r)for(;++a<Qg.length;){const e=Qg[a];qg(this,Qg[a],(r&Fg[e])===Fg[e])}}}function qg(e,t,r){r&&(e[t]=r)}zg.prototype.defined=!0;const Hg={}.hasOwnProperty;function Vg(e){const t={},r={};let n;for(n in e.properties)if(Hg.call(e.properties,n)){const a=e.properties[n],o=new zg(n,e.transform(e.attributes||{},n),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),t[n]=o,r[Pg(n)]=n,r[Pg(o.attribute)]=n}return new Ag(t,r,e.space)}const Zg=Vg({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Wg=Vg({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Xg(e,t){return t in e?e[t]:t}function Gg(e,t){return Xg(e,t.toLowerCase())}const Yg=Vg({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Gg,properties:{xmlns:null,xmlnsXLink:null}}),Kg=Vg({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Mg,ariaAutoComplete:null,ariaBusy:Mg,ariaChecked:Mg,ariaColCount:Ig,ariaColIndex:Ig,ariaColSpan:Ig,ariaControls:Lg,ariaCurrent:null,ariaDescribedBy:Lg,ariaDetails:null,ariaDisabled:Mg,ariaDropEffect:Lg,ariaErrorMessage:null,ariaExpanded:Mg,ariaFlowTo:Lg,ariaGrabbed:Mg,ariaHasPopup:null,ariaHidden:Mg,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Lg,ariaLevel:Ig,ariaLive:null,ariaModal:Mg,ariaMultiLine:Mg,ariaMultiSelectable:Mg,ariaOrientation:null,ariaOwns:Lg,ariaPlaceholder:null,ariaPosInSet:Ig,ariaPressed:Mg,ariaReadOnly:Mg,ariaRelevant:null,ariaRequired:Mg,ariaRoleDescription:Lg,ariaRowCount:Ig,ariaRowIndex:Ig,ariaRowSpan:Ig,ariaSelected:Mg,ariaSetSize:Ig,ariaSort:null,ariaValueMax:Ig,ariaValueMin:Ig,ariaValueNow:Ig,ariaValueText:null,role:null}}),Jg=Vg({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Gg,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:jg,acceptCharset:Lg,accessKey:Lg,action:null,allow:null,allowFullScreen:Rg,allowPaymentRequest:Rg,allowUserMedia:Rg,alt:null,as:null,async:Rg,autoCapitalize:null,autoComplete:Lg,autoFocus:Rg,autoPlay:Rg,blocking:Lg,capture:null,charSet:null,checked:Rg,cite:null,className:Lg,cols:Ig,colSpan:null,content:null,contentEditable:Mg,controls:Rg,controlsList:Lg,coords:Ig|jg,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Rg,defer:Rg,dir:null,dirName:null,disabled:Rg,download:Ng,draggable:Mg,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Rg,formTarget:null,headers:Lg,height:Ig,hidden:Rg,high:Ig,href:null,hrefLang:null,htmlFor:Lg,httpEquiv:Lg,id:null,imageSizes:null,imageSrcSet:null,inert:Rg,inputMode:null,integrity:null,is:null,isMap:Rg,itemId:null,itemProp:Lg,itemRef:Lg,itemScope:Rg,itemType:Lg,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Rg,low:Ig,manifest:null,max:null,maxLength:Ig,media:null,method:null,min:null,minLength:Ig,multiple:Rg,muted:Rg,name:null,nonce:null,noModule:Rg,noValidate:Rg,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Rg,optimum:Ig,pattern:null,ping:Lg,placeholder:null,playsInline:Rg,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Rg,referrerPolicy:null,rel:Lg,required:Rg,reversed:Rg,rows:Ig,rowSpan:Ig,sandbox:Lg,scope:null,scoped:Rg,seamless:Rg,selected:Rg,shadowRootClonable:Rg,shadowRootDelegatesFocus:Rg,shadowRootMode:null,shape:null,size:Ig,sizes:null,slot:null,span:Ig,spellCheck:Mg,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ig,step:null,style:null,tabIndex:Ig,target:null,title:null,translate:null,type:null,typeMustMatch:Rg,useMap:null,value:Mg,width:Ig,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Lg,axis:null,background:null,bgColor:null,border:Ig,borderColor:null,bottomMargin:Ig,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Rg,declare:Rg,event:null,face:null,frame:null,frameBorder:null,hSpace:Ig,leftMargin:Ig,link:null,longDesc:null,lowSrc:null,marginHeight:Ig,marginWidth:Ig,noResize:Rg,noHref:Rg,noShade:Rg,noWrap:Rg,object:null,profile:null,prompt:null,rev:null,rightMargin:Ig,rules:null,scheme:null,scrolling:Mg,standby:null,summary:null,text:null,topMargin:Ig,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ig,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Rg,disableRemotePlayback:Rg,prefix:null,property:null,results:Ig,security:null,unselectable:null}}),ev=Vg({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Xg,properties:{about:Bg,accentHeight:Ig,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ig,amplitude:Ig,arabicForm:null,ascent:Ig,attributeName:null,attributeType:null,azimuth:Ig,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ig,by:null,calcMode:null,capHeight:Ig,className:Lg,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ig,diffuseConstant:Ig,direction:null,display:null,dur:null,divisor:Ig,dominantBaseline:null,download:Rg,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ig,enableBackground:null,end:null,event:null,exponent:Ig,externalResourcesRequired:null,fill:null,fillOpacity:Ig,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:jg,g2:jg,glyphName:jg,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ig,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ig,horizOriginX:Ig,horizOriginY:Ig,id:null,ideographic:Ig,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ig,k:Ig,k1:Ig,k2:Ig,k3:Ig,k4:Ig,kernelMatrix:Bg,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ig,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ig,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ig,overlineThickness:Ig,paintOrder:null,panose1:null,path:null,pathLength:Ig,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Lg,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ig,pointsAtY:Ig,pointsAtZ:Ig,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Bg,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Bg,rev:Bg,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Bg,requiredFeatures:Bg,requiredFonts:Bg,requiredFormats:Bg,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ig,specularExponent:Ig,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ig,strikethroughThickness:Ig,string:null,stroke:null,strokeDashArray:Bg,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ig,strokeOpacity:Ig,strokeWidth:null,style:null,surfaceScale:Ig,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Bg,tabIndex:Ig,tableValues:null,target:null,targetX:Ig,targetY:Ig,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Bg,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ig,underlineThickness:Ig,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ig,values:null,vAlphabetic:Ig,vMathematical:Ig,vectorEffect:null,vHanging:Ig,vIdeographic:Ig,version:null,vertAdvY:Ig,vertOriginX:Ig,vertOriginY:Ig,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ig,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),tv=/^data[-\w.:]+$/i,rv=/-[a-z]/g,nv=/[A-Z]/g;function av(e,t){const r=Pg(t);let n=t,a=Dg;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&"data"===r.slice(0,4)&&tv.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(rv,iv);n="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!rv.test(e)){let r=e.replace(nv,ov);"-"!==r.charAt(0)&&(r="-"+r),t="data"+r}}a=zg}return new a(n,t)}function ov(e){return"-"+e.toLowerCase()}function iv(e){return e.charAt(1).toUpperCase()}const sv=Cg([Wg,Zg,Yg,Kg,Jg],"html"),lv=Cg([Wg,Zg,Yg,Kg,ev],"svg");function cv(e){const t=[],r=String(e||"");let n=r.indexOf(","),a=0,o=!1;for(;!o;){-1===n&&(n=r.length,o=!0);const e=r.slice(a,n).trim();!e&&o||t.push(e),a=n+1,n=r.indexOf(",",a)}return t}function uv(e,t){const r=t||{};return(""===e[e.length-1]?[...e,""]:e).join((r.padRight?" ":"")+","+(!1===r.padLeft?"":" ")).trim()}const dv=/[#.]/g,pv=new Set(["button","menu","reset","submit"]),hv={}.hasOwnProperty;function fv(e,t,r){const n=r&&function(e){const t={};let r=-1;for(;++r<e.length;)t[e[r].toLowerCase()]=e[r];return t}(r);return function(r,a,...o){let i,s=-1;if(null==r){i={type:"root",children:[]};const e=a;o.unshift(e)}else if(i=function(e,t){const r=e||"",n={};let a,o,i=0;for(;i<r.length;){dv.lastIndex=i;const e=dv.exec(r),t=r.slice(i,e?e.index:r.length);t&&(a?"#"===a?n.id=t:Array.isArray(n.className)?n.className.push(t):n.className=[t]:o=t,i+=t.length),e&&(a=e[0],i++)}return{type:"element",tagName:o||t||"div",properties:n,children:[]}}(r,t),i.tagName=i.tagName.toLowerCase(),n&&hv.call(n,i.tagName)&&(i.tagName=n[i.tagName]),function(e,t){return null!=e&&"object"==typeof e&&!Array.isArray(e)&&("input"===t||!e.type||"string"!=typeof e.type||(!("children"in e)||!Array.isArray(e.children))&&("button"===t?pv.has(e.type.toLowerCase()):!("value"in e)))}(a,i.tagName)){let t;for(t in a)hv.call(a,t)&&mv(e,i.properties,t,a[t])}else o.unshift(a);for(;++s<o.length;)gv(i.children,o[s]);return"element"===i.type&&"template"===i.tagName&&(i.content={type:"root",children:i.children},i.children=[]),i}}function mv(e,t,r,n){const a=av(e,r);let o,i=-1;if(null!=n){if("number"==typeof n){if(Number.isNaN(n))return;o=n}else o="boolean"==typeof n?n:"string"==typeof n?a.spaceSeparated?Um(n):a.commaSeparated?cv(n):a.commaOrSpaceSeparated?Um(cv(n).join(" ")):vv(a,a.property,n):Array.isArray(n)?n.concat():"style"===a.property?function(e){const t=[];let r;for(r in e)hv.call(e,r)&&t.push([r,e[r]].join(": "));return t.join("; ")}(n):String(n);if(Array.isArray(o)){const e=[];for(;++i<o.length;){const t=vv(a,a.property,o[i]);e[i]=t}o=e}if("className"===a.property&&Array.isArray(t.className)){const e=o;o=t.className.concat(e)}t[a.property]=o}}function gv(e,t){let r=-1;if(null==t);else if("string"==typeof t||"number"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++r<t.length;)gv(e,t[r]);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?gv(e,t.children):e.push(t)}}function vv(e,t,r){if("string"==typeof r){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(""===r||Pg(r)===Pg(t)))return!0}return r}const bv=fv(sv,"div"),yv=fv(lv,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]),Ov=/\r?\n|\r/g,wv={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},xv={}.hasOwnProperty,kv=Object.prototype;function Sv(e,t){const r=t||{};return _v({file:r.file||void 0,location:!1,schema:"svg"===r.space?lv:sv,verbose:r.verbose||!1},e)}function _v(e,t){let r;switch(t.nodeName){case"#comment":{const n=t;return r={type:"comment",value:n.data},Tv(e,n,r),r}case"#document":case"#document-fragment":{const n=t,a="mode"in n&&("quirks"===n.mode||"limited-quirks"===n.mode);if(r={type:"root",children:Ev(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const t=String(e.file),n=function(e){const t=String(e),r=[];for(Ov.lastIndex=0;Ov.test(t);)r.push(Ov.lastIndex);return r.push(t.length+1),{toPoint:function(e){let t=-1;if("number"==typeof e&&e>-1&&e<r[r.length-1])for(;++t<r.length;)if(r[t]>e)return{line:t+1,column:e-(t>0?r[t-1]:0)+1,offset:e}},toOffset:function(e){const t=e&&e.line,n=e&&e.column;if("number"==typeof t&&"number"==typeof n&&!Number.isNaN(t)&&!Number.isNaN(n)&&t-1 in r){const e=(r[t-2]||0)+n-1||0;if(e>-1&&e<r[r.length-1])return e}}}}(t),a=n.toPoint(0),o=n.toPoint(t.length);r.position={start:a,end:o}}return r}case"#documentType":return r={type:"doctype"},Tv(e,t,r),r;case"#text":{const n=t;return r={type:"text",value:n.value},Tv(e,n,r),r}default:return r=function(e,t){const r=e.schema;e.schema=t.namespaceURI===wv.svg?lv:sv;let n=-1;const a={};for(;++n<t.attrs.length;){const e=t.attrs[n],r=(e.prefix?e.prefix+":":"")+e.name;xv.call(kv,r)||(a[r]=e.value)}const o=("svg"===e.schema.space?yv:bv)(t.tagName,a,Ev(e,t.childNodes));if(Tv(e,t,o),"template"===o.tagName){const r=t,n=r.sourceCodeLocation,a=n&&n.startTag&&Av(n.startTag),i=n&&n.endTag&&Av(n.endTag),s=_v(e,r.content);a&&i&&e.file&&(s.position={start:a.end,end:i.start}),o.content=s}return e.schema=r,o}(e,t),r}}function Ev(e,t){let r=-1;const n=[];for(;++r<t.length;){const a=_v(e,t[r]);n.push(a)}return n}function Tv(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const n=function(e,t,r){const n=Av(r);if("element"===t.type){const a=t.children[t.children.length-1];if(n&&!r.endTag&&a&&a.position&&a.position.end&&(n.end=Object.assign({},a.position.end)),e.verbose){const n={};let a;if(r.attrs)for(a in r.attrs)xv.call(r.attrs,a)&&(n[av(e.schema,a).property]=Av(r.attrs[a]));r.startTag;const o=Av(r.startTag),i=r.endTag?Av(r.endTag):void 0,s={opening:o};i&&(s.closing=i),s.properties=n,t.data={position:s}}}return n}(e,r,t.sourceCodeLocation);n&&(e.location=!0,r.position=n)}}function Av(e){const t=Cv({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=Cv({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function Cv(e){return e.line&&e.column?e:void 0}const Pv={}.hasOwnProperty;function Dv(e,t){const r=t||{};function n(t,...r){let a=n.invalid;const o=n.handlers;if(t&&Pv.call(t,e)){const r=String(t[e]);a=Pv.call(o,r)?o[r]:n.unknown}if(a)return a.call(this,t,...r)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const $v={},Rv={}.hasOwnProperty,Mv=Dv("type",{handlers:{root:function(e,t){const r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=Iv(e.children,r,t),Lv(e,r),r},element:function(e,t){const r=t;let n=r;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===r.space&&(n=lv);const a=[];let o;if(e.properties)for(o in e.properties)if("children"!==o&&Rv.call(e.properties,o)){const t=Nv(n,o,e.properties[o]);t&&a.push(t)}const i=n.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:wv[i],childNodes:[],parentNode:null};return s.childNodes=Iv(e.children,s,n),Lv(e,s),"template"===e.tagName&&e.content&&(s.content=function(e,t){const r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=Iv(e.children,r,t),Lv(e,r),r}(e.content,n)),s},text:function(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Lv(e,t),t},comment:function(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Lv(e,t),t},doctype:function(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Lv(e,t),t}}});function Nv(e,t,r){const n=av(e,t);if(!1===r||null==r||"number"==typeof r&&Number.isNaN(r)||!r&&n.boolean)return;Array.isArray(r)&&(r=n.commaSeparated?uv(r):Fm(r));const a={name:n.attribute,value:!0===r?"":String(r)};if(n.space&&"html"!==n.space&&"svg"!==n.space){const e=a.name.indexOf(":");e<0?a.prefix="":(a.name=a.name.slice(e+1),a.prefix=n.attribute.slice(0,e)),a.namespace=wv[n.space]}return a}function Iv(e,t,r){let n=-1;const a=[];if(e)for(;++n<e.length;){const o=Mv(e[n],r);o.parentNode=t,a.push(o)}return a}function Lv(e,t){const r=e.position;r&&r.start&&r.end&&(r.start.offset,r.end.offset,t.sourceCodeLocation={startLine:r.start.line,startCol:r.start.column,startOffset:r.start.offset,endLine:r.end.line,endCol:r.end.column,endOffset:r.end.offset})}const jv=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Bv=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Uv="<22>";var Fv,Qv;(Qv=Fv=Fv||(Fv={}))[Qv.EOF=-1]="EOF",Qv[Qv.NULL=0]="NULL",Qv[Qv.TABULATION=9]="TABULATION",Qv[Qv.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",Qv[Qv.LINE_FEED=10]="LINE_FEED",Qv[Qv.FORM_FEED=12]="FORM_FEED",Qv[Qv.SPACE=32]="SPACE",Qv[Qv.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",Qv[Qv.QUOTATION_MARK=34]="QUOTATION_MARK",Qv[Qv.NUMBER_SIGN=35]="NUMBER_SIGN",Qv[Qv.AMPERSAND=38]="AMPERSAND",Qv[Qv.APOSTROPHE=39]="APOSTROPHE",Qv[Qv.HYPHEN_MINUS=45]="HYPHEN_MINUS",Qv[Qv.SOLIDUS=47]="SOLIDUS",Qv[Qv.DIGIT_0=48]="DIGIT_0",Qv[Qv.DIGIT_9=57]="DIGIT_9",Qv[Qv.SEMICOLON=59]="SEMICOLON",Qv[Qv.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",Qv[Qv.EQUALS_SIGN=61]="EQUALS_SIGN",Qv[Qv.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",Qv[Qv.QUESTION_MARK=63]="QUESTION_MARK",Qv[Qv.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",Qv[Qv.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",Qv[Qv.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",Qv[Qv.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",Qv[Qv.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",Qv[Qv.GRAVE_ACCENT=96]="GRAVE_ACCENT",Qv[Qv.LATIN_SMALL_A=97]="LATIN_SMALL_A",Qv[Qv.LATIN_SMALL_F=102]="LATIN_SMALL_F",Qv[Qv.LATIN_SMALL_X=120]="LATIN_SMALL_X",Qv[Qv.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",Qv[Qv.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER";const zv="[CDATA[",qv="doctype",Hv="script";function Vv(e){return e>=55296&&e<=57343}function Zv(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function Wv(e){return e>=64976&&e<=65007||Bv.has(e)}var Xv,Gv,Yv,Kv;(Gv=Xv=Xv||(Xv={})).controlCharacterInInputStream="control-character-in-input-stream",Gv.noncharacterInInputStream="noncharacter-in-input-stream",Gv.surrogateInInputStream="surrogate-in-input-stream",Gv.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",Gv.endTagWithAttributes="end-tag-with-attributes",Gv.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",Gv.unexpectedSolidusInTag="unexpected-solidus-in-tag",Gv.unexpectedNullCharacter="unexpected-null-character",Gv.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",Gv.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",Gv.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",Gv.missingEndTagName="missing-end-tag-name",Gv.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",Gv.unknownNamedCharacterReference="unknown-named-character-reference",Gv.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",Gv.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",Gv.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",Gv.eofBeforeTagName="eof-before-tag-name",Gv.eofInTag="eof-in-tag",Gv.missingAttributeValue="missing-attribute-value",Gv.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",Gv.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",Gv.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",Gv.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",Gv.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",Gv.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",Gv.missingDoctypePublicIdentifier="missing-doctype-public-identifier",Gv.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",Gv.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",Gv.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",Gv.cdataInHtmlContent="cdata-in-html-content",Gv.incorrectlyOpenedComment="incorrectly-opened-comment",Gv.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",Gv.eofInDoctype="eof-in-doctype",Gv.nestedComment="nested-comment",Gv.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",Gv.eofInComment="eof-in-comment",Gv.incorrectlyClosedComment="incorrectly-closed-comment",Gv.eofInCdata="eof-in-cdata",Gv.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",Gv.nullCharacterReference="null-character-reference",Gv.surrogateCharacterReference="surrogate-character-reference",Gv.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",Gv.controlCharacterReference="control-character-reference",Gv.noncharacterCharacterReference="noncharacter-character-reference",Gv.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",Gv.missingDoctypeName="missing-doctype-name",Gv.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",Gv.duplicateAttribute="duplicate-attribute",Gv.nonConformingDoctype="non-conforming-doctype",Gv.missingDoctype="missing-doctype",Gv.misplacedDoctype="misplaced-doctype",Gv.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",Gv.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",Gv.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",Gv.openElementsLeftAfterEof="open-elements-left-after-eof",Gv.abandonedHeadElementChild="abandoned-head-element-child",Gv.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",Gv.nestedNoscriptInHead="nested-noscript-in-head",Gv.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class Jv{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e){const{line:t,col:r,offset:n}=this;return{code:e,startLine:t,endLine:t,startCol:r,endCol:r,startOffset:n,endOffset:n}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Fv.EOF;return this._err(Xv.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++)if((32|this.html.charCodeAt(this.pos+t))!==e.charCodeAt(t))return!1;return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Fv.EOF;const r=this.html.charCodeAt(t);return r===Fv.CARRIAGE_RETURN?Fv.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Fv.EOF;let e=this.html.charCodeAt(this.pos);return e===Fv.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,Fv.LINE_FEED):e===Fv.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Vv(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===Fv.LINE_FEED||e===Fv.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){Zv(e)?this._err(Xv.controlCharacterInInputStream):Wv(e)&&this._err(Xv.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}function eb(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}(Kv=Yv=Yv||(Yv={}))[Kv.CHARACTER=0]="CHARACTER",Kv[Kv.NULL_CHARACTER=1]="NULL_CHARACTER",Kv[Kv.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",Kv[Kv.START_TAG=3]="START_TAG",Kv[Kv.END_TAG=4]="END_TAG",Kv[Kv.COMMENT=5]="COMMENT",Kv[Kv.DOCTYPE=6]="DOCTYPE",Kv[Kv.EOF=7]="EOF",Kv[Kv.HIBERNATION=8]="HIBERNATION";const tb=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((e=>e.charCodeAt(0)))),rb=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e=>e.charCodeAt(0))));var nb;const ab=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),ob=null!==(nb=String.fromCodePoint)&&void 0!==nb?nb:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};var ib,sb,lb,cb,ub,db,pb,hb,fb,mb,gb,vb,bb,yb,Ob,wb,xb,kb;function Sb(e){return e>=ib.ZERO&&e<=ib.NINE}function _b(e){return e===ib.EQUALS||function(e){return e>=ib.UPPER_A&&e<=ib.UPPER_Z||e>=ib.LOWER_A&&e<=ib.LOWER_Z||Sb(e)}(e)}(sb=ib||(ib={}))[sb.NUM=35]="NUM",sb[sb.SEMI=59]="SEMI",sb[sb.EQUALS=61]="EQUALS",sb[sb.ZERO=48]="ZERO",sb[sb.NINE=57]="NINE",sb[sb.LOWER_A=97]="LOWER_A",sb[sb.LOWER_F=102]="LOWER_F",sb[sb.LOWER_X=120]="LOWER_X",sb[sb.LOWER_Z=122]="LOWER_Z",sb[sb.UPPER_A=65]="UPPER_A",sb[sb.UPPER_F=70]="UPPER_F",sb[sb.UPPER_Z=90]="UPPER_Z",(cb=lb||(lb={}))[cb.VALUE_LENGTH=49152]="VALUE_LENGTH",cb[cb.BRANCH_LENGTH=16256]="BRANCH_LENGTH",cb[cb.JUMP_TABLE=127]="JUMP_TABLE",(db=ub||(ub={}))[db.EntityStart=0]="EntityStart",db[db.NumericStart=1]="NumericStart",db[db.NumericDecimal=2]="NumericDecimal",db[db.NumericHex=3]="NumericHex",db[db.NamedEntity=4]="NamedEntity",(hb=pb||(pb={}))[hb.Legacy=0]="Legacy",hb[hb.Strict=1]="Strict",hb[hb.Attribute=2]="Attribute";class Eb{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=ub.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=pb.Strict}startEntity(e){this.decodeMode=e,this.state=ub.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case ub.EntityStart:return e.charCodeAt(t)===ib.NUM?(this.state=ub.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=ub.NamedEntity,this.stateNamedEntity(e,t));case ub.NumericStart:return this.stateNumericStart(e,t);case ub.NumericDecimal:return this.stateNumericDecimal(e,t);case ub.NumericHex:return this.stateNumericHex(e,t);case ub.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===ib.LOWER_X?(this.state=ub.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=ub.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,n){if(t!==r){const a=r-t;this.result=this.result*Math.pow(n,a)+parseInt(e.substr(t,a),n),this.consumed+=a}}stateNumericHex(e,t){const r=t;for(;t<e.length;){const a=e.charCodeAt(t);if(!(Sb(a)||(n=a,n>=ib.UPPER_A&&n<=ib.UPPER_F||n>=ib.LOWER_A&&n<=ib.LOWER_F)))return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(a,3);t+=1}var n;return this.addToNumericResult(e,r,t,16),-1}stateNumericDecimal(e,t){const r=t;for(;t<e.length;){const n=e.charCodeAt(t);if(!Sb(n))return this.addToNumericResult(e,r,t,10),this.emitNumericEntity(n,2);t+=1}return this.addToNumericResult(e,r,t,10),-1}emitNumericEntity(e,t){var r;if(this.consumed<=t)return null===(r=this.errors)||void 0===r||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===ib.SEMI)this.consumed+=1;else if(this.decodeMode===pb.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=ab.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==ib.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:r}=this;let n=r[this.treeIndex],a=(n&lb.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const o=e.charCodeAt(t);if(this.treeIndex=Ab(r,n,this.treeIndex+Math.max(1,a),o),this.treeIndex<0)return 0===this.result||this.decodeMode===pb.Attribute&&(0===a||_b(o))?0:this.emitNotTerminatedNamedEntity();if(n=r[this.treeIndex],a=(n&lb.VALUE_LENGTH)>>14,0!==a){if(o===ib.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==pb.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:r}=this,n=(r[t]&lb.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){const{decodeTree:n}=this;return this.emitCodePoint(1===t?n[e]&~lb.VALUE_LENGTH:n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case ub.NamedEntity:return 0===this.result||this.decodeMode===pb.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case ub.NumericDecimal:return this.emitNumericEntity(0,2);case ub.NumericHex:return this.emitNumericEntity(0,3);case ub.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ub.EntityStart:return 0}}}function Tb(e){let t="";const r=new Eb(e,(e=>t+=ob(e)));return function(e,n){let a=0,o=0;for(;(o=e.indexOf("&",o))>=0;){t+=e.slice(a,o),r.startEntity(n);const i=r.write(e,o+1);if(i<0){a=o+r.end();break}a=o+i,o=0===i?a+1:a}const i=t+e.slice(a);return t="",i}}function Ab(e,t,r,n){const a=(t&lb.BRANCH_LENGTH)>>7,o=t&lb.JUMP_TABLE;if(0===a)return 0!==o&&n===o?r:-1;if(o){const t=n-o;return t<0||t>=a?-1:e[r+t]-1}let i=r,s=i+a-1;for(;i<=s;){const t=i+s>>>1,r=e[t];if(r<n)i=t+1;else{if(!(r>n))return e[t+a];s=t-1}}return-1}Tb(tb),Tb(rb),(mb=fb=fb||(fb={})).HTML="http://www.w3.org/1999/xhtml",mb.MATHML="http://www.w3.org/1998/Math/MathML",mb.SVG="http://www.w3.org/2000/svg",mb.XLINK="http://www.w3.org/1999/xlink",mb.XML="http://www.w3.org/XML/1998/namespace",mb.XMLNS="http://www.w3.org/2000/xmlns/",(vb=gb=gb||(gb={})).TYPE="type",vb.ACTION="action",vb.ENCODING="encoding",vb.PROMPT="prompt",vb.NAME="name",vb.COLOR="color",vb.FACE="face",vb.SIZE="size",(yb=bb=bb||(bb={})).NO_QUIRKS="no-quirks",yb.QUIRKS="quirks",yb.LIMITED_QUIRKS="limited-quirks",(wb=Ob=Ob||(Ob={})).A="a",wb.ADDRESS="address",wb.ANNOTATION_XML="annotation-xml",wb.APPLET="applet",wb.AREA="area",wb.ARTICLE="article",wb.ASIDE="aside",wb.B="b",wb.BASE="base",wb.BASEFONT="basefont",wb.BGSOUND="bgsound",wb.BIG="big",wb.BLOCKQUOTE="blockquote",wb.BODY="body",wb.BR="br",wb.BUTTON="button",wb.CAPTION="caption",wb.CENTER="center",wb.CODE="code",wb.COL="col",wb.COLGROUP="colgroup",wb.DD="dd",wb.DESC="desc",wb.DETAILS="details",wb.DIALOG="dialog",wb.DIR="dir",wb.DIV="div",wb.DL="dl",wb.DT="dt",wb.EM="em",wb.EMBED="embed",wb.FIELDSET="fieldset",wb.FIGCAPTION="figcaption",wb.FIGURE="figure",wb.FONT="font",wb.FOOTER="footer",wb.FOREIGN_OBJECT="foreignObject",wb.FORM="form",wb.FRAME="frame",wb.FRAMESET="frameset",wb.H1="h1",wb.H2="h2",wb.H3="h3",wb.H4="h4",wb.H5="h5",wb.H6="h6",wb.HEAD="head",wb.HEADER="header",wb.HGROUP="hgroup",wb.HR="hr",wb.HTML="html",wb.I="i",wb.IMG="img",wb.IMAGE="image",wb.INPUT="input",wb.IFRAME="iframe",wb.KEYGEN="keygen",wb.LABEL="label",wb.LI="li",wb.LINK="link",wb.LISTING="listing",wb.MAIN="main",wb.MALIGNMARK="malignmark",wb.MARQUEE="marquee",wb.MATH="math",wb.MENU="menu",wb.META="meta",wb.MGLYPH="mglyph",wb.MI="mi",wb.MO="mo",wb.MN="mn",wb.MS="ms",wb.MTEXT="mtext",wb.NAV="nav",wb.NOBR="nobr",wb.NOFRAMES="noframes",wb.NOEMBED="noembed",wb.NOSCRIPT="noscript",wb.OBJECT="object",wb.OL="ol",wb.OPTGROUP="optgroup",wb.OPTION="option",wb.P="p",wb.PARAM="param",wb.PLAINTEXT="plaintext",wb.PRE="pre",wb.RB="rb",wb.RP="rp",wb.RT="rt",wb.RTC="rtc",wb.RUBY="ruby",wb.S="s",wb.SCRIPT="script",wb.SECTION="section",wb.SELECT="select",wb.SOURCE="source",wb.SMALL="small",wb.SPAN="span",wb.STRIKE="strike",wb.STRONG="strong",wb.STYLE="style",wb.SUB="sub",wb.SUMMARY="summary",wb.SUP="sup",wb.TABLE="table",wb.TBODY="tbody",wb.TEMPLATE="template",wb.TEXTAREA="textarea",wb.TFOOT="tfoot",wb.TD="td",wb.TH="th",wb.THEAD="thead",wb.TITLE="title",wb.TR="tr",wb.TRACK="track",wb.TT="tt",wb.U="u",wb.UL="ul",wb.SVG="svg",wb.VAR="var",wb.WBR="wbr",wb.XMP="xmp",(kb=xb=xb||(xb={}))[kb.UNKNOWN=0]="UNKNOWN",kb[kb.A=1]="A",kb[kb.ADDRESS=2]="ADDRESS",kb[kb.ANNOTATION_XML=3]="ANNOTATION_XML",kb[kb.APPLET=4]="APPLET",kb[kb.AREA=5]="AREA",kb[kb.ARTICLE=6]="ARTICLE",kb[kb.ASIDE=7]="ASIDE",kb[kb.B=8]="B",kb[kb.BASE=9]="BASE",kb[kb.BASEFONT=10]="BASEFONT",kb[kb.BGSOUND=11]="BGSOUND",kb[kb.BIG=12]="BIG",kb[kb.BLOCKQUOTE=13]="BLOCKQUOTE",kb[kb.BODY=14]="BODY",kb[kb.BR=15]="BR",kb[kb.BUTTON=16]="BUTTON",kb[kb.CAPTION=17]="CAPTION",kb[kb.CENTER=18]="CENTER",kb[kb.CODE=19]="CODE",kb[kb.COL=20]="COL",kb[kb.COLGROUP=21]="COLGROUP",kb[kb.DD=22]="DD",kb[kb.DESC=23]="DESC",kb[kb.DETAILS=24]="DETAILS",kb[kb.DIALOG=25]="DIALOG",kb[kb.DIR=26]="DIR",kb[kb.DIV=27]="DIV",kb[kb.DL=28]="DL",kb[kb.DT=29]="DT",kb[kb.EM=30]="EM",kb[kb.EMBED=31]="EMBED",kb[kb.FIELDSET=32]="FIELDSET",kb[kb.FIGCAPTION=33]="FIGCAPTION",kb[kb.FIGURE=34]="FIGURE",kb[kb.FONT=35]="FONT",kb[kb.FOOTER=36]="FOOTER",kb[kb.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",kb[kb.FORM=38]="FORM",kb[kb.FRAME=39]="FRAME",kb[kb.FRAMESET=40]="FRAMESET",kb[kb.H1=41]="H1",kb[kb.H2=42]="H2",kb[kb.H3=43]="H3",kb[kb.H4=44]="H4",kb[kb.H5=45]="H5",kb[kb.H6=46]="H6",kb[kb.HEAD=47]="HEAD",kb[kb.HEADER=48]="HEADER",kb[kb.HGROUP=49]="HGROUP",kb[kb.HR=50]="HR",kb[kb.HTML=51]="HTML",kb[kb.I=52]="I",kb[kb.IMG=53]="IMG",kb[kb.IMAGE=54]="IMAGE",kb[kb.INPUT=55]="INPUT",kb[kb.IFRAME=56]="IFRAME",kb[kb.KEYGEN=57]="KEYGEN",kb[kb.LABEL=58]="LABEL",kb[kb.LI=59]="LI",kb[kb.LINK=60]="LINK",kb[kb.LISTING=61]="LISTING",kb[kb.MAIN=62]="MAIN",kb[kb.MALIGNMARK=63]="MALIGNMARK",kb[kb.MARQUEE=64]="MARQUEE",kb[kb.MATH=65]="MATH",kb[kb.MENU=66]="MENU",kb[kb.META=67]="META",kb[kb.MGLYPH=68]="MGLYPH",kb[kb.MI=69]="MI",kb[kb.MO=70]="MO",kb[kb.MN=71]="MN",kb[kb.MS=72]="MS",kb[kb.MTEXT=73]="MTEXT",kb[kb.NAV=74]="NAV",kb[kb.NOBR=75]="NOBR",kb[kb.NOFRAMES=76]="NOFRAMES",kb[kb.NOEMBED=77]="NOEMBED",kb[kb.NOSCRIPT=78]="NOSCRIPT",kb[kb.OBJECT=79]="OBJECT",kb[kb.OL=80]="OL",kb[kb.OPTGROUP=81]="OPTGROUP",kb[kb.OPTION=82]="OPTION",kb[kb.P=83]="P",kb[kb.PARAM=84]="PARAM",kb[kb.PLAINTEXT=85]="PLAINTEXT",kb[kb.PRE=86]="PRE",kb[kb.RB=87]="RB",kb[kb.RP=88]="RP",kb[kb.RT=89]="RT",kb[kb.RTC=90]="RTC",kb[kb.RUBY=91]="RUBY",kb[kb.S=92]="S",kb[kb.SCRIPT=93]="SCRIPT",kb[kb.SECTION=94]="SECTION",kb[kb.SELECT=95]="SELECT",kb[kb.SOURCE=96]="SOURCE",kb[kb.SMALL=97]="SMALL",kb[kb.SPAN=98]="SPAN",kb[kb.STRIKE=99]="STRIKE",kb[kb.STRONG=100]="STRONG",kb[kb.STYLE=101]="STYLE",kb[kb.SUB=102]="SUB",kb[kb.SUMMARY=103]="SUMMARY",kb[kb.SUP=104]="SUP",kb[kb.TABLE=105]="TABLE",kb[kb.TBODY=106]="TBODY",kb[kb.TEMPLATE=107]="TEMPLATE",kb[kb.TEXTAREA=108]="TEXTAREA",kb[kb.TFOOT=109]="TFOOT",kb[kb.TD=110]="TD",kb[kb.TH=111]="TH",kb[kb.THEAD=112]="THEAD",kb[kb.TITLE=113]="TITLE",kb[kb.TR=114]="TR",kb[kb.TRACK=115]="TRACK",kb[kb.TT=116]="TT",kb[kb.U=117]="U",kb[kb.UL=118]="UL",kb[kb.SVG=119]="SVG",kb[kb.VAR=120]="VAR",kb[kb.WBR=121]="WBR",kb[kb.XMP=122]="XMP";const Cb=new Map([[Ob.A,xb.A],[Ob.ADDRESS,xb.ADDRESS],[Ob.ANNOTATION_XML,xb.ANNOTATION_XML],[Ob.APPLET,xb.APPLET],[Ob.AREA,xb.AREA],[Ob.ARTICLE,xb.ARTICLE],[Ob.ASIDE,xb.ASIDE],[Ob.B,xb.B],[Ob.BASE,xb.BASE],[Ob.BASEFONT,xb.BASEFONT],[Ob.BGSOUND,xb.BGSOUND],[Ob.BIG,xb.BIG],[Ob.BLOCKQUOTE,xb.BLOCKQUOTE],[Ob.BODY,xb.BODY],[Ob.BR,xb.BR],[Ob.BUTTON,xb.BUTTON],[Ob.CAPTION,xb.CAPTION],[Ob.CENTER,xb.CENTER],[Ob.CODE,xb.CODE],[Ob.COL,xb.COL],[Ob.COLGROUP,xb.COLGROUP],[Ob.DD,xb.DD],[Ob.DESC,xb.DESC],[Ob.DETAILS,xb.DETAILS],[Ob.DIALOG,xb.DIALOG],[Ob.DIR,xb.DIR],[Ob.DIV,xb.DIV],[Ob.DL,xb.DL],[Ob.DT,xb.DT],[Ob.EM,xb.EM],[Ob.EMBED,xb.EMBED],[Ob.FIELDSET,xb.FIELDSET],[Ob.FIGCAPTION,xb.FIGCAPTION],[Ob.FIGURE,xb.FIGURE],[Ob.FONT,xb.FONT],[Ob.FOOTER,xb.FOOTER],[Ob.FOREIGN_OBJECT,xb.FOREIGN_OBJECT],[Ob.FORM,xb.FORM],[Ob.FRAME,xb.FRAME],[Ob.FRAMESET,xb.FRAMESET],[Ob.H1,xb.H1],[Ob.H2,xb.H2],[Ob.H3,xb.H3],[Ob.H4,xb.H4],[Ob.H5,xb.H5],[Ob.H6,xb.H6],[Ob.HEAD,xb.HEAD],[Ob.HEADER,xb.HEADER],[Ob.HGROUP,xb.HGROUP],[Ob.HR,xb.HR],[Ob.HTML,xb.HTML],[Ob.I,xb.I],[Ob.IMG,xb.IMG],[Ob.IMAGE,xb.IMAGE],[Ob.INPUT,xb.INPUT],[Ob.IFRAME,xb.IFRAME],[Ob.KEYGEN,xb.KEYGEN],[Ob.LABEL,xb.LABEL],[Ob.LI,xb.LI],[Ob.LINK,xb.LINK],[Ob.LISTING,xb.LISTING],[Ob.MAIN,xb.MAIN],[Ob.MALIGNMARK,xb.MALIGNMARK],[Ob.MARQUEE,xb.MARQUEE],[Ob.MATH,xb.MATH],[Ob.MENU,xb.MENU],[Ob.META,xb.META],[Ob.MGLYPH,xb.MGLYPH],[Ob.MI,xb.MI],[Ob.MO,xb.MO],[Ob.MN,xb.MN],[Ob.MS,xb.MS],[Ob.MTEXT,xb.MTEXT],[Ob.NAV,xb.NAV],[Ob.NOBR,xb.NOBR],[Ob.NOFRAMES,xb.NOFRAMES],[Ob.NOEMBED,xb.NOEMBED],[Ob.NOSCRIPT,xb.NOSCRIPT],[Ob.OBJECT,xb.OBJECT],[Ob.OL,xb.OL],[Ob.OPTGROUP,xb.OPTGROUP],[Ob.OPTION,xb.OPTION],[Ob.P,xb.P],[Ob.PARAM,xb.PARAM],[Ob.PLAINTEXT,xb.PLAINTEXT],[Ob.PRE,xb.PRE],[Ob.RB,xb.RB],[Ob.RP,xb.RP],[Ob.RT,xb.RT],[Ob.RTC,xb.RTC],[Ob.RUBY,xb.RUBY],[Ob.S,xb.S],[Ob.SCRIPT,xb.SCRIPT],[Ob.SECTION,xb.SECTION],[Ob.SELECT,xb.SELECT],[Ob.SOURCE,xb.SOURCE],[Ob.SMALL,xb.SMALL],[Ob.SPAN,xb.SPAN],[Ob.STRIKE,xb.STRIKE],[Ob.STRONG,xb.STRONG],[Ob.STYLE,xb.STYLE],[Ob.SUB,xb.SUB],[Ob.SUMMARY,xb.SUMMARY],[Ob.SUP,xb.SUP],[Ob.TABLE,xb.TABLE],[Ob.TBODY,xb.TBODY],[Ob.TEMPLATE,xb.TEMPLATE],[Ob.TEXTAREA,xb.TEXTAREA],[Ob.TFOOT,xb.TFOOT],[Ob.TD,xb.TD],[Ob.TH,xb.TH],[Ob.THEAD,xb.THEAD],[Ob.TITLE,xb.TITLE],[Ob.TR,xb.TR],[Ob.TRACK,xb.TRACK],[Ob.TT,xb.TT],[Ob.U,xb.U],[Ob.UL,xb.UL],[Ob.SVG,xb.SVG],[Ob.VAR,xb.VAR],[Ob.WBR,xb.WBR],[Ob.XMP,xb.XMP]]);function Pb(e){var t;return null!==(t=Cb.get(e))&&void 0!==t?t:xb.UNKNOWN}const Db=xb,$b={[fb.HTML]:new Set([Db.ADDRESS,Db.APPLET,Db.AREA,Db.ARTICLE,Db.ASIDE,Db.BASE,Db.BASEFONT,Db.BGSOUND,Db.BLOCKQUOTE,Db.BODY,Db.BR,Db.BUTTON,Db.CAPTION,Db.CENTER,Db.COL,Db.COLGROUP,Db.DD,Db.DETAILS,Db.DIR,Db.DIV,Db.DL,Db.DT,Db.EMBED,Db.FIELDSET,Db.FIGCAPTION,Db.FIGURE,Db.FOOTER,Db.FORM,Db.FRAME,Db.FRAMESET,Db.H1,Db.H2,Db.H3,Db.H4,Db.H5,Db.H6,Db.HEAD,Db.HEADER,Db.HGROUP,Db.HR,Db.HTML,Db.IFRAME,Db.IMG,Db.INPUT,Db.LI,Db.LINK,Db.LISTING,Db.MAIN,Db.MARQUEE,Db.MENU,Db.META,Db.NAV,Db.NOEMBED,Db.NOFRAMES,Db.NOSCRIPT,Db.OBJECT,Db.OL,Db.P,Db.PARAM,Db.PLAINTEXT,Db.PRE,Db.SCRIPT,Db.SECTION,Db.SELECT,Db.SOURCE,Db.STYLE,Db.SUMMARY,Db.TABLE,Db.TBODY,Db.TD,Db.TEMPLATE,Db.TEXTAREA,Db.TFOOT,Db.TH,Db.THEAD,Db.TITLE,Db.TR,Db.TRACK,Db.UL,Db.WBR,Db.XMP]),[fb.MATHML]:new Set([Db.MI,Db.MO,Db.MN,Db.MS,Db.MTEXT,Db.ANNOTATION_XML]),[fb.SVG]:new Set([Db.TITLE,Db.FOREIGN_OBJECT,Db.DESC]),[fb.XLINK]:new Set,[fb.XML]:new Set,[fb.XMLNS]:new Set};function Rb(e){return e===Db.H1||e===Db.H2||e===Db.H3||e===Db.H4||e===Db.H5||e===Db.H6}Ob.STYLE,Ob.SCRIPT,Ob.XMP,Ob.IFRAME,Ob.NOEMBED,Ob.NOFRAMES,Ob.PLAINTEXT;const Mb=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var Nb,Ib;(Ib=Nb||(Nb={}))[Ib.DATA=0]="DATA",Ib[Ib.RCDATA=1]="RCDATA",Ib[Ib.RAWTEXT=2]="RAWTEXT",Ib[Ib.SCRIPT_DATA=3]="SCRIPT_DATA",Ib[Ib.PLAINTEXT=4]="PLAINTEXT",Ib[Ib.TAG_OPEN=5]="TAG_OPEN",Ib[Ib.END_TAG_OPEN=6]="END_TAG_OPEN",Ib[Ib.TAG_NAME=7]="TAG_NAME",Ib[Ib.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",Ib[Ib.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",Ib[Ib.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",Ib[Ib.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",Ib[Ib.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",Ib[Ib.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",Ib[Ib.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",Ib[Ib.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",Ib[Ib.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",Ib[Ib.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",Ib[Ib.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",Ib[Ib.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",Ib[Ib.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",Ib[Ib.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",Ib[Ib.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",Ib[Ib.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",Ib[Ib.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",Ib[Ib.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",Ib[Ib.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",Ib[Ib.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",Ib[Ib.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",Ib[Ib.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",Ib[Ib.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",Ib[Ib.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",Ib[Ib.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",Ib[Ib.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",Ib[Ib.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",Ib[Ib.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",Ib[Ib.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",Ib[Ib.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",Ib[Ib.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",Ib[Ib.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",Ib[Ib.BOGUS_COMMENT=40]="BOGUS_COMMENT",Ib[Ib.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",Ib[Ib.COMMENT_START=42]="COMMENT_START",Ib[Ib.COMMENT_START_DASH=43]="COMMENT_START_DASH",Ib[Ib.COMMENT=44]="COMMENT",Ib[Ib.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",Ib[Ib.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",Ib[Ib.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",Ib[Ib.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",Ib[Ib.COMMENT_END_DASH=49]="COMMENT_END_DASH",Ib[Ib.COMMENT_END=50]="COMMENT_END",Ib[Ib.COMMENT_END_BANG=51]="COMMENT_END_BANG",Ib[Ib.DOCTYPE=52]="DOCTYPE",Ib[Ib.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",Ib[Ib.DOCTYPE_NAME=54]="DOCTYPE_NAME",Ib[Ib.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",Ib[Ib.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",Ib[Ib.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",Ib[Ib.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",Ib[Ib.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",Ib[Ib.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",Ib[Ib.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",Ib[Ib.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",Ib[Ib.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",Ib[Ib.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",Ib[Ib.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",Ib[Ib.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",Ib[Ib.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",Ib[Ib.CDATA_SECTION=68]="CDATA_SECTION",Ib[Ib.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",Ib[Ib.CDATA_SECTION_END=70]="CDATA_SECTION_END",Ib[Ib.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",Ib[Ib.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",Ib[Ib.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",Ib[Ib.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",Ib[Ib.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",Ib[Ib.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",Ib[Ib.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",Ib[Ib.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END";const Lb={DATA:Nb.DATA,RCDATA:Nb.RCDATA,RAWTEXT:Nb.RAWTEXT,SCRIPT_DATA:Nb.SCRIPT_DATA,PLAINTEXT:Nb.PLAINTEXT,CDATA_SECTION:Nb.CDATA_SECTION};function jb(e){return e>=Fv.DIGIT_0&&e<=Fv.DIGIT_9}function Bb(e){return e>=Fv.LATIN_CAPITAL_A&&e<=Fv.LATIN_CAPITAL_Z}function Ub(e){return function(e){return e>=Fv.LATIN_SMALL_A&&e<=Fv.LATIN_SMALL_Z}(e)||Bb(e)}function Fb(e){return Ub(e)||jb(e)}function Qb(e){return e>=Fv.LATIN_CAPITAL_A&&e<=Fv.LATIN_CAPITAL_F}function zb(e){return e>=Fv.LATIN_SMALL_A&&e<=Fv.LATIN_SMALL_F}function qb(e){return e+32}function Hb(e){return e===Fv.SPACE||e===Fv.LINE_FEED||e===Fv.TABULATION||e===Fv.FORM_FEED}function Vb(e){return Hb(e)||e===Fv.SOLIDUS||e===Fv.GREATER_THAN_SIGN}class Zb{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=Nb.DATA,this.returnState=Nb.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Jv(t),this.currentLocation=this.getCurrentLocation(-1)}_err(e){var t,r;null===(r=(t=this.handler).onParseError)||void 0===r||r.call(t,this.preprocessor.getError(e))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,r){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==r||r()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(e){this.consumedAfterSnapshot-=e,this.preprocessor.retreat(e)}_reconsumeInState(e,t){this.state=e,this._callState(t)}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:Yv.START_TAG,tagName:"",tagID:xb.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Yv.END_TAG,tagName:"",tagID:xb.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:Yv.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:Yv.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const r=this.currentToken;null===eb(r,this.currentAttr.name)?(r.attrs.push(this.currentAttr),r.location&&this.currentLocation&&((null!==(e=(t=r.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(Xv.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=Pb(e.tagName),e.type===Yv.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(Xv.endTagWithAttributes),e.selfClosing&&this._err(Xv.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case Yv.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case Yv.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case Yv.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:Yv.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=Hb(e)?Yv.WHITESPACE_CHARACTER:e===Fv.NULL?Yv.NULL_CHARACTER:Yv.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(Yv.CHARACTER,e)}_matchNamedCharacterReference(e){let t=null,r=0,n=!1;for(let o=0,i=tb[0];o>=0&&(o=Ab(tb,i,o+1,e),!(o<0));e=this._consume()){r+=1,i=tb[o];const s=i&lb.VALUE_LENGTH;if(s){const i=(s>>14)-1;if(e!==Fv.SEMICOLON&&this._isCharacterReferenceInAttribute()&&((a=this.preprocessor.peek(1))===Fv.EQUALS_SIGN||Fb(a))?(t=[Fv.AMPERSAND],o+=i):(t=0===i?[tb[o]&~lb.VALUE_LENGTH]:1===i?[tb[++o]]:[tb[++o],tb[++o]],r=0,n=e!==Fv.SEMICOLON),0===i){this._consume();break}}}var a;return this._unconsume(r),n&&!this.preprocessor.endOfChunkHit&&this._err(Xv.missingSemicolonAfterCharacterReference),this._unconsume(1),t}_isCharacterReferenceInAttribute(){return this.returnState===Nb.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Nb.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Nb.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case Nb.DATA:this._stateData(e);break;case Nb.RCDATA:this._stateRcdata(e);break;case Nb.RAWTEXT:this._stateRawtext(e);break;case Nb.SCRIPT_DATA:this._stateScriptData(e);break;case Nb.PLAINTEXT:this._statePlaintext(e);break;case Nb.TAG_OPEN:this._stateTagOpen(e);break;case Nb.END_TAG_OPEN:this._stateEndTagOpen(e);break;case Nb.TAG_NAME:this._stateTagName(e);break;case Nb.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case Nb.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case Nb.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case Nb.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case Nb.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case Nb.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case Nb.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case Nb.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case Nb.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case Nb.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case Nb.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case Nb.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case Nb.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case Nb.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case Nb.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case Nb.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case Nb.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case Nb.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case Nb.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case Nb.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case Nb.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case Nb.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case Nb.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case Nb.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case Nb.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case Nb.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case Nb.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case Nb.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case Nb.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case Nb.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case Nb.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case Nb.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case Nb.BOGUS_COMMENT:this._stateBogusComment(e);break;case Nb.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case Nb.COMMENT_START:this._stateCommentStart(e);break;case Nb.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case Nb.COMMENT:this._stateComment(e);break;case Nb.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case Nb.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case Nb.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case Nb.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case Nb.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case Nb.COMMENT_END:this._stateCommentEnd(e);break;case Nb.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case Nb.DOCTYPE:this._stateDoctype(e);break;case Nb.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case Nb.DOCTYPE_NAME:this._stateDoctypeName(e);break;case Nb.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case Nb.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case Nb.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case Nb.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case Nb.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case Nb.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case Nb.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case Nb.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case Nb.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case Nb.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case Nb.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case Nb.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case Nb.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case Nb.CDATA_SECTION:this._stateCdataSection(e);break;case Nb.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case Nb.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case Nb.CHARACTER_REFERENCE:this._stateCharacterReference(e);break;case Nb.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(e);break;case Nb.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;case Nb.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(e);break;case Nb.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(e);break;case Nb.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(e);break;case Nb.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e);break;case Nb.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case Fv.LESS_THAN_SIGN:this.state=Nb.TAG_OPEN;break;case Fv.AMPERSAND:this.returnState=Nb.DATA,this.state=Nb.CHARACTER_REFERENCE;break;case Fv.NULL:this._err(Xv.unexpectedNullCharacter),this._emitCodePoint(e);break;case Fv.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case Fv.AMPERSAND:this.returnState=Nb.RCDATA,this.state=Nb.CHARACTER_REFERENCE;break;case Fv.LESS_THAN_SIGN:this.state=Nb.RCDATA_LESS_THAN_SIGN;break;case Fv.NULL:this._err(Xv.unexpectedNullCharacter),this._emitChars(Uv);break;case Fv.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case Fv.LESS_THAN_SIGN:this.state=Nb.RAWTEXT_LESS_THAN_SIGN;break;case Fv.NULL:this._err(Xv.unexpectedNullCharacter),this._emitChars(Uv);break;case Fv.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case Fv.LESS_THAN_SIGN:this.state=Nb.SCRIPT_DATA_LESS_THAN_SIGN;break;case Fv.NULL:this._err(Xv.unexpectedNullCharacter),this._emitChars(Uv);break;case Fv.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case Fv.NULL:this._err(Xv.unexpectedNullCharacter),this._emitChars(Uv);break;case Fv.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(Ub(e))this._createStartTagToken(),this.state=Nb.TAG_NAME,this._stateTagName(e);else switch(e){case Fv.EXCLAMATION_MARK:this.state=Nb.MARKUP_DECLARATION_OPEN;break;case Fv.SOLIDUS:this.state=Nb.END_TAG_OPEN;break;case Fv.QUESTION_MARK:this._err(Xv.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Nb.BOGUS_COMMENT,this._stateBogusComment(e);break;case Fv.EOF:this._err(Xv.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(Xv.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Nb.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(Ub(e))this._createEndTagToken(),this.state=Nb.TAG_NAME,this._stateTagName(e);else switch(e){case Fv.GREATER_THAN_SIGN:this._err(Xv.missingEndTagName),this.state=Nb.DATA;break;case Fv.EOF:this._err(Xv.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(Xv.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=Nb.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case Fv.SPACE:case Fv.LINE_FEED:case Fv.TABULATION:case Fv.FORM_FEED:this.state=Nb.BEFORE_ATTRIBUTE_NAME;break;case Fv.SOLIDUS:this.state=Nb.SELF_CLOSING_START_TAG;break;case Fv.GREATER_THAN_SIGN:this.state=Nb.DATA,this.emitCurrentTagToken();break;case Fv.NULL:this._err(Xv.unexpectedNullCharacter),t.tagName+=Uv;break;case Fv.EOF:this._err(Xv.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(Bb(e)?qb(e):e)}}_stateRcdataLessThanSign(e){e===Fv.SOLIDUS?this.state=Nb.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=Nb.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){Ub(e)?(this.state=Nb.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=Nb.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case Fv.SPACE:case Fv.LINE_FEED:case Fv.TABULATION:case Fv.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=Nb.BEFORE_ATTRIBUTE_NAME,!1;case Fv.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=Nb.SELF_CLOSING_START_TAG,!1;case Fv.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=Nb.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Nb.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===Fv.SOLIDUS?this.state=Nb.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=Nb.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){Ub(e)?(this.state=Nb.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=Nb.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Nb.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case Fv.SOLIDUS:this.state=Nb.SCRIPT_DATA_END_TAG_OPEN;break;case Fv.EXCLAMATION_MARK:this.state=Nb.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=Nb.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){Ub(e)?(this.state=Nb.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=Nb.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Nb.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===Fv.HYPHEN_MINUS?(this.state=Nb.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=Nb.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===Fv.HYPHEN_MINUS?(this.state=Nb.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=Nb.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case Fv.HYPHEN_MINUS:this.state=Nb.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case Fv.LESS_THAN_SIGN:this.state=Nb.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Fv.NULL:this._err(Xv.unexpectedNullCharacter),this._emitChars(Uv);break;case Fv.EOF:this._err(Xv.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case Fv.HYPHEN_MINUS:this.state=Nb.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case Fv.LESS_THAN_SIGN:this.state=Nb.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Fv.NULL:this._err(Xv.unexpectedNullCharacter),this.state=Nb.SCRIPT_DATA_ESCAPED,this._emitChars(Uv);break;case Fv.EOF:this._err(Xv.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Nb.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case Fv.HYPHEN_MINUS:this._emitChars("-");break;case Fv.LESS_THAN_SIGN:this.state=Nb.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Fv.GREATER_THAN_SIGN:this.state=Nb.SCRIPT_DATA,this._emitChars(">");break;case Fv.NULL:this._err(Xv.unexpectedNullCharacter),this.state=Nb.SCRIPT_DATA_ESCAPED,this._emitChars(Uv);break;case Fv.EOF:this._err(Xv.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Nb.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===Fv.SOLIDUS?this.state=Nb.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Ub(e)?(this._emitChars("<"),this.state=Nb.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=Nb.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){Ub(e)?(this.state=Nb.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=Nb.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Nb.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(Hv,!1)&&Vb(this.preprocessor.peek(6))){this._emitCodePoint(e);for(let e=0;e<6;e++)this._emitCodePoint(this._consume());this.state=Nb.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=Nb.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case Fv.HYPHEN_MINUS:this.state=Nb.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case Fv.LESS_THAN_SIGN:this.state=Nb.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Fv.NULL:this._err(Xv.unexpectedNullCharacter),this._emitChars(Uv);break;case Fv.EOF:this._err(Xv.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case Fv.HYPHEN_MINUS:this.state=Nb.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case Fv.LESS_THAN_SIGN:this.state=Nb.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Fv.NULL:this._err(Xv.unexpectedNullCharacter),this.state=Nb.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Uv);break;case Fv.EOF:this._err(Xv.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Nb.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case Fv.HYPHEN_MINUS:this._emitChars("-");break;case Fv.LESS_THAN_SIGN:this.state=Nb.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Fv.GREATER_THAN_SIGN:this.state=Nb.SCRIPT_DATA,this._emitChars(">");break;case Fv.NULL:this._err(Xv.unexpectedNullCharacter),this.state=Nb.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Uv);break;case Fv.EOF:this._err(Xv.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Nb.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===Fv.SOLIDUS?(this.state=Nb.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=Nb.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(Hv,!1)&&Vb(this.preprocessor.peek(6))){this._emitCodePoint(e);for(let e=0;e<6;e++)this._emitCodePoint(this._consume());this.state=Nb.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=Nb.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case Fv.SPACE:case Fv.LINE_FEED:case Fv.TABULATION:case Fv.FORM_FEED:break;case Fv.SOLIDUS:case Fv.GREATER_THAN_SIGN:case Fv.EOF:this.state=Nb.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case Fv.EQUALS_SIGN:this._err(Xv.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Nb.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=Nb.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case Fv.SPACE:case Fv.LINE_FEED:case Fv.TABULATION:case Fv.FORM_FEED:case Fv.SOLIDUS:case Fv.GREATER_THAN_SIGN:case Fv.EOF:this._leaveAttrName(),this.state=Nb.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case Fv.EQUALS_SIGN:this._leaveAttrName(),this.state=Nb.BEFORE_ATTRIBUTE_VALUE;break;case Fv.QUOTATION_MARK:case Fv.APOSTROPHE:case Fv.LESS_THAN_SIGN:this._err(Xv.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case Fv.NULL:this._err(Xv.unexpectedNullCharacter),this.currentAttr.name+=Uv;break;default:this.currentAttr.name+=String.fromCodePoint(Bb(e)?qb(e):e)}}_stateAfterAttributeName(e){switch(e){case Fv.SPACE:case Fv.LINE_FEED:case Fv.TABULATION:case Fv.FORM_FEED:break;case Fv.SOLIDUS:this.state=Nb.SELF_CLOSING_START_TAG;break;case Fv.EQUALS_SIGN:this.state=Nb.BEFORE_ATTRIBUTE_VALUE;break;case Fv.GREATER_THAN_SIGN:this.state=Nb.DATA,this.emitCurrentTagToken();break;case Fv.EOF:this._err(Xv.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=Nb.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case Fv.SPACE:case Fv.LINE_FEED:case Fv.TABULATION:case Fv.FORM_FEED:break;case Fv.QUOTATION_MARK:this.state=Nb.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case Fv.APOSTROPHE:this.state=Nb.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case Fv.GREATER_THAN_SIGN:this._err(Xv.missingAttributeValue),this.state=Nb.DATA,this.emitCurrentTagToken();break;default:this.state=Nb.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case Fv.QUOTATION_MARK:this.state=Nb.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Fv.AMPERSAND:this.returnState=Nb.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=Nb.CHARACTER_REFERENCE;break;case Fv.NULL:this._err(Xv.unexpectedNullCharacter),this.currentAttr.value+=Uv;break;case Fv.EOF:this._err(Xv.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case Fv.APOSTROPHE:this.state=Nb.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Fv.AMPERSAND:this.returnState=Nb.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=Nb.CHARACTER_REFERENCE;break;case Fv.NULL:this._err(Xv.unexpectedNullCharacter),this.currentAttr.value+=Uv;break;case Fv.EOF:this._err(Xv.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case Fv.SPACE:case Fv.LINE_FEED:case Fv.TABULATION:case Fv.FORM_FEED:this._leaveAttrValue(),this.state=Nb.BEFORE_ATTRIBUTE_NAME;break;case Fv.AMPERSAND:this.returnState=Nb.ATTRIBUTE_VALUE_UNQUOTED,this.state=Nb.CHARACTER_REFERENCE;break;case Fv.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Nb.DATA,this.emitCurrentTagToken();break;case Fv.NULL:this._err(Xv.unexpectedNullCharacter),this.currentAttr.value+=Uv;break;case Fv.QUOTATION_MARK:case Fv.APOSTROPHE:case Fv.LESS_THAN_SIGN:case Fv.EQUALS_SIGN:case Fv.GRAVE_ACCENT:this._err(Xv.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case Fv.EOF:this._err(Xv.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case Fv.SPACE:case Fv.LINE_FEED:case Fv.TABULATION:case Fv.FORM_FEED:this._leaveAttrValue(),this.state=Nb.BEFORE_ATTRIBUTE_NAME;break;case Fv.SOLIDUS:this._leaveAttrValue(),this.state=Nb.SELF_CLOSING_START_TAG;break;case Fv.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Nb.DATA,this.emitCurrentTagToken();break;case Fv.EOF:this._err(Xv.eofInTag),this._emitEOFToken();break;default:this._err(Xv.missingWhitespaceBetweenAttributes),this.state=Nb.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case Fv.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=Nb.DATA,this.emitCurrentTagToken();break;case Fv.EOF:this._err(Xv.eofInTag),this._emitEOFToken();break;default:this._err(Xv.unexpectedSolidusInTag),this.state=Nb.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case Fv.GREATER_THAN_SIGN:this.state=Nb.DATA,this.emitCurrentComment(t);break;case Fv.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case Fv.NULL:this._err(Xv.unexpectedNullCharacter),t.data+=Uv;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch("--",!0)?(this._createCommentToken(3),this.state=Nb.COMMENT_START):this._consumeSequenceIfMatch(qv,!1)?(this.currentLocation=this.getCurrentLocation(8),this.state=Nb.DOCTYPE):this._consumeSequenceIfMatch(zv,!0)?this.inForeignNode?this.state=Nb.CDATA_SECTION:(this._err(Xv.cdataInHtmlContent),this._createCommentToken(8),this.currentToken.data="[CDATA[",this.state=Nb.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Xv.incorrectlyOpenedComment),this._createCommentToken(2),this.state=Nb.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case Fv.HYPHEN_MINUS:this.state=Nb.COMMENT_START_DASH;break;case Fv.GREATER_THAN_SIGN:{this._err(Xv.abruptClosingOfEmptyComment),this.state=Nb.DATA;const e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=Nb.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case Fv.HYPHEN_MINUS:this.state=Nb.COMMENT_END;break;case Fv.GREATER_THAN_SIGN:this._err(Xv.abruptClosingOfEmptyComment),this.state=Nb.DATA,this.emitCurrentComment(t);break;case Fv.EOF:this._err(Xv.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=Nb.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case Fv.HYPHEN_MINUS:this.state=Nb.COMMENT_END_DASH;break;case Fv.LESS_THAN_SIGN:t.data+="<",this.state=Nb.COMMENT_LESS_THAN_SIGN;break;case Fv.NULL:this._err(Xv.unexpectedNullCharacter),t.data+=Uv;break;case Fv.EOF:this._err(Xv.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case Fv.EXCLAMATION_MARK:t.data+="!",this.state=Nb.COMMENT_LESS_THAN_SIGN_BANG;break;case Fv.LESS_THAN_SIGN:t.data+="<";break;default:this.state=Nb.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===Fv.HYPHEN_MINUS?this.state=Nb.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=Nb.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===Fv.HYPHEN_MINUS?this.state=Nb.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=Nb.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==Fv.GREATER_THAN_SIGN&&e!==Fv.EOF&&this._err(Xv.nestedComment),this.state=Nb.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case Fv.HYPHEN_MINUS:this.state=Nb.COMMENT_END;break;case Fv.EOF:this._err(Xv.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=Nb.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case Fv.GREATER_THAN_SIGN:this.state=Nb.DATA,this.emitCurrentComment(t);break;case Fv.EXCLAMATION_MARK:this.state=Nb.COMMENT_END_BANG;break;case Fv.HYPHEN_MINUS:t.data+="-";break;case Fv.EOF:this._err(Xv.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=Nb.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case Fv.HYPHEN_MINUS:t.data+="--!",this.state=Nb.COMMENT_END_DASH;break;case Fv.GREATER_THAN_SIGN:this._err(Xv.incorrectlyClosedComment),this.state=Nb.DATA,this.emitCurrentComment(t);break;case Fv.EOF:this._err(Xv.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=Nb.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case Fv.SPACE:case Fv.LINE_FEED:case Fv.TABULATION:case Fv.FORM_FEED:this.state=Nb.BEFORE_DOCTYPE_NAME;break;case Fv.GREATER_THAN_SIGN:this.state=Nb.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case Fv.EOF:{this._err(Xv.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(Xv.missingWhitespaceBeforeDoctypeName),this.state=Nb.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(Bb(e))this._createDoctypeToken(String.fromCharCode(qb(e))),this.state=Nb.DOCTYPE_NAME;else switch(e){case Fv.SPACE:case Fv.LINE_FEED:case Fv.TABULATION:case Fv.FORM_FEED:break;case Fv.NULL:this._err(Xv.unexpectedNullCharacter),this._createDoctypeToken(Uv),this.state=Nb.DOCTYPE_NAME;break;case Fv.GREATER_THAN_SIGN:{this._err(Xv.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=Nb.DATA;break}case Fv.EOF:{this._err(Xv.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=Nb.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case Fv.SPACE:case Fv.LINE_FEED:case Fv.TABULATION:case Fv.FORM_FEED:this.state=Nb.AFTER_DOCTYPE_NAME;break;case Fv.GREATER_THAN_SIGN:this.state=Nb.DATA,this.emitCurrentDoctype(t);break;case Fv.NULL:this._err(Xv.unexpectedNullCharacter),t.name+=Uv;break;case Fv.EOF:this._err(Xv.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(Bb(e)?qb(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case Fv.SPACE:case Fv.LINE_FEED:case Fv.TABULATION:case Fv.FORM_FEED:break;case Fv.GREATER_THAN_SIGN:this.state=Nb.DATA,this.emitCurrentDoctype(t);break;case Fv.EOF:this._err(Xv.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch("public",!1)?this.state=Nb.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch("system",!1)?this.state=Nb.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Xv.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=Nb.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case Fv.SPACE:case Fv.LINE_FEED:case Fv.TABULATION:case Fv.FORM_FEED:this.state=Nb.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case Fv.QUOTATION_MARK:this._err(Xv.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=Nb.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case Fv.APOSTROPHE:this._err(Xv.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=Nb.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case Fv.GREATER_THAN_SIGN:this._err(Xv.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Nb.DATA,this.emitCurrentDoctype(t);break;case Fv.EOF:this._err(Xv.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Xv.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Nb.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case Fv.SPACE:case Fv.LINE_FEED:case Fv.TABULATION:case Fv.FORM_FEED:break;case Fv.QUOTATION_MARK:t.publicId="",this.state=Nb.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case Fv.APOSTROPHE:t.publicId="",this.state=Nb.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case Fv.GREATER_THAN_SIGN:this._err(Xv.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Nb.DATA,this.emitCurrentDoctype(t);break;case Fv.EOF:this._err(Xv.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Xv.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Nb.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case Fv.QUOTATION_MARK:this.state=Nb.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case Fv.NULL:this._err(Xv.unexpectedNullCharacter),t.publicId+=Uv;break;case Fv.GREATER_THAN_SIGN:this._err(Xv.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Nb.DATA;break;case Fv.EOF:this._err(Xv.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case Fv.APOSTROPHE:this.state=Nb.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case Fv.NULL:this._err(Xv.unexpectedNullCharacter),t.publicId+=Uv;break;case Fv.GREATER_THAN_SIGN:this._err(Xv.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Nb.DATA;break;case Fv.EOF:this._err(Xv.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case Fv.SPACE:case Fv.LINE_FEED:case Fv.TABULATION:case Fv.FORM_FEED:this.state=Nb.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case Fv.GREATER_THAN_SIGN:this.state=Nb.DATA,this.emitCurrentDoctype(t);break;case Fv.QUOTATION_MARK:this._err(Xv.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=Nb.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Fv.APOSTROPHE:this._err(Xv.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=Nb.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Fv.EOF:this._err(Xv.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Xv.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Nb.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case Fv.SPACE:case Fv.LINE_FEED:case Fv.TABULATION:case Fv.FORM_FEED:break;case Fv.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Nb.DATA;break;case Fv.QUOTATION_MARK:t.systemId="",this.state=Nb.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Fv.APOSTROPHE:t.systemId="",this.state=Nb.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Fv.EOF:this._err(Xv.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Xv.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Nb.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case Fv.SPACE:case Fv.LINE_FEED:case Fv.TABULATION:case Fv.FORM_FEED:this.state=Nb.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case Fv.QUOTATION_MARK:this._err(Xv.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=Nb.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Fv.APOSTROPHE:this._err(Xv.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=Nb.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Fv.GREATER_THAN_SIGN:this._err(Xv.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Nb.DATA,this.emitCurrentDoctype(t);break;case Fv.EOF:this._err(Xv.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Xv.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Nb.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case Fv.SPACE:case Fv.LINE_FEED:case Fv.TABULATION:case Fv.FORM_FEED:break;case Fv.QUOTATION_MARK:t.systemId="",this.state=Nb.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Fv.APOSTROPHE:t.systemId="",this.state=Nb.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Fv.GREATER_THAN_SIGN:this._err(Xv.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Nb.DATA,this.emitCurrentDoctype(t);break;case Fv.EOF:this._err(Xv.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Xv.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Nb.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case Fv.QUOTATION_MARK:this.state=Nb.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case Fv.NULL:this._err(Xv.unexpectedNullCharacter),t.systemId+=Uv;break;case Fv.GREATER_THAN_SIGN:this._err(Xv.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Nb.DATA;break;case Fv.EOF:this._err(Xv.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case Fv.APOSTROPHE:this.state=Nb.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case Fv.NULL:this._err(Xv.unexpectedNullCharacter),t.systemId+=Uv;break;case Fv.GREATER_THAN_SIGN:this._err(Xv.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Nb.DATA;break;case Fv.EOF:this._err(Xv.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case Fv.SPACE:case Fv.LINE_FEED:case Fv.TABULATION:case Fv.FORM_FEED:break;case Fv.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Nb.DATA;break;case Fv.EOF:this._err(Xv.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Xv.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=Nb.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case Fv.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Nb.DATA;break;case Fv.NULL:this._err(Xv.unexpectedNullCharacter);break;case Fv.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case Fv.RIGHT_SQUARE_BRACKET:this.state=Nb.CDATA_SECTION_BRACKET;break;case Fv.EOF:this._err(Xv.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===Fv.RIGHT_SQUARE_BRACKET?this.state=Nb.CDATA_SECTION_END:(this._emitChars("]"),this.state=Nb.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case Fv.GREATER_THAN_SIGN:this.state=Nb.DATA;break;case Fv.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=Nb.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(e){e===Fv.NUMBER_SIGN?this.state=Nb.NUMERIC_CHARACTER_REFERENCE:Fb(e)?(this.state=Nb.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(e)):(this._flushCodePointConsumedAsCharacterReference(Fv.AMPERSAND),this._reconsumeInState(this.returnState,e))}_stateNamedCharacterReference(e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation());else if(t){for(let e=0;e<t.length;e++)this._flushCodePointConsumedAsCharacterReference(t[e]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(Fv.AMPERSAND),this.state=Nb.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(e){Fb(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===Fv.SEMICOLON&&this._err(Xv.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,e))}_stateNumericCharacterReference(e){this.charRefCode=0,e===Fv.LATIN_SMALL_X||e===Fv.LATIN_CAPITAL_X?this.state=Nb.HEXADEMICAL_CHARACTER_REFERENCE_START:jb(e)?(this.state=Nb.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(e)):(this._err(Xv.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(Fv.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(Fv.NUMBER_SIGN),this._reconsumeInState(this.returnState,e))}_stateHexademicalCharacterReferenceStart(e){!function(e){return jb(e)||Qb(e)||zb(e)}(e)?(this._err(Xv.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(Fv.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(Fv.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState):(this.state=Nb.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(e))}_stateHexademicalCharacterReference(e){Qb(e)?this.charRefCode=16*this.charRefCode+e-55:zb(e)?this.charRefCode=16*this.charRefCode+e-87:jb(e)?this.charRefCode=16*this.charRefCode+e-48:e===Fv.SEMICOLON?this.state=Nb.NUMERIC_CHARACTER_REFERENCE_END:(this._err(Xv.missingSemicolonAfterCharacterReference),this.state=Nb.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(e))}_stateDecimalCharacterReference(e){jb(e)?this.charRefCode=10*this.charRefCode+e-48:e===Fv.SEMICOLON?this.state=Nb.NUMERIC_CHARACTER_REFERENCE_END:(this._err(Xv.missingSemicolonAfterCharacterReference),this.state=Nb.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(e))}_stateNumericCharacterReferenceEnd(e){if(this.charRefCode===Fv.NULL)this._err(Xv.nullCharacterReference),this.charRefCode=Fv.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(Xv.characterReferenceOutsideUnicodeRange),this.charRefCode=Fv.REPLACEMENT_CHARACTER;else if(Vv(this.charRefCode))this._err(Xv.surrogateCharacterReference),this.charRefCode=Fv.REPLACEMENT_CHARACTER;else if(Wv(this.charRefCode))this._err(Xv.noncharacterCharacterReference);else if(Zv(this.charRefCode)||this.charRefCode===Fv.CARRIAGE_RETURN){this._err(Xv.controlCharacterReference);const e=Mb.get(this.charRefCode);void 0!==e&&(this.charRefCode=e)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,e)}}const Wb=new Set([xb.DD,xb.DT,xb.LI,xb.OPTGROUP,xb.OPTION,xb.P,xb.RB,xb.RP,xb.RT,xb.RTC]),Xb=new Set([...Wb,xb.CAPTION,xb.COLGROUP,xb.TBODY,xb.TD,xb.TFOOT,xb.TH,xb.THEAD,xb.TR]),Gb=new Map([[xb.APPLET,fb.HTML],[xb.CAPTION,fb.HTML],[xb.HTML,fb.HTML],[xb.MARQUEE,fb.HTML],[xb.OBJECT,fb.HTML],[xb.TABLE,fb.HTML],[xb.TD,fb.HTML],[xb.TEMPLATE,fb.HTML],[xb.TH,fb.HTML],[xb.ANNOTATION_XML,fb.MATHML],[xb.MI,fb.MATHML],[xb.MN,fb.MATHML],[xb.MO,fb.MATHML],[xb.MS,fb.MATHML],[xb.MTEXT,fb.MATHML],[xb.DESC,fb.SVG],[xb.FOREIGN_OBJECT,fb.SVG],[xb.TITLE,fb.SVG]]),Yb=[xb.H1,xb.H2,xb.H3,xb.H4,xb.H5,xb.H6],Kb=[xb.TR,xb.TEMPLATE,xb.HTML],Jb=[xb.TBODY,xb.TFOOT,xb.THEAD,xb.TEMPLATE,xb.HTML],ey=[xb.TABLE,xb.TEMPLATE,xb.HTML],ty=[xb.TD,xb.TH];class ry{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,r){this.treeAdapter=t,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=xb.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===xb.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===fb.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const r=this._indexOf(e);this.items[r]=t,r===this.stackTop&&(this.current=t)}insertAfter(e,t,r){const n=this._indexOf(e)+1;this.items.splice(n,0,t),this.tagIDs.splice(n,0,r),this.stackTop++,n===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,n===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==fb.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(t<0?0:t)}popUntilPopped(e,t){const r=this._indexOfTagNames(e,t);this.shortenToLength(r<0?0:r)}popUntilNumberedHeaderPopped(){this.popUntilPopped(Yb,fb.HTML)}popUntilTableCellPopped(){this.popUntilPopped(ty,fb.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let r=this.stackTop;r>=0;r--)if(e.includes(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===t)return r;return-1}clearBackTo(e,t){const r=this._indexOfTagNames(e,t);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(ey,fb.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Jb,fb.HTML)}clearBackToTableRowContext(){this.clearBackTo(Kb,fb.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===xb.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===xb.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t],n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===fb.HTML)return!0;if(Gb.get(r)===n)return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e],r=this.treeAdapter.getNamespaceURI(this.items[e]);if(Rb(t)&&r===fb.HTML)return!0;if(Gb.get(t)===r)return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t],n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===fb.HTML)return!0;if((r===xb.UL||r===xb.OL)&&n===fb.HTML||Gb.get(r)===n)return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t],n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===fb.HTML)return!0;if(r===xb.BUTTON&&n===fb.HTML||Gb.get(r)===n)return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===fb.HTML){if(r===e)return!0;if(r===xb.TABLE||r===xb.TEMPLATE||r===xb.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===fb.HTML){if(t===xb.TBODY||t===xb.THEAD||t===xb.TFOOT)return!0;if(t===xb.TABLE||t===xb.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===fb.HTML){if(r===e)return!0;if(r!==xb.OPTION&&r!==xb.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Wb.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Xb.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&Xb.has(this.currentTagId);)this.pop()}}var ny,ay;(ay=ny=ny||(ny={}))[ay.Marker=0]="Marker",ay[ay.Element=1]="Element";const oy={type:ny.Marker};class iy{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const r=[],n=t.length,a=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){const t=this.entries[e];if(t.type===ny.Marker)break;const{element:i}=t;if(this.treeAdapter.getTagName(i)===a&&this.treeAdapter.getNamespaceURI(i)===o){const t=this.treeAdapter.getAttrList(i);t.length===n&&r.push({idx:e,attrs:t})}}return r}_ensureNoahArkCondition(e){if(this.entries.length<3)return;const t=this.treeAdapter.getAttrList(e),r=this._getNoahArkConditionCandidates(e,t);if(r.length<3)return;const n=new Map(t.map((e=>[e.name,e.value])));let a=0;for(let e=0;e<r.length;e++){const t=r[e];t.attrs.every((e=>n.get(e.name)===e.value))&&(a+=1,a>=3&&this.entries.splice(t.idx,1))}}insertMarker(){this.entries.unshift(oy)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:ny.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ny.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(oy);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){const t=this.entries.find((t=>t.type===ny.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===ny.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===ny.Element&&t.element===e))}}function sy(e){return{nodeName:"#text",value:e,parentNode:null}}const ly={createDocument:()=>({nodeName:"#document",mode:bb.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,r)=>({nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){const n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,r,n){const a=e.childNodes.find((e=>"#documentType"===e.nodeName));if(a)a.name=t,a.publicId=r,a.systemId=n;else{const a={nodeName:"#documentType",name:t,publicId:r,systemId:n,parentNode:null};ly.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const r=e.childNodes[e.childNodes.length-1];if(ly.isTextNode(r))return void(r.value+=t)}ly.appendChild(e,sy(t))},insertTextBefore(e,t,r){const n=e.childNodes[e.childNodes.indexOf(r)-1];n&&ly.isTextNode(n)?n.value+=t:ly.insertBefore(e,sy(t),r)},adoptAttributes(e,t){const r=new Set(e.attrs.map((e=>e.name)));for(let n=0;n<t.length;n++)r.has(t[n].name)||e.attrs.push(t[n])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},cy="html",uy=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],dy=[...uy,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],py=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),hy=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],fy=[...hy,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function my(e,t){return t.some((t=>e.startsWith(t)))}const gy="text/html",vy="application/xhtml+xml",by=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((e=>[e.toLowerCase(),e]))),yy=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:fb.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:fb.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:fb.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:fb.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:fb.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:fb.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:fb.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:fb.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:fb.XML}],["xml:space",{prefix:"xml",name:"space",namespace:fb.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:fb.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:fb.XMLNS}]]),Oy=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((e=>[e.toLowerCase(),e]))),wy=new Set([xb.B,xb.BIG,xb.BLOCKQUOTE,xb.BODY,xb.BR,xb.CENTER,xb.CODE,xb.DD,xb.DIV,xb.DL,xb.DT,xb.EM,xb.EMBED,xb.H1,xb.H2,xb.H3,xb.H4,xb.H5,xb.H6,xb.HEAD,xb.HR,xb.I,xb.IMG,xb.LI,xb.LISTING,xb.MENU,xb.META,xb.NOBR,xb.OL,xb.P,xb.PRE,xb.RUBY,xb.S,xb.SMALL,xb.SPAN,xb.STRONG,xb.STRIKE,xb.SUB,xb.SUP,xb.TABLE,xb.TT,xb.U,xb.UL,xb.VAR]);function xy(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function ky(e){for(let t=0;t<e.attrs.length;t++){const r=by.get(e.attrs[t].name);null!=r&&(e.attrs[t].name=r)}}function Sy(e){for(let t=0;t<e.attrs.length;t++){const r=yy.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}var _y,Ey;(Ey=_y||(_y={}))[Ey.INITIAL=0]="INITIAL",Ey[Ey.BEFORE_HTML=1]="BEFORE_HTML",Ey[Ey.BEFORE_HEAD=2]="BEFORE_HEAD",Ey[Ey.IN_HEAD=3]="IN_HEAD",Ey[Ey.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",Ey[Ey.AFTER_HEAD=5]="AFTER_HEAD",Ey[Ey.IN_BODY=6]="IN_BODY",Ey[Ey.TEXT=7]="TEXT",Ey[Ey.IN_TABLE=8]="IN_TABLE",Ey[Ey.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",Ey[Ey.IN_CAPTION=10]="IN_CAPTION",Ey[Ey.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",Ey[Ey.IN_TABLE_BODY=12]="IN_TABLE_BODY",Ey[Ey.IN_ROW=13]="IN_ROW",Ey[Ey.IN_CELL=14]="IN_CELL",Ey[Ey.IN_SELECT=15]="IN_SELECT",Ey[Ey.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",Ey[Ey.IN_TEMPLATE=17]="IN_TEMPLATE",Ey[Ey.AFTER_BODY=18]="AFTER_BODY",Ey[Ey.IN_FRAMESET=19]="IN_FRAMESET",Ey[Ey.AFTER_FRAMESET=20]="AFTER_FRAMESET",Ey[Ey.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",Ey[Ey.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";const Ty={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Ay=new Set([xb.TABLE,xb.TBODY,xb.TFOOT,xb.THEAD,xb.TR]),Cy={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:ly,onParseError:null};let Py=class{constructor(e,t,r=null,n=null){this.fragmentContext=r,this.scriptHandler=n,this.currentToken=null,this.stopped=!1,this.insertionMode=_y.INITIAL,this.originalInsertionMode=_y.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Cy,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new Zb(this.options,this),this.activeFormattingElements=new iy(this.treeAdapter),this.fragmentContextID=r?Pb(this.treeAdapter.getTagName(r)):xb.UNKNOWN,this._setContextModes(null!=r?r:this.document,this.fragmentContextID),this.openElements=new ry(this.document,this.treeAdapter,this)}static parse(e,t){const r=new this(t);return r.tokenizer.write(e,!0),r.document}static getFragmentParser(e,t){const r={...Cy,...t};null!=e||(e=r.treeAdapter.createElement(Ob.TEMPLATE,fb.HTML,[]));const n=r.treeAdapter.createElement("documentmock",fb.HTML,[]),a=new this(r,n,e);return a.fragmentContextID===xb.TEMPLATE&&a.tmplInsertionModeStack.unshift(_y.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,r){var n;if(!this.onParseError)return;const a=null!==(n=e.location)&&void 0!==n?n:Ty,o={code:t,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(o)}onItemPush(e,t,r){var n,a;null===(a=(n=this.treeAdapter).onItemPush)||void 0===a||a.call(n,e),r&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var r,n;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(n=(r=this.treeAdapter).onItemPop)||void 0===n||n.call(r,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const r=e===this.document||this.treeAdapter.getNamespaceURI(e)===fb.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,fb.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=_y.TEXT}switchToPlaintextParsing(){this.insertionMode=_y.TEXT,this.originalInsertionMode=_y.IN_BODY,this.tokenizer.state=Lb.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===Ob.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===fb.HTML)switch(this.fragmentContextID){case xb.TITLE:case xb.TEXTAREA:this.tokenizer.state=Lb.RCDATA;break;case xb.STYLE:case xb.XMP:case xb.IFRAME:case xb.NOEMBED:case xb.NOFRAMES:case xb.NOSCRIPT:this.tokenizer.state=Lb.RAWTEXT;break;case xb.SCRIPT:this.tokenizer.state=Lb.SCRIPT_DATA;break;case xb.PLAINTEXT:this.tokenizer.state=Lb.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",r=e.publicId||"",n=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,r,n),e.location){const t=this.treeAdapter.getChildNodes(this.document).find((e=>this.treeAdapter.isDocumentTypeNode(e)));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const r=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location)}_insertElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location),this.openElements.push(r,e.tagID)}_insertFakeElement(e,t){const r=this.treeAdapter.createElement(e,fb.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,fb.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,r),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(Ob.HTML,fb.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,xb.HTML)}_appendCommentNode(e,t){const r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,e.location)}_insertCharacters(e){let t,r;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:r}=this._findFosterParentingLocation()),r?this.treeAdapter.insertTextBefore(t,e.chars,r):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const n=this.treeAdapter.getChildNodes(t),a=r?n.lastIndexOf(r):n.length,o=n[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:t,endCol:r,endOffset:n}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:t,endCol:r,endOffset:n})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,e.location)}_adoptNodes(e,t){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(t,r)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const r=t.location,n=this.treeAdapter.getTagName(e),a=t.type===Yv.END_TAG&&n===t.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,a)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,r;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,r=this.fragmentContextID):({current:t,currentTagId:r}=this.openElements),(e.tagID!==xb.SVG||this.treeAdapter.getTagName(t)!==Ob.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==fb.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===xb.MGLYPH||e.tagID===xb.MALIGNMARK)&&!this._isIntegrationPoint(r,t,fb.HTML))}_processToken(e){switch(e.type){case Yv.CHARACTER:this.onCharacter(e);break;case Yv.NULL_CHARACTER:this.onNullCharacter(e);break;case Yv.COMMENT:this.onComment(e);break;case Yv.DOCTYPE:this.onDoctype(e);break;case Yv.START_TAG:this._processStartTag(e);break;case Yv.END_TAG:this.onEndTag(e);break;case Yv.EOF:this.onEof(e);break;case Yv.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,r){return function(e,t,r,n){return(!n||n===fb.HTML)&&function(e,t,r){if(t===fb.MATHML&&e===xb.ANNOTATION_XML)for(let e=0;e<r.length;e++)if(r[e].name===gb.ENCODING){const t=r[e].value.toLowerCase();return t===gy||t===vy}return t===fb.SVG&&(e===xb.FOREIGN_OBJECT||e===xb.DESC||e===xb.TITLE)}(e,t,r)||(!n||n===fb.MATHML)&&function(e,t){return t===fb.MATHML&&(e===xb.MI||e===xb.MO||e===xb.MN||e===xb.MS||e===xb.MTEXT)}(e,t)}(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),r)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex((e=>e.type===ny.Marker||this.openElements.contains(e.element)));for(let r=t<0?e-1:t-1;r>=0;r--){const e=this.activeFormattingElements.entries[r];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=_y.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(xb.P),this.openElements.popUntilTagNamePopped(xb.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case xb.TR:return void(this.insertionMode=_y.IN_ROW);case xb.TBODY:case xb.THEAD:case xb.TFOOT:return void(this.insertionMode=_y.IN_TABLE_BODY);case xb.CAPTION:return void(this.insertionMode=_y.IN_CAPTION);case xb.COLGROUP:return void(this.insertionMode=_y.IN_COLUMN_GROUP);case xb.TABLE:return void(this.insertionMode=_y.IN_TABLE);case xb.BODY:return void(this.insertionMode=_y.IN_BODY);case xb.FRAMESET:return void(this.insertionMode=_y.IN_FRAMESET);case xb.SELECT:return void this._resetInsertionModeForSelect(e);case xb.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case xb.HTML:return void(this.insertionMode=this.headElement?_y.AFTER_HEAD:_y.BEFORE_HEAD);case xb.TD:case xb.TH:if(e>0)return void(this.insertionMode=_y.IN_CELL);break;case xb.HEAD:if(e>0)return void(this.insertionMode=_y.IN_HEAD)}this.insertionMode=_y.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===xb.TEMPLATE)break;if(e===xb.TABLE)return void(this.insertionMode=_y.IN_SELECT_IN_TABLE)}this.insertionMode=_y.IN_SELECT}_isElementCausesFosterParenting(e){return Ay.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case xb.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===fb.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case xb.TABLE:{const r=this.treeAdapter.getParentNode(t);return r?{parent:r,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const r=this.treeAdapter.getNamespaceURI(e);return $b[r].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){case _y.INITIAL:Uy(this,e);break;case _y.BEFORE_HTML:Fy(this,e);break;case _y.BEFORE_HEAD:Qy(this,e);break;case _y.IN_HEAD:Hy(this,e);break;case _y.IN_HEAD_NO_SCRIPT:Vy(this,e);break;case _y.AFTER_HEAD:Zy(this,e);break;case _y.IN_BODY:case _y.IN_CAPTION:case _y.IN_CELL:case _y.IN_TEMPLATE:Gy(this,e);break;case _y.TEXT:case _y.IN_SELECT:case _y.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case _y.IN_TABLE:case _y.IN_TABLE_BODY:case _y.IN_ROW:oO(this,e);break;case _y.IN_TABLE_TEXT:uO(this,e);break;case _y.IN_COLUMN_GROUP:fO(this,e);break;case _y.AFTER_BODY:kO(this,e);break;case _y.AFTER_AFTER_BODY:SO(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=Uv,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case _y.INITIAL:Uy(this,e);break;case _y.BEFORE_HTML:Fy(this,e);break;case _y.BEFORE_HEAD:Qy(this,e);break;case _y.IN_HEAD:Hy(this,e);break;case _y.IN_HEAD_NO_SCRIPT:Vy(this,e);break;case _y.AFTER_HEAD:Zy(this,e);break;case _y.TEXT:this._insertCharacters(e);break;case _y.IN_TABLE:case _y.IN_TABLE_BODY:case _y.IN_ROW:oO(this,e);break;case _y.IN_COLUMN_GROUP:fO(this,e);break;case _y.AFTER_BODY:kO(this,e);break;case _y.AFTER_AFTER_BODY:SO(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)jy(this,e);else switch(this.insertionMode){case _y.INITIAL:case _y.BEFORE_HTML:case _y.BEFORE_HEAD:case _y.IN_HEAD:case _y.IN_HEAD_NO_SCRIPT:case _y.AFTER_HEAD:case _y.IN_BODY:case _y.IN_TABLE:case _y.IN_CAPTION:case _y.IN_COLUMN_GROUP:case _y.IN_TABLE_BODY:case _y.IN_ROW:case _y.IN_CELL:case _y.IN_SELECT:case _y.IN_SELECT_IN_TABLE:case _y.IN_TEMPLATE:case _y.IN_FRAMESET:case _y.AFTER_FRAMESET:jy(this,e);break;case _y.IN_TABLE_TEXT:dO(this,e);break;case _y.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case _y.AFTER_AFTER_BODY:case _y.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case _y.INITIAL:!function(e,t){e._setDocumentType(t);const r=t.forceQuirks?bb.QUIRKS:function(e){if(e.name!==cy)return bb.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return bb.QUIRKS;let{publicId:r}=e;if(null!==r){if(r=r.toLowerCase(),py.has(r))return bb.QUIRKS;let e=null===t?dy:uy;if(my(r,e))return bb.QUIRKS;if(e=null===t?hy:fy,my(r,e))return bb.LIMITED_QUIRKS}return bb.NO_QUIRKS}(t);(function(e){return e.name===cy&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)})(t)||e._err(t,Xv.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=_y.BEFORE_HTML}(this,e);break;case _y.BEFORE_HEAD:case _y.IN_HEAD:case _y.IN_HEAD_NO_SCRIPT:case _y.AFTER_HEAD:this._err(e,Xv.misplacedDoctype);break;case _y.IN_TABLE_TEXT:dO(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,Xv.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===xb.FONT&&e.attrs.some((({name:e})=>e===gb.COLOR||e===gb.SIZE||e===gb.FACE))||wy.has(t)}(t))_O(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===fb.MATHML?xy(t):n===fb.SVG&&(function(e){const t=Oy.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=Pb(e.tagName))}(t),ky(t)),Sy(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case _y.INITIAL:Uy(this,e);break;case _y.BEFORE_HTML:!function(e,t){t.tagID===xb.HTML?(e._insertElement(t,fb.HTML),e.insertionMode=_y.BEFORE_HEAD):Fy(e,t)}(this,e);break;case _y.BEFORE_HEAD:!function(e,t){switch(t.tagID){case xb.HTML:tO(e,t);break;case xb.HEAD:e._insertElement(t,fb.HTML),e.headElement=e.openElements.current,e.insertionMode=_y.IN_HEAD;break;default:Qy(e,t)}}(this,e);break;case _y.IN_HEAD:zy(this,e);break;case _y.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case xb.HTML:tO(e,t);break;case xb.BASEFONT:case xb.BGSOUND:case xb.HEAD:case xb.LINK:case xb.META:case xb.NOFRAMES:case xb.STYLE:zy(e,t);break;case xb.NOSCRIPT:e._err(t,Xv.nestedNoscriptInHead);break;default:Vy(e,t)}}(this,e);break;case _y.AFTER_HEAD:!function(e,t){switch(t.tagID){case xb.HTML:tO(e,t);break;case xb.BODY:e._insertElement(t,fb.HTML),e.framesetOk=!1,e.insertionMode=_y.IN_BODY;break;case xb.FRAMESET:e._insertElement(t,fb.HTML),e.insertionMode=_y.IN_FRAMESET;break;case xb.BASE:case xb.BASEFONT:case xb.BGSOUND:case xb.LINK:case xb.META:case xb.NOFRAMES:case xb.SCRIPT:case xb.STYLE:case xb.TEMPLATE:case xb.TITLE:e._err(t,Xv.abandonedHeadElementChild),e.openElements.push(e.headElement,xb.HEAD),zy(e,t),e.openElements.remove(e.headElement);break;case xb.HEAD:e._err(t,Xv.misplacedStartTagForHeadElement);break;default:Zy(e,t)}}(this,e);break;case _y.IN_BODY:tO(this,e);break;case _y.IN_TABLE:iO(this,e);break;case _y.IN_TABLE_TEXT:dO(this,e);break;case _y.IN_CAPTION:!function(e,t){const r=t.tagID;pO.has(r)?e.openElements.hasInTableScope(xb.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(xb.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=_y.IN_TABLE,iO(e,t)):tO(e,t)}(this,e);break;case _y.IN_COLUMN_GROUP:hO(this,e);break;case _y.IN_TABLE_BODY:mO(this,e);break;case _y.IN_ROW:vO(this,e);break;case _y.IN_CELL:!function(e,t){const r=t.tagID;pO.has(r)?(e.openElements.hasInTableScope(xb.TD)||e.openElements.hasInTableScope(xb.TH))&&(e._closeTableCell(),vO(e,t)):tO(e,t)}(this,e);break;case _y.IN_SELECT:yO(this,e);break;case _y.IN_SELECT_IN_TABLE:!function(e,t){const r=t.tagID;r===xb.CAPTION||r===xb.TABLE||r===xb.TBODY||r===xb.TFOOT||r===xb.THEAD||r===xb.TR||r===xb.TD||r===xb.TH?(e.openElements.popUntilTagNamePopped(xb.SELECT),e._resetInsertionMode(),e._processStartTag(t)):yO(e,t)}(this,e);break;case _y.IN_TEMPLATE:!function(e,t){switch(t.tagID){case xb.BASE:case xb.BASEFONT:case xb.BGSOUND:case xb.LINK:case xb.META:case xb.NOFRAMES:case xb.SCRIPT:case xb.STYLE:case xb.TEMPLATE:case xb.TITLE:zy(e,t);break;case xb.CAPTION:case xb.COLGROUP:case xb.TBODY:case xb.TFOOT:case xb.THEAD:e.tmplInsertionModeStack[0]=_y.IN_TABLE,e.insertionMode=_y.IN_TABLE,iO(e,t);break;case xb.COL:e.tmplInsertionModeStack[0]=_y.IN_COLUMN_GROUP,e.insertionMode=_y.IN_COLUMN_GROUP,hO(e,t);break;case xb.TR:e.tmplInsertionModeStack[0]=_y.IN_TABLE_BODY,e.insertionMode=_y.IN_TABLE_BODY,mO(e,t);break;case xb.TD:case xb.TH:e.tmplInsertionModeStack[0]=_y.IN_ROW,e.insertionMode=_y.IN_ROW,vO(e,t);break;default:e.tmplInsertionModeStack[0]=_y.IN_BODY,e.insertionMode=_y.IN_BODY,tO(e,t)}}(this,e);break;case _y.AFTER_BODY:!function(e,t){t.tagID===xb.HTML?tO(e,t):kO(e,t)}(this,e);break;case _y.IN_FRAMESET:!function(e,t){switch(t.tagID){case xb.HTML:tO(e,t);break;case xb.FRAMESET:e._insertElement(t,fb.HTML);break;case xb.FRAME:e._appendElement(t,fb.HTML),t.ackSelfClosing=!0;break;case xb.NOFRAMES:zy(e,t)}}(this,e);break;case _y.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case xb.HTML:tO(e,t);break;case xb.NOFRAMES:zy(e,t)}}(this,e);break;case _y.AFTER_AFTER_BODY:!function(e,t){t.tagID===xb.HTML?tO(e,t):SO(e,t)}(this,e);break;case _y.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case xb.HTML:tO(e,t);break;case xb.NOFRAMES:zy(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===xb.P||t.tagID===xb.BR)return _O(e),void e._endTagOutsideForeignContent(t);for(let r=e.openElements.stackTop;r>0;r--){const n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===fb.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(n);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(r);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case _y.INITIAL:Uy(this,e);break;case _y.BEFORE_HTML:!function(e,t){const r=t.tagID;r!==xb.HTML&&r!==xb.HEAD&&r!==xb.BODY&&r!==xb.BR||Fy(e,t)}(this,e);break;case _y.BEFORE_HEAD:!function(e,t){const r=t.tagID;r===xb.HEAD||r===xb.BODY||r===xb.HTML||r===xb.BR?Qy(e,t):e._err(t,Xv.endTagWithoutMatchingOpenElement)}(this,e);break;case _y.IN_HEAD:!function(e,t){switch(t.tagID){case xb.HEAD:e.openElements.pop(),e.insertionMode=_y.AFTER_HEAD;break;case xb.BODY:case xb.BR:case xb.HTML:Hy(e,t);break;case xb.TEMPLATE:qy(e,t);break;default:e._err(t,Xv.endTagWithoutMatchingOpenElement)}}(this,e);break;case _y.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case xb.NOSCRIPT:e.openElements.pop(),e.insertionMode=_y.IN_HEAD;break;case xb.BR:Vy(e,t);break;default:e._err(t,Xv.endTagWithoutMatchingOpenElement)}}(this,e);break;case _y.AFTER_HEAD:!function(e,t){switch(t.tagID){case xb.BODY:case xb.HTML:case xb.BR:Zy(e,t);break;case xb.TEMPLATE:qy(e,t);break;default:e._err(t,Xv.endTagWithoutMatchingOpenElement)}}(this,e);break;case _y.IN_BODY:nO(this,e);break;case _y.TEXT:!function(e,t){var r;t.tagID===xb.SCRIPT&&(null===(r=e.scriptHandler)||void 0===r||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break;case _y.IN_TABLE:sO(this,e);break;case _y.IN_TABLE_TEXT:dO(this,e);break;case _y.IN_CAPTION:!function(e,t){const r=t.tagID;switch(r){case xb.CAPTION:case xb.TABLE:e.openElements.hasInTableScope(xb.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(xb.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=_y.IN_TABLE,r===xb.TABLE&&sO(e,t));break;case xb.BODY:case xb.COL:case xb.COLGROUP:case xb.HTML:case xb.TBODY:case xb.TD:case xb.TFOOT:case xb.TH:case xb.THEAD:case xb.TR:break;default:nO(e,t)}}(this,e);break;case _y.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case xb.COLGROUP:e.openElements.currentTagId===xb.COLGROUP&&(e.openElements.pop(),e.insertionMode=_y.IN_TABLE);break;case xb.TEMPLATE:qy(e,t);break;case xb.COL:break;default:fO(e,t)}}(this,e);break;case _y.IN_TABLE_BODY:gO(this,e);break;case _y.IN_ROW:bO(this,e);break;case _y.IN_CELL:!function(e,t){const r=t.tagID;switch(r){case xb.TD:case xb.TH:e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=_y.IN_ROW);break;case xb.TABLE:case xb.TBODY:case xb.TFOOT:case xb.THEAD:case xb.TR:e.openElements.hasInTableScope(r)&&(e._closeTableCell(),bO(e,t));break;case xb.BODY:case xb.CAPTION:case xb.COL:case xb.COLGROUP:case xb.HTML:break;default:nO(e,t)}}(this,e);break;case _y.IN_SELECT:OO(this,e);break;case _y.IN_SELECT_IN_TABLE:!function(e,t){const r=t.tagID;r===xb.CAPTION||r===xb.TABLE||r===xb.TBODY||r===xb.TFOOT||r===xb.THEAD||r===xb.TR||r===xb.TD||r===xb.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(xb.SELECT),e._resetInsertionMode(),e.onEndTag(t)):OO(e,t)}(this,e);break;case _y.IN_TEMPLATE:!function(e,t){t.tagID===xb.TEMPLATE&&qy(e,t)}(this,e);break;case _y.AFTER_BODY:xO(this,e);break;case _y.IN_FRAMESET:!function(e,t){t.tagID!==xb.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===xb.FRAMESET||(e.insertionMode=_y.AFTER_FRAMESET))}(this,e);break;case _y.AFTER_FRAMESET:!function(e,t){t.tagID===xb.HTML&&(e.insertionMode=_y.AFTER_AFTER_FRAMESET)}(this,e);break;case _y.AFTER_AFTER_BODY:SO(this,e)}}onEof(e){switch(this.insertionMode){case _y.INITIAL:Uy(this,e);break;case _y.BEFORE_HTML:Fy(this,e);break;case _y.BEFORE_HEAD:Qy(this,e);break;case _y.IN_HEAD:Hy(this,e);break;case _y.IN_HEAD_NO_SCRIPT:Vy(this,e);break;case _y.AFTER_HEAD:Zy(this,e);break;case _y.IN_BODY:case _y.IN_TABLE:case _y.IN_CAPTION:case _y.IN_COLUMN_GROUP:case _y.IN_TABLE_BODY:case _y.IN_ROW:case _y.IN_CELL:case _y.IN_SELECT:case _y.IN_SELECT_IN_TABLE:aO(this,e);break;case _y.TEXT:!function(e,t){e._err(t,Xv.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case _y.IN_TABLE_TEXT:dO(this,e);break;case _y.IN_TEMPLATE:wO(this,e);break;case _y.AFTER_BODY:case _y.IN_FRAMESET:case _y.AFTER_FRAMESET:case _y.AFTER_AFTER_BODY:case _y.AFTER_AFTER_FRAMESET:By(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===Fv.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case _y.IN_HEAD:case _y.IN_HEAD_NO_SCRIPT:case _y.AFTER_HEAD:case _y.TEXT:case _y.IN_COLUMN_GROUP:case _y.IN_SELECT:case _y.IN_SELECT_IN_TABLE:case _y.IN_FRAMESET:case _y.AFTER_FRAMESET:this._insertCharacters(e);break;case _y.IN_BODY:case _y.IN_CAPTION:case _y.IN_CELL:case _y.IN_TEMPLATE:case _y.AFTER_BODY:case _y.AFTER_AFTER_BODY:case _y.AFTER_AFTER_FRAMESET:Xy(this,e);break;case _y.IN_TABLE:case _y.IN_TABLE_BODY:case _y.IN_ROW:oO(this,e);break;case _y.IN_TABLE_TEXT:cO(this,e)}}};function Dy(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):rO(e,t),r}function $y(e,t){let r=null,n=e.openElements.stackTop;for(;n>=0;n--){const a=e.openElements.items[n];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[n])&&(r=a)}return r||(e.openElements.shortenToLength(n<0?0:n),e.activeFormattingElements.removeEntry(t)),r}function Ry(e,t,r){let n=t,a=e.openElements.getCommonAncestor(t);for(let o=0,i=a;i!==r;o++,i=a){a=e.openElements.getCommonAncestor(i);const r=e.activeFormattingElements.getElementEntry(i),s=r&&o>=3;!r||s?(s&&e.activeFormattingElements.removeEntry(r),e.openElements.remove(i)):(i=My(e,r),n===t&&(e.activeFormattingElements.bookmark=r),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(i,n),n=i)}return n}function My(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function Ny(e,t,r){const n=Pb(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(n))e._fosterParentElement(r);else{const a=e.treeAdapter.getNamespaceURI(t);n===xb.TEMPLATE&&a===fb.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function Iy(e,t,r){const n=e.treeAdapter.getNamespaceURI(r.element),{token:a}=r,o=e.treeAdapter.createElement(a.tagName,n,a.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,a),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,o,a.tagID)}function Ly(e,t){for(let r=0;r<8;r++){const r=Dy(e,t);if(!r)break;const n=$y(e,r);if(!n)break;e.activeFormattingElements.bookmark=r;const a=Ry(e,n,r.element),o=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),o&&Ny(e,o,a),Iy(e,n,r)}}function jy(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function By(e,t){if(e.stopped=!0,t.location){const r=e.fragmentContext?0:2;for(let n=e.openElements.stackTop;n>=r;n--)e._setEndLocation(e.openElements.items[n],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],n=e.treeAdapter.getNodeSourceCodeLocation(r);if(n&&!n.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const r=e.openElements.items[1],n=e.treeAdapter.getNodeSourceCodeLocation(r);n&&!n.endTag&&e._setEndLocation(r,t)}}}}function Uy(e,t){e._err(t,Xv.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,bb.QUIRKS),e.insertionMode=_y.BEFORE_HTML,e._processToken(t)}function Fy(e,t){e._insertFakeRootElement(),e.insertionMode=_y.BEFORE_HEAD,e._processToken(t)}function Qy(e,t){e._insertFakeElement(Ob.HEAD,xb.HEAD),e.headElement=e.openElements.current,e.insertionMode=_y.IN_HEAD,e._processToken(t)}function zy(e,t){switch(t.tagID){case xb.HTML:tO(e,t);break;case xb.BASE:case xb.BASEFONT:case xb.BGSOUND:case xb.LINK:case xb.META:e._appendElement(t,fb.HTML),t.ackSelfClosing=!0;break;case xb.TITLE:e._switchToTextParsing(t,Lb.RCDATA);break;case xb.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,Lb.RAWTEXT):(e._insertElement(t,fb.HTML),e.insertionMode=_y.IN_HEAD_NO_SCRIPT);break;case xb.NOFRAMES:case xb.STYLE:e._switchToTextParsing(t,Lb.RAWTEXT);break;case xb.SCRIPT:e._switchToTextParsing(t,Lb.SCRIPT_DATA);break;case xb.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=_y.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(_y.IN_TEMPLATE);break;case xb.HEAD:e._err(t,Xv.misplacedStartTagForHeadElement);break;default:Hy(e,t)}}function qy(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==xb.TEMPLATE&&e._err(t,Xv.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(xb.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Xv.endTagWithoutMatchingOpenElement)}function Hy(e,t){e.openElements.pop(),e.insertionMode=_y.AFTER_HEAD,e._processToken(t)}function Vy(e,t){const r=t.type===Yv.EOF?Xv.openElementsLeftAfterEof:Xv.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=_y.IN_HEAD,e._processToken(t)}function Zy(e,t){e._insertFakeElement(Ob.BODY,xb.BODY),e.insertionMode=_y.IN_BODY,Wy(e,t)}function Wy(e,t){switch(t.type){case Yv.CHARACTER:Gy(e,t);break;case Yv.WHITESPACE_CHARACTER:Xy(e,t);break;case Yv.COMMENT:jy(e,t);break;case Yv.START_TAG:tO(e,t);break;case Yv.END_TAG:nO(e,t);break;case Yv.EOF:aO(e,t)}}function Xy(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Gy(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Yy(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,fb.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ky(e){const t=eb(e,gb.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function Jy(e,t){e._switchToTextParsing(t,Lb.RAWTEXT)}function eO(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,fb.HTML)}function tO(e,t){switch(t.tagID){case xb.I:case xb.S:case xb.B:case xb.U:case xb.EM:case xb.TT:case xb.BIG:case xb.CODE:case xb.FONT:case xb.SMALL:case xb.STRIKE:case xb.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,fb.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case xb.A:!function(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(Ob.A);r&&(Ly(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,fb.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case xb.H1:case xb.H2:case xb.H3:case xb.H4:case xb.H5:case xb.H6:!function(e,t){e.openElements.hasInButtonScope(xb.P)&&e._closePElement(),Rb(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,fb.HTML)}(e,t);break;case xb.P:case xb.DL:case xb.OL:case xb.UL:case xb.DIV:case xb.DIR:case xb.NAV:case xb.MAIN:case xb.MENU:case xb.ASIDE:case xb.CENTER:case xb.FIGURE:case xb.FOOTER:case xb.HEADER:case xb.HGROUP:case xb.DIALOG:case xb.DETAILS:case xb.ADDRESS:case xb.ARTICLE:case xb.SECTION:case xb.SUMMARY:case xb.FIELDSET:case xb.BLOCKQUOTE:case xb.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(xb.P)&&e._closePElement(),e._insertElement(t,fb.HTML)}(e,t);break;case xb.LI:case xb.DD:case xb.DT:!function(e,t){e.framesetOk=!1;const r=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){const n=e.openElements.tagIDs[t];if(r===xb.LI&&n===xb.LI||(r===xb.DD||r===xb.DT)&&(n===xb.DD||n===xb.DT)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n);break}if(n!==xb.ADDRESS&&n!==xb.DIV&&n!==xb.P&&e._isSpecialElement(e.openElements.items[t],n))break}e.openElements.hasInButtonScope(xb.P)&&e._closePElement(),e._insertElement(t,fb.HTML)}(e,t);break;case xb.BR:case xb.IMG:case xb.WBR:case xb.AREA:case xb.EMBED:case xb.KEYGEN:Yy(e,t);break;case xb.HR:!function(e,t){e.openElements.hasInButtonScope(xb.P)&&e._closePElement(),e._appendElement(t,fb.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case xb.RB:case xb.RTC:!function(e,t){e.openElements.hasInScope(xb.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,fb.HTML)}(e,t);break;case xb.RT:case xb.RP:!function(e,t){e.openElements.hasInScope(xb.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(xb.RTC),e._insertElement(t,fb.HTML)}(e,t);break;case xb.PRE:case xb.LISTING:!function(e,t){e.openElements.hasInButtonScope(xb.P)&&e._closePElement(),e._insertElement(t,fb.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case xb.XMP:!function(e,t){e.openElements.hasInButtonScope(xb.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Lb.RAWTEXT)}(e,t);break;case xb.SVG:!function(e,t){e._reconstructActiveFormattingElements(),ky(t),Sy(t),t.selfClosing?e._appendElement(t,fb.SVG):e._insertElement(t,fb.SVG),t.ackSelfClosing=!0}(e,t);break;case xb.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case xb.BASE:case xb.LINK:case xb.META:case xb.STYLE:case xb.TITLE:case xb.SCRIPT:case xb.BGSOUND:case xb.BASEFONT:case xb.TEMPLATE:zy(e,t);break;case xb.BODY:!function(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}(e,t);break;case xb.FORM:!function(e,t){const r=e.openElements.tmplCount>0;e.formElement&&!r||(e.openElements.hasInButtonScope(xb.P)&&e._closePElement(),e._insertElement(t,fb.HTML),r||(e.formElement=e.openElements.current))}(e,t);break;case xb.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(xb.NOBR)&&(Ly(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,fb.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case xb.MATH:!function(e,t){e._reconstructActiveFormattingElements(),xy(t),Sy(t),t.selfClosing?e._appendElement(t,fb.MATHML):e._insertElement(t,fb.MATHML),t.ackSelfClosing=!0}(e,t);break;case xb.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==bb.QUIRKS&&e.openElements.hasInButtonScope(xb.P)&&e._closePElement(),e._insertElement(t,fb.HTML),e.framesetOk=!1,e.insertionMode=_y.IN_TABLE}(e,t);break;case xb.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,fb.HTML),Ky(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case xb.PARAM:case xb.TRACK:case xb.SOURCE:!function(e,t){e._appendElement(t,fb.HTML),t.ackSelfClosing=!0}(e,t);break;case xb.IMAGE:!function(e,t){t.tagName=Ob.IMG,t.tagID=xb.IMG,Yy(e,t)}(e,t);break;case xb.BUTTON:!function(e,t){e.openElements.hasInScope(xb.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(xb.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,fb.HTML),e.framesetOk=!1}(e,t);break;case xb.APPLET:case xb.OBJECT:case xb.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,fb.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case xb.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Lb.RAWTEXT)}(e,t);break;case xb.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,fb.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===_y.IN_TABLE||e.insertionMode===_y.IN_CAPTION||e.insertionMode===_y.IN_TABLE_BODY||e.insertionMode===_y.IN_ROW||e.insertionMode===_y.IN_CELL?_y.IN_SELECT_IN_TABLE:_y.IN_SELECT}(e,t);break;case xb.OPTION:case xb.OPTGROUP:!function(e,t){e.openElements.currentTagId===xb.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,fb.HTML)}(e,t);break;case xb.NOEMBED:Jy(e,t);break;case xb.FRAMESET:!function(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,fb.HTML),e.insertionMode=_y.IN_FRAMESET)}(e,t);break;case xb.TEXTAREA:!function(e,t){e._insertElement(t,fb.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Lb.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=_y.TEXT}(e,t);break;case xb.NOSCRIPT:e.options.scriptingEnabled?Jy(e,t):eO(e,t);break;case xb.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(xb.P)&&e._closePElement(),e._insertElement(t,fb.HTML),e.tokenizer.state=Lb.PLAINTEXT}(e,t);break;case xb.COL:case xb.TH:case xb.TD:case xb.TR:case xb.HEAD:case xb.FRAME:case xb.TBODY:case xb.TFOOT:case xb.THEAD:case xb.CAPTION:case xb.COLGROUP:break;default:eO(e,t)}}function rO(e,t){const r=t.tagName,n=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){const a=e.openElements.items[t],o=e.openElements.tagIDs[t];if(n===o&&(n!==xb.UNKNOWN||e.treeAdapter.getTagName(a)===r)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(a,o))break}}function nO(e,t){switch(t.tagID){case xb.A:case xb.B:case xb.I:case xb.S:case xb.U:case xb.EM:case xb.TT:case xb.BIG:case xb.CODE:case xb.FONT:case xb.NOBR:case xb.SMALL:case xb.STRIKE:case xb.STRONG:Ly(e,t);break;case xb.P:!function(e){e.openElements.hasInButtonScope(xb.P)||e._insertFakeElement(Ob.P,xb.P),e._closePElement()}(e);break;case xb.DL:case xb.UL:case xb.OL:case xb.DIR:case xb.DIV:case xb.NAV:case xb.PRE:case xb.MAIN:case xb.MENU:case xb.ASIDE:case xb.BUTTON:case xb.CENTER:case xb.FIGURE:case xb.FOOTER:case xb.HEADER:case xb.HGROUP:case xb.DIALOG:case xb.ADDRESS:case xb.ARTICLE:case xb.DETAILS:case xb.SECTION:case xb.SUMMARY:case xb.LISTING:case xb.FIELDSET:case xb.BLOCKQUOTE:case xb.FIGCAPTION:!function(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}(e,t);break;case xb.LI:!function(e){e.openElements.hasInListItemScope(xb.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(xb.LI),e.openElements.popUntilTagNamePopped(xb.LI))}(e);break;case xb.DD:case xb.DT:!function(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}(e,t);break;case xb.H1:case xb.H2:case xb.H3:case xb.H4:case xb.H5:case xb.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case xb.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Ob.BR,xb.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case xb.BODY:!function(e,t){if(e.openElements.hasInScope(xb.BODY)&&(e.insertionMode=_y.AFTER_BODY,e.options.sourceCodeLocationInfo)){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}(e,t);break;case xb.HTML:!function(e,t){e.openElements.hasInScope(xb.BODY)&&(e.insertionMode=_y.AFTER_BODY,xO(e,t))}(e,t);break;case xb.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(xb.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(xb.FORM):r&&e.openElements.remove(r))}(e);break;case xb.APPLET:case xb.OBJECT:case xb.MARQUEE:!function(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case xb.TEMPLATE:qy(e,t);break;default:rO(e,t)}}function aO(e,t){e.tmplInsertionModeStack.length>0?wO(e,t):By(e,t)}function oO(e,t){if(Ay.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=_y.IN_TABLE_TEXT,t.type){case Yv.CHARACTER:uO(e,t);break;case Yv.WHITESPACE_CHARACTER:cO(e,t)}else lO(e,t)}function iO(e,t){switch(t.tagID){case xb.TD:case xb.TH:case xb.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Ob.TBODY,xb.TBODY),e.insertionMode=_y.IN_TABLE_BODY,mO(e,t)}(e,t);break;case xb.STYLE:case xb.SCRIPT:case xb.TEMPLATE:zy(e,t);break;case xb.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Ob.COLGROUP,xb.COLGROUP),e.insertionMode=_y.IN_COLUMN_GROUP,hO(e,t)}(e,t);break;case xb.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,fb.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case xb.TABLE:!function(e,t){e.openElements.hasInTableScope(xb.TABLE)&&(e.openElements.popUntilTagNamePopped(xb.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case xb.TBODY:case xb.TFOOT:case xb.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,fb.HTML),e.insertionMode=_y.IN_TABLE_BODY}(e,t);break;case xb.INPUT:!function(e,t){Ky(t)?e._appendElement(t,fb.HTML):lO(e,t),t.ackSelfClosing=!0}(e,t);break;case xb.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,fb.HTML),e.insertionMode=_y.IN_CAPTION}(e,t);break;case xb.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,fb.HTML),e.insertionMode=_y.IN_COLUMN_GROUP}(e,t);break;default:lO(e,t)}}function sO(e,t){switch(t.tagID){case xb.TABLE:e.openElements.hasInTableScope(xb.TABLE)&&(e.openElements.popUntilTagNamePopped(xb.TABLE),e._resetInsertionMode());break;case xb.TEMPLATE:qy(e,t);break;case xb.BODY:case xb.CAPTION:case xb.COL:case xb.COLGROUP:case xb.HTML:case xb.TBODY:case xb.TD:case xb.TFOOT:case xb.TH:case xb.THEAD:case xb.TR:break;default:lO(e,t)}}function lO(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Wy(e,t),e.fosterParentingEnabled=r}function cO(e,t){e.pendingCharacterTokens.push(t)}function uO(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function dO(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)lO(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const pO=new Set([xb.CAPTION,xb.COL,xb.COLGROUP,xb.TBODY,xb.TD,xb.TFOOT,xb.TH,xb.THEAD,xb.TR]);function hO(e,t){switch(t.tagID){case xb.HTML:tO(e,t);break;case xb.COL:e._appendElement(t,fb.HTML),t.ackSelfClosing=!0;break;case xb.TEMPLATE:zy(e,t);break;default:fO(e,t)}}function fO(e,t){e.openElements.currentTagId===xb.COLGROUP&&(e.openElements.pop(),e.insertionMode=_y.IN_TABLE,e._processToken(t))}function mO(e,t){switch(t.tagID){case xb.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,fb.HTML),e.insertionMode=_y.IN_ROW;break;case xb.TH:case xb.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Ob.TR,xb.TR),e.insertionMode=_y.IN_ROW,vO(e,t);break;case xb.CAPTION:case xb.COL:case xb.COLGROUP:case xb.TBODY:case xb.TFOOT:case xb.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_y.IN_TABLE,iO(e,t));break;default:iO(e,t)}}function gO(e,t){const r=t.tagID;switch(t.tagID){case xb.TBODY:case xb.TFOOT:case xb.THEAD:e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_y.IN_TABLE);break;case xb.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_y.IN_TABLE,sO(e,t));break;case xb.BODY:case xb.CAPTION:case xb.COL:case xb.COLGROUP:case xb.HTML:case xb.TD:case xb.TH:case xb.TR:break;default:sO(e,t)}}function vO(e,t){switch(t.tagID){case xb.TH:case xb.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,fb.HTML),e.insertionMode=_y.IN_CELL,e.activeFormattingElements.insertMarker();break;case xb.CAPTION:case xb.COL:case xb.COLGROUP:case xb.TBODY:case xb.TFOOT:case xb.THEAD:case xb.TR:e.openElements.hasInTableScope(xb.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=_y.IN_TABLE_BODY,mO(e,t));break;default:iO(e,t)}}function bO(e,t){switch(t.tagID){case xb.TR:e.openElements.hasInTableScope(xb.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=_y.IN_TABLE_BODY);break;case xb.TABLE:e.openElements.hasInTableScope(xb.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=_y.IN_TABLE_BODY,gO(e,t));break;case xb.TBODY:case xb.TFOOT:case xb.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(xb.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=_y.IN_TABLE_BODY,gO(e,t));break;case xb.BODY:case xb.CAPTION:case xb.COL:case xb.COLGROUP:case xb.HTML:case xb.TD:case xb.TH:break;default:sO(e,t)}}function yO(e,t){switch(t.tagID){case xb.HTML:tO(e,t);break;case xb.OPTION:e.openElements.currentTagId===xb.OPTION&&e.openElements.pop(),e._insertElement(t,fb.HTML);break;case xb.OPTGROUP:e.openElements.currentTagId===xb.OPTION&&e.openElements.pop(),e.openElements.currentTagId===xb.OPTGROUP&&e.openElements.pop(),e._insertElement(t,fb.HTML);break;case xb.INPUT:case xb.KEYGEN:case xb.TEXTAREA:case xb.SELECT:e.openElements.hasInSelectScope(xb.SELECT)&&(e.openElements.popUntilTagNamePopped(xb.SELECT),e._resetInsertionMode(),t.tagID!==xb.SELECT&&e._processStartTag(t));break;case xb.SCRIPT:case xb.TEMPLATE:zy(e,t)}}function OO(e,t){switch(t.tagID){case xb.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===xb.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===xb.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===xb.OPTGROUP&&e.openElements.pop();break;case xb.OPTION:e.openElements.currentTagId===xb.OPTION&&e.openElements.pop();break;case xb.SELECT:e.openElements.hasInSelectScope(xb.SELECT)&&(e.openElements.popUntilTagNamePopped(xb.SELECT),e._resetInsertionMode());break;case xb.TEMPLATE:qy(e,t)}}function wO(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(xb.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):By(e,t)}function xO(e,t){var r;if(t.tagID===xb.HTML){if(e.fragmentContext||(e.insertionMode=_y.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===xb.HTML){e._setEndLocation(e.openElements.items[0],t);const n=e.openElements.items[1];n&&!(null===(r=e.treeAdapter.getNodeSourceCodeLocation(n))||void 0===r?void 0:r.endTag)&&e._setEndLocation(n,t)}}else kO(e,t)}function kO(e,t){e.insertionMode=_y.IN_BODY,Wy(e,t)}function SO(e,t){e.insertionMode=_y.IN_BODY,Wy(e,t)}function _O(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==fb.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function EO(e,t){return Py.parse(e,t)}function TO(e,t,r){"string"==typeof e&&(r=t,t=e,e=null);const n=Py.getFragmentParser(e,r);return n.tokenizer.write(t,!0),n.getFragment()}Ob.AREA,Ob.BASE,Ob.BASEFONT,Ob.BGSOUND,Ob.BR,Ob.COL,Ob.EMBED,Ob.FRAME,Ob.HR,Ob.IMG,Ob.INPUT,Ob.KEYGEN,Ob.LINK,Ob.META,Ob.PARAM,Ob.SOURCE,Ob.TRACK,Ob.WBR;const AO=PO("end"),CO=PO("start");function PO(e){return function(t){const r=t&&t.position&&t.position[e]||{};if("number"==typeof r.line&&r.line>0&&"number"==typeof r.column&&r.column>0)return{line:r.line,column:r.column,offset:"number"==typeof r.offset&&r.offset>-1?r.offset:void 0}}}function DO(e){const t=CO(e),r=AO(e);if(t&&r)return{start:t,end:r}}const $O=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),RO={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function MO(e,t){const r=function(e){const t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),n=Dv("type",{handlers:{root:IO,element:LO,text:jO,comment:UO,doctype:BO,raw:FO},unknown:QO}),a={parser:r?new Py(RO):Py.getFragmentParser(void 0,RO),handle(e){n(e,a)},stitches:!1,options:t||{}};n(e,a),zO(a,CO());const o=Sv(r?a.parser.document:a.parser.getFragment(),{file:a.options.file});return a.stitches&&Xm(o,"comment",(function(e,t,r){const n=e;if(n.value.stitch&&r&&void 0!==t)return r.children[t]=n.value.stitch,t})),"root"===o.type&&1===o.children.length&&o.children[0].type===e.type?o.children[0]:o}function NO(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function IO(e,t){NO(e.children,t)}function LO(e,t){!function(e,t){const r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Lb.PLAINTEXT)return;zO(t,CO(e));const n=t.parser.openElements.current;let a="namespaceURI"in n?n.namespaceURI:wv.html;a===wv.html&&"svg"===r&&(a=wv.svg);const o=function(e,t){return Mv(e,"svg"===(t||$v).space?lv:sv)}({...e,children:[]},{space:a===wv.svg?"svg":"html"}),i={type:Yv.START_TAG,tagName:r,tagID:Pb(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:HO(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}(e,t),NO(e.children,t),function(e,t){const r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&jv.includes(r))return;if(t.parser.tokenizer.state===Lb.PLAINTEXT)return;zO(t,AO(e));const n={type:Yv.END_TAG,tagName:r,tagID:Pb(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:HO(e)};t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken),r!==t.parser.tokenizer.lastStartTagName||t.parser.tokenizer.state!==Lb.RCDATA&&t.parser.tokenizer.state!==Lb.RAWTEXT&&t.parser.tokenizer.state!==Lb.SCRIPT_DATA||(t.parser.tokenizer.state=Lb.DATA)}(e,t)}function jO(e,t){const r={type:Yv.CHARACTER,chars:e.value,location:HO(e)};zO(t,CO(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function BO(e,t){const r={type:Yv.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:HO(e)};zO(t,CO(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function UO(e,t){const r=e.value,n={type:Yv.COMMENT,data:r,location:HO(e)};zO(t,CO(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function FO(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,qO(t,CO(e)),t.parser.tokenizer.write(e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function QO(e,t){const r=e;if(!t.options.passThrough||!t.options.passThrough.includes(r.type)){let e="";throw $O.has(r.type)&&(e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+r.type+"` node"+e)}!function(e,t){t.stitches=!0;const r=function(e){return $m("children"in e?{...e,children:[]}:e)}(e);if("children"in e&&"children"in r){const n=MO({type:"root",children:e.children},t.options);r.children=n.children}UO({type:"comment",value:{stitch:r}},t)}(r,t)}function zO(e,t){qO(e,t);const r=e.parser.tokenizer.currentCharacterToken;r&&r.location&&(r.location.endLine=e.parser.tokenizer.preprocessor.line,r.location.endCol=e.parser.tokenizer.preprocessor.col+1,r.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Lb.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function qO(e,t){if(t&&void 0!==t.offset){const r={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=r}}function HO(e){const t=CO(e)||{line:void 0,column:void 0,offset:void 0},r=AO(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:r.line,endCol:r.column,endOffset:r.offset}}function VO(e){return function(t,r){return MO(t,{...e,file:r})}}const ZO=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],WO={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...ZO,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...ZO],h2:[["className","sr-only"]],img:[...ZO,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...ZO,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...ZO],table:[...ZO],ul:[...ZO,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},XO={}.hasOwnProperty;function GO(e,t){if(t&&"object"==typeof t){const r=t;switch("string"==typeof r.type?r.type:""){case"comment":return function(e,t){if(e.schema.allowComments){const e="string"==typeof t.value?t.value:"",r=e.indexOf("--\x3e"),n={type:"comment",value:r<0?e:e.slice(0,r)};return ew(n,t),n}}(e,r);case"doctype":return function(e,t){if(e.schema.allowDoctypes){const e={type:"doctype"};return ew(e,t),e}}(e,r);case"element":return function(e,t){const r="string"==typeof t.tagName?t.tagName:"";e.stack.push(r);const n=YO(e,t.children),a=function(e,t){const r=e.stack[e.stack.length-1],n=e.schema.attributes,a=e.schema.required,o=n&&XO.call(n,r)?n[r]:void 0,i=n&&XO.call(n,"*")?n["*"]:void 0,s=t&&"object"==typeof t?t:{},l={};let c;for(c in s)if(XO.call(s,c)){const t=s[c];let r=KO(e,tw(o,c),c,t);null==r&&(r=KO(e,tw(i,c),c,t)),null!=r&&(l[c]=r)}if(a&&XO.call(a,r)){const e=a[r];for(c in e)XO.call(e,c)&&!XO.call(l,c)&&(l[c]=e[c])}return l}(e,t.properties);e.stack.pop();let o=!1;if(r&&"*"!==r&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(o=!0,e.schema.ancestors&&XO.call(e.schema.ancestors,r))){const t=e.schema.ancestors[r];let n=-1;for(o=!1;++n<t.length;)e.stack.includes(t[n])&&(o=!0)}if(!o)return e.schema.strip&&!e.schema.strip.includes(r)?n:void 0;const i={type:"element",tagName:r,properties:a,children:n};return ew(i,t),i}(e,r);case"root":return function(e,t){const r={type:"root",children:YO(e,t.children)};return ew(r,t),r}(e,r);case"text":return function(e,t){const r={type:"text",value:"string"==typeof t.value?t.value:""};return ew(r,t),r}(0,r)}}}function YO(e,t){const r=[];if(Array.isArray(t)){const n=t;let a=-1;for(;++a<n.length;){const t=GO(e,n[a]);t&&(Array.isArray(t)?r.push(...t):r.push(t))}}return r}function KO(e,t,r,n){return t?Array.isArray(n)?function(e,t,r,n){let a=-1;const o=[];for(;++a<n.length;){const i=JO(e,t,r,n[a]);"number"!=typeof i&&"string"!=typeof i||o.push(i)}return o}(e,t,r,n):JO(e,t,r,n):void 0}function JO(e,t,r,n){if(("boolean"==typeof n||"number"==typeof n||"string"==typeof n)&&function(e,t,r){const n=e.schema.protocols&&XO.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!n||0===n.length)return!0;const a=String(r),o=a.indexOf(":"),i=a.indexOf("?"),s=a.indexOf("#"),l=a.indexOf("/");if(o<0||l>-1&&o>l||i>-1&&o>i||s>-1&&o>s)return!0;let c=-1;for(;++c<n.length;){const e=n[c];if(o===e.length&&a.slice(0,e.length)===e)return!0}return!1}(e,r,n)){if("object"==typeof t&&t.length>1){let e=!1,r=0;for(;++r<t.length;){const a=t[r];if(a&&"object"==typeof a&&"flags"in a){if(a.test(String(n))){e=!0;break}}else if(a===n){e=!0;break}}if(!e)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+n:n}}function ew(e,t){const r=DO(t);t.data&&(e.data=$m(t.data)),r&&(e.position=r)}function tw(e,t){let r,n=-1;if(e)for(;++n<e.length;){const a=e[n],o="string"==typeof a?a:a[0];if(o===t)return a;"data*"===o&&(r=a)}if(t.length>4&&"data"===t.slice(0,4).toLowerCase())return r}function rw(e){return function(t){const r=function(e,t){let r={type:"root",children:[]};const n=GO({schema:t?{...WO,...t}:WO,stack:[]},e);return n&&(Array.isArray(n)?1===n.length?r=n[0]:r.children=n:r=n),r}(t,e);return r}}const nw=/["&'<>`]/g,aw=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ow=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,iw=/[|\\{}()[\]^$+*?.]/g,sw=new WeakMap;const lw=/[\dA-Fa-f]/,cw=/\d/,uw=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],dw={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},pw=["cent","copy","divide","gt","lt","not","para","times"],hw={}.hasOwnProperty,fw={};let mw;for(mw in dw)hw.call(dw,mw)&&(fw[dw[mw]]=mw);const gw=/[^\dA-Za-z]/;function vw(e,t,r){let n,a=function(e,t,r){const n="&#x"+e.toString(16).toUpperCase();return r&&t&&!lw.test(String.fromCharCode(t))?n:n+";"}(e,t,r.omitOptionalSemicolons);if((r.useNamedReferences||r.useShortestReferences)&&(n=function(e,t,r,n){const a=String.fromCharCode(e);if(hw.call(fw,a)){const e=fw[a],o="&"+e;return r&&uw.includes(e)&&!pw.includes(e)&&(!n||t&&61!==t&&gw.test(String.fromCharCode(t)))?o:o+";"}return""}(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!n)&&r.useShortestReferences){const n=function(e,t,r){const n="&#"+String(e);return r&&t&&!cw.test(String.fromCharCode(t))?n:n+";"}(e,t,r.omitOptionalSemicolons);n.length<a.length&&(a=n)}return n&&(!r.useShortestReferences||n.length<a.length)?n:a}function bw(e,t){return function(e,t){return e=e.replace(t.subset?function(e){let t=sw.get(e);return t||(t=function(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(iw,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(e),sw.set(e,t)),t}(t.subset):nw,r),t.subset||t.escapeOnly?e:e.replace(aw,(function(e,r,n){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,n.charCodeAt(r+2),t)})).replace(ow,r);function r(e,r,n){return t.format(e.charCodeAt(0),n.charCodeAt(r+1),t)}}(e,Object.assign({format:vw},t))}const yw=/^>|^->|<!--|-->|--!>|<!-$/g,Ow=[">"],ww=["<",">"];function xw(e,t){const r=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let n=0,a=r.indexOf(t);for(;-1!==a;)n++,a=r.indexOf(t,a+t.length);return n}const kw=Ew(1),Sw=Ew(-1),_w=[];function Ew(e){return function(t,r,n){const a=t?t.children:_w;let o=(r||0)+e,i=a[o];if(!n)for(;i&&sg(i);)o+=e,i=a[o];return i}}const Tw={}.hasOwnProperty;function Aw(e){return function(t,r,n){return Tw.call(e,t.tagName)&&e[t.tagName](t,r,n)}}const Cw=Aw({body:function(e,t,r){const n=kw(r,t);return!n||"comment"!==n.type},caption:Pw,colgroup:Pw,dd:function(e,t,r){const n=kw(r,t);return!n||"element"===n.type&&("dt"===n.tagName||"dd"===n.tagName)},dt:function(e,t,r){const n=kw(r,t);return Boolean(n&&"element"===n.type&&("dt"===n.tagName||"dd"===n.tagName))},head:Pw,html:function(e,t,r){const n=kw(r,t);return!n||"comment"!==n.type},li:function(e,t,r){const n=kw(r,t);return!n||"element"===n.type&&"li"===n.tagName},optgroup:function(e,t,r){const n=kw(r,t);return!n||"element"===n.type&&"optgroup"===n.tagName},option:function(e,t,r){const n=kw(r,t);return!n||"element"===n.type&&("option"===n.tagName||"optgroup"===n.tagName)},p:function(e,t,r){const n=kw(r,t);return n?"element"===n.type&&("address"===n.tagName||"article"===n.tagName||"aside"===n.tagName||"blockquote"===n.tagName||"details"===n.tagName||"div"===n.tagName||"dl"===n.tagName||"fieldset"===n.tagName||"figcaption"===n.tagName||"figure"===n.tagName||"footer"===n.tagName||"form"===n.tagName||"h1"===n.tagName||"h2"===n.tagName||"h3"===n.tagName||"h4"===n.tagName||"h5"===n.tagName||"h6"===n.tagName||"header"===n.tagName||"hgroup"===n.tagName||"hr"===n.tagName||"main"===n.tagName||"menu"===n.tagName||"nav"===n.tagName||"ol"===n.tagName||"p"===n.tagName||"pre"===n.tagName||"section"===n.tagName||"table"===n.tagName||"ul"===n.tagName):!r||!("element"===r.type&&("a"===r.tagName||"audio"===r.tagName||"del"===r.tagName||"ins"===r.tagName||"map"===r.tagName||"noscript"===r.tagName||"video"===r.tagName))},rp:Dw,rt:Dw,tbody:function(e,t,r){const n=kw(r,t);return!n||"element"===n.type&&("tbody"===n.tagName||"tfoot"===n.tagName)},td:$w,tfoot:function(e,t,r){return!kw(r,t)},th:$w,thead:function(e,t,r){const n=kw(r,t);return Boolean(n&&"element"===n.type&&("tbody"===n.tagName||"tfoot"===n.tagName))},tr:function(e,t,r){const n=kw(r,t);return!n||"element"===n.type&&"tr"===n.tagName}});function Pw(e,t,r){const n=kw(r,t,!0);return!n||"comment"!==n.type&&!("text"===n.type&&sg(n.value.charAt(0)))}function Dw(e,t,r){const n=kw(r,t);return!n||"element"===n.type&&("rp"===n.tagName||"rt"===n.tagName)}function $w(e,t,r){const n=kw(r,t);return!n||"element"===n.type&&("td"===n.tagName||"th"===n.tagName)}const Rw=Aw({body:function(e){const t=kw(e,-1,!0);return!(t&&("comment"===t.type||"text"===t.type&&sg(t.value.charAt(0))||"element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName)))},colgroup:function(e,t,r){const n=Sw(r,t),a=kw(e,-1,!0);return!(r&&n&&"element"===n.type&&"colgroup"===n.tagName&&Cw(n,r.children.indexOf(n),r))&&Boolean(a&&"element"===a.type&&"col"===a.tagName)},head:function(e){const t=e.children,r=[];let n=-1;for(;++n<t.length;){const e=t[n];if("element"===e.type&&("title"===e.tagName||"base"===e.tagName)){if(r.includes(e.tagName))return!1;r.push(e.tagName)}}return t.length>0},html:function(e){const t=kw(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,r){const n=Sw(r,t),a=kw(e,-1);return(!r||!n||"element"!==n.type||"thead"!==n.tagName&&"tbody"!==n.tagName||!Cw(n,r.children.indexOf(n),r))&&Boolean(a&&"element"===a.type&&"tr"===a.tagName)}}),Mw={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Nw(e,t,r){const n=av(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,o=e.settings.allowDangerousCharacters?0:1;let i,s=e.quote;if(!n.overloadedBoolean||r!==n.attribute&&""!==r?(n.boolean||n.overloadedBoolean&&"string"!=typeof r)&&(r=Boolean(r)):r=!0,null==r||!1===r||"number"==typeof r&&Number.isNaN(r))return"";const l=bw(n.attribute,Object.assign({},e.settings.characterReferences,{subset:Mw.name[a][o]}));return!0===r?l:(r=Array.isArray(r)?(n.commaSeparated?uv:Fm)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r?l:(e.settings.preferUnquoted&&(i=bw(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Mw.unquoted[a][o]}))),i!==r&&(e.settings.quoteSmart&&xw(r,s)>xw(r,e.alternative)&&(s=e.alternative),i=s+bw(r,Object.assign({},e.settings.characterReferences,{subset:("'"===s?Mw.single:Mw.double)[a][o],attribute:!0}))+s),l+(i?"="+i:i)))}const Iw=["<","&"];function Lw(e,t,r,n){return!r||"element"!==r.type||"script"!==r.tagName&&"style"!==r.tagName?bw(e.value,Object.assign({},n.settings.characterReferences,{subset:Iw})):e.value}const jw=Dv("type",{invalid:function(e){throw new Error("Expected node, not `"+e+"`")},unknown:function(e){throw new Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,r,n){return n.settings.bogusComments?"<?"+bw(e.value,Object.assign({},n.settings.characterReferences,{subset:Ow}))+">":"\x3c!--"+e.value.replace(yw,(function(e){return bw(e,Object.assign({},n.settings.characterReferences,{subset:ww}))}))+"--\x3e"},doctype:function(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,r,n){const a=n.schema,o="svg"!==a.space&&n.settings.omitOptionalTags;let i="svg"===a.space?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase());const s=[];let l;"html"===a.space&&"svg"===e.tagName&&(n.schema=lv);const c=function(e,t){const r=[];let n,a=-1;if(t)for(n in t)if(null!==t[n]&&void 0!==t[n]){const a=Nw(e,n,t[n]);a&&r.push(a)}for(;++a<r.length;){const t=e.settings.tightAttributes?r[a].charAt(r[a].length-1):void 0;a!==r.length-1&&'"'!==t&&"'"!==t&&(r[a]+=" ")}return r.join("")}(n,e.properties),u=n.all("html"===a.space&&"template"===e.tagName?e.content:e);return n.schema=a,u&&(i=!1),!c&&o&&Rw(e,t,r)||(s.push("<",e.tagName,c?" "+c:""),i&&("svg"===a.space||n.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!n.settings.tightSelfClosing||"/"===l||l&&'"'!==l&&"'"!==l)&&s.push(" "),s.push("/")),s.push(">")),s.push(u),i||o&&Cw(e,t,r)||s.push("</"+e.tagName+">"),s.join("")},raw:function(e,t,r,n){return n.settings.allowDangerousHtml?e.value:Lw(e,0,r,n)},root:function(e,t,r,n){return n.all(e)},text:Lw}}),Bw={},Uw={},Fw=[];function Qw(e,t,r){return jw(e,t,r,this)}function zw(e){const t=[],r=e&&e.children||Fw;let n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}function qw(e){const t={...this.data("settings"),...e};this.compiler=function(e){return function(e,t){const r=t||Bw,n=r.quote||'"',a='"'===n?"'":'"';if('"'!==n&&"'"!==n)throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:Qw,all:zw,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||jv,characterReferences:r.characterReferences||Uw,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:"svg"===r.space?lv:sv,quote:n,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}(e,t)}}const Hw=nx(/[A-Za-z]/),Vw=nx(/[\dA-Za-z]/),Zw=nx(/[#-'*+\--9=?A-Z^-~]/);function Ww(e){return null!==e&&(e<32||127===e)}const Xw=nx(/\d/),Gw=nx(/[\dA-Fa-f]/),Yw=nx(/[!-/:-@[-`{-~]/);function Kw(e){return null!==e&&e<-2}function Jw(e){return null!==e&&(e<0||32===e)}function ex(e){return-2===e||-1===e||32===e}const tx=nx(new RegExp("\\p{P}|\\p{S}","u")),rx=nx(/\s/);function nx(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function ax(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function ox(e){return"function"==typeof e?e:function(){return e}}const ix="phrasing",sx=["autolink","link","image","label"];function lx(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function cx(e){this.config.enter.autolinkProtocol.call(this,e)}function ux(e){this.config.exit.autolinkProtocol.call(this,e)}function dx(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function px(e){this.config.exit.autolinkEmail.call(this,e)}function hx(e){this.exit(e)}function fx(e){!function(e,t,r){const n=Qm((r||{}).ignore||[]),a=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let n=-1;for(;++n<r.length;){const e=r[n];t.push([ax(e[0]),ox(e[1])])}return t}(t);let o=-1;for(;++o<a.length;)Wm(e,"text",i);function i(e,t){let r,i=-1;for(;++i<t.length;){const e=t[i],a=r?r.children:void 0;if(n(e,a?a.indexOf(e):void 0,r))return;r=e}if(r)return function(e,t){const r=t[t.length-1],n=a[o][0],i=a[o][1];let s=0;const l=r.children.indexOf(e);let c=!1,u=[];n.lastIndex=0;let d=n.exec(e.value);for(;d;){const r=d.index,a={index:d.index,input:d.input,stack:[...t,e]};let o=i(...d,a);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?n.lastIndex=r+1:(s!==r&&u.push({type:"text",value:e.value.slice(s,r)}),Array.isArray(o)?u.push(...o):o&&u.push(o),s=r+d[0].length,c=!0),!n.global)break;d=n.exec(e.value)}return c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),r.children.splice(l,1,...u)):u=[e],l+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,mx],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,gx]],{ignore:["link","linkReference"]})}function mx(e,t,r,n,a){let o="";if(!vx(a))return!1;if(/^w/i.test(t)&&(r=t+r,t="",o="http://"),!function(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(r))return!1;const i=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const a=xw(e,"(");let o=xw(e,")");for(;-1!==n&&a>o;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),o++;return[e,r]}(r+n);if(!i[0])return!1;const s={type:"link",title:null,url:o+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[s,{type:"text",value:i[1]}]:s}function gx(e,t,r,n){return!(!vx(n,!0)||/[-\d_]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function vx(e,t){const r=e.input.charCodeAt(e.index-1);return(0===e.index||rx(r)||tx(r))&&(!t||47!==r)}function bx(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function yx(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Ox(){this.buffer()}function wx(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=bx(this.sliceSerialize(e)).toLowerCase()}function xx(e){this.exit(e)}function kx(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Sx(){this.buffer()}function _x(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=bx(this.sliceSerialize(e)).toLowerCase()}function Ex(e){this.exit(e)}function Tx(e,t,r,n){const a=r.createTracker(n);let o=a.move("[^");const i=r.enter("footnoteReference"),s=r.enter("reference");return o+=a.move(r.safe(r.associationId(e),{...a.current(),before:o,after:"]"})),s(),i(),o+=a.move("]"),o}function Ax(e,t,r,n){const a=r.createTracker(n);let o=a.move("[^");const i=r.enter("footnoteDefinition"),s=r.enter("label");return o+=a.move(r.safe(r.associationId(e),{...a.current(),before:o,after:"]"})),s(),o+=a.move("]:"+(e.children&&e.children.length>0?" ":"")),a.shift(4),o+=a.move(r.indentLines(r.containerFlow(e,a.current()),Cx)),i(),o}function Cx(e,t,r){return 0===t?e:(r?"":" ")+e}Tx.peek=function(){return"["};const Px=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Dx(e){this.enter({type:"delete",children:[]},e)}function $x(e){this.exit(e)}function Rx(e,t,r,n){const a=r.createTracker(n),o=r.enter("strikethrough");let i=a.move("~~");return i+=r.containerPhrasing(e,{...a.current(),before:i,after:"~"}),i+=a.move("~~"),o(),i}function Mx(e){return e.length}function Nx(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}Rx.peek=function(){return"~"};const Ix={}.hasOwnProperty;function Lx(e,t){let r,n=-1;if(t.extensions)for(;++n<t.extensions.length;)Lx(e,t.extensions[n]);for(r in t)if(Ix.call(t,r))switch(r){case"extensions":break;case"unsafe":case"join":jx(e[r],t[r]);break;case"handlers":Bx(e[r],t[r]);break;default:e.options[r]=t[r]}return e}function jx(e,t){t&&e.push(...t)}function Bx(e,t){t&&Object.assign(e,t)}function Ux(e,t,r){return">"+(r?"":" ")+e}function Fx(e,t){return Qx(e,t.inConstruct,!0)&&!Qx(e,t.notInConstruct,!1)}function Qx(e,t,r){if("string"==typeof t&&(t=[t]),!t||0===t.length)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function zx(e,t,r,n){let a=-1;for(;++a<r.unsafe.length;)if("\n"===r.unsafe[a].character&&Fx(r.stack,r.unsafe[a]))return/[ \t]/.test(n.before)?"":" ";return"\\\n"}function qx(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Hx(e,t,r){return(r?"":" ")+e}function Vx(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Zx(e,t,r,n){const a=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(r),o=r.enter("emphasis"),i=r.createTracker(n);let s=i.move(a);return s+=i.move(r.containerPhrasing(e,{before:s,after:a,...i.current()})),s+=i.move(a),o(),s}Zx.peek=function(e,t,r){return r.options.emphasis||"*"};const Wx={};function Xx(e,t){return Gx(e,"boolean"!=typeof Wx.includeImageAlt||Wx.includeImageAlt,"boolean"!=typeof Wx.includeHtml||Wx.includeHtml)}function Gx(e,t,r){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||r?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Yx(e.children,t,r)}return Array.isArray(e)?Yx(e,t,r):""}function Yx(e,t,r){const n=[];let a=-1;for(;++a<e.length;)n[a]=Gx(e[a],t,r);return n.join("")}function Kx(e,t){let r=!1;return Xm(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,Vm})),Boolean((!e.depth||e.depth<3)&&Xx(e)&&(t.options.setext||r))}function Jx(e){return e.value||""}function ek(e,t,r,n){const a=Vx(r),o='"'===a?"Quote":"Apostrophe",i=r.enter("image");let s=r.enter("label");const l=r.createTracker(n);let c=l.move("![");return c+=l.move(r.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(r.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=r.enter("destinationRaw"),c+=l.move(r.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=r.enter(`title${o}`),c+=l.move(" "+a),c+=l.move(r.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),c+=l.move(")"),i(),c}function tk(e,t,r,n){const a=e.referenceType,o=r.enter("imageReference");let i=r.enter("label");const s=r.createTracker(n);let l=s.move("![");const c=r.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),i();const u=r.stack;r.stack=[],i=r.enter("reference");const d=r.safe(r.associationId(e),{before:l,after:"]",...s.current()});return i(),r.stack=u,o(),"full"!==a&&c&&c===d?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function rk(e,t,r){let n=e.value||"",a="`",o=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(n);)a+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++o<r.unsafe.length;){const e=r.unsafe[o],t=r.compilePattern(e);let a;if(e.atBreak)for(;a=t.exec(n);){let e=a.index;10===n.charCodeAt(e)&&13===n.charCodeAt(e-1)&&e--,n=n.slice(0,e)+" "+n.slice(a.index+1)}}return a+n+a}function nk(e,t){const r=Xx(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function ak(e,t,r,n){const a=Vx(r),o='"'===a?"Quote":"Apostrophe",i=r.createTracker(n);let s,l;if(nk(e,r)){const t=r.stack;r.stack=[],s=r.enter("autolink");let n=i.move("<");return n+=i.move(r.containerPhrasing(e,{before:n,after:">",...i.current()})),n+=i.move(">"),s(),r.stack=t,n}s=r.enter("link"),l=r.enter("label");let c=i.move("[");return c+=i.move(r.containerPhrasing(e,{before:c,after:"](",...i.current()})),c+=i.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),c+=i.move("<"),c+=i.move(r.safe(e.url,{before:c,after:">",...i.current()})),c+=i.move(">")):(l=r.enter("destinationRaw"),c+=i.move(r.safe(e.url,{before:c,after:e.title?" ":")",...i.current()}))),l(),e.title&&(l=r.enter(`title${o}`),c+=i.move(" "+a),c+=i.move(r.safe(e.title,{before:c,after:a,...i.current()})),c+=i.move(a),l()),c+=i.move(")"),s(),c}function ok(e,t,r,n){const a=e.referenceType,o=r.enter("linkReference");let i=r.enter("label");const s=r.createTracker(n);let l=s.move("[");const c=r.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),i();const u=r.stack;r.stack=[],i=r.enter("reference");const d=r.safe(r.associationId(e),{before:l,after:"]",...s.current()});return i(),r.stack=u,o(),"full"!==a&&c&&c===d?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function ik(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function sk(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}Jx.peek=function(){return"<"},ek.peek=function(){return"!"},tk.peek=function(){return"!"},rk.peek=function(){return"`"},ak.peek=function(e,t,r){return nk(e,r)?"<":"["},ok.peek=function(){return"["};const lk=Qm(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ck(e,t,r,n){const a=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(r),o=r.enter("strong"),i=r.createTracker(n);let s=i.move(a+a);return s+=i.move(r.containerPhrasing(e,{before:s,after:a,...i.current()})),s+=i.move(a+a),o(),s}ck.peek=function(e,t,r){return r.options.strong||"*"};const uk={blockquote:function(e,t,r,n){const a=r.enter("blockquote"),o=r.createTracker(n);o.move("> "),o.shift(2);const i=r.indentLines(r.containerFlow(e,o.current()),Ux);return a(),i},break:zx,code:function(e,t,r,n){const a=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(r),o=e.value||"",i="`"===a?"GraveAccent":"Tilde";if(qx(e,r)){const e=r.enter("codeIndented"),t=r.indentLines(o,Hx);return e(),t}const s=r.createTracker(n),l=a.repeat(Math.max(function(e,t){const r=String(e);let n=r.indexOf(t),a=n,o=0,i=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==n;)n===a?++o>i&&(i=o):o=1,a=n+t.length,n=r.indexOf(t,a);return i}(o,a)+1,3)),c=r.enter("codeFenced");let u=s.move(l);if(e.lang){const t=r.enter(`codeFencedLang${i}`);u+=s.move(r.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=r.enter(`codeFencedMeta${i}`);u+=s.move(" "),u+=s.move(r.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),o&&(u+=s.move(o+"\n")),u+=s.move(l),c(),u},definition:function(e,t,r,n){const a=Vx(r),o='"'===a?"Quote":"Apostrophe",i=r.enter("definition");let s=r.enter("label");const l=r.createTracker(n);let c=l.move("[");return c+=l.move(r.safe(r.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(r.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=r.enter("destinationRaw"),c+=l.move(r.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=r.enter(`title${o}`),c+=l.move(" "+a),c+=l.move(r.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),i(),c},emphasis:Zx,hardBreak:zx,heading:function(e,t,r,n){const a=Math.max(Math.min(6,e.depth||1),1),o=r.createTracker(n);if(Kx(e,r)){const t=r.enter("headingSetext"),n=r.enter("phrasing"),i=r.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return n(),t(),i+"\n"+(1===a?"=":"-").repeat(i.length-(Math.max(i.lastIndexOf("\r"),i.lastIndexOf("\n"))+1))}const i="#".repeat(a),s=r.enter("headingAtx"),l=r.enter("phrasing");o.move(i+" ");let c=r.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?i+" "+c:i,r.options.closeAtx&&(c+=" "+i),l(),s(),c},html:Jx,image:ek,imageReference:tk,inlineCode:rk,link:ak,linkReference:ok,list:function(e,t,r,n){const a=r.enter("list"),o=r.bulletCurrent;let i=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(r):ik(r);const s=e.ordered?"."===i?")":".":function(e){const t=ik(e),r=e.options.bulletOther;if(!r)return"*"===t?"-":"*";if("*"!==r&&"+"!==r&&"-"!==r)throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}(r);let l=!(!t||!r.bulletLastUsed)&&i===r.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==i&&"-"!==i||!t||t.children&&t.children[0]||"list"!==r.stack[r.stack.length-1]||"listItem"!==r.stack[r.stack.length-2]||"list"!==r.stack[r.stack.length-3]||"listItem"!==r.stack[r.stack.length-4]||0!==r.indexStack[r.indexStack.length-1]||0!==r.indexStack[r.indexStack.length-2]||0!==r.indexStack[r.indexStack.length-3]||(l=!0),sk(r)===i&&t){let t=-1;for(;++t<e.children.length;){const r=e.children[t];if(r&&"listItem"===r.type&&r.children&&r.children[0]&&"thematicBreak"===r.children[0].type){l=!0;break}}}}l&&(i=s),r.bulletCurrent=i;const c=r.containerFlow(e,n);return r.bulletLastUsed=i,r.bulletCurrent=o,a(),c},listItem:function(e,t,r,n){const a=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(r);let o=r.bulletCurrent||ik(r);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+o);let i=o.length+1;("tab"===a||"mixed"===a&&(t&&"list"===t.type&&t.spread||e.spread))&&(i=4*Math.ceil(i/4));const s=r.createTracker(n);s.move(o+" ".repeat(i-o.length)),s.shift(i);const l=r.enter("listItem"),c=r.indentLines(r.containerFlow(e,s.current()),(function(e,t,r){return t?(r?"":" ".repeat(i))+e:(r?o:o+" ".repeat(i-o.length))+e}));return l(),c},paragraph:function(e,t,r,n){const a=r.enter("paragraph"),o=r.enter("phrasing"),i=r.containerPhrasing(e,n);return o(),a(),i},root:function(e,t,r,n){return(e.children.some((function(e){return lk(e)}))?r.containerPhrasing:r.containerFlow).call(r,e,n)},strong:ck,text:function(e,t,r,n){return r.safe(e.value,n)},thematicBreak:function(e,t,r){const n=(sk(r)+(r.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(r));return r.options.ruleSpaces?n.slice(0,-1):n}},dk=[function(e,t,r,n){if("code"===t.type&&qx(t,n)&&("list"===e.type||e.type===t.type&&qx(e,n)))return!1;if("spread"in r&&"boolean"==typeof r.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&Kx(t,n)))return;return r.spread?1:0}}],pk=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],hk=[{character:"\t",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",before:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:pk},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:pk},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:"(?:[ \t\r\n*])"},{character:"*",inConstruct:"phrasing",notInConstruct:pk},{atBreak:!0,character:"+",after:"(?:[ \t\r\n])"},{atBreak:!0,character:"-",after:"(?:[ \t\r\n-])"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ \t\r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:pk},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:pk},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:pk},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:pk},{atBreak:!0,character:"~"}],fk=document.createElement("i");function mk(e){const t="&"+e+";";fk.innerHTML=t;const r=fk.textContent;return(59!==r.charCodeAt(r.length-1)||"semi"===e)&&r!==t&&r}function gk(e,t){const r=Number.parseInt(e,t);return r<9||11===r||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||!(65535&~r)||65534==(65535&r)||r>1114111?"<22>":String.fromCodePoint(r)}const vk=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function bk(e){return e.replace(vk,yk)}function yk(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){const e=r.charCodeAt(1),t=120===e||88===e;return gk(r.slice(t?2:1),t?16:10)}return mk(r)||e}function Ok(e){return e.label||!e.identifier?e.label||"":bk(e.identifier)}function wk(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function xk(e,t,r,n){let a=n.join.length;for(;a--;){const o=n.join[a](e,t,r,n);if(!0===o||1===o)break;if("number"==typeof o)return"\n".repeat(1+o);if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const kk=/\r?\n|\r/g;function Sk(e,t){const r=[];let n,a=0,o=0;for(;n=kk.exec(e);)i(e.slice(a,n.index)),r.push(n[0]),a=n.index+n[0].length,o++;return i(e.slice(a)),r.join("");function i(e){r.push(t(e,o,!e))}}function _k(e,t){return e-t}function Ek(e,t){const r=/\\(?=[!-/:-@[-`{-~])/g,n=[],a=[],o=e+t;let i,s=-1,l=0;for(;i=r.exec(o);)n.push(i.index);for(;++s<n.length;)l!==n[s]&&a.push(e.slice(l,n[s])),a.push("\\"),l=n[s];return a.push(e.slice(l)),a.join("")}function Tk(e){const t=e||{},r=t.now||{};let n=t.lineShift||0,a=r.line||1,o=r.column||1;return{move:function(e){const t=e||"",r=t.split(/\r?\n|\r/g),i=r[r.length-1];return a+=r.length-1,o=1===r.length?o+i.length:1+i.length+n,t},current:function(){return{now:{line:a,column:o},lineShift:n}},shift:function(e){n+=e}}}function Ak(e,t={}){const r={enter:function(e){return r.stack.push(e),function(){r.stack.pop()}},indentLines:Sk,associationId:Ok,containerPhrasing:$k,containerFlow:Rk,createTracker:Tk,compilePattern:wk,safe:Mk,stack:[],unsafe:[...hk],join:[...dk],handlers:{...uk},options:{},indexStack:[],handle:void 0};Lx(r,t),r.options.tightDefinitions&&r.join.push(Dk),r.handle=Dv("type",{invalid:Ck,unknown:Pk,handlers:r.handlers});let n=r.handle(e,void 0,r,{before:"\n",after:"\n",now:{line:1,column:1},lineShift:0});return n&&10!==n.charCodeAt(n.length-1)&&13!==n.charCodeAt(n.length-1)&&(n+="\n"),n}function Ck(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function Pk(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function Dk(e,t){if("definition"===e.type&&e.type===t.type)return 0}function $k(e,t){return function(e,t,r){const n=t.indexStack,a=e.children||[],o=[];let i=-1,s=r.before;n.push(-1);let l=t.createTracker(r);for(;++i<a.length;){const c=a[i];let u;if(n[n.length-1]=i,i+1<a.length){let r=t.handle.handlers[a[i+1].type];r&&r.peek&&(r=r.peek),u=r?r(a[i+1],e,t,{before:"",after:"",...l.current()}).charAt(0):""}else u=r.after;o.length>0&&("\r"===s||"\n"===s)&&"html"===c.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" ",l=t.createTracker(r),l.move(o.join(""))),o.push(l.move(t.handle(c,e,t,{...l.current(),before:s,after:u}))),s=o[o.length-1].slice(-1)}return n.pop(),o.join("")}(e,this,t)}function Rk(e,t){return function(e,t,r){const n=t.indexStack,a=e.children||[],o=t.createTracker(r),i=[];let s=-1;for(n.push(-1);++s<a.length;){const r=a[s];n[n.length-1]=s,i.push(o.move(t.handle(r,e,t,{before:"\n",after:"\n",...o.current()}))),"list"!==r.type&&(t.bulletLastUsed=void 0),s<a.length-1&&i.push(o.move(xk(r,a[s+1],e,t)))}return n.pop(),i.join("")}(e,this,t)}function Mk(e,t){return function(e,t,r){const n=(r.before||"")+(t||"")+(r.after||""),a=[],o=[],i={};let s=-1;for(;++s<e.unsafe.length;){const t=e.unsafe[s];if(!Fx(e.stack,t))continue;const r=e.compilePattern(t);let o;for(;o=r.exec(n);){const e="before"in t||Boolean(t.atBreak),r="after"in t,n=o.index+(e?o[1].length:0);a.includes(n)?(i[n].before&&!e&&(i[n].before=!1),i[n].after&&!r&&(i[n].after=!1)):(a.push(n),i[n]={before:e,after:r})}}a.sort(_k);let l=r.before?r.before.length:0;const c=n.length-(r.after?r.after.length:0);for(s=-1;++s<a.length;){const e=a[s];e<l||e>=c||e+1<c&&a[s+1]===e+1&&i[e].after&&!i[e+1].before&&!i[e+1].after||a[s-1]===e-1&&i[e].before&&!i[e-1].before&&!i[e-1].after||(l!==e&&o.push(Ek(n.slice(l,e),"\\")),l=e,!/[!-/:-@[-`{-~]/.test(n.charAt(e))||r.encode&&r.encode.includes(n.charAt(e))?(o.push("&#x"+n.charCodeAt(e).toString(16).toUpperCase()+";"),l++):o.push("\\"))}return o.push(Ek(n.slice(l,c),r.after)),o.join("")}(this,e,t)}function Nk(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function Ik(e){this.exit(e),this.data.inTable=void 0}function Lk(e){this.enter({type:"tableRow",children:[]},e)}function jk(e){this.exit(e)}function Bk(e){this.enter({type:"tableCell",children:[]},e)}function Uk(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Fk));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function Fk(e,t){return"|"===t?t:e}function Qk(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,a=t.stringLength,o=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,r){let n=uk.inlineCode(e,t,r);return r.stack.includes("tableCell")&&(n=n.replace(/\|/g,"\\$&")),n},table:function(e,t,r,n){return s(function(e,t,r){const n=e.children;let a=-1;const o=[],i=t.enter("table");for(;++a<n.length;)o[a]=l(n[a],t,r);return i(),o}(e,r,n),e.align)},tableCell:i,tableRow:function(e,t,r,n){const a=s([l(e,r,n)]);return a.slice(0,a.indexOf("\n"))}}};function i(e,t,r,n){const a=r.enter("tableCell"),i=r.enter("phrasing"),s=r.containerPhrasing(e,{...n,before:o,after:o});return i(),a(),s}function s(e,t){return function(e,t={}){const r=(t.align||[]).concat(),n=t.stringLength||Mx,a=[],o=[],i=[],s=[];let l=0,c=-1;for(;++c<e.length;){const r=[],a=[];let d=-1;for(e[c].length>l&&(l=e[c].length);++d<e[c].length;){const o=null==(u=e[c][d])?"":String(u);if(!1!==t.alignDelimiters){const e=n(o);a[d]=e,(void 0===s[d]||e>s[d])&&(s[d]=e)}r.push(o)}o[c]=r,i[c]=a}var u;let d=-1;if("object"==typeof r&&"length"in r)for(;++d<l;)a[d]=Nx(r[d]);else{const e=Nx(r);for(;++d<l;)a[d]=e}d=-1;const p=[],h=[];for(;++d<l;){const e=a[d];let r="",n="";99===e?(r=":",n=":"):108===e?r=":":114===e&&(n=":");let o=!1===t.alignDelimiters?1:Math.max(1,s[d]-r.length-n.length);const i=r+"-".repeat(o)+n;!1!==t.alignDelimiters&&(o=r.length+o+n.length,o>s[d]&&(s[d]=o),h[d]=o),p[d]=i}o.splice(1,0,p),i.splice(1,0,h),c=-1;const f=[];for(;++c<o.length;){const e=o[c],r=i[c];d=-1;const n=[];for(;++d<l;){const o=e[d]||"";let i="",c="";if(!1!==t.alignDelimiters){const e=s[d]-(r[d]||0),t=a[d];114===t?i=" ".repeat(e):99===t?e%2?(i=" ".repeat(e/2+.5),c=" ".repeat(e/2-.5)):(i=" ".repeat(e/2),c=i):c=" ".repeat(e)}!1===t.delimiterStart||d||n.push("|"),!1===t.padding||!1===t.alignDelimiters&&""===o||!1===t.delimiterStart&&!d||n.push(" "),!1!==t.alignDelimiters&&n.push(i),n.push(o),!1!==t.alignDelimiters&&n.push(c),!1!==t.padding&&n.push(" "),!1===t.delimiterEnd&&d===l-1||n.push("|")}f.push(!1===t.delimiterEnd?n.join("").replace(/ +$/,""):n.join(""))}return f.join("\n")}(e,{align:t,alignDelimiters:n,padding:r,stringLength:a})}function l(e,t,r){const n=e.children;let a=-1;const o=[],s=t.enter("tableRow");for(;++a<n.length;)o[a]=i(n[a],0,t,r);return s(),o}}function zk(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function qk(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const r=e.children[0];if(r&&"text"===r.type){const n=t.children;let a,o=-1;for(;++o<n.length;){const e=n[o];if("paragraph"===e.type){a=e;break}}a===e&&(r.value=r.value.slice(1),0===r.value.length?e.children.shift():e.position&&r.position&&"number"==typeof r.position.start.offset&&(r.position.start.column++,r.position.start.offset++,e.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Hk(e,t,r,n){const a=e.children[0],o="boolean"==typeof e.checked&&a&&"paragraph"===a.type,i="["+(e.checked?"x":" ")+"] ",s=r.createTracker(n);o&&s.move(i);let l=uk.listItem(e,t,r,{...n,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+i}))),l}function Vk(e,t,r,n){const a=e.length;let o,i=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),e.splice(...o);else for(r&&e.splice(t,r);i<n.length;)o=n.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function Zk(e,t){return e.length>0?(Vk(e,e.length,0,t),e):t}const Wk={}.hasOwnProperty;function Xk(e){const t={};let r=-1;for(;++r<e.length;)Gk(t,e[r]);return t}function Gk(e,t){let r;for(r in t){const n=(Wk.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let o;if(a)for(o in a){Wk.call(n,o)||(n[o]=[]);const e=a[o];Yk(n[o],Array.isArray(e)?e:e?[e]:[])}}}function Yk(e,t){let r=-1;const n=[];for(;++r<t.length;)("after"===t[r].add?e:n).push(t[r]);Vk(e,0,0,n)}const Kk={tokenize:function(e,t,r){let n=0;return function t(o){return(87===o||119===o)&&n<3?(n++,e.consume(o),t):46===o&&3===n?(e.consume(o),a):r(o)};function a(e){return null===e?r(e):t(e)}},partial:!0},Jk={tokenize:function(e,t,r){let n,a,o;return i;function i(t){return 46===t||95===t?e.check(tS,l,s)(t):null===t||Jw(t)||rx(t)||45!==t&&tx(t)?l(t):(o=!0,e.consume(t),i)}function s(t){return 95===t?n=!0:(a=n,n=void 0),e.consume(t),i}function l(e){return a||n||!o?r(e):t(e)}},partial:!0},eS={tokenize:function(e,t){let r=0,n=0;return a;function a(i){return 40===i?(r++,e.consume(i),a):41===i&&n<r?o(i):33===i||34===i||38===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||60===i||63===i||93===i||95===i||126===i?e.check(tS,t,o)(i):null===i||Jw(i)||rx(i)?t(i):(e.consume(i),a)}function o(t){return 41===t&&n++,e.consume(t),a}},partial:!0},tS={tokenize:function(e,t,r){return n;function n(i){return 33===i||34===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||63===i||95===i||126===i?(e.consume(i),n):38===i?(e.consume(i),o):93===i?(e.consume(i),a):60===i||null===i||Jw(i)||rx(i)?t(i):r(i)}function a(e){return null===e||40===e||91===e||Jw(e)||rx(e)?t(e):n(e)}function o(e){return Hw(e)?i(e):r(e)}function i(t){return 59===t?(e.consume(t),n):Hw(t)?(e.consume(t),i):r(t)}},partial:!0},rS={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(e){return Vw(e)?r(e):t(e)}},partial:!0},nS={tokenize:function(e,t,r){const n=this;return function(t){return 87!==t&&119!==t||!lS.call(n,n.previous)||pS(n.events)?r(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Kk,e.attempt(Jk,e.attempt(eS,a),r),r)(t))};function a(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(r)}},previous:lS},aS={tokenize:function(e,t,r){const n=this;let a="",o=!1;return function(t){return 72!==t&&104!==t||!cS.call(n,n.previous)||pS(n.events)?r(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(t),e.consume(t),i)};function i(t){if(Hw(t)&&a.length<5)return a+=String.fromCodePoint(t),e.consume(t),i;if(58===t){const r=a.toLowerCase();if("http"===r||"https"===r)return e.consume(t),s}return r(t)}function s(t){return 47===t?(e.consume(t),o?l:(o=!0,s)):r(t)}function l(t){return null===t||Ww(t)||Jw(t)||rx(t)||tx(t)?r(t):e.attempt(Jk,e.attempt(eS,c),r)(t)}function c(r){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(r)}},previous:cS},oS={tokenize:function(e,t,r){const n=this;let a,o;return function(t){return dS(t)&&uS.call(n,n.previous)&&!pS(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),i(t)):r(t)};function i(t){return dS(t)?(e.consume(t),i):64===t?(e.consume(t),s):r(t)}function s(t){return 46===t?e.check(rS,c,l)(t):45===t||95===t||Vw(t)?(o=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),a=!0,s}function c(i){return o&&a&&Hw(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):r(i)}},previous:uS},iS={};let sS=48;for(;sS<123;)iS[sS]=oS,sS++,58===sS?sS=65:91===sS&&(sS=97);function lS(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||Jw(e)}function cS(e){return!Hw(e)}function uS(e){return!(47===e||dS(e))}function dS(e){return 43===e||45===e||46===e||95===e||Vw(e)}function pS(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if(("labelLink"===n.type||"labelImage"===n.type)&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}function hS(e){const t=[];let r=-1,n=0,a=0;for(;++r<e.length;){const o=e.charCodeAt(r);let i="";if(37===o&&Vw(e.charCodeAt(r+1))&&Vw(e.charCodeAt(r+2)))a=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(i=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(r+1);o<56320&&t>56319&&t<57344?(i=String.fromCharCode(o,t),a=1):i="<22>"}else i=String.fromCharCode(o);i&&(t.push(e.slice(n,r),encodeURIComponent(i)),n=r+a+1,i=""),a&&(r+=a,a=0)}return t.join("")+e.slice(n)}function fS(e){return null===e||Jw(e)||rx(e)?1:tx(e)?2:void 0}function mS(e,t,r){const n=[];let a=-1;for(;++a<e.length;){const o=e[a].resolveAll;o&&!n.includes(o)&&(t=o(t,r),n.push(o))}return t}iS[43]=oS,iS[45]=oS,iS[46]=oS,iS[95]=oS,iS[72]=[oS,aS],iS[104]=[oS,aS],iS[87]=[oS,nS],iS[119]=[oS,nS];const gS={name:"attention",tokenize:function(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,a=fS(n);let o;return function(t){return o=t,e.enter("attentionSequence"),i(t)};function i(s){if(s===o)return e.consume(s),i;const l=e.exit("attentionSequence"),c=fS(s),u=!c||2===c&&a||r.includes(s),d=!a||2===a&&c||r.includes(n);return l._open=Boolean(42===o?u:u&&(a||!d)),l._close=Boolean(42===o?d:d&&(c||!u)),t(s)}},resolveAll:function(e,t){let r,n,a,o,i,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(r=u;r--;)if("exit"===e[r][0]&&"attentionSequence"===e[r][1].type&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[r][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),p=Object.assign({},e[u][1].start);vS(d,-s),vS(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},i={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:p},a={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[u][1].start)},n={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},i.end)},e[r][1].end=Object.assign({},o.start),e[u][1].start=Object.assign({},i.end),l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Zk(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=Zk(l,[["enter",n,t],["enter",o,t],["exit",o,t],["enter",a,t]]),l=Zk(l,mS(t.parser.constructs.insideSpan.null,e.slice(r+1,u),t)),l=Zk(l,[["exit",a,t],["enter",i,t],["exit",i,t],["exit",n,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=Zk(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Vk(e,r-1,u-r+3,l),u=r+l.length-c-2;break}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e}};function vS(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const bS={name:"autolink",tokenize:function(e,t,r){let n=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a};function a(t){return Hw(t)?(e.consume(t),o):64===t?r(t):l(t)}function o(e){return 43===e||45===e||46===e||Vw(e)?(n=1,i(e)):l(e)}function i(t){return 58===t?(e.consume(t),n=0,s):(43===t||45===t||46===t||Vw(t))&&n++<32?(e.consume(t),i):(n=0,l(t))}function s(n){return 62===n?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):null===n||32===n||60===n||Ww(n)?r(n):(e.consume(n),s)}function l(t){return 64===t?(e.consume(t),c):Zw(t)?(e.consume(t),l):r(t)}function c(e){return Vw(e)?u(e):r(e)}function u(r){return 46===r?(e.consume(r),n=0,c):62===r?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):d(r)}function d(t){if((45===t||Vw(t))&&n++<63){const r=45===t?d:u;return e.consume(t),r}return r(t)}}};function yS(e,t,r,n){const a=n?n-1:Number.POSITIVE_INFINITY;let o=0;return function(n){return ex(n)?(e.enter(r),i(n)):t(n)};function i(n){return ex(n)&&o++<a?(e.consume(n),i):(e.exit(r),t(n))}}const OS={tokenize:function(e,t,r){return function(t){return ex(t)?yS(e,n,"linePrefix")(t):n(t)};function n(e){return null===e||Kw(e)?t(e):r(e)}},partial:!0},wS={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(62===t){const r=n.containerState;return r.open||(e.enter("blockQuote",{_container:!0}),r.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),a}return r(t)};function a(r){return ex(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}},continuation:{tokenize:function(e,t,r){const n=this;return function(t){return ex(t)?yS(e,a,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):a(t)};function a(n){return e.attempt(wS,t,r)(n)}}},exit:function(e){e.exit("blockQuote")}},xS={name:"characterEscape",tokenize:function(e,t,r){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),n};function n(n){return Yw(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}},kS={name:"characterReference",tokenize:function(e,t,r){const n=this;let a,o,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,o=Vw,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=Gw,c):(e.enter("characterReferenceValue"),a=7,o=Xw,c(t))}function c(s){if(59===s&&i){const a=e.exit("characterReferenceValue");return o!==Vw||mk(n.sliceSerialize(a))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(s)}return o(s)&&i++<a?(e.consume(s),c):r(s)}}},SS={tokenize:function(e,t,r){const n=this;return function(t){return null===t?r(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a)};function a(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0},_S={name:"codeFenced",tokenize:function(e,t,r){const n=this,a={tokenize:function(e,t,r){let a=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(t){return e.enter("codeFencedFence"),ex(t)?yS(e,l,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===o?(e.enter("codeFencedFenceSequence"),c(t)):r(t)}function c(t){return t===o?(a++,e.consume(t),c):a>=s?(e.exit("codeFencedFenceSequence"),ex(t)?yS(e,u,"whitespace")(t):u(t)):r(t)}function u(n){return null===n||Kw(n)?(e.exit("codeFencedFence"),t(n)):r(n)}},partial:!0};let o,i=0,s=0;return function(t){return function(t){const r=n.events[n.events.length-1];return i=r&&"linePrefix"===r[1].type?r[2].sliceSerialize(r[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(s++,e.consume(t),l):s<3?r(t):(e.exit("codeFencedFenceSequence"),ex(t)?yS(e,c,"whitespace")(t):c(t))}function c(r){return null===r||Kw(r)?(e.exit("codeFencedFence"),n.interrupt?t(r):e.check(SS,h,b)(r)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(r))}function u(t){return null===t||Kw(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):ex(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),yS(e,d,"whitespace")(t)):96===t&&t===o?r(t):(e.consume(t),u)}function d(t){return null===t||Kw(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||Kw(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===o?r(t):(e.consume(t),p)}function h(t){return e.attempt(a,b,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return i>0&&ex(t)?yS(e,g,"linePrefix",i+1)(t):g(t)}function g(t){return null===t||Kw(t)?e.check(SS,h,b)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||Kw(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),v)}function b(r){return e.exit("codeFenced"),t(r)}},concrete:!0},ES={name:"codeIndented",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("codeIndented"),yS(e,a,"linePrefix",5)(t)};function a(e){const t=n.events[n.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):r(e)}function o(t){return null===t?s(t):Kw(t)?e.attempt(TS,o,s)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||Kw(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),i)}function s(r){return e.exit("codeIndented"),t(r)}}},TS={tokenize:function(e,t,r){const n=this;return a;function a(t){return n.parser.lazy[n.now().line]?r(t):Kw(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):yS(e,o,"linePrefix",5)(t)}function o(e){const o=n.events[n.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):Kw(e)?a(e):r(e)}},partial:!0},AS={name:"codeText",tokenize:function(e,t,r){let n,a,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),i(t)};function i(t){return 96===t?(e.consume(t),o++,i):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?r(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(a=e.enter("codeTextSequence"),n=0,c(t)):Kw(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||Kw(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(r){return 96===r?(e.consume(r),n++,c):n===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(r)):(a.type="codeTextData",l(r))}},resolve:function(e){let t,r,n=e.length-4,a=3;if(!("lineEnding"!==e[a][1].type&&"space"!==e[a][1].type||"lineEnding"!==e[n][1].type&&"space"!==e[n][1].type))for(t=a;++t<n;)if("codeTextData"===e[t][1].type){e[a][1].type="codeTextPadding",e[n][1].type="codeTextPadding",a+=2,n-=2;break}for(t=a-1,n++;++t<=n;)void 0===r?t!==n&&"lineEnding"!==e[t][1].type&&(r=t):t!==n&&"lineEnding"!==e[t][1].type||(e[r][1].type="codeTextData",t!==r+2&&(e[r][1].end=e[t-1][1].end,e.splice(r+2,t-r-2),n-=t-r-2,t=r+2),r=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};class CS{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const r=null==t?Number.POSITIVE_INFINITY:t;return r<this.left.length?this.left.slice(e,r):e>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,t,r){const n=t||0;this.setCursor(Math.trunc(e));const a=this.right.splice(this.right.length-n,Number.POSITIVE_INFINITY);return r&&PS(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),PS(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),PS(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);PS(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);PS(this.left,t.reverse())}}}function PS(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function DS(e){const t={};let r,n,a,o,i,s,l,c=-1;const u=new CS(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(r=u.get(c),c&&"chunkFlow"===r[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=r[1]._tokenizer.events,a=0,a<s.length&&"lineEndingBlank"===s[a][1].type&&(a+=2),a<s.length&&"content"===s[a][1].type))for(;++a<s.length&&"content"!==s[a][1].type;)"chunkText"===s[a][1].type&&(s[a][1]._isInFirstContentOfListItem=!0,a++);if("enter"===r[0])r[1].contentType&&(Object.assign(t,$S(u,c)),c=t[c],l=!0);else if(r[1]._container){for(a=c,n=void 0;a--&&(o=u.get(a),"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type);)"enter"===o[0]&&(n&&(u.get(n)[1].type="lineEndingBlank"),o[1].type="lineEnding",n=a);n&&(r[1].end=Object.assign({},u.get(n)[1].start),i=u.slice(n,c),i.unshift(r),u.splice(n,c-n+1,i))}}return Vk(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function $S(e,t){const r=e.get(t)[1],n=e.get(t)[2];let a=t-1;const o=[],i=r._tokenizer||n.parser[r.contentType](r.start),s=i.events,l=[],c={};let u,d,p=-1,h=r,f=0,m=0;const g=[m];for(;h;){for(;e.get(++a)[1]!==h;);o.push(a),h._tokenizer||(u=n.sliceStream(h),h.next||u.push(null),d&&i.defineSkip(h.start),h._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(u),h._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=r;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,g.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(i.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),p=g.length;p--;){const t=s.slice(g[p],g[p+1]),r=o.pop();l.push([r,r+t.length-1]),e.splice(r,2,t)}for(l.reverse(),p=-1;++p<l.length;)c[f+l[p][0]]=f+l[p][1],f+=l[p][1]-l[p][0]-1;return c}const RS={tokenize:function(e,t){let r;return function(t){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(t)};function n(t){return null===t?a(t):Kw(t)?e.check(MS,o,a)(t):(e.consume(t),n)}function a(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function o(t){return e.consume(t),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}},resolve:function(e){return DS(e),e}},MS={tokenize:function(e,t,r){const n=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),yS(e,a,"linePrefix")};function a(a){if(null===a||Kw(a))return r(a);const o=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):e.interrupt(n.parser.constructs.flow,r,t)(a)}},partial:!0};function NS(e,t,r,n,a,o,i,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(n),e.enter(a),e.enter(o),e.consume(t),e.exit(o),d):null===t||32===t||41===t||Ww(t)?r(t):(e.enter(n),e.enter(i),e.enter(s),e.enter("chunkString",{contentType:"string"}),f(t))};function d(r){return 62===r?(e.enter(o),e.consume(r),e.exit(o),e.exit(a),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(r))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||Kw(t)?r(t):(e.consume(t),92===t?h:p)}function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function f(a){return u||null!==a&&41!==a&&!Jw(a)?u<c&&40===a?(e.consume(a),u++,f):41===a?(e.consume(a),u--,f):null===a||32===a||40===a||Ww(a)?r(a):(e.consume(a),92===a?m:f):(e.exit("chunkString"),e.exit(s),e.exit(i),e.exit(n),t(a))}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function IS(e,t,r,n,a,o){const i=this;let s,l=0;return function(t){return e.enter(n),e.enter(a),e.consume(t),e.exit(a),e.enter(o),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in i.parser.constructs?r(d):93===d?(e.exit(o),e.enter(a),e.consume(d),e.exit(a),e.exit(n),t):Kw(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||Kw(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!ex(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function LS(e,t,r,n,a,o){let i;return function(t){return 34===t||39===t||40===t?(e.enter(n),e.enter(a),e.consume(t),e.exit(a),i=40===t?41:t,s):r(t)};function s(r){return r===i?(e.enter(a),e.consume(r),e.exit(a),e.exit(n),t):(e.enter(o),l(r))}function l(t){return t===i?(e.exit(o),s(i)):null===t?r(t):Kw(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),yS(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===i||null===t||Kw(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===i||92===t?(e.consume(t),c):c(t)}}function jS(e,t){let r;return function n(a){return Kw(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),r=!0,n):ex(a)?yS(e,n,r?"linePrefix":"lineSuffix")(a):t(a)}}const BS={name:"definition",tokenize:function(e,t,r){const n=this;let a;return function(t){return e.enter("definition"),function(t){return IS.call(n,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return a=bx(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):r(t)}function i(t){return Jw(t)?jS(e,s)(t):s(t)}function s(t){return NS(e,l,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(US,c,c)(t)}function c(t){return ex(t)?yS(e,u,"whitespace")(t):u(t)}function u(o){return null===o||Kw(o)?(e.exit("definition"),n.parser.defined.push(a),t(o)):r(o)}}},US={tokenize:function(e,t,r){return function(t){return Jw(t)?jS(e,n)(t):r(t)};function n(t){return LS(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function a(t){return ex(t)?yS(e,o,"whitespace")(t):o(t)}function o(e){return null===e||Kw(e)?t(e):r(e)}},partial:!0},FS={name:"hardBreakEscape",tokenize:function(e,t,r){return function(t){return e.enter("hardBreakEscape"),e.consume(t),n};function n(n){return Kw(n)?(e.exit("hardBreakEscape"),t(n)):r(n)}}},QS={name:"headingAtx",tokenize:function(e,t,r){let n=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),a(t)}(t)};function a(t){return 35===t&&n++<6?(e.consume(t),a):null===t||Jw(t)?(e.exit("atxHeadingSequence"),o(t)):r(t)}function o(r){return 35===r?(e.enter("atxHeadingSequence"),i(r)):null===r||Kw(r)?(e.exit("atxHeading"),t(r)):ex(r)?yS(e,o,"whitespace")(r):(e.enter("atxHeadingText"),s(r))}function i(t){return 35===t?(e.consume(t),i):(e.exit("atxHeadingSequence"),o(t))}function s(t){return null===t||35===t||Jw(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),s)}},resolve:function(e,t){let r,n,a=e.length-2,o=3;return"whitespace"===e[o][1].type&&(o+=2),a-2>o&&"whitespace"===e[a][1].type&&(a-=2),"atxHeadingSequence"===e[a][1].type&&(o===a-1||a-4>o&&"whitespace"===e[a-2][1].type)&&(a-=o+1===a?2:4),a>o&&(r={type:"atxHeadingText",start:e[o][1].start,end:e[a][1].end},n={type:"chunkText",start:e[o][1].start,end:e[a][1].end,contentType:"text"},Vk(e,o,a-o+1,[["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]])),e}},zS=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],qS=["pre","script","style","textarea"],HS={name:"htmlFlow",tokenize:function(e,t,r){const n=this;let a,o,i,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),o=!0,h):63===s?(e.consume(s),a=3,n.interrupt?t:M):Hw(s)?(e.consume(s),i=String.fromCharCode(s),f):r(s)}function u(o){return 45===o?(e.consume(o),a=2,d):91===o?(e.consume(o),a=5,s=0,p):Hw(o)?(e.consume(o),a=4,n.interrupt?t:M):r(o)}function d(a){return 45===a?(e.consume(a),n.interrupt?t:M):r(a)}function p(a){return a==="CDATA[".charCodeAt(s++)?(e.consume(a),6===s?n.interrupt?t:E:p):r(a)}function h(t){return Hw(t)?(e.consume(t),i=String.fromCharCode(t),f):r(t)}function f(s){if(null===s||47===s||62===s||Jw(s)){const l=47===s,c=i.toLowerCase();return l||o||!qS.includes(c)?zS.includes(i.toLowerCase())?(a=6,l?(e.consume(s),m):n.interrupt?t(s):E(s)):(a=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(s):o?g(s):v(s)):(a=1,n.interrupt?t(s):E(s))}return 45===s||Vw(s)?(e.consume(s),i+=String.fromCharCode(s),f):r(s)}function m(a){return 62===a?(e.consume(a),n.interrupt?t:E):r(a)}function g(t){return ex(t)?(e.consume(t),g):S(t)}function v(t){return 47===t?(e.consume(t),S):58===t||95===t||Hw(t)?(e.consume(t),b):ex(t)?(e.consume(t),v):S(t)}function b(t){return 45===t||46===t||58===t||95===t||Vw(t)?(e.consume(t),b):y(t)}function y(t){return 61===t?(e.consume(t),O):ex(t)?(e.consume(t),y):v(t)}function O(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),l=t,w):ex(t)?(e.consume(t),O):x(t)}function w(t){return t===l?(e.consume(t),l=null,k):null===t||Kw(t)?r(t):(e.consume(t),w)}function x(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Jw(t)?y(t):(e.consume(t),x)}function k(e){return 47===e||62===e||ex(e)?v(e):r(e)}function S(t){return 62===t?(e.consume(t),_):r(t)}function _(t){return null===t||Kw(t)?E(t):ex(t)?(e.consume(t),_):r(t)}function E(t){return 45===t&&2===a?(e.consume(t),P):60===t&&1===a?(e.consume(t),D):62===t&&4===a?(e.consume(t),N):63===t&&3===a?(e.consume(t),M):93===t&&5===a?(e.consume(t),R):!Kw(t)||6!==a&&7!==a?null===t||Kw(t)?(e.exit("htmlFlowData"),T(t)):(e.consume(t),E):(e.exit("htmlFlowData"),e.check(VS,I,T)(t))}function T(t){return e.check(ZS,A,I)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),C}function C(t){return null===t||Kw(t)?T(t):(e.enter("htmlFlowData"),E(t))}function P(t){return 45===t?(e.consume(t),M):E(t)}function D(t){return 47===t?(e.consume(t),i="",$):E(t)}function $(t){if(62===t){const r=i.toLowerCase();return qS.includes(r)?(e.consume(t),N):E(t)}return Hw(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),$):E(t)}function R(t){return 93===t?(e.consume(t),M):E(t)}function M(t){return 62===t?(e.consume(t),N):45===t&&2===a?(e.consume(t),M):E(t)}function N(t){return null===t||Kw(t)?(e.exit("htmlFlowData"),I(t)):(e.consume(t),N)}function I(r){return e.exit("htmlFlow"),t(r)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},VS={tokenize:function(e,t,r){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(OS,t,r)}},partial:!0},ZS={tokenize:function(e,t,r){const n=this;return function(t){return Kw(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):r(t)};function a(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0},WS={name:"htmlText",tokenize:function(e,t,r){const n=this;let a,o,i;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),O):63===t?(e.consume(t),b):Hw(t)?(e.consume(t),k):r(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),o=0,h):Hw(t)?(e.consume(t),v):r(t)}function c(t){return 45===t?(e.consume(t),p):r(t)}function u(t){return null===t?r(t):45===t?(e.consume(t),d):Kw(t)?(i=u,$(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?D(e):45===e?d(e):u(e)}function h(t){return t==="CDATA[".charCodeAt(o++)?(e.consume(t),6===o?f:h):r(t)}function f(t){return null===t?r(t):93===t?(e.consume(t),m):Kw(t)?(i=f,$(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),g):f(t)}function g(t){return 62===t?D(t):93===t?(e.consume(t),g):f(t)}function v(t){return null===t||62===t?D(t):Kw(t)?(i=v,$(t)):(e.consume(t),v)}function b(t){return null===t?r(t):63===t?(e.consume(t),y):Kw(t)?(i=b,$(t)):(e.consume(t),b)}function y(e){return 62===e?D(e):b(e)}function O(t){return Hw(t)?(e.consume(t),w):r(t)}function w(t){return 45===t||Vw(t)?(e.consume(t),w):x(t)}function x(t){return Kw(t)?(i=x,$(t)):ex(t)?(e.consume(t),x):D(t)}function k(t){return 45===t||Vw(t)?(e.consume(t),k):47===t||62===t||Jw(t)?S(t):r(t)}function S(t){return 47===t?(e.consume(t),D):58===t||95===t||Hw(t)?(e.consume(t),_):Kw(t)?(i=S,$(t)):ex(t)?(e.consume(t),S):D(t)}function _(t){return 45===t||46===t||58===t||95===t||Vw(t)?(e.consume(t),_):E(t)}function E(t){return 61===t?(e.consume(t),T):Kw(t)?(i=E,$(t)):ex(t)?(e.consume(t),E):S(t)}function T(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),a=t,A):Kw(t)?(i=T,$(t)):ex(t)?(e.consume(t),T):(e.consume(t),C)}function A(t){return t===a?(e.consume(t),a=void 0,P):null===t?r(t):Kw(t)?(i=A,$(t)):(e.consume(t),A)}function C(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):47===t||62===t||Jw(t)?S(t):(e.consume(t),C)}function P(e){return 47===e||62===e||Jw(e)?S(e):r(e)}function D(n){return 62===n?(e.consume(n),e.exit("htmlTextData"),e.exit("htmlText"),t):r(n)}function $(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),R}function R(t){return ex(t)?yS(e,M,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):M(t)}function M(t){return e.enter("htmlTextData"),i(t)}}},XS={name:"labelEnd",tokenize:function(e,t,r){const n=this;let a,o,i=n.events.length;for(;i--;)if(("labelImage"===n.events[i][1].type||"labelLink"===n.events[i][1].type)&&!n.events[i][1]._balanced){a=n.events[i][1];break}return function(t){return a?a._inactive?u(t):(o=n.parser.defined.includes(bx(n.sliceSerialize({start:a.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):r(t)};function s(t){return 40===t?e.attempt(GS,c,o?c:u)(t):91===t?e.attempt(YS,c,o?l:u)(t):o?c(t):u(t)}function l(t){return e.attempt(KS,c,u)(t)}function c(e){return t(e)}function u(e){return a._balanced=!0,r(e)}},resolveTo:function(e,t){let r,n,a,o,i=e.length,s=0;for(;i--;)if(r=e[i][1],n){if("link"===r.type||"labelLink"===r.type&&r._inactive)break;"enter"===e[i][0]&&"labelLink"===r.type&&(r._inactive=!0)}else if(a){if("enter"===e[i][0]&&("labelImage"===r.type||"labelLink"===r.type)&&!r._balanced&&(n=i,"labelLink"!==r.type)){s=2;break}}else"labelEnd"===r.type&&(a=i);const l={type:"labelLink"===e[n][1].type?"link":"image",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[n][1].start),end:Object.assign({},e[a][1].end)},u={type:"labelText",start:Object.assign({},e[n+s+2][1].end),end:Object.assign({},e[a-2][1].start)};return o=[["enter",l,t],["enter",c,t]],o=Zk(o,e.slice(n+1,n+s+3)),o=Zk(o,[["enter",u,t]]),o=Zk(o,mS(t.parser.constructs.insideSpan.null,e.slice(n+s+4,a-3),t)),o=Zk(o,[["exit",u,t],e[a-2],e[a-1],["exit",c,t]]),o=Zk(o,e.slice(a+1)),o=Zk(o,[["exit",l,t]]),Vk(e,n,e.length,o),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){const r=e[t][1];"labelImage"!==r.type&&"labelLink"!==r.type&&"labelEnd"!==r.type||(e.splice(t+1,"labelImage"===r.type?4:2),r.type="data",t++)}return e}},GS={tokenize:function(e,t,r){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),n};function n(t){return Jw(t)?jS(e,a)(t):a(t)}function a(t){return 41===t?c(t):NS(e,o,i,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return Jw(t)?jS(e,s)(t):c(t)}function i(e){return r(e)}function s(t){return 34===t||39===t||40===t?LS(e,l,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return Jw(t)?jS(e,c)(t):c(t)}function c(n){return 41===n?(e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),e.exit("resource"),t):r(n)}}},YS={tokenize:function(e,t,r){const n=this;return function(t){return IS.call(n,e,a,o,"reference","referenceMarker","referenceString")(t)};function a(e){return n.parser.defined.includes(bx(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}function o(e){return r(e)}}},KS={tokenize:function(e,t,r){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),n};function n(n){return 93===n?(e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t):r(n)}}},JS={name:"labelStartImage",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),a};function a(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):r(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}},resolveAll:XS.resolveAll},e_={name:"labelStartLink",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),a};function a(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}},resolveAll:XS.resolveAll},t_={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),yS(e,t,"linePrefix")}}},r_={name:"thematicBreak",tokenize:function(e,t,r){let n,a=0;return function(t){return e.enter("thematicBreak"),function(e){return n=e,o(e)}(t)};function o(o){return o===n?(e.enter("thematicBreakSequence"),i(o)):a>=3&&(null===o||Kw(o))?(e.exit("thematicBreak"),t(o)):r(o)}function i(t){return t===n?(e.consume(t),a++,i):(e.exit("thematicBreakSequence"),ex(t)?yS(e,o,"whitespace")(t):o(t))}}},n_={name:"list",tokenize:function(e,t,r){const n=this,a=n.events[n.events.length-1];let o=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,i=0;return function(t){const a=n.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===a?!n.containerState.marker||t===n.containerState.marker:Xw(t)){if(n.containerState.type||(n.containerState.type=a,e.enter(a,{_container:!0})),"listUnordered"===a)return e.enter("listItemPrefix"),42===t||45===t?e.check(r_,r,l)(t):l(t);if(!n.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return r(t)};function s(t){return Xw(t)&&++i<10?(e.consume(t),s):(!n.interrupt||i<2)&&(n.containerState.marker?t===n.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):r(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||t,e.check(OS,n.interrupt?r:c,e.attempt(a_,d,u))}function c(e){return n.containerState.initialBlankLine=!0,o++,d(e)}function u(t){return ex(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):r(t)}function d(r){return n.containerState.size=o+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(r)}},continuation:{tokenize:function(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(OS,(function(r){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,yS(e,t,"listItemIndent",n.containerState.size+1)(r)}),(function(r){return n.containerState.furtherBlankLines||!ex(r)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,a(r)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(o_,t,a)(r))}));function a(a){return n.containerState._closeFlow=!0,n.interrupt=void 0,yS(e,e.attempt(n_,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}},exit:function(e){e.exit(this.containerState.type)}},a_={tokenize:function(e,t,r){const n=this;return yS(e,(function(e){const a=n.events[n.events.length-1];return!ex(e)&&a&&"listItemPrefixWhitespace"===a[1].type?t(e):r(e)}),"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},o_={tokenize:function(e,t,r){const n=this;return yS(e,(function(e){const a=n.events[n.events.length-1];return a&&"listItemIndent"===a[1].type&&a[2].sliceSerialize(a[1],!0).length===n.containerState.size?t(e):r(e)}),"listItemIndent",n.containerState.size+1)},partial:!0},i_={name:"setextUnderline",tokenize:function(e,t,r){const n=this;let a;return function(t){let i,s=n.events.length;for(;s--;)if("lineEnding"!==n.events[s][1].type&&"linePrefix"!==n.events[s][1].type&&"content"!==n.events[s][1].type){i="paragraph"===n.events[s][1].type;break}return n.parser.lazy[n.now().line]||!n.interrupt&&!i?r(t):(e.enter("setextHeadingLine"),a=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t))};function o(t){return t===a?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),ex(t)?yS(e,i,"lineSuffix")(t):i(t))}function i(n){return null===n||Kw(n)?(e.exit("setextHeadingLine"),t(n)):r(n)}},resolveTo:function(e,t){let r,n,a,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){r=o;break}"paragraph"===e[o][1].type&&(n=o)}else"content"===e[o][1].type&&e.splice(o,1),a||"definition"!==e[o][1].type||(a=o);const i={type:"setextHeading",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[n][1].type="setextHeadingText",a?(e.splice(n,0,["enter",i,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=i,e.push(["exit",i,t]),e}},s_={tokenize:function(e,t,r){const n=this;return yS(e,(function(e){const a=n.events[n.events.length-1];return a&&"gfmFootnoteDefinitionIndent"===a[1].type&&4===a[2].sliceSerialize(a[1],!0).length?t(e):r(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function l_(e,t,r){const n=this;let a=n.events.length;const o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let i;for(;a--;){const e=n.events[a][1];if("labelImage"===e.type){i=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!i||!i._balanced)return r(a);const s=bx(n.sliceSerialize({start:i.end,end:n.now()}));return 94===s.codePointAt(0)&&o.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)):r(a)}}function c_(e,t){let r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",a,t],["exit",a,t],["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...s),e}function u_(e,t,r){const n=this,a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o,i=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?r(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(i>999||93===s&&!o||null===s||91===s||Jw(s))return r(s);if(93===s){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return a.includes(bx(n.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(s)}return Jw(s)||(o=!0),i++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),i++,l):l(t)}}function d_(e,t,r){const n=this,a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o,i,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(t)}function c(t){if(s>999||93===t&&!i||null===t||91===t||Jw(t))return r(t);if(93===t){e.exit("chunkString");const r=e.exit("gfmFootnoteDefinitionLabelString");return o=bx(n.sliceSerialize(r)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Jw(t)||(i=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(o)||a.push(o),yS(e,p,"gfmFootnoteDefinitionWhitespace")):r(t)}function p(e){return t(e)}}function p_(e,t,r){return e.check(OS,t,e.attempt(s_,t,r))}function h_(e){e.exit("gfmFootnoteDefinition")}function f_(e){let t=(e||{}).singleTilde;const r={tokenize:function(e,r,n){const a=this.previous,o=this.events;let i=0;return function(t){return 126===a&&"characterEscape"!==o[o.length-1][1].type?n(t):(e.enter("strikethroughSequenceTemporary"),s(t))};function s(o){const l=fS(a);if(126===o)return i>1?n(o):(e.consume(o),i++,s);if(i<2&&!t)return n(o);const c=e.exit("strikethroughSequenceTemporary"),u=fS(o);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),r(o)}},resolveAll:function(e,t){let r=-1;for(;++r<e.length;)if("enter"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._close){let n=r;for(;n--;)if("exit"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._open&&e[r][1].end.offset-e[r][1].start.offset==e[n][1].end.offset-e[n][1].start.offset){e[r][1].type="strikethroughSequence",e[n][1].type="strikethroughSequence";const a={type:"strikethrough",start:Object.assign({},e[n][1].start),end:Object.assign({},e[r][1].end)},o={type:"strikethroughText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},i=[["enter",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["enter",o,t]],s=t.parser.constructs.insideSpan.null;s&&Vk(i,i.length,0,mS(s,e.slice(n+1,r),t)),Vk(i,i.length,0,[["exit",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["exit",a,t]]),Vk(e,n-1,r-n+3,i),r=n+i.length-2;break}}for(r=-1;++r<e.length;)"strikethroughSequenceTemporary"===e[r][1].type&&(e[r][1].type="data");return e}};return null==t&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}}}class m_{constructor(){this.map=[]}add(e,t,r){!function(e,t,r,n){let a=0;if(0!==r||0!==n.length){for(;a<e.map.length;){if(e.map[a][0]===t)return e.map[a][1]+=r,void e.map[a][2].push(...n);a+=1}e.map.push([t,r,n])}}(this,e,t,r)}consume(e){if(this.map.sort((function(e,t){return e[0]-t[0]})),0===this.map.length)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];r.push([...e]),e.length=0;let n=r.pop();for(;n;)e.push(...n),n=r.pop();this.map.length=0}}function g_(e,t){let r=!1;const n=[];for(;t<e.length;){const a=e[t];if(r){if("enter"===a[0])"tableContent"===a[1].type&&n.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===a[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=n.length-1;n[e]="left"===n[e]?"center":"right"}}else if("tableDelimiterRow"===a[1].type)break}else"enter"===a[0]&&"tableDelimiterRow"===a[1].type&&(r=!0);t+=1}return n}function v_(e,t,r){const n=this;let a,o=0,i=0;return function(e){let t=n.events.length-1;for(;t>-1;){const e=n.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const a=t>-1?n.events[t][1].type:null,o="tableHead"===a||"tableRow"===a?O:s;return o===O&&n.parser.lazy[n.now().line]?r(e):o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){return 124===e||(a=!0,i+=1),l(e)}(t)}function l(t){return null===t?r(t):Kw(t)?i>1?(i=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):r(t):ex(t)?yS(e,l,"whitespace")(t):(i+=1,a&&(a=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||Jw(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(t):(e.enter("tableDelimiterRow"),a=!1,ex(t)?yS(e,p,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?f(t):124===t?(a=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):y(t)}function h(t){return ex(t)?yS(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(i+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(i+=1,m(t)):null===t||Kw(t)?b(t):y(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):y(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(t))}function v(t){return ex(t)?yS(e,b,"whitespace")(t):b(t)}function b(r){return 124===r?p(r):(null===r||Kw(r))&&a&&o===i?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(r)):y(r)}function y(e){return r(e)}function O(t){return e.enter("tableRow"),w(t)}function w(r){return 124===r?(e.enter("tableCellDivider"),e.consume(r),e.exit("tableCellDivider"),w):null===r||Kw(r)?(e.exit("tableRow"),t(r)):ex(r)?yS(e,w,"whitespace")(r):(e.enter("data"),x(r))}function x(t){return null===t||124===t||Jw(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?k:x)}function k(t){return 92===t||124===t?(e.consume(t),x):x(t)}}function b_(e,t){let r,n,a,o=-1,i=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new m_;for(;++o<e.length;){const h=e[o],f=h[1];"enter"===h[0]?"tableHead"===f.type?(u=!1,0!==d&&(O_(p,t,d,r,n),n=void 0,d=0),r={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(o,0,[["enter",r,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(i=!0,a=void 0,l=[0,0,0,0],c=[0,o+1,0,0],u&&(u=!1,n={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(o,0,[["enter",n,t]])),s="tableDelimiterRow"===f.type?2:n?3:1):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type?"tableCellDivider"===f.type&&(i?i=!1:(0!==l[1]&&(c[0]=c[1],a=y_(p,t,l,s,void 0,a)),l=c,c=[l[1],o,0,0])):(i=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],a=y_(p,t,l,s,void 0,a),l=[0,0,0,0]),c[2]=o)):"tableHead"===f.type?(u=!0,d=o):"tableRow"===f.type||"tableDelimiterRow"===f.type?(d=o,0!==l[1]?(c[0]=c[1],a=y_(p,t,l,s,o,a)):0!==c[1]&&(a=y_(p,t,c,s,o,a)),s=0):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type||(c[3]=o)}for(0!==d&&O_(p,t,d,r,n),p.consume(t.events),o=-1;++o<t.events.length;){const e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=g_(t.events,o))}return e}function y_(e,t,r,n,a,o){const i=1===n?"tableHeader":2===n?"tableDelimiter":"tableData";0!==r[0]&&(o.end=Object.assign({},w_(t.events,r[0])),e.add(r[0],0,[["exit",o,t]]));const s=w_(t.events,r[1]);if(o={type:i,start:Object.assign({},s),end:Object.assign({},s)},e.add(r[1],0,[["enter",o,t]]),0!==r[2]){const a=w_(t.events,r[2]),o=w_(t.events,r[3]),i={type:"tableContent",start:Object.assign({},a),end:Object.assign({},o)};if(e.add(r[2],0,[["enter",i,t]]),2!==n){const n=t.events[r[2]],a=t.events[r[3]];if(n[1].end=Object.assign({},a[1].end),n[1].type="chunkText",n[1].contentType="text",r[3]>r[2]+1){const t=r[2]+1,n=r[3]-r[2]-1;e.add(t,n,[])}}e.add(r[3]+1,0,[["exit",i,t]])}return void 0!==a&&(o.end=Object.assign({},w_(t.events,a)),e.add(a,0,[["exit",o,t]]),o=void 0),o}function O_(e,t,r,n,a){const o=[],i=w_(t.events,r);a&&(a.end=Object.assign({},i),o.push(["exit",a,t])),n.end=Object.assign({},i),o.push(["exit",n,t]),e.add(r+1,0,o)}function w_(e,t){const r=e[t],n="enter"===r[0]?"start":"end";return r[1][n]}const x_={tokenize:function(e,t,r){const n=this;return function(t){return null===n.previous&&n._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),a):r(t)};function a(t){return Jw(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):r(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),i):r(t)}function i(n){return Kw(n)?t(n):ex(n)?e.check({tokenize:k_},t,r)(n):r(n)}}};function k_(e,t,r){return yS(e,(function(e){return null===e?r(e):t(e)}),"whitespace")}const S_={};function __(e){const t=e||S_,r=this.data(),n=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);n.push(function(e){return Xk([{text:iS},{document:{91:{tokenize:d_,continuation:{tokenize:p_},exit:h_}},text:{91:{tokenize:u_},93:{add:"after",tokenize:l_,resolveTo:c_}}},f_(e),{flow:{null:{tokenize:v_,resolveAll:b_}}},{text:{91:x_}}])}(t)),a.push([{transforms:[fx],enter:{literalAutolink:lx,literalAutolinkEmail:cx,literalAutolinkHttp:cx,literalAutolinkWww:cx},exit:{literalAutolink:hx,literalAutolinkEmail:px,literalAutolinkHttp:ux,literalAutolinkWww:dx}},{enter:{gfmFootnoteDefinition:yx,gfmFootnoteDefinitionLabelString:Ox,gfmFootnoteCall:kx,gfmFootnoteCallString:Sx},exit:{gfmFootnoteDefinition:xx,gfmFootnoteDefinitionLabelString:wx,gfmFootnoteCall:Ex,gfmFootnoteCallString:_x}},{canContainEols:["delete"],enter:{strikethrough:Dx},exit:{strikethrough:$x}},{enter:{table:Nk,tableData:Bk,tableHeader:Bk,tableRow:Lk},exit:{codeText:Uk,table:Ik,tableData:jk,tableHeader:jk,tableRow:jk}},{exit:{taskListCheckValueChecked:zk,taskListCheckValueUnchecked:zk,paragraph:qk}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ix,notInConstruct:sx},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ix,notInConstruct:sx},{character:":",before:"[ps]",after:"\\/",inConstruct:ix,notInConstruct:sx}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Ax,footnoteReference:Tx}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Px}],handlers:{delete:Rx}},Qk(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Hk}}]}}(t))}const E_={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),yS(e,t,"linePrefix");e.consume(r)}),(function(t){return e.enter("paragraph"),n(t)}));let r;return t;function n(t){const n=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=n),r=n,a(t)}function a(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Kw(t)?(e.consume(t),e.exit("chunkText"),n):(e.consume(t),a)}}},T_={tokenize:function(e){const t=this,r=[];let n,a,o,i=0;return s;function s(n){if(i<r.length){const a=r[i];return t.containerState=a[1],e.attempt(a[0].continuation,l,c)(n)}return c(n)}function l(e){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&b();const r=t.events.length;let a,o=r;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){a=t.events[o][1].end;break}v(i);let s=r;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},a),s++;return Vk(t.events,o+1,0,t.events.slice(r)),t.events.length=s,c(e)}return s(e)}function c(a){if(i===r.length){if(!n)return p(a);if(n.currentConstruct&&n.currentConstruct.concrete)return f(a);t.interrupt=Boolean(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(A_,u,d)(a)}function u(e){return n&&b(),v(i),p(e)}function d(e){return t.parser.lazy[t.now().line]=i!==r.length,o=t.now().offset,f(e)}function p(r){return t.containerState={},e.attempt(A_,h,f)(r)}function h(e){return i++,r.push([t.currentConstruct,t.containerState]),p(e)}function f(r){return null===r?(n&&b(),v(0),void e.consume(r)):(n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:a,_tokenizer:n}),m(r))}function m(r){return null===r?(g(e.exit("chunkFlow"),!0),v(0),void e.consume(r)):Kw(r)?(e.consume(r),g(e.exit("chunkFlow")),i=0,t.interrupt=void 0,s):(e.consume(r),m)}function g(e,r){const s=t.sliceStream(e);if(r&&s.push(null),e.previous=a,a&&(a.next=e),a=e,n.defineSkip(e.start),n.write(s),t.parser.lazy[e.start.line]){let e=n.events.length;for(;e--;)if(n.events[e][1].start.offset<o&&(!n.events[e][1].end||n.events[e][1].end.offset>o))return;const r=t.events.length;let a,s,l=r;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(a){s=t.events[l][1].end;break}a=!0}for(v(i),e=r;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;Vk(t.events,l+1,0,t.events.slice(r)),t.events.length=e}}function v(n){let a=r.length;for(;a-- >n;){const n=r[a];t.containerState=n[1],n[0].exit.call(t,e)}r.length=n}function b(){n.write([null]),a=void 0,n=void 0,t.containerState._closeFlow=void 0}}},A_={tokenize:function(e,t,r){return yS(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},C_={tokenize:function(e){const t=this,r=e.attempt(OS,(function(n){if(null!==n)return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r;e.consume(n)}),e.attempt(this.parser.constructs.flowInitial,n,yS(e,e.attempt(this.parser.constructs.flow,n,e.attempt(RS,n)),"linePrefix")));return r;function n(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r;e.consume(n)}}},P_={resolveAll:M_()},D_=R_("string"),$_=R_("text");function R_(e){return{tokenize:function(t){const r=this,n=this.parser.constructs[e],a=t.attempt(n,o,i);return o;function o(e){return l(e)?a(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),a(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=n[e];let a=-1;if(t)for(;++a<t.length;){const e=t[a];if(!e.previous||e.previous.call(r,r.previous))return!0}return!1}},resolveAll:M_("text"===e?N_:void 0)}}function M_(e){return function(t,r){let n,a=-1;for(;++a<=t.length;)void 0===n?t[a]&&"data"===t[a][1].type&&(n=a,a++):t[a]&&"data"===t[a][1].type||(a!==n+2&&(t[n][1].end=t[a-1][1].end,t.splice(n+2,a-n-2),a=n+2),n=void 0);return e?e(t,r):t}}function N_(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||"lineEnding"===e[r][1].type)&&"data"===e[r-1][1].type){const n=e[r-1][1],a=t.sliceStream(n);let o,i=a.length,s=-1,l=0;for(;i--;){const e=a[i];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)o=!0,l++;else if(-1!==e){i++;break}}if(l){const a={type:r===e.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-l,offset:n.end.offset-l,_index:n.start._index+i,_bufferIndex:i?s:n.start._bufferIndex+s},end:Object.assign({},n.end)};n.end=Object.assign({},a.start),n.start.offset===n.end.offset?Object.assign(n,a):(e.splice(r,0,["enter",a,t],["exit",a,t]),r+=2)}r++}return e}function I_(e,t,r){let n=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const a={},o=[];let i=[],s=[];const l={consume:function(e){Kw(e)?(n.line++,n.column=1,n.offset+=-3===e?2:1,v()):-1!==e&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===i[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=e},enter:function(e,t){const r=t||{};return r.type=e,r.start=p(),c.events.push(["enter",r,c]),s.push(r),r},exit:function(e){const t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},attempt:m((function(e,t){g(e,t.from)})),check:m(f),interrupt:m(f,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:d,sliceSerialize:function(e,t){return function(e,t){let r=-1;const n=[];let a;for(;++r<e.length;){const o=e[r];let i;if("string"==typeof o)i=o;else switch(o){case-5:i="\r";break;case-4:i="\n";break;case-3:i="\r\n";break;case-2:i=t?" ":"\t";break;case-1:if(!t&&a)continue;i=" ";break;default:i=String.fromCharCode(o)}a=-2===o,n.push(i)}return n.join("")}(d(e),t)},now:p,defineSkip:function(e){a[e.line]=e.column,v()},write:function(e){return i=Zk(i,e),function(){let e;for(;n._index<i.length;){const t=i[n._index];if("string"==typeof t)for(e=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===e&&n._bufferIndex<t.length;)h(t.charCodeAt(n._bufferIndex));else h(t)}}(),null!==i[i.length-1]?[]:(g(t,0),c.events=mS(o,c.events,c),c.events)}};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function d(e){return function(e,t){const r=t.start._index,n=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;let i;if(r===a)i=[e[r].slice(n,o)];else{if(i=e.slice(r,a),n>-1){const e=i[0];"string"==typeof e?i[0]=e.slice(n):i.shift()}o>0&&i.push(e[a].slice(0,o))}return i}(i,e)}function p(){const{line:e,column:t,offset:r,_index:a,_bufferIndex:o}=n;return{line:e,column:t,offset:r,_index:a,_bufferIndex:o}}function h(e){u=u(e)}function f(e,t){t.restore()}function m(e,t){return function(r,a,o){let i,u,d,h;return Array.isArray(r)?f(r):"tokenize"in r?f([r]):function(e){return function(t){const r=null!==t&&e[t],n=null!==t&&e.null;return f([...Array.isArray(r)?r:r?[r]:[],...Array.isArray(n)?n:n?[n]:[]])(t)}}(r);function f(e){return i=e,u=0,0===e.length?o:m(e[u])}function m(e){return function(r){return h=function(){const e=p(),t=c.previous,r=c.currentConstruct,a=c.events.length,o=Array.from(s);return{restore:function(){n=e,c.previous=t,c.currentConstruct=r,c.events.length=a,s=o,v()},from:a}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name)?b():e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,g,b)(r)}}function g(t){return e(d,h),a}function b(e){return h.restore(),++u<i.length?m(i[u]):o}}}function g(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&Vk(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function v(){n.line in a&&n.column<2&&(n.column=a[n.line],n.offset+=a[n.line]-1)}}const L_={42:n_,43:n_,45:n_,48:n_,49:n_,50:n_,51:n_,52:n_,53:n_,54:n_,55:n_,56:n_,57:n_,62:wS},j_={91:BS},B_={[-2]:ES,[-1]:ES,32:ES},U_={35:QS,42:r_,45:[i_,r_],60:HS,61:i_,95:r_,96:_S,126:_S},F_={38:kS,92:xS},Q_={[-5]:t_,[-4]:t_,[-3]:t_,33:JS,38:kS,42:gS,60:[bS,WS],91:e_,92:[FS,xS],93:XS,95:gS,96:AS},z_={null:[gS,P_]},q_=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:j_,disable:{null:[]},document:L_,flow:U_,flowInitial:B_,insideSpan:z_,string:F_,text:Q_},Symbol.toStringTag,{value:"Module"})),H_=/[\0\t\n\r]/g;function V_(e){return e&&"object"==typeof e?"position"in e||"type"in e?W_(e.position):"start"in e||"end"in e?W_(e):"line"in e||"column"in e?Z_(e):"":""}function Z_(e){return X_(e&&e.line)+":"+X_(e&&e.column)}function W_(e){return Z_(e&&e.start)+"-"+Z_(e&&e.end)}function X_(e){return e&&"number"==typeof e?e:1}const G_={}.hasOwnProperty;function Y_(e,t,r){return"string"!=typeof t&&(r=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(b),autolinkProtocol:u,autolinkEmail:u,atxHeading:a(m),blockQuote:a((function(){return{type:"blockquote",children:[]}})),characterEscape:u,characterReference:u,codeFenced:a(f),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(f,o),codeText:a((function(){return{type:"inlineCode",value:""}}),o),codeTextData:u,data:u,codeFlowValue:u,definition:a((function(){return{type:"definition",identifier:"",label:null,title:null,url:""}})),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a((function(){return{type:"emphasis",children:[]}})),hardBreakEscape:a(g),hardBreakTrailing:a(g),htmlFlow:a(v,o),htmlFlowData:u,htmlText:a(v,o),htmlTextData:u,image:a((function(){return{type:"image",title:null,url:"",alt:null}})),label:o,link:a(b),listItem:a((function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}})),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:a(y,(function(){this.data.expectingFirstListItemValue=!0})),listUnordered:a(y),paragraph:a((function(){return{type:"paragraph",children:[]}})),reference:function(){this.data.referenceType="collapsed"},referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(m),strong:a((function(){return{type:"strong",children:[]}})),thematicBreak:a((function(){return{type:"thematicBreak"}}))},exit:{atxHeading:s(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const r=this.sliceSerialize(e).length;t.depth=r}},autolink:s(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){const t=this.sliceSerialize(e),r=this.data.characterReferenceType;let n;r?(n=gk(t,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):n=mk(t);this.stack[this.stack.length-1].value+=n},characterReference:function(e){this.stack.pop().position.end=K_(e.end)},codeFenced:s((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0})),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:s((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")})),codeText:s((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),codeTextData:d,data:d,definition:s(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=bx(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(p),hardBreakTrailing:s(p),htmlFlow:s((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlFlowData:d,htmlText:s((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlTextData:d,image:s((function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0})),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),r=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===r.type){const t=e.children;r.children=t}else r.alt=t},labelText:function(e){const t=this.sliceSerialize(e),r=this.stack[this.stack.length-2];r.label=bk(t),r.identifier=bx(t).toLowerCase()},lineEnding:function(e){const r=this.stack[this.stack.length-1];if(this.data.atHardBreak)return r.children[r.children.length-1].position.end=K_(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(r.type)&&(u.call(this,e),d.call(this,e))},link:s((function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0})),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=bx(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:s((function(){this.data.setextHeadingSlurpLineEnding=void 0})),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};J_(t,(e||{}).mdastExtensions||[]);const r={};return function(e){let a={type:"root",children:[]};const s={stack:[a],tokenStack:[],config:t,enter:i,exit:l,buffer:o,resume:c,data:r},u=[];let d=-1;for(;++d<e.length;)"listOrdered"!==e[d][1].type&&"listUnordered"!==e[d][1].type||("enter"===e[d][0]?u.push(d):d=n(e,u.pop(),d));for(d=-1;++d<e.length;){const r=t[e[d][0]];G_.call(r,e[d][1].type)&&r[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},s),e[d][1])}if(s.tokenStack.length>0){const e=s.tokenStack[s.tokenStack.length-1];(e[1]||tE).call(s,void 0,e[0])}for(a.position={start:K_(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:K_(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)a=t.transforms[d](a)||a;return a};function n(e,t,r){let n,a,o,i,s=t-1,l=-1,c=!1;for(;++s<=r;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,i=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!n||i||l||o||(o=s),i=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:i=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(n){let i=s;for(a=void 0;i--;){const t=e[i];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;a&&(e[a][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",a=i}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!a||o<a)&&(n._spread=!0),n.end=Object.assign({},a?e[a][1].start:t[1].end),e.splice(a||s,0,["exit",n,t[2]]),s++,r++}if("listItemPrefix"===t[1].type){const a={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};n=a,e.splice(s,0,["enter",a,t[2]]),s++,r++,o=void 0,i=!0}}}return e[t][1]._spread=c,r}function a(e,t){return function(r){i.call(this,e(r),r),t&&t.call(this,r)}}function o(){this.stack.push({type:"fragment",children:[]})}function i(e,t,r){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,r]),e.position={start:K_(t.start),end:void 0}}function s(e){return function(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){const r=this.stack.pop(),n=this.tokenStack.pop();if(!n)throw new Error("Cannot close `"+e.type+"` ("+V_({start:e.start,end:e.end})+"): it’s not open");n[0].type!==e.type&&(t?t.call(this,e,n[0]):(n[1]||tE).call(this,e,n[0])),r.position.end=K_(e.end)}function c(){return Xx(this.stack.pop())}function u(e){const t=this.stack[this.stack.length-1].children;let r=t[t.length-1];r&&"text"===r.type||(r={type:"text",value:""},r.position={start:K_(e.start),end:void 0},t.push(r)),this.stack.push(r)}function d(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=K_(e.end)}function p(){this.data.atHardBreak=!0}function h(e){this.data.characterReferenceType=e.type}function f(){return{type:"code",lang:null,meta:null,value:""}}function m(){return{type:"heading",depth:0,children:[]}}function g(){return{type:"break"}}function v(){return{type:"html",value:""}}function b(){return{type:"link",title:null,url:"",children:[]}}function y(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(r)(function(e){for(;!DS(e););return e}(function(e){const t={defined:[],lazy:{},constructs:Xk([q_,...(e||{}).extensions||[]]),content:r(E_),document:r(T_),flow:r(C_),string:r(D_),text:r($_)};return t;function r(e){return function(r){return I_(t,e,r)}}}(r).document().write(function(){let e,t=1,r="",n=!0;return function(a,o,i){const s=[];let l,c,u,d,p;for(a=r+("string"==typeof a?a.toString():new TextDecoder(o||void 0).decode(a)),u=0,r="",n&&(65279===a.charCodeAt(0)&&u++,n=void 0);u<a.length;){if(H_.lastIndex=u,l=H_.exec(a),d=l&&void 0!==l.index?l.index:a.length,p=a.charCodeAt(d),!l){r=a.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(a.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return i&&(e&&s.push(-5),r&&s.push(r),s.push(null)),s}}()(e,t,!0))))}function K_(e){return{line:e.line,column:e.column,offset:e.offset}}function J_(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?J_(e,n):eE(e,n)}}function eE(e,t){let r;for(r in t)if(G_.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function tE(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+V_({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+V_({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+V_({start:t.start,end:t.end})+") is still open")}function rE(e){const t=this;t.parser=function(r){return Y_(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function nE(e,t){const r=t.referenceType;let n="]";if("collapsed"===r?n+="[]":"full"===r&&(n+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+n}];const a=e.all(t),o=a[0];o&&"text"===o.type?o.value="["+o.value:a.unshift({type:"text",value:"["});const i=a[a.length-1];return i&&"text"===i.type?i.value+=n:a.push({type:"text",value:n}),a}function aE(e){const t=e.spread;return null==t?e.children.length>1:t}function oE(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),a=0;const o=[];for(;n;)o.push(iE(t.slice(a,n.index),a>0,!0),n[0]),a=n.index+n[0].length,n=r.exec(t);return o.push(iE(t.slice(a),a>0,!1)),o.join("")}function iE(e,t,r){let n=0,a=e.length;if(t){let t=e.codePointAt(n);for(;9===t||32===t;)n++,t=e.codePointAt(n)}if(r){let t=e.codePointAt(a-1);for(;9===t||32===t;)a--,t=e.codePointAt(a-1)}return a>n?e.slice(n,a):""}const sE={blockquote:function(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)},break:function(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:"\n"}]},code:function(e,t){const r=t.value?t.value+"\n":"",n={};t.lang&&(n.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a},delete:function(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},emphasis:function(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},footnoteReference:function(e,t){const r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),a=hS(n.toLowerCase()),o=e.footnoteOrder.indexOf(n);let i,s=e.footnoteCounts.get(n);void 0===s?(s=0,e.footnoteOrder.push(n),i=e.footnoteOrder.length):i=o+1,s+=1,e.footnoteCounts.set(n,s);const l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},html:function(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}},imageReference:function(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return nE(e,t);const a={src:hS(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(a.title=n.title);const o={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const r={src:hS(t.url)};null!==t.alt&&void 0!==t.alt&&(r.alt=t.alt),null!==t.title&&void 0!==t.title&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)},inlineCode:function(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)},linkReference:function(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return nE(e,t);const a={href:hS(n.url||"")};null!==n.title&&void 0!==n.title&&(a.title=n.title);const o={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const r={href:hS(t.url)};null!==t.title&&void 0!==t.title&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},listItem:function(e,t,r){const n=e.all(t),a=r?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=aE(r[n])}return t}(r):aE(t),o={},i=[];if("boolean"==typeof t.checked){const e=n[0];let r;e&&"element"===e.type&&"p"===e.tagName?r=e:(r={type:"element",tagName:"p",properties:{},children:[]},n.unshift(r)),r.children.length>0&&r.children.unshift({type:"text",value:" "}),r.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<n.length;){const e=n[s];(a||0!==s||"element"!==e.type||"p"!==e.tagName)&&i.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||a?i.push(e):i.push(...e.children)}const l=n[n.length-1];l&&(a||"element"!==l.type||"p"!==l.tagName)&&i.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:o,children:i};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const r={},n=e.all(t);let a=-1;for("number"==typeof t.start&&1!==t.start&&(r.start=t.start);++a<n.length;){const e=n[a];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},root:function(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)},strong:function(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},table:function(e,t){const r=e.all(t),n=r.shift(),a=[];if(n){const r={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],r),a.push(r)}if(r.length>0){const n={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},o=CO(t.children[1]),i=AO(t.children[t.children.length-1]);o&&i&&(n.position={start:o,end:i}),a.push(n)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},tableRow:function(e,t,r){const n=r?r.children:void 0,a=0===(n?n.indexOf(t):1)?"th":"td",o=r&&"table"===r.type?r.align:void 0,i=o?o.length:t.children.length;let s=-1;const l=[];for(;++s<i;){const r=t.children[s],n={},i=o?o[s]:void 0;i&&(n.align=i);let c={type:"element",tagName:a,properties:n,children:[]};r&&(c.children=e.all(r),e.patch(r,c),c=e.applyData(r,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const r={type:"text",value:oE(String(t.value))};return e.patch(t,r),e.applyData(t,r)},thematicBreak:function(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)},toml:lE,yaml:lE,definition:lE,footnoteDefinition:lE};function lE(){}function cE(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function uE(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const dE={}.hasOwnProperty,pE={};function hE(e,t){e.position&&(t.position=DO(e))}function fE(e,t){let r=t;if(e&&e.data){const t=e.data.hName,n=e.data.hChildren,a=e.data.hProperties;"string"==typeof t&&("element"===r.type?r.tagName=t:r={type:"element",tagName:t,properties:{},children:"children"in r?r.children:[r]}),"element"===r.type&&a&&Object.assign(r.properties,$m(a)),"children"in r&&r.children&&null!=n&&(r.children=n)}return r}function mE(e,t){const r=t.data||{},n=!("value"in t)||dE.call(r,"hProperties")||dE.call(r,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,n),e.applyData(t,n)}function gE(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:"\n"});++n<e.length;)n&&r.push({type:"text",value:"\n"}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:"\n"}),r}function vE(e){let t=0,r=e.charCodeAt(t);for(;9===r||32===r;)t++,r=e.charCodeAt(t);return e.slice(t)}function bE(e,t){const r=function(e,t){const r=t||pE,n=new Map,a=new Map,o=new Map,i={...sE,...r.handlers},s={all:function(e){const t=[];if("children"in e){const r=e.children;let n=-1;for(;++n<r.length;){const a=s.one(r[n],e);if(a){if(n&&"break"===r[n-1].type&&(Array.isArray(a)||"text"!==a.type||(a.value=vE(a.value)),!Array.isArray(a)&&"element"===a.type)){const e=a.children[0];e&&"text"===e.type&&(e.value=vE(e.value))}Array.isArray(a)?t.push(...a):t.push(a)}}}return t},applyData:fE,definitionById:n,footnoteById:a,footnoteCounts:o,footnoteOrder:[],handlers:i,one:function(e,t){const r=e.type,n=s.handlers[r];if(dE.call(s.handlers,r)&&n)return n(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(r)){if("children"in e){const{children:t,...r}=e,n=$m(r);return n.children=s.all(e),n}return $m(e)}return(s.options.unknownHandler||mE)(s,e,t)},options:r,patch:hE,wrap:gE};return Xm(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?n:a,r=String(e.identifier).toUpperCase();t.has(r)||t.set(r,e)}})),s}(e,t),n=r.one(e,void 0),a=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||cE,n=e.options.footnoteBackLabel||uE,a=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const a=e.footnoteById.get(e.footnoteOrder[l]);if(!a)continue;const o=e.all(a),i=String(a.identifier).toUpperCase(),c=hS(i.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(i);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof r?r:r(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof n?n:n(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const h=o[o.length-1];if(h&&"element"===h.type&&"p"===h.tagName){const e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...d)}else o.push(...d);const f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(o,!0)};e.patch(a,f),s.push(f)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...$m(i),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(r),o=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return a&&o.children.push({type:"text",value:"\n"},a),o}function yE(e,t){return e&&"run"in e?async function(r,n){const a=bE(r,{file:n,...t});await e.run(a,n)}:function(r,n){return bE(r,{file:n,...t||e})}}function OE(e){const t=this;t.compiler=function(r){return Ak(r,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function wE(e){if(e)throw e}var xE=Object.prototype.hasOwnProperty,kE=Object.prototype.toString,SE=Object.defineProperty,_E=Object.getOwnPropertyDescriptor,EE=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===kE.call(e)},TE=function(e){if(!e||"[object Object]"!==kE.call(e))return!1;var t,r=xE.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&xE.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||xE.call(e,t)},AE=function(e,t){SE&&"__proto__"===t.name?SE(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},CE=function(e,t){if("__proto__"===t){if(!xE.call(e,t))return;if(_E)return _E(e,t).value}return e[t]};const PE=Qf((function e(){var t,r,n,a,o,i,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(r in t)n=CE(s,r),s!==(a=CE(t,r))&&(u&&a&&(TE(a)||(o=EE(a)))?(o?(o=!1,i=n&&EE(n)?n:[]):i=n&&TE(n)?n:{},AE(s,{name:r,newValue:e(u,i,a)})):void 0!==a&&AE(s,{name:r,newValue:a}));return s}));function DE(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}class $E extends Error{constructor(e,t,r){super(),"string"==typeof t&&(r=t,t=void 0);let n="",a={},o=!1;if(t&&(a="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?n=e:!a.cause&&e&&(o=!0,n=e.message,a.cause=e),!a.ruleId&&!a.source&&"string"==typeof r){const e=r.indexOf(":");-1===e?a.ruleId=r:(a.source=r.slice(0,e),a.ruleId=r.slice(e+1))}if(!a.place&&a.ancestors&&a.ancestors){const e=a.ancestors[a.ancestors.length-1];e&&(a.place=e.position)}const i=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=i?i.column:void 0,this.fatal=void 0,this.file,this.message=n,this.line=i?i.line:void 0,this.name=V_(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&"string"==typeof a.cause.stack?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}$E.prototype.file="",$E.prototype.name="",$E.prototype.reason="",$E.prototype.message="",$E.prototype.stack="",$E.prototype.column=void 0,$E.prototype.line=void 0,$E.prototype.ancestors=void 0,$E.prototype.cause=void 0,$E.prototype.fatal=void 0,$E.prototype.place=void 0,$E.prototype.ruleId=void 0,$E.prototype.source=void 0;const RE=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');jE(e);let r,n=0,a=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(r){n=o+1;break}}else a<0&&(r=!0,a=o+1);return a<0?"":e.slice(n,a)}if(t===e)return"";let i=-1,s=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(r){n=o+1;break}}else i<0&&(r=!0,i=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(a=o):(s=-1,a=i));return n===a?a=i:a<0&&(a=e.length),e.slice(n,a)},ME=function(e){if(jE(e),0===e.length)return".";let t,r=-1,n=e.length;for(;--n;)if(47===e.codePointAt(n)){if(t){r=n;break}}else t||(t=!0);return r<0?47===e.codePointAt(0)?"/":".":1===r&&47===e.codePointAt(0)?"//":e.slice(0,r)},NE=function(e){jE(e);let t,r=e.length,n=-1,a=0,o=-1,i=0;for(;r--;){const s=e.codePointAt(r);if(47!==s)n<0&&(t=!0,n=r+1),46===s?o<0?o=r:1!==i&&(i=1):o>-1&&(i=-1);else if(t){a=r+1;break}}return o<0||n<0||0===i||1===i&&o===n-1&&o===a+1?"":e.slice(o,n)},IE=function(...e){let t,r=-1;for(;++r<e.length;)jE(e[r]),e[r]&&(t=void 0===t?e[r]:t+"/"+e[r]);return void 0===t?".":function(e){jE(e);const t=47===e.codePointAt(0);let r=function(e,t){let r,n,a="",o=0,i=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)r=e.codePointAt(l);else{if(47===r)break;r=47}if(47===r){if(i===l-1||1===s);else if(i!==l-1&&2===s){if(a.length<2||2!==o||46!==a.codePointAt(a.length-1)||46!==a.codePointAt(a.length-2))if(a.length>2){if(n=a.lastIndexOf("/"),n!==a.length-1){n<0?(a="",o=0):(a=a.slice(0,n),o=a.length-1-a.lastIndexOf("/")),i=l,s=0;continue}}else if(a.length>0){a="",o=0,i=l,s=0;continue}t&&(a=a.length>0?a+"/..":"..",o=2)}else a.length>0?a+="/"+e.slice(i+1,l):a=e.slice(i+1,l),o=l-i-1;i=l,s=0}else 46===r&&s>-1?s++:s=-1}return a}(e,!t);return 0!==r.length||t||(r="."),r.length>0&&47===e.codePointAt(e.length-1)&&(r+="/"),t?"/"+r:r}(t)},LE="/";function jE(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const BE=function(){return"/"};function UE(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const FE=["history","path","basename","stem","extname","dirname"];class QE{constructor(e){let t;t=e?UE(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd=BE(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r,n=-1;for(;++n<FE.length;){const e=FE[n];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(r in t)FE.includes(r)||(this[r]=t[r])}get basename(){return"string"==typeof this.path?RE(this.path):void 0}set basename(e){qE(e,"basename"),zE(e,"basename"),this.path=IE(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?ME(this.path):void 0}set dirname(e){HE(this.basename,"dirname"),this.path=IE(e||"",this.basename)}get extname(){return"string"==typeof this.path?NE(this.path):void 0}set extname(e){if(zE(e,"extname"),HE(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=IE(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){UE(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!UE(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let r=-1;for(;++r<t.length;)if(37===t.codePointAt(r)&&50===t.codePointAt(r+1)){const e=t.codePointAt(r+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),qE(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?RE(this.path,this.extname):void 0}set stem(e){qE(e,"stem"),zE(e,"stem"),this.path=IE(this.dirname||"",e+(this.extname||""))}fail(e,t,r){const n=this.message(e,t,r);throw n.fatal=!0,n}info(e,t,r){const n=this.message(e,t,r);return n.fatal=void 0,n}message(e,t,r){const n=new $E(e,t,r);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function zE(e,t){if(e&&e.includes(LE))throw new Error("`"+t+"` cannot be a path: did not expect `"+LE+"`")}function qE(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function HE(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const VE=function(e){const t=this.constructor.prototype,r=t[e],n=function(){return r.apply(n,arguments)};Object.setPrototypeOf(n,t);const a=Object.getOwnPropertyNames(r);for(const e of a){const t=Object.getOwnPropertyDescriptor(r,e);t&&Object.defineProperty(n,e,t)}return n},ZE={}.hasOwnProperty;class WE extends VE{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){const e=[],t={run:function(...t){let r=-1;const n=t.pop();if("function"!=typeof n)throw new TypeError("Expected function as last argument, not "+n);!function a(o,...i){const s=e[++r];let l=-1;if(o)n(o);else{for(;++l<t.length;)null!==i[l]&&void 0!==i[l]||(i[l]=t[l]);t=i,s?function(e,t){let r;return function(...t){const o=e.length>t.length;let i;o&&t.push(n);try{i=e.apply(this,t)}catch(e){if(o&&r)throw e;return n(e)}o||(i&&i.then&&"function"==typeof i.then?i.then(a,n):i instanceof Error?n(i):a(i))};function n(e,...n){r||(r=!0,t(e,...n))}function a(e){n(null,e)}}(s,a)(...i):n(null,...i)}}(null,...t)},use:function(r){if("function"!=typeof r)throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}};return t}()}copy(){const e=new WE;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];e.use(...r)}return e.data(PE(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(KE("data",this.frozen),this.namespace[e]=t,this):ZE.call(this.namespace,e)&&this.namespace[e]||void 0:e?(KE("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(!1===r[0])continue;!0===r[0]&&(r[0]=void 0);const n=t.call(e,...r);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=tT(e),r=this.parser||this.Parser;return GE("parse",r),r(String(t),t)}process(e,t){const r=this;return this.freeze(),GE("process",this.parser||this.Parser),YE("process",this.compiler||this.Compiler),t?n(void 0,t):new Promise(n);function n(n,a){const o=tT(e),i=r.parse(o);function s(e,r){e||!r?a(e):n?n(r):t(void 0,r)}r.run(i,o,(function(e,t,n){if(e||!t||!n)return s(e);const a=t,o=r.stringify(a,n);var i;"string"==typeof(i=o)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(i)?n.value=o:n.result=o,s(e,n)}))}}processSync(e){let t,r=!1;return this.freeze(),GE("processSync",this.parser||this.Parser),YE("processSync",this.compiler||this.Compiler),this.process(e,(function(e,n){r=!0,wE(e),t=n})),eT("processSync","process",r),t}run(e,t,r){JE(e),this.freeze();const n=this.transformers;return r||"function"!=typeof t||(r=t,t=void 0),r?a(void 0,r):new Promise(a);function a(a,o){const i=tT(t);n.run(e,i,(function(t,n,i){const s=n||e;t?o(t):a?a(s):r(void 0,s,i)}))}}runSync(e,t){let r,n=!1;return this.run(e,t,(function(e,t){wE(e),r=t,n=!0})),eT("runSync","run",n),r}stringify(e,t){this.freeze();const r=tT(t),n=this.compiler||this.Compiler;return YE("stringify",n),JE(e),n(e,r)}use(e,...t){const r=this.attachers,n=this.namespace;if(KE("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?i(e):o(e)}return this;function a(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...r]=e;s(t,r)}else o(e)}}function o(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");i(e.plugins),e.settings&&(n.settings=PE(!0,n.settings,e.settings))}function i(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)a(e[t])}}function s(e,t){let n=-1,a=-1;for(;++n<r.length;)if(r[n][0]===e){a=n;break}if(-1===a)r.push([e,...t]);else if(t.length>0){let[n,...o]=t;const i=r[a][1];DE(i)&&DE(n)&&(n=PE(!0,i,n)),r[a]=[e,n,...o]}}}}const XE=(new WE).freeze();function GE(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function YE(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function KE(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function JE(e){if(!DE(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function eT(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function tT(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new QE(e)}const rT=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],nT=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],aT=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],oT=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],iT=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();var sT="[0-9](_*[0-9])*",lT=`\\.(${sT})`,cT="[0-9a-fA-F](_*[0-9a-fA-F])*",uT={className:"number",variants:[{begin:`(\\b(${sT})((${lT})|\\.)?|(${lT}))[eE][+-]?(${sT})[fFdD]?\\b`},{begin:`\\b(${sT})((${lT})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${lT})[fFdD]?\\b`},{begin:`\\b(${sT})[fFdD]\\b`},{begin:`\\b0[xX]((${cT})\\.?|(${cT})?\\.(${cT}))[pP][+-]?(${sT})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${cT})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function dT(e,t,r){return-1===r?"":e.replace(t,(n=>dT(e,t,r-1)))}const pT="[A-Za-z$_][0-9A-Za-z$_]*",hT=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],fT=["true","false","null","undefined","NaN","Infinity"],mT=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],gT=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],vT=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],bT=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],yT=[].concat(vT,mT,gT);var OT="[0-9](_*[0-9])*",wT=`\\.(${OT})`,xT="[0-9a-fA-F](_*[0-9a-fA-F])*",kT={className:"number",variants:[{begin:`(\\b(${OT})((${wT})|\\.)?|(${wT}))[eE][+-]?(${OT})[fFdD]?\\b`},{begin:`\\b(${OT})((${wT})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${wT})[fFdD]?\\b`},{begin:`\\b(${OT})[fFdD]\\b`},{begin:`\\b0[xX]((${xT})\\.?|(${xT})?\\.(${xT}))[pP][+-]?(${OT})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${xT})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};const ST=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],_T=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],ET=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],TT=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],AT=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),CT=ET.concat(TT),PT=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],DT=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],$T=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],RT=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],MT=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function NT(e){return e?"string"==typeof e?e:e.source:null}function IT(e){return LT("(?=",e,")")}function LT(...e){return e.map((e=>NT(e))).join("")}function jT(...e){const t=function(e){const t=e[e.length-1];return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}(e);return"("+(t.capture?"":"?:")+e.map((e=>NT(e))).join("|")+")"}const BT=e=>LT(/\b/,e,/\w$/.test(e)?/\b/:/\B/),UT=["Protocol","Type"].map(BT),FT=["init","self"].map(BT),QT=["Any","Self"],zT=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],qT=["false","nil","true"],HT=["assignment","associativity","higherThan","left","lowerThan","none","right"],VT=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],ZT=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],WT=jT(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),XT=jT(WT,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),GT=LT(WT,XT,"*"),YT=jT(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),KT=jT(YT,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),JT=LT(YT,KT,"*"),eA=LT(/[A-Z]/,KT,"*"),tA=["attached","autoclosure",LT(/convention\(/,jT("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",LT(/objc\(/,JT,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],rA=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"],nA="[A-Za-z$_][0-9A-Za-z$_]*",aA=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],oA=["true","false","null","undefined","NaN","Infinity"],iA=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],sA=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],lA=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],cA=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],uA=[].concat(lA,iA,sA);function dA(e){const t=e.regex,r=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),n={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(a,{begin:/\(/,end:/\)/}),i=e.inherit(e.APOS_STRING_MODE,{className:"string"}),s=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:/[\p{L}0-9._:-]+/u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[n]},{begin:/'/,end:/'/,contains:[n]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[a,s,i,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[a,o,s,i]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},n,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[s]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(r,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:l}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const pA={bash:function(e){const t=e.regex,r={},n={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},n]});const a={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},i={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,a]};a.contains.push(i);const s={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,r]},l=e.SHEBANG({binary:`(${["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"].join("|")})`,relevance:10}),c={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],literal:["true","false"],built_in:["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset","alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias","set","shopt","autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp","chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"]},contains:[l,e.SHEBANG(),c,s,e.HASH_COMMENT_MODE,o,{match:/(\/[a-z._-]+)+/},i,{match:/\\"/},{className:"string",begin:/'/,end:/'/},{match:/\\'/},r]}},c:function(e){const t=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),n="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",o="("+n+"|"+t.optional(a)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",i={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},s={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(s,{className:"string"}),{className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},u={className:"title",begin:t.optional(a)+e.IDENT_RE,relevance:0},d=t.optional(a)+e.IDENT_RE+"\\s*\\(",p={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},h=[c,i,r,e.C_BLOCK_COMMENT_MODE,l,s],f={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:p,contains:h.concat([{begin:/\(/,end:/\)/,keywords:p,contains:h.concat(["self"]),relevance:0}]),relevance:0},m={begin:"("+o+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:p,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:p,relevance:0},{begin:d,returnBegin:!0,contains:[e.inherit(u,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,s,l,i,{begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,s,l,i]}]},i,r,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C",aliases:["h"],keywords:p,disableAutodetect:!0,illegal:"</",contains:[].concat(f,m,h,[c,{begin:e.IDENT_RE+"::",keywords:p},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:c,strings:s,keywords:p}}},clojure:function(e){const t="a-zA-Z_\\-!.?+*=<>&'",r="[#]?["+t+"]["+t+"0-9/;:$#]*",n="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",a={$pattern:r,built_in:n+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},o={begin:r,relevance:0},i={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},s={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},l={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),u={scope:"punctuation",match:/,/,relevance:0},d=e.COMMENT(";","$",{relevance:0}),p={className:"literal",begin:/\b(true|false|nil)\b/},h={begin:"\\[|(#::?"+r+")?\\{",end:"[\\]\\}]",relevance:0},f={className:"symbol",begin:"[:]{1,2}"+r},m={begin:"\\(",end:"\\)"},g={endsWithParent:!0,relevance:0},v={keywords:a,className:"name",begin:r,relevance:0,starts:g},b=[u,m,s,l,c,d,f,h,i,p,o],y={beginKeywords:n,keywords:{$pattern:r,keyword:n},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:r,relevance:0,excludeEnd:!0,endsParent:!0}].concat(b)};return m.contains=[y,v,g],g.contains=b,h.contains=b,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[u,m,s,l,c,d,f,h,i,p]}},cpp:function(e){const t=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),n="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",o="(?!struct)("+n+"|"+t.optional(a)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",i={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},s={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(s,{className:"string"}),{className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},u={className:"title",begin:t.optional(a)+e.IDENT_RE,relevance:0},d=t.optional(a)+e.IDENT_RE+"\\s*\\(",p={type:["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],keyword:["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"]},h={className:"function.dispatch",relevance:0,keywords:{_hint:["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"]},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},f=[h,c,i,r,e.C_BLOCK_COMMENT_MODE,l,s],m={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:p,contains:f.concat([{begin:/\(/,end:/\)/,keywords:p,contains:f.concat(["self"]),relevance:0}]),relevance:0},g={className:"function",begin:"("+o+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:p,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:p,relevance:0},{begin:d,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[s,l]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,s,l,i,{begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,s,l,i]}]},i,r,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:p,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(m,g,h,f,[c,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:p,contains:["self",i]},{begin:e.IDENT_RE+"::",keywords:p},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}},csharp:function(e){const t={keyword:["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"].concat(["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"]),built_in:["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],literal:["default","false","null","true"]},r=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),n={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},a={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},o=e.inherit(a,{illegal:/\n/}),i={className:"subst",begin:/\{/,end:/\}/,keywords:t},s=e.inherit(i,{illegal:/\n/}),l={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,s]},c={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},i]},u=e.inherit(c,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},s]});i.contains=[c,l,a,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,n,e.C_BLOCK_COMMENT_MODE],s.contains=[u,l,o,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,n,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const d={variants:[c,l,a,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},p={begin:"<",end:">",contains:[{beginKeywords:"in out"},r]},h=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",f={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:t,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"\x3c!--|--\x3e"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},d,n,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},r,p,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[r,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[r,p,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+h+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:t,contains:[{beginKeywords:["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"].join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,p],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,relevance:0,contains:[d,n,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},f]}},css:function(e){const t=e.regex,r=(e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}))(e),n=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[r.BLOCK_COMMENT,{begin:/-(webkit|moz|ms|o)-(?=[a-z])/},r.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\.[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+aT.join("|")+")"},{begin:":(:)?("+oT.join("|")+")"}]},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+iT.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,...n,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...n,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:/@-?\w[\w]*(-\w+)*/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",attribute:nT.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...n,r.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+rT.join("|")+")\\b"}]}},curl:Qf((function(e){const t={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,{className:"variable",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}],relevance:0},r={className:"number",variants:[{begin:e.C_NUMBER_RE}],relevance:0};return{name:"curl",aliases:["curl"],keywords:"curl",case_insensitive:!0,contains:[{className:"literal",begin:/(--request|-X)\s/,contains:[{className:"symbol",begin:/(get|post|delete|options|head|put|patch|trace|connect)/,end:/\s/,returnEnd:!0}],returnEnd:!0,relevance:10},{className:"literal",begin:/--/,end:/[\s"]/,returnEnd:!0,relevance:0},{className:"literal",begin:/-\w/,end:/[\s"]/,returnEnd:!0,relevance:0},t,{className:"string",begin:/\\"/,relevance:0},{className:"string",begin:/'/,end:/'/,relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,r,{match:/(\/[a-z._-]+)+/}]}})),dart:function(e){const t={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},r={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},n={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,t,r]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,t,r]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,r]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,r]}]};r.contains=[e.C_NUMBER_MODE,n];const a=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],o=a.map((e=>`${e}?`));return{name:"Dart",keywords:{keyword:["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"],built_in:a.concat(o).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[n,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}},elixir:function(e){const t=e.regex,r="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",n={$pattern:r,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},a={className:"subst",begin:/#\{/,end:/\}/,keywords:n},o={match:/\\[\s\S]/,scope:"char.escape",relevance:0},i="[/|([{<\"']",s=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}],l=e=>({scope:"char.escape",begin:t.concat(/\\/,e),relevance:0}),c={className:"string",begin:"~[a-z](?="+i+")",contains:s.map((t=>e.inherit(t,{contains:[l(t.end),o,a]})))},u={className:"string",begin:"~[A-Z](?="+i+")",contains:s.map((t=>e.inherit(t,{contains:[l(t.end)]})))},d={className:"regex",variants:[{begin:"~r(?="+i+")",contains:s.map((r=>e.inherit(r,{end:t.concat(r.end,/[uismxfU]{0,7}/),contains:[l(r.end),o,a]})))},{begin:"~R(?="+i+")",contains:s.map((r=>e.inherit(r,{end:t.concat(r.end,/[uismxfU]{0,7}/),contains:[l(r.end)]})))}]},p={className:"string",contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},h={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:r,endsParent:!0})]},f=e.inherit(h,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),m=[p,d,u,c,e.HASH_COMMENT_MODE,f,h,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[p,{begin:"[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?"}],relevance:0},{className:"symbol",begin:r+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},{className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return a.contains=m,{name:"Elixir",aliases:["ex","exs"],keywords:n,contains:m}},go:function(e){const t={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:t,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:e.C_NUMBER_RE+"[i]",relevance:1},e.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,illegal:/["']/}]}]}},graphql:function(e){const t=e.regex;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(/[_A-Za-z][_0-9A-Za-z]*/,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}},html:dA,java:function(e){const t=e.regex,r="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",n=r+dT("(?:<"+r+"~~~(?:\\s*,\\s*"+r+"~~~)*>)?",/~~~/g,2),a={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},o={className:"meta",begin:"@"+r,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},i={className:"params",begin:/\(/,end:/\)/,keywords:a,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:a,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,r),/\s+/,r,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,r],className:{1:"keyword",3:"title.class"},contains:[i,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+n+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:a,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:a,relevance:0,contains:[o,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,uT,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},uT,o]}},javascript:function(e){const t=e.regex,r=pT,n={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const r=e[0].length+e.index,n=e.input[r];if("<"===n||","===n)return void t.ignoreMatch();let a;">"===n&&(((e,{after:t})=>{const r="</"+e[0].slice(1);return-1!==e.input.indexOf(r,t)})(e,{after:r})||t.ignoreMatch());const o=e.input.substring(r);((a=o.match(/^\s*=/))||(a=o.match(/^\s+extends\s+/))&&0===a.index)&&t.ignoreMatch()}},a={$pattern:pT,keyword:hT,literal:fT,built_in:yT,"variable.language":bT},o="[0-9](_?[0-9])*",i=`\\.(${o})`,s="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",l={className:"number",variants:[{begin:`(\\b(${s})((${i})|\\.)?|(${i}))[eE][+-]?(${o})\\b`},{begin:`\\b(${s})\\b((${i})\\b|\\.)?|(${i})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},c={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},u={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,c],subLanguage:"xml"}},d={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,c],subLanguage:"css"}},p={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,c],subLanguage:"graphql"}},h={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,c]},f={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},m=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,d,p,h,{match:/\$\d+/},l];c.contains=m.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(m)});const g=[].concat(f,c.contains),v=g.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(g)}]),b={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:v},y={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},O={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...mT,...gT]}},w={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[b],illegal:/%/},x={match:t.concat(/\b/,(k=[...vT,"super","import"],t.concat("(?!",k.join("|"),")")),r,t.lookahead(/\(/)),className:"title.function",relevance:0};var k;const S={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},_={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},b]},E="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",T={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(E)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[b]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:v,CLASS_REFERENCE:O},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,d,p,h,f,{match:/\$\d+/},l,O,{className:"attr",begin:r+t.lookahead(":"),relevance:0},T,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[f,e.REGEXP_MODE,{className:"function",begin:E,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:v}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:"<>",end:"</>"},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:n.begin,"on:begin":n.isTrulyOpeningTag,end:n.end}],subLanguage:"xml",contains:[{begin:n.begin,end:n.end,skip:!0,contains:["self"]}]}]},w,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[b,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},S,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[b]},x,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},y,_,{match:/\$[(.]/}]}},json:function(e){const t=["true","false","null"],r={scope:"literal",beginKeywords:t.join(" ")};return{name:"JSON",keywords:{literal:t},contains:[{className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},{match:/[{}[\],:]/,className:"punctuation",relevance:0},e.QUOTE_STRING_MODE,r,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}},kotlin:function(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},n={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},a={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[a,n]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,a,n]}]};n.contains.push(o);const i={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},s={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(o,{className:"string"}),"self"]}]},l=kT,c=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),u={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},d=u;return d.variants[1].contains=[u],u.variants[1].contains=[d],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,c,{className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r,i,s,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[u,e.C_LINE_COMMENT_MODE,c],relevance:0},e.C_LINE_COMMENT_MODE,c,i,s,o,e.C_NUMBER_MODE]},c]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},i,s]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:"\n"},l]}},less:function(e){const t=(e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}))(e),r=CT,n="[\\w-]+",a="("+n+"|@\\{"+n+"\\})",o=[],i=[],s=function(e){return{className:"string",begin:"~?"+e+".*?"+e}},l=function(e,t,r){return{className:e,begin:t,relevance:r}},c={$pattern:/[a-z-]+/,keyword:"and or not only",attribute:_T.join(" ")},u={begin:"\\(",end:"\\)",contains:i,keywords:c,relevance:0};i.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s("'"),s('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,u,l("variable","@@?"+n,10),l("variable","@\\{"+n+"\\}"),l("built_in","~?`[^`]*?`"),{className:"attribute",begin:n+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const d=i.concat({begin:/\{/,end:/\}/,contains:o}),p={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(i)},h={begin:a+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+AT.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:i}}]},f={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:c,returnEnd:!0,contains:i,relevance:0}},m={className:"variable",variants:[{begin:"@"+n+"\\s*:",relevance:15},{begin:"@"+n}],starts:{end:"[;}]",returnEnd:!0,contains:d}},g={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:a,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,p,l("keyword","all\\b"),l("variable","@\\{"+n+"\\}"),{begin:"\\b("+ST.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,l("selector-tag",a,0),l("selector-id","#"+a),l("selector-class","\\."+a,0),l("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+ET.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+TT.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:d},{begin:"!important"},t.FUNCTION_DISPATCH]},v={begin:n+`:(:)?(${r.join("|")})`,returnBegin:!0,contains:[g]};return o.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,f,m,v,h,g,p,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:o}},makefile:function(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},r={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},n={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t]},a={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},o={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,r,n,a,{className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},o]}},markdown:function(e){const t={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:e.regex.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},n={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},a={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},o=e.inherit(n,{contains:[]}),i=e.inherit(a,{contains:[]});n.contains.push(i),a.contains.push(o);let s=[t,r];return[n,a,o,i].forEach((e=>{e.contains=e.contains.concat(s)})),s=s.concat(n,a),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:s},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:s}]}]},t,{className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},n,a,{className:"quote",begin:"^>\\s+",contains:s,end:"$"},{className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},r,{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}},matlab:function(e){const t="('|\\.')+",r={relevance:0,contains:[{begin:t}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:r},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+t,relevance:0},{className:"number",begin:e.C_NUMBER_RE,relevance:0,starts:r},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:r},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:r},e.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),e.COMMENT("%","$")]}},nginx:function(e){const t=e.regex,r={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},n={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[r]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},r]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:n.contains,keywords:{section:"upstream location"}},{className:"section",begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:n}],relevance:0}],illegal:"[^\\s\\}\\{]"}},objectivec:function(e){const t=/[a-zA-Z@][a-zA-Z0-9_]*/,r={$pattern:t,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:{"variable.language":["this","super"],$pattern:t,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},illegal:"</",contains:[{className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+r.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:r,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}},ocaml:function(e){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}},php:function(e){const t=e.regex,r=/(?![A-Za-z0-9])(?![$])/,n=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,r),a=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,r),o={scope:"variable",match:"\\$+"+n},i={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},s=e.inherit(e.APOS_STRING_MODE,{illegal:null}),l="[ \t\n]",c={scope:"string",variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(i)}),s,{begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(i),"on:begin":(e,t)=>{t.data._beginMatch=e[1]||e[2]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}},e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/})]},u={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},d=["false","null","true"],p=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],h=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],f={keyword:p,literal:(e=>{const t=[];return e.forEach((e=>{t.push(e),e.toLowerCase()===e?t.push(e.toUpperCase()):t.push(e.toLowerCase())})),t})(d),built_in:h},m=e=>e.map((e=>e.replace(/\|\d+$/,""))),g={variants:[{match:[/new/,t.concat(l,"+"),t.concat("(?!",m(h).join("\\b|"),"\\b)"),a],scope:{1:"keyword",4:"title.class"}}]},v=t.concat(n,"\\b(?!\\()"),b={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),v],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[a,t.concat(/::/,t.lookahead(/(?!class\b)/)),v],scope:{1:"title.class",3:"variable.constant"}},{match:[a,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[a,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},y={scope:"attr",match:t.concat(n,t.lookahead(":"),t.lookahead(/(?!::)/))},O={relevance:0,begin:/\(/,end:/\)/,keywords:f,contains:[y,o,b,e.C_BLOCK_COMMENT_MODE,c,u,g]},w={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",m(p).join("\\b|"),"|",m(h).join("\\b|"),"\\b)"),n,t.concat(l,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[O]};O.contains.push(w);const x=[y,b,e.C_BLOCK_COMMENT_MODE,c,u,g];return{case_insensitive:!1,keywords:f,contains:[{begin:t.concat(/#\[\s*/,a),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:d,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:d,keyword:["new","array"]},contains:["self",...x]},...x,{scope:"meta",match:a}]},e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},{scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},{scope:"variable.language",match:/\$this\b/},o,w,b,{match:[/const/,/\s/,n],scope:{1:"keyword",3:"variable.constant"}},g,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:f,contains:["self",o,b,e.C_BLOCK_COMMENT_MODE,c,u]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},c,u]}},plaintext:function(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}},powershell:function(e){const t={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},r={begin:"`[\\s\\S]",relevance:0},n={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},a={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[r,n,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},o={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},i=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[{className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]}]}),s={className:"built_in",variants:[{begin:"(".concat("Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",")+(-)[\\w\\d]+")}]},l={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},c={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:/\w[\w\d]*((-)[\w\d]+)*/,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[n]}]},u={begin:/using\s/,end:/$/,returnBegin:!0,contains:[a,o,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},d={variants:[{className:"operator",begin:"(".concat("-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},p={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(t.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},h=[p,i,r,e.NUMBER_MODE,a,o,s,n,{className:"literal",begin:/\$(null|true|false)\b/},{className:"selector-tag",begin:/@\B/,relevance:0}],f={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",h,{begin:"("+["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"].join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return p.contains.unshift(f),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:t,contains:h.concat(l,c,u,d,f)}},python:function(e){const t=e.regex,r=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),n=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],a={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:n,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},o={className:"meta",begin:/^(>>>|\.\.\.) /},i={className:"subst",begin:/\{/,end:/\}/,keywords:a,illegal:/#/},s={begin:/\{\{/,relevance:0},l={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,o],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,o],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,o,s,i]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,o,s,i]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,s,i]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,i]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},c="[0-9](_?[0-9])*",u=`(\\b(${c}))?\\.(${c})|\\b(${c})\\.`,d=`\\b|${n.join("|")}`,p={className:"number",relevance:0,variants:[{begin:`(\\b(${c})|(${u}))[eE][+-]?(${c})[jJ]?(?=${d})`},{begin:`(${u})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${d})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${d})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${d})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${d})`},{begin:`\\b(${c})[jJ](?=${d})`}]},h={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:a,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},f={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:["self",o,p,l,e.HASH_COMMENT_MODE]}]};return i.contains=[l,p,o],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:a,illegal:/(<\/|\?)|=>/,contains:[o,p,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},l,h,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[f]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[p,f,l]}]}},r:function(e){const t=e.regex,r=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,n=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),a=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,o=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:r,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:r},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[a,n]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,n]},{scope:{1:"punctuation",2:"number"},match:[o,n]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,n]}]},{scope:{3:"operator"},match:[r,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:a},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:o},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}},ruby:function(e){const t=e.regex,r="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",n=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),a=t.concat(n,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield","include","extend","prepend","public","private","protected","raise","throw"],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},i={className:"doctag",begin:"@[A-Za-z]+"},s={begin:"#<",end:">"},l=[e.COMMENT("#","$",{contains:[i]}),e.COMMENT("^=begin","^=end",{contains:[i],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],c={className:"subst",begin:/#\{/,end:/\}/,keywords:o},u={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,c]})]}]},d="[0-9](_?[0-9])*",p={className:"number",relevance:0,variants:[{begin:`\\b([1-9](_?[0-9])*|0)(\\.(${d}))?([eE][+-]?(${d})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},h={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},f=[u,{variants:[{match:[/class\s+/,a,/\s+<\s+/,a]},{match:[/\b(class|module)\s+/,a]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,a],scope:{2:"title.class"},keywords:o},{relevance:0,match:[a,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:n,scope:"title.class"},{match:[/def/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[h]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[u,{begin:r}],relevance:0},p,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(s,l),relevance:0}].concat(s,l);c.contains=f,h.contains=f;const m=[{begin:/^\s*=>/,starts:{end:"$",contains:f}},{className:"meta.prompt",begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])",starts:{end:"$",keywords:o,contains:f}}];return l.unshift(s),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(m).concat(l).concat(f)}},rust:function(e){const t=e.regex,r={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,e.IDENT_RE,t.lookahead(/\s*\(/))},n="([ui](8|16|32|64|128|size)|f(32|64))?",a=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],o=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:o,keyword:["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],literal:["true","false","Some","None","Ok","Err"],built_in:a},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+n},{begin:"\\b0o([0-7_]+)"+n},{begin:"\\b0x([A-Fa-f0-9_]+)"+n},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+n}],relevance:0},{begin:[/fn/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,e.UNDERSCORE_IDENT_RE,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:a,type:o}},{className:"punctuation",begin:"->"},r]}},scss:function(e){const t=(e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}))(e),r=RT,n=$T,a="@[a-z-]+",o={className:"variable",begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+PT.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+n.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+r.join("|")+")"},o,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+MT.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,o,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:a,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",attribute:DT.join(" ")},contains:[{begin:a,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},o,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}},shell:function(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}},sql:function(e){const t=e.regex,r=e.COMMENT("--","$"),n=["true","false","unknown"],a=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],o=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],i=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],s=o,l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year","add","asc","collation","desc","final","first","last","view"].filter((e=>!o.includes(e))),c={begin:t.concat(/\b/,t.either(...s),/\s*\(/),relevance:0,keywords:{built_in:s}};return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:function(e,{exceptions:t,when:r}={}){const n=r;return t=t||[],e.map((e=>e.match(/\|\d+$/)||t.includes(e)?e:n(e)?`${e}|0`:e))}(l,{when:e=>e.length<3}),literal:n,type:a,built_in:["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"]},contains:[{begin:t.either(...i),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:l.concat(i),literal:n,type:a}},{className:"type",begin:t.either("double precision","large object","with timezone","without timezone")},c,{className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},{className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},{begin:/"/,end:/"/,contains:[{begin:/""/}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,r,{className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0}]}},swift:function(e){const t={match:/\s+/,relevance:0},r=e.COMMENT("/\\*","\\*/",{contains:["self"]}),n=[e.C_LINE_COMMENT_MODE,r],a={match:[/\./,jT(...UT,...FT)],className:{2:"keyword"}},o={match:LT(/\./,jT(...zT)),relevance:0},i=zT.filter((e=>"string"==typeof e)).concat(["_|0"]),s={variants:[{className:"keyword",match:jT(...zT.filter((e=>"string"!=typeof e)).concat(QT).map(BT),...FT)}]},l={$pattern:jT(/\b\w+/,/#\w+/),keyword:i.concat(VT),literal:qT},c=[a,o,s],u=[{match:LT(/\./,jT(...ZT)),relevance:0},{className:"built_in",match:LT(/\b/,jT(...ZT),/(?=\()/)}],d={match:/->/,relevance:0},p=[d,{className:"operator",relevance:0,variants:[{match:GT},{match:`\\.(\\.|${XT})+`}]}],h="([0-9]_*)+",f="([0-9a-fA-F]_*)+",m={className:"number",relevance:0,variants:[{match:`\\b(${h})(\\.(${h}))?([eE][+-]?(${h}))?\\b`},{match:`\\b0x(${f})(\\.(${f}))?([pP][+-]?(${h}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},g=(e="")=>({className:"subst",variants:[{match:LT(/\\/,e,/[0\\tnr"']/)},{match:LT(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),v=(e="")=>({className:"subst",match:LT(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/)}),b=(e="")=>({className:"subst",label:"interpol",begin:LT(/\\/,e,/\(/),end:/\)/}),y=(e="")=>({begin:LT(e,/"""/),end:LT(/"""/,e),contains:[g(e),v(e),b(e)]}),O=(e="")=>({begin:LT(e,/"/),end:LT(/"/,e),contains:[g(e),b(e)]}),w={className:"string",variants:[y(),y("#"),y("##"),y("###"),O(),O("#"),O("##"),O("###")]},x=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],k={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:x},S=e=>{const t=LT(e,/\//),r=LT(/\//,e);return{begin:t,end:r,contains:[...x,{scope:"comment",begin:`#(?!.*${r})`,end:/$/}]}},_={scope:"regexp",variants:[S("###"),S("##"),S("#"),k]},E={match:LT(/`/,JT,/`/)},T=[E,{className:"variable",match:/\$\d+/},{className:"variable",match:`\\$${KT}+`}],A=[{match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:rA,contains:[...p,m,w]}]}},{scope:"keyword",match:LT(/@/,jT(...tA))},{scope:"meta",match:LT(/@/,JT)}],C={match:IT(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:LT(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,KT,"+")},{className:"type",match:eA,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:LT(/\s+&\s+/,IT(eA)),relevance:0}]},P={begin:/</,end:/>/,keywords:l,contains:[...n,...c,...A,d,C]};C.contains.push(P);const D={begin:/\(/,end:/\)/,relevance:0,keywords:l,contains:["self",{match:LT(JT,/\s*:/),keywords:"_|0",relevance:0},...n,_,...c,...u,...p,m,w,...T,...A,C]},$={begin:/</,end:/>/,keywords:"repeat each",contains:[...n,C]},R={begin:/\(/,end:/\)/,keywords:l,contains:[{begin:jT(IT(LT(JT,/\s*:/)),IT(LT(JT,/\s+/,JT,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:JT}]},...n,...c,...p,m,w,...A,C,D],endsParent:!0,illegal:/["']/},M={match:[/(func|macro)/,/\s+/,jT(E.match,JT,GT)],className:{1:"keyword",3:"title.function"},contains:[$,R,t],illegal:[/\[/,/%/]},N={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[$,R,t],illegal:/\[|%/},I={match:[/operator/,/\s+/,GT],className:{1:"keyword",3:"title"}},L={begin:[/precedencegroup/,/\s+/,eA],className:{1:"keyword",3:"title"},contains:[C],keywords:[...HT,...qT],end:/}/};for(const e of w.variants){const t=e.contains.find((e=>"interpol"===e.label));t.keywords=l;const r=[...c,...u,...p,m,w,...T];t.contains=[...r,{begin:/\(/,end:/\)/,contains:["self",...r]}]}return{name:"Swift",keywords:l,contains:[...n,M,N,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:l,contains:[e.inherit(e.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...c]},I,L,{beginKeywords:"import",end:/$/,contains:[...n],relevance:0},_,...c,...u,...p,m,w,...T,...A,C,D]}},typescript:function(e){const t=function(e){const t=e.regex,r=nA,n={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const r=e[0].length+e.index,n=e.input[r];if("<"===n||","===n)return void t.ignoreMatch();let a;">"===n&&(((e,{after:t})=>{const r="</"+e[0].slice(1);return-1!==e.input.indexOf(r,t)})(e,{after:r})||t.ignoreMatch());const o=e.input.substring(r);((a=o.match(/^\s*=/))||(a=o.match(/^\s+extends\s+/))&&0===a.index)&&t.ignoreMatch()}},a={$pattern:nA,keyword:aA,literal:oA,built_in:uA,"variable.language":cA},o="[0-9](_?[0-9])*",i=`\\.(${o})`,s="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",l={className:"number",variants:[{begin:`(\\b(${s})((${i})|\\.)?|(${i}))[eE][+-]?(${o})\\b`},{begin:`\\b(${s})\\b((${i})\\b|\\.)?|(${i})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},c={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},u={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,c],subLanguage:"xml"}},d={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,c],subLanguage:"css"}},p={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,c],subLanguage:"graphql"}},h={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,c]},f={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},m=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,d,p,h,{match:/\$\d+/},l];c.contains=m.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(m)});const g=[].concat(f,c.contains),v=g.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(g)}]),b={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:v},y={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},O={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...iA,...sA]}},w={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[b],illegal:/%/},x={match:t.concat(/\b/,(k=[...lA,"super","import"],t.concat("(?!",k.join("|"),")")),r,t.lookahead(/\(/)),className:"title.function",relevance:0};var k;const S={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},_={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},b]},E="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",T={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(E)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[b]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:v,CLASS_REFERENCE:O},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,d,p,h,f,{match:/\$\d+/},l,O,{className:"attr",begin:r+t.lookahead(":"),relevance:0},T,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[f,e.REGEXP_MODE,{className:"function",begin:E,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:v}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:"<>",end:"</>"},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:n.begin,"on:begin":n.isTrulyOpeningTag,end:n.end}],subLanguage:"xml",contains:[{begin:n.begin,end:n.end,skip:!0,contains:["self"]}]}]},w,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[b,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},S,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[b]},x,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},y,_,{match:/\$[(.]/}]}}(e),r=nA,n=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],a={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[t.exports.CLASS_REFERENCE]},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:n},contains:[t.exports.CLASS_REFERENCE]},i={$pattern:nA,keyword:aA.concat(["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"]),literal:oA,built_in:uA.concat(n),"variable.language":cA},s={className:"meta",begin:"@"+r},l=(e,t,r)=>{const n=e.contains.findIndex((e=>e.label===t));if(-1===n)throw new Error("can not find mode to replace");e.contains.splice(n,1,r)};return Object.assign(t.keywords,i),t.exports.PARAMS_CONTAINS.push(s),t.contains=t.contains.concat([s,a,o]),l(t,"shebang",e.SHEBANG()),l(t,"use_strict",{className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/}),t.contains.find((e=>"func.def"===e.label)).relevance=0,Object.assign(t,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),t},xml:dA,yaml:function(e){const t="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",n={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},a=e.inherit(n,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),o={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},i={begin:/\{/,end:/\}/,contains:[o],illegal:"\\n",relevance:0},s={begin:"\\[",end:"\\]",contains:[o],illegal:"\\n",relevance:0},l=[{className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},{className:"number",begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"},{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},i,s,n],c=[...l];return c.pop(),c.push(a),o.contains=c,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:l}}},hA=["note","tip","important","warning","caution","success"];function fA(e){return"text"===e.type&&"string"==typeof e.value&&/^\s*$/.test(e.value)}function mA(){return e=>{Xm(e,"element",((e,t,r)=>{if("blockquote"!==e.tagName||"number"!=typeof t||!r||"root"!==r.type)return;const n=e.children.findIndex((e=>!fA(e)));if(-1===n)return;const a=e.children[n];if(!a||"element"!==a.type||"p"!==a.tagName)return;const o=a.children[0];if(!o||"text"!==o.type||!o.value.startsWith("[!"))return;const i=o.value.indexOf("]");if(-1===i)return;const s=o.value.slice(2,i).toLowerCase();if(!hA.includes(s))return;if(i+1===o.value.length){const t=a.children[1];if(t){if("element"!==t.type||"br"!==t.tagName)return;if(!a.children[2])return;a.children=a.children.slice(2);const e=a.children[0];e&&"text"===e.type&&"\n"===e.value.charAt(0)&&(e.value=e.value.slice(1))}else{const t=n+1<e.children.length&&fA(e.children[n+1])?n+2:n+1;if(t>=e.children.length||"element"!==e.children[t].type)return;e.children=e.children.slice(t)}}else"\n"!==o.value.charAt(i+1)||i+2!==o.value.length&&/^\s*$/.test(o.value.slice(i+2))?o.value=o.value.replace(/^\s*\[!.*?\]\s*/,""):o.value=o.value.slice(i+2);const l=[];for(let t=n;t<e.children.length;t++){const r=e.children[t];"element"===r.type&&"p"===r.tagName&&r.children?l.push(...r.children):l.push(r)}r.children[t]={type:"element",tagName:"div",properties:{className:["markdown-alert",`markdown-alert-${s}`]},children:[{type:"element",tagName:"div",properties:{className:["markdown-alert-icon"]},children:[]},{type:"element",tagName:"div",properties:{className:["markdown-alert-content"]},children:[{type:"text",value:" "},...l]}]}}))}}const gA=function(e,t,r){const n=Qm(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if("number"==typeof t){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(n(e.children[t],t,e))return e.children[t]},vA=/\n/g,bA=/[\t ]+/g,yA=Mm("br"),OA=Mm((function(e){return"td"===e.tagName||"th"===e.tagName})),wA=Mm("p"),xA=Mm("tr"),kA=Mm(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return Boolean((e.properties||{}).hidden)},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),SA=Mm(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function _A(e,t){const r="children"in e?e.children:[],n=SA(e),a=CA(e,{whitespace:{}.whitespace||"normal"}),o=[];"text"!==e.type&&"comment"!==e.type||o.push(...TA(e,{breakBefore:!0,breakAfter:!0}));let i=-1;for(;++i<r.length;)o.push(...EA(r[i],e,{whitespace:a,breakBefore:i?void 0:n,breakAfter:i<r.length-1?yA(r[i+1]):n}));const s=[];let l;for(i=-1;++i<o.length;){const e=o[i];"number"==typeof e?void 0!==l&&e>l&&(l=e):e&&(void 0!==l&&l>-1&&s.push("\n".repeat(l)||" "),l=-1,s.push(e))}return s.join("")}function EA(e,t,r){return"element"===e.type?function(e,t,r){const n=CA(e,r),a=e.children||[];let o,i,s=-1,l=[];if(kA(e))return l;for(yA(e)||xA(e)&&gA(t,e,xA)?i="\n":wA(e)?(o=2,i=2):SA(e)&&(o=1,i=1);++s<a.length;)l=l.concat(EA(a[s],e,{whitespace:n,breakBefore:s?void 0:o,breakAfter:s<a.length-1?yA(a[s+1]):i}));return OA(e)&&gA(t,e,OA)&&l.push("\t"),o&&l.unshift(o),i&&l.push(i),l}(e,t,r):"text"===e.type?"normal"===r.whitespace?TA(e,r):function(e){return[String(e.value)]}(e):[]}function TA(e,t){const r=String(e.value),n=[],a=[];let o=0;for(;o<=r.length;){vA.lastIndex=o;const e=vA.exec(r),a=e&&"index"in e?e.index:r.length;n.push(AA(r.slice(o,a).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==o||t.breakBefore,a!==r.length||t.breakAfter)),o=a+1}let i,s=-1;for(;++s<n.length;)8203===n[s].charCodeAt(n[s].length-1)||s<n.length-1&&8203===n[s+1].charCodeAt(0)?(a.push(n[s]),i=void 0):n[s]?("number"==typeof i&&a.push(i),a.push(n[s]),i=0):0!==s&&s!==n.length-1||a.push(0);return a}function AA(e,t,r){const n=[];let a,o=0;for(;o<e.length;){bA.lastIndex=o;const r=bA.exec(e);a=r?r.index:e.length,o||a||!r||t||n.push(""),o!==a&&n.push(e.slice(o,a)),o=r?a+r[0].length:a}return o===a||r||n.push(""),n.join(" ")}function CA(e,t){if("element"===e.type){const r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function PA(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((t=>{const r=e[t],n=typeof r;"object"!==n&&"function"!==n||Object.isFrozen(r)||PA(r)})),e}let DA=class{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function $A(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function RA(e,...t){const r=Object.create(null);for(const t in e)r[t]=e[t];return t.forEach((function(e){for(const t in e)r[t]=e[t]})),r}const MA=e=>!!e.scope;class NA{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=$A(e)}openNode(e){if(!MA(e))return;const t=((e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const r=e.split(".");return[`${t}${r.shift()}`,...r.map(((e,t)=>`${e}${"_".repeat(t+1)}`))].join(" ")}return`${t}${e}`})(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){MA(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const IA=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class LA{constructor(){this.rootNode=IA(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=IA({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{LA._collapse(e)})))}}class jA extends LA{constructor(e){super(),this.options=e}addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const r=e.root;t&&(r.scope=`language:${t}`),this.add(r)}toHTML(){return new NA(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function BA(e){return e?"string"==typeof e?e:e.source:null}function UA(e){return zA("(?=",e,")")}function FA(e){return zA("(?:",e,")*")}function QA(e){return zA("(?:",e,")?")}function zA(...e){return e.map((e=>BA(e))).join("")}function qA(...e){const t=function(e){const t=e[e.length-1];return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}(e);return"("+(t.capture?"":"?:")+e.map((e=>BA(e))).join("|")+")"}function HA(e){return new RegExp(e.toString()+"|").exec("").length-1}const VA=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function ZA(e,{joinWith:t}){let r=0;return e.map((e=>{r+=1;const t=r;let n=BA(e),a="";for(;n.length>0;){const e=VA.exec(n);if(!e){a+=n;break}a+=n.substring(0,e.index),n=n.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?a+="\\"+String(Number(e[1])+t):(a+=e[0],"("===e[0]&&r++)}return a})).map((e=>`(${e})`)).join(t)}const WA="[a-zA-Z]\\w*",XA="[a-zA-Z_]\\w*",GA="\\b\\d+(\\.\\d+)?",YA="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",KA="\\b(0b[01]+)",JA={begin:"\\\\[\\s\\S]",relevance:0},eC={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[JA]},tC={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[JA]},rC=function(e,t,r={}){const n=RA({scope:"comment",begin:e,end:t,contains:[]},r);n.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const a=qA("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return n.contains.push({begin:zA(/[ ]+/,"(",a,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},nC=rC("//","$"),aC=rC("/\\*","\\*/"),oC=rC("#","$"),iC={scope:"number",begin:GA,relevance:0},sC={scope:"number",begin:YA,relevance:0},lC={scope:"number",begin:KA,relevance:0},cC={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[JA,{begin:/\[/,end:/\]/,relevance:0,contains:[JA]}]},uC={scope:"title",begin:WA,relevance:0},dC={scope:"title",begin:XA,relevance:0},pC={begin:"\\.\\s*"+XA,relevance:0};var hC=Object.freeze({__proto__:null,APOS_STRING_MODE:eC,BACKSLASH_ESCAPE:JA,BINARY_NUMBER_MODE:lC,BINARY_NUMBER_RE:KA,COMMENT:rC,C_BLOCK_COMMENT_MODE:aC,C_LINE_COMMENT_MODE:nC,C_NUMBER_MODE:sC,C_NUMBER_RE:YA,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:oC,IDENT_RE:WA,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:pC,NUMBER_MODE:iC,NUMBER_RE:GA,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},QUOTE_STRING_MODE:tC,REGEXP_MODE:cC,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=zA(t,/.*\b/,e.binary,/\b.*/)),RA({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},TITLE_MODE:uC,UNDERSCORE_IDENT_RE:XA,UNDERSCORE_TITLE_MODE:dC});function fC(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function mC(e,t){void 0!==e.className&&(e.scope=e.className,delete e.className)}function gC(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=fC,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function vC(e,t){Array.isArray(e.illegal)&&(e.illegal=qA(...e.illegal))}function bC(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function yC(e,t){void 0===e.relevance&&(e.relevance=1)}const OC=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const r=Object.assign({},e);Object.keys(e).forEach((t=>{delete e[t]})),e.keywords=r.keywords,e.begin=zA(r.beforeMatch,UA(r.begin)),e.starts={relevance:0,contains:[Object.assign(r,{endsParent:!0})]},e.relevance=0,delete r.beforeMatch},wC=["of","and","for","in","not","or","if","then","parent","list","value"];function xC(e,t,r="keyword"){const n=Object.create(null);return"string"==typeof e?a(r,e.split(" ")):Array.isArray(e)?a(r,e):Object.keys(e).forEach((function(r){Object.assign(n,xC(e[r],t,r))})),n;function a(e,r){t&&(r=r.map((e=>e.toLowerCase()))),r.forEach((function(t){const r=t.split("|");n[r[0]]=[e,kC(r[0],r[1])]}))}}function kC(e,t){return t?Number(t):function(e){return wC.includes(e.toLowerCase())}(e)?0:1}const SC={},_C=e=>{console.error(e)},EC=(e,...t)=>{console.log(`WARN: ${e}`,...t)},TC=(e,t)=>{SC[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),SC[`${e}/${t}`]=!0)},AC=new Error;function CC(e,t,{key:r}){let n=0;const a=e[r],o={},i={};for(let e=1;e<=t.length;e++)i[e+n]=a[e],o[e+n]=!0,n+=HA(t[e-1]);e[r]=i,e[r]._emit=o,e[r]._multi=!0}function PC(e){!function(e){e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope)}(e),"string"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope}),function(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw _C("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),AC;if("object"!=typeof e.beginScope||null===e.beginScope)throw _C("beginScope must be object"),AC;CC(e,e.begin,{key:"beginScope"}),e.begin=ZA(e.begin,{joinWith:""})}}(e),function(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw _C("skip, excludeEnd, returnEnd not compatible with endScope: {}"),AC;if("object"!=typeof e.endScope||null===e.endScope)throw _C("endScope must be object"),AC;CC(e,e.end,{key:"endScope"}),e.end=ZA(e.end,{joinWith:""})}}(e)}function DC(e){function t(t,r){return new RegExp(BA(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(r?"g":""))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=HA(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map((e=>e[1]));this.matcherRe=t(ZA(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const r=t.findIndex(((e,t)=>t>0&&void 0!==e)),n=this.matchIndexes[r];return t.splice(0,r),Object.assign(t,n)}}class n{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new r;return this.rules.slice(e).forEach((([e,r])=>t.addRule(e,r))),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let r=t.exec(e);if(this.resumingScanAtSamePosition())if(r&&r.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,r=t.exec(e)}return r&&(this.regexIndex+=r.position+1,this.regexIndex===this.count&&this.considerAll()),r}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=RA(e.classNameAliases||{}),function r(a,o){const i=a;if(a.isCompiled)return i;[mC,bC,PC,OC].forEach((e=>e(a,o))),e.compilerExtensions.forEach((e=>e(a,o))),a.__beforeBegin=null,[gC,vC,yC].forEach((e=>e(a,o))),a.isCompiled=!0;let s=null;return"object"==typeof a.keywords&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),s=a.keywords.$pattern,delete a.keywords.$pattern),s=s||/\w+/,a.keywords&&(a.keywords=xC(a.keywords,e.case_insensitive)),i.keywordPatternRe=t(s,!0),o&&(a.begin||(a.begin=/\B|\b/),i.beginRe=t(i.begin),a.end||a.endsWithParent||(a.end=/\B|\b/),a.end&&(i.endRe=t(i.end)),i.terminatorEnd=BA(i.end)||"",a.endsWithParent&&o.terminatorEnd&&(i.terminatorEnd+=(a.end?"|":"")+o.terminatorEnd)),a.illegal&&(i.illegalRe=t(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map((function(e){return function(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return RA(e,{variants:null},t)}))),e.cachedVariants?e.cachedVariants:$C(e)?RA(e,{starts:e.starts?RA(e.starts):null}):Object.isFrozen(e)?RA(e):e}("self"===e?a:e)}))),a.contains.forEach((function(e){r(e,i)})),a.starts&&r(a.starts,o),i.matcher=function(e){const t=new n;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin"}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(i),i}(e)}function $C(e){return!!e&&(e.endsWithParent||$C(e.starts))}class RC extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const MC=$A,NC=RA,IC=Symbol("nomatch"),LC=function(e){const t=Object.create(null),r=Object.create(null),n=[];let a=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",i={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:jA};function l(e){return s.noHighlightRe.test(e)}function c(e,t,r){let n="",a="";"object"==typeof t?(n=e,r=t.ignoreIllegals,a=t.language):(TC("10.7.0","highlight(lang, code, ...args) has been deprecated."),TC("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),a=e,n=t),void 0===r&&(r=!0);const o={code:n,language:a};b("before:highlight",o);const i=o.result?o.result:u(o.language,o.code,r);return i.code=o.code,b("after:highlight",i),i}function u(e,r,n,i){const l=Object.create(null);function c(){if(!_.keywords)return void T.addText(A);let e=0;_.keywordPatternRe.lastIndex=0;let t=_.keywordPatternRe.exec(A),r="";for(;t;){r+=A.substring(e,t.index);const a=x.case_insensitive?t[0].toLowerCase():t[0],o=(n=a,_.keywords[n]);if(o){const[e,n]=o;if(T.addText(r),r="",l[a]=(l[a]||0)+1,l[a]<=7&&(C+=n),e.startsWith("_"))r+=t[0];else{const r=x.classNameAliases[e]||e;h(t[0],r)}}else r+=t[0];e=_.keywordPatternRe.lastIndex,t=_.keywordPatternRe.exec(A)}var n;r+=A.substring(e),T.addText(r)}function p(){null!=_.subLanguage?function(){if(""===A)return;let e=null;if("string"==typeof _.subLanguage){if(!t[_.subLanguage])return void T.addText(A);e=u(_.subLanguage,A,!0,E[_.subLanguage]),E[_.subLanguage]=e._top}else e=d(A,_.subLanguage.length?_.subLanguage:null);_.relevance>0&&(C+=e.relevance),T.__addSublanguage(e._emitter,e.language)}():c(),A=""}function h(e,t){""!==e&&(T.startScope(t),T.addText(e),T.endScope())}function f(e,t){let r=1;const n=t.length-1;for(;r<=n;){if(!e._emit[r]){r++;continue}const n=x.classNameAliases[e[r]]||e[r],a=t[r];n?h(a,n):(A=a,c(),A=""),r++}}function g(e,t){return e.scope&&"string"==typeof e.scope&&T.openNode(x.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(h(A,x.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),A=""):e.beginScope._multi&&(f(e.beginScope,t),A="")),_=Object.create(e,{parent:{value:_}}),_}function v(e,t,r){let n=function(e,t){const r=e&&e.exec(t);return r&&0===r.index}(e.endRe,r);if(n){if(e["on:end"]){const r=new DA(e);e["on:end"](t,r),r.isMatchIgnored&&(n=!1)}if(n){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return v(e.parent,t,r)}function b(e){return 0===_.matcher.regexIndex?(A+=e[0],1):($=!0,0)}function y(e){const t=e[0],n=r.substring(e.index),a=v(_,e,n);if(!a)return IC;const o=_;_.endScope&&_.endScope._wrap?(p(),h(t,_.endScope._wrap)):_.endScope&&_.endScope._multi?(p(),f(_.endScope,e)):o.skip?A+=t:(o.returnEnd||o.excludeEnd||(A+=t),p(),o.excludeEnd&&(A=t));do{_.scope&&T.closeNode(),_.skip||_.subLanguage||(C+=_.relevance),_=_.parent}while(_!==a.parent);return a.starts&&g(a.starts,e),o.returnEnd?0:t.length}let O={};function w(t,o){const i=o&&o[0];if(A+=t,null==i)return p(),0;if("begin"===O.type&&"end"===o.type&&O.index===o.index&&""===i){if(A+=r.slice(o.index,o.index+1),!a){const t=new Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=O.rule,t}return 1}if(O=o,"begin"===o.type)return function(e){const t=e[0],r=e.rule,n=new DA(r),a=[r.__beforeBegin,r["on:begin"]];for(const r of a)if(r&&(r(e,n),n.isMatchIgnored))return b(t);return r.skip?A+=t:(r.excludeBegin&&(A+=t),p(),r.returnBegin||r.excludeBegin||(A=t)),g(r,e),r.returnBegin?0:t.length}(o);if("illegal"===o.type&&!n){const e=new Error('Illegal lexeme "'+i+'" for mode "'+(_.scope||"<unnamed>")+'"');throw e.mode=_,e}if("end"===o.type){const e=y(o);if(e!==IC)return e}if("illegal"===o.type&&""===i)return 1;if(D>1e5&&D>3*o.index)throw new Error("potential infinite loop, way more iterations than matches");return A+=i,i.length}const x=m(e);if(!x)throw _C(o.replace("{}",e)),new Error('Unknown language: "'+e+'"');const k=DC(x);let S="",_=i||k;const E={},T=new s.__emitter(s);!function(){const e=[];for(let t=_;t!==x;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach((e=>T.openNode(e)))}();let A="",C=0,P=0,D=0,$=!1;try{if(x.__emitTokens)x.__emitTokens(r,T);else{for(_.matcher.considerAll();;){D++,$?$=!1:_.matcher.considerAll(),_.matcher.lastIndex=P;const e=_.matcher.exec(r);if(!e)break;const t=w(r.substring(P,e.index),e);P=e.index+t}w(r.substring(P))}return T.finalize(),S=T.toHTML(),{language:e,value:S,relevance:C,illegal:!1,_emitter:T,_top:_}}catch(t){if(t.message&&t.message.includes("Illegal"))return{language:e,value:MC(r),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:P,context:r.slice(P-100,P+100),mode:t.mode,resultSoFar:S},_emitter:T};if(a)return{language:e,value:MC(r),illegal:!1,relevance:0,errorRaised:t,_emitter:T,_top:_};throw t}}function d(e,r){r=r||s.languages||Object.keys(t);const n=function(e){const t={value:MC(e),illegal:!1,relevance:0,_top:i,_emitter:new s.__emitter(s)};return t._emitter.addText(e),t}(e),a=r.filter(m).filter(v).map((t=>u(t,e,!1)));a.unshift(n);const o=a.sort(((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(m(e.language).supersetOf===t.language)return 1;if(m(t.language).supersetOf===e.language)return-1}return 0})),[l,c]=o,d=l;return d.secondBest=c,d}function p(e){let t=null;const n=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const r=s.languageDetectRe.exec(t);if(r){const t=m(r[1]);return t||(EC(o.replace("{}",r[1])),EC("Falling back to no-highlight mode for this block.",e)),t?r[1]:"no-highlight"}return t.split(/\s+/).find((e=>l(e)||m(e)))}(e);if(l(n))return;if(b("before:highlightElement",{el:e,language:n}),e.dataset.highlighted)return void console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);if(e.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(e)),s.throwUnescapedHTML))throw new RC("One of your code blocks includes unescaped HTML.",e.innerHTML);t=e;const a=t.textContent,i=n?c(a,{language:n,ignoreIllegals:!0}):d(a);e.innerHTML=i.value,e.dataset.highlighted="yes",function(e,t,n){const a=t&&r[t]||n;e.classList.add("hljs"),e.classList.add(`language-${a}`)}(e,n,i.language),e.result={language:i.language,re:i.relevance,relevance:i.relevance},i.secondBest&&(e.secondBest={language:i.secondBest.language,relevance:i.secondBest.relevance}),b("after:highlightElement",{el:e,result:i,text:a})}let h=!1;function f(){"loading"!==document.readyState?document.querySelectorAll(s.cssSelector).forEach(p):h=!0}function m(e){return e=(e||"").toLowerCase(),t[e]||t[r[e]]}function g(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach((e=>{r[e.toLowerCase()]=t}))}function v(e){const t=m(e);return t&&!t.disableAutodetect}function b(e,t){const r=e;n.forEach((function(e){e[r]&&e[r](t)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){h&&f()}),!1),Object.assign(e,{highlight:c,highlightAuto:d,highlightAll:f,highlightElement:p,highlightBlock:function(e){return TC("10.7.0","highlightBlock will be removed entirely in v12.0"),TC("10.7.0","Please use highlightElement now."),p(e)},configure:function(e){s=NC(s,e)},initHighlighting:()=>{f(),TC("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){f(),TC("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(r,n){let o=null;try{o=n(e)}catch(e){if(_C("Language definition for '{}' could not be registered.".replace("{}",r)),!a)throw e;_C(e),o=i}o.name||(o.name=r),t[r]=o,o.rawDefinition=n.bind(null,e),o.aliases&&g(o.aliases,{languageName:r})},unregisterLanguage:function(e){delete t[e];for(const t of Object.keys(r))r[t]===e&&delete r[t]},listLanguages:function(){return Object.keys(t)},getLanguage:m,registerAliases:g,autoDetection:v,inherit:NC,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),n.push(e)},removePlugin:function(e){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}),e.debugMode=function(){a=!1},e.safeMode=function(){a=!0},e.versionString="11.9.0",e.regex={concat:zA,lookahead:UA,either:qA,optional:QA,anyNumberOfTimes:FA};for(const e in hC)"object"==typeof hC[e]&&PA(hC[e]);return Object.assign(e,hC),e},jC=LC({});jC.newInstance=()=>LC({});var BC=jC;jC.HighlightJS=jC,jC.default=jC;const UC=Qf(BC),FC={};class QC{constructor(e){this.options=e,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(e){if(""===e)return;const t=this.stack[this.stack.length-1],r=t.children[t.children.length-1];r&&"text"===r.type?r.value+=e:t.children.push({type:"text",value:e})}startScope(e){this.openNode(String(e))}endScope(){this.closeNode()}__addSublanguage(e,t){const r=this.stack[this.stack.length-1],n=e.root.children;t?r.children.push({type:"element",tagName:"span",properties:{className:[t]},children:n}):r.children.push(...n)}openNode(e){const t=this,r={type:"element",tagName:"span",properties:{className:e.split(".").map((function(e,r){return r?e+"_".repeat(r):t.options.classPrefix+e}))},children:[]};this.stack[this.stack.length-1].children.push(r),this.stack.push(r)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const zC={ts:"typescript",js:"javascript",py:"python",py3:"python","c#":"csharp","c++":"cpp",node:"javascript"},qC={};function HC(e){const t=e||qC,r=t.aliases,n=(null==e?void 0:e.detect)??!1,a=t.languages,o=t.plainText,i=t.prefix,s=t.subset;let l="hljs";const c=(null==e?void 0:e.lowlight)??function(e){const t=UC.newInstance();return e&&a(e),{highlight:r,highlightAuto:function(e,a){const o=(a||FC).subset||n();let i,s=-1,l=0;for(;++s<o.length;){const n=o[s];if(!t.getLanguage(n))continue;const c=r(n,e,a);c.data&&void 0!==c.data.relevance&&c.data.relevance>l&&(l=c.data.relevance,i=c)}return i||{type:"root",children:[],data:{language:void 0,relevance:l}}},listLanguages:n,register:a,registerAlias:function(e,r){if("string"==typeof e)t.registerAliases("string"==typeof r?r:[...r],{languageName:e});else{let r;for(r in e)if(Object.hasOwn(e,r)){const n=e[r];t.registerAliases("string"==typeof n?n:[...n],{languageName:r})}}},registered:function(e){return Boolean(t.getLanguage(e))}};function r(e,r,n){const a=n||FC,o="string"==typeof a.prefix?a.prefix:"hljs-";if(!t.getLanguage(e))throw new Error("Unknown language: `"+e+"` is not registered");t.configure({__emitter:QC,classPrefix:o});const i=t.highlight(r,{ignoreIllegals:!0,language:e});if(i.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:i.errorRaised});const s=i._emitter.root,l=s.data;return l.language=i.language,l.relevance=i.relevance,s}function n(){return t.listLanguages()}function a(e,r){if("string"==typeof e)t.registerLanguage(e,r);else{let r;for(r in e)Object.hasOwn(e,r)&&t.registerLanguage(r,e[r])}}}(a);if(r&&c.registerAlias(r),i){const e=i.indexOf("-");l=e>-1?i.slice(0,e):i}return(e,t)=>{Xm(e,"element",((e,r,a)=>{var u;if("code"!==e.tagName||!a||"element"!==a.type||"pre"!==a.tagName)return;const d=function(e){const t=e.properties.className;if(!Array.isArray(t))return"";const r=t.reduce(((e,t)=>{if(e)return e;const r=String(t);return"no-highlight"===r||"nohighlight"===r?"no-highlight":"lang-"===r.slice(0,5)?r.slice(5):"language-"===r.slice(0,9)?r.slice(9):e}),"");return zC[r||""]||r}(e);if("no-highlight"===d||!d&&!n||d&&(null==o?void 0:o.includes(d)))return;let p;Array.isArray(e.properties.className)||(e.properties.className=[]),e.properties.className.includes(l)||e.properties.className.unshift(l);try{p=d?c.highlight(d,_A(a),{prefix:i}):c.highlightAuto(_A(a),{prefix:i,subset:s})}catch(r){const n=r;if(d&&/Unknown language/.test(n.message))return void t.message(`Cannot highlight as \`${d}\`, it's not registered`,{ancestors:[a,e],cause:n,place:e.position,ruleId:"missing-language",source:"rehype-highlight"});throw n}!d&&(null==(u=p.data)?void 0:u.language)&&e.properties.className.push("language-"+p.data.language),p.children.length>0&&(e.children=p.children)}))}}const VC=(e,...t)=>t=>{(null==e?void 0:e.transform)&&(null==e?void 0:e.type)&&Xm(t,null==e?void 0:e.type,(t=>((null==e?void 0:e.transform)&&(null==e||e.transform(t)),Zm)))};function ZC(e){return XE().use(rE).use(__).parse(e)}function WC(e,t=1){const r=ZC(e),n=[];return Xm(r,"heading",(e=>{const r=XC(e);r&&n.push({depth:e.depth??t,value:r.value})})),n}function XC(e){if("text"===e.type)return e;if("children"in e&&e.children)for(const t of e.children){const e=XC(t);if(e)return e}return null}const GC=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,YC=Object.hasOwnProperty;class KC{constructor(){this.occurrences,this.reset()}slug(e,t){const r=this;let n=JC(e,!0===t);const a=n;for(;YC.call(r.occurrences,n);)r.occurrences[a]++,n=a+"-"+r.occurrences[a];return r.occurrences[n]=0,n}reset(){this.occurrences=Object.create(null)}}function JC(e,t){return"string"!=typeof e?"":(t||(e=e.toLowerCase()),e.replace(GC,"").replace(/ /g,"-"))}const eP=(e,t)=>(e.get(t)||e.set(t,{entries:[],tag:{name:t}}),e.get(t)),tP=new Set(["connect","delete","get","head","options","patch","post","put","trace"]),rP=e=>!(!e||"string"!=typeof e)&&tP.has(e.toLowerCase()),nP=e=>"object"==typeof e&&null!==e&&"$ref"in e,aP=(e,t,r,n="Unknown",a,o,i)=>{var s;const l=i({...t,method:r,path:n},a),c=(null==(s=t.summary)?void 0:s.trim())?t.summary:n;return o.set(l,c),{id:l,title:c,path:n,method:r,ref:e,type:"operation"}},oP=(e,t="Unknown",r,n,a,o)=>{const i=n({name:t},a),s=(null==o?void 0:o.title)||t;return r.set(i,s),{id:i,title:s,name:t,ref:e,type:"model"}},iP=(e,t,r,n,a=!1)=>{const o=r(e),i=e["x-displayName"]??e.name??"Untitled Tag";return t.set(o,i),{id:o,title:i,name:e.name||i,children:n,isGroup:a,type:"tag"}},sP=(e,t,r,{getTagId:n,tagsSorter:a,operationsSorter:o})=>{const i=e.includes("default"),s=i?e.filter((e=>"default"!==e)):e;return"alpha"===a?s.sort(((e,r)=>{const n=eP(t,e).tag["x-displayName"]||e||"Untitled Tag",a=eP(t,r).tag["x-displayName"]||r||"Untitled Tag";return n.localeCompare(a)})):"function"==typeof a&&s.sort(((e,r)=>a(eP(t,e).tag,eP(t,r).tag))),i&&s.push("default"),s.flatMap((e=>{const{tag:a,entries:i}=eP(t,e);return a["x-internal"]||a["x-scalar-ignore"]?[]:("alpha"===o?i.sort(((e,t)=>"method"in e&&"method"in t?e.title.localeCompare(t.title):0)):"method"===o?i.sort(((e,t)=>"method"in e&&"method"in t?e.method.localeCompare(t.method):0)):"function"==typeof o&&i.sort(((e,t)=>{if("operation"!==e.type&&"webhook"!==e.type||"operation"!==t.type&&"webhook"!==t.type)return 0;const r="operation"===e.type?e.path:e.name,n="operation"===t.type?t.path:t.name;return o({method:e.method,path:r,ref:e.ref,httpVerb:e.method},{method:t.method,path:n,ref:t.ref,httpVerb:t.method})})),i.length?iP(a,r,n,i):[])}))},lP=(e,t,r="Unknown",n="Unknown",a,o,i)=>{const s=o({name:r,method:t},i);return a.set(s,n),{id:s,title:n,name:r,ref:e,method:t,type:"webhook"}},cP=(e,{hideModels:t=!1,tagsSorter:r="alpha",operationsSorter:n="alpha",getHeadingId:a=e=>e.value,getOperationId:o=e=>e.summary??"",getWebhookId:i=e=>(null==e?void 0:e.name)??"webhooks",getModelId:s=e=>(null==e?void 0:e.name)??"",getTagId:l=e=>e.name??""})=>{var c,u,d;const p=new Map,h=new Map((null==(c=e.tags)?void 0:c.map((e=>[e.name??"Untitled Tag",{tag:e,entries:[]}])))??[]),f=((e,t,r)=>{var n;if(!(null==e?void 0:e.trim()))return[];const a=function(e){const t=new KC;return((e,t)=>e.map((e=>({...e,slug:t.slug(e.value)}))))(WC(e),t)}(e),o=(e=>{const t=Math.min(...e.map((e=>e.depth)));return t>=1&&t<=6?t:1})(a),i=[];let s=null;if(e&&!e.trim().startsWith("#")){const e={depth:1,value:"Introduction",slug:"introduction"},n=r(e),a=e.value;i.push({id:n,title:a,type:"text"}),t.set(n,a)}for(const e of a){if(e.depth!==o&&e.depth!==o+1)continue;const a={id:r(e),title:e.value,type:"text"};t.set(a.id,a.title),e.depth===o?(a.children=[],i.push(a),s=a):s&&(null==(n=s.children)||n.push(a))}return i})(null==(u=e.info)?void 0:u.description,p,a);((e,t,r,n)=>{Object.entries(e.paths??{}).forEach((([e,a])=>{Object.entries(a??{}).forEach((([a,o])=>{var i,s;if(nP(o))return;if(o["x-internal"]||o["x-scalar-ignore"]||!rP(a))return;const l=`#/paths/${Rf(e)}/${a}`;if(null==(i=o.tags)?void 0:i.length)o.tags.forEach((i=>{var s;const{tag:c}=eP(t,i);null==(s=t.get(i))||s.entries.push(aP(l,o,a,e,c,r,n))}));else{const{tag:i}=eP(t,"default");null==(s=t.get("default"))||s.entries.push(aP(l,o,a,e,i,r,n))}}))}))})(e,h,p,o);const m=((e,t,r,n)=>{const a=[];return Object.entries(e.webhooks??{}).forEach((([e,o])=>{Object.entries(o??{}).forEach((([o,i])=>{var s;if(nP(i))return;const l=`#/webhooks/${e}/${o}`;i["x-internal"]||i["x-scalar-ignore"]||((null==(s=i.tags)?void 0:s.length)?i.tags.forEach((a=>{var s;const{tag:c}=eP(t,a);null==(s=t.get(a))||s.entries.push(lP(l,o,e,i.summary??e,r,n,c))})):a.push(lP(l,o,e,i.summary??e,r,n)))}))})),a})(e,h,p,i),g=((e,t,r,{getTagId:n,tagsSorter:a,operationsSorter:o})=>{if(e["x-tagGroups"])return e["x-tagGroups"].flatMap((e=>{const i=sP(e.tags??[],t,r,{getTagId:n,tagsSorter:a,operationsSorter:o});return i.length?iP(e,r,n,i,!0):[]}));const i=Array.from(t.keys()),s=sP(i,t,r,{getTagId:n,tagsSorter:a,operationsSorter:o});return 1===s.length&&"default"===s[0].title?s[0].children??[]:s})(e,h,p,{getTagId:l,tagsSorter:r,operationsSorter:n});if(f.push(...g),m.length&&f.push({id:i(),title:"Webhooks",children:m,type:"text"}),!t&&(null==(d=e.components)?void 0:d.schemas)){const t=((e,t,r,n)=>{var a;const o=(null==(a=e.components)?void 0:a.schemas)??{},i=[];for(const e in o){if(o[e]["x-internal"]||o[e]["x-scalar-ignore"]||!Object.hasOwn(o,e))continue;const a=`#/content/components/schemas/${e}`;o[e]["x-tags"]?o[e]["x-tags"].forEach((o=>{var i;const{tag:s}=eP(t,o);null==(i=t.get(o))||i.entries.push(oP(a,e,r,n,s))})):i.push(oP(a,e,r,n,void 0,o[e]))}return i})(e,h,p,s);t.length&&f.push({id:s(),title:"Models",children:t,type:"text"})}return{entries:f,titles:p}},uP="x-scalar-navigation",dP="x-scalar-active-auth",pP="x-scalar-active-server",hP="x-scalar-dark-mode",fP="x-scalar-default-client",mP="x-scalar-active-document",gP="x-scalar-theme";function vP(e){return Array.isArray(e)}function bP(e){return"bigint"==typeof e}function yP(e){return"boolean"==typeof e}function OP(e){return e instanceof globalThis.Date}function wP(e){return"number"==typeof e}function xP(e){return"object"==typeof e&&null!==e}function kP(e){return e instanceof globalThis.RegExp}function SP(e){return"string"==typeof e}function _P(e){return e instanceof globalThis.Uint8Array}function EP(e){return void 0===e}function TP(e){return vP(e)?function(e){return e.map((e=>TP(e)))}(e):OP(e)?function(e){return new Date(e.getTime())}(e):_P(e)?function(e){return new Uint8Array(e)}(e):kP(e)?function(e){return new RegExp(e.source,e.flags)}(e):xP(e)?function(e){const t={};for(const r of Object.getOwnPropertyNames(e))t[r]=TP(e[r]);for(const r of Object.getOwnPropertySymbols(e))t[r]=TP(e[r]);return t}(e):e}function AP(e){return TP(e)}function CP(e,t){return AP(void 0===t?e:{...t,...e})}function PP(e){return e instanceof Date&&globalThis.Number.isFinite(e.getTime())}function DP(e){return e instanceof globalThis.Uint8Array}function $P(e,t){return t in e}function RP(e){return null!==e&&"object"==typeof e}function MP(e){return globalThis.Array.isArray(e)&&!globalThis.ArrayBuffer.isView(e)}function NP(e){return void 0===e}function IP(e){return null===e}function LP(e){return"boolean"==typeof e}function jP(e){return"number"==typeof e}function BP(e){return"bigint"==typeof e}function UP(e){return"string"==typeof e}function FP(e){return"function"==typeof e}function QP(e){return"symbol"==typeof e}var zP;function qP(e){return vP(e)?function(e){return globalThis.Object.freeze(e).map((e=>qP(e)))}(e):OP(e)||_P(e)||kP(e)?e:xP(e)?function(e){const t={};for(const r of Object.getOwnPropertyNames(e))t[r]=qP(e[r]);for(const r of Object.getOwnPropertySymbols(e))t[r]=qP(e[r]);return globalThis.Object.freeze(t)}(e):e}function HP(e,t){const r=void 0!==t?{...t,...e}:e;switch(zP.InstanceMode){case"freeze":return qP(r);case"clone":return AP(r);default:return r}}!function(e){function t(t){const r=RP(t);return e.AllowArrayObject?r:r&&!MP(t)}e.InstanceMode="default",e.ExactOptionalPropertyTypes=!1,e.AllowArrayObject=!1,e.AllowNaN=!1,e.AllowNullVoid=!1,e.IsExactOptionalProperty=function(t,r){return e.ExactOptionalPropertyTypes?r in t:void 0!==t[r]},e.IsObjectLike=t,e.IsRecordLike=function(e){return t(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)},e.IsNumberLike=function(t){return e.AllowNaN?jP(t):Number.isFinite(t)},e.IsVoidLike=function(t){const r=NP(t);return e.AllowNullVoid?r||null===t:r}}(zP||(zP={}));class VP extends Error{constructor(e){super(e)}}const ZP=Symbol.for("TypeBox.Transform"),WP=Symbol.for("TypeBox.Readonly"),XP=Symbol.for("TypeBox.Optional"),GP=Symbol.for("TypeBox.Hint"),YP=Symbol.for("TypeBox.Kind");function KP(e){return xP(e)&&"Readonly"===e[WP]}function JP(e){return xP(e)&&"Optional"===e[XP]}function eD(e){return pD(e,"Any")}function tD(e){return pD(e,"Argument")}function rD(e){return pD(e,"Array")}function nD(e){return pD(e,"AsyncIterator")}function aD(e){return pD(e,"BigInt")}function oD(e){return pD(e,"Boolean")}function iD(e){return pD(e,"Computed")}function sD(e){return pD(e,"Constructor")}function lD(e){return pD(e,"Function")}function cD(e){return pD(e,"Integer")}function uD(e){return pD(e,"Intersect")}function dD(e){return pD(e,"Iterator")}function pD(e,t){return xP(e)&&YP in e&&e[YP]===t}function hD(e){return yP(e)||wP(e)||SP(e)}function fD(e){return pD(e,"Literal")}function mD(e){return pD(e,"MappedKey")}function gD(e){return pD(e,"MappedResult")}function vD(e){return pD(e,"Never")}function bD(e){return pD(e,"Null")}function yD(e){return pD(e,"Number")}function OD(e){return pD(e,"Object")}function wD(e){return pD(e,"Promise")}function xD(e){return pD(e,"Record")}function kD(e){return pD(e,"Ref")}function SD(e){return pD(e,"RegExp")}function _D(e){return pD(e,"String")}function ED(e){return pD(e,"Symbol")}function TD(e){return pD(e,"TemplateLiteral")}function AD(e){return xP(e)&&ZP in e}function CD(e){return pD(e,"Tuple")}function PD(e){return pD(e,"Undefined")}function DD(e){return pD(e,"Union")}function $D(e){return eD(e)||tD(e)||rD(e)||oD(e)||aD(e)||nD(e)||iD(e)||sD(e)||function(e){return pD(e,"Date")}(e)||lD(e)||cD(e)||uD(e)||dD(e)||fD(e)||mD(e)||gD(e)||vD(e)||function(e){return pD(e,"Not")}(e)||bD(e)||yD(e)||OD(e)||wD(e)||xD(e)||kD(e)||SD(e)||_D(e)||ED(e)||TD(e)||function(e){return pD(e,"This")}(e)||CD(e)||PD(e)||DD(e)||function(e){return pD(e,"Uint8Array")}(e)||function(e){return pD(e,"Unknown")}(e)||function(e){return pD(e,"Unsafe")}(e)||function(e){return pD(e,"Void")}(e)||function(e){return xP(e)&&YP in e&&SP(e[YP])}(e)}const RD=["Argument","Any","Array","AsyncIterator","BigInt","Boolean","Computed","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function MD(e){try{return new RegExp(e),!0}catch{return!1}}function ND(e){if(!SP(e))return!1;for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);if(r>=7&&r<=13||27===r||127===r)return!1}return!0}function ID(e){return BD(e)||k$(e)}function LD(e){return EP(e)||bP(e)}function jD(e){return EP(e)||wP(e)}function BD(e){return EP(e)||yP(e)}function UD(e){return EP(e)||SP(e)}function FD(e){return EP(e)||k$(e)}function QD(e){return xP(e)&&"Optional"===e[XP]}function zD(e){return t$(e,"Any")&&UD(e.$id)}function qD(e){return t$(e,"Array")&&"array"===e.type&&UD(e.$id)&&k$(e.items)&&jD(e.minItems)&&jD(e.maxItems)&&BD(e.uniqueItems)&&FD(e.contains)&&jD(e.minContains)&&jD(e.maxContains)}function HD(e){return t$(e,"AsyncIterator")&&"AsyncIterator"===e.type&&UD(e.$id)&&k$(e.items)}function VD(e){return t$(e,"BigInt")&&"bigint"===e.type&&UD(e.$id)&&LD(e.exclusiveMaximum)&&LD(e.exclusiveMinimum)&&LD(e.maximum)&&LD(e.minimum)&&LD(e.multipleOf)}function ZD(e){return t$(e,"Boolean")&&"boolean"===e.type&&UD(e.$id)}function WD(e){return t$(e,"Constructor")&&"Constructor"===e.type&&UD(e.$id)&&vP(e.parameters)&&e.parameters.every((e=>k$(e)))&&k$(e.returns)}function XD(e){return t$(e,"Date")&&"Date"===e.type&&UD(e.$id)&&jD(e.exclusiveMaximumTimestamp)&&jD(e.exclusiveMinimumTimestamp)&&jD(e.maximumTimestamp)&&jD(e.minimumTimestamp)&&jD(e.multipleOfTimestamp)}function GD(e){return t$(e,"Function")&&"Function"===e.type&&UD(e.$id)&&vP(e.parameters)&&e.parameters.every((e=>k$(e)))&&k$(e.returns)}function YD(e){return t$(e,"Integer")&&"integer"===e.type&&UD(e.$id)&&jD(e.exclusiveMaximum)&&jD(e.exclusiveMinimum)&&jD(e.maximum)&&jD(e.minimum)&&jD(e.multipleOf)}function KD(e){return xP(e)&&Object.entries(e).every((([e,t])=>ND(e)&&k$(t)))}function JD(e){return t$(e,"Intersect")&&(!SP(e.type)||"object"===e.type)&&vP(e.allOf)&&e.allOf.every((e=>k$(e)&&!function(e){return xP(e)&&ZP in e}(e)))&&UD(e.type)&&(BD(e.unevaluatedProperties)||FD(e.unevaluatedProperties))&&UD(e.$id)}function e$(e){return t$(e,"Iterator")&&"Iterator"===e.type&&UD(e.$id)&&k$(e.items)}function t$(e,t){return xP(e)&&YP in e&&e[YP]===t}function r$(e){return o$(e)&&SP(e.const)}function n$(e){return o$(e)&&wP(e.const)}function a$(e){return o$(e)&&yP(e.const)}function o$(e){return t$(e,"Literal")&&UD(e.$id)&&function(e){return yP(e)||wP(e)||SP(e)}(e.const)}function i$(e){return t$(e,"Never")&&xP(e.not)&&0===Object.getOwnPropertyNames(e.not).length}function s$(e){return t$(e,"Not")&&k$(e.not)}function l$(e){return t$(e,"Null")&&"null"===e.type&&UD(e.$id)}function c$(e){return t$(e,"Number")&&"number"===e.type&&UD(e.$id)&&jD(e.exclusiveMaximum)&&jD(e.exclusiveMinimum)&&jD(e.maximum)&&jD(e.minimum)&&jD(e.multipleOf)}function u$(e){return t$(e,"Object")&&"object"===e.type&&UD(e.$id)&&KD(e.properties)&&ID(e.additionalProperties)&&jD(e.minProperties)&&jD(e.maxProperties)}function d$(e){return t$(e,"Promise")&&"Promise"===e.type&&UD(e.$id)&&k$(e.item)}function p$(e){return t$(e,"Record")&&"object"===e.type&&UD(e.$id)&&ID(e.additionalProperties)&&xP(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return 1===t.length&&MD(t[0])&&xP(e.patternProperties)&&k$(e.patternProperties[t[0]])})(e)}function h$(e){return t$(e,"RegExp")&&UD(e.$id)&&SP(e.source)&&SP(e.flags)&&jD(e.maxLength)&&jD(e.minLength)}function f$(e){return t$(e,"String")&&"string"===e.type&&UD(e.$id)&&jD(e.minLength)&&jD(e.maxLength)&&function(e){return EP(e)||SP(e)&&ND(e)&&MD(e)}(e.pattern)&&function(e){return EP(e)||SP(e)&&ND(e)}(e.format)}function m$(e){return t$(e,"Symbol")&&"symbol"===e.type&&UD(e.$id)}function g$(e){return t$(e,"TemplateLiteral")&&"string"===e.type&&SP(e.pattern)&&"^"===e.pattern[0]&&"$"===e.pattern[e.pattern.length-1]}function v$(e){return t$(e,"Tuple")&&"array"===e.type&&UD(e.$id)&&wP(e.minItems)&&wP(e.maxItems)&&e.minItems===e.maxItems&&(EP(e.items)&&EP(e.additionalItems)&&0===e.minItems||vP(e.items)&&e.items.every((e=>k$(e))))}function b$(e){return t$(e,"Undefined")&&"undefined"===e.type&&UD(e.$id)}function y$(e){return t$(e,"Union")&&UD(e.$id)&&xP(e)&&vP(e.anyOf)&&e.anyOf.every((e=>k$(e)))}function O$(e){return t$(e,"Uint8Array")&&"Uint8Array"===e.type&&UD(e.$id)&&jD(e.minByteLength)&&jD(e.maxByteLength)}function w$(e){return t$(e,"Unknown")&&UD(e.$id)}function x$(e){return t$(e,"Void")&&"void"===e.type&&UD(e.$id)}function k$(e){return xP(e)&&(zD(e)||function(e){return t$(e,"Argument")&&wP(e.index)}(e)||qD(e)||ZD(e)||VD(e)||HD(e)||function(e){return t$(e,"Computed")&&SP(e.target)&&vP(e.parameters)&&e.parameters.every((e=>k$(e)))}(e)||WD(e)||XD(e)||GD(e)||YD(e)||JD(e)||e$(e)||o$(e)||function(e){return t$(e,"MappedKey")&&vP(e.keys)&&e.keys.every((e=>wP(e)||SP(e)))}(e)||function(e){return t$(e,"MappedResult")&&KD(e.properties)}(e)||i$(e)||s$(e)||l$(e)||c$(e)||u$(e)||d$(e)||p$(e)||function(e){return t$(e,"Ref")&&UD(e.$id)&&SP(e.$ref)}(e)||h$(e)||f$(e)||m$(e)||g$(e)||function(e){return t$(e,"This")&&UD(e.$id)&&SP(e.$ref)}(e)||v$(e)||b$(e)||y$(e)||O$(e)||w$(e)||function(e){return t$(e,"Unsafe")}(e)||x$(e)||function(e){return xP(e)&&YP in e&&SP(e[YP])&&!RD.includes(e[YP])}(e))}const S$="(0|[1-9][0-9]*)",_$="(.*)",E$=`^${S$}$`,T$=`^${_$}$`,A$=new Map,C$=new Map;function P$(e){return C$.has(e)}function D$(e){return HP({[YP]:"Any"},e)}function $$(e,t){return HP({[YP]:"Array",type:"array",items:e},t)}function R$(e,t){return HP({[YP]:"AsyncIterator",type:"AsyncIterator",items:e},t)}function M$(e,t,r){return HP({[YP]:"Computed",target:e,parameters:t},r)}function N$(e,t){return t.reduce(((e,t)=>function(e,t){const{[t]:r,...n}=e;return n}(e,t)),e)}function I$(e){return HP({[YP]:"Never",not:{}},e)}function L$(e){return HP({[YP]:"MappedResult",properties:e})}function j$(e,t,r){return HP({[YP]:"Constructor",type:"Constructor",parameters:e,returns:t},r)}function B$(e,t,r){return HP({[YP]:"Function",type:"Function",parameters:e,returns:t},r)}function U$(e,t){return HP({[YP]:"Union",anyOf:e},t)}function F$(e){return e.map((e=>JP(e)?N$(e,[XP]):e))}function Q$(e,t){return 1===e.length?HP(e[0],t):0===e.length?I$(t):function(e,t){const r=function(e){return e.some((e=>JP(e)))}(e);return r?NR(U$(F$(e),t)):U$(F$(e),t)}(e,t)}function z$(e,t){return 0===e.length?I$(t):1===e.length?HP(e[0],t):U$(e,t)}class q$ extends VP{}function H$(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function V$(e,t,r){return e[t]===r&&92!==e.charCodeAt(t-1)}function Z$(e,t){return V$(e,t,"(")}function W$(e,t){return V$(e,t,")")}function X$(e,t){return V$(e,t,"|")}function G$(e){return function(e){if(!Z$(e,0)||!W$(e,e.length-1))return!1;let t=0;for(let r=0;r<e.length;r++)if(Z$(e,r)&&(t+=1),W$(e,r)&&(t-=1),0===t&&r!==e.length-1)return!1;return!0}(e)?G$(function(e){return e.slice(1,e.length-1)}(e)):function(e){let t=0;for(let r=0;r<e.length;r++)if(Z$(e,r)&&(t+=1),W$(e,r)&&(t-=1),X$(e,r)&&0===t)return!0;return!1}(e)?function(e){let[t,r]=[0,0];const n=[];for(let a=0;a<e.length;a++)if(Z$(e,a)&&(t+=1),W$(e,a)&&(t-=1),X$(e,a)&&0===t){const t=e.slice(r,a);t.length>0&&n.push(G$(t)),r=a+1}const a=e.slice(r);return a.length>0&&n.push(G$(a)),0===n.length?{type:"const",const:""}:1===n.length?n[0]:{type:"or",expr:n}}(e):function(e){for(let t=0;t<e.length;t++)if(Z$(e,t))return!0;return!1}(e)?function(e){function t(e,t){if(!Z$(e,t))throw new q$("TemplateLiteralParser: Index must point to open parens");let r=0;for(let n=t;n<e.length;n++)if(Z$(e,n)&&(r+=1),W$(e,n)&&(r-=1),0===r)return[t,n];throw new q$("TemplateLiteralParser: Unclosed group parens in expression")}function r(e,t){for(let r=t;r<e.length;r++)if(Z$(e,r))return[t,r];return[t,e.length]}const n=[];for(let a=0;a<e.length;a++)if(Z$(e,a)){const[r,o]=t(e,a),i=e.slice(r,o+1);n.push(G$(i)),a=o}else{const[t,o]=r(e,a),i=e.slice(t,o);i.length>0&&n.push(G$(i)),a=o-1}return 0===n.length?{type:"const",const:""}:1===n.length?n[0]:{type:"and",expr:n}}(e):{type:"const",const:H$(e)}}function Y$(e){return G$(e.slice(1,e.length-1))}class K$ extends VP{}function J$(e){return!function(e){return"or"===e.type&&2===e.expr.length&&"const"===e.expr[0].type&&"0"===e.expr[0].const&&"const"===e.expr[1].type&&"[1-9][0-9]*"===e.expr[1].const}(e)&&!function(e){return"const"===e.type&&".*"===e.const}(e)&&(!!function(e){return"or"===e.type&&2===e.expr.length&&"const"===e.expr[0].type&&"true"===e.expr[0].const&&"const"===e.expr[1].type&&"false"===e.expr[1].const}(e)||("and"===e.type||"or"===e.type?e.expr.every((e=>J$(e))):"const"===e.type||(()=>{throw new K$("Unknown expression type")})()))}function eR(e){return J$(Y$(e.pattern))}class tR extends VP{}function*rR(e){if(1===e.length)return yield*e[0];for(const t of e[0])for(const r of rR(e.slice(1)))yield`${t}${r}`}function*nR(e){return yield*rR(e.expr.map((e=>[...aR(e)])))}function*aR(e){return"and"===e.type?yield*nR(e):"or"===e.type?yield*function*(e){for(const t of e.expr)yield*aR(t)}(e):"const"===e.type?yield*function*(e){return yield e.const}(e):(()=>{throw new tR("Unknown expression")})()}function oR(e){const t=Y$(e.pattern);return J$(t)?[...aR(t)]:[]}function iR(e,t){return HP({[YP]:"Literal",const:e,type:typeof e},t)}function sR(e){return HP({[YP]:"Boolean",type:"boolean"},e)}function lR(e){return HP({[YP]:"BigInt",type:"bigint"},e)}function cR(e){return HP({[YP]:"Number",type:"number"},e)}function uR(e){return HP({[YP]:"String",type:"string"},e)}function*dR(e){const t=e.trim().replace(/"|'/g,"");return"boolean"===t?yield sR():"number"===t?yield cR():"bigint"===t?yield lR():"string"===t?yield uR():yield(()=>{const e=t.split("|").map((e=>iR(e.trim())));return 0===e.length?I$():1===e.length?e[0]:Q$(e)})()}function*pR(e){if("{"!==e[1]){const t=iR("$"),r=hR(e.slice(1));return yield*[t,...r]}for(let t=2;t<e.length;t++)if("}"===e[t]){const r=dR(e.slice(2,t)),n=hR(e.slice(t+1));return yield*[...r,...n]}yield iR(e)}function*hR(e){for(let t=0;t<e.length;t++)if("$"===e[t]){const r=iR(e.slice(0,t)),n=pR(e.slice(t));return yield*[r,...n]}yield iR(e)}class fR extends VP{}function mR(e,t){return TD(e)?e.pattern.slice(1,e.pattern.length-1):DD(e)?`(${e.anyOf.map((e=>mR(e,t))).join("|")})`:yD(e)||cD(e)||aD(e)?`${t}${S$}`:_D(e)?`${t}${_$}`:fD(e)?`${t}${r=e.const.toString(),r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}`:oD(e)?`${t}(true|false)`:(()=>{throw new fR(`Unexpected Kind '${e[YP]}'`)})();var r}function gR(e){return`^${e.map((e=>mR(e,""))).join("")}$`}function vR(e){return Q$(oR(e).map((e=>iR(e))))}function bR(e,t){const r=SP(e)?gR([...hR(e)]):gR(e);return HP({[YP]:"TemplateLiteral",type:"string",pattern:r},t)}function yR(e){const t=[];for(const r of e)t.push(...OR(r));return t}function OR(e){return[...new Set(TD(e)?(r=e,oR(r).map((e=>e.toString()))):DD(e)?yR(e.anyOf):fD(e)?(t=e.const,[t.toString()]):yD(e)||cD(e)?["[number]"]:[])];var t,r}function wR(e,t){return e.map((e=>xR(e,t)))}function xR(e,t){return uD(e)?function(e,t){return jR(function(e){return e.filter((e=>!vD(e)))}(wR(e,t)))}(e.allOf,t):DD(e)?function(e,t){return Q$(function(e){return e.some((e=>vD(e)))?[]:e}(wR(e,t)))}(e.anyOf,t):CD(e)?(n=t)in(r=e.items??[])?r[n]:"[number]"===n?Q$(r):I$():rD(e)?function(e,t){return"[number]"===t?e:I$()}(e.items,t):OD(e)?function(e,t){return t in e?e[t]:I$()}(e.properties,t):I$();var r,n}function kR(e,t){return t.map((t=>xR(e,t)))}function SR(e,t){return Q$(kR(e,t))}function _R(e,t,r){if(kD(e)||kD(t)){const r="Index types using Ref parameters require both Type and Key to be of TSchema";if(!$D(e)||!$D(t))throw new VP(r);return M$("Index",[e,t])}return gD(t)?function(e,t,r){return L$(function(e,t,r){return function(e,t,r){const n={};for(const a of Object.getOwnPropertyNames(t))n[a]=_R(e,OR(t[a]),r);return n}(e,t.properties,r)}(e,t,r))}(e,t,r):mD(t)?function(e,t,r){const n=function(e,t,r){return function(e,t,r){return t.reduce(((t,n)=>({...t,...ER(e,n,r)})),{})}(e,t.keys,r)}(e,t,r);return L$(n)}(e,t,r):HP($D(t)?SR(e,OR(t)):SR(e,t),r)}function ER(e,t,r){return{[t]:_R(e,[t],AP(r))}}function TR(e,t){return HP({[YP]:"Iterator",type:"Iterator",items:e},t)}var AR=function(e,t){const r=function(e){const t=[];for(let r in e)JP(e[r])||t.push(r);return t}(e);return HP(r.length>0?{[YP]:"Object",type:"object",properties:e,required:r}:{[YP]:"Object",type:"object",properties:e},t)};function CR(e,t){return HP({[YP]:"Promise",type:"Promise",item:e},t)}function PR(e,t){const r=t??!0;return gD(e)?function(e,t){const r=function(e,t){return function(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=PR(e[n],t);return r}(e.properties,t)}(e,t);return L$(r)}(e,r):function(e,t){return!1===t?function(e){return HP(N$(e,[WP]))}(e):function(e){return HP({...e,[WP]:"Readonly"})}(e)}(e,r)}function DR(e,t){return HP(e.length>0?{[YP]:"Tuple",type:"array",items:e,additionalItems:!1,minItems:e.length,maxItems:e.length}:{[YP]:"Tuple",type:"array",minItems:e.length,maxItems:e.length},t)}function $R(e,t){return e in t?MR(e,t[e]):L$(t)}function RR(e,t){return t.map((t=>MR(e,t)))}function MR(e,t){const r={...t};return JP(t)?NR(MR(e,N$(t,[XP]))):KP(t)?PR(MR(e,N$(t,[WP]))):gD(t)?$R(e,t.properties):mD(t)?function(e,t){return $R(e,function(e,t){return r=e,t.includes(r)?function(e){return{[e]:iR(e)}}(e):function(e){const t={};for(const r of e)t[r]=iR(r);return t}(t);var r}(e,t))}(e,t.keys):sD(t)?j$(RR(e,t.parameters),MR(e,t.returns),r):lD(t)?B$(RR(e,t.parameters),MR(e,t.returns),r):nD(t)?R$(MR(e,t.items),r):dD(t)?TR(MR(e,t.items),r):uD(t)?BR(RR(e,t.allOf),r):DD(t)?z$(RR(e,t.anyOf),r):CD(t)?DR(RR(e,t.items??[]),r):OD(t)?AR(function(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=MR(e,t[n]);return r}(e,t.properties),r):rD(t)?$$(MR(e,t.items),r):wD(t)?CR(MR(e,t.item),r):t}function NR(e,t){const r=t??!0;return gD(e)?function(e,t){const r=function(e,t){return function(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=NR(e[n],t);return r}(e.properties,t)}(e,t);return L$(r)}(e,r):function(e,t){return!1===t?function(e){return HP(N$(e,[XP]))}(e):function(e){return HP({...e,[XP]:"Optional"})}(e)}(e,r)}function IR(e,t={}){const r=e.every((e=>OD(e))),n=$D(t.unevaluatedProperties)?{unevaluatedProperties:t.unevaluatedProperties}:{};return HP(!1===t.unevaluatedProperties||$D(t.unevaluatedProperties)||r?{...n,[YP]:"Intersect",type:"object",allOf:e}:{...n,[YP]:"Intersect",allOf:e},t)}function LR(e){return e.map((e=>JP(e)?N$(e,[XP]):e))}function jR(e,t={}){if(1===e.length)return HP(e[0],t);if(0===e.length)return I$(t);if(e.some((e=>AD(e))))throw new Error("Cannot intersect transform types");return function(e,t){return function(e){return e.every((e=>JP(e)))}(e)?NR(IR(LR(e),t)):IR(LR(e),t)}(e,t)}function BR(e,t){if(1===e.length)return HP(e[0],t);if(0===e.length)return I$(t);if(e.some((e=>AD(e))))throw new Error("Cannot intersect transform types");return IR(e,t)}function UR(...e){const[t,r]="string"==typeof e[0]?[e[0],e[1]]:[e[0].$id,e[1]];if("string"!=typeof t)throw new VP("Ref: $ref must be a string");return HP({[YP]:"Ref",$ref:t},r)}function FR(e){return e.map((e=>QR(e)))}function QR(e,t){return HP(iD(e)?M$("Awaited",[M$(e.target,e.parameters)]):uD(e)?BR(FR(e.allOf)):DD(e)?function(e){return z$(FR(e))}(e.anyOf):wD(e)?function(e){return QR(e)}(e.item):kD(e)?M$("Awaited",[UR(e.$ref)]):e,t)}function zR(e){const t=[];for(const r of e)t.push(qR(r));return t}function qR(e){return uD(e)?function(e){const t=[];for(const r of e)t.push(...r);return t}(zR(e.allOf)):DD(e)?function(e){var t;return 1===(t=zR(e)).length?t[0]:t.length>1?function(e,t){return e.reduce(((e,t)=>function(e,t){return e.filter((e=>t.includes(e)))}(e,t)),t)}(t.slice(1),t[0]):[]}(e.anyOf):CD(e)?function(e){return e.map(((e,t)=>t.toString()))}(e.items??[]):rD(e)?(e.items,["[number]"]):OD(e)?(r=e.properties,globalThis.Object.getOwnPropertyNames(r)):xD(e)?(t=e.patternProperties,HR?globalThis.Object.getOwnPropertyNames(t).map((e=>"^"===e[0]&&"$"===e[e.length-1]?e.slice(1,e.length-1):e)):[]):[];var t,r}let HR=!1;function VR(e){HR=!0;const t=qR(e);return HR=!1,`^(${t.map((e=>`(${e})`)).join("|")})$`}function ZR(e,t){return iD(e)?M$("KeyOf",[M$(e.target,e.parameters)]):kD(e)?M$("KeyOf",[UR(e.$ref)]):gD(e)?function(e,t){const r=function(e,t){return function(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=ZR(e[n],AP(t));return r}(e.properties,t)}(e,t);return L$(r)}(e,t):function(e,t){const r=function(e){return e.map((e=>"[number]"===e?cR():iR(e)))}(qR(e));return HP(Q$(r),t)}(e,t)}function WR(e,t){const r=[];for(const n of e)r.push(...kR(n,[t]));return function(e){return e.filter((e=>!vD(e)))}(r)}function XR(e){return HP({[YP]:"Date",type:"Date"},e)}function GR(e){return HP({[YP]:"Null",type:"null"},e)}function YR(e){return HP({[YP]:"Symbol",type:"symbol"},e)}function KR(e){return HP({[YP]:"Undefined",type:"undefined"},e)}function JR(e){return HP({[YP]:"Uint8Array",type:"Uint8Array"},e)}function eM(e){return HP({[YP]:"Unknown"},e)}function tM(e,t){return!0===t?e:PR(e)}function rM(e,t){return function(e){return xP(e)&&!vP(e)&&!_P(e)&&Symbol.asyncIterator in e}(e)||function(e){return xP(e)&&!vP(e)&&!_P(e)&&Symbol.iterator in e}(e)?tM(D$(),t):vP(e)?PR(DR(e.map((e=>rM(e,!1))))):_P(e)?JR():OP(e)?XR():xP(e)?tM(AR(function(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=PR(rM(e[r],!1));return t}(e)),t):function(e){return"function"==typeof e}(e)?tM(B$([],eM()),t):EP(e)?KR():function(e){return null===e}(e)?GR():function(e){return"symbol"==typeof e}(e)?YR():bP(e)?lR():wP(e)||yP(e)||SP(e)?iR(e):AR({})}class nM extends VP{}var aM,oM;function iM(e){return e===aM.False?e:aM.True}function sM(e){throw new nM(e)}function lM(e){return i$(e)||JD(e)||y$(e)||w$(e)||zD(e)}function cM(e,t){return i$(t)?fM():JD(t)?hM(e,t):y$(t)?CM(e,t):w$(t)?PM():zD(t)?uM():sM("StructuralRight")}function uM(e,t){return aM.True}function dM(e,t){return a$(e)||ZD(e)?aM.True:aM.False}function pM(e,t){return o$(e)&&wP(e.const)||c$(e)||YD(e)?aM.True:aM.False}function hM(e,t){return t.allOf.every((t=>DM(e,t)===aM.True))?aM.True:aM.False}function fM(e,t){return aM.False}function mM(e){let[t,r]=[e,0];for(;s$(t);)t=t.not,r+=1;return r%2==0?t:eM()}function gM(e,t){return n$(e)||c$(e)||YD(e)?aM.True:aM.False}function vM(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function bM(e){return xM(e)}function yM(e){return vM(e,0)||vM(e,1)&&"description"in e.properties&&y$(e.properties.description)&&2===e.properties.description.anyOf.length&&(f$(e.properties.description.anyOf[0])&&b$(e.properties.description.anyOf[1])||f$(e.properties.description.anyOf[1])&&b$(e.properties.description.anyOf[0]))}function OM(e){return vM(e,0)}function wM(e){return vM(e,0)}function xM(e){const t=cR();return vM(e,0)||vM(e,1)&&"length"in e.properties&&iM(DM(e.properties.length,t))===aM.True}function kM(e,t){return DM(e,t)===aM.False||QD(e)&&!QD(t)?aM.False:aM.True}function SM(e,t){return w$(e)?aM.False:zD(e)?aM.Union:i$(e)||r$(e)&&bM(t)||n$(e)&&OM(t)||a$(e)&&wM(t)||m$(e)&&yM(t)||VD(e)&&vM(t,0)||f$(e)&&bM(t)||m$(e)&&yM(t)||c$(e)&&OM(t)||YD(e)&&OM(t)||ZD(e)&&wM(t)||O$(e)&&function(e){return xM(e)}(t)||XD(e)&&function(e){return vM(e,0)}(t)||WD(e)&&function(e){return vM(e,0)}(t)||GD(e)&&function(e){const t=cR();return vM(e,0)||vM(e,1)&&"length"in e.properties&&iM(DM(e.properties.length,t))===aM.True}(t)?aM.True:p$(e)&&f$(_M(e))?"Record"===t[GP]?aM.True:aM.False:p$(e)&&c$(_M(e))&&vM(t,0)?aM.True:aM.False}function _M(e){return E$ in e.patternProperties?cR():T$ in e.patternProperties?uR():sM("Unknown record key pattern")}function EM(e){return E$ in e.patternProperties?e.patternProperties[E$]:T$ in e.patternProperties?e.patternProperties[T$]:sM("Unable to get record value schema")}function TM(e,t){const[r,n]=[_M(t),EM(t)];return r$(e)&&c$(r)&&iM(DM(e,n))===aM.True?aM.True:O$(e)&&c$(r)||f$(e)&&c$(r)||qD(e)&&c$(r)?DM(e,n):u$(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties))if(kM(n,e.properties[t])===aM.False)return aM.False;return aM.True})():aM.False}function AM(e,t){return o$(e)&&SP(e.const)||f$(e)?aM.True:aM.False}function CM(e,t){return t.anyOf.some((t=>DM(e,t)===aM.True))?aM.True:aM.False}function PM(e,t){return aM.True}function DM(e,t){return g$(e)||g$(t)?function(e,t){return g$(e)?DM(vR(e),t):g$(t)?DM(e,vR(t)):sM("Invalid fallthrough for TemplateLiteral")}(e,t):h$(e)||h$(t)?function(e,t){return DM(h$(e)?uR():e,h$(t)?uR():t)}(e,t):s$(e)||s$(t)?function(e,t){return s$(e)?DM(mM(e),t):s$(t)?DM(e,mM(t)):sM("Invalid fallthrough for Not")}(e,t):zD(e)?function(e,t){return JD(t)?hM(e,t):y$(t)&&t.anyOf.some((e=>zD(e)||w$(e)))?aM.True:y$(t)?aM.Union:w$(t)||zD(t)?aM.True:aM.Union}(e,t):qD(e)?function(e,t){return u$(t)&&xM(t)?aM.True:lM(t)?cM(e,t):qD(t)?iM(DM(e.items,t.items)):aM.False}(e,t):VD(e)?function(e,t){return lM(t)?cM(e,t):u$(t)?SM(e,t):p$(t)?TM(e,t):VD(t)?aM.True:aM.False}(e,t):ZD(e)?function(e,t){return lM(t)?cM(e,t):u$(t)?SM(e,t):p$(t)?TM(e,t):ZD(t)?aM.True:aM.False}(e,t):HD(e)?function(e,t){return lM(t)?cM(e,t):HD(t)?iM(DM(e.items,t.items)):aM.False}(e,t):WD(e)?function(e,t){return lM(t)?cM(e,t):u$(t)?SM(e,t):WD(t)?e.parameters.length>t.parameters.length?aM.False:e.parameters.every(((e,r)=>iM(DM(t.parameters[r],e))===aM.True))?iM(DM(e.returns,t.returns)):aM.False:aM.False}(e,t):XD(e)?function(e,t){return lM(t)?cM(e,t):u$(t)?SM(e,t):p$(t)?TM(e,t):XD(t)?aM.True:aM.False}(e,t):GD(e)?function(e,t){return lM(t)?cM(e,t):u$(t)?SM(e,t):GD(t)?e.parameters.length>t.parameters.length?aM.False:e.parameters.every(((e,r)=>iM(DM(t.parameters[r],e))===aM.True))?iM(DM(e.returns,t.returns)):aM.False:aM.False}(e,t):YD(e)?function(e,t){return YD(t)||c$(t)?aM.True:lM(t)?cM(e,t):u$(t)?SM(e,t):p$(t)?TM(e,t):aM.False}(e,t):JD(e)?function(e,t){return e.allOf.some((e=>DM(e,t)===aM.True))?aM.True:aM.False}(e,t):e$(e)?function(e,t){return lM(t)?cM(e,t):e$(t)?iM(DM(e.items,t.items)):aM.False}(e,t):o$(e)?function(e,t){return o$(t)&&t.const===e.const?aM.True:lM(t)?cM(e,t):u$(t)?SM(e,t):p$(t)?TM(e,t):f$(t)?AM(e):c$(t)?gM(e):YD(t)?pM(e):ZD(t)?dM(e):aM.False}(e,t):i$(e)?aM.True:l$(e)?function(e,t){return lM(t)?cM(e,t):u$(t)?SM(e,t):p$(t)?TM(e,t):l$(t)?aM.True:aM.False}(e,t):c$(e)?function(e,t){return lM(t)?cM(e,t):u$(t)?SM(e,t):p$(t)?TM(e,t):YD(t)||c$(t)?aM.True:aM.False}(e,t):u$(e)?function(e,t){return lM(t)?cM(e,t):p$(t)?TM(e,t):u$(t)?(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!QD(t.properties[r]))return aM.False;if(QD(t.properties[r]))return aM.True;if(kM(e.properties[r],t.properties[r])===aM.False)return aM.False}return aM.True})():aM.False}(e,t):p$(e)?function(e,t){return lM(t)?cM(e,t):u$(t)?SM(e,t):p$(t)?DM(EM(e),EM(t)):aM.False}(e,t):f$(e)?function(e,t){return lM(t)?cM(e,t):u$(t)?SM(e,t):p$(t)?TM(e,t):f$(t)?aM.True:aM.False}(e,t):m$(e)?function(e,t){return lM(t)?cM(e,t):u$(t)?SM(e,t):p$(t)?TM(e,t):m$(t)?aM.True:aM.False}(e,t):v$(e)?function(e,t){return lM(t)?cM(e,t):u$(t)&&xM(t)||qD(t)&&function(e,t){return qD(t)&&void 0!==e.items&&e.items.every((e=>DM(e,t.items)===aM.True))}(e,t)?aM.True:v$(t)?EP(e.items)&&!EP(t.items)||!EP(e.items)&&EP(t.items)?aM.False:EP(e.items)&&!EP(t.items)||e.items.every(((e,r)=>DM(e,t.items[r])===aM.True))?aM.True:aM.False:aM.False}(e,t):d$(e)?function(e,t){return lM(t)?cM(e,t):u$(t)&&function(e){const t=B$([D$()],D$());return vM(e,0)||vM(e,1)&&"then"in e.properties&&iM(DM(e.properties.then,t))===aM.True}(t)?aM.True:d$(t)?iM(DM(e.item,t.item)):aM.False}(e,t):O$(e)?function(e,t){return lM(t)?cM(e,t):u$(t)?SM(e,t):p$(t)?TM(e,t):O$(t)?aM.True:aM.False}(e,t):b$(e)?function(e,t){return lM(t)?cM(e,t):u$(t)?SM(e,t):p$(t)?TM(e,t):x$(t)?function(e){return b$(e)||b$(e)?aM.True:aM.False}(e):b$(t)?aM.True:aM.False}(e,t):y$(e)?function(e,t){return e.anyOf.every((e=>DM(e,t)===aM.True))?aM.True:aM.False}(e,t):w$(e)?function(e,t){return i$(t)?fM():JD(t)?hM(e,t):y$(t)?CM(e,t):zD(t)?uM():f$(t)?AM(e):c$(t)?gM(e):YD(t)?pM(e):ZD(t)?dM(e):qD(t)?function(e){return w$(e)?aM.False:zD(e)?aM.Union:i$(e)?aM.True:aM.False}(e):v$(t)?function(e){return i$(e)?aM.True:w$(e)?aM.False:zD(e)?aM.Union:aM.False}(e):u$(t)?SM(e,t):w$(t)?aM.True:aM.False}(e,t):x$(e)?function(e,t){return JD(t)?hM(e,t):y$(t)?CM(e,t):w$(t)?PM():zD(t)?uM():u$(t)?SM(e,t):x$(t)?aM.True:aM.False}(e,t):sM(`Unknown left type operand '${e[YP]}'`)}function $M(e,t){return DM(e,t)}function RM(e,t,r,n,a){return gD(e)?function(e,t,r,n,a){return L$(function(e,t,r,n,a){return function(e,t,r,n,a){const o={};for(const i of globalThis.Object.getOwnPropertyNames(e))o[i]=RM(e[i],t,r,n,AP(a));return o}(e.properties,t,r,n,a)}(e,t,r,n,a))}(e,t,r,n,a):mD(e)?HP(function(e,t,r,n,a){const o=function(e,t,r,n,a){return function(e,t,r,n,a){return e.reduce(((e,o)=>({...e,...MM(o,t,r,n,a)})),{})}(e.keys,t,r,n,a)}(e,t,r,n,a);return L$(o)}(e,t,r,n,a)):HP(function(e,t,r,n){const a=$M(e,t);return a===aM.Union?z$([r,n]):a===aM.True?r:n}(e,t,r,n),a)}function MM(e,t,r,n,a){return{[e]:RM(iR(e),t,r,n,AP(a))}}function NM(e){return"Intersect"===e[YP]?function(e){return e.allOf.every((e=>NM(e)))}(e):"Union"===e[YP]?function(e){return e.anyOf.some((e=>NM(e)))}(e):"Not"===e[YP]?function(e){return!NM(e.not)}(e):"Undefined"===e[YP]}function IM(e){return PR(NR(e))}function LM(e,t,r){return HP({[YP]:"Record",type:"object",patternProperties:{[e]:t}},r)}function jM(e,t,r){const n={};for(const r of e)n[r]=t;return AR(n,{...r,[GP]:"Record"})}function BM(e,t,r={}){return DD(e)?function(e,t,r){return jM(OR(z$(e)),t,r)}(e.anyOf,t,r):TD(e)?function(e,t,r){return eR(e)?jM(OR(e),t,r):LM(e.pattern,t,r)}(e,t,r):fD(e)?function(e,t,r){return jM([e.toString()],t,r)}(e.const,t,r):oD(e)?function(e,t,r){return AR({true:t,false:t},r)}(0,t,r):cD(e)||yD(e)?function(e,t,r){return LM(E$,t,r)}(0,t,r):SD(e)?function(e,t,r){return LM(e.source,t,r)}(e,t,r):_D(e)?function(e,t,r){return LM(EP(e.pattern)?T$:e.pattern,t,r)}(e,t,r):eD(e)?function(e,t,r){return LM(T$,t,r)}(0,t,r):vD(e)?function(e,t,r){return LM("^(?!.*)$",t,r)}(0,t,r):I$(r)}function UM(e){return globalThis.Object.getOwnPropertyNames(e.patternProperties)[0]}function FM(e){return e.patternProperties[UM(e)]}function QM(e,t){const r=KP(t),n=JP(t),a=qM(e,t);return r&&n?IM(a):r&&!n?PR(a):!r&&n?NR(a):a}function zM(e,t){return t.map((t=>qM(e,t)))}function qM(e,t){return sD(t)||lD(t)?function(e,t){return t.parameters=zM(e,t.parameters),t.returns=qM(e,t.returns),t}(e,t):uD(t)?function(e,t){return t.allOf=zM(e,t.allOf),t}(e,t):DD(t)?function(e,t){return t.anyOf=zM(e,t.anyOf),t}(e,t):CD(t)?function(e,t){return EP(t.items)||(t.items=zM(e,t.items)),t}(e,t):rD(t)||nD(t)||dD(t)?function(e,t){return t.items=qM(e,t.items),t}(e,t):wD(t)?function(e,t){return t.item=qM(e,t.item),t}(e,t):OD(t)?function(e,t){const r=function(e,t){return globalThis.Object.getOwnPropertyNames(t).reduce(((r,n)=>({...r,[n]:QM(e,t[n])})),{})}(e,t.properties);return{...t,...AR(r)}}(e,t):xD(t)?function(e,t){const r=qM(e,function(e){const t=UM(e);return t===T$?uR():t===E$?cR():uR({pattern:t})}(t)),n=BM(r,qM(e,FM(t)));return{...t,...n}}(e,t):tD(t)?function(e,t){return t.index in e?e[t.index]:eM()}(e,t):t}function HM(e,t,r){return{[e]:WM(iR(e),t,AP(r))}}function VM(e,t){return"string"==typeof e?"Uncapitalize"===t?function(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}(e):"Capitalize"===t?function(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}(e):"Uppercase"===t?function(e){return e.toUpperCase()}(e):"Lowercase"===t?function(e){return e.toLowerCase()}(e):e:e.toString()}function ZM(e,t){return e.map((e=>WM(e,t)))}function WM(e,t,r={}){return mD(e)?function(e,t,r){return L$(function(e,t,r){return function(e,t,r){return e.reduce(((e,n)=>({...e,...HM(n,t,r)})),{})}(e.keys,t,r)}(e,t,r))}(e,t,r):TD(e)?function(e,t,r){const n=Y$(e.pattern);return J$(n)?bR([z$(ZM([...aR(n)].map((e=>iR(e))),t))],r):{...e,pattern:VM(e.pattern,t)}}(e,t,r):DD(e)?z$(ZM(e.anyOf,t),r):fD(e)?iR(VM(e.const,t),r):HP(e,r)}function XM(e,t){return uD(e)?BR(function(e,t){return e.map((e=>XM(e,t)))}(e.allOf,t)):DD(e)?z$(function(e,t){return e.map((e=>XM(e,t)))}(e.anyOf,t)):OD(e)?function(e,t){const r=N$(e,[ZP,"$id","required","properties"]),n=function(e,t){return t.reduce(((e,t)=>function(e,t){const{[t]:r,...n}=e;return n}(e,t)),e)}(e.properties,t);return AR(n,r)}(e,t):AR({})}function GM(e,t,r){const n=vP(t)?function(e){return z$(e.reduce(((e,t)=>hD(t)?[...e,iR(t)]:e),[]))}(t):t,a=$D(t)?OR(t):t,o=kD(e),i=kD(t);return gD(e)?function(e,t,r){return L$(function(e,t,r){return function(e,t,r){const n={};for(const a of globalThis.Object.getOwnPropertyNames(e))n[a]=GM(e[a],t,AP(r));return n}(e.properties,t,r)}(e,t,r))}(e,a,r):mD(t)?function(e,t,r){const n=function(e,t,r){return function(e,t,r){return t.reduce(((t,n)=>({...t,...YM(e,n,r)})),{})}(e,t.keys,r)}(e,t,r);return L$(n)}(e,t,r):o&&i||!o&&i||o&&!i?M$("Omit",[e,n],r):HP({...XM(e,a),...r})}function YM(e,t,r){return{[t]:GM(e,[t],AP(r))}}function KM(e,t){return uD(e)?BR(function(e,t){return e.map((e=>KM(e,t)))}(e.allOf,t)):DD(e)?z$(function(e,t){return e.map((e=>KM(e,t)))}(e.anyOf,t)):OD(e)?function(e,t){const r=N$(e,[ZP,"$id","required","properties"]),n=function(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}(e.properties,t);return AR(n,r)}(e,t):AR({})}function JM(e,t,r){const n=vP(t)?function(e){return z$(e.reduce(((e,t)=>hD(t)?[...e,iR(t)]:e),[]))}(t):t,a=$D(t)?OR(t):t,o=kD(e),i=kD(t);return gD(e)?function(e,t,r){return L$(function(e,t,r){return function(e,t,r){const n={};for(const a of globalThis.Object.getOwnPropertyNames(e))n[a]=JM(e[a],t,AP(r));return n}(e.properties,t,r)}(e,t,r))}(e,a,r):mD(t)?function(e,t,r){const n=function(e,t,r){return function(e,t,r){return t.reduce(((t,n)=>({...t,...eN(e,n,r)})),{})}(e,t.keys,r)}(e,t,r);return L$(n)}(e,t,r):o&&i||!o&&i||o&&!i?M$("Pick",[e,n],r):HP({...KM(e,a),...r})}function eN(e,t,r){return{[t]:JM(e,[t],AP(r))}}function tN(e){return e.map((e=>rN(e)))}function rN(e){return iD(e)?M$("Partial",[M$(e.target,e.parameters)]):kD(e)?M$("Partial",[UR(e.$ref)]):uD(e)?BR(tN(e.allOf)):DD(e)?z$(tN(e.anyOf)):OD(e)?function(e){const t=N$(e,[ZP,"$id","required","properties"]),r=function(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=NR(e[r]);return t}(e.properties);return AR(r,t)}(e):aD(e)||oD(e)||cD(e)||fD(e)||bD(e)||yD(e)||_D(e)||ED(e)||PD(e)?e:AR({})}function nN(e,t){return gD(e)?function(e,t){const r=function(e,t){return function(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=nN(e[n],AP(t));return r}(e.properties,t)}(e,t);return L$(r)}(e,t):HP({...rN(e),...t})}function aN(e){return e.map((e=>oN(e)))}function oN(e){return iD(e)?M$("Required",[M$(e.target,e.parameters)]):kD(e)?M$("Required",[UR(e.$ref)]):uD(e)?BR(aN(e.allOf)):DD(e)?z$(aN(e.anyOf)):OD(e)?function(e){const t=N$(e,[ZP,"$id","required","properties"]),r=function(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=N$(e[r],[XP]);return t}(e.properties);return AR(r,t)}(e):aD(e)||oD(e)||cD(e)||fD(e)||bD(e)||yD(e)||_D(e)||ED(e)||PD(e)?e:AR({})}function iN(e,t){return gD(e)?function(e,t){const r=function(e,t){return function(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=iN(e[n],t);return r}(e.properties,t)}(e,t);return L$(r)}(e,t):HP({...oN(e),...t})}function sN(e,t){return t in e?kD(e[t])?sN(e,e[t].$ref):cN(e,e[t]):I$()}function lN(e,t){return t.map((t=>cN(e,t)))}function cN(e,t){return JP(t)?HP(cN(e,N$(t,[XP])),t):KP(t)?HP(cN(e,N$(t,[WP])),t):AD(t)?HP(function(e,t){return kD(t)?{...sN(e,t.$ref),[ZP]:t[ZP]}:t}(e,t),t):rD(t)?HP(function(e,t){return $$(cN(e,t))}(e,t.items),t):nD(t)?HP(function(e,t){return R$(cN(e,t))}(e,t.items),t):iD(t)?HP(function(e,t,r){const n=function(e,t){return t.map((t=>kD(t)?sN(e,t.$ref):cN(e,t)))}(e,r);return"Awaited"===t?function(e){return QR(e[0])}(n):"Index"===t?function(e){return _R(e[0],e[1])}(n):"KeyOf"===t?function(e){return ZR(e[0])}(n):"Partial"===t?function(e){return nN(e[0])}(n):"Omit"===t?function(e){return GM(e[0],e[1])}(n):"Pick"===t?function(e){return JM(e[0],e[1])}(n):"Required"===t?function(e){return iN(e[0])}(n):I$()}(e,t.target,t.parameters)):sD(t)?HP(function(e,t,r){return j$(lN(e,t),cN(e,r))}(e,t.parameters,t.returns),t):lD(t)?HP(function(e,t,r){return B$(lN(e,t),cN(e,r))}(e,t.parameters,t.returns),t):uD(t)?HP(function(e,t){return BR(lN(e,t))}(e,t.allOf),t):dD(t)?HP(function(e,t){return TR(cN(e,t))}(e,t.items),t):OD(t)?HP(function(e,t){return AR(globalThis.Object.keys(t).reduce(((r,n)=>({...r,[n]:cN(e,t[n])})),{}))}(e,t.properties),t):xD(t)?HP(function(e,t){const[r,n]=[cN(e,FM(t)),UM(t)],a=CP(t);return a.patternProperties[n]=r,a}(e,t)):CD(t)?HP(function(e,t){return DR(lN(e,t))}(e,t.items||[]),t):DD(t)?HP(function(e,t){return z$(lN(e,t))}(e,t.anyOf),t):t}function uN(e,t){return t in e?cN(e,e[t]):I$()}(oM=aM||(aM={}))[oM.Union=0]="Union",oM[oM.True=1]="True",oM[oM.False=2]="False";class dN{constructor(e){const t=(r=e,globalThis.Object.getOwnPropertyNames(r).reduce(((e,t)=>({...e,[t]:uN(r,t)})),{}));var r;const n=this.WithIdentifiers(t);this.$defs=n}Import(e,t){const r={...this.$defs,[e]:HP(this.$defs[e],t)};return HP({[YP]:"Import",$defs:r,$ref:e})}WithIdentifiers(e){return globalThis.Object.getOwnPropertyNames(e).reduce(((t,r)=>({...t,[r]:{...e[r],$id:r}})),{})}}let pN=0;class hN{constructor(e){this.schema=e}Decode(e){return new fN(this.schema,e)}}class fN{constructor(e,t){this.schema=e,this.decode=t}EncodeTransform(e,t){const r={Encode:r=>t[ZP].Encode(e(r)),Decode:e=>this.decode(t[ZP].Decode(e))};return{...t,[ZP]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[ZP]:r}}Encode(e){return AD(this.schema)?this.EncodeTransform(e,this.schema):this.EncodeSchema(e,this.schema)}}const mN=Object.freeze(Object.defineProperty({__proto__:null,Any:D$,Argument:function(e){return HP({[YP]:"Argument",index:e})},Array:$$,AsyncIterator:R$,Awaited:QR,BigInt:lR,Boolean:sR,Capitalize:function(e,t={}){return WM(e,"Capitalize",t)},Composite:function(e,t){const r=function(e,t){const r={};for(const n of t)r[n]=jR(WR(e,n));return r}(e,function(e){const t=[];for(const r of e)t.push(...qR(r));return function(e){return[...new Set(e)]}(t)}(e));return AR(r,t)},Const:function(e,t){return HP(rM(e,!0),t)},Constructor:j$,ConstructorParameters:function(e,t){return sD(e)?DR(e.parameters,t):I$(t)},Date:XR,Enum:function(e,t){if(EP(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t]));return z$([...new Set(r)].map((e=>iR(e))),{...t,[GP]:"Enum"})},Exclude:function e(t,r,n={}){return TD(t)?HP(function(t,r){return e(vR(t),r)}(t,r),n):gD(t)?HP(function(t,r){const n=function(t,r){return function(t,r){const n={};for(const a of globalThis.Object.getOwnPropertyNames(t))n[a]=e(t[a],r);return n}(t.properties,r)}(t,r);return L$(n)}(t,r),n):HP(DD(t)?function(e,t){const r=e.filter((e=>$M(e,t)===aM.False));return 1===r.length?r[0]:z$(r)}(t.anyOf,r):$M(t,r)!==aM.False?I$():t,n)},Extends:RM,Extract:function e(t,r,n){return TD(t)?HP(function(t,r){return e(vR(t),r)}(t,r),n):gD(t)?HP(function(t,r){const n=function(t,r){return function(t,r){const n={};for(const a of globalThis.Object.getOwnPropertyNames(t))n[a]=e(t[a],r);return n}(t.properties,r)}(t,r);return L$(n)}(t,r),n):HP(DD(t)?function(e,t){const r=e.filter((e=>$M(e,t)!==aM.False));return 1===r.length?r[0]:z$(r)}(t.anyOf,r):$M(t,r)!==aM.False?t:I$(),n)},Function:B$,Index:_R,InstanceType:function(e,t){return sD(e)?HP(e.returns,t):I$(t)},Instantiate:function(e,t){return qM(t,CP(e))},Integer:function(e){return HP({[YP]:"Integer",type:"integer"},e)},Intersect:BR,Iterator:TR,KeyOf:ZR,Literal:iR,Lowercase:function(e,t={}){return WM(e,"Lowercase",t)},Mapped:function(e,t,r){const n=$D(e)?OR(e):e,a=function(e,t){const r={};for(const n of e)r[n]=MR(n,t);return r}(n,t({[YP]:"MappedKey",keys:n}));return AR(a,r)},Module:function(e){return new dN(e)},Never:I$,Not:function(e,t){return HP({[YP]:"Not",not:e},t)},Null:GR,Number:cR,Object:AR,Omit:GM,Optional:NR,Parameters:function(e,t){return lD(e)?DR(e.parameters,t):I$()},Partial:nN,Pick:JM,Promise:CR,Readonly:PR,ReadonlyOptional:IM,Record:BM,Recursive:function(e,t={}){EP(t.$id)&&(t.$id="T"+pN++);const r=CP(e({[YP]:"This",$ref:`${t.$id}`}));return r.$id=t.$id,HP({[GP]:"Recursive",...r},t)},Ref:UR,RegExp:function(e,t){const r=SP(e)?new globalThis.RegExp(e):e;return HP({[YP]:"RegExp",type:"RegExp",source:r.source,flags:r.flags},t)},Required:iN,Rest:function(e){return function(e){return uD(e)?e.allOf:DD(e)?e.anyOf:CD(e)?e.items??[]:[]}(e)},ReturnType:function(e,t){return lD(e)?HP(e.returns,t):I$(t)},String:uR,Symbol:YR,TemplateLiteral:bR,Transform:function(e){return new hN(e)},Tuple:DR,Uint8Array:JR,Uncapitalize:function(e,t={}){return WM(e,"Uncapitalize",t)},Undefined:KR,Union:z$,Unknown:eM,Unsafe:function(e={}){return HP({[YP]:e[YP]??"Unsafe"},e)},Uppercase:function(e,t={}){return WM(e,"Uppercase",t)},Void:function(e){return HP({[YP]:"Void",type:"void"},e)}},Symbol.toStringTag,{value:"Module"})),gN=(...e)=>mN.Composite(e),vN=mN.Record(mN.TemplateLiteral("x-${string}"),mN.Unknown()),bN=gN(mN.Object({name:mN.Optional(mN.String()),url:mN.Optional(mN.String()),email:mN.Optional(mN.String())}),vN),yN=gN(mN.Object({name:mN.Optional(mN.String()),identifier:mN.Optional(mN.String()),url:mN.Optional(mN.String())}),vN),ON=gN(mN.Object({title:mN.String(),summary:mN.Optional(mN.String()),description:mN.Optional(mN.String()),termsOfService:mN.Optional(mN.String()),contact:mN.Optional(bN),license:mN.Optional(yN),version:mN.String()}),vN),wN=gN(mN.Object({enum:mN.Optional(mN.Array(mN.String())),default:mN.Optional(mN.String()),description:mN.Optional(mN.String())}),vN),xN=gN(mN.Object({url:mN.String(),description:mN.Optional(mN.String()),variables:mN.Optional(mN.Record(mN.String(),wN))}),vN),kN=mN.Object({$status:mN.Optional(mN.Union([mN.Literal("loading"),mN.Literal("error")])),$global:mN.Optional(mN.Boolean())}),SN=gN(mN.Object({$ref:mN.String(),summary:mN.Optional(mN.String()),description:mN.Optional(mN.String())}),kN,vN),_N=e=>gN(mN.Record(mN.String(),mN.Union([e,SN])),vN),EN=gN(mN.Object({description:mN.Optional(mN.String()),url:mN.String()}),vN),TN=e=>gN(mN.Object({contentType:mN.Optional(mN.String()),headers:mN.Optional(mN.Record(mN.String(),mN.Union([e,SN])))}),vN),AN=gN(mN.Object({summary:mN.Optional(mN.String()),description:mN.Optional(mN.String()),value:mN.Optional(mN.Any()),externalValue:mN.Optional(mN.String())}),vN),CN=gN(mN.Object({propertyName:mN.String(),mapping:mN.Optional(mN.Record(mN.String(),mN.String()))}),vN),PN=gN(mN.Object({name:mN.Optional(mN.String()),namespace:mN.Optional(mN.String()),prefix:mN.Optional(mN.String()),attribute:mN.Optional(mN.Boolean()),wrapped:mN.Optional(mN.Boolean())}),vN),DN=mN.Partial(mN.Object({"x-tags":mN.Array(mN.String())})),$N=gN(mN.Object({discriminator:mN.Optional(CN),xml:mN.Optional(PN),externalDocs:mN.Optional(EN),example:mN.Optional(mN.Any()),examples:mN.Optional(mN.Array(mN.Unknown()))}),vN,DN,mN.Record(mN.String(),mN.Unknown())),RN=gN(mN.Object({description:mN.Optional(mN.String()),required:mN.Optional(mN.Boolean()),deprecated:mN.Optional(mN.Boolean())}),vN),MN=gN(RN,mN.Object({style:mN.Optional(mN.String()),explode:mN.Optional(mN.Boolean()),schema:mN.Optional(mN.Union([$N,SN])),example:mN.Any(),examples:mN.Optional(mN.Record(mN.String(),mN.Union([AN,SN])))})),NN=e=>mN.Union([MN,gN(RN,mN.Object({content:mN.Optional(mN.Record(mN.String(),e))}))]),IN=e=>gN(mN.Object({schema:mN.Optional($N),example:mN.Optional(mN.Any()),examples:mN.Optional(mN.Record(mN.String(),mN.Union([AN,SN]))),encoding:mN.Optional(mN.Record(mN.String(),e))}),vN);mN.Recursive((e=>TN(NN(IN(e)))));const LN=mN.Recursive((e=>IN(TN(NN(e))))),jN=mN.Recursive((e=>NN(IN(TN(e))))),BN=gN(mN.Object({name:mN.String(),in:mN.Union([mN.Literal("query"),mN.Literal("header"),mN.Literal("path"),mN.Literal("cookie")]),description:mN.Optional(mN.String()),required:mN.Optional(mN.Boolean()),deprecated:mN.Optional(mN.Boolean()),allowEmptyValue:mN.Optional(mN.Boolean())}),vN),UN=gN(BN,mN.Object({style:mN.Optional(mN.String()),explode:mN.Optional(mN.Boolean()),schema:mN.Optional(mN.Union([$N,SN])),example:mN.Any(),examples:mN.Optional(mN.Record(mN.String(),mN.Union([AN,SN])))})),FN=gN(BN,mN.Object({content:mN.Optional(mN.Record(mN.String(),LN))})),QN=mN.Union([UN,FN]),zN=gN(mN.Object({description:mN.Optional(mN.String()),content:mN.Record(mN.String(),LN),required:mN.Optional(mN.Boolean())}),vN),qN=gN(mN.Object({operationRef:mN.Optional(mN.String()),operationId:mN.Optional(mN.String()),parameters:mN.Optional(mN.Record(mN.String(),mN.Any())),requestBody:mN.Optional(mN.Any()),description:mN.Optional(mN.String()),server:mN.Optional(xN)}),vN),HN=gN(mN.Object({description:mN.String(),headers:mN.Optional(mN.Record(mN.String(),mN.Union([jN,SN]))),content:mN.Optional(mN.Record(mN.String(),LN)),links:mN.Optional(mN.Record(mN.String(),mN.Union([qN,SN])))}),vN),VN=gN(mN.Record(mN.String(),mN.Union([HN,SN])),vN),ZN=gN(mN.Record(mN.String(),mN.Array(mN.String())),vN),WN=mN.Union([mN.Object({url:mN.String(),base64:mN.Optional(mN.String())}),mN.Null()]),XN=mN.Object({encoding:mN.Union(["application/json","text/plain","text/html","application/javascript","application/xml","application/yaml","application/edn","application/octet-stream","application/x-www-form-urlencoded","multipart/form-data","binary"].map((e=>mN.Literal(e)))),content:mN.Union([mN.Record(mN.String(),mN.Any()),mN.String()]),file:mN.Optional(WN)}),GN=mN.Optional(mN.Record(mN.String(),mN.String())),YN=mN.Partial(mN.Object({name:mN.String(),body:XN,parameters:mN.Object({path:GN,query:GN,header:GN,cookie:GN})})),KN=mN.Partial(mN.Object({"x-scalar-client-config-request-example":mN.Record(mN.String(),YN)})),JN=e=>mN.Union([gN(mN.Object({tags:mN.Optional(mN.Array(mN.String())),summary:mN.Optional(mN.String()),description:mN.Optional(mN.String()),externalDocs:mN.Optional(EN),operationId:mN.Optional(mN.String()),parameters:mN.Optional(mN.Array(mN.Union([QN,SN]))),requestBody:mN.Optional(mN.Union([zN,SN])),responses:mN.Optional(VN),deprecated:mN.Optional(mN.Boolean()),security:mN.Optional(mN.Array(ZN)),servers:mN.Optional(mN.Array(xN)),callbacks:mN.Optional(mN.Record(mN.String(),mN.Union([e,SN])))}),KN,vN),SN]),eI=e=>gN(mN.Object({$ref:mN.Optional(mN.String()),summary:mN.Optional(mN.String()),description:mN.Optional(mN.String()),get:mN.Optional(e),put:mN.Optional(e),post:mN.Optional(e),delete:mN.Optional(e),patch:mN.Optional(e),connect:mN.Optional(e),options:mN.Optional(e),head:mN.Optional(e),trace:mN.Optional(e),servers:mN.Optional(mN.Array(xN)),parameters:mN.Optional(mN.Array(mN.Union([QN,SN])))}),vN);mN.Recursive((e=>JN(_N(eI(e)))));const tI=mN.Recursive((e=>_N(eI(JN(e))))),rI=mN.Recursive((e=>eI(JN(_N(e))))),nI=gN(mN.Record(mN.String(),rI),vN),aI=mN.Object({refreshUrl:mN.Optional(mN.String()),scopes:mN.Record(mN.String(),mN.String())}),oI=gN(aI,mN.Object({authorizationUrl:mN.String()}),vN),iI=gN(aI,mN.Object({tokenUrl:mN.String()}),vN),sI=gN(aI,mN.Object({tokenUrl:mN.String()}),vN),lI=gN(aI,mN.Object({authorizationUrl:mN.String(),tokenUrl:mN.String()}),vN);mN.Union([oI,iI,sI,lI]);const cI=gN(mN.Object({implicit:mN.Optional(oI),password:mN.Optional(iI),clientCredentials:mN.Optional(sI),authorizationCode:mN.Optional(lI)})),uI=gN(mN.Object({description:mN.Optional(mN.String())}),vN),dI=gN(uI,mN.Object({type:mN.Literal("apiKey"),name:mN.String(),in:mN.String()})),pI=gN(uI,mN.Object({type:mN.Literal("http"),scheme:mN.String(),bearerFormat:mN.Optional(mN.String())})),hI=gN(uI,mN.Object({type:mN.Literal("oauth2"),flows:cI})),fI=gN(uI,mN.Object({type:mN.Literal("openIdConnect"),openIdConnectUrl:mN.String()})),mI=mN.Union([dI,pI,hI,fI]),gI=gN(mN.Object({schemas:mN.Optional(mN.Record(mN.String(),$N)),responses:mN.Optional(mN.Record(mN.String(),mN.Union([HN,SN]))),parameters:mN.Optional(mN.Record(mN.String(),mN.Union([QN,SN]))),examples:mN.Optional(mN.Record(mN.String(),mN.Union([AN,SN]))),requestBodies:mN.Optional(mN.Record(mN.String(),mN.Union([zN,SN]))),headers:mN.Optional(mN.Record(mN.String(),mN.Union([jN,SN]))),securitySchemes:mN.Optional(mN.Record(mN.String(),mN.Union([mI,SN]))),links:mN.Optional(mN.Record(mN.String(),mN.Union([qN,SN]))),callbacks:mN.Optional(mN.Record(mN.String(),mN.Union([tI,SN]))),pathItems:mN.Optional(mN.Record(mN.String(),rI))}),vN),vI=mN.Partial(mN.Object({"x-displayName":mN.String()})),bI=gN(mN.Object({name:mN.String(),description:mN.Optional(mN.String()),externalDocs:mN.Optional(EN)}),vI,vN),yI=mN.Union([mN.Partial(mN.Object({description:mN.String(),default:mN.String()})),mN.String()]),OI=mN.Object({description:mN.Optional(mN.String()),color:mN.Optional(mN.String()),variables:mN.Record(mN.String(),yI)}),wI=mN.Record(mN.String(),OI),xI=mN.Object({name:mN.String(),value:mN.String(),domain:mN.Optional(mN.String()),path:mN.Optional(mN.String())}),kI=mN.Record(mN.String(),xI),SI=mN.Object({type:mN.Union([mN.Literal("text"),mN.Literal("operation"),mN.Literal("model"),mN.Literal("tag"),mN.Literal("webhook")]),id:mN.String(),title:mN.String()}),_I=gN(SI,mN.Object({type:mN.Literal("text"),children:mN.Optional(mN.Array(SI))})),EI=gN(SI,mN.Object({type:mN.Literal("operation"),ref:mN.String(),method:mN.String(),path:mN.String()})),TI=gN(SI,mN.Object({type:mN.Literal("model"),ref:mN.String(),name:mN.String()})),AI=gN(SI,mN.Object({type:mN.Literal("webhook"),ref:mN.String(),method:mN.String(),name:mN.String()})),CI=e=>gN(SI,mN.Object({type:mN.Literal("tag"),name:mN.String(),children:mN.Optional(mN.Array(e)),isGroup:mN.Boolean()})),PI=e=>mN.Union([_I,EI,TI,e,AI]);mN.Recursive((e=>CI(PI(e))));const DI=mN.Recursive((e=>PI(CI(e)))),$I=mN.Partial(mN.Object({"x-tagGroups":mN.Array(gN(mN.Object({tags:mN.Array(mN.String())}),bI)),"x-scalar-client-config-active-environment":mN.String(),"x-scalar-client-config-icon":mN.String(),"x-scalar-client-config-environments":wI,"x-scalar-client-config-cookies":kI,[uP]:mN.Array(DI)})),RI=gN(mN.Object({openapi:mN.String(),info:ON,jsonSchemaDialect:mN.Optional(mN.String()),servers:mN.Optional(mN.Array(xN)),paths:mN.Optional(nI),webhooks:mN.Optional(mN.Record(mN.String(),rI)),components:mN.Optional(gI),security:mN.Optional(mN.Array(ZN)),tags:mN.Optional(mN.Array(bI)),externalDocs:mN.Optional(EN)}),vN,$I),MI=["c/libcurl","clojure/clj_http","csharp/httpclient","csharp/restsharp","dart/http","go/native","http/http1.1","java/asynchttp","java/nethttp","java/okhttp","java/unirest","js/axios","js/fetch","js/jquery","js/ofetch","js/xhr","kotlin/okhttp","node/axios","node/fetch","node/ofetch","node/undici","objc/nsurlsession","ocaml/cohttp","php/curl","php/guzzle","powershell/restmethod","powershell/webrequest","python/python3","python/requests","python/httpx_sync","python/httpx_async","r/httr","ruby/native","rust/reqwest","shell/curl","shell/httpie","shell/wget","swift/nsurlsession"],NI=mN.Partial(mN.Object({[dP]:mN.String(),[pP]:mN.String()})),II=gN(NI,RI),LI=mN.Partial(mN.Object({[hP]:mN.Boolean(),[fP]:mN.Union(MI.map((e=>mN.Literal(e)))),[mP]:mN.String(),[gP]:mN.String()})),jI=mN.Partial(mN.Object({"x-scalar-client-config-environments":wI,"x-scalar-client-config-cookies":kI,"x-scalar-client-config-servers":mN.Array(xN),"x-scalar-client-config-security-schemes":mN.Record(mN.String(),mI)}));gN(LI,mN.Object({documents:mN.Record(mN.String(),II),activeDocument:mN.Union([mN.Undefined(),II])}),jI);const BI=mN.Partial(mN.Object({title:mN.String(),description:mN.String(),ogTitle:mN.String(),ogDescription:mN.String(),ogImage:mN.String(),twitterCard:mN.String()})),UI=mN.Partial(mN.Object({showSidebar:mN.Boolean(),showModels:mN.Boolean(),showDownload:mN.Boolean(),showTestRequestButton:mN.Boolean(),showSearch:mN.Boolean(),showApiClientImport:mN.Boolean(),showDarkModeToggle:mN.Boolean(),expandAllTagSections:mN.Boolean(),persistAuthenticationState:mN.Boolean()})),FI=mN.Partial(mN.Object({layout:mN.Union([mN.Literal("modern"),mN.Literal("classic")]),theme:mN.String(),favicon:mN.String(),initialColorMode:mN.Union([mN.Literal("auto"),mN.Literal("dark"),mN.Literal("light")]),forceColorMode:mN.Union([mN.Literal("dark"),mN.Literal("light")]),css:mN.String(),loadDefaultFonts:mN.Boolean()})),QI=mN.Partial(mN.Object({basePath:mN.String(),pathNotFound:mN.String()})),zI=mN.Partial(mN.Object({proxyUrl:mN.String(),searchKey:mN.String()})),qI=mN.Partial(mN.Object({title:mN.String(),slug:mN.String(),settings:zI,tagSort:mN.Union([mN.Literal("alpha")]),operationSort:mN.Union([mN.Literal("method"),mN.Literal("alpha")]),routing:QI,appearance:FI,features:UI,meta:BI,httpClients:mN.Array(mN.Union(MI.map((e=>mN.Literal(e)))))})),HI={title:"Scalar API Reference",slug:"scalar-api-reference",tagSort:"alpha",operationSort:"method",settings:{proxyUrl:"https://proxy.scalar.com",searchKey:"k"},routing:{basePath:"/",pathNotFound:"/"},appearance:{layout:"modern",theme:"default",favicon:"",initialColorMode:"auto",forceColorMode:"dark",css:"",loadDefaultFonts:!0},features:{showSidebar:!0,showModels:!0,showDownload:!0,showTestRequestButton:!0,showSearch:!0,showApiClientImport:!0,showDarkModeToggle:!0,expandAllTagSections:!1,persistAuthenticationState:!1},meta:{title:"Scalar API Reference",description:"Scalar API Reference",ogTitle:"Scalar API Reference",ogDescription:"Scalar API Reference",ogImage:"https://scalar.com/images/scalar-logo.png",twitterCard:"summary_large_image"},httpClients:MI},VI=mN.Partial(mN.Object({"x-scalar-reference-config":qI})),ZI=mN.Object({meta:LI,documentConfigs:mN.Record(mN.String(),VI),documents:mN.Record(mN.String(),II),originalDocuments:mN.Record(mN.String(),II),intermediateDocuments:mN.Record(mN.String(),II)});class WI extends VP{constructor(e){super(`Unable to dereference schema with $id '${e.$ref}'`),this.schema=e}}function XI(e,t){return!UP(e.$id)||t.some((t=>t.$id===e.$id))||t.push(e),t}function GI(e,t){return"This"===e[YP]||"Ref"===e[YP]?function(e,t){const r=t.find((t=>t.$id===e.$ref));if(void 0===r)throw new WI(e);return GI(r,t)}(e,t):e}class YI extends VP{constructor(e){super("Unable to hash value"),this.value=e}}var KI,JI;(JI=KI||(KI={}))[JI.Undefined=0]="Undefined",JI[JI.Null=1]="Null",JI[JI.Boolean=2]="Boolean",JI[JI.Number=3]="Number",JI[JI.String=4]="String",JI[JI.Object=5]="Object",JI[JI.Array=6]="Array",JI[JI.Date=7]="Date",JI[JI.Uint8Array=8]="Uint8Array",JI[JI.Symbol=9]="Symbol",JI[JI.BigInt=10]="BigInt";let eL=BigInt("14695981039346656037");const[tL,rL]=[BigInt("1099511628211"),BigInt("18446744073709551616")],nL=Array.from({length:256}).map(((e,t)=>BigInt(t))),aL=new Float64Array(1),oL=new DataView(aL.buffer),iL=new Uint8Array(aL.buffer);function*sL(e){const t=0===e?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r<t;r++)yield e>>8*(t-1-r)&255}function lL(e){if(MP(e))return function(e){cL(KI.Array);for(const t of e)lL(t)}(e);if(LP(e))return function(e){cL(KI.Boolean),cL(e?1:0)}(e);if(BP(e))return function(e){cL(KI.BigInt),oL.setBigInt64(0,e);for(const e of iL)cL(e)}(e);if(PP(e))return function(e){cL(KI.Date),lL(e.getTime())}(e);if(!IP(e)){if(jP(e))return function(e){cL(KI.Number),oL.setFloat64(0,e);for(const e of iL)cL(e)}(e);if(RP(e))return function(e){cL(KI.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort())lL(t),lL(e[t])}(e);if(UP(e))return function(e){cL(KI.String);for(let t=0;t<e.length;t++)for(const r of sL(e.charCodeAt(t)))cL(r)}(e);if(QP(e))return function(e){cL(KI.Symbol),lL(e.description)}(e);if(DP(e))return function(e){cL(KI.Uint8Array);for(let t=0;t<e.length;t++)cL(e[t])}(e);if(NP(e))return cL(KI.Undefined);throw new YI(e)}cL(KI.Null)}function cL(e){eL^=nL[e],eL=eL*tL%rL}function uL(e){return eL=BigInt("14695981039346656037"),lL(e),eL}class dL extends VP{constructor(e){super("Unknown type"),this.schema=e}}function pL(e){return"Any"===e[YP]||"Unknown"===e[YP]}function hL(e){return void 0!==e}function fL(e,t,r){const n=hL(e.$id)?XI(e,t):t,a=e;switch(a[YP]){case"Any":case"Argument":case"Unknown":return!0;case"Array":return function(e,t,r){if(!MP(r))return!1;if(hL(e.minItems)&&!(r.length>=e.minItems))return!1;if(hL(e.maxItems)&&!(r.length<=e.maxItems))return!1;if(!r.every((r=>fL(e.items,t,r))))return!1;if(!0===e.uniqueItems&&!function(){const e=new Set;for(const t of r){const r=uL(t);if(e.has(r))return!1;e.add(r)}return!0}())return!1;if(!(hL(e.contains)||jP(e.minContains)||jP(e.maxContains)))return!0;const n=hL(e.contains)?e.contains:I$(),a=r.reduce(((e,r)=>fL(n,t,r)?e+1:e),0);return!(0===a||jP(e.minContains)&&a<e.minContains||jP(e.maxContains)&&a>e.maxContains)}(a,n,r);case"AsyncIterator":return function(e,t,r){return function(e){return RP(e)&&globalThis.Symbol.asyncIterator in e}(r)}(0,0,r);case"BigInt":return function(e,t,r){return!(!BP(r)||hL(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)||hL(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)||hL(e.maximum)&&!(r<=e.maximum)||hL(e.minimum)&&!(r>=e.minimum)||hL(e.multipleOf)&&r%e.multipleOf!==BigInt(0))}(a,0,r);case"Boolean":return function(e,t,r){return LP(r)}(0,0,r);case"Constructor":return function(e,t,r){return fL(e.returns,t,r.prototype)}(a,n,r);case"Date":return function(e,t,r){return!(!PP(r)||hL(e.exclusiveMaximumTimestamp)&&!(r.getTime()<e.exclusiveMaximumTimestamp)||hL(e.exclusiveMinimumTimestamp)&&!(r.getTime()>e.exclusiveMinimumTimestamp)||hL(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)||hL(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)||hL(e.multipleOfTimestamp)&&r.getTime()%e.multipleOfTimestamp!=0)}(a,0,r);case"Function":return function(e,t,r){return FP(r)}(0,0,r);case"Import":return function(e,t,r){const n=globalThis.Object.values(e.$defs);return fL(e.$defs[e.$ref],[...t,...n],r)}(a,n,r);case"Integer":return function(e,t,r){return!(!function(e){return globalThis.Number.isInteger(e)}(r)||hL(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)||hL(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)||hL(e.maximum)&&!(r<=e.maximum)||hL(e.minimum)&&!(r>=e.minimum)||hL(e.multipleOf)&&r%e.multipleOf!=0)}(a,0,r);case"Intersect":return function(e,t,r){const n=e.allOf.every((e=>fL(e,t,r)));if(!1===e.unevaluatedProperties){const t=new RegExp(VR(e)),a=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&a}if($D(e.unevaluatedProperties)){const a=new RegExp(VR(e)),o=Object.getOwnPropertyNames(r).every((n=>a.test(n)||fL(e.unevaluatedProperties,t,r[n])));return n&&o}return n}(a,n,r);case"Iterator":return function(e,t,r){return function(e){return RP(e)&&globalThis.Symbol.iterator in e}(r)}(0,0,r);case"Literal":return function(e,t,r){return r===e.const}(a,0,r);case"Never":return!1;case"Not":return function(e,t,r){return!fL(e.not,t,r)}(a,n,r);case"Null":return function(e,t,r){return IP(r)}(0,0,r);case"Number":return function(e,t,r){return!(!zP.IsNumberLike(r)||hL(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)||hL(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)||hL(e.minimum)&&!(r>=e.minimum)||hL(e.maximum)&&!(r<=e.maximum)||hL(e.multipleOf)&&r%e.multipleOf!=0)}(a,0,r);case"Object":return function(e,t,r){if(!zP.IsObjectLike(r))return!1;if(hL(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties))return!1;if(hL(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties))return!1;const n=Object.getOwnPropertyNames(e.properties);for(const a of n){const n=e.properties[a];if(e.required&&e.required.includes(a)){if(!fL(n,t,r[a]))return!1;if((NM(n)||pL(n))&&!(a in r))return!1}else if(zP.IsExactOptionalProperty(r,a)&&!fL(n,t,r[a]))return!1}if(!1===e.additionalProperties){const t=Object.getOwnPropertyNames(r);return!(!e.required||e.required.length!==n.length||t.length!==n.length)||t.every((e=>n.includes(e)))}return"object"!=typeof e.additionalProperties||Object.getOwnPropertyNames(r).every((a=>n.includes(a)||fL(e.additionalProperties,t,r[a])))}(a,n,r);case"Promise":return function(e,t,r){return function(e){return e instanceof globalThis.Promise}(r)}(0,0,r);case"Record":return function(e,t,r){if(!zP.IsRecordLike(r))return!1;if(hL(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties))return!1;if(hL(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties))return!1;const[n,a]=Object.entries(e.patternProperties)[0],o=new RegExp(n),i=Object.entries(r).every((([e,r])=>!o.test(e)||fL(a,t,r))),s="object"!=typeof e.additionalProperties||Object.entries(r).every((([r,n])=>!!o.test(r)||fL(e.additionalProperties,t,n))),l=!1!==e.additionalProperties||Object.getOwnPropertyNames(r).every((e=>o.test(e)));return i&&s&&l}(a,n,r);case"Ref":case"This":return function(e,t,r){return fL(GI(e,t),t,r)}(a,n,r);case"RegExp":return function(e,t,r){const n=new RegExp(e.source,e.flags);return(!hL(e.minLength)||r.length>=e.minLength)&&(!hL(e.maxLength)||r.length<=e.maxLength)&&n.test(r)}(a,0,r);case"String":return function(e,t,r){if(!UP(r))return!1;if(hL(e.minLength)&&!(r.length>=e.minLength))return!1;if(hL(e.maxLength)&&!(r.length<=e.maxLength))return!1;if(hL(e.pattern)&&!new RegExp(e.pattern).test(r))return!1;if(hL(e.format)){if(n=e.format,!A$.has(n))return!1;const t=function(e){return A$.get(e)}(e.format);return t(r)}var n;return!0}(a,0,r);case"Symbol":return function(e,t,r){return QP(r)}(0,0,r);case"TemplateLiteral":return function(e,t,r){return UP(r)&&new RegExp(e.pattern).test(r)}(a,0,r);case"Tuple":return function(e,t,r){if(!MP(r))return!1;if(void 0===e.items&&0!==r.length)return!1;if(r.length!==e.maxItems)return!1;if(!e.items)return!0;for(let n=0;n<e.items.length;n++)if(!fL(e.items[n],t,r[n]))return!1;return!0}(a,n,r);case"Undefined":return function(e,t,r){return NP(r)}(0,0,r);case"Union":return function(e,t,r){return e.anyOf.some((e=>fL(e,t,r)))}(a,n,r);case"Uint8Array":return function(e,t,r){return!!DP(r)&&(!hL(e.maxByteLength)||r.length<=e.maxByteLength)&&(!hL(e.minByteLength)||r.length>=e.minByteLength)}(a,0,r);case"Void":return function(e,t,r){return zP.IsVoidLike(r)}(0,0,r);default:if(!P$(a[YP]))throw new dL(a);return function(e,t,r){return!!P$(e[YP])&&(n=e[YP],C$.get(n))(e,r);var n}(a,0,r)}}function mL(...e){return 3===e.length?fL(e[0],e[1],e[2]):fL(e[0],[],e[1])}function gL(e){if(MP(e))return function(e){return e.map((e=>gL(e)))}(e);if(PP(e))return function(e){return new Date(e.toISOString())}(e);if(function(e){return globalThis.ArrayBuffer.isView(e)}(e))return function(e){return e.slice()}(e);if(function(e){return e instanceof globalThis.Map}(e))return function(e){return new Map(gL([...e.entries()]))}(e);if(function(e){return e instanceof globalThis.Set}(e))return function(e){return new Set(gL([...e.entries()]))}(e);if(RP(e))return function(e){const t={};for(const r of Object.getOwnPropertyNames(e))t[r]=gL(e[r]);for(const r of Object.getOwnPropertySymbols(e))t[r]=gL(e[r]);return t}(e);if(function(e){return BP(e)||LP(e)||IP(e)||jP(e)||UP(e)||QP(e)||NP(e)}(e))return e;throw new Error("ValueClone: Unable to clone value")}class vL extends VP{constructor(e,t){super(t),this.schema=e}}function bL(e){return FP(e)?e():gL(e)}function yL(e,t){const r=XI(e,t),n=e;switch(n[YP]){case"Any":case"Record":case"Unknown":return function(e){return $P(e,"default")?bL(e.default):{}}(n);case"Argument":return{};case"Array":return function(e,t){if(!0!==e.uniqueItems||$P(e,"default")){if("contains"in e&&!$P(e,"default"))throw new vL(e,"Array with the contains constraint requires a default value");return"default"in e?bL(e.default):void 0!==e.minItems?Array.from({length:e.minItems}).map((r=>yL(e.items,t))):[]}throw new vL(e,"Array with the uniqueItems constraint requires a default value")}(n,r);case"AsyncIterator":return function(e){return $P(e,"default")?bL(e.default):async function*(){}()}(n);case"BigInt":return function(e){return $P(e,"default")?bL(e.default):BigInt(0)}(n);case"Boolean":return function(e){return!!$P(e,"default")&&bL(e.default)}(n);case"Constructor":return function(e,t){if($P(e,"default"))return bL(e.default);{const r=yL(e.returns,t);return"object"!=typeof r||Array.isArray(r)?class{}:class{constructor(){for(const[e,t]of Object.entries(r))this[e]=t}}}}(n,r);case"Date":return function(e){return $P(e,"default")?bL(e.default):void 0!==e.minimumTimestamp?new Date(e.minimumTimestamp):new Date}(n);case"Function":return function(e,t){return $P(e,"default")?bL(e.default):()=>yL(e.returns,t)}(n,r);case"Import":return function(e,t){const r=globalThis.Object.values(e.$defs);return yL(e.$defs[e.$ref],[...t,...r])}(n,r);case"Integer":case"Number":return function(e){return $P(e,"default")?bL(e.default):void 0!==e.minimum?e.minimum:0}(n);case"Intersect":return function(e,t){if($P(e,"default"))return bL(e.default);{const r=e.allOf.reduce(((e,r)=>{const n=yL(r,t);return"object"==typeof n?{...e,...n}:n}),{});if(!mL(e,t,r))throw new vL(e,"Intersect produced invalid value. Consider using a default value.");return r}}(n,r);case"Iterator":return function(e){return $P(e,"default")?bL(e.default):function*(){}()}(n);case"Literal":return function(e){return $P(e,"default")?bL(e.default):e.const}(n);case"Never":return function(e){if($P(e,"default"))return bL(e.default);throw new vL(e,"Never types cannot be created. Consider using a default value.")}(n);case"Not":return function(e){if($P(e,"default"))return bL(e.default);throw new vL(e,"Not types must have a default value")}(n);case"Null":return function(e){return $P(e,"default")?bL(e.default):null}(n);case"Object":return function(e,t){if($P(e,"default"))return bL(e.default);{const r=new Set(e.required),n={};for(const[a,o]of Object.entries(e.properties))r.has(a)&&(n[a]=yL(o,t));return n}}(n,r);case"Promise":return function(e,t){return $P(e,"default")?bL(e.default):Promise.resolve(yL(e.item,t))}(n,r);case"Ref":return function(e,t){return $P(e,"default")?bL(e.default):yL(GI(e,t),t)}(n,r);case"RegExp":return function(e){if($P(e,"default"))return bL(e.default);throw new vL(e,"RegExp types cannot be created. Consider using a default value.")}(n);case"String":return function(e){if(void 0!==e.pattern){if($P(e,"default"))return bL(e.default);throw new vL(e,"String types with patterns must specify a default value")}if(void 0!==e.format){if($P(e,"default"))return bL(e.default);throw new vL(e,"String types with formats must specify a default value")}return $P(e,"default")?bL(e.default):void 0!==e.minLength?Array.from({length:e.minLength}).map((()=>" ")).join(""):""}(n);case"Symbol":return function(e){return $P(e,"default")?bL(e.default):"value"in e?Symbol.for(e.value):Symbol()}(n);case"TemplateLiteral":return function(e){if($P(e,"default"))return bL(e.default);if(!eR(e))throw new vL(e,"Can only create template literals that produce a finite variants. Consider using a default value.");return oR(e)[0]}(n);case"This":return function(e,t){if(wL++>OL)throw new vL(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");return $P(e,"default")?bL(e.default):yL(GI(e,t),t)}(n,r);case"Tuple":return function(e,t){return $P(e,"default")?bL(e.default):void 0===e.items?[]:Array.from({length:e.minItems}).map(((r,n)=>yL(e.items[n],t)))}(n,r);case"Undefined":case"Void":return function(e){return $P(e,"default")?bL(e.default):void 0}(n);case"Union":return function(e,t){if($P(e,"default"))return bL(e.default);if(0===e.anyOf.length)throw new Error("ValueCreate.Union: Cannot create Union with zero variants");return yL(e.anyOf[0],t)}(n,r);case"Uint8Array":return function(e){return $P(e,"default")?bL(e.default):void 0!==e.minByteLength?new Uint8Array(e.minByteLength):new Uint8Array(0)}(n);default:if(!P$(n[YP]))throw new vL(n,"Unknown type");return function(e){if($P(e,"default"))return bL(e.default);throw new Error("User defined types must specify a default value")}(n)}}const OL=512;let wL=0;function xL(...e){return wL=0,2===e.length?yL(e[0],e[1]):yL(e[0],[])}class kL extends VP{constructor(e,t){super(t),this.schema=e}}function SL(e,t,r){if("Object"!==e[YP]||"object"!=typeof r||IP(r)){if("Union"===e[YP]){const n=e.anyOf.map((e=>GI(e,t))).map((e=>SL(e,t,r)));return Math.max(...n)}return mL(e,t,r)?1:0}{const n=e,a=Object.getOwnPropertyNames(r),o=Object.entries(n.properties),[i,s]=[1/o.length,o.length];return o.reduce(((e,[n,o])=>e+(("Literal"===o[YP]&&o.const===r[n]?s:0)+(mL(o,t,r[n])?i:0)+(a.includes(n)?i:0))),0)}}function _L(e,t){return RP(e)&&!RP(t)||!RP(e)&&RP(t)?e:RP(e)&&RP(t)?globalThis.Object.getOwnPropertyNames(e).reduce(((r,n)=>{const a=n in t?_L(e[n],t[n]):e[n];return{...r,[n]:a}}),{}):t}function EL(e,t,r){if(mL(e,t,r))return r;const n=xL(e,t),a=_L(n,r);return mL(e,t,a)?a:n}function TL(e,t,r){const n=UP(e.$id)?XI(e,t):t,a=e;switch(e[YP]){case"Array":return function(e,t,r){if(mL(e,t,r))return gL(r);const n=MP(r)?gL(r):xL(e,t),a=jP(e.minItems)&&n.length<e.minItems?[...n,...Array.from({length:e.minItems-n.length},(()=>null))]:n,o=(jP(e.maxItems)&&a.length>e.maxItems?a.slice(0,e.maxItems):a).map((r=>TL(e.items,t,r)));if(!0!==e.uniqueItems)return o;const i=[...new Set(o)];if(!mL(e,t,i))throw new kL(e,"Array cast produced invalid data due to uniqueItems constraint");return i}(a,n,r);case"Constructor":return function(e,t,r){if(mL(e,t,r))return xL(e,t);const n=new Set(e.returns.required||[]),a=function(){};for(const[o,i]of Object.entries(e.returns.properties))(n.has(o)||void 0!==r.prototype[o])&&(a.prototype[o]=TL(i,t,r.prototype[o]));return a}(a,n,r);case"Import":return function(e,t,r){const n=globalThis.Object.values(e.$defs);return TL(e.$defs[e.$ref],[...t,...n],r)}(a,n,r);case"Intersect":return EL(a,n,r);case"Never":return function(e){throw new kL(e,"Never types cannot be cast")}(a);case"Object":return function(e,t,r){if(mL(e,t,r))return r;if(null===r||"object"!=typeof r)return xL(e,t);const n=new Set(e.required||[]),a={};for(const[o,i]of Object.entries(e.properties))(n.has(o)||void 0!==r[o])&&(a[o]=TL(i,t,r[o]));if("object"==typeof e.additionalProperties){const n=Object.getOwnPropertyNames(e.properties);for(const o of Object.getOwnPropertyNames(r))n.includes(o)||(a[o]=TL(e.additionalProperties,t,r[o]))}return a}(a,n,r);case"Record":return function(e,t,r){if(mL(e,t,r))return gL(r);if(null===r||"object"!=typeof r||Array.isArray(r)||r instanceof Date)return xL(e,t);const n=Object.getOwnPropertyNames(e.patternProperties)[0],a=e.patternProperties[n],o={};for(const[e,n]of Object.entries(r))o[e]=TL(a,t,n);return o}(a,n,r);case"Ref":case"This":return function(e,t,r){return TL(GI(e,t),t,r)}(a,n,r);case"Tuple":return function(e,t,r){return mL(e,t,r)?gL(r):MP(r)?void 0===e.items?[]:e.items.map(((e,n)=>TL(e,t,r[n]))):xL(e,t)}(a,n,r);case"Union":return function(e,t,r){return mL(e,t,r)?gL(r):function(e,t,r){if("default"in e)return"function"==typeof r?e.default:gL(e.default);{const n=function(e,t,r){const n=e.anyOf.map((e=>GI(e,t)));let[a,o]=[n[0],0];for(const e of n){const n=SL(e,t,r);n>o&&(a=e,o=n)}return a}(e,t,r);return AL(n,t,r)}}(e,t,r)}(a,n,r);case"Date":case"Symbol":case"Uint8Array":return function(e,t,r){return mL(e,t,r)?gL(r):xL(e,t)}(e,t,r);default:return function(e,t,r){return mL(e,t,r)?r:xL(e,t)}(a,n,r)}}function AL(...e){return 3===e.length?TL(e[0],e[1],e[2]):TL(e[0],[],e[1])}function CL(e){return UP(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}function PL(e){return!0===e||jP(e)&&1===e||BP(e)&&e===BigInt("1")||UP(e)&&("true"===e.toLowerCase()||"1"===e)}function DL(e){return!1===e||jP(e)&&(0===e||Object.is(e,-0))||BP(e)&&e===BigInt("0")||UP(e)&&("false"===e.toLowerCase()||"0"===e||"-0"===e)}function $L(e){return!!PL(e)||!DL(e)&&e}function RL(e){return QP(e)&&void 0!==e.description?e.description.toString():function(e){return BP(e)||LP(e)||jP(e)}(e)?e.toString():e}function ML(e){return CL(e)?parseFloat(e):PL(e)?1:DL(e)?0:e}function NL(e,t,r){const n=XI(e,t),a=e;switch(e[YP]){case"Array":return function(e,t,r){return(MP(r)?r:[r]).map((r=>NL(e.items,t,r)))}(a,n,r);case"BigInt":return function(e,t,r){return function(e){return CL(e)?BigInt(e.split(".")[0]):jP(e)?BigInt(Math.trunc(e)):DL(e)?BigInt(0):PL(e)?BigInt(1):e}(r)}(0,0,r);case"Boolean":return function(e,t,r){return $L(r)}(0,0,r);case"Date":return function(e,t,r){return function(e){return PP(e)?e:jP(e)?new Date(e):PL(e)?new Date(1):DL(e)?new Date(0):CL(e)?new Date(parseInt(e)):function(e){return UP(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}(e)?new Date(`1970-01-01T${e}.000Z`):function(e){return UP(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}(e)?new Date(`1970-01-01T${e}`):function(e){return UP(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}(e)?new Date(`${e}.000Z`):function(e){return UP(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}(e)?new Date(e):function(e){return UP(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}(e)?new Date(`${e}T00:00:00.000Z`):e}(r)}(0,0,r);case"Import":return function(e,t,r){const n=globalThis.Object.values(e.$defs);return NL(e.$defs[e.$ref],[...t,...n],r)}(a,n,r);case"Integer":return function(e,t,r){return function(e){return CL(e)?parseInt(e):jP(e)?Math.trunc(e):PL(e)?1:DL(e)?0:e}(r)}(0,0,r);case"Intersect":return function(e,t,r){return e.allOf.reduce(((e,r)=>NL(r,t,e)),r)}(a,n,r);case"Literal":return function(e,t,r){return function(e,t){return UP(e.const)?function(e,t){const r=RL(e);return r===t?r:e}(t,e.const):jP(e.const)?function(e,t){const r=ML(e);return r===t?r:e}(t,e.const):LP(e.const)?function(e,t){const r=$L(e);return r===t?r:e}(t,e.const):t}(e,r)}(a,0,r);case"Null":return function(e,t,r){return function(e){return UP(e)&&"null"===e.toLowerCase()?null:e}(r)}(0,0,r);case"Number":return function(e,t,r){return ML(r)}(0,0,r);case"Object":return function(e,t,r){if(!RP(r))return r;for(const n of Object.getOwnPropertyNames(e.properties))$P(r,n)&&(r[n]=NL(e.properties[n],t,r[n]));return r}(a,n,r);case"Record":return function(e,t,r){if(!RP(r))return r;const n=Object.getOwnPropertyNames(e.patternProperties)[0],a=e.patternProperties[n];for(const[e,n]of Object.entries(r))r[e]=NL(a,t,n);return r}(a,n,r);case"Ref":case"This":return function(e,t,r){return NL(GI(e,t),t,r)}(a,n,r);case"String":return function(e,t,r){return RL(r)}(0,0,r);case"Symbol":return function(e,t,r){return UP(r)||jP(r)?Symbol(r):r}(0,0,r);case"Tuple":return function(e,t,r){return MP(r)&&!NP(e.items)?r.map(((r,n)=>n<e.items.length?NL(e.items[n],t,r):r)):r}(a,n,r);case"Undefined":return function(e,t,r){return function(e){return UP(e)&&"undefined"===e?void 0:e}(r)}(0,0,r);case"Union":return function(e,t,r){for(const n of e.anyOf){const e=NL(n,t,gL(r));if(mL(n,t,e))return e}return r}(a,n,r);default:return r}}const IL=(e,t)=>AL(e,function(...e){return 3===e.length?NL(e[0],e[1],e[2]):NL(e[0],[],e[1])}(e,t)),LL={"x-scalar-reference-config":HI},jL="workspace",BL="scalar-reference-selected-client",UL="scalar-reference-selected-client-v2",FL="scalar-client-auth",QL="scalar-client-selected-security-schemes",zL=()=>"undefined"==typeof window?{getItem:()=>null,setItem:()=>null,removeItem:()=>null}:localStorage,qL={parse:e=>{const t=xf(e);if("object"!=typeof t)throw Error("Invalid YAML object");return t},parseSafe(e,t){try{return qL.parse(e)}catch(e){return"function"==typeof t?t(e):t}},stringify:kf},HL={parse:e=>{const t=JSON.parse(e);if("object"!=typeof t)throw Error("Invalid JSON object");return t},parseSafe(e,t){try{return HL.parse(e)}catch(e){return"function"==typeof t?t(e):t}},stringify:e=>JSON.stringify(e)},VL=e=>"string"==typeof e&&!!HL.parseSafe(e,!1);function ZL(e){const t=e.trim();if("{"!==t[0]&&"["!==t[0])return e;try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}const WL=["localhost","127.0.0.1","[::1]","0.0.0.0"];function XL(e){try{const{hostname:t}=new URL(e);return WL.includes(t)}catch{return!0}}const GL={PROTOCOL:/^(?:https?|ftp|file|mailto|tel|data|wss?)*:\/\//,MULTIPLE_SLASHES:new RegExp("(?<!:)\\/{2,}","g"),VARIABLES:/{{((?:[^{}]|{[^{}]*})*)}}/g,PATH:/(?:{)([^{}]+)}(?!})/g},YL=e=>!GL.PROTOCOL.test(e)&&!/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+(\/|$)/.test(e);function KL(e,t){try{if(!JL(e,t))return t??"";const r=new URL(t),n=YL(e)?`http://localhost${e}`:e;return r.href=n,r.searchParams.append("scalar_url",t),YL(e)?r.toString().replace(/^http:\/\/localhost/,""):r.toString()}catch{return t??""}}function JL(e,t){try{return!(!e||!t||YL(t)||!YL(e)&&!XL(e)&&XL(t))}catch{return!1}}async function ej(e,t,r=!0){"https://api.scalar.com/request-proxy"===t&&(t="https://proxy.scalar.com");const n=await fetch(KL(t,e));if(200!==n.status)throw console.error(`[fetchDocument] Failed to fetch the OpenAPI document from ${e} (Status: ${n.status})`),t||console.warn(`[fetchDocument] Tried to fetch the OpenAPI document from ${e} without a proxy. Are the CORS headers configured to allow cross-domain requests? https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS`),new Error(`Failed to fetch the OpenAPI document from ${e} (Status: ${n.status})`);return r?ZL(await n.text()):await n.text()}function tj(e){if(!e)return e;const t={...e};return Object.keys(t).forEach((e=>{const r=function(e){if("string"==typeof e)return e.replace(/;.*$/,"").replace(/\/(?!.*vnd\.|fhir\+).*\+/,"/").trim()}(e);void 0!==r&&(t[r]=t[e],e!==r&&delete t[e])})),t}const rj=e=>{if("string"==typeof e)return VL(e)?JSON.stringify(JSON.parse(e),null,2):e;if("object"==typeof e)try{return JSON.stringify(e,null,2)}catch{return function(e){const t=new Set;return JSON.stringify(e,((e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r}),2)}(e)}return(null==e?void 0:e.toString())??""};function nj(e,t,r=!0,n){const a=t.safeParse(e);if(a.success||(console.group("Schema Error"),console.warn(JSON.stringify(a.error.format(),null,2)),console.log("Received: ",e),console.groupEnd()),r&&!a.success)throw new Error("Zod validation failure");return a.data}const aj=e=>!0===(null==e?void 0:e["x-internal"])||!0===(null==e?void 0:e["x-scalar-ignore"]),oj=Tt.object({lang:Tt.string().optional().catch(void 0),label:Tt.string().optional().catch(void 0),source:Tt.string()}),ij=Tt.object({"x-codeSamples":oj.array().optional().catch(void 0),"x-code-samples":oj.array().optional().catch(void 0),"x-custom-examples":oj.array().optional().catch(void 0)}),sj=Tt.object({"x-scalar-sdk-installation":Tt.object({lang:Tt.string(),source:Tt.string().optional().catch(void 0),description:Tt.string().optional().catch(void 0)}).array().optional().catch(void 0)}),lj={Deprecated:"deprecated",Experimental:"experimental",Stable:"stable"};Tt.object({"x-scalar-stability":Tt.enum(Object.values(lj)).optional().catch(void 0)});const cj=Tt.string(),uj=Tt.object({"x-post-response":cj.optional()}),dj=e=>e.deprecated||e["x-scalar-stability"]===lj.Deprecated,pj=e=>e.deprecated?lj.Deprecated:e["x-scalar-stability"],hj=e=>{switch(pj(e)){case lj.Deprecated:return"text-red";case lj.Experimental:return"text-orange";case lj.Stable:return"text-green";default:return""}},fj=e=>{let t=0,r=0,n=0;if(!(null==e?void 0:e.length))return r;for(n=0;n<e.length;n++)t=e.charCodeAt(n),r=(r<<5)-r+t,r|=0;return r},mj=e=>null!=e,gj=(e,t)=>t&&e!==t?e?`${e.trim()}/${t.trim()}`.replace(GL.MULTIPLE_SLASHES,"/"):t.trim():e.trim(),vj=(e,t,r=new URLSearchParams,n=!1)=>{if(e&&(!YL(e)||"undefined"!=typeof window)){const a=n?e:YL(e)?gj(window.location.origin,e):function(e){return GL.PROTOCOL.test(e)?e:`http://${e.replace(/^\//,"")}`}(e),[o="",i]=a.split("?"),s=new URLSearchParams(i||""),[l="",c]=t.split("?"),u=new URLSearchParams(c||""),d=e===t?o:gj(o,l),p=((...e)=>{const t={};e.forEach((e=>{const r=Array.from(e.keys());new Set(r).forEach((r=>{const n=e.getAll(r),a=n.length>1?n:n[0]??"";t[r]=a}))}));const r=new URLSearchParams;return Object.entries(t).forEach((([e,t])=>{Array.isArray(t)?t.forEach((t=>r.append(e,t))):r.append(e,t)})),r})(s,u,r).toString();return p?`${d}?${p}`:d}return t?gj(e,t):""};function bj(e,t){const r=(e,t,n)=>{let a="";if(Array.isArray(e))for(let o=0,i=e.length;o<i;o++)a+=n+r(e[o],t,n+"\t")+"\n";else if("object"==typeof e){let o=!1;a+=n+"<"+t;for(const t in e)"@"===t.charAt(0)?a+=" "+t.substr(1)+'="'+e[t].toString()+'"':o=!0;if(a+=o?">":"/>",o){for(const t in e)"#text"===t?a+=e[t]:"#cdata"===t?a+="<![CDATA["+e[t]+"]]>":"@"!==t.charAt(0)&&(a+=r(e[t],t,n+"\t"));a+=("\n"===a.charAt(a.length-1)?n:"")+"</"+t+">"}}else a+=n+"<"+t+">"+e.toString()+"</"+t+">";return a};let n="";for(const t in e)Object.hasOwn(e,t)&&(n+=r(e[t],t,""));return t?n.replace(/\t/g,t):n.replace(/\t|\n/g,"")}const yj=(e="")=>{var t;return((null==(t=e[0])?void 0:t.toUpperCase())??"")+e.slice(1)},Oj=["post","put","patch","delete"],wj=e=>Oj.includes(e.toLowerCase()),xj={get:{short:"GET",colorClass:"text-blue",colorVar:"var(--scalar-color-blue)",backgroundColor:"bg-blue/10"},post:{short:"POST",colorClass:"text-green",colorVar:"var(--scalar-color-green)",backgroundColor:"bg-green/10"},put:{short:"PUT",colorClass:"text-orange",colorVar:"var(--scalar-color-orange)",backgroundColor:"bg-orange/10"},patch:{short:"PATCH",colorClass:"text-yellow",colorVar:"var(--scalar-color-yellow)",backgroundColor:"bg-yellow/10"},delete:{short:"DEL",colorClass:"text-red",colorVar:"var(--scalar-color-red)",backgroundColor:"bg-red/10"},options:{short:"OPTS",colorClass:"text-purple",colorVar:"var(--scalar-color-purple)",backgroundColor:"bg-purple/10"},head:{short:"HEAD",colorClass:"text-c-2",colorVar:"var(--scalar-color-2)",backgroundColor:"bg-c-2/10"},connect:{short:"CONN",colorClass:"text-c-2",colorVar:"var(--scalar-color-2)",backgroundColor:"bg-c-2/10"},trace:{short:"TRACE",colorClass:"text-c-2",colorVar:"var(--scalar-color-2)",backgroundColor:"bg-c-2/10"}},kj=e=>{const t=e.trim().toLowerCase();return xj[t]??{short:t,color:"text-c-2",backgroundColor:"bg-c-2"}},Sj={100:{name:"Continue",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/100",color:"var(--scalar-color-blue)"},101:{name:"Switching Protocols",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/101",color:"var(--scalar-color-blue)"},102:{name:"Processing",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/102",color:"var(--scalar-color-blue)"},103:{name:"Early Hints",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/103",color:"var(--scalar-color-blue)"},200:{name:"OK",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/200",color:"var(--scalar-color-green)"},201:{name:"Created",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/201",color:"var(--scalar-color-green)"},202:{name:"Accepted",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/202",color:"var(--scalar-color-green)"},203:{name:"Non-Authoritative Information",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/203",color:"var(--scalar-color-green)"},204:{name:"No Content",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/204",color:"var(--scalar-color-green)"},205:{name:"Reset Content",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/205",color:"var(--scalar-color-green)"},206:{name:"Partial Content",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/206",color:"var(--scalar-color-green)"},207:{name:"Multi-Status",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/207",color:"var(--scalar-color-green)"},208:{name:"Already Reported",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/208",color:"var(--scalar-color-green)"},226:{name:"IM Used",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/226",color:"var(--scalar-color-green)"},300:{name:"Multiple Choices",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/300",color:"var(--scalar-color-yellow)"},301:{name:"Moved Permanently",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/301",color:"var(--scalar-color-yellow)"},302:{name:"Found",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302",color:"var(--scalar-color-yellow)"},303:{name:"See Other",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/303",color:"var(--scalar-color-yellow)"},304:{name:"Not Modified",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/304",color:"var(--scalar-color-yellow)"},305:{name:"Use Proxy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/305",color:"var(--scalar-color-yellow)"},306:{name:"(Unused)",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/306",color:"var(--scalar-color-yellow)"},307:{name:"Temporary Redirect",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/307",color:"var(--scalar-color-yellow)"},308:{name:"Permanent Redirect",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/308",color:"var(--scalar-color-yellow)"},400:{name:"Bad Request",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400",color:"var(--scalar-color-red)"},401:{name:"Unauthorized",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401",color:"var(--scalar-color-red)"},402:{name:"Payment Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/402",color:"var(--scalar-color-red)"},403:{name:"Forbidden",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403",color:"var(--scalar-color-red)"},404:{name:"Not Found",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404",color:"var(--scalar-color-red)"},405:{name:"Method Not Allowed",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405",color:"var(--scalar-color-red)"},406:{name:"Not Acceptable",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/406",color:"var(--scalar-color-red)"},407:{name:"Proxy Authentication Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/407",color:"var(--scalar-color-red)"},408:{name:"Request Timeout",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408",color:"var(--scalar-color-red)"},409:{name:"Conflict",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409",color:"var(--scalar-color-red)"},410:{name:"Gone",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/410",color:"var(--scalar-color-red)"},411:{name:"Length Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/411",color:"var(--scalar-color-red)"},412:{name:"Precondition Failed",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/412",color:"var(--scalar-color-red)"},413:{name:"Content Too Large",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/413",color:"var(--scalar-color-red)"},414:{name:"URI Too Long",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/414",color:"var(--scalar-color-red)"},415:{name:"Unsupported Media Type",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/415",color:"var(--scalar-color-red)"},416:{name:"Range Not Satisfiable",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/416",color:"var(--scalar-color-red)"},417:{name:"Expectation Failed",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/417",color:"var(--scalar-color-red)"},418:{name:"I'm a teapot",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/418",color:"var(--scalar-color-red)"},421:{name:"Misdirected Request",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/421",color:"var(--scalar-color-red)"},422:{name:"Unprocessable Content",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422",color:"var(--scalar-color-red)"},423:{name:"Locked",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/423",color:"var(--scalar-color-red)"},424:{name:"Failed Dependency",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/424",color:"var(--scalar-color-red)"},425:{name:"Too Early",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/425",color:"var(--scalar-color-red)"},426:{name:"Upgrade Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/426",color:"var(--scalar-color-red)"},428:{name:"Precondition Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/428",color:"var(--scalar-color-red)"},429:{name:"Too Many Requests",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429",color:"var(--scalar-color-red)"},431:{name:"Request Header Fields Too Large",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/431",color:"var(--scalar-color-red)"},451:{name:"Unavailable For Legal Reasons",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/451",color:"var(--scalar-color-red)"},500:{name:"Internal Server Error",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500",color:"var(--scalar-color-red)"},501:{name:"Not Implemented",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/501",color:"var(--scalar-color-red)"},502:{name:"Bad Gateway",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502",color:"var(--scalar-color-red)"},503:{name:"Service Unavailable",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503",color:"var(--scalar-color-red)"},504:{name:"Gateway Timeout",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504",color:"var(--scalar-color-red)"},505:{name:"HTTP Version Not Supported",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/505",color:"var(--scalar-color-red)"},506:{name:"Variant Also Negotiates",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/506",color:"var(--scalar-color-red)"},507:{name:"Insufficient Storage",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/507",color:"var(--scalar-color-red)"},508:{name:"Loop Detected",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/508",color:"var(--scalar-color-red)"},510:{name:"Not Extended",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/510",color:"var(--scalar-color-red)"},511:{name:"Network Authentication Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/511",color:"var(--scalar-color-red)"}},_j=(e,t,r=" #")=>{if(!t(e))return e;const n=e.split(r),a=n.length>1?`${n.slice(0,-1).join()}${r}${Number(n.at(-1))+1}`:`${n.join()}${r}2`;return _j(a,t,r)},Ej=e=>Object.keys(e),Tj=So("dark"),Aj=Tt.enum(["dark","light","system"]).optional().catch(void 0);function Cj(e={}){var t;const{initialColorMode:r="system",overrideColorMode:n}=e;function a(e){var t;Tj.value=e,"undefined"!=typeof window&&(null==(t=null==window?void 0:window.localStorage)||t.setItem("colorMode",Tj.value))}function o(){var e;return"undefined"==typeof window?"light":"function"!=typeof(null==window?void 0:window.matchMedia)||(null==(e=null==window?void 0:window.matchMedia("(prefers-color-scheme: dark)"))?void 0:e.matches)?"dark":"light"}const i=hc({get:()=>"system"===Tj.value?o():Tj.value,set:a}),s=hc({get:()=>"dark"===i.value,set:e=>a(e?"dark":"light")});function l(e){"undefined"!=typeof document&&"undefined"!=typeof window&&("dark"===(n??("system"===e?o():e))?(document.body.classList.add("dark-mode"),document.body.classList.remove("light-mode")):(document.body.classList.add("light-mode"),document.body.classList.remove("dark-mode")))}const c=Aj.parse("undefined"!=typeof window?null==(t=null==window?void 0:window.localStorage)?void 0:t.getItem("colorMode"):"system");return Tj.value=c??r,ul(Tj,l,{immediate:!0}),Yi((()=>{if("undefined"!=typeof window&&"function"==typeof(null==window?void 0:window.matchMedia)){const e=window.matchMedia("(prefers-color-scheme: dark)"),t=()=>"system"===Tj.value&&l("system");e.addEventListener("change",t),ts((()=>{e.removeEventListener("change",t)}))}})),{colorMode:hc({get:()=>Tj.value,set:a}),darkLightMode:i,isDarkMode:s,toggleColorMode:function(){var e;Tj.value="dark"===i.value?"light":"dark","undefined"!=typeof window&&(null==(e=null==window?void 0:window.localStorage)||e.setItem("colorMode",Tj.value))},setColorMode:a,getSystemModePreference:o}}function Pj(e){return!!ra()&&(na(e),!0)}function Dj(e){return"function"==typeof e?e():Ao(e)}const $j="undefined"!=typeof window&&"undefined"!=typeof document;"undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope);const Rj=e=>null!=e,Mj=Object.prototype.toString,Nj=()=>{},Ij=function(){var e,t;return $j&&(null==(e=null==window?void 0:window.navigator)?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||(null==(t=null==window?void 0:window.navigator)?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(null==window?void 0:window.navigator.userAgent))}();function Lj(e,t){return function(...r){return new Promise(((n,a)=>{Promise.resolve(e((()=>t.apply(this,r)),{fn:t,thisArg:this,args:r})).then(n).catch(a)}))}}const jj=e=>e();function Bj(e,t={}){let r,n,a=Nj;const o=e=>{clearTimeout(e),a(),a=Nj};return i=>{const s=Dj(e),l=Dj(t.maxWait);return r&&o(r),s<=0||void 0!==l&&l<=0?(n&&(o(n),n=null),Promise.resolve(i())):new Promise(((e,c)=>{a=t.rejectOnCancel?c:e,l&&!n&&(n=setTimeout((()=>{r&&o(r),n=null,e(i())}),l)),r=setTimeout((()=>{n&&o(n),n=null,e(i())}),s)}))}}function Uj(e,t=200,r={}){return Lj(Bj(t,r),e)}function Fj(e,t,r={}){const{debounce:n=0,maxWait:a,...o}=r;return function(e,t,r={}){const{eventFilter:n=jj,...a}=r;return ul(e,Lj(n,t),a)}(e,t,{...o,eventFilter:Bj(n,{maxWait:a})})}function Qj(e){var t;const r=Dj(e);return null!=(t=null==r?void 0:r.$el)?t:r}const zj=$j?window:void 0,qj=$j?window.document:void 0;function Hj(...e){let t,r,n,a;if("string"==typeof e[0]||Array.isArray(e[0])?([r,n,a]=e,t=zj):[t,r,n,a]=e,!t)return Nj;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const o=[],i=()=>{o.forEach((e=>e())),o.length=0},s=ul((()=>[Qj(t),Dj(a)]),(([e,t])=>{if(i(),!e)return;const a=(e=>"[object Object]"===Mj.call(e))(t)?{...t}:t;o.push(...r.flatMap((t=>n.map((r=>((e,t,r,n)=>(e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)))(e,t,r,a))))))}),{immediate:!0,flush:"post"}),l=()=>{s(),i()};return Pj(l),l}let Vj=!1;function Zj(e){const t=function(){const e=So(!1),t=tc();return t&&Yi((()=>{e.value=!0}),t),e}();return hc((()=>(t.value,Boolean(e()))))}function Wj(e,t={}){const{window:r=zj}=t,n=Zj((()=>r&&"matchMedia"in r&&"function"==typeof r.matchMedia));let a;const o=So(!1),i=e=>{o.value=e.matches},s=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",i):a.removeListener(i))},l=cl((()=>{n.value&&(s(),a=r.matchMedia(Dj(e)),"addEventListener"in a?a.addEventListener("change",i):a.addListener(i),o.value=a.matches)}));return Pj((()=>{l(),s(),a=void 0})),o}const Xj=new Map;function Gj(e){const t=ra();function r(r){var a;const o=Xj.get(e)||new Set;o.add(r),Xj.set(e,o);const i=()=>n(r);return null==(a=null==t?void 0:t.cleanups)||a.push(i),i}function n(t){const r=Xj.get(e);r&&(r.delete(t),r.size||a())}function a(){Xj.delete(e)}return{on:r,once:function(e){return r((function t(...r){n(t),e(...r)}))},off:n,emit:function(t,r){var n;null==(n=Xj.get(e))||n.forEach((e=>e(t,r)))},reset:a}}function Yj(e,t,r){let n=So(null==r?void 0:r.value),a=hc((()=>void 0!==e.value));return[hc((()=>a.value?e.value:n.value)),function(e){return a.value||(n.value=e),null==t?void 0:t(e)}]}function Kj(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function Jj(){let e=[],t={addEventListener:(e,r,n,a)=>(e.addEventListener(r,n,a),t.add((()=>e.removeEventListener(r,n,a)))),requestAnimationFrame(...e){let r=requestAnimationFrame(...e);t.add((()=>cancelAnimationFrame(r)))},nextFrame(...e){t.requestAnimationFrame((()=>{t.requestAnimationFrame(...e)}))},setTimeout(...e){let r=setTimeout(...e);t.add((()=>clearTimeout(r)))},microTask(...e){let r={current:!0};return Kj((()=>{r.current&&e[0]()})),t.add((()=>{r.current=!1}))},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add((()=>{Object.assign(e.style,{[t]:n})}))},group(e){let t=Jj();return e(t),this.add((()=>t.dispose()))},add:t=>(e.push(t),()=>{let r=e.indexOf(t);if(r>=0)for(let t of e.splice(r,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}var eB;let tB=Symbol("headlessui.useid"),rB=0;const nB=null!=(eB=ji)?eB:function(){return Bs(tB,(()=>""+ ++rB))()};function aB(e){var t;if(null==e||null==e.value)return null;let r=null!=(t=e.value.$el)?t:e.value;return r instanceof Node?r:null}function oB(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,oB),n}var iB=Object.defineProperty,sB=(e,t,r)=>(((e,t,r)=>{t in e?iB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);let lB=new class{constructor(){sB(this,"current",this.detect()),sB(this,"currentId",0)}set(e){this.current!==e&&(this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}};function cB(e){if(lB.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(null!=e&&e.hasOwnProperty("value")){let t=aB(e);if(t)return t.ownerDocument}return document}let uB=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var dB,pB,hB,fB=((hB=fB||{})[hB.First=1]="First",hB[hB.Previous=2]="Previous",hB[hB.Next=4]="Next",hB[hB.Last=8]="Last",hB[hB.WrapAround=16]="WrapAround",hB[hB.NoScroll=32]="NoScroll",hB),mB=((pB=mB||{})[pB.Error=0]="Error",pB[pB.Overflow=1]="Overflow",pB[pB.Success=2]="Success",pB[pB.Underflow=3]="Underflow",pB),gB=((dB=gB||{})[dB.Previous=-1]="Previous",dB[dB.Next=1]="Next",dB);function vB(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(uB)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var bB=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(bB||{});function yB(e,t=0){var r;return e!==(null==(r=cB(e))?void 0:r.body)&&oB(t,{0:()=>e.matches(uB),1(){let t=e;for(;null!==t;){if(t.matches(uB))return!0;t=t.parentElement}return!1}})}function OB(e){let t=cB(e);Ko((()=>{t&&!yB(t.activeElement,0)&&xB(e)}))}var wB=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(wB||{});function xB(e){null==e||e.focus({preventScroll:!0})}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let kB=["textarea","input"].join(",");function SB(e,t=e=>e){return e.slice().sort(((e,r)=>{let n=t(e),a=t(r);if(null===n||null===a)return 0;let o=n.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function _B(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:a=[]}={}){var o;let i=null!=(o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:null==e?void 0:e.ownerDocument)?o:document,s=Array.isArray(e)?r?SB(e):e:vB(e);a.length>0&&s.length>1&&(s=s.filter((e=>!a.includes(e)))),n=null!=n?n:i.activeElement;let l,c=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,s.indexOf(n))-1;if(4&t)return Math.max(0,s.indexOf(n))+1;if(8&t)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=32&t?{preventScroll:!0}:{},p=0,h=s.length;do{if(p>=h||p+h<=0)return 0;let e=u+p;if(16&t)e=(e+h)%h;else{if(e<0)return 3;if(e>=h)return 1}l=s[e],null==l||l.focus(d),p+=c}while(l!==i.activeElement);return 6&t&&function(e){var t,r;return null!=(r=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,kB))&&r}(l)&&l.select(),2}function EB(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function TB(e,t,r){lB.isServer||cl((n=>{document.addEventListener(e,t,r),n((()=>document.removeEventListener(e,t,r)))}))}function AB(e,t,r){lB.isServer||cl((n=>{window.addEventListener(e,t,r),n((()=>window.removeEventListener(e,t,r)))}))}function CB(e,t,r=hc((()=>!0))){function n(n,a){if(!r.value||n.defaultPrevented)return;let o=a(n);if(null===o||!o.getRootNode().contains(o))return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of i){if(null===e)continue;let t=e instanceof HTMLElement?e:aB(e);if(null!=t&&t.contains(o)||n.composed&&n.composedPath().includes(t))return}return!yB(o,bB.Loose)&&-1!==o.tabIndex&&n.preventDefault(),t(n,o)}let a=So(null);TB("pointerdown",(e=>{var t,n;r.value&&(a.value=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),TB("mousedown",(e=>{var t,n;r.value&&(a.value=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),TB("click",(e=>{EB()||/Android/gi.test(window.navigator.userAgent)||a.value&&(n(e,(()=>a.value)),a.value=null)}),!0),TB("touchend",(e=>n(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),AB("blur",(e=>n(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}function PB(e,t){if(e)return e;let r=null!=t?t:"button";return"string"==typeof r&&"button"===r.toLowerCase()?"button":void 0}function DB(e,t){let r=So(PB(e.value.type,e.value.as));return Yi((()=>{r.value=PB(e.value.type,e.value.as)})),cl((()=>{var e;r.value||aB(t)&&aB(t)instanceof HTMLButtonElement&&(null==(e=aB(t))||!e.hasAttribute("type"))&&(r.value="button")})),r}function $B(e){return[e.screenX,e.screenY]}function RB(){let e=So([-1,-1]);return{wasMoved(t){let r=$B(t);return(e.value[0]!==r[0]||e.value[1]!==r[1])&&(e.value=r,!0)},update(t){e.value=$B(t)}}}function MB({container:e,accept:t,walk:r,enabled:n}){cl((()=>{let a=e.value;if(!a||void 0!==n&&!n.value)return;let o=cB(e);if(!o)return;let i=Object.assign((e=>t(e)),{acceptNode:t}),s=o.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,i,!1);for(;s.nextNode();)r(s.currentNode)}))}var NB,IB=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(IB||{}),LB=((NB=LB||{})[NB.Unmount=0]="Unmount",NB[NB.Hidden=1]="Hidden",NB);function jB({visible:e=!0,features:t=0,ourProps:r,theirProps:n,...a}){var o;let i=FB(n,r),s=Object.assign(a,{props:i});return e||2&t&&i.static?BB(s):1&t?oB(null==(o=i.unmount)||o?0:1,{0:()=>null,1:()=>BB({...a,props:{...i,hidden:!0,style:{display:"none"}}})}):BB(s)}function BB({props:e,attrs:t,slots:r,slot:n,name:a}){var o,i;let{as:s,...l}=zB(e,["unmount","static"]),c=null==(o=r.default)?void 0:o.call(r,n),u={};if(n){let e=!1,t=[];for(let[r,a]of Object.entries(n))"boolean"==typeof a&&(e=!0),!0===a&&t.push(r);e&&(u["data-headlessui-state"]=t.join(" "))}if("template"===s){if(c=UB(null!=c?c:[]),Object.keys(l).length>0||Object.keys(t).length>0){let[e,...r]=null!=c?c:[];if(!function(e){return null!=e&&("string"==typeof e.type||"object"==typeof e.type||"function"==typeof e.type)}(e)||r.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${a} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(l).concat(Object.keys(t)).map((e=>e.trim())).filter(((e,t,r)=>r.indexOf(e)===t)).sort(((e,t)=>e.localeCompare(t))).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let n=FB(null!=(i=e.props)?i:{},l,u),o=zl(e,n,!0);for(let e in n)e.startsWith("on")&&(o.props||(o.props={}),o.props[e]=n[e]);return o}return Array.isArray(c)&&1===c.length?c[0]:c}return fc(s,Object.assign({},l,u),{default:()=>c})}function UB(e){return e.flatMap((e=>e.type===Sl?UB(e.children):[e]))}function FB(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map((e=>[e,void 0]))));for(let e in r)Object.assign(t,{[e](t,...n){let a=r[e];for(let e of a){if(t instanceof Event&&t.defaultPrevented)return;e(t,...n)}}});return t}function QB(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function zB(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}var qB=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(qB||{});let HB=Li({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup:(e,{slots:t,attrs:r})=>()=>{var n;let{features:a,...o}=e;return jB({ourProps:{"aria-hidden":!(2&~a)||(null!=(n=o["aria-hidden"])?n:void 0),hidden:!(4&~a)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...!(4&~a)&&!!(2&~a)&&{display:"none"}}},theirProps:o,slot:{},attrs:r,slots:t,name:"Hidden"})}}),VB=Symbol("Context");var ZB=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(ZB||{});function WB(){return Bs(VB,null)}function XB(e){js(VB,e)}var GB,YB=((GB=YB||{}).Space=" ",GB.Enter="Enter",GB.Escape="Escape",GB.Backspace="Backspace",GB.Delete="Delete",GB.ArrowLeft="ArrowLeft",GB.ArrowUp="ArrowUp",GB.ArrowRight="ArrowRight",GB.ArrowDown="ArrowDown",GB.Home="Home",GB.End="End",GB.PageUp="PageUp",GB.PageDown="PageDown",GB.Tab="Tab",GB);let KB=[];!function(){function e(){"loading"!==document.readyState&&((()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&KB[0]!==e.target&&(KB.unshift(e.target),KB=KB.filter((e=>null!=e&&e.isConnected)),KB.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})})(),document.removeEventListener("DOMContentLoaded",e))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",e),e())}();var JB,eU=((JB=eU||{})[JB.First=0]="First",JB[JB.Previous=1]="Previous",JB[JB.Next=2]="Next",JB[JB.Last=3]="Last",JB[JB.Specific=4]="Specific",JB[JB.Nothing=5]="Nothing",JB);function tU(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),a=null!=n?n:-1;switch(e.focus){case 0:for(let e=0;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 1:-1===a&&(a=r.length);for(let e=a-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 2:for(let e=a+1;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 3:for(let e=r.length-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 4:for(let n=0;n<r.length;++n)if(t.resolveId(r[n],n,r)===e.id)return n;return n;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}function rU(e={},t=null,r=[]){for(let[n,a]of Object.entries(e))aU(r,nU(t,n),a);return r}function nU(e,t){return e?e+"["+t+"]":t}function aU(e,t,r){if(Array.isArray(r))for(let[n,a]of r.entries())aU(e,nU(t,n.toString()),a);else r instanceof Date?e.push([t,r.toISOString()]):"boolean"==typeof r?e.push([t,r?"1":"0"]):"string"==typeof r?e.push([t,r]):"number"==typeof r?e.push([t,`${r}`]):null==r?e.push([t,""]):rU(r,t,e)}function oU(e,t,r,n){lB.isServer||cl((a=>{(e=null!=e?e:window).addEventListener(t,r,n),a((()=>e.removeEventListener(t,r,n)))}))}var iU=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(iU||{});function sU(){let e=So(0);return AB("keydown",(t=>{"Tab"===t.key&&(e.value=t.shiftKey?1:0)})),e}function lU(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let r of e.value){let e=aB(r);e instanceof HTMLElement&&t.add(e)}return t}var cU=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(cU||{});let uU=Object.assign(Li({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:So(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:r,expose:n}){let a=So(null);n({el:a,$el:a});let o=hc((()=>cB(a))),i=So(!1);Yi((()=>i.value=!0)),ts((()=>i.value=!1)),function({ownerDocument:e},t){let r=function(e){let t=So(KB.slice());return ul([e],(([e],[r])=>{!0===r&&!1===e?Kj((()=>{t.value.splice(0)})):!1===r&&!0===e&&(t.value=KB.slice())}),{flush:"post"}),()=>{var e;return null!=(e=t.value.find((e=>null!=e&&e.isConnected)))?e:null}}(t);Yi((()=>{cl((()=>{var n,a;t.value||(null==(n=e.value)?void 0:n.activeElement)===(null==(a=e.value)?void 0:a.body)&&xB(r())}),{flush:"post"})})),ts((()=>{t.value&&xB(r())}))}({ownerDocument:o},hc((()=>i.value&&Boolean(16&e.features))));let s=function({ownerDocument:e,container:t,initialFocus:r},n){let a=So(null),o=So(!1);return Yi((()=>o.value=!0)),ts((()=>o.value=!1)),Yi((()=>{ul([t,r,n],((i,s)=>{if(i.every(((e,t)=>(null==s?void 0:s[t])===e))||!n.value)return;let l=aB(t);l&&Kj((()=>{var t,n;if(!o.value)return;let i=aB(r),s=null==(t=e.value)?void 0:t.activeElement;if(i){if(i===s)return void(a.value=s)}else if(l.contains(s))return void(a.value=s);i?xB(i):_B(l,fB.First|fB.NoScroll)===mB.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),a.value=null==(n=e.value)?void 0:n.activeElement}))}),{immediate:!0,flush:"post"})})),a}({ownerDocument:o,container:a,initialFocus:hc((()=>e.initialFocus))},hc((()=>i.value&&Boolean(2&e.features))));!function({ownerDocument:e,container:t,containers:r,previousActiveElement:n},a){var o;oU(null==(o=e.value)?void 0:o.defaultView,"focus",(e=>{if(!a.value)return;let o=lU(r);aB(t)instanceof HTMLElement&&o.add(aB(t));let i=n.value;if(!i)return;let s=e.target;s&&s instanceof HTMLElement?dU(o,s)?(n.value=s,xB(s)):(e.preventDefault(),e.stopPropagation(),xB(i)):xB(n.value)}),!0)}({ownerDocument:o,container:a,containers:e.containers,previousActiveElement:s},hc((()=>i.value&&Boolean(8&e.features))));let l=sU();function c(e){let t=aB(a);t&&oB(l.value,{[iU.Forwards]:()=>{_B(t,fB.First,{skipElements:[e.relatedTarget]})},[iU.Backwards]:()=>{_B(t,fB.Last,{skipElements:[e.relatedTarget]})}})}let u=So(!1);function d(e){"Tab"===e.key&&(u.value=!0,requestAnimationFrame((()=>{u.value=!1})))}function p(t){if(!i.value)return;let r=lU(e.containers);aB(a)instanceof HTMLElement&&r.add(aB(a));let n=t.relatedTarget;n instanceof HTMLElement&&"true"!==n.dataset.headlessuiFocusGuard&&(dU(r,n)||(u.value?_B(aB(a),oB(l.value,{[iU.Forwards]:()=>fB.Next,[iU.Backwards]:()=>fB.Previous})|fB.WrapAround,{relativeTo:t.target}):t.target instanceof HTMLElement&&xB(t.target)))}return()=>{let n={ref:a,onKeydown:d,onFocusout:p},{features:o,initialFocus:i,containers:s,...l}=e;return fc(Sl,[Boolean(4&o)&&fc(HB,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:qB.Focusable}),jB({ourProps:n,theirProps:{...t,...l},slot:{},attrs:t,slots:r,name:"FocusTrap"}),Boolean(4&o)&&fc(HB,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:qB.Focusable})])}}}),{features:cU});function dU(e,t){for(let r of e)if(r.contains(t))return!0;return!1}function pU(){let e;return{before({doc:t}){var r;let n=t.documentElement;e=(null!=(r=t.defaultView)?r:window).innerWidth-n.clientWidth},after({doc:t,d:r}){let n=t.documentElement,a=n.clientWidth-n.offsetWidth,o=e-a;r.style(n,"paddingRight",`${o}px`)}}}function hU(e){let t={};for(let r of e)Object.assign(t,r(t));return t}let fU=function(e,t){let r=new Map,n=new Set;return{getSnapshot:()=>r,subscribe:e=>(n.add(e),()=>n.delete(e)),dispatch(e,...a){let o=t[e].call(r,...a);o&&(r=o,n.forEach((e=>e())))}}}(0,{PUSH(e,t){var r;let n=null!=(r=this.get(e))?r:{doc:e,count:0,d:Jj(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:r}){let n={doc:e,d:t,meta:hU(r)},a=[EB()?{before({doc:e,d:t,meta:r}){function n(e){return r.containers.flatMap((e=>e())).some((t=>t.contains(e)))}t.microTask((()=>{var r;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let r=Jj();r.style(e.documentElement,"scrollBehavior","auto"),t.add((()=>t.microTask((()=>r.dispose()))))}let a=null!=(r=window.scrollY)?r:window.pageYOffset,o=null;t.addEventListener(e,"click",(t=>{if(t.target instanceof HTMLElement)try{let r=t.target.closest("a");if(!r)return;let{hash:a}=new URL(r.href),i=e.querySelector(a);i&&!n(i)&&(o=i)}catch{}}),!0),t.addEventListener(e,"touchstart",(e=>{if(e.target instanceof HTMLElement)if(n(e.target)){let r=e.target;for(;r.parentElement&&n(r.parentElement);)r=r.parentElement;t.style(r,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")})),t.addEventListener(e,"touchmove",(e=>{if(e.target instanceof HTMLElement){if("INPUT"===e.target.tagName)return;if(n(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}}),{passive:!1}),t.add((()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;a!==t&&window.scrollTo(0,a),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)}))}))}}:{},pU(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];a.forEach((({before:e})=>null==e?void 0:e(n))),a.forEach((({after:e})=>null==e?void 0:e(n)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});fU.subscribe((()=>{let e=fU.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let e="hidden"===t.get(r.doc),n=0!==r.count;(n&&!e||!n&&e)&&fU.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),0===r.count&&fU.dispatch("TEARDOWN",r)}}));let mU=new Map,gU=new Map;function vU(e,t=So(!0)){cl((r=>{var n;if(!t.value)return;let a=aB(e);if(!a)return;r((function(){var e;if(!a)return;let t=null!=(e=gU.get(a))?e:1;if(1===t?gU.delete(a):gU.set(a,t-1),1!==t)return;let r=mU.get(a);r&&(null===r["aria-hidden"]?a.removeAttribute("aria-hidden"):a.setAttribute("aria-hidden",r["aria-hidden"]),a.inert=r.inert,mU.delete(a))}));let o=null!=(n=gU.get(a))?n:0;gU.set(a,o+1),0===o&&(mU.set(a,{"aria-hidden":a.getAttribute("aria-hidden"),inert:a.inert}),a.setAttribute("aria-hidden","true"),a.inert=!0)}))}function bU({defaultContainers:e=[],portals:t,mainTreeNodeRef:r}={}){let n=So(null),a=cB(n);function o(){var r,o,i;let s=[];for(let t of e)null!==t&&(t instanceof HTMLElement?s.push(t):"value"in t&&t.value instanceof HTMLElement&&s.push(t.value));if(null!=t&&t.value)for(let e of t.value)s.push(e);for(let e of null!=(r=null==a?void 0:a.querySelectorAll("html > *, body > *"))?r:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(e.contains(aB(n))||e.contains(null==(i=null==(o=aB(n))?void 0:o.getRootNode())?void 0:i.host)||s.some((t=>e.contains(t)))||s.push(e));return s}return{resolveContainers:o,contains:e=>o().some((t=>t.contains(e))),mainTreeNodeRef:n,MainTreeNode:()=>null!=r?null:fc(HB,{features:qB.Hidden,ref:n})}}let yU=Symbol("ForcePortalRootContext"),OU=Li({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup:(e,{slots:t,attrs:r})=>(js(yU,e.force),()=>{let{force:n,...a}=e;return jB({theirProps:a,ourProps:{},slot:{},slots:t,attrs:r,name:"ForcePortalRoot"})})}),wU=Symbol("StackContext");var xU=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(xU||{});let kU=Symbol("DescriptionContext");function SU({slot:e=So({}),name:t="Description",props:r={}}={}){let n=So([]);return js(kU,{register:function(e){return n.value.push(e),()=>{let t=n.value.indexOf(e);-1!==t&&n.value.splice(t,1)}},slot:e,name:t,props:r}),hc((()=>n.value.length>0?n.value.join(" "):void 0))}const _U=new WeakMap;function EU(e,t){let r=t(function(e){var t;return null!=(t=_U.get(e))?t:0}(e));return r<=0?_U.delete(e):_U.set(e,r),r}let TU=Li({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:r}){let n=So(null),a=hc((()=>cB(n))),o=Bs(yU,!1),i=Bs(PU,null),s=So(!0===o||null==i?function(e){let t=cB(e);if(!t){if(null===e)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let r=t.getElementById("headlessui-portal-root");if(r)return r;let n=t.createElement("div");return n.setAttribute("id","headlessui-portal-root"),t.body.appendChild(n)}(n.value):i.resolveTarget());s.value&&EU(s.value,(e=>e+1));let l=So(!1);Yi((()=>{l.value=!0})),cl((()=>{o||null!=i&&(s.value=i.resolveTarget())}));let c=Bs(AU,null),u=!1,d=tc();return ul(n,(()=>{if(u||!c)return;let e=aB(n);e&&(ts(c.register(e),d),u=!0)})),ts((()=>{var e,t;let r=null==(e=a.value)?void 0:e.getElementById("headlessui-portal-root");!r||s.value!==r||EU(s.value,(e=>e-1))||s.value.children.length>0||null==(t=s.value.parentElement)||t.removeChild(s.value)})),()=>{if(!l.value||null===s.value)return null;let a={ref:n,"data-headlessui-portal":""};return fc(wi,{to:s.value},jB({ourProps:a,theirProps:e,slot:{},attrs:r,slots:t,name:"Portal"}))}}}),AU=Symbol("PortalParentContext");function CU(){let e=Bs(AU,null),t=So([]);function r(r){let n=t.value.indexOf(r);-1!==n&&t.value.splice(n,1),e&&e.unregister(r)}let n={register:function(n){return t.value.push(n),e&&e.register(n),()=>r(n)},unregister:r,portals:t};return[t,Li({name:"PortalWrapper",setup:(e,{slots:t})=>(js(AU,n),()=>{var e;return null==(e=t.default)?void 0:e.call(t)})})]}let PU=Symbol("PortalGroupContext"),DU=Li({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:r}){let n=uo({resolveTarget:()=>e.target});return js(PU,n),()=>{let{target:n,...a}=e;return jB({theirProps:a,ourProps:{},slot:{},attrs:t,slots:r,name:"PortalGroup"})}}});var $U,RU=(($U=RU||{})[$U.Open=0]="Open",$U[$U.Closed=1]="Closed",$U);let MU=Symbol("DialogContext");function NU(e){let t=Bs(MU,null);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,NU),t}return t}let IU="DC8F892D-2EBD-447C-A4C8-A03058436FF4",LU=Li({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:IU},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:r,slots:n,expose:a}){var o,i;let s=null!=(o=e.id)?o:`headlessui-dialog-${nB()}`,l=So(!1);Yi((()=>{l.value=!0}));let c=!1,u=hc((()=>"dialog"===e.role||"alertdialog"===e.role?e.role:(c||(c=!0,console.warn(`Invalid role [${u}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog"))),d=So(0),p=WB(),h=hc((()=>e.open===IU&&null!==p?(p.value&ZB.Open)===ZB.Open:e.open)),f=So(null),m=hc((()=>cB(f)));if(a({el:f,$el:f}),e.open===IU&&null===p)throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if("boolean"!=typeof h.value)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${h.value===IU?void 0:e.open}`);let g=hc((()=>l.value&&h.value?0:1)),v=hc((()=>0===g.value)),b=hc((()=>d.value>1)),y=null!==Bs(MU,null),[O,w]=CU(),{resolveContainers:x,mainTreeNodeRef:k,MainTreeNode:S}=bU({portals:O,defaultContainers:[hc((()=>{var e;return null!=(e=R.panelRef.value)?e:f.value}))]}),_=hc((()=>b.value?"parent":"leaf")),E=hc((()=>null!==p&&(p.value&ZB.Closing)===ZB.Closing)),T=hc((()=>!y&&!E.value&&v.value)),A=hc((()=>{var e,t,r;return null!=(r=Array.from(null!=(t=null==(e=m.value)?void 0:e.querySelectorAll("body > *"))?t:[]).find((e=>"headlessui-portal-root"!==e.id&&e.contains(aB(k))&&e instanceof HTMLElement)))?r:null}));vU(A,T);let C=hc((()=>!!b.value||v.value)),P=hc((()=>{var e,t,r;return null!=(r=Array.from(null!=(t=null==(e=m.value)?void 0:e.querySelectorAll("[data-headlessui-portal]"))?t:[]).find((e=>e.contains(aB(k))&&e instanceof HTMLElement)))?r:null}));vU(P,C),function({type:e,enabled:t,element:r,onUpdate:n}){let a=Bs(wU,(()=>{}));function o(...e){null==n||n(...e),a(...e)}Yi((()=>{ul(t,((t,n)=>{t?o(0,e,r):!0===n&&o(1,e,r)}),{immediate:!0,flush:"sync"})})),ts((()=>{t.value&&o(1,e,r)})),js(wU,o)}({type:"Dialog",enabled:hc((()=>0===g.value)),element:f,onUpdate:(e,t)=>{if("Dialog"===t)return oB(e,{[xU.Add]:()=>d.value+=1,[xU.Remove]:()=>d.value-=1})}});let D=SU({name:"DialogDescription",slot:hc((()=>({open:h.value})))}),$=So(null),R={titleId:$,panelRef:So(null),dialogState:g,setTitleId(e){$.value!==e&&($.value=e)},close(){t("close",!1)}};js(MU,R);let M=hc((()=>!(!v.value||b.value)));CB(x,((e,t)=>{e.preventDefault(),R.close(),Ko((()=>null==t?void 0:t.focus()))}),M);let N=hc((()=>!(b.value||0!==g.value)));oU(null==(i=m.value)?void 0:i.defaultView,"keydown",(e=>{N.value&&(e.defaultPrevented||e.key===YB.Escape&&(e.preventDefault(),e.stopPropagation(),R.close()))}));let I=hc((()=>!(E.value||0!==g.value||y)));return function(e,t,r){let n=function(e){let t=_o(e.getSnapshot());return ts(e.subscribe((()=>{t.value=e.getSnapshot()}))),t}(fU),a=hc((()=>{let t=e.value?n.value.get(e.value):void 0;return!!t&&t.count>0}));ul([e,t],(([e,t],[n],a)=>{if(!e||!t)return;fU.dispatch("PUSH",e,r);let o=!1;a((()=>{o||(fU.dispatch("POP",null!=n?n:e,r),o=!0)}))}),{immediate:!0})}(m,I,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],x]}})),cl((e=>{if(0!==g.value)return;let t=aB(f);if(!t)return;let r=new ResizeObserver((e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&R.close()}}));r.observe(t),e((()=>r.disconnect()))})),()=>{let{open:t,initialFocus:a,...o}=e,i={...r,ref:f,id:s,role:u.value,"aria-modal":0===g.value||void 0,"aria-labelledby":$.value,"aria-describedby":D.value},l={open:0===g.value};return fc(OU,{force:!0},(()=>[fc(TU,(()=>fc(DU,{target:f.value},(()=>fc(OU,{force:!1},(()=>fc(uU,{initialFocus:a,containers:x,features:v.value?oB(_.value,{parent:uU.features.RestoreFocus,leaf:uU.features.All&~uU.features.FocusLock}):uU.features.None},(()=>fc(w,{},(()=>jB({ourProps:i,theirProps:{...o,...r},slot:l,attrs:r,slots:n,visible:0===g.value,features:IB.RenderStrategy|IB.Static,name:"Dialog"}))))))))))),fc(S)]))}}}),jU=Li({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:n}){var a;let o=null!=(a=e.id)?a:`headlessui-dialog-panel-${nB()}`,i=NU("DialogPanel");function s(e){e.stopPropagation()}return n({el:i.panelRef,$el:i.panelRef}),()=>{let{...n}=e;return jB({ourProps:{id:o,ref:i.panelRef,onClick:s},theirProps:n,slot:{open:0===i.dialogState.value},attrs:t,slots:r,name:"DialogPanel"})}}}),BU=Li({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:null}},setup(e,{attrs:t,slots:r}){var n;let a=null!=(n=e.id)?n:`headlessui-dialog-title-${nB()}`,o=NU("DialogTitle");return Yi((()=>{o.setTitleId(a),ts((()=>o.setTitleId(null)))})),()=>{let{...n}=e;return jB({ourProps:{id:a},theirProps:n,slot:{open:0===o.dialogState.value},attrs:t,slots:r,name:"DialogTitle"})}}});var UU=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(UU||{});let FU=Symbol("DisclosureContext");function QU(e){let t=Bs(FU,null);if(null===t){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,QU),t}return t}let zU=Symbol("DisclosurePanelContext"),qU=Li({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup(e,{slots:t,attrs:r}){let n=So(e.defaultOpen?0:1),a=So(null),o=So(null),i={buttonId:So(`headlessui-disclosure-button-${nB()}`),panelId:So(`headlessui-disclosure-panel-${nB()}`),disclosureState:n,panel:a,button:o,toggleDisclosure(){n.value=oB(n.value,{0:1,1:0})},closeDisclosure(){1!==n.value&&(n.value=1)},close(e){i.closeDisclosure();let t=e?e instanceof HTMLElement?e:e.value instanceof HTMLElement?aB(e):aB(i.button):aB(i.button);null==t||t.focus()}};return js(FU,i),XB(hc((()=>oB(n.value,{0:ZB.Open,1:ZB.Closed})))),()=>{let{defaultOpen:a,...o}=e;return jB({theirProps:o,ourProps:{},slot:{open:0===n.value,close:i.close},slots:t,attrs:r,name:"Disclosure"})}}}),HU=Li({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:n}){let a=QU("DisclosureButton"),o=Bs(zU,null),i=hc((()=>null!==o&&o.value===a.panelId.value));Yi((()=>{i.value||null!==e.id&&(a.buttonId.value=e.id)})),ts((()=>{i.value||(a.buttonId.value=null)}));let s=So(null);n({el:s,$el:s}),i.value||cl((()=>{a.button.value=s.value}));let l=DB(hc((()=>({as:e.as,type:t.type}))),s);function c(){var t;e.disabled||(i.value?(a.toggleDisclosure(),null==(t=aB(a.button))||t.focus()):a.toggleDisclosure())}function u(t){var r;if(!e.disabled)if(i.value)switch(t.key){case YB.Space:case YB.Enter:t.preventDefault(),t.stopPropagation(),a.toggleDisclosure(),null==(r=aB(a.button))||r.focus()}else switch(t.key){case YB.Space:case YB.Enter:t.preventDefault(),t.stopPropagation(),a.toggleDisclosure()}}function d(e){e.key===YB.Space&&e.preventDefault()}return()=>{var n;let o={open:0===a.disclosureState.value},{id:p,...h}=e;return jB({ourProps:i.value?{ref:s,type:l.value,onClick:c,onKeydown:u}:{id:null!=(n=a.buttonId.value)?n:p,ref:s,type:l.value,"aria-expanded":0===a.disclosureState.value,"aria-controls":0===a.disclosureState.value||aB(a.panel)?a.panelId.value:void 0,disabled:!!e.disabled||void 0,onClick:c,onKeydown:u,onKeyup:d},theirProps:h,slot:o,attrs:t,slots:r,name:"DisclosureButton"})}}}),VU=Li({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:n}){let a=QU("DisclosurePanel");Yi((()=>{null!==e.id&&(a.panelId.value=e.id)})),ts((()=>{a.panelId.value=null})),n({el:a.panel,$el:a.panel}),js(zU,a.panelId);let o=WB(),i=hc((()=>null!==o?(o.value&ZB.Open)===ZB.Open:0===a.disclosureState.value));return()=>{var n;let o={open:0===a.disclosureState.value,close:a.close},{id:s,...l}=e;return jB({ourProps:{id:null!=(n=a.panelId.value)?n:s,ref:a.panel},theirProps:l,slot:o,attrs:t,slots:r,features:IB.RenderStrategy|IB.Static,visible:i.value,name:"DisclosurePanel"})}}}),ZU=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function WU(e){var t,r;let n=null!=(t=e.innerText)?t:"",a=e.cloneNode(!0);if(!(a instanceof HTMLElement))return n;let o=!1;for(let e of a.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),o=!0;let i=o?null!=(r=a.innerText)?r:"":n;return ZU.test(i)&&(i=i.replace(ZU,"")),i}function XU(e){let t=So(""),r=So("");return()=>{let n=aB(e);if(!n)return"";let a=n.innerText;if(t.value===a)return r.value;let o=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let e=r.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():WU(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return WU(e).trim()}(n).trim().toLowerCase();return t.value=a,r.value=o,o}}function GU(e,t){return e===t}var YU=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(YU||{}),KU=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(KU||{}),JU=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(JU||{});let eF=Symbol("ListboxContext");function tF(e){let t=Bs(eF,null);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,tF),t}return t}let rF=Li({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>GU},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:r,emit:n}){let a=So(1),o=So(null),i=So(null),s=So(null),l=So([]),c=So(""),u=So(null),d=So(1);function p(e=e=>e){let t=null!==u.value?l.value[u.value]:null,r=SB(e(l.value.slice()),(e=>aB(e.dataRef.domRef))),n=t?r.indexOf(t):null;return-1===n&&(n=null),{options:r,activeOptionIndex:n}}let h=hc((()=>e.multiple?1:0)),[f,m]=Yj(hc((()=>e.modelValue)),(e=>n("update:modelValue",e)),hc((()=>e.defaultValue))),g=hc((()=>void 0===f.value?oB(h.value,{1:[],0:void 0}):f.value)),v={listboxState:a,value:g,mode:h,compare(t,r){if("string"==typeof e.by){let n=e.by;return(null==t?void 0:t[n])===(null==r?void 0:r[n])}return e.by(t,r)},orientation:hc((()=>e.horizontal?"horizontal":"vertical")),labelRef:o,buttonRef:i,optionsRef:s,disabled:hc((()=>e.disabled)),options:l,searchQuery:c,activeOptionIndex:u,activationTrigger:d,closeListbox(){e.disabled||1!==a.value&&(a.value=1,u.value=null)},openListbox(){e.disabled||0!==a.value&&(a.value=0)},goToOption(t,r,n){if(e.disabled||1===a.value)return;let o=p(),i=tU(t===eU.Specific?{focus:eU.Specific,id:r}:{focus:t},{resolveItems:()=>o.options,resolveActiveIndex:()=>o.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.disabled});c.value="",u.value=i,d.value=null!=n?n:1,l.value=o.options},search(t){if(e.disabled||1===a.value)return;let r=""!==c.value?0:1;c.value+=t.toLowerCase();let n=(null!==u.value?l.value.slice(u.value+r).concat(l.value.slice(0,u.value+r)):l.value).find((e=>e.dataRef.textValue.startsWith(c.value)&&!e.dataRef.disabled)),o=n?l.value.indexOf(n):-1;-1===o||o===u.value||(u.value=o,d.value=1)},clearSearch(){e.disabled||1!==a.value&&""!==c.value&&(c.value="")},registerOption(e,t){let r=p((r=>[...r,{id:e,dataRef:t}]));l.value=r.options,u.value=r.activeOptionIndex},unregisterOption(e){let t=p((t=>{let r=t.findIndex((t=>t.id===e));return-1!==r&&t.splice(r,1),t}));l.value=t.options,u.value=t.activeOptionIndex,d.value=1},theirOnChange(t){e.disabled||m(t)},select(t){e.disabled||m(oB(h.value,{0:()=>t,1:()=>{let e=Oo(v.value.value).slice(),r=Oo(t),n=e.findIndex((e=>v.compare(r,Oo(e))));return-1===n?e.push(r):e.splice(n,1),e}}))}};CB([i,s],((e,t)=>{var r;v.closeListbox(),yB(t,bB.Loose)||(e.preventDefault(),null==(r=aB(i))||r.focus())}),hc((()=>0===a.value))),js(eF,v),XB(hc((()=>oB(a.value,{0:ZB.Open,1:ZB.Closed}))));let b=hc((()=>{var e;return null==(e=aB(i))?void 0:e.closest("form")}));return Yi((()=>{ul([b],(()=>{if(b.value&&void 0!==e.defaultValue)return b.value.addEventListener("reset",t),()=>{var e;null==(e=b.value)||e.removeEventListener("reset",t)};function t(){v.theirOnChange(e.defaultValue)}}),{immediate:!0})})),()=>{let{name:n,modelValue:o,disabled:i,form:s,...l}=e,c={open:0===a.value,disabled:i,value:g.value};return fc(Sl,[...null!=n&&null!=g.value?rU({[n]:g.value}).map((([e,t])=>fc(HB,QB({features:qB.Hidden,key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:s,disabled:i,name:e,value:t})))):[],jB({ourProps:{},theirProps:{...r,...zB(l,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:c,slots:t,attrs:r,name:"Listbox"})])}}}),nF=Li({name:"ListboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:r}){var n;let a=null!=(n=e.id)?n:`headlessui-listbox-label-${nB()}`,o=tF("ListboxLabel");function i(){var e;null==(e=aB(o.buttonRef))||e.focus({preventScroll:!0})}return()=>{let n={open:0===o.listboxState.value,disabled:o.disabled.value},{...s}=e;return jB({ourProps:{id:a,ref:o.labelRef,onClick:i},theirProps:s,slot:n,attrs:t,slots:r,name:"ListboxLabel"})}}}),aF=Li({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:n}){var a;let o=null!=(a=e.id)?a:`headlessui-listbox-button-${nB()}`,i=tF("ListboxButton");function s(e){switch(e.key){case YB.Space:case YB.Enter:case YB.ArrowDown:e.preventDefault(),i.openListbox(),Ko((()=>{var e;null==(e=aB(i.optionsRef))||e.focus({preventScroll:!0}),i.value.value||i.goToOption(eU.First)}));break;case YB.ArrowUp:e.preventDefault(),i.openListbox(),Ko((()=>{var e;null==(e=aB(i.optionsRef))||e.focus({preventScroll:!0}),i.value.value||i.goToOption(eU.Last)}))}}function l(e){e.key===YB.Space&&e.preventDefault()}function c(e){i.disabled.value||(0===i.listboxState.value?(i.closeListbox(),Ko((()=>{var e;return null==(e=aB(i.buttonRef))?void 0:e.focus({preventScroll:!0})}))):(e.preventDefault(),i.openListbox(),function(e){requestAnimationFrame((()=>requestAnimationFrame(e)))}((()=>{var e;return null==(e=aB(i.optionsRef))?void 0:e.focus({preventScroll:!0})}))))}n({el:i.buttonRef,$el:i.buttonRef});let u=DB(hc((()=>({as:e.as,type:t.type}))),i.buttonRef);return()=>{var n,a;let d={open:0===i.listboxState.value,disabled:i.disabled.value,value:i.value.value},{...p}=e;return jB({ourProps:{ref:i.buttonRef,id:o,type:u.value,"aria-haspopup":"listbox","aria-controls":null==(n=aB(i.optionsRef))?void 0:n.id,"aria-expanded":0===i.listboxState.value,"aria-labelledby":i.labelRef.value?[null==(a=aB(i.labelRef))?void 0:a.id,o].join(" "):void 0,disabled:!0===i.disabled.value||void 0,onKeydown:s,onKeyup:l,onClick:c},theirProps:p,slot:d,attrs:t,slots:r,name:"ListboxButton"})}}}),oF=Li({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:n}){var a;let o=null!=(a=e.id)?a:`headlessui-listbox-options-${nB()}`,i=tF("ListboxOptions"),s=So(null);function l(e){switch(s.value&&clearTimeout(s.value),e.key){case YB.Space:if(""!==i.searchQuery.value)return e.preventDefault(),e.stopPropagation(),i.search(e.key);case YB.Enter:if(e.preventDefault(),e.stopPropagation(),null!==i.activeOptionIndex.value){let e=i.options.value[i.activeOptionIndex.value];i.select(e.dataRef.value)}0===i.mode.value&&(i.closeListbox(),Ko((()=>{var e;return null==(e=aB(i.buttonRef))?void 0:e.focus({preventScroll:!0})})));break;case oB(i.orientation.value,{vertical:YB.ArrowDown,horizontal:YB.ArrowRight}):return e.preventDefault(),e.stopPropagation(),i.goToOption(eU.Next);case oB(i.orientation.value,{vertical:YB.ArrowUp,horizontal:YB.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),i.goToOption(eU.Previous);case YB.Home:case YB.PageUp:return e.preventDefault(),e.stopPropagation(),i.goToOption(eU.First);case YB.End:case YB.PageDown:return e.preventDefault(),e.stopPropagation(),i.goToOption(eU.Last);case YB.Escape:e.preventDefault(),e.stopPropagation(),i.closeListbox(),Ko((()=>{var e;return null==(e=aB(i.buttonRef))?void 0:e.focus({preventScroll:!0})}));break;case YB.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(i.search(e.key),s.value=setTimeout((()=>i.clearSearch()),350))}}n({el:i.optionsRef,$el:i.optionsRef});let c=WB(),u=hc((()=>null!==c?(c.value&ZB.Open)===ZB.Open:0===i.listboxState.value));return()=>{var n,a;let s={open:0===i.listboxState.value},{...c}=e;return jB({ourProps:{"aria-activedescendant":null===i.activeOptionIndex.value||null==(n=i.options.value[i.activeOptionIndex.value])?void 0:n.id,"aria-multiselectable":1===i.mode.value||void 0,"aria-labelledby":null==(a=aB(i.buttonRef))?void 0:a.id,"aria-orientation":i.orientation.value,id:o,onKeydown:l,role:"listbox",tabIndex:0,ref:i.optionsRef},theirProps:c,slot:s,attrs:t,slots:r,features:IB.RenderStrategy|IB.Static,visible:u.value,name:"ListboxOptions"})}}}),iF=Li({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:r,expose:n}){var a;let o=null!=(a=e.id)?a:`headlessui-listbox-option-${nB()}`,i=tF("ListboxOption"),s=So(null);n({el:s,$el:s});let l=hc((()=>null!==i.activeOptionIndex.value&&i.options.value[i.activeOptionIndex.value].id===o)),c=hc((()=>oB(i.mode.value,{0:()=>i.compare(Oo(i.value.value),Oo(e.value)),1:()=>Oo(i.value.value).some((t=>i.compare(Oo(t),Oo(e.value))))}))),u=hc((()=>oB(i.mode.value,{1:()=>{var e;let t=Oo(i.value.value);return(null==(e=i.options.value.find((e=>t.some((t=>i.compare(Oo(t),Oo(e.dataRef.value)))))))?void 0:e.id)===o},0:()=>c.value}))),d=XU(s),p=hc((()=>({disabled:e.disabled,value:e.value,get textValue(){return d()},domRef:s})));function h(t){if(e.disabled)return t.preventDefault();i.select(e.value),0===i.mode.value&&(i.closeListbox(),Ko((()=>{var e;return null==(e=aB(i.buttonRef))?void 0:e.focus({preventScroll:!0})})))}function f(){if(e.disabled)return i.goToOption(eU.Nothing);i.goToOption(eU.Specific,o)}Yi((()=>i.registerOption(o,p))),ts((()=>i.unregisterOption(o))),Yi((()=>{ul([i.listboxState,c],(()=>{0===i.listboxState.value&&c.value&&oB(i.mode.value,{1:()=>{u.value&&i.goToOption(eU.Specific,o)},0:()=>{i.goToOption(eU.Specific,o)}})}),{immediate:!0})})),cl((()=>{0===i.listboxState.value&&l.value&&0!==i.activationTrigger.value&&Ko((()=>{var e,t;return null==(t=null==(e=aB(s))?void 0:e.scrollIntoView)?void 0:t.call(e,{block:"nearest"})}))}));let m=RB();function g(e){m.update(e)}function v(t){m.wasMoved(t)&&(e.disabled||l.value||i.goToOption(eU.Specific,o,0))}function b(t){m.wasMoved(t)&&(e.disabled||l.value&&i.goToOption(eU.Nothing))}return()=>{let{disabled:n}=e,a={active:l.value,selected:c.value,disabled:n},{value:i,disabled:u,...d}=e;return jB({ourProps:{id:o,ref:s,role:"option",tabIndex:!0===n?void 0:-1,"aria-disabled":!0===n||void 0,"aria-selected":c.value,disabled:void 0,onClick:h,onFocus:f,onPointerenter:g,onMouseenter:g,onPointermove:v,onMousemove:v,onPointerleave:b,onMouseleave:b},theirProps:d,slot:a,attrs:r,slots:t,name:"ListboxOption"})}}});var sF=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(sF||{}),lF=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(lF||{});let cF=Symbol("MenuContext");function uF(e){let t=Bs(cF,null);if(null===t){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,uF),t}return t}let dF=Li({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:r}){let n=So(1),a=So(null),o=So(null),i=So([]),s=So(""),l=So(null),c=So(1);function u(e=e=>e){let t=null!==l.value?i.value[l.value]:null,r=SB(e(i.value.slice()),(e=>aB(e.dataRef.domRef))),n=t?r.indexOf(t):null;return-1===n&&(n=null),{items:r,activeItemIndex:n}}let d={menuState:n,buttonRef:a,itemsRef:o,items:i,searchQuery:s,activeItemIndex:l,activationTrigger:c,closeMenu:()=>{n.value=1,l.value=null},openMenu:()=>n.value=0,goToItem(e,t,r){let n=u(),a=tU(e===eU.Specific?{focus:eU.Specific,id:t}:{focus:e},{resolveItems:()=>n.items,resolveActiveIndex:()=>n.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.disabled});s.value="",l.value=a,c.value=null!=r?r:1,i.value=n.items},search(e){let t=""!==s.value?0:1;s.value+=e.toLowerCase();let r=(null!==l.value?i.value.slice(l.value+t).concat(i.value.slice(0,l.value+t)):i.value).find((e=>e.dataRef.textValue.startsWith(s.value)&&!e.dataRef.disabled)),n=r?i.value.indexOf(r):-1;-1===n||n===l.value||(l.value=n,c.value=1)},clearSearch(){s.value=""},registerItem(e,t){let r=u((r=>[...r,{id:e,dataRef:t}]));i.value=r.items,l.value=r.activeItemIndex,c.value=1},unregisterItem(e){let t=u((t=>{let r=t.findIndex((t=>t.id===e));return-1!==r&&t.splice(r,1),t}));i.value=t.items,l.value=t.activeItemIndex,c.value=1}};return CB([a,o],((e,t)=>{var r;d.closeMenu(),yB(t,bB.Loose)||(e.preventDefault(),null==(r=aB(a))||r.focus())}),hc((()=>0===n.value))),js(cF,d),XB(hc((()=>oB(n.value,{0:ZB.Open,1:ZB.Closed})))),()=>{let a={open:0===n.value,close:d.closeMenu};return jB({ourProps:{},theirProps:e,slot:a,slots:t,attrs:r,name:"Menu"})}}}),pF=Li({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:n}){var a;let o=null!=(a=e.id)?a:`headlessui-menu-button-${nB()}`,i=uF("MenuButton");function s(e){switch(e.key){case YB.Space:case YB.Enter:case YB.ArrowDown:e.preventDefault(),e.stopPropagation(),i.openMenu(),Ko((()=>{var e;null==(e=aB(i.itemsRef))||e.focus({preventScroll:!0}),i.goToItem(eU.First)}));break;case YB.ArrowUp:e.preventDefault(),e.stopPropagation(),i.openMenu(),Ko((()=>{var e;null==(e=aB(i.itemsRef))||e.focus({preventScroll:!0}),i.goToItem(eU.Last)}))}}function l(e){e.key===YB.Space&&e.preventDefault()}function c(t){e.disabled||(0===i.menuState.value?(i.closeMenu(),Ko((()=>{var e;return null==(e=aB(i.buttonRef))?void 0:e.focus({preventScroll:!0})}))):(t.preventDefault(),i.openMenu(),function(e){requestAnimationFrame((()=>requestAnimationFrame(e)))}((()=>{var e;return null==(e=aB(i.itemsRef))?void 0:e.focus({preventScroll:!0})}))))}n({el:i.buttonRef,$el:i.buttonRef});let u=DB(hc((()=>({as:e.as,type:t.type}))),i.buttonRef);return()=>{var n;let a={open:0===i.menuState.value},{...d}=e;return jB({ourProps:{ref:i.buttonRef,id:o,type:u.value,"aria-haspopup":"menu","aria-controls":null==(n=aB(i.itemsRef))?void 0:n.id,"aria-expanded":0===i.menuState.value,onKeydown:s,onKeyup:l,onClick:c},theirProps:d,slot:a,attrs:t,slots:r,name:"MenuButton"})}}}),hF=Li({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:n}){var a;let o=null!=(a=e.id)?a:`headlessui-menu-items-${nB()}`,i=uF("MenuItems"),s=So(null);function l(e){var t;switch(s.value&&clearTimeout(s.value),e.key){case YB.Space:if(""!==i.searchQuery.value)return e.preventDefault(),e.stopPropagation(),i.search(e.key);case YB.Enter:e.preventDefault(),e.stopPropagation(),null!==i.activeItemIndex.value&&(null==(t=aB(i.items.value[i.activeItemIndex.value].dataRef.domRef))||t.click()),i.closeMenu(),OB(aB(i.buttonRef));break;case YB.ArrowDown:return e.preventDefault(),e.stopPropagation(),i.goToItem(eU.Next);case YB.ArrowUp:return e.preventDefault(),e.stopPropagation(),i.goToItem(eU.Previous);case YB.Home:case YB.PageUp:return e.preventDefault(),e.stopPropagation(),i.goToItem(eU.First);case YB.End:case YB.PageDown:return e.preventDefault(),e.stopPropagation(),i.goToItem(eU.Last);case YB.Escape:e.preventDefault(),e.stopPropagation(),i.closeMenu(),Ko((()=>{var e;return null==(e=aB(i.buttonRef))?void 0:e.focus({preventScroll:!0})}));break;case YB.Tab:e.preventDefault(),e.stopPropagation(),i.closeMenu(),Ko((()=>function(e,t){return _B(vB(),t,{relativeTo:e})}(aB(i.buttonRef),e.shiftKey?fB.Previous:fB.Next)));break;default:1===e.key.length&&(i.search(e.key),s.value=setTimeout((()=>i.clearSearch()),350))}}function c(e){e.key===YB.Space&&e.preventDefault()}n({el:i.itemsRef,$el:i.itemsRef}),MB({container:hc((()=>aB(i.itemsRef))),enabled:hc((()=>0===i.menuState.value)),accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let u=WB(),d=hc((()=>null!==u?(u.value&ZB.Open)===ZB.Open:0===i.menuState.value));return()=>{var n,a;let s={open:0===i.menuState.value},{...u}=e;return jB({ourProps:{"aria-activedescendant":null===i.activeItemIndex.value||null==(n=i.items.value[i.activeItemIndex.value])?void 0:n.id,"aria-labelledby":null==(a=aB(i.buttonRef))?void 0:a.id,id:o,onKeydown:l,onKeyup:c,role:"menu",tabIndex:0,ref:i.itemsRef},theirProps:u,slot:s,attrs:t,slots:r,features:IB.RenderStrategy|IB.Static,visible:d.value,name:"MenuItems"})}}}),fF=Li({name:"MenuItem",inheritAttrs:!1,props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:r,expose:n}){var a;let o=null!=(a=e.id)?a:`headlessui-menu-item-${nB()}`,i=uF("MenuItem"),s=So(null);n({el:s,$el:s});let l=hc((()=>null!==i.activeItemIndex.value&&i.items.value[i.activeItemIndex.value].id===o)),c=XU(s),u=hc((()=>({disabled:e.disabled,get textValue(){return c()},domRef:s})));function d(t){if(e.disabled)return t.preventDefault();i.closeMenu(),OB(aB(i.buttonRef))}function p(){if(e.disabled)return i.goToItem(eU.Nothing);i.goToItem(eU.Specific,o)}Yi((()=>i.registerItem(o,u))),ts((()=>i.unregisterItem(o))),cl((()=>{0===i.menuState.value&&l.value&&0!==i.activationTrigger.value&&Ko((()=>{var e,t;return null==(t=null==(e=aB(s))?void 0:e.scrollIntoView)?void 0:t.call(e,{block:"nearest"})}))}));let h=RB();function f(e){h.update(e)}function m(t){h.wasMoved(t)&&(e.disabled||l.value||i.goToItem(eU.Specific,o,0))}function g(t){h.wasMoved(t)&&(e.disabled||l.value&&i.goToItem(eU.Nothing))}return()=>{let{disabled:n,...a}=e,c={active:l.value,disabled:n,close:i.closeMenu};return jB({ourProps:{id:o,ref:s,role:"menuitem",tabIndex:!0===n?void 0:-1,"aria-disabled":!0===n||void 0,onClick:d,onFocus:p,onPointerenter:f,onMouseenter:f,onPointermove:m,onMousemove:m,onPointerleave:g,onMouseleave:g},theirProps:{...r,...a},slot:c,attrs:r,slots:t,name:"MenuItem"})}}});var mF,gF=((mF=gF||{})[mF.Open=0]="Open",mF[mF.Closed=1]="Closed",mF);let vF=Symbol("PopoverContext");function bF(e){let t=Bs(vF,null);if(null===t){let t=new Error(`<${e} /> is missing a parent <${xF.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,bF),t}return t}let yF=Symbol("PopoverGroupContext");function OF(){return Bs(yF,null)}let wF=Symbol("PopoverPanelContext"),xF=Li({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:r,expose:n}){var a;let o=So(null);n({el:o,$el:o});let i=So(1),s=So(null),l=So(null),c=So(null),u=So(null),d=hc((()=>cB(o))),p=hc((()=>{var e,t;if(!aB(s)||!aB(u))return!1;for(let e of document.querySelectorAll("body > *"))if(Number(null==e?void 0:e.contains(aB(s)))^Number(null==e?void 0:e.contains(aB(u))))return!0;let r=vB(),n=r.indexOf(aB(s)),a=(n+r.length-1)%r.length,o=(n+1)%r.length,i=r[a],l=r[o];return!(null!=(e=aB(u))&&e.contains(i)||null!=(t=aB(u))&&t.contains(l))})),h={popoverState:i,buttonId:So(null),panelId:So(null),panel:u,button:s,isPortalled:p,beforePanelSentinel:l,afterPanelSentinel:c,togglePopover(){i.value=oB(i.value,{0:1,1:0})},closePopover(){1!==i.value&&(i.value=1)},close(e){h.closePopover();let t=e?e instanceof HTMLElement?e:e.value instanceof HTMLElement?aB(e):aB(h.button):aB(h.button);null==t||t.focus()}};js(vF,h),XB(hc((()=>oB(i.value,{0:ZB.Open,1:ZB.Closed}))));let f={buttonId:h.buttonId,panelId:h.panelId,close(){h.closePopover()}},m=OF(),g=null==m?void 0:m.registerPopover,[v,b]=CU(),y=bU({mainTreeNodeRef:null==m?void 0:m.mainTreeNodeRef,portals:v,defaultContainers:[s,u]});return cl((()=>null==g?void 0:g(f))),oU(null==(a=d.value)?void 0:a.defaultView,"focus",(e=>{var t,r;e.target!==window&&e.target instanceof HTMLElement&&0===i.value&&(function(){var e,t,r,n;return null!=(n=null==m?void 0:m.isFocusWithinPopoverGroup())?n:(null==(e=d.value)?void 0:e.activeElement)&&((null==(t=aB(s))?void 0:t.contains(d.value.activeElement))||(null==(r=aB(u))?void 0:r.contains(d.value.activeElement)))}()||s&&u&&(y.contains(e.target)||null!=(t=aB(h.beforePanelSentinel))&&t.contains(e.target)||null!=(r=aB(h.afterPanelSentinel))&&r.contains(e.target)||h.closePopover()))}),!0),CB(y.resolveContainers,((e,t)=>{var r;h.closePopover(),yB(t,bB.Loose)||(e.preventDefault(),null==(r=aB(s))||r.focus())}),hc((()=>0===i.value))),()=>{let n={open:0===i.value,close:h.close};return fc(Sl,[fc(b,{},(()=>jB({theirProps:{...e,...r},ourProps:{ref:o},slot:n,slots:t,attrs:r,name:"Popover"}))),fc(y.MainTreeNode)])}}}),kF=Li({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:r,expose:n}){var a;let o=null!=(a=e.id)?a:`headlessui-popover-button-${nB()}`,i=bF("PopoverButton"),s=hc((()=>cB(i.button)));n({el:i.button,$el:i.button}),Yi((()=>{i.buttonId.value=o})),ts((()=>{i.buttonId.value=null}));let l=OF(),c=null==l?void 0:l.closeOthers,u=Bs(wF,null),d=hc((()=>null!==u&&u.value===i.panelId.value)),p=So(null),h=`headlessui-focus-sentinel-${nB()}`;d.value||cl((()=>{i.button.value=aB(p)}));let f=DB(hc((()=>({as:e.as,type:t.type}))),p);function m(e){var t,r,n,a,o;if(d.value){if(1===i.popoverState.value)return;switch(e.key){case YB.Space:case YB.Enter:e.preventDefault(),null==(r=(t=e.target).click)||r.call(t),i.closePopover(),null==(n=aB(i.button))||n.focus()}}else switch(e.key){case YB.Space:case YB.Enter:e.preventDefault(),e.stopPropagation(),1===i.popoverState.value&&(null==c||c(i.buttonId.value)),i.togglePopover();break;case YB.Escape:if(0!==i.popoverState.value)return null==c?void 0:c(i.buttonId.value);if(!aB(i.button)||null!=(a=s.value)&&a.activeElement&&(null==(o=aB(i.button))||!o.contains(s.value.activeElement)))return;e.preventDefault(),e.stopPropagation(),i.closePopover()}}function g(e){d.value||e.key===YB.Space&&e.preventDefault()}function v(t){var r,n;e.disabled||(d.value?(i.closePopover(),null==(r=aB(i.button))||r.focus()):(t.preventDefault(),t.stopPropagation(),1===i.popoverState.value&&(null==c||c(i.buttonId.value)),i.togglePopover(),null==(n=aB(i.button))||n.focus()))}function b(e){e.preventDefault(),e.stopPropagation()}let y=sU();function O(){let e=aB(i.panel);e&&oB(y.value,{[iU.Forwards]:()=>_B(e,fB.First),[iU.Backwards]:()=>_B(e,fB.Last)})===mB.Error&&_B(vB().filter((e=>"true"!==e.dataset.headlessuiFocusGuard)),oB(y.value,{[iU.Forwards]:fB.Next,[iU.Backwards]:fB.Previous}),{relativeTo:aB(i.button)})}return()=>{let n=0===i.popoverState.value,a={open:n},{...s}=e,l=d.value?{ref:p,type:f.value,onKeydown:m,onClick:v}:{ref:p,id:o,type:f.value,"aria-expanded":0===i.popoverState.value,"aria-controls":aB(i.panel)?i.panelId.value:void 0,disabled:!!e.disabled||void 0,onKeydown:m,onKeyup:g,onClick:v,onMousedown:b};return fc(Sl,[jB({ourProps:l,theirProps:{...t,...s},slot:a,attrs:t,slots:r,name:"PopoverButton"}),n&&!d.value&&i.isPortalled.value&&fc(HB,{id:h,features:qB.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:O})])}}}),SF=Li({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:r,expose:n}){var a;let o=null!=(a=e.id)?a:`headlessui-popover-panel-${nB()}`,{focus:i}=e,s=bF("PopoverPanel"),l=hc((()=>cB(s.panel))),c=`headlessui-focus-sentinel-before-${nB()}`,u=`headlessui-focus-sentinel-after-${nB()}`;n({el:s.panel,$el:s.panel}),Yi((()=>{s.panelId.value=o})),ts((()=>{s.panelId.value=null})),js(wF,s.panelId),cl((()=>{var e,t;if(!i||0!==s.popoverState.value||!s.panel)return;let r=null==(e=l.value)?void 0:e.activeElement;null!=(t=aB(s.panel))&&t.contains(r)||_B(aB(s.panel),fB.First)}));let d=WB(),p=hc((()=>null!==d?(d.value&ZB.Open)===ZB.Open:0===s.popoverState.value));function h(e){var t,r;if(e.key===YB.Escape){if(0!==s.popoverState.value||!aB(s.panel)||l.value&&(null==(t=aB(s.panel))||!t.contains(l.value.activeElement)))return;e.preventDefault(),e.stopPropagation(),s.closePopover(),null==(r=aB(s.button))||r.focus()}}function f(e){var t,r,n,a,o;let i=e.relatedTarget;i&&aB(s.panel)&&(null!=(t=aB(s.panel))&&t.contains(i)||(s.closePopover(),(null!=(n=null==(r=aB(s.beforePanelSentinel))?void 0:r.contains)&&n.call(r,i)||null!=(o=null==(a=aB(s.afterPanelSentinel))?void 0:a.contains)&&o.call(a,i))&&i.focus({preventScroll:!0})))}let m=sU();function g(){let e=aB(s.panel);e&&oB(m.value,{[iU.Forwards]:()=>{var t;_B(e,fB.First)===mB.Error&&(null==(t=aB(s.afterPanelSentinel))||t.focus())},[iU.Backwards]:()=>{var e;null==(e=aB(s.button))||e.focus({preventScroll:!0})}})}function v(){let e=aB(s.panel);e&&oB(m.value,{[iU.Forwards]:()=>{let e=aB(s.button),t=aB(s.panel);if(!e)return;let r=vB(),n=r.indexOf(e),a=r.slice(0,n+1),o=[...r.slice(n+1),...a];for(let e of o.slice())if("true"===e.dataset.headlessuiFocusGuard||null!=t&&t.contains(e)){let t=o.indexOf(e);-1!==t&&o.splice(t,1)}_B(o,fB.First,{sorted:!1})},[iU.Backwards]:()=>{var t;_B(e,fB.Previous)===mB.Error&&(null==(t=aB(s.button))||t.focus())}})}return()=>{let n={open:0===s.popoverState.value,close:s.close},{focus:a,...l}=e;return jB({ourProps:{ref:s.panel,id:o,onKeydown:h,onFocusout:i&&0===s.popoverState.value?f:void 0,tabIndex:-1},theirProps:{...t,...l},attrs:t,slot:n,slots:{...r,default:(...e)=>{var t;return[fc(Sl,[p.value&&s.isPortalled.value&&fc(HB,{id:c,ref:s.beforePanelSentinel,features:qB.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:g}),null==(t=r.default)?void 0:t.call(r,...e),p.value&&s.isPortalled.value&&fc(HB,{id:u,ref:s.afterPanelSentinel,features:qB.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:v})])]}},features:IB.RenderStrategy|IB.Static,visible:p.value,name:"PopoverPanel"})}}}),_F=Symbol("LabelContext");function EF(){let e=Bs(_F,null);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,EF),e}return e}function TF({slot:e={},name:t="Label",props:r={}}={}){let n=So([]);return js(_F,{register:function(e){return n.value.push(e),()=>{let t=n.value.indexOf(e);-1!==t&&n.value.splice(t,1)}},slot:e,name:t,props:r}),hc((()=>n.value.length>0?n.value.join(" "):void 0))}let AF=Li({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:r}){var n;let a=null!=(n=e.id)?n:`headlessui-label-${nB()}`,o=EF();return Yi((()=>ts(o.register(a)))),()=>{let{name:n="Label",slot:i={},props:s={}}=o,{passive:l,...c}=e,u={...Object.entries(s).reduce(((e,[t,r])=>Object.assign(e,{[t]:Ao(r)})),{}),id:a};return l&&(delete u.onClick,delete u.htmlFor,delete c.onClick),jB({ourProps:u,theirProps:c,slot:i,attrs:r,slots:t,name:n})}}});function CF(e,t){return e===t}let PF=Symbol("RadioGroupContext");function DF(e){let t=Bs(PF,null);if(null===t){let t=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,DF),t}return t}let $F=Li({name:"RadioGroup",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"div"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>CF},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{emit:t,attrs:r,slots:n,expose:a}){var o;let i=null!=(o=e.id)?o:`headlessui-radiogroup-${nB()}`,s=So(null),l=So([]),c=TF({name:"RadioGroupLabel"}),u=SU({name:"RadioGroupDescription"});a({el:s,$el:s});let[d,p]=Yj(hc((()=>e.modelValue)),(e=>t("update:modelValue",e)),hc((()=>e.defaultValue))),h={options:l,value:d,disabled:hc((()=>e.disabled)),firstOption:hc((()=>l.value.find((e=>!e.propsRef.disabled)))),containsCheckedOption:hc((()=>l.value.some((t=>h.compare(Oo(t.propsRef.value),Oo(e.modelValue)))))),compare(t,r){if("string"==typeof e.by){let n=e.by;return(null==t?void 0:t[n])===(null==r?void 0:r[n])}return e.by(t,r)},change(t){var r;if(e.disabled||h.compare(Oo(d.value),Oo(t)))return!1;let n=null==(r=l.value.find((e=>h.compare(Oo(e.propsRef.value),Oo(t)))))?void 0:r.propsRef;return!(null!=n&&n.disabled||(p(t),0))},registerOption(e){l.value.push(e),l.value=SB(l.value,(e=>e.element))},unregisterOption(e){let t=l.value.findIndex((t=>t.id===e));-1!==t&&l.value.splice(t,1)}};function f(e){if(!s.value||!s.value.contains(e.target))return;let t=l.value.filter((e=>!1===e.propsRef.disabled)).map((e=>e.element));switch(e.key){case YB.Enter:!function(e){var t,r;let n=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(n){for(let t of n.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(r=n.requestSubmit)||r.call(n)}}(e.currentTarget);break;case YB.ArrowLeft:case YB.ArrowUp:if(e.preventDefault(),e.stopPropagation(),_B(t,fB.Previous|fB.WrapAround)===mB.Success){let e=l.value.find((e=>{var t;return e.element===(null==(t=cB(s))?void 0:t.activeElement)}));e&&h.change(e.propsRef.value)}break;case YB.ArrowRight:case YB.ArrowDown:if(e.preventDefault(),e.stopPropagation(),_B(t,fB.Next|fB.WrapAround)===mB.Success){let e=l.value.find((e=>{var t;return e.element===(null==(t=cB(e.element))?void 0:t.activeElement)}));e&&h.change(e.propsRef.value)}break;case YB.Space:{e.preventDefault(),e.stopPropagation();let t=l.value.find((e=>{var t;return e.element===(null==(t=cB(e.element))?void 0:t.activeElement)}));t&&h.change(t.propsRef.value)}}}js(PF,h),MB({container:hc((()=>aB(s))),accept:e=>"radio"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let m=hc((()=>{var e;return null==(e=aB(s))?void 0:e.closest("form")}));return Yi((()=>{ul([m],(()=>{if(m.value&&void 0!==e.defaultValue)return m.value.addEventListener("reset",t),()=>{var e;null==(e=m.value)||e.removeEventListener("reset",t)};function t(){h.change(e.defaultValue)}}),{immediate:!0})})),()=>{let{disabled:t,name:a,form:o,...l}=e,p={ref:s,id:i,role:"radiogroup","aria-labelledby":c.value,"aria-describedby":u.value,onKeydown:f};return fc(Sl,[...null!=a&&null!=d.value?rU({[a]:d.value}).map((([e,r])=>fc(HB,QB({features:qB.Hidden,key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,disabled:t,name:e,value:r})))):[],jB({ourProps:p,theirProps:{...r,...zB(l,["modelValue","defaultValue","by"])},slot:{},attrs:r,slots:n,name:"RadioGroup"})])}}});var RF,MF=((RF=MF||{})[RF.Empty=1]="Empty",RF[RF.Active=2]="Active",RF);let NF=Li({name:"RadioGroupOption",props:{as:{type:[Object,String],default:"div"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:n}){var a;let o=null!=(a=e.id)?a:`headlessui-radiogroup-option-${nB()}`,i=DF("RadioGroupOption"),s=TF({name:"RadioGroupLabel"}),l=SU({name:"RadioGroupDescription"}),c=So(null),u=hc((()=>({value:e.value,disabled:e.disabled}))),d=So(1);n({el:c,$el:c});let p=hc((()=>aB(c)));Yi((()=>i.registerOption({id:o,element:p,propsRef:u}))),ts((()=>i.unregisterOption(o)));let h=hc((()=>{var e;return(null==(e=i.firstOption.value)?void 0:e.id)===o})),f=hc((()=>i.disabled.value||e.disabled)),m=hc((()=>i.compare(Oo(i.value.value),Oo(e.value)))),g=hc((()=>f.value?-1:m.value||!i.containsCheckedOption.value&&h.value?0:-1));function v(){var t;i.change(e.value)&&(d.value|=2,null==(t=aB(c))||t.focus())}function b(){d.value|=2}function y(){d.value&=-3}return()=>{let{value:n,disabled:a,...i}=e,u={checked:m.value,disabled:f.value,active:Boolean(2&d.value)};return jB({ourProps:{id:o,ref:c,role:"radio","aria-checked":m.value?"true":"false","aria-labelledby":s.value,"aria-describedby":l.value,"aria-disabled":!!f.value||void 0,tabIndex:g.value,onClick:f.value?void 0:v,onFocus:f.value?void 0:b,onBlur:f.value?void 0:y},theirProps:i,slot:u,attrs:t,slots:r,name:"RadioGroupOption"})}}}),IF=AF,LF=Li({props:{onFocus:{type:Function,required:!0}},setup(e){let t=So(!0);return()=>t.value?fc(HB,{as:"button",type:"button",features:qB.Focusable,onFocus(r){r.preventDefault();let n,a=50;n=requestAnimationFrame((function r(){var o;if(!(a--<=0))return null!=(o=e.onFocus)&&o.call(e)?(t.value=!1,void cancelAnimationFrame(n)):void(n=requestAnimationFrame(r));n&&cancelAnimationFrame(n)}))}}):null}});var jF,BF=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(BF||{}),UF=((jF=UF||{})[jF.Less=-1]="Less",jF[jF.Equal=0]="Equal",jF[jF.Greater=1]="Greater",jF);let FF=Symbol("TabsContext");function QF(e){let t=Bs(FF,null);if(null===t){let t=new Error(`<${e} /> is missing a parent <TabGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,QF),t}return t}let zF=Symbol("TabsSSRContext"),qF=Li({name:"TabGroup",emits:{change:e=>!0},props:{as:{type:[Object,String],default:"template"},selectedIndex:{type:[Number],default:null},defaultIndex:{type:[Number],default:0},vertical:{type:[Boolean],default:!1},manual:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:r,emit:n}){var a;let o=So(null!=(a=e.selectedIndex)?a:e.defaultIndex),i=So([]),s=So([]),l=hc((()=>null!==e.selectedIndex)),c=hc((()=>l.value?e.selectedIndex:o.value));function u(e){var t;let r=SB(d.tabs.value,aB),n=SB(d.panels.value,aB),a=r.filter((e=>{var t;return!(null!=(t=aB(e))&&t.hasAttribute("disabled"))}));if(e<0||e>r.length-1){let t=oB(null===o.value?0:Math.sign(e-o.value),{[-1]:()=>1,0:()=>oB(Math.sign(e),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0}),i=oB(t,{0:()=>r.indexOf(a[0]),1:()=>r.indexOf(a[a.length-1])});-1!==i&&(o.value=i),d.tabs.value=r,d.panels.value=n}else{let i=r.slice(0,e),s=[...r.slice(e),...i].find((e=>a.includes(e)));if(!s)return;let l=null!=(t=r.indexOf(s))?t:d.selectedIndex.value;-1===l&&(l=d.selectedIndex.value),o.value=l,d.tabs.value=r,d.panels.value=n}}let d={selectedIndex:hc((()=>{var t,r;return null!=(r=null!=(t=o.value)?t:e.defaultIndex)?r:null})),orientation:hc((()=>e.vertical?"vertical":"horizontal")),activation:hc((()=>e.manual?"manual":"auto")),tabs:i,panels:s,setSelectedIndex(e){c.value!==e&&n("change",e),l.value||u(e)},registerTab(e){var t;if(i.value.includes(e))return;let r=i.value[o.value];if(i.value.push(e),i.value=SB(i.value,aB),!l.value){let e=null!=(t=i.value.indexOf(r))?t:o.value;-1!==e&&(o.value=e)}},unregisterTab(e){let t=i.value.indexOf(e);-1!==t&&i.value.splice(t,1)},registerPanel(e){s.value.includes(e)||(s.value.push(e),s.value=SB(s.value,aB))},unregisterPanel(e){let t=s.value.indexOf(e);-1!==t&&s.value.splice(t,1)}};js(FF,d);let p=So({tabs:[],panels:[]}),h=So(!1);Yi((()=>{h.value=!0})),js(zF,hc((()=>h.value?null:p.value)));let f=hc((()=>e.selectedIndex));return Yi((()=>{ul([f],(()=>{var t;return u(null!=(t=e.selectedIndex)?t:e.defaultIndex)}),{immediate:!0})})),cl((()=>{if(!l.value||null==c.value||d.tabs.value.length<=0)return;let e=SB(d.tabs.value,aB);e.some(((e,t)=>aB(d.tabs.value[t])!==aB(e)))&&d.setSelectedIndex(e.findIndex((e=>aB(e)===aB(d.tabs.value[c.value]))))})),()=>{let n={selectedIndex:o.value};return fc(Sl,[i.value.length<=0&&fc(LF,{onFocus:()=>{for(let e of i.value){let t=aB(e);if(0===(null==t?void 0:t.tabIndex))return t.focus(),!0}return!1}}),jB({theirProps:{...r,...zB(e,["selectedIndex","defaultIndex","manual","vertical","onChange"])},ourProps:{},slot:n,slots:t,attrs:r,name:"TabGroup"})])}}}),HF=Li({name:"TabList",props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:r}){let n=QF("TabList");return()=>{let a={selectedIndex:n.selectedIndex.value};return jB({ourProps:{role:"tablist","aria-orientation":n.orientation.value},theirProps:e,slot:a,attrs:t,slots:r,name:"TabList"})}}}),VF=Li({name:"Tab",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:n}){var a;let o=null!=(a=e.id)?a:`headlessui-tabs-tab-${nB()}`,i=QF("Tab"),s=So(null);n({el:s,$el:s}),Yi((()=>i.registerTab(s))),ts((()=>i.unregisterTab(s)));let l=Bs(zF),c=hc((()=>{if(l.value){let e=l.value.tabs.indexOf(o);return-1===e?l.value.tabs.push(o)-1:e}return-1})),u=hc((()=>{let e=i.tabs.value.indexOf(s);return-1===e?c.value:e})),d=hc((()=>u.value===i.selectedIndex.value));function p(e){var t;let r=e();if(r===mB.Success&&"auto"===i.activation.value){let e=null==(t=cB(s))?void 0:t.activeElement,r=i.tabs.value.findIndex((t=>aB(t)===e));-1!==r&&i.setSelectedIndex(r)}return r}function h(e){let t=i.tabs.value.map((e=>aB(e))).filter(Boolean);if(e.key===YB.Space||e.key===YB.Enter)return e.preventDefault(),e.stopPropagation(),void i.setSelectedIndex(u.value);switch(e.key){case YB.Home:case YB.PageUp:return e.preventDefault(),e.stopPropagation(),p((()=>_B(t,fB.First)));case YB.End:case YB.PageDown:return e.preventDefault(),e.stopPropagation(),p((()=>_B(t,fB.Last)))}return p((()=>oB(i.orientation.value,{vertical:()=>e.key===YB.ArrowUp?_B(t,fB.Previous|fB.WrapAround):e.key===YB.ArrowDown?_B(t,fB.Next|fB.WrapAround):mB.Error,horizontal:()=>e.key===YB.ArrowLeft?_B(t,fB.Previous|fB.WrapAround):e.key===YB.ArrowRight?_B(t,fB.Next|fB.WrapAround):mB.Error})))===mB.Success?e.preventDefault():void 0}let f=So(!1);function m(){var t;f.value||(f.value=!0,!e.disabled&&(null==(t=aB(s))||t.focus({preventScroll:!0}),i.setSelectedIndex(u.value),Kj((()=>{f.value=!1}))))}function g(e){e.preventDefault()}let v=DB(hc((()=>({as:e.as,type:t.type}))),s);return()=>{var n,a;let l={selected:d.value,disabled:null!=(n=e.disabled)&&n},{...c}=e;return jB({ourProps:{ref:s,onKeydown:h,onMousedown:g,onClick:m,id:o,role:"tab",type:v.value,"aria-controls":null==(a=aB(i.panels.value[u.value]))?void 0:a.id,"aria-selected":d.value,tabIndex:d.value?0:-1,disabled:!!e.disabled||void 0},theirProps:c,slot:l,attrs:t,slots:r,name:"Tab"})}}}),ZF=Li({name:"TabPanels",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:r}){let n=QF("TabPanels");return()=>{let a={selectedIndex:n.selectedIndex.value};return jB({theirProps:e,ourProps:{},slot:a,attrs:r,slots:t,name:"TabPanels"})}}}),WF=Li({name:"TabPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null},tabIndex:{type:Number,default:0}},setup(e,{attrs:t,slots:r,expose:n}){var a;let o=null!=(a=e.id)?a:`headlessui-tabs-panel-${nB()}`,i=QF("TabPanel"),s=So(null);n({el:s,$el:s}),Yi((()=>i.registerPanel(s))),ts((()=>i.unregisterPanel(s)));let l=Bs(zF),c=hc((()=>{if(l.value){let e=l.value.panels.indexOf(o);return-1===e?l.value.panels.push(o)-1:e}return-1})),u=hc((()=>{let e=i.panels.value.indexOf(s);return-1===e?c.value:e})),d=hc((()=>u.value===i.selectedIndex.value));return()=>{var n;let a={selected:d.value},{tabIndex:l,...c}=e,p={ref:s,id:o,role:"tabpanel","aria-labelledby":null==(n=aB(i.tabs.value[u.value]))?void 0:n.id,tabIndex:d.value?l:-1};return d.value||!e.unmount||e.static?jB({ourProps:p,theirProps:c,slot:a,attrs:t,slots:r,features:IB.Static|IB.RenderStrategy,visible:d.value,name:"TabPanel"}):fc(HB,{as:"span","aria-hidden":!0,...p})}}});function XF(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=XF(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function GF(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=XF(e))&&(n&&(n+=" "),n+=t);return n}const YF=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,KF=e=>{const t=rQ(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{const r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),JF(r,t)||tQ(e)},getConflictingClassGroupIds:(e,t)=>{const a=r[e]||[];return t&&n[e]?[...a,...n[e]]:a}}},JF=(e,t)=>{var r;if(0===e.length)return t.classGroupId;const n=e[0],a=t.nextPart.get(n),o=a?JF(e.slice(1),a):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return null==(r=t.validators.find((({validator:e})=>e(i))))?void 0:r.classGroupId},eQ=/^\[(.+)\]$/,tQ=e=>{if(eQ.test(e)){const t=eQ.exec(e)[1],r=null==t?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},rQ=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return iQ(Object.entries(e.classGroups),r).forEach((([e,r])=>{nQ(r,n,e,t)})),n},nQ=(e,t,r,n)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return oQ(e)?void nQ(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach((([e,a])=>{nQ(a,aQ(t,e),r,n)}))}else(""===e?t:aQ(t,e)).classGroupId=r}))},aQ=(e,t)=>{let r=e;return t.split("-").forEach((e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)})),r},oQ=e=>e.isThemeGetter,iQ=(e,t)=>t?e.map((([e,r])=>[e,r.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,r])=>[t+e,r]))):e))])):e,sQ=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const a=(a,o)=>{r.set(a,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(a(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):a(e,t)}}},lQ=e=>{const{separator:t,experimentalParseClassName:r}=e,n=1===t.length,a=t[0],o=t.length,i=e=>{const r=[];let i,s=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===s){if(u===a&&(n||e.slice(c,c+o)===t)){r.push(e.slice(l,c)),l=c+o;continue}if("/"===u){i=c;continue}}"["===u?s++:"]"===u&&s--}const c=0===r.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:r,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:i&&i>l?i-l:void 0}};return r?e=>r({className:e,parseClassName:i}):i},cQ=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach((e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)})),t.push(...r.sort()),t},uQ=/\s+/;function dQ(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=pQ(e))&&(n&&(n+=" "),n+=t);return n}const pQ=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=pQ(e[n]))&&(r&&(r+=" "),r+=t);return r};function hQ(e,...t){let r,n,a,o=function(s){const l=t.reduce(((e,t)=>t(e)),e());return r=(e=>({cache:sQ(e.cacheSize),parseClassName:lQ(e),...KF(e)}))(l),n=r.cache.get,a=r.cache.set,o=i,i(s)};function i(e){const t=n(e);if(t)return t;const o=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a}=t,o=[],i=e.trim().split(uQ);let s="";for(let e=i.length-1;e>=0;e-=1){const t=i[e],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=r(t);let p=Boolean(d),h=n(p?u.substring(0,d):u);if(!h){if(!p){s=t+(s.length>0?" "+s:s);continue}if(h=n(u),!h){s=t+(s.length>0?" "+s:s);continue}p=!1}const f=cQ(l).join(":"),m=c?f+"!":f,g=m+h;if(o.includes(g))continue;o.push(g);const v=a(h,p);for(let e=0;e<v.length;++e){const t=v[e];o.push(m+t)}s=t+(s.length>0?" "+s:s)}return s})(e,r);return a(e,o),o}return function(){return o(dQ.apply(null,arguments))}}const fQ=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},mQ=/^\[(?:([a-z-]+):)?(.+)\]$/i,gQ=/^\d+\/\d+$/,vQ=new Set(["px","full","screen"]),bQ=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yQ=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,OQ=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,wQ=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xQ=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,kQ=e=>_Q(e)||vQ.has(e)||gQ.test(e),SQ=e=>jQ(e,"length",BQ),_Q=e=>Boolean(e)&&!Number.isNaN(Number(e)),EQ=e=>jQ(e,"number",_Q),TQ=e=>Boolean(e)&&Number.isInteger(Number(e)),AQ=e=>e.endsWith("%")&&_Q(e.slice(0,-1)),CQ=e=>mQ.test(e),PQ=e=>bQ.test(e),DQ=new Set(["length","size","percentage"]),$Q=e=>jQ(e,DQ,UQ),RQ=e=>jQ(e,"position",UQ),MQ=new Set(["image","url"]),NQ=e=>jQ(e,MQ,QQ),IQ=e=>jQ(e,"",FQ),LQ=()=>!0,jQ=(e,t,r)=>{const n=mQ.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))},BQ=e=>yQ.test(e)&&!OQ.test(e),UQ=()=>!1,FQ=e=>wQ.test(e),QQ=e=>xQ.test(e),zQ=()=>{const e=fQ("colors"),t=fQ("spacing"),r=fQ("blur"),n=fQ("brightness"),a=fQ("borderColor"),o=fQ("borderRadius"),i=fQ("borderSpacing"),s=fQ("borderWidth"),l=fQ("contrast"),c=fQ("grayscale"),u=fQ("hueRotate"),d=fQ("invert"),p=fQ("gap"),h=fQ("gradientColorStops"),f=fQ("gradientColorStopPositions"),m=fQ("inset"),g=fQ("margin"),v=fQ("opacity"),b=fQ("padding"),y=fQ("saturate"),O=fQ("scale"),w=fQ("sepia"),x=fQ("skew"),k=fQ("space"),S=fQ("translate"),_=()=>["auto",CQ,t],E=()=>[CQ,t],T=()=>["",kQ,SQ],A=()=>["auto",_Q,CQ],C=()=>["","0",CQ],P=()=>[_Q,CQ];return{cacheSize:500,separator:":",theme:{colors:[LQ],spacing:[kQ,SQ],blur:["none","",PQ,CQ],brightness:P(),borderColor:[e],borderRadius:["none","","full",PQ,CQ],borderSpacing:E(),borderWidth:T(),contrast:P(),grayscale:C(),hueRotate:P(),invert:C(),gap:E(),gradientColorStops:[e],gradientColorStopPositions:[AQ,SQ],inset:_(),margin:_(),opacity:P(),padding:E(),saturate:P(),scale:P(),sepia:C(),skew:P(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",CQ]}],container:["container"],columns:[{columns:[PQ]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",CQ]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",TQ,CQ]}],basis:[{basis:_()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",CQ]}],grow:[{grow:C()}],shrink:[{shrink:C()}],order:[{order:["first","last","none",TQ,CQ]}],"grid-cols":[{"grid-cols":[LQ]}],"col-start-end":[{col:["auto",{span:["full",TQ,CQ]},CQ]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[LQ]}],"row-start-end":[{row:["auto",{span:[TQ,CQ]},CQ]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",CQ]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",CQ]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",CQ,t]}],"min-w":[{"min-w":[CQ,t,"min","max","fit"]}],"max-w":[{"max-w":[CQ,t,"none","full","min","max","fit","prose",{screen:[PQ]},PQ]}],h:[{h:[CQ,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[CQ,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[CQ,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[CQ,t,"auto","min","max","fit"]}],"font-size":[{text:["base",PQ,SQ]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",EQ]}],"font-family":[{font:[LQ]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",CQ]}],"line-clamp":[{"line-clamp":["none",_Q,EQ]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",kQ,CQ]}],"list-image":[{"list-image":["none",CQ]}],"list-style-type":[{list:["none","disc","decimal",CQ]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",kQ,SQ]}],"underline-offset":[{"underline-offset":["auto",kQ,CQ]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",CQ]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",CQ]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",RQ]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",$Q]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},NQ]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[kQ,CQ]}],"outline-w":[{outline:[kQ,SQ]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[kQ,SQ]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",PQ,IQ]}],"shadow-color":[{shadow:[LQ]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",PQ,CQ]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",CQ]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",CQ]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",CQ]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[O]}],"scale-x":[{"scale-x":[O]}],"scale-y":[{"scale-y":[O]}],rotate:[{rotate:[TQ,CQ]}],"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}],"skew-x":[{"skew-x":[x]}],"skew-y":[{"skew-y":[x]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",CQ]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",CQ]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",CQ]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[kQ,SQ,EQ]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},qQ=(e,t,r)=>{void 0!==r&&(e[t]=r)},HQ=(e,t)=>{if(t)for(const r in t)qQ(e,r,t[r])},VQ=(e,t)=>{if(t)for(const r in t){const n=t[r];void 0!==n&&(e[r]=(e[r]||[]).concat(n))}},ZQ=((e,...t)=>"function"==typeof e?hQ(zQ,e,...t):hQ((()=>((e,{cacheSize:t,prefix:r,separator:n,experimentalParseClassName:a,extend:o={},override:i={}})=>{qQ(e,"cacheSize",t),qQ(e,"prefix",r),qQ(e,"separator",n),qQ(e,"experimentalParseClassName",a);for(const t in i)HQ(e[t],i[t]);for(const t in o)VQ(e[t],o[t]);return e})(zQ(),e)),...t))({extend:{classGroups:{"font-size":["text-3xs","text-xxs"],"font-weight":["font-sidebar","font-sidebar-active"]}}}),{cva:WQ,cx:XQ}=(e=>{const t=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a,o;return void 0!==(null==e||null===(a=e.hooks)||void 0===a?void 0:a["cx:done"])?null==e?void 0:e.hooks["cx:done"](GF(r)):void 0!==(null==e||null===(o=e.hooks)||void 0===o?void 0:o.onComplete)?null==e?void 0:e.hooks.onComplete(GF(r)):GF(r)};return{compose:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return e=>{const n=Object.fromEntries(Object.entries(e||{}).filter((e=>{let[t]=e;return!["class","className"].includes(t)})));return t(r.map((e=>e(n))),null==e?void 0:e.class,null==e?void 0:e.className)}},cva:e=>r=>{var n;if(null==(null==e?void 0:e.variants))return t(null==e?void 0:e.base,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:a,defaultVariants:o}=e,i=Object.keys(a).map((e=>{const t=null==r?void 0:r[e],n=null==o?void 0:o[e],i=YF(t)||YF(n);return a[e][i]})),s={...o,...r&&Object.entries(r).reduce(((e,t)=>{let[r,n]=t;return void 0===n?e:{...e,[r]:n}}),{})},l=null==e||null===(n=e.compoundVariants)||void 0===n?void 0:n.reduce(((e,t)=>{let{class:r,className:n,...a}=t;return Object.entries(a).every((e=>{let[t,r]=e;const n=s[t];return Array.isArray(r)?r.includes(n):n===r}))?[...e,r,n]:e}),[]);return t(null==e?void 0:e.base,i,l,null==r?void 0:r.class,null==r?void 0:r.className)},cx:t}})({hooks:{onComplete:e=>ZQ(e)}});function GQ(){const e=Os(),t=hc((()=>{const{class:t,...r}=e;return{class:t||"",rest:r}}));return{cx:function(...e){return{class:XQ(...e,t.value.class),...t.value.rest}},classCx:function(...e){return{class:XQ(...e,t.value.class)}},otherAttrs:hc((()=>t.value.rest))}}const YQ={solid:["scalar-button-solid","bg-b-btn text-c-btn shadow-sm focus-visible:border-c-btn active:bg-b-btn active:shadow-none hover:bg-h-btn outline-offset-1"],outlined:["scalar-button-outlined","active:bg-btn-1 border border-solid border-border bg-b-1 text-c-1 hover:bg-b-2 shadow"],ghost:["scalar-button-ghost","bg-transparent text-c-3 active:text-c-1 hover:text-c-1"],danger:["scalar-button-danger","bg-c-danger text-white active:brightness-90 hover:brightness-90"]},KQ=WQ({base:"scalar-button flex cursor-pointer items-center justify-center rounded font-medium -outline-offset-1",variants:{disabled:{true:"bg-b-2 text-color-3 shadow-none"},fullWidth:{true:"w-full"},size:{sm:"px-2 py-1 text-xs",md:"h-10 px-6 text-sm"},variant:YQ},compoundVariants:[{disabled:!0,variant:["solid","outlined","ghost","danger"],class:"bg-b-2 text-c-3 shadow-none hover:bg-b-[_] cursor-not-allowed active:bg-b-[_] hover:text-c-[_] active:text-c-[_]"}]}),JQ={key:0,class:"circular-loader"};function ez(){return uo({isValid:!1,isInvalid:!1,isLoading:!1,startLoading(){this.isLoading=!0},stopLoading(){this.isLoading=!1},validate(e=800,t){this.isInvalid=!1,this.isValid=!0;const r=t?e-300:e;return new Promise((e=>setTimeout(t?()=>this.clear().then((()=>e(!0))):()=>e(!0),r)))},invalidate(e=1100,t){this.isValid=!1,this.isInvalid=!0;const r=t?e-300:e;return new Promise((e=>setTimeout(t?()=>this.clear().then((()=>e(!0))):()=>e(!0),r)))},clear(e=300){return this.isValid=!1,this.isInvalid=!1,this.isLoading=!1,new Promise((t=>{setTimeout((()=>{t(!0)}),e)}))}})}const tz=Li({inheritAttrs:!1,__name:"ScalarLoading",props:{loadingState:{},size:{}},setup(e){const{cx:t}=GQ(),r=WQ({variants:{size:{xs:"size-3",sm:"size-3.5",md:"size-4",lg:"size-5",xl:"size-6","2xl":"size-8","3xl":"size-10",full:"size-full"}},defaultVariants:{size:"full"}});return(e,n)=>e.loadingState?(Pl(),Ml("div",qn(Gl({key:0},Ao(t)("loader-wrapper",Ao(r)({size:e.size})))),[(Pl(),Ml("svg",{class:zn(["svg-loader",{"icon-is-valid":e.loadingState.isValid,"icon-is-invalid":e.loadingState.isInvalid}]),viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[n[0]||(n[0]=Hl('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-f525638b></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-f525638b></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-f525638b></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-f525638b></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-f525638b></path>',5)),e.loadingState.isLoading?(Pl(),Ml("g",JQ,[Ul("circle",{class:zn(["loader-path",{"loader-path-off":e.loadingState.isValid||e.loadingState.isInvalid}]),cx:"50",cy:"50",fill:"none",r:"20","stroke-width":"3"},null,2)])):Vl("",!0)],2))],16)):Vl("",!0)}}),rz=(e,t)=>{const r=e.__vccOpts||e;for(const[e,n]of t)r[e]=n;return r},nz=rz(tz,[["__scopeId","data-v-f525638b"]]),az=["aria-disabled","type"],oz={key:3,class:"centered"},iz=Li({inheritAttrs:!1,__name:"ScalarButton",props:{disabled:{type:Boolean},fullWidth:{type:Boolean,default:!1},loading:{},size:{default:"md"},variant:{default:"solid"},type:{default:"button"}},setup(e){const{cx:t}=GQ();return(e,r)=>{var n,a,o,i;return Pl(),Ml("button",Gl({"aria-disabled":e.disabled||void 0,type:e.type},Ao(t)(Ao(KQ)({fullWidth:e.fullWidth,disabled:e.disabled,size:e.size,variant:e.variant}),{relative:null==(n=e.loading)?void 0:n.isLoading})),[e.$slots.icon?(Pl(),Ml("div",{key:0,class:zn(["mr-2 h-4 w-4",{invisible:null==(a=e.loading)?void 0:a.isLoading}])},[fs(e.$slots,"icon")],2)):Vl("",!0),e.loading?(Pl(),Ml("span",{key:1,class:zn({invisible:null==(o=e.loading)?void 0:o.isLoading})},[fs(e.$slots,"default")],2)):fs(e.$slots,"default",{key:2}),null!=(i=e.loading)&&i.isLoading?(Pl(),Ml("div",oz,[Fl(Ao(nz),{loadingState:e.loading,size:"xl"},null,8,["loadingState"])])):Vl("",!0)],16,az)}}}),sz=Symbol(),lz=Li({inheritAttrs:!1,__name:"ScalarCard",props:{label:{}},setup(e){const{id:t}=(()=>{const e=So();return js(sz,e),{id:e}})(),r=hc((()=>e.label?{"aria-label":e.label}:t.value?{"aria-labelledby":t.value}:{})),{cx:n}=GQ();return(e,t)=>(Pl(),Ml("section",qn(Ql({...r.value,...Ao(n)("scalar-card bg-b-2 flex flex-col divide-y rounded-lg border *:first:rounded-t-[inherit] *:last:rounded-b-[inherit]")})),[fs(e.$slots,"default")],16))}}),cz=Li({inheritAttrs:!1,__name:"ScalarCardSection",setup(e){const{cx:t}=GQ();return(e,r)=>(Pl(),Ml("div",qn(Ql(Ao(t)("scalar-card-content flex overflow-auto"))),[fs(e.$slots,"default")],16))}}),uz=["id"],dz={key:0,class:"flex"},pz=Li({inheritAttrs:!1,__name:"ScalarCardHeader",setup(e){const{cx:t}=GQ(),r=ji();return(e=>{const t=Bs(sz,void 0);t&&(t.value=e)})(r),(e,n)=>(Pl(),Nl(cz,qn(Ql(Ao(t)("scalar-card-header leading-[22px] font-medium py-[6.75px] px-3 shrink-0"))),{default:ci((()=>[Ul("div",{id:Ao(r),class:"scalar-card-header-title min-w-0 flex-1 truncate"},[fs(e.$slots,"default")],8,uz),e.$slots.actions?(Pl(),Ml("div",dz,[fs(e.$slots,"actions")])):Vl("",!0)])),_:3},16))}}),hz=Li({inheritAttrs:!1,__name:"ScalarCardFooter",setup(e){const{cx:t}=GQ();return(e,r)=>(Pl(),Nl(cz,qn(Ql(Ao(t)("scalar-card-footer"))),{default:ci((()=>[fs(e.$slots,"default")])),_:3},16))}}),fz={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `--\x3e` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `--\x3e` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `\x3c!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `\x3c!--`. Expected `--\x3e`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}},mz=/-[a-z]/g,gz=/%c(?:([-+])(\d+))?/g,vz=/%x/g,bz={2:!0,1:!1,0:null},yz={};function Oz(e){return e.charAt(1).toUpperCase()}function wz(e){const{emitParseErrors:t,...r}={...this.data("settings"),...e};this.parser=function(e,n){return function(e,t){const r=t||yz,n=r.onerror,a=e instanceof QE?e:new QE(e),o=r.fragment?TO:EO,i=String(a),s=o(i,{sourceCodeLocationInfo:!0,onParseError:r.onerror?function(e){const t=e.code,o=function(e){return e.replace(mz,Oz)}(t),s=r[o],l=null==s||s,c="number"==typeof l?l:l?1:0;if(c){const r=fz[o],i=new $E(u(r.reason),{place:{start:{line:e.startLine,column:e.startCol,offset:e.startOffset},end:{line:e.endLine,column:e.endCol,offset:e.endOffset}},ruleId:t,source:"hast-util-from-html"});a.path&&(i.file=a.path,i.name=a.path+":"+i.name),i.fatal=bz[c],i.note=u(r.description),i.url=!1===r.url?void 0:"https://html.spec.whatwg.org/multipage/parsing.html#parse-error-"+t,n(i)}function u(t){return t.replace(gz,(function(t,r,n){const a=(n?Number.parseInt(n,10):0)*("-"===r?-1:1);return function(e){return"`"===e?"` ` `":e}(i.charAt(e.startOffset+a))})).replace(vz,(function(){return"0x"+i.charCodeAt(e.startOffset).toString(16).toUpperCase()}))}}:null,scriptingEnabled:!1});return Sv(s,{file:a,space:r.space,verbose:r.verbose})}(e,{...r,onerror:t?function(e){n.path&&(e.name=n.path+":"+e.name,e.file=n.path),n.messages.push(e)}:void 0})}}function xz(e){return"text"===(null==e?void 0:e.type)}function kz(e){return"element"===(null==e?void 0:e.type)}function Sz(e){return{type:"text",value:e}}function _z(){return e=>{Xm(e,"element",((e,t,r)=>{if("element"===(null==r?void 0:r.type)&&"pre"===r.tagName&&"code"===e.tagName){let t=0;e.children=Ez(e),e.children.forEach((e=>{if("element"===e.type&&"span"===e.tagName){const r=e.children[e.children.length-1];r&&(!xz(r)||xz(r)&&!Az(r))&&(e.children.push({type:"text",value:"\n"}),t++)}})),e.properties.style=[`--line-count: ${t};`,`--line-digits: ${t.toString().length};`]}}))}}function Ez(e,t=[],r){const n=()=>t[t.length-1]??(t.push(Tz())&&t[t.length-1]||void 0);return e.children.forEach((a=>{var o;if(xz(a)&&Az(a)){const o=a.value.split(/\n/);o.forEach(((a,i)=>{var s,l;r?null==(s=n())||s.children.push({...e,children:[Sz(a)]}):null==(l=n())||l.children.push(Sz(a)),i!==o.length-1&&t.push(Tz())}))}else kz(a)&&a.children.some(Az)?Ez(a,t,!0):null==(o=n())||o.children.push(a)})),t}function Tz(...e){return{type:"element",tagName:"span",properties:{class:["line"]},children:e}}function Az(e){return xz(e)&&/\r?\n/.test(e.value)||kz(e)&&e.children.some(Az)}function Cz(e={}){const t=hc((()=>e.label?{"aria-label":e.label}:{"aria-hidden":!0,role:"presentation"}));return{bind:hc((()=>({width:"1em",height:"1em",...t.value}))),weight:hc((()=>e.weight??"regular"))}}const Pz={key:0},Dz={key:1},$z={key:2},Rz={key:3},Mz={key:4},Nz={key:5},Iz=Li({name:"ScalarIconBook",props:{label:{},weight:{}},setup(e){const t=e,{bind:r,weight:n}=Cz(t);return(e,t)=>(Pl(),Ml("svg",Gl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},Ao(r)),[fs(e.$slots,"default"),"bold"===Ao(n)?(Pl(),Ml("g",Pz,t[0]||(t[0]=[Ul("path",{d:"M208,20H72A36,36,0,0,0,36,56V224a12,12,0,0,0,12,12H192a12,12,0,0,0,0-24H60v-4a12,12,0,0,1,12-12H208a12,12,0,0,0,12-12V32A12,12,0,0,0,208,20ZM196,172H72a35.59,35.59,0,0,0-12,2.06V56A12,12,0,0,1,72,44H196Z"},null,-1)]))):"duotone"===Ao(n)?(Pl(),Ml("g",Dz,t[1]||(t[1]=[Ul("path",{d:"M208,32V192H72a24,24,0,0,0-24,24V56A24,24,0,0,1,72,32Z",opacity:"0.2"},null,-1),Ul("path",{d:"M208,24H72A32,32,0,0,0,40,56V224a8,8,0,0,0,8,8H192a8,8,0,0,0,0-16H56a16,16,0,0,1,16-16H208a8,8,0,0,0,8-8V32A8,8,0,0,0,208,24Zm-8,160H72a31.82,31.82,0,0,0-16,4.29V56A16,16,0,0,1,72,40H200Z"},null,-1)]))):"fill"===Ao(n)?(Pl(),Ml("g",$z,t[2]||(t[2]=[Ul("path",{d:"M216,32V192a8,8,0,0,1-8,8H72a16,16,0,0,0-16,16H192a8,8,0,0,1,0,16H48a8,8,0,0,1-8-8V56A32,32,0,0,1,72,24H208A8,8,0,0,1,216,32Z"},null,-1)]))):"light"===Ao(n)?(Pl(),Ml("g",Rz,t[3]||(t[3]=[Ul("path",{d:"M208,26H72A30,30,0,0,0,42,56V224a6,6,0,0,0,6,6H192a6,6,0,0,0,0-12H54v-2a18,18,0,0,1,18-18H208a6,6,0,0,0,6-6V32A6,6,0,0,0,208,26Zm-6,160H72a29.87,29.87,0,0,0-18,6V56A18,18,0,0,1,72,38H202Z"},null,-1)]))):"regular"===Ao(n)?(Pl(),Ml("g",Mz,t[4]||(t[4]=[Ul("path",{d:"M208,24H72A32,32,0,0,0,40,56V224a8,8,0,0,0,8,8H192a8,8,0,0,0,0-16H56a16,16,0,0,1,16-16H208a8,8,0,0,0,8-8V32A8,8,0,0,0,208,24Zm-8,160H72a31.82,31.82,0,0,0-16,4.29V56A16,16,0,0,1,72,40H200Z"},null,-1)]))):"thin"===Ao(n)?(Pl(),Ml("g",Nz,t[5]||(t[5]=[Ul("path",{d:"M208,28H72A28,28,0,0,0,44,56V224a4,4,0,0,0,4,4H192a4,4,0,0,0,0-8H52v-4a20,20,0,0,1,20-20H208a4,4,0,0,0,4-4V32A4,4,0,0,0,208,28Zm-4,160H72a27.94,27.94,0,0,0-20,8.42V56A20,20,0,0,1,72,36H204Z"},null,-1)]))):Vl("",!0)],16))}}),Lz={key:0},jz={key:1},Bz={key:2},Uz={key:3},Fz={key:4},Qz={key:5},zz=Li({name:"ScalarIconBracketsCurly",props:{label:{},weight:{}},setup(e){const t=e,{bind:r,weight:n}=Cz(t);return(e,t)=>(Pl(),Ml("svg",Gl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},Ao(r)),[fs(e.$slots,"default"),"bold"===Ao(n)?(Pl(),Ml("g",Lz,t[0]||(t[0]=[Ul("path",{d:"M54.8,119.49A35.06,35.06,0,0,1,49.05,128a35.06,35.06,0,0,1,5.75,8.51C60,147.24,60,159.83,60,172c0,25.94,1.84,32,20,32a12,12,0,0,1,0,24c-19.14,0-32.2-6.9-38.8-20.51C36,196.76,36,184.17,36,172c0-25.94-1.84-32-20-32a12,12,0,0,1,0-24c18.16,0,20-6.06,20-32,0-12.17,0-24.76,5.2-35.49C47.8,34.9,60.86,28,80,28a12,12,0,0,1,0,24c-18.16,0-20,6.06-20,32C60,96.17,60,108.76,54.8,119.49ZM240,116c-18.16,0-20-6.06-20-32,0-12.17,0-24.76-5.2-35.49C208.2,34.9,195.14,28,176,28a12,12,0,0,0,0,24c18.16,0,20,6.06,20,32,0,12.17,0,24.76,5.2,35.49A35.06,35.06,0,0,0,207,128a35.06,35.06,0,0,0-5.75,8.51C196,147.24,196,159.83,196,172c0,25.94-1.84,32-20,32a12,12,0,0,0,0,24c19.14,0,32.2-6.9,38.8-20.51C220,196.76,220,184.17,220,172c0-25.94,1.84-32,20-32a12,12,0,0,0,0-24Z"},null,-1)]))):"duotone"===Ao(n)?(Pl(),Ml("g",jz,t[1]||(t[1]=[Ul("path",{d:"M240,128c-64,0,0,88-64,88H80c-64,0,0-88-64-88,64,0,0-88,64-88h96C240,40,176,128,240,128Z",opacity:"0.2"},null,-1),Ul("path",{d:"M43.18,128a29.78,29.78,0,0,1,8,10.26c4.8,9.9,4.8,22,4.8,33.74,0,24.31,1,36,24,36a8,8,0,0,1,0,16c-17.48,0-29.32-6.14-35.2-18.26-4.8-9.9-4.8-22-4.8-33.74,0-24.31-1-36-24-36a8,8,0,0,1,0-16c23,0,24-11.69,24-36,0-11.72,0-23.84,4.8-33.74C50.68,38.14,62.52,32,80,32a8,8,0,0,1,0,16C57,48,56,59.69,56,84c0,11.72,0,23.84-4.8,33.74A29.78,29.78,0,0,1,43.18,128ZM240,120c-23,0-24-11.69-24-36,0-11.72,0-23.84-4.8-33.74C205.32,38.14,193.48,32,176,32a8,8,0,0,0,0,16c23,0,24,11.69,24,36,0,11.72,0,23.84,4.8,33.74a29.78,29.78,0,0,0,8,10.26,29.78,29.78,0,0,0-8,10.26c-4.8,9.9-4.8,22-4.8,33.74,0,24.31-1,36-24,36a8,8,0,0,0,0,16c17.48,0,29.32-6.14,35.2-18.26,4.8-9.9,4.8-22,4.8-33.74,0-24.31,1-36,24-36a8,8,0,0,0,0-16Z"},null,-1)]))):"fill"===Ao(n)?(Pl(),Ml("g",Bz,t[2]||(t[2]=[Ul("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM88,155.84c.29,14.26.41,20.16,16,20.16a8,8,0,0,1,0,16c-31.27,0-31.72-22.43-32-35.84C71.71,141.9,71.59,136,56,136a8,8,0,0,1,0-16c15.59,0,15.71-5.9,16-20.16C72.28,86.43,72.73,64,104,64a8,8,0,0,1,0,16c-15.59,0-15.71,5.9-16,20.16-.17,8.31-.41,20.09-8,27.84C87.59,135.75,87.83,147.53,88,155.84ZM200,136c-15.59,0-15.71,5.9-16,20.16-.28,13.41-.73,35.84-32,35.84a8,8,0,0,1,0-16c15.59,0,15.71-5.9,16-20.16.17-8.31.41-20.09,8-27.84-7.6-7.75-7.84-19.53-8-27.84C167.71,85.9,167.59,80,152,80a8,8,0,0,1,0-16c31.27,0,31.72,22.43,32,35.84.29,14.26.41,20.16,16,20.16a8,8,0,0,1,0,16Z"},null,-1)]))):"light"===Ao(n)?(Pl(),Ml("g",Uz,t[3]||(t[3]=[Ul("path",{d:"M39.91,128a27.68,27.68,0,0,1,9.49,11.13C54,148.62,54,160.51,54,172c0,24.27,1.21,38,26,38a6,6,0,0,1,0,12c-16.88,0-27.81-5.6-33.4-17.13C42,195.38,42,183.49,42,172c0-24.27-1.21-38-26-38a6,6,0,0,1,0-12c24.79,0,26-13.73,26-38,0-11.49,0-23.38,4.6-32.87C52.19,39.6,63.12,34,80,34a6,6,0,0,1,0,12C55.21,46,54,59.73,54,84c0,11.49,0,23.38-4.6,32.87A27.68,27.68,0,0,1,39.91,128ZM240,122c-24.79,0-26-13.73-26-38,0-11.49,0-23.38-4.6-32.87C203.81,39.6,192.88,34,176,34a6,6,0,0,0,0,12c24.79,0,26,13.73,26,38,0,11.49,0,23.38,4.6,32.87A27.68,27.68,0,0,0,216.09,128a27.68,27.68,0,0,0-9.49,11.13C202,148.62,202,160.51,202,172c0,24.27-1.21,38-26,38a6,6,0,0,0,0,12c16.88,0,27.81-5.6,33.4-17.13,4.6-9.49,4.6-21.38,4.6-32.87,0-24.27,1.21-38,26-38a6,6,0,0,0,0-12Z"},null,-1)]))):"regular"===Ao(n)?(Pl(),Ml("g",Fz,t[4]||(t[4]=[Ul("path",{d:"M43.18,128a29.78,29.78,0,0,1,8,10.26c4.8,9.9,4.8,22,4.8,33.74,0,24.31,1,36,24,36a8,8,0,0,1,0,16c-17.48,0-29.32-6.14-35.2-18.26-4.8-9.9-4.8-22-4.8-33.74,0-24.31-1-36-24-36a8,8,0,0,1,0-16c23,0,24-11.69,24-36,0-11.72,0-23.84,4.8-33.74C50.68,38.14,62.52,32,80,32a8,8,0,0,1,0,16C57,48,56,59.69,56,84c0,11.72,0,23.84-4.8,33.74A29.78,29.78,0,0,1,43.18,128ZM240,120c-23,0-24-11.69-24-36,0-11.72,0-23.84-4.8-33.74C205.32,38.14,193.48,32,176,32a8,8,0,0,0,0,16c23,0,24,11.69,24,36,0,11.72,0,23.84,4.8,33.74a29.78,29.78,0,0,0,8,10.26,29.78,29.78,0,0,0-8,10.26c-4.8,9.9-4.8,22-4.8,33.74,0,24.31-1,36-24,36a8,8,0,0,0,0,16c17.48,0,29.32-6.14,35.2-18.26,4.8-9.9,4.8-22,4.8-33.74,0-24.31,1-36,24-36a8,8,0,0,0,0-16Z"},null,-1)]))):"thin"===Ao(n)?(Pl(),Ml("g",Qz,t[5]||(t[5]=[Ul("path",{d:"M35.89,128C52,136.23,52,155.64,52,172c0,24.8,1.35,40,28,40a4,4,0,0,1,0,8c-36,0-36-26.61-36-48,0-24.8-1.35-40-28-40a4,4,0,0,1,0-8c26.65,0,28-15.2,28-40,0-21.39,0-48,36-48a4,4,0,0,1,0,8C53.35,44,52,59.2,52,84,52,100.36,52,119.77,35.89,128ZM240,124c-26.65,0-28-15.2-28-40,0-21.39,0-48-36-48a4,4,0,0,0,0,8c26.65,0,28,15.2,28,40,0,16.36,0,35.77,16.11,44C204,136.23,204,155.64,204,172c0,24.8-1.35,40-28,40a4,4,0,0,0,0,8c36,0,36-26.61,36-48,0-24.8,1.35-40,28-40a4,4,0,0,0,0-8Z"},null,-1)]))):Vl("",!0)],16))}}),qz={key:0},Hz={key:1},Vz={key:2},Zz={key:3},Wz={key:4},Xz={key:5},Gz=Li({name:"ScalarIconCaretDown",props:{label:{},weight:{}},setup(e){const t=e,{bind:r,weight:n}=Cz(t);return(e,t)=>(Pl(),Ml("svg",Gl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},Ao(r)),[fs(e.$slots,"default"),"bold"===Ao(n)?(Pl(),Ml("g",qz,t[0]||(t[0]=[Ul("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"},null,-1)]))):"duotone"===Ao(n)?(Pl(),Ml("g",Hz,t[1]||(t[1]=[Ul("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"},null,-1),Ul("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"},null,-1)]))):"fill"===Ao(n)?(Pl(),Ml("g",Vz,t[2]||(t[2]=[Ul("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"},null,-1)]))):"light"===Ao(n)?(Pl(),Ml("g",Zz,t[3]||(t[3]=[Ul("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"},null,-1)]))):"regular"===Ao(n)?(Pl(),Ml("g",Wz,t[4]||(t[4]=[Ul("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"},null,-1)]))):"thin"===Ao(n)?(Pl(),Ml("g",Xz,t[5]||(t[5]=[Ul("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"},null,-1)]))):Vl("",!0)],16))}}),Yz={key:0},Kz={key:1},Jz={key:2},eq={key:3},tq={key:4},rq={key:5},nq=Li({name:"ScalarIconCaretRight",props:{label:{},weight:{}},setup(e){const t=e,{bind:r,weight:n}=Cz(t);return(e,t)=>(Pl(),Ml("svg",Gl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},Ao(r)),[fs(e.$slots,"default"),"bold"===Ao(n)?(Pl(),Ml("g",Yz,t[0]||(t[0]=[Ul("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"},null,-1)]))):"duotone"===Ao(n)?(Pl(),Ml("g",Kz,t[1]||(t[1]=[Ul("path",{d:"M176,128,96,208V48Z",opacity:"0.2"},null,-1),Ul("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"},null,-1)]))):"fill"===Ao(n)?(Pl(),Ml("g",Jz,t[2]||(t[2]=[Ul("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"},null,-1)]))):"light"===Ao(n)?(Pl(),Ml("g",eq,t[3]||(t[3]=[Ul("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"},null,-1)]))):"regular"===Ao(n)?(Pl(),Ml("g",tq,t[4]||(t[4]=[Ul("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"},null,-1)]))):"thin"===Ao(n)?(Pl(),Ml("g",rq,t[5]||(t[5]=[Ul("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"},null,-1)]))):Vl("",!0)],16))}}),aq={key:0},oq={key:1},iq={key:2},sq={key:3},lq={key:4},cq={key:5},uq=Li({name:"ScalarIconCaretUpDown",props:{label:{},weight:{}},setup(e){const t=e,{bind:r,weight:n}=Cz(t);return(e,t)=>(Pl(),Ml("svg",Gl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},Ao(r)),[fs(e.$slots,"default"),"bold"===Ao(n)?(Pl(),Ml("g",aq,t[0]||(t[0]=[Ul("path",{d:"M184.49,167.51a12,12,0,0,1,0,17l-48,48a12,12,0,0,1-17,0l-48-48a12,12,0,0,1,17-17L128,207l39.51-39.52A12,12,0,0,1,184.49,167.51Zm-96-79L128,49l39.51,39.52a12,12,0,0,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,0,0,17,17Z"},null,-1)]))):"duotone"===Ao(n)?(Pl(),Ml("g",oq,t[1]||(t[1]=[Ul("path",{d:"M80,176h96l-48,48ZM128,32,80,80h96Z",opacity:"0.2"},null,-1),Ul("path",{d:"M176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Zm-48,44.69L99.31,184h57.38ZM80,88h96a8,8,0,0,0,5.66-13.66l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,80,88Zm48-44.69L156.69,72H99.31Z"},null,-1)]))):"fill"===Ao(n)?(Pl(),Ml("g",iq,t[2]||(t[2]=[Ul("path",{d:"M72.61,83.06a8,8,0,0,1,1.73-8.72l48-48a8,8,0,0,1,11.32,0l48,48A8,8,0,0,1,176,88H80A8,8,0,0,1,72.61,83.06ZM176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Z"},null,-1)]))):"light"===Ao(n)?(Pl(),Ml("g",sq,t[3]||(t[3]=[Ul("path",{d:"M180.24,171.76a6,6,0,0,1,0,8.48l-48,48a6,6,0,0,1-8.48,0l-48-48a6,6,0,0,1,8.48-8.48L128,215.51l43.76-43.75A6,6,0,0,1,180.24,171.76Zm-96-87.52L128,40.49l43.76,43.75a6,6,0,0,0,8.48-8.48l-48-48a6,6,0,0,0-8.48,0l-48,48a6,6,0,0,0,8.48,8.48Z"},null,-1)]))):"regular"===Ao(n)?(Pl(),Ml("g",lq,t[4]||(t[4]=[Ul("path",{d:"M181.66,170.34a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-48-48a8,8,0,0,1,11.32-11.32L128,212.69l42.34-42.35A8,8,0,0,1,181.66,170.34Zm-96-84.68L128,43.31l42.34,42.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,85.66Z"},null,-1)]))):"thin"===Ao(n)?(Pl(),Ml("g",cq,t[5]||(t[5]=[Ul("path",{d:"M178.83,173.17a4,4,0,0,1,0,5.66l-48,48a4,4,0,0,1-5.66,0l-48-48a4,4,0,0,1,5.66-5.66L128,218.34l45.17-45.17A4,4,0,0,1,178.83,173.17Zm-96-90.34L128,37.66l45.17,45.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66Z"},null,-1)]))):Vl("",!0)],16))}}),dq={key:0},pq={key:1},hq={key:2},fq={key:3},mq={key:4},gq={key:5},vq=Li({name:"ScalarIconCheck",props:{label:{},weight:{}},setup(e){const t=e,{bind:r,weight:n}=Cz(t);return(e,t)=>(Pl(),Ml("svg",Gl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},Ao(r)),[fs(e.$slots,"default"),"bold"===Ao(n)?(Pl(),Ml("g",dq,t[0]||(t[0]=[Ul("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"},null,-1)]))):"duotone"===Ao(n)?(Pl(),Ml("g",pq,t[1]||(t[1]=[Ul("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"},null,-1),Ul("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"},null,-1)]))):"fill"===Ao(n)?(Pl(),Ml("g",hq,t[2]||(t[2]=[Ul("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"},null,-1)]))):"light"===Ao(n)?(Pl(),Ml("g",fq,t[3]||(t[3]=[Ul("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"},null,-1)]))):"regular"===Ao(n)?(Pl(),Ml("g",mq,t[4]||(t[4]=[Ul("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"},null,-1)]))):"thin"===Ao(n)?(Pl(),Ml("g",gq,t[5]||(t[5]=[Ul("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"},null,-1)]))):Vl("",!0)],16))}}),bq={key:0},yq={key:1},Oq={key:2},wq={key:3},xq={key:4},kq={key:5},Sq=Li({name:"ScalarIconCopy",props:{label:{},weight:{}},setup(e){const t=e,{bind:r,weight:n}=Cz(t);return(e,t)=>(Pl(),Ml("svg",Gl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},Ao(r)),[fs(e.$slots,"default"),"bold"===Ao(n)?(Pl(),Ml("g",bq,t[0]||(t[0]=[Ul("path",{d:"M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z"},null,-1)]))):"duotone"===Ao(n)?(Pl(),Ml("g",yq,t[1]||(t[1]=[Ul("path",{d:"M216,40V168H168V88H88V40Z",opacity:"0.2"},null,-1),Ul("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"},null,-1)]))):"fill"===Ao(n)?(Pl(),Ml("g",Oq,t[2]||(t[2]=[Ul("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z"},null,-1)]))):"light"===Ao(n)?(Pl(),Ml("g",wq,t[3]||(t[3]=[Ul("path",{d:"M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z"},null,-1)]))):"regular"===Ao(n)?(Pl(),Ml("g",xq,t[4]||(t[4]=[Ul("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"},null,-1)]))):"thin"===Ao(n)?(Pl(),Ml("g",kq,t[5]||(t[5]=[Ul("path",{d:"M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z"},null,-1)]))):Vl("",!0)],16))}}),_q={key:0},Eq={key:1},Tq={key:2},Aq={key:3},Cq={key:4},Pq={key:5},Dq=Li({name:"ScalarIconEnvelopeSimple",props:{label:{},weight:{}},setup(e){const t=e,{bind:r,weight:n}=Cz(t);return(e,t)=>(Pl(),Ml("svg",Gl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},Ao(r)),[fs(e.$slots,"default"),"bold"===Ao(n)?(Pl(),Ml("g",_q,t[0]||(t[0]=[Ul("path",{d:"M224,44H32A12,12,0,0,0,20,56V192a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A12,12,0,0,0,224,44ZM193.15,68,128,127.72,62.85,68ZM44,188V83.28l75.89,69.57a12,12,0,0,0,16.22,0L212,83.28V188Z"},null,-1)]))):"duotone"===Ao(n)?(Pl(),Ml("g",Eq,t[1]||(t[1]=[Ul("path",{d:"M224,56l-96,88L32,56Z",opacity:"0.2"},null,-1),Ul("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"},null,-1)]))):"fill"===Ao(n)?(Pl(),Ml("g",Tq,t[2]||(t[2]=[Ul("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48Zm-8,144H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"},null,-1)]))):"light"===Ao(n)?(Pl(),Ml("g",Aq,t[3]||(t[3]=[Ul("path",{d:"M224,50H32a6,6,0,0,0-6,6V192a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A6,6,0,0,0,224,50ZM208.58,62,128,135.86,47.42,62ZM216,194H40a2,2,0,0,1-2-2V69.64l86,78.78a6,6,0,0,0,8.1,0L218,69.64V192A2,2,0,0,1,216,194Z"},null,-1)]))):"regular"===Ao(n)?(Pl(),Ml("g",Cq,t[4]||(t[4]=[Ul("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"},null,-1)]))):"thin"===Ao(n)?(Pl(),Ml("g",Pq,t[5]||(t[5]=[Ul("path",{d:"M224,52H32a4,4,0,0,0-4,4V192a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A4,4,0,0,0,224,52Zm-10.28,8L128,138.57,42.28,60ZM216,196H40a4,4,0,0,1-4-4V65.09L125.3,147a4,4,0,0,0,5.4,0L220,65.09V192A4,4,0,0,1,216,196Z"},null,-1)]))):Vl("",!0)],16))}}),$q={key:0},Rq={key:1},Mq={key:2},Nq={key:3},Iq={key:4},Lq={key:5},jq=Li({name:"ScalarIconGavel",props:{label:{},weight:{}},setup(e){const t=e,{bind:r,weight:n}=Cz(t);return(e,t)=>(Pl(),Ml("svg",Gl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},Ao(r)),[fs(e.$slots,"default"),"bold"===Ao(n)?(Pl(),Ml("g",$q,t[0]||(t[0]=[Ul("path",{d:"M246.14,113.86l-16-16a20,20,0,0,0-23.06-3.75l-45.2-45.2a20,20,0,0,0-3.74-23.06l-16-16a20,20,0,0,0-28.28,0l-64,64a20,20,0,0,0,0,28.28l16,16a20,20,0,0,0,23,3.79L29.36,181.38a32,32,0,0,0,45.26,45.26L134,167.21a20,20,0,0,0,3.81,22.94l16,16a20,20,0,0,0,28.29,0l64-64a20,20,0,0,0,0-28.29ZM80,98.34,69.64,88,128,29.65,138.34,40ZM57.64,209.67a8,8,0,0,1-11.31-11.32l59.52-59.52,11.31,11.32Zm92.7-60.29-43.72-43.72,39-39,43.72,43.72Zm17.65,37L157.65,176,216,117.66,226.34,128Z"},null,-1)]))):"duotone"===Ao(n)?(Pl(),Ml("g",Rq,t[1]||(t[1]=[Ul("path",{d:"M149.66,45.66l-64,64a8,8,0,0,1-11.32,0l-16-16a8,8,0,0,1,0-11.32l64-64a8,8,0,0,1,11.32,0l16,16A8,8,0,0,1,149.66,45.66Zm88,76.68-16-16a8,8,0,0,0-11.32,0l-64,64a8,8,0,0,0,0,11.32l16,16a8,8,0,0,0,11.32,0l64-64A8,8,0,0,0,237.66,122.34Z",opacity:"0.2"},null,-1),Ul("path",{d:"M243.32,116.69l-16-16a16,16,0,0,0-20.84-1.53L156.84,49.52a16,16,0,0,0-1.52-20.84l-16-16a16,16,0,0,0-22.63,0l-64,64a16,16,0,0,0,0,22.63l16,16a16,16,0,0,0,20.83,1.52L96.69,124,31.31,189.38A25,25,0,0,0,66.63,224.7L132,159.32l7.17,7.16a16,16,0,0,0,1.52,20.84l16,16a16,16,0,0,0,22.63,0l64-64A16,16,0,0,0,243.32,116.69ZM80,104,64,88l64-64,16,16ZM55.32,213.38a9,9,0,0,1-12.69,0,9,9,0,0,1,0-12.68L108,135.32,120.69,148ZM101,105.66,145.66,61,195,110.34,150.35,155ZM168,192l-16-16,4-4h0l56-56h0l4-4,16,16Z"},null,-1)]))):"fill"===Ao(n)?(Pl(),Ml("g",Mq,t[2]||(t[2]=[Ul("path",{d:"M52.69,99.31a16,16,0,0,1,0-22.63l64-64a16,16,0,0,1,22.63,22.63l-64,64a16,16,0,0,1-22.63,0Zm190.63,17.37a16,16,0,0,0-22.63,0l-64,64a16,16,0,0,0,0,22.63h0a16,16,0,0,0,22.63,0l64-64A16,16,0,0,0,243.32,116.68Zm-35.11-15.8L155.12,47.79a4,4,0,0,0-5.66,0L87.8,109.45a4,4,0,0,0,0,5.66L103,130.34,28.69,204.69a16,16,0,0,0,22.62,22.62L125.66,153l15.23,15.23a4,4,0,0,0,5.66,0l61.66-61.66A4,4,0,0,0,208.21,100.88Z"},null,-1)]))):"light"===Ao(n)?(Pl(),Ml("g",Nq,t[3]||(t[3]=[Ul("path",{d:"M241.91,118.1l-16-16a14,14,0,0,0-19.55-.23L154.13,49.64a14,14,0,0,0-.23-19.55l-16-16a14,14,0,0,0-19.8,0l-64,64a14,14,0,0,0,0,19.8l16,16a14,14,0,0,0,19.55.23L99.52,124,32.73,190.79a23,23,0,0,0,32.48,32.49L132,156.49l9.87,9.87a14,14,0,0,0,.23,19.55l16,16a14,14,0,0,0,19.8,0l64-64A14,14,0,0,0,241.91,118.1Zm-91.56,39.76-52.21-52.2,47.52-47.52,52.2,52.2ZM78.59,105.41l-16-16a2,2,0,0,1,0-2.83l64-64a2,2,0,0,1,2.83,0l16,16a2,2,0,0,1,0,2.83l-64,64A2,2,0,0,1,78.59,105.41ZM56.73,214.8a11,11,0,0,1-15.52-15.52L108,132.49,123.52,148Zm176.69-85.38-64,64a2,2,0,0,1-2.83,0l-16-16a2,2,0,0,1,0-2.83l64-64a2,2,0,0,1,2.83,0l16,16A2,2,0,0,1,233.42,129.42Z"},null,-1)]))):"regular"===Ao(n)?(Pl(),Ml("g",Iq,t[4]||(t[4]=[Ul("path",{d:"M243.32,116.69l-16-16a16,16,0,0,0-20.84-1.53L156.84,49.52a16,16,0,0,0-1.52-20.84l-16-16a16,16,0,0,0-22.63,0l-64,64a16,16,0,0,0,0,22.63l16,16a16,16,0,0,0,20.83,1.52L96.69,124,31.31,189.38A25,25,0,0,0,66.63,224.7L132,159.32l7.17,7.16a16,16,0,0,0,1.52,20.84l16,16a16,16,0,0,0,22.63,0l64-64A16,16,0,0,0,243.32,116.69ZM80,104,64,88l64-64,16,16ZM55.32,213.38a9,9,0,0,1-12.69,0,9,9,0,0,1,0-12.68L108,135.32,120.69,148ZM101,105.66,145.66,61,195,110.34,150.35,155ZM168,192l-16-16,4-4h0l56-56h0l4-4,16,16Z"},null,-1)]))):"thin"===Ao(n)?(Pl(),Ml("g",Lq,t[5]||(t[5]=[Ul("path",{d:"M240.49,119.52l-16-16a12,12,0,0,0-17,0l-1.17,1.17-55-55,1.18-1.17a12,12,0,0,0,0-17l-16-16a12,12,0,0,0-17,0l-64,64a12,12,0,0,0,0,17l16,16a12,12,0,0,0,17,0l1.17-1.18L102.34,124l-68.2,68.21A21,21,0,0,0,63.8,221.87L132,153.66l12.69,12.69-1.18,1.17a12,12,0,0,0,0,17l16,16a12,12,0,0,0,17,0l64-64a12,12,0,0,0,0-17ZM77.17,106.83l-16-16a4,4,0,0,1,0-5.66l64-64a4,4,0,0,1,5.66,0l16,16a4,4,0,0,1,0,5.65l-64,64A4,4,0,0,1,77.17,106.83Zm-19,109.38A13,13,0,1,1,39.8,197.87L108,129.66,126.34,148ZM95.31,105.66l50.35-50.35,55,55-50.35,50.35Zm139.52,25.17-64,64a4,4,0,0,1-5.66,0l-16-16a4,4,0,0,1,0-5.65l64-64a4,4,0,0,1,5.66,0l16,16a4,4,0,0,1,0,5.66Z"},null,-1)]))):Vl("",!0)],16))}}),Bq={key:0},Uq={key:1},Fq={key:2},Qq={key:3},zq={key:4},qq={key:5},Hq=Li({name:"ScalarIconInfo",props:{label:{},weight:{}},setup(e){const t=e,{bind:r,weight:n}=Cz(t);return(e,t)=>(Pl(),Ml("svg",Gl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},Ao(r)),[fs(e.$slots,"default"),"bold"===Ao(n)?(Pl(),Ml("g",Bq,t[0]||(t[0]=[Ul("path",{d:"M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"},null,-1)]))):"duotone"===Ao(n)?(Pl(),Ml("g",Uq,t[1]||(t[1]=[Ul("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),Ul("path",{d:"M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z"},null,-1)]))):"fill"===Ao(n)?(Pl(),Ml("g",Fq,t[2]||(t[2]=[Ul("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"},null,-1)]))):"light"===Ao(n)?(Pl(),Ml("g",Qq,t[3]||(t[3]=[Ul("path",{d:"M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"},null,-1)]))):"regular"===Ao(n)?(Pl(),Ml("g",zq,t[4]||(t[4]=[Ul("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"},null,-1)]))):"thin"===Ao(n)?(Pl(),Ml("g",qq,t[5]||(t[5]=[Ul("path",{d:"M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"},null,-1)]))):Vl("",!0)],16))}}),Vq={key:0},Zq={key:1},Wq={key:2},Xq={key:3},Gq={key:4},Yq={key:5},Kq=Li({name:"ScalarIconMagnifyingGlass",props:{label:{},weight:{}},setup(e){const t=e,{bind:r,weight:n}=Cz(t);return(e,t)=>(Pl(),Ml("svg",Gl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},Ao(r)),[fs(e.$slots,"default"),"bold"===Ao(n)?(Pl(),Ml("g",Vq,t[0]||(t[0]=[Ul("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"},null,-1)]))):"duotone"===Ao(n)?(Pl(),Ml("g",Zq,t[1]||(t[1]=[Ul("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"},null,-1),Ul("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"},null,-1)]))):"fill"===Ao(n)?(Pl(),Ml("g",Wq,t[2]||(t[2]=[Ul("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"},null,-1)]))):"light"===Ao(n)?(Pl(),Ml("g",Xq,t[3]||(t[3]=[Ul("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"},null,-1)]))):"regular"===Ao(n)?(Pl(),Ml("g",Gq,t[4]||(t[4]=[Ul("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"},null,-1)]))):"thin"===Ao(n)?(Pl(),Ml("g",Yq,t[5]||(t[5]=[Ul("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"},null,-1)]))):Vl("",!0)],16))}}),Jq={key:0},eH={key:1},tH={key:2},rH={key:3},nH={key:4},aH={key:5},oH=Li({name:"ScalarIconPlay",props:{label:{},weight:{}},setup(e){const t=e,{bind:r,weight:n}=Cz(t);return(e,t)=>(Pl(),Ml("svg",Gl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},Ao(r)),[fs(e.$slots,"default"),"bold"===Ao(n)?(Pl(),Ml("g",Jq,t[0]||(t[0]=[Ul("path",{d:"M234.49,111.07,90.41,22.94A20,20,0,0,0,60,39.87V216.13a20,20,0,0,0,30.41,16.93l144.08-88.13a19.82,19.82,0,0,0,0-33.86ZM84,208.85V47.15L216.16,128Z"},null,-1)]))):"duotone"===Ao(n)?(Pl(),Ml("g",eH,t[1]||(t[1]=[Ul("path",{d:"M228.23,134.69,84.15,222.81A8,8,0,0,1,72,216.12V39.88a8,8,0,0,1,12.15-6.69l144.08,88.12A7.82,7.82,0,0,1,228.23,134.69Z",opacity:"0.2"},null,-1),Ul("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"},null,-1)]))):"fill"===Ao(n)?(Pl(),Ml("g",tH,t[2]||(t[2]=[Ul("path",{d:"M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z"},null,-1)]))):"light"===Ao(n)?(Pl(),Ml("g",rH,t[3]||(t[3]=[Ul("path",{d:"M231.36,116.19,87.28,28.06a14,14,0,0,0-14.18-.27A13.69,13.69,0,0,0,66,39.87V216.13a13.69,13.69,0,0,0,7.1,12.08,14,14,0,0,0,14.18-.27l144.08-88.13a13.82,13.82,0,0,0,0-23.62Zm-6.26,13.38L81,217.7a2,2,0,0,1-2.06,0,1.78,1.78,0,0,1-1-1.61V39.87a1.78,1.78,0,0,1,1-1.61A2.06,2.06,0,0,1,80,38a2,2,0,0,1,1,.31L225.1,126.43a1.82,1.82,0,0,1,0,3.14Z"},null,-1)]))):"regular"===Ao(n)?(Pl(),Ml("g",nH,t[4]||(t[4]=[Ul("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"},null,-1)]))):"thin"===Ao(n)?(Pl(),Ml("g",aH,t[5]||(t[5]=[Ul("path",{d:"M230.32,117.9,86.24,29.79a11.91,11.91,0,0,0-12.17-.23A11.71,11.71,0,0,0,68,39.89V216.11a11.71,11.71,0,0,0,6.07,10.33,11.91,11.91,0,0,0,12.17-.23L230.32,138.1a11.82,11.82,0,0,0,0-20.2Zm-4.18,13.37L82.06,219.39a4,4,0,0,1-4.07.07,3.77,3.77,0,0,1-2-3.35V39.89a3.77,3.77,0,0,1,2-3.35,4,4,0,0,1,4.07.07l144.08,88.12a3.8,3.8,0,0,1,0,6.54Z"},null,-1)]))):Vl("",!0)],16))}}),iH={key:0},sH={key:1},lH={key:2},cH={key:3},uH={key:4},dH={key:5},pH=Li({name:"ScalarIconScroll",props:{label:{},weight:{}},setup(e){const t=e,{bind:r,weight:n}=Cz(t);return(e,t)=>(Pl(),Ml("svg",Gl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},Ao(r)),[fs(e.$slots,"default"),"bold"===Ao(n)?(Pl(),Ml("g",iH,t[0]||(t[0]=[Ul("path",{d:"M92,92a12,12,0,0,1,12-12h60a12,12,0,0,1,0,24H104A12,12,0,0,1,92,92Zm12,52h60a12,12,0,0,0,0-24H104a12,12,0,0,0,0,24Zm132,48a36,36,0,0,1-36,36H88a36,36,0,0,1-36-36V64a12,12,0,0,0-24,0c0,3.73,3.35,6.51,3.38,6.54l-.18-.14h0A12,12,0,1,1,16.81,89.59h0C15.49,88.62,4,79.55,4,64A36,36,0,0,1,40,28H176a36,36,0,0,1,36,36V164h4a12,12,0,0,1,7.2,2.4C224.51,167.38,236,176.45,236,192ZM92.62,172.2A12,12,0,0,1,104,164h84V64a12,12,0,0,0-12-12H73.94A35.88,35.88,0,0,1,76,64V192a12,12,0,0,0,24,0c0-3.58-3.17-6.38-3.2-6.4A12,12,0,0,1,92.62,172.2ZM212,192a7.69,7.69,0,0,0-1.24-4h-87a30.32,30.32,0,0,1,.26,4,35.84,35.84,0,0,1-2.06,12H200A12,12,0,0,0,212,192Z"},null,-1)]))):"duotone"===Ao(n)?(Pl(),Ml("g",sH,t[1]||(t[1]=[Ul("path",{d:"M200,176H104s8,6,8,16a24,24,0,0,1-48,0V64A24,24,0,0,0,40,40H176a24,24,0,0,1,24,24Z",opacity:"0.2"},null,-1),Ul("path",{d:"M96,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,104Zm8,40h64a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16Zm128,48a32,32,0,0,1-32,32H88a32,32,0,0,1-32-32V64a16,16,0,0,0-32,0c0,5.74,4.83,9.62,4.88,9.66h0A8,8,0,0,1,24,88a7.89,7.89,0,0,1-4.79-1.61h0C18.05,85.54,8,77.61,8,64A32,32,0,0,1,40,32H176a32,32,0,0,1,32,32V168h8a8,8,0,0,1,4.8,1.6C222,170.46,232,178.39,232,192ZM96.26,173.48A8.07,8.07,0,0,1,104,168h88V64a16,16,0,0,0-16-16H67.69A31.71,31.71,0,0,1,72,64V192a16,16,0,0,0,32,0c0-5.74-4.83-9.62-4.88-9.66A7.82,7.82,0,0,1,96.26,173.48ZM216,192a12.58,12.58,0,0,0-3.23-8h-94a26.92,26.92,0,0,1,1.21,8,31.82,31.82,0,0,1-4.29,16H200A16,16,0,0,0,216,192Z"},null,-1)]))):"fill"===Ao(n)?(Pl(),Ml("g",lH,t[2]||(t[2]=[Ul("path",{d:"M220.8,169.6A8,8,0,0,0,216,168h-8V64a32,32,0,0,0-32-32H40A32,32,0,0,0,8,64C8,77.61,18.05,85.54,19.2,86.4h0A7.89,7.89,0,0,0,24,88a8,8,0,0,0,4.87-14.33h0C28.83,73.62,24,69.74,24,64a16,16,0,0,1,32,0V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32C232,178.39,222,170.46,220.8,169.6ZM104,96h64a8,8,0,0,1,0,16H104a8,8,0,0,1,0-16Zm-8,40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,136Zm104,72H107.71A31.82,31.82,0,0,0,112,192a26.92,26.92,0,0,0-1.21-8h102a12.58,12.58,0,0,1,3.23,8A16,16,0,0,1,200,208Z"},null,-1)]))):"light"===Ao(n)?(Pl(),Ml("g",cH,t[3]||(t[3]=[Ul("path",{d:"M98,136a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H104A6,6,0,0,1,98,136Zm6-26h64a6,6,0,0,0,0-12H104a6,6,0,0,0,0,12Zm126,82a30,30,0,0,1-30,30H88a30,30,0,0,1-30-30V64a18,18,0,0,0-36,0c0,6.76,5.58,11.19,5.64,11.23A6,6,0,1,1,20.4,84.8C20,84.48,10,76.85,10,64A30,30,0,0,1,40,34H176a30,30,0,0,1,30,30V170h10a6,6,0,0,1,3.6,1.2C220,171.52,230,179.15,230,192Zm-124,0c0-6.76-5.59-11.19-5.64-11.23A6,6,0,0,1,104,170h90V64a18,18,0,0,0-18-18H64a29.82,29.82,0,0,1,6,18V192a18,18,0,0,0,36,0Zm112,0a14.94,14.94,0,0,0-4.34-10H115.88A24.83,24.83,0,0,1,118,192a29.87,29.87,0,0,1-6,18h88A18,18,0,0,0,218,192Z"},null,-1)]))):"regular"===Ao(n)?(Pl(),Ml("g",uH,t[4]||(t[4]=[Ul("path",{d:"M96,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,104Zm8,40h64a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16Zm128,48a32,32,0,0,1-32,32H88a32,32,0,0,1-32-32V64a16,16,0,0,0-32,0c0,5.74,4.83,9.62,4.88,9.66h0A8,8,0,0,1,24,88a7.89,7.89,0,0,1-4.79-1.61h0C18.05,85.54,8,77.61,8,64A32,32,0,0,1,40,32H176a32,32,0,0,1,32,32V168h8a8,8,0,0,1,4.8,1.6C222,170.46,232,178.39,232,192ZM96.26,173.48A8.07,8.07,0,0,1,104,168h88V64a16,16,0,0,0-16-16H67.69A31.71,31.71,0,0,1,72,64V192a16,16,0,0,0,32,0c0-5.74-4.83-9.62-4.88-9.66A7.82,7.82,0,0,1,96.26,173.48ZM216,192a12.58,12.58,0,0,0-3.23-8h-94a26.92,26.92,0,0,1,1.21,8,31.82,31.82,0,0,1-4.29,16H200A16,16,0,0,0,216,192Z"},null,-1)]))):"thin"===Ao(n)?(Pl(),Ml("g",dH,t[5]||(t[5]=[Ul("path",{d:"M100,104a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H104A4,4,0,0,1,100,104Zm4,36h64a4,4,0,0,0,0-8H104a4,4,0,0,0,0,8Zm124,52a28,28,0,0,1-28,28H88a28,28,0,0,1-28-28V64a20,20,0,0,0-40,0c0,7.78,6.34,12.75,6.4,12.8a4,4,0,1,1-4.8,6.4C21.21,82.91,12,75.86,12,64A28,28,0,0,1,40,36H176a28,28,0,0,1,28,28V172h12a4,4,0,0,1,2.4.8C218.79,173.09,228,180.14,228,192Zm-120,0c0-7.78-6.34-12.75-6.4-12.8A4,4,0,0,1,104,172h92V64a20,20,0,0,0-20-20H59.57A27.9,27.9,0,0,1,68,64V192a20,20,0,0,0,40,0Zm112,0c0-6-3.74-10.3-5.5-12H112.61A23.31,23.31,0,0,1,116,192a27.94,27.94,0,0,1-8.42,20H200A20,20,0,0,0,220,192Z"},null,-1)]))):Vl("",!0)],16))}}),hH={key:0},fH={key:1},mH={key:2},gH={key:3},vH={key:4},bH={key:5},yH=Li({name:"ScalarIconTag",props:{label:{},weight:{}},setup(e){const t=e,{bind:r,weight:n}=Cz(t);return(e,t)=>(Pl(),Ml("svg",Gl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},Ao(r)),[fs(e.$slots,"default"),"bold"===Ao(n)?(Pl(),Ml("g",hH,t[0]||(t[0]=[Ul("path",{d:"M246.15,133.18,146.83,33.86A19.85,19.85,0,0,0,132.69,28H40A12,12,0,0,0,28,40v92.69a19.85,19.85,0,0,0,5.86,14.14l99.32,99.32a20,20,0,0,0,28.28,0l84.69-84.69A20,20,0,0,0,246.15,133.18Zm-98.83,93.17L52,131V52h79l95.32,95.32ZM104,88A16,16,0,1,1,88,72,16,16,0,0,1,104,88Z"},null,-1)]))):"duotone"===Ao(n)?(Pl(),Ml("g",fH,t[1]||(t[1]=[Ul("path",{d:"M237.66,153,153,237.66a8,8,0,0,1-11.31,0L42.34,138.34A8,8,0,0,1,40,132.69V40h92.69a8,8,0,0,1,5.65,2.34l99.32,99.32A8,8,0,0,1,237.66,153Z",opacity:"0.2"},null,-1),Ul("path",{d:"M243.31,136,144,36.69A15.86,15.86,0,0,0,132.69,32H40a8,8,0,0,0-8,8v92.69A15.86,15.86,0,0,0,36.69,144L136,243.31a16,16,0,0,0,22.63,0l84.68-84.68a16,16,0,0,0,0-22.63Zm-96,96L48,132.69V48h84.69L232,147.31ZM96,84A12,12,0,1,1,84,72,12,12,0,0,1,96,84Z"},null,-1)]))):"fill"===Ao(n)?(Pl(),Ml("g",mH,t[2]||(t[2]=[Ul("path",{d:"M243.31,136,144,36.69A15.86,15.86,0,0,0,132.69,32H40a8,8,0,0,0-8,8v92.69A15.86,15.86,0,0,0,36.69,144L136,243.31a16,16,0,0,0,22.63,0l84.68-84.68a16,16,0,0,0,0-22.63ZM84,96A12,12,0,1,1,96,84,12,12,0,0,1,84,96Z"},null,-1)]))):"light"===Ao(n)?(Pl(),Ml("g",gH,t[3]||(t[3]=[Ul("path",{d:"M241.91,137.42,142.59,38.1a13.94,13.94,0,0,0-9.9-4.1H40a6,6,0,0,0-6,6v92.69a13.94,13.94,0,0,0,4.1,9.9l99.32,99.32a14,14,0,0,0,19.8,0l84.69-84.69A14,14,0,0,0,241.91,137.42Zm-8.49,11.31-84.69,84.69a2,2,0,0,1-2.83,0L46.59,134.1a2,2,0,0,1-.59-1.41V46h86.69a2,2,0,0,1,1.41.59l99.32,99.31A2,2,0,0,1,233.42,148.73ZM94,84A10,10,0,1,1,84,74,10,10,0,0,1,94,84Z"},null,-1)]))):"regular"===Ao(n)?(Pl(),Ml("g",vH,t[4]||(t[4]=[Ul("path",{d:"M243.31,136,144,36.69A15.86,15.86,0,0,0,132.69,32H40a8,8,0,0,0-8,8v92.69A15.86,15.86,0,0,0,36.69,144L136,243.31a16,16,0,0,0,22.63,0l84.68-84.68a16,16,0,0,0,0-22.63Zm-96,96L48,132.69V48h84.69L232,147.31ZM96,84A12,12,0,1,1,84,72,12,12,0,0,1,96,84Z"},null,-1)]))):"thin"===Ao(n)?(Pl(),Ml("g",bH,t[5]||(t[5]=[Ul("path",{d:"M240.49,138.83,141.17,39.51A11.93,11.93,0,0,0,132.69,36H40a4,4,0,0,0-4,4v92.69a11.93,11.93,0,0,0,3.51,8.48l99.32,99.32a12,12,0,0,0,17,0l84.69-84.69a12,12,0,0,0,0-17Zm-5.66,11.31-84.69,84.69a4,4,0,0,1-5.65,0L45.17,135.51A4,4,0,0,1,44,132.69V44h88.69a4,4,0,0,1,2.82,1.17l99.32,99.32A4,4,0,0,1,234.83,150.14ZM92,84a8,8,0,1,1-8-8A8,8,0,0,1,92,84Z"},null,-1)]))):Vl("",!0)],16))}}),OH={key:0},wH={key:1},xH={key:2},kH={key:3},SH={key:4},_H={key:5},EH=Li({name:"ScalarIconTerminalWindow",props:{label:{},weight:{}},setup(e){const t=e,{bind:r,weight:n}=Cz(t);return(e,t)=>(Pl(),Ml("svg",Gl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},Ao(r)),[fs(e.$slots,"default"),"bold"===Ao(n)?(Pl(),Ml("g",OH,t[0]||(t[0]=[Ul("path",{d:"M72.5,150.63,100.79,128,72.5,105.37a12,12,0,1,1,15-18.74l40,32a12,12,0,0,1,0,18.74l-40,32a12,12,0,0,1-15-18.74ZM144,172h32a12,12,0,0,0,0-24H144a12,12,0,0,0,0,24ZM236,56V200a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56Zm-24,4H44V196H212Z"},null,-1)]))):"duotone"===Ao(n)?(Pl(),Ml("g",wH,t[1]||(t[1]=[Ul("path",{d:"M224,56V200a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"},null,-1),Ul("path",{d:"M128,128a8,8,0,0,1-3,6.25l-40,32a8,8,0,1,1-10-12.5L107.19,128,75,102.25a8,8,0,1,1,10-12.5l40,32A8,8,0,0,1,128,128Zm48,24H136a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm56-96V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Z"},null,-1)]))):"fill"===Ao(n)?(Pl(),Ml("g",xH,t[2]||(t[2]=[Ul("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm-91,94.25-40,32a8,8,0,1,1-10-12.5L107.19,128,75,102.25a8,8,0,1,1,10-12.5l40,32a8,8,0,0,1,0,12.5ZM176,168H136a8,8,0,0,1,0-16h40a8,8,0,0,1,0,16Z"},null,-1)]))):"light"===Ao(n)?(Pl(),Ml("g",kH,t[3]||(t[3]=[Ul("path",{d:"M126,128a6,6,0,0,1-2.25,4.69l-40,32a6,6,0,0,1-7.5-9.38L110.4,128,76.25,100.69a6,6,0,1,1,7.5-9.38l40,32A6,6,0,0,1,126,128Zm50,26H136a6,6,0,0,0,0,12h40a6,6,0,0,0,0-12Zm54-98V200a14,14,0,0,1-14,14H40a14,14,0,0,1-14-14V56A14,14,0,0,1,40,42H216A14,14,0,0,1,230,56Zm-12,0a2,2,0,0,0-2-2H40a2,2,0,0,0-2,2V200a2,2,0,0,0,2,2H216a2,2,0,0,0,2-2Z"},null,-1)]))):"regular"===Ao(n)?(Pl(),Ml("g",SH,t[4]||(t[4]=[Ul("path",{d:"M128,128a8,8,0,0,1-3,6.25l-40,32a8,8,0,1,1-10-12.5L107.19,128,75,102.25a8,8,0,1,1,10-12.5l40,32A8,8,0,0,1,128,128Zm48,24H136a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm56-96V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Z"},null,-1)]))):"thin"===Ao(n)?(Pl(),Ml("g",_H,t[5]||(t[5]=[Ul("path",{d:"M122.5,124.88a4,4,0,0,1,0,6.24l-40,32a4,4,0,0,1-5-6.24L113.6,128,77.5,99.12a4,4,0,0,1,5-6.24ZM176,156H136a4,4,0,0,0,0,8h40a4,4,0,0,0,0-8ZM228,56V200a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V56A12,12,0,0,1,40,44H216A12,12,0,0,1,228,56Zm-8,0a4,4,0,0,0-4-4H40a4,4,0,0,0-4,4V200a4,4,0,0,0,4,4H216a4,4,0,0,0,4-4Z"},null,-1)]))):Vl("",!0)],16))}}),TH={key:0},AH={key:1},CH={key:2},PH={key:3},DH={key:4},$H={key:5},RH=Li({name:"ScalarIconTextAlignLeft",props:{label:{},weight:{}},setup(e){const t=e,{bind:r,weight:n}=Cz(t);return(e,t)=>(Pl(),Ml("svg",Gl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},Ao(r)),[fs(e.$slots,"default"),"bold"===Ao(n)?(Pl(),Ml("g",TH,t[0]||(t[0]=[Ul("path",{d:"M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,52H168a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm176,16H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Zm-48,40H40a12,12,0,0,0,0,24H168a12,12,0,0,0,0-24Z"},null,-1)]))):"duotone"===Ao(n)?(Pl(),Ml("g",AH,t[1]||(t[1]=[Ul("path",{d:"M216,64V168a16,16,0,0,1-16,16H40V64Z",opacity:"0.2"},null,-1),Ul("path",{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,48H168a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm176,24H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm-48,40H40a8,8,0,0,0,0,16H168a8,8,0,0,0,0-16Z"},null,-1)]))):"fill"===Ao(n)?(Pl(),Ml("g",CH,t[2]||(t[2]=[Ul("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM160,184H64a8,8,0,0,1,0-16h96a8,8,0,0,1,0,16Zm32-32H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16ZM56,112a8,8,0,0,1,8-8h96a8,8,0,0,1,0,16H64A8,8,0,0,1,56,112ZM192,88H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Z"},null,-1)]))):"light"===Ao(n)?(Pl(),Ml("g",PH,t[3]||(t[3]=[Ul("path",{d:"M34,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H40A6,6,0,0,1,34,64Zm6,46H168a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Zm176,28H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Zm-48,40H40a6,6,0,0,0,0,12H168a6,6,0,0,0,0-12Z"},null,-1)]))):"regular"===Ao(n)?(Pl(),Ml("g",DH,t[4]||(t[4]=[Ul("path",{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,48H168a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm176,24H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm-48,40H40a8,8,0,0,0,0,16H168a8,8,0,0,0,0-16Z"},null,-1)]))):"thin"===Ao(n)?(Pl(),Ml("g",$H,t[5]||(t[5]=[Ul("path",{d:"M36,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H40A4,4,0,0,1,36,64Zm4,44H168a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Zm176,32H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Zm-48,40H40a4,4,0,0,0,0,8H168a4,4,0,0,0,0-8Z"},null,-1)]))):Vl("",!0)],16))}}),MH={key:0},NH={key:1},IH={key:2},LH={key:3},jH={key:4},BH={key:5},UH=Li({name:"ScalarIconTrash",props:{label:{},weight:{}},setup(e){const t=e,{bind:r,weight:n}=Cz(t);return(e,t)=>(Pl(),Ml("svg",Gl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},Ao(r)),[fs(e.$slots,"default"),"bold"===Ao(n)?(Pl(),Ml("g",MH,t[0]||(t[0]=[Ul("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"},null,-1)]))):"duotone"===Ao(n)?(Pl(),Ml("g",NH,t[1]||(t[1]=[Ul("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"},null,-1),Ul("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"},null,-1)]))):"fill"===Ao(n)?(Pl(),Ml("g",IH,t[2]||(t[2]=[Ul("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"},null,-1)]))):"light"===Ao(n)?(Pl(),Ml("g",LH,t[3]||(t[3]=[Ul("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"},null,-1)]))):"regular"===Ao(n)?(Pl(),Ml("g",jH,t[4]||(t[4]=[Ul("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"},null,-1)]))):"thin"===Ao(n)?(Pl(),Ml("g",BH,t[5]||(t[5]=[Ul("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"},null,-1)]))):Vl("",!0)],16))}}),FH={key:0},QH={key:1},zH={key:2},qH={key:3},HH={key:4},VH={key:5},ZH=Li({name:"ScalarIconWarning",props:{label:{},weight:{}},setup(e){const t=e,{bind:r,weight:n}=Cz(t);return(e,t)=>(Pl(),Ml("svg",Gl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},Ao(r)),[fs(e.$slots,"default"),"bold"===Ao(n)?(Pl(),Ml("g",FH,t[0]||(t[0]=[Ul("path",{d:"M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"},null,-1)]))):"duotone"===Ao(n)?(Pl(),Ml("g",QH,t[1]||(t[1]=[Ul("path",{d:"M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z",opacity:"0.2"},null,-1),Ul("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"},null,-1)]))):"fill"===Ao(n)?(Pl(),Ml("g",zH,t[2]||(t[2]=[Ul("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"},null,-1)]))):"light"===Ao(n)?(Pl(),Ml("g",qH,t[3]||(t[3]=[Ul("path",{d:"M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"},null,-1)]))):"regular"===Ao(n)?(Pl(),Ml("g",HH,t[4]||(t[4]=[Ul("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"},null,-1)]))):"thin"===Ao(n)?(Pl(),Ml("g",VH,t[5]||(t[5]=[Ul("path",{d:"M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"},null,-1)]))):Vl("",!0)],16))}}),WH={key:0},XH={key:1},GH={key:2},YH={key:3},KH={key:4},JH={key:5},eV=Li({name:"ScalarIconWebhooksLogo",props:{label:{},weight:{}},setup(e){const t=e,{bind:r,weight:n}=Cz(t);return(e,t)=>(Pl(),Ml("svg",Gl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},Ao(r)),[fs(e.$slots,"default"),"bold"===Ao(n)?(Pl(),Ml("g",WH,t[0]||(t[0]=[Ul("path",{d:"M192,180H118.71a56,56,0,1,1-104.6-37.46,12,12,0,1,1,21.37,10.92A31.64,31.64,0,0,0,32,168a32,32,0,0,0,64,0,12,12,0,0,1,12-12h84a12,12,0,0,1,0,24Zm0-68a55.9,55.9,0,0,0-18.45,3.12L138.22,57.71a12,12,0,0,0-20.44,12.58l40.94,66.52a12,12,0,0,0,16.52,3.93,32,32,0,1,1,19.68,59.13A12,12,0,0,0,196,223.82a10.05,10.05,0,0,0,1.09,0A56,56,0,0,0,192,112ZM57.71,178.22a12,12,0,0,0,16.51-3.93l40.94-66.52a12,12,0,0,0-3.92-16.51,32,32,0,1,1,45.28-41.8,12,12,0,1,0,21.37-10.92A56,56,0,1,0,89.1,104.32L53.78,161.71A12,12,0,0,0,57.71,178.22Z"},null,-1)]))):"duotone"===Ao(n)?(Pl(),Ml("g",XH,t[1]||(t[1]=[Ul("path",{d:"M128,104a40,40,0,1,1,40-40A40,40,0,0,1,128,104Zm64,24a40,40,0,1,0,40,40A40,40,0,0,0,192,128ZM64,128a40,40,0,1,0,40,40A40,40,0,0,0,64,128Z",opacity:"0.2"},null,-1),Ul("path",{d:"M178.16,176H111.32A48,48,0,1,1,25.6,139.19a8,8,0,0,1,12.8,9.61A31.69,31.69,0,0,0,32,168a32,32,0,0,0,64,0,8,8,0,0,1,8-8h74.16a16,16,0,1,1,0,16ZM64,184a16,16,0,0,0,14.08-23.61l35.77-58.14a8,8,0,0,0-2.62-11,32,32,0,1,1,46.1-40.06A8,8,0,1,0,172,44.79a48,48,0,1,0-75.62,55.33L64.44,152c-.15,0-.29,0-.44,0a16,16,0,0,0,0,32Zm128-64a48.18,48.18,0,0,0-18,3.49L142.08,71.6A16,16,0,1,0,128,80l.44,0,35.78,58.15a8,8,0,0,0,11,2.61A32,32,0,1,1,192,200a8,8,0,0,0,0,16,48,48,0,0,0,0-96Z"},null,-1)]))):"fill"===Ao(n)?(Pl(),Ml("g",GH,t[2]||(t[2]=[Ul("path",{d:"M50.15,160,89.07,92.57l-2.24-3.88a48,48,0,1,1,85.05-44.17,8.17,8.17,0,0,1-3.19,10.4,8,8,0,0,1-11.35-3.72,32,32,0,1,0-56.77,29.3.57.57,0,0,1,.08.13l13.83,23.94a8,8,0,0,1,0,8L77.86,176a16,16,0,0,1-27.71-16Zm141-40H178.81L141.86,56a16,16,0,0,0-27.71,16l34.64,60a8,8,0,0,0,6.92,4h35.63c17.89,0,32.95,14.64,32.66,32.53A32,32,0,0,1,192.31,200a8.23,8.23,0,0,0-8.28,7.33,8,8,0,0,0,8,8.67,48.05,48.05,0,0,0,48-48.93C239.49,140.79,217.48,120,191.19,120ZM208,167.23c-.4-8.61-7.82-15.23-16.43-15.23H114.81a8,8,0,0,0-6.93,4L91.72,184h0a32,32,0,1,1-53.47-35,8.2,8.2,0,0,0-.92-11,8,8,0,0,0-11.72,1.17A47.63,47.63,0,0,0,16,167.54,48,48,0,0,0,105.55,192v0l4.62-8H192A16,16,0,0,0,208,167.23Z"},null,-1)]))):"light"===Ao(n)?(Pl(),Ml("g",YH,t[3]||(t[3]=[Ul("path",{d:"M179.37,174H109.6a46,46,0,1,1-82.4-33.61,6,6,0,0,1,9.6,7.21A33.68,33.68,0,0,0,30,168a34,34,0,0,0,68,0,6,6,0,0,1,6-6h75.37a14,14,0,1,1,0,12ZM64,182a14,14,0,0,0,11.73-21.62l36.42-59.18a6,6,0,0,0-2-8.25,34,34,0,1,1,49-42.57,6,6,0,1,0,11-4.79A46,46,0,1,0,99,99.7L65.52,154.08c-.5-.05-1-.08-1.52-.08a14,14,0,0,0,0,28Zm128-60a46,46,0,0,0-18.8,4L139.73,71.61A14,14,0,1,0,128,78a12.79,12.79,0,0,0,1.52-.09l36.4,59.17a6.05,6.05,0,0,0,3.73,2.69,6,6,0,0,0,4.53-.73A34,34,0,1,1,192,202a6,6,0,0,0,0,12,46,46,0,0,0,0-92Z"},null,-1)]))):"regular"===Ao(n)?(Pl(),Ml("g",KH,t[4]||(t[4]=[Ul("path",{d:"M178.16,176H111.32A48,48,0,1,1,25.6,139.19a8,8,0,0,1,12.8,9.61A31.69,31.69,0,0,0,32,168a32,32,0,0,0,64,0,8,8,0,0,1,8-8h74.16a16,16,0,1,1,0,16ZM64,184a16,16,0,0,0,14.08-23.61l35.77-58.14a8,8,0,0,0-2.62-11,32,32,0,1,1,46.1-40.06A8,8,0,1,0,172,44.79a48,48,0,1,0-75.62,55.33L64.44,152c-.15,0-.29,0-.44,0a16,16,0,0,0,0,32Zm128-64a48.18,48.18,0,0,0-18,3.49L142.08,71.6A16,16,0,1,0,128,80l.44,0,35.78,58.15a8,8,0,0,0,11,2.61A32,32,0,1,1,192,200a8,8,0,0,0,0,16,48,48,0,0,0,0-96Z"},null,-1)]))):"thin"===Ao(n)?(Pl(),Ml("g",JH,t[5]||(t[5]=[Ul("path",{d:"M180.7,172H107.81a44,44,0,1,1-79-30.41,4,4,0,0,1,6.4,4.81A35.67,35.67,0,0,0,28,168a36,36,0,0,0,72,0,4,4,0,0,1,4-4h76.7a12,12,0,1,1,0,8ZM64,180a12,12,0,0,0,9.33-19.54l37.11-60.3a4,4,0,0,0-1.31-5.51A36,36,0,1,1,161,49.58a4,4,0,1,0,7.33-3.19,44,44,0,1,0-66.71,52.83l-35.1,57.05A11.58,11.58,0,0,0,64,156a12,12,0,0,0,0,24Zm128-56a44,44,0,0,0-19.56,4.58l-35.11-57A12,12,0,1,0,128,76a12.24,12.24,0,0,0,2.52-.27L167.63,136a4,4,0,0,0,5.5,1.31A36,36,0,1,1,192,204a4,4,0,0,0,0,8,44,44,0,0,0,0-88Z"},null,-1)]))):Vl("",!0)],16))}}),tV={key:0},rV={key:1},nV={key:2},aV={key:3},oV={key:4},iV={key:5},sV=Li({name:"ScalarIconX",props:{label:{},weight:{}},setup(e){const t=e,{bind:r,weight:n}=Cz(t);return(e,t)=>(Pl(),Ml("svg",Gl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},Ao(r)),[fs(e.$slots,"default"),"bold"===Ao(n)?(Pl(),Ml("g",tV,t[0]||(t[0]=[Ul("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"},null,-1)]))):"duotone"===Ao(n)?(Pl(),Ml("g",rV,t[1]||(t[1]=[Ul("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"},null,-1),Ul("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"},null,-1)]))):"fill"===Ao(n)?(Pl(),Ml("g",nV,t[2]||(t[2]=[Ul("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"},null,-1)]))):"light"===Ao(n)?(Pl(),Ml("g",aV,t[3]||(t[3]=[Ul("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"},null,-1)]))):"regular"===Ao(n)?(Pl(),Ml("g",oV,t[4]||(t[4]=[Ul("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"},null,-1)]))):"thin"===Ao(n)?(Pl(),Ml("g",iV,t[5]||(t[5]=[Ul("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"},null,-1)]))):Vl("",!0)],16))}});var lV=Object.defineProperty,cV=(e,t,r)=>(((e,t,r)=>{t in e?lV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);!function(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999}[data-sonner-toaster][data-x-position=right]{right:max(var(--offset),env(safe-area-inset-right))}[data-sonner-toaster][data-x-position=left]{left:max(var(--offset),env(safe-area-inset-left))}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:max(var(--offset),env(safe-area-inset-top))}[data-sonner-toaster][data-y-position=bottom]{bottom:max(var(--offset),env(safe-area-inset-bottom))}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;will-change:transform,opacity,height;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast] [data-description]{font-weight:400;line-height:1.4;color:inherit}[data-sonner-toast] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast] [data-icon]>*{flex-shrink:0}[data-sonner-toast] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast] [data-content]{display:flex;flex-direction:column;gap:2px;transform:translateZ(0)}[data-sonner-toast] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toast][data-theme=dark] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:'';position:absolute;left:0;right:0;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]:after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount,0));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{from{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;--mobile-offset:16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - 32px)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 91%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 91%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 91%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 100%, 12%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 12%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");let uV=0;const dV=new class{constructor(){cV(this,"subscribers"),cV(this,"toasts"),cV(this,"subscribe",(e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}))),cV(this,"publish",(e=>{this.subscribers.forEach((t=>t(e)))})),cV(this,"addToast",(e=>{this.publish(e),this.toasts=[...this.toasts,e]})),cV(this,"create",(e=>{var t;const{message:r,...n}=e,a="number"==typeof e.id||e.id&&(null==(t=e.id)?void 0:t.length)>0?e.id:uV++,o=this.toasts.find((e=>e.id===a)),i=void 0===e.dismissible||e.dismissible;return o?this.toasts=this.toasts.map((t=>t.id===a?(this.publish({...t,...e,id:a,title:r}),{...t,...e,id:a,dismissible:i,title:r}):t)):this.addToast({title:r,...n,dismissible:i,id:a}),a})),cV(this,"dismiss",(e=>(e||this.toasts.forEach((e=>{this.subscribers.forEach((t=>t({id:e.id,dismiss:!0})))})),this.subscribers.forEach((t=>t({id:e,dismiss:!0}))),e))),cV(this,"message",((e,t)=>this.create({...t,message:e,type:"default"}))),cV(this,"error",((e,t)=>this.create({...t,type:"error",message:e}))),cV(this,"success",((e,t)=>this.create({...t,type:"success",message:e}))),cV(this,"info",((e,t)=>this.create({...t,type:"info",message:e}))),cV(this,"warning",((e,t)=>this.create({...t,type:"warning",message:e}))),cV(this,"loading",((e,t)=>this.create({...t,type:"loading",message:e}))),cV(this,"promise",((e,t)=>{if(!t)return;let r;void 0!==t.loading&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));const n=e instanceof Promise?e:e();let a=void 0!==r;return n.then((e=>{if(e&&"boolean"==typeof e.ok&&!e.ok){a=!1;const e="function"==typeof t.error?t.error(`HTTP error! status: ${response.status}`):t.error,n="function"==typeof t.description?t.description(`HTTP error! status: ${response.status}`):t.description;this.create({id:r,type:"error",message:e,description:n})}else if(void 0!==t.success){a=!1;const n="function"==typeof t.success?t.success(e):t.success,o="function"==typeof t.description?t.description(e):t.description;this.create({id:r,type:"success",message:n,description:o})}})).catch((e=>{if(void 0!==t.error){a=!1;const n="function"==typeof t.error?t.error(e):t.error,o="function"==typeof t.description?t.description(e):t.description;this.create({id:r,type:"error",message:n,description:o})}})).finally((()=>{var e;a&&(this.dismiss(r),r=void 0),null==(e=t.finally)||e.call(t)})),r})),cV(this,"custom",((e,t)=>{const r=(null==t?void 0:t.id)||uV++;return this.publish({component:e,id:r,...t}),r})),this.subscribers=[],this.toasts=[]}},pV=Object.assign(((e,t)=>{const r=(null==t?void 0:t.id)||uV++;return dV.create({message:e,id:r,type:"default",...t}),r}),{success:dV.success,info:dV.info,warning:dV.warning,error:dV.error,custom:dV.custom,message:dV.message,promise:dV.promise,dismiss:dV.dismiss,loading:dV.loading}),hV=(e,t)=>{const r=e.__vccOpts||e;for(const[e,n]of t)r[e]=n;return r},fV={xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stoke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},mV=[Ul("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1),Ul("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1)],gV=hV({},[["render",function(e,t){return Pl(),Ml("svg",fV,mV)}]]),vV=["aria-live","data-styled","data-mounted","data-promise","data-removed","data-visible","data-y-position","data-x-position","data-index","data-front","data-swiping","data-dismissible","data-type","data-invert","data-swipe-out","data-expanded"],bV=["aria-label","data-disabled"],yV={key:0,"data-icon":""},OV={"data-content":""},wV=Li({__name:"Toast",props:{toast:{},toasts:{},index:{},expanded:{type:Boolean},invert:{type:Boolean},heights:{},gap:{},position:{},visibleToasts:{},expandByDefault:{type:Boolean},closeButton:{type:Boolean},interacting:{type:Boolean},duration:{},descriptionClass:{},style:{},cancelButtonStyle:{},actionButtonStyle:{},unstyled:{type:Boolean},loadingIcon:{},class:{},classes:{},icons:{},closeButtonAriaLabel:{},pauseWhenPageIsHidden:{type:Boolean},cn:{type:Function}},emits:["update:heights","removeToast"],setup(e,{emit:t}){const r=t,n=e,a=So(!1),o=So(!1),i=So(!1),s=So(!1),l=So(0),c=So(0),u=So(null),d=So(null),p=hc((()=>0===n.index)),h=hc((()=>n.index+1<=n.visibleToasts)),f=hc((()=>n.toast.type)),m=hc((()=>!1!==n.toast.dismissible)),g=hc((()=>{var e,t,r,a,o,i,s;return n.cn(null==(e=n.classes)?void 0:e.toast,null==(r=null==(t=n.toast)?void 0:t.classes)?void 0:r.toast,null==(a=n.classes)?void 0:a.default,null==(o=n.classes)?void 0:o[n.toast.type||"default"],null==(s=null==(i=n.toast)?void 0:i.classes)?void 0:s[n.toast.type||"default"])})),v=n.toast.style||{},b=hc((()=>n.heights.findIndex((e=>e.toastId===n.toast.id))||0)),y=hc((()=>n.toast.closeButton??n.closeButton)),O=hc((()=>n.toast.duration||n.duration||4e3)),w=So(0),x=So(0),k=So(O.value),S=So(0),_=So(null),E=hc((()=>n.position.split("-"))),T=hc((()=>E.value[0])),A=hc((()=>E.value[1])),C="string"!=typeof n.toast.title,P="string"!=typeof n.toast.description,D=hc((()=>n.heights.reduce(((e,t,r)=>r>=b.value?e:e+t.height),0))),$=(()=>{const e=So(!1);return cl((()=>{const t=()=>{e.value=document.hidden};return document.addEventListener("visibilitychange",t),()=>window.removeEventListener("visibilitychange",t)})),{isDocumentHidden:e}})(),R=hc((()=>n.toast.invert||n.invert)),M=hc((()=>"loading"===f.value));Yi((()=>{if(!a.value)return;const e=d.value,t=null==e?void 0:e.style.height;e.style.height="auto";const o=e.getBoundingClientRect().height;let i;e.style.height=t,c.value=o,i=n.heights.find((e=>e.toastId===n.toast.id))?n.heights.map((e=>e.toastId===n.toast.id?{...e,height:o}:e)):[{toastId:n.toast.id,height:o,position:n.toast.position},...n.heights],r("update:heights",i)}));const N=()=>{o.value=!0,l.value=x.value;const e=n.heights.filter((e=>e.toastId!==n.toast.id));r("update:heights",e),setTimeout((()=>{r("removeToast",n.toast)}),200)},I=()=>{var e,t;M.value||!m.value||(N(),null==(t=(e=n.toast).onDismiss)||t.call(e,n.toast))},L=e=>{M.value||!m.value||(u.value=new Date,l.value=x.value,e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(i.value=!0,_.value={x:e.clientX,y:e.clientY}))},j=e=>{var t,r,a,o;if(s.value)return;_.value=null;const c=Number((null==(t=d.value)?void 0:t.style.getPropertyValue("--swipe-amount").replace("px",""))||0),p=(new Date).getTime()-u.value.getTime(),h=Math.abs(c)/p;if(Math.abs(c)>=20||h>.11)return l.value=x.value,null==(a=(r=n.toast).onDismiss)||a.call(r,n.toast),N(),void(s.value=!0);null==(o=d.value)||o.style.setProperty("--swipe-amount","0px"),i.value=!1},B=e=>{var t;if(!_.value)return;const r=e.clientY-_.value.y,n=e.clientX-_.value.x,a=("top"===E.value[0]?Math.min:Math.max)(0,r),o="touch"===e.pointerType?10:2;Math.abs(a)>o?null==(t=d.value)||t.style.setProperty("--swipe-amount",`${r}px`):Math.abs(n)>o&&(_.value=null)};return cl((()=>{x.value=14*b.value+D.value})),cl((e=>{if(n.toast.promise&&"loading"===f.value||n.toast.duration===1/0||"loading"===n.toast.type)return;let t;n.expanded||n.interacting||n.pauseWhenPageIsHidden&&$?(()=>{if(S.value<w.value){const e=(new Date).getTime()-w.value;k.value=k.value-e}S.value=(new Date).getTime()})():(w.value=(new Date).getTime(),t=setTimeout((()=>{var e,t;null==(t=(e=n.toast).onAutoClose)||t.call(e,n.toast),N()}),k.value)),e((()=>{clearTimeout(t)}))})),cl((()=>{n.toast.delete&&N()})),Yi((()=>{if(d.value){const e=d.value.getBoundingClientRect().height;c.value=e;const t=[{toastId:n.toast.id,height:e,position:n.toast.position},...n.heights];r("update:heights",t)}a.value=!0})),ts((()=>{if(d.value){const e=n.heights.filter((e=>e.toastId!==n.toast.id));r("update:heights",e)}})),(e,t)=>{var r,n,u,b,O,w,k,S,_,E,D,$;return Pl(),Ml("li",{"aria-live":e.toast.important?"assertive":"polite","aria-atomic":"true",role:"status",tabindex:"0",ref_key:"toastRef",ref:d,"data-sonner-toast":"",class:zn(g.value),"data-styled":!(e.toast.component||null!=(r=e.toast)&&r.unstyled||e.unstyled),"data-mounted":a.value,"data-promise":!!e.toast.promise,"data-removed":o.value,"data-visible":h.value,"data-y-position":T.value,"data-x-position":A.value,"data-index":e.index,"data-front":p.value,"data-swiping":i.value,"data-dismissible":m.value,"data-type":f.value,"data-invert":R.value,"data-swipe-out":s.value,"data-expanded":!!(e.expanded||e.expandByDefault&&a.value),style:jn({"--index":e.index,"--toasts-before":e.index,"--z-index":e.toasts.length-e.index,"--offset":`${o.value?l.value:x.value}px`,"--initial-height":e.expandByDefault?"auto":`${c.value}px`,...e.style,...Ao(v)}),onPointerdown:L,onPointerup:j,onPointermove:B},[y.value&&!e.toast.component?(Pl(),Ml("button",{key:0,"aria-label":e.closeButtonAriaLabel||"Close toast","data-disabled":M.value,"data-close-button":"",class:zn(e.cn(null==(n=e.classes)?void 0:n.closeButton,null==(b=null==(u=e.toast)?void 0:u.classes)?void 0:b.closeButton)),onClick:I},[Fl(gV)],10,bV)):Vl("",!0),e.toast.component?(Pl(),Nl(cs(e.toast.component),Gl({key:1},e.toast.componentProps,{onCloseToast:N}),null,16)):(Pl(),Ml(Sl,{key:2},["default"!==f.value||e.toast.icon||e.toast.promise?(Pl(),Ml("div",yV,[!e.toast.promise&&"loading"!==f.value||e.toast.icon?Vl("",!0):fs(e.$slots,"loading-icon",{key:0}),e.toast.icon?(Pl(),Nl(cs(e.toast.icon),{key:1})):(Pl(),Ml(Sl,{key:2},["success"===f.value?fs(e.$slots,"success-icon",{key:0}):"error"===f.value?fs(e.$slots,"error-icon",{key:1}):"warning"===f.value?fs(e.$slots,"warning-icon",{key:2}):"info"===f.value?fs(e.$slots,"info-icon",{key:3}):Vl("",!0)],64))])):Vl("",!0),Ul("div",OV,[Ul("div",{"data-title":"",class:zn(e.cn(null==(O=e.classes)?void 0:O.title,null==(w=e.toast.classes)?void 0:w.title))},[C?(Pl(),Nl(cs(e.toast.title),qn(Gl({key:0},e.toast.componentProps)),null,16)):(Pl(),Ml(Sl,{key:1},[ql(Gn(e.toast.title),1)],64))],2),e.toast.description?(Pl(),Ml("div",{key:0,"data-description":"",class:zn(e.cn(e.descriptionClass,e.toast.descriptionClass,null==(k=e.classes)?void 0:k.description,null==(S=e.toast.classes)?void 0:S.description))},[P?(Pl(),Nl(cs(e.toast.description),qn(Gl({key:0},e.toast.componentProps)),null,16)):(Pl(),Ml(Sl,{key:1},[ql(Gn(e.toast.description),1)],64))],2)):Vl("",!0)]),e.toast.cancel?(Pl(),Ml("button",{key:1,class:zn(e.cn(null==(_=e.classes)?void 0:_.cancelButton,null==(E=e.toast.classes)?void 0:E.cancelButton)),"data-button":"","data-cancel":"",onClick:t[0]||(t[0]=()=>{var t;N(),null!=(t=e.toast.cancel)&&t.onClick&&e.toast.cancel.onClick()})},Gn(e.toast.cancel.label),3)):Vl("",!0),e.toast.action?(Pl(),Ml("button",{key:2,class:zn(e.cn(null==(D=e.classes)?void 0:D.actionButton,null==($=e.toast.classes)?void 0:$.actionButton)),"data-button":"",onClick:t[1]||(t[1]=t=>{var r;null==(r=e.toast.action)||r.onClick(t),!t.defaultPrevented&&N()})},Gn(e.toast.action.label),3)):Vl("",!0)],64))],46,vV)}}}),xV=["data-visible"],kV={class:"sonner-spinner"},SV=Li({__name:"Loader",props:{visible:{type:Boolean}},setup(e){const t=Array(12).fill(0);return(e,r)=>(Pl(),Ml("div",{class:"sonner-loading-wrapper","data-visible":e.visible},[Ul("div",kV,[(Pl(!0),Ml(Sl,null,ps(Ao(t),(e=>(Pl(),Ml("div",{key:`spinner-bar-${e}`,class:"sonner-loading-bar"})))),128))])],8,xV))}}),_V={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},EV=[Ul("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z","clip-rule":"evenodd"},null,-1)],TV=hV({},[["render",function(e,t){return Pl(),Ml("svg",_V,EV)}]]),AV={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},CV=[Ul("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z","clip-rule":"evenodd"},null,-1)],PV=hV({},[["render",function(e,t){return Pl(),Ml("svg",AV,CV)}]]),DV={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},$V=[Ul("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"},null,-1)],RV=hV({},[["render",function(e,t){return Pl(),Ml("svg",DV,$V)}]]),MV={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},NV=[Ul("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z","clip-rule":"evenodd"},null,-1)],IV=hV({},[["render",function(e,t){return Pl(),Ml("svg",MV,NV)}]]),LV=["aria-label"],jV=["dir","data-theme","data-rich-colors","data-y-position","data-x-position"],BV="32px",UV=typeof window<"u"&&typeof document<"u",FV=Li({name:"Toaster",inheritAttrs:!1,__name:"Toaster",props:{invert:{type:Boolean,default:!1},theme:{default:"light"},position:{default:"bottom-right"},hotkey:{default:()=>["altKey","KeyT"]},richColors:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},duration:{default:4e3},gap:{default:14},visibleToasts:{default:3},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})},class:{default:""},style:{default:()=>({})},offset:{default:BV},dir:{default:"auto"},icons:{},containerAriaLabel:{default:"Notifications"},pauseWhenPageIsHidden:{type:Boolean,default:!1},cn:{}},setup(e){function t(...e){return e.filter(Boolean).join(" ")}function r(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}const n=e,a=Os(),o=So([]),i=hc((()=>{const e=o.value.filter((e=>e.position)).map((e=>e.position));return e.length>0?Array.from(new Set([n.position].concat(e))):[n.position]})),s=So([]),l=So(!1),c=So(!1),u=So("system"!==n.theme?n.theme:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),d=hc((()=>n.cn||t)),p=So(null),h=So(null),f=So(!1),m=n.hotkey.join("+").replace(/Key/g,"").replace(/Digit/g,"");function g(e){o.value=o.value.filter((({id:t})=>t!==e.id))}const v=e=>{var t,r;f.value&&(null==(r=null==(t=e.currentTarget)?void 0:t.contains)||!r.call(t,e.relatedTarget))&&(f.value=!1,h.value&&(h.value.focus({preventScroll:!0}),h.value=null))},b=e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||f.value||(f.value=!0,h.value=e.relatedTarget)},y=e=>{e.target&&e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||(c.value=!1)};return cl((e=>{const t=dV.subscribe((e=>{e.dismiss?o.value=o.value.map((t=>t.id===e.id?{...t,delete:!0}:t)):Ko((()=>{const t=o.value.findIndex((t=>t.id===e.id));-1!==t?o.value.splice(t,1,e):o.value=[e,...o.value]}))}));e((()=>{t()}))})),ul((()=>n.theme),(e=>{"system"===e?("system"===e&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?u.value="dark":u.value="light"),!(typeof window>"u")&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(({matches:e})=>{u.value=e?"dark":"light"}))):u.value=e})),ul((()=>p.value),(()=>{if(p.value)return()=>{h.value&&(h.value.focus({preventScroll:!0}),h.value=null,f.value=!1)}})),cl((()=>{o.value.length<=1&&(l.value=!1)})),cl((e=>{function t(e){const t=n.hotkey.every((t=>e[t]||e.code===t)),r=Array.isArray(p.value)?p.value[0]:p.value;t&&(l.value=!0,null==r||r.focus());const a=document.activeElement===p.value||(null==r?void 0:r.contains(document.activeElement));"Escape"===e.code&&a&&(l.value=!1)}UV&&(document.addEventListener("keydown",t),e((()=>{document.removeEventListener("keydown",t)})))})),(e,t)=>(Pl(),Ml("section",{"aria-label":`${e.containerAriaLabel} ${Ao(m)}`,tabIndex:-1},[(Pl(!0),Ml(Sl,null,ps(i.value,((n,i)=>{var u;return Pl(),Ml("ol",Gl({key:n,ref_for:!0,ref_key:"listRef",ref:p,"data-sonner-toaster":"",class:e.class,dir:"auto"===e.dir?r():e.dir,tabIndex:-1,"data-theme":e.theme,"data-rich-colors":e.richColors,"data-y-position":n.split("-")[0],"data-x-position":n.split("-")[1],style:{"--front-toast-height":`${null==(u=s.value[0])?void 0:u.height}px`,"--offset":"number"==typeof e.offset?`${e.offset}px`:e.offset||BV,"--width":"356px","--gap":"14px",...e.style,...Ao(a).style},onBlur:v,onFocus:b,onMouseenter:t[1]||(t[1]=e=>l.value=!0),onMousemove:t[2]||(t[2]=e=>l.value=!0),onMouseleave:t[3]||(t[3]=()=>{c.value||(l.value=!1)}),onPointerdown:y,onPointerup:t[4]||(t[4]=e=>c.value=!1)},e.$attrs),[(Pl(!0),Ml(Sl,null,ps(o.value.filter((t=>!t.position&&0===i||t.position===e.position)),((r,n)=>{var a,i,u,p,h,f,m,v,b;return Pl(),Nl(wV,{key:r.id,index:n,toast:r,duration:(null==(a=e.toastOptions)?void 0:a.duration)??e.duration,class:zn(null==(i=e.toastOptions)?void 0:i.class),descriptionClass:null==(u=e.toastOptions)?void 0:u.descriptionClass,invert:e.invert,visibleToasts:e.visibleToasts,closeButton:(null==(p=e.toastOptions)?void 0:p.closeButton)??e.closeButton,interacting:c.value,position:e.position,style:jn(null==(h=e.toastOptions)?void 0:h.style),unstyled:null==(f=e.toastOptions)?void 0:f.unstyled,classes:null==(m=e.toastOptions)?void 0:m.classes,cancelButtonStyle:null==(v=e.toastOptions)?void 0:v.cancelButtonStyle,actionButtonStyle:null==(b=e.toastOptions)?void 0:b.actionButtonStyle,toasts:o.value,expandByDefault:e.expand,gap:e.gap,expanded:l.value,pauseWhenPageIsHidden:e.pauseWhenPageIsHidden,cn:d.value,heights:s.value,"onUpdate:heights":t[0]||(t[0]=e=>s.value=e),onRemoveToast:g},{"loading-icon":ci((()=>[fs(e.$slots,"loading-icon",{},(()=>[Fl(SV,{visible:"loading"===r.type},null,8,["visible"])]))])),"success-icon":ci((()=>[fs(e.$slots,"success-icon",{},(()=>[Fl(TV)]))])),"error-icon":ci((()=>[fs(e.$slots,"error-icon",{},(()=>[Fl(IV)]))])),"warning-icon":ci((()=>[fs(e.$slots,"warning-icon",{},(()=>[Fl(RV)]))])),"info-icon":ci((()=>[fs(e.$slots,"info-icon",{},(()=>[Fl(PV)]))])),_:2},1032,["index","toast","duration","class","descriptionClass","invert","visibleToasts","closeButton","interacting","position","style","unstyled","classes","cancelButtonStyle","actionButtonStyle","toasts","expandByDefault","gap","expanded","pauseWhenPageIsHidden","cn","heights"])})),128))],16,jV)})),128))],8,LV))}}),QV={toast:()=>null};function zV(e){QV.toast=e}function qV(){return{initializeToasts:zV,toast:(e,t="info",r={timeout:3e3})=>{QV.toast(e,t,r)}}}const HV=Li({__name:"ScalarToasts",setup(e){const t=So(!1);Yi((()=>t.value=!0));const r={success:pV.success,error:pV.error,warn:pV.warning,info:pV},{initializeToasts:n}=qV();return n(((e,t="info",n={})=>{(r[t]||r.info)(e,{duration:n.timeout||3e3,description:n.description})})),(e,r)=>t.value?(Pl(),Nl(Ao(FV),{key:0,class:"scalar-toaster"})):Vl("",!0)}});function VV(e={}){const{notify:t=e=>r(e,"info")}=e,{toast:r}=qV();return{copyToClipboard:async function(e){try{await navigator.clipboard.writeText(e),t("Copied to the clipboard")}catch(e){const r=e;console.error(r.message),t("Failed to copy to clipboard")}}}}!function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".scalar-toaster [data-sonner-toast][data-styled=true]{background:var(--scalar-background-1);color:var(--scalar-color-1);padding:18px;border:none;border-radius:var(--scalar-radius-lg);font-size:var(--scalar-font-size-3);font-weight:var(--scalar-font-medium);box-shadow:var(--scalar-shadow-2)}.scalar-toaster [data-sonner-toast] [data-icon]{align-self:flex-start;position:relative;top:2px}.scalar-toaster [data-sonner-toast][data-styled=true][data-expanded=true]{height:auto}.scalar-toaster [data-sonner-toast][data-type=error]{background:var(--scalar-background-1)}.scalar-toaster [data-sonner-toast][data-type=error] [data-icon]{color:color-mix(in srgb,var(--scalar-color-red) 75%,var(--scalar-color-1))}.scalar-toaster [data-sonner-toast][data-type=warning]{background:var(--scalar-background-1)}.scalar-toaster [data-sonner-toast][data-type=warning] [data-icon]{color:color-mix(in srgb,var(--scalar-color-orange) 90%,var(--scalar-color-1))}")),document.head.appendChild(e)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();const ZV={class:"scalar-code-block custom-scroll min-h-12 focus-visible:outline",tabindex:"0"},WV={key:0,class:"scalar-code-copy"},XV=["innerHTML"],GV=Li({__name:"ScalarCodeBlock",props:{content:{},lang:{default:"plaintext"},lineNumbers:{type:Boolean,default:!1},hideCredentials:{},copy:{type:Boolean,default:!0}},setup(e){const t=e,r=hc((()=>function(e,t){const r=("string"==typeof(null==t?void 0:t.maskCredentials)?[t.maskCredentials]:(null==t?void 0:t.maskCredentials)??[]).filter((e=>!(e.length<3))),n=`language-${zC[t.lang]??t.lang}`;var a;const o=XE().use(wz,{fragment:!0}).use((a=e,()=>e=>{Xm(e,"element",(e=>{"code"===e.tagName&&e.children.push({type:"text",value:a})}))})).use(HC,{languages:t.languages}).use((null==t?void 0:t.lineNumbers)?_z:()=>{}).use(qw).processSync(`<pre><code class="${n}"></code></pre>`).toString();return r.length?r.reduce(((e,t)=>e.split(t).join(`<span class="credential"><span class="credential-value">${t}</span></span>`)),o):o}(rj(t.content),{lang:t.lang.trim(),languages:pA,lineNumbers:t.lineNumbers,maskCredentials:t.hideCredentials}).slice(5,-6))),{copyToClipboard:n}=VV(),a=hc((()=>null!==t.content&&"null"!==t.content&&"404 Not Found"!==t.content));return(e,o)=>(Pl(),Ml("div",ZV,[e.copy?(Pl(),Ml("div",WV,[a.value?(Pl(),Ml("button",{key:0,class:"copy-button",type:"button",onClick:o[0]||(o[0]=e=>Ao(n)(Ao(rj)(t.content)))},[o[1]||(o[1]=Ul("span",{class:"sr-only"},"Copy content",-1)),Fl(Ao(Sq),{class:"size-4"})])):Vl("",!0)])):Vl("",!0),Ul("pre",{class:"scalar-codeblock-pre",innerHTML:r.value},null,8,XV)]))}}),YV=Li({inheritAttrs:!1,__name:"ScalarColorModeToggleIcon",props:{is:{default:"button"},mode:{default:"light"}},setup(e){const{cx:t}=GQ(),r=hc((()=>"dark"===e.mode?"Set light mode":"Set dark mode"));return(e,n)=>(Pl(),Nl(cs(e.is),Gl({"aria-label":r.value,class:`toggle-icon-${e.mode}`,type:"button"===e.is?"button":void 0},Ao(t)("size-3 flex items-center justify-center text-c-1")),{default:ci((()=>n[0]||(n[0]=[Ul("span",{class:"toggle-icon-sun-ray"},null,-1),Ul("span",{class:"toggle-icon-sun-ray"},null,-1),Ul("span",{class:"toggle-icon-sun-ray"},null,-1),Ul("span",{class:"toggle-icon-sun-ray"},null,-1),Ul("span",{class:"toggle-icon-ellipse"},[Ul("span",{class:"toggle-icon-moon-mask"})],-1)]))),_:1,__:[0]},16,["aria-label","class","type"]))}}),KV=rz(YV,[["__scopeId","data-v-60be8692"]]),JV=["aria-pressed"],eZ=Li({inheritAttrs:!1,__name:"ScalarColorModeToggleButton",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(e){const{cx:t}=GQ(),r=fl(e,"modelValue");return(e,n)=>(Pl(),Ml("button",Gl({"aria-pressed":r.value,type:"button"},Ao(t)("group/toggle flex h-6 w-[38px] brightness-lifted -mx-px items-center py-1.5 -my-1.5 relative outline-none"),{onClick:n[0]||(n[0]=e=>r.value=!r.value)}),[n[1]||(n[1]=Ul("div",{class:"h-3 w-full bg-border mx-px rounded-xl group-focus-visible/toggle:outline -outline-offset-1"},null,-1)),Ul("div",{class:zn(["size-[23px] left-border absolute border rounded-full flex items-center justify-center bg-b-1 group-focus-visible/toggle:outline -outline-offset-1 transition-transform duration-300 ease-in-out",{"translate-x-[14px]":r.value}])},[Fl(KV,{is:"div",mode:r.value?"dark":"light"},null,8,["mode"])],2)],16,JV))}}),tZ=Li({__name:"ScalarColorModeToggle",props:{variant:{default:"switch"}},setup(e){const{isDarkMode:t,toggleColorMode:r,darkLightMode:n}=Cj(),a=hc((()=>t.value?"Set light mode":"Set dark mode"));return(e,o)=>"switch"===e.variant?(Pl(),Nl(eZ,{key:0,modelValue:Ao(t),"onUpdate:modelValue":o[0]||(o[0]=e=>ko(t)?t.value=e:null),"aria-label":a.value},null,8,["modelValue","aria-label"])):(Pl(),Nl(KV,{key:1,"aria-label":a.value,mode:Ao(n),onClick:Ao(r)},null,8,["aria-label","mode","onClick"]))}}),rZ=Li({__name:"ScalarListboxCheckbox",props:{selected:{type:Boolean},style:{}},setup:e=>(e,t)=>(Pl(),Ml("div",{class:zn(["flex size-4 items-center justify-center p-0.75",[e.selected?"bg-c-accent text-b-1":"text-transparent shadow-border","checkbox"===e.style?"rounded":"rounded-full"]])},[e.selected?(Pl(),Nl(Ao(vq),{key:0,class:"size-3",weight:"bold"})):Vl("",!0)],2))}),nZ=["aria-selected"],aZ={class:"inline-block min-w-0 flex-1 truncate text-c-1"},oZ=Li({__name:"ScalarComboboxOption",props:{active:{type:Boolean},selected:{type:Boolean},style:{},isDeletable:{type:Boolean}},emits:["delete"],setup(e){const t=WQ({base:["group/item","flex min-w-0 items-center gap-1.5 rounded px-2 py-1.5 text-left","truncate bg-transparent text-c-1","cursor-pointer hover:bg-b-2"],variants:{selected:{true:"text-c-1"},active:{true:"bg-b-2"}}});return(e,r)=>(Pl(),Ml("li",{"aria-selected":e.selected,class:zn(Ao(XQ)(Ao(t)({active:e.active,selected:e.selected}))),role:"option",tabindex:"-1"},[Fl(Ao(rZ),{selected:e.selected,style:jn(e.style)},null,8,["selected","style"]),Ul("span",aZ,[fs(e.$slots,"default")]),e.isDeletable?(Pl(),Nl(Ao(UH),{key:0,"aria-label":"Delete",class:"text-c-2 opacity-0 group-hover/item:opacity-100 size-4",onClick:r[0]||(r[0]=Su((t=>e.$emit("delete")),["stop"]))})):Vl("",!0)],10,nZ))}}),iZ=["id","aria-labelledby","role"],sZ=["id"],lZ=Li({__name:"ScalarComboboxOptionGroup",props:{id:{default:()=>ji()},hidden:{type:Boolean,default:!1}},setup:e=>(e,t)=>(Pl(),Ml("div",{id:e.id,"aria-labelledby":e.id?`${e.id}-label`:void 0,class:"contents",role:e.hidden?void 0:"group"},[e.hidden?Vl("",!0):(Pl(),Ml("div",{key:0,id:`${e.id}-label`,class:"min-w-0 truncate px-2.5 py-1.5 text-left text-c-2"},[fs(e.$slots,"label")],8,sZ)),fs(e.$slots,"default")],8,iZ))});function cZ(e){return function(e){return void 0!==e.options}(e[0])}const uZ={class:"relative flex"},dZ=["aria-activedescendant","placeholder"],pZ=["aria-multiselectable"],hZ=Li({inheritAttrs:!1,__name:"ScalarComboboxOptions",props:{options:{},modelValue:{},placeholder:{},multiselect:{type:Boolean},isDeletable:{type:Boolean}},emits:["update:modelValue","delete"],setup(e,{emit:t}){var r;const n=e,a=t,o=`scalar-combobox-items-${ji()}`;function i(e){return`${o}-${e.id}`}const s=hc((()=>cZ(n.options)?n.options.flatMap((e=>e.options)):n.options)),l=hc((()=>cZ(n.options)?n.options:[{label:"",options:n.options}])),c=So(""),u=So((null==(r=n.modelValue)?void 0:r[0])??s.value[0]);Yi((async()=>{var e;c.value="",u.value=(null==(e=n.modelValue)?void 0:e[0])??s.value[0],0!==p.value.length&&setTimeout((()=>{var e;null==(e=null==document?void 0:document.getElementById(i(p.value[0])))||e.scrollIntoView({block:"nearest"})}),10)})),ul((()=>c.value),(()=>u.value=d.value[0]));const d=hc((()=>""===c.value?s.value:s.value.filter((e=>e.label.toLowerCase().includes(c.value.toLowerCase()))))),p=hc({get:()=>n.modelValue??[],set:e=>e&&a("update:modelValue",e)});function h(e){n.multiselect?p.value.some((t=>t.id===e.id))?p.value=p.value.filter((t=>t.id!==e.id)):p.value=[...p.value,e]:p.value=[e]}function f(e){var t;const r=d.value,n=r.findIndex((e=>{var t;return e.id===(null==(t=u.value)?void 0:t.id)}))+e;n<0||n>r.length-1||(u.value=r[n],null==(t=null==document?void 0:document.getElementById(i(u.value)))||t.scrollIntoView({behavior:"smooth",block:"nearest"}))}const m=So(null);return Yi((()=>setTimeout((()=>{var e;return null==(e=m.value)?void 0:e.focus()}),0))),(e,t)=>(Pl(),Ml(Sl,null,[Ul("div",uZ,[Fl(Ao(Kq),{class:"pointer-events-none absolute left-2.5 search-icon text-c-3 size-4"}),ui(Ul("input",{"onUpdate:modelValue":t[0]||(t[0]=e=>c.value=e),ref_key:"input",ref:m,"aria-activedescendant":u.value?i(u.value):void 0,"aria-autocomplete":"list","aria-controls":o,class:"min-w-0 flex-1 rounded border-0 py-2.5 pl-8 pr-3 leading-none text-c-1 -outline-offset-1","data-1p-ignore":"",placeholder:e.placeholder,role:"combobox",tabindex:"0",type:"text",onKeydown:[t[1]||(t[1]=Eu(Su((e=>f(1)),["prevent"]),["down"])),t[2]||(t[2]=Eu(Su((e=>u.value&&h(u.value)),["prevent"]),["enter"])),t[3]||(t[3]=Eu(Su((e=>f(-1)),["prevent"]),["up"]))]},null,40,dZ),[[pu,c.value]])]),ui(Ul("ul",{id:o,"aria-multiselectable":e.multiselect,class:"border-t p-0.75 custom-scroll overscroll-contain flex-1 min-h-0",role:"listbox",tabindex:"-1"},[fs(e.$slots,"before",{},void 0,!0),(Pl(!0),Ml(Sl,null,ps(l.value,((r,n)=>(Pl(),Nl(lZ,{id:`${o}-group-${n}`,key:n,hidden:!r.options.some((e=>d.value.some((t=>t.id===e.id))))||!r.label},{label:ci((()=>[ql(Gn(r.label),1)])),default:ci((()=>[(Pl(!0),Ml(Sl,null,ps(d.value,(n=>{var a;return Pl(),Ml(Sl,{key:n.id},[r.options.some((e=>e.id===n.id))?(Pl(),Nl(oZ,{key:0,id:i(n),active:(null==(a=u.value)?void 0:a.id)===n.id,isDeletable:n.isDeletable??e.isDeletable,selected:p.value.some((e=>e.id===n.id)),style:jn(e.multiselect?"checkbox":"radio"),onClick:e=>h(n),onDelete:t=>e.$emit("delete",n),onMousedown:t[4]||(t[4]=Su((()=>{}),["prevent"])),onMouseenter:e=>u.value=n},{default:ci((()=>[ql(Gn(n.label),1)])),_:2},1032,["id","active","isDeletable","selected","style","onClick","onDelete","onMouseenter"])):Vl("",!0)],64)})),128))])),_:2},1032,["id","hidden"])))),128)),fs(e.$slots,"after",{},void 0,!0)],8,pZ),[[Fc,d.value.length||e.$slots.before||e.$slots.after]])],64))}}),fZ=rz(hZ,[["__scopeId","data-v-b76d72f2"]]);function mZ(e){return["top","bottom"].includes(function(e){return e.split("-")[0]}(e))?"y":"x"}const gZ=Math.min,vZ=Math.max,bZ=Math.round,yZ=Math.floor,OZ=e=>({x:e,y:e}),wZ={left:"right",right:"left",bottom:"top",top:"bottom"},xZ={start:"end",end:"start"};function kZ(e,t,r){return vZ(e,gZ(t,r))}function SZ(e,t){return"function"==typeof e?e(t):e}function _Z(e){return e.split("-")[0]}function EZ(e){return e.split("-")[1]}function TZ(e){return"x"===e?"y":"x"}function AZ(e){return"y"===e?"height":"width"}const CZ=new Set(["top","bottom"]);function PZ(e){return CZ.has(_Z(e))?"y":"x"}function DZ(e){return TZ(PZ(e))}function $Z(e){return e.replace(/start|end/g,(e=>xZ[e]))}const RZ=["left","right"],MZ=["right","left"],NZ=["top","bottom"],IZ=["bottom","top"];function LZ(e){return e.replace(/left|right|bottom|top/g,(e=>wZ[e]))}function jZ(e){const{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function BZ(e,t,r){let{reference:n,floating:a}=e;const o=PZ(t),i=DZ(t),s=AZ(i),l=_Z(t),c="y"===o,u=n.x+n.width/2-a.width/2,d=n.y+n.height/2-a.height/2,p=n[s]/2-a[s]/2;let h;switch(l){case"top":h={x:u,y:n.y-a.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:d};break;case"left":h={x:n.x-a.width,y:d};break;default:h={x:n.x,y:n.y}}switch(EZ(t)){case"start":h[i]-=p*(r&&c?-1:1);break;case"end":h[i]+=p*(r&&c?-1:1)}return h}async function UZ(e,t){var r;void 0===t&&(t={});const{x:n,y:a,platform:o,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=SZ(t,e),f=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(h),m=s[p?"floating"===d?"reference":"floating":d],g=jZ(await o.getClippingRect({element:null==(r=await(null==o.isElement?void 0:o.isElement(m)))||r?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:n,y:a,width:i.floating.width,height:i.floating.height}:i.reference,b=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),y=await(null==o.isElement?void 0:o.isElement(b))&&await(null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},O=jZ(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-O.top+f.top)/y.y,bottom:(O.bottom-g.bottom+f.bottom)/y.y,left:(g.left-O.left+f.left)/y.x,right:(O.right-g.right+f.right)/y.x}}const FZ=new Set(["left","top"]);function QZ(){return"undefined"!=typeof window}function zZ(e){return VZ(e)?(e.nodeName||"").toLowerCase():"#document"}function qZ(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function HZ(e){var t;return null==(t=(VZ(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function VZ(e){return!!QZ()&&(e instanceof Node||e instanceof qZ(e).Node)}function ZZ(e){return!!QZ()&&(e instanceof Element||e instanceof qZ(e).Element)}function WZ(e){return!!QZ()&&(e instanceof HTMLElement||e instanceof qZ(e).HTMLElement)}function XZ(e){return!(!QZ()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof qZ(e).ShadowRoot)}const GZ=new Set(["inline","contents"]);function YZ(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=cW(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!GZ.has(a)}const KZ=new Set(["table","td","th"]);function JZ(e){return KZ.has(zZ(e))}const eW=[":popover-open",":modal"];function tW(e){return eW.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}const rW=["transform","translate","scale","rotate","perspective"],nW=["transform","translate","scale","rotate","perspective","filter"],aW=["paint","layout","strict","content"];function oW(e){const t=iW(),r=ZZ(e)?cW(e):e;return rW.some((e=>!!r[e]&&"none"!==r[e]))||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||nW.some((e=>(r.willChange||"").includes(e)))||aW.some((e=>(r.contain||"").includes(e)))}function iW(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const sW=new Set(["html","body","#document"]);function lW(e){return sW.has(zZ(e))}function cW(e){return qZ(e).getComputedStyle(e)}function uW(e){return ZZ(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function dW(e){if("html"===zZ(e))return e;const t=e.assignedSlot||e.parentNode||XZ(e)&&e.host||HZ(e);return XZ(t)?t.host:t}function pW(e){const t=dW(e);return lW(t)?e.ownerDocument?e.ownerDocument.body:e.body:WZ(t)&&YZ(t)?t:pW(t)}function hW(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const a=pW(e),o=a===(null==(n=e.ownerDocument)?void 0:n.body),i=qZ(a);if(o){const e=fW(i);return t.concat(i,i.visualViewport||[],YZ(a)?a:[],e&&r?hW(e):[])}return t.concat(a,hW(a,[],r))}function fW(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function mW(e){const t=cW(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=WZ(e),o=a?e.offsetWidth:r,i=a?e.offsetHeight:n,s=bZ(r)!==o||bZ(n)!==i;return s&&(r=o,n=i),{width:r,height:n,$:s}}function gW(e){return ZZ(e)?e:e.contextElement}function vW(e){const t=gW(e);if(!WZ(t))return OZ(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:o}=mW(t);let i=(o?bZ(r.width):r.width)/n,s=(o?bZ(r.height):r.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const bW=OZ(0);function yW(e){const t=qZ(e);return iW()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:bW}function OW(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const a=e.getBoundingClientRect(),o=gW(e);let i=OZ(1);t&&(n?ZZ(n)&&(i=vW(n)):i=vW(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==qZ(e))&&t}(o,r,n)?yW(o):OZ(0);let l=(a.left+s.x)/i.x,c=(a.top+s.y)/i.y,u=a.width/i.x,d=a.height/i.y;if(o){const e=qZ(o),t=n&&ZZ(n)?qZ(n):n;let r=e,a=fW(r);for(;a&&n&&t!==r;){const e=vW(a),t=a.getBoundingClientRect(),n=cW(a),o=t.left+(a.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=i,r=qZ(a),a=fW(r)}}return jZ({width:u,height:d,x:l,y:c})}function wW(e,t){const r=uW(e).scrollLeft;return t?t.left+r:OW(HZ(e)).left+r}function xW(e,t,r){void 0===r&&(r=!1);const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-(r?0:wW(e,n)),y:n.top+t.scrollTop}}const kW=new Set(["absolute","fixed"]);function SW(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=qZ(e),n=HZ(e),a=r.visualViewport;let o=n.clientWidth,i=n.clientHeight,s=0,l=0;if(a){o=a.width,i=a.height;const e=iW();(!e||e&&"fixed"===t)&&(s=a.offsetLeft,l=a.offsetTop)}return{width:o,height:i,x:s,y:l}}(e,r);else if("document"===t)n=function(e){const t=HZ(e),r=uW(e),n=e.ownerDocument.body,a=vZ(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=vZ(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+wW(e);const s=-r.scrollTop;return"rtl"===cW(n).direction&&(i+=vZ(t.clientWidth,n.clientWidth)-a),{width:a,height:o,x:i,y:s}}(HZ(e));else if(ZZ(t))n=function(e,t){const r=OW(e,!0,"fixed"===t),n=r.top+e.clientTop,a=r.left+e.clientLeft,o=WZ(e)?vW(e):OZ(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:n*o.y}}(t,r);else{const r=yW(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return jZ(n)}function _W(e,t){const r=dW(e);return!(r===t||!ZZ(r)||lW(r))&&("fixed"===cW(r).position||_W(r,t))}function EW(e,t,r){const n=WZ(t),a=HZ(t),o="fixed"===r,i=OW(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=OZ(0);function c(){l.x=wW(a)}if(n||!n&&!o)if(("body"!==zZ(t)||YZ(a))&&(s=uW(t)),n){const e=OW(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&c();o&&!n&&a&&c();const u=!a||n||o?OZ(0):xW(a,s);return{x:i.left+s.scrollLeft-l.x-u.x,y:i.top+s.scrollTop-l.y-u.y,width:i.width,height:i.height}}function TW(e){return"static"===cW(e).position}function AW(e,t){if(!WZ(e)||"fixed"===cW(e).position)return null;if(t)return t(e);let r=e.offsetParent;return HZ(e)===r&&(r=r.ownerDocument.body),r}function CW(e,t){const r=qZ(e);if(tW(e))return r;if(!WZ(e)){let t=dW(e);for(;t&&!lW(t);){if(ZZ(t)&&!TW(t))return t;t=dW(t)}return r}let n=AW(e,t);for(;n&&JZ(n)&&TW(n);)n=AW(n,t);return n&&lW(n)&&TW(n)&&!oW(n)?r:n||function(e){let t=dW(e);for(;WZ(t)&&!lW(t);){if(oW(t))return t;if(tW(t))return null;t=dW(t)}return null}(e)||r}const PW={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e;const o="fixed"===a,i=HZ(n),s=!!t&&tW(t.floating);if(n===i||s&&o)return r;let l={scrollLeft:0,scrollTop:0},c=OZ(1);const u=OZ(0),d=WZ(n);if((d||!d&&!o)&&(("body"!==zZ(n)||YZ(i))&&(l=uW(n)),WZ(n))){const e=OW(n);c=vW(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}const p=!i||d||o?OZ(0):xW(i,l,!0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:HZ,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const o=[..."clippingAncestors"===r?tW(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=hW(e,[],!1).filter((e=>ZZ(e)&&"body"!==zZ(e))),a=null;const o="fixed"===cW(e).position;let i=o?dW(e):e;for(;ZZ(i)&&!lW(i);){const t=cW(i),r=oW(i);r||"fixed"!==t.position||(a=null),(o?!r&&!a:!r&&"static"===t.position&&a&&kW.has(a.position)||YZ(i)&&!r&&_W(e,i))?n=n.filter((e=>e!==i)):a=t,i=dW(i)}return t.set(e,n),n}(t,this._c):[].concat(r),n],i=o[0],s=o.reduce(((e,r)=>{const n=SW(t,r,a);return e.top=vZ(n.top,e.top),e.right=gZ(n.right,e.right),e.bottom=gZ(n.bottom,e.bottom),e.left=vZ(n.left,e.left),e}),SW(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:CW,getElementRects:async function(e){const t=this.getOffsetParent||CW,r=this.getDimensions,n=await r(e.floating);return{reference:EW(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=mW(e);return{width:t,height:r}},getScale:vW,isElement:ZZ,isRTL:function(e){return"rtl"===cW(e).direction}};function DW(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $W(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=gW(e),u=a||o?[...c?hW(c):[],...hW(t)]:[];u.forEach((e=>{a&&e.addEventListener("scroll",r,{passive:!0}),o&&e.addEventListener("resize",r)}));const d=c&&s?function(e,t){let r,n=null;const a=HZ(e);function o(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:h}=c;if(s||t(),!p||!h)return;const f={rootMargin:-yZ(d)+"px "+-yZ(a.clientWidth-(u+p))+"px "+-yZ(a.clientHeight-(d+h))+"px "+-yZ(u)+"px",threshold:vZ(0,gZ(1,l))||1};let m=!0;function g(t){const n=t[0].intersectionRatio;if(n!==l){if(!m)return i();n?i(!1,n):r=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==n||DW(c,e.getBoundingClientRect())||i(),m=!1}try{n=new IntersectionObserver(g,{...f,root:a.ownerDocument})}catch(e){n=new IntersectionObserver(g,f)}n.observe(e)}(!0),o}(c,r):null;let p,h=-1,f=null;i&&(f=new ResizeObserver((e=>{let[n]=e;n&&n.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),r()})),c&&!l&&f.observe(c),f.observe(t));let m=l?OW(e):null;return l&&function t(){const n=OW(e);m&&!DW(m,n)&&r(),m=n,p=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach((e=>{a&&e.removeEventListener("scroll",r),o&&e.removeEventListener("resize",r)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const RW=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:a,y:o,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:r,platform:n,elements:a}=e,o=await(null==n.isRTL?void 0:n.isRTL(a.floating)),i=_Z(r),s=EZ(r),l="y"===PZ(r),c=FZ.has(i)?-1:1,u=o&&l?-1:1,d=SZ(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof f&&(h="end"===s?-1*f:f),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}(t,e);return i===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:i}}}}},MW=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:a}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=SZ(e,t),c={x:r,y:n},u=await UZ(t,l),d=PZ(_Z(a)),p=TZ(d);let h=c[p],f=c[d];if(o){const e="y"===p?"bottom":"right";h=kZ(h+u["y"===p?"top":"left"],h,h-u[e])}if(i){const e="y"===d?"bottom":"right";f=kZ(f+u["y"===d?"top":"left"],f,f-u[e])}const m=s.fn({...t,[p]:h,[d]:f});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[p]:o,[d]:i}}}}}},NW=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:a,middlewareData:o,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=SZ(e,t);if(null!=(r=o.arrow)&&r.alignmentOffset)return{};const v=_Z(a),b=PZ(s),y=_Z(s)===s,O=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(y||!m?[LZ(s)]:function(e){const t=LZ(e);return[$Z(e),t,$Z(t)]}(s)),x="none"!==f;!p&&x&&w.push(...function(e,t,r,n){const a=EZ(e);let o=function(e,t,r){switch(e){case"top":case"bottom":return r?t?MZ:RZ:t?RZ:MZ;case"left":case"right":return t?NZ:IZ;default:return[]}}(_Z(e),"start"===r,n);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map($Z)))),o}(s,m,f,O));const k=[s,...w],S=await UZ(t,g),_=[];let E=(null==(n=o.flip)?void 0:n.overflows)||[];if(u&&_.push(S[v]),d){const e=function(e,t,r){void 0===r&&(r=!1);const n=EZ(e),a=DZ(e),o=AZ(a);let i="x"===a?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=LZ(i)),[i,LZ(i)]}(a,i,O);_.push(S[e[0]],S[e[1]])}if(E=[...E,{placement:a,overflows:_}],!_.every((e=>e<=0))){var T,A;const e=((null==(T=o.flip)?void 0:T.index)||0)+1,t=k[e];if(t&&("alignment"!==d||b===PZ(t)||E.every((e=>e.overflows[0]>0&&PZ(e.placement)===b))))return{data:{index:e,overflows:E},reset:{placement:t}};let r=null==(A=E.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!r)switch(h){case"bestFit":{var C;const e=null==(C=E.filter((e=>{if(x){const t=PZ(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:C[0];e&&(r=e);break}case"initialPlacement":r=s}if(a!==r)return{reset:{placement:r}}}return{}}}},IW=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:a,rects:o,platform:i,elements:s}=t,{apply:l=()=>{},...c}=SZ(e,t),u=await UZ(t,c),d=_Z(a),p=EZ(a),h="y"===PZ(a),{width:f,height:m}=o.floating;let g,v;"top"===d||"bottom"===d?(g=d,v=p===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,g="end"===p?"top":"bottom");const b=m-u.top-u.bottom,y=f-u.left-u.right,O=gZ(m-u[g],b),w=gZ(f-u[v],y),x=!t.middlewareData.shift;let k=O,S=w;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(S=y),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(k=b),x&&!p){const e=vZ(u.left,0),t=vZ(u.right,0),r=vZ(u.top,0),n=vZ(u.bottom,0);h?S=f-2*(0!==e||0!==t?e+t:vZ(u.left,u.right)):k=m-2*(0!==r||0!==n?r+n:vZ(u.top,u.bottom))}await l({...t,availableWidth:S,availableHeight:k});const _=await i.getDimensions(s.floating);return f!==_.width||m!==_.height?{reset:{rects:!0}}:{}}}};function LW(e){if(function(e){return null!=e&&"object"==typeof e&&"$el"in e}(e)){const t=e.$el;return VZ(t)&&"#comment"===zZ(t)?null:t}return e}function jW(e){return"function"==typeof e?e():Ao(e)}function BW(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function UW(e,t){const r=BW(e);return Math.round(t*r)/r}function FW(e,t,r){void 0===r&&(r={});const n=r.whileElementsMounted,a=hc((()=>{var e;return null==(e=jW(r.open))||e})),o=hc((()=>jW(r.middleware))),i=hc((()=>{var e;return null!=(e=jW(r.placement))?e:"bottom"})),s=hc((()=>{var e;return null!=(e=jW(r.strategy))?e:"absolute"})),l=hc((()=>{var e;return null==(e=jW(r.transform))||e})),c=hc((()=>LW(e.value))),u=hc((()=>LW(t.value))),d=So(0),p=So(0),h=So(s.value),f=So(i.value),m=_o({}),g=So(!1),v=hc((()=>{const e={position:h.value,left:"0",top:"0"};if(!u.value)return e;const t=UW(u.value,d.value),r=UW(u.value,p.value);return l.value?{...e,transform:"translate("+t+"px, "+r+"px)",...BW(u.value)>=1.5&&{willChange:"transform"}}:{position:h.value,left:t+"px",top:r+"px"}}));let b;function y(){if(null==c.value||null==u.value)return;const e=a.value;((e,t,r)=>{const n=new Map,a={platform:PW,...r},o={...a.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:o=[],platform:i}=r,s=o.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=BZ(c,n,l),p=n,h={},f=0;for(let r=0;r<s.length;r++){const{name:o,fn:m}=s[r],{x:g,y:v,data:b,reset:y}=await m({x:u,y:d,initialPlacement:n,placement:p,strategy:a,middlewareData:h,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,h={...h,[o]:{...h[o],...b}},y&&f<=50&&(f++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(c=!0===y.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):y.rects),({x:u,y:d}=BZ(c,p,l))),r=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:h}})(e,t,{...a,platform:o})})(c.value,u.value,{middleware:o.value,placement:i.value,strategy:s.value}).then((t=>{d.value=t.x,p.value=t.y,h.value=t.strategy,f.value=t.placement,m.value=t.middlewareData,g.value=!1!==e}))}function O(){"function"==typeof b&&(b(),b=void 0)}return ul([o,i,s,a],y,{flush:"sync"}),ul([c,u],(function(){O(),void 0!==n?null==c.value||null==u.value||(b=n(c.value,u.value,y)):y()}),{flush:"sync"}),ul(a,(function(){a.value||(g.value=!1)}),{flush:"sync"}),ra()&&na(O),{x:fo(d),y:fo(p),strategy:fo(h),placement:fo(f),middlewareData:fo(m),isPositioned:fo(g),floatingStyles:v,update:y}}let QW=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[e]];return t};const zW=Symbol(),qW=Li({inheritAttrs:!1,__name:"ScalarTeleport",props:{to:{},immediate:{type:Boolean},disabled:{type:Boolean}},setup(e){const t=Bs(zW,"body");return(e,r)=>(Pl(),Nl(wi,{defer:!e.immediate,disabled:e.disabled,to:e.to||Ao(t)},[Ul("div",Gl({class:"scalar-app",style:{display:"contents"}},e.$attrs),[fs(e.$slots,"default")],16)],8,["defer","disabled","to"]))}}),HW=Li({inheritAttrs:!1,__name:"ScalarFloating",props:{placement:{default:"bottom"},offset:{type:[Number,Object,Function],default:5},resize:{type:Boolean,default:!1},target:{},middleware:{default:()=>[]},teleport:{type:[Boolean,String]}},setup(e){const t=So(null),r=So(null),n=hc((()=>{var t;if(typeof window<"u"&&r.value){if("string"==typeof e.target){const t=document.getElementById(e.target);if(t)return t;console.warn(`ScalarFloating: Target with id="${e.target}" not found`)}else if(e.target instanceof HTMLElement)return e.target;return(null==(t=r.value.children)?void 0:t[0])||r.value}})),a=function(e,t={enabled:So(!0)}){const r=So(0),n=So(0),a=So();return typeof ResizeObserver<"u"&&(a.value=new ResizeObserver((([e])=>{var t,a;e&&(r.value=(null==(t=e.borderBoxSize[0])?void 0:t.inlineSize)??0,n.value=(null==(a=e.borderBoxSize[0])?void 0:a.blockSize)??0)}))),ul([()=>Co(t.enabled),()=>Co(e)],(([e,t])=>{!t||!a.value||(e?a.value.observe(t):a.value.disconnect())}),{immediate:!0}),{width:hc((()=>Co(t.enabled)?`${r.value}px`:void 0)),height:hc((()=>Co(t.enabled)?`${n.value}px`:void 0))}}(n,{enabled:hc((()=>e.resize))}),o=hc((()=>"y"===mZ(e.placement)?a.width.value:void 0)),i=hc((()=>"x"===mZ(e.placement)?a.height.value:void 0)),{floatingStyles:s,middlewareData:l}=FW(n,t,{placement:hc((()=>e.placement)),whileElementsMounted:$W,middleware:hc((()=>[RW(e.offset),NW(),MW(),IW({apply({availableWidth:e,availableHeight:t,elements:r}){Object.assign(r.floating.style,{maxWidth:Math.max(0,e)-25+"px",maxHeight:Math.max(0,t)-25+"px"})}}),...e.middleware]))});return(e,n)=>(Pl(),Ml(Sl,null,[Ul("div",{ref_key:"wrapperRef",ref:r,class:zn({contents:!!e.$slots.default})},[fs(e.$slots,"default")],2),e.$slots.floating?(Pl(),Nl(Ao(qW),{key:0,disabled:!e.teleport,to:"string"==typeof e.teleport?e.teleport:void 0},{default:ci((()=>[Ul("div",{ref_key:"floatingRef",ref:t,class:"relative z-context",style:jn(Ao(s))},[fs(e.$slots,"floating",{data:Ao(l),height:i.value,width:o.value})],4)])),_:3},8,["disabled","to"])):Vl("",!0)],64))}}),VW=Li({inheritAttrs:!1,__name:"ScalarFloatingBackdrop",setup(e){const{cx:t}=GQ();return(e,r)=>(Pl(),Ml("div",qn(Ql(Ao(t)("absolute inset-0 -z-1 rounded bg-b-1 shadow-lg brightness-lifted"))),[fs(e.$slots,"default")],16))}}),ZW=Li({inheritAttrs:!1,__name:"ScalarComboboxPopover",props:{placement:{},offset:{type:[Number,Object,Function]},resize:{type:Boolean},target:{},middleware:{},teleport:{type:[Boolean,String]}},setup(e,{expose:t}){const{cx:r}=GQ(),n=So(null),a=e=>{var t;["ArrowUp","ArrowDown"].includes(e.key)&&(e.preventDefault(),null==(t=e.target)||t.dispatchEvent(new KeyboardEvent("keydown",{key:"Enter"})))};return t({popoverButtonRef:n}),(e,t)=>(Pl(),Nl(Ao(xF),{as:"template"},{default:ci((({open:t})=>[Fl(Ao(HW),qn(Ql(e.$props)),hs({default:ci((()=>[Fl(Ao(kF),{ref_key:"popoverButtonRef",ref:n,as:"template",onKeydown:a},{default:ci((()=>[fs(e.$slots,"default",{open:t})])),_:2},1536)])),_:2},[t?{name:"floating",fn:ci((({width:n})=>[Fl(Ao(SF),Gl({style:{width:n}},Ao(r)("relative flex flex-col max-h-[inherit] w-40 rounded text-sm")),{default:ci((({close:r})=>[fs(e.$slots,"popover",{close:r,open:t}),Fl(Ao(VW))])),_:2},1040,["style"])])),key:"0"}:void 0]),1040)])),_:3}))}}),WW=Li({__name:"ScalarCombobox",props:{options:{},modelValue:{},placeholder:{},placement:{},offset:{type:[Number,Object,Function]},resize:{type:Boolean},target:{},middleware:{},teleport:{type:[Boolean,String]}},emits:["update:modelValue"],setup:e=>(e,t)=>(Pl(),Nl(ZW,{middleware:e.middleware,offset:e.offset,placement:e.placement??"bottom-start",resize:e.resize,target:e.target,teleport:e.teleport},{default:ci((({open:t})=>[fs(e.$slots,"default",{open:t})])),popover:ci((({open:t,close:r})=>[Fl(fZ,{modelValue:e.modelValue?[e.modelValue]:[],open:t,options:e.options,placeholder:e.placeholder,"onUpdate:modelValue":t=>(r(),e.$emit("update:modelValue",t[0]))},hs({_:2},[e.$slots.before?{name:"before",fn:ci((()=>[fs(e.$slots,"before",{open:t})])),key:"0"}:void 0,e.$slots.after?{name:"after",fn:ci((()=>[fs(e.$slots,"after",{open:t})])),key:"1"}:void 0]),1032,["modelValue","open","options","placeholder","onUpdate:modelValue"])])),_:3},8,["middleware","offset","placement","resize","target","teleport"]))}),XW=Li({__name:"ScalarComboboxMultiselect",props:{options:{},modelValue:{},placeholder:{},isDeletable:{type:Boolean},placement:{},offset:{type:[Number,Object,Function]},resize:{type:Boolean},target:{},middleware:{},teleport:{type:[Boolean,String]}},emits:["update:modelValue","delete"],setup(e,{expose:t}){const r=So(null);return t({comboboxPopoverRef:r}),(e,t)=>(Pl(),Nl(ZW,{ref_key:"comboboxPopoverRef",ref:r,middleware:e.middleware,offset:e.offset,placement:e.placement??"bottom-start",resize:e.resize,target:e.target,teleport:e.teleport},{popover:ci((({open:r})=>{var n;return[null!=(n=e.options)&&n.length?(Pl(),Nl(fZ,{key:0,isDeletable:e.isDeletable,modelValue:e.modelValue,multiselect:"",open:r,options:e.options,placeholder:e.placeholder,onDelete:t[0]||(t[0]=t=>e.$emit("delete",t)),"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:modelValue",t))},hs({_:2},[e.$slots.before?{name:"before",fn:ci((()=>[fs(e.$slots,"before",{open:r})])),key:"0"}:void 0,e.$slots.after?{name:"after",fn:ci((()=>[fs(e.$slots,"after",{open:r})])),key:"1"}:void 0]),1032,["isDeletable","modelValue","open","options","placeholder"])):Vl("",!0)]})),default:ci((()=>[fs(e.$slots,"default")])),_:3},8,["middleware","offset","placement","resize","target","teleport"]))}}),GW={class:"custom-scroll min-h-0 flex-1"},YW={class:"flex flex-col p-0.75"},KW=Li({inheritAttrs:!1,__name:"ScalarDropdownMenu",props:{is:{}},setup(e){const{cx:t}=GQ();return(e,r)=>(Pl(),Nl(cs(e.is??"div"),Gl({role:"menu",tabindex:"0"},Ao(t)("relative flex w-56")),{default:ci((()=>[Ul("div",GW,[Ul("div",YW,[fs(e.$slots,"default")]),fs(e.$slots,"backdrop",{},(()=>[Fl(Ao(VW))]))])])),_:3},16))}}),JW=Li({inheritAttrs:!1,__name:"ScalarDropdown",props:{placement:{},offset:{type:[Number,Object,Function]},resize:{type:Boolean},target:{},middleware:{},teleport:{type:[Boolean,String]}},setup(e){const{cx:t}=GQ();return(e,r)=>(Pl(),Nl(Ao(dF),null,{default:ci((({open:r})=>[Fl(Ao(HW),Gl(e.$props,{placement:e.placement??"bottom-start"}),{floating:ci((({width:n})=>[Fl(KW,Gl({is:Ao(hF),style:{width:n}},Ao(t)("max-h-[inherit]")),{default:ci((()=>[fs(e.$slots,"items",{open:r})])),_:2},1040,["is","style"])])),default:ci((()=>[Fl(Ao(pF),{as:"template"},{default:ci((()=>[fs(e.$slots,"default",{open:r})])),_:2},1024)])),_:2},1040,["placement"])])),_:3}))}}),eX={key:1,class:"rounded border bg-b-2 p-3 text-sm"},tX={key:0,class:"mt-2 rounded border bg-b-1 p-2 font-code text-c-2"},rX=Li({__name:"ScalarErrorBoundary",setup(e){const t=So(!1),r=So();return os(((e,n,a)=>(console.error("[ERROR]",e,a),t.value=!0,r.value=e,!1))),(e,n)=>{var a,o;return t.value?(Pl(),Ml("div",eX,[n[0]||(n[0]=Ul("div",{class:"p-2"},"Oops, something went wrong here.",-1)),r.value?(Pl(),Ml("div",tX,Gn(null==(a=r.value)?void 0:a.name)+": "+Gn(null==(o=r.value)?void 0:o.message),1)):Vl("",!0)])):fs(e.$slots,"default",{key:0})}}}),nX=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],aX=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],oX=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],iX=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],sX=(e,t,r)=>{let n=e;return"string"==typeof t||Array.isArray(t)?n=e.toLocaleString(t,r):!0!==t&&void 0===r||(n=e.toLocaleString(void 0,r)),n},lX={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function cX(e,t){return Pl(),Ml("svg",lX,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M5 11.988h14M12.006 5v14"},null,-1)]))}const uX={render:cX},dX=Object.freeze(Object.defineProperty({__proto__:null,default:uX,render:cX},Symbol.toStringTag,{value:"Module"})),pX={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function hX(e,t){return Pl(),Ml("svg",pX,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M8.143 12h7.714M12 8.143v7.714M5.571 3H18.43A2.57 2.57 0 0 1 21 5.571V18.43A2.57 2.57 0 0 1 18.429 21H5.57A2.57 2.57 0 0 1 3 18.429V5.57A2.57 2.57 0 0 1 5.571 3"},null,-1)]))}const fX={render:hX},mX=Object.freeze(Object.defineProperty({__proto__:null,default:fX,render:hX},Symbol.toStringTag,{value:"Module"})),gX={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function vX(e,t){return Pl(),Ml("svg",gX,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8v4m0 4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"},null,-1)]))}const bX={render:vX},yX=Object.freeze(Object.defineProperty({__proto__:null,default:bX,render:vX},Symbol.toStringTag,{value:"Module"})),OX={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function wX(e,t){return Pl(),Ml("svg",OX,t[0]||(t[0]=[Ul("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M22 12H2m9.3-9.3L2 12l9.3 9.3"},null,-1)]))}const xX={render:wX},kX=Object.freeze(Object.defineProperty({__proto__:null,default:xX,render:wX},Symbol.toStringTag,{value:"Module"})),SX={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function _X(e,t){return Pl(),Ml("svg",SX,t[0]||(t[0]=[Ul("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M2 12h20m-9.3 9.3L22 12l-9.3-9.3"},null,-1)]))}const EX={render:_X},TX=Object.freeze(Object.defineProperty({__proto__:null,default:EX,render:_X},Symbol.toStringTag,{value:"Module"})),AX={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function CX(e,t){return Pl(),Ml("svg",AX,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1m8 0h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1"},null,-1)]))}const PX={render:CX},DX=Object.freeze(Object.defineProperty({__proto__:null,default:PX,render:CX},Symbol.toStringTag,{value:"Module"})),$X={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function RX(e,t){return Pl(),Ml("svg",$X,t[0]||(t[0]=[Ul("path",{d:"M16.4 6.8v5.6H7.6m0-5.6v10.4"},null,-1),Ul("circle",{cx:"7.6",cy:"4.4",r:"2.4"},null,-1),Ul("circle",{cx:"7.6",cy:"19.6",r:"2.4"},null,-1),Ul("circle",{cx:"16.4",cy:"4.4",r:"2.4"},null,-1)]))}const MX={render:RX},NX=Object.freeze(Object.defineProperty({__proto__:null,default:MX,render:RX},Symbol.toStringTag,{value:"Module"})),IX={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function LX(e,t){return Pl(),Ml("svg",IX,t[0]||(t[0]=[Ul("path",{d:"M12 22.125V4.712S9.545 1.985 1.268 1.875a.5.5 0 0 0-.366.15.52.52 0 0 0-.152.369v16.375a.515.515 0 0 0 .5.519C9.543 19.4 12 22.125 12 22.125"},null,-1),Ul("path",{d:"M9 11.18a21.3 21.3 0 0 0-5.26-1.055M9 15.375a21.3 21.3 0 0 0-5.26-1.055M15 11.18a21.3 21.3 0 0 1 5.26-1.055M15 15.375a21.3 21.3 0 0 1 5.26-1.055"},null,-1),Ul("path",{d:"M12 22.125V4.712s2.455-2.727 10.732-2.837a.5.5 0 0 1 .366.15.52.52 0 0 1 .152.369v16.375a.515.515 0 0 1-.5.519C14.457 19.4 12 22.125 12 22.125"},null,-1)]))}const jX={render:LX},BX=Object.freeze(Object.defineProperty({__proto__:null,default:jX,render:LX},Symbol.toStringTag,{value:"Module"})),UX={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function FX(e,t){return Pl(),Ml("svg",UX,t[0]||(t[0]=[Ul("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M21.4 4.6 10.6 19.4l-8-6.4"},null,-1)]))}const QX={render:FX},zX=Object.freeze(Object.defineProperty({__proto__:null,default:QX,render:FX},Symbol.toStringTag,{value:"Module"})),qX={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function HX(e,t){return Pl(),Ml("svg",qX,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m18 10-6 6-6-6"},null,-1)]))}const VX={render:HX},ZX=Object.freeze(Object.defineProperty({__proto__:null,default:VX,render:HX},Symbol.toStringTag,{value:"Module"})),WX={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function XX(e,t){return Pl(),Ml("svg",WX,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m14 18-6-6 6-6"},null,-1)]))}const GX={render:XX},YX=Object.freeze(Object.defineProperty({__proto__:null,default:GX,render:XX},Symbol.toStringTag,{value:"Module"})),KX={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function JX(e,t){return Pl(),Ml("svg",KX,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m9 18 6-6-6-6"},null,-1)]))}const eG={render:JX},tG=Object.freeze(Object.defineProperty({__proto__:null,default:eG,render:JX},Symbol.toStringTag,{value:"Module"})),rG={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function nG(e,t){return Pl(),Ml("svg",rG,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m18 15-6-6-6 6"},null,-1)]))}const aG={render:nG},oG=Object.freeze(Object.defineProperty({__proto__:null,default:aG,render:nG},Symbol.toStringTag,{value:"Module"})),iG={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function sG(e,t){return Pl(),Ml("svg",iG,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2m-6 4h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2"},null,-1)]))}const lG={render:sG},cG=Object.freeze(Object.defineProperty({__proto__:null,default:lG,render:sG},Symbol.toStringTag,{value:"Module"})),uG={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function dG(e,t){return Pl(),Ml("svg",uG,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M18 6 6 18M6 6l12 12"},null,-1)]))}const pG={render:dG},hG=Object.freeze(Object.defineProperty({__proto__:null,default:pG,render:dG},Symbol.toStringTag,{value:"Module"})),fG={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function mG(e,t){return Pl(),Ml("svg",fG,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m9.273 9.273 5.454 5.454m0-5.454-5.454 5.454M5.57 3h12.86A2.57 2.57 0 0 1 21 5.571V18.43A2.57 2.57 0 0 1 18.429 21H5.57A2.57 2.57 0 0 1 3 18.429V5.57A2.57 2.57 0 0 1 5.571 3Z"},null,-1)]))}const gG={render:mG},vG=Object.freeze(Object.defineProperty({__proto__:null,default:gG,render:mG},Symbol.toStringTag,{value:"Module"})),bG={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function yG(e,t){return Pl(),Ml("svg",bG,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2m-3.121 8.879 4.242 4.242m0-4.242L12.88 17.12M10 8h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2"},null,-1)]))}const OG={render:yG},wG=Object.freeze(Object.defineProperty({__proto__:null,default:OG,render:yG},Symbol.toStringTag,{value:"Module"})),xG={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function kG(e,t){return Pl(),Ml("svg",xG,t[0]||(t[0]=[Ul("path",{d:"M18.375 19.5a4.875 4.875 0 1 0-2.764-8.885A7.5 7.5 0 1 0 8.25 19.5z"},null,-1)]))}const SG={render:kG},_G=Object.freeze(Object.defineProperty({__proto__:null,default:SG,render:kG},Symbol.toStringTag,{value:"Module"})),EG={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function TG(e,t){return Pl(),Ml("svg",EG,t[0]||(t[0]=[Ul("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M21.75 9V6a1.5 1.5 0 0 0-1.5-1.5h-12V3a1.5 1.5 0 0 0-1.5-1.5h-4.5A1.5 1.5 0 0 0 .75 3v17.8a1.7 1.7 0 0 0 3.336.438l2.352-11.154A1.5 1.5 0 0 1 7.879 9za1.5 1.5 0 0 1 1.45 1.886l-2.2 10.5a1.5 1.5 0 0 1-1.45 1.114H2.447"},null,-1),Ul("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m12 13.5-2.25 2.25L12 18m4.5-4.5 2.25 2.25L16.5 18"},null,-1)]))}const AG={render:TG},CG=Object.freeze(Object.defineProperty({__proto__:null,default:AG,render:TG},Symbol.toStringTag,{value:"Module"})),PG={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function DG(e,t){return Pl(),Ml("svg",PG,t[0]||(t[0]=[Ul("path",{d:"M10.546 2.438a1.957 1.957 0 0 0 2.908 0L14.4 1.4a1.959 1.959 0 0 1 3.41 1.413l-.071 1.4a1.96 1.96 0 0 0 2.051 2.054l1.4-.071a1.959 1.959 0 0 1 1.41 3.41l-1.042.94a1.96 1.96 0 0 0 0 2.909l1.042.94a1.959 1.959 0 0 1-1.413 3.41l-1.4-.071a1.96 1.96 0 0 0-2.056 2.056l.071 1.4A1.959 1.959 0 0 1 14.4 22.6l-.941-1.041a1.96 1.96 0 0 0-2.908 0L9.606 22.6A1.959 1.959 0 0 1 6.2 21.192l.072-1.4a1.96 1.96 0 0 0-2.056-2.056l-1.4.071A1.958 1.958 0 0 1 1.4 14.4l1.041-.94a1.96 1.96 0 0 0 0-2.909L1.4 9.606A1.958 1.958 0 0 1 2.809 6.2l1.4.071a1.96 1.96 0 0 0 2.058-2.06L6.2 2.81A1.959 1.959 0 0 1 9.606 1.4z"},null,-1),Ul("path",{d:"M7.5 12.001a4.5 4.5 0 1 0 9 0 4.5 4.5 0 1 0-9 0"},null,-1)]))}const $G={render:DG},RG=Object.freeze(Object.defineProperty({__proto__:null,default:$G,render:DG},Symbol.toStringTag,{value:"Module"})),MG={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function NG(e,t){return Pl(),Ml("svg",MG,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M20.86 16.6c0 .32-.16.64-.47.72l-6.3 2.83a.93.93 0 0 1-.8-.08c-.23-.16-.38-.4-.38-.63V4.56c0-.24.15-.55.39-.63.24-.16.47-.16.79-.08l6.3 2.83c.31.16.47.4.47.71v9.22zM10.7 19.52a.77.77 0 0 1-.7-.08.72.72 0 0 1-.32-.63V5.35c0-.24.15-.56.4-.63.23-.16.46-.16.78-.08M7.43 18.73a.77.77 0 0 1-.7-.08.72.72 0 0 1-.32-.63V6.05c0-.23.16-.55.4-.63.23-.15.47-.15.78-.07m-3.43 12.6a.77.77 0 0 1-.7-.08.72.72 0 0 1-.32-.63V6.84c0-.23.16-.55.4-.63.23-.16.47-.16.78-.08"},null,-1)]))}const IG={render:NG},LG=Object.freeze(Object.defineProperty({__proto__:null,default:IG,render:NG},Symbol.toStringTag,{value:"Module"})),jG={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function BG(e,t){return Pl(),Ml("svg",jG,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.739 8.061c-2.02.404-4.041-1.01-4.445-3.03-.202-1.01 0-2.223.606-3.031C6.445 2 2 6.445 2 11.9s4.445 9.9 9.9 9.9 9.9-4.445 9.9-9.9v-.808c-1.616 1.212-4.04.808-5.253-.808-.606-.606-.808-1.415-.808-2.223"},null,-1),Ul("path",{fill:"currentColor",d:"M8.667 15.133a1.212 1.212 0 1 0 0-2.425 1.212 1.212 0 0 0 0 2.425m4.243 1.212a1.212 1.212 0 1 0 0-2.424 1.212 1.212 0 0 0 0 2.424M9.88 9.88a1.212 1.212 0 1 0 0-2.425 1.212 1.212 0 0 0 0 2.425"},null,-1)]))}const UG={render:BG},FG=Object.freeze(Object.defineProperty({__proto__:null,default:UG,render:BG},Symbol.toStringTag,{value:"Module"})),QG={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function zG(e,t){return Pl(),Ml("svg",QG,t[0]||(t[0]=[Ul("path",{d:"M17.673 16.462C10.59 16.46 5.52 9.612 7.59 2.837.22 6.233-.71 16.333 5.917 21.016c5.864 4.144 14.064 1.34 16.163-5.526-1.38.64-2.884.972-4.407.972M11.996 3.484h4.866m-2.433-2.433v4.867m4.867 2.433h3.244m-1.622-1.622v3.244"},null,-1)]))}const qG={render:zG},HG=Object.freeze(Object.defineProperty({__proto__:null,default:qG,render:zG},Symbol.toStringTag,{value:"Module"})),VG={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function ZG(e,t){return Pl(),Ml("svg",VG,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M3 6h18m-2 0v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6m3 0V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2m-6 5v6m4-6v6"},null,-1)]))}const WG={render:ZG},XG=Object.freeze(Object.defineProperty({__proto__:null,default:WG,render:ZG},Symbol.toStringTag,{value:"Module"})),GG={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function YG(e,t){return Pl(),Ml("svg",GG,t[0]||(t[0]=[Ul("path",{d:"M10.145 5.108a.584.584 0 0 1-.657-.37l-.24-.705a.51.51 0 0 0-.496-.35c-1.835.065-3.434.577-4.13.834a1.2 1.2 0 0 0-.6.474c-.75 1.142-3.085 5.242-3.02 11.944.003.4.169.78.485 1.025.716.556 2.259 1.576 4.702 2.314.358.108.75.004.962-.304.316-.462.597-1.04.796-1.494a.56.56 0 0 1 .669-.31c.87.248 1.993.439 3.39.439 1.393 0 2.512-.19 3.379-.437a.56.56 0 0 1 .669.31c.199.454.48 1.03.795 1.492.211.308.604.412.962.304 2.443-.738 3.986-1.758 4.703-2.314.315-.245.48-.626.485-1.025.063-6.652-2.236-10.74-3.003-11.917a1.25 1.25 0 0 0-.654-.5c-.75-.256-2.428-.763-4.094-.833a.505.505 0 0 0-.496.348l-.239.703a.586.586 0 0 1-.66.37 10.5 10.5 0 0 0-1.846-.15c-.827 0-1.461.08-1.862.152"},null,-1),Ul("path",{d:"M10 12.553c0 1.38-1.008 2.5-2.25 2.5-1.243 0-2.25-1.12-2.25-2.5 0-1.381 1.007-2.5 2.25-2.5 1.242 0 2.25 1.119 2.25 2.5m4 0c0 1.38 1.007 2.5 2.25 2.5 1.242 0 2.25-1.12 2.25-2.5 0-1.381-1.008-2.5-2.25-2.5-1.243 0-2.25 1.119-2.25 2.5"},null,-1)]))}const KG={render:YG},JG=Object.freeze(Object.defineProperty({__proto__:null,default:KG,render:YG},Symbol.toStringTag,{value:"Module"})),eY={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function tY(e,t){return Pl(),Ml("svg",eY,t[0]||(t[0]=[Ul("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M5.4 22.2h13c1.1 0 2-.9 2-2V3.6c0-1.1-.9-2-2-2h-9l-6 6v12.6c0 1.1.9 2 2 2"},null,-1),Ul("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M3.6 7.6h4c1.1 0 2-.9 2-2v-4zm9.4 0h4m-10 5h10M7 17.4h10"},null,-1)]))}const rY={render:tY},nY=Object.freeze(Object.defineProperty({__proto__:null,default:rY,render:tY},Symbol.toStringTag,{value:"Module"})),aY={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function oY(e,t){return Pl(),Ml("svg",aY,t[0]||(t[0]=[Ul("path",{d:"M12.001 3.75v12m-4.5-4.5 4.5 4.5 4.5-4.5m6.75 4.5v1.5a3 3 0 0 1-3 3h-16.5a3 3 0 0 1-3-3v-1.5"},null,-1)]))}const iY={render:oY},sY=Object.freeze(Object.defineProperty({__proto__:null,default:iY,render:oY},Symbol.toStringTag,{value:"Module"})),lY={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function cY(e,t){return Pl(),Ml("svg",lY,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M7.42 16.58H3.25a.83.83 0 0 1-.83-.83V3.25a.83.83 0 0 1 .83-.83h12.5a.83.83 0 0 1 .83.83v4.17"},null,-1),Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 7.42h12.5s.83 0 .83.83v12.5s0 .83-.83.83H8.25s-.83 0-.83-.83V8.25s0-.83.83-.83"},null,-1)]))}const uY={render:cY},dY=Object.freeze(Object.defineProperty({__proto__:null,default:uY,render:cY},Symbol.toStringTag,{value:"Module"})),pY={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function hY(e,t){return Pl(),Ml("svg",pY,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M14 3H5.571A2.57 2.57 0 0 0 3 5.571V18.43A2.57 2.57 0 0 0 5.571 21H18.43A2.57 2.57 0 0 0 21 18.429V10m.96-5.35a1.845 1.845 0 0 0-2.61-2.61l-6.644 6.647a1.3 1.3 0 0 0-.328.543l-.864 2.849a.327.327 0 0 0 .408.407l2.849-.864c.205-.062.391-.174.543-.325l6.645-6.647Z"},null,-1)]))}const fY={render:hY},mY=Object.freeze(Object.defineProperty({__proto__:null,default:fY,render:hY},Symbol.toStringTag,{value:"Module"})),gY={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function vY(e,t){return Pl(),Ml("svg",gY,t[0]||(t[0]=[Ul("path",{d:"M6 11c-.5 0-1 .4-1 1s.5 1 1 1 1-.4 1-1-.5-1-1-1m12 0c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1m-6 0c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1"},null,-1)]))}const bY={render:vY},yY=Object.freeze(Object.defineProperty({__proto__:null,default:bY,render:vY},Symbol.toStringTag,{value:"Module"})),OY={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function wY(e,t){return Pl(),Ml("svg",OY,t[0]||(t[0]=[Ul("path",{d:"M2.25 4.5h19.5s1.5 0 1.5 1.5v12s0 1.5-1.5 1.5H2.25s-1.5 0-1.5-1.5V6s0-1.5 1.5-1.5m13.437 5.475L19.5 13.5M8.313 9.975 4.5 13.5"},null,-1),Ul("path",{d:"m22.88 5.014-9.513 6.56a2.41 2.41 0 0 1-2.734 0L1.12 5.014"},null,-1)]))}const xY={render:wY},kY=Object.freeze(Object.defineProperty({__proto__:null,default:xY,render:wY},Symbol.toStringTag,{value:"Module"})),SY={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function _Y(e,t){return Pl(),Ml("svg",SY,t[0]||(t[0]=[Ul("path",{d:"M12 17.6c-.2 0-.4-.2-.4-.4s.2-.4.4-.4m0 .8c.2 0 .4-.2.4-.4s-.2-.4-.4-.4m0-3V5.6"},null,-1),Ul("path",{d:"M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10"},null,-1)]))}const EY={render:_Y},TY=Object.freeze(Object.defineProperty({__proto__:null,default:EY,render:_Y},Symbol.toStringTag,{value:"Module"})),AY={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function CY(e,t){return Pl(),Ml("svg",AY,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m18.59 15.3 2.9-2.91a1.32 1.32 0 0 0 0-1.87l-1.85-1.85a3.3 3.3 0 1 1-4.31-4.31L13.48 2.5a1.32 1.32 0 0 0-1.87 0l-2.9 2.91a3.3 3.3 0 1 0-3.3 3.3l-2.9 2.9a1.32 1.32 0 0 0 0 1.87l1.85 1.85a3.3 3.3 0 1 1 4.31 4.31l1.85 1.85a1.32 1.32 0 0 0 1.87 0l2.9-2.9a3.3 3.3 0 1 0 3.3-3.3Z"},null,-1)]))}const PY={render:CY},DY=Object.freeze(Object.defineProperty({__proto__:null,default:PY,render:CY},Symbol.toStringTag,{value:"Module"})),$Y={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function RY(e,t){return Pl(),Ml("svg",$Y,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M6.4 4H20v13.59M4 20 20 4"},null,-1)]))}const MY={render:RY},NY=Object.freeze(Object.defineProperty({__proto__:null,default:MY,render:RY},Symbol.toStringTag,{value:"Module"})),IY={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function LY(e,t){return Pl(),Ml("svg",IY,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M4 6h16M7.556 12h8.888m-6.222 6h3.556"},null,-1)]))}const jY={render:LY},BY=Object.freeze(Object.defineProperty({__proto__:null,default:jY,render:LY},Symbol.toStringTag,{value:"Module"})),UY={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function FY(e,t){return Pl(),Ml("svg",UY,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2z"},null,-1)]))}const QY={render:FY},zY=Object.freeze(Object.defineProperty({__proto__:null,default:QY,render:FY},Symbol.toStringTag,{value:"Module"})),qY={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 1024 1024"};function HY(e,t){return Pl(),Ml("svg",qY,t[0]||(t[0]=[Ul("path",{d:"M512 0a512 512 0 0 0-162 998c26 4 35-11 35-25l-1-95c-128 23-161-32-172-60-6-15-31-61-52-73-18-10-44-33-1-33 40-1 69 37 78 52 46 78 120 56 149 43 5-33 18-56 33-69-114-13-234-56-234-253 0-56 20-101 53-137-5-13-23-65 5-136 0 0 43-13 141 53a487 487 0 0 1 256 0c98-66 141-53 141-53 28 71 10 123 5 136 33 36 53 81 53 137 0 197-120 240-234 253 18 16 35 47 35 95l-1 140c0 14 9 30 35 25A512 512 0 0 0 512 0"},null,-1)]))}const VY={render:HY},ZY=Object.freeze(Object.defineProperty({__proto__:null,default:VY,render:HY},Symbol.toStringTag,{value:"Module"})),WY={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function XY(e,t){return Pl(),Ml("svg",WY,t[0]||(t[0]=[Ul("path",{d:"M16.643 22.94v-3.135a3.68 3.68 0 0 0-1.026-2.852c3.43-.382 7.036-1.682 7.036-7.648a5.94 5.94 0 0 0-1.64-4.097 5.54 5.54 0 0 0-.097-4.12s-1.29-.382-4.272 1.618a14.6 14.6 0 0 0-7.649 0c-2.982-2-4.272-1.617-4.272-1.617a5.54 5.54 0 0 0-.098 4.119 5.94 5.94 0 0 0-1.639 4.13c0 5.922 3.606 7.222 7.036 7.648a3.68 3.68 0 0 0-1.027 2.819v3.136m0-2.186c-3.277 1.064-6.009 0-7.648-3.278"},null,-1)]))}const GY={render:XY},YY=Object.freeze(Object.defineProperty({__proto__:null,default:GY,render:XY},Symbol.toStringTag,{value:"Module"})),KY={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function JY(e,t){return Pl(),Ml("svg",KY,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M22 12c0 5.523-4.477 10-10 10m10-10c0-5.523-4.477-10-10-10m10 10H2m10 10C6.477 22 2 17.523 2 12m10 10a14.5 14.5 0 0 1 0-20m0 20a14.5 14.5 0 0 0 0-20M2 12C2 6.477 6.477 2 12 2"},null,-1)]))}const eK={render:JY},tK=Object.freeze(Object.defineProperty({__proto__:null,default:eK,render:JY},Symbol.toStringTag,{value:"Module"})),rK={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"};function nK(e,t){return Pl(),Ml("svg",rK,t[0]||(t[0]=[Ul("path",{d:"M23.93 10.67a.76.76 0 0 0-.75-.67H12.75a.76.76 0 0 0-.75.75v3.5a.76.76 0 0 0 .75.75h5.58A7 7 0 1 1 12 5a7 7 0 0 1 4.23 1.42.74.74 0 0 0 1-.07l2.47-2.49a.75.75 0 0 0 .22-.57.77.77 0 0 0-.27-.54A12 12 0 1 0 24 12a12 12 0 0 0-.07-1.33"},null,-1)]))}const aK={render:nK},oK=Object.freeze(Object.defineProperty({__proto__:null,default:aK,render:nK},Symbol.toStringTag,{value:"Module"})),iK={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function sK(e,t){return Pl(),Ml("svg",iK,t[0]||(t[0]=[Ul("path",{d:"M9.2 9.2c0-.5.1-1 .4-1.5s.6-.8 1.1-1q.75-.3 1.5-.3c.75 0 1 .2 1.4.5s.7.7 1 1.2c.2.5.3 1 .2 1.5s-.3 1-.6 1.4-.8.7-1.2.9c-.255.128-.5.3-.7.5s-.3.5-.3.8v.9m0 3.5c-.2 0-.4-.2-.4-.4s.2-.4.4-.4.4.2.4.4-.2.4-.4.4"},null,-1),Ul("path",{d:"M12 22c5.524 0 10-4.476 10-10S17.524 2 12 2 2 6.476 2 12s4.476 10 10 10"},null,-1)]))}const lK={render:sK},cK=Object.freeze(Object.defineProperty({__proto__:null,default:lK,render:sK},Symbol.toStringTag,{value:"Module"})),uK={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function dK(e,t){return Pl(),Ml("svg",uK,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M9.88 14.12a3 3 0 1 1 4.24-4.24m-3.39 9.04q.632.079 1.27.08c7 0 10-7 10-7a13.2 13.2 0 0 0-1.67-2.68M6.61 17.39A13.5 13.5 0 0 1 2 12s3-7 10-7a9.74 9.74 0 0 1 5.39 1.61M2 22 22 2"},null,-1)]))}const pK={render:dK},hK=Object.freeze(Object.defineProperty({__proto__:null,default:pK,render:dK},Symbol.toStringTag,{value:"Module"})),fK={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function mK(e,t){return Pl(),Ml("svg",fK,t[0]||(t[0]=[Ul("path",{d:"M12.9 6.8v6.1h4.7"},null,-1),Ul("path",{d:"M6.1 17.2c1.6 2.2 4.2 3.6 7.1 3.6 4.8 0 8.8-3.9 8.8-8.8s-3.9-8.8-8.8-8.8-8.8 4-8.8 8.8v1.7M2 11.3l2.4 2.4 2.4-2.4"},null,-1)]))}const gK={render:mK},vK=Object.freeze(Object.defineProperty({__proto__:null,default:gK,render:mK},Symbol.toStringTag,{value:"Module"})),bK={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function yK(e,t){return Pl(),Ml("svg",bK,t[0]||(t[0]=[Ul("path",{d:"M22.1 9.2 12 1.5 1.8 9.2c-.2.2-.3.5-.4.7v11.7c0 .5.4.9.9.9h6.1v-4.9c0-1.9 1.6-3.5 3.5-3.5s3.5 1.6 3.5 3.5v4.9h6.1c.5 0 .9-.4.9-.9V9.9c0-.3-.1-.6-.4-.7z"},null,-1)]))}const OK={render:yK},wK=Object.freeze(Object.defineProperty({__proto__:null,default:OK,render:yK},Symbol.toStringTag,{value:"Module"})),xK={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function kK(e,t){return Pl(),Ml("svg",xK,t[0]||(t[0]=[Ul("path",{d:"M12 10.67v7.98M14.66 16 12 18.64 9.34 16"},null,-1),Ul("path",{d:"M3.35 7.34h17.3s1.33 0 1.33 1.33v11.98s0 1.33-1.33 1.33H3.35s-1.33 0-1.33-1.33V8.67s0-1.33 1.33-1.33"},null,-1),Ul("path",{d:"m2.2 8 2.13-5.19a1.33 1.33 0 0 1 1.22-.79h12.9a1.33 1.33 0 0 1 1.22.8l2.08 5.1M12 7.34V2.02"},null,-1)]))}const SK={render:kK},_K=Object.freeze(Object.defineProperty({__proto__:null,default:SK,render:kK},Symbol.toStringTag,{value:"Module"})),EK={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function TK(e,t){return Pl(),Ml("svg",EK,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10"},null,-1),Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 17v-6 0a.5.5 0 0 0-.5-.5l-.5.001h-1M12 17h-2m2 0h2"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M10.75 7.5a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const AK={render:TK},CK=Object.freeze(Object.defineProperty({__proto__:null,default:AK,render:TK},Symbol.toStringTag,{value:"Module"})),PK={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function DK(e,t){return Pl(),Ml("svg",PK,t[0]||(t[0]=[Ul("path",{d:"M12.82 14.51 15.36 12l1.76.47a1.56 1.56 0 0 0 1.51-.47 1.58 1.58 0 0 0 .37-1.49l-.47-1.75.82-.76 1.76.47A1.56 1.56 0 0 0 22.62 8 1.58 1.58 0 0 0 23 6.52l-.47-1.75a2.35 2.35 0 0 0-3.33-3.33l-9.71 9.74a6.29 6.29 0 1 0 3.33 3.33"},null,-1),Ul("path",{d:"M4.26 17.84a1.9 1.9 0 1 0 3.8 0 1.9 1.9 0 1 0-3.8 0"},null,-1)]))}const $K={render:DK},RK=Object.freeze(Object.defineProperty({__proto__:null,default:$K,render:DK},Symbol.toStringTag,{value:"Module"})),MK={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function NK(e,t){return Pl(),Ml("svg",MK,t[0]||(t[0]=[Ul("path",{d:"M16.35 16.5v1c0 1.1-.9 2-2 2H2.75c-1.1 0-2-.9-2-2v-11c0-1.1.9-2 2-2h11.6c1.1 0 2 .9 2 2v1M5.25 12h18m0 0-3 3.1m3-3.1-3-2.9"},null,-1)]))}const IK={render:NK},LK=Object.freeze(Object.defineProperty({__proto__:null,default:IK,render:NK},Symbol.toStringTag,{value:"Module"})),jK={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function BK(e,t){return Pl(),Ml("svg",jK,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M6.55 12a5.46 5.46 0 1 0 10.91.481A5.46 5.46 0 0 0 6.55 12m0 0H2m4.55 0H4.73m12.31 2.1a5.46 5.46 0 0 1-6.614-6.887M12 2v4.55m7.08-1.62-3.22 3.22M22 12h-4.54m1.62 7.08L16 16.01M12 22v-4m-7.07 1.08L8 16.01M4.93 4.93l3.22 3.22"},null,-1)]))}const UK={render:BK},FK=Object.freeze(Object.defineProperty({__proto__:null,default:UK,render:BK},Symbol.toStringTag,{value:"Module"})),QK={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function zK(e,t){return Pl(),Ml("svg",QK,t[0]||(t[0]=[Ul("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M7.501 12a4.5 4.5 0 1 0 9 0 4.5 4.5 0 1 0-9 0m4.5-10.5v3m0 15v3m10.5-10.5h-3m-15 0h-3m17.924-7.424-2.121 2.121M6.697 17.304l-2.121 2.121m14.849 0-2.121-2.121M6.697 6.697 4.576 4.576"},null,-1)]))}const qK={render:zK},HK=Object.freeze(Object.defineProperty({__proto__:null,default:qK,render:zK},Symbol.toStringTag,{value:"Module"})),VK={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function ZK(e,t){return Pl(),Ml("svg",VK,t[0]||(t[0]=[Ul("path",{d:"M13.5 18 12 19.5c-1 1-2.3 1.5-3.7 1.5s-2.7-.6-3.7-1.5c-1-1-1.5-2.3-1.5-3.7s.6-2.7 1.5-3.7l1.5-1.5M10.5 6 12 4.5c1-1 2.3-1.5 3.7-1.5s2.7.6 3.7 1.5c1 1 1.5 2.3 1.5 3.7s-.6 2.7-1.5 3.7l-1.5 1.5M9 15l6-6"},null,-1)]))}const WK={render:ZK},XK=Object.freeze(Object.defineProperty({__proto__:null,default:WK,render:ZK},Symbol.toStringTag,{value:"Module"})),GK={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function YK(e,t){return Pl(),Ml("svg",GK,t[0]||(t[0]=[Ul("path",{d:"M12 17a1 1 0 1 0 0-2 1 1 0 0 0 0 2"},null,-1),Ul("path",{d:"M5.778 10h12.444c.982 0 1.778.895 1.778 2v8c0 1.105-.796 2-1.778 2H5.778C4.796 22 4 21.105 4 20v-8c0-1.105.796-2 1.778-2M7 10V7a5 5 0 1 1 10 0v3"},null,-1)]))}const KK={render:YK},JK=Object.freeze(Object.defineProperty({__proto__:null,default:KK,render:YK},Symbol.toStringTag,{value:"Module"})),eJ={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 593 593"};function tJ(e,t){return Pl(),Ml("svg",eJ,t[0]||(t[0]=[Ul("path",{"fill-rule":"evenodd",d:"M347 0c6 0 12 5 12 12v134l94-95c5-5 13-5 17 0l72 72c4 4 5 12 0 16v1l-95 94h134c7 0 12 5 12 12v101c0 7-5 12-12 12H447l95 94c4 5 5 13 0 17l-72 72c-4 4-12 5-16 0h-1l-94-95v134c0 7-5 12-12 12H246c-7 0-12-5-12-12v-70c0-22 9-43 24-59l130-130c14-14 14-37 0-51L259 142a84 84 0 0 1-25-59V12c0-7 5-12 12-12zM138 52h1l219 219c14 14 14 37 0 51L139 542c-4 5-12 5-17 0l-71-70c-4-5-5-12 0-17l95-96H12c-7 0-12-5-12-12V246c0-7 5-12 12-12h134l-95-94c-4-5-4-12 0-17l71-71c4-5 12-5 16 0"},null,-1)]))}const rJ={render:tJ},nJ=Object.freeze(Object.defineProperty({__proto__:null,default:rJ,render:tJ},Symbol.toStringTag,{value:"Module"})),aJ={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function oJ(e,t){return Pl(),Ml("svg",aJ,t[0]||(t[0]=[Ul("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m.75 23.25 15-15m-5.25 0H8.25m15 0H21M21 3l-1.591 1.591M15.75 3V.75m0 15V13.5m-3.659-8.909L10.5 3M21 13.5l-1.591-1.591"},null,-1)]))}const iJ={render:oJ},sJ=Object.freeze(Object.defineProperty({__proto__:null,default:iJ,render:oJ},Symbol.toStringTag,{value:"Module"})),lJ={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function cJ(e,t){return Pl(),Ml("svg",lJ,t[0]||(t[0]=[Ul("path",{fill:"currentColor",d:"M3 16.142V8.245h2.323l2.322 2.903 2.323-2.903h2.322v7.897H9.968v-4.53l-2.323 2.904-2.322-2.903v4.529zm14.516 0-3.484-3.832h2.323V8.245h2.322v4.065H21z"},null,-1)]))}const uJ={render:cJ},dJ=Object.freeze(Object.defineProperty({__proto__:null,default:uJ,render:cJ},Symbol.toStringTag,{value:"Module"})),pJ={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function hJ(e,t){return Pl(),Ml("svg",pJ,t[0]||(t[0]=[Ul("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M22 6.8H2m20 10.4H2"},null,-1)]))}const fJ={render:hJ},mJ=Object.freeze(Object.defineProperty({__proto__:null,default:fJ,render:hJ},Symbol.toStringTag,{value:"Module"})),gJ={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function vJ(e,t){return Pl(),Ml("svg",gJ,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m4.9 4.9 14.2 14.2M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"},null,-1)]))}const bJ={render:vJ},yJ=Object.freeze(Object.defineProperty({__proto__:null,default:bJ,render:vJ},Symbol.toStringTag,{value:"Module"})),OJ={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function wJ(e,t){return Pl(),Ml("svg",OJ,t[0]||(t[0]=[Ul("path",{d:"M17.333 5.34c1.39-.22 2.796-.334 4.205-.34.121 0 .238.043.329.122a.44.44 0 0 1 .133.314v13.73a.44.44 0 0 1-.133.306.46.46 0 0 1-.311.13C14.186 19.708 12 22 12 22m0 0V7.38S9.822 5.096 2.462 5a.5.5 0 0 0-.329.122.44.44 0 0 0-.133.314v13.73a.44.44 0 0 0 .133.306.46.46 0 0 0 .311.13C9.814 19.708 12 22 12 22"},null,-1),Ul("path",{d:"M12 22a5.67 5.67 0 0 1 1.367-3.135c.967-1.141 2.237-1.923 3.633-2.236V2.443a.45.45 0 0 0-.051-.21.4.4 0 0 0-.14-.154.47.47 0 0 0-.409-.054 6.44 6.44 0 0 0-3.033 2.063A5.86 5.86 0 0 0 12 7.205"},null,-1)]))}const xJ={render:wJ},kJ=Object.freeze(Object.defineProperty({__proto__:null,default:xJ,render:wJ},Symbol.toStringTag,{value:"Module"})),SJ={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function _J(e,t){return Pl(),Ml("svg",SJ,t[0]||(t[0]=[Ul("path",{d:"M17 3a2.85 2.85 0 0 1 2.064-1.007 2.87 2.87 0 0 1 2.14.834 2.83 2.83 0 0 1 .825 2.131A2.8 2.8 0 0 1 21 7L7.5 20.5 2 22l1.5-5.5z"},null,-1)]))}const EJ={render:_J},TJ=Object.freeze(Object.defineProperty({__proto__:null,default:EJ,render:_J},Symbol.toStringTag,{value:"Module"})),AJ={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function CJ(e,t){return Pl(),Ml("svg",AJ,t[0]||(t[0]=[Ul("path",{d:"M6 6.663c0-1.582 1.75-2.538 3.082-1.682l8.301 5.337a2 2 0 0 1 0 3.364L9.082 19.02C7.75 19.875 6 18.919 6 17.337z"},null,-1)]))}const PJ={render:CJ},DJ=Object.freeze(Object.defineProperty({__proto__:null,default:PJ,render:CJ},Symbol.toStringTag,{value:"Module"})),$J={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function RJ(e,t){return Pl(),Ml("svg",$J,t[0]||(t[0]=[Ul("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 14.248v4.5H.75m18-9v-4.5h4.5m-4.218-.003A9.752 9.752 0 0 1 8.246 21m-3.279-2.249A9.753 9.753 0 0 1 15.754 3"},null,-1)]))}const MJ={render:RJ},NJ=Object.freeze(Object.defineProperty({__proto__:null,default:MJ,render:RJ},Symbol.toStringTag,{value:"Module"})),IJ={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function LJ(e,t){return Pl(),Ml("svg",IJ,t[0]||(t[0]=[Ul("path",{d:"M16.22 2.663a1.47 1.47 0 0 0-1.09 0L8.87 5.167c-.35.14-.74.14-1.09 0L1.982 2.848a.735.735 0 0 0-1.008.686V17.62c0 .601.366 1.142.924 1.365l5.88 2.352c.35.14.742.14 1.092 0l6.258-2.504c.35-.14.741-.14 1.092 0l5.796 2.315a.735.735 0 0 0 1.008-.686V6.38a1.47 1.47 0 0 0-.924-1.365ZM8.325 5.272v16.17m7.35-18.884v16.17"},null,-1)]))}const jJ={render:LJ},BJ=Object.freeze(Object.defineProperty({__proto__:null,default:jJ,render:LJ},Symbol.toStringTag,{value:"Module"})),UJ={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function FJ(e,t){return Pl(),Ml("svg",UJ,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M3 15c1.895 3 3.79 4 6.632 4s6.631-3 6.631-7-2.842-7-5.684-7-4.737 1.5-4.737 4 1.895 5 5.684 5S19.492 11.547 21 9"},null,-1)]))}const QJ={render:FJ},zJ=Object.freeze(Object.defineProperty({__proto__:null,default:QJ,render:FJ},Symbol.toStringTag,{value:"Module"})),qJ={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function HJ(e,t){return Pl(),Ml("svg",qJ,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M11 19a8 8 0 1 0 0-16 8 8 0 0 0 0 16m10 2-4.35-4.35"},null,-1)]))}const VJ={render:HJ},ZJ=Object.freeze(Object.defineProperty({__proto__:null,default:VJ,render:HJ},Symbol.toStringTag,{value:"Module"})),WJ={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function XJ(e,t){return Pl(),Ml("svg",WJ,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M20 12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2m16 0H4m16 0a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2"},null,-1),Ul("path",{fill:"currentColor",d:"M18 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2m0 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2"},null,-1),Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M6 8h4m-4 8h4"},null,-1)]))}const GJ={render:XJ},YJ=Object.freeze(Object.defineProperty({__proto__:null,default:GJ,render:XJ},Symbol.toStringTag,{value:"Module"})),KJ={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function JJ(e,t){return Pl(),Ml("svg",KJ,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M20 7H9m0 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0m7 10H5m11 0a2 2 0 1 0 4 0 2 2 0 0 0-4 0"},null,-1)]))}const e0={render:JJ},t0=Object.freeze(Object.defineProperty({__proto__:null,default:e0,render:JJ},Symbol.toStringTag,{value:"Module"})),r0={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function n0(e,t){return Pl(),Ml("svg",r0,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7"},null,-1),Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6"},null,-1)]))}const a0={render:n0},o0=Object.freeze(Object.defineProperty({__proto__:null,default:a0,render:n0},Symbol.toStringTag,{value:"Module"})),i0={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function s0(e,t){return Pl(),Ml("svg",i0,t[0]||(t[0]=[Ul("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M2 5.4h20M2 12h20M2 18.6h13.3"},null,-1)]))}const l0={render:s0},c0=Object.freeze(Object.defineProperty({__proto__:null,default:l0,render:s0},Symbol.toStringTag,{value:"Module"})),u0={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function d0(e,t){return Pl(),Ml("svg",u0,t[0]||(t[0]=[Ul("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M13 15h5M6 9l4 3-4 3"},null,-1),Ul("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M21 2.8H3.1c-.7 0-1.4.6-1.4 1.4v15.6c0 .7.6 1.4 1.4 1.4H21c.7 0 1.4-.6 1.4-1.4V4.2c0-.8-.5-1.4-1.3-1.4z"},null,-1)]))}const p0={render:d0},h0=Object.freeze(Object.defineProperty({__proto__:null,default:p0,render:d0},Symbol.toStringTag,{value:"Module"})),f0={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function m0(e,t){return Pl(),Ml("svg",f0,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 5.75-1.51 14.34a1.67 1.67 0 0 1-1.66 1.5H7.67A1.67 1.67 0 0 1 6 20.08L4.5 5.75m-2.08 0h19.16m-13.33 0v-2.5a.83.83 0 0 1 .83-.83h5.84a.83.83 0 0 1 .83.83v2.5M12 9.5v8.75m3.75-8.75-.42 8.75M8.25 9.5l.42 8.75"},null,-1)]))}const g0={render:m0},v0=Object.freeze(Object.defineProperty({__proto__:null,default:g0,render:m0},Symbol.toStringTag,{value:"Module"})),b0={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function y0(e,t){return Pl(),Ml("svg",b0,t[0]||(t[0]=[Ul("path",{d:"M12 17a1 1 0 1 0 0-2 1 1 0 0 0 0 2"},null,-1),Ul("path",{d:"M5.778 10h12.444c.982 0 1.778.895 1.778 2v8c0 1.105-.796 2-1.778 2H5.778C4.796 22 4 21.105 4 20v-8c0-1.105.796-2 1.778-2M17 10V7a5 5 0 0 0-9.33-2.5"},null,-1)]))}const O0={render:y0},w0=Object.freeze(Object.defineProperty({__proto__:null,default:O0,render:y0},Symbol.toStringTag,{value:"Module"})),x0={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function k0(e,t){return Pl(),Ml("svg",x0,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M4.9 19.1c-3.038-3.038-3.71-7.592-2.015-11.3M7.8 16.2c-1.397-1.397-1.945-3.346-1.646-5.2M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5m2.9-11.4C23 8.8 23 15.1 19.1 19m-8.423-8.5a2 2 0 0 1 2.75 2.901M22 22 2 2"},null,-1)]))}const S0={render:k0},_0=Object.freeze(Object.defineProperty({__proto__:null,default:S0,render:k0},Symbol.toStringTag,{value:"Module"})),E0={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function T0(e,t){return Pl(),Ml("svg",E0,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.33v15.32m5.37-9.95L12 4.33 6.63 9.7"},null,-1)]))}const A0={render:T0},C0=Object.freeze(Object.defineProperty({__proto__:null,default:A0,render:T0},Symbol.toStringTag,{value:"Module"})),P0={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function D0(e,t){return Pl(),Ml("svg",P0,t[0]||(t[0]=[Ul("path",{d:"M3.5 22.2c.3-4.5 4-8 8.5-8s8.2 3.5 8.5 8z"},null,-1),Ul("circle",{cx:"12",cy:"6.2",r:"4.5"},null,-1)]))}const $0={render:D0},R0=Object.freeze(Object.defineProperty({__proto__:null,default:$0,render:D0},Symbol.toStringTag,{value:"Module"})),M0={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function N0(e,t){return Pl(),Ml("svg",M0,t[0]||(t[0]=[Ul("path",{d:"M11.101 1.488H4.83a1 1 0 0 0-1 1v6.614m9.069 13.41h6.272a1 1 0 0 0 1-1v-6.614"},null,-1),Ul("path",{d:"m1.23 6.5 2.6 2.6 2.601-2.6m16.339 11-2.6-2.6-2.601 2.6M5.505 18.546a2.551 2.551 0 1 0 0-5.103 2.551 2.551 0 0 0 0 5.103m4.277 3.965c-.559-1.83-2.29-3.202-4.276-3.202-1.988 0-3.718 1.372-4.277 3.202m17.264-15.92a2.551 2.551 0 1 0 0-5.103 2.551 2.551 0 0 0 0 5.103m4.277 3.965c-.559-1.83-2.289-3.202-4.276-3.202s-3.718 1.372-4.276 3.202"},null,-1)]))}const I0={render:N0},L0=Object.freeze(Object.defineProperty({__proto__:null,default:I0,render:N0},Symbol.toStringTag,{value:"Module"})),j0={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function B0(e,t){return Pl(),Ml("svg",j0,t[0]||(t[0]=[Ul("path",{d:"M3.375 7.875a4.125 4.125 0 1 0 8.25 0 4.125 4.125 0 1 0-8.25 0M.75 20.25a6.75 6.75 0 0 1 13.5 0m.001-15.834a4.125 4.125 0 1 1-.006 6.914M15 13.667a6.757 6.757 0 0 1 8.25 6.583"},null,-1)]))}const U0={render:B0},F0=Object.freeze(Object.defineProperty({__proto__:null,default:U0,render:B0},Symbol.toStringTag,{value:"Module"})),Q0={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function z0(e,t){return Pl(),Ml("svg",Q0,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m5.246 12.069-2.74 1.569a1 1 0 0 0 .001 1.74l8.5 4.87a2 2 0 0 0 2 0l8.5-4.87a.999.999 0 0 0 0-1.74l-2.702-1.548m-5.798 3.158a2 2 0 0 1-2 0l-8.5-4.87a1 1 0 0 1 0-1.74l8.5-4.87a2 2 0 0 1 2 0l8.5 4.87a1 1 0 0 1 0 1.74z"},null,-1)]))}const q0={render:z0},H0=Object.freeze(Object.defineProperty({__proto__:null,default:q0,render:z0},Symbol.toStringTag,{value:"Module"})),V0={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function Z0(e,t){return Pl(),Ml("svg",V0,t[0]||(t[0]=[Ul("path",{d:"M2.97 2.771 13.908 5.88a3.77 3.77 0 0 1 2.592 3.5v10.51a2.052 2.052 0 0 1-2.6 2.167l-9.048-2.46a3.7 3.7 0 0 1-2.6-3.457V4.688a2.75 2.75 0 0 1 2.67-2.813H18.75a3 3 0 0 1 3 3v8.953a3.073 3.073 0 0 1-3.11 3.047H16.5"},null,-1),Ul("path",{d:"M12.375 13.875a.375.375 0 0 1 0-.75m0 .75a.375.375 0 0 0 0-.75m9.375-3.75H16.5"},null,-1)]))}const W0={render:Z0},X0=Object.freeze(Object.defineProperty({__proto__:null,default:W0,render:Z0},Symbol.toStringTag,{value:"Module"})),G0={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function Y0(e,t){return Pl(),Ml("svg",G0,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9m2.9 11.3c-2.3-2.3-2.3-6.1 0-8.5m8.4.1c2.3 2.3 2.3 6.1 0 8.5m2.9-11.4C23 8.8 23 15.1 19.1 19M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0"},null,-1)]))}const K0={render:Y0},J0=Object.freeze(Object.defineProperty({__proto__:null,default:K0,render:Y0},Symbol.toStringTag,{value:"Module"})),e1={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"};function t1(e,t){return Pl(),Ml("svg",e1,t[0]||(t[0]=[Ul("path",{d:"M20.25 3.75v19.5M3.75 3.75h16.5m-16.5 19.5V3.75m16.5 19.5H3.75m16.5-19.5H3.75l1.5-3h13.5zM.75 23.25h22.5m-9-2.25a2.25 2.25 0 0 0-4.5 0v2.25h4.5zM7.5 7.13a.37.37 0 1 1 0-.75m0 .75a.37.37 0 1 0 0-.75m4.5.75a.38.38 0 0 1 0-.75m0 .75a.38.38 0 0 0 0-.75m4.5.75a.38.38 0 0 1 0-.75m0 .75a.38.38 0 0 0 0-.75m-9 5.25a.38.38 0 0 1 0-.76m0 .76a.38.38 0 0 0 0-.76m4.5.76a.38.38 0 0 1 0-.76m0 .76a.38.38 0 0 0 0-.76m4.5.76a.38.38 0 0 1 0-.76m0 .76a.38.38 0 0 0 0-.76m-9 5.26a.38.38 0 0 1 0-.75m0 .75a.38.38 0 0 0 0-.75m4.5.75a.38.38 0 0 1 0-.75m0 .75a.38.38 0 0 0 0-.75m4.5.75a.38.38 0 0 1 0-.75m0 .75a.38.38 0 0 0 0-.75"},null,-1)]))}const r1={render:t1},n1=Object.freeze(Object.defineProperty({__proto__:null,default:r1,render:t1},Symbol.toStringTag,{value:"Module"})),a1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"};function o1(e,t){return Pl(),Ml("svg",a1,t[0]||(t[0]=[Ul("path",{d:"M9.931 12.645h4.138l-2.07-4.908m0-7.737L.68 3.982l1.726 14.771L12 24l9.596-5.242L23.32 3.984zm7.064 18.31h-2.638l-1.422-3.503H8.996l-1.422 3.504h-2.64L12 2.65z"},null,-1)]))}const i1={render:o1},s1=Object.freeze(Object.defineProperty({__proto__:null,default:i1,render:o1},Symbol.toStringTag,{value:"Module"})),l1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"};function c1(e,t){return Pl(),Ml("svg",l1,t[0]||(t[0]=[Ul("path",{d:"M16.074 16.86c-.72.616-2.157 1.035-3.812 1.035-2.032 0-3.735-.632-4.187-1.483-.161.488-.198 1.046-.198 1.402 0 0-.106 1.75 1.111 2.968 0-.632.513-1.145 1.145-1.145 1.083 0 1.082.945 1.081 1.712v.069c0 1.164.711 2.161 1.723 2.582a2.35 2.35 0 0 1-.236-1.029c0-1.11.652-1.523 1.41-2.003.602-.383 1.272-.807 1.733-1.66a3.1 3.1 0 0 0 .378-1.494 3.1 3.1 0 0 0-.148-.954M15.551.6c.196.244.296.572.496 1.229l4.368 14.347a18.2 18.2 0 0 0-5.222-1.768L12.35 4.8a.37.37 0 0 0-.71.002l-2.81 9.603a18.2 18.2 0 0 0-5.245 1.771L7.974 1.827c.2-.656.3-.984.497-1.227a1.6 1.6 0 0 1 .654-.484C9.415 0 9.757 0 10.443 0h3.135c.686 0 1.03 0 1.32.117A1.6 1.6 0 0 1 15.55.6z"},null,-1)]))}const u1={render:c1},d1=Object.freeze(Object.defineProperty({__proto__:null,default:u1,render:c1},Symbol.toStringTag,{value:"Module"})),p1={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function h1(e,t){return Pl(),Ml("svg",p1,t[0]||(t[0]=[Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M6.335.83a.75.75 0 0 0-.67 0L1.667 2.827a.75.75 0 0 0-.417.672V18c0 .271.146.52.382.654l7.989 4.493a.75.75 0 0 0 .747.007l8-4.5A.75.75 0 0 0 18.75 18v-4.537l3.585-1.792A.75.75 0 0 0 22.75 11V6a.75.75 0 0 0-.417-.672l-3.998-1.999a.75.75 0 0 0-.67 0l-3.997 1.999a.7.7 0 0 0-.246.194.75.75 0 0 0-.172.478v4.561l-2.5 1.407V3.5a.75.75 0 0 0-.43-.678L6.336.829Zm7.686 11.019 2.38 1.19-6.422 3.612-2.38-1.19zm3.229-.063-2.5-1.25V7.215l2.5 1.25zm1.5 0 2.5-1.25V7.215l-2.5 1.25zm-9.5 1.025V4.714l-2.5 1.25v8.254zm-1.005 4.65.743.372c.17.091.262.153.262.183v3.202l-6.5-3.657V4.714l2.5 1.25V15.5a.75.75 0 0 0 .415.67s1.122.591 2.108 1.064zm2.505.478 6.5-3.657v3.28l-6.5 3.656v-3.28ZM6 4.66 3.677 3.5 6 2.339 8.323 3.5zM20.323 6 18 4.839 15.677 6 18 7.161z","clip-rule":"evenodd"},null,-1)]))}const f1={render:h1},m1=Object.freeze(Object.defineProperty({__proto__:null,default:f1,render:h1},Symbol.toStringTag,{value:"Module"})),g1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"};function v1(e,t){return Pl(),Ml("svg",g1,t[0]||(t[0]=[Ul("path",{d:"M11.573 0a5 5 0 0 0-.359.007L10.85.04c-3.407.307-6.6 2.146-8.622 4.972a11.9 11.9 0 0 0-2.119 5.243c-.096.659-.108.854-.108 1.747s.012 1.089.108 1.748c.652 4.506 3.86 8.292 8.209 9.695.779.25 1.6.422 2.534.525.363.04 1.935.04 2.299 0 1.611-.178 2.977-.577 4.323-1.264.207-.106.247-.134.219-.158-.02-.013-.9-1.193-1.955-2.62l-1.919-2.592-2.404-3.558a339 339 0 0 0-2.422-3.556c-.009-.002-.018 1.579-.023 3.51-.007 3.38-.01 3.515-.052 3.595a.43.43 0 0 1-.206.214c-.075.037-.14.044-.495.044H7.81l-.108-.068a.44.44 0 0 1-.157-.171l-.05-.106.006-4.703.007-4.705.072-.092a.7.7 0 0 1 .174-.143c.096-.047.134-.051.54-.051.478 0 .558.018.682.154a467 467 0 0 1 2.895 4.361l4.735 7.17 1.9 2.879.096-.063a12.3 12.3 0 0 0 2.466-2.163 11.94 11.94 0 0 0 2.824-6.134c.096-.66.108-.854.108-1.748 0-.893-.012-1.088-.108-1.747-.652-4.506-3.859-8.292-8.208-9.695a12.6 12.6 0 0 0-2.499-.523A33 33 0 0 0 11.573 0m4.068 7.217c.347 0 .408.005.486.047a.47.47 0 0 1 .237.277c.018.06.023 1.365.018 4.304l-.006 4.218-.744-1.14-.746-1.14v-3.066c0-1.982.01-3.097.023-3.15a.48.48 0 0 1 .233-.296c.096-.05.13-.054.5-.054z"},null,-1)]))}const b1={render:v1},y1=Object.freeze(Object.defineProperty({__proto__:null,default:b1,render:v1},Symbol.toStringTag,{value:"Module"})),O1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"};function w1(e,t){return Pl(),Ml("svg",O1,t[0]||(t[0]=[Ul("path",{d:"M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236m2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38a2.17 2.17 0 0 0-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44a23.5 23.5 0 0 0-3.107-.534A24 24 0 0 0 12.769 4.7c1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442a23 23 0 0 0-3.113.538 15 15 0 0 1-.254-1.42c-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05q.684.704 1.36 1.564c-.44-.02-.89-.034-1.345-.034q-.691-.001-1.36.034c.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093q.61.874 1.183 1.86.557.961 1.018 1.946c-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87a25.6 25.6 0 0 1-4.412.005 27 27 0 0 1-1.183-1.86q-.557-.961-1.018-1.946a25 25 0 0 1 1.013-1.954c.38-.66.773-1.286 1.18-1.868A25 25 0 0 1 12 8.098zm-3.635.254c-.24.377-.48.763-.704 1.16q-.336.585-.635 1.174c-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0q1.044.153 2.006.387c-.18.632-.405 1.282-.66 1.933a26 26 0 0 0-1.345-2.32zm3.063.675q.727.226 1.375.498c1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493a24 24 0 0 0-1.1-2.98c.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98a23 23 0 0 0-1.086 2.964c-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474s1.12-1.742 2.852-2.476c.42-.18.88-.342 1.356-.494m11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39a26 26 0 0 0 1.341-2.338zm-9.945.02c.2.392.41.783.64 1.175q.345.586.705 1.143a22 22 0 0 1-2.006-.386c.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295a1.2 1.2 0 0 1-.553-.132c-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64q.661.032 1.345.034.691.001 1.36-.034c-.44.572-.895 1.095-1.345 1.565q-.684-.706-1.36-1.565"},null,-1)]))}const x1={render:w1},k1=Object.freeze(Object.defineProperty({__proto__:null,default:x1,render:w1},Symbol.toStringTag,{value:"Module"})),S1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"};function _1(e,t){return Pl(),Ml("svg",S1,t[0]||(t[0]=[Ul("path",{d:"M23.94 3a.5.5 0 0 0-.44-.25h-2.31l-8.55 13.91a.75.75 0 0 1-1.28 0L2.81 2.77H.5A.5.5 0 0 0 .06 3a.54.54 0 0 0 0 .51l11.5 19a.51.51 0 0 0 .86 0l11.5-19a.54.54 0 0 0 .02-.51"},null,-1),Ul("path",{d:"m12 14.84 7.43-12.07H16a.47.47 0 0 0-.43.25L12 9.26 8.43 3A.47.47 0 0 0 8 2.77H4.57Z"},null,-1)]))}const E1={render:_1},T1=Object.freeze(Object.defineProperty({__proto__:null,default:E1,render:_1},Symbol.toStringTag,{value:"Module"})),A1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 128 128"};function C1(e,t){return Pl(),Ml("svg",A1,t[0]||(t[0]=[Ul("path",{d:"m117.5 33.5.3-.2c-.6-1.1-1.5-2.1-2.4-2.6L67.1 2.9c-.8-.5-1.9-.7-3.1-.7s-2.3.3-3.1.7l-48 27.9c-1.7 1-2.9 3.5-2.9 5.4v55.7c0 1.1.2 2.3.9 3.4l-.2.1c.5.8 1.2 1.5 1.9 1.9l48.2 27.9c.8.5 1.9.7 3.1.7s2.3-.3 3.1-.7l48-27.9c1.7-1 2.9-3.5 2.9-5.4V36.1c.1-.8 0-1.7-.4-2.6M64 88.5c9.1 0 17.1-5 21.3-12.4l12.9 7.6c-6.8 11.8-19.6 19.8-34.2 19.8-21.8 0-39.5-17.7-39.5-39.5S42.2 24.5 64 24.5c14.7 0 27.5 8.1 34.3 20l-13 7.5C81.1 44.5 73.1 39.5 64 39.5c-13.5 0-24.5 11-24.5 24.5s11 24.5 24.5 24.5"},null,-1)]))}const P1={render:C1},D1=Object.freeze(Object.defineProperty({__proto__:null,default:P1,render:C1},Symbol.toStringTag,{value:"Module"})),$1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 128 128"};function R1(e,t){return Pl(),Ml("svg",$1,t[0]||(t[0]=[Ul("path",{d:"M60.952.266C27.377.266.065 28.77.065 63.806s27.318 63.54 60.887 63.54c33.576 0 60.893-28.505 60.893-63.54S94.528.266 60.952.266m0 6.117c30.39 0 55.025 25.712 55.025 57.423 0 2.482-.167 4.924-.46 7.321-1.495 6.214-4.194 10.358-7.412 13.19-4.941 4.336-11.524 5.738-17.62 5.733a41 41 0 0 1-4.973-.289C97.506 77.4 99.336 57.866 89.864 43.315 80.39 28.763 62.315 23.338 46.882 30.416a24 24 0 0 0-1.68-1.114c-2.41-1.413-7.439-3.482-13.837-3.505-5.361-.022-10.615 1.568-15.133 4.58C26.554 15.317 43.21 6.386 60.952 6.394zM51.341 84.6c.894-4.07 3.343-10.431 5.548-15.655.623-1.481 1.23-2.872 1.777-4.104 3.451 12.822 5.635 20.449 9.546 25.65a18 18 0 0 0 1.913 2.114 28 28 0 0 1-9.173 1.56 28.2 28.2 0 0 1-10.023-1.86q-.098-1.227-.103-2.459a24.5 24.5 0 0 1 .515-5.24zm-7.444 3.77c-7.555-5.703-12.031-14.84-12.04-24.57.008-9.88 4.625-19.138 12.375-24.813 1.637.984 3.121 2.143 4.34 3.477 2.395 2.56 5.077 8.214 6.94 13.082.51 1.312.965 2.567 1.36 3.709C50.16 73.502 45.685 80.608 43.898 88.37zm21.802-18.226c-1.501-4.037-2.374-7.079-2.379-7.084l-.005-.012c-2.747-10.984-5.592-21.025-11.497-28.052a28 28 0 0 1 9.134-1.55c16.06.022 29.074 13.602 29.095 30.36-.007 9.673-4.432 18.764-11.914 24.474a15 15 0 0 1-2.184-.78c-1.137-.514-2.812-2.267-4.329-4.698-2.313-3.635-4.437-8.622-5.927-12.653zm-4.747 51.08c-30.39 0-55.025-25.707-55.025-57.424 0-2.086.114-4.144.32-6.173 4.508-16 15.338-21.92 25.595-22.02 2.08-.007 4.117.282 6.068.774-13.182 12.081-15.74 32.487-5.979 47.7 9.762 15.213 28.817 20.518 44.544 12.403 2.78 1.023 5.96 1.633 9.812 2.137 1.447.186 3.007.277 4.665.277a61.6 61.6 0 0 0 14.997-2.087c-10.29 15.308-27.088 24.417-45.007 24.407z"},null,-1)]))}const M1={render:R1},N1=Object.freeze(Object.defineProperty({__proto__:null,default:M1,render:R1},Symbol.toStringTag,{value:"Module"})),I1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 128 128"};function L1(e,t){return Pl(),Ml("svg",I1,t[0]||(t[0]=[Ul("path",{d:"m117.5 33.5.3-.2c-.6-1.1-1.5-2.1-2.4-2.6L67.1 2.9c-.8-.5-1.9-.7-3.1-.7s-2.3.3-3.1.7l-48 27.9c-1.7 1-2.9 3.5-2.9 5.4v55.7c0 1.1.2 2.3.9 3.4l-.2.1c.5.8 1.2 1.5 1.9 1.9l48.2 27.9c.8.5 1.9.7 3.1.7s2.3-.3 3.1-.7l48-27.9c1.7-1 2.9-3.5 2.9-5.4V36.1c.1-.8 0-1.7-.4-2.6m-53.5 70c-21.8 0-39.5-17.7-39.5-39.5S42.2 24.5 64 24.5c14.7 0 27.5 8.1 34.3 20l-13 7.5C81.1 44.5 73.1 39.5 64 39.5c-13.5 0-24.5 11-24.5 24.5s11 24.5 24.5 24.5c9.1 0 17.1-5 21.3-12.4l12.9 7.6c-6.8 11.8-19.6 19.8-34.2 19.8M115 62h-3.2l-.9 4h4.1v5h-5l-1.2 6h-4.9l1.2-6h-3.8l-1.2 6h-4.8l1.2-6H94v-5h3.5l.9-4H94v-5h5.3l1.2-6h4.9l-1.2 6h3.8l1.2-6h4.8l-1.2 6h2.2zm-12.7 4h3.8l.9-4h-3.8z"},null,-1)]))}const j1={render:L1},B1=Object.freeze(Object.defineProperty({__proto__:null,default:j1,render:L1},Symbol.toStringTag,{value:"Module"})),U1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"};function F1(e,t){return Pl(),Ml("svg",U1,t[0]||(t[0]=[Ul("path",{d:"M1.5 0h21l-1.91 21.563L11.977 24l-8.565-2.438zm17.09 4.413L5.41 4.41l.213 2.622 10.125.002-.255 2.716h-6.64l.24 2.573h6.182l-.366 3.523-2.91.804-2.956-.81-.188-2.11h-2.61l.29 3.855L12 19.288l5.373-1.53z"},null,-1)]))}const Q1={render:F1},z1=Object.freeze(Object.defineProperty({__proto__:null,default:Q1,render:F1},Symbol.toStringTag,{value:"Module"})),q1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 50 50"};function H1(e,t){return Pl(),Ml("svg",q1,t[0]||(t[0]=[Ul("path",{d:"m7.91 9.32.09.09V35.3l-5.09-5.09a6.22 6.22 0 0 1-1.27-6.92zM35.3 8H9.41l-.09-.09 13.97-6.27a6.22 6.22 0 0 1 6.92 1.27zm2.29 31H11.71l-.54-.54A4 4 0 0 1 10 35.63V11.41zm-23.88 2H39v6c0 .55-.45 1-1 1H21.1c-.27 0-.52-.11-.71-.29l-4.7-4.7.02-.02zM48 21.1V38c0 .55-.45 1-1 1h-6.58L11.41 10h24.22c1.07 0 2.07.42 2.83 1.17l4.53 4.54.02-.02 4.7 4.7c.18.19.29.44.29.71"},null,-1)]))}const V1={render:H1},Z1=Object.freeze(Object.defineProperty({__proto__:null,default:V1,render:H1},Symbol.toStringTag,{value:"Module"})),W1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 128 128"};function X1(e,t){return Pl(),Ml("svg",W1,t[0]||(t[0]=[Ul("path",{d:"M108.2 64.8c-.1-.1-.2-.2-.4-.2l-.1-.1c-.1-.1-.2-.1-.2-.2l-.1-.1c-.1 0-.2-.1-.2-.1l-.2-.1c-.1 0-.2-.1-.2-.1l-.2-.1c-.1 0-.2-.1-.2-.1-.1 0-.1 0-.2-.1l-.3-.1c-.1 0-.1 0-.2-.1l-.3-.1h-.1l-.4-.1h-.2c-.1 0-.2 0-.3-.1h-2.3c-.6-13.3.6-26.8-2.8-39.6 12.9-4.6 2.8-22.3-8.4-14.4-7.4-6.4-17.6-7.8-28.3-7.8-10.5.7-20.4 2.9-27.4 8.4-2.8-1.4-5.5-1.8-7.9-1.1v.1c-.1 0-.3.1-.4.2-.1 0-.3.1-.4.2h-.1c-.1 0-.2.1-.4.2h-.1l-.3.2h-.1l-.3.2h-.1l-.3.2s-.1 0-.1.1l-.3.2s-.1 0-.1.1l-.3.2s-.1 0-.1.1l-.3.2-.1.1c-.1.1-.2.1-.2.2l-.1.1-.2.2-.1.1c-.1.1-.1.2-.2.2l-.1.1c-.1.1-.1.2-.2.2l-.1.1c-.1.1-.1.2-.2.2l-.1.1c-.1.1-.1.2-.2.2l-.1.1c-.1.1-.1.2-.2.2l-.1.1-.1.3s0 .1-.1.1l-.1.3s0 .1-.1.1l-.1.3s0 .1-.1.1l-.1.3s0 .1-.1.1c.4.3.4.4.4.4v.1l-.1.3v.1c0 .1 0 .2-.1.3v3.1c0 .1 0 .2.1.3v.1l.1.3v.1l.1.3s0 .1.1.1l.1.3s0 .1.1.1l.1.3s0 .1.1.1l.2.3s0 .1.1.1l.2.3s0 .1.1.1l.2.3.1.1.3.3.3.3h.1c1 .9 2 1.6 4 2.2v-.2C23 37.3 26.5 50 26.7 63c-.6 0-.7.4-1.7.5h-.5c-.1 0-.3 0-.5.1-.1 0-.3 0-.4.1l-.4.1h-.1l-.4.1h-.1l-.3.1h-.1l-.3.1s-.1 0-.1.1l-.3.1-.2.1c-.1 0-.2.1-.2.1l-.2.1-.2.1c-.1 0-.2.1-.2.1l-.2.1-.4.3c-.1.1-.2.2-.3.2l-.4.4-.1.1c-.1.2-.3.4-.4.5l-.2.3-.3.6-.1.3v.3c0 .5.2.9.9 1.2.2 3.7 3.9 2 5.6.8l.1-.1c.2-.2.5-.3.6-.3h.1l.2-.1c.1 0 .1 0 .2-.1.2-.1.4-.1.5-.2.1 0 .1-.1.1-.2l.1-.1c.1-.2.2-.6.2-1.2l.1-1.3v1.8c-.5 13.1-4 30.7 3.3 42.5 1.3 2.1 2.9 3.9 4.7 5.4h-.5c-.2.2-.5.4-.8.6l-.9.6-.3.2-.6.4-.9.7-1.1 1c-.2.2-.3.4-.4.5l-.4.6-.2.3c-.1.2-.2.4-.2.6l-.1.3q-.3 1.2.6 2.7l.4.4h.2c.1 0 .2 0 .4.1.2.4 1.2 2.5 3.9.9 2.8-1.5 4.7-4.6 8.1-5.1l-.5-.6c5.9 2.8 12.8 4 19 4.2 8.7.3 18.6-.9 26.5-5.2 2.2.7 3.9 3.9 5.8 5.4l.1.1.1.1.1.1.1.1s.1 0 .1.1c0 0 .1 0 .1.1 0 0 .1 0 .1.1h2.1s.1 0 .1-.1h.1s.1 0 .1-.1h.1s.1 0 .1-.1c0 0 .1 0 .1-.1l.1-.1s.1 0 .1-.1l.1-.1h.1l.2-.2.2-.1h.1l.1-.1h.1l.1-.1.1-.1.1-.1.1-.1.1-.1.1-.1.1-.1v-.1s0-.1.1-.1v-.1s0-.1.1-.1v-.1s0-.1.1-.1v-1.4s-.3 0-.3-.1l-.3-.1v-.1l.3-.1s.2 0 .2-.1l.1-.1v-2.1s0-.1-.1-.1v-.1s0-.1-.1-.1v-.1s0-.1-.1-.1c0 0 0-.1-.1-.1 0 0 0-.1-.1-.1 0 0 0-.1-.1-.1 0 0 0-.1-.1-.1 0 0 0-.1-.1-.1 0 0 0-.1-.1-.1 0 0 0-.1-.1-.1 0 0 0-.1-.1-.1 0 0 0-.1-.1-.1 0 0 0-.1-.1-.1 0 0 0-.1-.1-.1 0 0 0-.1-.1-.1 0 0 0-.1-.1-.1l-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1v-.1l-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1c2-1.9 3.8-4.2 5.1-6.9 5.9-11.8 4.9-26.2 4.1-39.2h.1c.1 0 .2.1.2.1h.3s.1 0 .1.1h.1s.1 0 .1.1l.2.1c1.7 1.2 5.4 2.9 5.6-.8 1.6.6-.3-1.8-1.3-2.5M36 23C32.8 7 58.4 4 59.3 19.6c.8 13-20 16.3-23.3 3.4m36.1 15c-1.3 1.4-2.7 1.2-4.1.7 0 1.9.4 3.9.1 5.9-.5.9-1.5 1-2.3 1.4-1.2-.2-2.1-.9-2.6-2l-.2-.1c-3.9 5.2-6.3-1.1-5.2-5-1.2.1-2.2-.2-3-1.5-1.4-2.6.7-5.8 3.4-6.3.7 3 8.7 2.6 10.1-.2 3.1 1.5 6.5 4.3 3.8 7.1m-7-17.5c-.9-13.8 20.3-17.5 23.4-4 3.5 15-20.8 18.9-23.4 4M41.7 17c-1.9 0-3.5 1.7-3.5 3.8s1.6 3.8 3.5 3.8 3.5-1.7 3.5-3.8-1.5-3.8-3.5-3.8m1.6 5.7c-.5 0-.8-.4-.8-1 0-.5.4-1 .8-1 .5 0 .8.4.8 1 0 .5-.3 1-.8 1m27.8-6.6c-1.9 0-3.4 1.7-3.4 3.8s1.5 3.8 3.4 3.8 3.4-1.7 3.4-3.8-1.5-3.8-3.4-3.8m1.6 5.6c-.4 0-.8-.4-.8-1 0-.5.4-1 .8-1s.8.4.8 1-.4 1-.8 1"},null,-1)]))}const G1={render:X1},Y1=Object.freeze(Object.defineProperty({__proto__:null,default:G1,render:X1},Symbol.toStringTag,{value:"Module"})),K1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"};function J1(e,t){return Pl(),Ml("svg",K1,t[0]||(t[0]=[Ul("path",{d:"M1.5 0h21l-1.91 21.563L11.977 24l-8.564-2.438zm7.031 9.75-.232-2.718 10.059.003.23-2.622L5.412 4.41l.698 8.01h9.126l-.326 3.426-2.91.804-2.955-.81-.188-2.11H6.248l.33 4.171L12 19.351l5.379-1.443.744-8.157z"},null,-1)]))}const e2={render:J1},t2=Object.freeze(Object.defineProperty({__proto__:null,default:e2,render:J1},Symbol.toStringTag,{value:"Module"})),r2={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 128 128"};function n2(e,t){return Pl(),Ml("svg",r2,t[0]||(t[0]=[Ul("path",{d:"M111.7 29.7 128 64l-16.3 34.3H16.3L0 64l16.3-34.3zm-5.5 5.7H20L6.3 64l13.6 28.6h86.3L119.8 64zm-76.3 19v8h9.2v-8.1h4.8v20.4h-4.7v-8.4H30v8.4h-4.8V54.4zm34.3 0v3.8h-6.5v16.5H53V58.2h-6.5v-3.8zm18.3 0v3.8H76v16.5h-4.7V58.2h-6.5v-3.8zm16.1.9c1.2.5 2.3 1.4 3.1 2.6.7 1.2 1.1 2.5 1 3.9.1 1.4-.3 2.7-1 3.9-.7 1.1-1.8 2-3.1 2.6-1.5.6-3.1.9-4.7.9h-4.1v5.6H85V54.4h8.9c1.6 0 3.2.3 4.7.9m-5.1 2.9h-3.8v7.1h3.8q2.1 0 3.3-.9c.8-.6 1.2-1.6 1.1-2.6 0-1.1-.3-2.1-1.1-2.6-.8-.7-1.9-1-3.3-1"},null,-1)]))}const a2={render:n2},o2=Object.freeze(Object.defineProperty({__proto__:null,default:a2,render:n2},Symbol.toStringTag,{value:"Module"})),i2={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"};function s2(e,t){return Pl(),Ml("svg",i2,t[0]||(t[0]=[Ul("path",{d:"M11.26 15.27c3.37-.15 7.15-1.09 7-2.21a26 26 0 0 1-4.76.59c-3.62.16-6.58-.24-6.61-.9 0-.2.24-.4.69-.58-2.39-.64-3.67.53-3.69 1.22-.1 1.45 3.22 2.06 7.37 1.88m5.91 1.64a23 23 0 0 1-4.07.5c-3.09.14-5.61-.21-5.64-.77 0-.17.21-.34.59-.49-2-.55-3.13.45-3.15 1-.05 1.24 2.78 1.77 6.33 1.61 2.87-.1 6.25-1 5.94-1.85M3.61 20.8a.93.93 0 0 1 .29-.65c-2.09.1-2.54 1.13-2.51 1.76.07 1.39 4.67 2.31 10 2.05 4.44-.22 9.16-1 9.16-2.34a26.3 26.3 0 0 1-7.2 1.23c-5.35.26-9.67-.66-9.74-2.05"},null,-1),Ul("path",{d:"M22.4 12.65c-.55-1.48-2.67-2.34-4.74-1.57a2.47 2.47 0 0 0-1 .81c1.94-.56 3.83 0 4.34 1.41.45 1.21-.3 2.64-1.72 3.54a1.37 1.37 0 0 0 .92-.13c2.25-1.05 2.8-2.58 2.2-4.06m-9.88-1.38s-3.1-2.19-1.92-4.35S14.37 2.43 13.38 0c0 0 .12 1-3.12 3.91s-2.14 6.33 2.26 7.36"},null,-1),Ul("path",{d:"M15.17 4.83s-4.24 1.51-2.83 3.53c1 1.43 2.13 2 1.42 4 0 0 2.83-1.51.71-3.53s.7-4 .7-4M8.69 19.26c-1.6-.43-2.46.35-2.47.81 0 1 2.18 1.39 5 1.27 2.26-.11 4.73-.95 4.67-1.49a16.6 16.6 0 0 1-3.2.4c-2.43.11-4.41-.16-4.43-.61-.04-.13.13-.26.43-.38"},null,-1)]))}const l2={render:s2},c2=Object.freeze(Object.defineProperty({__proto__:null,default:l2,render:s2},Symbol.toStringTag,{value:"Module"})),u2={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"};function d2(e,t){return Pl(),Ml("svg",u2,t[0]||(t[0]=[Ul("path",{d:"M0 0h24v24H0zm22.034 18.276c-.175-1.095-.888-2.015-3.003-2.873-.736-.345-1.554-.585-1.797-1.14-.091-.33-.105-.51-.046-.705.15-.646.915-.84 1.515-.66.39.12.75.42.976.9 1.034-.676 1.034-.676 1.755-1.125-.27-.42-.404-.601-.586-.78-.63-.705-1.469-1.065-2.834-1.034l-.705.089c-.676.165-1.32.525-1.71 1.005-1.14 1.291-.811 3.541.569 4.471 1.365 1.02 3.361 1.244 3.616 2.205.24 1.17-.87 1.545-1.966 1.41-.811-.18-1.26-.586-1.755-1.336l-1.83 1.051c.21.48.45.689.81 1.109 1.74 1.756 6.09 1.666 6.871-1.004.029-.09.24-.705.074-1.65zm-8.983-7.245h-2.248c0 1.938-.009 3.864-.009 5.805 0 1.232.063 2.363-.138 2.711-.33.689-1.18.601-1.566.48-.396-.196-.597-.466-.83-.855-.063-.105-.11-.196-.127-.196l-1.825 1.125c.305.63.75 1.172 1.324 1.517.855.51 2.004.675 3.207.405.783-.226 1.458-.691 1.811-1.411.51-.93.402-2.07.397-3.346.012-2.054 0-4.109 0-6.179z"},null,-1)]))}const p2={render:d2},h2=Object.freeze(Object.defineProperty({__proto__:null,default:p2,render:d2},Symbol.toStringTag,{value:"Module"})),f2={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"};function m2(e,t){return Pl(),Ml("svg",f2,t[0]||(t[0]=[Ul("path",{d:"M4.56 18.71c-1.41-4-.65-8.94 1.77-11.48A5.47 5.47 0 0 1 12 5.71h.15a.8.8 0 0 1 .22.12c4 1.65 4.28 8.57 1.28 11.41a4.15 4.15 0 0 0 3.08-1.35c2.12-2.23 2.76-6.62 1.49-10.22A7.75 7.75 0 0 0 12.81.54H12a11.5 11.5 0 0 0-5.42 21.6 10 10 0 0 1-2.02-3.43"},null,-1),Ul("path",{d:"M23.5 12a11.49 11.49 0 0 0-6.09-10.14 9.9 9.9 0 0 1 2 3.43c1.41 4 .65 9-1.77 11.5a5.42 5.42 0 0 1-4 1.75A6.5 6.5 0 0 1 12 18.3h-.15a.8.8 0 0 1-.22-.12c-4-1.65-4.29-8.57-1.29-11.41a4.14 4.14 0 0 0-3.11 1.32c-2.12 2.22-2.76 6.61-1.49 10.2a7.77 7.77 0 0 0 5.45 5.17H12A11.5 11.5 0 0 0 23.5 12"},null,-1)]))}const g2={render:m2},v2=Object.freeze(Object.defineProperty({__proto__:null,default:g2,render:m2},Symbol.toStringTag,{value:"Module"})),b2={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 128 128"};function y2(e,t){return Pl(),Ml("svg",b2,t[0]||(t[0]=[Ul("path",{d:"M0 0h61.4L0 60.4zm0 128L128 0H64.6L0 63.7zm128 0L64.6 66.6 3.3 128z"},null,-1)]))}const O2={render:y2},w2=Object.freeze(Object.defineProperty({__proto__:null,default:O2,render:y2},Symbol.toStringTag,{value:"Module"})),x2={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"};function k2(e,t){return Pl(),Ml("svg",x2,t[0]||(t[0]=[Ul("path",{d:"M21.75 5.52 13 .28a2 2 0 0 0-2 0L2.25 5.52a2 2 0 0 0-1 1.69v9.58a2 2 0 0 0 1 1.69l2.62 1.57a3.12 3.12 0 0 0 4.73-2.68V8.12a1 1 0 0 0-2 0v9.25a1.13 1.13 0 0 1-.57 1 1.14 1.14 0 0 1-1.13 0l-2.61-1.58V7.24L12 2l8.73 5.21v9.55L12 22l-1.7-1a1 1 0 1 0-1 1.71l1.72 1a2 2 0 0 0 2 0l8.74-5.24a2 2 0 0 0 1-1.69V7.21a2 2 0 0 0-1.01-1.69"},null,-1),Ul("path",{d:"M15.51 14.76a9.3 9.3 0 0 1-2.24 0 .85.85 0 0 1-.75-.85 1 1 0 0 0-2 0A2.87 2.87 0 0 0 13 16.75a12 12 0 0 0 1.36.08 12 12 0 0 0 1.37-.08 2.87 2.87 0 0 0 2.5-2.84A2.68 2.68 0 0 0 16 11.26l-2.91-.49a.69.69 0 0 1-.58-.68.85.85 0 0 1 .75-.85 9.3 9.3 0 0 1 2.24 0 .85.85 0 0 1 .75.85 1 1 0 0 0 2 0 2.87 2.87 0 0 0-2.5-2.84 12.5 12.5 0 0 0-2.73 0 2.87 2.87 0 0 0-2.51 2.84 2.68 2.68 0 0 0 2.25 2.65l2.91.49a.68.68 0 0 1 .58.68.85.85 0 0 1-.74.85"},null,-1)]))}const S2={render:k2},_2=Object.freeze(Object.defineProperty({__proto__:null,default:S2,render:k2},Symbol.toStringTag,{value:"Module"})),E2={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 128 128"};function T2(e,t){return Pl(),Ml("svg",E2,t[0]||(t[0]=[Ul("path",{d:"M63.877 125.392c-32.671 0-60.37-27.594-60.627-60.469a59.94 59.94 0 0 1 17.506-42.759 60.94 60.94 0 0 1 43.279-18.36 60.08 60.08 0 0 1 42.647 17.71 60.15 60.15 0 0 1 18.157 42.522c.151 33.604-26.864 61.021-60.469 61.363h-.493zm.19-118.406a57.77 57.77 0 0 0-41.01 17.427 56.78 56.78 0 0 0-16.63 40.484c.236 31.159 26.495 57.286 57.43 57.286h.414c31.863-.29 57.504-26.266 57.385-58.128a56.97 56.97 0 0 0-17.217-40.273A56.7 56.7 0 0 0 64.068 6.986z"},null,-1),Ul("path",{d:"M16.89 82.383V46.865h8.64v3.183h-4.583v29.218h4.584v3.183zm29.323-18.111c0 6.478-3.933 10.167-9.26 10.167s-8.877-4.156-8.877-9.831c0-5.939 3.722-10.121 9.167-10.121s8.97 4.36 8.97 9.785m-14.415.29c0 3.932 1.973 7.05 5.36 7.05s5.333-3.183 5.333-7.195c0-3.643-1.796-7.083-5.334-7.083s-5.392 3.328-5.392 7.307zm17.407-9.404c1.69-.29 3.407-.434 5.123-.428a9.17 9.17 0 0 1 5.537 1.223 4.06 4.06 0 0 1 2.006 3.61 4.48 4.48 0 0 1-3.183 4.183c2.269.46 3.9 2.46 3.9 4.775a5.02 5.02 0 0 1-1.861 3.978c-1.368 1.21-3.643 1.796-7.162 1.796a34 34 0 0 1-4.327-.257zm3.499 7.622h1.795c2.433 0 3.801-1.145 3.801-2.782s-1.368-2.644-3.61-2.644a9.8 9.8 0 0 0-2.006.145zm0 8.878c.618.065 1.243.092 1.86.078 2.263 0 4.262-.861 4.262-3.182s-1.94-3.183-4.373-3.183h-1.75zM69.54 54.901h3.517v12.554c0 5.334-2.577 7.116-6.365 7.116a9.3 9.3 0 0 1-2.973-.507l.428-2.834c.703.224 1.44.335 2.183.349 2.006 0 3.183-.921 3.183-4.262l.026-12.416zm13.527 10.456v2.434h-7.32v-2.434zm17.091 8.273a12.3 12.3 0 0 1-4.978.862c-6.129 0-9.851-3.834-9.851-9.707-.283-5.353 3.827-9.923 9.18-10.206.375-.02.757-.02 1.131.006a11.1 11.1 0 0 1 4.775.862l-.783 2.801a9.5 9.5 0 0 0-3.788-.75c-3.932 0-6.76 2.467-6.76 7.116 0 4.235 2.499 6.971 6.734 6.971a9.8 9.8 0 0 0 3.834-.717zM111.2 46.766v35.61h-8.641v-3.182h4.583V49.949h-4.583v-3.183h8.64z"},null,-1)]))}const A2={render:T2},C2=Object.freeze(Object.defineProperty({__proto__:null,default:A2,render:T2},Symbol.toStringTag,{value:"Module"})),P2={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 128 128"};function D2(e,t){return Pl(),Ml("svg",P2,t[0]||(t[0]=[Ul("path",{d:"M65.004 115.355c-.461-.894-1.004-2.796-1.356-3.601-.378-.711-1.46-2.692-1.984-3.332-1.164-1.332-1.437-1.438-1.809-3.23-.628-3.067-2.148-8.462-4.042-12.227-1.004-2-2.626-3.606-4.067-5.07-1.246-1.247-4.121-3.31-4.668-3.227-4.766.894-6.226 5.586-8.457 9.27-1.27 2.062-2.516 3.769-3.52 5.937-.898 1.98-.812 4.23-2.331 5.938a15.4 15.4 0 0 0-3.333 5.855c-.195.453-.546 4.957-1.003 6.016l7.02-.438c6.585.461 4.687 2.961 14.858 2.438l16.098-.54a25 25 0 0 0-1.433-3.792zM111.793 8.254H16.207C7.312 8.23.086 15.457.086 24.352v35.105c2.352-.812 5.578-5.75 6.668-6.934 1.789-2.062 2.16-4.77 3.059-6.378 2.062-3.793 2.433-6.477 7.101-6.477 2.164 0 3.063.516 4.5 2.516.996 1.332 2.79 3.957 3.602 5.668 1.004 1.98 2.523 4.582 3.254 5.125.515.351.972.722 1.433.894.707.27 1.356-.27 1.902-.629.622-.539.895-1.52 1.52-2.953.895-2.086 1.813-4.418 2.332-5.312.914-1.461 1.273-3.254 2.25-4.067 1.461-1.246 3.441-1.355 3.957-1.437 2.98-.625 4.336 1.437 5.777 2.707.973.894 2.243 2.605 3.246 4.851.708 1.793 1.606 3.52 2.067 4.5.351.98 1.266 2.606 1.789 4.582.543 1.711 1.809 3.067 2.352 3.961 0 0 .812 2.164 5.476 4.145a35 35 0 0 0 4.336 1.52c2.066.734 4.047.644 6.563.374 1.789 0 2.793-2.625 3.601-4.683.438-1.254.98-4.774 1.25-5.758.27-.996-.437-1.707.192-2.625.722-.977 1.164-1.082 1.519-2.332.914-2.793 5.957-2.875 8.832-2.875 2.414 0 2.063 2.332 6.125 1.52 2.336-.434 4.586.273 7.023.995 2.063.543 4.043 1.168 5.204 2.524.73.898 2.629 5.312.73 5.476.164.188.36.645.625.817-.46 1.707-2.25.46-3.332.27-1.355-.27-2.332 0-3.684.624-2.335.996-5.668.918-7.726 2.625-1.715 1.438-1.715 4.582-2.543 6.371 0 0-2.254 5.696-6.996 9.192-1.278.914-3.715 3.058-8.918 3.871-2.356.355-4.586.355-7.024.27-1.164-.079-2.332-.079-3.52-.079-.706 0-3.062-.109-2.96.164l-.27.645c.024.29.063.602.164.895.102.515.102.976.192 1.437 0 .98-.086 2.063 0 3.066.082 2.063.894 3.957 1.004 6.102.078 2.355 1.246 4.875 2.414 6.77.46.707 1.086.789 1.355 1.71.352.98 0 2.141.188 3.227.625 4.227 1.875 8.73 3.773 12.61v.078c2.332-.352 4.77-1.247 7.836-1.684 5.664-.832 13.5-.461 18.54-.914 12.796-1.168 19.706 5.226 31.148 2.601V24.336c-.063-8.895-7.293-16.102-16.207-16.102zM64.086 83.855q0-.28 0 0m-34.457 14.75c.894-1.98 1.433-4.125 2.144-6.101.73-1.899 1.813-4.61 3.684-5.582-.246-.274-3.957-.375-4.934-.461-1.082-.086-2.171-.273-3.25-.438a135 135 0 0 1-6.125-1.265c-1.168-.274-5.21-1.715-6.02-2.067-2.085-.894-3.421-3.52-4.96-3.246-.977.188-1.98.54-2.605 1.54-.543.812-.731 2.242-1.083 3.226-.437 1.086-1.168 2.164-1.707 3.25-1.277 1.875-3.332 3.582-4.23 5.484-.191.457-.27.895-.457 1.356v21.683c1.082.188 2.16.371 3.328.73 8.996 2.438 11.164 2.606 19.98 1.63l.813-.11c.625-1.437 1.188-6.207 1.629-7.644.352-1.164.812-2.063.996-3.14.164-1.09 0-2.173-.102-3.15-.171-2.628 1.895-3.519 2.899-5.69zm0 0"},null,-1)]))}const $2={render:D2},R2=Object.freeze(Object.defineProperty({__proto__:null,default:$2,render:D2},Symbol.toStringTag,{value:"Module"})),M2={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"};function N2(e,t){return Pl(),Ml("svg",M2,t[0]||(t[0]=[Ul("path",{d:"M7.01 10.207h-.944l-.515 2.648h.838q.834 0 1.242-.314.408-.315.55-1.049.137-.705-.124-.995-.262-.29-1.047-.29M12 5.688C5.373 5.688 0 8.514 0 12s5.373 6.313 12 6.313S24 15.486 24 12s-5.373-6.312-12-6.312m-3.26 7.451c-.261.25-.575.438-.917.551q-.505.163-1.285.164H5.357l-.327 1.681H3.652l1.23-6.326h2.65q1.195 0 1.744.628.549.627.33 1.752a2.8 2.8 0 0 1-.305.847q-.215.383-.561.703m4.024.715.543-2.799q.094-.478-.068-.651-.16-.174-.687-.174H11.46l-.704 3.625H9.388l1.23-6.327h1.367l-.327 1.682h1.218q1.15 0 1.586.401c.436.401.378.7.263 1.299l-.572 2.944zm7.597-2.265a2.8 2.8 0 0 1-.305.847q-.214.383-.561.703a2.44 2.44 0 0 1-.917.551q-.504.163-1.286.164h-1.18l-.327 1.682h-1.378l1.23-6.326h2.649q1.195 0 1.744.628.55.626.331 1.751m-2.595-1.382h-.943l-.516 2.648h.838q.835 0 1.242-.314.407-.315.551-1.049.137-.705-.125-.995c-.262-.29-.524-.29-1.047-.29"},null,-1)]))}const I2={render:N2},L2=Object.freeze(Object.defineProperty({__proto__:null,default:I2,render:N2},Symbol.toStringTag,{value:"Module"})),j2={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 121 121"};function B2(e,t){return Pl(),Ml("svg",j2,t[0]||(t[0]=[Ul("path",{"fill-rule":"evenodd",d:"M73.7 58.9c-1.5-1.8-3.2-3.9-5-5.9C58.5 41.7 48.4 30.3 38 19.2c-4.7-5.1-6.2-10-.6-15.1C43-.9 48.5-.4 53.7 5.3 68.1 21.2 82.4 37.2 97 52.9c5.5 5.9 4.2 9.9-1.8 14.2-23 16.7-46 33.5-68.9 50.4-5.1 3.8-10.1 4.8-14.2-.9-4.6-6.2-.3-9.9 4.4-13.3 17-12.4 34-24.8 50.9-37.4 2.5-1.7 5.9-2.8 6.3-7m7.3 59.8c-6.2 0-12.4.2-18.6-.1-4.9-.2-7.9-3-7.8-8.2.1-4.9 2.5-8.6 7.5-8.7 13.5-.4 27.1-.3 40.7 0 4.3.1 7.5 2.9 7.5 7.4 0 5.1-2.7 9.1-8.2 9.5-7.2.4-14.2.1-21.1.1","clip-rule":"evenodd"},null,-1)]))}const U2={render:B2},F2=Object.freeze(Object.defineProperty({__proto__:null,default:U2,render:B2},Symbol.toStringTag,{value:"Module"})),Q2={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"};function z2(e,t){return Pl(),Ml("svg",Q2,t[0]||(t[0]=[Ul("path",{d:"m14.25.18.9.2.73.26.59.3.45.32.34.34.25.34.16.33.1.3.04.26.02.2-.01.13V8.5l-.05.63-.13.55-.21.46-.26.38-.3.31-.33.25-.35.19-.35.14-.33.1-.3.07-.26.04-.21.02H8.77l-.69.05-.59.14-.5.22-.41.27-.33.32-.27.35-.2.36-.15.37-.1.35-.07.32-.04.27-.02.21v3.06H3.17l-.21-.03-.28-.07-.32-.12-.35-.18-.36-.26-.36-.36-.35-.46-.32-.59-.28-.73-.21-.88-.14-1.05-.05-1.23.06-1.22.16-1.04.24-.87.32-.71.36-.57.4-.44.42-.33.42-.24.4-.16.36-.1.32-.05.24-.01h.16l.06.01h8.16v-.83H6.18l-.01-2.75-.02-.37.05-.34.11-.31.17-.28.25-.26.31-.23.38-.2.44-.18.51-.15.58-.12.64-.1.71-.06.77-.04.84-.02 1.27.05zm-6.3 1.98-.23.33-.08.41.08.41.23.34.33.22.41.09.41-.09.33-.22.23-.34.08-.41-.08-.41-.23-.33-.33-.22-.41-.09-.41.09zm13.09 3.95.28.06.32.12.35.18.36.27.36.35.35.47.32.59.28.73.21.88.14 1.04.05 1.23-.06 1.23-.16 1.04-.24.86-.32.71-.36.57-.4.45-.42.33-.42.24-.4.16-.36.09-.32.05-.24.02-.16-.01h-8.22v.82h5.84l.01 2.76.02.36-.05.34-.11.31-.17.29-.25.25-.31.24-.38.2-.44.17-.51.15-.58.13-.64.09-.71.07-.77.04-.84.01-1.27-.04-1.07-.14-.9-.2-.73-.25-.59-.3-.45-.33-.34-.34-.25-.34-.16-.33-.1-.3-.04-.25-.02-.2.01-.13v-5.34l.05-.64.13-.54.21-.46.26-.38.3-.32.33-.24.35-.2.35-.14.33-.1.3-.06.26-.04.21-.02.13-.01h5.84l.69-.05.59-.14.5-.21.41-.28.33-.32.27-.35.2-.36.15-.36.1-.35.07-.32.04-.28.02-.21V6.07h2.09l.14.01zm-6.47 14.25-.23.33-.08.41.08.41.23.33.33.23.41.08.41-.08.33-.23.23-.33.08-.41-.08-.41-.23-.33-.33-.23-.41-.08-.41.08z"},null,-1)]))}const q2={render:z2},H2=Object.freeze(Object.defineProperty({__proto__:null,default:q2,render:z2},Symbol.toStringTag,{value:"Module"})),V2={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 128 128"};function Z2(e,t){return Pl(),Ml("svg",V2,t[0]||(t[0]=[Ul("path",{d:"M64 14.648c-35.346 0-64 19.19-64 42.863C0 78.275 22.046 95.589 51.316 99.53V86.699c-15.55-4.89-26.166-14.693-26.166-25.991 0-16.183 21.779-29.303 48.646-29.303 26.866 0 46.693 8.975 46.693 29.303 0 10.486-5.273 17.95-14.066 22.72 1.204.908 2.22 2.072 2.904 3.419l.388.655C121.025 79.772 128 69.189 128 57.51c0-23.672-28.654-42.863-64-42.863zm20.1 74.88c-2.612.257-5.322.41-8.114.462l.002 9.63a88 88 0 0 0 12.474-2.492l-.501-.941c-.68-1.268-1.347-2.543-2.033-3.807a41 41 0 0 0-1.828-2.851z"},null,-1),Ul("path",{"fill-rule":"evenodd",d:"M97.469 81.036s3.874 1.169 6.124 2.307c.78.396 2.132 1.184 3.106 2.22a8.4 8.4 0 0 1 1.42 2.04l15.266 25.74-24.674.01-11.537-21.666s-2.363-4.06-3.817-5.237c-1.213-.982-1.73-1.331-2.929-1.331h-5.862l.004 28.219-21.834.009V41.263h43.845s19.97.36 19.97 19.359S97.47 81.035 97.47 81.035zm-9.497-24.137-13.218-.009-.006 12.257 13.224-.004s6.124-.019 6.124-6.235c0-6.34-6.124-6.01-6.124-6.01z"},null,-1)]))}const W2={render:Z2},X2=Object.freeze(Object.defineProperty({__proto__:null,default:W2,render:Z2},Symbol.toStringTag,{value:"Module"})),G2={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"};function Y2(e,t){return Pl(),Ml("svg",G2,t[0]||(t[0]=[Ul("path",{d:"M20.156.083c3.033.525 3.893 2.598 3.829 4.77L24 4.822 22.635 22.71 4.89 23.926h.016C3.433 23.864.15 23.729 0 19.139l1.645-3 2.819 6.586.503 1.172 2.805-9.144-.03.007.016-.03 9.255 2.956-1.396-5.431-.99-3.9 8.82-.569-.615-.51L16.5 2.114 20.159.073zM5.13 5.073c3.561-3.533 8.157-5.621 9.922-3.84 1.762 1.777-.105 6.105-3.673 9.636-3.563 3.532-8.103 5.734-9.864 3.957-1.766-1.777.045-6.217 3.612-9.75z"},null,-1)]))}const K2={render:Y2},J2=Object.freeze(Object.defineProperty({__proto__:null,default:K2,render:Y2},Symbol.toStringTag,{value:"Module"})),e4={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function t4(e,t){return Pl(),Ml("svg",e4,t[0]||(t[0]=[Ul("path",{fill:"currentColor",d:"m21.863 11.755-.839-.52-.024-.244.722-.673a.288.288 0 0 0-.096-.482l-.923-.345-.072-.239.575-.799a.288.288 0 0 0-.187-.455l-.973-.158-.117-.218.409-.897a.286.286 0 0 0-.273-.409l-.987.034-.157-.188.228-.962a.287.287 0 0 0-.348-.348l-.96.227-.19-.157.034-.986a.287.287 0 0 0-.409-.273l-.897.409-.218-.118-.158-.972a.288.288 0 0 0-.454-.189l-.8.575-.238-.071-.345-.923a.288.288 0 0 0-.482-.096L13.01 3l-.245-.023-.52-.84a.29.29 0 0 0-.49 0l-.52.84q-.123.01-.245.023l-.673-.722a.29.29 0 0 0-.482.096l-.345.923q-.12.034-.237.072l-.8-.576a.288.288 0 0 0-.455.188l-.158.973q-.11.057-.22.118l-.895-.41a.287.287 0 0 0-.409.273l.034.988-.19.156-.96-.227a.29.29 0 0 0-.348.348l.227.962-.157.188-.987-.034a.288.288 0 0 0-.273.409l.409.897a7 7 0 0 0-.117.22l-.972.156a.288.288 0 0 0-.189.455l.575.8-.071.237-.923.346a.29.29 0 0 0-.096.482L3 10.99l-.024.244-.84.52a.29.29 0 0 0 0 .492l.84.519q.01.123.025.245l-.723.673a.29.29 0 0 0 .096.482l.922.345q.035.12.073.237l-.576.8a.29.29 0 0 0 .188.454l.973.158q.056.11.117.22l-.41.896a.288.288 0 0 0 .274.409l.987-.035q.076.096.156.19l-.227.961a.287.287 0 0 0 .348.347l.961-.226.19.156-.035.987a.288.288 0 0 0 .41.273l.896-.41q.108.06.219.119l.158.971a.288.288 0 0 0 .455.19l.799-.577q.118.038.237.072l.345.923a.287.287 0 0 0 .482.096L10.99 21q.121.014.244.025l.52.839a.29.29 0 0 0 .492 0l.519-.84q.123-.01.245-.024l.674.722a.287.287 0 0 0 .48-.096l.346-.923q.12-.034.238-.072l.8.576a.29.29 0 0 0 .454-.189l.158-.972.219-.117.896.409a.288.288 0 0 0 .41-.273l-.035-.988a7 7 0 0 0 .19-.155l.96.226a.287.287 0 0 0 .348-.347l-.226-.961.155-.19.988.035a.29.29 0 0 0 .272-.41l-.409-.896q.06-.108.117-.219l.973-.158a.287.287 0 0 0 .188-.454l-.575-.8.072-.237.922-.345a.286.286 0 0 0 .096-.482L21 13.011l.025-.245.839-.52a.29.29 0 0 0 0-.49Zm-5.619 6.965a.595.595 0 0 1 .25-1.163.595.595 0 0 1-.25 1.163m-.286-1.93a.54.54 0 0 0-.642.417l-.299 1.391a7.3 7.3 0 0 1-3.017.65c-1.1 0-2.144-.243-3.08-.679l-.299-1.39a.54.54 0 0 0-.643-.417l-1.228.263a7 7 0 0 1-.635-.748h5.976c.068 0 .113-.012.113-.074V14.09c0-.062-.046-.074-.113-.074h-1.747v-1.34h1.89c.172 0 .922.049 1.162 1.007.075.295.24 1.254.352 1.561.113.344.57 1.032 1.059 1.032h2.977a1 1 0 0 0 .108-.01q-.31.421-.677.794l-1.256-.27Zm-8.265 1.9a.594.594 0 1 1-.014-1.17.594.594 0 0 1 .014 1.171ZM5.427 9.5a.594.594 0 1 1-1.086.481.594.594 0 0 1 1.086-.481m-.697 1.65 1.28-.569a.543.543 0 0 0 .274-.715l-.263-.597h1.036v4.672h-2.09a7.3 7.3 0 0 1-.237-2.792Zm5.614-.454V9.32h2.468c.128 0 .9.148.9.725 0 .48-.592.652-1.08.652zm8.969 1.24q0 .273-.02.542h-.75c-.076 0-.106.05-.106.123v.345c0 .81-.457.987-.858 1.032-.381.043-.805-.16-.857-.394-.225-1.265-.6-1.536-1.192-2.003.735-.467 1.5-1.155 1.5-2.077 0-.996-.683-1.623-1.148-1.93-.652-.43-1.375-.517-1.57-.517h-7.76a7.3 7.3 0 0 1 4.091-2.308l.915.959a.54.54 0 0 0 .765.018l1.024-.98a7.32 7.32 0 0 1 5.006 3.566l-.7 1.583a.543.543 0 0 0 .275.715l1.35.6q.034.357.035.726m-7.754-8.004a.595.595 0 1 1 .82.86.595.595 0 0 1-.82-.86m6.951 5.595a.594.594 0 1 1 1.086.481.594.594 0 0 1-1.086-.481"},null,-1)]))}const r4={render:t4},n4=Object.freeze(Object.defineProperty({__proto__:null,default:r4,render:t4},Symbol.toStringTag,{value:"Module"})),a4={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"};function o4(e,t){return Pl(),Ml("svg",a4,t[0]||(t[0]=[Ul("path",{d:"M4.589 24c4.537 0 13.81-1.516 14.821-3v-5.729c-.957 1.408-10.284 2.912-14.821 2.912zm0-7.635c4.537 0 13.81-1.516 14.821-3V7.636c-.957 1.408-10.284 2.912-14.821 2.912zm0-7.636c4.537 0 13.81-1.516 14.821-3V0C18.453 1.408 9.126 2.912 4.589 2.912z"},null,-1)]))}const i4={render:o4},s4=Object.freeze(Object.defineProperty({__proto__:null,default:i4,render:o4},Symbol.toStringTag,{value:"Module"})),l4={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 17 17"};function c4(e,t){return Pl(),Ml("svg",l4,t[0]||(t[0]=[Ul("path",{d:"m2.4 11.4 5.1-4.6-5.1-4.7L.7 3.7l3.4 3v.1l-3.4 3zm14.2 3.3v-2.2h-8v2.2z"},null,-1)]))}const u4={render:c4},d4=Object.freeze(Object.defineProperty({__proto__:null,default:u4,render:c4},Symbol.toStringTag,{value:"Module"})),p4={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 128 128"};function h4(e,t){return Pl(),Ml("svg",p4,t[0]||(t[0]=[Ul("path",{d:"M117.3 87.3c.2-.6.4-1.3.5-1.9 7-28-10.1-61.2-39.2-78.6C91.4 24 97 44.9 92 63.2c-.4 1.6-1 3.2-1.6 4.7-.6-.4-1.5-.9-2.5-1.5 0 0-28.9-17.9-60.2-49.4-.9-.8 16.7 25 36.6 46.1-9.4-5.3-35.5-24.3-52-39.4 2 3.4 4.4 6.7 7.1 9.8C33.1 51 51.2 72.6 72.7 89.2c-15.2 9.3-36.6 10-57.9 0C9.5 86.7 4.6 83.7 0 80.3c9 14.4 22.9 26.9 39.9 34.2 20.2 8.7 40.3 8.1 55.2.1.1 0 .1-.1.2-.1.7-.4 1.3-.7 2-1.1 7.2-3.7 21.3-7.4 28.9 7.4 1.7 3.6 5.7-15.6-8.9-33.5"},null,-1)]))}const f4={render:h4},m4=Object.freeze(Object.defineProperty({__proto__:null,default:f4,render:h4},Symbol.toStringTag,{value:"Module"})),g4={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"};function v4(e,t){return Pl(),Ml("svg",g4,t[0]||(t[0]=[Ul("path",{d:"M1.125 0C.502 0 0 .502 0 1.125v21.75C0 23.498.502 24 1.125 24h21.75c.623 0 1.125-.502 1.125-1.125V1.125C24 .502 23.498 0 22.875 0zm17.363 9.75q.918 0 1.627.111a6.4 6.4 0 0 1 1.306.34v2.458a4 4 0 0 0-.643-.361 5 5 0 0 0-.717-.26 5.5 5.5 0 0 0-1.426-.2q-.45 0-.819.086a2.1 2.1 0 0 0-.623.242q-.254.156-.393.374a.9.9 0 0 0-.14.49q0 .294.156.529.156.234.443.444c.287.21.423.276.696.41q.41.203.926.416.705.296 1.266.628.561.333.963.753.402.418.614.957.213.538.214 1.253 0 .986-.373 1.656a3 3 0 0 1-1.012 1.085 4.4 4.4 0 0 1-1.487.596q-.85.18-1.79.18a10 10 0 0 1-1.84-.164 5.5 5.5 0 0 1-1.512-.493v-2.63a5.03 5.03 0 0 0 3.237 1.2q.5 0 .872-.09.373-.09.623-.25.249-.162.373-.38a1.02 1.02 0 0 0-.074-1.089 2.1 2.1 0 0 0-.537-.5 5.6 5.6 0 0 0-.807-.444 28 28 0 0 0-1.007-.436q-1.377-.575-2.053-1.405t-.676-2.005q0-.92.369-1.582.368-.662 1.004-1.089a4.5 4.5 0 0 1 1.47-.629 7.5 7.5 0 0 1 1.77-.201m-15.113.188h9.563v2.166H9.506v9.646H6.789v-9.646H3.375z"},null,-1)]))}const b4={render:v4},y4=Object.freeze(Object.defineProperty({__proto__:null,default:b4,render:v4},Symbol.toStringTag,{value:"Module"})),O4={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function w4(e,t){return Pl(),Ml("svg",O4,t[0]||(t[0]=[Ul("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M7.8 4.6 1.4 11c-.6.6-.6 1.6 0 2l6.2 6.2m8.6-14.6 6.2 6.2c.6.6.6 1.6 0 2l-6.2 6.6"},null,-1)]))}const x4={render:w4},k4=Object.freeze(Object.defineProperty({__proto__:null,default:x4,render:w4},Symbol.toStringTag,{value:"Module"})),S4={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"};function _4(e,t){return Pl(),Ml("svg",S4,t[0]||(t[0]=[Ul("path",{d:"M23.55 10.91 13.09.45a1.55 1.55 0 0 0-2.18 0L8.46 2.9 11 5.48a2.06 2.06 0 0 1 1-.23 2.25 2.25 0 0 1 2.25 2.25 2.2 2.2 0 0 1-.22 1l2.19 2.2a2 2 0 1 1-1.06 1.06L13 9.52a1 1 0 0 1-.21.09v5.54a2 2 0 1 1-1.5 0V9.61A2.24 2.24 0 0 1 9.75 7.5a2.2 2.2 0 0 1 .22-1L7.4 4 .45 11a1.55 1.55 0 0 0 0 2.18l10.46 10.37a1.55 1.55 0 0 0 2.18 0l10.46-10.46a1.55 1.55 0 0 0 0-2.18"},null,-1)]))}const E4={render:_4},T4=Object.freeze(Object.defineProperty({__proto__:null,default:E4,render:_4},Symbol.toStringTag,{value:"Module"})),A4={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"};function C4(e,t){return Pl(),Ml("svg",A4,t[0]||(t[0]=[Ul("path",{d:"M12.001 4.8q-4.8 0-6 4.8 1.8-2.4 4.2-1.8c.913.228 1.565.89 2.288 1.624C13.666 10.618 15.027 12 18.001 12q4.8 0 6-4.8-1.8 2.4-4.2 1.8c-.913-.228-1.565-.89-2.288-1.624C16.337 6.182 14.976 4.8 12.001 4.8m-6 7.2q-4.8 0-6 4.8 1.8-2.4 4.2-1.8c.913.228 1.565.89 2.288 1.624 1.177 1.194 2.538 2.576 5.512 2.576q4.8 0 6-4.8-1.8 2.4-4.2 1.8c-.913-.228-1.565-.89-2.288-1.624C10.337 13.382 8.976 12 6.001 12"},null,-1)]))}const P4={render:C4},D4=Object.freeze(Object.defineProperty({__proto__:null,default:P4,render:C4},Symbol.toStringTag,{value:"Module"})),$4={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function R4(e,t){return Pl(),Ml("svg",$4,t[0]||(t[0]=[Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M2 11.997C2 20.066 3.934 22 11.997 22 20.066 22 22 20.066 22 11.997 22 3.934 20.06 2 11.997 2S2 3.934 2 11.997m4.034 2.081 3.129-7.132a2.96 2.96 0 0 1 2.828-1.848c1.285 0 2.302.649 2.834 1.848l3.135 7.132c.14.343.263.796.263 1.182 0 1.77-1.243 3.012-3.012 3.012-.606 0-1.084-.153-1.567-.306a5.1 5.1 0 0 0-1.653-.325c-.643 0-1.157.16-1.665.325-.49.153-.968.306-1.55.306A2.89 2.89 0 0 1 5.76 15.26c0-.392.122-.839.27-1.182zm5.963-5.889L8.905 15.2c.919-.429 1.972-.637 3.092-.637 1.084 0 2.18.208 3.06.637z","clip-rule":"evenodd"},null,-1)]))}const M4={render:R4},N4=Object.freeze(Object.defineProperty({__proto__:null,default:M4,render:R4},Symbol.toStringTag,{value:"Module"})),I4={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function L4(e,t){return Pl(),Ml("svg",I4,t[0]||(t[0]=[Hl('<path fill="#fff" fill-rule="evenodd" d="M11.9 7.2h8.4v3.4h-8.4z" clip-rule="evenodd"></path><path fill="#3ECC5F" fill-rule="evenodd" d="M4.3 18.3c-.74 0-1.384-.403-1.73-1a2 2 0 0 0 1.73 3h2v-2z" clip-rule="evenodd"></path><path fill="#3ECC5F" fill-rule="evenodd" d="M13.298 7.738 20.3 7.3v-1a2 2 0 0 0-2-2h-9l-.25-.433a.29.29 0 0 0-.5 0L8.3 4.3l-.25-.433a.29.29 0 0 0-.5 0L7.3 4.3l-.25-.433a.29.29 0 0 0-.5 0L6.3 4.3h-.006l-.415-.414a.29.29 0 0 0-.482.13l-.137.51-.52-.14a.29.29 0 0 0-.353.354l.139.52-.51.136a.29.29 0 0 0-.13.483l.414.415V6.3l-.433.25a.29.29 0 0 0 0 .5l.433.25-.433.25a.29.29 0 0 0 0 .5l.433.25-.433.25a.29.29 0 0 0 0 .5l.433.25-.433.25a.29.29 0 0 0 0 .5l.433.25-.433.25a.29.29 0 0 0 0 .5l.433.25-.433.25a.29.29 0 0 0 0 .5l.433.25-.433.25a.29.29 0 0 0 0 .5l.433.25-.433.25a.29.29 0 0 0 0 .5l.433.25-.433.25a.29.29 0 0 0 0 .5l.433.25-.433.25a.29.29 0 0 0 0 .5l.433.25-.433.25a.29.29 0 0 0 0 .5l.433.25-.433.25a.29.29 0 0 0 0 .5l.433.25a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8l-7.002-.438a1.065 1.065 0 0 1 0-2.124" clip-rule="evenodd"></path><path fill="#3ECC5F" fill-rule="evenodd" d="M16.3 20.3h3v-4h-3z" clip-rule="evenodd"></path><path fill="#44D860" fill-rule="evenodd" d="M21.3 17.8q-.033.002-.064.006l-.012-.045a.5.5 0 1 0-.494-.857l-.033-.034a.496.496 0 0 0-.299-.788.5.5 0 0 0-.56.293l-.044-.011q.005-.031.006-.064a.5.5 0 0 0-1 0q.002.033.006.064l-.044.011a.5.5 0 1 0-.859.495 2 2 0 1 0 3.333 1.924q.031.005.064.006a.5.5 0 1 0 0-1" clip-rule="evenodd"></path><path fill="#3ECC5F" fill-rule="evenodd" d="M17.3 14.3h3v-2h-3z" clip-rule="evenodd"></path><path fill="#44D860" fill-rule="evenodd" d="M21.3 13.55a.25.25 0 1 0 0-.5l-.032.003-.006-.022a.25.25 0 0 0-.096-.481.25.25 0 0 0-.15.052l-.018-.017a.25.25 0 0 0-.005-.308.25.25 0 0 0-.424.06 1 1 0 1 0 0 1.925.25.25 0 0 0 .48-.098.25.25 0 0 0-.05-.149l.016-.017a.25.25 0 0 0 .31-.005.25.25 0 0 0-.063-.424l.006-.022z" clip-rule="evenodd"></path><path fill="#000" fill-rule="evenodd" d="M8.3 7.55a.25.25 0 0 1-.25-.25.75.75 0 0 0-1.5 0 .25.25 0 0 1-.5 0 1.25 1.25 0 0 1 2.5 0 .25.25 0 0 1-.25.25" clip-rule="evenodd"></path><path fill="#FFFF50" fill-rule="evenodd" d="M12.3 20.3h6a2 2 0 0 0 2-2v-7h-6a2 2 0 0 0-2 2z" clip-rule="evenodd"></path><path fill="#000" fill-rule="evenodd" d="M18.802 14.4h-5.004a.1.1 0 0 1 0-.2h5.004a.1.1 0 1 1 0 .2m0 2h-5.004a.1.1 0 0 1 0-.2h5.004a.1.1 0 1 1 0 .2m0 2h-5.004a.1.1 0 0 1 0-.2h5.004a.1.1 0 1 1 0 .2m0-4.981h-5.004a.1.1 0 0 1 0-.2h5.004a.1.1 0 1 1 0 .2m0 1.981h-5.004a.1.1 0 0 1 0-.2h5.004a.1.1 0 1 1 0 .2m0 2h-5.004a.1.1 0 0 1 0-.2h5.004a.1.1 0 1 1 0 .2M20.3 8.161h-.003c-.31.01-.456.32-.585.592-.134.285-.238.47-.409.465-.189-.007-.297-.22-.411-.446-.132-.26-.282-.554-.596-.543-.305.01-.452.28-.581.517-.138.253-.232.406-.412.4-.193-.008-.295-.181-.414-.382-.132-.224-.285-.475-.593-.467-.3.01-.447.239-.577.44-.137.213-.233.343-.416.336-.198-.007-.3-.151-.417-.318-.133-.187-.282-.4-.59-.39-.293.01-.44.198-.57.363-.123.156-.219.28-.422.272a.1.1 0 0 0-.008.2c.302.01.455-.18.588-.349.117-.15.219-.278.419-.285.192-.008.283.111.42.304.13.184.276.392.572.402.31.01.46-.221.592-.426.119-.184.22-.342.415-.349.18-.006.277.135.415.368.13.22.276.47.579.48.312.01.463-.262.594-.503.114-.21.222-.406.412-.413.18-.004.273.16.411.433.13.255.276.544.583.556h.017c.306 0 .452-.308.58-.58.114-.24.222-.468.407-.477z" clip-rule="evenodd"></path><path fill="#3ECC5F" fill-rule="evenodd" d="M10.3 20.3h4v-4h-4z" clip-rule="evenodd"></path><path fill="#D8D8D8" d="m20.276 9.922-7.778 2.084a.2.2 0 0 0-.141.245l.76 2.837a.2.2 0 0 0 .245.141l7.777-2.084a.2.2 0 0 0 .142-.245l-.76-2.836a.2.2 0 0 0-.245-.142"></path><path fill="#4A4A4A" d="m14.845 13.56-.278.074a.1.1 0 0 0-.07.122l.074.279a.1.1 0 0 0 .122.07l.279-.074a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.123-.07m.559-.15-.278.074a.1.1 0 0 0-.07.123l.074.278a.1.1 0 0 0 .122.07l.279-.074a.1.1 0 0 0 .07-.122l-.074-.279a.1.1 0 0 0-.123-.07m.559-.15-.278.074a.1.1 0 0 0-.07.123l.074.278a.1.1 0 0 0 .122.07l.279-.074a.1.1 0 0 0 .07-.122l-.074-.279a.1.1 0 0 0-.123-.07m.559-.15-.278.074a.1.1 0 0 0-.07.123l.074.278a.1.1 0 0 0 .122.071l.279-.075a.1.1 0 0 0 .07-.122l-.074-.278a.1.1 0 0 0-.123-.071m.559-.15-.278.075a.1.1 0 0 0-.07.122l.074.279a.1.1 0 0 0 .122.07l.279-.074a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.123-.071m.559-.15-.278.075a.1.1 0 0 0-.07.122l.074.279a.1.1 0 0 0 .122.07l.279-.074a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.123-.07Zm.56-.15-.28.075a.1.1 0 0 0-.07.123l.075.278a.1.1 0 0 0 .122.07l.279-.074a.1.1 0 0 0 .07-.122l-.074-.279a.1.1 0 0 0-.123-.07Zm.558-.15-.278.075a.1.1 0 0 0-.07.123l.074.278a.1.1 0 0 0 .122.071l.279-.075a.1.1 0 0 0 .07-.122l-.074-.279a.1.1 0 0 0-.123-.07Zm.559-.15-.278.075a.1.1 0 0 0-.07.123l.074.278a.1.1 0 0 0 .122.071l.279-.074a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.123-.071Z"></path><path fill="#4A4A4A" fill-rule="evenodd" d="m13.082 14.032 1.187-.318a.1.1 0 0 1 .122.07l.075.279a.1.1 0 0 1-.07.122l-1.187.318a.1.1 0 0 1-.123-.07l-.075-.279a.1.1 0 0 1 .071-.122m6.533-1.75 1.187-.319a.1.1 0 0 1 .122.07l.075.28a.1.1 0 0 1-.07.122l-1.188.318a.1.1 0 0 1-.122-.07l-.075-.28a.1.1 0 0 1 .071-.122Zm-6.835.621.453-.121a.1.1 0 0 1 .122.07l.075.279a.1.1 0 0 1-.07.122l-.454.121a.1.1 0 0 1-.122-.07l-.075-.279a.1.1 0 0 1 .07-.122Z" clip-rule="evenodd"></path><path fill="#4A4A4A" d="m13.792 12.632-.279.074a.1.1 0 0 0-.07.123l.074.278a.1.1 0 0 0 .123.071l.278-.075a.1.1 0 0 0 .07-.122l-.074-.278a.1.1 0 0 0-.122-.071m.558-.15-.278.075a.1.1 0 0 0-.07.122l.074.279a.1.1 0 0 0 .123.07l.278-.074a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.122-.071Zm.56-.15-.279.075a.1.1 0 0 0-.07.122l.074.279a.1.1 0 0 0 .123.07l.278-.074a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.122-.07Zm.559-.15-.279.075a.1.1 0 0 0-.07.123l.074.278a.1.1 0 0 0 .123.07l.278-.074a.1.1 0 0 0 .07-.122l-.074-.279a.1.1 0 0 0-.122-.07Zm.559-.149-.279.074a.1.1 0 0 0-.07.123l.074.278a.1.1 0 0 0 .123.071l.278-.075a.1.1 0 0 0 .07-.122l-.074-.279a.1.1 0 0 0-.122-.07m.559-.15-.279.075a.1.1 0 0 0-.07.122l.074.278a.1.1 0 0 0 .123.071l.278-.074a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.122-.071m.559-.15-.279.075a.1.1 0 0 0-.07.122l.074.279a.1.1 0 0 0 .123.07l.278-.074a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.122-.07Zm.559-.15-.279.075a.1.1 0 0 0-.07.122l.074.279a.1.1 0 0 0 .123.07l.278-.074a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.122-.07Zm.559-.149-.279.074a.1.1 0 0 0-.07.123l.074.278a.1.1 0 0 0 .122.07l.279-.074a.1.1 0 0 0 .07-.122l-.074-.279a.1.1 0 0 0-.122-.07m.559-.15-.279.074a.1.1 0 0 0-.07.123l.074.278a.1.1 0 0 0 .123.071l.278-.075a.1.1 0 0 0 .07-.122l-.074-.278a.1.1 0 0 0-.122-.071m.559-.15-.279.075a.1.1 0 0 0-.07.122l.074.279a.1.1 0 0 0 .123.07l.278-.074a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.122-.071m.558-.15-.278.075a.1.1 0 0 0-.07.122l.074.279a.1.1 0 0 0 .122.07l.279-.074a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.122-.07Zm.56-.15-.279.075a.1.1 0 0 0-.07.122l.074.279a.1.1 0 0 0 .122.07l.279-.074a.1.1 0 0 0 .07-.122l-.074-.279a.1.1 0 0 0-.122-.07Z"></path><path fill="#4A4A4A" fill-rule="evenodd" d="m20.483 10.771-.454.122a.1.1 0 0 1-.122-.071l-.075-.278a.1.1 0 0 1 .071-.123l.453-.121a.1.1 0 0 1 .123.07l.074.279a.1.1 0 0 1-.07.122" clip-rule="evenodd"></path><path fill="#4A4A4A" d="m19.47 11.042.279-.074a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.122-.07l-.279.074a.1.1 0 0 0-.07.122l.074.279a.1.1 0 0 0 .123.07Zm-.558.15.278-.074a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.122-.071l-.279.074a.1.1 0 0 0-.07.123l.074.278a.1.1 0 0 0 .122.071Zm-.56.15.279-.075a.1.1 0 0 0 .07-.122l-.074-.279a.1.1 0 0 0-.122-.07l-.279.074a.1.1 0 0 0-.07.123l.074.278a.1.1 0 0 0 .122.071m-.558.15.278-.075a.1.1 0 0 0 .07-.122l-.074-.279a.1.1 0 0 0-.122-.07l-.279.074a.1.1 0 0 0-.07.123l.074.278a.1.1 0 0 0 .123.07Zm-.559.15.278-.075a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.122-.07l-.279.074a.1.1 0 0 0-.07.122l.074.279a.1.1 0 0 0 .123.07Zm-.559.149.278-.074a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.122-.071l-.279.075a.1.1 0 0 0-.07.122l.074.279a.1.1 0 0 0 .123.07m-.559.15.278-.075a.1.1 0 0 0 .07-.122l-.074-.278a.1.1 0 0 0-.122-.071l-.279.074a.1.1 0 0 0-.07.123l.074.278a.1.1 0 0 0 .123.071m-.559.149.278-.074a.1.1 0 0 0 .07-.122l-.074-.279a.1.1 0 0 0-.122-.07l-.279.074a.1.1 0 0 0-.07.123l.074.278a.1.1 0 0 0 .123.07m-.559.15.278-.074a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.122-.07l-.279.074a.1.1 0 0 0-.07.122l.074.279a.1.1 0 0 0 .123.07m-.559.15.278-.074a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.122-.07l-.279.074a.1.1 0 0 0-.07.122l.074.279a.1.1 0 0 0 .123.07m-.56.15.28-.074a.1.1 0 0 0 .07-.123l-.075-.278a.1.1 0 0 0-.122-.071l-.279.075a.1.1 0 0 0-.07.122l.074.278a.1.1 0 0 0 .123.071Zm-.558.15.278-.075a.1.1 0 0 0 .07-.122l-.074-.279a.1.1 0 0 0-.122-.07l-.279.074a.1.1 0 0 0-.07.123l.074.278a.1.1 0 0 0 .123.071m-.559.15.278-.075a.1.1 0 0 0 .071-.122l-.075-.279a.1.1 0 0 0-.122-.07l-.278.074a.1.1 0 0 0-.071.123l.074.278a.1.1 0 0 0 .123.07Z"></path><path fill="#4A4A4A" d="m19.47 11.042.279-.074a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.122-.07l-.279.074a.1.1 0 0 0-.07.122l.074.279a.1.1 0 0 0 .123.07Zm-.558.15.278-.074a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.122-.071l-.279.074a.1.1 0 0 0-.07.123l.074.278a.1.1 0 0 0 .122.071Zm-.56.15.279-.075a.1.1 0 0 0 .07-.122l-.074-.279a.1.1 0 0 0-.122-.07l-.279.074a.1.1 0 0 0-.07.123l.074.278a.1.1 0 0 0 .122.071m-.558.15.278-.075a.1.1 0 0 0 .07-.122l-.074-.279a.1.1 0 0 0-.122-.07l-.279.074a.1.1 0 0 0-.07.123l.074.278a.1.1 0 0 0 .123.07Zm-.559.15.278-.075a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.122-.07l-.279.074a.1.1 0 0 0-.07.122l.074.279a.1.1 0 0 0 .123.07Zm-.559.149.278-.074a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.122-.071l-.279.075a.1.1 0 0 0-.07.122l.074.279a.1.1 0 0 0 .123.07m-.559.15.278-.075a.1.1 0 0 0 .07-.122l-.074-.278a.1.1 0 0 0-.122-.071l-.279.074a.1.1 0 0 0-.07.123l.074.278a.1.1 0 0 0 .123.071m-.559.149.278-.074a.1.1 0 0 0 .07-.122l-.074-.279a.1.1 0 0 0-.122-.07l-.279.074a.1.1 0 0 0-.07.123l.074.278a.1.1 0 0 0 .123.07m-.559.15.278-.074a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.122-.07l-.279.074a.1.1 0 0 0-.07.122l.074.279a.1.1 0 0 0 .123.07m-.559.15.278-.074a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.122-.07l-.279.074a.1.1 0 0 0-.07.122l.074.279a.1.1 0 0 0 .123.07m-.56.15.28-.074a.1.1 0 0 0 .07-.123l-.075-.278a.1.1 0 0 0-.122-.071l-.279.075a.1.1 0 0 0-.07.122l.074.278a.1.1 0 0 0 .123.071Zm-.558.15.278-.075a.1.1 0 0 0 .07-.122l-.074-.279a.1.1 0 0 0-.122-.07l-.279.074a.1.1 0 0 0-.07.123l.074.278a.1.1 0 0 0 .123.071m-.559.15.278-.075a.1.1 0 0 0 .071-.122l-.075-.279a.1.1 0 0 0-.122-.07l-.278.074a.1.1 0 0 0-.071.123l.074.278a.1.1 0 0 0 .123.07Z"></path><path fill="#4A4A4A" fill-rule="evenodd" d="m12.93 13.462.645-.173a.1.1 0 0 1 .122.07l.075.28a.1.1 0 0 1-.07.122l-.646.173a.1.1 0 0 1-.123-.071l-.074-.278a.1.1 0 0 1 .07-.123Z" clip-rule="evenodd"></path><path fill="#4A4A4A" d="m14.151 13.135-.278.074a.1.1 0 0 0-.071.123l.075.278a.1.1 0 0 0 .122.07l.279-.074a.1.1 0 0 0 .07-.122l-.074-.279a.1.1 0 0 0-.123-.07m.559-.15-.278.074a.1.1 0 0 0-.071.123l.075.278a.1.1 0 0 0 .122.071l.279-.075a.1.1 0 0 0 .07-.122l-.074-.278a.1.1 0 0 0-.123-.071m.56-.15-.28.075a.1.1 0 0 0-.07.122l.075.279a.1.1 0 0 0 .122.07l.279-.074a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.123-.071Zm.558-.15-.278.075a.1.1 0 0 0-.071.122l.075.279a.1.1 0 0 0 .122.07l.278-.074a.1.1 0 0 0 .071-.123l-.074-.278a.1.1 0 0 0-.123-.07Zm.559-.149-.278.074a.1.1 0 0 0-.071.123l.075.278a.1.1 0 0 0 .122.07l.279-.074a.1.1 0 0 0 .07-.122l-.074-.279a.1.1 0 0 0-.123-.07m.559-.15-.278.074a.1.1 0 0 0-.071.123l.075.278a.1.1 0 0 0 .122.071l.279-.075a.1.1 0 0 0 .07-.122l-.074-.279a.1.1 0 0 0-.123-.07m.559-.15-.278.074a.1.1 0 0 0-.071.123l.075.278a.1.1 0 0 0 .122.071l.278-.074a.1.1 0 0 0 .071-.123l-.074-.278a.1.1 0 0 0-.123-.071m.559-.15-.279.075a.1.1 0 0 0-.07.122l.074.279a.1.1 0 0 0 .123.07l.278-.074a.1.1 0 0 0 .071-.123l-.075-.278a.1.1 0 0 0-.122-.07Zm.559-.15-.279.075a.1.1 0 0 0-.07.123l.074.278a.1.1 0 0 0 .123.07l.278-.074a.1.1 0 0 0 .071-.122l-.075-.279a.1.1 0 0 0-.122-.07Zm.559-.149-.278.074a.1.1 0 0 0-.071.123l.074.278a.1.1 0 0 0 .123.07l.278-.074a.1.1 0 0 0 .071-.122l-.075-.279a.1.1 0 0 0-.122-.07m.558-.15-.277.074a.1.1 0 0 0-.071.123l.074.278a.1.1 0 0 0 .123.071l.278-.075a.1.1 0 0 0 .071-.122l-.075-.279a.1.1 0 0 0-.122-.07Z"></path><path fill="#4A4A4A" fill-rule="evenodd" d="m20.039 11.557.61-.164a.1.1 0 0 1 .123.071l.074.279a.1.1 0 0 1-.07.122l-.61.164a.1.1 0 0 1-.123-.071l-.075-.278a.1.1 0 0 1 .07-.123z" clip-rule="evenodd"></path><path fill="#4A4A4A" d="m13.517 14.54-.279.075a.1.1 0 0 0-.07.122l.074.279a.1.1 0 0 0 .123.07l.278-.074a.1.1 0 0 0 .071-.123l-.075-.278a.1.1 0 0 0-.122-.07Zm.559-.15-.279.075a.1.1 0 0 0-.07.122l.074.279a.1.1 0 0 0 .123.07l.278-.074a.1.1 0 0 0 .071-.123l-.075-.278a.1.1 0 0 0-.122-.07Zm.559-.15-.279.075a.1.1 0 0 0-.07.123l.074.278a.1.1 0 0 0 .123.07l.278-.074a.1.1 0 0 0 .071-.122l-.075-.279a.1.1 0 0 0-.122-.07Zm.559-.15-.279.075a.1.1 0 0 0-.07.123l.074.278a.1.1 0 0 0 .123.071l.278-.075a.1.1 0 0 0 .07-.122l-.074-.278a.1.1 0 0 0-.122-.071Z"></path><path fill="#4A4A4A" fill-rule="evenodd" d="m15.474 14.016 2.69-.72a.1.1 0 0 1 .122.07l.074.278a.1.1 0 0 1-.07.123l-2.69.72a.1.1 0 0 1-.122-.07l-.074-.279a.1.1 0 0 1 .07-.122m2.97-.796.348-.093a.1.1 0 0 1 .123.07l.074.279a.1.1 0 0 1-.07.122l-.349.094a.1.1 0 0 1-.122-.071l-.075-.279a.1.1 0 0 1 .07-.122Z" clip-rule="evenodd"></path><path fill="#4A4A4A" d="m19.351 12.977-.278.075a.1.1 0 0 0-.071.122l.075.279a.1.1 0 0 0 .122.07l.279-.074a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.123-.071m.559-.15-.278.075a.1.1 0 0 0-.071.122l.075.279a.1.1 0 0 0 .122.07l.279-.074a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.123-.07Zm1.048-.281-.278.075a.1.1 0 0 0-.071.122l.075.279a.1.1 0 0 0 .122.07l.279-.074a.1.1 0 0 0 .07-.123l-.074-.278a.1.1 0 0 0-.123-.07Zm-.845.442-.028-.104a.1.1 0 0 1 .07-.123l.28-.074a.1.1 0 0 1 .122.07l.027.105zm.49-.057.028.105a.1.1 0 0 1-.07.122l-.279.075a.1.1 0 0 1-.122-.07l-.028-.105zm-.344-2.893-7.652 2.05a.108.108 0 1 0 .057.21l7.65-2.05a.108.108 0 1 0-.055-.21"></path><path fill="#D8D8D8" d="m13.075 12-.3.08a.072.072 0 1 0 .037.14l.3-.08a.072.072 0 1 0-.037-.14m.603-.162-.3.081a.072.072 0 1 0 .037.14l.3-.08a.072.072 0 1 0-.037-.14Zm.464-.124-.3.08a.072.072 0 1 0 .037.14l.3-.08a.072.072 0 1 0-.037-.14m.464-.124-.3.08a.072.072 0 0 0 .038.14l.3-.08a.072.072 0 0 0-.038-.14m.464-.125-.3.081a.072.072 0 0 0 .037.14l.3-.08a.072.072 0 0 0-.037-.14Zm.58-.155-.3.08a.072.072 0 0 0 .037.14l.3-.08a.072.072 0 1 0-.037-.14m.464-.124-.3.08a.072.072 0 0 0 .037.14l.3-.08a.072.072 0 1 0-.038-.14Zm.464-.125-.3.081a.072.072 0 1 0 .037.14l.3-.08a.072.072 0 1 0-.037-.14Zm.464-.124-.3.08a.072.072 0 0 0 .038.14l.3-.08a.072.072 0 1 0-.037-.14Zm.58-.155-.3.08a.072.072 0 0 0 .037.14l.3-.08a.072.072 0 0 0-.038-.14Zm.464-.125-.3.081a.072.072 0 0 0 .037.14l.3-.08a.072.072 0 0 0-.037-.14Zm.464-.124-.3.08a.072.072 0 0 0 .038.14l.3-.08a.072.072 0 1 0-.037-.14Zm.58-.155-.3.08a.072.072 0 1 0 .037.14l.3-.08a.072.072 0 1 0-.038-.14Zm.464-.125-.301.08a.072.072 0 1 0 .037.14l.301-.08a.072.072 0 1 0-.037-.14m.464-.124-.301.08a.072.072 0 0 0 .037.14l.302-.08a.072.072 0 0 0-.038-.14" opacity=".136"></path><path fill="#44D860" fill-rule="evenodd" d="M16.3 17.8q-.033.002-.064.006l-.012-.045a.5.5 0 1 0-.494-.857l-.033-.034a.496.496 0 0 0-.299-.788.5.5 0 0 0-.56.293l-.044-.011q.005-.031.006-.064a.5.5 0 0 0-1 0q.002.033.006.064l-.044.011a.5.5 0 1 0-.859.495 2 2 0 1 0 3.333 1.924q.031.005.064.006a.5.5 0 1 0 0-1" clip-rule="evenodd"></path><path fill="#3ECC5F" fill-rule="evenodd" d="M10.3 14.3h4v-2h-4z" clip-rule="evenodd"></path><path fill="#44D860" fill-rule="evenodd" d="M15.3 13.55a.25.25 0 1 0 0-.5l-.032.003-.006-.022a.25.25 0 0 0-.096-.481.25.25 0 0 0-.15.052l-.018-.017a.25.25 0 0 0-.005-.308.25.25 0 0 0-.424.06 1 1 0 1 0 0 1.925.25.25 0 0 0 .48-.098.25.25 0 0 0-.05-.149l.016-.017a.25.25 0 0 0 .31-.005.25.25 0 0 0-.063-.424l.006-.022z" clip-rule="evenodd"></path><path fill="#000" fill-rule="evenodd" d="M16.3 6.175a.3.3 0 0 1-.096-.019.3.3 0 0 1-.081-.054.3.3 0 0 1-.054-.081.26.26 0 0 1 0-.192.26.26 0 0 1 .092-.112.3.3 0 0 1 .09-.037.26.26 0 0 1 .188.037l.038.031a.26.26 0 0 1 .073.177.25.25 0 0 1-.154.231.3.3 0 0 1-.096.02Zm2-.125a.26.26 0 0 1-.208-.11.26.26 0 0 1-.042-.139.26.26 0 0 1 .11-.209.3.3 0 0 1 .091-.037.26.26 0 0 1 .188.037l.038.031a.26.26 0 0 1 .054.273l-.023.043-.031.038a.26.26 0 0 1-.177.073" clip-rule="evenodd"></path>',29)]))}const j4={render:L4},B4=Object.freeze(Object.defineProperty({__proto__:null,default:j4,render:L4},Symbol.toStringTag,{value:"Module"})),U4={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function F4(e,t){return Pl(),Ml("svg",U4,t[0]||(t[0]=[Ul("path",{fill:"#512BD4",d:"M22 2H2v20h20z"},null,-1),Ul("path",{fill:"#fff",d:"M5.565 14.778a.5.5 0 0 1-.361-.142.47.47 0 0 1-.148-.344.47.47 0 0 1 .148-.348.5.5 0 0 1 .36-.145q.216 0 .365.145a.46.46 0 0 1 .152.348.46.46 0 0 1-.152.344.5.5 0 0 1-.364.142m5.653-.08h-.92l-2.421-3.82a1.7 1.7 0 0 1-.152-.301h-.021q.028.166.028.714v3.407h-.813V9.5h.98l2.34 3.73q.148.232.19.319h.015a5 5 0 0 1-.036-.7V9.5h.81zm3.96 0h-2.846V9.5h2.732v.732h-1.89v1.472h1.742v.728h-1.743v1.537h2.005zm4.044-4.466h-1.456v4.466h-.842v-4.466h-1.453V9.5h3.751z"},null,-1)]))}const Q4={render:F4},z4=Object.freeze(Object.defineProperty({__proto__:null,default:Q4,render:F4},Symbol.toStringTag,{value:"Module"})),q4={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function H4(e,t){return Pl(),Ml("svg",q4,t[0]||(t[0]=[Hl('<path fill="#333" fill-rule="evenodd" d="M18.578 20.398A9.98 9.98 0 0 0 22 12.866c0-5.523-4.477-10-10-10s-10 4.477-10 10a9.97 9.97 0 0 0 3.24 7.369l.01-.064 13.123-4.297z" clip-rule="evenodd"></path><path fill="#CCC" d="m9.419 4.067-1.774-.264.265-.081q.242-.076.444-.228l.042-.032a1.22 1.22 0 0 0 .466-.778l.02-.124q.032-.202-.003-.403a.073.073 0 0 1 .1-.08l.072.03q.136.056.263.132l.302.182c.4.242.752.558 1.036.931l.2.264a1.33 1.33 0 0 0 .618.45l.14.05-.732.03a8 8 0 0 1-1.46-.08Z"></path><path fill="#CCC" d="m8.966 5.64.526-.962a.03.03 0 0 0 0-.03l-.179-.378a.68.68 0 0 0-.614-.388l-.05-.002a4.7 4.7 0 0 1-1.017-.148l-.065-.017a4 4 0 0 1-.79-.297l-.111-.055a3 3 0 0 1-.474-.3l-.147-.115a.1.1 0 0 0-.14.02 1 1 0 0 0-.185.47l-.027.235a2 2 0 0 0-.004.379l.065.734c.049.547.237 1.071.548 1.524l.066.097q.144.209.331.38a.1.1 0 0 0 .064.027A2.28 2.28 0 0 0 8.966 5.64"></path><path fill="#EDEDED" d="m6.976 6.832.625-.27a.45.45 0 1 0-.458-.769l-.148.117a1 1 0 0 0-.097.094l-.356.428a.15.15 0 0 0 .009.203l.11.126a.275.275 0 0 0 .315.071"></path><path fill="#B2B2B2" d="m7.78 3.758-.018.006.057.018c.247.08.504.125.763.138a.1.1 0 0 0 .038-.005l.118-.034.059-.02-.374-.08a.3.3 0 0 1-.134-.066.063.063 0 0 1 0-.096l.056-.046a.6.6 0 0 0 .157-.2c-.216.171-.46.301-.721.385Z"></path><path fill="#fff" d="M9.92 10.578 4.825 19.69a.078.078 0 0 1-.124.017l-.102-.103-.43-.488-.274-.354a8 8 0 0 1-.693-1.067l-.04-.072a8 8 0 0 1-.536-1.24l-.137-.412a5.55 5.55 0 0 1-.139-2.295l.005-.032a5.7 5.7 0 0 1 .24-.988l.226-.669.17-.356a5 5 0 0 1 1.067-1.473l.215-.204a3.8 3.8 0 0 1 1.576-.897 3 3 0 0 1-.422.084l-.281.033-.215.02-.235.04-.234.021-.156.017-.113.007c-.036.002-.053-.044-.024-.065l.157-.076a2.65 2.65 0 0 0 1.19-1.135l.174-.271a2.6 2.6 0 0 1 .808-.802l.067-.043q.182-.115.385-.187l.615-.217a.43.43 0 0 0 .253-.236l.009-.022a.34.34 0 0 0-.083-.38l-.108-.099-.018-.02-.696-.926-.555-.764a.97.97 0 0 1-.184-.517.04.04 0 0 1 .056-.038l.6.288a2.38 2.38 0 0 0 1.666.148q.195-.053.394-.075l.276-.028a5.7 5.7 0 0 1 2.064.17l.058.016.656.236a3 3 0 0 1 1.785 1.756l.138.536a2.17 2.17 0 0 0 .863 1.246l.35.244q.232.162.483.287l.775.388a.062.062 0 0 1 .022.093 2.1 2.1 0 0 1-.82.644l-.449.195a4 4 0 0 1-.55.193l-.33.088a5.5 5.5 0 0 1-1.417.188h-.79a1.3 1.3 0 0 1-.477-.091 1.3 1.3 0 0 0-1.615.576Z"></path><path fill="#666" d="m12.593 7.292.344.004c.047 0 .057-.065.013-.079a1.4 1.4 0 0 1-.212-.087l-.269-.139a2.8 2.8 0 0 1-.51-.338l-.053-.044q-.18-.15-.323-.334l-.06-.078a.034.034 0 0 0-.062.023c.04.598.533 1.065 1.132 1.072"></path><path fill="#CCC" d="m5.212 19.834 5.824-5.195a7.8 7.8 0 0 0 1.417-1.677l.035-.057a2.3 2.3 0 0 0 .237-1.239l-.052-.587a1.66 1.66 0 0 0-.424-.97.1.1 0 0 0-.036-.02l-.936-.192a4.2 4.2 0 0 0-2.092-.086l-.037.008-.544.127a6.74 6.74 0 0 0-3.94 2.63l-.023.034a6.4 6.4 0 0 0-.665 1.168l-.032.074a6.07 6.07 0 0 0-.441 3.31l.054.367a3.7 3.7 0 0 0 .932 1.96l.297.324a.304.304 0 0 0 .426.021"></path><path fill="#5E5E5E" d="m10.31 12.9-.018.01c-.492.281-.756.811-.73 1.377.007.16.168.308.323.264l.285-.081a2.6 2.6 0 0 0 1.001-.539l.829-.713.246-.182a6.6 6.6 0 0 1 4.979-1.209c.054.009.056.086.002.097l-.207.043-.095.033a1 1 0 0 0-.48.359.04.04 0 0 0 .044.062l.068-.021a3.2 3.2 0 0 1 1.184-.132l.157.012a2.86 2.86 0 0 1 2.159 1.137l.192.256c.57.758.812 1.714.67 2.652l-.074.49a4.7 4.7 0 0 1-.713 1.87l-.027.04-.41.547-.449.508-.411.395q-.566.542-1.227.962l-.14.088-.266.127c-.069.033-.126-.061-.065-.107l.37-.352.077-.08c.206-.216.355-.482.431-.77l.035-.134a.715.715 0 0 0-.549-.886.7.7 0 0 0-.583.146l-.367.299-.649.53a8 8 0 0 1-1.376.902l-.67.345-1.133.43-.238.064a8 8 0 0 1-1.263.235l-.316.032H9.891l-1.348-.146-.73-.158a4.55 4.55 0 0 1-1.91-.917l-.563-.458a3.02 3.02 0 0 1-1.177-2.168l-.034-.45.04-.631a4.6 4.6 0 0 1 1.956-3.483l.12-.084a5.2 5.2 0 0 1 1.646-.763l.396-.105a3.4 3.4 0 0 1 1.577-.042l.413.086c.104.022.126.16.034.212Z"></path>',9)]))}const V4={render:H4},Z4=Object.freeze(Object.defineProperty({__proto__:null,default:V4,render:H4},Symbol.toStringTag,{value:"Module"})),W4={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function X4(e,t){return Pl(),Ml("svg",W4,t[0]||(t[0]=[Ul("path",{fill:"currentColor",d:"m16.378 12.034-4.148-5.53h.507c.369 0 .738.185.968.461l3.272 4.286 3.226-4.24c.322-.322.691-.507 1.06-.507h.553l-4.194 5.53L22 17.841h-.553c-.369 0-.737-.185-.968-.507l-3.456-4.516-3.456 4.516c-.23.322-.6.46-.968.46h-.553zm-13.456.461v.369c0 1.935 1.29 3.686 3.18 4.147a4.15 4.15 0 0 0 4.654-2.258c.138-.23.368-.415.645-.415h.46a5.07 5.07 0 0 1-4.792 3.687C4.212 18.025 2 15.583 2 12.541v-1.29c0-2.489 1.751-4.747 4.24-5.207a5.07 5.07 0 0 1 5.898 5.069v1.382zm0-.921h8.295v-.461a4.148 4.148 0 0 0-5.07-4.056c-1.935.461-3.225 2.212-3.225 4.378z"},null,-1)]))}const G4={render:X4},Y4=Object.freeze(Object.defineProperty({__proto__:null,default:G4,render:X4},Symbol.toStringTag,{value:"Module"})),K4={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function J4(e,t){return Pl(),Ml("svg",K4,t[0]||(t[0]=[Ul("path",{fill:"currentColor",d:"M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20m-.7 4.5h6.3L11.3 11h4.3l-9.2 6.4 2-4.4 1-2 2-4.5z"},null,-1)]))}const e3={render:J4},t3=Object.freeze(Object.defineProperty({__proto__:null,default:e3,render:J4},Symbol.toStringTag,{value:"Module"})),r3={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function n3(e,t){return Pl(),Ml("svg",r3,t[0]||(t[0]=[Ul("path",{fill:"currentColor",d:"M23.241 7.492 24 5.536l-.031-.125-7.479 1.971c.798-1.158.524-2.08.524-2.08s-2.386 1.525-4.193 1.486c-1.807-.04-2.386-.525-5.155.36-2.769.883-3.551 3.59-4.357 4.177-.798.579-3.309 2.51-3.309 2.51l2.269-.727s-.642.61-1.964 2.386v.008c.211.297 1.142 1.525 2.065 1.26.102-.032.22-.087.352-.15.415.236.97.462 1.573.525 0 0-.407-.47-.751-1.017l.281-.18-.047.031.869.313-.094-.813h.008l.844.313-.101-.744.32-.156.884-3.348 3.661-2.503-.289.735c-.743 1.823-2.136 2.253-2.136 2.253l-.578.227c-.438.508-.618.634-.767 2.354.352-.093.68-.11.986-.03 1.564.422 2.104 2.307 1.681 2.831-.101.125-.352.352-.672.61H7.76l-.008.516-.062.055h-.65l-.007.5-.173.126c-.602.016-1.376-.516-1.376-.516.008.485.406 1.228.406 1.228l.07-.04-.062.048s1.627 1.08 2.652.68c.908-.36 3.262-2.214 5.296-3.09l6.149-1.627.813-2.096-4.685 1.236V13.14l5.499-1.448.814-2.104-6.313 1.666V9.37zm-11.163 3.997 1.463-.383.016.07-.454 1.181-1.51.4zm.5 2.527-1.509.399.493-1.268 1.455-.383.023.07zm1.972-.423-1.51.4.493-1.268 1.455-.383.024.07z"},null,-1)]))}const a3={render:n3},o3=Object.freeze(Object.defineProperty({__proto__:null,default:a3,render:n3},Symbol.toStringTag,{value:"Module"})),i3={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function s3(e,t){return Pl(),Ml("svg",i3,t[0]||(t[0]=[Ul("path",{fill:"currentColor",d:"M1.81 10.714c-.046 0-.058-.023-.034-.058l.245-.316c.023-.035.082-.058.128-.058h4.17c.047 0 .059.035.035.07l-.198.304c-.024.035-.082.07-.117.07zM.048 11.789c-.047 0-.059-.024-.035-.059l.245-.315c.023-.035.082-.059.128-.059h5.327c.047 0 .07.036.058.07l-.093.28c-.012.048-.058.07-.105.07zm2.826 1.074c-.046 0-.058-.035-.035-.07l.164-.292c.023-.035.07-.07.117-.07h2.336c.047 0 .07.035.07.082l-.023.28c0 .047-.047.082-.082.082l-2.546-.012Zm12.125-2.36-1.962.515c-.175.046-.187.058-.339-.117a1.6 1.6 0 0 0-.549-.444 2.03 2.03 0 0 0-2.114.175 2.49 2.49 0 0 0-1.192 2.22c.012.934.655 1.705 1.577 1.833.795.106 1.46-.175 1.986-.77l.316-.433h-2.255c-.245 0-.304-.151-.222-.35.152-.362.432-.97.596-1.273a.32.32 0 0 1 .292-.187h4.252c-.024.315-.024.63-.07.946a5 5 0 0 1-.958 2.29 4.87 4.87 0 0 1-3.33 1.985 4.14 4.14 0 0 1-3.141-.77A3.67 3.67 0 0 1 6.4 13.528a4.58 4.58 0 0 1 .993-3.422 5.2 5.2 0 0 1 3.27-2.021c1.099-.199 2.15-.07 3.096.572.62.409 1.063.97 1.355 1.647.07.105.024.164-.117.199Z"},null,-1),Ul("path",{fill:"currentColor",d:"M18.865 16.963a4.38 4.38 0 0 1-2.85-1.028 3.67 3.67 0 0 1-1.262-2.254 4.46 4.46 0 0 1 .946-3.528 4.9 4.9 0 0 1 3.27-1.95 4.32 4.32 0 0 1 3.33.595 3.63 3.63 0 0 1 1.647 2.605 4.51 4.51 0 0 1-1.343 3.96 5.35 5.35 0 0 1-2.804 1.495c-.315.058-.63.07-.934.105m2.78-4.719c-.012-.152-.012-.268-.035-.385a1.93 1.93 0 0 0-2.383-1.554c-1.087.245-1.787.935-2.044 2.033-.21.91.233 1.834 1.074 2.207.643.28 1.285.246 1.904-.07a2.56 2.56 0 0 0 1.484-2.23Z"},null,-1)]))}const l3={render:s3},c3=Object.freeze(Object.defineProperty({__proto__:null,default:l3,render:s3},Symbol.toStringTag,{value:"Module"})),u3={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function d3(e,t){return Pl(),Ml("svg",u3,t[0]||(t[0]=[Ul("path",{fill:"#FF5B11",d:"M12.371 1.736q.08-.01.141.04a76 76 0 0 1 4.217 5.662 28 28 0 0 1 2.49 4.659q1.64 4.374-1.707 7.61-2.928 2.475-6.747 1.928-4.564-.93-6.205-5.281a7.4 7.4 0 0 1-.28-2.891 17.3 17.3 0 0 1 1.204-4.9 7.3 7.3 0 0 1 1.044-1.767q.525.625 1.004 1.285.222.232.462.442a38 38 0 0 1 4.377-6.787",opacity:".993"},null,-1),Ul("path",{fill:"#FF9758",d:"M12.09 5.962a42.5 42.5 0 0 1 3.996 5.462q.56.959.924 2.008.758 2.982-1.627 4.92-2.306 1.622-5.06.963-2.97-.921-3.433-3.996a4.25 4.25 0 0 1 .2-1.887c.297-.754.66-1.48 1.085-2.168L9.38 9.495q1.367-1.758 2.71-3.534Z"},null,-1)]))}const p3={render:d3},h3=Object.freeze(Object.defineProperty({__proto__:null,default:p3,render:d3},Symbol.toStringTag,{value:"Module"})),f3={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function m3(e,t){return Pl(),Ml("svg",f3,t[0]||(t[0]=[Ul("path",{fill:"#FF2D20",d:"M21.217 6.8a.3.3 0 0 1 .012.076v4.078a.3.3 0 0 1-.15.26l-3.424 1.969v3.907a.3.3 0 0 1-.147.259l-7.15 4.111q-.023.014-.05.024l-.021.007a.3.3 0 0 1-.152 0l-.024-.01c-.017-.007-.033-.011-.048-.02l-7.142-4.112a.3.3 0 0 1-.15-.26V4.857q0-.043.012-.079c0-.01.007-.016.01-.023a.2.2 0 0 1 .019-.048l.021-.026.024-.036.03-.024.034-.023L6.492 2.54a.29.29 0 0 1 .298 0l3.573 2.053.033.024.029.024.026.036.022.023.019.048c0 .01.007.017.01.024a.4.4 0 0 1 .009.08v7.643l2.978-1.713v-3.91c0-.023.003-.052.01-.076l.01-.026.018-.047.022-.024.026-.036.029-.024.033-.023L17.21 4.56a.3.3 0 0 1 .298 0l3.57 2.058.034.024c.01.01.022.014.029.024q.017.015.026.035l.021.024c.01.017.015.03.02.048l.009.023zm-.58 3.98V7.392l-1.252.719-1.727.994v3.393l2.978-1.713zm-3.576 6.138v-3.395l-1.7.971-4.85 2.77v3.425l6.55-3.77ZM3.366 5.37v11.548l6.55 3.769V17.26l-3.421-1.934h-.003l-.03-.024c-.01-.01-.022-.014-.03-.024-.011-.01-.018-.024-.025-.03l-.024-.032-.014-.038q-.009-.015-.015-.033l-.007-.043-.002-.033V7.08l-1.728-.994-1.253-.716zm3.276-2.23L3.666 4.857 6.64 6.569l2.976-1.713-2.974-1.713zM8.19 13.833l1.727-.992V5.37l-1.247.718-1.727.995v7.47l1.249-.72zm9.169-8.667-2.974 1.713 2.974 1.713 2.974-1.713zm-.297 3.943-1.728-.995-1.249-.718v3.385l1.727.995 1.25.72v-3.39zm-6.845 7.639 4.365-2.491 2.182-1.244L13.79 11.3l-3.426 1.972-3.117 1.796z"},null,-1)]))}const g3={render:m3},v3=Object.freeze(Object.defineProperty({__proto__:null,default:g3,render:m3},Symbol.toStringTag,{value:"Module"})),b3={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function y3(e,t){return Pl(),Ml("svg",b3,t[0]||(t[0]=[Hl('<g fill="#EDB641" clip-path="url(#a)"><path d="m5.33 10.983.419 1.29H7.11l-1.1.796.42 1.29-1.101-.797-1.09.791.419-1.29-1.1-.796H4.92l.42-1.289-.011.005Zm1.954-4.245.362 1.111h1.169l-.944.687.362 1.111-.949-.681-.943.681.351-1.111-.943-.687h1.169l.361-1.11h.005ZM1.31 13.504l.21.65h.68l-.55.409.21.65-.55-.404-.556.404.21-.65-.551-.404h.681l.21-.65.005-.005Z"></path><path d="M9.197 15.684a19 19 0 0 0 2.505-1.378 22.6 22.6 0 0 0 3.092-2.6l-.613-.408-.534-.362 1.692-.063.545-.02.147-.525.461-1.635.587 1.588.189.514.545-.027 1.693-.062-1.332 1.048-.43.335.19.514.586 1.588-1.41-.944-.45-.298-.43.335-1.331 1.048.23-.812.231-.818.026-.105a21 21 0 0 1-5.24 2.815c-.315.104-.63.188-.944.267zm-3.186 1.242a16.1 16.1 0 0 0 8.081-2.494l-.535 1.923 3.145-2.479 3.328 2.222-1.384-3.752 3.144-2.474-4.003.158-1.384-3.758-1.09 3.852-3.999.157 2.317 1.546c-1.52 1.384-5.346 4.34-10.413 4.538A14 14 0 0 1 0 16.11s2.52.953 6.016.817h-.005Z"></path><path d="M16.408 4.412a7.588 7.588 0 0 0-7.242 9.862q.495-.25.943-.508a6.53 6.53 0 0 1 6.3-8.306 6.54 6.54 0 1 1-4.916 10.848c-.351.136-.703.262-1.059.367a7.588 7.588 0 1 0 5.974-12.263"></path></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h24v24H0z"></path></clipPath></defs>',2)]))}const O3={render:y3},w3=Object.freeze(Object.defineProperty({__proto__:null,default:O3,render:y3},Symbol.toStringTag,{value:"Module"})),x3={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function k3(e,t){return Pl(),Ml("svg",x3,t[0]||(t[0]=[Ul("path",{fill:"#E0234E","fill-rule":"evenodd",d:"M13.776 2.04c-.144 0-.279.03-.403.071.264.176.409.409.48.672.006.036.016.062.021.098q.009.046.01.093c.021.455-.118.511-.216.78-.15.346-.109.718.072 1.017a.6.6 0 0 0 .062.114c-.196-1.307.894-1.503 1.095-1.91.016-.357-.279-.595-.511-.76a1.14 1.14 0 0 0-.61-.176Zm1.643.294c-.021.118-.005.087-.01.15-.006.04-.006.092-.01.134q-.016.063-.037.124a1 1 0 0 1-.042.124c-.02.041-.035.077-.056.118-.016.021-.026.042-.042.062l-.03.047a2 2 0 0 1-.078.103c-.03.031-.057.067-.093.093v.005c-.031.026-.062.057-.098.083-.108.082-.233.145-.346.222-.036.026-.073.046-.103.078a1 1 0 0 0-.099.082c-.036.031-.062.062-.093.098-.025.031-.056.067-.077.104q-.039.052-.072.108c-.021.041-.036.077-.057.119-.016.041-.031.077-.042.119a2 2 0 0 0-.036.129c-.005.02-.005.046-.01.067-.005.02-.005.041-.01.062 0 .041-.005.088-.005.129q-.001.046.005.093 0 .06.015.13.01.06.026.123l.041.124c.01.026.026.052.037.072l-1.188-.46a13 13 0 0 0-.6-.154l-.325-.078a10 10 0 0 0-.94-.14c-.01 0-.016-.004-.026-.004a9 9 0 0 0-1.601-.021c-.315.02-.63.062-.945.114q-.116.017-.233.04-.232.048-.465.104l-.232.062c-.077.031-.15.067-.222.098l-.17.078c-.01.005-.021.005-.026.01-.052.026-.098.047-.145.073a2 2 0 0 0-.196.098c-.036.015-.072.036-.104.051a3 3 0 0 0-.305.18c-.035.027-.071.048-.103.073-.005.005-.01.005-.015.01a1 1 0 0 0-.098.073l-.01.01-.078.062c-.01.005-.02.016-.03.02l-.078.068c-.006.01-.016.016-.021.02-.031.032-.062.058-.093.088-.005 0-.005.006-.01.011a2 2 0 0 0-.094.088c-.005.005-.005.01-.01.01a1 1 0 0 0-.077.083c-.01.01-.026.02-.036.03q-.04.047-.088.094c-.005.01-.016.015-.02.025-.042.042-.078.083-.12.124l-.015.016q-.123.134-.264.253-.14.125-.289.227a3.2 3.2 0 0 1-.635.351 4 4 0 0 1-.336.124c-.217.047-.439.135-.63.15-.041 0-.088.01-.129.016l-.129.03-.124.047a1 1 0 0 0-.124.057c-.036.026-.077.046-.114.072a1 1 0 0 0-.103.088 1 1 0 0 0-.103.093c-.031.036-.062.067-.088.103-.026.042-.057.078-.078.12a1 1 0 0 0-.072.118q-.032.067-.057.134l-.046.134a1 1 0 0 0-.026.124c0 .006-.005.011-.005.016-.01.047-.01.108-.016.14q-.009.05-.01.103a.5.5 0 0 0 .026.165q.014.046.036.093v.005a1 1 0 0 0 .057.093 1 1 0 0 0 .067.093q.042.044.088.083.045.045.098.082c.124.109.155.145.315.228q.038.02.083.041c.005 0 .01.005.015.005q-.001.013.005.026.01.062.026.124a1 1 0 0 0 .041.124c.016.03.026.062.042.093q.007.016.015.026l.062.113.078.109q.042.051.088.098.045.043.098.088s.005.005.01.005a1 1 0 0 0 .207.14 1 1 0 0 0 .118.056.6.6 0 0 0 .104.036c.005.005.01.005.02.01.021.006.047.011.068.016-.016.279-.021.543.02.635.047.104.274-.211.501-.573-.03.357-.051.775 0 .899.057.129.367-.274.636-.718 3.662-.847 7.003 1.684 7.354 5.258-.067-.558-.754-.868-1.069-.79-.155.382-.418.873-.841 1.177.037-.345.02-.693-.052-1.033a3.3 3.3 0 0 1-.64 1.302c-.491.036-.982-.202-1.24-.558-.02-.015-.026-.046-.042-.067a1 1 0 0 1-.04-.108.4.4 0 0 1-.032-.109q-.006-.052-.005-.114v-.077a1 1 0 0 1 .026-.109 1 1 0 0 1 .036-.108c.02-.036.036-.072.062-.108.088-.248.088-.45-.072-.569a.6.6 0 0 0-.099-.051c-.02-.006-.046-.016-.067-.021l-.041-.015a1 1 0 0 0-.109-.026.4.4 0 0 0-.108-.016 1 1 0 0 0-.114-.01c-.025 0-.051.005-.077.005a.4.4 0 0 0-.114.015q-.054.007-.108.021a1 1 0 0 0-.109.036l-.103.047c-.03.015-.062.036-.098.052-1.203.784-.486 2.623.336 3.155-.31.057-.625.124-.713.191l-.01.01q.334.202.697.347.415.134.837.248v.005a5 5 0 0 0 1.301.093c2.288-.16 4.163-1.9 4.504-4.194l.031.134c.015.093.036.191.046.29v.005q.014.07.021.134v.02q.009.072.01.135.01.085.01.17v.083c0 .026.006.057.006.083 0 .03-.005.062-.005.093v.072c0 .036-.005.067-.005.103q.001.029-.006.067c0 .036-.005.073-.005.114q-.006.022-.005.046l-.015.12q.001.022-.005.046c-.006.051-.016.098-.021.15v.01c-.01.046-.02.098-.031.144v.016l-.031.14c0 .005-.005.015-.005.02a1 1 0 0 1-.036.14v.015q-.025.076-.042.145-.006.009-.005.01l-.046.155c-.021.052-.037.098-.057.15s-.036.103-.057.15l-.062.15h-.005c-.021.046-.041.097-.067.144l-.016.036c-.005.005-.005.01-.01.015a4.9 4.9 0 0 1-1.451 1.736q-.063.04-.125.088c-.01.01-.026.015-.036.026q-.053.038-.113.077l.015.031h.005l.217-.03h.005q.202-.033.403-.073a1 1 0 0 0 .114-.026l.072-.015c.036-.006.072-.016.109-.021.03-.01.062-.016.093-.026a10 10 0 0 0 1.497-.496 8.3 8.3 0 0 1-3.207 2.619 8.5 8.5 0 0 0 1.761-.305 8.25 8.25 0 0 0 4.881-3.9 8.2 8.2 0 0 1-1.39 3.321c.501-.33.964-.714 1.38-1.146a8.2 8.2 0 0 0 2.174-4.39c.177.817.227 1.657.15 2.49 3.73-5.202.31-10.594-1.12-12.015-.006-.01-.01-.015-.01-.026-.006.006-.006.006-.006.011 0-.005 0-.005-.005-.01q-.002.092-.01.186a7 7 0 0 1-.052.345 8 8 0 0 1-.088.341 4 4 0 0 1-.124.33q-.072.162-.155.316a4 4 0 0 1-.398.573c-.077.093-.16.176-.242.259a3 3 0 0 1-.15.129l-.12.103c-.092.072-.185.14-.288.201a4 4 0 0 1-.305.176 9 9 0 0 1-.325.145 3.6 3.6 0 0 1-.682.186c-.12.02-.238.03-.351.04a4 4 0 0 1-.248.011c-.12 0-.238-.01-.351-.02a3 3 0 0 1-.352-.052 3 3 0 0 1-.346-.088h-.005c.114-.01.227-.02.341-.041a3.7 3.7 0 0 0 1.317-.501q.148-.099.29-.207.138-.108.263-.232c.087-.078.165-.165.242-.253q.117-.14.217-.28c.01-.015.02-.035.031-.05q.08-.125.15-.249a3.6 3.6 0 0 0 .367-.981c.02-.119.041-.233.052-.346.01-.119.02-.238.02-.351q-.001-.125-.01-.248-.017-.178-.041-.346a4 4 0 0 0-.078-.346c-.036-.109-.072-.222-.114-.331a3.5 3.5 0 0 0-.527-.91 11 11 0 0 0-.237-.262 3 3 0 0 0-.134-.13 9 9 0 0 0-.718-.506 1 1 0 0 0-.104-.051 2 2 0 0 0-.49-.217","clip-rule":"evenodd"},null,-1)]))}const S3={render:k3},_3=Object.freeze(Object.defineProperty({__proto__:null,default:S3,render:k3},Symbol.toStringTag,{value:"Module"})),E3={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function T3(e,t){return Pl(),Ml("svg",E3,t[0]||(t[0]=[Ul("path",{fill:"currentColor",d:"M11.345 2.005c-.043.004-.18.018-.303.028-2.84.256-5.501 1.788-7.187 4.144a9.9 9.9 0 0 0-1.765 4.369c-.08.549-.09.711-.09 1.456s.01.907.09 1.456c.543 3.755 3.216 6.91 6.84 8.08.65.208 1.334.351 2.112.437.303.033 1.613.033 1.916 0 1.343-.149 2.48-.48 3.603-1.053.172-.088.205-.112.182-.131a191 191 0 0 1-1.629-2.184l-1.599-2.16-2.004-2.965a284 284 0 0 0-2.017-2.964 161 161 0 0 0-.02 2.925c-.006 2.816-.008 2.93-.043 2.996a.36.36 0 0 1-.172.178c-.063.031-.117.037-.412.037h-.339l-.09-.056a.4.4 0 0 1-.13-.143l-.042-.088.004-3.92.006-3.92.06-.077a.5.5 0 0 1 .145-.12c.08-.038.112-.042.45-.042.399 0 .465.016.569.129.03.031 1.114 1.665 2.412 3.634l3.946 5.975 1.583 2.399.08-.053a10.3 10.3 0 0 0 2.055-1.802 9.95 9.95 0 0 0 2.354-5.112c.08-.549.09-.711.09-1.456s-.01-.907-.09-1.456c-.543-3.755-3.216-6.91-6.84-8.08a10.5 10.5 0 0 0-2.083-.435c-.187-.02-1.48-.041-1.642-.026m4.094 6.048c.094.047.17.137.197.231.016.05.02 1.138.016 3.587l-.006 3.515-.62-.95-.621-.95V10.93c0-1.652.008-2.58.02-2.625a.4.4 0 0 1 .193-.247c.08-.04.11-.045.416-.045.29 0 .34.004.405.04"},null,-1)]))}const A3={render:T3},C3=Object.freeze(Object.defineProperty({__proto__:null,default:A3,render:T3},Symbol.toStringTag,{value:"Module"})),P3={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function D3(e,t){return Pl(),Ml("svg",P3,t[0]||(t[0]=[Hl('<path fill="url(#a)" fill-rule="evenodd" d="M19.608 5.51C16.023 1.308 9.712.808 5.51 4.392 1.308 7.977.808 14.288 4.392 18.49c3.585 4.202 9.896 4.702 14.098 1.118 4.202-3.585 4.702-9.896 1.118-14.098m-4.982 5.249c.385 0 .631.417.438.75l-.056.096-3.774 6.21a.39.39 0 0 1-.33.185h-.36a.378.378 0 0 1-.366-.472l1.024-3.959a.5.5 0 0 0-.484-.625H9.145a.5.5 0 0 1-.484-.625l1.545-5.978a.46.46 0 0 1 .448-.34l.067.001h1.584a.5.5 0 0 1 .496.568l-.01.071-.604 3.533a.5.5 0 0 0 .493.585z" clip-rule="evenodd"></path><defs><radialGradient id="a" cx="0" cy="0" r="1" gradientTransform="matrix(19.5 0 0 198.851 4 12)" gradientUnits="userSpaceOnUse"><stop stop-color="#31B2F3"></stop><stop offset=".474" stop-color="#F27CEC"></stop><stop offset="1" stop-color="#FD6641"></stop></radialGradient></defs>',2)]))}const $3={render:D3},R3=Object.freeze(Object.defineProperty({__proto__:null,default:$3,render:D3},Symbol.toStringTag,{value:"Module"})),M3={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function N3(e,t){return Pl(),Ml("svg",M3,t[0]||(t[0]=[Ul("path",{fill:"#00DC82",d:"M13.32 19.333h8.14c.26 0 .508-.09.733-.22.226-.129.457-.29.587-.513s.22-.476.22-.733c0-.258-.09-.51-.22-.734l-5.5-9.46a1.34 1.34 0 0 0-.513-.513 1.8 1.8 0 0 0-.807-.22c-.26 0-.508.09-.733.22-.216.12-.393.298-.514.513l-1.393 2.42L10.533 5.4c-.13-.223-.288-.458-.513-.587s-.474-.146-.733-.146c-.26 0-.509.018-.734.146-.24.146-.441.347-.586.587l-6.82 11.733c-.13.223-.147.476-.147.734 0 .257.017.51.147.733s.361.384.586.513c.225.13.474.22.734.22H7.6c2.034 0 3.515-.912 4.547-2.64l2.493-4.326 1.32-2.274 4.033 6.894H14.64zm-5.793-2.346H3.933l5.354-9.24L12 12.367l-1.797 3.132c-.687 1.122-1.468 1.488-2.676 1.488"},null,-1)]))}const I3={render:N3},L3=Object.freeze(Object.defineProperty({__proto__:null,default:I3,render:N3},Symbol.toStringTag,{value:"Module"})),j3={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function B3(e,t){return Pl(),Ml("svg",j3,t[0]||(t[0]=[Hl('<path fill="#93D500" d="M7.285 13.5H2.007l.003.077.009.15.004.063.014.171.004.039a8.8 8.8 0 0 0 .387 1.871q0 .005.003.011l.058.173.016.044.08.216.048.124a5 5 0 0 0 .078.189l.052.117.031.07.066.14.022.046.079.16.012.024q.045.088.093.175l.004.008.02.036 4.508-2.715.017-.01a3.6 3.6 0 0 1-.33-1.179"></path><path fill="#4D5A31" d="m8.582 15.923-.013.013-3.717 3.717.057.053.105.094.055.048.127.107.034.029a8 8 0 0 0 .324.254l.006.004q.336.252.695.47l.025.016.137.08.084.048.08.045q.072.04.145.078a8 8 0 0 0 .431.21l.132-.32 1.87-4.54.007-.017a3.6 3.6 0 0 1-.584-.389"></path><path fill="#6BA43A" d="M8.195 15.553a3 3 0 0 1-.212-.262 4 4 0 0 1-.2-.296L3.27 17.713q.104.174.215.338l.007.012.003.005.007.01v.002l.019.026.001.002q.119.174.242.342l.006.007.005.007.11.142.015.019q.057.073.117.145l.028.034.155.181.094.105.053.058.024.026.07.075.028.03.125.127 3.723-3.723a3 3 0 0 1-.122-.13"></path><path fill="#4D5A31" d="m13.13 15.921-.124.096.009.016 2.714 4.506a8 8 0 0 0 1.134-.886l-3.718-3.717z"></path><path fill="#93D500" d="m15.335 20.576-.092-.153-2.534-4.206a4 4 0 0 1-.316.167 3.6 3.6 0 0 1-2.567.2c-.057-.017-.113-.04-.169-.06s-.113-.037-.168-.06L7.62 21.003l-.073.178-.063.152.014.006.016.006.004.002.133.05.167.065.085.032a9 9 0 0 0 1.88.442l.075.008.142.016.036.003.174.014.06.004.153.01.094.003.122.004.217.003a9 9 0 0 0 1.495-.126l.154-.028.088-.017.09-.02.15-.032.028-.007a9 9 0 0 0 2.124-.791l.13-.074.157-.088.107-.06.001-.001.002-.001h.001l.001-.001.002-.001.006-.004.034-.02zm-6.75-10.21.123-.097-.009-.015-2.714-4.506q-.189.123-.372.256a9 9 0 0 0-.762.629L8.57 10.35z"></path><path fill="#4D5A31" d="M4.594 6.88q-.064.065-.124.13l-.123.128a9 9 0 0 0-.753.933l-.032.046-.076.112-.104.16a8.83 8.83 0 0 0-1.375 4.397l-.005.178-.003.179h5.266q.002-.09.008-.179c.006-.089.004-.119.01-.178a3.57 3.57 0 0 1 .794-1.917q.059-.069.12-.133c.04-.044.077-.09.12-.133L4.594 6.881Zm10.864-1.306q-.01-.008-.021-.013l-.14-.083-.082-.047-.082-.046-.143-.077-.023-.012a9 9 0 0 0-.95-.426l-.024-.01a9 9 0 0 0-1.987-.498l-.074-.01-.075-.008-.143-.016-.04-.004-.17-.014-.066-.004-.146-.009-.078-.003v5.278c.27.028.54.086.8.174l3.884-3.884a9 9 0 0 0-.44-.288"></path><path fill="#6BA43A" d="M10.679 4.29q-.09 0-.179.003a9 9 0 0 0-1.113.115l-.024.004-.155.029-.087.016a6 6 0 0 0-.24.052l-.028.006a9 9 0 0 0-2.125.792l-.13.074-.156.087-.115.066h-.002l-.008.005-.03.017v.001l.093.153 2.625 4.359a4 4 0 0 1 .316-.167 3.6 3.6 0 0 1 1.536-.35V4.285q-.09.001-.178.004Z"></path><path fill="#4D5A31" d="M19.704 12.708a10 10 0 0 0-.05-.61l-.002-.014-.001-.007-.027-.201v-.006a9 9 0 0 0-.273-1.245l-.002-.008-.059-.19-.008-.025-.057-.17-.016-.046-.054-.147-.027-.07a5 5 0 0 0-.086-.216l-.04-.094-.052-.12-.03-.068-.066-.142-.021-.043-.08-.162-.012-.022-.093-.177-.003-.006a9 9 0 0 0-.504-.818l-3.886 3.886q.132.392.174.8h5.278q0-.04-.003-.08Z"></path><path fill="#6BA43A" d="M14.45 13.143q-.002.09-.01.179-.001.09-.01.178a3.57 3.57 0 0 1-.793 1.918c-.037.046-.08.088-.12.133-.04.044-.077.09-.12.132l3.723 3.723q.063-.064.124-.13l.123-.128q.415-.448.754-.935l.027-.039.082-.12.07-.108.034-.052a8.83 8.83 0 0 0 1.377-4.573l.003-.178z"></path><path fill="#424143" d="M21.279 2.722a2.467 2.467 0 0 0-3.953 2.84l-5.374 5.373a2.467 2.467 0 1 0 1.114 1.113l5.373-5.373a2.466 2.466 0 0 0 2.84-3.953"></path>',10)]))}const U3={render:B3},F3=Object.freeze(Object.defineProperty({__proto__:null,default:U3,render:B3},Symbol.toStringTag,{value:"Module"})),Q3={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function z3(e,t){return Pl(),Ml("svg",Q3,t[0]||(t[0]=[Ul("path",{stroke:"#21FA90","stroke-linecap":"round","stroke-linejoin":"round",d:"M5.038 13.757v3.814m1.496-4.566 3.04 1.761 4.534-2.627V6.885L9.574 4.258 5.038 6.885v4.56m1.496 1.56v1.668m0-1.668 1.49-.91"},null,-1),Ul("path",{stroke:"#00050B","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":".885",d:"m21.719 10.719 1.839 1.09v1.09l-1.84 1.091M2.834 8.13.774 9.322v5.326l2.016 1.167m3.744 1.07v1.183l3.021 1.674 2.32-1.358-.02-2.471m2.282-1.387v1.3L16.31 17.1l3.175-1.9v-5.186L16.36 8.217"},null,-1)]))}const q3={render:z3},H3=Object.freeze(Object.defineProperty({__proto__:null,default:q3,render:z3},Symbol.toStringTag,{value:"Module"})),V3={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function Z3(e,t){return Pl(),Ml("svg",V3,t[0]||(t[0]=[Ul("path",{fill:"#61DAFB",d:"M12.5 14.014a1.783 1.783 0 1 0 0-3.565 1.783 1.783 0 0 0 0 3.565"},null,-1),Ul("path",{stroke:"#61DAFB","stroke-width":".87",d:"M12.5 15.884c5.283 0 9.565-1.635 9.565-3.652S17.783 8.58 12.5 8.58s-9.565 1.635-9.565 3.652 4.282 3.652 9.565 3.652Z"},null,-1),Ul("path",{stroke:"#61DAFB","stroke-width":".87",d:"M9.337 14.058c2.642 4.575 6.199 7.466 7.946 6.457 1.746-1.008 1.021-5.534-1.62-10.11C13.02 5.832 9.464 2.94 7.717 3.949s-1.021 5.535 1.62 10.11Z"},null,-1),Ul("path",{stroke:"#61DAFB","stroke-width":".87",d:"M9.337 10.406c-2.641 4.575-3.366 9.1-1.62 10.11 1.747 1.008 5.304-1.883 7.946-6.458s3.366-9.101 1.62-10.11c-1.747-1.009-5.305 1.883-7.946 6.458Z"},null,-1)]))}const W3={render:Z3},X3=Object.freeze(Object.defineProperty({__proto__:null,default:W3,render:Z3},Symbol.toStringTag,{value:"Module"})),G3={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function Y3(e,t){return Pl(),Ml("svg",G3,t[0]||(t[0]=[Ul("path",{fill:"currentColor",d:"m21.863 11.755-.839-.52-.024-.244.722-.673a.288.288 0 0 0-.096-.482l-.923-.345-.072-.239.575-.799a.288.288 0 0 0-.187-.455l-.973-.158-.117-.218.409-.897a.286.286 0 0 0-.273-.409l-.987.034-.157-.188.228-.962a.287.287 0 0 0-.348-.348l-.96.227-.19-.157.034-.986a.287.287 0 0 0-.409-.273l-.897.409-.218-.118-.158-.972a.288.288 0 0 0-.454-.189l-.8.575-.238-.071-.345-.923a.288.288 0 0 0-.482-.096L13.01 3l-.245-.023-.52-.84a.29.29 0 0 0-.49 0l-.52.84q-.123.01-.245.023l-.673-.722a.29.29 0 0 0-.482.096l-.345.923q-.12.034-.237.072l-.8-.576a.288.288 0 0 0-.455.188l-.158.973q-.11.057-.22.118l-.895-.41a.287.287 0 0 0-.409.273l.034.988-.19.156-.96-.227a.29.29 0 0 0-.348.348l.227.962-.157.188-.987-.034a.288.288 0 0 0-.273.409l.409.897a7 7 0 0 0-.117.22l-.972.156a.288.288 0 0 0-.189.455l.575.8-.071.237-.923.346a.29.29 0 0 0-.096.482L3 10.99l-.024.244-.84.52a.29.29 0 0 0 0 .492l.84.519q.01.123.025.245l-.723.673a.29.29 0 0 0 .096.482l.922.345q.035.12.073.237l-.576.8a.29.29 0 0 0 .188.454l.973.158q.056.11.117.22l-.41.896a.288.288 0 0 0 .274.409l.987-.035q.076.096.156.19l-.227.961a.287.287 0 0 0 .348.347l.961-.226.19.156-.035.987a.288.288 0 0 0 .41.273l.896-.41q.108.06.219.119l.158.971a.288.288 0 0 0 .455.19l.799-.577q.118.038.237.072l.345.923a.287.287 0 0 0 .482.096L10.99 21q.121.014.244.025l.52.839a.29.29 0 0 0 .492 0l.519-.84q.123-.01.245-.024l.674.722a.287.287 0 0 0 .48-.096l.346-.923q.12-.034.238-.072l.8.576a.29.29 0 0 0 .454-.189l.158-.972.219-.117.896.409a.288.288 0 0 0 .41-.273l-.035-.988a7 7 0 0 0 .19-.155l.96.226a.287.287 0 0 0 .348-.347l-.226-.961.155-.19.988.035a.29.29 0 0 0 .272-.41l-.409-.896q.06-.108.117-.219l.973-.158a.287.287 0 0 0 .188-.454l-.575-.8.072-.237.922-.345a.286.286 0 0 0 .096-.482L21 13.011l.025-.245.839-.52a.29.29 0 0 0 0-.49Zm-5.619 6.965a.595.595 0 0 1 .25-1.163.595.595 0 0 1-.25 1.163m-.286-1.93a.54.54 0 0 0-.642.417l-.299 1.391a7.3 7.3 0 0 1-3.017.65c-1.1 0-2.144-.243-3.08-.679l-.299-1.39a.54.54 0 0 0-.643-.417l-1.228.263a7 7 0 0 1-.635-.748h5.976c.068 0 .113-.012.113-.074V14.09c0-.062-.046-.074-.113-.074h-1.747v-1.34h1.89c.172 0 .922.049 1.162 1.007.075.295.24 1.254.352 1.561.113.344.57 1.032 1.059 1.032h2.977a1 1 0 0 0 .108-.01q-.31.421-.677.794l-1.256-.27Zm-8.265 1.9a.594.594 0 1 1-.014-1.17.594.594 0 0 1 .014 1.171ZM5.427 9.5a.594.594 0 1 1-1.086.481.594.594 0 0 1 1.086-.481m-.697 1.65 1.28-.569a.543.543 0 0 0 .274-.715l-.263-.597h1.036v4.672h-2.09a7.3 7.3 0 0 1-.237-2.792Zm5.614-.454V9.32h2.468c.128 0 .9.148.9.725 0 .48-.592.652-1.08.652zm8.969 1.24q0 .273-.02.542h-.75c-.076 0-.106.05-.106.123v.345c0 .81-.457.987-.858 1.032-.381.043-.805-.16-.857-.394-.225-1.265-.6-1.536-1.192-2.003.735-.467 1.5-1.155 1.5-2.077 0-.996-.683-1.623-1.148-1.93-.652-.43-1.375-.517-1.57-.517h-7.76a7.3 7.3 0 0 1 4.091-2.308l.915.959a.54.54 0 0 0 .765.018l1.024-.98a7.32 7.32 0 0 1 5.006 3.566l-.7 1.583a.543.543 0 0 0 .275.715l1.35.6q.034.357.035.726m-7.754-8.004a.595.595 0 1 1 .82.86.595.595 0 0 1-.82-.86m6.951 5.595a.594.594 0 1 1 1.086.481.594.594 0 0 1-1.086-.481"},null,-1)]))}const K3={render:Y3},J3=Object.freeze(Object.defineProperty({__proto__:null,default:K3,render:Y3},Symbol.toStringTag,{value:"Module"})),e5={xmlns:"http://www.w3.org/2000/svg",fill:"green",viewBox:"-2 0 24 24"};function t5(e,t){return Pl(),Ml("svg",e5,t[0]||(t[0]=[Ul("path",{fill:"#FF3E00",d:"M18.664 3.171c-2.219-3.185-6.61-4.13-9.788-2.104L3.29 4.625A6.42 6.42 0 0 0 .398 8.917a6.74 6.74 0 0 0 .666 4.332 6.4 6.4 0 0 0-.959 2.369 6.85 6.85 0 0 0 1.166 5.175c2.219 3.194 6.61 4.137 9.782 2.11l5.586-3.557a6.42 6.42 0 0 0 2.892-4.292 6.74 6.74 0 0 0-.666-4.332 6.4 6.4 0 0 0 .959-2.369 6.94 6.94 0 0 0-1.16-5.182"},null,-1),Ul("path",{fill:"#fff",d:"M8.327 21.099a4.435 4.435 0 0 1-4.76-1.75 4.16 4.16 0 0 1-.7-3.122q.05-.261.133-.517l.105-.318.286.182a7.1 7.1 0 0 0 2.186 1.095l.208.063-.02.201c-.025.293.055.585.223.83a1.305 1.305 0 0 0 1.779.379l5.581-3.521a1.18 1.18 0 0 0 .524-.783 1.23 1.23 0 0 0-.211-.923 1.305 1.305 0 0 0-1.78-.379l-2.12 1.35q-.53.321-1.135.488a4.435 4.435 0 0 1-4.76-1.75 4.16 4.16 0 0 1-.7-3.122 3.84 3.84 0 0 1 1.736-2.573l5.581-3.559a4.3 4.3 0 0 1 1.134-.485 4.435 4.435 0 0 1 4.76 1.751c.641.908.893 2.03.7 3.122a4 4 0 0 1-.132.517l-.105.318-.287-.182a7.1 7.1 0 0 0-2.186-1.095l-.207-.063.019-.202a1.27 1.27 0 0 0-.223-.83 1.305 1.305 0 0 0-1.779-.378L6.6 9.363a1.18 1.18 0 0 0-.523.783c-.056.323.019.655.21.923a1.305 1.305 0 0 0 1.78.38l2.121-1.35c.352-.214.732-.38 1.134-.485a4.435 4.435 0 0 1 4.76 1.75 4.16 4.16 0 0 1 .7 3.122 3.8 3.8 0 0 1-1.736 2.563l-5.58 3.559c-.353.214-.732.38-1.135.489"},null,-1)]))}const r5={render:t5},n5=Object.freeze(Object.defineProperty({__proto__:null,default:r5,render:t5},Symbol.toStringTag,{value:"Module"})),a5={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function o5(e,t){return Pl(),Ml("svg",a5,t[0]||(t[0]=[Ul("path",{fill:"#41B883",d:"m14.31 4.34-2.31 4-2.31-4H2l10 17.32L22 4.34z"},null,-1),Ul("path",{fill:"#34495E",d:"m14.31 4.34-2.31 4-2.31-4H6l6 10.392L18 4.34z"},null,-1)]))}const i5={render:o5},s5=Object.freeze(Object.defineProperty({__proto__:null,default:i5,render:o5},Symbol.toStringTag,{value:"Module"})),l5=Object.assign({"../icons/Add.svg":dX,"../icons/AddTab.svg":mX,"../icons/Alert.svg":yX,"../icons/ArrowLeft.svg":kX,"../icons/ArrowRight.svg":TX,"../icons/Brackets.svg":DX,"../icons/Branch.svg":NX,"../icons/Changelog.svg":BX,"../icons/Checkmark.svg":zX,"../icons/ChevronDown.svg":ZX,"../icons/ChevronLeft.svg":YX,"../icons/ChevronRight.svg":tG,"../icons/ChevronUp.svg":oG,"../icons/Clipboard.svg":cG,"../icons/Close.svg":hG,"../icons/CloseTab.svg":vG,"../icons/CloseTabs.svg":wG,"../icons/Cloud.svg":_G,"../icons/CodeFolder.svg":CG,"../icons/Cog.svg":RG,"../icons/Collection.svg":LG,"../icons/Cookie.svg":FG,"../icons/DarkMode.svg":HG,"../icons/Delete.svg":XG,"../icons/Discord.svg":JG,"../icons/DocsPage.svg":nY,"../icons/Download.svg":sY,"../icons/Duplicate.svg":dY,"../icons/Edit.svg":mY,"../icons/Ellipses.svg":yY,"../icons/Email.svg":kY,"../icons/Error.svg":TY,"../icons/Example.svg":DY,"../icons/ExternalLink.svg":NY,"../icons/FilterList.svg":BY,"../icons/Folder.svg":zY,"../icons/GitHub.svg":ZY,"../icons/GitHubLine.svg":YY,"../icons/Globe.svg":tK,"../icons/Google.svg":oK,"../icons/Help.svg":cK,"../icons/Hide.svg":hK,"../icons/History.svg":vK,"../icons/House.svg":wK,"../icons/Import.svg":_K,"../icons/Info.svg":CK,"../icons/Key.svg":RK,"../icons/Leave.svg":LK,"../icons/LightDarkModeToggle.svg":FK,"../icons/LightMode.svg":HK,"../icons/Link.svg":XK,"../icons/Lock.svg":JK,"../icons/Logo.svg":nJ,"../icons/Magic.svg":sJ,"../icons/Markdown.svg":dJ,"../icons/Menu.svg":mJ,"../icons/NotAllowed.svg":yJ,"../icons/Page.svg":kJ,"../icons/Pencil.svg":TJ,"../icons/Play.svg":DJ,"../icons/Refresh.svg":NJ,"../icons/Roadmap.svg":BJ,"../icons/Scribble.svg":zJ,"../icons/Search.svg":ZJ,"../icons/Server.svg":YJ,"../icons/Settings.svg":t0,"../icons/Show.svg":o0,"../icons/Sort.svg":c0,"../icons/Terminal.svg":h0,"../icons/Trash.svg":v0,"../icons/Unlock.svg":w0,"../icons/Unwatch.svg":_0,"../icons/Upload.svg":C0,"../icons/User.svg":R0,"../icons/UserSwitch.svg":L0,"../icons/Users.svg":F0,"../icons/Versions.svg":H0,"../icons/Wallet.svg":X0,"../icons/Watch.svg":J0,"../icons/Workspace.svg":n1,"../icons/programming-framework-angular.svg":s1,"../icons/programming-framework-astro.svg":d1,"../icons/programming-framework-laravel.svg":m1,"../icons/programming-framework-nextdotjs.svg":y1,"../icons/programming-framework-react.svg":k1,"../icons/programming-framework-vuedotjs.svg":T1,"../icons/programming-language-c.svg":D1,"../icons/programming-language-clojure.svg":N1,"../icons/programming-language-csharp.svg":B1,"../icons/programming-language-css3.svg":z1,"../icons/programming-language-dart.svg":Z1,"../icons/programming-language-go.svg":Y1,"../icons/programming-language-html5.svg":t2,"../icons/programming-language-http.svg":o2,"../icons/programming-language-java.svg":c2,"../icons/programming-language-javascript.svg":h2,"../icons/programming-language-json.svg":v2,"../icons/programming-language-kotlin.svg":w2,"../icons/programming-language-node.svg":_2,"../icons/programming-language-objc.svg":C2,"../icons/programming-language-ocaml.svg":R2,"../icons/programming-language-php.svg":L2,"../icons/programming-language-powershell.svg":F2,"../icons/programming-language-python.svg":H2,"../icons/programming-language-r.svg":X2,"../icons/programming-language-ruby.svg":J2,"../icons/programming-language-rust.svg":n4,"../icons/programming-language-scala.svg":s4,"../icons/programming-language-shell.svg":d4,"../icons/programming-language-swift.svg":m4,"../icons/programming-language-typescript.svg":y4,"../icons/programming-script-code.svg":k4,"../icons/programming-tool-git.svg":T4,"../icons/programming-tool-tailwindcss.svg":D4}),c5=Object.assign({"../logos/Adonisjs.svg":N4,"../logos/Docusaurus.svg":B4,"../logos/Dotnet.svg":z4,"../logos/Elysiajs.svg":Z4,"../logos/Express.svg":Y4,"../logos/Fastapi.svg":t3,"../logos/Fastify.svg":o3,"../logos/Go.svg":c3,"../logos/Hono.svg":h3,"../logos/Laravel.svg":v3,"../logos/Litestar.svg":w3,"../logos/Nestjs.svg":_3,"../logos/Nextjs.svg":C3,"../logos/Nitro.svg":R3,"../logos/Nuxt.svg":L3,"../logos/Openapi.svg":F3,"../logos/Platformatic.svg":H3,"../logos/React.svg":X3,"../logos/Rust.svg":J3,"../logos/Svelte.svg":n5,"../logos/Vue.svg":s5}),u5=WQ({variants:{size:{xs:"size-3",sm:"size-3.5",md:"size-4",lg:"size-5",xl:"size-6","2xl":"size-8","3xl":"size-10",full:"size-full"}},defaultVariants:{size:"full"}}),d5=Li({inheritAttrs:!1,__name:"ScalarIcon",props:{icon:{},logo:{},size:{},thickness:{},label:{}},setup(e){qc((e=>({c07589c2:n.value})));const t=e,{cx:r}=GQ(),n=hc((()=>t.thickness??"2")),a=hc((()=>t.label?{"aria-label":t.label}:{"aria-hidden":!0,role:"presentation"})),o=hc((()=>t.icon?(e=>{const t=`../icons/${e}.svg`;return l5[t]?l5[t]:(console.warn(`Could not find icon: ${e}`),null)})(t.icon):t.logo?(e=>{const t=`../logos/${e}.svg`;return c5[t]?c5[t]:(console.warn(`Could not find icon: ${e}`),null)})(t.logo):void 0));return(e,t)=>(Pl(),Nl(cs(o.value),qn(Ql({...Ao(r)("scalar-icon",Ao(u5)({size:e.size})),...a.value})),null,16))}}),p5=rz(d5,[["__scopeId","data-v-b651bb23"]]),h5=Li({inheritAttrs:!1,__name:"ScalarIconLegacyAdapter",props:{icon:{},label:{},weight:{},logo:{},size:{},thickness:{}},setup(e){const{cx:t}=GQ();return(e,r)=>"string"==typeof e.icon?(Pl(),Nl(p5,Gl({key:0},{...e.$props,...e.$attrs},{icon:e.icon}),null,16,["icon"])):(Pl(),Nl(cs(e.icon),Gl({key:1,label:e.label,weight:e.weight},Ao(t)(Ao(u5)({size:e.size}))),null,16,["label","weight"]))}}),f5=WQ({base:"scalar-icon-button grid aspect-square cursor-pointer rounded",variants:{size:{xxs:"size-3.5 p-0.5",xs:"size-5 p-1",sm:"size-6 p-1",md:"size-10 p-3",full:"size-full"},disabled:{true:"cursor-not-allowed shadow-none"},variant:YQ},compoundVariants:[{size:"md",variant:"ghost",class:"size-8 p-2 m-1 -outline-offset-2 rounded-lg"}],defaultVariants:{size:"md",variant:"ghost"}}),m5="scalar-tooltip",g5=So(),v5=So(),b5=So(),{floatingStyles:y5}=FW(hc((()=>{var e;return Ao(null==(e=b5.value)?void 0:e.targetRef)})),v5,{placement:hc((()=>{var e;return Ao(null==(e=b5.value)?void 0:e.placement)})),whileElementsMounted:$W,middleware:hc((()=>[NW(),MW()]))});function O5(e){(function(e){var t;const r=Ao(null==(t=b5.value)?void 0:t.targetRef);return!(e instanceof MouseEvent&&e.relatedTarget instanceof Element&&r)||e.relatedTarget.id!==m5&&e.relatedTarget!==r})(e)&&(x5(),b5.value=void 0)}function w5(e){"Escape"===e.key&&(e.stopPropagation(),O5(e))}function x5(){g5.value&&(clearTimeout(g5.value),g5.value=void 0)}function k5(e){function t(t){const n=Ao(e.delay)??300;x5(),n>0?g5.value=setTimeout((()=>r()),n):r()}function r(t){x5(),document.addEventListener("keydown",w5,{once:!0,capture:!0}),b5.value=e}!function(){if(typeof document>"u"||typeof window>"u"||v5.value)return;const e=document.getElementById(m5);e?v5.value=e:(v5.value=document.createElement("div"),v5.value.role="tooltip",v5.value.id=m5,v5.value.classList.add("scalar-tooltip"),v5.value.classList.add("scalar-app"),v5.value.style.setProperty("display","none"),v5.value.addEventListener("mouseleave",O5),document.body.appendChild(v5.value))}(),ul((()=>Ao(e.targetRef)),((e,n)=>{n&&(n.removeEventListener("mouseenter",t),n.removeEventListener("mouseleave",O5),n.removeEventListener("focus",r),n.removeEventListener("blur",O5),n.removeAttribute("aria-describedby")),e&&(e.addEventListener("mouseenter",t),e.addEventListener("mouseleave",O5),e.addEventListener("focus",r),e.addEventListener("blur",O5),e.setAttribute("aria-describedby",m5))}),{immediate:!0})}ul(y5,(()=>{v5.value&&(v5.value.style.position=y5.value.position,v5.value.style.top=y5.value.top,v5.value.style.left=y5.value.left,v5.value.style.transform=y5.value.transform??"",v5.value.style.willChange=y5.value.willChange??"")})),ul(b5,(e=>{if(v5.value)if(e){v5.value.textContent=Ao(null==e?void 0:e.content)??null;const t=Ao(null==e?void 0:e.offset)??4;v5.value.style.setProperty("--scalar-tooltip-offset",`${t}px`),v5.value.style.setProperty("display","block")}else v5.value.textContent=null,v5.value.style.removeProperty("--scalar-tooltip-offset"),v5.value.style.setProperty("display","none")}),{deep:!0});const S5=["aria-disabled"],_5={key:0,class:"sr-only"},E5=Li({inheritAttrs:!1,__name:"ScalarIconButton",props:{label:{},icon:{},disabled:{type:Boolean},variant:{default:"ghost"},size:{},thickness:{},weight:{},tooltip:{type:Boolean}},setup(e){const{cx:t}=GQ(),r=Ui("ref");return k5({content:hc((()=>e.label)),offset:hc((()=>"ghost"===e.variant?0:4)),placement:hc((()=>"boolean"==typeof e.tooltip?void 0:e.tooltip)),targetRef:hc((()=>e.tooltip?r.value:void 0))}),(e,r)=>(Pl(),Ml("button",Gl({ref:"ref","aria-disabled":e.disabled,type:"button"},Ao(t)(Ao(f5)({size:e.size,variant:e.variant,disabled:e.disabled}))),[Fl(Ao(h5),{icon:e.icon,thickness:e.thickness,weight:e.weight},null,8,["icon","thickness","weight"]),e.tooltip?Vl("",!0):(Pl(),Ml("span",_5,Gn(e.label),1))],16,S5))}}),T5=Li({__name:"ScalarListboxItem",props:{option:{},style:{}},setup(e){const t=WQ({base:["group/item","flex min-w-0 items-center gap-1.5 rounded px-2 py-1.5 text-left","truncate bg-transparent text-c-1","cursor-pointer hover:bg-b-2"],variants:{selected:{true:"text-c-1"},active:{true:"bg-b-2"},disabled:{true:"pointer-events-none opacity-50"}}});return(e,r)=>(Pl(),Nl(Ao(iF),{as:"template",disabled:e.option.disabled,value:e.option},{default:ci((({active:r,selected:n})=>[Ul("li",{class:zn(Ao(XQ)(Ao(t)({active:r,selected:n,disabled:e.option.disabled})))},[Fl(rZ,{selected:n,style:jn(e.style)},null,8,["selected","style"]),Ul("span",{class:zn(["inline-block min-w-0 flex-1 truncate",e.option.color?e.option.color:"text-c-1"])},Gn(e.option.label),3)],2)])),_:1},8,["disabled","value"]))}}),A5={class:"custom-scroll min-h-0 flex-1"},C5=Li({inheritAttrs:!1,__name:"ScalarListbox",props:{options:{},id:{},label:{},multiple:{type:Boolean},modelValue:{},placement:{},offset:{type:[Number,Object,Function]},resize:{type:Boolean},target:{},middleware:{},teleport:{type:[Boolean,String]}},emits:["update:modelValue"],setup(e){const{cx:t}=GQ();return(e,r)=>(Pl(),Nl(Ao(rF),{modelValue:e.modelValue,multiple:e.multiple,"onUpdate:modelValue":r[0]||(r[0]=t=>e.$emit("update:modelValue",t))},{default:ci((({open:r})=>[e.label?(Pl(),Nl(Ao(nF),{key:0,class:"sr-only"},{default:ci((()=>[ql(Gn(e.label),1)])),_:1})):Vl("",!0),Fl(Ao(HW),Gl(e.$props,{placement:e.placement??"bottom-start"}),{floating:ci((({width:n})=>[r?(Pl(),Ml("div",Gl({key:0,style:{width:n}},Ao(t)("relative flex max-h-[inherit] w-40 rounded text-sm")),[Ul("div",A5,[Fl(Ao(oF),{class:"flex flex-col gap-0.75 p-0.75 -outline-offset-1"},{default:ci((()=>[(Pl(!0),Ml(Sl,null,ps(e.options,(t=>(Pl(),Nl(T5,{key:t.id,option:t,style:jn(e.multiple?"checkbox":"radio")},null,8,["option","style"])))),128))])),_:1})]),Fl(Ao(VW))],16)):Vl("",!0)])),default:ci((()=>[Fl(Ao(aF),{id:e.id,as:"template"},{default:ci((()=>[fs(e.$slots,"default",{open:r})])),_:2},1032,["id"])])),_:2},1040,["placement"])])),_:3},8,["modelValue","multiple"]))}}),P5=["innerHTML"],D5=Li({__name:"ScalarMarkdown",props:{value:{},withImages:{type:Boolean,default:!1},transform:{},transformType:{},clamp:{type:[String,Boolean]},class:{},withAnchors:{type:Boolean,default:!1},anchorPrefix:{}},setup(e){const t=e,r=e=>{var r,n,a;if(!t.withAnchors)return(null==(r=t.transform)?void 0:r.call(t,e))||e;const o=((null==(a=null==(n=e.children)?void 0:n[0])?void 0:a.value)||"").toLowerCase().replace(/\s+/g,"-"),i=t.anchorPrefix?`${t.anchorPrefix}/description/${o}`:o;return e.data={hProperties:{id:i}},t.transform?t.transform(e):e},n=hc((()=>function(e,t){const r=(null==t?void 0:t.removeTags)??[],n=[...WO.tagNames??[],...(null==t?void 0:t.allowTags)??[]].filter((e=>!r.includes(e)));return XE().use(rE).use(__).use(VC,{transform:null==t?void 0:t.transform,type:null==t?void 0:t.transformType}).use(yE,{allowDangerousHtml:!0}).use(mA).use(VO).use(rw,{...WO,clobberPrefix:"",tagNames:n,attributes:{...WO.attributes,abbr:["title"],div:["class",["className",/^markdown-alert(-.*)?$/]]}}).use(HC,{languages:pA,detect:!0}).use(Jm,{target:"_blank"}).use(Eg).use(qw).processSync(e).toString()}(t.value??"",{removeTags:t.withImages?[]:["img","picture"],transform:t.withAnchors&&"heading"===t.transformType?r:t.transform,transformType:t.transformType})));return rs((async()=>await new Promise((e=>setTimeout(e,1))))),(e,r)=>(Pl(),Ml("div",{class:zn(Ao(XQ)("markdown text-ellipsis",{"line-clamp-4":e.clamp},t.class)),style:jn({"-webkit-line-clamp":"string"==typeof e.clamp?e.clamp:void 0}),innerHTML:n.value},null,14,P5))}}),$5=Li({__name:"ScalarDropdownButton",props:{is:{default:"button"},active:{type:Boolean},disabled:{type:Boolean}},setup(e){const t=WQ({base:["flex h-8 min-w-0 items-center gap-1.5 rounded px-2.5 py-1.5 text-left","truncate no-underline text-sm text-c-1","cursor-pointer hover:bg-b-2 hover:text-c-1"],variants:{disabled:{true:"pointer-events-none text-c-3"},active:{true:"bg-b-2 text-c-1"}}});return(e,r)=>(Pl(),Nl(cs(e.is),{class:zn(["item",Ao(XQ)("scalar-dropdown-item",Ao(t)({active:e.active,disabled:e.disabled}))]),type:"button"===e.is?"button":void 0},{default:ci((()=>[fs(e.$slots,"default",{},void 0,!0)])),_:3},8,["class","type"]))}}),R5=rz($5,[["__scopeId","data-v-cc5bd05e"]]),M5={class:"-mx-0.75 my-0.75 h-border bg-border"},N5=rz({},[["render",function(e,t,r,n,a,o){return Pl(),Ml("div",M5)}]]),I5=Li({inheritAttrs:!1,__name:"ScalarPopover",props:{focus:{type:Boolean},placement:{},offset:{type:[Number,Object,Function]},resize:{type:Boolean},target:{},middleware:{},teleport:{type:[Boolean,String]}},setup(e){const{cx:t}=GQ();return(e,r)=>(Pl(),Nl(Ao(xF),{as:"template"},{default:ci((({open:r})=>[Fl(Ao(HW),qn(Ql(e.$props)),{floating:ci((({width:n,height:a})=>[Fl(Ao(SF),Gl({focus:e.focus,style:{width:n,height:a}},Ao(t)("relative flex flex-col p-0.75")),{default:ci((({close:t})=>[fs(e.$slots,"popover",{close:()=>t(),open:r}),fs(e.$slots,"backdrop",{open:r},(()=>[Fl(Ao(VW))]))])),_:2},1040,["focus","style"])])),default:ci((()=>[Fl(Ao(kF),{as:"template"},{default:ci((()=>[fs(e.$slots,"default",{open:r})])),_:2},1024)])),_:2},1040)])),_:3}))}}),L5=["aria-label"],j5=Li({inheritAttrs:!1,__name:"ScalarSearchInput",props:xs({loading:{},label:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=fl(e,"modelValue"),r=So(null);function n(){t.value="",r.value&&r.value.focus()}const{classCx:a,otherAttrs:o}=GQ();return(e,i)=>(Pl(),Ml("label",qn(Ql(Ao(a)("flex items-center text-lg font-medium h-10 pl-3 pr-1 py-2 gap-2.25"))),[Fl(Ao(Kq),{class:"text-sidebar-c-search size-4"}),ui(Ul("input",Gl({ref_key:"inputRef",ref:r,"aria-label":e.label??"Enter search query",autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:"flex-1 appearance-none rounded border-none bg-transparent outline-none",placeholder:"Search...",spellcheck:"false",type:"search"},Ao(o),{"onUpdate:modelValue":i[0]||(i[0]=e=>t.value=e)}),null,16,L5),[[pu,t.value]]),e.loading&&e.loading.isLoading?(Pl(),Nl(Ao(nz),{key:0,class:"self-center",loadingState:e.loading,size:"md"},null,8,["loadingState"])):t.value?(Pl(),Nl(Ao(E5),{key:1,class:"p-0 size-5",icon:"Close",label:"Clear Search",thickness:"1.5",onClick:Su(n,["stop","prevent"])})):Vl("",!0)],16))}}),B5=Li({inheritAttrs:!1,__name:"ScalarSearchResultList",props:{noResults:{type:Boolean}},setup(e){const{cx:t}=GQ();return(e,r)=>(Pl(),Ml("div",Gl({role:"listbox"},Ao(t)("flex flex-col")),[e.noResults?fs(e.$slots,"noResults",{key:0},(()=>[r[0]||(r[0]=Ul("div",{class:"flex flex-col items-center gap-2 px-3 py-4"},[Ul("div",{class:"text-base font-medium text-c-2",role:"alert"}," No results found ")],-1))])):Vl("",!0),fs(e.$slots,"default")],16))}}),U5=["aria-selected"],F5={key:0,class:"flex h-fit items-center text-sm font-medium text-c-3 group-hover:text-c-1"},Q5={class:"flex min-w-0 flex-1 flex-col gap-0.75"},z5={class:"flex items-center gap-1"},q5={class:"flex-1 truncate zoomed:!whitespace-normal break-words text-base font-medium"},H5={key:0,class:"text-base text-c-2"},V5={key:0,class:"truncate zoomed:!whitespace-normal break-words text-base text-c-2"},Z5=Li({inheritAttrs:!1,__name:"ScalarSearchResultItem",props:{icon:{},selected:{type:Boolean}},setup(e){const{cx:t}=GQ();return(e,r)=>(Pl(),Ml("a",Gl({"aria-selected":e.selected,role:"option",tabindex:"-1"},Ao(t)("group flex cursor-pointer gap-2 rounded px-2 py-1.5 no-underline hover:bg-b-2",{"bg-b-2":e.selected})),[e.icon?(Pl(),Ml("div",F5,[fs(e.$slots,"icon",{},(()=>[e.icon?(Pl(),Nl(Ao(h5),{key:0,icon:e.icon,class:"size-4"},null,8,["icon"])):Vl("",!0)])),r[0]||(r[0]=Ul("span",null," ",-1))])):Vl("",!0),Ul("div",Q5,[Ul("div",z5,[Ul("div",q5,[fs(e.$slots,"default")]),e.$slots.addon?(Pl(),Ml("div",H5,[fs(e.$slots,"addon")])):Vl("",!0)]),e.$slots.description?(Pl(),Ml("div",V5,[fs(e.$slots,"description")])):Vl("",!0)])],16,U5))}}),W5={class:"flex items-center"},X5={class:"flex-1 min-w-0 flex items-center text-sm text-sidebar-c-2"},G5=Li({inheritAttrs:!1,__name:"ScalarSidebarFooter",setup(e){const{cx:t}=GQ();return(e,r)=>(Pl(),Ml("div",qn(Ql(Ao(t)("flex flex-col gap-3 p-3 border-t"))),[fs(e.$slots,"default"),Ul("div",W5,[Ul("div",X5,[fs(e.$slots,"description",{},(()=>[r[0]||(r[0]=Ul("a",{class:"no-underline hover:underline",href:"https://www.scalar.com",target:"_blank"}," Powered by Scalar ",-1))]))]),fs(e.$slots,"toggle",{},(()=>[Fl(Ao(tZ))]))])],16))}}),Y5={class:"sr-only"},K5=Li({inheritAttrs:!1,__name:"ScalarSidebarGroupToggle",props:{is:{default:"div"},open:{type:Boolean,default:!1},icon:{}},setup(e){const t=WQ({base:"size-4 flex items-center justify-center transition-transform duration-100",variants:{open:{true:"rotate-90"}},defaultVariants:{open:!1}}),{cx:r}=GQ();return(e,n)=>(Pl(),Nl(cs(e.is),Gl({type:"button"===e.is?"button":void 0},Ao(r)(Ao(t)({open:e.open}))),{default:ci((()=>[fs(e.$slots,"default",{open:e.open},(()=>[e.icon?(Pl(),Nl(Ao(h5),{key:0,icon:e.icon},null,8,["icon"])):(Pl(),Nl(Ao(nq),{key:1,class:"size-3",weight:"bold"}))])),Ul("span",Y5,[fs(e.$slots,"label",{open:e.open},(()=>[ql(Gn(e.open?"Close":"Open")+" Group ",1)]))])])),_:3},16,["type"]))}}),J5={class:"flex-1 text-left leading-none"},e8={key:0,class:"uppercase text-sidebar-c-2 bg-b-2 leading-none py-1 px-1.25 rounded"},t8=Li({inheritAttrs:!1,__name:"ScalarSidebarSearchButton",props:{hotKey:{}},setup(e){const{cx:t}=GQ();return(e,r)=>(Pl(),Ml("button",Gl({type:"button",role:"search"},Ao(t)("flex items-center rounded border text-base h-8 gap-1 pl-2 pr-1","bg-sidebar-b-search border-sidebar-border-search text-sidebar-c-search")),[Fl(Ao(Kq),{class:"size-4"}),Ul("span",J5,[fs(e.$slots,"default",{},(()=>[r[0]||(r[0]=ql("Search..."))]))]),e.$slots.shortcut?(Pl(),Ml("span",e8,[r[1]||(r[1]=Ul("span",{class:"sr-only"},"Keyboard Shortcut:",-1)),Ul("kbd",null,[fs(e.$slots,"shortcut")])])):Vl("",!0)],16))}}),r8=["aria-label"],n8=Li({inheritAttrs:!1,__name:"ScalarSidebarSearchInput",props:xs({autofocus:{type:Boolean},loading:{},label:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=So(null),r=fl(e,"modelValue");function n(){r.value="",t.value&&t.value.focus()}const{classCx:a,otherAttrs:o}=GQ();return Yi((()=>{var r;return e.autofocus&&(null==(r=t.value)?void 0:r.focus())})),(e,i)=>(Pl(),Ml("label",qn(Ql(Ao(a)("flex items-center rounded border text-base has-[:focus-visible]:bg-b-1 has-[:focus-visible]:outline h-8 gap-1 pl-2 pr-1.5","bg-sidebar-b-search border-sidebar-border-search",r.value?"text-c-1":"text-sidebar-c-search"))),[Fl(Ao(Kq),{class:"text-sidebar-c-search size-4"}),ui(Ul("input",Gl({ref_key:"inputRef",ref:t,"aria-label":e.label??"Enter search query",autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:"flex-1 appearance-none rounded border-none bg-transparent outline-none",placeholder:"Search...",spellcheck:"false",type:"search"},Ao(o),{"onUpdate:modelValue":i[0]||(i[0]=e=>r.value=e)}),null,16,r8),[[pu,r.value]]),e.loading&&e.loading.isLoading?(Pl(),Nl(Ao(nz),{key:0,class:"mr-3 self-center",loadingState:e.loading,size:"md"},null,8,["loadingState"])):r.value?(Pl(),Nl(Ao(E5),{key:1,class:"p-0.25 size-4",icon:Ao(sV),weight:"bold",label:"Clear Search",onClick:Su(n,["stop","prevent"])},null,8,["icon"])):Vl("",!0)],16))}}),a8=["id"],o8=Li({inheritAttrs:!1,__name:"ScalarTeleportRoot",props:{id:{}},setup(e){const t=(e=>{const t=e??`scalar-teleport-${QW()}`;return js(zW,`#${t}`),t})(e.id);return(e,r)=>(Pl(),Ml(Sl,null,[fs(e.$slots,"default"),Ul("div",{id:Ao(t),class:"scalar-teleport-root contents"},null,8,a8)],64))}}),i8={class:"flex flex-1 relative"},s8={key:0,class:"select-none whitespace-nowrap text-sm text-transparent"},l8={key:1,class:"absolute inset-0 select-none overflow-hidden whitespace-nowrap text-sm"},c8={key:0,class:"text-c-2"},u8={class:"text-transparent"},d8={key:1,class:"text-c-2"},p8=Li({inheritAttrs:!1,__name:"ScalarTextInput",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=fl(e,"modelValue"),r=So(),{classCx:n,otherAttrs:a}=GQ();return Yi((()=>{var e;"autofocus"in a.value&&(null==(e=r.value)||e.focus())})),(e,o)=>(Pl(),Ml("div",Gl(Ao(n)("bg-b-1.5 flex cursor-text items-center gap-0.75 rounded-md border px-3 py-2.5 outline-offset-[-1px] focus-within:bg-b-1 has-[input:focus-visible]:outline"),{onClick:o[1]||(o[1]=e=>{var t;return null==(t=r.value)?void 0:t.focus()})}),[Ul("div",i8,[e.$slots.prefix?(Pl(),Ml("span",s8,[fs(e.$slots,"prefix")])):Vl("",!0),ui(Ul("input",Gl({ref_key:"input",ref:r,"onUpdate:modelValue":o[0]||(o[0]=e=>t.value=e),class:"z-1 min-w-0 flex-1 border-none bg-transparent text-sm placeholder:font-[inherit] focus-within:outline-none"},Ao(a)),null,16),[[Ou,t.value]]),e.$slots.prefix||e.$slots.suffix?(Pl(),Ml("div",l8,[e.$slots.prefix?(Pl(),Ml("span",c8,[fs(e.$slots,"prefix")])):Vl("",!0),Ul("span",u8,Gn(t.value||e.$attrs.placeholder),1),e.$slots.suffix?(Pl(),Ml("span",d8,[fs(e.$slots,"suffix")])):Vl("",!0)])):Vl("",!0)]),fs(e.$slots,"aside")],16))}}),h8=["aria-checked","aria-disabled"],f8={key:0,class:"sr-only"},m8=Li({__name:"ScalarToggle",props:{modelValue:{type:Boolean},disabled:{type:Boolean},label:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=t;function a(){r.disabled||n("update:modelValue",!r.modelValue)}const o=WQ({base:"relative h-3.5 min-w-6 w-6 cursor-pointer rounded-full bg-b-3 transition-colors duration-300",variants:{checked:{true:"bg-c-accent"},disabled:{true:"cursor-not-allowed opacity-40"}}});return(e,t)=>(Pl(),Ml("button",{"aria-checked":e.modelValue,"aria-disabled":e.disabled,class:zn(Ao(XQ)(Ao(o)({checked:e.modelValue,disabled:e.disabled}))),role:"switch",type:"button",onClick:a},[Ul("div",{class:zn(["absolute left-px top-px flex h-3 w-3 items-center justify-center rounded-full bg-b-1 text-c-accent transition-transform duration-300",{"translate-x-2.5":e.modelValue}])},null,2),e.label?(Pl(),Ml("span",f8,Gn(e.label),1)):Vl("",!0)],10,h8))}}),g8=Li({__name:"ScalarTooltip",props:{content:{default:""},delay:{default:()=>300},placement:{default:"top"},offset:{default:()=>4}},setup(e){const t=So(null);return k5({content:hc((()=>e.content)),delay:hc((()=>e.delay)),placement:hc((()=>e.placement)),offset:hc((()=>e.offset)),targetRef:hc((()=>{var e,r;return(null==(r=null==(e=t.value)?void 0:e.children)?void 0:r[0])||t.value||void 0}))}),(e,r)=>(Pl(),Ml("div",{ref_key:"wrapperRef",ref:t,class:zn({contents:!!e.$slots.default})},[fs(e.$slots,"default")],2))}}),v8=Li({__name:"ScalarVirtualText",props:{text:{},lineHeight:{default:20},containerClass:{default:""},contentClass:{default:""},lineClass:{default:""}},setup(e){const t=e,r=So(null),n=So(null),a=So(0),o=So(0),i=hc((()=>t.text.split("\n"))),s=hc((()=>i.value.length*t.lineHeight)),l=hc((()=>Math.floor(a.value/t.lineHeight))),c=hc((()=>Math.min(Math.ceil((a.value+o.value)/t.lineHeight),i.value.length))),u=hc((()=>{const e=Math.max(0,l.value-10),t=Math.min(i.value.length,c.value+10);return i.value.slice(e,t)})),d=hc((()=>({height:`${s.value}px`,transform:`translateY(${Math.max(0,l.value-10)*t.lineHeight}px)`}))),p=()=>r.value&&(a.value=r.value.scrollTop),h=()=>r.value&&(o.value=r.value.clientHeight);return Yi((()=>{h(),window.addEventListener("resize",h)})),es((()=>{window.removeEventListener("resize",h)})),cl((()=>{n.value&&(n.value.style.transform=`translateY(${Math.max(0,l.value-10)*t.lineHeight}px)`)})),(e,a)=>(Pl(),Ml("div",{ref_key:"containerRef",ref:r,class:zn(["scalar-virtual-text overflow-auto",e.containerClass]),onScroll:p},[Ul("code",{ref_key:"contentRef",ref:n,class:zn(["scalar-virtual-text-content",e.contentClass]),style:jn(d.value)},[(Pl(!0),Ml(Sl,null,ps(u.value,((r,n)=>(Pl(),Ml("div",{key:l.value+n,class:zn(["scalar-virtual-text-line",e.lineClass]),style:jn({height:`${t.lineHeight}px`,lineHeight:`${t.lineHeight}px`})},Gn(r),7)))),128))],6)],34))}}),b8=Li({__name:"ScalarDropdownItem",props:{disabled:{type:Boolean}},emits:["click"],setup:e=>(e,t)=>(Pl(),Nl(Ao(fF),{disabled:e.disabled},{default:ci((({active:r})=>[Fl(R5,{active:r,disabled:e.disabled,onClick:t[0]||(t[0]=t=>e.$emit("click",t))},{default:ci((()=>[fs(e.$slots,"default",{},void 0,!0)])),_:2},1032,["active","disabled"])])),_:3},8,["disabled"]))}),y8=rz(b8,[["__scopeId","data-v-457c1cd3"]]),O8={key:0,class:"close-button z-10 fixed right-2 top-2"};function w8(){return uo({open:!1,show(){this.open=!0},hide(){this.open=!1}})}const x8=Li({__name:"ScalarModal",props:{state:{},title:{},bodyClass:{},maxWidth:{},size:{default:"md"},variant:{}},setup(e){const t=WQ({base:["scalar-modal","flex flex-col relative mb-0 rounded-lg bg-b-1 p-0 text-left leading-snug text-c-1 opacity-0 w-[calc(100vw-12px)] md:w-[calc(100vw-16px)] lg:w-[calc(100vw-32px)]"].join(" "),variants:{size:{xxs:"mt-[20svh] max-h-[60svh] max-w-[360px]",xs:"mt-[20svh] max-h-[60svh] max-w-[480px]",sm:"mt-[20svh] max-h-[60svh] max-w-[540px]",md:"mt-[20svh] max-h-[60svh] max-w-[640px]",lg:"m-auto max-h-[80svh] max-w-[800px]",xl:"m-auto max-h-[90svh] max-w-[1000px]",full:"full-size-styles max-h-dvh mt-0 lg:w-full"},variant:{form:"scalar-modal-form",search:"scalar-modal-search mt-[15svh] max-h-[60svh] max-w-[540px]",error:"scalar-modal-error"}}}),r=WQ({base:["scalar-modal-body","relative flex-1 min-h-0 p-3"].join(" "),variants:{variant:{form:"overflow-visible",search:"flex flex-col !m-0 overflow-hidden p-0",error:"overflow-y-scroll"},size:{xxs:"",xs:"",sm:"",md:"",lg:"",xl:"m-0 p-0",full:" rounded-none"}}});return(e,n)=>(Pl(),Nl(Ao(LU),{open:e.state.open,onClose:n[1]||(n[1]=t=>e.state.hide())},{default:ci((()=>[Ul("div",{class:zn(Ao(XQ)("full"===e.size?"scalar-modal-layout-full":"scalar-modal-layout","fixed left-0 top-0 flex items-start justify-center","z-[1001] h-[100dvh] w-[100dvw]","bg-backdrop opacity-0 dark:bg-backdrop-dark","full"===e.size&&"flex"))},[Fl(Ao(jU),{class:zn(Ao(t)({size:e.size,variant:e.variant})),style:jn({maxWidth:e.maxWidth})},{default:ci((()=>[e.title?(Pl(),Nl(Ao(BU),{key:0,class:"scalar-modal-header m-0 -mb-1 rounded-lg pt-3 px-3 text-left text-sm font-medium text-c-1"},{default:ci((()=>[ql(Gn(e.title),1)])),_:1})):Vl("",!0),"full"===e.size?(Pl(),Ml("div",{key:1,class:zn(e.bodyClass)},[fs(e.$slots,"default",{},void 0,!0)],2)):(Pl(),Ml("div",{key:2,class:zn(Ao(XQ)(Ao(r)({size:e.size,variant:e.variant}),e.bodyClass))},[fs(e.$slots,"default",{},void 0,!0)],2))])),_:3},8,["class","style"]),"full"===e.size?(Pl(),Ml("div",O8,[Fl(Ao(E5),{class:"hover:bg-b-3 focus:outline-none",icon:"Close",label:"Clear Search",onClose:n[0]||(n[0]=t=>e.state.hide())})])):Vl("",!0)],2)])),_:3},8,["open"]))}}),k8=rz(x8,[["__scopeId","data-v-589f8aa0"]]),S8="scalar-app",_8="headlessui-portal-root",E8=e=>{!e||e.classList.contains(S8)||e.classList.add(S8)},T8=()=>{E8(document.getElementById(_8));const e=new MutationObserver((e=>e.forEach((({addedNodes:e})=>e.forEach((e=>{(e=>null!==e&&e instanceof HTMLElement)(e)&&e.id===_8&&E8(e)}))))));return e.observe(document.body,{childList:!0}),e},A8=["href"],C8=Li({__name:"OpenApiClientButton",props:{buttonSource:{},source:{default:"api-reference"},isDevelopment:{type:Boolean},integration:{},url:{}},setup(e){const t=hc((()=>{const t=(e=>{var t;if(!e||e.startsWith("http://")||e.startsWith("https://")||"undefined"==typeof window)return e;const r=null==(t=window.location.href.split("?")[0])?void 0:t.split("#")[0],n=(null==r?void 0:r.endsWith("/"))?r:null==r?void 0:r.substring(0,(null==r?void 0:r.lastIndexOf("/"))+1);return new URL(e,n).toString()})(e.url??(typeof window<"u"?window.location.href:void 0));if(null==t||!t.length)return;const r=new URL(e.isDevelopment?"http://localhost:5065":"https://client.scalar.com");if(r.searchParams.set("url",t),null!==e.integration&&r.searchParams.set("integration",e.integration??"vue"),r.searchParams.set("utm_source","api-reference"),r.searchParams.set("utm_medium","button"),r.searchParams.set("utm_campaign",e.buttonSource),"gitbook"===e.source){r.searchParams.set("utm_source","gitbook");const e=document.querySelector("img.dark\\:block[alt='Logo']"),t=document.querySelector("img.dark\\:hidden[alt='Logo']");e&&e instanceof HTMLImageElement&&r.searchParams.set("dark_logo",encodeURIComponent(e.src)),t&&t instanceof HTMLImageElement&&r.searchParams.set("light_logo",encodeURIComponent(t.src))}return r.toString()}));return(e,r)=>t.value?(Pl(),Ml("a",{key:0,class:"open-api-client-button",href:t.value,target:"_blank"},[Fl(Ao(p5),{icon:"ExternalLink",size:"xs",thickness:"2.5"}),r[0]||(r[0]=ql(" Open API Client "))],8,A8)):Vl("",!0)}}),P8=(e,t)=>{const r=e.__vccOpts||e;for(const[e,n]of t)r[e]=n;return r},D8=P8(C8,[["__scopeId","data-v-210c4985"]]);let $8=[],R8=[];function M8(e){if(e<768)return!1;for(let t=0,r=$8.length;;){let n=t+r>>1;if(e<$8[n])r=n;else{if(!(e>=R8[n]))return!0;t=n+1}if(t==r)return!1}}function N8(e){return e>=127462&&e<=127487}(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e=>e?parseInt(e,36):1));for(let t=0,r=0;t<e.length;t++)(t%2?R8:$8).push(r+=e[t])})();function I8(e,t,r=!0,n=!0){return(r?L8:j8)(e,t,n)}function L8(e,t,r){if(t==e.length)return t;t&&U8(e.charCodeAt(t))&&F8(e.charCodeAt(t-1))&&t--;let n=B8(e,t);for(t+=Q8(n);t<e.length;){let a=B8(e,t);if(8205==n||8205==a||r&&M8(a))t+=Q8(a),n=a;else{if(!N8(a))break;{let r=0,n=t-2;for(;n>=0&&N8(B8(e,n));)r++,n-=2;if(r%2==0)break;t+=2}}}return t}function j8(e,t,r){for(;t>0;){let n=L8(e,t-2,r);if(n<t)return n;t--}return 0}function B8(e,t){let r=e.charCodeAt(t);if(!F8(r)||t+1==e.length)return r;let n=e.charCodeAt(t+1);return U8(n)?n-56320+(r-55296<<10)+65536:r}function U8(e){return e>=56320&&e<57344}function F8(e){return e>=55296&&e<56320}function Q8(e){return e<65536?1:2}class z8{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,r){[e,t]=K8(this,e,t);let n=[];return this.decompose(0,e,n,2),r.length&&r.decompose(0,r.length,n,3),this.decompose(t,this.length,n,1),H8.from(n,this.length-(t-e)+r.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=K8(this,e,t);let r=[];return this.decompose(e,t,r,0),H8.from(r,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),r=this.length-this.scanIdentical(e,-1),n=new W8(this),a=new W8(e);for(let e=t,o=t;;){if(n.next(e),a.next(e),e=0,n.lineBreak!=a.lineBreak||n.done!=a.done||n.value!=a.value)return!1;if(o+=n.value.length,n.done||o>=r)return!0}}iter(e=1){return new W8(this,e)}iterRange(e,t=this.length){return new X8(this,e,t)}iterLines(e,t){let r;if(null==e)r=this.iter();else{null==t&&(t=this.lines+1);let n=this.line(e).from;r=this.iterRange(n,Math.max(n,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new G8(r)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new q8(e):H8.from(q8.split(e,[])):z8.empty}}class q8 extends z8{constructor(e,t=function(e){let t=-1;for(let r of e)t+=r.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,r,n){for(let a=0;;a++){let o=this.text[a],i=n+o.length;if((t?r:i)>=e)return new Y8(n,i,r,o);n=i+1,r++}}decompose(e,t,r,n){let a=e<=0&&t>=this.length?this:new q8(Z8(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&n){let e=r.pop(),t=V8(a.text,e.text.slice(),0,a.length);if(t.length<=32)r.push(new q8(t,e.length+a.length));else{let e=t.length>>1;r.push(new q8(t.slice(0,e)),new q8(t.slice(e)))}}else r.push(a)}replace(e,t,r){if(!(r instanceof q8))return super.replace(e,t,r);[e,t]=K8(this,e,t);let n=V8(this.text,V8(r.text,Z8(this.text,0,e)),t),a=this.length+r.length-(t-e);return n.length<=32?new q8(n,a):H8.from(q8.split(n,[]),a)}sliceString(e,t=this.length,r="\n"){[e,t]=K8(this,e,t);let n="";for(let a=0,o=0;a<=t&&o<this.text.length;o++){let i=this.text[o],s=a+i.length;a>e&&o&&(n+=r),e<s&&t>a&&(n+=i.slice(Math.max(0,e-a),t-a)),a=s+1}return n}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let r=[],n=-1;for(let a of e)r.push(a),n+=a.length+1,32==r.length&&(t.push(new q8(r,n)),r=[],n=-1);return n>-1&&t.push(new q8(r,n)),t}}class H8 extends z8{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,r,n){for(let a=0;;a++){let o=this.children[a],i=n+o.length,s=r+o.lines-1;if((t?s:i)>=e)return o.lineInner(e,t,r,n);n=i+1,r=s+1}}decompose(e,t,r,n){for(let a=0,o=0;o<=t&&a<this.children.length;a++){let i=this.children[a],s=o+i.length;if(e<=s&&t>=o){let a=n&((o<=e?1:0)|(s>=t?2:0));o>=e&&s<=t&&!a?r.push(i):i.decompose(e-o,t-o,r,a)}o=s+1}}replace(e,t,r){if([e,t]=K8(this,e,t),r.lines<this.lines)for(let n=0,a=0;n<this.children.length;n++){let o=this.children[n],i=a+o.length;if(e>=a&&t<=i){let s=o.replace(e-a,t-a,r),l=this.lines-o.lines+s.lines;if(s.lines<l>>4&&s.lines>l>>6){let a=this.children.slice();return a[n]=s,new H8(a,this.length-(t-e)+r.length)}return super.replace(a,i,s)}a=i+1}return super.replace(e,t,r)}sliceString(e,t=this.length,r="\n"){[e,t]=K8(this,e,t);let n="";for(let a=0,o=0;a<this.children.length&&o<=t;a++){let i=this.children[a],s=o+i.length;o>e&&a&&(n+=r),e<s&&t>o&&(n+=i.sliceString(e-o,t-o,r)),o=s+1}return n}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof H8))return 0;let r=0,[n,a,o,i]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;n+=t,a+=t){if(n==o||a==i)return r;let s=this.children[n],l=e.children[a];if(s!=l)return r+s.scanIdentical(l,t);r+=s.length+1}}static from(e,t=e.reduce(((e,t)=>e+t.length+1),-1)){let r=0;for(let t of e)r+=t.lines;if(r<32){let r=[];for(let t of e)t.flatten(r);return new q8(r,t)}let n=Math.max(32,r>>5),a=n<<1,o=n>>1,i=[],s=0,l=-1,c=[];function u(e){let t;if(e.lines>a&&e instanceof H8)for(let t of e.children)u(t);else e.lines>o&&(s>o||!s)?(d(),i.push(e)):e instanceof q8&&s&&(t=c[c.length-1])instanceof q8&&e.lines+t.lines<=32?(s+=e.lines,l+=e.length+1,c[c.length-1]=new q8(t.text.concat(e.text),t.length+1+e.length)):(s+e.lines>n&&d(),s+=e.lines,l+=e.length+1,c.push(e))}function d(){0!=s&&(i.push(1==c.length?c[0]:H8.from(c,l)),l=-1,s=c.length=0)}for(let t of e)u(t);return d(),1==i.length?i[0]:new H8(i,t)}}function V8(e,t,r=0,n=1e9){for(let a=0,o=0,i=!0;o<e.length&&a<=n;o++){let s=e[o],l=a+s.length;l>=r&&(l>n&&(s=s.slice(0,n-a)),a<r&&(s=s.slice(r-a)),i?(t[t.length-1]+=s,i=!1):t.push(s)),a=l+1}return t}function Z8(e,t,r){return V8(e,[""],t,r)}z8.empty=new q8([""],0);class W8{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof q8?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,n=this.nodes[r],a=this.offsets[r],o=a>>1,i=n instanceof q8?n.text.length:n.children.length;if(o==(t>0?i:0)){if(0==r)return this.done=!0,this.value="",this;t>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&a)==(t>0?0:1)){if(this.offsets[r]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(n instanceof q8){let a=n.text[o+(t<0?-1:0)];if(this.offsets[r]+=t,a.length>Math.max(0,e))return this.value=0==e?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=n.children[o+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[r]+=t):(t<0&&this.offsets[r]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof q8?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class X8{constructor(e,t,r){this.value="",this.done=!1,this.cursor=new W8(e,t>r?-1:1),this.pos=t>r?e.length:0,this.from=Math.min(t,r),this.to=Math.max(t,r)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let r=t<0?this.pos-this.from:this.to-this.pos;e>r&&(e=r),r-=e;let{value:n}=this.cursor.next(e);return this.pos+=(n.length+e)*t,this.value=n.length<=r?n:t<0?n.slice(n.length-r):n.slice(0,r),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class G8{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:r,value:n}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(z8.prototype[Symbol.iterator]=function(){return this.iter()},W8.prototype[Symbol.iterator]=X8.prototype[Symbol.iterator]=G8.prototype[Symbol.iterator]=function(){return this});class Y8{constructor(e,t,r,n){this.from=e,this.to=t,this.number=r,this.text=n}get length(){return this.to-this.from}}function K8(e,t,r){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,r))]}function J8(e,t,r=!0,n=!0){return I8(e,t,r,n)}function e6(e,t){let r=e.charCodeAt(t);if(!((n=r)>=55296&&n<56320&&t+1!=e.length))return r;var n;let a=e.charCodeAt(t+1);return function(e){return e>=56320&&e<57344}(a)?a-56320+(r-55296<<10)+65536:r}function t6(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function r6(e){return e<65536?1:2}const n6=/\r\n?|\n/;var a6=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(a6||(a6={}));class o6{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let r=this.sections[t+1];e+=r<0?this.sections[t]:r}return e}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(e){for(let t=0,r=0,n=0;t<this.sections.length;){let a=this.sections[t++],o=this.sections[t++];o<0?(e(r,n,a),n+=a):n+=o,r+=a}}iterChangedRanges(e,t=!1){c6(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let r=this.sections[t++],n=this.sections[t++];n<0?e.push(r,n):e.push(n,r)}return new o6(e)}composeDesc(e){return this.empty?e:e.empty?this:d6(this,e)}mapDesc(e,t=!1){return e.empty?this:u6(this,e,t)}mapPos(e,t=-1,r=a6.Simple){let n=0,a=0;for(let o=0;o<this.sections.length;){let i=this.sections[o++],s=this.sections[o++],l=n+i;if(s<0){if(l>e)return a+(e-n);a+=i}else{if(r!=a6.Simple&&l>=e&&(r==a6.TrackDel&&n<e&&l>e||r==a6.TrackBefore&&n<e||r==a6.TrackAfter&&l>e))return null;if(l>e||l==e&&t<0&&!i)return e==n||t<0?a:a+s;a+=s}n=l}if(e>n)throw new RangeError(`Position ${e} is out of range for changeset of length ${n}`);return a}touchesRange(e,t=e){for(let r=0,n=0;r<this.sections.length&&n<=t;){let a=n+this.sections[r++];if(this.sections[r++]>=0&&n<=t&&a>=e)return!(n<e&&a>t)||"cover";n=a}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let r=this.sections[t++],n=this.sections[t++];e+=(e?" ":"")+r+(n>=0?":"+n:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new o6(e)}static create(e){return new o6(e)}}class i6 extends o6{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return c6(this,((t,r,n,a,o)=>e=e.replace(n,n+(r-t),o)),!1),e}mapDesc(e,t=!1){return u6(this,e,t,!0)}invert(e){let t=this.sections.slice(),r=[];for(let n=0,a=0;n<t.length;n+=2){let o=t[n],i=t[n+1];if(i>=0){t[n]=i,t[n+1]=o;let s=n>>1;for(;r.length<s;)r.push(z8.empty);r.push(o?e.slice(a,a+o):z8.empty)}a+=o}return new i6(t,r)}compose(e){return this.empty?e:e.empty?this:d6(this,e,!0)}map(e,t=!1){return e.empty?this:u6(this,e,t,!0)}iterChanges(e,t=!1){c6(this,e,t)}get desc(){return o6.create(this.sections)}filter(e){let t=[],r=[],n=[],a=new p6(this);e:for(let o=0,i=0;;){let s=o==e.length?1e9:e[o++];for(;i<s||i==s&&0==a.len;){if(a.done)break e;let e=Math.min(a.len,s-i);s6(n,e,-1);let o=-1==a.ins?-1:0==a.off?a.ins:0;s6(t,e,o),o>0&&l6(r,t,a.text),a.forward(e),i+=e}let l=e[o++];for(;i<l;){if(a.done)break e;let e=Math.min(a.len,l-i);s6(t,e,-1),s6(n,e,-1==a.ins?-1:0==a.off?a.ins:0),a.forward(e),i+=e}}return{changes:new i6(t,r),filtered:o6.create(n)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let r=this.sections[t],n=this.sections[t+1];n<0?e.push(r):0==n?e.push([r]):e.push([r].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,r){let n=[],a=[],o=0,i=null;function s(e=!1){if(!e&&!n.length)return;o<t&&s6(n,t-o,-1);let r=new i6(n,a);i=i?i.compose(r.map(i)):r,n=[],a=[],o=0}return function e(l){if(Array.isArray(l))for(let t of l)e(t);else if(l instanceof i6){if(l.length!=t)throw new RangeError(`Mismatched change set length (got ${l.length}, expected ${t})`);s(),i=i?i.compose(l.map(i)):l}else{let{from:e,to:i=e,insert:c}=l;if(e>i||e<0||i>t)throw new RangeError(`Invalid change range ${e} to ${i} (in doc of length ${t})`);let u=c?"string"==typeof c?z8.of(c.split(r||n6)):c:z8.empty,d=u.length;if(e==i&&0==d)return;e<o&&s(),e>o&&s6(n,e-o,-1),s6(n,i-e,d),l6(a,n,u),o=i}}(e),s(!i),i}static empty(e){return new i6(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],r=[];for(let n=0;n<e.length;n++){let a=e[n];if("number"==typeof a)t.push(a,-1);else{if(!Array.isArray(a)||"number"!=typeof a[0]||a.some(((e,t)=>t&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==a.length)t.push(a[0],0);else{for(;r.length<n;)r.push(z8.empty);r[n]=z8.of(a.slice(1)),t.push(a[0],r[n].length)}}}return new i6(t,r)}static createSet(e,t){return new i6(e,t)}}function s6(e,t,r,n=!1){if(0==t&&r<=0)return;let a=e.length-2;a>=0&&r<=0&&r==e[a+1]?e[a]+=t:a>=0&&0==t&&0==e[a]?e[a+1]+=r:n?(e[a]+=t,e[a+1]+=r):e.push(t,r)}function l6(e,t,r){if(0==r.length)return;let n=t.length-2>>1;if(n<e.length)e[e.length-1]=e[e.length-1].append(r);else{for(;e.length<n;)e.push(z8.empty);e.push(r)}}function c6(e,t,r){let n=e.inserted;for(let a=0,o=0,i=0;i<e.sections.length;){let s=e.sections[i++],l=e.sections[i++];if(l<0)a+=s,o+=s;else{let c=a,u=o,d=z8.empty;for(;c+=s,u+=l,l&&n&&(d=d.append(n[i-2>>1])),!(r||i==e.sections.length||e.sections[i+1]<0);)s=e.sections[i++],l=e.sections[i++];t(a,c,o,u,d),a=c,o=u}}}function u6(e,t,r,n=!1){let a=[],o=n?[]:null,i=new p6(e),s=new p6(t);for(let e=-1;;){if(i.done&&s.len||s.done&&i.len)throw new Error("Mismatched change set lengths");if(-1==i.ins&&-1==s.ins){let e=Math.min(i.len,s.len);s6(a,e,-1),i.forward(e),s.forward(e)}else if(s.ins>=0&&(i.ins<0||e==i.i||0==i.off&&(s.len<i.len||s.len==i.len&&!r))){let t=s.len;for(s6(a,s.ins,-1);t;){let r=Math.min(i.len,t);i.ins>=0&&e<i.i&&i.len<=r&&(s6(a,0,i.ins),o&&l6(o,a,i.text),e=i.i),i.forward(r),t-=r}s.next()}else{if(!(i.ins>=0)){if(i.done&&s.done)return o?i6.createSet(a,o):o6.create(a);throw new Error("Mismatched change set lengths")}{let t=0,r=i.len;for(;r;)if(-1==s.ins){let e=Math.min(r,s.len);t+=e,r-=e,s.forward(e)}else{if(!(0==s.ins&&s.len<r))break;r-=s.len,s.next()}s6(a,t,e<i.i?i.ins:0),o&&e<i.i&&l6(o,a,i.text),e=i.i,i.forward(i.len-r)}}}}function d6(e,t,r=!1){let n=[],a=r?[]:null,o=new p6(e),i=new p6(t);for(let e=!1;;){if(o.done&&i.done)return a?i6.createSet(n,a):o6.create(n);if(0==o.ins)s6(n,o.len,0,e),o.next();else if(0!=i.len||i.done){if(o.done||i.done)throw new Error("Mismatched change set lengths");{let t=Math.min(o.len2,i.len),r=n.length;if(-1==o.ins){let r=-1==i.ins?-1:i.off?0:i.ins;s6(n,t,r,e),a&&r&&l6(a,n,i.text)}else-1==i.ins?(s6(n,o.off?0:o.len,t,e),a&&l6(a,n,o.textBit(t))):(s6(n,o.off?0:o.len,i.off?0:i.ins,e),a&&!i.off&&l6(a,n,i.text));e=(o.ins>t||i.ins>=0&&i.len>t)&&(e||n.length>r),o.forward2(t),i.forward(t)}}else s6(n,0,i.ins,e),a&&l6(a,n,i.text),i.next()}}class p6{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return-2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?z8.empty:e[t]}textBit(e){let{inserted:t}=this.set,r=this.i-2>>1;return r>=t.length&&!e?z8.empty:t[r].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class h6{constructor(e,t,r){this.from=e,this.to=t,this.flags=r}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 16777215==e?void 0:e}map(e,t=-1){let r,n;return this.empty?r=n=e.mapPos(this.from,t):(r=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),r==this.from&&n==this.to?this:new h6(r,n,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return f6.range(e,t);let r=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return f6.range(this.anchor,r)}eq(e,t=!1){return!(this.anchor!=e.anchor||this.head!=e.head||t&&this.empty&&this.assoc!=e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return f6.range(e.anchor,e.head)}static create(e,t,r){return new h6(e,t,r)}}class f6{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:f6.create(this.ranges.map((r=>r.map(e,t))),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let r=0;r<this.ranges.length;r++)if(!this.ranges[r].eq(e.ranges[r],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new f6([this.main],0)}addRange(e,t=!0){return f6.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let r=this.ranges.slice();return r[t]=e,f6.create(r,this.mainIndex)}toJSON(){return{ranges:this.ranges.map((e=>e.toJSON())),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new f6(e.ranges.map((e=>h6.fromJSON(e))),e.main)}static single(e,t=e){return new f6([f6.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let r=0,n=0;n<e.length;n++){let a=e[n];if(a.empty?a.from<=r:a.from<r)return f6.normalized(e.slice(),t);r=a.to}return new f6(e,t)}static cursor(e,t=0,r,n){return h6.create(e,e,(0==t?0:t<0?8:16)|(null==r?7:Math.min(6,r))|(null!=n?n:16777215)<<6)}static range(e,t,r,n){let a=(null!=r?r:16777215)<<6|(null==n?7:Math.min(6,n));return t<e?h6.create(t,e,48|a):h6.create(e,t,(t>e?8:0)|a)}static normalized(e,t=0){let r=e[t];e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(r);for(let r=1;r<e.length;r++){let n=e[r],a=e[r-1];if(n.empty?n.from<=a.to:n.from<a.to){let o=a.from,i=Math.max(n.to,a.to);r<=t&&t--,e.splice(--r,2,n.anchor>n.head?f6.range(i,o):f6.range(o,i))}}return new f6(e,t)}}function m6(e,t){for(let r of e.ranges)if(r.to>t)throw new RangeError("Selection points outside of document")}let g6=0;class v6{constructor(e,t,r,n,a){this.combine=e,this.compareInput=t,this.compare=r,this.isStatic=n,this.id=g6++,this.default=e([]),this.extensions="function"==typeof a?a(this):a}get reader(){return this}static define(e={}){return new v6(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:b6),!!e.static,e.enables)}of(e){return new y6([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new y6(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new y6(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],(r=>t(r.field(e))))}}function b6(e,t){return e==t||e.length==t.length&&e.every(((e,r)=>e===t[r]))}class y6{constructor(e,t,r,n){this.dependencies=e,this.facet=t,this.type=r,this.value=n,this.id=g6++}dynamicSlot(e){var t;let r=this.value,n=this.facet.compareInput,a=this.id,o=e[a]>>1,i=2==this.type,s=!1,l=!1,c=[];for(let r of this.dependencies)"doc"==r?s=!0:"selection"==r?l=!0:1&(null!==(t=e[r.id])&&void 0!==t?t:1)||c.push(e[r.id]);return{create:e=>(e.values[o]=r(e),1),update(e,t){if(s&&t.docChanged||l&&(t.docChanged||t.selection)||w6(e,c)){let t=r(e);if(i?!O6(t,e.values[o],n):!n(t,e.values[o]))return e.values[o]=t,1}return 0},reconfigure:(e,t)=>{let s,l=t.config.address[a];if(null!=l){let a=$6(t,l);if(this.dependencies.every((r=>r instanceof v6?t.facet(r)===e.facet(r):!(r instanceof S6)||t.field(r,!1)==e.field(r,!1)))||(i?O6(s=r(e),a,n):n(s=r(e),a)))return e.values[o]=a,0}else s=r(e);return e.values[o]=s,1}}}}function O6(e,t,r){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1;return!0}function w6(e,t){let r=!1;for(let n of t)1&D6(e,n)&&(r=!0);return r}function x6(e,t,r){let n=r.map((t=>e[t.id])),a=r.map((e=>e.type)),o=n.filter((e=>!(1&e))),i=e[t.id]>>1;function s(e){let r=[];for(let t=0;t<n.length;t++){let o=$6(e,n[t]);if(2==a[t])for(let e of o)r.push(e);else r.push(o)}return t.combine(r)}return{create(e){for(let t of n)D6(e,t);return e.values[i]=s(e),1},update(e,r){if(!w6(e,o))return 0;let n=s(e);return t.compare(n,e.values[i])?0:(e.values[i]=n,1)},reconfigure(e,a){let o=w6(e,n),l=a.config.facets[t.id],c=a.facet(t);if(l&&!o&&b6(r,l))return e.values[i]=c,0;let u=s(e);return t.compare(u,c)?(e.values[i]=c,0):(e.values[i]=u,1)}}}const k6=v6.define({static:!0});class S6{constructor(e,t,r,n,a){this.id=e,this.createF=t,this.updateF=r,this.compareF=n,this.spec=a,this.provides=void 0}static define(e){let t=new S6(g6++,e.create,e.update,e.compare||((e,t)=>e===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(k6).find((e=>e.field==this));return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,r)=>{let n=e.values[t],a=this.updateF(n,r);return this.compareF(n,a)?0:(e.values[t]=a,1)},reconfigure:(e,r)=>null!=r.config.address[this.id]?(e.values[t]=r.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,k6.of({field:this,create:e})]}get extension(){return this}}function _6(e){return t=>new T6(t,e)}const E6={highest:_6(0),high:_6(1),default:_6(2),low:_6(3),lowest:_6(4)};class T6{constructor(e,t){this.inner=e,this.prec=t}}class A6{of(e){return new C6(this,e)}reconfigure(e){return A6.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class C6{constructor(e,t){this.compartment=e,this.inner=t}}class P6{constructor(e,t,r,n,a,o){for(this.base=e,this.compartments=t,this.dynamicSlots=r,this.address=n,this.staticValues=a,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<r.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,r){let n=[],a=Object.create(null),o=new Map;for(let r of function(e,t,r){let n=[[],[],[],[],[]],a=new Map;return function e(o,i){let s=a.get(o);if(null!=s){if(s<=i)return;let e=n[s].indexOf(o);e>-1&&n[s].splice(e,1),o instanceof C6&&r.delete(o.compartment)}if(a.set(o,i),Array.isArray(o))for(let t of o)e(t,i);else if(o instanceof C6){if(r.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let n=t.get(o.compartment)||o.inner;r.set(o.compartment,n),e(n,i)}else if(o instanceof T6)e(o.inner,o.prec);else if(o instanceof S6)n[i].push(o),o.provides&&e(o.provides,i);else if(o instanceof y6)n[i].push(o),o.facet.extensions&&e(o.facet.extensions,2);else{let t=o.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);e(t,i)}}(e,2),n.reduce(((e,t)=>e.concat(t)))}(e,t,o))r instanceof S6?n.push(r):(a[r.facet.id]||(a[r.facet.id]=[])).push(r);let i=Object.create(null),s=[],l=[];for(let e of n)i[e.id]=l.length<<1,l.push((t=>e.slot(t)));let c=null==r?void 0:r.config.facets;for(let e in a){let t=a[e],n=t[0].facet,o=c&&c[e]||[];if(t.every((e=>0==e.type)))if(i[n.id]=s.length<<1|1,b6(o,t))s.push(r.facet(n));else{let e=n.combine(t.map((e=>e.value)));s.push(r&&n.compare(e,r.facet(n))?r.facet(n):e)}else{for(let e of t)0==e.type?(i[e.id]=s.length<<1|1,s.push(e.value)):(i[e.id]=l.length<<1,l.push((t=>e.dynamicSlot(t))));i[n.id]=l.length<<1,l.push((e=>x6(e,n,t)))}}let u=l.map((e=>e(i)));return new P6(e,o,u,i,s,a)}}function D6(e,t){if(1&t)return 2;let r=t>>1,n=e.status[r];if(4==n)throw new Error("Cyclic dependency between fields and/or facets");if(2&n)return n;e.status[r]=4;let a=e.computeSlot(e,e.config.dynamicSlots[r]);return e.status[r]=2|a}function $6(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const R6=v6.define(),M6=v6.define({combine:e=>e.some((e=>e)),static:!0}),N6=v6.define({combine:e=>e.length?e[0]:void 0,static:!0}),I6=v6.define(),L6=v6.define(),j6=v6.define(),B6=v6.define({combine:e=>!!e.length&&e[0]});class U6{constructor(e,t){this.type=e,this.value=t}static define(){return new F6}}class F6{of(e){return new U6(this,e)}}class Q6{constructor(e){this.map=e}of(e){return new z6(this,e)}}class z6{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new z6(this.type,t)}is(e){return this.type==e}static define(e={}){return new Q6(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let r=[];for(let n of e){let e=n.map(t);e&&r.push(e)}return r}}z6.reconfigure=z6.define(),z6.appendConfig=z6.define();class q6{constructor(e,t,r,n,a,o){this.startState=e,this.changes=t,this.selection=r,this.effects=n,this.annotations=a,this.scrollIntoView=o,this._doc=null,this._state=null,r&&m6(r,t.newLength),a.some((e=>e.type==q6.time))||(this.annotations=a.concat(q6.time.of(Date.now())))}static create(e,t,r,n,a,o){return new q6(e,t,r,n,a,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(q6.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function H6(e,t){let r=[];for(let n=0,a=0;;){let o,i;if(n<e.length&&(a==t.length||t[a]>=e[n]))o=e[n++],i=e[n++];else{if(!(a<t.length))return r;o=t[a++],i=t[a++]}!r.length||r[r.length-1]<o?r.push(o,i):r[r.length-1]<i&&(r[r.length-1]=i)}}function V6(e,t,r){var n;let a,o,i;return r?(a=t.changes,o=i6.empty(t.changes.length),i=e.changes.compose(t.changes)):(a=t.changes.map(e.changes),o=e.changes.mapDesc(t.changes,!0),i=e.changes.compose(a)),{changes:i,selection:t.selection?t.selection.map(o):null===(n=e.selection)||void 0===n?void 0:n.map(a),effects:z6.mapEffects(e.effects,a).concat(z6.mapEffects(t.effects,o)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function Z6(e,t,r){let n=t.selection,a=G6(t.annotations);return t.userEvent&&(a=a.concat(q6.userEvent.of(t.userEvent))),{changes:t.changes instanceof i6?t.changes:i6.of(t.changes||[],r,e.facet(N6)),selection:n&&(n instanceof f6?n:f6.single(n.anchor,n.head)),effects:G6(t.effects),annotations:a,scrollIntoView:!!t.scrollIntoView}}function W6(e,t,r){let n=Z6(e,t.length?t[0]:{},e.doc.length);t.length&&!1===t[0].filter&&(r=!1);for(let a=1;a<t.length;a++){!1===t[a].filter&&(r=!1);let o=!!t[a].sequential;n=V6(n,Z6(e,t[a],o?n.changes.newLength:e.doc.length),o)}let a=q6.create(e,n.changes,n.selection,n.effects,n.annotations,n.scrollIntoView);return function(e){let t=e.startState,r=t.facet(j6),n=e;for(let a=r.length-1;a>=0;a--){let o=r[a](e);o&&Object.keys(o).length&&(n=V6(n,Z6(t,o,e.changes.newLength),!0))}return n==e?e:q6.create(t,e.changes,e.selection,n.effects,n.annotations,n.scrollIntoView)}(r?function(e){let t=e.startState,r=!0;for(let n of t.facet(I6)){let t=n(e);if(!1===t){r=!1;break}Array.isArray(t)&&(r=!0===r?t:H6(r,t))}if(!0!==r){let n,a;if(!1===r)a=e.changes.invertedDesc,n=i6.empty(t.doc.length);else{let t=e.changes.filter(r);n=t.changes,a=t.filtered.mapDesc(t.changes).invertedDesc}e=q6.create(t,n,e.selection&&e.selection.map(a),z6.mapEffects(e.effects,a),e.annotations,e.scrollIntoView)}let n=t.facet(L6);for(let r=n.length-1;r>=0;r--){let a=n[r](e);e=a instanceof q6?a:Array.isArray(a)&&1==a.length&&a[0]instanceof q6?a[0]:W6(t,G6(a),!1)}return e}(a):a)}q6.time=U6.define(),q6.userEvent=U6.define(),q6.addToHistory=U6.define(),q6.remote=U6.define();const X6=[];function G6(e){return null==e?X6:Array.isArray(e)?e:[e]}var Y6=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(Y6||(Y6={}));const K6=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let J6;try{J6=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}class e7{constructor(e,t,r,n,a,o){this.config=e,this.doc=t,this.selection=r,this.values=n,this.status=e.statusTemplate.slice(),this.computeSlot=a,o&&(o._state=this);for(let e=0;e<this.config.dynamicSlots.length;e++)D6(this,e<<1);this.computeSlot=null}field(e,t=!0){let r=this.config.address[e.id];if(null!=r)return D6(this,r),$6(this,r);if(t)throw new RangeError("Field is not present in this state")}update(...e){return W6(this,e,!0)}applyTransaction(e){let t,r=this.config,{base:n,compartments:a}=r;for(let t of e.effects)t.is(A6.reconfigure)?(r&&(a=new Map,r.compartments.forEach(((e,t)=>a.set(t,e))),r=null),a.set(t.value.compartment,t.value.extension)):t.is(z6.reconfigure)?(r=null,n=t.value):t.is(z6.appendConfig)&&(r=null,n=G6(n).concat(t.value));r?t=e.startState.values.slice():(r=P6.resolve(n,a,this),t=new e7(r,this.doc,this.selection,r.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null).values);let o=e.startState.facet(M6)?e.newSelection:e.newSelection.asSingle();new e7(r,e.newDoc,o,t,((t,r)=>r.update(t,e)),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:e},range:f6.cursor(t.from+e.length)})))}changeByRange(e){let t=this.selection,r=e(t.ranges[0]),n=this.changes(r.changes),a=[r.range],o=G6(r.effects);for(let r=1;r<t.ranges.length;r++){let i=e(t.ranges[r]),s=this.changes(i.changes),l=s.map(n);for(let e=0;e<r;e++)a[e]=a[e].map(l);let c=n.mapDesc(s,!0);a.push(i.range.map(c)),n=n.compose(l),o=z6.mapEffects(o,l).concat(z6.mapEffects(G6(i.effects),c))}return{changes:n,selection:f6.create(a,t.mainIndex),effects:o}}changes(e=[]){return e instanceof i6?e:i6.of(e,this.doc.length,this.facet(e7.lineSeparator))}toText(e){return z8.of(e.split(this.facet(e7.lineSeparator)||n6))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(D6(this,t),$6(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let r in e){let n=e[r];n instanceof S6&&null!=this.config.address[n.id]&&(t[r]=n.spec.toJSON(this.field(e[r]),this))}return t}static fromJSON(e,t={},r){if(!e||"string"!=typeof e.doc)throw new RangeError("Invalid JSON representation for EditorState");let n=[];if(r)for(let t in r)if(Object.prototype.hasOwnProperty.call(e,t)){let a=r[t],o=e[t];n.push(a.init((e=>a.spec.fromJSON(o,e))))}return e7.create({doc:e.doc,selection:f6.fromJSON(e.selection),extensions:t.extensions?n.concat([t.extensions]):n})}static create(e={}){let t=P6.resolve(e.extensions||[],new Map),r=e.doc instanceof z8?e.doc:z8.of((e.doc||"").split(t.staticFacet(e7.lineSeparator)||n6)),n=e.selection?e.selection instanceof f6?e.selection:f6.single(e.selection.anchor,e.selection.head):f6.single(0);return m6(n,r.length),t.staticFacet(M6)||(n=n.asSingle()),new e7(t,r,n,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)}get tabSize(){return this.facet(e7.tabSize)}get lineBreak(){return this.facet(e7.lineSeparator)||"\n"}get readOnly(){return this.facet(B6)}phrase(e,...t){for(let t of this.facet(e7.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,((e,r)=>{if("$"==r)return"$";let n=+(r||1);return!n||n>t.length?e:t[n-1]}))),e}languageDataAt(e,t,r=-1){let n=[];for(let a of this.facet(R6))for(let o of a(this,t,r))Object.prototype.hasOwnProperty.call(o,e)&&n.push(o[e]);return n}charCategorizer(e){return function(e){return t=>{if(!/\S/.test(t))return Y6.Space;if(function(e){if(J6)return J6.test(e);for(let t=0;t<e.length;t++){let r=e[t];if(/\w/.test(r)||r>""&&(r.toUpperCase()!=r.toLowerCase()||K6.test(r)))return!0}return!1}(t))return Y6.Word;for(let r=0;r<e.length;r++)if(t.indexOf(e[r])>-1)return Y6.Word;return Y6.Other}}(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:r,length:n}=this.doc.lineAt(e),a=this.charCategorizer(e),o=e-r,i=e-r;for(;o>0;){let e=J8(t,o,!1);if(a(t.slice(e,o))!=Y6.Word)break;o=e}for(;i<n;){let e=J8(t,i);if(a(t.slice(i,e))!=Y6.Word)break;i=e}return o==i?null:f6.range(o+r,i+r)}}function t7(e,t,r={}){let n={};for(let t of e)for(let e of Object.keys(t)){let a=t[e],o=n[e];if(void 0===o)n[e]=a;else if(o===a||void 0===a);else{if(!Object.hasOwnProperty.call(r,e))throw new Error("Config merge conflict for field "+e);n[e]=r[e](o,a)}}for(let e in t)void 0===n[e]&&(n[e]=t[e]);return n}e7.allowMultipleSelections=M6,e7.tabSize=v6.define({combine:e=>e.length?e[0]:4}),e7.lineSeparator=N6,e7.readOnly=B6,e7.phrases=v6.define({compare(e,t){let r=Object.keys(e),n=Object.keys(t);return r.length==n.length&&r.every((r=>e[r]==t[r]))}}),e7.languageData=R6,e7.changeFilter=I6,e7.transactionFilter=L6,e7.transactionExtender=j6,A6.reconfigure=z6.define();class r7{eq(e){return this==e}range(e,t=e){return n7.create(e,t,this)}}r7.prototype.startSide=r7.prototype.endSide=0,r7.prototype.point=!1,r7.prototype.mapMode=a6.TrackDel;let n7=class e{constructor(e,t,r){this.from=e,this.to=t,this.value=r}static create(t,r,n){return new e(t,r,n)}};function a7(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class o7{constructor(e,t,r,n){this.from=e,this.to=t,this.value=r,this.maxPoint=n}get length(){return this.to[this.to.length-1]}findIndex(e,t,r,n=0){let a=r?this.to:this.from;for(let o=n,i=a.length;;){if(o==i)return o;let n=o+i>>1,s=a[n]-e||(r?this.value[n].endSide:this.value[n].startSide)-t;if(n==o)return s>=0?o:i;s>=0?i=n:o=n+1}}between(e,t,r,n){for(let a=this.findIndex(t,-1e9,!0),o=this.findIndex(r,1e9,!1,a);a<o;a++)if(!1===n(this.from[a]+e,this.to[a]+e,this.value[a]))return!1}map(e,t){let r=[],n=[],a=[],o=-1,i=-1;for(let s=0;s<this.value.length;s++){let l,c,u=this.value[s],d=this.from[s]+e,p=this.to[s]+e;if(d==p){let e=t.mapPos(d,u.startSide,u.mapMode);if(null==e)continue;if(l=c=e,u.startSide!=u.endSide&&(c=t.mapPos(d,u.endSide),c<l))continue}else if(l=t.mapPos(d,u.startSide),c=t.mapPos(p,u.endSide),l>c||l==c&&u.startSide>0&&u.endSide<=0)continue;(c-l||u.endSide-u.startSide)<0||(o<0&&(o=l),u.point&&(i=Math.max(i,c-l)),r.push(u),n.push(l-o),a.push(c-o))}return{mapped:r.length?new o7(n,a,r,i):null,pos:o}}}class i7{constructor(e,t,r,n){this.chunkPos=e,this.chunk=t,this.nextLayer=r,this.maxPoint=n}static create(e,t,r,n){return new i7(e,t,r,n)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:r=!1,filterFrom:n=0,filterTo:a=this.length}=e,o=e.filter;if(0==t.length&&!o)return this;if(r&&(t=t.slice().sort(a7)),this.isEmpty)return t.length?i7.of(t):this;let i=new c7(this,null,-1).goto(0),s=0,l=[],c=new s7;for(;i.value||s<t.length;)if(s<t.length&&(i.from-t[s].from||i.startSide-t[s].value.startSide)>=0){let e=t[s++];c.addInner(e.from,e.to,e.value)||l.push(e)}else 1==i.rangeIndex&&i.chunkIndex<this.chunk.length&&(s==t.length||this.chunkEnd(i.chunkIndex)<t[s].from)&&(!o||n>this.chunkEnd(i.chunkIndex)||a<this.chunkPos[i.chunkIndex])&&c.addChunk(this.chunkPos[i.chunkIndex],this.chunk[i.chunkIndex])?i.nextChunk():((!o||n>i.to||a<i.from||o(i.from,i.to,i.value))&&(c.addInner(i.from,i.to,i.value)||l.push(n7.create(i.from,i.to,i.value))),i.next());return c.finishInner(this.nextLayer.isEmpty&&!l.length?i7.empty:this.nextLayer.update({add:l,filter:o,filterFrom:n,filterTo:a}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],r=[],n=-1;for(let a=0;a<this.chunk.length;a++){let o=this.chunkPos[a],i=this.chunk[a],s=e.touchesRange(o,o+i.length);if(!1===s)n=Math.max(n,i.maxPoint),t.push(i),r.push(e.mapPos(o));else if(!0===s){let{mapped:a,pos:s}=i.map(o,e);a&&(n=Math.max(n,a.maxPoint),t.push(a),r.push(s))}}let a=this.nextLayer.map(e);return 0==t.length?a:new i7(r,t,a||i7.empty,n)}between(e,t,r){if(!this.isEmpty){for(let n=0;n<this.chunk.length;n++){let a=this.chunkPos[n],o=this.chunk[n];if(t>=a&&e<=a+o.length&&!1===o.between(a,e-a,t-a,r))return}this.nextLayer.between(e,t,r)}}iter(e=0){return u7.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return u7.from(e).goto(t)}static compare(e,t,r,n,a=-1){let o=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=a)),i=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=a)),s=l7(o,i,r),l=new p7(o,s,a),c=new p7(i,s,a);r.iterGaps(((e,t,r)=>h7(l,e,c,t,r,n))),r.empty&&0==r.length&&h7(l,0,c,0,0,n)}static eq(e,t,r=0,n){null==n&&(n=999999999);let a=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),o=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));if(a.length!=o.length)return!1;if(!a.length)return!0;let i=l7(a,o),s=new p7(a,i,0).goto(r),l=new p7(o,i,0).goto(r);for(;;){if(s.to!=l.to||!f7(s.active,l.active)||s.point&&(!l.point||!s.point.eq(l.point)))return!1;if(s.to>n)return!0;s.next(),l.next()}}static spans(e,t,r,n,a=-1){let o=new p7(e,null,a).goto(t),i=t,s=o.openStart;for(;;){let e=Math.min(o.to,r);if(o.point){let r=o.activeForPoint(o.to),a=o.pointFrom<t?r.length+1:o.point.startSide<0?r.length:Math.min(r.length,s);n.point(i,e,o.point,r,a,o.pointRank),s=Math.min(o.openEnd(e),r.length)}else e>i&&(n.span(i,e,o.active,s),s=o.openEnd(e));if(o.to>r)return s+(o.point&&o.to>r?1:0);i=o.to,o.next()}}static of(e,t=!1){let r=new s7;for(let n of e instanceof n7?[e]:t?function(e){if(e.length>1)for(let t=e[0],r=1;r<e.length;r++){let n=e[r];if(a7(t,n)>0)return e.slice().sort(a7);t=n}return e}(e):e)r.add(n.from,n.to,n.value);return r.finish()}static join(e){if(!e.length)return i7.empty;let t=e[e.length-1];for(let r=e.length-2;r>=0;r--)for(let n=e[r];n!=i7.empty;n=n.nextLayer)t=new i7(n.chunkPos,n.chunk,t,Math.max(n.maxPoint,t.maxPoint));return t}}i7.empty=new i7([],[],null,-1),i7.empty.nextLayer=i7.empty;class s7{finishChunk(e){this.chunks.push(new o7(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,r){this.addInner(e,t,r)||(this.nextLayer||(this.nextLayer=new s7)).add(e,t,r)}addInner(e,t,r){let n=e-this.lastTo||r.startSide-this.last.endSide;if(n<=0&&(e-this.lastFrom||r.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(n<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=r,this.lastFrom=e,this.lastTo=t,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),0))}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let r=t.value.length-1;return this.last=t.value[r],this.lastFrom=t.from[r]+e,this.lastTo=t.to[r]+e,!0}finish(){return this.finishInner(i7.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=i7.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function l7(e,t,r){let n=new Map;for(let t of e)for(let e=0;e<t.chunk.length;e++)t.chunk[e].maxPoint<=0&&n.set(t.chunk[e],t.chunkPos[e]);let a=new Set;for(let e of t)for(let t=0;t<e.chunk.length;t++){let o=n.get(e.chunk[t]);null==o||(r?r.mapPos(o):o)!=e.chunkPos[t]||(null==r?void 0:r.touchesRange(o,o+e.chunk[t].length))||a.add(e.chunk[t])}return a}class c7{constructor(e,t,r,n=0){this.layer=e,this.skip=t,this.minPoint=r,this.rank=n}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,r){for(;this.chunkIndex<this.layer.chunk.length;){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++,r=!1}if(this.chunkIndex<this.layer.chunk.length){let n=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!r||this.rangeIndex<n)&&this.setRangeIndex(n)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],r=e+t.from[this.rangeIndex];if(this.from=r,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class u7{constructor(e){this.heap=e}static from(e,t=null,r=-1){let n=[];for(let a=0;a<e.length;a++)for(let o=e[a];!o.isEmpty;o=o.nextLayer)o.maxPoint>=r&&n.push(new c7(o,t,r,a));return 1==n.length?n[0]:new u7(n)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let r of this.heap)r.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)d7(this.heap,e);return this.next(),this}forward(e,t){for(let r of this.heap)r.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)d7(this.heap,e);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),d7(this.heap,0)}}}function d7(e,t){for(let r=e[t];;){let n=1+(t<<1);if(n>=e.length)break;let a=e[n];if(n+1<e.length&&a.compare(e[n+1])>=0&&(a=e[n+1],n++),r.compare(a)<0)break;e[n]=r,e[t]=a,t=n}}class p7{constructor(e,t,r){this.minPoint=r,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=u7.from(e,t,r)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){m7(this.active,e),m7(this.activeTo,e),m7(this.activeRank,e),this.minActive=v7(this.active,this.activeTo)}addActive(e){let t=0,{value:r,to:n,rank:a}=this.cursor;for(;t<this.activeRank.length&&(a-this.activeRank[t]||n-this.activeTo[t])>0;)t++;g7(this.active,t,r),g7(this.activeTo,t,n),g7(this.activeRank,t,a),e&&g7(e,t,this.cursor.from),this.minActive=v7(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let r=this.openStart<0?[]:null;for(;;){let n=this.minActive;if(n>-1&&(this.activeTo[n]-this.cursor.from||this.active[n].endSide-this.cursor.startSide)<0){if(this.activeTo[n]>e){this.to=this.activeTo[n],this.endSide=this.active[n].endSide;break}this.removeActive(n),r&&m7(r,n)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)){this.point=e,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=e.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}this.cursor.next()}else this.addActive(r),this.cursor.next()}}}if(r){this.openStart=0;for(let t=r.length-1;t>=0&&r[t]<e;t--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let r=this.active.length-1;r>=0&&!(this.activeRank[r]<this.pointRank);r--)(this.activeTo[r]>e||this.activeTo[r]==e&&this.active[r].endSide>=this.point.endSide)&&t.push(this.active[r]);return t.reverse()}openEnd(e){let t=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>e;r--)t++;return t}}function h7(e,t,r,n,a,o){e.goto(t),r.goto(n);let i=n+a,s=n,l=n-t;for(;;){let t=e.to+l-r.to,n=t||e.endSide-r.endSide,a=n<0?e.to+l:r.to,c=Math.min(a,i);if(e.point||r.point?e.point&&r.point&&(e.point==r.point||e.point.eq(r.point))&&f7(e.activeForPoint(e.to),r.activeForPoint(r.to))||o.comparePoint(s,c,e.point,r.point):c>s&&!f7(e.active,r.active)&&o.compareRange(s,c,e.active,r.active),a>i)break;(t||e.openEnd!=r.openEnd)&&o.boundChange&&o.boundChange(a),s=a,n<=0&&e.next(),n>=0&&r.next()}}function f7(e,t){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!=t[r]&&!e[r].eq(t[r]))return!1;return!0}function m7(e,t){for(let r=t,n=e.length-1;r<n;r++)e[r]=e[r+1];e.pop()}function g7(e,t,r){for(let r=e.length-1;r>=t;r--)e[r+1]=e[r];e[t]=r}function v7(e,t){let r=-1,n=1e9;for(let a=0;a<t.length;a++)(t[a]-n||e[a].endSide-e[r].endSide)<0&&(r=a,n=t[a]);return r}function b7(e,t,r=e.length){let n=0;for(let a=0;a<r;)9==e.charCodeAt(a)?(n+=t-n%t,a++):(n++,a=J8(e,a));return n}const y7="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),O7="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),w7="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class x7{constructor(e,t){this.rules=[];let{finish:r}=t||{};function n(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function a(e,t,o,i){let s=[],l=/^@(\w+)\b/.exec(e[0]),c=l&&"keyframes"==l[1];if(l&&null==t)return o.push(e[0]+";");for(let r in t){let i=t[r];if(/&/.test(r))a(r.split(/,\s*/).map((t=>e.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),i,o);else if(i&&"object"==typeof i){if(!l)throw new RangeError("The value of a property ("+r+") should be a primitive value.");a(n(r),i,s,c)}else null!=i&&s.push(r.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+i+";")}(s.length||c)&&o.push((!r||l||i?e:e.map(r)).join(", ")+" {"+s.join(" ")+"}")}for(let t in e)a(n(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=w7[y7]||1;return w7[y7]=e+1,"ͼ"+e.toString(36)}static mount(e,t,r){let n=e[O7],a=r&&r.nonce;n?a&&n.setNonce(a):n=new S7(e,a),n.mount(Array.isArray(t)?t:[t],e)}}let k7=new Map;class S7{constructor(e,t){let r=e.ownerDocument||e,n=r.defaultView;if(!e.head&&e.adoptedStyleSheets&&n.CSSStyleSheet){let t=k7.get(r);if(t)return e[O7]=t;this.sheet=new n.CSSStyleSheet,k7.set(r,this)}else this.styleTag=r.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[O7]=this}mount(e,t){let r=this.sheet,n=0,a=0;for(let t=0;t<e.length;t++){let o=e[t],i=this.modules.indexOf(o);if(i<a&&i>-1&&(this.modules.splice(i,1),a--,i=-1),-1==i){if(this.modules.splice(a++,0,o),r)for(let e=0;e<o.rules.length;e++)r.insertRule(o.rules[e],n++)}else{for(;a<i;)n+=this.modules[a++].rules.length;n+=o.rules.length,a++}}if(r)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let e="";for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+"\n";this.styleTag.textContent=e;let r=t.head||t;this.styleTag.parentNode!=r&&r.insertBefore(this.styleTag,r.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}for(var _7={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},E7={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},T7="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),A7="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),C7=0;C7<10;C7++)_7[48+C7]=_7[96+C7]=String(C7);for(C7=1;C7<=24;C7++)_7[C7+111]="F"+C7;for(C7=65;C7<=90;C7++)_7[C7]=String.fromCharCode(C7+32),E7[C7]=String.fromCharCode(C7);for(var P7 in _7)E7.hasOwnProperty(P7)||(E7[P7]=_7[P7]);function D7(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function $7(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function R7(e,t){if(!t.anchorNode)return!1;try{return $7(e,t.anchorNode)}catch(e){return!1}}function M7(e){return 3==e.nodeType?Z7(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function N7(e,t,r,n){return!!r&&(j7(e,t,r,n,-1)||j7(e,t,r,n,1))}function I7(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function L7(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}function j7(e,t,r,n,a){for(;;){if(e==r&&t==n)return!0;if(t==(a<0?0:B7(e))){if("DIV"==e.nodeName)return!1;let r=e.parentNode;if(!r||1!=r.nodeType)return!1;t=I7(e)+(a<0?0:1),e=r}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(a<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=a<0?B7(e):0}}}function B7(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function U7(e,t){let r=t?e.left:e.right;return{left:r,right:r,top:e.top,bottom:e.bottom}}function F7(e){let t=e.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function Q7(e,t){let r=t.width/e.offsetWidth,n=t.height/e.offsetHeight;return(r>.995&&r<1.005||!isFinite(r)||Math.abs(t.width-e.offsetWidth)<1)&&(r=1),(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.height-e.offsetHeight)<1)&&(n=1),{scaleX:r,scaleY:n}}class z7{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:r}=e;this.set(t,Math.min(e.anchorOffset,t?B7(t):0),r,Math.min(e.focusOffset,r?B7(r):0))}set(e,t,r,n){this.anchorNode=e,this.anchorOffset=t,this.focusNode=r,this.focusOffset=n}}let q7,H7=null;function V7(e){if(e.setActive)return e.setActive();if(H7)return e.focus(H7);let t=[];for(let r=e;r&&(t.push(r,r.scrollTop,r.scrollLeft),r!=r.ownerDocument);r=r.parentNode);if(e.focus(null==H7?{get preventScroll(){return H7={preventScroll:!0},!0}}:void 0),!H7){H7=!1;for(let e=0;e<t.length;){let r=t[e++],n=t[e++],a=t[e++];r.scrollTop!=n&&(r.scrollTop=n),r.scrollLeft!=a&&(r.scrollLeft=a)}}}function Z7(e,t,r=t){let n=q7||(q7=document.createRange());return n.setEnd(e,r),n.setStart(e,t),n}function W7(e,t,r,n){let a={key:t,code:t,keyCode:r,which:r,cancelable:!0};n&&({altKey:a.altKey,ctrlKey:a.ctrlKey,shiftKey:a.shiftKey,metaKey:a.metaKey}=n);let o=new KeyboardEvent("keydown",a);o.synthetic=!0,e.dispatchEvent(o);let i=new KeyboardEvent("keyup",a);return i.synthetic=!0,e.dispatchEvent(i),o.defaultPrevented||i.defaultPrevented}function X7(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}function G7(e){return e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}function Y7(e,t){for(let r=e,n=t;;){if(3==r.nodeType&&n>0)return{node:r,offset:n};if(1==r.nodeType&&n>0){if("false"==r.contentEditable)return null;r=r.childNodes[n-1],n=B7(r)}else{if(!r.parentNode||L7(r))return null;n=I7(r),r=r.parentNode}}}function K7(e,t){for(let r=e,n=t;;){if(3==r.nodeType&&n<r.nodeValue.length)return{node:r,offset:n};if(1==r.nodeType&&n<r.childNodes.length){if("false"==r.contentEditable)return null;r=r.childNodes[n],n=0}else{if(!r.parentNode||L7(r))return null;n=I7(r)+1,r=r.parentNode}}}class J7{constructor(e,t,r=!0){this.node=e,this.offset=t,this.precise=r}static before(e,t){return new J7(e.parentNode,I7(e),t)}static after(e,t){return new J7(e.parentNode,I7(e)+1,t)}}const e9=[];class t9{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let r of this.children){if(r==e)return t;t+=r.length+r.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(2&this.flags){let r,n=this.dom,a=null;for(let o of this.children){if(7&o.flags){if(!o.dom&&(r=a?a.nextSibling:n.firstChild)){let e=t9.get(r);(!e||!e.parent&&e.canReuseDOM(o))&&o.reuseDOM(r)}o.sync(e,t),o.flags&=-8}if(r=a?a.nextSibling:n.firstChild,t&&!t.written&&t.node==n&&r!=o.dom&&(t.written=!0),o.dom.parentNode==n)for(;r&&r!=o.dom;)r=r9(r);else n.insertBefore(o.dom,r);a=o.dom}for(r=a?a.nextSibling:n.firstChild,r&&t&&t.node==n&&(t.written=!0);r;)r=r9(r)}else if(1&this.flags)for(let r of this.children)7&r.flags&&(r.sync(e,t),r.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let r;if(e==this.dom)r=this.dom.childNodes[t];else{let n=0==B7(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==this.dom)break;0==n&&t.firstChild!=t.lastChild&&(n=e==t.firstChild?-1:1),e=t}r=n<0?e:e.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!t9.get(r);)r=r.nextSibling;if(!r)return this.length;for(let e=0,t=0;;e++){let n=this.children[e];if(n.dom==r)return t;t+=n.length+n.breakAfter}}domBoundsAround(e,t,r=0){let n=-1,a=-1,o=-1,i=-1;for(let s=0,l=r,c=r;s<this.children.length;s++){let r=this.children[s],u=l+r.length;if(l<e&&u>t)return r.domBoundsAround(e,t,l);if(u>=e&&-1==n&&(n=s,a=l),l>t&&r.dom.parentNode==this.dom){o=s,i=c;break}c=u,l=u+r.breakAfter}return{from:a,to:i<0?r+this.length:i,startDOM:(n?this.children[n-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o<this.children.length&&o>=0?this.children[o].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),1&t.flags)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,7&this.flags&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,r=e9){this.markDirty();for(let n=e;n<t;n++){let e=this.children[n];e.parent==this&&r.indexOf(e)<0&&e.destroy()}r.length<250?this.children.splice(e,t-e,...r):this.children=[].concat(this.children.slice(0,e),r,this.children.slice(t));for(let e=0;e<r.length;e++)r[e].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new n9(this.children,e,this.children.length)}childPos(e,t=1){return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==e?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,t,r,n,a,o){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!(8&(this.flags|e.flags))}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}function r9(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}t9.prototype.breakAfter=0;class n9{constructor(e,t,r){this.children=e,this.pos=t,this.i=r,this.off=0}findPos(e,t=1){for(;;){if(e>this.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let r=this.children[--this.i];this.pos-=r.length+r.breakAfter}}}function a9(e,t,r,n,a,o,i,s,l){let{children:c}=e,u=c.length?c[t]:null,d=o.length?o[o.length-1]:null,p=d?d.breakAfter:i;if(!(t==n&&u&&!i&&!p&&o.length<2&&u.merge(r,a,o.length?d:null,0==r,s,l))){if(n<c.length){let e=c[n];e&&(a<e.length||e.breakAfter&&(null==d?void 0:d.breakAfter))?(t==n&&(e=e.split(a),a=0),!p&&d&&e.merge(0,a,d,!0,0,l)?o[o.length-1]=e:((a||e.children.length&&!e.children[0].length)&&e.merge(0,a,null,!1,0,l),o.push(e))):(null==e?void 0:e.breakAfter)&&(d?d.breakAfter=1:i=1),n++}for(u&&(u.breakAfter=i,r>0&&(!i&&o.length&&u.merge(r,u.length,o[0],!1,s,0)?u.breakAfter=o.shift().breakAfter:(r<u.length||u.children.length&&0==u.children[u.children.length-1].length)&&u.merge(r,u.length,null,!1,s,0),t++));t<n&&o.length;)if(c[n-1].become(o[o.length-1]))n--,o.pop(),l=o.length?0:s;else{if(!c[t].become(o[0]))break;t++,o.shift(),s=o.length?0:l}!o.length&&t&&n<c.length&&!c[t-1].breakAfter&&c[n].merge(0,0,c[t-1],!1,s,l)&&t--,(t<n||o.length)&&e.replaceChildren(t,n,o)}}function o9(e,t,r,n,a,o){let i=e.childCursor(),{i:s,off:l}=i.findPos(r,1),{i:c,off:u}=i.findPos(t,-1),d=t-r;for(let e of n)d+=e.length;e.length+=d,a9(e,c,u,s,l,n,0,a,o)}let i9="undefined"!=typeof navigator?navigator:{userAgent:"",vendor:"",platform:""},s9="undefined"!=typeof document?document:{documentElement:{style:{}}};const l9=/Edge\/(\d+)/.exec(i9.userAgent),c9=/MSIE \d/.test(i9.userAgent),u9=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i9.userAgent),d9=!!(c9||u9||l9),p9=!d9&&/gecko\/(\d+)/i.test(i9.userAgent),h9=!d9&&/Chrome\/(\d+)/.exec(i9.userAgent),f9="webkitFontSmoothing"in s9.documentElement.style,m9=!d9&&/Apple Computer/.test(i9.vendor),g9=m9&&(/Mobile\/\w+/.test(i9.userAgent)||i9.maxTouchPoints>2);var v9={mac:g9||/Mac/.test(i9.platform),windows:/Win/.test(i9.platform),linux:/Linux|X11/.test(i9.platform),ie:d9,ie_version:c9?s9.documentMode||6:u9?+u9[1]:l9?+l9[1]:0,gecko:p9,gecko_version:p9?+(/Firefox\/(\d+)/.exec(i9.userAgent)||[0,0])[1]:0,chrome:!!h9,chrome_version:h9?+h9[1]:0,ios:g9,android:/Android\b/.test(i9.userAgent),webkit:f9,safari:m9,webkit_version:f9?+(/\bAppleWebKit\/(\d+)/.exec(i9.userAgent)||[0,0])[1]:0,tabSize:null!=s9.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class b9 extends t9{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,r){return!(8&this.flags||r&&(!(r instanceof b9)||this.length-(t-e)+r.length>256||8&r.flags)||(this.text=this.text.slice(0,e)+(r?r.text:"")+this.text.slice(t),this.markDirty(),0))}split(e){let t=new b9(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=8&this.flags,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new J7(this.dom,e)}domBoundsAround(e,t,r){return{from:r,to:r+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return function(e,t,r){let n=e.nodeValue.length;t>n&&(t=n);let a=t,o=t,i=0;0==t&&r<0||t==n&&r>=0?v9.chrome||v9.gecko||(t?(a--,i=1):o<n&&(o++,i=-1)):r<0?a--:o<n&&o++;let s=Z7(e,a,o).getClientRects();if(!s.length)return null;let l=s[(i?i<0:r>=0)?0:s.length-1];return v9.safari&&!i&&0==l.width&&(l=Array.prototype.find.call(s,(e=>e.width))||l),i?U7(l,i<0):l||null}(this.dom,e,t)}}class y9 extends t9{constructor(e,t=[],r=0){super(),this.mark=e,this.children=t,this.length=r;for(let e of t)e.setParent(this)}setAttrs(e){if(X7(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!(8&(this.flags|e.flags))}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,r,n,a,o){return!(r&&(!(r instanceof y9&&r.mark.eq(this.mark))||e&&a<=0||t<this.length&&o<=0)||(o9(this,e,t,r?r.children.slice():[],a-1,o-1),this.markDirty(),0))}split(e){let t=[],r=0,n=-1,a=0;for(let o of this.children){let i=r+o.length;i>e&&t.push(r<e?o.split(e-r):o),n<0&&r>=e&&(n=a),r=i,a++}let o=this.length-e;return this.length=e,n>-1&&(this.children.length=n,this.markDirty()),new y9(this.mark,t,o)}domAtPos(e){return x9(this,e)}coordsAt(e,t){return S9(this,e,t)}}class O9 extends t9{static create(e,t,r){return new O9(e,t,r)}constructor(e,t,r){super(),this.widget=e,this.length=t,this.side=r,this.prevWidget=null}split(e){let t=O9.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,r,n,a,o){return!(r&&(!(r instanceof O9&&this.widget.compare(r.widget))||e>0&&a<=0||t<this.length&&o<=0)||(this.length=e+(r?r.length:0)+(this.length-t),0))}become(e){return e instanceof O9&&e.side==this.side&&this.widget.constructor==e.widget.constructor&&(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(0==this.length)return z8.empty;let e=this;for(;e.parent;)e=e.parent;let{view:t}=e,r=t&&t.state.doc,n=this.posAtStart;return r?r.slice(n,n+this.length):z8.empty}domAtPos(e){return(this.length?0==e:this.side>0)?J7.before(this.dom):J7.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let r=this.widget.coordsAt(this.dom,e,t);if(r)return r;let n=this.dom.getClientRects(),a=null;if(!n.length)return null;let o=this.side?this.side<0:e>0;for(let t=o?n.length-1:0;a=n[t],!(e>0?0==t:t==n.length-1||a.top<a.bottom);t+=o?-1:1);return U7(a,!o)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class w9 extends t9{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof w9&&e.side==this.side}split(){return new w9(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?J7.before(this.dom):J7.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return z8.empty}get isHidden(){return!0}}function x9(e,t){let r=e.dom,{children:n}=e,a=0;for(let e=0;a<n.length;a++){let o=n[a],i=e+o.length;if(!(i==e&&o.getSide()<=0)){if(t>e&&t<i&&o.dom.parentNode==r)return o.domAtPos(t-e);if(t<=e)break;e=i}}for(let e=a;e>0;e--){let t=n[e-1];if(t.dom.parentNode==r)return t.domAtPos(t.length)}for(let e=a;e<n.length;e++){let t=n[e];if(t.dom.parentNode==r)return t.domAtPos(0)}return new J7(r,0)}function k9(e,t,r){let n,{children:a}=e;r>0&&t instanceof y9&&a.length&&(n=a[a.length-1])instanceof y9&&n.mark.eq(t.mark)?k9(n,t.children[0],r-1):(a.push(t),t.setParent(e)),e.length+=t.length}function S9(e,t,r){let n=null,a=-1,o=null,i=-1;!function e(t,s){for(let l=0,c=0;l<t.children.length&&c<=s;l++){let u=t.children[l],d=c+u.length;d>=s&&(u.children.length?e(u,s-c):(!o||o.isHidden&&r>0)&&(d>s||c==d&&u.getSide()>0)?(o=u,i=s-c):(c<s||c==d&&u.getSide()<0&&!u.isHidden)&&(n=u,a=s-c)),c=d}}(e,t);let s=(r<0?n:o)||n||o;return s?s.coordsAt(Math.max(0,s==n?a:i),r):function(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let r=M7(t);return r[r.length-1]||null}(e)}function _9(e,t){for(let r in e)"class"==r&&t.class?t.class+=" "+e.class:"style"==r&&t.style?t.style+=";"+e.style:t[r]=e[r];return t}b9.prototype.children=O9.prototype.children=w9.prototype.children=e9;const E9=Object.create(null);function T9(e,t,r){if(e==t)return!0;e||(e=E9),t||(t=E9);let n=Object.keys(e),a=Object.keys(t);if(n.length-(r&&n.indexOf(r)>-1?1:0)!=a.length-(r&&a.indexOf(r)>-1?1:0))return!1;for(let o of n)if(o!=r&&(-1==a.indexOf(o)||e[o]!==t[o]))return!1;return!0}function A9(e,t,r){let n=!1;if(t)for(let a in t)r&&a in r||(n=!0,"style"==a?e.style.cssText="":e.removeAttribute(a));if(r)for(let a in r)t&&t[a]==r[a]||(n=!0,"style"==a?e.style.cssText=r[a]:e.setAttribute(a,r[a]));return n}function C9(e){let t=Object.create(null);for(let r=0;r<e.attributes.length;r++){let n=e.attributes[r];t[n.name]=n.value}return t}class P9{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,r){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var D9=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(D9||(D9={}));class $9 extends r7{constructor(e,t,r,n){super(),this.startSide=e,this.endSide=t,this.widget=r,this.spec=n}get heightRelevant(){return!1}static mark(e){return new R9(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),r=!!e.block;return t+=r&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new N9(e,t,t,r,e.widget||null,!1)}static replace(e){let t,r,n=!!e.block;if(e.isBlockGap)t=-5e8,r=4e8;else{let{start:a,end:o}=I9(e,n);t=(a?n?-3e8:-1:5e8)-1,r=1+(o?n?2e8:1:-6e8)}return new N9(e,t,r,n,e.widget||null,!0)}static line(e){return new M9(e)}static set(e,t=!1){return i7.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}$9.none=i7.empty;class R9 extends $9{constructor(e){let{start:t,end:r}=I9(e);super(t?-1:5e8,r?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,r;return this==e||e instanceof R9&&this.tagName==e.tagName&&(this.class||(null===(t=this.attrs)||void 0===t?void 0:t.class))==(e.class||(null===(r=e.attrs)||void 0===r?void 0:r.class))&&T9(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}R9.prototype.point=!1;class M9 extends $9{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof M9&&this.spec.class==e.spec.class&&T9(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}M9.prototype.mapMode=a6.TrackBefore,M9.prototype.point=!0;class N9 extends $9{constructor(e,t,r,n,a,o){super(t,r,a,e),this.block=n,this.isReplace=o,this.mapMode=n?t<=0?a6.TrackBefore:a6.TrackAfter:a6.TrackDel}get type(){return this.startSide!=this.endSide?D9.WidgetRange:this.startSide<=0?D9.WidgetBefore:D9.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof N9&&((t=this.widget)==(r=e.widget)||!!(t&&r&&t.compare(r)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide;var t,r}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function I9(e,t=!1){let{inclusiveStart:r,inclusiveEnd:n}=e;return null==r&&(r=e.inclusive),null==n&&(n=e.inclusive),{start:null!=r?r:t,end:null!=n?n:t}}function L9(e,t,r,n=0){let a=r.length-1;a>=0&&r[a]+n>=e?r[a]=Math.max(r[a],t):r.push(e,t)}N9.prototype.point=!0;class j9 extends t9{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,r,n,a,o){if(r){if(!(r instanceof j9))return!1;this.dom||r.transferDOM(this)}return n&&this.setDeco(r?r.attrs:null),o9(this,e,t,r?r.children.slice():[],a,o),!0}split(e){let t=new j9;if(t.breakAfter=this.breakAfter,0==this.length)return t;let{i:r,off:n}=this.childPos(e);n&&(t.append(this.children[r].split(n),0),this.children[r].merge(n,this.children[r].length,null,!1,0,0),r++);for(let e=r;e<this.children.length;e++)t.append(this.children[e],0);for(;r>0&&0==this.children[r-1].length;)this.children[--r].destroy();return this.children.length=r,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){T9(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){k9(this,e,t)}addLineDeco(e){let t=e.spec.attributes,r=e.spec.class;t&&(this.attrs=_9(t,this.attrs||{})),r&&(this.attrs=_9({class:r},this.attrs||{}))}domAtPos(e){return x9(this,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.flags|=6)}sync(e,t){var r;this.dom?4&this.flags&&(X7(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(A9(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let n=this.dom.lastChild;for(;n&&t9.get(n)instanceof y9;)n=n.lastChild;if(!(n&&this.length&&("BR"==n.nodeName||0!=(null===(r=t9.get(n))||void 0===r?void 0:r.isEditable)||v9.ios&&this.children.some((e=>e instanceof b9))))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e,t=0;for(let r of this.children){if(!(r instanceof b9)||/[^ -~]/.test(r.text))return null;let n=M7(r.dom);if(1!=n.length)return null;t+=n[0].width,e=n[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}:null}coordsAt(e,t){let r=S9(this,e,t);if(!this.children.length&&r&&this.parent){let{heightOracle:e}=this.parent.view.viewState,t=r.bottom-r.top;if(Math.abs(t-e.lineHeight)<2&&e.textHeight<t){let n=(t-e.textHeight)/2;return{top:r.top+n,bottom:r.bottom-n,left:r.left,right:r.left}}}return r}become(e){return e instanceof j9&&0==this.children.length&&0==e.children.length&&T9(this.attrs,e.attrs)&&this.breakAfter==e.breakAfter}covers(){return!0}static find(e,t){for(let r=0,n=0;r<e.children.length;r++){let a=e.children[r],o=n+a.length;if(o>=t){if(a instanceof j9)return a;if(o>t)break}n=o+a.breakAfter}return null}}class B9 extends t9{constructor(e,t,r){super(),this.widget=e,this.length=t,this.deco=r,this.breakAfter=0,this.prevWidget=null}merge(e,t,r,n,a,o){return!(r&&(!(r instanceof B9&&this.widget.compare(r.widget))||e>0&&a<=0||t<this.length&&o<=0)||(this.length=e+(r?r.length:0)+(this.length-t),0))}domAtPos(e){return 0==e?J7.before(this.dom):J7.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let r=new B9(this.widget,t,this.deco);return r.breakAfter=this.breakAfter,r}get children(){return e9}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):z8.empty}domBoundsAround(){return null}become(e){return e instanceof B9&&e.widget.constructor==this.widget.constructor&&(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,t){return this.widget.coordsAt(this.dom,e,t)||(this.widget instanceof U9?null:U7(this.dom.getBoundingClientRect(),this.length?0==e:t<=0))}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:t,endSide:r}=this.deco;return t!=r&&(e<0?t<0:r>0)}}class U9 extends P9{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}class F9{constructor(e,t,r,n){this.doc=e,this.pos=t,this.end=r,this.disallowBlockEffectsFor=n,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof B9&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new j9),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Q9(new w9(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||e&&this.content.length&&this.content[this.content.length-1]instanceof B9||this.getLine()}buildText(e,t,r){for(;e>0;){if(this.textOff==this.text.length){let{value:t,lineBreak:r,done:n}=this.cursor.next(this.skip);if(this.skip=0,n)throw new Error("Ran out of text content when drawing inline views");if(r){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}this.text=t,this.textOff=0}let n=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-r)),this.getLine().append(Q9(new b9(this.text.slice(this.textOff,this.textOff+n)),t),r),this.atCursorPos=!0,this.textOff+=n,e-=n,r=0}}span(e,t,r,n){this.buildText(t-e,r,n),this.pos=t,this.openStart<0&&(this.openStart=n)}point(e,t,r,n,a,o){if(this.disallowBlockEffectsFor[o]&&r instanceof N9){if(r.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let i=t-e;if(r instanceof N9)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new B9(r.widget||z9.block,i,r));else{let o=O9.create(r.widget||z9.inline,i,i?0:r.startSide),s=this.atCursorPos&&!o.isEditable&&a<=n.length&&(e<t||r.startSide>0),l=!o.isEditable&&(e<t||a>n.length||r.startSide<=0),c=this.getLine();2!=this.pendingBuffer||s||o.isEditable||(this.pendingBuffer=0),this.flushBuffer(n),s&&(c.append(Q9(new w9(1),n),a),a=n.length+Math.max(0,a-n.length)),c.append(Q9(o,n),a),this.atCursorPos=l,this.pendingBuffer=l?e<t||a>n.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=n.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(r);i&&(this.textOff+i<=this.text.length?this.textOff+=i:(this.skip+=i-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=a)}static build(e,t,r,n,a){let o=new F9(e,t,r,a);return o.openEnd=i7.spans(n,t,r,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function Q9(e,t){for(let r of t)e=new y9(r,[e],e.length);return e}class z9 extends P9{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}z9.inline=new z9("span"),z9.block=new z9("div");var q9=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(q9||(q9={}));const H9=q9.LTR,V9=q9.RTL;function Z9(e){let t=[];for(let r=0;r<e.length;r++)t.push(1<<+e[r]);return t}const W9=Z9("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),X9=Z9("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),G9=Object.create(null),Y9=[];for(let e of["()","[]","{}"]){let t=e.charCodeAt(0),r=e.charCodeAt(1);G9[t]=r,G9[r]=-t}function K9(e){return e<=247?W9[e]:1424<=e&&e<=1524?2:1536<=e&&e<=1785?X9[e-1536]:1774<=e&&e<=2220?4:8192<=e&&e<=8204?256:64336<=e&&e<=65023?4:1}const J9=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class eee{get dir(){return this.level%2?V9:H9}constructor(e,t,r){this.from=e,this.to=t,this.level=r}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,r,n){let a=-1;for(let o=0;o<e.length;o++){let i=e[o];if(i.from<=t&&i.to>=t){if(i.level==r)return o;(a<0||(0!=n?n<0?i.from<t:i.to>t:e[a].level>i.level))&&(a=o)}}if(a<0)throw new RangeError("Index out of range");return a}}function tee(e,t){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++){let n=e[r],a=t[r];if(n.from!=a.from||n.to!=a.to||n.direction!=a.direction||!tee(n.inner,a.inner))return!1}return!0}const ree=[];function nee(e,t,r,n,a,o,i){let s=n%2?2:1;if(n%2==a%2)for(let l=t,c=0;l<r;){let t=!0,u=!1;if(c==o.length||l<o[c].from){let e=ree[l];e!=s&&(t=!1,u=16==e)}let d=t||1!=s?null:[],p=t?n:n+1,h=l;e:for(;;)if(c<o.length&&h==o[c].from){if(u)break e;let f=o[c];if(!t)for(let e=f.to,t=c+1;;){if(e==r)break e;if(!(t<o.length&&o[t].from==e)){if(ree[e]==s)break e;break}e=o[t++].to}c++,d?d.push(f):(f.from>l&&i.push(new eee(l,f.from,p)),aee(e,f.direction==H9!=!(p%2)?n+1:n,a,f.inner,f.from,f.to,i),l=f.to),h=f.to}else{if(h==r||(t?ree[h]!=s:ree[h]==s))break;h++}d?nee(e,l,h,n+1,a,d,i):l<h&&i.push(new eee(l,h,p)),l=h}else for(let l=r,c=o.length;l>t;){let r=!0,u=!1;if(!c||l>o[c-1].to){let e=ree[l-1];e!=s&&(r=!1,u=16==e)}let d=r||1!=s?null:[],p=r?n:n+1,h=l;e:for(;;)if(c&&h==o[c-1].to){if(u)break e;let f=o[--c];if(!r)for(let e=f.from,r=c;;){if(e==t)break e;if(!r||o[r-1].to!=e){if(ree[e-1]==s)break e;break}e=o[--r].from}d?d.push(f):(f.to<l&&i.push(new eee(f.to,l,p)),aee(e,f.direction==H9!=!(p%2)?n+1:n,a,f.inner,f.from,f.to,i),l=f.from),h=f.from}else{if(h==t||(r?ree[h-1]!=s:ree[h-1]==s))break;h--}d?nee(e,h,l,n+1,a,d,i):h<l&&i.push(new eee(h,l,p)),l=h}}function aee(e,t,r,n,a,o,i){let s=t%2?2:1;!function(e,t,r,n,a){for(let o=0;o<=n.length;o++){let i=o?n[o-1].to:t,s=o<n.length?n[o].from:r,l=o?256:a;for(let t=i,r=l,n=l;t<s;t++){let a=K9(e.charCodeAt(t));512==a?a=r:8==a&&4==n&&(a=16),ree[t]=4==a?2:a,7&a&&(n=a),r=a}for(let e=i,t=l,n=l;e<s;e++){let a=ree[e];if(128==a)e<s-1&&t==ree[e+1]&&24&t?a=ree[e]=t:ree[e]=256;else if(64==a){let a=e+1;for(;a<s&&64==ree[a];)a++;let o=e&&8==t||a<r&&8==ree[a]?1==n?1:8:256;for(let t=e;t<a;t++)ree[t]=o;e=a-1}else 8==a&&1==n&&(ree[e]=1);t=a,7&a&&(n=a)}}}(e,a,o,n,s),function(e,t,r,n,a){let o=1==a?2:1;for(let i=0,s=0,l=0;i<=n.length;i++){let c=i?n[i-1].to:t,u=i<n.length?n[i].from:r;for(let t,r,n,i=c;i<u;i++)if(r=G9[t=e.charCodeAt(i)])if(r<0){for(let e=s-3;e>=0;e-=3)if(Y9[e+1]==-r){let t=Y9[e+2],r=2&t?a:4&t?1&t?o:a:0;r&&(ree[i]=ree[Y9[e]]=r),s=e;break}}else{if(189==Y9.length)break;Y9[s++]=i,Y9[s++]=t,Y9[s++]=l}else if(2==(n=ree[i])||1==n){let e=n==a;l=e?0:1;for(let t=s-3;t>=0;t-=3){let r=Y9[t+2];if(2&r)break;if(e)Y9[t+2]|=2;else{if(4&r)break;Y9[t+2]|=4}}}}}(e,a,o,n,s),function(e,t,r,n){for(let a=0,o=n;a<=r.length;a++){let i=a?r[a-1].to:e,s=a<r.length?r[a].from:t;for(let l=i;l<s;){let i=ree[l];if(256==i){let i=l+1;for(;;)if(i==s){if(a==r.length)break;i=r[a++].to,s=a<r.length?r[a].from:t}else{if(256!=ree[i])break;i++}let c=1==o,u=c==(1==(i<t?ree[i]:n))?c?1:2:n;for(let t=i,n=a,o=n?r[n-1].to:e;t>l;)t==o&&(t=r[--n].from,o=n?r[n-1].to:e),ree[--t]=u;l=i}else o=i,l++}}}(a,o,n,s),nee(e,a,o,t,r,n,i)}function oee(e){return[new eee(0,e,0)]}let iee="";function see(e,t,r,n,a){var o;let i=n.head-e.from,s=eee.find(t,i,null!==(o=n.bidiLevel)&&void 0!==o?o:-1,n.assoc),l=t[s],c=l.side(a,r);if(i==c){let e=s+=a?1:-1;if(e<0||e>=t.length)return null;l=t[s=e],i=l.side(!a,r),c=l.side(a,r)}let u=J8(e.text,i,l.forward(a,r));(u<l.from||u>l.to)&&(u=c),iee=e.text.slice(Math.min(i,u),Math.max(i,u));let d=s==(a?t.length-1:0)?null:t[s+(a?1:-1)];return d&&u==c&&d.level+(a?0:1)<l.level?f6.cursor(d.side(!a,r)+e.from,d.forward(a,r)?1:-1,d.level):f6.cursor(u+e.from,l.forward(a,r)?-1:1,l.level)}function lee(e,t,r){for(let n=t;n<r;n++){let t=K9(e.charCodeAt(n));if(1==t)return H9;if(2==t||4==t)return V9}return H9}const cee=v6.define(),uee=v6.define(),dee=v6.define(),pee=v6.define(),hee=v6.define(),fee=v6.define(),mee=v6.define(),gee=v6.define(),vee=v6.define(),bee=v6.define({combine:e=>e.some((e=>e))}),yee=v6.define({combine:e=>e.some((e=>e))}),Oee=v6.define();class wee{constructor(e,t="nearest",r="nearest",n=5,a=5,o=!1){this.range=e,this.y=t,this.x=r,this.yMargin=n,this.xMargin=a,this.isSnapshot=o}map(e){return e.empty?this:new wee(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new wee(f6.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const xee=z6.define({map:(e,t)=>e.map(t)}),kee=z6.define();function See(e,t,r){let n=e.facet(pee);n.length?n[0](t):window.onerror?window.onerror(String(t),r,void 0,void 0,t):r?console.error(r+":",t):console.error(t)}const _ee=v6.define({combine:e=>!e.length||e[0]});let Eee=0;const Tee=v6.define();class Aee{constructor(e,t,r,n,a){this.id=e,this.create=t,this.domEventHandlers=r,this.domEventObservers=n,this.extension=a(this)}static define(e,t){const{eventHandlers:r,eventObservers:n,provide:a,decorations:o}=t||{};return new Aee(Eee++,e,r,n,(e=>{let t=[Tee.of(e)];return o&&t.push($ee.of((t=>{let r=t.plugin(e);return r?o(r):$9.none}))),a&&t.push(a(e)),t}))}static fromClass(e,t){return Aee.define((t=>new e(t)),t)}}class Cee{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(See(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){See(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(t){See(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Pee=v6.define(),Dee=v6.define(),$ee=v6.define(),Ree=v6.define(),Mee=v6.define(),Nee=v6.define();function Iee(e,t){let r=e.state.facet(Nee);if(!r.length)return r;let n=r.map((t=>t instanceof Function?t(e):t)),a=[];return i7.spans(n,t.from,t.to,{point(){},span(e,r,n,o){let i=e-t.from,s=r-t.from,l=a;for(let e=n.length-1;e>=0;e--,o--){let r,a=n[e].spec.bidiIsolate;if(null==a&&(a=lee(t.text,i,s)),o>0&&l.length&&(r=l[l.length-1]).to==i&&r.direction==a)r.to=s,l=r.inner;else{let e={from:i,to:s,direction:a,inner:[]};l.push(e),l=e.inner}}}}),a}const Lee=v6.define();function jee(e){let t=0,r=0,n=0,a=0;for(let o of e.state.facet(Lee)){let i=o(e);i&&(null!=i.left&&(t=Math.max(t,i.left)),null!=i.right&&(r=Math.max(r,i.right)),null!=i.top&&(n=Math.max(n,i.top)),null!=i.bottom&&(a=Math.max(a,i.bottom)))}return{left:t,right:r,top:n,bottom:a}}const Bee=v6.define();class Uee{constructor(e,t,r,n){this.fromA=e,this.toA=t,this.fromB=r,this.toB=n}join(e){return new Uee(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,r=this;for(;t>0;t--){let n=e[t-1];if(!(n.fromA>r.toA)){if(n.toA<r.fromA)break;r=r.join(n),e.splice(t-1,1)}}return e.splice(t,0,r),e}static extendWithRanges(e,t){if(0==t.length)return e;let r=[];for(let n=0,a=0,o=0,i=0;;n++){let s=n==e.length?null:e[n],l=o-i,c=s?s.fromB:1e9;for(;a<t.length&&t[a]<c;){let e=t[a],n=t[a+1],o=Math.max(i,e),s=Math.min(c,n);if(o<=s&&new Uee(o+l,s+l,o,s).addToSet(r),n>c)break;a+=2}if(!s)return r;new Uee(s.fromA,s.toA,s.fromB,s.toB).addToSet(r),o=s.toA,i=s.toB}}}class Fee{constructor(e,t,r){this.view=e,this.state=t,this.transactions=r,this.flags=0,this.startState=e.state,this.changes=i6.empty(this.startState.doc.length);for(let e of r)this.changes=this.changes.compose(e.changes);let n=[];this.changes.iterChangedRanges(((e,t,r,a)=>n.push(new Uee(e,t,r,a)))),this.changedRanges=n}static create(e,t,r){return new Fee(e,t,r)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((e=>e.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}class Qee extends t9{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=$9.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new j9],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Uee(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let r=e.changedRanges;this.minWidth>0&&r.length&&(r.every((({fromA:e,toA:t})=>t<this.minWidthFrom||e>this.minWidthTo))?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let n=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&((null===(t=this.domChanged)||void 0===t?void 0:t.newSel)?n=this.domChanged.newSel.head:function(e,t){let r=!1;return t&&e.iterChangedRanges(((e,n)=>{e<t.to&&n>t.from&&(r=!0)})),r}(e.changes,this.hasComposition)||e.selectionSet||(n=e.state.selection.main.head));let a=n>-1?function(e,t,r){let n=zee(e,r);if(!n)return null;let{node:a,from:o,to:i}=n,s=a.nodeValue;if(/[\n\r]/.test(s))return null;if(e.state.doc.sliceString(n.from,n.to)!=s)return null;let l=t.invertedDesc,c=new Uee(l.mapPos(o),l.mapPos(i),o,i),u=[];for(let t=a.parentNode;;t=t.parentNode){let r=t9.get(t);if(r instanceof y9)u.push({node:t,deco:r.mark});else{if(r instanceof j9||"DIV"==t.nodeName&&t.parentNode==e.contentDOM)return{range:c,text:a,marks:u,line:t};if(t==e.contentDOM)return null;u.push({node:t,deco:new R9({inclusive:!0,attributes:C9(t),tagName:t.tagName.toLowerCase()})})}}}(this.view,e.changes,n):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:t,to:n}=this.hasComposition;r=new Uee(t,n,e.changes.mapPos(t,-1),e.changes.mapPos(n,1)).addToSet(r.slice())}this.hasComposition=a?{from:a.range.fromB,to:a.range.toB}:null,(v9.ie||v9.chrome)&&!a&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=function(e,t,r){let n=new qee;return i7.compare(e,t,r,n),n.changes}(this.decorations,this.updateDeco(),e.changes);return r=Uee.extendWithRanges(r,o),!!(7&this.flags||0!=r.length)&&(this.updateInner(r,e.startState.doc.length,a),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,r){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,r);let{observer:n}=this.view;n.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=v9.chrome||v9.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,e),this.flags&=-8,e&&(e.written||n.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""})),this.markedForComposition.forEach((e=>e.flags&=-9));let a=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let e of this.children)e instanceof B9&&e.widget instanceof U9&&a.push(e.dom);n.updateGaps(a)}updateChildren(e,t,r){let n=r?r.range.addToSet(e.slice()):e,a=this.childCursor(t);for(let e=n.length-1;;e--){let t=e>=0?n[e]:null;if(!t)break;let o,i,s,l,{fromA:c,toA:u,fromB:d,toB:p}=t;if(r&&r.range.fromB<p&&r.range.toB>d){let e=F9.build(this.view.state.doc,d,r.range.fromB,this.decorations,this.dynamicDecorationMap),t=F9.build(this.view.state.doc,r.range.toB,p,this.decorations,this.dynamicDecorationMap);i=e.breakAtStart,s=e.openStart,l=t.openEnd;let n=this.compositionView(r);t.breakAtStart?n.breakAfter=1:t.content.length&&n.merge(n.length,n.length,t.content[0],!1,t.openStart,0)&&(n.breakAfter=t.content[0].breakAfter,t.content.shift()),e.content.length&&n.merge(0,0,e.content[e.content.length-1],!0,0,e.openEnd)&&e.content.pop(),o=e.content.concat(n).concat(t.content)}else({content:o,breakAtStart:i,openStart:s,openEnd:l}=F9.build(this.view.state.doc,d,p,this.decorations,this.dynamicDecorationMap));let{i:h,off:f}=a.findPos(u,1),{i:m,off:g}=a.findPos(c,-1);a9(this,m,g,h,f,o,i,s,l)}r&&this.fixCompositionDOM(r)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let t of e.transactions)for(let e of t.effects)e.is(kee)&&(this.editContextFormatting=e.value)}compositionView(e){let t=new b9(e.text.nodeValue);t.flags|=8;for(let{deco:r}of e.marks)t=new y9(r,[t],t.length);let r=new j9;return r.append(t,0),r}fixCompositionDOM(e){let t=(e,t)=>{t.flags|=8|(t.children.some((e=>7&e.flags))?1:0),this.markedForComposition.add(t);let r=t9.get(e);r&&r!=t&&(r.dom=null),t.setDOM(e)},r=this.childPos(e.range.fromB,1),n=this.children[r.i];t(e.line,n);for(let a=e.marks.length-1;a>=-1;a--)r=n.childPos(r.off,1),n=n.children[r.i],t(a>=0?e.marks[a].node:e.text,n)}updateSelection(e=!1,t=!1){!e&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let r=this.view.root.activeElement,n=r==this.dom,a=!n&&!(this.view.state.facet(_ee)||this.dom.tabIndex>-1)&&R7(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(n||t||a))return;let o=this.forceSelection;this.forceSelection=!1;let i=this.view.state.selection.main,s=this.moveToLine(this.domAtPos(i.anchor)),l=i.empty?s:this.moveToLine(this.domAtPos(i.head));if(v9.gecko&&i.empty&&!this.hasComposition&&1==(c=s).node.nodeType&&c.node.firstChild&&(0==c.offset||"false"==c.node.childNodes[c.offset-1].contentEditable)&&(c.offset==c.node.childNodes.length||"false"==c.node.childNodes[c.offset].contentEditable)){let e=document.createTextNode("");this.view.observer.ignore((()=>s.node.insertBefore(e,s.node.childNodes[s.offset]||null))),s=l=new J7(e,0),o=!0}var c;let u=this.view.observer.selectionRange;!o&&u.focusNode&&(N7(s.node,s.offset,u.anchorNode,u.anchorOffset)&&N7(l.node,l.offset,u.focusNode,u.focusOffset)||this.suppressWidgetCursorChange(u,i))||(this.view.observer.ignore((()=>{v9.android&&v9.chrome&&this.dom.contains(u.focusNode)&&function(e,t){for(let r=e;r&&r!=t;r=r.assignedSlot||r.parentNode)if(1==r.nodeType&&"false"==r.contentEditable)return!0;return!1}(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=D7(this.view.root);if(e)if(i.empty){if(v9.gecko){let e=(t=s.node,n=s.offset,1!=t.nodeType?0:(n&&"false"==t.childNodes[n-1].contentEditable?1:0)|(n<t.childNodes.length&&"false"==t.childNodes[n].contentEditable?2:0));if(e&&3!=e){let t=(1==e?Y7:K7)(s.node,s.offset);t&&(s=new J7(t.node,t.offset))}}e.collapse(s.node,s.offset),null!=i.bidiLevel&&void 0!==e.caretBidiLevel&&(e.caretBidiLevel=i.bidiLevel)}else if(e.extend){e.collapse(s.node,s.offset);try{e.extend(l.node,l.offset)}catch(e){}}else{let t=document.createRange();i.anchor>i.head&&([s,l]=[l,s]),t.setEnd(l.node,l.offset),t.setStart(s.node,s.offset),e.removeAllRanges(),e.addRange(t)}var t,n;a&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())})),this.view.observer.setSelectionRange(s,l)),this.impreciseAnchor=s.precise?null:new J7(u.anchorNode,u.anchorOffset),this.impreciseHead=l.precise?null:new J7(u.focusNode,u.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&N7(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,r=D7(e.root),{anchorNode:n,anchorOffset:a}=e.observer.selectionRange;if(!(r&&t.empty&&t.assoc&&r.modify))return;let o=j9.find(this,t.head);if(!o)return;let i=o.posAtStart;if(t.head==i||t.head==i+o.length)return;let s=this.coordsAt(t.head,-1),l=this.coordsAt(t.head,1);if(!s||!l||s.bottom>l.top)return;let c=this.domAtPos(t.head+t.assoc);r.collapse(c.node,c.offset),r.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let u=e.observer.selectionRange;e.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=t.from&&r.collapse(n,a)}moveToLine(e){let t,r=this.dom;if(e.node!=r)return e;for(let n=e.offset;!t&&n<r.childNodes.length;n++){let e=t9.get(r.childNodes[n]);e instanceof j9&&(t=e.domAtPos(0))}for(let n=e.offset-1;!t&&n>=0;n--){let e=t9.get(r.childNodes[n]);e instanceof j9&&(t=e.domAtPos(e.length))}return t?new J7(t.node,t.offset,!0):e}nearest(e){for(let t=e;t;){let e=t9.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let r=this.nearest(e);if(!r)throw new RangeError("Trying to find position for a DOM position outside of the document");return r.localPosFromDOM(e,t)+r.posAtStart}domAtPos(e){let{i:t,off:r}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let e=this.children[t];if(r<e.length||e instanceof j9)break;t++,r=0}return this.children[t].domAtPos(r)}coordsAt(e,t){let r=null,n=0;for(let a=this.length,o=this.children.length-1;o>=0;o--){let i=this.children[o],s=a-i.breakAfter,l=s-i.length;if(s<e)break;if(l<=e&&(l<e||i.covers(-1))&&(s>e||i.covers(1))&&(!r||i instanceof j9&&!(r instanceof j9&&t>=0)))r=i,n=l;else if(r&&l==e&&s==e&&i instanceof B9&&Math.abs(t)<2){if(i.deco.startSide<0)break;o&&(r=null)}a=l}return r?r.coordsAt(e-n,t):null}coordsForChar(e){let{i:t,off:r}=this.childPos(e,1),n=this.children[t];if(!(n instanceof j9))return null;for(;n.children.length;){let{i:e,off:t}=n.childPos(r,1);for(;;e++){if(e==n.children.length)return null;if((n=n.children[e]).length)break}r=t}if(!(n instanceof b9))return null;let a=J8(n.text,r);if(a==r)return null;let o=Z7(n.dom,r,a).getClientRects();for(let e=0;e<o.length;e++){let t=o[e];if(e==o.length-1||t.top<t.bottom&&t.left<t.right)return t}return null}measureVisibleLineHeights(e){let t=[],{from:r,to:n}=e,a=this.view.contentDOM.clientWidth,o=a>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,i=-1,s=this.view.textDirection==q9.LTR;for(let e=0,l=0;l<this.children.length;l++){let c=this.children[l],u=e+c.length;if(u>n)break;if(e>=r){let r=c.dom.getBoundingClientRect();if(t.push(r.height),o){let t=c.dom.lastChild,n=t?M7(t):[];if(n.length){let t=n[n.length-1],o=s?t.right-r.left:r.right-t.left;o>i&&(i=o,this.minWidth=a,this.minWidthFrom=e,this.minWidthTo=u)}}}e=u+c.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?q9.RTL:q9.LTR}measureTextSize(){for(let e of this.children)if(e instanceof j9){let t=e.measureTextSize();if(t)return t}let e,t,r,n=document.createElement("div");return n.className="cm-line",n.style.width="99999px",n.style.position="absolute",n.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(n);let a=M7(n.firstChild)[0];e=n.getBoundingClientRect().height,t=a?a.width/27:7,r=a?a.height:e,n.remove()})),{lineHeight:e,charWidth:t,textHeight:r}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new n9(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let r=0,n=0;;n++){let a=n==t.viewports.length?null:t.viewports[n],o=a?a.from-1:this.length;if(o>r){let n=(t.lineBlockAt(o).bottom-t.lineBlockAt(r).top)/this.view.scaleY;e.push($9.replace({widget:new U9(n),block:!0,inclusive:!0,isBlockGap:!0}).range(r,o))}if(!a)break;r=a.to+1}return $9.set(e)}updateDeco(){let e=1,t=this.view.state.facet($ee).map((t=>(this.dynamicDecorationMap[e++]="function"==typeof t)?t(this.view):t)),r=!1,n=this.view.state.facet(Ree).map(((e,t)=>{let n="function"==typeof e;return n&&(r=!0),n?e(this.view):e}));for(n.length&&(this.dynamicDecorationMap[e++]=r,t.push(i7.join(n))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;return this.decorations}scrollIntoView(e){if(e.isSnapshot){let t=this.view.viewState.lineBlockAt(e.range.head);return this.view.scrollDOM.scrollTop=t.top-e.yMargin,void(this.view.scrollDOM.scrollLeft=e.xMargin)}for(let t of this.view.state.facet(Oee))try{if(t(this.view,e.range,e))return!0}catch(e){See(this.view.state,e,"scroll handler")}let t,{range:r}=e,n=this.coordsAt(r.head,r.empty?r.assoc:r.head>r.anchor?-1:1);if(!n)return;!r.empty&&(t=this.coordsAt(r.anchor,r.anchor>r.head?-1:1))&&(n={left:Math.min(n.left,t.left),top:Math.min(n.top,t.top),right:Math.max(n.right,t.right),bottom:Math.max(n.bottom,t.bottom)});let a=jee(this.view),o={left:n.left-a.left,top:n.top-a.top,right:n.right+a.right,bottom:n.bottom+a.bottom},{offsetWidth:i,offsetHeight:s}=this.view.scrollDOM;!function(e,t,r,n,a,o,i,s){let l=e.ownerDocument,c=l.defaultView||window;for(let u=e,d=!1;u&&!d;)if(1==u.nodeType){let e,p=u==l.body,h=1,f=1;if(p)e=F7(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(d=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let t=u.getBoundingClientRect();({scaleX:h,scaleY:f}=Q7(u,t)),e={left:t.left,right:t.left+u.clientWidth*h,top:t.top,bottom:t.top+u.clientHeight*f}}let m=0,g=0;if("nearest"==a)t.top<e.top?(g=-(e.top-t.top+i),r>0&&t.bottom>e.bottom+g&&(g=t.bottom-e.bottom+g+i)):t.bottom>e.bottom&&(g=t.bottom-e.bottom+i,r<0&&t.top-g<e.top&&(g=-(e.top+g-t.top+i)));else{let n=t.bottom-t.top,o=e.bottom-e.top;g=("center"==a&&n<=o?t.top+n/2-o/2:"start"==a||"center"==a&&r<0?t.top-i:t.bottom-o+i)-e.top}if("nearest"==n?t.left<e.left?(m=-(e.left-t.left+o),r>0&&t.right>e.right+m&&(m=t.right-e.right+m+o)):t.right>e.right&&(m=t.right-e.right+o,r<0&&t.left<e.left+m&&(m=-(e.left+m-t.left+o))):m=("center"==n?t.left+(t.right-t.left)/2-(e.right-e.left)/2:"start"==n==s?t.left-o:t.right-(e.right-e.left)+o)-e.left,m||g)if(p)c.scrollBy(m,g);else{let e=0,r=0;if(g){let e=u.scrollTop;u.scrollTop+=g/f,r=(u.scrollTop-e)*f}if(m){let t=u.scrollLeft;u.scrollLeft+=m/h,e=(u.scrollLeft-t)*h}t={left:t.left-e,top:t.top-r,right:t.right-e,bottom:t.bottom-r},e&&Math.abs(e-m)<1&&(n="nearest"),r&&Math.abs(r-g)<1&&(a="nearest")}if(p)break;u=u.assignedSlot||u.parentNode}else{if(11!=u.nodeType)break;u=u.host}}(this.view.scrollDOM,o,r.head<r.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,i),-i),Math.max(Math.min(e.yMargin,s),-s),this.view.textDirection==q9.LTR)}}function zee(e,t){let r=e.observer.selectionRange;if(!r.focusNode)return null;let n=Y7(r.focusNode,r.focusOffset),a=K7(r.focusNode,r.focusOffset),o=n||a;if(a&&n&&a.node!=n.node){let t=t9.get(a.node);if(!t||t instanceof b9&&t.text!=a.node.nodeValue)o=a;else if(e.docView.lastCompositionAfterCursor){let e=t9.get(n.node);!e||e instanceof b9&&e.text!=n.node.nodeValue||(o=a)}}if(e.docView.lastCompositionAfterCursor=o!=n,!o)return null;let i=t-o.offset;return{from:i,to:i+o.node.nodeValue.length,node:o.node}}let qee=class{constructor(){this.changes=[]}compareRange(e,t){L9(e,t,this.changes)}comparePoint(e,t){L9(e,t,this.changes)}boundChange(e){L9(e,e,this.changes)}};function Hee(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function Vee(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function Zee(e,t){return e.top<t.bottom-1&&e.bottom>t.top+1}function Wee(e,t){return t<e.top?{top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function Xee(e,t){return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function Gee(e,t,r){let n,a,o,i,s,l,c,u,d=!1;for(let p=e.firstChild;p;p=p.nextSibling){let e=M7(p);for(let h=0;h<e.length;h++){let f=e[h];a&&Zee(a,f)&&(f=Wee(Xee(f,a.bottom),a.top));let m=Hee(t,f),g=Vee(r,f);if(0==m&&0==g)return 3==p.nodeType?Yee(p,t,r):Gee(p,t,r);if(!n||i>g||i==g&&o>m){n=p,a=f,o=m,i=g;let s=g?r<f.top?-1:1:m?t<f.left?-1:1:0;d=!s||(s>0?h<e.length-1:h>0)}0==m?r>f.bottom&&(!c||c.bottom<f.bottom)?(s=p,c=f):r<f.top&&(!u||u.top>f.top)&&(l=p,u=f):c&&Zee(c,f)?c=Xee(c,f.bottom):u&&Zee(u,f)&&(u=Wee(u,f.top))}}if(c&&c.bottom>=r?(n=s,a=c):u&&u.top<=r&&(n=l,a=u),!n)return{node:e,offset:0};let p=Math.max(a.left,Math.min(a.right,t));return 3==n.nodeType?Yee(n,p,r):d&&"false"!=n.contentEditable?Gee(n,p,r):{node:e,offset:Array.prototype.indexOf.call(e.childNodes,n)+(t>=(a.left+a.right)/2?1:0)}}function Yee(e,t,r){let n=e.nodeValue.length,a=-1,o=1e9,i=0;for(let s=0;s<n;s++){let n=Z7(e,s,s+1).getClientRects();for(let l=0;l<n.length;l++){let c=n[l];if(c.top==c.bottom)continue;i||(i=t-c.left);let u=(c.top>r?c.top-r:r-c.bottom)-1;if(c.left-1<=t&&c.right+1>=t&&u<o){let r=t>=(c.left+c.right)/2,n=r;if((v9.chrome||v9.gecko)&&Z7(e,s).getBoundingClientRect().left==c.right&&(n=!r),u<=0)return{node:e,offset:s+(n?1:0)};a=s+(n?1:0),o=u}}}return{node:e,offset:a>-1?a:i>0?e.nodeValue.length:0}}function Kee(e,t,r,n=-1){var a,o;let i,s=e.contentDOM.getBoundingClientRect(),l=s.top+e.viewState.paddingTop,{docHeight:c}=e.viewState,{x:u,y:d}=t,p=d-l;if(p<0)return 0;if(p>c)return e.state.doc.length;for(let t=e.viewState.heightOracle.textHeight/2,a=!1;i=e.elementAtHeight(p),i.type!=D9.Text;)for(;p=n>0?i.bottom+t:i.top-t,!(p>=0&&p<=c);){if(a)return r?null:0;a=!0,n=-n}d=l+p;let h=i.from;if(h<e.viewport.from)return 0==e.viewport.from?0:r?null:Jee(e,s,i,u,d);if(h>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:r?null:Jee(e,s,i,u,d);let f=e.dom.ownerDocument,m=e.root.elementFromPoint?e.root:f,g=m.elementFromPoint(u,d);g&&!e.contentDOM.contains(g)&&(g=null),g||(u=Math.max(s.left+1,Math.min(s.right-1,u)),g=m.elementFromPoint(u,d),g&&!e.contentDOM.contains(g)&&(g=null));let v,b=-1;if(g&&0!=(null===(a=e.docView.nearest(g))||void 0===a?void 0:a.isEditable)){if(f.caretPositionFromPoint){let e=f.caretPositionFromPoint(u,d);e&&({offsetNode:v,offset:b}=e)}else if(f.caretRangeFromPoint){let t=f.caretRangeFromPoint(u,d);t&&(({startContainer:v,startOffset:b}=t),(!e.contentDOM.contains(v)||v9.safari&&function(e,t,r){let n;if(3!=e.nodeType||t!=(n=e.nodeValue.length))return!1;for(let t=e.nextSibling;t;t=t.nextSibling)if(1!=t.nodeType||"BR"!=t.nodeName)return!1;return Z7(e,n-1,n).getBoundingClientRect().left>r}(v,b,u)||v9.chrome&&function(e,t,r){if(0!=t)return!1;for(let t=e;;){let e=t.parentNode;if(!e||1!=e.nodeType||e.firstChild!=t)return!1;if(e.classList.contains("cm-line"))break;t=e}return r-(1==e.nodeType?e.getBoundingClientRect():Z7(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect()).left>5}(v,b,u))&&(v=void 0))}v&&(b=Math.min(B7(v),b))}if(!v||!e.docView.dom.contains(v)){let t=j9.find(e.docView,h);if(!t)return p>i.top+i.height/2?i.to:i.from;({node:v,offset:b}=Gee(t.dom,u,d))}let y=e.docView.nearest(v);if(!y)return null;if(y.isWidget&&1==(null===(o=y.dom)||void 0===o?void 0:o.nodeType)){let e=y.dom.getBoundingClientRect();return t.y<e.top||t.y<=e.bottom&&t.x<=(e.left+e.right)/2?y.posAtStart:y.posAtEnd}return y.localPosFromDOM(v,b)+y.posAtStart}function Jee(e,t,r,n,a){let o=Math.round((n-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&r.height>1.5*e.defaultLineHeight){let t=e.viewState.heightOracle.textHeight;o+=Math.floor((a-r.top-.5*(e.defaultLineHeight-t))/t)*e.viewState.heightOracle.lineLength}let i=e.state.sliceDoc(r.from,r.to);return r.from+function(e,t,r){for(let n=0,a=0;;){if(a>=t)return n;if(n==e.length)break;a+=9==e.charCodeAt(n)?r-a%r:1,n=J8(e,n)}return e.length}(i,o,e.state.tabSize)}function ete(e,t,r,n){let a=e.state.doc.lineAt(t.head),o=e.bidiSpans(a),i=e.textDirectionAt(a.from);for(let s=t,l=null;;){let t=see(a,o,i,s,r),c=iee;if(!t){if(a.number==(r?e.state.doc.lines:1))return s;c="\n",a=e.state.doc.line(a.number+(r?1:-1)),o=e.bidiSpans(a),t=e.visualLineSide(a,!r)}if(l){if(!l(c))return s}else{if(!n)return t;l=n(c)}s=t}}function tte(e,t,r){for(;;){let n=0;for(let a of e)a.between(t-1,t+1,((e,a,o)=>{if(t>e&&t<a){let o=n||r||(t-e<a-t?-1:1);t=o<0?e:a,n=o}}));if(!n)return t}}function rte(e,t,r){let n=tte(e.state.facet(Mee).map((t=>t(e))),r.from,t.head>r.from?-1:1);return n==r.from?r:f6.cursor(n,n<r.from?1:-1)}const nte="";class ate{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(e7.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=nte}readRange(e,t){if(!e)return this;let r=e.parentNode;for(let n=e;;){this.findPointBefore(r,n);let e=this.text.length;this.readNode(n);let a=n.nextSibling;if(a==t)break;let o=t9.get(n),i=t9.get(a);(o&&i?o.breakAfter:(o?o.breakAfter:L7(n))||L7(a)&&("BR"!=n.nodeName||n.cmIgnore)&&this.text.length>e)&&this.lineBreak(),n=a}return this.findPointBefore(r,t),this}readTextNode(e){let t=e.nodeValue;for(let r of this.points)r.node==e&&(r.pos=this.text.length+Math.min(r.offset,t.length));for(let r=0,n=this.lineSeparator?null:/\r\n?|\n/g;;){let a,o=-1,i=1;if(this.lineSeparator?(o=t.indexOf(this.lineSeparator,r),i=this.lineSeparator.length):(a=n.exec(t))&&(o=a.index,i=a[0].length),this.append(t.slice(r,o<0?t.length:o)),o<0)break;if(this.lineBreak(),i>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=i-1);r=o+i}}readNode(e){if(e.cmIgnore)return;let t=t9.get(e),r=t&&t.overrideDOMText;if(null!=r){this.findPointInside(e,r.length);for(let e=r.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let r of this.points)r.node==e&&e.childNodes[r.offset]==t&&(r.pos=this.text.length)}findPointInside(e,t){for(let r of this.points)(3==e.nodeType?r.node==e:e.contains(r.node))&&(r.pos=this.text.length+(ote(e,r.node,r.offset)?t:0))}}function ote(e,t,r){for(;;){if(!t||r<B7(t))return!1;if(t==e)return!0;r=I7(t)+1,t=t.parentNode}}class ite{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class ste{constructor(e,t,r,n){this.typeOver=n,this.bounds=null,this.text="",this.domChanged=t>-1;let{impreciseHead:a,impreciseAnchor:o}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,r,0))){let t=a||o?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:r,anchorOffset:n,focusNode:a,focusOffset:o}=e.observer.selectionRange;return r&&(t.push(new ite(r,n)),a==r&&o==n||t.push(new ite(a,o))),t}(e),r=new ate(t,e.state);r.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=r.text,this.newSel=function(e,t){if(0==e.length)return null;let r=e[0].pos,n=2==e.length?e[1].pos:r;return r>-1&&n>-1?f6.single(r+t,n+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,r=a&&a.node==t.focusNode&&a.offset==t.focusOffset||!$7(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),n=o&&o.node==t.anchorNode&&o.offset==t.anchorOffset||!$7(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset),i=e.viewport;if((v9.ios||v9.chrome)&&e.state.selection.main.empty&&r!=n&&(i.from>0||i.to<e.state.doc.length)){let t=Math.min(r,n),a=Math.max(r,n),o=i.from-t,s=i.to-a;0!=o&&1!=o&&0!=t||0!=s&&-1!=s&&a!=e.state.doc.length||(r=0,n=e.state.doc.length)}this.newSel=f6.single(n,r)}}}function lte(e,t){let r,{newSel:n}=t,a=e.state.selection.main,o=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:n,to:i}=t.bounds,s=a.from,l=null;(8===o||v9.android&&t.text.length<i-n)&&(s=a.to,l="end");let c=function(e,t,r,n){let a=Math.min(e.length,t.length),o=0;for(;o<a&&e.charCodeAt(o)==t.charCodeAt(o);)o++;if(o==a&&e.length==t.length)return null;let i=e.length,s=t.length;for(;i>0&&s>0&&e.charCodeAt(i-1)==t.charCodeAt(s-1);)i--,s--;return"end"==n&&(r-=i+Math.max(0,o-Math.min(i,s))-o),i<o&&e.length<t.length?(o-=r<=o&&r>=i?o-r:0,s=o+(s-i),i=o):s<o&&(o-=r<=o&&r>=s?o-r:0,i=o+(i-s),s=o),{from:o,toA:i,toB:s}}(e.state.doc.sliceString(n,i,nte),t.text,s-n,l);c&&(v9.chrome&&13==o&&c.toB==c.from+2&&t.text.slice(c.from,c.toB)==nte+nte&&c.toB--,r={from:n+c.from,to:n+c.toA,insert:z8.of(t.text.slice(c.from,c.toB).split(nte))})}else n&&(!e.hasFocus&&e.state.facet(_ee)||n.main.eq(a))&&(n=null);if(!r&&!n)return!1;if(!r&&t.typeOver&&!a.empty&&n&&n.main.empty?r={from:a.from,to:a.to,insert:e.state.doc.slice(a.from,a.to)}:r&&r.from>=a.from&&r.to<=a.to&&(r.from!=a.from||r.to!=a.to)&&a.to-a.from-(r.to-r.from)<=4?r={from:a.from,to:a.to,insert:e.state.doc.slice(a.from,r.from).append(r.insert).append(e.state.doc.slice(r.to,a.to))}:(v9.mac||v9.android)&&r&&r.from==r.to&&r.from==a.head-1&&/^\. ?$/.test(r.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(n&&2==r.insert.length&&(n=f6.single(n.main.anchor-1,n.main.head-1)),r={from:a.from,to:a.to,insert:z8.of([" "])}):v9.chrome&&r&&r.from==r.to&&r.from==a.head&&"\n "==r.insert.toString()&&e.lineWrapping&&(n&&(n=f6.single(n.main.anchor-1,n.main.head-1)),r={from:a.from,to:a.to,insert:z8.of([" "])}),r)return cte(e,r,n,o);if(n&&!n.main.eq(a)){let t=!1,r="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),r=e.inputState.lastSelectionOrigin),e.dispatch({selection:n,scrollIntoView:t,userEvent:r}),!0}return!1}function cte(e,t,r,n=-1){if(v9.ios&&e.inputState.flushIOSKey(t))return!0;let a=e.state.selection.main;if(v9.android&&(t.to==a.to&&(t.from==a.from||t.from==a.from-1&&" "==e.state.sliceDoc(t.from,a.from))&&1==t.insert.length&&2==t.insert.lines&&W7(e.contentDOM,"Enter",13)||(t.from==a.from-1&&t.to==a.to&&0==t.insert.length||8==n&&t.insert.length<t.to-t.from&&t.to>a.head)&&W7(e.contentDOM,"Backspace",8)||t.from==a.from&&t.to==a.to+1&&0==t.insert.length&&W7(e.contentDOM,"Delete",46)))return!0;let o,i=t.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let s=()=>o||(o=function(e,t,r){let n,a=e.state,o=a.selection.main;if(t.from>=o.from&&t.to<=o.to&&t.to-t.from>=(o.to-o.from)/3&&(!r||r.main.empty&&r.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let r=o.from<t.from?a.sliceDoc(o.from,t.from):"",i=o.to>t.to?a.sliceDoc(t.to,o.to):"";n=a.replaceSelection(e.state.toText(r+t.insert.sliceString(0,void 0,e.state.lineBreak)+i))}else{let i=a.changes(t),s=r&&r.main.to<=i.newLength?r.main:void 0;if(a.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=o.to&&t.to>=o.to-10){let l,c=e.state.sliceDoc(t.from,t.to),u=r&&zee(e,r.main.head);if(u){let e=t.insert.length-(t.to-t.from);l={from:u.from,to:u.to-e}}else l=e.state.doc.lineAt(o.head);let d=o.to-t.to,p=o.to-o.from;n=a.changeByRange((r=>{if(r.from==o.from&&r.to==o.to)return{changes:i,range:s||r.map(i)};let n=r.to-d,u=n-c.length;if(r.to-r.from!=p||e.state.sliceDoc(u,n)!=c||r.to>=l.from&&r.from<=l.to)return{range:r};let h=a.changes({from:u,to:n,insert:t.insert}),f=r.to-o.to;return{changes:h,range:s?f6.range(Math.max(0,s.anchor+f),Math.max(0,s.head+f)):r.map(h)}}))}else n={changes:i,selection:s&&a.selection.replaceRange(s)}}let i="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,i+=".compose",e.inputState.compositionFirstChange&&(i+=".start",e.inputState.compositionFirstChange=!1)),a.update(n,{userEvent:i,scrollIntoView:!0})}(e,t,r));return e.state.facet(fee).some((r=>r(e,t.from,t.to,i,s)))||e.dispatch(s()),!0}class ute{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){var t;this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,v9.safari&&e.contentDOM.addEventListener("input",(()=>null)),v9.gecko&&(t=e.contentDOM.ownerDocument,Ite.has(t)||(Ite.add(t),t.addEventListener("copy",(()=>{})),t.addEventListener("cut",(()=>{}))))}handleEvent(e){(function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let r,n=t.target;n!=e.contentDOM;n=n.parentNode)if(!n||11==n.nodeType||(r=t9.get(n))&&r.ignoreEvent(t))return!1;return!0})(this.view,e)&&!this.ignoreDuringComposition(e)&&("keydown"==e.type&&this.keydown(e)||this.runHandlers(e.type,e))}runHandlers(e,t){let r=this.handlers[e];if(r){for(let e of r.observers)e(this.view,t);for(let e of r.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=function(e){let t=Object.create(null);function r(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let t of e){let e=t.spec;if(e&&e.domEventHandlers)for(let n in e.domEventHandlers){let a=e.domEventHandlers[n];a&&r(n).handlers.push(dte(t.value,a))}if(e&&e.domEventObservers)for(let n in e.domEventObservers){let a=e.domEventObservers[n];a&&r(n).observers.push(dte(t.value,a))}}for(let e in vte)r(e).handlers.push(vte[e]);for(let e in bte)r(e).observers.push(bte[e]);return t}(e),r=this.handlers,n=this.view.contentDOM;for(let e in t)if("scroll"!=e){let a=!t[e].handlers.length,o=r[e];o&&a!=!o.handlers.length&&(n.removeEventListener(e,this.handleEvent),o=null),o||n.addEventListener(e,this.handleEvent,{passive:a})}for(let e in r)"scroll"==e||t[e]||n.removeEventListener(e,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&27!=e.keyCode&&fte.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),v9.android&&v9.chrome&&!e.synthetic&&(13==e.keyCode||8==e.keyCode))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return!v9.ios||e.synthetic||e.altKey||e.metaKey||!((t=pte.find((t=>t.keyCode==e.keyCode)))&&!e.ctrlKey||hte.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(229!=e.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=t||e,setTimeout((()=>this.flushIOSKey()),250),!0)}flushIOSKey(e){let t=this.pendingIOSKey;return!!t&&!("Enter"==t.key&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString()))&&(this.pendingIOSKey=void 0,W7(this.view.contentDOM,t.key,t.keyCode,t instanceof KeyboardEvent?t:void 0))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(v9.safari&&!v9.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function dte(e,t){return(r,n)=>{try{return t.call(e,n,r)}catch(e){See(r.state,e)}}}const pte=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],hte="dthko",fte=[16,17,18,20,91,92,224,225];function mte(e){return.7*Math.max(0,e)+8}class gte{constructor(e,t,r,n){this.view=e,this.startEvent=t,this.style=r,this.mustSelect=n,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=function(e){let t,r,n=e.ownerDocument;for(let a=e.parentNode;a&&!(a==n.body||t&&r);)if(1==a.nodeType)!r&&a.scrollHeight>a.clientHeight&&(r=a),!t&&a.scrollWidth>a.clientWidth&&(t=a),a=a.assignedSlot||a.parentNode;else{if(11!=a.nodeType)break;a=a.host}return{x:t,y:r}}(e.contentDOM),this.atoms=e.state.facet(Mee).map((t=>t(e)));let a=e.contentDOM.ownerDocument;a.addEventListener("mousemove",this.move=this.move.bind(this)),a.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(e7.allowMultipleSelections)&&function(e,t){let r=e.state.facet(cee);return r.length?r[0](t):v9.mac?t.metaKey:t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:r}=e.state.selection;if(r.empty)return!1;let n=D7(e.root);if(!n||0==n.rangeCount)return!0;let a=n.getRangeAt(0).getClientRects();for(let e=0;e<a.length;e++){let r=a[e];if(r.left<=t.clientX&&r.right>=t.clientX&&r.top<=t.clientY&&r.bottom>=t.clientY)return!0}return!1}(e,t)||1!=Pte(t))&&null}start(e){!1===this.dragging&&this.select(e)}move(e){if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&(t=this.startEvent,r=e,Math.max(Math.abs(t.clientX-r.clientX),Math.abs(t.clientY-r.clientY))<10))return;var t,r;this.select(this.lastEvent=e);let n=0,a=0,o=0,i=0,s=this.view.win.innerWidth,l=this.view.win.innerHeight;this.scrollParents.x&&({left:o,right:s}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:i,bottom:l}=this.scrollParents.y.getBoundingClientRect());let c=jee(this.view);e.clientX-c.left<=o+6?n=-mte(o-e.clientX):e.clientX+c.right>=s-6&&(n=mte(e.clientX-s)),e.clientY-c.top<=i+6?a=-mte(i-e.clientY):e.clientY+c.bottom>=l-6&&(a=mte(e.clientY-l)),this.setScrollSpeed(n,a)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval((()=>this.scroll()),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let r=0;r<e.ranges.length;r++){let n=e.ranges[r],a=null;if(n.empty){let e=tte(this.atoms,n.from,0);e!=n.from&&(a=f6.cursor(e,-1))}else{let e=tte(this.atoms,n.from,-1),t=tte(this.atoms,n.to,1);e==n.from&&t==n.to||(a=f6.range(n.from==n.anchor?e:t,n.from==n.head?e:t))}a&&(t||(t=e.ranges.slice()),t[r]=a)}return t?f6.create(t,e.mainIndex):e}select(e){let{view:t}=this,r=this.skipAtoms(this.style.get(e,this.extend,this.multiple));!this.mustSelect&&r.eq(t.state.selection,!1===this.dragging)||this.view.dispatch({selection:r,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some((e=>e.isUserEvent("input.type")))?this.destroy():this.style.update(e)&&setTimeout((()=>this.select(this.lastEvent)),20)}}const vte=Object.create(null),bte=Object.create(null),yte=v9.ie&&v9.ie_version<15||v9.ios&&v9.webkit_version<604;function Ote(e,t,r){for(let n of e.facet(t))r=n(r,e);return r}function wte(e,t){t=Ote(e.state,gee,t);let r,{state:n}=e,a=1,o=n.toText(t),i=o.lines==n.selection.ranges.length,s=null!=$te&&n.selection.ranges.every((e=>e.empty))&&$te==o.toString();if(s){let e=-1;r=n.changeByRange((r=>{let s=n.doc.lineAt(r.from);if(s.from==e)return{range:r};e=s.from;let l=n.toText((i?o.line(a++).text:t)+n.lineBreak);return{changes:{from:s.from,insert:l},range:f6.cursor(r.from+l.length)}}))}else r=i?n.changeByRange((e=>{let t=o.line(a++);return{changes:{from:e.from,to:e.to,insert:t.text},range:f6.cursor(e.from+t.length)}})):n.replaceSelection(o);e.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}function xte(e,t,r,n){if(1==n)return f6.cursor(t,r);if(2==n)return function(e,t,r=1){let n=e.charCategorizer(t),a=e.doc.lineAt(t),o=t-a.from;if(0==a.length)return f6.cursor(t);0==o?r=1:o==a.length&&(r=-1);let i=o,s=o;r<0?i=J8(a.text,o,!1):s=J8(a.text,o);let l=n(a.text.slice(i,s));for(;i>0;){let e=J8(a.text,i,!1);if(n(a.text.slice(e,i))!=l)break;i=e}for(;s<a.length;){let e=J8(a.text,s);if(n(a.text.slice(s,e))!=l)break;s=e}return f6.range(i+a.from,s+a.from)}(e.state,t,r);{let r=j9.find(e.docView,t),n=e.state.doc.lineAt(r?r.posAtEnd:t),a=r?r.posAtStart:n.from,o=r?r.posAtEnd:n.to;return o<e.state.doc.length&&o==n.to&&o++,f6.range(a,o)}}bte.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft},vte.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),27==t.keyCode&&0!=e.inputState.tabFocusMode&&(e.inputState.tabFocusMode=Date.now()+2e3),!1),bte.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},bte.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},vte.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let r=null;for(let n of e.state.facet(dee))if(r=n(e,t),r)break;if(r||0!=t.button||(r=function(e,t){let r=_te(e,t),n=Pte(t),a=e.state.selection;return{update(e){e.docChanged&&(r.pos=e.changes.mapPos(r.pos),a=a.map(e.changes))},get(t,o,i){let s,l=_te(e,t),c=xte(e,l.pos,l.bias,n);if(r.pos!=l.pos&&!o){let t=xte(e,r.pos,r.bias,n),a=Math.min(t.from,c.from),o=Math.max(t.to,c.to);c=a<c.from?f6.range(a,o):f6.range(o,a)}return o?a.replaceRange(a.main.extend(c.from,c.to)):i&&1==n&&a.ranges.length>1&&(s=function(e,t){for(let r=0;r<e.ranges.length;r++){let{from:n,to:a}=e.ranges[r];if(n<=t&&a>=t)return f6.create(e.ranges.slice(0,r).concat(e.ranges.slice(r+1)),e.mainIndex==r?0:e.mainIndex-(e.mainIndex>r?1:0))}return null}(a,l.pos))?s:i?a.addRange(c):f6.create([c])}}}(e,t)),r){let n=!e.hasFocus;e.inputState.startMouseSelection(new gte(e,t,r,n)),n&&e.observer.ignore((()=>{V7(e.contentDOM);let t=e.root.activeElement;t&&!t.contains(e.contentDOM)&&t.blur()}));let a=e.inputState.mouseSelection;if(a)return a.start(t),!1===a.dragging}return!1};let kte=(e,t,r)=>t>=r.top&&t<=r.bottom&&e>=r.left&&e<=r.right;function Ste(e,t,r,n){let a=j9.find(e.docView,t);if(!a)return 1;let o=t-a.posAtStart;if(0==o)return 1;if(o==a.length)return-1;let i=a.coordsAt(o,-1);if(i&&kte(r,n,i))return-1;let s=a.coordsAt(o,1);return s&&kte(r,n,s)?1:i&&i.bottom>=n?-1:1}function _te(e,t){let r=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:r,bias:Ste(e,r,t.clientX,t.clientY)}}const Ete=v9.ie&&v9.ie_version<=11;let Tte=null,Ate=0,Cte=0;function Pte(e){if(!Ete)return e.detail;let t=Tte,r=Cte;return Tte=e,Cte=Date.now(),Ate=!t||r>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(Ate+1)%3:1}function Dte(e,t,r,n){if(!(r=Ote(e.state,gee,r)))return;let a=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:o}=e.inputState,i=n&&o&&function(e,t){let r=e.state.facet(uee);return r.length?r[0](t):v9.mac?!t.altKey:!t.ctrlKey}(e,t)?{from:o.from,to:o.to}:null,s={from:a,insert:r},l=e.state.changes(i?[i,s]:s);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(a,-1),head:l.mapPos(a,1)},userEvent:i?"move.drop":"input.drop"}),e.inputState.draggedContent=null}vte.dragstart=(e,t)=>{let{selection:{main:r}}=e.state;if(t.target.draggable){let n=e.docView.nearest(t.target);if(n&&n.isWidget){let e=n.posAtStart,t=e+n.length;(e>=r.to||t<=r.from)&&(r=f6.range(e,t))}}let{inputState:n}=e;return n.mouseSelection&&(n.mouseSelection.dragging=!0),n.draggedContent=r,t.dataTransfer&&(t.dataTransfer.setData("Text",Ote(e.state,vee,e.state.sliceDoc(r.from,r.to))),t.dataTransfer.effectAllowed="copyMove"),!1},vte.dragend=e=>(e.inputState.draggedContent=null,!1),vte.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let r=t.dataTransfer.files;if(r&&r.length){let n=Array(r.length),a=0,o=()=>{++a==r.length&&Dte(e,t,n.filter((e=>null!=e)).join(e.state.lineBreak),!1)};for(let e=0;e<r.length;e++){let t=new FileReader;t.onerror=o,t.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(n[e]=t.result),o()},t.readAsText(r[e])}return!0}{let r=t.dataTransfer.getData("Text");if(r)return Dte(e,t,r,!0),!0}return!1},vte.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let r=yte?null:t.clipboardData;return r?(wte(e,r.getData("text/plain")||r.getData("text/uri-list")),!0):(function(e){let t=e.dom.parentNode;if(!t)return;let r=t.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus(),setTimeout((()=>{e.focus(),r.remove(),wte(e,r.value)}),50)}(e),!1)};let $te=null;vte.copy=vte.cut=(e,t)=>{let{text:r,ranges:n,linewise:a}=function(e){let t=[],r=[],n=!1;for(let n of e.selection.ranges)n.empty||(t.push(e.sliceDoc(n.from,n.to)),r.push(n));if(!t.length){let a=-1;for(let{from:n}of e.selection.ranges){let o=e.doc.lineAt(n);o.number>a&&(t.push(o.text),r.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),a=o.number}n=!0}return{text:Ote(e,vee,t.join(e.lineBreak)),ranges:r,linewise:n}}(e.state);if(!r&&!a)return!1;$te=a?r:null,"cut"!=t.type||e.state.readOnly||e.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"});let o=yte?null:t.clipboardData;return o?(o.clearData(),o.setData("text/plain",r),!0):(function(e,t){let r=e.dom.parentNode;if(!r)return;let n=r.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=t,n.focus(),n.selectionEnd=t.length,n.selectionStart=0,setTimeout((()=>{n.remove(),e.focus()}),50)}(e,r),!1)};const Rte=U6.define();function Mte(e,t){let r=[];for(let n of e.facet(mee)){let a=n(e,t);a&&r.push(a)}return r?e.update({effects:r,annotations:Rte.of(!0)}):null}function Nte(e){setTimeout((()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let r=Mte(e.state,t);r?e.dispatch(r):e.update([])}}),10)}bte.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),Nte(e)},bte.blur=e=>{e.observer.clearSelectionRange(),Nte(e)},bte.compositionstart=bte.compositionupdate=e=>{e.observer.editContext||(null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0))},bte.compositionend=e=>{e.observer.editContext||(e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,v9.chrome&&v9.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then((()=>e.observer.flush())):setTimeout((()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])}),50))},bte.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},vte.beforeinput=(e,t)=>{var r,n;if("insertReplacementText"==t.inputType&&e.observer.editContext){let n=null===(r=t.dataTransfer)||void 0===r?void 0:r.getData("text/plain"),a=t.getTargetRanges();if(n&&a.length){let t=a[0],r=e.posAtDOM(t.startContainer,t.startOffset),o=e.posAtDOM(t.endContainer,t.endOffset);return cte(e,{from:r,to:o,insert:e.state.toText(n)},null),!0}}let a;if(v9.chrome&&v9.android&&(a=pte.find((e=>e.inputType==t.inputType)))&&(e.observer.delayAndroidKey(a.key,a.keyCode),"Backspace"==a.key||"Delete"==a.key)){let t=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout((()=>{var r;((null===(r=window.visualViewport)||void 0===r?void 0:r.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())}),100)}return v9.ios&&"deleteContentForward"==t.inputType&&e.observer.flushSoon(),v9.safari&&"insertText"==t.inputType&&e.inputState.composing>=0&&setTimeout((()=>bte.compositionend(e,t)),20),!1};const Ite=new Set,Lte=["pre-wrap","normal","pre-line","break-spaces"];let jte=!1;function Bte(){jte=!1}class Ute{constructor(e){this.lineWrapping=e,this.doc=z8.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let r=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((t-e-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return Lte.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let r=0;r<e.length;r++){let n=e[r];n<0?r++:this.heightSamples[Math.floor(10*n)]||(t=!0,this.heightSamples[Math.floor(10*n)]=!0)}return t}refresh(e,t,r,n,a,o){let i=Lte.indexOf(e)>-1,s=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=i;if(this.lineWrapping=i,this.lineHeight=t,this.charWidth=r,this.textHeight=n,this.lineLength=a,s){this.heightSamples={};for(let e=0;e<o.length;e++){let t=o[e];t<0?e++:this.heightSamples[Math.floor(10*t)]=!0}}return s}}class Fte{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class Qte{constructor(e,t,r,n,a){this.from=e,this.length=t,this.top=r,this.height=n,this._content=a}get type(){return"number"==typeof this._content?D9.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof N9?this._content.widget:null}get widgetLineBreaks(){return"number"==typeof this._content?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new Qte(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var zte=function(e){return e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight",e}(zte||(zte={}));const qte=.001;class Hte{constructor(e,t,r=2){this.length=e,this.height=t,this.flags=r}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>qte&&(jte=!0),this.height=e)}replace(e,t,r){return Hte.of(r)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,r,n){let a=this,o=r.doc;for(let i=n.length-1;i>=0;i--){let{fromA:s,toA:l,fromB:c,toB:u}=n[i],d=a.lineAt(s,zte.ByPosNoHeight,r.setDoc(t),0,0),p=d.to>=l?d:a.lineAt(l,zte.ByPosNoHeight,r,0,0);for(u+=p.to-l,l=p.to;i>0&&d.from<=n[i-1].toA;)s=n[i-1].fromA,c=n[i-1].fromB,i--,s<d.from&&(d=a.lineAt(s,zte.ByPosNoHeight,r,0,0));c+=d.from-s,s=d.from;let h=Kte.build(r.setDoc(o),e,c,u);a=Vte(a,a.replace(s,l,h))}return a.updateHeight(r,0)}static empty(){return new Wte(0,0)}static of(e){if(1==e.length)return e[0];let t=0,r=e.length,n=0,a=0;for(;;)if(t==r)if(n>2*a){let a=e[t-1];a.break?e.splice(--t,1,a.left,null,a.right):e.splice(--t,1,a.left,a.right),r+=1+a.break,n-=a.size}else{if(!(a>2*n))break;{let t=e[r];t.break?e.splice(r,1,t.left,null,t.right):e.splice(r,1,t.left,t.right),r+=2+t.break,a-=t.size}}else if(n<a){let r=e[t++];r&&(n+=r.size)}else{let t=e[--r];t&&(a+=t.size)}let o=0;return null==e[t-1]?(o=1,t--):null==e[t]&&(o=1,r++),new Gte(Hte.of(e.slice(0,t)),o,Hte.of(e.slice(r)))}}function Vte(e,t){return e==t?e:(e.constructor!=t.constructor&&(jte=!0),t)}Hte.prototype.size=1;class Zte extends Hte{constructor(e,t,r){super(e,t),this.deco=r}blockAt(e,t,r,n){return new Qte(n,this.length,r,this.height,this.deco||0)}lineAt(e,t,r,n,a){return this.blockAt(0,r,n,a)}forEachLine(e,t,r,n,a,o){e<=a+this.length&&t>=a&&o(this.blockAt(0,r,n,a))}updateHeight(e,t=0,r=!1,n){return n&&n.from<=t&&n.more&&this.setHeight(n.heights[n.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Wte extends Zte{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,r,n){return new Qte(n,this.length,r,this.height,this.breaks)}replace(e,t,r){let n=r[0];return 1==r.length&&(n instanceof Wte||n instanceof Xte&&4&n.flags)&&Math.abs(this.length-n.length)<10?(n instanceof Xte?n=new Wte(n.length,this.height):n.height=this.height,this.outdated||(n.outdated=!1),n):Hte.of(r)}updateHeight(e,t=0,r=!1,n){return n&&n.from<=t&&n.more?this.setHeight(n.heights[n.index++]):(r||this.outdated)&&this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Xte extends Hte{constructor(e){super(e,0)}heightMetrics(e,t){let r,n=e.doc.lineAt(t).number,a=e.doc.lineAt(t+this.length).number,o=a-n+1,i=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*o);r=t/o,this.length>o+1&&(i=(this.height-t)/(this.length-o-1))}else r=this.height/o;return{firstLine:n,lastLine:a,perLine:r,perChar:i}}blockAt(e,t,r,n){let{firstLine:a,lastLine:o,perLine:i,perChar:s}=this.heightMetrics(t,n);if(t.lineWrapping){let a=n+(e<t.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-r)/this.height))*this.length)),o=t.doc.lineAt(a),l=i+o.length*s,c=Math.max(r,e-l/2);return new Qte(o.from,o.length,c,l,0)}{let n=Math.max(0,Math.min(o-a,Math.floor((e-r)/i))),{from:s,length:l}=t.doc.line(a+n);return new Qte(s,l,r+i*n,i,0)}}lineAt(e,t,r,n,a){if(t==zte.ByHeight)return this.blockAt(e,r,n,a);if(t==zte.ByPosNoHeight){let{from:t,to:n}=r.doc.lineAt(e);return new Qte(t,n-t,0,0,0)}let{firstLine:o,perLine:i,perChar:s}=this.heightMetrics(r,a),l=r.doc.lineAt(e),c=i+l.length*s,u=l.number-o,d=n+i*u+s*(l.from-a-u);return new Qte(l.from,l.length,Math.max(n,Math.min(d,n+this.height-c)),c,0)}forEachLine(e,t,r,n,a,o){e=Math.max(e,a),t=Math.min(t,a+this.length);let{firstLine:i,perLine:s,perChar:l}=this.heightMetrics(r,a);for(let c=e,u=n;c<=t;){let t=r.doc.lineAt(c);if(c==e){let r=t.number-i;u+=s*r+l*(e-a-r)}let n=s+l*t.length;o(new Qte(t.from,t.length,u,n,0)),u+=n,c=t.to+1}}replace(e,t,r){let n=this.length-t;if(n>0){let e=r[r.length-1];e instanceof Xte?r[r.length-1]=new Xte(e.length+n):r.push(null,new Xte(n-1))}if(e>0){let t=r[0];t instanceof Xte?r[0]=new Xte(e+t.length):r.unshift(new Xte(e-1),null)}return Hte.of(r)}decomposeLeft(e,t){t.push(new Xte(e-1),null)}decomposeRight(e,t){t.push(null,new Xte(this.length-e-1))}updateHeight(e,t=0,r=!1,n){let a=t+this.length;if(n&&n.from<=t+this.length&&n.more){let r=[],o=Math.max(t,n.from),i=-1;for(n.from>t&&r.push(new Xte(n.from-t-1).updateHeight(e,t));o<=a&&n.more;){let t=e.doc.lineAt(o).length;r.length&&r.push(null);let a=n.heights[n.index++];-1==i?i=a:Math.abs(a-i)>=qte&&(i=-2);let s=new Wte(t,a);s.outdated=!1,r.push(s),o+=t+1}o<=a&&r.push(null,new Xte(a-o).updateHeight(e,o));let s=Hte.of(r);return(i<0||Math.abs(s.height-this.height)>=qte||Math.abs(i-this.heightMetrics(e,t).perLine)>=qte)&&(jte=!0),Vte(this,s)}return(r||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class Gte extends Hte{constructor(e,t,r){super(e.length+t+r.length,e.height+r.height,t|(e.outdated||r.outdated?2:0)),this.left=e,this.right=r,this.size=e.size+r.size}get break(){return 1&this.flags}blockAt(e,t,r,n){let a=r+this.left.height;return e<a?this.left.blockAt(e,t,r,n):this.right.blockAt(e,t,a,n+this.left.length+this.break)}lineAt(e,t,r,n,a){let o=n+this.left.height,i=a+this.left.length+this.break,s=t==zte.ByHeight?e<o:e<i,l=s?this.left.lineAt(e,t,r,n,a):this.right.lineAt(e,t,r,o,i);if(this.break||(s?l.to<i:l.from>i))return l;let c=t==zte.ByPosNoHeight?zte.ByPosNoHeight:zte.ByPos;return s?l.join(this.right.lineAt(i,c,r,o,i)):this.left.lineAt(i,c,r,n,a).join(l)}forEachLine(e,t,r,n,a,o){let i=n+this.left.height,s=a+this.left.length+this.break;if(this.break)e<s&&this.left.forEachLine(e,t,r,n,a,o),t>=s&&this.right.forEachLine(e,t,r,i,s,o);else{let l=this.lineAt(s,zte.ByPos,r,n,a);e<l.from&&this.left.forEachLine(e,l.from-1,r,n,a,o),l.to>=e&&l.from<=t&&o(l),t>l.to&&this.right.forEachLine(l.to+1,t,r,i,s,o)}}replace(e,t,r){let n=this.left.length+this.break;if(t<n)return this.balanced(this.left.replace(e,t,r),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-n,t-n,r));let a=[];e>0&&this.decomposeLeft(e,a);let o=a.length;for(let e of r)a.push(e);if(e>0&&Yte(a,o-1),t<this.length){let e=a.length;this.decomposeRight(t,a),Yte(a,e)}return Hte.of(a)}decomposeLeft(e,t){let r=this.left.length;if(e<=r)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(r++,e>=r&&t.push(null)),e>r&&this.right.decomposeLeft(e-r,t)}decomposeRight(e,t){let r=this.left.length,n=r+this.break;if(e>=n)return this.right.decomposeRight(e-n,t);e<r&&this.left.decomposeRight(e,t),this.break&&e<n&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?Hte.of(this.break?[e,null,t]:[e,t]):(this.left=Vte(this.left,e),this.right=Vte(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,r=!1,n){let{left:a,right:o}=this,i=t+a.length+this.break,s=null;return n&&n.from<=t+a.length&&n.more?s=a=a.updateHeight(e,t,r,n):a.updateHeight(e,t,r),n&&n.from<=i+o.length&&n.more?s=o=o.updateHeight(e,i,r,n):o.updateHeight(e,i,r),s?this.balanced(a,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Yte(e,t){let r,n;null==e[t]&&(r=e[t-1])instanceof Xte&&(n=e[t+1])instanceof Xte&&e.splice(t-1,3,new Xte(r.length+1+n.length))}class Kte{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof Wte?r.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new Wte(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,r){if(e<t||r.heightRelevant){let n=r.widget?r.widget.estimatedHeight:0,a=r.widget?r.widget.lineBreaks:0;n<0&&(n=this.oracle.lineHeight);let o=t-e;r.block?this.addBlock(new Zte(o,n,r)):(o||a||n>=5)&&this.addLineDeco(n,a,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new Wte(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let r=new Xte(t-e);return this.oracle.doc.lineAt(e).to==t&&(r.flags|=4),r}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Wte)return e;let t=new Wte(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,r){let n=this.ensureLine();n.length+=r,n.collapsed+=r,n.widgetHeight=Math.max(n.widgetHeight,e),n.breaks+=t,this.writtenTo=this.pos=this.pos+r}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof Wte||this.isCovered?(this.writtenTo<this.pos||null==t)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new Wte(0,-1));let r=e;for(let e of this.nodes)e instanceof Wte&&e.updateHeight(this.oracle,r),r+=e?e.length:1;return this.nodes}static build(e,t,r,n){let a=new Kte(r,e);return i7.spans(t,r,n,a,0),a.finish(r)}}class Jte{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,r,n){(e<t||r&&r.heightRelevant||n&&n.heightRelevant)&&L9(e,t,this.changes,5)}}function ere(e,t){let r=e.getBoundingClientRect(),n=e.ownerDocument,a=n.defaultView||window,o=Math.max(0,r.left),i=Math.min(a.innerWidth,r.right),s=Math.max(0,r.top),l=Math.min(a.innerHeight,r.bottom);for(let t=e.parentNode;t&&t!=n.body;)if(1==t.nodeType){let r=t,n=window.getComputedStyle(r);if((r.scrollHeight>r.clientHeight||r.scrollWidth>r.clientWidth)&&"visible"!=n.overflow){let n=r.getBoundingClientRect();o=Math.max(o,n.left),i=Math.min(i,n.right),s=Math.max(s,n.top),l=Math.min(t==e.parentNode?a.innerHeight:l,n.bottom)}t="absolute"==n.position||"fixed"==n.position?r.offsetParent:r.parentNode}else{if(11!=t.nodeType)break;t=t.host}return{left:o-r.left,right:Math.max(o,i)-r.left,top:s-(r.top+t),bottom:Math.max(s,l)-(r.top+t)}}function tre(e,t){let r=e.getBoundingClientRect();return{left:0,right:r.right-r.left,top:t,bottom:r.bottom-(r.top+t)}}class rre{constructor(e,t,r,n){this.from=e,this.to=t,this.size=r,this.displaySize=n}static same(e,t){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++){let n=e[r],a=t[r];if(n.from!=a.from||n.to!=a.to||n.size!=a.size)return!1}return!0}draw(e,t){return $9.replace({widget:new nre(this.displaySize*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class nre extends P9{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class are{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!1,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=lre,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=q9.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let t=e.facet(Dee).some((e=>"function"!=typeof e&&"cm-lineWrapping"==e.class));this.heightOracle=new Ute(t),this.stateDeco=e.facet($ee).filter((e=>"function"!=typeof e)),this.heightMap=Hte.empty().applyChanges(this.stateDeco,z8.empty,this.heightOracle.setDoc(e.doc),[new Uee(0,0,0,e.doc.length)]);for(let e=0;e<2&&(this.viewport=this.getViewport(0,null),this.updateForViewport());e++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=$9.set(this.lineGaps.map((e=>e.draw(this,!1)))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let r=0;r<=1;r++){let n=r?t.head:t.anchor;if(!e.some((({from:e,to:t})=>n>=e&&n<=t))){let{from:t,to:r}=this.lineBlockAt(n);e.push(new ore(t,r))}}return this.viewports=e.sort(((e,t)=>e.from-t.from)),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?lre:new cre(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,(e=>{this.viewportLines.push(ure(e,this.scaler))}))}update(e,t=null){this.state=e.state;let r=this.stateDeco;this.stateDeco=this.state.facet($ee).filter((e=>"function"!=typeof e));let n=e.changedRanges,a=Uee.extendWithRanges(n,function(e,t,r){let n=new Jte;return i7.compare(e,t,r,n,0),n.changes}(r,this.stateDeco,e?e.changes:i6.empty(this.state.doc.length))),o=this.heightMap.height,i=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);Bte(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),a),(this.heightMap.height!=o||jte)&&(e.flags|=2),i?(this.scrollAnchorPos=e.changes.mapPos(i.from,-1),this.scrollAnchorHeight=i.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let s=a.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<s.from||t.range.head>s.to)||!this.viewportIsAppropriate(s))&&(s=this.getViewport(0,t));let l=s.from!=this.viewport.from||s.to!=this.viewport.to;this.viewport=s,e.flags|=this.updateForViewport(),(l||!e.changes.empty||2&e.flags)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(yee)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,r=window.getComputedStyle(t),n=this.heightOracle,a=r.whiteSpace;this.defaultTextDirection="rtl"==r.direction?q9.RTL:q9.LTR;let o=this.heightOracle.mustRefreshForWrapping(a),i=t.getBoundingClientRect(),s=o||this.mustMeasureContent||this.contentDOMHeight!=i.height;this.contentDOMHeight=i.height,this.mustMeasureContent=!1;let l=0,c=0;if(i.width&&i.height){let{scaleX:e,scaleY:r}=Q7(t,i);(e>.005&&Math.abs(this.scaleX-e)>.005||r>.005&&Math.abs(this.scaleY-r)>.005)&&(this.scaleX=e,this.scaleY=r,l|=8,o=s=!0)}let u=(parseInt(r.paddingTop)||0)*this.scaleY,d=(parseInt(r.paddingBottom)||0)*this.scaleY;this.paddingTop==u&&this.paddingBottom==d||(this.paddingTop=u,this.paddingBottom=d,l|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(n.lineWrapping&&(s=!0),this.editorWidth=e.scrollDOM.clientWidth,l|=8);let p=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=p&&(this.scrollAnchorHeight=-1,this.scrollTop=p),this.scrolledToBottom=G7(e.scrollDOM);let h=(this.printing?tre:ere)(t,this.paddingTop),f=h.top-this.pixelViewport.top,m=h.bottom-this.pixelViewport.bottom;this.pixelViewport=h;let g=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(g!=this.inView&&(this.inView=g,g&&(s=!0)),!this.inView&&!this.scrollTarget)return 0;let v=i.width;if(this.contentDOMWidth==v&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=i.width,this.editorHeight=e.scrollDOM.clientHeight,l|=8),s){let t=e.docView.measureVisibleLineHeights(this.viewport);if(n.mustRefreshForHeights(t)&&(o=!0),o||n.lineWrapping&&Math.abs(v-this.contentDOMWidth)>n.charWidth){let{lineHeight:r,charWidth:i,textHeight:s}=e.docView.measureTextSize();o=r>0&&n.refresh(a,r,i,s,v/i,t),o&&(e.docView.minWidth=0,l|=8)}f>0&&m>0?c=Math.max(f,m):f<0&&m<0&&(c=Math.min(f,m)),Bte();for(let r of this.viewports){let a=r.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(r);this.heightMap=(o?Hte.empty().applyChanges(this.stateDeco,z8.empty,this.heightOracle,[new Uee(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(n,0,o,new Fte(r.from,a))}jte&&(l|=2)}let b=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return b&&(2&l&&(l|=this.updateScaler()),this.viewport=this.getViewport(c,this.scrollTarget),l|=this.updateForViewport()),(2&l||b)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),l|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),l}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let r=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),n=this.heightMap,a=this.heightOracle,{visibleTop:o,visibleBottom:i}=this,s=new ore(n.lineAt(o-1e3*r,zte.ByHeight,a,0,0).from,n.lineAt(i+1e3*(1-r),zte.ByHeight,a,0,0).to);if(t){let{head:e}=t.range;if(e<s.from||e>s.to){let r,o=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),i=n.lineAt(e,zte.ByPos,a,0,0);r="center"==t.y?(i.top+i.bottom)/2-o/2:"start"==t.y||"nearest"==t.y&&e<s.from?i.top:i.bottom-o,s=new ore(n.lineAt(r-500,zte.ByHeight,a,0,0).from,n.lineAt(r+o+500,zte.ByHeight,a,0,0).to)}}return s}mapViewport(e,t){let r=t.mapPos(e.from,-1),n=t.mapPos(e.to,1);return new ore(this.heightMap.lineAt(r,zte.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(n,zte.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},r=0){if(!this.inView)return!0;let{top:n}=this.heightMap.lineAt(e,zte.ByPos,this.heightOracle,0,0),{bottom:a}=this.heightMap.lineAt(t,zte.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:i}=this;return(0==e||n<=o-Math.max(10,Math.min(-r,250)))&&(t==this.state.doc.length||a>=i+Math.max(10,Math.min(r,250)))&&n>o-2e3&&a<i+2e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let r=[];for(let n of e)t.touchesRange(n.from,n.to)||r.push(new rre(t.mapPos(n.from),t.mapPos(n.to),n.size,n.displaySize));return r}ensureLineGaps(e,t){let r=this.heightOracle.lineWrapping,n=r?1e4:2e3,a=n>>1,o=n<<1;if(this.defaultTextDirection!=q9.LTR&&!r)return[];let i=[],s=(n,o,l,c)=>{if(o-n<a)return;let u=this.state.selection.main,d=[u.from];u.empty||d.push(u.to);for(let e of d)if(e>n&&e<o)return s(n,e-10,l,c),void s(e+10,o,l,c);let p=function(e,t){for(let r of e)if(t(r))return r}(e,(e=>e.from>=l.from&&e.to<=l.to&&Math.abs(e.from-n)<a&&Math.abs(e.to-o)<a&&!d.some((t=>e.from<t&&e.to>t))));if(!p){if(o<l.to&&t&&r&&t.visibleRanges.some((e=>e.from<=o&&e.to>=o))){let e=t.moveToLineBoundary(f6.cursor(o),!1,!0).head;e>n&&(o=e)}let e=this.gapSize(l,n,o,c);p=new rre(n,o,e,r||e<2e6?e:2e6)}i.push(p)},l=t=>{if(t.length<o||t.type!=D9.Text)return;let a=function(e,t,r){let n=[],a=e,o=0;return i7.spans(r,e,t,{span(){},point(e,t){e>a&&(n.push({from:a,to:e}),o+=e-a),a=t}},20),a<t&&(n.push({from:a,to:t}),o+=t-a),{total:o,ranges:n}}(t.from,t.to,this.stateDeco);if(a.total<o)return;let i,l,c=this.scrollTarget?this.scrollTarget.range.head:null;if(r){let e,r,o=n/this.heightOracle.lineLength*this.heightOracle.lineHeight;if(null!=c){let n=sre(a,c),i=((this.visibleBottom-this.visibleTop)/2+o)/t.height;e=n-i,r=n+i}else e=(this.visibleTop-t.top-o)/t.height,r=(this.visibleBottom-t.top+o)/t.height;i=ire(a,e),l=ire(a,r)}else{let r=a.total*this.heightOracle.charWidth,o=n*this.heightOracle.charWidth,s=0;if(r>2e6)for(let r of e)r.from>=t.from&&r.from<t.to&&r.size!=r.displaySize&&r.from*this.heightOracle.charWidth+s<this.pixelViewport.left&&(s=r.size-r.displaySize);let u,d,p=this.pixelViewport.left+s,h=this.pixelViewport.right+s;if(null!=c){let e=sre(a,c),t=((h-p)/2+o)/r;u=e-t,d=e+t}else u=(p-o)/r,d=(h+o)/r;i=ire(a,u),l=ire(a,d)}i>t.from&&s(t.from,i,t,a),l<t.to&&s(l,t.to,t,a)};for(let e of this.viewportLines)Array.isArray(e.type)?e.type.forEach(l):l(e);return i}gapSize(e,t,r,n){let a=sre(n,r)-sre(n,t);return this.heightOracle.lineWrapping?e.height*a:n.total*this.heightOracle.charWidth*a}updateLineGaps(e){rre.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=$9.set(e.map((e=>e.draw(this,this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];i7.spans(e,this.viewport.from,this.viewport.to,{span(e,r){t.push({from:e,to:r})},point(){}},20);let r=t.length!=this.visibleRanges.length||this.visibleRanges.some(((e,r)=>e.from!=t[r].from||e.to!=t[r].to));return this.visibleRanges=t,r?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find((t=>t.from<=e&&t.to>=e))||ure(this.heightMap.lineAt(e,zte.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find((t=>t.top<=e&&t.bottom>=e))||ure(this.heightMap.lineAt(this.scaler.fromDOM(e),zte.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return ure(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class ore{constructor(e,t){this.from=e,this.to=t}}function ire({total:e,ranges:t},r){if(r<=0)return t[0].from;if(r>=1)return t[t.length-1].to;let n=Math.floor(e*r);for(let e=0;;e++){let{from:r,to:a}=t[e],o=a-r;if(n<=o)return r+n;n-=o}}function sre(e,t){let r=0;for(let{from:n,to:a}of e.ranges){if(t<=a){r+=t-n;break}r+=a-n}return r/e.total}const lre={toDOM:e=>e,fromDOM:e=>e,scale:1,eq(e){return e==this}};class cre{constructor(e,t,r){let n=0,a=0,o=0;this.viewports=r.map((({from:r,to:a})=>{let o=t.lineAt(r,zte.ByPos,e,0,0).top,i=t.lineAt(a,zte.ByPos,e,0,0).bottom;return n+=i-o,{from:r,to:a,top:o,bottom:i,domTop:0,domBottom:0}})),this.scale=(7e6-n)/(t.height-n);for(let e of this.viewports)e.domTop=o+(e.top-a)*this.scale,o=e.domBottom=e.domTop+(e.bottom-e.top),a=e.bottom}toDOM(e){for(let t=0,r=0,n=0;;t++){let a=t<this.viewports.length?this.viewports[t]:null;if(!a||e<a.top)return n+(e-r)*this.scale;if(e<=a.bottom)return a.domTop+(e-a.top);r=a.bottom,n=a.domBottom}}fromDOM(e){for(let t=0,r=0,n=0;;t++){let a=t<this.viewports.length?this.viewports[t]:null;if(!a||e<a.domTop)return r+(e-n)/this.scale;if(e<=a.domBottom)return a.top+(e-a.domTop);r=a.bottom,n=a.domBottom}}eq(e){return e instanceof cre&&this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every(((t,r)=>t.from==e.viewports[r].from&&t.to==e.viewports[r].to))}}function ure(e,t){if(1==t.scale)return e;let r=t.toDOM(e.top),n=t.toDOM(e.bottom);return new Qte(e.from,e.length,r,n-r,Array.isArray(e._content)?e._content.map((e=>ure(e,t))):e._content)}const dre=v6.define({combine:e=>e.join(" ")}),pre=v6.define({combine:e=>e.indexOf(!0)>-1}),hre=x7.newName(),fre=x7.newName(),mre=x7.newName(),gre={"&light":"."+fre,"&dark":"."+mre};function vre(e,t,r){return new x7(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,(t=>{if("&"==t)return e;if(!r||!r[t])throw new RangeError(`Unsupported selector: ${t}`);return r[t]})):e+" "+t})}const bre=vre("."+hre,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},gre),yre={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Ore=v9.ie&&v9.ie_version<=11;class wre{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new z7,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver((t=>{for(let e of t)this.queue.push(e);(v9.ie&&v9.ie_version<=11||v9.ios&&e.composing)&&t.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),!window.EditContext||!1===e.constructor.EDIT_CONTEXT||v9.chrome&&v9.chrome_version<126||(this.editContext=new Sre(e),e.state.facet(_ee)&&(e.contentDOM.editContext=this.editContext.editContext)),Ore&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver((()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate)<Date.now()-75&&this.onResize()})),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver((e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))}),{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(e){("change"!=e.type&&e.type||e.matches)&&(this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some(((t,r)=>t!=e[r])))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,n=this.selectionRange;if(r.state.facet(_ee)?r.root.activeElement!=this.dom:!R7(this.dom,n))return;let a=n.anchorNode&&r.docView.nearest(n.anchorNode);a&&a.ignoreEvent(e)?t||(this.selectionChanged=!1):(v9.ie&&v9.ie_version<=11||v9.android&&v9.chrome)&&!r.state.selection.main.empty&&n.focusNode&&N7(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=D7(e.root);if(!t)return!1;let r=v9.safari&&11==e.root.nodeType&&e.root.activeElement==this.dom&&function(e,t){if(t.getComposedRanges){let r=t.getComposedRanges(e.root)[0];if(r)return kre(e,r)}let r=null;function n(e){e.preventDefault(),e.stopImmediatePropagation(),r=e.getTargetRanges()[0]}return e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),r?kre(e,r):null}(this.view,t)||t;if(!r||this.selectionRange.eq(r))return!1;let n=R7(this.dom,r);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&function(e,t){let r=t.focusNode,n=t.focusOffset;if(!r||t.anchorNode!=r||t.anchorOffset!=n)return!1;for(n=Math.min(n,B7(r));;)if(n){if(1!=r.nodeType)return!1;let e=r.childNodes[n-1];"false"==e.contentEditable?n--:(r=e,n=B7(r))}else{if(r==e)return!0;n=I7(r),r=r.parentNode}}(this.dom,r)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(r),n&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let r=this.dom;r;)if(1==r.nodeType)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==r?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(r),r=r.assignedSlot||r.parentNode;else{if(11!=r.nodeType)break;r=r.host}if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);for(let e of this.scrollTargets=t)e.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,yre),Ore&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),Ore&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var r;if(!this.delayedAndroidKey){let e=()=>{let e=this.delayedAndroidKey;e&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&W7(this.dom,e.key,e.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(null===(r=this.delayedAndroidKey)||void 0===r?void 0:r.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame((()=>{this.delayedFlush=-1,this.flush()})))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,r=-1,n=!1;for(let a of e){let e=this.readMutation(a);e&&(e.typeOver&&(n=!0),-1==t?({from:t,to:r}=e):(t=Math.min(e.from,t),r=Math.max(e.to,r)))}return{from:t,to:r,typeOver:n}}readChange(){let{from:e,to:t,typeOver:r}=this.processRecords(),n=this.selectionChanged&&R7(this.dom,this.selectionRange);if(e<0&&!n)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let a=new ste(this.view,e,t,r);return this.view.docView.domChanged={newSel:a.newSel?a.newSel.main:null},a}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let r=this.view.state,n=lte(this.view,t);return this.view.state==r&&(t.domChanged||t.newSel&&!t.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),n}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.flags|=4),"childList"==e.type){let r=xre(t,e.previousSibling||e.target.previousSibling,-1),n=xre(t,e.nextSibling||e.target.nextSibling,1);return{from:r?t.posAfter(r):t.posAtStart,to:n?t.posBefore(n):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(_ee)!=e.state.facet(_ee)&&(e.view.contentDOM.editContext=e.state.facet(_ee)?this.editContext.editContext:null))}destroy(){var e,t,r;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(r=this.resizeScroll)||void 0===r||r.disconnect();for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function xre(e,t,r){for(;t;){let n=t9.get(t);if(n&&n.parent==e)return n;let a=t.parentNode;t=a!=e.dom?a:r>0?t.nextSibling:t.previousSibling}return null}function kre(e,t){let r=t.startContainer,n=t.startOffset,a=t.endContainer,o=t.endOffset,i=e.docView.domAtPos(e.state.selection.main.anchor);return N7(i.node,i.offset,a,o)&&([r,n,a,o]=[a,o,r,n]),{anchorNode:r,anchorOffset:n,focusNode:a,focusOffset:o}}class Sre{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=t=>{let{anchor:r}=e.state.selection.main,n=this.toEditorPos(t.updateRangeStart),a=this.toEditorPos(t.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:t.updateRangeStart,editorBase:n,drifted:!1});let o={from:n,to:a,insert:z8.of(t.text.split("\n"))};if(o.from==this.from&&r<this.from?o.from=r:o.to==this.to&&r>this.to&&(o.to=r),o.from!=o.to||o.insert.length){if(this.pendingContextChange=o,!e.state.readOnly){let r=this.to-this.from+(o.to-o.from+o.insert.length);cte(e,o,f6.single(this.toEditorPos(t.selectionStart,r),this.toEditorPos(t.selectionEnd,r)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state))}},this.handlers.characterboundsupdate=r=>{let n=[],a=null;for(let t=this.toEditorPos(r.rangeStart),o=this.toEditorPos(r.rangeEnd);t<o;t++){let r=e.coordsForChar(t);a=r&&new DOMRect(r.left,r.top,r.right-r.left,r.bottom-r.top)||a||new DOMRect,n.push(a)}t.updateCharacterBounds(r.rangeStart,n)},this.handlers.textformatupdate=t=>{let r=[];for(let e of t.getTextFormats()){let t=e.underlineStyle,n=e.underlineThickness;if("None"!=t&&"None"!=n){let a=this.toEditorPos(e.rangeStart),o=this.toEditorPos(e.rangeEnd);if(a<o){let e=`text-decoration: underline ${"Dashed"==t?"dashed ":"Squiggle"==t?"wavy ":""}${"Thin"==n?1:2}px`;r.push($9.mark({attributes:{style:e}}).range(a,o))}}}e.dispatch({effects:kee.of($9.set(r))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:t}=this.composing;this.composing=null,t&&this.reset(e.state)}};for(let e in this.handlers)t.addEventListener(e,this.handlers[e]);this.measureReq={read:e=>{this.editContext.updateControlBounds(e.contentDOM.getBoundingClientRect());let t=D7(e.root);t&&t.rangeCount&&this.editContext.updateSelectionBounds(t.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,r=!1,n=this.pendingContextChange;return e.changes.iterChanges(((a,o,i,s,l)=>{if(r)return;let c=l.length-(o-a);if(n&&o>=n.to){if(n.from==a&&n.to==o&&n.insert.eq(l))return n=this.pendingContextChange=null,t+=c,void(this.to+=c);n=null,this.revertPending(e.state)}if(a+=t,(o+=t)<=this.from)this.from+=c,this.to+=c;else if(a<this.to){if(a<this.from||o>this.to||this.to-this.from+l.length>3e4)return void(r=!0);this.editContext.updateText(this.toContextPos(a),this.toContextPos(o),l.toString()),this.to+=c}t+=c})),n&&!r&&this.revertPending(e.state),!r}update(e){let t=this.pendingContextChange;this.composing&&(this.composing.drifted||e.transactions.some((e=>!e.isUserEvent("input.type")&&e.changes.touchesRange(this.from,this.to))))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):this.applyEdits(e)&&this.rangeIsValid(e.state)?(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state):(this.pendingContextChange=null,this.reset(e.state)),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,r=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),n=this.toContextPos(t.head);this.editContext.selectionStart==r&&this.editContext.selectionEnd==n||this.editContext.updateSelection(r,n)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>3e4)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let r=this.composing;return r&&r.drifted?r.editorBase+(e-r.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class _re{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:r}=e;this.dispatchTransactions=e.dispatchTransactions||r&&(e=>e.forEach((e=>r(e,this))))||(e=>this.update(e)),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new are(e.state||e7.create(e)),e.scrollTo&&e.scrollTo.is(xee)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Tee).map((e=>new Cee(e)));for(let e of this.plugins)e.update(this);this.observer=new wre(this),this.inputState=new ute(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Qee(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),(null===(t=document.fonts)||void 0===t?void 0:t.ready)&&document.fonts.ready.then((()=>this.requestMeasure()))}dispatch(...e){let t=1==e.length&&e[0]instanceof q6?e:1==e.length&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t,r=!1,n=!1,a=this.state;for(let t of e){if(t.startState!=a)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");a=t.state}if(this.destroyed)return void(this.viewState.state=a);let o=this.hasFocus,i=0,s=null;e.some((e=>e.annotation(Rte)))?(this.inputState.notifiedFocused=o,i=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,s=Mte(a,o),s||(i=1));let l=this.observer.delayedAndroidKey,c=null;if(l?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(c=null)):this.observer.clear(),a.facet(e7.phrases)!=this.state.facet(e7.phrases))return this.setState(a);t=Fee.create(this,a,e),t.flags|=i;let u=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(u&&(u=u.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;u=new wee(e.empty?e:f6.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(xee)&&(u=e.value.clip(this.state))}this.viewState.update(t,u),this.bidiCache=Are.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),r=this.docView.update(t),this.state.facet(Bee)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(r,e.some((e=>e.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(t.startState.facet(dre)!=t.state.facet(dre)&&(this.viewState.mustMeasureContent=!0),(r||n||u||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),r&&this.docViewUpdate(),!t.empty)for(let e of this.state.facet(hee))try{e(t)}catch(e){See(this.state,e,"update listener")}(s||c)&&Promise.resolve().then((()=>{s&&this.state==s.startState&&this.dispatch(s),c&&!lte(this,c)&&l.force&&W7(this.contentDOM,l.key,l.keyCode)}))}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new are(e),this.plugins=e.facet(Tee).map((e=>new Cee(e))),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView.destroy(),this.docView=new Qee(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(Tee),r=e.state.facet(Tee);if(t!=r){let n=[];for(let a of r){let r=t.indexOf(a);if(r<0)n.push(new Cee(a));else{let t=this.plugins[r];t.mustUpdate=e,n.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=n,this.pluginMap.clear()}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e<this.plugins.length;e++)this.plugins[e].update(this);t!=r&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let t=e.value;if(t&&t.docViewUpdate)try{t.docViewUpdate(this)}catch(e){See(this.state,e,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,r=this.scrollDOM,n=r.scrollTop*this.scaleY,{scrollAnchorPos:a,scrollAnchorHeight:o}=this.viewState;Math.abs(n-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(o<0)if(G7(r))a=-1,o=this.viewState.heightMap.height;else{let e=this.viewState.scrollAnchorAt(n);a=e.from,o=e.top}this.updateState=1;let i=this.viewState.measure(this);if(!i&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let s=[];4&i||([this.measureRequests,s]=[s,this.measureRequests]);let l=s.map((e=>{try{return e.read(this)}catch(e){return See(this.state,e),Tre}})),c=Fee.create(this,this.state,[]),u=!1;c.flags|=i,t?t.flags|=i:t=c,this.updateState=2,c.empty||(this.updatePlugins(c),this.inputState.update(c),this.updateAttrs(),u=this.docView.update(c),u&&this.docViewUpdate());for(let e=0;e<s.length;e++)if(l[e]!=Tre)try{let t=s[e];t.write&&t.write(l[e],this)}catch(e){See(this.state,e)}if(u&&this.docView.updateSelection(!0),!c.viewportChanged&&0==this.measureRequests.length){if(this.viewState.editorHeight){if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,o=-1;continue}{let e=(a<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(a).top)-o;if(e>1||e<-1){n+=e,r.scrollTop=n/this.scaleY,o=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let e of this.state.facet(hee))e(t)}get themeClasses(){return hre+" "+(this.state.facet(pre)?mre:fre)+" "+this.state.facet(dre)}updateAttrs(){let e=Cre(this,Pee,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(_ee)?"true":"false",class:"cm-content",style:`${v9.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),Cre(this,Dee,t);let r=this.observer.ignore((()=>{let r=A9(this.contentDOM,this.contentAttrs,t),n=A9(this.dom,this.editorAttrs,e);return r||n}));return this.editorAttrs=e,this.contentAttrs=t,r}showAnnouncements(e){let t=!0;for(let r of e)for(let e of r.effects)e.is(_re.announce)&&(t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value)}mountStyles(){this.styleModules=this.state.facet(Bee);let e=this.state.facet(_re.cspNonce);x7.mount(this.root,this.styleModules.concat(bre).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()))),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key)return void(this.measureRequests[t]=e);this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(void 0===t||t&&t.spec!=e)&&this.pluginMap.set(e,t=this.plugins.find((t=>t.spec==e))||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,r){return rte(this,e,ete(this,e,t,r))}moveByGroup(e,t){return rte(this,e,ete(this,e,t,(t=>function(e,t,r){let n=e.state.charCategorizer(t),a=n(r);return e=>{let t=n(e);return a==Y6.Space&&(a=t),a==t}}(this,e.head,t))))}visualLineSide(e,t){let r=this.bidiSpans(e),n=this.textDirectionAt(e.from),a=r[t?r.length-1:0];return f6.cursor(a.side(t,n)+e.from,a.forward(!t,n)?1:-1)}moveToLineBoundary(e,t,r=!0){return function(e,t,r,n){let a=function(e,t){let r=e.lineBlockAt(t);if(Array.isArray(r.type))for(let e of r.type)if(e.to>t||e.to==t&&(e.to==r.to||e.type==D9.Text))return e;return r}(e,t.head),o=n&&a.type==D9.Text&&(e.lineWrapping||a.widgetLineBreaks)?e.coordsAtPos(t.assoc<0&&t.head>a.from?t.head-1:t.head):null;if(o){let t=e.dom.getBoundingClientRect(),n=e.textDirectionAt(a.from),i=e.posAtCoords({x:r==(n==q9.LTR)?t.right-1:t.left+1,y:(o.top+o.bottom)/2});if(null!=i)return f6.cursor(i,r?-1:1)}return f6.cursor(r?a.to:a.from,r?-1:1)}(this,e,t,r)}moveVertically(e,t,r){return rte(this,e,function(e,t,r,n){let a=t.head,o=r?1:-1;if(a==(r?e.state.doc.length:0))return f6.cursor(a,t.assoc);let i,s=t.goalColumn,l=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(a,t.assoc||-1),u=e.documentTop;if(c)null==s&&(s=c.left-l.left),i=o<0?c.top:c.bottom;else{let t=e.viewState.lineBlockAt(a);null==s&&(s=Math.min(l.right-l.left,e.defaultCharacterWidth*(a-t.from))),i=(o<0?t.top:t.bottom)+u}let d=l.left+s,p=null!=n?n:e.viewState.heightOracle.textHeight>>1;for(let t=0;;t+=10){let r=i+(p+t)*o,n=Kee(e,{x:d,y:r},!1,o);if(r<l.top||r>l.bottom||(o<0?n<a:n>a)){let t=e.docView.coordsForChar(n),a=!t||r<t.top?-1:1;return f6.cursor(n,a,void 0,s)}}}(this,e,t,r))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),Kee(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let r=this.docView.coordsAt(e,t);if(!r||r.left==r.right)return r;let n=this.state.doc.lineAt(e),a=this.bidiSpans(n);return U7(r,a[eee.find(a,e-n.from,-1,t)].dir==q9.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(bee)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>Ere)return oee(e.length);let t,r=this.textDirectionAt(e.from);for(let n of this.bidiCache)if(n.from==e.from&&n.dir==r&&(n.fresh||tee(n.isolates,t=Iee(this,e))))return n.order;t||(t=Iee(this,e));let n=function(e,t,r){if(!e)return[new eee(0,0,t==V9?1:0)];if(t==H9&&!r.length&&!J9.test(e))return oee(e.length);if(r.length)for(;e.length>ree.length;)ree[ree.length]=256;let n=[],a=t==H9?0:1;return aee(e,a,a,r,0,e.length,n),n}(e.text,r,t);return this.bidiCache.push(new Are(e.from,e.to,r,t,!0,n)),n}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||v9.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{V7(this.contentDOM),this.docView.updateSelection()}))}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return xee.of(new wee("number"==typeof e?f6.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,r=this.viewState.scrollAnchorAt(e);return xee.of(new wee(f6.cursor(r.from),"start","start",r.top-e,t,!0))}setTabFocusMode(e){null==e?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:"boolean"==typeof e?this.inputState.tabFocusMode=e?0:-1:0!=this.inputState.tabFocusMode&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return Aee.define((()=>({})),{eventHandlers:e})}static domEventObservers(e){return Aee.define((()=>({})),{eventObservers:e})}static theme(e,t){let r=x7.newName(),n=[dre.of(r),Bee.of(vre(`.${r}`,e))];return t&&t.dark&&n.push(pre.of(!0)),n}static baseTheme(e){return E6.lowest(Bee.of(vre("."+hre,e,gre)))}static findFromDOM(e){var t;let r=e.querySelector(".cm-content"),n=r&&t9.get(r)||t9.get(e);return(null===(t=null==n?void 0:n.rootView)||void 0===t?void 0:t.view)||null}}_re.styleModule=Bee,_re.inputHandler=fee,_re.clipboardInputFilter=gee,_re.clipboardOutputFilter=vee,_re.scrollHandler=Oee,_re.focusChangeEffect=mee,_re.perLineTextDirection=bee,_re.exceptionSink=pee,_re.updateListener=hee,_re.editable=_ee,_re.mouseSelectionStyle=dee,_re.dragMovesSelection=uee,_re.clickAddsSelectionRange=cee,_re.decorations=$ee,_re.outerDecorations=Ree,_re.atomicRanges=Mee,_re.bidiIsolatedRanges=Nee,_re.scrollMargins=Lee,_re.darkTheme=pre,_re.cspNonce=v6.define({combine:e=>e.length?e[0]:""}),_re.contentAttributes=Dee,_re.editorAttributes=Pee,_re.lineWrapping=_re.contentAttributes.of({class:"cm-lineWrapping"}),_re.announce=z6.define();const Ere=4096,Tre={};class Are{constructor(e,t,r,n,a,o){this.from=e,this.to=t,this.dir=r,this.isolates=n,this.fresh=a,this.order=o}static update(e,t){if(t.empty&&!e.some((e=>e.fresh)))return e;let r=[],n=e.length?e[e.length-1].dir:q9.LTR;for(let a=Math.max(0,e.length-10);a<e.length;a++){let o=e[a];o.dir!=n||t.touchesRange(o.from,o.to)||r.push(new Are(t.mapPos(o.from,1),t.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return r}}function Cre(e,t,r){for(let n=e.state.facet(t),a=n.length-1;a>=0;a--){let t=n[a],o="function"==typeof t?t(e):t;o&&_9(o,r)}return r}const Pre=v9.mac?"mac":v9.windows?"win":v9.linux?"linux":"key";function Dre(e,t,r){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==r&&t.shiftKey&&(e="Shift-"+e),e}const $re=E6.default(_re.domEventHandlers({keydown:(e,t)=>function(e,t,r,n){Lre=t;let a=function(e){var t=!(T7&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||A7&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?E7:_7)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(t),o=r6(e6(a,0))==a.length&&" "!=a,i="",s=!1,l=!1,c=!1;Nre&&Nre.view==r&&Nre.scope==n&&(i=Nre.prefix+" ",fte.indexOf(t.keyCode)<0&&(l=!0,Nre=null));let u,d,p=new Set,h=e=>{if(e){for(let t of e.run)if(!p.has(t)&&(p.add(t),t(r)))return e.stopPropagation&&(c=!0),!0;e.preventDefault&&(e.stopPropagation&&(c=!0),l=!0)}return!1},f=e[n];return f&&(h(f[i+Dre(a,t,!o)])?s=!0:o&&(t.altKey||t.metaKey||t.ctrlKey)&&!(v9.windows&&t.ctrlKey&&t.altKey)&&(u=_7[t.keyCode])&&u!=a?(h(f[i+Dre(u,t,!0)])||t.shiftKey&&(d=E7[t.keyCode])!=a&&d!=u&&h(f[i+Dre(d,t,!1)]))&&(s=!0):o&&t.shiftKey&&h(f[i+Dre(a,t,!0)])&&(s=!0),!s&&h(f._any)&&(s=!0)),l&&(s=!0),s&&c&&t.stopPropagation(),Lre=null,s}(function(e){let t=e.facet(Rre),r=Mre.get(t);return r||Mre.set(t,r=function(e,t=Pre){let r=Object.create(null),n=Object.create(null),a=(e,t)=>{let r=n[e];if(null==r)n[e]=t;else if(r!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},o=(e,n,o,i,s)=>{var l,c;let u=r[e]||(r[e]=Object.create(null)),d=n.split(/ (?!$)/).map((e=>function(e,t){const r=e.split(/-(?!$)/);let n,a,o,i,s=r[r.length-1];"Space"==s&&(s=" ");for(let e=0;e<r.length-1;++e){const s=r[e];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))n=!0;else if(/^(c|ctrl|control)$/i.test(s))a=!0;else if(/^s(hift)?$/i.test(s))o=!0;else{if(!/^mod$/i.test(s))throw new Error("Unrecognized modifier name: "+s);"mac"==t?i=!0:a=!0}}return n&&(s="Alt-"+s),a&&(s="Ctrl-"+s),i&&(s="Meta-"+s),o&&(s="Shift-"+s),s}(e,t)));for(let t=1;t<d.length;t++){let r=d.slice(0,t).join(" ");a(r,!0),u[r]||(u[r]={preventDefault:!0,stopPropagation:!1,run:[t=>{let n=Nre={view:t,prefix:r,scope:e};return setTimeout((()=>{Nre==n&&(Nre=null)}),Ire),!0}]})}let p=d.join(" ");a(p,!1);let h=u[p]||(u[p]={preventDefault:!1,stopPropagation:!1,run:(null===(c=null===(l=u._any)||void 0===l?void 0:l.run)||void 0===c?void 0:c.slice())||[]});o&&h.run.push(o),i&&(h.preventDefault=!0),s&&(h.stopPropagation=!0)};for(let n of e){let e=n.scope?n.scope.split(" "):["editor"];if(n.any)for(let t of e){let e=r[t]||(r[t]=Object.create(null));e._any||(e._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:a}=n;for(let t in e)e[t].run.push((e=>a(e,Lre)))}let a=n[t]||n.key;if(a)for(let t of e)o(t,a,n.run,n.preventDefault,n.stopPropagation),n.shift&&o(t,"Shift-"+a,n.shift,n.preventDefault,n.stopPropagation)}return r}(t.reduce(((e,t)=>e.concat(t)),[]))),r}(t.state),e,t,"editor")})),Rre=v6.define({enables:$re}),Mre=new WeakMap;let Nre=null;const Ire=4e3;let Lre=null;const jre={".cm-line":{},".cm-content":{}};function Bre(e,t,r,n,a){t.lastIndex=0;for(let o,i=e.iterRange(r,n),s=r;!i.next().done;s+=i.value.length)if(!i.lineBreak)for(;o=t.exec(i.value);)a(s+o.index,o)}!(v9.ios&&v9.webkit&&v9.webkit_version<534)&&(jre[".cm-line"].caretColor=jre[".cm-content"].caretColor="transparent !important");class Ure{constructor(e){const{regexp:t,decoration:r,decorate:n,boundary:a,maxLength:o=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,n)this.addMatch=(e,t,r,a)=>n(a,r,r+e[0].length,e,t);else if("function"==typeof r)this.addMatch=(e,t,n,a)=>{let o=r(e,t,n);o&&a(n,n+e[0].length,o)};else{if(!r)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(e,t,n,a)=>a(n,n+e[0].length,r)}this.boundary=a,this.maxLength=o}createDeco(e){let t=new s7,r=t.add.bind(t);for(let{from:t,to:n}of function(e,t){let r=e.visibleRanges;if(1==r.length&&r[0].from==e.viewport.from&&r[0].to==e.viewport.to)return r;let n=[];for(let{from:a,to:o}of r)a=Math.max(e.state.doc.lineAt(a).from,a-t),o=Math.min(e.state.doc.lineAt(o).to,o+t),n.length&&n[n.length-1].to>=a?n[n.length-1].to=o:n.push({from:a,to:o});return n}(e,this.maxLength))Bre(e.state.doc,this.regexp,t,n,((t,n)=>this.addMatch(n,e,t,r)));return t.finish()}updateDeco(e,t){let r=1e9,n=-1;return e.docChanged&&e.changes.iterChanges(((t,a,o,i)=>{i>e.view.viewport.from&&o<e.view.viewport.to&&(r=Math.min(o,r),n=Math.max(i,n))})),e.viewportChanged||n-r>1e3?this.createDeco(e.view):n>-1?this.updateRange(e.view,t.map(e.changes),r,n):t}updateRange(e,t,r,n){for(let a of e.visibleRanges){let o=Math.max(a.from,r),i=Math.min(a.to,n);if(i>o){let r=e.state.doc.lineAt(o),n=r.to<i?e.state.doc.lineAt(i):r,s=Math.max(a.from,r.from),l=Math.min(a.to,n.to);if(this.boundary){for(;o>r.from;o--)if(this.boundary.test(r.text[o-1-r.from])){s=o;break}for(;i<n.to;i++)if(this.boundary.test(n.text[i-n.from])){l=i;break}}let c,u=[],d=(e,t,r)=>u.push(r.range(e,t));if(r==n)for(this.regexp.lastIndex=s-r.from;(c=this.regexp.exec(r.text))&&c.index<l-r.from;)this.addMatch(c,e,c.index+r.from,d);else Bre(e.state.doc,this.regexp,s,l,((t,r)=>this.addMatch(r,e,t,d)));t=t.update({filterFrom:s,filterTo:l,filter:(e,t)=>e<s||t>l,add:u})}}return t}}const Fre=null!=/x/.unicode?"gu":"g",Qre=new RegExp("[\0-\b\n--\u2028\u2029\ufeff-]",Fre),zre={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let qre=null;const Hre=v6.define({combine(e){let t=t7(e,{render:null,specialChars:Qre,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==qre&&"undefined"!=typeof document&&document.body){let t=document.body.style;qre=null!=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)}return qre||!1}())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,Fre)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,Fre)),t}});function Vre(e={}){return[Hre.of(e),Zre||(Zre=Aee.fromClass(class{constructor(e){this.view=e,this.decorations=$9.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(Hre)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new Ure({regexp:e.specialChars,decoration:(t,r,n)=>{let{doc:a}=r.state,o=e6(t[0],0);if(9==o){let e=a.lineAt(n),t=r.state.tabSize,o=b7(e.text,t,n-e.from);return $9.replace({widget:new Xre((t-o%t)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=$9.replace({widget:new Wre(e,o)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(Hre);e.startState.facet(Hre)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))]}let Zre=null;class Wre extends P9{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=(r=this.code)>=32?"•":10==r?"":String.fromCharCode(9216+r);var r;let n=e.state.phrase("Control character")+" "+(zre[this.code]||"0x"+this.code.toString(16)),a=this.options.render&&this.options.render(this.code,n,t);if(a)return a;let o=document.createElement("span");return o.textContent=t,o.title=n,o.setAttribute("aria-label",n),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class Xre extends P9{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}class Gre extends P9{constructor(e){super(),this.content=e}toDOM(e){let t=document.createElement("span");return t.className="cm-placeholder",t.style.pointerEvents="none",t.appendChild("string"==typeof this.content?document.createTextNode(this.content):"function"==typeof this.content?this.content(e):this.content.cloneNode(!0)),"string"==typeof this.content?t.setAttribute("aria-label","placeholder "+this.content):t.setAttribute("aria-hidden","true"),t}coordsAt(e){let t=e.firstChild?M7(e.firstChild):[];if(!t.length)return null;let r=window.getComputedStyle(e.parentNode),n=U7(t[0],"rtl"!=r.direction),a=parseInt(r.lineHeight);return n.bottom-n.top>1.5*a?{left:n.left,right:n.right,top:n.top,bottom:n.top+a}:n}ignoreEvent(){return!1}}const Yre="-10000px";class Kre{constructor(e,t,r,n){this.facet=t,this.createTooltipView=r,this.removeTooltipView=n,this.input=e.state.facet(t),this.tooltips=this.input.filter((e=>e));let a=null;this.tooltipViews=this.tooltips.map((e=>a=r(e,a)))}update(e,t){var r;let n=e.state.facet(this.facet),a=n.filter((e=>e));if(n===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let o=[],i=t?[]:null;for(let r=0;r<a.length;r++){let n=a[r],s=-1;if(n){for(let e=0;e<this.tooltips.length;e++){let t=this.tooltips[e];t&&t.create==n.create&&(s=e)}if(s<0)o[r]=this.createTooltipView(n,r?o[r-1]:null),i&&(i[r]=!!n.above);else{let n=o[r]=this.tooltipViews[s];i&&(i[r]=t[s]),n.update&&n.update(e)}}}for(let e of this.tooltipViews)o.indexOf(e)<0&&(this.removeTooltipView(e),null===(r=e.destroy)||void 0===r||r.call(e));return t&&(i.forEach(((e,r)=>t[r]=e)),t.length=i.length),this.input=n,this.tooltips=a,this.tooltipViews=o,!0}}function Jre(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const ene=v6.define({combine:e=>{var t,r,n;return{position:v9.ios?"absolute":(null===(t=e.find((e=>e.position)))||void 0===t?void 0:t.position)||"fixed",parent:(null===(r=e.find((e=>e.parent)))||void 0===r?void 0:r.parent)||null,tooltipSpace:(null===(n=e.find((e=>e.tooltipSpace)))||void 0===n?void 0:n.tooltipSpace)||Jre}}}),tne=new WeakMap,rne=Aee.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(ene);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver="function"==typeof ResizeObserver?new ResizeObserver((()=>this.measureSoon())):null,this.manager=new Kre(e,ine,((e,t)=>this.createTooltip(e,t)),(e=>{this.resizeObserver&&this.resizeObserver.unobserve(e.dom),e.dom.remove()})),this.above=this.manager.tooltips.map((e=>!!e.above)),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver((e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()}),{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1,this.maybeMeasure()}),50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let r=t||e.geometryChanged,n=e.state.facet(ene);if(n.position!=this.position&&!this.madeAbsolute){this.position=n.position;for(let e of this.manager.tooltipViews)e.dom.style.position=this.position;r=!0}if(n.parent!=this.parent){this.parent&&this.container.remove(),this.parent=n.parent,this.createContainer();for(let e of this.manager.tooltipViews)this.container.appendChild(e.dom);r=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);r&&this.maybeMeasure()}createTooltip(e,t){let r=e.create(this.view),n=t?t.dom:null;if(r.dom.classList.add("cm-tooltip"),e.arrow&&!r.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",r.dom.appendChild(e)}return r.dom.style.position=this.position,r.dom.style.top=Yre,r.dom.style.left="0px",this.container.insertBefore(r.dom,n),r.mount&&r.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(r.dom),r}destroy(){var e,t,r;this.view.win.removeEventListener("resize",this.measureSoon);for(let t of this.manager.tooltipViews)t.dom.remove(),null===(e=t.destroy)||void 0===e||e.call(t);this.parent&&this.container.remove(),null===(t=this.resizeObserver)||void 0===t||t.disconnect(),null===(r=this.intersectionObserver)||void 0===r||r.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=1,t=1,r=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:e}=this.manager.tooltipViews[0];if(v9.gecko)r=e.offsetParent!=this.container.ownerDocument.body;else if(e.style.top==Yre&&"0px"==e.style.left){let t=e.getBoundingClientRect();r=Math.abs(t.top+1e4)>1||Math.abs(t.left)>1}}if(r||"absolute"==this.position)if(this.parent){let r=this.parent.getBoundingClientRect();r.width&&r.height&&(e=r.width/this.parent.offsetWidth,t=r.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:t}=this.view.viewState);let n=this.view.scrollDOM.getBoundingClientRect(),a=jee(this.view);return{visible:{left:n.left+a.left,top:n.top+a.top,right:n.right-a.right,bottom:n.bottom-a.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map(((e,t)=>{let r=this.manager.tooltipViews[t];return r.getCoords?r.getCoords(e.pos):this.view.coordsAtPos(e.pos)})),size:this.manager.tooltipViews.map((({dom:e})=>e.getBoundingClientRect())),space:this.view.state.facet(ene).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let e of this.manager.tooltipViews)e.dom.style.position="absolute"}let{visible:r,space:n,scaleX:a,scaleY:o}=e,i=[];for(let s=0;s<this.manager.tooltips.length;s++){let l=this.manager.tooltips[s],c=this.manager.tooltipViews[s],{dom:u}=c,d=e.pos[s],p=e.size[s];if(!d||!1!==l.clip&&(d.bottom<=Math.max(r.top,n.top)||d.top>=Math.min(r.bottom,n.bottom)||d.right<Math.max(r.left,n.left)-.1||d.left>Math.min(r.right,n.right)+.1)){u.style.top=Yre;continue}let h=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,f=h?7:0,m=p.right-p.left,g=null!==(t=tne.get(c))&&void 0!==t?t:p.bottom-p.top,v=c.offset||one,b=this.view.textDirection==q9.LTR,y=p.width>n.right-n.left?b?n.left:n.right-p.width:b?Math.max(n.left,Math.min(d.left-(h?14:0)+v.x,n.right-m)):Math.min(Math.max(n.left,d.left-m+(h?14:0)-v.x),n.right-m),O=this.above[s];!l.strictSide&&(O?d.top-g-f-v.y<n.top:d.bottom+g+f+v.y>n.bottom)&&O==n.bottom-d.bottom>d.top-n.top&&(O=this.above[s]=!O);let w=(O?d.top-n.top:n.bottom-d.bottom)-f;if(w<g&&!1!==c.resize){if(w<this.view.defaultLineHeight){u.style.top=Yre;continue}tne.set(c,g),u.style.height=(g=w)/o+"px"}else u.style.height&&(u.style.height="");let x=O?d.top-g-f-v.y:d.bottom+f+v.y,k=y+m;if(!0!==c.overlap)for(let e of i)e.left<k&&e.right>y&&e.top<x+g&&e.bottom>x&&(x=O?e.top-g-2-f:e.bottom+f+2);if("absolute"==this.position?(u.style.top=(x-e.parent.top)/o+"px",nne(u,(y-e.parent.left)/a)):(u.style.top=x/o+"px",nne(u,y/a)),h){let e=d.left+(b?v.x:-v.x)-(y+14-7);h.style.left=e/a+"px"}!0!==c.overlap&&i.push({left:y,top:x,right:k,bottom:x+g}),u.classList.toggle("cm-tooltip-above",O),u.classList.toggle("cm-tooltip-below",!O),c.positioned&&c.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=Yre}},{eventObservers:{scroll(){this.maybeMeasure()}}});function nne(e,t){let r=parseInt(e.style.left,10);(isNaN(r)||Math.abs(t-r)>1)&&(e.style.left=t+"px")}const ane=_re.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),one={x:0,y:0},ine=v6.define({enables:[rne,ane]}),sne=v6.define({combine:e=>e.reduce(((e,t)=>e.concat(t)),[])});class lne{static create(e){return new lne(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Kre(e,sne,((e,t)=>this.createHostedView(e,t)),(e=>e.dom.remove()))}createHostedView(e,t){let r=e.create(this.view);return r.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(r.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&r.mount&&r.mount(this.view),r}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)null===(e=t.destroy)||void 0===e||e.call(t)}passProp(e){let t;for(let r of this.manager.tooltipViews){let n=r[e];if(void 0!==n)if(void 0===t)t=n;else if(t!==n)return}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const cne=ine.compute([sne],(e=>{let t=e.facet(sne);return 0===t.length?null:{pos:Math.min(...t.map((e=>e.pos))),end:Math.max(...t.map((e=>{var t;return null!==(t=e.end)&&void 0!==t?t:e.pos}))),create:lne.create,above:t[0].above,arrow:t.some((e=>e.arrow))}}));class une{constructor(e,t,r,n,a){this.view=e,this.source=t,this.field=r,this.setHover=n,this.hoverTime=a,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout((()=>this.startHover()),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:t}=this,r=e.docView.nearest(t.target);if(!r)return;let n,a=1;if(r instanceof O9)n=r.posAtStart;else{if(n=e.posAtCoords(t),null==n)return;let r=e.coordsAtPos(n);if(!r||t.y<r.top||t.y>r.bottom||t.x<r.left-e.defaultCharacterWidth||t.x>r.right+e.defaultCharacterWidth)return;let o=e.bidiSpans(e.state.doc.lineAt(n)).find((e=>e.from<=n&&e.to>=n)),i=o&&o.dir==q9.RTL?-1:1;a=t.x<r.left?-i:i}let o=this.source(e,n,a);if(null==o?void 0:o.then){let t=this.pending={pos:n};o.then((r=>{this.pending==t&&(this.pending=null,!r||Array.isArray(r)&&!r.length||e.dispatch({effects:this.setHover.of(Array.isArray(r)?r:[r])}))}),(t=>See(e.state,t,"hover tooltip")))}else!o||Array.isArray(o)&&!o.length||e.dispatch({effects:this.setHover.of(Array.isArray(o)?o:[o])})}get tooltip(){let e=this.view.plugin(rne),t=e?e.manager.tooltips.findIndex((e=>e.create==lne.create)):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,r;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:n,tooltip:a}=this;if(n.length&&a&&!function(e,t){let r,{left:n,right:a,top:o,bottom:i}=e.getBoundingClientRect();if(r=e.querySelector(".cm-tooltip-arrow")){let e=r.getBoundingClientRect();o=Math.min(e.top,o),i=Math.max(e.bottom,i)}return t.clientX>=n-dne&&t.clientX<=a+dne&&t.clientY>=o-dne&&t.clientY<=i+dne}(a.dom,e)||this.pending){let{pos:a}=n[0]||this.pending,o=null!==(r=null===(t=n[0])||void 0===t?void 0:t.end)&&void 0!==r?r:a;(a==o?this.view.posAtCoords(this.lastMove)==a:function(e,t,r,n,a){let o=e.scrollDOM.getBoundingClientRect(),i=e.documentTop+e.documentPadding.top+e.contentHeight;if(o.left>n||o.right<n||o.top>a||Math.min(o.bottom,i)<a)return!1;let s=e.posAtCoords({x:n,y:a},!1);return s>=t&&s<=r}(this.view,a,o,e.clientX,e.clientY))||(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length){let{tooltip:t}=this;t&&t.dom.contains(e.relatedTarget)?this.watchTooltipLeave(t.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=r=>{e.removeEventListener("mouseleave",t),this.active.length&&!this.view.dom.contains(r.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const dne=4;function pne(e,t){let r=e.plugin(rne);if(!r)return null;let n=r.manager.tooltips.indexOf(t);return n<0?null:r.manager.tooltipViews[n]}const hne=z6.define(),fne=v6.define({combine(e){let t,r;for(let n of e)t=t||n.topContainer,r=r||n.bottomContainer;return{topContainer:t,bottomContainer:r}}}),mne=Aee.fromClass(class{constructor(e){this.input=e.state.facet(bne),this.specs=this.input.filter((e=>e)),this.panels=this.specs.map((t=>t(e)));let t=e.state.facet(fne);this.top=new gne(e,!0,t.topContainer),this.bottom=new gne(e,!1,t.bottomContainer),this.top.sync(this.panels.filter((e=>e.top))),this.bottom.sync(this.panels.filter((e=>!e.top)));for(let e of this.panels)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}update(e){let t=e.state.facet(fne);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new gne(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new gne(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let r=e.state.facet(bne);if(r!=this.input){let t=r.filter((e=>e)),n=[],a=[],o=[],i=[];for(let r of t){let t,s=this.specs.indexOf(r);s<0?(t=r(e.view),i.push(t)):(t=this.panels[s],t.update&&t.update(e)),n.push(t),(t.top?a:o).push(t)}this.specs=t,this.panels=n,this.top.sync(a),this.bottom.sync(o);for(let e of i)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let t of this.panels)t.update&&t.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>_re.scrollMargins.of((t=>{let r=t.plugin(e);return r&&{top:r.top.scrollMargin(),bottom:r.bottom.scrollMargin()}}))});class gne{constructor(e,t,r){this.view=e,this.top=t,this.container=r,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=vne(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=vne(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function vne(e){let t=e.nextSibling;return e.remove(),t}const bne=v6.define({enables:mne});class yne extends r7{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}yne.prototype.elementClass="",yne.prototype.toDOM=void 0,yne.prototype.mapMode=a6.TrackBefore,yne.prototype.startSide=yne.prototype.endSide=-1,yne.prototype.point=!0;const One=v6.define(),wne=v6.define(),xne={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>i7.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},kne=v6.define();function Sne(e){return[Ene(),kne.of(Object.assign(Object.assign({},xne),e))]}const _ne=v6.define({combine:e=>e.some((e=>e))});function Ene(e){return[Tne]}const Tne=Aee.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(kne).map((t=>new Dne(e,t)));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!e.state.facet(_ne),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,r=e.view.viewport,n=Math.min(t.to,r.to)-Math.max(t.from,r.from);this.syncGutters(n<.8*(r.to-r.from))}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(_ne)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let r=i7.iter(this.view.state.facet(One),this.view.viewport.from),n=[],a=this.gutters.map((e=>new Pne(e,this.view.viewport,-this.view.documentPadding.top)));for(let e of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(e.type)){let t=!0;for(let o of e.type)if(o.type==D9.Text&&t){Cne(r,n,o.from);for(let e of a)e.line(this.view,o,n);t=!1}else if(o.widget)for(let e of a)e.widget(this.view,o)}else if(e.type==D9.Text){Cne(r,n,e.from);for(let t of a)t.line(this.view,e,n)}else if(e.widget)for(let t of a)t.widget(this.view,e);for(let e of a)e.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(kne),r=e.state.facet(kne),n=e.docChanged||e.heightChanged||e.viewportChanged||!i7.eq(e.startState.facet(One),e.state.facet(One),e.view.viewport.from,e.view.viewport.to);if(t==r)for(let t of this.gutters)t.update(e)&&(n=!0);else{n=!0;let a=[];for(let n of r){let r=t.indexOf(n);r<0?a.push(new Dne(this.view,n)):(this.gutters[r].update(e),a.push(this.gutters[r]))}for(let e of this.gutters)e.dom.remove(),a.indexOf(e)<0&&e.destroy();for(let e of a)this.dom.appendChild(e.dom);this.gutters=a}return n}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>_re.scrollMargins.of((t=>{let r=t.plugin(e);return r&&0!=r.gutters.length&&r.fixed?t.textDirection==q9.LTR?{left:r.dom.offsetWidth*t.scaleX}:{right:r.dom.offsetWidth*t.scaleX}:null}))});function Ane(e){return Array.isArray(e)?e:[e]}function Cne(e,t,r){for(;e.value&&e.from<=r;)e.from==r&&t.push(e.value),e.next()}class Pne{constructor(e,t,r){this.gutter=e,this.height=r,this.i=0,this.cursor=i7.iter(e.markers,t.from)}addElement(e,t,r){let{gutter:n}=this,a=(t.top-this.height)/e.scaleY,o=t.height/e.scaleY;if(this.i==n.elements.length){let t=new $ne(e,o,a,r);n.elements.push(t),n.dom.appendChild(t.dom)}else n.elements[this.i].update(e,o,a,r);this.height=t.bottom,this.i++}line(e,t,r){let n=[];Cne(this.cursor,n,t.from),r.length&&(n=n.concat(r));let a=this.gutter.config.lineMarker(e,t,n);a&&n.unshift(a);let o=this.gutter;(0!=n.length||o.config.renderEmptyElements)&&this.addElement(e,t,n)}widget(e,t){let r=this.gutter.config.widgetMarker(e,t.widget,t),n=r?[r]:null;for(let r of e.state.facet(wne)){let a=r(e,t.widget,t);a&&(n||(n=[])).push(a)}n&&this.addElement(e,t,n)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class Dne{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let r in t.domEventHandlers)this.dom.addEventListener(r,(n=>{let a,o=n.target;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let e=o.getBoundingClientRect();a=(e.top+e.bottom)/2}else a=n.clientY;let i=e.lineBlockAtHeight(a-e.documentTop);t.domEventHandlers[r](e,i,n)&&n.preventDefault()}));this.markers=Ane(t.markers(e)),t.initialSpacer&&(this.spacer=new $ne(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=Ane(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let r=e.view.viewport;return!i7.eq(this.markers,t,r.from,r.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class $ne{constructor(e,t,r,n){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,r,n)}update(e,t,r,n){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=r&&(this.dom.style.marginTop=(this.above=r)?r+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].compare(t[r]))return!1;return!0}(this.markers,n)||this.setMarkers(e,n)}setMarkers(e,t){let r="cm-gutterElement",n=this.dom.firstChild;for(let a=0,o=0;;){let i=o,s=a<t.length?t[a++]:null,l=!1;if(s){let e=s.elementClass;e&&(r+=" "+e);for(let e=o;e<this.markers.length;e++)if(this.markers[e].compare(s)){i=e,l=!0;break}}else i=this.markers.length;for(;o<i;){let e=this.markers[o++];if(e.toDOM){e.destroy(n);let t=n.nextSibling;n.remove(),n=t}}if(!s)break;s.toDOM&&(l?n=n.nextSibling:this.dom.insertBefore(s.toDOM(e),n)),l&&o++}this.dom.className=r,this.markers=t}destroy(){this.setMarkers(null,[])}}const Rne=v6.define(),Mne=v6.define(),Nne=v6.define({combine:e=>t7(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let r=Object.assign({},e);for(let e in t){let n=r[e],a=t[e];r[e]=n?(e,t,r)=>n(e,t,r)||a(e,t,r):a}return r}})});class Ine extends yne{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Lne(e,t){return e.state.facet(Nne).formatNumber(t,e.state)}const jne=kne.compute([Nne],(e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(Rne),lineMarker:(e,t,r)=>r.some((e=>e.toDOM))?null:new Ine(Lne(e,e.state.doc.lineAt(t.from).number)),widgetMarker:(e,t,r)=>{for(let n of e.state.facet(Mne)){let a=n(e,t,r);if(a)return a}return null},lineMarkerChange:e=>e.startState.facet(Nne)!=e.state.facet(Nne),initialSpacer:e=>new Ine(Lne(e,Bne(e.state.doc.lines))),updateSpacer(e,t){let r=Lne(t.view,Bne(t.view.state.doc.lines));return r==e.number?e:new Ine(r)},domEventHandlers:e.facet(Nne).domEventHandlers})));function Bne(e){let t=9;for(;t<e;)t=10*t+9;return t}const Une=1024;let Fne=0;class Qne{constructor(e,t){this.from=e,this.to=t}}class zne{constructor(e={}){this.id=Fne++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=Vne.match(e)),t=>{let r=e(t);return void 0===r?null:[this,r]}}}zne.closedBy=new zne({deserialize:e=>e.split(" ")}),zne.openedBy=new zne({deserialize:e=>e.split(" ")}),zne.group=new zne({deserialize:e=>e.split(" ")}),zne.isolate=new zne({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}}),zne.contextHash=new zne({perNode:!0}),zne.lookAhead=new zne({perNode:!0}),zne.mounted=new zne({perNode:!0});class qne{constructor(e,t,r){this.tree=e,this.overlay=t,this.parser=r}static get(e){return e&&e.props&&e.props[zne.mounted.id]}}const Hne=Object.create(null);class Vne{constructor(e,t,r,n=0){this.name=e,this.props=t,this.id=r,this.flags=n}static define(e){let t=e.props&&e.props.length?Object.create(null):Hne,r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),n=new Vne(e.name||"",t,e.id,r);if(e.props)for(let r of e.props)if(Array.isArray(r)||(r=r(n)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[r[0].id]=r[1]}return n}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(zne.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let r in e)for(let n of r.split(" "))t[n]=e[r];return e=>{for(let r=e.prop(zne.group),n=-1;n<(r?r.length:0);n++){let a=t[n<0?e.name:r[n]];if(a)return a}}}}Vne.none=new Vne("",Object.create(null),0,8);class Zne{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let r of this.types){let n=null;for(let t of e){let e=t(r);e&&(n||(n=Object.assign({},r.props)),n[e[0].id]=e[1])}t.push(n?new Vne(r.name,n,r.id,r.flags):r)}return new Zne(t)}}const Wne=new WeakMap,Xne=new WeakMap;var Gne,Yne;(Yne=Gne||(Gne={}))[Yne.ExcludeBuffers=1]="ExcludeBuffers",Yne[Yne.IncludeAnonymous=2]="IncludeAnonymous",Yne[Yne.IgnoreMounts=4]="IgnoreMounts",Yne[Yne.IgnoreOverlays=8]="IgnoreOverlays";class Kne{constructor(e,t,r,n,a){if(this.type=e,this.children=t,this.positions=r,this.length=n,this.props=null,a&&a.length){this.props=Object.create(null);for(let[e,t]of a)this.props["number"==typeof e?e:e.id]=t}}toString(){let e=qne.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let r=e.toString();r&&(t&&(t+=","),t+=r)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new dae(this.topNode,e)}cursorAt(e,t=0,r=0){let n=Wne.get(this)||this.topNode,a=new dae(n);return a.moveTo(e,t),Wne.set(this,a._tree),a}get topNode(){return new aae(this,0,0,null)}resolve(e,t=0){let r=rae(Wne.get(this)||this.topNode,e,t,!1);return Wne.set(this,r),r}resolveInner(e,t=0){let r=rae(Xne.get(this)||this.topNode,e,t,!0);return Xne.set(this,r),r}resolveStack(e,t=0){return function(e,t,r){let n=e.resolveInner(t,r),a=null;for(let e=n instanceof aae?n:n.context.parent;e;e=e.parent)if(e.index<0){let o=e.parent;(a||(a=[n])).push(o.resolve(t,r)),e=o}else{let o=qne.get(e.tree);if(o&&o.overlay&&o.overlay[0].from<=t&&o.overlay[o.overlay.length-1].to>=t){let i=new aae(o.tree,o.overlay[0].from+e.from,-1,e);(a||(a=[n])).push(rae(i,t,r,!1))}}return a?cae(a):n}(this,e,t)}iterate(e){let{enter:t,leave:r,from:n=0,to:a=this.length}=e,o=e.mode||0,i=(o&Gne.IncludeAnonymous)>0;for(let e=this.cursor(o|Gne.IncludeAnonymous);;){let o=!1;if(e.from<=a&&e.to>=n&&(!i&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;o=!0}for(;o&&r&&(i||!e.type.isAnonymous)&&r(e),!e.nextSibling();){if(!e.parent())return;o=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:mae(Vne.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,r)=>new Kne(this.type,e,t,r,this.propValues)),e.makeTree||((e,t,r)=>new Kne(Vne.none,e,t,r)))}static build(e){return function(e){var t;let{buffer:r,nodeSet:n,maxBufferLength:a=Une,reused:o=[],minRepeatType:i=n.types.length}=e,s=Array.isArray(r)?new Jne(r,r.length):r,l=n.types,c=0,u=0;function d(e,t,r,g,v,b){let{id:y,start:O,end:w,size:x}=s,k=u,S=c;for(;x<0;){if(s.next(),-1==x){let t=o[y];return r.push(t),void g.push(O-e)}if(-3==x)return void(c=y);if(-4==x)return void(u=y);throw new RangeError(`Unrecognized record size: ${x}`)}let _,E,T=l[y],A=O-e;if(w-O<=a&&(E=function(e,t){let r=s.fork(),n=0,o=0,l=0,c=r.end-a,u={size:0,start:0,skip:0};e:for(let a=r.pos-e;r.pos>a;){let e=r.size;if(r.id==t&&e>=0){u.size=n,u.start=o,u.skip=l,l+=4,n+=4,r.next();continue}let s=r.pos-e;if(e<0||s<a||r.start<c)break;let d=r.id>=i?4:0,p=r.start;for(r.next();r.pos>s;){if(r.size<0){if(-3!=r.size)break e;d+=4}else r.id>=i&&(d+=4);r.next()}o=p,n+=e,l+=d}return(t<0||n==e)&&(u.size=n,u.start=o,u.skip=l),u.size>4?u:void 0}(s.pos-t,v))){let t=new Uint16Array(E.size-E.skip),r=s.pos-E.size,a=t.length;for(;s.pos>r;)a=m(E.start,t,a);_=new eae(t,w-E.start,n),A=E.start-e}else{let e=s.pos-x;s.next();let t=[],r=[],n=y>=i?y:-1,o=0,l=w;for(;s.pos>e;)n>=0&&s.id==n&&s.size>=0?(s.end<=l-a&&(h(t,r,O,o,s.end,l,n,k,S),o=t.length,l=s.end),s.next()):b>2500?p(O,e,t,r):d(O,e,t,r,n,b+1);if(n>=0&&o>0&&o<t.length&&h(t,r,O,o,O,l,n,k,S),t.reverse(),r.reverse(),n>-1&&o>0){let e=function(e,t){return(r,n,a)=>{let o,i,s=0,l=r.length-1;if(l>=0&&(o=r[l])instanceof Kne){if(!l&&o.type==e&&o.length==a)return o;(i=o.prop(zne.lookAhead))&&(s=n[l]+o.length+i)}return f(e,r,n,a,s,t)}}(T,S);_=mae(T,t,r,0,t.length,0,w-O,e,e)}else _=f(T,t,r,w-O,k-w,S)}r.push(_),g.push(A)}function p(e,t,r,o){let i=[],l=0,c=-1;for(;s.pos>t;){let{id:e,start:t,end:r,size:n}=s;if(n>4)s.next();else{if(c>-1&&t<c)break;c<0&&(c=r-a),i.push(e,t,r),l++,s.next()}}if(l){let t=new Uint16Array(4*l),a=i[i.length-2];for(let e=i.length-3,r=0;e>=0;e-=3)t[r++]=i[e],t[r++]=i[e+1]-a,t[r++]=i[e+2]-a,t[r++]=r;r.push(new eae(t,i[2]-a,n)),o.push(a-e)}}function h(e,t,r,a,o,i,s,l,c){let u=[],d=[];for(;e.length>a;)u.push(e.pop()),d.push(t.pop()+r-o);e.push(f(n.types[s],u,d,i-o,l-i,c)),t.push(o-r)}function f(e,t,r,n,a,o,i){if(o){let e=[zne.contextHash,o];i=i?[e].concat(i):[e]}if(a>25){let e=[zne.lookAhead,a];i=i?[e].concat(i):[e]}return new Kne(e,t,r,n,i)}function m(e,t,r){let{id:n,start:a,end:o,size:l}=s;if(s.next(),l>=0&&n<i){let i=r;if(l>4){let n=s.pos-(l-4);for(;s.pos>n;)r=m(e,t,r)}t[--r]=i,t[--r]=o-e,t[--r]=a-e,t[--r]=n}else-3==l?c=n:-4==l&&(u=n);return r}let g=[],v=[];for(;s.pos>0;)d(e.start||0,e.bufferStart||0,g,v,-1,0);let b=null!==(t=e.length)&&void 0!==t?t:g.length?v[0]+g[0].length:0;return new Kne(l[e.topID],g.reverse(),v.reverse(),b)}(e)}}Kne.empty=new Kne(Vne.none,[],[],0);class Jne{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new Jne(this.buffer,this.index)}}class eae{constructor(e,t,r){this.buffer=e,this.length=t,this.set=r}get type(){return Vne.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],r=this.buffer[e+3],n=this.set.types[t],a=n.name;if(/\W/.test(a)&&!n.isError&&(a=JSON.stringify(a)),r==(e+=4))return a;let o=[];for(;e<r;)o.push(this.childString(e)),e=this.buffer[e+3];return a+"("+o.join(",")+")"}findChild(e,t,r,n,a){let{buffer:o}=this,i=-1;for(let s=e;s!=t&&!(tae(a,n,o[s+1],o[s+2])&&(i=s,r>0));s=o[s+3]);return i}slice(e,t,r){let n=this.buffer,a=new Uint16Array(t-e),o=0;for(let i=e,s=0;i<t;){a[s++]=n[i++],a[s++]=n[i++]-r;let t=a[s++]=n[i++]-r;a[s++]=n[i++]-e,o=Math.max(o,t)}return new eae(a,o,this.set)}}function tae(e,t,r,n){switch(e){case-2:return r<t;case-1:return n>=t&&r<t;case 0:return r<t&&n>t;case 1:return r<=t&&n>t;case 2:return n>t;case 4:return!0}}function rae(e,t,r,n){for(var a;e.from==e.to||(r<1?e.from>=t:e.from>t)||(r>-1?e.to<=t:e.to<t);){let t=!n&&e instanceof aae&&e.index<0?null:e.parent;if(!t)return e;e=t}let o=n?0:Gne.IgnoreOverlays;if(n)for(let n=e,i=n.parent;i;n=i,i=n.parent)n instanceof aae&&n.index<0&&(null===(a=i.enter(t,r,o))||void 0===a?void 0:a.from)!=n.from&&(e=i);for(;;){let n=e.enter(t,r,o);if(!n)return e;e=n}}class nae{cursor(e=0){return new dae(this,e)}getChild(e,t=null,r=null){let n=oae(this,e,t,r);return n.length?n[0]:null}getChildren(e,t=null,r=null){return oae(this,e,t,r)}resolve(e,t=0){return rae(this,e,t,!1)}resolveInner(e,t=0){return rae(this,e,t,!0)}matchContext(e){return iae(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),r=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(r=t,t=e.prevSibling):t=e}return r}get node(){return this}get next(){return this.parent}}class aae extends nae{constructor(e,t,r,n){super(),this._tree=e,this.from=t,this.index=r,this._parent=n}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,r,n,a=0){for(let o=this;;){for(let{children:i,positions:s}=o._tree,l=t>0?i.length:-1;e!=l;e+=t){let l=i[e],c=s[e]+o.from;if(tae(n,r,c,c+l.length))if(l instanceof eae){if(a&Gne.ExcludeBuffers)continue;let i=l.findChild(0,l.buffer.length,t,r-c,n);if(i>-1)return new lae(new sae(o,l,e,c),null,i)}else if(a&Gne.IncludeAnonymous||!l.type.isAnonymous||pae(l)){let i;if(!(a&Gne.IgnoreMounts)&&(i=qne.get(l))&&!i.overlay)return new aae(i.tree,c,e,o);let s=new aae(l,c,e,o);return a&Gne.IncludeAnonymous||!s.type.isAnonymous?s:s.nextChild(t<0?l.children.length-1:0,t,r,n)}}if(a&Gne.IncludeAnonymous||!o.type.isAnonymous)return null;if(e=o.index>=0?o.index+t:t<0?-1:o._parent._tree.children.length,o=o._parent,!o)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,r=0){let n;if(!(r&Gne.IgnoreOverlays)&&(n=qne.get(this._tree))&&n.overlay){let r=e-this.from;for(let{from:e,to:a}of n.overlay)if((t>0?e<=r:e<r)&&(t<0?a>=r:a>r))return new aae(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,r)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function oae(e,t,r,n){let a=e.cursor(),o=[];if(!a.firstChild())return o;if(null!=r)for(let e=!1;!e;)if(e=a.type.is(r),!a.nextSibling())return o;for(;;){if(null!=n&&a.type.is(n))return o;if(a.type.is(t)&&o.push(a.node),!a.nextSibling())return null==n?o:[]}}function iae(e,t,r=t.length-1){for(let n=e;r>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(t[r]&&t[r]!=n.name)return!1;r--}}return!0}class sae{constructor(e,t,r,n){this.parent=e,this.buffer=t,this.index=r,this.start=n}}class lae extends nae{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,r){super(),this.context=e,this._parent=t,this.index=r,this.type=e.buffer.set.types[e.buffer.buffer[r]]}child(e,t,r){let{buffer:n}=this.context,a=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.context.start,r);return a<0?null:new lae(this.context,this,a)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,r=0){if(r&Gne.ExcludeBuffers)return null;let{buffer:n}=this.context,a=n.findChild(this.index+4,n.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return a<0?null:new lae(this.context,this,a)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new lae(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new lae(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:r}=this.context,n=this.index+4,a=r.buffer[this.index+3];if(a>n){let o=r.buffer[this.index+1];e.push(r.slice(n,a,o)),t.push(0)}return new Kne(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function cae(e){if(!e.length)return null;let t=0,r=e[0];for(let n=1;n<e.length;n++){let a=e[n];(a.from>r.from||a.to<r.to)&&(r=a,t=n)}let n=r instanceof aae&&r.index<0?null:r.parent,a=e.slice();return n?a[t]=n:a.splice(t,1),new uae(a,r)}class uae{constructor(e,t){this.heads=e,this.node=t}get next(){return cae(this.heads)}}class dae{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof aae)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:r,buffer:n}=this.buffer;return this.type=t||n.set.types[n.buffer[e]],this.from=r+n.buffer[e+1],this.to=r+n.buffer[e+2],!0}yield(e){return!!e&&(e instanceof aae?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,r){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,r,this.mode));let{buffer:n}=this.buffer,a=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.buffer.start,r);return!(a<0)&&(this.stack.push(this.index),this.yieldBuf(a))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,r=this.mode){return this.buffer?!(r&Gne.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Gne.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Gne.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,r=this.stack.length-1;if(e<0){let e=r<0?0:this.stack[r]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(r<0?t.buffer.length:t.buffer[this.stack[r]+3]))return this.yieldBuf(e)}return r<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,r,{buffer:n}=this;if(n){if(e>0){if(this.index<n.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(n.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:r}=n)}else({index:t,_parent:r}=this._tree);for(;r;({index:t,_parent:r}=r))if(t>-1)for(let n=t+e,a=e<0?-1:r._tree.children.length;n!=a;n+=e){let e=r._tree.children[n];if(this.mode&Gne.IncludeAnonymous||e instanceof eae||!e.type.isAnonymous||pae(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,r=0;if(e&&e.context==this.buffer)e:for(let n=this.index,a=this.stack.length;a>=0;){for(let o=e;o;o=o._parent)if(o.index==n){if(n==this.index)return o;t=o,r=a+1;break e}n=this.stack[--a]}for(let e=r;e<this.stack.length;e++)t=new lae(this.buffer,t,this.stack[e]);return this.bufferNode=new lae(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let r=0;;){let n=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){r++;continue}this.type.isAnonymous||(n=!0)}for(;;){if(n&&t&&t(this),n=this.type.isAnonymous,!r)return;if(this.nextSibling())break;this.parent(),r--,n=!0}}}matchContext(e){if(!this.buffer)return iae(this.node.parent,e);let{buffer:t}=this.buffer,{types:r}=t.set;for(let n=e.length-1,a=this.stack.length-1;n>=0;a--){if(a<0)return iae(this._tree,e,n);let o=r[t.buffer[this.stack[a]]];if(!o.isAnonymous){if(e[n]&&e[n]!=o.name)return!1;n--}}return!0}}function pae(e){return e.children.some((e=>e instanceof eae||!e.type.isAnonymous||pae(e)))}const hae=new WeakMap;function fae(e,t){if(!e.isAnonymous||t instanceof eae||t.type!=e)return 1;let r=hae.get(t);if(null==r){r=1;for(let n of t.children){if(n.type!=e||!(n instanceof Kne)){r=1;break}r+=fae(e,n)}hae.set(t,r)}return r}function mae(e,t,r,n,a,o,i,s,l){let c=0;for(let r=n;r<a;r++)c+=fae(e,t[r]);let u=Math.ceil(1.5*c/8),d=[],p=[];return function t(r,n,a,i,s){for(let c=a;c<i;){let a=c,h=n[c],f=fae(e,r[c]);for(c++;c<i;c++){let t=fae(e,r[c]);if(f+t>=u)break;f+=t}if(c==a+1){if(f>u){let e=r[a];t(e.children,e.positions,0,e.children.length,n[a]+s);continue}d.push(r[a])}else{let t=n[c-1]+r[c-1].length-h;d.push(mae(e,r,n,a,c,h,t,null,l))}p.push(h+s-o)}}(t,r,n,a,0),(s||l)(d,p,i)}class gae{constructor(){this.map=new WeakMap}setBuffer(e,t,r){let n=this.map.get(e);n||this.map.set(e,n=new Map),n.set(t,r)}getBuffer(e,t){let r=this.map.get(e);return r&&r.get(t)}set(e,t){e instanceof lae?this.setBuffer(e.context.buffer,e.index,t):e instanceof aae&&this.map.set(e.tree,t)}get(e){return e instanceof lae?this.getBuffer(e.context.buffer,e.index):e instanceof aae?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class vae{constructor(e,t,r,n,a=!1,o=!1){this.from=e,this.to=t,this.tree=r,this.offset=n,this.open=(a?1:0)|(o?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],r=!1){let n=[new vae(0,e.length,e,0,!1,r)];for(let r of t)r.to>e.length&&n.push(r);return n}static applyChanges(e,t,r=128){if(!t.length)return e;let n=[],a=1,o=e.length?e[0]:null;for(let i=0,s=0,l=0;;i++){let c=i<t.length?t[i]:null,u=c?c.fromA:1e9;if(u-s>=r)for(;o&&o.from<u;){let t=o;if(s>=t.from||u<=t.to||l){let e=Math.max(t.from,s)-l,r=Math.min(t.to,u)-l;t=e>=r?null:new vae(e,r,t.tree,t.offset+l,i>0,!!c)}if(t&&n.push(t),o.to>u)break;o=a<e.length?e[a++]:null}if(!c)break;s=c.toA,l=c.toA-c.toB}return n}}class bae{startParse(e,t,r){return"string"==typeof e&&(e=new yae(e)),r=r?r.length?r.map((e=>new Qne(e.from,e.to))):[new Qne(0,0)]:[new Qne(0,e.length)],this.createParse(e,t||[],r)}parse(e,t,r){let n=this.startParse(e,t,r);for(;;){let e=n.advance();if(e)return e}}}class yae{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}class Oae{constructor(e,t,r,n,a){this.parser=e,this.parse=t,this.overlay=r,this.target=n,this.from=a}}function wae(e){if(!e.length||e.some((e=>e.from>=e.to)))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class xae{constructor(e,t,r,n,a,o,i){this.parser=e,this.predicate=t,this.mounts=r,this.index=n,this.start=a,this.target=o,this.prev=i,this.depth=0,this.ranges=[]}}const kae=new zne({perNode:!0});class Sae{constructor(e,t,r,n,a){this.nest=t,this.input=r,this.fragments=n,this.ranges=a,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let e=this.baseParse.advance();if(!e)return null;if(this.baseParse=null,this.baseTree=e,this.startInner(),null!=this.stoppedAt)for(let e of this.inner)e.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let e=this.baseTree;return null!=this.stoppedAt&&(e=new Kne(e.type,e.children,e.positions,e.length,e.propValues.concat([[kae,this.stoppedAt]]))),e}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let r=Object.assign(Object.create(null),e.target.props);r[zne.mounted.id]=new qne(t,e.overlay,e.parser),e.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].from<e&&(e=Math.min(e,this.inner[t].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].parse.stopAt(e)}startInner(){let e=new Cae(this.fragments),t=null,r=null,n=new dae(new aae(this.baseTree,this.ranges[0].from,0,null),Gne.IncludeAnonymous|Gne.IgnoreMounts);e:for(let a,o;;){let i,s=!0;if(null!=this.stoppedAt&&n.from>=this.stoppedAt)s=!1;else if(e.hasNode(n)){if(t){let e=t.mounts.find((e=>e.frag.from<=n.from&&e.frag.to>=n.to&&e.mount.overlay));if(e)for(let r of e.mount.overlay){let a=r.from+e.pos,o=r.to+e.pos;a>=n.from&&o<=n.to&&!t.ranges.some((e=>e.from<o&&e.to>a))&&t.ranges.push({from:a,to:o})}}s=!1}else if(r&&(o=_ae(r.ranges,n.from,n.to)))s=2!=o;else if(!n.type.isAnonymous&&(a=this.nest(n,this.input))&&(n.from<n.to||!a.overlay)){n.tree||Tae(n);let o=e.findMounts(n.from,a.parser);if("function"==typeof a.overlay)t=new xae(a.parser,a.overlay,o,this.inner.length,n.from,n.tree,t);else{let e=Pae(this.ranges,a.overlay||(n.from<n.to?[new Qne(n.from,n.to)]:[]));e.length&&wae(e),!e.length&&a.overlay||this.inner.push(new Oae(a.parser,e.length?a.parser.startParse(this.input,$ae(o,e),e):a.parser.startParse(""),a.overlay?a.overlay.map((e=>new Qne(e.from-n.from,e.to-n.from))):null,n.tree,e.length?e[0].from:n.from)),a.overlay?e.length&&(r={ranges:e,depth:0,prev:r}):s=!1}}else if(t&&(i=t.predicate(n))&&(!0===i&&(i=new Qne(n.from,n.to)),i.from<i.to)){let e=t.ranges.length-1;e>=0&&t.ranges[e].to==i.from?t.ranges[e]={from:t.ranges[e].from,to:i.to}:t.ranges.push(i)}if(s&&n.firstChild())t&&t.depth++,r&&r.depth++;else for(;!n.nextSibling();){if(!n.parent())break e;if(t&&! --t.depth){let e=Pae(this.ranges,t.ranges);e.length&&(wae(e),this.inner.splice(t.index,0,new Oae(t.parser,t.parser.startParse(this.input,$ae(t.mounts,e),e),t.ranges.map((e=>new Qne(e.from-t.start,e.to-t.start))),t.target,e[0].from))),t=t.prev}r&&! --r.depth&&(r=r.prev)}}}}function _ae(e,t,r){for(let n of e){if(n.from>=r)break;if(n.to>t)return n.from<=t&&n.to>=r?2:1}return 0}function Eae(e,t,r,n,a,o){if(t<r){let i=e.buffer[t+1];n.push(e.slice(t,r,i)),a.push(i-o)}}function Tae(e){let{node:t}=e,r=[],n=t.context.buffer;do{r.push(e.index),e.parent()}while(!e.tree);let a=e.tree,o=a.children.indexOf(n),i=a.children[o],s=i.buffer,l=[o];a.children[o]=function e(n,a,o,c,u,d){let p=r[d],h=[],f=[];Eae(i,n,p,h,f,c);let m=s[p+1],g=s[p+2];l.push(h.length);let v=d?e(p+4,s[p+3],i.set.types[s[p]],m,g-m,d-1):t.toTree();return h.push(v),f.push(m-c),Eae(i,s[p+3],a,h,f,c),new Kne(o,h,f,u)}(0,s.length,Vne.none,0,i.length,r.length-1);for(let t of l){let r=e.tree.children[t],n=e.tree.positions[t];e.yield(new aae(r,n+e.from,t,e._tree))}}class Aae{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(Gne.IncludeAnonymous|Gne.IgnoreMounts)}moveTo(e){let{cursor:t}=this,r=e-this.offset;for(;!this.done&&t.from<r;)t.to>=e&&t.enter(r,1,Gne.IgnoreOverlays|Gne.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(!(t.children.length&&0==t.positions[0]&&t.children[0]instanceof Kne))break;t=t.children[0]}return!1}}let Cae=class{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let r=this.curFrag=e[0];this.curTo=null!==(t=r.tree.prop(kae))&&void 0!==t?t:r.to,this.inner=new Aae(r.tree,-r.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(e=t.tree.prop(kae))&&void 0!==e?e:t.to,this.inner=new Aae(t.tree,-t.offset)}}findMounts(e,t){var r;let n=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let e=this.inner.cursor.node;e;e=e.parent){let a=null===(r=e.tree)||void 0===r?void 0:r.prop(zne.mounted);if(a&&a.parser==t)for(let t=this.fragI;t<this.fragments.length;t++){let r=this.fragments[t];if(r.from>=e.to)break;r.tree==this.curFrag.tree&&n.push({frag:r,pos:e.from-r.offset,mount:a})}}}return n}};function Pae(e,t){let r=null,n=t;for(let a=1,o=0;a<e.length;a++){let i=e[a-1].to,s=e[a].from;for(;o<n.length;o++){let e=n[o];if(e.from>=s)break;e.to<=i||(r||(n=r=t.slice()),e.from<i?(r[o]=new Qne(e.from,i),e.to>s&&r.splice(o+1,0,new Qne(s,e.to))):e.to>s?r[o--]=new Qne(s,e.to):r.splice(o--,1))}}return n}function Dae(e,t,r,n){let a=0,o=0,i=!1,s=!1,l=-1e9,c=[];for(;;){let u=a==e.length?1e9:i?e[a].to:e[a].from,d=o==t.length?1e9:s?t[o].to:t[o].from;if(i!=s){let e=Math.max(l,r),t=Math.min(u,d,n);e<t&&c.push(new Qne(e,t))}if(l=Math.min(u,d),1e9==l)break;u==l&&(i?(i=!1,a++):i=!0),d==l&&(s?(s=!1,o++):s=!0)}return c}function $ae(e,t){let r=[];for(let{pos:n,mount:a,frag:o}of e){let e=n+(a.overlay?a.overlay[0].from:0),i=e+a.tree.length,s=Math.max(o.from,e),l=Math.min(o.to,i);if(a.overlay){let i=a.overlay.map((e=>new Qne(e.from+n,e.to+n))),c=Dae(t,i,s,l);for(let t=0,n=s;;t++){let i=t==c.length,s=i?l:c[t].from;if(s>n&&r.push(new vae(n,s,a.tree,-e,o.from>=n||o.openStart,o.to<=s||o.openEnd)),i)break;n=c[t].to}}else r.push(new vae(s,l,a.tree,-e,o.from>=e||o.openStart,o.to<=i||o.openEnd))}return r}let Rae=0,Mae=class e{constructor(e,t,r,n){this.name=e,this.set=t,this.base=r,this.modified=n,this.id=Rae++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(t,r){let n="string"==typeof t?t:"?";if(t instanceof e&&(r=t),null==r?void 0:r.base)throw new Error("Can not derive from a modified tag");let a=new e(n,[],null,[]);if(a.set.push(a),r)for(let e of r.set)a.set.push(e);return a}static defineModifier(e){let t=new Iae(e);return e=>e.modified.indexOf(t)>-1?e:Iae.get(e.base||e,e.modified.concat(t).sort(((e,t)=>e.id-t.id)))}},Nae=0;class Iae{constructor(e){this.name=e,this.instances=[],this.id=Nae++}static get(e,t){if(!t.length)return e;let r=t[0].instances.find((r=>{return r.base==e&&(n=t,a=r.modified,n.length==a.length&&n.every(((e,t)=>e==a[t])));var n,a}));if(r)return r;let n=[],a=new Mae(e.name,n,e,t);for(let e of t)e.instances.push(a);let o=function(e){let t=[[]];for(let r=0;r<e.length;r++)for(let n=0,a=t.length;n<a;n++)t.push(t[n].concat(e[r]));return t.sort(((e,t)=>t.length-e.length))}(t);for(let t of e.set)if(!t.modified.length)for(let e of o)n.push(Iae.get(t,e));return a}}function Lae(e){let t=Object.create(null);for(let r in e){let n=e[r];Array.isArray(n)||(n=[n]);for(let e of r.split(" "))if(e){let r=[],a=2,o=e;for(let t=0;;){if("..."==o&&t>0&&t+3==e.length){a=1;break}let n=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!n)throw new RangeError("Invalid path: "+e);if(r.push("*"==n[0]?"":'"'==n[0][0]?JSON.parse(n[0]):n[0]),t+=n[0].length,t==e.length)break;let i=e[t++];if(t==e.length&&"!"==i){a=0;break}if("/"!=i)throw new RangeError("Invalid path: "+e);o=e.slice(t)}let i=r.length-1,s=r[i];if(!s)throw new RangeError("Invalid path: "+e);let l=new Bae(n,a,i>0?r.slice(0,i):null);t[s]=l.sort(t[s])}}return jae.add(t)}const jae=new zne;class Bae{constructor(e,t,r,n){this.tags=e,this.mode=t,this.context=r,this.next=n}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}function Uae(e,t){let r=Object.create(null);for(let t of e)if(Array.isArray(t.tag))for(let e of t.tag)r[e.id]=t.class;else r[t.tag.id]=t.class;let{scope:n,all:a=null}=t||{};return{style:e=>{let t=a;for(let n of e)for(let e of n.set){let n=r[e.id];if(n){t=t?t+" "+n:n;break}}return t},scope:n}}function Fae(e,t,r,n=0,a=e.length){let o=new Qae(n,Array.isArray(t)?t:[t],r);o.highlightRange(e.cursor(),n,a,"",o.highlighters),o.flush(a)}Bae.empty=new Bae([],2,null);class Qae{constructor(e,t,r){this.at=e,this.highlighters=t,this.span=r,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,r,n,a){let{type:o,from:i,to:s}=e;if(i>=r||s<=t)return;o.isTop&&(a=this.highlighters.filter((e=>!e.scope||e.scope(o))));let l=n,c=function(e){let t=e.type.prop(jae);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||Bae.empty,u=function(e,t){let r=null;for(let n of e){let e=n.style(t);e&&(r=r?r+" "+e:e)}return r}(a,c.tags);if(u&&(l&&(l+=" "),l+=u,1==c.mode&&(n+=(n?" ":"")+u)),this.startSpan(Math.max(t,i),l),c.opaque)return;let d=e.tree&&e.tree.prop(zne.mounted);if(d&&d.overlay){let o=e.node.enter(d.overlay[0].from+i,1),c=this.highlighters.filter((e=>!e.scope||e.scope(d.tree.type))),u=e.firstChild();for(let p=0,h=i;;p++){let f=p<d.overlay.length?d.overlay[p]:null,m=f?f.from+i:s,g=Math.max(t,h),v=Math.min(r,m);if(g<v&&u)for(;e.from<v&&(this.highlightRange(e,g,v,n,a),this.startSpan(Math.min(v,e.to),l),!(e.to>=m)&&e.nextSibling()););if(!f||m>r)break;h=f.to+i,h>t&&(this.highlightRange(o.cursor(),Math.max(t,f.from+i),Math.min(r,h),"",c),this.startSpan(Math.min(r,h),l))}u&&e.parent()}else if(e.firstChild()){d&&(n="");do{if(!(e.to<=t)){if(e.from>=r)break;this.highlightRange(e,t,r,n,a),this.startSpan(Math.min(r,e.to),l)}}while(e.nextSibling());e.parent()}}}const zae=Mae.define,qae=zae(),Hae=zae(),Vae=zae(Hae),Zae=zae(Hae),Wae=zae(),Xae=zae(Wae),Gae=zae(Wae),Yae=zae(),Kae=zae(Yae),Jae=zae(),eoe=zae(),toe=zae(),roe=zae(toe),noe=zae(),aoe={comment:qae,lineComment:zae(qae),blockComment:zae(qae),docComment:zae(qae),name:Hae,variableName:zae(Hae),typeName:Vae,tagName:zae(Vae),propertyName:Zae,attributeName:zae(Zae),className:zae(Hae),labelName:zae(Hae),namespace:zae(Hae),macroName:zae(Hae),literal:Wae,string:Xae,docString:zae(Xae),character:zae(Xae),attributeValue:zae(Xae),number:Gae,integer:zae(Gae),float:zae(Gae),bool:zae(Wae),regexp:zae(Wae),escape:zae(Wae),color:zae(Wae),url:zae(Wae),keyword:Jae,self:zae(Jae),null:zae(Jae),atom:zae(Jae),unit:zae(Jae),modifier:zae(Jae),operatorKeyword:zae(Jae),controlKeyword:zae(Jae),definitionKeyword:zae(Jae),moduleKeyword:zae(Jae),operator:eoe,derefOperator:zae(eoe),arithmeticOperator:zae(eoe),logicOperator:zae(eoe),bitwiseOperator:zae(eoe),compareOperator:zae(eoe),updateOperator:zae(eoe),definitionOperator:zae(eoe),typeOperator:zae(eoe),controlOperator:zae(eoe),punctuation:toe,separator:zae(toe),bracket:roe,angleBracket:zae(roe),squareBracket:zae(roe),paren:zae(roe),brace:zae(roe),content:Yae,heading:Kae,heading1:zae(Kae),heading2:zae(Kae),heading3:zae(Kae),heading4:zae(Kae),heading5:zae(Kae),heading6:zae(Kae),contentSeparator:zae(Yae),list:zae(Yae),quote:zae(Yae),emphasis:zae(Yae),strong:zae(Yae),link:zae(Yae),monospace:zae(Yae),strikethrough:zae(Yae),inserted:zae(),deleted:zae(),changed:zae(),invalid:zae(),meta:noe,documentMeta:zae(noe),annotation:zae(noe),processingInstruction:zae(noe),definition:Mae.defineModifier("definition"),constant:Mae.defineModifier("constant"),function:Mae.defineModifier("function"),standard:Mae.defineModifier("standard"),local:Mae.defineModifier("local"),special:Mae.defineModifier("special")};for(let e in aoe){let t=aoe[e];t instanceof Mae&&(t.name=e)}var ooe;Uae([{tag:aoe.link,class:"tok-link"},{tag:aoe.heading,class:"tok-heading"},{tag:aoe.emphasis,class:"tok-emphasis"},{tag:aoe.strong,class:"tok-strong"},{tag:aoe.keyword,class:"tok-keyword"},{tag:aoe.atom,class:"tok-atom"},{tag:aoe.bool,class:"tok-bool"},{tag:aoe.url,class:"tok-url"},{tag:aoe.labelName,class:"tok-labelName"},{tag:aoe.inserted,class:"tok-inserted"},{tag:aoe.deleted,class:"tok-deleted"},{tag:aoe.literal,class:"tok-literal"},{tag:aoe.string,class:"tok-string"},{tag:aoe.number,class:"tok-number"},{tag:[aoe.regexp,aoe.escape,aoe.special(aoe.string)],class:"tok-string2"},{tag:aoe.variableName,class:"tok-variableName"},{tag:aoe.local(aoe.variableName),class:"tok-variableName tok-local"},{tag:aoe.definition(aoe.variableName),class:"tok-variableName tok-definition"},{tag:aoe.special(aoe.variableName),class:"tok-variableName2"},{tag:aoe.definition(aoe.propertyName),class:"tok-propertyName tok-definition"},{tag:aoe.typeName,class:"tok-typeName"},{tag:aoe.namespace,class:"tok-namespace"},{tag:aoe.className,class:"tok-className"},{tag:aoe.macroName,class:"tok-macroName"},{tag:aoe.propertyName,class:"tok-propertyName"},{tag:aoe.operator,class:"tok-operator"},{tag:aoe.comment,class:"tok-comment"},{tag:aoe.meta,class:"tok-meta"},{tag:aoe.invalid,class:"tok-invalid"},{tag:aoe.punctuation,class:"tok-punctuation"}]);const ioe=new zne;function soe(e){return v6.define({combine:e?t=>t.concat(e):void 0})}const loe=new zne;class coe{constructor(e,t,r=[],n=""){this.data=e,this.name=n,e7.prototype.hasOwnProperty("tree")||Object.defineProperty(e7.prototype,"tree",{get(){return poe(this)}}),this.parser=t,this.extension=[woe.of(this),e7.languageData.of(((e,t,r)=>{let n=uoe(e,t,r),a=n.type.prop(ioe);if(!a)return[];let o=e.facet(a),i=n.type.prop(loe);if(i){let a=n.resolve(t-n.from,r);for(let t of i)if(t.test(a,e)){let r=e.facet(t.facet);return"replace"==t.type?r:r.concat(o)}}return o}))].concat(r)}isActiveAt(e,t,r=-1){return uoe(e,t,r).type.prop(ioe)==this.data}findRegions(e){let t=e.facet(woe);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let r=[],n=(e,t)=>{if(e.prop(ioe)==this.data)return void r.push({from:t,to:t+e.length});let a=e.prop(zne.mounted);if(a){if(a.tree.prop(ioe)==this.data){if(a.overlay)for(let e of a.overlay)r.push({from:e.from+t,to:e.to+t});else r.push({from:t,to:t+e.length});return}if(a.overlay){let e=r.length;if(n(a.tree,a.overlay[0].from+t),r.length>e)return}}for(let r=0;r<e.children.length;r++){let a=e.children[r];a instanceof Kne&&n(a,e.positions[r]+t)}};return n(poe(e),0),r}get allowsNesting(){return!0}}function uoe(e,t,r){let n=e.facet(woe),a=poe(e).topNode;if(!n||n.allowsNesting)for(let e=a;e;e=e.enter(t,r,Gne.ExcludeBuffers))e.type.isTop&&(a=e);return a}coe.setState=z6.define();class doe extends coe{constructor(e,t,r){super(e,t,[],r),this.parser=t}static define(e){let t=soe(e.languageData);return new doe(t,e.parser.configure({props:[ioe.add((e=>e.isTop?t:void 0))]}),e.name)}configure(e,t){return new doe(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function poe(e){let t=e.field(coe.state,!1);return t?t.tree:Kne.empty}class hoe{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let r=this.cursorPos-this.string.length;return e<r||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-r,t-r)}}let foe=null;class moe{constructor(e,t,r=[],n,a,o,i,s){this.parser=e,this.state=t,this.fragments=r,this.tree=n,this.treeLen=a,this.viewport=o,this.skipped=i,this.scheduleOn=s,this.parse=null,this.tempSkipped=[]}static create(e,t,r){return new moe(e,t,[],Kne.empty,0,r,[],null)}startParse(){return this.parser.startParse(new hoe(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=Kne.empty&&this.isDone(null!=t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var r;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let n=this.parse.advance();if(n){if(this.fragments=this.withoutTempSkipped(vae.addTree(n,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!==(r=this.parse.stoppedAt)&&void 0!==r?r:this.state.doc.length,this.tree=n,this.parse=null,!(this.treeLen<(null!=t?t:this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}}))}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext((()=>{for(;!(t=this.parse.advance()););})),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(vae.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=foe;foe=this;try{return e()}finally{foe=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=goe(e,t.from,t.to);return e}changes(e,t){let{fragments:r,tree:n,treeLen:a,viewport:o,skipped:i}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges(((e,r,n,a)=>t.push({fromA:e,toA:r,fromB:n,toB:a}))),r=vae.applyChanges(r,t),n=Kne.empty,a=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){i=[];for(let t of this.skipped){let r=e.mapPos(t.from,1),n=e.mapPos(t.to,-1);r<n&&i.push({from:r,to:n})}}}return new moe(this.parser,t,r,n,a,o,i,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let t=0;t<this.skipped.length;t++){let{from:r,to:n}=this.skipped[t];r<e.to&&n>e.from&&(this.fragments=goe(this.fragments,r,n),this.skipped.splice(t--,1))}return!(this.skipped.length>=t||(this.reset(),0))}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends bae{createParse(t,r,n){let a=n[0].from,o=n[n.length-1].to,i={parsedPos:a,advance(){let t=foe;if(t){for(let e of n)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=o,new Kne(Vne.none,[],[],o-a)},stoppedAt:null,stopAt(){}};return i}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return foe}}function goe(e,t,r){return vae.applyChanges(e,[{fromA:t,toA:r,fromB:t,toB:r}])}class voe{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),r=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,r)||t.takeTree(),new voe(t)}static init(e){let t=Math.min(3e3,e.doc.length),r=moe.create(e.facet(woe).parser,e,{from:0,to:t});return r.work(20,t)||r.takeTree(),new voe(r)}}coe.state=S6.define({create:voe.init,update(e,t){for(let e of t.effects)if(e.is(coe.setState))return e.value;return t.startState.facet(woe)!=t.state.facet(woe)?voe.init(t.state):e.apply(t)}});let boe=e=>{let t=setTimeout((()=>e()),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(boe=e=>{let t=-1,r=setTimeout((()=>{t=requestIdleCallback(e,{timeout:400})}),100);return()=>t<0?clearTimeout(r):cancelIdleCallback(t)});const yoe="undefined"!=typeof navigator&&(null===(ooe=navigator.scheduling)||void 0===ooe?void 0:ooe.isInputPending)?()=>navigator.scheduling.isInputPending():null,Ooe=Aee.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(coe.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(coe.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=boe(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:r,viewport:{to:n}}=this.view,a=r.field(coe.state);if(a.tree==a.context.tree&&a.context.isDone(n+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!yoe?Math.max(25,e.timeRemaining()-5):1e9),i=a.context.treeLen<n&&r.doc.length>n+1e3,s=a.context.work((()=>yoe&&yoe()||Date.now()>o),n+(i?0:1e5));this.chunkBudget-=Date.now()-t,(s||this.chunkBudget<=0)&&(a.context.takeTree(),this.view.dispatch({effects:coe.setState.of(new voe(a.context))})),this.chunkBudget>0&&(!s||i)&&this.scheduleWork(),this.checkAsyncSchedule(a.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then((()=>this.scheduleWork())).catch((e=>See(this.view.state,e))).then((()=>this.workScheduled--)),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),woe=v6.define({combine:e=>e.length?e[0]:null,enables:e=>[coe.state,Ooe,_re.contentAttributes.compute([e],(t=>{let r=t.facet(e);return r&&r.name?{"data-language":r.name}:{}}))]});class xoe{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const koe=v6.define(),Soe=v6.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some((e=>e!=t[0])))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function _oe(e){let t=e.facet(Soe);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function Eoe(e,t){let r="",n=e.tabSize,a=e.facet(Soe)[0];if("\t"==a){for(;t>=n;)r+="\t",t-=n;a=" "}for(let e=0;e<t;e++)r+=a;return r}function Toe(e,t){e instanceof e7&&(e=new Aoe(e));for(let r of e.state.facet(koe)){let n=r(e,t);if(void 0!==n)return n}let r=poe(e.state);return r.length>=t?function(e,t,r){let n=t.resolveStack(r),a=t.resolveInner(r,-1).resolve(r,0).enterUnfinishedNodesBefore(r);if(a!=n.node){let e=[];for(let t=a;t!=n.node;t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)n={node:e[t],next:n}}return Poe(n,e,r)}(e,r,t):null}class Aoe{constructor(e,t={}){this.state=e,this.options=t,this.unit=_oe(e)}lineAt(e,t=1){let r=this.state.doc.lineAt(e),{simulateBreak:n,simulateDoubleBreak:a}=this.options;return null!=n&&n>=r.from&&n<=r.to?a&&n==e?{text:"",from:e}:(t<0?n<e:n<=e)?{text:r.text.slice(n-r.from),from:n}:{text:r.text.slice(0,n-r.from),from:r.from}:r}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:r,from:n}=this.lineAt(e,t);return r.slice(e-n,Math.min(r.length,e+100-n))}column(e,t=1){let{text:r,from:n}=this.lineAt(e,t),a=this.countColumn(r,e-n),o=this.options.overrideIndentation?this.options.overrideIndentation(n):-1;return o>-1&&(a+=o-this.countColumn(r,r.search(/\S|$/))),a}countColumn(e,t=e.length){return b7(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:r,from:n}=this.lineAt(e,t),a=this.options.overrideIndentation;if(a){let e=a(n);if(e>-1)return e}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Coe=new zne;function Poe(e,t,r){for(let n=e;n;n=n.next){let e=Doe(n.node);if(e)return e(Roe.create(t,r,n))}return 0}function Doe(e){let t=e.type.prop(Coe);if(t)return t;let r,n=e.firstChild;if(n&&(r=n.type.prop(zne.closedBy))){let t=e.lastChild,n=t&&r.indexOf(t.name)>-1;return e=>Ioe(e,!0,1,void 0,n&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?$oe:null}function $oe(){return 0}class Roe extends Aoe{constructor(e,t,r){super(e.state,e.options),this.base=e,this.pos=t,this.context=r}get node(){return this.context.node}static create(e,t,r){return new Roe(e,t,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let r=e.resolve(t.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(Moe(r,e))break;t=this.state.doc.lineAt(r.from)}return this.lineIndent(t.from)}continue(){return Poe(this.context.next,this.base,this.pos)}}function Moe(e,t){for(let r=t;r;r=r.parent)if(e==r)return!0;return!1}function Noe({closing:e,align:t=!0,units:r=1}){return n=>Ioe(n,t,r,e)}function Ioe(e,t,r,n,a){let o=e.textAfter,i=o.match(/^\s*/)[0].length,s=n&&o.slice(i,i+n.length)==n||a==e.pos+i,l=t?function(e){let t=e.node,r=t.childAfter(t.from),n=t.lastChild;if(!r)return null;let a=e.options.simulateBreak,o=e.state.doc.lineAt(r.from),i=null==a||a<=o.from?o.to:Math.min(o.to,a);for(let e=r.to;;){let a=t.childAfter(e);if(!a||a==n)return null;if(!a.type.isSkipped){if(a.from>=i)return null;let e=/^ */.exec(o.text.slice(r.to-o.from))[0].length;return{from:r.from,to:r.to+e}}e=a.to}}(e):null;return l?s?e.column(l.from):e.column(l.to):e.baseIndent+(s?0:e.unit*r)}function Loe({except:e,units:t=1}={}){return r=>{let n=e&&e.test(r.textAfter);return r.baseIndent+(n?0:t*r.unit)}}const joe=v6.define(),Boe=new zne;function Uoe(e){let t=e.firstChild,r=e.lastChild;return t&&t.to<r.from?{from:t.to,to:r.type.isError?e.to:r.from}:null}function Foe(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function Qoe(e,t,r){for(let n of e.facet(joe)){let a=n(e,t,r);if(a)return a}return function(e,t,r){let n=poe(e);if(n.length<r)return null;let a=null;for(let o=n.resolveStack(r,1);o;o=o.next){let i=o.node;if(i.to<=r||i.from>r)continue;if(a&&i.from<t)break;let s=i.type.prop(Boe);if(s&&(i.to<n.length-50||n.length==e.doc.length||!Foe(i))){let n=s(i,e);n&&n.from<=r&&n.from>=t&&n.to>r&&(a=n)}}return a}(e,t,r)}function zoe(e,t){let r=t.mapPos(e.from,1),n=t.mapPos(e.to,-1);return r>=n?void 0:{from:r,to:n}}const qoe=z6.define({map:zoe}),Hoe=z6.define({map:zoe}),Voe=S6.define({create:()=>$9.none,update(e,t){e=e.map(t.changes);for(let r of t.effects)if(r.is(qoe)&&!Woe(e,r.value.from,r.value.to)){let{preparePlaceholder:n}=t.state.facet(Goe),a=n?$9.replace({widget:new Joe(n(t.state,r.value))}):Koe;e=e.update({add:[a.range(r.value.from,r.value.to)]})}else r.is(Hoe)&&(e=e.update({filter:(e,t)=>r.value.from!=e||r.value.to!=t,filterFrom:r.value.from,filterTo:r.value.to}));if(t.selection){let r=!1,{head:n}=t.selection.main;e.between(n,n,((e,t)=>{e<n&&t>n&&(r=!0)})),r&&(e=e.update({filterFrom:n,filterTo:n,filter:(e,t)=>t<=n||e>=n}))}return e},provide:e=>_re.decorations.from(e),toJSON(e,t){let r=[];return e.between(0,t.doc.length,((e,t)=>{r.push(e,t)})),r},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let r=0;r<e.length;){let n=e[r++],a=e[r++];if("number"!=typeof n||"number"!=typeof a)throw new RangeError("Invalid JSON for fold state");t.push(Koe.range(n,a))}return $9.set(t,!0)}});function Zoe(e,t,r){var n;let a=null;return null===(n=e.field(Voe,!1))||void 0===n||n.between(t,r,((e,t)=>{(!a||a.from>e)&&(a={from:e,to:t})})),a}function Woe(e,t,r){let n=!1;return e.between(t,t,((e,a)=>{e==t&&a==r&&(n=!0)})),n}const Xoe={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Goe=v6.define({combine:e=>t7(e,Xoe)});function Yoe(e,t){let{state:r}=e,n=r.facet(Goe),a=t=>{let r=e.lineBlockAt(e.posAtDOM(t.target)),n=Zoe(e.state,r.from,r.to);n&&e.dispatch({effects:Hoe.of(n)}),t.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(e,a,t);let o=document.createElement("span");return o.textContent=n.placeholderText,o.setAttribute("aria-label",r.phrase("folded code")),o.title=r.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=a,o}const Koe=$9.replace({widget:new class extends P9{toDOM(e){return Yoe(e,null)}}});class Joe extends P9{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return Yoe(e,this.value)}}const eie={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class tie extends yne{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function rie(e={}){let t=Object.assign(Object.assign({},eie),e),r=new tie(t,!0),n=new tie(t,!1),a=Aee.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(woe)!=e.state.facet(woe)||e.startState.field(Voe,!1)!=e.state.field(Voe,!1)||poe(e.startState)!=poe(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new s7;for(let a of e.viewportLineBlocks){let o=Zoe(e.state,a.from,a.to)?n:Qoe(e.state,a.from,a.to)?r:null;o&&t.add(a.from,a.from,o)}return t.finish()}}),{domEventHandlers:o}=t;return[a,Sne({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(a))||void 0===t?void 0:t.markers)||i7.empty},initialSpacer:()=>new tie(t,!1),domEventHandlers:Object.assign(Object.assign({},o),{click:(e,t,r)=>{if(o.click&&o.click(e,t,r))return!0;let n=Zoe(e.state,t.from,t.to);if(n)return e.dispatch({effects:Hoe.of(n)}),!0;let a=Qoe(e.state,t.from,t.to);return!!a&&(e.dispatch({effects:qoe.of(a)}),!0)}})}),[Voe,nie]]}const nie=_re.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class aie{constructor(e,t){let r;function n(e){let t=x7.newName();return(r||(r=Object.create(null)))["."+t]=e,t}this.specs=e;const a="string"==typeof t.all?t.all:t.all?n(t.all):void 0,o=t.scope;this.scope=o instanceof coe?e=>e.prop(ioe)==o.data:o?e=>e==o:void 0,this.style=Uae(e.map((e=>({tag:e.tag,class:e.class||n(Object.assign({},e,{tag:null}))}))),{all:a}).style,this.module=r?new x7(r):null,this.themeType=t.themeType}static define(e,t){return new aie(e,t||{})}}const oie=v6.define(),iie=v6.define({combine:e=>e.length?[e[0]]:null});function sie(e){let t=e.facet(oie);return t.length?t:e.facet(iie)}function lie(e,t){let r,n=[cie];return e instanceof aie&&(e.module&&n.push(_re.styleModule.of(e.module)),r=e.themeType),(null==t?void 0:t.fallback)?n.push(iie.of(e)):r?n.push(oie.computeN([_re.darkTheme],(t=>t.facet(_re.darkTheme)==("dark"==r)?[e]:[]))):n.push(oie.of(e)),n}const cie=E6.high(Aee.fromClass(class{constructor(e){this.markCache=Object.create(null),this.tree=poe(e.state),this.decorations=this.buildDeco(e,sie(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=poe(e.state),r=sie(e.state),n=r!=sie(e.startState),{viewport:a}=e.view,o=e.changes.mapPos(this.decoratedTo,1);t.length<a.to&&!n&&t.type==this.tree.type&&o>=a.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(t!=this.tree||e.viewportChanged||n)&&(this.tree=t,this.decorations=this.buildDeco(e.view,r),this.decoratedTo=a.to)}buildDeco(e,t){if(!t||!this.tree.length)return $9.none;let r=new s7;for(let{from:n,to:a}of e.visibleRanges)Fae(this.tree,t,((e,t,n)=>{r.add(e,t,this.markCache[n]||(this.markCache[n]=$9.mark({class:n})))}),n,a);return r.finish()}},{decorations:e=>e.decorations})),uie=aie.define([{tag:aoe.meta,color:"#404740"},{tag:aoe.link,textDecoration:"underline"},{tag:aoe.heading,textDecoration:"underline",fontWeight:"bold"},{tag:aoe.emphasis,fontStyle:"italic"},{tag:aoe.strong,fontWeight:"bold"},{tag:aoe.strikethrough,textDecoration:"line-through"},{tag:aoe.keyword,color:"#708"},{tag:[aoe.atom,aoe.bool,aoe.url,aoe.contentSeparator,aoe.labelName],color:"#219"},{tag:[aoe.literal,aoe.inserted],color:"#164"},{tag:[aoe.string,aoe.deleted],color:"#a11"},{tag:[aoe.regexp,aoe.escape,aoe.special(aoe.string)],color:"#e40"},{tag:aoe.definition(aoe.variableName),color:"#00f"},{tag:aoe.local(aoe.variableName),color:"#30a"},{tag:[aoe.typeName,aoe.namespace],color:"#085"},{tag:aoe.className,color:"#167"},{tag:[aoe.special(aoe.variableName),aoe.macroName],color:"#256"},{tag:aoe.definition(aoe.propertyName),color:"#00c"},{tag:aoe.comment,color:"#940"},{tag:aoe.invalid,color:"#f00"}]),die=_re.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),pie="()[]{}",hie=v6.define({combine:e=>t7(e,{afterCursor:!0,brackets:pie,maxScanDistance:1e4,renderMatch:gie})}),fie=$9.mark({class:"cm-matchingBracket"}),mie=$9.mark({class:"cm-nonmatchingBracket"});function gie(e){let t=[],r=e.matched?fie:mie;return t.push(r.range(e.start.from,e.start.to)),e.end&&t.push(r.range(e.end.from,e.end.to)),t}const vie=[S6.define({create:()=>$9.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let r=[],n=t.state.facet(hie);for(let e of t.state.selection.ranges){if(!e.empty)continue;let a=xie(t.state,e.head,-1,n)||e.head>0&&xie(t.state,e.head-1,1,n)||n.afterCursor&&(xie(t.state,e.head,1,n)||e.head<t.state.doc.length&&xie(t.state,e.head+1,-1,n));a&&(r=r.concat(n.renderMatch(a,t.state)))}return $9.set(r,!0)},provide:e=>_re.decorations.from(e)}),die];function bie(e={}){return[hie.of(e),vie]}const yie=new zne;function Oie(e,t,r){let n=e.prop(t<0?zne.openedBy:zne.closedBy);if(n)return n;if(1==e.name.length){let n=r.indexOf(e.name);if(n>-1&&n%2==(t<0?1:0))return[r[n+t]]}return null}function wie(e){let t=e.type.prop(yie);return t?t(e.node):e}function xie(e,t,r,n={}){let a=n.maxScanDistance||1e4,o=n.brackets||pie,i=poe(e),s=i.resolveInner(t,r);for(let n=s;n;n=n.parent){let a=Oie(n.type,r,o);if(a&&n.from<n.to){let i=wie(n);if(i&&(r>0?t>=i.from&&t<i.to:t>i.from&&t<=i.to))return kie(e,t,r,n,i,a,o)}}return function(e,t,r,n,a,o,i){let s=r<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=i.indexOf(s);if(l<0||l%2==0!=r>0)return null;let c={from:r<0?t-1:t,to:r>0?t+1:t},u=e.doc.iterRange(t,r>0?e.doc.length:0),d=0;for(let e=0;!u.next().done&&e<=o;){let o=u.value;r<0&&(e+=o.length);let s=t+e*r;for(let e=r>0?0:o.length-1,t=r>0?o.length:-1;e!=t;e+=r){let t=i.indexOf(o[e]);if(!(t<0||n.resolveInner(s+e,1).type!=a))if(t%2==0==r>0)d++;else{if(1==d)return{start:c,end:{from:s+e,to:s+e+1},matched:t>>1==l>>1};d--}}r>0&&(e+=o.length)}return u.done?{start:c,matched:!1}:null}(e,t,r,i,s.type,a,o)}function kie(e,t,r,n,a,o,i){let s=n.parent,l={from:a.from,to:a.to},c=0,u=null==s?void 0:s.cursor();if(u&&(r<0?u.childBefore(n.from):u.childAfter(n.to)))do{if(r<0?u.to<=n.from:u.from>=n.to){if(0==c&&o.indexOf(u.type.name)>-1&&u.from<u.to){let e=wie(u);return{start:l,end:e?{from:e.from,to:e.to}:void 0,matched:!0}}if(Oie(u.type,r,i))c++;else if(Oie(u.type,-r,i)){if(0==c){let e=wie(u);return{start:l,end:e&&e.from<e.to?{from:e.from,to:e.to}:void 0,matched:!1}}c--}}}while(r<0?u.prevSibling():u.nextSibling());return{start:l,matched:!1}}const Sie=Object.create(null),_ie=[Vne.none],Eie=[],Tie=Object.create(null),Aie=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Aie[e]=Pie(Sie,t);function Cie(e,t){Eie.indexOf(e)>-1||(Eie.push(e),console.warn(t))}function Pie(e,t){let r=[];for(let n of t.split(" ")){let t=[];for(let r of n.split(".")){let n=e[r]||aoe[r];n?"function"==typeof n?t.length?t=t.map(n):Cie(r,`Modifier ${r} used at start of tag`):t.length?Cie(r,`Tag ${r} used as modifier`):t=Array.isArray(n)?n:[n]:Cie(r,`Unknown highlighting tag ${r}`)}for(let e of t)r.push(e)}if(!r.length)return 0;let n=t.replace(/ /g,"_"),a=n+" "+r.map((e=>e.id)),o=Tie[a];if(o)return o.id;let i=Tie[a]=Vne.define({id:_ie.length,name:n,props:[Lae({[n]:r})]});return _ie.push(i),i.id}q9.RTL,q9.LTR;const Die=new Map([["aliceblue","#f0f8ff"],["antiquewhite","#faebd7"],["aqua","#00ffff"],["aquamarine","#7fffd4"],["azure","#f0ffff"],["beige","#f5f5dc"],["bisque","#ffe4c4"],["black","#000000"],["blanchedalmond","#ffebcd"],["blue","#0000ff"],["blueviolet","#8a2be2"],["brown","#a52a2a"],["burlywood","#deb887"],["cadetblue","#5f9ea0"],["chartreuse","#7fff00"],["chocolate","#d2691e"],["coral","#ff7f50"],["cornflowerblue","#6495ed"],["cornsilk","#fff8dc"],["crimson","#dc143c"],["cyan","#00ffff"],["darkblue","#00008b"],["darkcyan","#008b8b"],["darkgoldenrod","#b8860b"],["darkgray","#a9a9a9"],["darkgreen","#006400"],["darkgrey","#a9a9a9"],["darkkhaki","#bdb76b"],["darkmagenta","#8b008b"],["darkolivegreen","#556b2f"],["darkorange","#ff8c00"],["darkorchid","#9932cc"],["darkred","#8b0000"],["darksalmon","#e9967a"],["darkseagreen","#8fbc8f"],["darkslateblue","#483d8b"],["darkslategray","#2f4f4f"],["darkslategrey","#2f4f4f"],["darkturquoise","#00ced1"],["darkviolet","#9400d3"],["deeppink","#ff1493"],["deepskyblue","#00bfff"],["dimgray","#696969"],["dimgrey","#696969"],["dodgerblue","#1e90ff"],["firebrick","#b22222"],["floralwhite","#fffaf0"],["forestgreen","#228b22"],["fuchsia","#ff00ff"],["gainsboro","#dcdcdc"],["ghostwhite","#f8f8ff"],["goldenrod","#daa520"],["gold","#ffd700"],["gray","#808080"],["green","#008000"],["greenyellow","#adff2f"],["grey","#808080"],["honeydew","#f0fff0"],["hotpink","#ff69b4"],["indianred","#cd5c5c"],["indigo","#4b0082"],["ivory","#fffff0"],["khaki","#f0e68c"],["lavenderblush","#fff0f5"],["lavender","#e6e6fa"],["lawngreen","#7cfc00"],["lemonchiffon","#fffacd"],["lightblue","#add8e6"],["lightcoral","#f08080"],["lightcyan","#e0ffff"],["lightgoldenrodyellow","#fafad2"],["lightgray","#d3d3d3"],["lightgreen","#90ee90"],["lightgrey","#d3d3d3"],["lightpink","#ffb6c1"],["lightsalmon","#ffa07a"],["lightseagreen","#20b2aa"],["lightskyblue","#87cefa"],["lightslategray","#778899"],["lightslategrey","#778899"],["lightsteelblue","#b0c4de"],["lightyellow","#ffffe0"],["lime","#00ff00"],["limegreen","#32cd32"],["linen","#faf0e6"],["magenta","#ff00ff"],["maroon","#800000"],["mediumaquamarine","#66cdaa"],["mediumblue","#0000cd"],["mediumorchid","#ba55d3"],["mediumpurple","#9370db"],["mediumseagreen","#3cb371"],["mediumslateblue","#7b68ee"],["mediumspringgreen","#00fa9a"],["mediumturquoise","#48d1cc"],["mediumvioletred","#c71585"],["midnightblue","#191970"],["mintcream","#f5fffa"],["mistyrose","#ffe4e1"],["moccasin","#ffe4b5"],["navajowhite","#ffdead"],["navy","#000080"],["oldlace","#fdf5e6"],["olive","#808000"],["olivedrab","#6b8e23"],["orange","#ffa500"],["orangered","#ff4500"],["orchid","#da70d6"],["palegoldenrod","#eee8aa"],["palegreen","#98fb98"],["paleturquoise","#afeeee"],["palevioletred","#db7093"],["papayawhip","#ffefd5"],["peachpuff","#ffdab9"],["peru","#cd853f"],["pink","#ffc0cb"],["plum","#dda0dd"],["powderblue","#b0e0e6"],["purple","#800080"],["rebeccapurple","#663399"],["red","#ff0000"],["rosybrown","#bc8f8f"],["royalblue","#4169e1"],["saddlebrown","#8b4513"],["salmon","#fa8072"],["sandybrown","#f4a460"],["seagreen","#2e8b57"],["seashell","#fff5ee"],["sienna","#a0522d"],["silver","#c0c0c0"],["skyblue","#87ceeb"],["slateblue","#6a5acd"],["slategray","#708090"],["slategrey","#708090"],["snow","#fffafa"],["springgreen","#00ff7f"],["steelblue","#4682b4"],["tan","#d2b48c"],["teal","#008080"],["thistle","#d8bfd8"],["tomato","#ff6347"],["turquoise","#40e0d0"],["violet","#ee82ee"],["wheat","#f5deb3"],["white","#ffffff"],["whitesmoke","#f5f5f5"],["yellow","#ffff00"],["yellowgreen","#9acd32"]]),$ie=new WeakMap;var Rie=function(e){return e.rgb="RGB",e.hex="HEX",e.named="NAMED",e.hsl="HSL",e}(Rie||(Rie={}));const Mie=/rgb(?:a)?\(\s*(\d{1,3}%?)\s*,?\s*(\d{1,3}%?)\s*,?\s*(\d{1,3}%?)\s*([,/]\s*0?\.?\d+%?)?\)/,Nie=/hsl\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*(,\s*0?\.\d+)?\)/,Iie=/(^|\b)(#[0-9a-f]{3,9})(\b|$)/i;function Lie(e,t){const r=[],n=poe(e.state);for(const a of e.visibleRanges)n.iterate({from:a.from,to:a.to,enter:({type:a,from:o,to:i})=>{var s;const l=t(n,o,i,a.name,e.state.doc,null===(s=e.state.facet(woe))||void 0===s?void 0:s.name);if(l)if(Array.isArray(l))for(const e of l)r.push($9.widget({widget:new qie(e),side:1}).range(e.from));else r.push($9.widget({widget:new qie(l),side:1}).range(l.from))}});return $9.set(r)}function jie(e){let t;if(e.endsWith("%")){const r=Number(e.slice(0,-1));t=Math.round(r/100*255)}else t=Number(e);return Bie(t)}function Bie(e){const t=e.toString(16);return 1===t.length?"0"+t:t}function Uie(e){const t=e.slice(1,3),r=e.slice(3,5),n=e.slice(5,7);return[parseInt(t,16),parseInt(r,16),parseInt(n,16)]}function Fie(e){return e<0?e+1:e>1?e-1:e}function Qie(e,t,r){return 6*r<1?t+6*(e-t)*r:2*r<1?e:3*r<2?t+(e-t)*(.666-r)*6:t}const zie="cm-css-color-picker-wrapper";class qie extends P9{constructor(e){var{color:t}=e,r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(e,["color"]);super(),this.state=r,this.color=t}eq(e){return e.state.colorType===this.state.colorType&&e.color===this.color&&e.state.from===this.state.from&&e.state.to===this.state.to&&e.state.alpha===this.state.alpha}toDOM(){const e=document.createElement("input");$ie.set(e,this.state),e.type="color",e.value=this.color;const t=document.createElement("span");return t.appendChild(e),t.className=zie,t}ignoreEvent(){return!1}}const Hie=_re.baseTheme({[`.${zie}`]:{display:"inline-block",outline:"1px solid #eee",marginRight:"0.6ch",height:"1em",width:"1em",transform:"translateY(1px)"},[`.${zie} input[type="color"]`]:{cursor:"pointer",height:"100%",width:"100%",padding:0,border:"none","&::-webkit-color-swatch-wrapper":{padding:0},"&::-webkit-color-swatch":{border:"none"},"&::-moz-color-swatch":{border:"none"}}}),Vie=[(e=>Aee.fromClass(class{constructor(t){this.decorations=Lie(t,e.discoverColors)}update(t){(t.docChanged||t.viewportChanged)&&(this.decorations=Lie(t.view,e.discoverColors))}},{decorations:e=>e.decorations,eventHandlers:{change:(e,t)=>{const r=e.target;if("INPUT"!==r.nodeName||!r.parentElement||!r.parentElement.classList.contains(zie))return!1;const n=$ie.get(r);let a=r.value+n.alpha;if(n.colorType===Rie.rgb)a=`rgb(${Uie(r.value).join(", ")}${n.alpha})`;else if(n.colorType===Rie.named)for(const[e,t]of Die.entries())t===r.value&&(a=e);else if(n.colorType===Rie.hsl){const[e,t,o]=Uie(r.value),[i,s,l]=function(e,t,r){const n=e/255,a=t/255,o=r/255,i=Math.min(n,a,o),s=Math.max(n,a,o),l=(s+i)/2;if(s===i)return[0,0,l];let c,u;for(c=l<=.5?(s-i)/(s+i):(s-i)/(2-s-i),u=s===n?(a-o)/(s-i):a===s?2+(o-n)/(s-i):4+(n-a)/(s-i),u=Math.round(60*u);u<0;)u+=360;return[u,c,l]}(e,t,o);a=`hsl(${i}, ${Math.round(100*s)}%, ${Math.round(100*l)}%${n.alpha})`}return t.dispatch({changes:{from:n.from,to:n.to,insert:a}}),!0}}}))({discoverColors:function e(t,r,n,a,o,i){var s;switch(a){case"AttributeValue":{const n=t.resolveInner(r,0).tree;if(!n)return null;const a=null===(s=n.prop(zne.mounted))||void 0===s?void 0:s.tree;if("Styles"!==(null==a?void 0:a.type.name))return null;const i=[];return a.iterate({from:0,to:a.length,enter:({type:n,from:a,to:s})=>{const l=e(t,r+1+a,r+1+s,n.name,o);if(l){if(Array.isArray(l))throw new Error("Unexpected nested overlays");i.push(l)}}}),i}case"CallExpression":{const e=function(e){switch(e.slice(0,3)){case"rgb":{const t=Mie.exec(e);if(!t)return null;const[r,n,a,o,i]=t,s=function(e,t,r){return`#${jie(e)}${jie(t)}${jie(r)}`}(n,a,o);return{colorType:Rie.rgb,color:s,alpha:i||""}}case"hsl":{const t=Nie.exec(e);if(!t)return null;const[r,n,a,o,i]=t,s=function(e,t,r){const n=Number(t)/100,a=Number(r)/100,[o,i,s]=function(e,t,r){if(0===t){const e=Math.round(255*r);return[e,e,e]}let n;n=r<.5?r*(1+t):r+t-r*t;const a=2*r-n,o=Fie(.333+(e/=360)),i=e,s=Fie(e-.333),l=Qie(n,a,o),c=Qie(n,a,i),u=Qie(n,a,s);return[Math.round(255*l),Math.round(255*c),Math.round(255*u)]}(Number(e),n,a);return`#${Bie(o)}${Bie(i)}${Bie(s)}`}(n,a,o);return{colorType:Rie.hsl,color:s,alpha:i||""}}default:return null}}(o.sliceString(r,n));return e?Object.assign(Object.assign({},e),{from:r,to:n}):null}case"ColorLiteral":{const e=function(e){if(!Iie.exec(e))return null;const[t,r]=function(e){return 4===e.length?[`#${e[1].repeat(2)}${e[2].repeat(2)}${e[3].repeat(2)}`,""]:5===e.length?[`#${e[1].repeat(2)}${e[2].repeat(2)}${e[3].repeat(2)}`,e[4].repeat(2)]:9===e.length?[`#${e.slice(1,-2)}`,e.slice(-2)]:[e,""]}(e);return{colorType:Rie.hex,color:t,alpha:r}}(o.sliceString(r,n));return e?Object.assign(Object.assign({},e),{from:r,to:n}):null}case"ValueName":{const e=function(e){const t=Die.get(e);return t?{colorType:Rie.named,color:t,alpha:""}:null}(o.sliceString(r,n));return e?Object.assign(Object.assign({},e),{from:r,to:n}):null}default:return null}}}),Hie];class Zie{constructor(e,t,r,n){this.state=e,this.pos=t,this.explicit=r,this.view=n,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=poe(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),r=Math.max(t.from,this.pos-250),n=t.text.slice(r-t.from,this.pos-t.from),a=n.search(Kie(e,!1));return a<0?null:{from:r+a,to:this.pos,text:n.slice(a)}}get aborted(){return null==this.abortListeners}addEventListener(e,t,r){"abort"==e&&this.abortListeners&&(this.abortListeners.push(t),r&&r.onDocChange&&(this.abortOnDocChange=!0))}}function Wie(e){let t=Object.keys(e).join(""),r=/\w/.test(t);return r&&(t=t.replace(/\w/g,"")),`[${r?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function Xie(e){let t=e.map((e=>"string"==typeof e?{label:e}:e)),[r,n]=t.every((e=>/^\w+$/.test(e.label)))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),r=Object.create(null);for(let{label:n}of e){t[n[0]]=!0;for(let e=1;e<n.length;e++)r[n[e]]=!0}let n=Wie(t)+Wie(r)+"*$";return[new RegExp("^"+n),new RegExp(n)]}(t);return e=>{let a=e.matchBefore(n);return a||e.explicit?{from:a?a.from:e.pos,options:t,validFor:r}:null}}class Gie{constructor(e,t,r,n){this.completion=e,this.source=t,this.match=r,this.score=n}}function Yie(e){return e.selection.main.from}function Kie(e,t){var r;let{source:n}=e,a=t&&"^"!=n[0],o="$"!=n[n.length-1];return a||o?new RegExp(`${a?"^":""}(?:${n})${o?"$":""}`,null!==(r=e.flags)&&void 0!==r?r:e.ignoreCase?"i":""):e}const Jie=U6.define(),ese=new WeakMap;function tse(e){if(!Array.isArray(e))return e;let t=ese.get(e);return t||ese.set(e,t=Xie(e)),t}const rse=z6.define(),nse=z6.define();class ase{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let r=e6(e,t),n=r6(r);this.chars.push(r);let a=e.slice(t,t+n),o=a.toUpperCase();this.folded.push(e6(o==a?a.toLowerCase():o,0)),t+=n}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(0==this.pattern.length)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:r,any:n,precise:a,byWord:o}=this;if(1==t.length){let n=e6(e,0),a=r6(n),o=a==e.length?0:-100;if(n==t[0]);else{if(n!=r[0])return null;o+=-200}return this.ret(o,[0,a])}let i=e.indexOf(this.pattern);if(0==i)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let s=t.length,l=0;if(i<0){for(let a=0,o=Math.min(e.length,200);a<o&&l<s;){let o=e6(e,a);o!=t[l]&&o!=r[l]||(n[l++]=a),a+=r6(o)}if(l<s)return null}let c=0,u=0,d=!1,p=0,h=-1,f=-1,m=/[a-z]/.test(e),g=!0;for(let n=0,l=Math.min(e.length,200),v=0;n<l&&u<s;){let l=e6(e,n);i<0&&(c<s&&l==t[c]&&(a[c++]=n),p<s&&(l==t[p]||l==r[p]?(0==p&&(h=n),f=n+1,p++):p=0));let b,y=l<255?l>=48&&l<=57||l>=97&&l<=122?2:l>=65&&l<=90?1:0:(b=t6(l))!=b.toLowerCase()?1:b!=b.toUpperCase()?2:0;(!n||1==y&&m||0==v&&0!=y)&&(t[u]==l||r[u]==l&&(d=!0)?o[u++]=n:o.length&&(g=!1)),v=y,n+=r6(l)}return u==s&&0==o[0]&&g?this.result((d?-200:0)-100,o,e):p==s&&0==h?this.ret(-200-e.length+(f==e.length?0:-100),[0,f]):i>-1?this.ret(-700-e.length,[i,i+this.pattern.length]):p==s?this.ret(-900-e.length,[h,f]):u==s?this.result((d?-200:0)-100-700+(g?0:-1100),o,e):2==t.length?null:this.result((n[0]?-700:0)-200-1100,n,e)}result(e,t,r){let n=[],a=0;for(let e of t){let t=e+(this.astral?r6(e6(r,e)):1);a&&n[a-1]==e?n[a-1]=t:(n[a++]=e,n[a++]=t)}return this.ret(e-r.length,n)}}class ose{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),r=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return null==r?null:(this.matched=[0,t.length],this.score=r+(e.length==this.pattern.length?0:-100),this)}}const ise=v6.define({combine:e=>t7(e,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:lse,filterStrict:!1,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>r=>sse(e(r),t(r)),optionClass:(e,t)=>r=>sse(e(r),t(r)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})});function sse(e,t){return e?t?e+" "+t:e:t}function lse(e,t,r,n,a,o){let i,s,l=e.textDirection==q9.RTL,c=l,u=!1,d="top",p=t.left-a.left,h=a.right-t.right,f=n.right-n.left,m=n.bottom-n.top;if(c&&p<Math.min(f,h)?c=!1:!c&&h<Math.min(f,p)&&(c=!0),f<=(c?p:h))i=Math.max(a.top,Math.min(r.top,a.bottom-m))-t.top,s=Math.min(400,c?p:h);else{u=!0,s=Math.min(400,(l?t.right:a.right-t.left)-30);let e=a.bottom-t.bottom;e>=m||e>t.top?i=r.bottom-t.top:(d="bottom",i=t.bottom-r.top)}return{style:`${d}: ${i/((t.bottom-t.top)/o.offsetHeight)}px; max-width: ${s/((t.right-t.left)/o.offsetWidth)}px`,class:"cm-completionInfo-"+(u?l?"left-narrow":"right-narrow":c?"left":"right")}}function cse(e,t,r){if(e<=r)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/r);return{from:e*r,to:(e+1)*r}}let n=Math.floor((e-t)/r);return{from:e-(n+1)*r,to:e-n*r}}class use{constructor(e,t,r){this.view=e,this.stateField=t,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let n=e.state.field(t),{options:a,selected:o}=n.open,i=e.state.facet(ise);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map((e=>"cm-completionIcon-"+e))),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,r,n){let a=document.createElement("span");a.className="cm-completionLabel";let o=e.displayLabel||e.label,i=0;for(let e=0;e<n.length;){let t=n[e++],r=n[e++];t>i&&a.appendChild(document.createTextNode(o.slice(i,t)));let s=a.appendChild(document.createElement("span"));s.appendChild(document.createTextNode(o.slice(t,r))),s.className="cm-completionMatchedText",i=r}return i<o.length&&a.appendChild(document.createTextNode(o.slice(i))),a},position:50},{render(e){if(!e.detail)return null;let t=document.createElement("span");return t.className="cm-completionDetail",t.textContent=e.detail,t},position:80}),t.sort(((e,t)=>e.position-t.position)).map((e=>e.render))}(i),this.optionClass=i.optionClass,this.tooltipClass=i.tooltipClass,this.range=cse(a.length,o,i.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",(r=>{let{options:n}=e.state.field(t).open;for(let t,a=r.target;a&&a!=this.dom;a=a.parentNode)if("LI"==a.nodeName&&(t=/-(\d+)$/.exec(a.id))&&+t[1]<n.length)return this.applyCompletion(e,n[+t[1]]),void r.preventDefault()})),this.dom.addEventListener("focusout",(t=>{let r=e.state.field(this.stateField,!1);r&&r.tooltip&&e.state.facet(ise).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:nse.of(null)})})),this.showOptions(a,n.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)}))}update(e){var t;let r=e.state.field(this.stateField),n=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),r!=n){let{options:a,selected:o,disabled:i}=r.open;n.open&&n.open.options==a||(this.range=cse(a.length,o,e.state.facet(ise).maxRenderedOptions),this.showOptions(a,r.id)),this.updateSel(),i!=(null===(t=n.open)||void 0===t?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!i)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=cse(t.options.length,t.selected,this.view.state.facet(ise).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:r}=t.options[t.selected],{info:n}=r;if(!n)return;let a="string"==typeof n?document.createTextNode(n):n(r);if(!a)return;"then"in a?a.then((t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,r)})).catch((e=>See(this.view.state,e,"completion info"))):this.addInfoPane(a,r)}}addInfoPane(e,t){this.destroyInfo();let r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",null!=e.nodeType)r.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:n}=e;r.appendChild(t),this.infoDestroy=n||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let r=this.list.firstChild,n=this.range.from;r;r=r.nextSibling,n++)"LI"==r.nodeName&&r.id?n==e?r.hasAttribute("aria-selected")||(r.setAttribute("aria-selected","true"),t=r):r.hasAttribute("aria-selected")&&r.removeAttribute("aria-selected"):n--;return t&&function(e,t){let r=e.getBoundingClientRect(),n=t.getBoundingClientRect(),a=r.height/e.offsetHeight;n.top<r.top?e.scrollTop-=(r.top-n.top)/a:n.bottom>r.bottom&&(e.scrollTop+=(n.bottom-r.bottom)/a)}(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),n=e.getBoundingClientRect(),a=this.space;if(!a){let e=this.dom.ownerDocument.defaultView||window;a={left:0,top:0,right:e.innerWidth,bottom:e.innerHeight}}return n.top>Math.min(a.bottom,t.bottom)-10||n.bottom<Math.max(a.top,t.top)+10?null:this.view.state.facet(ise).positionInfo(this.view,t,n,r,a,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,r){const n=document.createElement("ul");n.id=t,n.setAttribute("role","listbox"),n.setAttribute("aria-expanded","true"),n.setAttribute("aria-label",this.view.state.phrase("Completions"));let a=null;for(let o=r.from;o<r.to;o++){let{completion:i,match:s}=e[o],{section:l}=i;if(l){let e="string"==typeof l?l:l.name;e!=a&&(o>r.from||0==r.from)&&(a=e,"string"!=typeof l&&l.header?n.appendChild(l.header(l)):n.appendChild(document.createElement("completion-section")).textContent=e)}const c=n.appendChild(document.createElement("li"));c.id=t+"-"+o,c.setAttribute("role","option");let u=this.optionClass(i);u&&(c.className=u);for(let e of this.optionContent){let t=e(i,this.view.state,this.view,s);t&&c.appendChild(t)}}return r.from&&n.classList.add("cm-completionListIncompleteTop"),r.to<e.length&&n.classList.add("cm-completionListIncompleteBottom"),n}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function dse(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}class pse{constructor(e,t,r,n,a,o){this.options=e,this.attrs=t,this.tooltip=r,this.timestamp=n,this.selected=a,this.disabled=o}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new pse(this.options,gse(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,r,n,a,o){if(n&&!o&&e.some((e=>e.isPending)))return n.setDisabled();let i=function(e,t){let r=[],n=null,a=e=>{r.push(e);let{section:t}=e.completion;if(t){n||(n=[]);let e="string"==typeof t?t:t.name;n.some((t=>t.name==e))||n.push("string"==typeof t?{name:e}:t)}},o=t.facet(ise);for(let n of e)if(n.hasResult()){let e=n.result.getMatch;if(!1===n.result.filter)for(let t of n.result.options)a(new Gie(t,n.source,e?e(t):[],1e9-r.length));else{let r,i=t.sliceDoc(n.from,n.to),s=o.filterStrict?new ose(i):new ase(i);for(let t of n.result.options)if(r=s.match(t.label)){let o=t.displayLabel?e?e(t,r.matched):[]:r.matched;a(new Gie(t,n.source,o,r.score+(t.boost||0)))}}}if(n){let e=Object.create(null),t=0,a=(e,t)=>{var r,n;return(null!==(r=e.rank)&&void 0!==r?r:1e9)-(null!==(n=t.rank)&&void 0!==n?n:1e9)||(e.name<t.name?-1:1)};for(let r of n.sort(a))t-=1e5,e[r.name]=t;for(let t of r){let{section:r}=t.completion;r&&(t.score+=e["string"==typeof r?r:r.name])}}let i=[],s=null,l=o.compareCompletions;for(let e of r.sort(((e,t)=>t.score-e.score||l(e.completion,t.completion)))){let t=e.completion;!s||s.label!=t.label||s.detail!=t.detail||null!=s.type&&null!=t.type&&s.type!=t.type||s.apply!=t.apply||s.boost!=t.boost?i.push(e):dse(e.completion)>dse(s)&&(i[i.length-1]=e),s=e.completion}return i}(e,t);if(!i.length)return n&&e.some((e=>e.isPending))?n.setDisabled():null;let s=t.facet(ise).selectOnOpen?0:-1;if(n&&n.selected!=s&&-1!=n.selected){let e=n.options[n.selected].completion;for(let t=0;t<i.length;t++)if(i[t].completion==e){s=t;break}}return new pse(i,gse(r,s),{pos:e.reduce(((e,t)=>t.hasResult()?Math.min(e,t.from):e),1e8),create:_se,above:a.aboveCursor},n?n.timestamp:Date.now(),s,!1)}map(e){return new pse(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}setDisabled(){return new pse(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class hse{constructor(e,t,r){this.active=e,this.id=t,this.open=r}static start(){return new hse(vse,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,r=t.facet(ise),n=(r.override||t.languageDataAt("autocomplete",Yie(t)).map(tse)).map((t=>{let n=this.active.find((e=>e.source==t))||new yse(t,this.active.some((e=>0!=e.state))?1:0);return n.update(e,r)}));n.length==this.active.length&&n.every(((e,t)=>e==this.active[t]))&&(n=this.active);let a=this.open,o=e.effects.some((e=>e.is(wse)));a&&e.docChanged&&(a=a.map(e.changes)),e.selection||n.some((t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to)))||!function(e,t){if(e==t)return!0;for(let r=0,n=0;;){for(;r<e.length&&!e[r].hasResult();)r++;for(;n<t.length&&!t[n].hasResult();)n++;let a=r==e.length,o=n==t.length;if(a||o)return a==o;if(e[r++].result!=t[n++].result)return!1}}(n,this.active)||o?a=pse.build(n,t,this.id,a,r,o):a&&a.disabled&&!n.some((e=>e.isPending))&&(a=null),!a&&n.every((e=>!e.isPending))&&n.some((e=>e.hasResult()))&&(n=n.map((e=>e.hasResult()?new yse(e.source,0):e)));for(let t of e.effects)t.is(xse)&&(a=a&&a.setSelected(t.value,this.id));return n==this.active&&a==this.open?this:new hse(n,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?fse:mse}}const fse={"aria-autocomplete":"list"},mse={};function gse(e,t){let r={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(r["aria-activedescendant"]=e+"-"+t),r}const vse=[];function bse(e,t){if(e.isUserEvent("input.complete")){let r=e.annotation(Jie);if(r&&t.activateOnCompletion(r))return 12}let r=e.isUserEvent("input.type");return r&&t.activateOnTyping?5:r?1:e.isUserEvent("delete.backward")?2:e.selection?8:e.docChanged?16:0}class yse{constructor(e,t,r=!1){this.source=e,this.state=t,this.explicit=r}hasResult(){return!1}get isPending(){return 1==this.state}update(e,t){let r=bse(e,t),n=this;(8&r||16&r&&this.touches(e))&&(n=new yse(n.source,0)),4&r&&0==n.state&&(n=new yse(this.source,1)),n=n.updateFor(e,r);for(let t of e.effects)if(t.is(rse))n=new yse(n.source,1,t.value);else if(t.is(nse))n=new yse(n.source,0);else if(t.is(wse))for(let e of t.value)e.source==n.source&&(n=e);return n}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(Yie(e.state))}}class Ose extends yse{constructor(e,t,r,n,a,o){super(e,3,t),this.limit=r,this.result=n,this.from=a,this.to=o}hasResult(){return!0}updateFor(e,t){var r;if(!(3&t))return this.map(e.changes);let n=this.result;n.map&&!e.changes.empty&&(n=n.map(n,e.changes));let a=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),i=Yie(e.state);if(i>o||!n||2&t&&(Yie(e.startState)==this.from||i<this.limit))return new yse(this.source,4&t?1:0);let s=e.changes.mapPos(this.limit);return function(e,t,r,n){if(!e)return!1;let a=t.sliceDoc(r,n);return"function"==typeof e?e(a,r,n,t):Kie(e,!0).test(a)}(n.validFor,e.state,a,o)?new Ose(this.source,this.explicit,s,n,a,o):n.update&&(n=n.update(n,a,o,new Zie(e.state,i,!1)))?new Ose(this.source,this.explicit,s,n,n.from,null!==(r=n.to)&&void 0!==r?r:Yie(e.state)):new yse(this.source,1,this.explicit)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new Ose(this.source,this.explicit,e.mapPos(this.limit),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new yse(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}const wse=z6.define({map:(e,t)=>e.map((e=>e.map(t)))}),xse=z6.define(),kse=S6.define({create:()=>hse.start(),update:(e,t)=>e.update(t),provide:e=>[ine.from(e,(e=>e.tooltip)),_re.contentAttributes.from(e,(e=>e.attrs))]});function Sse(e,t){const r=t.completion.apply||t.completion.label;let n=e.state.field(kse).active.find((e=>e.source==t.source));return n instanceof Ose&&("string"==typeof r?e.dispatch(Object.assign(Object.assign({},function(e,t,r,n){let{main:a}=e.selection,o=r-a.from,i=n-a.from;return Object.assign(Object.assign({},e.changeByRange((s=>{if(s!=a&&r!=n&&e.sliceDoc(s.from+o,s.from+i)!=e.sliceDoc(r,n))return{range:s};let l=e.toText(t);return{changes:{from:s.from+o,to:n==a.from?s.to:s.from+i,insert:l},range:f6.cursor(s.from+o+l.length)}}))),{scrollIntoView:!0,userEvent:"input.complete"})}(e.state,r,n.from,n.to)),{annotations:Jie.of(t.completion)})):r(e,t.completion,n.from,n.to),!0)}const _se=function(e,t){return r=>new use(r,e,t)}(kse,Sse);function Ese(e,t="option"){return r=>{let n=r.state.field(kse,!1);if(!n||!n.open||n.open.disabled||Date.now()-n.open.timestamp<r.state.facet(ise).interactionDelay)return!1;let a,o=1;"page"==t&&(a=pne(r,n.open.tooltip))&&(o=Math.max(2,Math.floor(a.dom.offsetHeight/a.dom.querySelector("li").offsetHeight)-1));let{length:i}=n.open.options,s=n.open.selected>-1?n.open.selected+o*(e?1:-1):e?0:i-1;return s<0?s="page"==t?0:i-1:s>=i&&(s="page"==t?i-1:0),r.dispatch({effects:xse.of(s)}),!0}}const Tse=e=>!!e.state.field(kse,!1)&&(e.dispatch({effects:rse.of(!0)}),!0);class Ase{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const Cse=Aee.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of e.state.field(kse).active)t.isPending&&this.startQuery(t)}update(e){let t=e.state.field(kse),r=e.state.facet(ise);if(!e.selectionSet&&!e.docChanged&&e.startState.field(kse)==t)return;let n=e.transactions.some((e=>{let t=bse(e,r);return 8&t||(e.selection||e.docChanged)&&!(3&t)}));for(let t=0;t<this.running.length;t++){let r=this.running[t];if(n||r.context.abortOnDocChange&&e.docChanged||r.updates.length+e.transactions.length>50&&Date.now()-r.time>1e3){for(let e of r.context.abortListeners)try{e()}catch(e){See(this.view.state,e)}r.context.abortListeners=null,this.running.splice(t--,1)}else r.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some((e=>e.effects.some((e=>e.is(rse)))))&&(this.pendingStart=!0);let a=this.pendingStart?50:r.activateOnTypingDelay;if(this.debounceUpdate=t.active.some((e=>e.isPending&&!this.running.some((t=>t.active.source==e.source))))?setTimeout((()=>this.startUpdate()),a):-1,0!=this.composing)for(let t of e.transactions)t.isUserEvent("input.type")?this.composing=2:2==this.composing&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(kse);for(let e of t.active)e.isPending&&!this.running.some((t=>t.active.source==e.source))&&this.startQuery(e);this.running.length&&t.open&&t.open.disabled&&(this.debounceAccept=setTimeout((()=>this.accept()),this.view.state.facet(ise).updateSyncTime))}startQuery(e){let{state:t}=this.view,r=Yie(t),n=new Zie(t,r,e.explicit,this.view),a=new Ase(e,n);this.running.push(a),Promise.resolve(e.source(n)).then((e=>{a.context.aborted||(a.done=e||null,this.scheduleAccept())}),(e=>{this.view.dispatch({effects:nse.of(null)}),See(this.view.state,e)}))}scheduleAccept(){this.running.every((e=>void 0!==e.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),this.view.state.facet(ise).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],r=this.view.state.facet(ise),n=this.view.state.field(kse);for(let a=0;a<this.running.length;a++){let o=this.running[a];if(void 0===o.done)continue;if(this.running.splice(a--,1),o.done){let n=Yie(o.updates.length?o.updates[0].startState:this.view.state),a=Math.min(n,o.done.from+(o.active.explicit?0:1)),i=new Ose(o.active.source,o.active.explicit,a,o.done,o.done.from,null!==(e=o.done.to)&&void 0!==e?e:n);for(let e of o.updates)i=i.update(e,r);if(i.hasResult()){t.push(i);continue}}let i=n.active.find((e=>e.source==o.active.source));if(i&&i.isPending)if(null==o.done){let e=new yse(o.active.source,0);for(let t of o.updates)e=e.update(t,r);e.isPending||t.push(e)}else this.startQuery(i)}(t.length||n.open&&n.open.disabled)&&this.view.dispatch({effects:wse.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(kse,!1);if(t&&t.tooltip&&this.view.state.facet(ise).closeOnBlur){let r=t.open&&pne(this.view,t.open.tooltip);r&&r.dom.contains(e.relatedTarget)||setTimeout((()=>this.view.dispatch({effects:nse.of(null)})),10)}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:rse.of(!1)})),20),this.composing=0}}}),Pse="object"==typeof navigator&&/Win/.test(navigator.platform),Dse=E6.highest(_re.domEventHandlers({keydown(e,t){let r=t.state.field(kse,!1);if(!r||!r.open||r.open.disabled||r.open.selected<0||e.key.length>1||e.ctrlKey&&(!Pse||!e.altKey)||e.metaKey)return!1;let n=r.open.options[r.open.selected],a=r.active.find((e=>e.source==n.source)),o=n.completion.commitCharacters||a.result.commitCharacters;return o&&o.indexOf(e.key)>-1&&Sse(t,n),!1}})),$se=_re.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class Rse{constructor(e,t,r,n){this.field=e,this.line=t,this.from=r,this.to=n}}class Mse{constructor(e,t,r){this.field=e,this.from=t,this.to=r}map(e){let t=e.mapPos(this.from,-1,a6.TrackDel),r=e.mapPos(this.to,1,a6.TrackDel);return null==t||null==r?null:new Mse(this.field,t,r)}}class Nse{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let r=[],n=[t],a=e.doc.lineAt(t),o=/^\s*/.exec(a.text)[0];for(let a of this.lines){if(r.length){let r=o,i=/^\t*/.exec(a)[0].length;for(let t=0;t<i;t++)r+=e.facet(Soe);n.push(t+r.length-i),a=r+a.slice(i)}r.push(a),t+=a.length+1}return{text:r,ranges:this.fieldPositions.map((e=>new Mse(e.field,n[e.line]+e.from,n[e.line]+e.to)))}}static parse(e){let t,r=[],n=[],a=[];for(let o of e.split(/\r\n?|\n/)){for(;t=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(o);){let e=t[1]?+t[1]:null,i=t[2]||t[3]||"",s=-1,l=i.replace(/\\[{}]/g,(e=>e[1]));for(let t=0;t<r.length;t++)(null!=e?r[t].seq==e:l&&r[t].name==l)&&(s=t);if(s<0){let t=0;for(;t<r.length&&(null==e||null!=r[t].seq&&r[t].seq<e);)t++;r.splice(t,0,{seq:e,name:l}),s=t;for(let e of a)e.field>=s&&e.field++}a.push(new Rse(s,n.length,t.index,t.index+l.length)),o=o.slice(0,t.index)+i+o.slice(t.index+t[0].length)}o=o.replace(/\\([{}])/g,((e,t,r)=>{for(let e of a)e.line==n.length&&e.from>r&&(e.from--,e.to--);return t})),n.push(o)}return new Nse(n,a)}}let Ise=$9.widget({widget:new class extends P9{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),Lse=$9.mark({class:"cm-snippetField"});class jse{constructor(e,t){this.ranges=e,this.active=t,this.deco=$9.set(e.map((e=>(e.from==e.to?Ise:Lse).range(e.from,e.to))))}map(e){let t=[];for(let r of this.ranges){let n=r.map(e);if(!n)return null;t.push(n)}return new jse(t,this.active)}selectionInsideField(e){return e.ranges.every((e=>this.ranges.some((t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))))}}const Bse=z6.define({map:(e,t)=>e&&e.map(t)}),Use=z6.define(),Fse=S6.define({create:()=>null,update(e,t){for(let r of t.effects){if(r.is(Bse))return r.value;if(r.is(Use)&&e)return new jse(e.ranges,r.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>_re.decorations.from(e,(e=>e?e.deco:$9.none))});function Qse(e,t){return f6.create(e.filter((e=>e.field==t)).map((e=>f6.range(e.from,e.to))))}function zse(e){let t=Nse.parse(e);return(e,r,n,a)=>{let{text:o,ranges:i}=t.instantiate(e.state,n),s={changes:{from:n,to:a,insert:z8.of(o)},scrollIntoView:!0,annotations:r?[Jie.of(r),q6.userEvent.of("input.complete")]:void 0};if(i.length&&(s.selection=Qse(i,0)),i.some((e=>e.field>0))){let t=new jse(i,0),r=s.effects=[Bse.of(t)];void 0===e.state.field(Fse,!1)&&r.push(z6.appendConfig.of([Fse,Zse,Xse,$se]))}e.dispatch(e.state.update(s))}}function qse(e){return({state:t,dispatch:r})=>{let n=t.field(Fse,!1);if(!n||e<0&&0==n.active)return!1;let a=n.active+e,o=e>0&&!n.ranges.some((t=>t.field==a+e));return r(t.update({selection:Qse(n.ranges,a),effects:Bse.of(o?null:new jse(n.ranges,a)),scrollIntoView:!0})),!0}}const Hse=[{key:"Tab",run:qse(1),shift:qse(-1)},{key:"Escape",run:({state:e,dispatch:t})=>!!e.field(Fse,!1)&&(t(e.update({effects:Bse.of(null)})),!0)}],Vse=v6.define({combine:e=>e.length?e[0]:Hse}),Zse=E6.highest(Rre.compute([Vse],(e=>e.facet(Vse))));function Wse(e,t){return Object.assign(Object.assign({},t),{apply:zse(e)})}const Xse=_re.domEventHandlers({mousedown(e,t){let r,n=t.state.field(Fse,!1);if(!n||null==(r=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let a=n.ranges.find((e=>e.from<=r&&e.to>=r));return!(!a||a.field==n.active||(t.dispatch({selection:Qse(n.ranges,a.field),effects:Bse.of(n.ranges.some((e=>e.field>a.field))?new jse(n.ranges,a.field):null),scrollIntoView:!0}),0))}}),Gse={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Yse=z6.define({map(e,t){let r=t.mapPos(e,-1,a6.TrackAfter);return null==r?void 0:r}}),Kse=new class extends r7{};Kse.startSide=1,Kse.endSide=-1;const Jse=S6.define({create:()=>i7.empty,update(e,t){if(e=e.map(t.changes),t.selection){let r=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=r.from&&e<=r.to})}for(let r of t.effects)r.is(Yse)&&(e=e.update({add:[Kse.range(r.value,r.value+1)]}));return e}}),ele="()[]{}<>";function tle(e){for(let t=0;t<8;t+=2)if(ele.charCodeAt(t)==e)return ele.charAt(t+1);return t6(e<128?e:e+1)}function rle(e,t){return e.languageDataAt("closeBrackets",t)[0]||Gse}const nle="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),ale=_re.inputHandler.of(((e,t,r,n)=>{if((nle?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let a=e.state.selection.main;if(n.length>2||2==n.length&&1==r6(e6(n,0))||t!=a.from||r!=a.to)return!1;let o=function(e,t){let r=rle(e,e.selection.main.head),n=r.brackets||Gse.brackets;for(let a of n){let o=tle(e6(a,0));if(t==a)return o==a?ule(e,a,n.indexOf(a+a+a)>-1,r):lle(e,a,o,r.before||Gse.before);if(t==o&&ile(e,e.selection.main.from))return cle(e,a,o)}return null}(e.state,n);return!!o&&(e.dispatch(o),!0)})),ole=[{key:"Backspace",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=rle(e,e.selection.main.head).brackets||Gse.brackets,n=null,a=e.changeByRange((t=>{if(t.empty){let n=function(e,t){let r=e.sliceString(t-2,t);return r6(e6(r,0))==r.length?r:r.slice(1)}(e.doc,t.head);for(let a of r)if(a==n&&sle(e.doc,t.head)==tle(e6(a,0)))return{changes:{from:t.head-a.length,to:t.head+a.length},range:f6.cursor(t.head-a.length)}}return{range:n=t}}));return n||t(e.update(a,{scrollIntoView:!0,userEvent:"delete.backward"})),!n}}];function ile(e,t){let r=!1;return e.field(Jse).between(0,e.doc.length,(e=>{e==t&&(r=!0)})),r}function sle(e,t){let r=e.sliceString(t,t+2);return r.slice(0,r6(e6(r,0)))}function lle(e,t,r,n){let a=null,o=e.changeByRange((o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:r,from:o.to}],effects:Yse.of(o.to+t.length),range:f6.range(o.anchor+t.length,o.head+t.length)};let i=sle(e.doc,o.head);return!i||/\s/.test(i)||n.indexOf(i)>-1?{changes:{insert:t+r,from:o.head},effects:Yse.of(o.head+t.length),range:f6.cursor(o.head+t.length)}:{range:a=o}}));return a?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function cle(e,t,r){let n=null,a=e.changeByRange((t=>t.empty&&sle(e.doc,t.head)==r?{changes:{from:t.head,to:t.head+r.length,insert:r},range:f6.cursor(t.head+r.length)}:n={range:t}));return n?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function ule(e,t,r,n){let a=n.stringPrefixes||Gse.stringPrefixes,o=null,i=e.changeByRange((n=>{if(!n.empty)return{changes:[{insert:t,from:n.from},{insert:t,from:n.to}],effects:Yse.of(n.to+t.length),range:f6.range(n.anchor+t.length,n.head+t.length)};let i,s=n.head,l=sle(e.doc,s);if(l==t){if(dle(e,s))return{changes:{insert:t+t,from:s},effects:Yse.of(s+t.length),range:f6.cursor(s+t.length)};if(ile(e,s)){let n=r&&e.sliceDoc(s,s+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:s,to:s+n.length,insert:n},range:f6.cursor(s+n.length)}}}else{if(r&&e.sliceDoc(s-2*t.length,s)==t+t&&(i=ple(e,s-2*t.length,a))>-1&&dle(e,i))return{changes:{insert:t+t+t+t,from:s},effects:Yse.of(s+t.length),range:f6.cursor(s+t.length)};if(e.charCategorizer(s)(l)!=Y6.Word&&ple(e,s,a)>-1&&!function(e,t,r,n){let a=poe(e).resolveInner(t,-1),o=n.reduce(((e,t)=>Math.max(e,t.length)),0);for(let i=0;i<5;i++){let i=e.sliceDoc(a.from,Math.min(a.to,a.from+r.length+o)),s=i.indexOf(r);if(!s||s>-1&&n.indexOf(i.slice(0,s))>-1){let t=a.firstChild;for(;t&&t.from==a.from&&t.to-t.from>r.length+s;){if(e.sliceDoc(t.to-r.length,t.to)==r)return!1;t=t.firstChild}return!0}let l=a.to==t&&a.parent;if(!l)break;a=l}return!1}(e,s,t,a))return{changes:{insert:t+t,from:s},effects:Yse.of(s+t.length),range:f6.cursor(s+t.length)}}return{range:o=n}}));return o?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function dle(e,t){let r=poe(e).resolveInner(t+1);return r.parent&&r.from==t}function ple(e,t,r){let n=e.charCategorizer(t);if(n(e.sliceDoc(t-1,t))!=Y6.Word)return t;for(let a of r){let r=t-a.length;if(e.sliceDoc(r,t)==a&&n(e.sliceDoc(r-1,r))!=Y6.Word)return r}return-1}const hle=[{key:"Ctrl-Space",run:Tse},{mac:"Alt-`",run:Tse},{key:"Escape",run:e=>{let t=e.state.field(kse,!1);return!(!t||!t.active.some((e=>0!=e.state))||(e.dispatch({effects:nse.of(null)}),0))}},{key:"ArrowDown",run:Ese(!0)},{key:"ArrowUp",run:Ese(!1)},{key:"PageDown",run:Ese(!0,"page")},{key:"PageUp",run:Ese(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(kse,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(ise).interactionDelay)&&Sse(e,t.open.options[t.open.selected])}}],fle=E6.highest(Rre.computeN([ise],(e=>e.facet(ise).defaultKeymap?[hle]:[]))),mle=U6.define(),gle=U6.define(),vle=v6.define(),ble=v6.define({combine:e=>t7(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(r,n)=>e(r,n)||t(r,n)})}),yle=S6.define({create:()=>Ile.empty,update(e,t){let r=t.state.facet(ble),n=t.annotation(mle);if(n){let a=Ele.fromTransaction(t,n.selection),o=n.side,i=0==o?e.undone:e.done;return i=a?Tle(i,i.length,r.minDepth,a):Dle(i,t.startState.selection),new Ile(0==o?n.rest:i,0==o?i:n.rest)}let a=t.annotation(gle);if("full"!=a&&"before"!=a||(e=e.isolate()),!1===t.annotation(q6.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let o=Ele.fromTransaction(t),i=t.annotation(q6.time),s=t.annotation(q6.userEvent);return o?e=e.addChanges(o,i,s,r,t):t.selection&&(e=e.addSelection(t.startState.selection,i,s,r.newGroupDelay)),"full"!=a&&"after"!=a||(e=e.isolate()),e},toJSON:e=>({done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}),fromJSON:e=>new Ile(e.done.map(Ele.fromJSON),e.undone.map(Ele.fromJSON))});function Ole(e={}){return[yle,ble.of(e),_re.domEventHandlers({beforeinput(e,t){let r="historyUndo"==e.inputType?xle:"historyRedo"==e.inputType?kle:null;return!!r&&(e.preventDefault(),r(t))}})]}function wle(e,t){return function({state:r,dispatch:n}){if(!t&&r.readOnly)return!1;let a=r.field(yle,!1);if(!a)return!1;let o=a.pop(e,r,t);return!!o&&(n(o),!0)}}const xle=wle(0,!1),kle=wle(1,!1),Sle=wle(0,!0),_le=wle(1,!0);class Ele{constructor(e,t,r,n,a){this.changes=e,this.effects=t,this.mapped=r,this.startSelection=n,this.selectionsAfter=a}setSelAfter(e){return new Ele(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,r;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(r=this.startSelection)||void 0===r?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new Ele(e.changes&&i6.fromJSON(e.changes),[],e.mapped&&o6.fromJSON(e.mapped),e.startSelection&&f6.fromJSON(e.startSelection),e.selectionsAfter.map(f6.fromJSON))}static fromTransaction(e,t){let r=Cle;for(let t of e.startState.facet(vle)){let n=t(e);n.length&&(r=r.concat(n))}return!r.length&&e.changes.empty?null:new Ele(e.changes.invert(e.startState.doc),r,void 0,t||e.startState.selection,Cle)}static selection(e){return new Ele(void 0,Cle,void 0,void 0,e)}}function Tle(e,t,r,n){let a=t+1>r+20?t-r-1:0,o=e.slice(a,t);return o.push(n),o}function Ale(e,t){return e.length?t.length?e.concat(t):e:t}const Cle=[],Ple=200;function Dle(e,t){if(e.length){let r=e[e.length-1],n=r.selectionsAfter.slice(Math.max(0,r.selectionsAfter.length-Ple));return n.length&&n[n.length-1].eq(t)?e:(n.push(t),Tle(e,e.length-1,1e9,r.setSelAfter(n)))}return[Ele.selection([t])]}function $le(e){let t=e[e.length-1],r=e.slice();return r[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),r}function Rle(e,t){if(!e.length)return e;let r=e.length,n=Cle;for(;r;){let a=Mle(e[r-1],t,n);if(a.changes&&!a.changes.empty||a.effects.length){let t=e.slice(0,r);return t[r-1]=a,t}t=a.mapped,r--,n=a.selectionsAfter}return n.length?[Ele.selection(n)]:Cle}function Mle(e,t,r){let n=Ale(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):Cle,r);if(!e.changes)return Ele.selection(n);let a=e.changes.map(t),o=t.mapDesc(e.changes,!0),i=e.mapped?e.mapped.composeDesc(o):o;return new Ele(a,z6.mapEffects(e.effects,t),i,e.startSelection.map(o),n)}const Nle=/^(input\.type|delete)($|\.)/;class Ile{constructor(e,t,r=0,n=void 0){this.done=e,this.undone=t,this.prevTime=r,this.prevUserEvent=n}isolate(){return this.prevTime?new Ile(this.done,this.undone):this}addChanges(e,t,r,n,a){let o=this.done,i=o[o.length-1];return o=i&&i.changes&&!i.changes.empty&&e.changes&&(!r||Nle.test(r))&&(!i.selectionsAfter.length&&t-this.prevTime<n.newGroupDelay&&n.joinToEvent(a,function(e,t){let r=[],n=!1;return e.iterChangedRanges(((e,t)=>r.push(e,t))),t.iterChangedRanges(((e,t,a,o)=>{for(let e=0;e<r.length;){let t=r[e++],i=r[e++];o>=t&&a<=i&&(n=!0)}})),n}(i.changes,e.changes))||"input.type.compose"==r)?Tle(o,o.length-1,n.minDepth,new Ele(e.changes.compose(i.changes),Ale(z6.mapEffects(e.effects,i.changes),i.effects),i.mapped,i.startSelection,Cle)):Tle(o,o.length,n.minDepth,e),new Ile(o,Cle,t,r)}addSelection(e,t,r,n){let a=this.done.length?this.done[this.done.length-1].selectionsAfter:Cle;return a.length>0&&t-this.prevTime<n&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&(o=a[a.length-1],i=e,o.ranges.length==i.ranges.length&&0===o.ranges.filter(((e,t)=>e.empty!=i.ranges[t].empty)).length)?this:new Ile(Dle(this.done,e),this.undone,t,r);var o,i}addMapping(e){return new Ile(Rle(this.done,e),Rle(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,r){let n=0==e?this.done:this.undone;if(0==n.length)return null;let a=n[n.length-1],o=a.selectionsAfter[0]||t.selection;if(r&&a.selectionsAfter.length)return t.update({selection:a.selectionsAfter[a.selectionsAfter.length-1],annotations:mle.of({side:e,rest:$le(n),selection:o}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(a.changes){let r=1==n.length?Cle:n.slice(0,n.length-1);return a.mapped&&(r=Rle(r,a.mapped)),t.update({changes:a.changes,selection:a.startSelection,effects:a.effects,annotations:mle.of({side:e,rest:r,selection:o}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}Ile.empty=new Ile(Cle,Cle);const Lle=[{key:"Mod-z",run:xle,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:kle,preventDefault:!0},{linux:"Ctrl-Shift-z",run:kle,preventDefault:!0},{key:"Mod-u",run:Sle,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:_le,preventDefault:!0}],jle=({state:e,dispatch:t})=>(t(e.update(e.replaceSelection(e.lineBreak),{scrollIntoView:!0,userEvent:"input"})),!0);function Ble(e,t){let r=-1;return e.changeByRange((n=>{let a=[];for(let o=n.from;o<=n.to;){let i=e.doc.lineAt(o);i.number>r&&(n.empty||n.to>i.from)&&(t(i,a,n),r=i.number),o=i.to+1}let o=e.changes(a);return{changes:a,range:f6.range(o.mapPos(n.anchor,1),o.mapPos(n.head,1))}}))}const Ule={key:"Tab",run:({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Ble(e,((t,r)=>{r.push({from:t.from,insert:e.facet(Soe)})})),{userEvent:"input.indent"})),!0),shift:({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Ble(e,((t,r)=>{let n=/^\s*/.exec(t.text)[0];if(!n)return;let a=b7(n,e.tabSize),o=0,i=Eoe(e,Math.max(0,a-_oe(e)));for(;o<n.length&&o<i.length&&n.charCodeAt(o)==i.charCodeAt(o);)o++;r.push({from:t.from+o,to:t.from+n.length,insert:i.slice(o)})})),{userEvent:"delete.dedent"})),!0)};class Fle{constructor(e,t,r,n,a,o,i,s,l,c=0,u){this.p=e,this.stack=t,this.state=r,this.reducePos=n,this.pos=a,this.score=o,this.buffer=i,this.bufferBase=s,this.curContext=l,this.lookAhead=c,this.parent=u}toString(){return`[${this.stack.filter(((e,t)=>t%3==0)).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,r=0){let n=e.parser.context;return new Fle(e,[],t,r,r,0,[],0,n?new Qle(n,n.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let r=e>>19,n=65535&e,{parser:a}=this.p,o=this.reducePos<this.pos-25;o&&this.setLookAhead(this.pos);let i=a.dynamicPrecedence(n);if(i&&(this.score+=i),0==r)return this.pushState(a.getGoto(this.state,n,!0),this.reducePos),n<a.minRepeatTerm&&this.storeNode(n,this.reducePos,this.reducePos,o?8:4,!0),void this.reduceContext(n,this.reducePos);let s=this.stack.length-3*(r-1)-(262144&e?6:0),l=s?this.stack[s-2]:this.p.ranges[0].from,c=this.reducePos-l;c>=2e3&&!(null===(t=this.p.parser.nodeSet.types[n])||void 0===t?void 0:t.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=l,this.p.lastBigReductionSize=c));let u=s?this.stack[s-1]:0,d=this.bufferBase+this.buffer.length-u;if(n<a.minRepeatTerm||131072&e){let e=a.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(n,l,e,d+4,!0)}if(262144&e)this.state=this.stack[s];else{let e=this.stack[s-3];this.state=a.getGoto(e,n,!0)}for(;this.stack.length>s;)this.stack.pop();this.reduceContext(n,l)}storeNode(e,t,r,n=4,a=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let e=this,n=this.buffer.length;if(0==n&&e.parent&&(n=e.bufferBase-e.parent.bufferBase,e=e.parent),n>0&&0==e.buffer[n-4]&&e.buffer[n-1]>-1){if(t==r)return;if(e.buffer[n-2]>=t)return void(e.buffer[n-2]=r)}}if(a&&this.pos!=r){let a=this.buffer.length;if(a>0&&0!=this.buffer[a-4]){let e=!1;for(let t=a;t>0&&this.buffer[t-2]>r;t-=4)if(this.buffer[t-1]>=0){e=!0;break}if(e)for(;a>0&&this.buffer[a-2]>r;)this.buffer[a]=this.buffer[a-4],this.buffer[a+1]=this.buffer[a-3],this.buffer[a+2]=this.buffer[a-2],this.buffer[a+3]=this.buffer[a-1],a-=4,n>4&&(n-=4)}this.buffer[a]=e,this.buffer[a+1]=t,this.buffer[a+2]=r,this.buffer[a+3]=n}else this.buffer.push(e,t,r,n)}shift(e,t,r,n){if(131072&e)this.pushState(65535&e,this.pos);else if(262144&e)this.pos=n,this.shiftContext(t,r),t<=this.p.parser.maxNode&&this.buffer.push(t,r,n,4);else{let a=e,{parser:o}=this.p;(n>this.pos||t<=o.maxNode)&&(this.pos=n,o.stateFlag(a,1)||(this.reducePos=n)),this.pushState(a,r),this.shiftContext(t,r),t<=o.maxNode&&this.buffer.push(t,r,n,4)}}apply(e,t,r,n){65536&e?this.reduce(e):this.shift(e,t,r,n)}useNode(e,t){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=e)&&(this.p.reused.push(e),r++);let n=this.pos;this.reducePos=this.pos=n+e.length,this.pushState(t,n),this.buffer.push(r,n,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let r=e.buffer.slice(t),n=e.bufferBase+t;for(;e&&n==e.bufferBase;)e=e.parent;return new Fle(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,n,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let r=e<=this.p.parser.maxNode;r&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,r?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new zle(this);;){let r=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==r)return!1;if(!(65536&r))return!0;t.reduce(r)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let r=[];for(let n,a=0;a<t.length;a+=2)(n=t[a+1])!=this.state&&this.p.parser.hasAction(n,e)&&r.push(t[a],n);if(this.stack.length<120)for(let e=0;r.length<8&&e<t.length;e+=2){let n=t[e+1];r.some(((e,t)=>1&t&&e==n))||r.push(t[e],n)}t=r}let r=[];for(let e=0;e<t.length&&r.length<4;e+=2){let n=t[e+1];if(n==this.state)continue;let a=this.split();a.pushState(n,this.pos),a.storeNode(0,a.pos,a.pos,4,!0),a.shiftContext(t[e],this.pos),a.reducePos=this.pos,a.score-=200,r.push(a)}return r}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if(!(65536&t))return!1;if(!e.validAction(this.state,t)){let r=t>>19,n=65535&t,a=this.stack.length-3*r;if(a<0||e.getGoto(this.stack[a],n,!1)<0){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],r=(n,a)=>{if(!t.includes(n))return t.push(n),e.allActions(n,(t=>{if(393216&t);else if(65536&t){let r=(t>>19)-a;if(r>1){let n=65535&t,a=this.stack.length-3*r;if(a>=0&&e.getGoto(this.stack[a],n,!1)>=0)return r<<19|65536|n}}else{let e=r(t,a+1);if(null!=e)return e}}))};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||-3!=this.buffer[e])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||-4!=this.buffer[e])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new Qle(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Qle{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class zle{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=65535&e,r=e>>19;0==r?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(r-1);let n=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=n}}class qle{constructor(e,t,r){this.stack=e,this.pos=t,this.index=r,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new qle(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new qle(this.stack,this.pos,this.index)}}function Hle(e,t=Uint16Array){if("string"!=typeof e)return e;let r=null;for(let n=0,a=0;n<e.length;){let o=0;for(;;){let t=e.charCodeAt(n++),r=!1;if(126==t){o=65535;break}t>=92&&t--,t>=34&&t--;let a=t-32;if(a>=46&&(a-=46,r=!0),o+=a,r)break;o*=46}r?r[a++]=o:r=new t(o)}return r}class Vle{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Zle=new Vle;class Wle{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Zle,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let r=this.range,n=this.rangeIndex,a=this.pos+e;for(;a<r.from;){if(!n)return null;let e=this.ranges[--n];a-=r.from-e.to,r=e}for(;t<0?a>r.to:a>=r.to;){if(n==this.ranges.length-1)return null;let e=this.ranges[++n];a+=e.from-r.to,r=e}return a}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t,r,n=this.chunkOff+e;if(n>=0&&n<this.chunk.length)t=this.pos+e,r=this.chunk.charCodeAt(n);else{let n=this.resolveOffset(e,1);if(null==n)return-1;if(t=n,t>=this.chunk2Pos&&t<this.chunk2Pos+this.chunk2.length)r=this.chunk2.charCodeAt(t-this.chunk2Pos);else{let e=this.rangeIndex,n=this.range;for(;n.to<=t;)n=this.ranges[++e];this.chunk2=this.input.chunk(this.chunk2Pos=t),t+this.chunk2.length>n.to&&(this.chunk2=this.chunk2.slice(0,n.to-t)),r=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),r}acceptToken(e,t=0){let r=t?this.resolveOffset(t,-1):this.pos;if(null==r||r<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=r}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=Zle,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let r="";for(let n of this.ranges){if(n.from>=t)break;n.to>e&&(r+=this.input.read(Math.max(n.from,e),Math.min(n.to,t)))}return r}}class Xle{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:r}=t.p;Kle(this.data,e,t,this.id,r.data,r.tokenPrecTable)}}Xle.prototype.contextual=Xle.prototype.fallback=Xle.prototype.extend=!1;class Gle{constructor(e,t,r){this.precTable=t,this.elseToken=r,this.data="string"==typeof e?Hle(e):e}token(e,t){let r=e.pos,n=0;for(;;){let r=e.next<0,a=e.resolveOffset(1,1);if(Kle(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(null==this.elseToken)return;if(r||n++,null==a)break;e.reset(a,e.token)}n&&(e.reset(r,e.token),e.acceptToken(this.elseToken,n))}}Gle.prototype.contextual=Xle.prototype.fallback=Xle.prototype.extend=!1;class Yle{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function Kle(e,t,r,n,a,o){let i=0,s=1<<n,{dialect:l}=r.p.parser;e:for(;s&e[i];){let r=e[i+1];for(let n=i+3;n<r;n+=2)if((e[n+1]&s)>0){let r=e[n];if(l.allows(r)&&(-1==t.token.value||t.token.value==r||ece(r,t.token.value,a,o))){t.acceptToken(r);break}}let n=t.next,c=0,u=e[i+2];if(!(t.next<0&&u>c&&65535==e[r+3*u-3])){for(;c<u;){let a=c+u>>1,o=r+a+(a<<1),s=e[o],l=e[o+1]||65536;if(n<s)u=a;else{if(!(n>=l)){i=e[o+2],t.advance();continue e}c=a+1}}break}i=e[r+3*u-1]}}function Jle(e,t,r){for(let n,a=t;65535!=(n=e[a]);a++)if(n==r)return a-t;return-1}function ece(e,t,r,n){let a=Jle(r,n,t);return a<0||Jle(r,n,e)<a}const tce="undefined"!=typeof process&&process.env&&/\bparse\b/.test(process.env.LOG);let rce=null;function nce(e,t,r){let n=e.cursor(Gne.IncludeAnonymous);for(n.moveTo(t);;)if(!(r<0?n.childBefore(t):n.childAfter(t)))for(;;){if((r<0?n.to<t:n.from>t)&&!n.type.isError)return r<0?Math.max(0,Math.min(n.to-1,t-25)):Math.min(e.length,Math.max(n.from+1,t+25));if(r<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return r<0?0:e.length}}class ace{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?nce(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?nce(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let r=this.trees[t],n=this.index[t];if(n==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let a=r.children[n],o=this.start[t]+r.positions[n];if(o>e)return this.nextStart=o,null;if(a instanceof Kne){if(o==e){if(o<this.safeFrom)return null;let e=o+a.length;if(e<=this.safeTo){let t=a.prop(zne.lookAhead);if(!t||e+t<this.fragment.to)return a}}this.index[t]++,o+a.length>=Math.max(this.safeFrom,e)&&(this.trees.push(a),this.start.push(o),this.index.push(0))}else this.index[t]++,this.nextStart=o+a.length}}}class oce{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map((e=>new Vle))}getActions(e){let t=0,r=null,{parser:n}=e.p,{tokenizers:a}=n,o=n.stateSlot(e.state,3),i=e.curContext?e.curContext.hash:0,s=0;for(let n=0;n<a.length;n++){if(!(1<<n&o))continue;let l=a[n],c=this.tokens[n];if((!r||l.fallback)&&((l.contextual||c.start!=e.pos||c.mask!=o||c.context!=i)&&(this.updateCachedToken(c,l,e),c.mask=o,c.context=i),c.lookAhead>c.end+25&&(s=Math.max(c.lookAhead,s)),0!=c.value)){let n=t;if(c.extended>-1&&(t=this.addActions(e,c.extended,c.end,t)),t=this.addActions(e,c.value,c.end,t),!l.extend&&(r=c,t>n))break}}for(;this.actions.length>t;)this.actions.pop();return s&&e.setLookAhead(s),r||e.pos!=this.stream.end||(r=new Vle,r.value=e.p.parser.eofTerm,r.start=r.end=e.pos,t=this.addActions(e,r.value,r.end,t)),this.mainToken=r,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new Vle,{pos:r,p:n}=e;return t.start=r,t.end=Math.min(r+1,n.stream.end),t.value=r==n.stream.end?n.parser.eofTerm:0,t}updateCachedToken(e,t,r){let n=this.stream.clipPos(r.pos);if(t.token(this.stream.reset(n,e),r),e.value>-1){let{parser:t}=r.p;for(let n=0;n<t.specialized.length;n++)if(t.specialized[n]==e.value){let a=t.specializers[n](this.stream.read(e.start,e.end),r);if(a>=0&&r.p.parser.dialect.allows(a>>1)){1&a?e.extended=a>>1:e.value=a>>1;break}}}else e.value=0,e.end=this.stream.clipPos(n+1)}putAction(e,t,r,n){for(let t=0;t<n;t+=3)if(this.actions[t]==e)return n;return this.actions[n++]=e,this.actions[n++]=t,this.actions[n++]=r,n}addActions(e,t,r,n){let{state:a}=e,{parser:o}=e.p,{data:i}=o;for(let e=0;e<2;e++)for(let s=o.stateSlot(a,e?2:1);;s+=3){if(65535==i[s]){if(1!=i[s+1]){0==n&&2==i[s+1]&&(n=this.putAction(pce(i,s+2),t,r,n));break}s=pce(i,s+2)}i[s]==t&&(n=this.putAction(pce(i,s+1),t,r,n))}return n}}class ice{constructor(e,t,r,n){this.parser=e,this.input=t,this.ranges=n,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new Wle(t,n),this.tokens=new oce(e,this.stream),this.topTerm=e.top[1];let{from:a}=n[0];this.stacks=[Fle.start(this,e.top[0],a)],this.fragments=r.length&&this.stream.end-a>4*e.bufferLength?new ace(r,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,r=this.stacks,n=this.minStackPos,a=this.stacks=[];if(this.bigReductionCount>300&&1==r.length){let[e]=r;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<r.length;o++){let i=r[o];for(;;){if(this.tokens.mainToken=null,i.pos>n)a.push(i);else{if(this.advanceStack(i,a,r))continue;{e||(e=[],t=[]),e.push(i);let r=this.tokens.getMainToken(i);t.push(r.value,r.end)}}break}}if(!a.length){let t=e&&function(e){let t=null;for(let r of e){let e=r.p.stoppedAt;(r.pos==r.p.stream.end||null!=e&&r.pos>e)&&r.p.parser.stateFlag(r.state,2)&&(!t||t.score<r.score)&&(t=r)}return t}(e);if(t)return tce&&console.log("Finish with "+this.stackID(t)),this.stackToTree(t);if(this.parser.strict)throw tce&&e&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&e){let r=null!=this.stoppedAt&&e[0].pos>this.stoppedAt?e[0]:this.runRecovery(e,t,a);if(r)return tce&&console.log("Force-finish "+this.stackID(r)),this.stackToTree(r.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(a.length>e)for(a.sort(((e,t)=>t.score-e.score));a.length>e;)a.pop();a.some((e=>e.reducePos>n))&&this.recovering--}else if(a.length>1){e:for(let e=0;e<a.length-1;e++){let t=a[e];for(let r=e+1;r<a.length;r++){let n=a[r];if(t.sameState(n)||t.buffer.length>500&&n.buffer.length>500){if(!((t.score-n.score||t.buffer.length-n.buffer.length)>0)){a.splice(e--,1);continue e}a.splice(r--,1)}}}a.length>12&&a.splice(12,a.length-12)}this.minStackPos=a[0].pos;for(let e=1;e<a.length;e++)a[e].pos<this.minStackPos&&(this.minStackPos=a[e].pos);return null}stopAt(e){if(null!=this.stoppedAt&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,r){let n=e.pos,{parser:a}=this,o=tce?this.stackID(e)+" -> ":"";if(null!=this.stoppedAt&&n>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,r=t?e.curContext.hash:0;for(let i=this.fragments.nodeAt(n);i;){let n=this.parser.nodeSet.types[i.type.id]==i.type?a.getGoto(e.state,i.type.id):-1;if(n>-1&&i.length&&(!t||(i.prop(zne.contextHash)||0)==r))return e.useNode(i,n),tce&&console.log(o+this.stackID(e)+` (via reuse of ${a.getName(i.type.id)})`),!0;if(!(i instanceof Kne)||0==i.children.length||i.positions[0]>0)break;let s=i.children[0];if(!(s instanceof Kne&&0==i.positions[0]))break;i=s}}let i=a.stateSlot(e.state,4);if(i>0)return e.reduce(i),tce&&console.log(o+this.stackID(e)+` (via always-reduce ${a.getName(65535&i)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let s=this.tokens.getActions(e);for(let i=0;i<s.length;){let l=s[i++],c=s[i++],u=s[i++],d=i==s.length||!r,p=d?e:e.split(),h=this.tokens.mainToken;if(p.apply(l,c,h?h.start:p.pos,u),tce&&console.log(o+this.stackID(p)+` (via ${65536&l?`reduce of ${a.getName(65535&l)}`:"shift"} for ${a.getName(c)} @ ${n}${p==e?"":", split"})`),d)return!0;p.pos>n?t.push(p):r.push(p)}return!1}advanceFully(e,t){let r=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>r)return sce(e,t),!0}}runRecovery(e,t,r){let n=null,a=!1;for(let o=0;o<e.length;o++){let i=e[o],s=t[o<<1],l=t[1+(o<<1)],c=tce?this.stackID(i)+" -> ":"";if(i.deadEnd){if(a)continue;if(a=!0,i.restart(),tce&&console.log(c+this.stackID(i)+" (restarted)"),this.advanceFully(i,r))continue}let u=i.split(),d=c;for(let e=0;u.forceReduce()&&e<10&&(tce&&console.log(d+this.stackID(u)+" (via force-reduce)"),!this.advanceFully(u,r));e++)tce&&(d=this.stackID(u)+" -> ");for(let e of i.recoverByInsert(s))tce&&console.log(c+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,r);this.stream.end>i.pos?(l==i.pos&&(l++,s=0),i.recoverByDelete(s,l),tce&&console.log(c+this.stackID(i)+` (via recover-delete ${this.parser.getName(s)})`),sce(i,r)):(!n||n.score<i.score)&&(n=i)}return n}stackToTree(e){return e.close(),Kne.build({buffer:qle.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(rce||(rce=new WeakMap)).get(e);return t||rce.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function sce(e,t){for(let r=0;r<t.length;r++){let n=t[r];if(n.pos==e.pos&&n.sameState(e))return void(t[r].score<e.score&&(t[r]=e))}t.push(e)}class lce{constructor(e,t,r){this.source=e,this.flags=t,this.disabled=r}allows(e){return!this.disabled||0==this.disabled[e]}}const cce=e=>e;class uce{constructor(e){this.start=e.start,this.shift=e.shift||cce,this.reduce=e.reduce||cce,this.reuse=e.reuse||cce,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}}class dce extends bae{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let r=0;r<e.repeatNodeCount;r++)t.push("");let r=Object.keys(e.topRules).map((t=>e.topRules[t][1])),n=[];for(let e=0;e<t.length;e++)n.push([]);function a(e,t,r){n[e].push([t,t.deserialize(String(r))])}if(e.nodeProps)for(let t of e.nodeProps){let e=t[0];"string"==typeof e&&(e=zne[e]);for(let r=1;r<t.length;){let n=t[r++];if(n>=0)a(n,e,t[r++]);else{let o=t[r+-n];for(let i=-n;i>0;i--)a(t[r++],e,o);r++}}}this.nodeSet=new Zne(t.map(((t,a)=>Vne.define({name:a>=this.minRepeatTerm?void 0:t,id:a,props:n[a],top:r.indexOf(a)>-1,error:0==a,skipped:e.skippedNodes&&e.skippedNodes.indexOf(a)>-1})))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=Une;let o=Hle(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e<this.specializerSpecs.length;e++)this.specialized[e]=this.specializerSpecs[e].term;this.specializers=this.specializerSpecs.map(hce),this.states=Hle(e.states,Uint32Array),this.data=Hle(e.stateData),this.goto=Hle(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map((e=>"number"==typeof e?new Xle(o,e):e)),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,r){let n=new ice(this,e,t,r);for(let a of this.wrappers)n=a(n,e,t,r);return n}getGoto(e,t,r=!1){let n=this.goto;if(t>=n[0])return-1;for(let a=n[t+1];;){let t=n[a++],o=1&t,i=n[a++];if(o&&r)return i;for(let r=a+(t>>1);a<r;a++)if(n[a]==e)return i;if(o)return-1}}hasAction(e,t){let r=this.data;for(let n=0;n<2;n++)for(let a,o=this.stateSlot(e,n?2:1);;o+=3){if(65535==(a=r[o])){if(1!=r[o+1]){if(2==r[o+1])return pce(r,o+2);break}a=r[o=pce(r,o+2)]}if(a==t||0==a)return pce(r,o+1)}return 0}stateSlot(e,t){return this.states[6*e+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,(e=>e==t||null))}allActions(e,t){let r=this.stateSlot(e,4),n=r?t(r):void 0;for(let r=this.stateSlot(e,1);null==n;r+=3){if(65535==this.data[r]){if(1!=this.data[r+1])break;r=pce(this.data,r+2)}n=t(pce(this.data,r+1))}return n}nextStates(e){let t=[];for(let r=this.stateSlot(e,1);;r+=3){if(65535==this.data[r]){if(1!=this.data[r+1])break;r=pce(this.data,r+2)}if(!(1&this.data[r+2])){let e=this.data[r+1];t.some(((t,r)=>1&r&&t==e))||t.push(this.data[r],e)}}return t}configure(e){let t=Object.assign(Object.create(dce.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let r=this.topRules[e.top];if(!r)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=r}return e.tokenizers&&(t.tokenizers=this.tokenizers.map((t=>{let r=e.tokenizers.find((e=>e.from==t));return r?r.to:t}))),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map(((r,n)=>{let a=e.specializers.find((e=>e.from==r.external));if(!a)return r;let o=Object.assign(Object.assign({},r),{external:a.to});return t.specializers[n]=hce(o),o}))),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),r=t.map((()=>!1));if(e)for(let n of e.split(" ")){let e=t.indexOf(n);e>=0&&(r[e]=!0)}let n=null;for(let e=0;e<t.length;e++)if(!r[e])for(let r,a=this.dialects[t[e]];65535!=(r=this.data[a++]);)(n||(n=new Uint8Array(this.maxTerm+1)))[r]=1;return new lce(e,r,n)}static deserialize(e){return new dce(e)}}function pce(e,t){return e[t]|e[t+1]<<16}function hce(e){if(e.external){let t=e.extend?1:0;return(r,n)=>e.external(r,n)<<1|t}return e.get}const fce=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function mce(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function gce(e){return e>=48&&e<=57}const vce=new Yle(((e,t)=>{for(let r=!1,n=0,a=0;;a++){let{next:o}=e;if(mce(o)||45==o||95==o||r&&gce(o))!r&&(45!=o||a>0)&&(r=!0),n===a&&45==o&&n++,e.advance();else{if(92!=o||10==e.peek(1)){r&&e.acceptToken(40==o?100:2==n&&t.canShift(2)?2:101);break}e.advance(),e.next>-1&&e.advance(),r=!0}}})),bce=new Yle((e=>{if(fce.includes(e.peek(-1))){let{next:t}=e;(mce(t)||95==t||35==t||46==t||91==t||58==t&&mce(e.peek(1))||45==t||38==t)&&e.acceptToken(99)}})),yce=new Yle((e=>{if(!fce.includes(e.peek(-1))){let{next:t}=e;if(37==t&&(e.advance(),e.acceptToken(1)),mce(t)){do{e.advance()}while(mce(e.next)||gce(e.next));e.acceptToken(1)}}})),Oce=Lae({"AtKeyword import charset namespace keyframes media supports":aoe.definitionKeyword,"from to selector":aoe.keyword,NamespaceName:aoe.namespace,KeyframeName:aoe.labelName,KeyframeRangeName:aoe.operatorKeyword,TagName:aoe.tagName,ClassName:aoe.className,PseudoClassName:aoe.constant(aoe.className),IdName:aoe.labelName,"FeatureName PropertyName":aoe.propertyName,AttributeName:aoe.attributeName,NumberLiteral:aoe.number,KeywordQuery:aoe.keyword,UnaryQueryOp:aoe.operatorKeyword,"CallTag ValueName":aoe.atom,VariableName:aoe.variableName,Callee:aoe.operatorKeyword,Unit:aoe.unit,"UniversalSelector NestingSelector":aoe.definitionOperator,MatchOp:aoe.compareOperator,"ChildOp SiblingOp, LogicOp":aoe.logicOperator,BinOp:aoe.arithmeticOperator,Important:aoe.modifier,Comment:aoe.blockComment,ColorLiteral:aoe.color,"ParenthesizedContent StringLiteral":aoe.string,":":aoe.punctuation,"PseudoOp #":aoe.derefOperator,"; ,":aoe.separator,"( )":aoe.paren,"[ ]":aoe.squareBracket,"{ }":aoe.brace}),wce={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:138},xce={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},kce={__proto__:null,not:132,only:132},Sce=dce.deserialize({version:14,states:":^QYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DTO$vQ[O'#DWOOQP'#Em'#EmO${QdO'#DgO%jQ[O'#DtO${QdO'#DvO%{Q[O'#DxO&WQ[O'#D{O&`Q[O'#ERO&nQ[O'#ETOOQS'#El'#ElOOQS'#EW'#EWQYQ[OOO&uQXO'#CdO'jQWO'#DcO'oQWO'#EsO'zQ[O'#EsQOQWOOP(UO#tO'#C_POOO)C@[)C@[OOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(aQ[O'#E[O({QWO,58{O)TQ[O,59SO$qQ[O,59oO$vQ[O,59rO(aQ[O,59uO(aQ[O,59wO(aQ[O,59xO)`Q[O'#DbOOQS,58{,58{OOQP'#Ck'#CkOOQO'#DR'#DROOQP,59S,59SO)gQWO,59SO)lQWO,59SOOQP'#DV'#DVOOQP,59o,59oOOQO'#DX'#DXO)qQ`O,59rOOQS'#Cp'#CpO${QdO'#CqO)yQvO'#CsO+ZQtO,5:ROOQO'#Cx'#CxO)lQWO'#CwO+oQWO'#CyO+tQ[O'#DOOOQS'#Ep'#EpOOQO'#Dj'#DjO+|Q[O'#DqO,[QWO'#EtO&`Q[O'#DoO,jQWO'#DrOOQO'#Eu'#EuO)OQWO,5:`O,oQpO,5:bOOQS'#Dz'#DzO,wQWO,5:dO,|Q[O,5:dOOQO'#D}'#D}O-UQWO,5:gO-ZQWO,5:mO-cQWO,5:oOOQS-E8U-E8UO${QdO,59}O-kQ[O'#E^O-xQWO,5;_O-xQWO,5;_POOO'#EV'#EVP.TO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.zQXO,5:vOOQO-E8Y-E8YOOQS1G.g1G.gOOQP1G.n1G.nO)gQWO1G.nO)lQWO1G.nOOQP1G/Z1G/ZO/XQ`O1G/^O/rQXO1G/aO0YQXO1G/cO0pQXO1G/dO1WQWO,59|O1]Q[O'#DSO1dQdO'#CoOOQP1G/^1G/^O${QdO1G/^O1kQpO,59]OOQS,59_,59_O${QdO,59aO1sQWO1G/mOOQS,59c,59cO1xQ!bO,59eOOQS'#DP'#DPOOQS'#EY'#EYO2QQ[O,59jOOQS,59j,59jO2YQWO'#DjO2eQWO,5:VO2jQWO,5:]O&`Q[O,5:XO&`Q[O'#E_O2rQWO,5;`O2}QWO,5:ZO(aQ[O,5:^OOQS1G/z1G/zOOQS1G/|1G/|OOQS1G0O1G0OO3`QWO1G0OO3eQdO'#EOOOQS1G0R1G0ROOQS1G0X1G0XOOQS1G0Z1G0ZO3pQtO1G/iOOQO,5:x,5:xO4WQ[O,5:xOOQO-E8[-E8[O4eQWO1G0yPOOO-E8T-E8TPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$x7+$xO${QdO7+$xOOQS1G/h1G/hO4pQXO'#ErO4wQWO,59nO4|QtO'#EXO5tQdO'#EoO6OQWO,59ZO6TQpO7+$xOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%X7+%XO6]QWO1G/POOQS-E8W-E8WOOQS1G/U1G/UO${QdO1G/qOOQO1G/w1G/wOOQO1G/s1G/sO6bQWO,5:yOOQO-E8]-E8]O6pQXO1G/xOOQS7+%j7+%jO6wQYO'#CsOOQO'#EQ'#EQO7SQ`O'#EPOOQO'#EP'#EPO7_QWO'#E`O7gQdO,5:jOOQS,5:j,5:jO7rQtO'#E]O${QdO'#E]O8sQdO7+%TOOQO7+%T7+%TOOQO1G0d1G0dO9WQpO<<HdO9`QWO,5;^OOQP1G/Y1G/YOOQS-E8V-E8VO${QdO'#EZO9hQWO,5;ZOOQT1G.u1G.uOOQP<<Hd<<HdOOQS7+$k7+$kO9pQdO7+%]OOQO7+%d7+%dOOQO,5:k,5:kO3hQdO'#EaO7_QWO,5:zOOQS,5:z,5:zOOQS-E8^-E8^OOQS1G0U1G0UO9wQtO,5:wOOQS-E8Z-E8ZOOQO<<Ho<<HoOOQPAN>OAN>OO:xQdO,5:uOOQO-E8X-E8XOOQO<<Hw<<HwOOQO,5:{,5:{OOQO-E8_-E8_OOQS1G0f1G0f",stateData:";[~O#ZOS#[QQ~OUYOXYO]VO^VOqXOxWO![aO!]ZO!i[O!k]O!m^O!p_O!v`O#XRO#bTO~OQfOUYOXYO]VO^VOqXOxWO![aO!]ZO!i[O!k]O!m^O!p_O!v`O#XeO#bTO~O#U#gP~P!ZO#[jO~O#XlO~O]qO^qOqsOtoOxrO!OtO!RvO#VuO#bnO~O!TwO~P#pO`}O#WzO#XyO~O#X!OO~O#X!QO~OQ![Ob!TOf![Oh![On!YOq!ZO#W!WO#X!SO#e!UO~Ob!^O!d!`O!g!aO#X!]O!T#hP~Oh!fOn!YO#X!eO~Oh!hO#X!hO~Ob!^O!d!`O!g!aO#X!]O~O!Y#hP~P%jO]WX]!WX^WXqWXtWXxWX!OWX!RWX!TWX#VWX#bWX~O]!mO~O!Y!nO#U#gX!S#gX~O#U#gX!S#gX~P!ZO#]!qO#^!qO#_!sO~OUYOXYO]VO^VOqXOxWO#XRO#bTO~OtoO!TwO~O`!zO#WzO#XyO~O!S#gP~P!ZOb#RO~Ob#SO~Op#TO|#UO~OP#WObgXjgX!YgX!dgX!ggX#XgXagXQgXfgXhgXngXqgXtgX!XgX#UgX#WgX#egXpgX!SgX~Ob!^Oj#XO!d!`O!g!aO#X!]O!Y#hP~Ob#[O~Op#`O#X#]O~Ob!^O!d!`O!g!aO#X#aO~Ot#eO!b#dO!T#hX!Y#hX~Ob#hO~Oj#XO!Y#jO~O!Y#kO~Oh#lOn!YO~O!T#mO~O!TwO!b#dO~O!TwO!Y#pO~O!Y#QX#U#QX!S#QX~P!ZO!Y!nO#U#ga!S#ga~O#]!qO#^!qO#_#wO~O]qO^qOqsOxrO!OtO!RvO#VuO#bnO~Ot#Oa!T#Oaa#Oa~P.`Op#yO|#zO~O]qO^qOqsOxrO#bnO~Ot}i!O}i!R}i!T}i#V}ia}i~P/aOt!Pi!O!Pi!R!Pi!T!Pi#V!Pia!Pi~P/aOt!Qi!O!Qi!R!Qi!T!Qi#V!Qia!Qi~P/aO!S#{O~Oa#fP~P(aOa#cP~P${Oa$SOj#XO~O!Y$UO~Oh$VOo$VO~Op$XO#X#]O~O]!`Xa!^X!b!^X~O]$YO~Oa$ZO!b#dO~Ot#eO!T#ha!Y#ha~O!b#dOt!ca!T!ca!Y!caa!ca~O!Y$`O~O!S$gO#X$bO#e$aO~Oj#XOt$iO!X$kO!Y!Vi#U!Vi!S!Vi~P${O!Y#Qa#U#Qa!S#Qa~P!ZO!Y!nO#U#gi!S#gi~Oa#fX~P#pOa$oO~Oj#XOQ!{Xa!{Xb!{Xf!{Xh!{Xn!{Xq!{Xt!{X#W!{X#X!{X#e!{X~Ot$qOa#cX~P${Oa$sO~Oj#XOp$tO~Oa$uO~O!b#dOt#Ra!T#Ra!Y#Ra~Oa$wO~P.`OP#WOtgX!TgX~O#e$aOt!sX!T!sX~Ot$yO!TwO~O!S$}O#X$bO#e$aO~Oj#XOQ#PXb#PXf#PXh#PXn#PXq#PXt#PX!X#PX!Y#PX#U#PX#W#PX#X#PX#e#PX!S#PX~Ot$iO!X%QO!Y!Vq#U!Vq!S!Vq~P${Oj#XOp%RO~OtoOa#fa~Ot$qOa#ca~Oa%UO~P${Oj#XOQ#Pab#Paf#Pah#Pan#Paq#Pat#Pa!X#Pa!Y#Pa#U#Pa#W#Pa#X#Pa#e#Pa!S#Pa~Oa!}at!}a~P${O#Zo#[#ej!R#e~",goto:"-g#jPPP#kP#nP#w$WP#w$g#wPP$mPPP$s$|$|P%`P$|P$|%z&^PPPP$|&vP&z'Q#wP'W#w'^P#wP#w#wPPP'd'y(WPP#nPP(_(_(i(_P(_P(_(_P#nP#nP#nP(l#nP(o(r(u(|#nP#nP)R)X)h)v)|*S*^*d*n*t*zPPPPPPPPPP+Q+ZP+v+yP,o,r,x-RRkQ_bOPdhw!n#skYOPdhotuvw!n#R#h#skSOPdhotuvw!n#R#h#sQmTR!tnQ{VR!xqQ!x}Q#Z!XR#x!zq![Z]!T!m#S#U#X#q#z$P$Y$i$j$q$v%Sp![Z]!T!m#S#U#X#q#z$P$Y$i$j$q$v%SU$d#m$f$yR$x$cq!XZ]!T!m#S#U#X#q#z$P$Y$i$j$q$v%Sp![Z]!T!m#S#U#X#q#z$P$Y$i$j$q$v%SQ!f^R#l!gT#^!Z#_Q|VR!yqQ!x|R#x!yQ!PWR!{rQ!RXR!|sQxUQ!wpQ#i!cQ#o!jQ#p!kQ${$eR%X$zSgPwQ!phQ#r!nR$l#sZfPhw!n#sa!b[`a!V!^!`#d#eR#b!^R!g^R!i_R#n!iS$e#m$fR%V$yV$c#m$f$yQ!rjR#v!rQdOShPwU!ldh#sR#s!nQ$P#SU$p$P$v%SQ$v$YR%S$qQ#_!ZR$W#_Q$r$PR%T$rQpUS!vp$nR$n#|Q$j#qR%P$jQ!ogS#t!o#uR#u!pQ#f!_R$^#fQ$f#mR$|$fQ$z$eR%W$z_cOPdhw!n#s^UOPdhw!n#sQ!uoQ!}tQ#OuQ#PvQ#|#RR$_#hR$Q#SQ!VZQ!d]Q#V!TQ#q!m[$O#S$P$Y$q$v%SQ$R#UQ$T#XS$h#q$jQ$m#zR%O$iR#}#RQiPR#QwQ!c[Q!kaR#Y!VU!_[a!VQ!j`Q#c!^Q#g!`Q$[#dR$]#e",nodeNames:"⚠ Unit VariableName Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector ClassSelector ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee CallLiteral CallTag ParenthesizedContent ] [ LineNames LineName , PseudoClassName ArgList IdSelector # IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp } { Block Declaration PropertyName Important ; ImportStatement AtKeyword import KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports AtRule Styles",maxTerm:117,nodeProps:[["isolate",-2,3,24,""],["openedBy",17,"(",32,"[",50,"{"],["closedBy",18,")",33,"]",51,"}"]],propSources:[Oce],skippedNodes:[0,3,87],repeatNodeCount:11,tokenData:"J^~R!^OX$}X^%u^p$}pq%uqr)Xrs.Rst/utu6duv$}vw7^wx7oxy9^yz9oz{9t{|:_|}?Q}!O?c!O!P@Q!P!Q@i!Q![Ab![!]B]!]!^CX!^!_$}!_!`Cj!`!aC{!a!b$}!b!cDw!c!}$}!}#OFa#O#P$}#P#QFr#Q#R6d#R#T$}#T#UGT#U#c$}#c#dHf#d#o$}#o#pH{#p#q6d#q#rI^#r#sIo#s#y$}#y#z%u#z$f$}$f$g%u$g#BY$}#BY#BZ%u#BZ$IS$}$IS$I_%u$I_$I|$}$I|$JO%u$JO$JT$}$JT$JU%u$JU$KV$}$KV$KW%u$KW&FU$}&FU&FV%u&FV;'S$};'S;=`JW<%lO$}`%QSOy%^z;'S%^;'S;=`%o<%lO%^`%cSo`Oy%^z;'S%^;'S;=`%o<%lO%^`%rP;=`<%l%^~%zh#Z~OX%^X^'f^p%^pq'fqy%^z#y%^#y#z'f#z$f%^$f$g'f$g#BY%^#BY#BZ'f#BZ$IS%^$IS$I_'f$I_$I|%^$I|$JO'f$JO$JT%^$JT$JU'f$JU$KV%^$KV$KW'f$KW&FU%^&FU&FV'f&FV;'S%^;'S;=`%o<%lO%^~'mh#Z~o`OX%^X^'f^p%^pq'fqy%^z#y%^#y#z'f#z$f%^$f$g'f$g#BY%^#BY#BZ'f#BZ$IS%^$IS$I_'f$I_$I|%^$I|$JO'f$JO$JT%^$JT$JU'f$JU$KV%^$KV$KW'f$KW&FU%^&FU&FV'f&FV;'S%^;'S;=`%o<%lO%^l)[UOy%^z#]%^#]#^)n#^;'S%^;'S;=`%o<%lO%^l)sUo`Oy%^z#a%^#a#b*V#b;'S%^;'S;=`%o<%lO%^l*[Uo`Oy%^z#d%^#d#e*n#e;'S%^;'S;=`%o<%lO%^l*sUo`Oy%^z#c%^#c#d+V#d;'S%^;'S;=`%o<%lO%^l+[Uo`Oy%^z#f%^#f#g+n#g;'S%^;'S;=`%o<%lO%^l+sUo`Oy%^z#h%^#h#i,V#i;'S%^;'S;=`%o<%lO%^l,[Uo`Oy%^z#T%^#T#U,n#U;'S%^;'S;=`%o<%lO%^l,sUo`Oy%^z#b%^#b#c-V#c;'S%^;'S;=`%o<%lO%^l-[Uo`Oy%^z#h%^#h#i-n#i;'S%^;'S;=`%o<%lO%^l-uS!X[o`Oy%^z;'S%^;'S;=`%o<%lO%^~.UWOY.RZr.Rrs.ns#O.R#O#P.s#P;'S.R;'S;=`/o<%lO.R~.sOh~~.vRO;'S.R;'S;=`/P;=`O.R~/SXOY.RZr.Rrs.ns#O.R#O#P.s#P;'S.R;'S;=`/o;=`<%l.R<%lO.R~/rP;=`<%l.Rn/zYxQOy%^z!Q%^!Q![0j![!c%^!c!i0j!i#T%^#T#Z0j#Z;'S%^;'S;=`%o<%lO%^l0oYo`Oy%^z!Q%^!Q![1_![!c%^!c!i1_!i#T%^#T#Z1_#Z;'S%^;'S;=`%o<%lO%^l1dYo`Oy%^z!Q%^!Q![2S![!c%^!c!i2S!i#T%^#T#Z2S#Z;'S%^;'S;=`%o<%lO%^l2ZYf[o`Oy%^z!Q%^!Q![2y![!c%^!c!i2y!i#T%^#T#Z2y#Z;'S%^;'S;=`%o<%lO%^l3QYf[o`Oy%^z!Q%^!Q![3p![!c%^!c!i3p!i#T%^#T#Z3p#Z;'S%^;'S;=`%o<%lO%^l3uYo`Oy%^z!Q%^!Q![4e![!c%^!c!i4e!i#T%^#T#Z4e#Z;'S%^;'S;=`%o<%lO%^l4lYf[o`Oy%^z!Q%^!Q![5[![!c%^!c!i5[!i#T%^#T#Z5[#Z;'S%^;'S;=`%o<%lO%^l5aYo`Oy%^z!Q%^!Q![6P![!c%^!c!i6P!i#T%^#T#Z6P#Z;'S%^;'S;=`%o<%lO%^l6WSf[o`Oy%^z;'S%^;'S;=`%o<%lO%^d6gUOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^d7QS|So`Oy%^z;'S%^;'S;=`%o<%lO%^b7cSXQOy%^z;'S%^;'S;=`%o<%lO%^~7rWOY7oZw7owx.nx#O7o#O#P8[#P;'S7o;'S;=`9W<%lO7o~8_RO;'S7o;'S;=`8h;=`O7o~8kXOY7oZw7owx.nx#O7o#O#P8[#P;'S7o;'S;=`9W;=`<%l7o<%lO7o~9ZP;=`<%l7on9cSb^Oy%^z;'S%^;'S;=`%o<%lO%^~9tOa~n9{UUQjWOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^n:fWjW!RQOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#e[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l<cYo`Oy%^z{%^{|=R|}%^}!O=R!O!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^l=WUo`Oy%^z!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^l=qUo`#e[Oy%^z!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^l>[[o`#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSt^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#bQOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#[~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!Y^Oy%^z;'S%^;'S;=`%o<%lO%^dCoS|SOy%^z;'S%^;'S;=`%o<%lO%^bDQU!OQOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS!OQo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[![Qo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^nFfSq^Oy%^z;'S%^;'S;=`%o<%lO%^nFwSp^Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!bQo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!TUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!S^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!RQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[bce,yce,vce,1,2,3,4,new Gle("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>wce[e]||-1},{term:58,get:e=>xce[e]||-1},{term:101,get:e=>kce[e]||-1}],tokenPrec:1200});let _ce=null;function Ece(){if(!_ce&&"object"==typeof document&&document.body){let{style:e}=document.body,t=[],r=new Set;for(let n in e)"cssText"!=n&&"cssFloat"!=n&&"string"==typeof e[n]&&(/[A-Z]/.test(n)&&(n=n.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))),r.has(n)||(t.push(n),r.add(n)));_ce=t.sort().map((e=>({type:"property",label:e,apply:e+": "})))}return _ce||[]}const Tce=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map((e=>({type:"class",label:e}))),Ace=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map((e=>({type:"keyword",label:e}))).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map((e=>({type:"constant",label:e})))),Cce=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map((e=>({type:"type",label:e}))),Pce=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map((e=>({type:"keyword",label:e}))),Dce=/^(\w[\w-]*|-\w[\w-]*|)$/,$ce=/^-(-[\w-]*)?$/,Rce=new gae,Mce=["Declaration"];function Nce(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function Ice(e,t,r){if(t.to-t.from>4096){let n=Rce.get(t);if(n)return n;let a=[],o=new Set,i=t.cursor(Gne.IncludeAnonymous);if(i.firstChild())do{for(let t of Ice(e,i.node,r))o.has(t.label)||(o.add(t.label),a.push(t))}while(i.nextSibling());return Rce.set(t,a),a}{let n=[],a=new Set;return t.cursor().iterate((t=>{var o;if(r(t)&&t.matchContext(Mce)&&":"==(null===(o=t.node.nextSibling)||void 0===o?void 0:o.name)){let r=e.sliceString(t.from,t.to);a.has(r)||(a.add(r),n.push({label:r,type:"variable"}))}})),n}}const Lce=(e=>t=>{let{state:r,pos:n}=t,a=poe(r).resolveInner(n,-1),o=a.type.isError&&a.from==a.to-1&&"-"==r.doc.sliceString(a.from,a.to);if("PropertyName"==a.name||(o||"TagName"==a.name)&&/^(Block|Styles)$/.test(a.resolve(a.to).name))return{from:a.from,options:Ece(),validFor:Dce};if("ValueName"==a.name)return{from:a.from,options:Ace,validFor:Dce};if("PseudoClassName"==a.name)return{from:a.from,options:Tce,validFor:Dce};if(e(a)||(t.explicit||o)&&function(e,t){var r;if(("("==e.name||e.type.isError)&&(e=e.parent||e),"ArgList"!=e.name)return!1;let n=null===(r=e.parent)||void 0===r?void 0:r.firstChild;return"Callee"==(null==n?void 0:n.name)&&"var"==t.sliceString(n.from,n.to)}(a,r.doc))return{from:e(a)||o?a.from:n,options:Ice(r.doc,Nce(a),e),validFor:$ce};if("TagName"==a.name){for(let{parent:e}=a;e;e=e.parent)if("Block"==e.name)return{from:a.from,options:Ece(),validFor:Dce};return{from:a.from,options:Cce,validFor:Dce}}if("AtKeyword"==a.name)return{from:a.from,options:Pce,validFor:Dce};if(!t.explicit)return null;let i=a.resolve(n),s=i.childBefore(n);return s&&":"==s.name&&"PseudoClassSelector"==i.name?{from:n,options:Tce,validFor:Dce}:s&&":"==s.name&&"Declaration"==i.name||"ArgList"==i.name?{from:n,options:Ace,validFor:Dce}:"Block"==i.name||"Styles"==i.name?{from:n,options:Ece(),validFor:Dce}:null})((e=>"VariableName"==e.name)),jce=doe.define({name:"css",parser:Sce.configure({props:[Coe.add({Declaration:Loe()}),Boe.add({"Block KeyframeList":Uoe})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function Bce(){return new xoe(jce,jce.data.of({autocomplete:Lce}))}const Uce={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},Fce={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Qce={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function zce(e){return 9==e||10==e||13==e||32==e}let qce=null,Hce=null,Vce=0;function Zce(e,t){let r=e.pos+t;if(Vce==r&&Hce==e)return qce;let n=e.peek(t);for(;zce(n);)n=e.peek(++t);let a="";for(;45==(o=n)||46==o||58==o||o>=65&&o<=90||95==o||o>=97&&o<=122||o>=161;)a+=String.fromCharCode(n),n=e.peek(++t);var o;return Hce=e,Vce=r,qce=a?a.toLowerCase():n==Wce||n==Xce?void 0:null}const Wce=63,Xce=33;function Gce(e,t){this.name=e,this.parent=t}const Yce=[6,10,7,8,9],Kce=new uce({start:null,shift:(e,t,r,n)=>Yce.indexOf(t)>-1?new Gce(Zce(n,1)||"",e):e,reduce:(e,t)=>20==t&&e?e.parent:e,reuse(e,t,r,n){let a=t.type.id;return 6==a||36==a?new Gce(Zce(n,1)||"",e):e},strict:!1}),Jce=new Yle(((e,t)=>{if(60!=e.next)return void(e.next<0&&t.context&&e.acceptToken(57));e.advance();let r=47==e.next;r&&e.advance();let n=Zce(e,0);if(void 0===n)return;if(!n)return e.acceptToken(r?14:6);let a=t.context?t.context.name:null;if(r){if(n==a)return e.acceptToken(11);if(a&&Fce[a])return e.acceptToken(57,-2);if(t.dialectEnabled(0))return e.acceptToken(12);for(let e=t.context;e;e=e.parent)if(e.name==n)return;e.acceptToken(13)}else{if("script"==n)return e.acceptToken(7);if("style"==n)return e.acceptToken(8);if("textarea"==n)return e.acceptToken(9);if(Uce.hasOwnProperty(n))return e.acceptToken(10);a&&Qce[a]&&Qce[a][n]?e.acceptToken(57,-1):e.acceptToken(6)}}),{contextual:!0}),eue=new Yle((e=>{for(let t=0,r=0;;r++){if(e.next<0){r&&e.acceptToken(58);break}if(45==e.next)t++;else{if(62==e.next&&t>=2){r>=3&&e.acceptToken(58,-2);break}t=0}e.advance()}})),tue=new Yle(((e,t)=>{if(47==e.next&&62==e.peek(1)){let r=t.dialectEnabled(1)||function(e){for(;e;e=e.parent)if("svg"==e.name||"math"==e.name)return!0;return!1}(t.context);e.acceptToken(r?5:4,2)}else 62==e.next&&e.acceptToken(4,1)}));function rue(e,t,r){let n=2+e.length;return new Yle((a=>{for(let o=0,i=0,s=0;;s++){if(a.next<0){s&&a.acceptToken(t);break}if(0==o&&60==a.next||1==o&&47==a.next||o>=2&&o<n&&a.next==e.charCodeAt(o-2))o++,i++;else if(2!=o&&o!=n||!zce(a.next)){if(o==n&&62==a.next){s>i?a.acceptToken(t,-i):a.acceptToken(r,-(i-2));break}if((10==a.next||13==a.next)&&s){a.acceptToken(t,1);break}o=i=0}else i++;a.advance()}}))}const nue=rue("script",54,1),aue=rue("style",55,2),oue=rue("textarea",56,3),iue=Lae({"Text RawText":aoe.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":aoe.angleBracket,TagName:aoe.tagName,"MismatchedCloseTag/TagName":[aoe.tagName,aoe.invalid],AttributeName:aoe.attributeName,"AttributeValue UnquotedAttributeValue":aoe.attributeValue,Is:aoe.definitionOperator,"EntityReference CharacterReference":aoe.character,Comment:aoe.blockComment,ProcessingInst:aoe.processingInstruction,DoctypeDecl:aoe.documentMeta}),sue=dce.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%ZQ&rO,59fO%fQ&rO,59iO%qQ&rO,59lO%|Q&rO,59nOOOa'#D^'#D^O&XOaO'#CxO&dOaO,59[OOOb'#D_'#D_O&lObO'#C{O&wObO,59[OOOd'#D`'#D`O'POdO'#DOO'[OdO,59[OOO`'#Da'#DaO'dO!rO,59[O'kQ#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'pO$fO,59oOOO`,59o,59oO'xQ#|O,59qO'}Q#|O,59rOOO`-E7W-E7WO(SQ&rO'#CsOOQW'#DZ'#DZO(bQ&rO1G.wOOOa1G.w1G.wOOO`1G/Y1G/YO(mQ&rO1G/QOOOb1G/Q1G/QO(xQ&rO1G/TOOOd1G/T1G/TO)TQ&rO1G/WOOO`1G/W1G/WO)`Q&rO1G/YOOOa-E7[-E7[O)kQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)pQ#tO'#C|OOOd-E7^-E7^O)uQ#tO'#DPOOO`-E7_-E7_O)zQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O*PQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOO`7+$t7+$tOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rO*[Q#|O,59eO*aQ#|O,59hO*fQ#|O,59kOOO`1G/X1G/XO*kO7[O'#CvO*|OMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O+_O7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+pOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:",]~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OT}OhyO~OS!POT}OhyO~OS!ROT}OhyO~OS!TOT}OhyO~OS}OT}OhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXTgXhgX~OS!fOT!gOhyO~OS!hOT!gOhyO~OS!iOT!gOhyO~OS!jOT!gOhyO~OS!gOT!gOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:Kce,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[iue],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|c`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bX`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UV`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pT`POv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!cpOv(Vx;'S(V;'S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({W`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t`)jT!a`Or)esv)ew;'S)e;'S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!a`!cpOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!Q*vP;=`<%l*V!R*|P;=`<%l&XW+UYkWOX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+PW+wP;=`<%l+P!Z+}P;=`<%l$q!a,]``P!a`!cp!^^OX&XXY,QYZ,QZ]&X]^,Q^p&Xpq,Qqr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!_-ljhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q[/ebhSkWOX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+PS0rXhSqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0mS1bP;=`<%l0m[1hP;=`<%l/^!V1vchS`P!a`!cpOq&Xqr1krs&}sv1kvw0mwx(tx!P1k!P!Q&X!Q!^1k!^!_*V!_!a&X!a#s1k#s$f&X$f;'S1k;'S;=`3R<%l?Ah1k?Ah?BY&X?BY?Mn1k?MnO&X!V3UP;=`<%l1k!_3[P;=`<%l-_!Z3hV!`h`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}!_4WihSkWc!ROX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst>]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!V<QchSOp7Sqr;{rs7Sst0mtw;{wx7Sx!P;{!P!Q7S!Q!];{!]!^=]!^!a7S!a#s;{#s$f7S$f;'S;{;'S;=`>P<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXiS`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[nue,aue,oue,tue,Jce,eue,0,1,2,3,4,5],topRules:{Document:[0,15]},dialects:{noMatch:0,selfClosing:509},tokenPrec:511});function lue(e,t){let r=Object.create(null);for(let n of e.getChildren(23)){let e=n.getChild(24),a=n.getChild(26)||n.getChild(27);e&&(r[t.read(e.from,e.to)]=a?26==a.type.id?t.read(a.from+1,a.to-1):t.read(a.from,a.to):"")}return r}function cue(e,t){let r=e.getChild(22);return r?t.read(r.from,r.to):" "}function uue(e,t,r){let n;for(let a of r)if(!a.attrs||a.attrs(n||(n=lue(e.node.parent.firstChild,t))))return{parser:a.parser};return null}function due(e=[],t=[]){let r=[],n=[],a=[],o=[];for(let t of e)("script"==t.tag?r:"style"==t.tag?n:"textarea"==t.tag?a:o).push(t);let i=t.length?Object.create(null):null;for(let e of t)(i[e.name]||(i[e.name]=[])).push(e);return s=(e,t)=>{let s=e.type.id;if(28==s)return uue(e,t,r);if(31==s)return uue(e,t,n);if(34==s)return uue(e,t,a);if(20==s&&o.length){let r,n=e.node,a=n.firstChild,i=a&&cue(a,t);if(i)for(let e of o)if(e.tag==i&&(!e.attrs||e.attrs(r||(r=lue(a,t))))){let t=n.lastChild,r=37==t.type.id?t.from:n.to;if(r>a.to)return{parser:e.parser,overlay:[{from:a.to,to:r}]}}}if(i&&23==s){let r,n=e.node;if(r=n.firstChild){let e=i[t.read(r.from,r.to)];if(e)for(let r of e){if(r.tagName&&r.tagName!=cue(n.parent,t))continue;let e=n.lastChild;if(26==e.type.id){let t=e.from+1,n=e.lastChild,a=e.to-(n&&n.isError?0:1);if(a>t)return{parser:r.parser,overlay:[{from:t,to:a}]}}else if(27==e.type.id)return{parser:r.parser,overlay:[{from:e.from,to:e.to}]}}}}return null},(e,t,r,n)=>new Sae(e,s,t,r,n);var s}const pue=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],hue=new uce({start:!1,shift:(e,t)=>5==t||6==t||315==t?e:316==t,strict:!1}),fue=new Yle(((e,t)=>{let{next:r}=e;(125==r||-1==r||t.context)&&e.acceptToken(313)}),{contextual:!0,fallback:!0}),mue=new Yle(((e,t)=>{let r,{next:n}=e;pue.indexOf(n)>-1||(47!=n||47!=(r=e.peek(1))&&42!=r)&&(125==n||59==n||-1==n||t.context||e.acceptToken(312))}),{contextual:!0}),gue=new Yle(((e,t)=>{let{next:r}=e;if(43==r||45==r){if(e.advance(),r==e.next){e.advance();let r=!t.context&&t.canShift(1);e.acceptToken(r?1:2)}}else 63==r&&46==e.peek(1)&&(e.advance(),e.advance(),(e.next<48||e.next>57)&&e.acceptToken(3))}),{contextual:!0});function vue(e,t){return e>=65&&e<=90||e>=97&&e<=122||95==e||e>=192||!t&&e>=48&&e<=57}const bue=new Yle(((e,t)=>{if(60!=e.next||!t.dialectEnabled(0))return;if(e.advance(),47==e.next)return;let r=0;for(;pue.indexOf(e.next)>-1;)e.advance(),r++;if(vue(e.next,!0)){for(e.advance(),r++;vue(e.next,!1);)e.advance(),r++;for(;pue.indexOf(e.next)>-1;)e.advance(),r++;if(44==e.next)return;for(let t=0;;t++){if(7==t){if(!vue(e.next,!0))return;break}if(e.next!="extends".charCodeAt(t))break;e.advance(),r++}}e.acceptToken(4,-r)})),yue=Lae({"get set async static":aoe.modifier,"for while do if else switch try catch finally return throw break continue default case":aoe.controlKeyword,"in of await yield void typeof delete instanceof":aoe.operatorKeyword,"let var const using function class extends":aoe.definitionKeyword,"import export from":aoe.moduleKeyword,"with debugger as new":aoe.keyword,TemplateString:aoe.special(aoe.string),super:aoe.atom,BooleanLiteral:aoe.bool,this:aoe.self,null:aoe.null,Star:aoe.modifier,VariableName:aoe.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":aoe.function(aoe.variableName),VariableDefinition:aoe.definition(aoe.variableName),Label:aoe.labelName,PropertyName:aoe.propertyName,PrivatePropertyName:aoe.special(aoe.propertyName),"CallExpression/MemberExpression/PropertyName":aoe.function(aoe.propertyName),"FunctionDeclaration/VariableDefinition":aoe.function(aoe.definition(aoe.variableName)),"ClassDeclaration/VariableDefinition":aoe.definition(aoe.className),PropertyDefinition:aoe.definition(aoe.propertyName),PrivatePropertyDefinition:aoe.definition(aoe.special(aoe.propertyName)),UpdateOp:aoe.updateOperator,"LineComment Hashbang":aoe.lineComment,BlockComment:aoe.blockComment,Number:aoe.number,String:aoe.string,Escape:aoe.escape,ArithOp:aoe.arithmeticOperator,LogicOp:aoe.logicOperator,BitOp:aoe.bitwiseOperator,CompareOp:aoe.compareOperator,RegExp:aoe.regexp,Equals:aoe.definitionOperator,Arrow:aoe.function(aoe.punctuation),": Spread":aoe.punctuation,"( )":aoe.paren,"[ ]":aoe.squareBracket,"{ }":aoe.brace,"InterpolationStart InterpolationEnd":aoe.special(aoe.brace),".":aoe.derefOperator,", ;":aoe.separator,"@":aoe.meta,TypeName:aoe.typeName,TypeDefinition:aoe.definition(aoe.typeName),"type enum interface implements namespace module declare":aoe.definitionKeyword,"abstract global Privacy readonly override":aoe.modifier,"is keyof unique infer":aoe.operatorKeyword,JSXAttributeValue:aoe.attributeValue,JSXText:aoe.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":aoe.angleBracket,"JSXIdentifier JSXNameSpacedName":aoe.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":aoe.attributeName,"JSXBuiltin/JSXIdentifier":aoe.standard(aoe.tagName)}),Oue={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,extends:54,this:58,true:66,false:66,null:78,void:82,typeof:86,super:102,new:136,delete:148,yield:157,await:161,class:166,public:229,private:229,protected:229,readonly:231,instanceof:250,satisfies:253,in:254,const:256,import:290,keyof:345,unique:349,infer:355,is:391,abstract:411,implements:413,type:415,let:418,var:420,using:423,interface:429,enum:433,namespace:439,module:441,declare:445,global:449,for:468,of:477,while:480,with:484,do:488,if:492,else:494,switch:498,case:504,try:510,catch:514,finally:518,return:522,throw:526,break:530,continue:534,debugger:538},wue={__proto__:null,async:123,get:125,set:127,declare:189,public:191,private:191,protected:191,static:193,abstract:195,override:197,readonly:203,accessor:205,new:395},xue={__proto__:null,"<":187},kue=dce.deserialize({version:14,states:"$@QO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ?NdO'#CiO+RO!bO'#CjO+aO#tO'#CjO+oO!0LbO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DwO0fQ^O'#EPOOQ?Mr'#EX'#EXO1PQWO'#EUOOQO'#Em'#EmOOQO'#Ih'#IhO1XQWO'#GpO1dQWO'#ElO1iQWO'#ElO3hQ?NdO'#JmO6[Q?NdO'#JnO6uQWO'#F[O6zQ&jO'#FsOOQ?Mr'#Fe'#FeO7VO,YO'#FeO7eQ7[O'#FzO9RQWO'#FyOOQ?Mr'#Jn'#JnOOQ?Mp'#Jm'#JmO9WQWO'#GtOOQU'#KZ'#KZO9cQWO'#IUO9hQ?MxO'#IVOOQU'#JZ'#JZOOQU'#IZ'#IZQ`Q^OOO`Q^OOO9pQMnO'#DsO9wQ^O'#D{O:OQ^O'#D}O9^QWO'#GpO:VQ7[O'#CoO:eQWO'#EkO:pQWO'#EvO:uQ7[O'#FdO;dQWO'#GpOOQO'#K['#K[O;iQWO'#K[O;wQWO'#GxO;wQWO'#GyO;wQWO'#G{O9^QWO'#HOO<nQWO'#HRO>VQWO'#CeO>gQWO'#H_O>oQWO'#HeO>oQWO'#HgO`Q^O'#HiO>oQWO'#HkO>oQWO'#HnO>tQWO'#HtO>yQ?MyO'#HzO%[Q^O'#H|O?UQ?MyO'#IOO?aQ?MyO'#IQO9hQ?MxO'#ISO?lQ?NdO'#CiO@nQ`O'#DiQOQWOOO%[Q^O'#D}OAUQWO'#EQO:VQ7[O'#EkOAaQWO'#EkOAlQpO'#FdOOQU'#Cg'#CgOOQ?Mp'#Dn'#DnOOQ?Mp'#Jq'#JqO%[Q^O'#JqOOQO'#Jt'#JtOOQO'#Id'#IdOBlQ`O'#EdOOQ?Mp'#Ec'#EcOOQ?Mp'#Jx'#JxOChQ?NQO'#EdOCrQ`O'#ETOOQO'#Js'#JsODWQ`O'#JtOEeQ`O'#ETOCrQ`O'#EdPErO#@ItO'#CbPOOO)CDx)CDxOOOO'#I['#I[OE}O!bO,59UOOQ?Mr,59U,59UOOOO'#I]'#I]OF]O#tO,59UO%[Q^O'#D`OOOO'#I_'#I_OFkO!0LbO,59xOOQ?Mr,59x,59xOFyQ^O'#I`OG^QWO'#JoOI]QrO'#JoO+}Q^O'#JoOIdQWO,5:OOIzQWO'#EmOJXQWO'#KOOJdQWO'#J}OJdQWO'#J}OJlQWO,5;ZOJqQWO'#J|OOQ?Mv,5:Z,5:ZOJxQ^O,5:ZOLvQ?NdO,5:cOMgQWO,5:kONQQ?MxO'#J{ONXQWO'#JzO9WQWO'#JzONmQWO'#JzONuQWO,5;YONzQWO'#JzO!#PQrO'#JnOOQ?Mr'#Ci'#CiO%[Q^O'#EPO!#oQrO,5:pOOQQ'#Ju'#JuOOQO-E<f-E<fO9^QWO,5=[O!$VQWO,5=[O!$[Q^O,5;WO!&_Q7[O'#EhO!'xQWO,5;WO!'}Q^O'#DvO!(XQ`O,5;aO!(aQ`O,5;aO%[Q^O,5;aOOQU'#FS'#FSOOQU'#FU'#FUO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bOOQU'#FY'#FYO!(oQ^O,5;sOOQ?Mr,5;x,5;xOOQ?Mr,5;y,5;yOOQ?Mr,5;{,5;{O%[Q^O'#IlO!*rQ?MxO,5<gO%[Q^O,5;bO!&_Q7[O,5;bO!+aQ7[O,5;bO!-RQ7[O'#EZO%[Q^O,5;vOOQ?Mr,5;z,5;zO!-YQ&jO'#FiO!.VQ&jO'#KSO!-qQ&jO'#KSO!.^Q&jO'#KSOOQO'#KS'#KSO!.rQ&jO,5<ROOOS,5<_,5<_O!/TQ^O'#FuOOOS'#Ik'#IkO7VO,YO,5<PO!/[Q&jO'#FwOOQ?Mr,5<P,5<PO!/{Q!LQO'#CvOOQ?Mr'#Cz'#CzO!0`O!0LbO'#DOO!0|Q7[O,5<dO!1TQWO,5<fO!2pQ$ISO'#GVO!2}QWO'#GWO!3SQWO'#GWO!4rQ$ISO'#G[O!5nQ`O'#G`OOQO'#Gk'#GkO!+hQ7[O'#GjOOQO'#Gm'#GmO!+hQ7[O'#GlO!6aQ!LQO'#JgOOQ?Mr'#Jg'#JgO!6kQWO'#JfO!6yQWO'#JeO!7RQWO'#CuOOQ?Mr'#Cx'#CxO!7ZQWO'#CzOOQ?Mr'#DS'#DSOOQ?Mr'#DU'#DUO1SQWO'#DWO!+hQ7[O'#F}O!+hQ7[O'#GPO!7`QWO'#GRO!7eQWO'#GSO!3SQWO'#GYO!+hQ7[O'#G_O!7jQWO'#EnO!8XQWO,5<eOOQ?Mp'#Cr'#CrO!8aQWO'#EoO!9ZQ`O'#EpOOQ?Mp'#J|'#J|O!9bQ?MxO'#K]O9hQ?MxO,5=`O`Q^O,5>pOOQU'#Jc'#JcOOQU,5>q,5>qOOQU-E<X-E<XO!;aQ?NdO,5:_O!9UQ`O,5:]O!=zQ?NdO,5:gO%[Q^O,5:gO!@bQ?NdO,5:iOOQO,5@v,5@vO!ARQ7[O,5=[O!AaQ?MxO'#JdO9RQWO'#JdO!ArQ?MxO,59ZO!A}Q`O,59ZO!BVQ7[O,59ZO:VQ7[O,59ZO!BbQWO,5;WO!BjQWO'#H^O!COQWO'#K`O%[Q^O,5;|O!9UQ`O,5<OO!CWQWO,5=wO!C]QWO,5=wO!CbQWO,5=wO9hQ?MxO,5=wO;wQWO,5=gOOQO'#Cv'#CvO!CpQ`O,5=dO!CxQ7[O,5=eO!DTQWO,5=gO!DYQpO,5=jO!DbQWO'#K[O>tQWO'#HTO9^QWO'#HVO!DgQWO'#HVO:VQ7[O'#HXO!DlQWO'#HXOOQU,5=m,5=mO!DqQWO'#HYO!ESQWO'#CoO!EXQWO,59PO!EcQWO,59PO!GhQ^O,59POOQU,59P,59PO!GxQ?MxO,59PO%[Q^O,59PO!JTQ^O'#HaOOQU'#Hb'#HbOOQU'#Hc'#HcO`Q^O,5=yO!JkQWO,5=yO`Q^O,5>PO`Q^O,5>RO!JpQWO,5>TO`Q^O,5>VO!JuQWO,5>YO!JzQ^O,5>`OOQU,5>f,5>fO%[Q^O,5>fO9hQ?MxO,5>hOOQU,5>j,5>jO# UQWO,5>jOOQU,5>l,5>lO# UQWO,5>lOOQU,5>n,5>nO# rQ`O'#D[O%[Q^O'#JqO# |Q`O'#JqO#!kQ`O'#DjO#!|Q`O'#DjO#%_Q^O'#DjO#%fQWO'#JpO#%nQWO,5:TO#%sQWO'#EqO#&RQWO'#KPO#&ZQWO,5;[O#&`Q`O'#DjO#&mQ`O'#ESOOQ?Mr,5:l,5:lO%[Q^O,5:lO#&tQWO,5:lO>tQWO,5;VO!A}Q`O,5;VO!BVQ7[O,5;VO:VQ7[O,5;VO#&|QWO,5@]O#'RQ(CYO,5:pOOQO-E<b-E<bO#(XQ?NQO,5;OOCrQ`O,5:oO#(cQ`O,5:oOCrQ`O,5;OO!ArQ?MxO,5:oOOQ?Mp'#Eg'#EgOOQO,5;O,5;OO%[Q^O,5;OO#(pQ?MxO,5;OO#({Q?MxO,5;OO!A}Q`O,5:oOOQO,5;U,5;UO#)ZQ?MxO,5;OPOOO'#IY'#IYP#)oO#@ItO,58|POOO,58|,58|OOOO-E<Y-E<YOOQ?Mr1G.p1G.pOOOO-E<Z-E<ZO#)zQpO,59zOOOO-E<]-E<]OOQ?Mr1G/d1G/dO#*PQrO,5>zO+}Q^O,5>zOOQO,5?Q,5?QO#*ZQ^O'#I`OOQO-E<^-E<^O#*hQWO,5@ZO#*pQrO,5@ZO#*wQWO,5@iOOQ?Mr1G/j1G/jO%[Q^O,5@jO#+PQWO'#IfOOQO-E<d-E<dO#*wQWO,5@iOOQ?Mp1G0u1G0uOOQ?Mv1G/u1G/uOOQ?Mv1G0V1G0VO%[Q^O,5@gO#+eQ?MxO,5@gO#+vQ?MxO,5@gO#+}QWO,5@fO9WQWO,5@fO#,VQWO,5@fO#,eQWO'#IiO#+}QWO,5@fOOQ?Mp1G0t1G0tO!(XQ`O,5:rO!(dQ`O,5:rOOQQ,5:t,5:tO#-VQYO,5:tO#-_Q7[O1G2vO9^QWO1G2vOOQ?Mr1G0r1G0rO#-mQ?NdO1G0rO#.rQ?NbO,5;SOOQ?Mr'#GU'#GUO#/`Q?NdO'#JgO!$[Q^O1G0rO#1hQrO'#JrO%[Q^O'#JrO#1rQWO,5:bOOQ?Mr'#D['#D[OOQ?Mr1G0{1G0{O%[Q^O1G0{OOQ?Mr1G1e1G1eO#1wQWO1G0{O#4]Q?NdO1G0|O#4dQ?NdO1G0|O#6zQ?NdO1G0|O#7RQ?NdO1G0|O#9iQ?NdO1G0|O#<PQ?NdO1G0|O#<WQ?NdO1G0|O#<_Q?NdO1G0|O#>uQ?NdO1G0|O#>|Q?NdO1G0|O#AZQ07bO'#CiO#CUQ07bO1G1_O#C]Q07bO'#JnO#CpQ?NdO,5?WOOQ?Mp-E<j-E<jO#E}Q?NdO1G0|O#FzQ?NdO1G0|OOQ?Mr1G0|1G0|O#GzQ7[O'#JwO#HUQWO,5:uO#HZQ?NdO1G1bO#H}Q&jO,5<VO#IVQ&jO,5<WO#I_Q&jO'#FnO#IvQWO'#FmOOQO'#KT'#KTOOQO'#Ij'#IjO#I{Q&jO1G1mOOQ?Mr1G1m1G1mOOOS1G1x1G1xO#J^Q07bO'#JmO#JhQWO,5<aO!(oQ^O,5<aOOOS-E<i-E<iOOQ?Mr1G1k1G1kO#JmQ`O'#KSOOQ?Mr,5<c,5<cO#JuQ`O,5<cO!&_Q7[O'#DQOOOO'#I^'#I^O#JzO!0LbO,59jOOQ?Mr,59j,59jO%[Q^O1G2OO!7eQWO'#InO#KVQ7[O,5<xOOQ?Mr,5<u,5<uO!+hQ7[O'#IqO#KuQ7[O,5=UO!+hQ7[O'#IsO#LhQ7[O,5=WO!&_Q7[O,5=YOOQO1G2Q1G2QO#LrQpO'#CrO#MVQ$ISO'#EoO#NUQ`O'#G`O#NrQpO,5<qO#NyQWO'#KWO9WQWO'#KWO$ XQWO,5<sO!+hQ7[O,5<rO$ ^QWO'#GXO$ oQWO,5<rO$ tQpO'#GUO$!RQpO'#KXO$!]QWO'#KXO!&_Q7[O'#KXO$!bQWO,5<vO$!gQ`O'#GaO!5iQ`O'#GaO$!xQWO'#GcO$!}QWO'#GeO!3SQWO'#GhO$#SQ?MxO'#IpO$#_Q`O,5<zOOQ?Mv,5<z,5<zO$#fQ`O'#GaO$#tQ`O'#GbO$#|Q`O'#GbO$$RQ7[O,5=UO$$cQ7[O,5=WOOQ?Mr,5=Z,5=ZO!+hQ7[O,5@QO!+hQ7[O,5@QO$$sQWO'#IuO$%OQWO,5@PO$%WQWO,59aOOQ?Mr,59f,59fO$%zQ!LSO,59rOOQ?Mr'#Jk'#JkO$&mQ7[O,5<iO$'`Q7[O,5<kO@fQWO,5<mOOQ?Mr,5<n,5<nO$'jQWO,5<tO$'oQ7[O,5<yO$(PQWO'#JzO!$[Q^O1G2PO$(UQWO1G2PO9WQWO'#J}O9WQWO'#EqO%[Q^O'#EqO9WQWO'#IwO$(ZQ?MxO,5@wOOQU1G2z1G2zOOQU1G4[1G4[OOQ?Mr1G/y1G/yOOQ?Mr1G/w1G/wO$*]Q?NdO1G0ROOQU1G2v1G2vO!&_Q7[O1G2vO%[Q^O1G2vO#-bQWO1G2vO$,aQ7[O'#EhOOQ?Mp,5@O,5@OO$,kQ?MxO,5@OOOQU1G.u1G.uO!ArQ?MxO1G.uO!A}Q`O1G.uO!BVQ7[O1G.uO$,|QWO1G0rO$-RQWO'#CiO$-^QWO'#KaO$-fQWO,5=xO$-kQWO'#KaO$-pQWO'#KaO$.OQWO'#I}O$.^QWO,5@zO$.fQrO1G1hOOQ?Mr1G1j1G1jO9^QWO1G3cO@fQWO1G3cO$.mQWO1G3cO$.rQWO1G3cOOQU1G3c1G3cO!DTQWO1G3RO!&_Q7[O1G3OO$.wQWO1G3OOOQU1G3P1G3PO!&_Q7[O1G3PO$.|QWO1G3PO$/UQ`O'#G}OOQU1G3R1G3RO!5iQ`O'#IyO!DYQpO1G3UOOQU1G3U1G3UOOQU,5=o,5=oO$/^Q7[O,5=qO9^QWO,5=qO$!}QWO,5=sO9RQWO,5=sO!A}Q`O,5=sO!BVQ7[O,5=sO:VQ7[O,5=sO$/lQWO'#K_O$/wQWO,5=tOOQU1G.k1G.kO$/|Q?MxO1G.kO@fQWO1G.kO$0XQWO1G.kO9hQ?MxO1G.kO$2aQrO,5@|O$2nQWO,5@|O9WQWO,5@|O$2yQ^O,5={O$3QQWO,5={OOQU1G3e1G3eO`Q^O1G3eOOQU1G3k1G3kOOQU1G3m1G3mO>oQWO1G3oO$3VQ^O1G3qO$7ZQ^O'#HpOOQU1G3t1G3tO$7hQWO'#HvO>tQWO'#HxOOQU1G3z1G3zO$7pQ^O1G3zO9hQ?MxO1G4QOOQU1G4S1G4SOOQ?Mp'#G]'#G]O9hQ?MxO1G4UO9hQ?MxO1G4WO$;wQWO,5@]O!(oQ^O,5;]O9WQWO,5;]O>tQWO,5:UO!(oQ^O,5:UO!A}Q`O,5:UO$;|Q07bO,5:UOOQO,5;],5;]O$<WQ`O'#IaO$<nQWO,5@[OOQ?Mr1G/o1G/oO$<vQ`O'#IgO$=QQWO,5@kOOQ?Mp1G0v1G0vO#!|Q`O,5:UOOQO'#Ic'#IcO$=YQ`O,5:nOOQ?Mv,5:n,5:nO#&wQWO1G0WOOQ?Mr1G0W1G0WO%[Q^O1G0WOOQ?Mr1G0q1G0qO>tQWO1G0qO!A}Q`O1G0qO!BVQ7[O1G0qOOQ?Mp1G5w1G5wO!ArQ?MxO1G0ZOOQO1G0j1G0jO%[Q^O1G0jO$=aQ?MxO1G0jO$=lQ?MxO1G0jO!A}Q`O1G0ZOCrQ`O1G0ZO$=zQ?MxO1G0jOOQO1G0Z1G0ZO$>`Q?NdO1G0jPOOO-E<W-E<WPOOO1G.h1G.hOOOO1G/f1G/fO$>jQpO,5<gO$>rQrO1G4fOOQO1G4l1G4lO%[Q^O,5>zO$>|QWO1G5uO$?UQWO1G6TO$?^QrO1G6UO9WQWO,5?QO$?hQ?NdO1G6RO%[Q^O1G6RO$?xQ?MxO1G6RO$@ZQWO1G6QO$@ZQWO1G6QO9WQWO1G6QO$@cQWO,5?TO9WQWO,5?TOOQO,5?T,5?TO$@wQWO,5?TO$(PQWO,5?TOOQO-E<g-E<gOOQQ1G0^1G0^OOQQ1G0`1G0`O#-YQWO1G0`OOQU7+(b7+(bO!&_Q7[O7+(bO%[Q^O7+(bO$AVQWO7+(bO$AbQ7[O7+(bO$ApQ?NdO,5=UO$CxQ?NdO,5=WO$FQQ?NdO,5=UO$H`Q?NdO,5=WO$JnQ?NdO,59rO$LsQ?NdO,5<iO$N{Q?NdO,5<kO%#TQ?NdO,5<yOOQ?Mr7+&^7+&^O%%cQ?NdO7+&^O%&VQ^O'#IbO%&dQWO,5@^O%&lQrO,5@^OOQ?Mr1G/|1G/|O%&vQWO7+&gOOQ?Mr7+&g7+&gO%&{Q07bO,5:cO%[Q^O7+&yO%'VQ07bO,5:_O%'dQ07bO,5:gO%'nQ07bO,5:iO%'xQ7[O'#IeO%(SQWO,5@cOOQ?Mr1G0a1G0aOOQO1G1q1G1qOOQO1G1r1G1rO%([QtO,5<YO!(oQ^O,5<XOOQO-E<h-E<hOOQ?Mr7+'X7+'XOOOS7+'d7+'dOOOS1G1{1G1{O%(gQWO1G1{OOQ?Mr1G1}1G1}O%(lQpO,59lOOOO-E<[-E<[OOQ?Mr1G/U1G/UO%(sQ?NdO7+'jOOQ?Mr,5?Y,5?YO%)gQpO,5?YOOQ?Mr1G2d1G2dP!&_Q7[O'#InPOQ?Mr-E<l-E<lO%*VQ7[O,5?]OOQ?Mr-E<o-E<oO%*xQ7[O,5?_OOQ?Mr-E<q-E<qO%+SQpO1G2tO%+ZQpO'#CrO%+qQ7[O'#J}O%+xQ^O'#EqOOQ?Mr1G2]1G2]O%,SQWO'#ImO%,hQWO,5@rO%,hQWO,5@rO%,pQWO,5@rO%,{QWO,5@rOOQO1G2_1G2_O%-ZQ7[O1G2^O!+hQ7[O1G2^O%-kQ$ISO'#IoO%-xQWO,5@sO!&_Q7[O,5@sO%.QQpO,5@sOOQ?Mr1G2b1G2bOOQ?Mp,5<{,5<{OOQ?Mp,5<|,5<|O$(PQWO,5<|OCcQWO,5<|O!A}Q`O,5<{OOQO'#Gd'#GdO%.[QWO,5<}OOQ?Mp,5=P,5=PO$(PQWO,5=SOOQO,5?[,5?[OOQO-E<n-E<nOOQ?Mv1G2f1G2fO!5iQ`O,5<{O%.dQWO,5<|O$!xQWO,5<}O%.oQ`O,5<|O!+hQ7[O'#IqO%/`Q7[O1G2pO!+hQ7[O'#IsO%0RQ7[O1G2rO%0]Q7[O1G5lO%0gQ7[O1G5lOOQO,5?a,5?aOOQO-E<s-E<sOOQO1G.{1G.{O!9UQ`O,59tO%[Q^O,59tOOQ?Mr,5<h,5<hO%0tQWO1G2XO!+hQ7[O1G2`O%0yQ?NdO7+'kOOQ?Mr7+'k7+'kO!$[Q^O7+'kO%1mQWO,5;]OOQ?Mp,5?c,5?cOOQ?Mp-E<u-E<uO%1rQpO'#KYO#&wQWO7+(bO4UQrO7+(bO$AYQWO7+(bO%1|Q?NbO'#CiO%2aQ?NbO,5=QO%3RQWO,5=QOOQ?Mp1G5j1G5jOOQU7+$a7+$aO!ArQ?MxO7+$aO!A}Q`O7+$aO!$[Q^O7+&^O%3WQWO'#I|O%3oQWO,5@{OOQO1G3d1G3dO9^QWO,5@{O%3oQWO,5@{O%3wQWO,5@{OOQO,5?i,5?iOOQO-E<{-E<{OOQ?Mr7+'S7+'SO%3|QWO7+(}O9hQ?MxO7+(}O9^QWO7+(}O@fQWO7+(}OOQU7+(m7+(mO%4RQ?NbO7+(jO!&_Q7[O7+(jO%4]QpO7+(kOOQU7+(k7+(kO!&_Q7[O7+(kO%4dQWO'#K^O%4oQWO,5=iOOQO,5?e,5?eOOQO-E<w-E<wOOQU7+(p7+(pO%6RQ`O'#HWOOQU1G3]1G3]O!&_Q7[O1G3]O%[Q^O1G3]O%6YQWO1G3]O%6eQ7[O1G3]O9hQ?MxO1G3_O$!}QWO1G3_O9RQWO1G3_O!A}Q`O1G3_O!BVQ7[O1G3_O%6sQWO'#I{O%7XQWO,5@yO%7aQ`O,5@yOOQ?Mp1G3`1G3`OOQU7+$V7+$VO@fQWO7+$VO9hQ?MxO7+$VO%7lQWO7+$VO%[Q^O1G6hO%[Q^O1G6iO%7qQ?MxO1G6hO%7{Q^O1G3gO%8SQWO1G3gO%8XQ^O1G3gOOQU7+)P7+)PO9hQ?MxO7+)ZO`Q^O7+)]OOQU'#Kd'#KdOOQU'#JO'#JOO%8`Q^O,5>[OOQU,5>[,5>[O%[Q^O'#HqO%8mQWO'#HsOOQU,5>b,5>bO9WQWO,5>bOOQU,5>d,5>dOOQU7+)f7+)fOOQU7+)l7+)lOOQU7+)p7+)pOOQU7+)r7+)rO%8rQ`O1G5wO%9WQ07bO1G0wO%9bQWO1G0wOOQO1G/p1G/pO%9mQ07bO1G/pO>tQWO1G/pO!(oQ^O'#DjOOQO,5>{,5>{OOQO-E<_-E<_OOQO,5?R,5?ROOQO-E<e-E<eO!A}Q`O1G/pOOQO-E<a-E<aOOQ?Mv1G0Y1G0YOOQ?Mr7+%r7+%rO#&wQWO7+%rOOQ?Mr7+&]7+&]O>tQWO7+&]O!A}Q`O7+&]OOQO7+%u7+%uO$>`Q?NdO7+&UOOQO7+&U7+&UO%[Q^O7+&UO%9wQ?MxO7+&UO!ArQ?MxO7+%uO!A}Q`O7+%uO%:SQ?MxO7+&UO%:bQ?NdO7++mO%[Q^O7++mO%:rQWO7++lO%:rQWO7++lOOQO1G4o1G4oO9WQWO1G4oO%:zQWO1G4oOOQQ7+%z7+%zO#&wQWO<<K|O4UQrO<<K|O%;YQWO<<K|OOQU<<K|<<K|O!&_Q7[O<<K|O%[Q^O<<K|O%;bQWO<<K|O%;mQ?NdO,5?]O%=uQ?NdO,5?_O%?}Q?NdO1G2^O%B]Q?NdO1G2pO%DeQ?NdO1G2rO%FmQrO,5>|O%[Q^O,5>|OOQO-E<`-E<`O%FwQWO1G5xOOQ?Mr<<JR<<JRO%GPQ07bO1G0rO%IWQ07bO1G0|O%I_Q07bO1G0|O%K`Q07bO1G0|O%KgQ07bO1G0|O%MhQ07bO1G0|O& iQ07bO1G0|O& pQ07bO1G0|O& wQ07bO1G0|O&#xQ07bO1G0|O&$PQ07bO1G0|O&$WQ?NdO<<JeO&&OQ07bO1G0|O&&{Q07bO1G0|O&'{Q07bO'#JgO&*OQ07bO1G1bO&*]Q07bO1G0RO&*gQ7[O,5?POOQO-E<c-E<cO!(oQ^O'#FpOOQO'#KU'#KUOOQO1G1t1G1tO&*qQWO1G1sO&*vQ07bO,5?WOOOS7+'g7+'gOOOO1G/W1G/WOOQ?Mr1G4t1G4tO!+hQ7[O7+(`O&-WQrO'#CiO&-bQWO,5?XO9WQWO,5?XOOQO-E<k-E<kO&-pQWO1G6^O&-pQWO1G6^O&-xQWO1G6^O&.TQ7[O7+'xO&.eQpO,5?ZO&.oQWO,5?ZO!&_Q7[O,5?ZOOQO-E<m-E<mO&.tQpO1G6_O&/OQWO1G6_OOQ?Mp1G2h1G2hO$(PQWO1G2hOOQ?Mp1G2g1G2gO&/WQWO1G2iO!&_Q7[O1G2iOOQ?Mp1G2n1G2nO!A}Q`O1G2gOCcQWO1G2hO&/]QWO1G2iO&/eQWO1G2hO$!xQWO1G2iO&0XQ7[O,5?]OOQ?Mr-E<p-E<pO&0zQ7[O,5?_OOQ?Mr-E<r-E<rO!+hQ7[O7++WOOQ?Mr1G/`1G/`O&1UQWO1G/`OOQ?Mr7+'s7+'sO&1ZQ7[O7+'zO&1kQ?NdO<<KVOOQ?Mr<<KV<<KVO&2_QWO1G0wO!&_Q7[O'#IvO&2dQWO,5@tO&4fQrO<<K|O!&_Q7[O1G2lOOQU<<G{<<G{O!ArQ?MxO<<G{O&4mQ?NdO<<IxOOQ?Mr<<Ix<<IxOOQO,5?h,5?hO&5aQWO,5?hO&5fQWO,5?hOOQO-E<z-E<zO&5tQWO1G6gO&5tQWO1G6gO9^QWO1G6gO@fQWO<<LiOOQU<<Li<<LiO&5|QWO<<LiO9hQ?MxO<<LiOOQU<<LU<<LUO%4RQ?NbO<<LUOOQU<<LV<<LVO%4]QpO<<LVO&6RQ`O'#IxO&6^QWO,5@xO!(oQ^O,5@xOOQU1G3T1G3TO%+xQ^O'#JqOOQO'#Iz'#IzO9hQ?MxO'#IzO&6fQ`O,5=rOOQU,5=r,5=rO&6mQ`O'#EdO&7RQ`O'#GcO&7WQWO7+(wO&7]QWO7+(wOOQU7+(w7+(wO!&_Q7[O7+(wO%[Q^O7+(wO&7eQWO7+(wOOQU7+(y7+(yO9hQ?MxO7+(yO$!}QWO7+(yO9RQWO7+(yO!A}Q`O7+(yO&7pQWO,5?gOOQO-E<y-E<yOOQO'#HZ'#HZO&7{QWO1G6eO9hQ?MxO<<GqOOQU<<Gq<<GqO@fQWO<<GqO&8TQWO7+,SO&8YQWO7+,TO%[Q^O7+,SO%[Q^O7+,TOOQU7+)R7+)RO&8_QWO7+)RO&8dQ^O7+)RO&8kQWO7+)ROOQU<<Lu<<LuOOQU<<Lw<<LwOOQU-E<|-E<|OOQU1G3v1G3vO&8pQWO,5>]OOQU,5>_,5>_O&8uQWO1G3|O9WQWO7+&cO!(oQ^O7+&cOOQO7+%[7+%[O&8zQ07bO1G6UO>tQWO7+%[OOQ?Mr<<I^<<I^OOQ?Mr<<Iw<<IwO>tQWO<<IwOOQO<<Ip<<IpO$>`Q?NdO<<IpO%[Q^O<<IpOOQO<<Ia<<IaO!ArQ?MxO<<IaO&9UQ?MxO<<IpO&9aQ?NdO<= XO&9qQWO<= WOOQO7+*Z7+*ZO9WQWO7+*ZOOQUANAhANAhO&9yQrOANAhO!&_Q7[OANAhO#&wQWOANAhO4UQrOANAhO&:QQWOANAhO%[Q^OANAhO&:YQ?NdO7+'xO&<hQ?NdO,5?]O&>pQ?NdO,5?_O&@xQ?NdO7+'zO&CWQrO1G4hO&CbQ07bO7+&^O&EcQ07bO,5=UO&GgQ07bO,5=WO&GwQ07bO,5=UO&HXQ07bO,5=WO&HiQ07bO,59rO&JlQ07bO,5<iO&LlQ07bO,5<kO&N}Q07bO,5<yO'!pQ07bO7+'jO'!}Q07bO7+'kO'#[QWO,5<[OOQO7+'_7+'_O'#aQ7[O<<KzOOQO1G4s1G4sO'#hQWO1G4sO'#sQWO1G4sO'$RQWO7++xO'$RQWO7++xO!&_Q7[O1G4uO'$ZQpO1G4uO'$eQWO7++yOOQ?Mp7+(S7+(SO'$mQWO7+(TO'$xQpO7+(TOOQ?Mp7+(R7+(RO$(PQWO7+(SO'%PQWO7+(TO!&_Q7[O7+(TOCcQWO7+(SO'%UQWO7+(TO'%^Q7[O<<NrOOQ?Mr7+$z7+$zO'%hQpO,5?bOOQO-E<t-E<tO'%rQ?NbO7+(WOOQUAN=gAN=gO9^QWO1G5SOOQO1G5S1G5SO'&SQWO1G5SO'&XQWO7+,RO'&XQWO7+,RO9hQ?MxOANBTO@fQWOANBTOOQUANBTANBTOOQUANApANApOOQUANAqANAqO'&aQWO,5?dOOQO-E<v-E<vO'&lQ07bO1G6dOOQO,5?f,5?fOOQO-E<x-E<xOOQU1G3^1G3^O%+xQ^O,5<}O'&vQWO,5<}OOQU<<Lc<<LcO!&_Q7[O<<LcO&7WQWO<<LcO'&{QWO<<LcO%[Q^O<<LcOOQU<<Le<<LeO9hQ?MxO<<LeO$!}QWO<<LeO9RQWO<<LeO''TQ`O1G5RO''`QWO7+,POOQUAN=]AN=]O9hQ?MxOAN=]OOQU<= n<= nOOQU<= o<= oO''hQWO<= nO''mQWO<= oOOQU<<Lm<<LmO''rQWO<<LmO''wQ^O<<LmOOQU1G3w1G3wO>tQWO7+)hO'(OQWO<<I}O'(ZQ07bO<<I}OOQO<<Hv<<HvOOQ?MrAN?cAN?cOOQOAN?[AN?[O$>`Q?NdOAN?[OOQOAN>{AN>{O%[Q^OAN?[OOQO<<Mu<<MuOOQUG27SG27SO!&_Q7[OG27SO#&wQWOG27SO'(eQrOG27SO4UQrOG27SO'(lQWOG27SO'(tQ07bO<<JeO')RQ07bO1G2^O'*tQ07bO,5?]O',tQ07bO,5?_O'.tQ07bO1G2pO'0tQ07bO1G2rO'2tQ07bO<<KVO'3RQ07bO<<IxOOQO1G1v1G1vO!+hQ7[OANAfOOQO7+*_7+*_O'3`QWO7+*_O'3kQWO<= dO'3sQpO7+*aOOQ?Mp<<Ko<<KoO$(PQWO<<KoOCcQWO<<KoO'3}QWO<<KoOOQ?Mp<<Kn<<KnO'4YQpO<<KoO$(PQWO<<KnO'4aQWO<<KoO!&_Q7[O<<KoOOQO7+*n7+*nO9^QWO7+*nO'4fQWO<= mOOQUG27oG27oO9hQ?MxOG27oO!(oQ^O1G5OO'4nQWO7+,OO&7WQWOANA}OOQUANA}ANA}O!&_Q7[OANA}O'4vQWOANA}OOQUANBPANBPO9hQ?MxOANBPO$!}QWOANBPOOQO'#H['#H[OOQO7+*m7+*mOOQUG22wG22wOOQUANEYANEYOOQUANEZANEZOOQUANBXANBXO'5OQWOANBXOOQU<<MS<<MSO!(oQ^OAN?iOOQOG24vG24vO$>`Q?NdOG24vO#&wQWOLD,nOOQULD,nLD,nO!&_Q7[OLD,nO'5TQrOLD,nO'5[Q07bO7+'xO'6}Q07bO,5?]O'8}Q07bO,5?_O':}Q07bO7+'zO'<pQ7[OG27QOOQO<<My<<MyOOQ?MpANAZANAZO$(PQWOANAZOCcQWOANAZO'=QQWOANAZOOQ?MpANAYANAYO'=]QpOANAZOOQO<<NY<<NYOOQULD-ZLD-ZO'=dQ07bO7+*jOOQUG27iG27iO&7WQWOG27iO!&_Q7[OG27iOOQUG27kG27kO9hQ?MxOG27kOOQUG27sG27sO'=nQ07bOG25TOOQOLD*bLD*bOOQU!$(!Y!$(!YO#&wQWO!$(!YO!&_Q7[O!$(!YO'=xQ?NdOG27QOOQ?MpG26uG26uO$(PQWOG26uOCcQWOG26uO'@WQWOG26uOOQULD-TLD-TO&7WQWOLD-TOOQULD-VLD-VOOQU!)9Et!)9EtO#&wQWO!)9EtOOQ?MpLD,aLD,aO$(PQWOLD,aOCcQWOLD,aOOQU!$(!o!$(!oOOQU!.K;`!.K;`O'@cQ07bOG27QOOQ?Mp!$( {!$( {O$(PQWO!$( {OOQ?Mp!)9Eg!)9EgO!(oQ^O'#DwO1PQWO'#EUO'BUQrO'#JmO'B]QMnO'#DsO'BdQ^O'#D{O'BkQrO'#CiO'ERQrO'#CiO!(oQ^O'#D}O'EcQ^O,5;WO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O'#IlO'GfQWO,5<gO!(oQ^O,5;bO'GnQ7[O,5;bO'IXQ7[O,5;bO!(oQ^O,5;vO!&_Q7[O'#GjO'GnQ7[O'#GjO!&_Q7[O'#GlO'GnQ7[O'#GlO1SQWO'#DWO1SQWO'#DWO!&_Q7[O'#F}O'GnQ7[O'#F}O!&_Q7[O'#GPO'GnQ7[O'#GPO!&_Q7[O'#G_O'GnQ7[O'#G_O!(oQ^O,5:gO'I`Q`O'#D[O!(oQ^O,5@jO'EcQ^O1G0rO'IjQ07bO'#CiO!(oQ^O1G2OO!&_Q7[O'#IqO'GnQ7[O'#IqO!&_Q7[O'#IsO'GnQ7[O'#IsO'ItQpO'#CrO!&_Q7[O,5<rO'GnQ7[O,5<rO'EcQ^O1G2PO!(oQ^O7+&yO!&_Q7[O1G2^O'GnQ7[O1G2^O!&_Q7[O'#IqO'GnQ7[O'#IqO!&_Q7[O'#IsO'GnQ7[O'#IsO!&_Q7[O1G2`O'GnQ7[O1G2`O'EcQ^O7+'kO'EcQ^O7+&^O!&_Q7[OANAfO'GnQ7[OANAfO'JXQWO'#ElO'J^QWO'#ElO'JfQWO'#F[O'JkQWO'#EvO'JpQWO'#KOO'J{QWO'#J|O'KWQWO,5;WO'K]Q7[O,5<dO'KdQWO'#GWO'KiQWO'#GWO'KnQWO,5<eO'KvQWO,5;WO'LOQ07bO1G1_O'LVQWO,5<rO'L[QWO,5<rO'LaQWO,5<tO'LfQWO,5<tO'LkQWO1G2PO'LpQWO1G0rO'LuQ7[O<<KzO'L|Q7[O<<KzO7eQ7[O'#FzO9RQWO'#FyOAaQWO'#EkO!(oQ^O,5;sO!3SQWO'#GWO!3SQWO'#GWO!3SQWO'#GYO!3SQWO'#GYO!+hQ7[O7+(`O!+hQ7[O7+(`O%+SQpO1G2tO%+SQpO1G2tO!&_Q7[O,5=YO!&_Q7[O,5=Y",stateData:"'NQ~O'wOS'xOSTOS'yRQ~OPYOQYOSfOY!VOaqOdzOeyOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![XO!fuO!iZO!lYO!mYO!nYO!pvO!rwO!uxO!y]O#t!PO$V|O%e}O%g!QO%i!OO%j!OO%k!OO%n!RO%p!SO%s!TO%t!TO%v!UO&S!WO&Y!XO&[!YO&^!ZO&`![O&c!]O&i!^O&o!_O&q!`O&s!aO&u!bO&w!cO(OSO(QTO(TUO([VO(j[O(yiO~OWtO~P`OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oa!wOp!nO!P!oO!_!yO!`!vO!a!vO!y;QO#Q!pO#R!pO#S!xO#T!pO#U!pO#X!zO#Y!zO(P!lO(QTO(TUO(`!mO(j!sO~O'y!{O~OP]XR]X[]Xa]Xo]X}]X!P]X!Y]X!i]X!m]X#O]X#P]X#]]X#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X'u]X([]X(m]X(t]X(u]X~O!d%PX~P(qO_!}O(Q#PO(R!}O(S#PO~O_#QO(S#PO(T#PO(U#QO~Ou#SO!R#TO(]#TO(^#VO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(O;UO(QTO(TUO([VO(j[O(yiO~O!X#ZO!Y#WO!V(cP!V(qP~P+}O!Z#cO~P`OPYOQYOSfOd!jOe!iOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(QTO(TUO([VO(j[O(yiO~Om#mO!X#iO!y]O#f#lO#g#iO(O;VO!h(nP~P.iO!i#oO(O#nO~O!u#sO!y]O%e#tO~O#h#uO~O!d#vO#h#uO~OP$[OR#zO[$cOo$aO}#yO!P#{O!Y$_O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO#y$WO#z$XO([VO(m$YO(t#|O(u#}O~Oa(aX'u(aX's(aX!h(aX!V(aX![(aX%f(aX!d(aX~P1qO#P$dO#]$eO$P$eOP(bXR(bX[(bXo(bX}(bX!P(bX!Y(bX!i(bX!m(bX#O(bX#k(bX#l(bX#m(bX#n(bX#o(bX#p(bX#q(bX#r(bX#s(bX#u(bX#w(bX#y(bX#z(bX([(bX(m(bX(t(bX(u(bX![(bX%f(bX~Oa(bX'u(bX's(bX!V(bX!h(bXs(bX!d(bX~P4UO#]$eO~O$[$hO$^$gO$e$mO~OSfO![$nO$h$oO$j$qO~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{%[O!P${O![$|O!f%aO!i$xO#g%bO$V%_O$r%]O$t%^O$w%`O(O$sO(QTO(TUO([$uO(t$}O(u%POg(XP~O!i%cO~O!P%fO![%gO(O%eO~O!d%kO~Oa%lO'u%lO~O}%pO~P%[O(P!lO~P%[O%k%tO~P%[Oh%VO!i%cO(O%eO(P!lO~Oe%{O!i%cO(O%eO~O#s$RO~O}&QO![%}O!i&PO%g&TO(O%eO(P!lO(QTO(TUO`)SP~O!u#sO~O%p&VO!P)OX![)OX(O)OX~O(O&WO~O!r&]O#t!PO%g!QO%i!OO%j!OO%k!OO%n!RO%p!SO%s!TO%t!TO~Od&bOe&aO!u&_O%e&`O%x&^O~P;|Od&eOeyO![&dO!r&]O!uxO!y]O#t!PO%e}O%i!OO%j!OO%k!OO%n!RO%p!SO%s!TO%t!TO%v!UO~Ob&hO#]&kO%g&fO(P!lO~P=RO!i&lO!r&pO~O!i#oO~O![XO~Oa%lO't&xO'u%lO~Oa%lO't&{O'u%lO~Oa%lO't&}O'u%lO~O's]X!V]Xs]X!h]X&W]X![]X%f]X!d]X~P(qO!_'[O!`'TO!a'TO(P!lO(QTO(TUO~Op'RO!P'QO!X'UO(`'PO!Z(dP!Z(sP~P@YOk'_O![']O(O%eO~Oe'dO!i%cO(O%eO~O}&QO!i&PO~Op!nO!P!oO!y;QO#Q!pO#R!pO#T!pO#U!pO(P!lO(QTO(TUO(`!mO(j!sO~O!_'jO!`'iO!a'iO#S!pO#X'kO#Y'kO~PAtOa%lOh%VO!d#vO!i%cO'u%lO(m'mO~O!m'qO#]'oO~PCSOp!nO!P!oO(QTO(TUO(`!mO(j!sO~O![XOp(hX!P(hX!_(hX!`(hX!a(hX!y(hX#Q(hX#R(hX#S(hX#T(hX#U(hX#X(hX#Y(hX(P(hX(Q(hX(T(hX(`(hX(j(hX~O!`'iO!a'iO(P!lO~PCrO'z'uO'{'uO'|'wO~O_!}O(Q'yO(R!}O(S'yO~O_#QO(S'yO(T'yO(U#QO~Ou#SO!R#TO(]#TO(^'}O~O!X(PO!V'SX!V'YX!Y'SX!Y'YX~P+}O!Y(RO!V(cX~OP$[OR#zO[$cOo$aO}#yO!P#{O!Y(RO!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO#y$WO#z$XO([VO(m$YO(t#|O(u#}O~O!V(cX~PGfO!V(WO~O!V(pX!Y(pX!d(pX!h(pX(m(pX~O#](pX#h#aX!Z(pX~PIiO#](XO!V(rX!Y(rX~O!Y(YO!V(qX~O!V(]O~O#]$eO~PIiO!Z(^O~P`OR#zO}#yO!P#{O!i#xO([VOP!ka[!kao!ka!Y!ka!m!ka#O!ka#k!ka#l!ka#m!ka#n!ka#o!ka#p!ka#q!ka#r!ka#s!ka#u!ka#w!ka#y!ka#z!ka(m!ka(t!ka(u!ka~Oa!ka'u!ka's!ka!V!ka!h!kas!kaXO(QTO(TUO([VO(j[O(y<xO~O!Y$_Oa$oa'u$oa's$oa!h$oa!V$oa![$oa%f$oa!d$oa~O#t)`O~P!&_Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{%[O!P${O![$|O!f%aO!i$xO#g%bO$V%_O$r%]O$t%^O$w%`O(O(rO(QTO(TUO([$uO(t$}O(u%PO~Og(kP~P!+hO})eO!d)dO![$]X$Y$]X$[$]X$^$]X$e$]X~O!d)dO![(vX$Y(vX$[(vX$^(vX$e(vX~O})eO~P!-qO})eO![(vX$Y(vX$[(vX$^(vX$e(vX~O![)gO$Y)kO$[)fO$^)fO$e)lO~O!X)oO~P!(oO$[$hO$^$gO$e)sO~Ok$xX}$xX!P$xX#P$xX(t$xX(u$xX~OgjXg$xXkjX!YjX#]jX~P!/gOu)uO(])vO(^)xO~Ok*RO})zO!P){O(t$}O(u%PO~Og)yO~P!0kOg*SO~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{;nO!P*UO![*VO!f=OO!i$xO#g;tO$V%_O$r;pO$t;rO$w%`O(QTO(TUO([$uO(t$}O(u%PO~O!X*YO(O*TO!h(zP~P!1YO#h*[O~O!i*]O~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{;nO!P${O![$|O!f=OO!i$xO#g;tO$V%_O$r;pO$t;rO$w%`O(O*_O(QTO(TUO([$uO(t$}O(u%PO~O!X*bO!V({P~P!3XOo*nO!P*fO!_*lO!`*eO!a*eO!i*]O#X*mO%]*hO(P!lO(`!mO~O!Z*kO~P!4|O#P$dOk(ZX}(ZX!P(ZX(t(ZX(u(ZX!Y(ZX#](ZX~Og(ZX#}(ZX~P!5uOk*sO#]*rOg(YX!Y(YX~O!Y*tOg(XX~O(O&WOg(XP~Op*wO~O!i*|O~O(O(rO~Om+QO!P%fO!X#iO![%gO!y]O#f#lO#g#iO(O%eO!h(nP~O!d#vO#h+RO~O!P%fO!X+TO!Y(YO![%gO(O%eO!V(qP~Op'XO!P+VO!X+UO(QTO(TUO(`(xO~O!Z(sP~P!8uO!Y+WOa)PX'u)PX~OP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO#y$WO#z$XO([VO(m$YO(t#|O(u#}O~Oa!ga!Y!ga'u!ga's!ga!V!ga!h!gas!ga![!ga%f!ga!d!ga~P!9mOR#zO}#yO!P#{O!i#xO([VOP!oa[!oao!oa!Y!oa!m!oa#O!oa#k!oa#l!oa#m!oa#n!oa#o!oa#p!oa#q!oa#r!oa#s!oa#u!oa#w!oa#y!oa#z!oa(m!oa(t!oa(u!oa~Oa!oa'u!oa's!oa!V!oa!h!oas!oa![!oa%f!oa!d!oa~P!<TOR#zO}#yO!P#{O!i#xO([VOP!qa[!qao!qa!Y!qa!m!qa#O!qa#k!qa#l!qa#m!qa#n!qa#o!qa#p!qa#q!qa#r!qa#s!qa#u!qa#w!qa#y!qa#z!qa(m!qa(t!qa(u!qa~Oa!qa'u!qa's!qa!V!qa!h!qas!qa![!qa%f!qa!d!qa~P!>kOh%VOk+aO![']O%f+`O~O!d+cOa(WX![(WX'u(WX!Y(WX~Oa%lO![XO'u%lO~Oh%VO!i%cO~Oh%VO!i%cO(O%eO~O!d#vO#h(tO~Ob+nO%g+oO(O+kO(QTO(TUO!Z)TP~O!Y+pO`)SX~O[+tO~O`+uO~O![%}O(O%eO(P!lO`)SP~Oh%VO#]+zO~Oh%VOk+}O![$|O~O![,PO~O},RO![XO~O%k%tO~O!u,WO~Oe,]O~Ob,^O(O#nO(QTO(TUO!Z)RP~Oe%{O~O%g!QO(O&WO~P=RO[,cO`,bO~OPYOQYOSfOdzOeyOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO!fuO!iZO!lYO!mYO!nYO!pvO!uxO!y]O%e}O(QTO(TUO([VO(j[O(yiO~O![!eO!r!gO$V!kO(O!dO~P!EkO`,bOa%lO'u%lO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oa,hO!rwO#t!OO%i!OO%j!OO%k!OO~P!HTO!i&lO~O&Y,nO~O![,pO~O&k,rO&m,sOP&haQ&haS&haY&haa&had&hae&ham&hao&hap&haq&haw&hay&ha{&ha!P&ha!T&ha!U&ha![&ha!f&ha!i&ha!l&ha!m&ha!n&ha!p&ha!r&ha!u&ha!y&ha#t&ha$V&ha%e&ha%g&ha%i&ha%j&ha%k&ha%n&ha%p&ha%s&ha%t&ha%v&ha&S&ha&Y&ha&[&ha&^&ha&`&ha&c&ha&i&ha&o&ha&q&ha&s&ha&u&ha&w&ha's&ha(O&ha(Q&ha(T&ha([&ha(j&ha(y&ha!Z&ha&a&hab&ha&f&ha~O(O,xO~Oh!bX!Y!OX!Z!OX!d!OX!d!bX!i!bX#]!OX~O!Y!bX!Z!bX~P# ZO!d,}O#],|Oh(eX!Y#eX!Y(eX!Z#eX!Z(eX!d(eX!i(eX~Oh%VO!d-PO!i%cO!Y!^X!Z!^X~Op!nO!P!oO(QTO(TUO(`!mO~OP;POQ;POSfOd<zOe!iOmkOo;POpkOqkOwkOy;PO{;PO!PWO!TkO!UkO![!eO!f;SO!iZO!l;PO!m;PO!n;PO!p;TO!r;WO!u!hO$V!kO(QTO(TUO([VO(j[O(y<xO~O(O;zO~P##_O!Y-TO!Z(dX~O!Z-VO~O!d,}O#],|O!Y#eX!Z#eX~O!Y-WO!Z(sX~O!Z-YO~O!`-ZO!a-ZO(P!lO~P#!|O!Z-^O~P'_Ok-aO![']O~O!V-fO~Op!xa!_!xa!`!xa!a!xa#Q!xa#R!xa#S!xa#T!xa#U!xa#X!xa#Y!xa(P!xa(Q!xa(T!xa(`!xa(j!xa~P!#ZO!m-kO#]-iO~PCSO!`-mO!a-mO(P!lO~PCrOa%lO#]-iO'u%lO~Oa%lO!d#vO#]-iO'u%lO~Oa%lO!d#vO!m-kO#]-iO'u%lO(m'mO~O'z'uO'{'uO'|-rO~Os-sO~O!V'Sa!Y'Sa~P!9mO!X-wO!V'SX!Y'SX~P%[O!Y(RO!V(ca~O!V(ca~PGfO!Y(YO!V(qa~O!P%fO!X-{O![%gO(O%eO!V'YX!Y'YX~O#]-}O!Y(oa!h(oaa(oa'u(oa~O!d#vO~P#+eO!Y(fO!h(na~O!P%fO![%gO#g.RO(O%eO~Om.WO!P%fO!X.TO![%gO!y]O#f.VO#g.TO(O%eO!Y']X!h']X~OR.[O!i#xO~Oh%VOk._O![']O%f.^O~Oa#`i!Y#`i'u#`i's#`i!V#`i!h#`is#`i![#`i%f#`i!d#`i~P!9mOk=UO})zO!P){O(t$}O(u%PO~O#h#[aa#[a#]#[a'u#[a!Y#[a!h#[a![#[a!V#[a~P#.aO#h(ZXP(ZXR(ZX[(ZXa(ZXo(ZX!i(ZX!m(ZX#O(ZX#k(ZX#l(ZX#m(ZX#n(ZX#o(ZX#p(ZX#q(ZX#r(ZX#s(ZX#u(ZX#w(ZX#y(ZX#z(ZX'u(ZX([(ZX(m(ZX!h(ZX!V(ZX's(ZXs(ZX![(ZX%f(ZX!d(ZX~P!5uO!Y.lO!h(fX~P!9mO!h.oO~O!V.qO~OP$[OR#zO}#yO!P#{O!i#xO!m$[O([VO[#jia#jio#ji!Y#ji#O#ji#l#ji#m#ji#n#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji'u#ji(m#ji(t#ji(u#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#k#ji~P#1|O#k$OO~P#1|OP$[OR#zOo$aO}#yO!P#{O!i#xO!m$[O#k$OO#l$PO#m$PO#n$PO([VO[#jia#ji!Y#ji#O#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji'u#ji(m#ji(t#ji(u#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#o#ji~P#4kO#o$QO~P#4kOP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO([VOa#ji!Y#ji#w#ji#y#ji#z#ji'u#ji(m#ji(t#ji(u#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#u#ji~P#7YOP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO([VO(u#}Oa#ji!Y#ji#y#ji#z#ji'u#ji(m#ji(t#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#w$UO~P#9pO#w#ji~P#9pO#u$SO~P#7YOP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO([VO(t#|O(u#}Oa#ji!Y#ji#z#ji'u#ji(m#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#y#ji~P#<fO#y$WO~P#<fOP]XR]X[]Xo]X}]X!P]X!i]X!m]X#O]X#P]X#]]X#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X([]X(m]X(t]X(u]X!Y]X!Z]X~O#}]X~P#?TOP$[OR#zO[;hOo;fO}#yO!P#{O!i#xO!m$[O#O;]O#k;YO#l;ZO#m;ZO#n;ZO#o;[O#p;]O#q;]O#r;gO#s;]O#u;^O#w;`O#y;bO#z;cO([VO(m$YO(t#|O(u#}O~O#}.sO~P#AbO#P$dO#];iO$P;iO#}(bX!Z(bX~P! YOa'`a!Y'`a'u'`a's'`a!h'`a!V'`as'`a!['`a%f'`a!d'`a~P!9mO[#jia#jio#ji!Y#ji#O#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji'u#ji(m#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~OP$[OR#zO}#yO!P#{O!i#xO!m$[O#k$OO#l$PO#m$PO#n$PO([VO(t#ji(u#ji~P#DdOk=UO})zO!P){O(t$}O(u%POP#jiR#ji!i#ji!m#ji#k#ji#l#ji#m#ji#n#ji([#ji~P#DdO!Y.wOg(kX~P!0kOg.yO~Oa$Oi!Y$Oi'u$Oi's$Oi!V$Oi!h$Ois$Oi![$Oi%f$Oi!d$Oi~P!9mO$[.zO$^.zO~O$[.{O$^.{O~O!d)dO#].|O![$bX$Y$bX$[$bX$^$bX$e$bX~O!X.}O~O![)gO$Y/PO$[)fO$^)fO$e/QO~O!Y;dO!Z(aX~P#AbO!Z/RO~O!d)dO$e(vX~O$e/TO~Ou)uO(])vO(^/WO~O!V/[O~P!&_O(t$}Ok%^a}%^a!P%^a(u%^a!Y%^a#]%^a~Og%^a#}%^a~P#K^O(u%POk%`a}%`a!P%`a(t%`a!Y%`a#]%`a~Og%`a#}%`a~P#LPO!YfX!dfX!hfX!h$xX(mfX~P!/gO!X/eO!Y(YO(O/dO!V(qP!V({P~P!1YOo*nO!_*lO!`*eO!a*eO!i*]O#X*mO%]*hO(P!lO~Op'XO!P/fO!X+UO!Z*kO(QTO(TUO(`;wO!Z(sP~P#MjO!h/gO~P#.aO!Y/hO!d#vO(m'mO!h(zX~O!h/mO~O!P%fO!X*YO![%gO(O%eO!h(zP~O#h/oO~O!V$xX!Y$xX!d%PX~P!/gO!Y/pO!V({X~P#.aO!d/rO~O!V/tO~Oh%VOo/xO!d#vO!i%cO(m'mO~O(O/zO~O!d+cO~Oa%lO!Y0OO'u%lO~O!Z0QO~P!4|O!`0RO!a0RO(P!lO(`!mO~O!P0TO(`!mO~O#X0UO~Og%^a!Y%^a#]%^a#}%^a~P!0kOg%`a!Y%`a#]%`a#}%`a~P!0kO(O&WOg'iX!Y'iX~O!Y*tOg(Xa~Og0_O~OR0`O}0`O!P0aO#P$dOkza(tza(uza!Yza#]za~Ogza#}za~P$%]O})zO!P){Ok$qa(t$qa(u$qa!Y$qa#]$qa~Og$qa#}$qa~P$&UO})zO!P){Ok$sa(t$sa(u$sa!Y$sa#]$sa~Og$sa#}$sa~P$&wO#h0dO~Og%Ra!Y%Ra#]%Ra#}%Ra~P!0kO!d#vO~O#h0gO~O!Y+WOa)Pa'u)Pa~OR#zO}#yO!P#{O!i#xO([VOP!oi[!oio!oi!Y!oi!m!oi#O!oi#k!oi#l!oi#m!oi#n!oi#o!oi#p!oi#q!oi#r!oi#s!oi#u!oi#w!oi#y!oi#z!oi(m!oi(t!oi(u!oi~Oa!oi'u!oi's!oi!V!oi!h!ois!oi![!oi%f!oi!d!oi~P$(fOh%VOo%XOp$tOq$tOw%YOy%ZO{;nO!P${O![$|O!f=OO!i$xO#g;tO$V%_O$r;pO$t;rO$w%`O(QTO(TUO([$uO(t$}O(u%PO~Om0pO(O0oO~P$*|O!d+cOa(Wa![(Wa'u(Wa!Y(Wa~O#h0vO~O[]X!YfX!ZfX~O!Y0wO!Z)TX~O!Z0yO~O[0zO~Ob0|O(O+kO(QTO(TUO~O![%}O(O%eO`'qX!Y'qX~O!Y+pO`)Sa~O!h1PO~P!9mO[1SO~O`1TO~O#]1WO~Ok1ZO![$|O~O(`(xO!Z)QP~Oh%VOk1dO![1aO%f1cO~O[1nO!Y1lO!Z)RX~O!Z1oO~O`1qOa%lO'u%lO~O(O#nO(QTO(TUO~O#P$dO#]$eO$P$eOP(bXR(bX[(bXo(bX}(bX!P(bX!Y(bX!i(bX!m(bX#O(bX#k(bX#l(bX#m(bX#n(bX#o(bX#p(bX#q(bX#r(bX#u(bX#w(bX#y(bX#z(bX([(bX(m(bX(t(bX(u(bX~O#s1tO&W1uOa(bX~P$0dO#]$eO#s1tO&W1uO~Oa1wO~P%[Oa1yO~O&a1|OP&_iQ&_iS&_iY&_ia&_id&_ie&_im&_io&_ip&_iq&_iw&_iy&_i{&_i!P&_i!T&_i!U&_i![&_i!f&_i!i&_i!l&_i!m&_i!n&_i!p&_i!r&_i!u&_i!y&_i#t&_i$V&_i%e&_i%g&_i%i&_i%j&_i%k&_i%n&_i%p&_i%s&_i%t&_i%v&_i&S&_i&Y&_i&[&_i&^&_i&`&_i&c&_i&i&_i&o&_i&q&_i&s&_i&u&_i&w&_i's&_i(O&_i(Q&_i(T&_i([&_i(j&_i(y&_i!Z&_ib&_i&f&_i~Ob2SO!Z2QO&f2RO~P`O![XO!i2UO~O&m,sOP&hiQ&hiS&hiY&hia&hid&hie&him&hio&hip&hiq&hiw&hiy&hi{&hi!P&hi!T&hi!U&hi![&hi!f&hi!i&hi!l&hi!m&hi!n&hi!p&hi!r&hi!u&hi!y&hi#t&hi$V&hi%e&hi%g&hi%i&hi%j&hi%k&hi%n&hi%p&hi%s&hi%t&hi%v&hi&S&hi&Y&hi&[&hi&^&hi&`&hi&c&hi&i&hi&o&hi&q&hi&s&hi&u&hi&w&hi's&hi(O&hi(Q&hi(T&hi([&hi(j&hi(y&hi!Z&hi&a&hib&hi&f&hi~O!V2[O~O!Y!^a!Z!^a~P#AbOp!nO!P!oO!X2bO(`!mO!Y'TX!Z'TX~P@YO!Y-TO!Z(da~O!Y'ZX!Z'ZX~P!8uO!Y-WO!Z(sa~O!Z2iO~P'_Oa%lO#]2rO'u%lO~Oa%lO!d#vO#]2rO'u%lO~Oa%lO!d#vO!m2vO#]2rO'u%lO(m'mO~Oa%lO'u%lO~P!9mO!Y$_Os$oa~O!V'Si!Y'Si~P!9mO!Y(RO!V(ci~O!Y(YO!V(qi~O!V(ri!Y(ri~P!9mO!Y(oi!h(oia(oi'u(oi~P!9mO#]2xO!Y(oi!h(oia(oi'u(oi~O!Y(fO!h(ni~O!P%fO![%gO!y]O#f2}O#g2|O(O%eO~O!P%fO![%gO#g2|O(O%eO~Ok3UO![']O%f3TO~Oh%VOk3UO![']O%f3TO~O#h%^aP%^aR%^a[%^aa%^ao%^a!i%^a!m%^a#O%^a#k%^a#l%^a#m%^a#n%^a#o%^a#p%^a#q%^a#r%^a#s%^a#u%^a#w%^a#y%^a#z%^a'u%^a([%^a(m%^a!h%^a!V%^a's%^as%^a![%^a%f%^a!d%^a~P#K^O#h%`aP%`aR%`a[%`aa%`ao%`a!i%`a!m%`a#O%`a#k%`a#l%`a#m%`a#n%`a#o%`a#p%`a#q%`a#r%`a#s%`a#u%`a#w%`a#y%`a#z%`a'u%`a([%`a(m%`a!h%`a!V%`a's%`as%`a![%`a%f%`a!d%`a~P#LPO#h%^aP%^aR%^a[%^aa%^ao%^a!Y%^a!i%^a!m%^a#O%^a#k%^a#l%^a#m%^a#n%^a#o%^a#p%^a#q%^a#r%^a#s%^a#u%^a#w%^a#y%^a#z%^a'u%^a([%^a(m%^a!h%^a!V%^a's%^a#]%^as%^a![%^a%f%^a!d%^a~P#.aO#h%`aP%`aR%`a[%`aa%`ao%`a!Y%`a!i%`a!m%`a#O%`a#k%`a#l%`a#m%`a#n%`a#o%`a#p%`a#q%`a#r%`a#s%`a#u%`a#w%`a#y%`a#z%`a'u%`a([%`a(m%`a!h%`a!V%`a's%`a#]%`as%`a![%`a%f%`a!d%`a~P#.aO#hzaPza[zaazaoza!iza!mza#Oza#kza#lza#mza#nza#oza#pza#qza#rza#sza#uza#wza#yza#zza'uza([za(mza!hza!Vza'szasza![za%fza!dza~P$%]O#h$qaP$qaR$qa[$qaa$qao$qa!i$qa!m$qa#O$qa#k$qa#l$qa#m$qa#n$qa#o$qa#p$qa#q$qa#r$qa#s$qa#u$qa#w$qa#y$qa#z$qa'u$qa([$qa(m$qa!h$qa!V$qa's$qas$qa![$qa%f$qa!d$qa~P$&UO#h$saP$saR$sa[$saa$sao$sa!i$sa!m$sa#O$sa#k$sa#l$sa#m$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#u$sa#w$sa#y$sa#z$sa'u$sa([$sa(m$sa!h$sa!V$sa's$sas$sa![$sa%f$sa!d$sa~P$&wO#h%RaP%RaR%Ra[%Raa%Rao%Ra!Y%Ra!i%Ra!m%Ra#O%Ra#k%Ra#l%Ra#m%Ra#n%Ra#o%Ra#p%Ra#q%Ra#r%Ra#s%Ra#u%Ra#w%Ra#y%Ra#z%Ra'u%Ra([%Ra(m%Ra!h%Ra!V%Ra's%Ra#]%Ras%Ra![%Ra%f%Ra!d%Ra~P#.aOa#`q!Y#`q'u#`q's#`q!V#`q!h#`qs#`q![#`q%f#`q!d#`q~P!9mO!X3^O!Y'UX!h'UX~P%[O!Y.lO!h(fa~O!Y.lO!h(fa~P!9mO!V3aO~O#}!ka!Z!ka~PKPO#}!ga!Y!ga!Z!ga~P#AbO#}!oa!Z!oa~P!<TO#}!qa!Z!qa~P!>kOg'XX!Y'XX~P!+hO!Y.wOg(ka~OSfO![3uO$c3vO~O!Z3zO~Os3{O~P#.aOa$lq!Y$lq'u$lq's$lq!V$lq!h$lqs$lq![$lq%f$lq!d$lq~P!9mO!V3|O~P#.aO})zO!P){O(u%POk'ea(t'ea!Y'ea#]'ea~Og'ea#}'ea~P%)nO})zO!P){Ok'ga(t'ga(u'ga!Y'ga#]'ga~Og'ga#}'ga~P%*aO(m$YO~P#.aO!VfX!V$xX!YfX!Y$xX!d%PX#]fX~P!/gO(O<QO~P!1YOmkO(O4OO~P.iO!P%fO!X4QO![%gO(O%eO!Y'aX!h'aX~O!Y/hO!h(za~O!Y/hO!d#vO!h(za~O!Y/hO!d#vO(m'mO!h(za~Og$zi!Y$zi#]$zi#}$zi~P!0kO!X4YO!V'cX!Y'cX~P!3XO!Y/pO!V({a~O!Y/pO!V({a~P#.aO!d#vO#s4bO~Oo4eO!d#vO(m'mO~O!P4hO(`!mO~O(t$}Ok%^i}%^i!P%^i(u%^i!Y%^i#]%^i~Og%^i#}%^i~P%.wO(u%POk%`i}%`i!P%`i(t%`i!Y%`i#]%`i~Og%`i#}%`i~P%/jOg(Yi!Y(Yi~P!0kO#]4mOg(Yi!Y(Yi~P!0kO!h4pO~Oa$mq!Y$mq'u$mq's$mq!V$mq!h$mqs$mq![$mq%f$mq!d$mq~P!9mO!V4tO~O!Y4uO![(|X~P#.aOa$xX![$xX%Z]X'u$xX!Y$xX~P!/gO%Z4xOalXklX}lX!PlX![lX'ulX(tlX(ulX!YlX~O%Z4xO~Ob5OO%g5PO(O+kO(QTO(TUO!Y'pX!Z'pX~O!Y0wO!Z)Ta~O[5TO~O`5UO~Oa%lO'u%lO~P#.aO![$|O~P#.aO!Y5^O#]5`O!Z)QX~O!Z5aO~Oo5hOp!nO!P5bO!_!yO!`!vO!a!vO!y;QO#Q!pO#R!pO#S!pO#T!pO#U!pO#X5gO#Y!zO(P!lO(QTO(TUO(`!mO(j!sO~O!Z5fO~P%4tOk5mO![1aO%f5lO~Oh%VOk5mO![1aO%f5lO~Ob5tO(O#nO(QTO(TUO!Y'oX!Z'oX~O!Y1lO!Z)Ra~O(QTO(TUO(`5vO~O`5zO~O#s5}O&W6OO~PMlO!h6PO~P%[Oa6RO~Oa6RO~P%[Ob2SO!Z6WO&f2RO~P`O!d6YO~O!d6[Oh(ei!Y(ei!Z(ei!d(ei!i(ei~O!Y#ei!Z#ei~P#AbO#]6]O!Y#ei!Z#ei~O!Y!^i!Z!^i~P#AbOa%lO#]6fO'u%lO~Oa%lO!d#vO#]6fO'u%lO~O!Y(oq!h(oqa(oq'u(oq~P!9mO!Y(fO!h(nq~O!P%fO![%gO#g6mO(O%eO~O![']O%f6pO~Ok6tO![']O%f6pO~O#h'eaP'eaR'ea['eaa'eao'ea!i'ea!m'ea#O'ea#k'ea#l'ea#m'ea#n'ea#o'ea#p'ea#q'ea#r'ea#s'ea#u'ea#w'ea#y'ea#z'ea'u'ea(['ea(m'ea!h'ea!V'ea's'eas'ea!['ea%f'ea!d'ea~P%)nO#h'gaP'gaR'ga['gaa'gao'ga!i'ga!m'ga#O'ga#k'ga#l'ga#m'ga#n'ga#o'ga#p'ga#q'ga#r'ga#s'ga#u'ga#w'ga#y'ga#z'ga'u'ga(['ga(m'ga!h'ga!V'ga's'gas'ga!['ga%f'ga!d'ga~P%*aO#h$ziP$ziR$zi[$zia$zio$zi!Y$zi!i$zi!m$zi#O$zi#k$zi#l$zi#m$zi#n$zi#o$zi#p$zi#q$zi#r$zi#s$zi#u$zi#w$zi#y$zi#z$zi'u$zi([$zi(m$zi!h$zi!V$zi's$zi#]$zis$zi![$zi%f$zi!d$zi~P#.aO#h%^iP%^iR%^i[%^ia%^io%^i!i%^i!m%^i#O%^i#k%^i#l%^i#m%^i#n%^i#o%^i#p%^i#q%^i#r%^i#s%^i#u%^i#w%^i#y%^i#z%^i'u%^i([%^i(m%^i!h%^i!V%^i's%^is%^i![%^i%f%^i!d%^i~P%.wO#h%`iP%`iR%`i[%`ia%`io%`i!i%`i!m%`i#O%`i#k%`i#l%`i#m%`i#n%`i#o%`i#p%`i#q%`i#r%`i#s%`i#u%`i#w%`i#y%`i#z%`i'u%`i([%`i(m%`i!h%`i!V%`i's%`is%`i![%`i%f%`i!d%`i~P%/jO!Y'Ua!h'Ua~P!9mO!Y.lO!h(fi~O#}#`i!Y#`i!Z#`i~P#AbOP$[OR#zO}#yO!P#{O!i#xO!m$[O([VO[#jio#ji#O#ji#l#ji#m#ji#n#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~O#k#ji~P%G^O#k;YO~P%G^OP$[OR#zOo;fO}#yO!P#{O!i#xO!m$[O#k;YO#l;ZO#m;ZO#n;ZO([VO[#ji#O#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~O#o#ji~P%IfO#o;[O~P%IfOP$[OR#zO[;hOo;fO}#yO!P#{O!i#xO!m$[O#O;]O#k;YO#l;ZO#m;ZO#n;ZO#o;[O#p;]O#q;]O#r;gO#s;]O([VO#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~O#u#ji~P%KnOP$[OR#zO[;hOo;fO}#yO!P#{O!i#xO!m$[O#O;]O#k;YO#l;ZO#m;ZO#n;ZO#o;[O#p;]O#q;]O#r;gO#s;]O#u;^O([VO(u#}O#y#ji#z#ji#}#ji(m#ji(t#ji!Y#ji!Z#ji~O#w;`O~P%MoO#w#ji~P%MoO#u;^O~P%KnOP$[OR#zO[;hOo;fO}#yO!P#{O!i#xO!m$[O#O;]O#k;YO#l;ZO#m;ZO#n;ZO#o;[O#p;]O#q;]O#r;gO#s;]O#u;^O#w;`O([VO(t#|O(u#}O#z#ji#}#ji(m#ji!Y#ji!Z#ji~O#y#ji~P&!OO#y;bO~P&!OOa#{y!Y#{y'u#{y's#{y!V#{y!h#{ys#{y![#{y%f#{y!d#{y~P!9mO[#jio#ji#O#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji!Y#ji!Z#ji~OP$[OR#zO}#yO!P#{O!i#xO!m$[O#k;YO#l;ZO#m;ZO#n;ZO([VO(t#ji(u#ji~P&$zOk=VO})zO!P){O(t$}O(u%POP#jiR#ji!i#ji!m#ji#k#ji#l#ji#m#ji#n#ji([#ji~P&$zO#P$dOP(ZXR(ZX[(ZXk(ZXo(ZX}(ZX!P(ZX!i(ZX!m(ZX#O(ZX#k(ZX#l(ZX#m(ZX#n(ZX#o(ZX#p(ZX#q(ZX#r(ZX#s(ZX#u(ZX#w(ZX#y(ZX#z(ZX#}(ZX([(ZX(m(ZX(t(ZX(u(ZX!Y(ZX!Z(ZX~O#}$Oi!Y$Oi!Z$Oi~P#AbO#}!oi!Z!oi~P$(fOg'Xa!Y'Xa~P!0kO!Z7WO~O!Y'`a!Z'`a~P#AbOP]XR]X[]Xo]X}]X!P]X!V]X!Y]X!i]X!m]X#O]X#P]X#]]X#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X([]X(m]X(t]X(u]X~O!d%WX#s%WX~P&+QO!d#vO(m'mO!Y'aa!h'aa~O!Y/hO!h(zi~O!Y/hO!d#vO!h(zi~Og$zq!Y$zq#]$zq#}$zq~P!0kO!V'ca!Y'ca~P#.aO!d7_O~O!Y/pO!V({i~P#.aO!Y/pO!V({i~O!V7cO~O!d#vO#s7hO~Oo7iO!d#vO(m'mO~O})zO!P){O(u%POk'fa(t'fa!Y'fa#]'fa~Og'fa#}'fa~P&/pO})zO!P){Ok'ha(t'ha(u'ha!Y'ha#]'ha~Og'ha#}'ha~P&0cO!V7lO~Og$|q!Y$|q#]$|q#}$|q~P!0kOa$my!Y$my'u$my's$my!V$my!h$mys$my![$my%f$my!d$my~P!9mO!d6[O~O!Y4uO![(|a~O![']OP$SaR$Sa[$Sao$Sa}$Sa!P$Sa!Y$Sa!i$Sa!m$Sa#O$Sa#k$Sa#l$Sa#m$Sa#n$Sa#o$Sa#p$Sa#q$Sa#r$Sa#s$Sa#u$Sa#w$Sa#y$Sa#z$Sa([$Sa(m$Sa(t$Sa(u$Sa~O%f6pO~P&2lOa#`y!Y#`y'u#`y's#`y!V#`y!h#`ys#`y![#`y%f#`y!d#`y~P!9mO[7qO~Ob7sO(O+kO(QTO(TUO~O!Y0wO!Z)Ti~O`7wO~O(`(xO!Y'lX!Z'lX~O!Y5^O!Z)Qa~O!Z8QO~P%4tOp!nO!P8RO(QTO(TUO(`!mO(j!sO~O#X8SO~O![1aO~O![1aO%f8UO~Ok8XO![1aO%f8UO~O[8^O!Y'oa!Z'oa~O!Y1lO!Z)Ri~O!h8bO~O!h8cO~O!h8fO~O!h8fO~P%[Oa8hO~O!d8iO~O!h8jO~O!Y(ri!Z(ri~P#AbOa%lO#]8rO'u%lO~O!Y(oy!h(oya(oy'u(oy~P!9mO!Y(fO!h(ny~O%f8uO~P&2lO![']O%f8uO~O#h$zqP$zqR$zq[$zqa$zqo$zq!Y$zq!i$zq!m$zq#O$zq#k$zq#l$zq#m$zq#n$zq#o$zq#p$zq#q$zq#r$zq#s$zq#u$zq#w$zq#y$zq#z$zq'u$zq([$zq(m$zq!h$zq!V$zq's$zq#]$zqs$zq![$zq%f$zq!d$zq~P#.aO#h'faP'faR'fa['faa'fao'fa!i'fa!m'fa#O'fa#k'fa#l'fa#m'fa#n'fa#o'fa#p'fa#q'fa#r'fa#s'fa#u'fa#w'fa#y'fa#z'fa'u'fa(['fa(m'fa!h'fa!V'fa's'fas'fa!['fa%f'fa!d'fa~P&/pO#h'haP'haR'ha['haa'hao'ha!i'ha!m'ha#O'ha#k'ha#l'ha#m'ha#n'ha#o'ha#p'ha#q'ha#r'ha#s'ha#u'ha#w'ha#y'ha#z'ha'u'ha(['ha(m'ha!h'ha!V'ha's'has'ha!['ha%f'ha!d'ha~P&0cO#h$|qP$|qR$|q[$|qa$|qo$|q!Y$|q!i$|q!m$|q#O$|q#k$|q#l$|q#m$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#u$|q#w$|q#y$|q#z$|q'u$|q([$|q(m$|q!h$|q!V$|q's$|q#]$|qs$|q![$|q%f$|q!d$|q~P#.aO!Y'Ui!h'Ui~P!9mO#}#`q!Y#`q!Z#`q~P#AbO(t$}OP%^aR%^a[%^ao%^a!i%^a!m%^a#O%^a#k%^a#l%^a#m%^a#n%^a#o%^a#p%^a#q%^a#r%^a#s%^a#u%^a#w%^a#y%^a#z%^a#}%^a([%^a(m%^a!Y%^a!Z%^a~Ok%^a}%^a!P%^a(u%^a~P&CoO(u%POP%`aR%`a[%`ao%`a!i%`a!m%`a#O%`a#k%`a#l%`a#m%`a#n%`a#o%`a#p%`a#q%`a#r%`a#s%`a#u%`a#w%`a#y%`a#z%`a#}%`a([%`a(m%`a!Y%`a!Z%`a~Ok%`a}%`a!P%`a(t%`a~P&EsOk=VO})zO!P){O(u%PO~P&CoOk=VO})zO!P){O(t$}O~P&EsOR0`O}0`O!P0aO#P$dOPza[zakzaoza!iza!mza#Oza#kza#lza#mza#nza#oza#pza#qza#rza#sza#uza#wza#yza#zza#}za([za(mza(tza(uza!Yza!Zza~O})zO!P){OP$qaR$qa[$qak$qao$qa!i$qa!m$qa#O$qa#k$qa#l$qa#m$qa#n$qa#o$qa#p$qa#q$qa#r$qa#s$qa#u$qa#w$qa#y$qa#z$qa#}$qa([$qa(m$qa(t$qa(u$qa!Y$qa!Z$qa~O})zO!P){OP$saR$sa[$sak$sao$sa!i$sa!m$sa#O$sa#k$sa#l$sa#m$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#u$sa#w$sa#y$sa#z$sa#}$sa([$sa(m$sa(t$sa(u$sa!Y$sa!Z$sa~Ok=VO})zO!P){O(t$}O(u%PO~OP%RaR%Ra[%Rao%Ra!i%Ra!m%Ra#O%Ra#k%Ra#l%Ra#m%Ra#n%Ra#o%Ra#p%Ra#q%Ra#r%Ra#s%Ra#u%Ra#w%Ra#y%Ra#z%Ra#}%Ra([%Ra(m%Ra!Y%Ra!Z%Ra~P&NlO#}$lq!Y$lq!Z$lq~P#AbO#}$mq!Y$mq!Z$mq~P#AbO!Z9SO~O#}9TO~P!0kO!d#vO!Y'ai!h'ai~O!d#vO(m'mO!Y'ai!h'ai~O!Y/hO!h(zq~O!V'ci!Y'ci~P#.aO!Y/pO!V({q~Oo9[O!d#vO(m'mO~O!V9]O~P#.aO!V9]O~O!d#vO#s9bO~Og(Yy!Y(Yy~P!0kO!Y'ja!['ja~P#.aOa%Yq![%Yq'u%Yq!Y%Yq~P#.aO[9dO~O!Y0wO!Z)Tq~O#]9hO!Y'la!Z'la~O!Y5^O!Z)Qi~P#AbO!P4hO~O![1aO%f9lO~O(QTO(TUO(`9qO~O!Y1lO!Z)Rq~O!h9tO~O!h9uO~O!h9vO~O!h9vO~P%[O#]9yO!Y#ey!Z#ey~O!Y#ey!Z#ey~P#AbO%f:OO~P&2lO![']O%f:OO~O#}#{y!Y#{y!Z#{y~P#AbOP$ziR$zi[$zio$zi!i$zi!m$zi#O$zi#k$zi#l$zi#m$zi#n$zi#o$zi#p$zi#q$zi#r$zi#s$zi#u$zi#w$zi#y$zi#z$zi#}$zi([$zi(m$zi!Y$zi!Z$zi~P&NlO})zO!P){O(u%POP'eaR'ea['eak'eao'ea!i'ea!m'ea#O'ea#k'ea#l'ea#m'ea#n'ea#o'ea#p'ea#q'ea#r'ea#s'ea#u'ea#w'ea#y'ea#z'ea#}'ea(['ea(m'ea(t'ea!Y'ea!Z'ea~O})zO!P){OP'gaR'ga['gak'gao'ga!i'ga!m'ga#O'ga#k'ga#l'ga#m'ga#n'ga#o'ga#p'ga#q'ga#r'ga#s'ga#u'ga#w'ga#y'ga#z'ga#}'ga(['ga(m'ga(t'ga(u'ga!Y'ga!Z'ga~O(t$}OP%^iR%^i[%^ik%^io%^i}%^i!P%^i!i%^i!m%^i#O%^i#k%^i#l%^i#m%^i#n%^i#o%^i#p%^i#q%^i#r%^i#s%^i#u%^i#w%^i#y%^i#z%^i#}%^i([%^i(m%^i(u%^i!Y%^i!Z%^i~O(u%POP%`iR%`i[%`ik%`io%`i}%`i!P%`i!i%`i!m%`i#O%`i#k%`i#l%`i#m%`i#n%`i#o%`i#p%`i#q%`i#r%`i#s%`i#u%`i#w%`i#y%`i#z%`i#}%`i([%`i(m%`i(t%`i!Y%`i!Z%`i~O#}$my!Y$my!Z$my~P#AbO#}#`y!Y#`y!Z#`y~P#AbO!d#vO!Y'aq!h'aq~O!Y/hO!h(zy~O!V'cq!Y'cq~P#.aOo:YO!d#vO(m'mO~O!V:ZO~P#.aO!V:ZO~O!Y0wO!Z)Ty~O!Y5^O!Z)Qq~O![1aO%f:cO~O!h:fO~O%f:kO~P&2lOP$zqR$zq[$zqo$zq!i$zq!m$zq#O$zq#k$zq#l$zq#m$zq#n$zq#o$zq#p$zq#q$zq#r$zq#s$zq#u$zq#w$zq#y$zq#z$zq#}$zq([$zq(m$zq!Y$zq!Z$zq~P&NlO})zO!P){O(u%POP'faR'fa['fak'fao'fa!i'fa!m'fa#O'fa#k'fa#l'fa#m'fa#n'fa#o'fa#p'fa#q'fa#r'fa#s'fa#u'fa#w'fa#y'fa#z'fa#}'fa(['fa(m'fa(t'fa!Y'fa!Z'fa~O})zO!P){OP'haR'ha['hak'hao'ha!i'ha!m'ha#O'ha#k'ha#l'ha#m'ha#n'ha#o'ha#p'ha#q'ha#r'ha#s'ha#u'ha#w'ha#y'ha#z'ha#}'ha(['ha(m'ha(t'ha(u'ha!Y'ha!Z'ha~OP$|qR$|q[$|qo$|q!i$|q!m$|q#O$|q#k$|q#l$|q#m$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#u$|q#w$|q#y$|q#z$|q#}$|q([$|q(m$|q!Y$|q!Z$|q~P&NlOg%b!Z!Y%b!Z#]%b!Z#}%b!Z~P!0kOo:oO!d#vO(m'mO~O!V:pO~P#.aO!Y'lq!Z'lq~P#AbO!Y#e!Z!Z#e!Z~P#AbO#h%b!ZP%b!ZR%b!Z[%b!Za%b!Zo%b!Z!Y%b!Z!i%b!Z!m%b!Z#O%b!Z#k%b!Z#l%b!Z#m%b!Z#n%b!Z#o%b!Z#p%b!Z#q%b!Z#r%b!Z#s%b!Z#u%b!Z#w%b!Z#y%b!Z#z%b!Z'u%b!Z([%b!Z(m%b!Z!h%b!Z!V%b!Z's%b!Z#]%b!Zs%b!Z![%b!Z%f%b!Z!d%b!Z~P#.aOo:xO!d#vO(m'mO~OP%b!ZR%b!Z[%b!Zo%b!Z!i%b!Z!m%b!Z#O%b!Z#k%b!Z#l%b!Z#m%b!Z#n%b!Z#o%b!Z#p%b!Z#q%b!Z#r%b!Z#s%b!Z#u%b!Z#w%b!Z#y%b!Z#z%b!Z#}%b!Z([%b!Z(m%b!Z!Y%b!Z!Z%b!Z~P&NlOs(aX~P1qO}%pO~P!(oO(P!lO~P!(oO!VfX!YfX#]fX~P&+QOP]XR]X[]Xo]X}]X!P]X!Y]X!YfX!i]X!m]X#O]X#P]X#]]X#]fX#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X([]X(m]X(t]X(u]X~O!dfX!h]X!hfX(mfX~P'BxOP;POQ;POSfOd<zOe!iOmkOo;POpkOqkOwkOy;PO{;PO!PWO!TkO!UkO![XO!f;SO!iZO!l;PO!m;PO!n;PO!p;TO!r;WO!u!hO$V!kO(O)XO(QTO(TUO([VO(j[O(y<xO~O!Y;dO!Z$oa~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{;oO!P${O![$|O!f=PO!i$xO#g;uO$V%_O$r;qO$t;sO$w%`O(O(rO(QTO(TUO([$uO(t$}O(u%PO~O#t)`O~P'GnOo!bX(m!bX~P# ZO!Z]X!ZfX~P'BxO!VfX!V$xX!YfX!Y$xX#]fX~P!/gO#h;XO~O!d#vO#h;XO~O#];iO~O#s;]O~O#];xO!Y(rX!Z(rX~O#];iO!Y(pX!Z(pX~O#h;yO~Og;{O~P!0kO#h<RO~O#h<SO~O!d#vO#h<TO~O!d#vO#h;yO~O#}<UO~P#AbO#h<VO~O#h<WO~O#h<]O~O#h<^O~O#h<_O~O#h<`O~O#}<aO~P!0kO#}<bO~P!0kO#P#Q#R#T#U#X#f#g#r(y$r$t$w%Z%e%f%g%n%p%s%t%v%x~'yT#l!U'w(P#mp#k#no}'x$['x(O$^(`~",goto:"$4Q)XPPPPPP)YPP)]P)nP+O/PPPPP5xPP6`PP<V?mP@QP@QPPP@QPBRP@QP@QP@QPBVPB[PByPGrPPPGvPPPPGvJxPPPKOKzPGvPGvPPNYGvPPPGvPGvP!!aGvP!%v!&{!'UP!'x!'|!'x!+YPPPPPPP!+y!&{PP!,Z!-gP!0jGvGv!0o!3z!8b!8b!<`PPP!<hGvPPPPPPPPPPP!?vP!ATPPGv!BfPGvPGvGvGvGvGvPGv!CxP!GRP!JWP!J[!Jf!Jj!JjP!GOP!Jn!JnP!MsP!MwGvGv!M}##RBV@QP@QP@Q@QP#$_@Q@Q#&j@Q#)Z@Q#+`@Q@Q#,O#.]#.]#.b#.k#.]#.wP#.]P@Q#/a@Q#3S@Q@Q5xPPP#6{PPP#7f#7fP#7fP#7|#7fPP#8SP#7yP#7y#8g#7y#9R#9X5u)]#9[)]P#9c#9c#9cP)]P)]P)]P)]PP)]P#9i#9lP#9l)]P#9pP#9sP)]P)]P)]P)]P)]P)])]PP#9y#:P#:[#:b#:h#:n#:t#;S#;Y#;d#;j#;t#;z#<[#<b#=S#=f#=l#=r#>Q#>g#@V#@e#@l#BR#Ba#C|#D[#Db#Dh#Dn#Dx#EO#EU#E`#Er#ExPPPPPPPPPP#FOPPPPPPP#Fs#Iz#KZ#Kb#KjPPP$!sP$!|$%t$,^$,a$,d$-P$-S$-Z$-cP$-i$-lP$.Y$.^$/U$0d$0i$1PPP$1U$1[$1`P$1c$1g$1k$2a$2x$3a$3e$3h$3k$3q$3t$3x$3|R!|RoqOXst!Z#d%k&o&q&r&t,k,p1|2PY!vQ']-]1a5eQ%rvQ%zyQ&R|Q&g!VS'T!e-TQ'c!iS'i!r!yU*e$|*V*jQ+i%{Q+v&TQ,[&aQ-Z'[Q-e'dQ-m'jQ0R*lQ1k,]R;v;T%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V,h,k,p-a-i-w-}.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3^5b5m5}6O6R6f8R8X8h8rS#q];Q!r)Z$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{U*y%[;n;oQ+n%}Q,^&dQ,e&lQ0m+aQ0q+cQ0|+oQ1s,cQ3Q._Q5O0wQ5t1lQ6r3UQ7s5PR8x6t'OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{t!nQ!r!v!y!z'T'[']'i'j'k-T-Z-]-m1a5e5g$|$ti#v$b$c$d$x${%O%Q%]%^%b)u){)}*P*R*U*[*b*r*s+`+c+z+}.^.w/]/e/o/p/r0V0X0d1W1Z1c3T3}4Y4b4m4u4x5l6p7_7h8U8u9T9b9l:O:c:k;g;h;j;k;l;m;p;q;r;s;t;u;|;}<O<P<R<S<V<W<X<Y<Z<[<]<^<a<b<x=Q=R=U=VQ&U|Q'R!eU'X%g*V-WQ+n%}Q,^&dQ0c*|Q0|+oQ1R+uQ1r,bQ1s,cQ5O0wQ5X1TQ5t1lQ5w1nQ5x1qQ7s5PQ7v5UQ8a5zQ9g7wR9r8^rnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PR,`&h&x^OPXYstuvwz!Z!`!g!j!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<z<{[#]WZ#W#Z'U(P!b%hm#h#i#l$x%c%f(Y(d(e(f*U*Y*]+T+U+W,g,}-{.R.S.T.V/e/h2U2|2}4Q6[6mQ%uxQ%yyS&O|&TQ&[!TQ'`!hQ'b!iQ(m#sS+h%z%{Q+l%}Q,V&_Q,Z&aS-d'c'dQ.a(nQ0u+iQ0{+oQ0}+pQ1Q+tQ1f,WS1j,[,]Q2n-eQ4}0wQ5R0zQ5W1SQ5s1kQ7r5PQ7u5TQ9c7qR:^9d!O$zi$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=R!S%wy!i!u%y%z%{'S'b'c'd'h'r*d+h+i-Q-d-e-l/y0u2g2n2u4dQ+b%uQ+{&XQ,O&YQ,Y&aQ.`(mQ1e,VU1i,Z,[,]Q3V.aQ5n1fS5r1j1kQ8]5s#^<|#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vo<};g;h;k;m;q;s;u;}<P<S<W<Y<[<^<bW%Ti%V*t<xS&X!Q&fQ&Y!RQ&Z!SR+y&V$}%Si#v$b$c$d$x${%O%Q%]%^%b)u){)}*P*R*U*[*b*r*s+`+c+z+}.^.w/]/e/o/p/r0V0X0d1W1Z1c3T3}4Y4b4m4u4x5l6p7_7h8U8u9T9b9l:O:c:k;g;h;j;k;l;m;p;q;r;s;t;u;|;}<O<P<R<S<V<W<X<Y<Z<[<]<^<a<b<x=Q=R=U=VT)v$u)wV*y%[;n;oW'X!e%g*V-WS(y#y#zQ+]%pQ+s&QS.Y(i(jQ1[,PQ4n0`R7{5^'OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{$i$^c#Y#e%o%q%s(O(U(p(u(})O)P)Q)R)S)T)U)V)W)Y)[)^)c)m+^+r-R-p-u-z-|.k.n.r.t.u.v/X0e2]2`2p2w3]3b3c3d3e3f3g3h3i3j3k3l3m3n3q3r3y4r4{6_6e6j6y6z7T7U7}8l8p8z9Q9R9{:`:g;R<oT#TV#U'PkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{Q'V!eR2c-Tv!nQ!e!r!v!y!z'T'[']'i'j'k-T-Z-]-m1a5e5gU*d$|*V*jS/y*e*lQ0S*mQ1^,RQ4d0RR4g0UnqOXst!Z#d%k&o&q&r&t,k,p1|2PQ&v!^Q's!xS(o#u;XQ+f%xQ,T&[Q,U&^Q-b'aQ-o'lS.j(t;yS0f+R<TQ0s+gQ1`,SQ2T,rQ2V,sQ2_-OQ2l-cQ2o-gS4s0g<_Q4y0tS4|0v<`Q6^2aQ6b2mQ6g2tQ7p4zQ8m6`Q8n6cQ8q6hR9x8j$d$]c#Y#e%q%s(O(U(p(u(})O)P)Q)R)S)T)U)V)W)Y)[)^)c)m+^+r-R-p-u-z-|.k.n.r.u.v/X0e2]2`2p2w3]3b3c3d3e3f3g3h3i3j3k3l3m3n3q3r3y4r4{6_6e6j6y6z7T7U7}8l8p8z9Q9R9{:`:g;R<oS(k#p'fQ({#zS+[%o.tS.Z(j(lR3O.['OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{S#q];QQ&q!XQ&r!YQ&t![Q&u!]R1{,nQ'^!hQ+_%uQ-`'`S.](m+bQ2j-_W3S.`.a0l0nQ6a2kW6n3P3R3V4wU8t6o6q6sU9}8v8w8yS:i9|:PQ:t:jR:z:uU!wQ']-]T5c1a5e!Q_OXZ`st!V!Z#d#h%c%k&f&h&o&q&r&t(f,k,p.S1|2P]!pQ!r']-]1a5eT#q];Q%[{OPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8rS(y#y#zS.Y(i(j!s<f$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{U$fd)Z,eS(l#p'fU*q%R(s3pU0b*x.f7PQ4w0mQ6o3QQ8w6rR:P8xm!tQ!r!v!y!z']'i'j'k-]-m1a5e5gQ'q!uS(b#g1vS-k'h'tQ/k*XQ/w*dQ2v-nQ4U/lS4_/x0SQ7Z4PS7f4e4gQ9V7[Q9Z7cQ9`7iS:X9[9]S:n:Y:ZS:w:o:pR:}:xQ#wbQ'p!uS(a#g1vS(c#m+QQ+S%dQ+d%vQ+j%|U-j'h'q'tQ.O(bQ/j*XQ/v*dQ/|*gQ0r+eQ1g,XS2s-k-nQ2{.WS4T/k/lS4^/w0SQ4a/{Q4c/}Q5p1hQ6i2vQ7Y4PQ7^4US7b4_4gQ7g4fQ8Z5qS9U7Z7[Q9Y7cQ9^7fQ9a7jQ9o8[Q:V9VS:W9Z9]Q:[9`Q:e9pS:m:X:ZS:v:n:pQ:|:wQ;O:}Q<i<dQ<t<mR<u<nV!wQ']-]%[aOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8rS#wz!j!r<c$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{R<i<z%[bOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8rQ%dj!S%vy!i!u%y%z%{'S'b'c'd'h'r*d+h+i-Q-d-e-l/y0u2g2n2u4dS%|z!jQ+e%wQ,X&aW1h,Y,Z,[,]U5q1i1j1kS8[5r5sQ9p8]!r<d$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{Q<m<yR<n<z%OeOPXYstuvw!Z!`!g!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8rY#bWZ#W#Z(P!b%hm#h#i#l$x%c%f(Y(d(e(f*U*Y*]+T+U+W,g,}-{.R.S.T.V/e/h2U2|2}4Q6[6mQ,f&l!p<e$Z$n)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{R<h'UU'Y!e%g*VR2e-W%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V,h,k,p-a-i-w-}.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3^5b5m5}6O6R6f8R8X8h8r!r)Z$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{Q,e&lQ0m+aQ3Q._Q6r3UR8x6t!b$Tc#Y%o(O(U(p(u)V)W)[)c+r-p-u-z-|.k.n/X0e2p2w3]3m4r4{6e6j6y8p9{;R!P;_)Y)m-R.t2]2`3b3k3l3q3y6_6z7T7U7}8l8z9Q9R:`:g<o!f$Vc#Y%o(O(U(p(u)S)T)V)W)[)c+r-p-u-z-|.k.n/X0e2p2w3]3m4r4{6e6j6y8p9{;R!T;a)Y)m-R.t2]2`3b3h3i3k3l3q3y6_6z7T7U7}8l8z9Q9R:`:g<o!^$Zc#Y%o(O(U(p(u)[)c+r-p-u-z-|.k.n/X0e2p2w3]3m4r4{6e6j6y8p9{;RQ3}/cz<{)Y)m-R.t2]2`3b3q3y6_6z7T7U7}8l8z9Q9R:`:g<oQ=Q=SR=R=T'OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{S$oh$pR3v.|'VgOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.|.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{T$kf$qQ$ifS)f$l)jR)r$qT$jf$qT)h$l)j'VhOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.|.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{T$oh$pQ$rhR)q$p%[jOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8r!s<y$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{#elOPXZst!Z!`!o#S#d#o#{$n%k&h&k&l&o&q&r&t&x'Q'_(z)o+V+a,h,k,p-a._.}/f0a1d1t1u1w1y1|2P2R3U3u5b5m5}6O6R6t8R8X8h!O%Ri$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=R#^(s#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=VQ*}%`Q/Y)zo3p;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<b!O$yi$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=RQ*^$zU*g$|*V*jQ+O%aQ/}*h#^<k#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vn<l;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<bQ<p<|Q<q<}Q<r=OR<s=P!O%Ri$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=R#^(s#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vo3p;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<bnoOXst!Z#d%k&o&q&r&t,k,p1|2PS*a${*UQ,y&{Q,z&}R4X/p$|%Si#v$b$c$d$x${%O%Q%]%^%b)u){)}*P*R*U*[*b*r*s+`+c+z+}.^.w/]/e/o/p/r0V0X0d1W1Z1c3T3}4Y4b4m4u4x5l6p7_7h8U8u9T9b9l:O:c:k;g;h;j;k;l;m;p;q;r;s;t;u;|;}<O<P<R<S<V<W<X<Y<Z<[<]<^<a<b<x=Q=R=U=VQ+|&YQ1Y,OQ5[1XR7z5]V*i$|*V*jU*i$|*V*jT5d1a5eU/{*f/f5bS4f0T8RR7j4hQ+d%vQ/|*gQ0r+eQ1g,XQ5p1hQ8Z5qQ9o8[R:e9p!O%Oi$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=Rr)}$v)a*O*p+P/n0Z0[3s4V4q7X7k:U<j<v<wS0V*o0W#^;j#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vn;k;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<b!`;|(q)_*W*`.b.e.i/U/Z/c/s0k1V1X3Y4W4[5Z5]6u6x7`7d7m7o9X9_:]:l=S=T`;}3o6{7O7S8{:Q:T:{S<X.d3ZT<Y6}9O!O%Qi$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=Rv*P$v)a*Q*o+P/_/n0Z0[3s4V4i4q7X7k:U<j<v<wS0X*p0Y#^;l#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vn;m;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<b!d<O(q)_*W*`.c.d.i/U/Z/c/s0k1V1X3W3Y4W4[5Z5]6u6v6x7`7d7m7o9X9_:]:l=S=Td<P3o6|6}7S8{8|:Q:R:T:{S<Z.e3[T<[7O9PrnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PQ&c!UR,h&lrnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PR&c!UQ,Q&ZR1U+ysnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PQ1b,VS5k1e1fU8T5i5j5nS9k8V8WS:a9j9mQ:q:bR:y:rQ&j!VR,a&fR5w1nS&O|&TR0}+pQ&o!WR,k&pR,q&uT1},p2PR,u&vQ,t&vR2W,uQ'v!{R-q'vSsOtQ#dXT%ns#dQ#OTR'x#OQ#RUR'z#RQ)w$uR/V)wQ#UVR'|#UQ#XWU(S#X(T-xQ(T#YR-x(UQ-U'VR2d-UQ.m(uS3_.m3`R3`.nQ-]']R2h-]Y!rQ']-]1a5eR'g!rQ.x)aR3t.xU#_W%f*UU(Z#_([-yQ([#`R-y(VQ-X'YR2f-Xt`OXst!V!Z#d%k&f&h&o&q&r&t,k,p1|2PS#hZ%cU#r`#h.SR.S(fQ(g#jQ.P(cW.X(g.P2y6kQ2y.QR6k2zQ)j$lR/O)jQ$phR)p$pQ$`cU)]$`-t;eQ-t;RR;e)mQ/i*XW4R/i4S7]9WU4S/j/k/lS7]4T4UR9W7^$Z)|$v(q)_)a*W*`*o*p*z*{+P.d.e.g.h.i/U/Z/_/a/c/n/s0Z0[0k1V1X3W3X3Y3o3s4V4W4[4i4k4q5Z5]6u6v6w6x6}7O7Q7R7S7X7`7d7k7m7o8{8|8}9X9_:Q:R:S:T:U:]:l:{<j<v<w=S=TQ/q*`U4Z/q4]7aQ4]/sR7a4[S*j$|*VR0P*jr*O$v)a*o*p+P/n0Z0[3s4V4q7X7k:U<j<v<w!`.b(q)_*W*`.d.e.i/U/Z/c/s0k1V1X3Y4W4[5Z5]6u6x7`7d7m7o9X9_:]:l=S=TU/`*O.b6{a6{3o6}7O7S8{:Q:T:{Q0W*oQ3Z.dU4j0W3Z9OR9O6}v*Q$v)a*o*p+P/_/n0Z0[3s4V4i4q7X7k:U<j<v<w!d.c(q)_*W*`.d.e.i/U/Z/c/s0k1V1X3W3Y4W4[5Z5]6u6v6x7`7d7m7o9X9_:]:l=S=TU/b*Q.c6|e6|3o6}7O7S8{8|:Q:R:T:{Q0Y*pQ3[.eU4l0Y3[9PR9P7OQ*u%UR0^*uQ4v0kR7n4vQ+X%iR0j+XQ5_1[S7|5_9iR9i7}Q,S&[R1_,SQ5e1aR8P5eQ1m,^S5u1m8_R8_5wQ0x+lW5Q0x5S7t9eQ5S0{Q7t5RR9e7uQ+q&OR1O+qQ2P,pR6V2PYrOXst#dQ&s!ZQ+Z%kQ,j&oQ,l&qQ,m&rQ,o&tQ1z,kS1},p2PR6U1|Q%mpQ&w!_Q&z!aQ&|!bQ'O!cQ'n!uQ+Y%jQ+f%xQ+x&UQ,`&jQ,w&yW-h'h'p'q'tQ-o'lQ0O*iQ0s+gS1p,a,dQ2X,vQ2Y,yQ2Z,zQ2o-gW2q-j-k-n-pQ4y0tQ5V1RQ5Y1VQ5o1gQ5y1rQ6T1{U6d2p2s2vQ6g2tQ7p4zQ7x5XQ7y5ZQ8O5dQ8Y5pQ8`5xS8o6e6iQ8q6hQ9f7vQ9n8ZQ9s8aQ9z8pQ:_9gQ:d9oQ:h9{R:s:eQ%xyQ'a!iQ'l!uU+g%y%z%{Q-O'SU-c'b'c'dS-g'h'rQ/u*dS0t+h+iQ2a-QS2m-d-eQ2t-lQ4`/yQ4z0uQ6`2gQ6c2nQ6h2uR7e4dS$wi<xR*v%VU%Ui%V<xR0]*tQ$viS(q#v+cS)_$b$cQ)a$dQ*W$xS*`${*UQ*o%OQ*p%QQ*z%]Q*{%^Q+P%bQ.d;jQ.e;lQ.g;pQ.h;rQ.i;tQ/U)uS/Z){/]Q/_)}Q/a*PQ/c*RQ/n*[S/s*b/eQ0Z*rQ0[*sh0k+`.^1c3T5l6p8U8u9l:O:c:kQ1V+zQ1X+}Q3W;|Q3X<OQ3Y<RS3o;g;hQ3s.wQ4V/oQ4W/pQ4[/rQ4i0VQ4k0XQ4q0dQ5Z1WQ5]1ZQ6u<VQ6v<XQ6w<ZQ6x<]Q6};kQ7O;mQ7Q;qQ7R;sQ7S;uQ7X3}Q7`4YQ7d4bQ7k4mQ7m4uQ7o4xQ8{<SQ8|;}Q8}<PQ9X7_Q9_7hQ:Q<WQ:R<YQ:S<[Q:T<^Q:U9TQ:]9bQ:l<aQ:{<bQ<j<xQ<v=QQ<w=RQ=S=UR=T=VQ*x%[Q.f;nR7P;onpOXst!Z#d%k&o&q&r&t,k,p1|2PQ!fPS#fZ#oQ&y!`U'e!o5b8RQ'{#SQ(|#{Q)n$nS,d&h&kQ,i&lQ,v&xQ,{'QQ-_'_Q.p(zQ/S)oS0h+V/fQ0n+aQ1x,hQ2k-aQ3R._Q3x.}Q4o0aQ5j1dQ5{1tQ5|1uQ6Q1wQ6S1yQ6X2RQ6s3UQ7V3uQ8W5mQ8d5}Q8e6OQ8g6RQ8y6tQ9m8XR9w8h#YcOPXZst!Z!`!o#d#o#{%k&h&k&l&o&q&r&t&x'Q'_(z+V+a,h,k,p-a._/f0a1d1t1u1w1y1|2P2R3U5b5m5}6O6R6t8R8X8hQ#YWQ#eYQ%ouQ%qvS%sw!gS(O#W(RQ(U#ZQ(p#uQ(u#xQ(}$OQ)O$PQ)P$QQ)Q$RQ)R$SQ)S$TQ)T$UQ)U$VQ)V$WQ)W$XQ)Y$ZQ)[$_Q)^$aQ)c$eW)m$n)o.}3uQ+^%rQ+r&PS-R'U2bQ-p'oS-u(P-wQ-z(XQ-|(`Q.k(tQ.n(vQ.r;PQ.t;SQ.u;TQ.v;WQ/X)yQ0e+RQ2],|Q2`-PQ2p-iQ2w-}Q3].lQ3b;XQ3c;YQ3d;ZQ3e;[Q3f;]Q3g;^Q3h;_Q3i;`Q3j;aQ3k;bQ3l;cQ3m.sQ3n;fQ3q;iQ3r;vQ3y;dQ4r0gQ4{0vQ6_;xQ6e2rQ6j2xQ6y3^Q6z;yQ7T;{Q7U<TQ7}5`Q8l6]Q8p6fQ8z<UQ9Q<_Q9R<`Q9{8rQ:`9hQ:g9yQ;R#SR<o<{R#[WR'W!el!tQ!r!v!y!z']'i'j'k-]-m1a5e5gS'S!e-TS-Q'T'[R2g-ZR(w#xQ!fQT-[']-]]!qQ!r']-]1a5eQ#p]R'f;QR)b$dY!uQ']-]1a5eQ'h!rS'r!v!yS't!z5gS-l'i'jQ-n'kR2u-mT#kZ%cS#jZ%cS%im,gU(c#h#i#lS.Q(d(eQ.U(fQ0i+WQ2z.RU2{.S.T.VS6l2|2}R8s6md#^W#W#Z%f(P(Y*U+T-{/er#gZm#h#i#l%c(d(e(f+W.R.S.T.V2|2}6mS*X$x*]Q/l*YQ1v,gQ2^,}Q4P/hQ6Z2UQ7[4QQ8k6[T<g'U+UV#aW%f*UU#`W%f*US(Q#W(YU(V#Z+T/eS-S'U+UT-v(P-{V'Z!e%g*VQ$lfR)t$qT)i$l)jR3w.|T*Z$x*]T*c${*UQ0l+`Q3P.^Q5i1cQ6q3TQ8V5lQ8v6pQ9j8UQ9|8uQ:b9lQ:j:OQ:r:cR:u:knqOXst!Z#d%k&o&q&r&t,k,p1|2PQ&i!VR,`&ftmOXst!U!V!Z#d%k&f&o&q&r&t,k,p1|2PR,g&lT%jm,gR1],PR,_&dQ&S|R+w&TR+m%}T&m!W&pT&n!W&pT2O,p2P",nodeNames:"⚠ ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:376,context:hue,nodeProps:[["isolate",-8,5,6,14,34,36,48,50,52,""],["group",-26,9,17,19,65,204,208,212,213,215,218,221,231,233,239,241,243,245,248,254,260,262,264,266,268,270,271,"Statement",-34,13,14,29,32,33,39,48,51,52,54,59,67,69,73,77,79,81,82,107,108,117,118,135,138,140,141,142,143,144,146,147,166,167,169,"Expression",-23,28,30,34,38,40,42,171,173,175,176,178,179,180,182,183,184,186,187,188,198,200,202,203,"Type",-3,85,100,106,"ClassItem"],["openedBy",23,"<",35,"InterpolationStart",53,"[",57,"{",70,"(",159,"JSXStartCloseTag"],["closedBy",24,">",37,"InterpolationEnd",47,"]",58,"}",71,")",164,"JSXEndTag"]],propSources:[yue],skippedNodes:[0,5,6,274],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$h&j(RpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(RpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$h&j(Rp(U!b'w0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(S#S$h&j'x0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$h&j(Rp(U!b'x0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$h&j!m),Q(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(Q':f$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$h&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$c`$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$c``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$c`$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(U!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$c`(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$h&j(Rp(U!bOY%ZYZ&cZq%Zqr<Srs&}st%ZtuCruw%Zwx(rx!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr(r<__WS$h&j(Rp(U!bOY<SYZ&cZr<Srs=^sw<Swx@nx!^<S!^!_Bm!_#O<S#O#P>`#P#o<S#o#pBm#p;'S<S;'S;=`Cl<%lO<S(Q=g]WS$h&j(U!bOY=^YZ&cZw=^wx>`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$h&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(U!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$h&j(RpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(RpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Rp(U!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l<S%9[C}i$h&j(j%1l(Rp(U!bOY%ZYZ&cZr%Zrs&}st%ZtuCruw%Zwx(rx!Q%Z!Q![Cr![!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr%9[EoP;=`<%lCr07[FRk$h&j(Rp(U!b$[#t(O,2j(`$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr+dHRk$h&j(Rp(U!b$[#tOY%ZYZ&cZr%Zrs&}st%ZtuGvuw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Gv![!^%Z!^!_*g!_!c%Z!c!}Gv!}#O%Z#O#P&c#P#R%Z#R#SGv#S#T%Z#T#oGv#o#p*g#p$g%Z$g;'SGv;'S;=`Iv<%lOGv+dIyP;=`<%lGv07[JPP;=`<%lEr(KWJ_`$h&j(Rp(U!b#m(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWKl_$h&j$P(Ch(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,#xLva(u+JY$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sv%ZvwM{wx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWNW`$h&j#y(Ch(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At! c_(T';W$h&j(RpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b'l!!i_$h&j(RpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b&z!#mX$h&jOw!#hwx6cx!^!#h!^!_!$Y!_#o!#h#o#p!$Y#p;'S!#h;'S;=`!$r<%lO!#h`!$]TOw!$Ywx7]x;'S!$Y;'S;=`!$l<%lO!$Y`!$oP;=`<%l!$Y&z!$uP;=`<%l!#h'l!%R]$c`$h&j(RpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r!Q!&PZ(RpOY!%zYZ!$YZr!%zrs!$Ysw!%zwx!&rx#O!%z#O#P!$Y#P;'S!%z;'S;=`!']<%lO!%z!Q!&yU$c`(RpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)r!Q!'`P;=`<%l!%z'l!'fP;=`<%l!!b/5|!'t_!i/.^$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#&U!)O_!h!Lf$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z-!n!*[b$h&j(Rp(U!b(P%&f#n(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rxz%Zz{!+d{!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW!+o`$h&j(Rp(U!b#k(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;x!,|`$h&j(Rp(U!bo+4YOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,$U!.Z_!Y+Jf$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!/ec$h&j(Rp(U!b}.2^OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!0p!P!Q%Z!Q![!3Y![!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!0ya$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!2O!P!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!2Z_!X!L^$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!3eg$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!3Y![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S!3Y#S#X%Z#X#Y!4|#Y#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!5Vg$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx{%Z{|!6n|}%Z}!O!6n!O!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!6wc$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!8_c$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!9uf$h&j(Rp(U!b#l(ChOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcxz!;Zz{#-}{!P!;Z!P!Q#/d!Q!^!;Z!^!_#(i!_!`#7S!`!a#8i!a!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z?O!;fb$h&j(Rp(U!b!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z>^!<w`$h&j(U!b!U7`OY!<nYZ&cZw!<nwx!=yx!P!<n!P!Q!Eq!Q!^!<n!^!_!Gr!_!}!<n!}#O!KS#O#P!Dy#P#o!<n#o#p!Gr#p;'S!<n;'S;=`!L]<%lO!<n<z!>Q^$h&j!U7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!?Td$h&j!U7`O!^&c!_#W&c#W#X!>|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!U7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!U7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c<z!C][$h&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#O!CW#O#P!DR#P#Q!=y#Q#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DWX$h&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DvP;=`<%l!CW<z!EOX$h&jOY!=yYZ&cZ!^!=y!^!_!@c!_#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!EnP;=`<%l!=y>^!Ezl$h&j(U!b!U7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(U!b!U7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(U!b!U7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(U!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$h&j(U!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!<n#Q#o!KS#o#p!JU#p;'S!KS;'S;=`!LV<%lO!KS>^!LYP;=`<%l!KS>^!L`P;=`<%l!<n=l!Ll`$h&j(Rp!U7`OY!LcYZ&cZr!Lcrs!=ys!P!Lc!P!Q!Mn!Q!^!Lc!^!_# o!_!}!Lc!}#O#%P#O#P!Dy#P#o!Lc#o#p# o#p;'S!Lc;'S;=`#&Y<%lO!Lc=l!Mwl$h&j(Rp!U7`OY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#W(r#W#X!Mn#X#Z(r#Z#[!Mn#[#](r#]#^!Mn#^#a(r#a#b!Mn#b#g(r#g#h!Mn#h#i(r#i#j!Mn#j#k!Mn#k#m(r#m#n!Mn#n#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r8Q# vZ(Rp!U7`OY# oZr# ors!@cs!P# o!P!Q#!i!Q!}# o!}#O#$R#O#P!Bq#P;'S# o;'S;=`#$y<%lO# o8Q#!pe(Rp!U7`OY)rZr)rs#O)r#P#W)r#W#X#!i#X#Z)r#Z#[#!i#[#])r#]#^#!i#^#a)r#a#b#!i#b#g)r#g#h#!i#h#i)r#i#j#!i#j#k#!i#k#m)r#m#n#!i#n;'S)r;'S;=`*Z<%lO)r8Q#$WX(RpOY#$RZr#$Rrs!Ars#O#$R#O#P!B[#P#Q# o#Q;'S#$R;'S;=`#$s<%lO#$R8Q#$vP;=`<%l#$R8Q#$|P;=`<%l# o=l#%W^$h&j(RpOY#%PYZ&cZr#%Prs!CWs!^#%P!^!_#$R!_#O#%P#O#P!DR#P#Q!Lc#Q#o#%P#o#p#$R#p;'S#%P;'S;=`#&S<%lO#%P=l#&VP;=`<%l#%P=l#&]P;=`<%l!Lc?O#&kn$h&j(Rp(U!b!U7`OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#W%Z#W#X#&`#X#Z%Z#Z#[#&`#[#]%Z#]#^#&`#^#a%Z#a#b#&`#b#g%Z#g#h#&`#h#i%Z#i#j#&`#j#k#&`#k#m%Z#m#n#&`#n#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z9d#(r](Rp(U!b!U7`OY#(iZr#(irs!Grsw#(iwx# ox!P#(i!P!Q#)k!Q!}#(i!}#O#+`#O#P!Bq#P;'S#(i;'S;=`#,`<%lO#(i9d#)th(Rp(U!b!U7`OY*gZr*grs'}sw*gwx)rx#O*g#P#W*g#W#X#)k#X#Z*g#Z#[#)k#[#]*g#]#^#)k#^#a*g#a#b#)k#b#g*g#g#h#)k#h#i*g#i#j#)k#j#k#)k#k#m*g#m#n#)k#n;'S*g;'S;=`+Z<%lO*g9d#+gZ(Rp(U!bOY#+`Zr#+`rs!JUsw#+`wx#$Rx#O#+`#O#P!B[#P#Q#(i#Q;'S#+`;'S;=`#,Y<%lO#+`9d#,]P;=`<%l#+`9d#,cP;=`<%l#(i?O#,o`$h&j(Rp(U!bOY#,fYZ&cZr#,frs!KSsw#,fwx#%Px!^#,f!^!_#+`!_#O#,f#O#P!DR#P#Q!;Z#Q#o#,f#o#p#+`#p;'S#,f;'S;=`#-q<%lO#,f?O#-tP;=`<%l#,f?O#-zP;=`<%l!;Z07[#.[b$h&j(Rp(U!b'y0/l!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z07[#/o_$h&j(Rp(U!bT0/lOY#/dYZ&cZr#/drs#0nsw#/dwx#4Ox!^#/d!^!_#5}!_#O#/d#O#P#1p#P#o#/d#o#p#5}#p;'S#/d;'S;=`#6|<%lO#/d06j#0w]$h&j(U!bT0/lOY#0nYZ&cZw#0nwx#1px!^#0n!^!_#3R!_#O#0n#O#P#1p#P#o#0n#o#p#3R#p;'S#0n;'S;=`#3x<%lO#0n05W#1wX$h&jT0/lOY#1pYZ&cZ!^#1p!^!_#2d!_#o#1p#o#p#2d#p;'S#1p;'S;=`#2{<%lO#1p0/l#2iST0/lOY#2dZ;'S#2d;'S;=`#2u<%lO#2d0/l#2xP;=`<%l#2d05W#3OP;=`<%l#1p01O#3YW(U!bT0/lOY#3RZw#3Rwx#2dx#O#3R#O#P#2d#P;'S#3R;'S;=`#3r<%lO#3R01O#3uP;=`<%l#3R06j#3{P;=`<%l#0n05x#4X]$h&j(RpT0/lOY#4OYZ&cZr#4Ors#1ps!^#4O!^!_#5Q!_#O#4O#O#P#1p#P#o#4O#o#p#5Q#p;'S#4O;'S;=`#5w<%lO#4O00^#5XW(RpT0/lOY#5QZr#5Qrs#2ds#O#5Q#O#P#2d#P;'S#5Q;'S;=`#5q<%lO#5Q00^#5tP;=`<%l#5Q05x#5zP;=`<%l#4O01p#6WY(Rp(U!bT0/lOY#5}Zr#5}rs#3Rsw#5}wx#5Qx#O#5}#O#P#2d#P;'S#5};'S;=`#6v<%lO#5}01p#6yP;=`<%l#5}07[#7PP;=`<%l#/d)3h#7ab$h&j$P(Ch(Rp(U!b!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;ZAt#8vb$Y#t$h&j(Rp(U!b!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z'Ad#:Zp$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#U%Z#U#V#?i#V#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#<jk$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!d$b$h&j#})Lv(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#O-<U(Rp(U!b(y7`OY*gZr*grs'}sw*gwx)rx!P*g!P!Q#MO!Q!^*g!^!_#Mt!_!`$ f!`#O*g#P;'S*g;'S;=`+Z<%lO*g(n#MXX$j&j(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El#M}Z#o(Ch(Rp(U!bOY*gZr*grs'}sw*gwx)rx!_*g!_!`#Np!`#O*g#P;'S*g;'S;=`+Z<%lO*g(El#NyX$P(Ch(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El$ oX#p(Ch(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g*)x$!ga#]*!Y$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`!a$#l!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(K[$#w_#h(Cl$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x$%Vag!*r#p(Ch$e#|$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`$&[!`!a$'f!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$&g_#p(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$'qa#o(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`!a$(v!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$)R`#o(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(Kd$*`a(m(Ct$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!a%Z!a!b$+e!b#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$+p`$h&j#z(Ch(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`$,}_!y$Ip$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f$.X_!P0,v$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(n$/]Z$h&jO!^$0O!^!_$0f!_#i$0O#i#j$0k#j#l$0O#l#m$2^#m#o$0O#o#p$0f#p;'S$0O;'S;=`$4i<%lO$0O(n$0VT_#S$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#S$0kO_#S(n$0p[$h&jO!Q&c!Q![$1f![!^&c!_!c&c!c!i$1f!i#T&c#T#Z$1f#Z#o&c#o#p$3|#p;'S&c;'S;=`&w<%lO&c(n$1kZ$h&jO!Q&c!Q![$2^![!^&c!_!c&c!c!i$2^!i#T&c#T#Z$2^#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$2cZ$h&jO!Q&c!Q![$3U![!^&c!_!c&c!c!i$3U!i#T&c#T#Z$3U#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$3ZZ$h&jO!Q&c!Q![$0O![!^&c!_!c&c!c!i$0O!i#T&c#T#Z$0O#Z#o&c#p;'S&c;'S;=`&w<%lO&c#S$4PR!Q![$4Y!c!i$4Y#T#Z$4Y#S$4]S!Q![$4Y!c!i$4Y#T#Z$4Y#q#r$0f(n$4lP;=`<%l$0O#1[$4z_!V#)l$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$6U`#w(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;p$7c_$h&j(Rp(U!b([+4QOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$8qk$h&j(Rp(U!b(O,2j$^#t(`$I[OY%ZYZ&cZr%Zrs&}st%Ztu$8buw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$8b![!^%Z!^!_*g!_!c%Z!c!}$8b!}#O%Z#O#P&c#P#R%Z#R#S$8b#S#T%Z#T#o$8b#o#p*g#p$g%Z$g;'S$8b;'S;=`$<l<%lO$8b+d$:qk$h&j(Rp(U!b$^#tOY%ZYZ&cZr%Zrs&}st%Ztu$:fuw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$:f![!^%Z!^!_*g!_!c%Z!c!}$:f!}#O%Z#O#P&c#P#R%Z#R#S$:f#S#T%Z#T#o$:f#o#p*g#p$g%Z$g;'S$:f;'S;=`$<f<%lO$:f+d$<iP;=`<%l$:f07[$<oP;=`<%l$8b#Jf$<{X![#Hb(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g,#x$=sa(t+JY$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p#q$+e#q;'S%Z;'S;=`+a<%lO%Z(Kd$?V_!Z(Cds`$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z?O$@a_!n7`$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$Aq|$h&j(Rp(U!b'w0/l$[#t(O,2j(`$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$h&j(Rp(U!b'x0/l$[#t(O,2j(`$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[mue,gue,bue,2,3,4,5,6,7,8,9,10,11,12,13,14,fue,new Gle("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOu~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!R~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(^~~",141,335),new Gle("j~RQYZXz{^~^O'{~~aP!P!Qd~iO'|~~",25,318)],topRules:{Script:[0,7],SingleExpression:[1,272],SingleClassItem:[2,273]},dialects:{jsx:0,ts:14725},dynamicPrecedences:{77:1,79:1,91:1,167:1,196:1},specialized:[{term:322,get:e=>Oue[e]||-1},{term:338,get:e=>wue[e]||-1},{term:92,get:e=>xue[e]||-1}],tokenPrec:14749}),Sue=[Wse("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),Wse("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),Wse("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Wse("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Wse("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),Wse("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),Wse("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),Wse("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),Wse("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),Wse('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Wse('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],_ue=Sue.concat([Wse("interface ${name} {\n\t${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Wse("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Wse("enum ${name} {\n\t${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Eue=new gae,Tue=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Aue(e){return(t,r)=>{let n=t.node.getChild("VariableDefinition");return n&&r(n,e),!0}}const Cue=["FunctionDeclaration"],Pue={FunctionDeclaration:Aue("function"),ClassDeclaration:Aue("class"),ClassExpression:()=>!0,EnumDeclaration:Aue("constant"),TypeAliasDeclaration:Aue("type"),NamespaceDeclaration:Aue("namespace"),VariableDefinition(e,t){e.matchContext(Cue)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function Due(e,t){let r=Eue.get(t);if(r)return r;let n=[],a=!0;function o(t,r){let a=e.sliceString(t.from,t.to);n.push({label:a,type:r})}return t.cursor(Gne.IncludeAnonymous).iterate((t=>{if(a)a=!1;else if(t.name){let e=Pue[t.name];if(e&&e(t,o)||Tue.has(t.name))return!1}else if(t.to-t.from>8192){for(let r of Due(e,t.node))n.push(r);return!1}})),Eue.set(t,n),n}const $ue=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Rue=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function Mue(e){let t=poe(e.state).resolveInner(e.pos,-1);if(Rue.indexOf(t.name)>-1)return null;let r="VariableName"==t.name||t.to-t.from<20&&$ue.test(e.state.sliceDoc(t.from,t.to));if(!r&&!e.explicit)return null;let n=[];for(let r=t;r;r=r.parent)Tue.has(r.name)&&(n=n.concat(Due(e.state.doc,r)));return{options:n,from:r?t.from:e.pos,validFor:$ue}}const Nue=doe.define({name:"javascript",parser:kue.configure({props:[Coe.add({IfStatement:Loe({except:/^\s*({|else\b)/}),TryStatement:Loe({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:e=>e.baseIndent,SwitchBody:e=>{let t=e.textAfter,r=/^\s*\}/.test(t),n=/^\s*(case|default)\b/.test(t);return e.baseIndent+(r?0:n?1:2)*e.unit},Block:Noe({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":Loe({except:/^\s*{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),Boe.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Uoe,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Iue={test:e=>/^JSX/.test(e.name),facet:soe({commentTokens:{block:{open:"{/*",close:"*/}"}}})},Lue=Nue.configure({dialect:"ts"},"typescript"),jue=Nue.configure({dialect:"jsx",props:[loe.add((e=>e.isTop?[Iue]:void 0))]}),Bue=Nue.configure({dialect:"jsx ts",props:[loe.add((e=>e.isTop?[Iue]:void 0))]},"typescript");let Uue=e=>({label:e,type:"keyword"});const Fue="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(Uue),Que=Fue.concat(["declare","implements","private","protected","public"].map(Uue));function zue(e={}){let t=e.jsx?e.typescript?Bue:jue:e.typescript?Lue:Nue,r=e.typescript?_ue.concat(Que):Sue.concat(Fue);return new xoe(t,[Nue.data.of({autocomplete:(n=Rue,a=Xie(r),e=>{for(let t=poe(e.state).resolveInner(e.pos,-1);t;t=t.parent){if(n.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return a(e)})}),Nue.data.of({autocomplete:Mue}),e.jsx?Vue:[]]);var n,a}function que(e,t,r=e.length){for(let n=null==t?void 0:t.firstChild;n;n=n.nextSibling)if("JSXIdentifier"==n.name||"JSXBuiltin"==n.name||"JSXNamespacedName"==n.name||"JSXMemberExpression"==n.name)return e.sliceString(n.from,Math.min(n.to,r));return""}const Hue="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),Vue=_re.inputHandler.of(((e,t,r,n,a)=>{if((Hue?e.composing:e.compositionStarted)||e.state.readOnly||t!=r||">"!=n&&"/"!=n||!Nue.isActiveAt(e.state,t,-1))return!1;let o=a(),{state:i}=o,s=i.changeByRange((e=>{var t;let r,{head:a}=e,o=poe(i).resolveInner(a-1,-1);if("JSXStartTag"==o.name&&(o=o.parent),i.doc.sliceString(a-1,a)!=n||"JSXAttributeValue"==o.name&&o.to>a);else{if(">"==n&&"JSXFragmentTag"==o.name)return{range:e,changes:{from:a,insert:"</>"}};if("/"==n&&"JSXStartCloseTag"==o.name){let e=o.parent,n=e.parent;if(n&&e.from==a-2&&((r=que(i.doc,n.firstChild,a))||"JSXFragmentTag"==(null===(t=n.firstChild)||void 0===t?void 0:t.name))){let e=`${r}>`;return{range:f6.cursor(a+e.length,-1),changes:{from:a,insert:e}}}}else if(">"==n){let t=function(e){for(;;){if("JSXOpenTag"==e.name||"JSXSelfClosingTag"==e.name||"JSXFragmentTag"==e.name)return e;if("JSXEscape"==e.name||!e.parent)return null;e=e.parent}}(o);if(t&&"JSXOpenTag"==t.name&&!/^\/?>|^<\//.test(i.doc.sliceString(a,a+2))&&(r=que(i.doc,t,a)))return{range:e,changes:{from:a,insert:`</${r}>`}}}}return{range:e}}));return!s.changes.empty&&(e.dispatch([o,i.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)})),Zue=["_blank","_self","_top","_parent"],Wue=["ascii","utf-8","utf-16","latin1","latin1"],Xue=["get","post","put","delete"],Gue=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Yue=["true","false"],Kue={},Jue={a:{attrs:{href:null,ping:null,type:null,media:null,target:Zue,hreflang:null}},abbr:Kue,address:Kue,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Kue,aside:Kue,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Kue,base:{attrs:{href:null,target:Zue}},bdi:Kue,bdo:Kue,blockquote:{attrs:{cite:null}},body:Kue,br:Kue,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Gue,formmethod:Xue,formnovalidate:["novalidate"],formtarget:Zue,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Kue,center:Kue,cite:Kue,code:Kue,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Kue,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Kue,div:Kue,dl:Kue,dt:Kue,em:Kue,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Kue,figure:Kue,footer:Kue,form:{attrs:{action:null,name:null,"accept-charset":Wue,autocomplete:["on","off"],enctype:Gue,method:Xue,novalidate:["novalidate"],target:Zue}},h1:Kue,h2:Kue,h3:Kue,h4:Kue,h5:Kue,h6:Kue,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Kue,hgroup:Kue,hr:Kue,html:{attrs:{manifest:null}},i:Kue,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:Gue,formmethod:Xue,formnovalidate:["novalidate"],formtarget:Zue,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Kue,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Kue,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Kue,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Wue,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Kue,noscript:Kue,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Kue,param:{attrs:{name:null,value:null}},pre:Kue,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Kue,rt:Kue,ruby:Kue,samp:Kue,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Wue}},section:Kue,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Kue,source:{attrs:{src:null,type:null,media:null}},span:Kue,strong:Kue,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Kue,summary:Kue,sup:Kue,table:Kue,tbody:Kue,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Kue,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Kue,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Kue,time:{attrs:{datetime:null}},title:Kue,tr:Kue,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Kue,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Kue},ede={accesskey:null,class:null,contenteditable:Yue,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Yue,autocorrect:Yue,autocapitalize:Yue,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Yue,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Yue,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Yue,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Yue,"aria-hidden":Yue,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Yue,"aria-multiselectable":Yue,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Yue,"aria-relevant":null,"aria-required":Yue,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},tde="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map((e=>"on"+e));for(let e of tde)ede[e]=null;let rde=class{constructor(e,t){this.tags=Object.assign(Object.assign({},Jue),e),this.globalAttrs=Object.assign(Object.assign({},ede),t),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};function nde(e,t,r=e.length){if(!t)return"";let n=t.firstChild,a=n&&n.getChild("TagName");return a?e.sliceString(a.from,Math.min(a.to,r)):""}function ade(e,t=!1){for(;e;e=e.parent)if("Element"==e.name){if(!t)return e;t=!1}return null}function ode(e,t,r){let n=r.tags[nde(e,ade(t))];return(null==n?void 0:n.children)||r.allTags}function ide(e,t){let r=[];for(let n=ade(t);n&&!n.type.isTop;n=ade(n.parent)){let a=nde(e,n);if(a&&"CloseTag"==n.lastChild.name)break;a&&r.indexOf(a)<0&&("EndTag"==t.name||t.from>=n.firstChild.to)&&r.push(a)}return r}rde.default=new rde;const sde=/^[:\-\.\w\u00b7-\uffff]*$/;function lde(e,t,r,n,a){let o=/\s*>/.test(e.sliceDoc(a,a+5))?"":">",i=ade(r,!0);return{from:n,to:a,options:ode(e.doc,i,t).map((e=>({label:e,type:"type"}))).concat(ide(e.doc,r).map(((e,t)=>({label:"/"+e,apply:"/"+e+o,type:"type",boost:99-t})))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function cde(e,t,r,n){let a=/\s*>/.test(e.sliceDoc(n,n+5))?"":">";return{from:r,to:n,options:ide(e.doc,t).map(((e,t)=>({label:e,apply:e+a,type:"type",boost:99-t}))),validFor:sde}}function ude(e){let{extraTags:t,extraGlobalAttributes:r}=e,n=r||t?new rde(t,r):rde.default;return e=>function(e,t){let{state:r,pos:n}=t,a=poe(r).resolveInner(n,-1),o=a.resolve(n);for(let e,t=n;o==a&&(e=a.childBefore(t));){let r=e.lastChild;if(!r||!r.type.isError||r.from<r.to)break;o=a=e,t=r.from}return"TagName"==a.name?a.parent&&/CloseTag$/.test(a.parent.name)?cde(r,a,a.from,n):lde(r,e,a,a.from,n):"StartTag"==a.name?lde(r,e,a,n,n):"StartCloseTag"==a.name||"IncompleteCloseTag"==a.name?cde(r,a,n,n):"OpenTag"==a.name||"SelfClosingTag"==a.name||"AttributeName"==a.name?function(e,t,r,n,a){let o=ade(r),i=o?t.tags[nde(e.doc,o)]:null,s=i&&i.attrs?Object.keys(i.attrs):[];return{from:n,to:a,options:(i&&!1===i.globalAttrs?s:s.length?s.concat(t.globalAttrNames):t.globalAttrNames).map((e=>({label:e,type:"property"}))),validFor:sde}}(r,e,a,"AttributeName"==a.name?a.from:n,n):"Is"==a.name||"AttributeValue"==a.name||"UnquotedAttributeValue"==a.name?function(e,t,r,n,a){var o;let i,s=null===(o=r.parent)||void 0===o?void 0:o.getChild("AttributeName"),l=[];if(s){let o=e.sliceDoc(s.from,s.to),c=t.globalAttrs[o];if(!c){let n=ade(r),a=n?t.tags[nde(e.doc,n)]:null;c=(null==a?void 0:a.attrs)&&a.attrs[o]}if(c){let t=e.sliceDoc(n,a).toLowerCase(),r='"',o='"';/^['"]/.test(t)?(i='"'==t[0]?/^[^"]*$/:/^[^']*$/,r="",o=e.sliceDoc(a,a+1)==t[0]?"":t[0],t=t.slice(1),n++):i=/^[^\s<>='"]*$/;for(let e of c)l.push({label:e,apply:r+e+o,type:"constant"})}}return{from:n,to:a,options:l,validFor:i}}(r,e,a,"Is"==a.name?n:a.from,n):!t.explicit||"Element"!=o.name&&"Text"!=o.name&&"Document"!=o.name?null:function(e,t,r,n){let a=[],o=0;for(let n of ode(e.doc,r,t))a.push({label:"<"+n,type:"type"});for(let t of ide(e.doc,r))a.push({label:"</"+t+">",type:"type",boost:99-o++});return{from:n,to:n,options:a,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}(r,e,a,n)}(n,e)}const dde=Nue.parser.configure({top:"SingleExpression"}),pde=[{tag:"script",attrs:e=>"text/typescript"==e.type||"ts"==e.lang,parser:Lue.parser},{tag:"script",attrs:e=>"text/babel"==e.type||"text/jsx"==e.type,parser:jue.parser},{tag:"script",attrs:e=>"text/typescript-jsx"==e.type,parser:Bue.parser},{tag:"script",attrs:e=>/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type),parser:dde},{tag:"script",attrs:e=>!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type),parser:Nue.parser},{tag:"style",attrs:e=>(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type)),parser:jce.parser}],hde=[{name:"style",parser:jce.parser.configure({top:"Styles"})}].concat(tde.map((e=>({name:e,parser:Nue.parser})))),fde=doe.define({name:"html",parser:sue.configure({props:[Coe.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit,Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length<e.node.to)return e.continue();let t,r=null;for(let t=e.node;;){let e=t.lastChild;if(!e||"Element"!=e.name||e.to!=t.to)break;r=t=e}return r&&(!(t=r.lastChild)||"CloseTag"!=t.name&&"SelfClosingTag"!=t.name)?e.lineIndent(r.from)+e.unit:null}}),Boe.add({Element(e){let t=e.firstChild,r=e.lastChild;return t&&"OpenTag"==t.name?{from:t.to,to:"CloseTag"==r.name?r.from:e.to}:null}}),yie.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),mde=fde.configure({wrap:due(pde,hde)}),gde=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),vde=_re.inputHandler.of(((e,t,r,n,a)=>{if(e.composing||e.state.readOnly||t!=r||">"!=n&&"/"!=n||!mde.isActiveAt(e.state,t,-1))return!1;let o=a(),{state:i}=o,s=i.changeByRange((e=>{var t,r,a;let o,s=i.doc.sliceString(e.from-1,e.to)==n,{head:l}=e,c=poe(i).resolveInner(l,-1);if(s&&">"==n&&"EndTag"==c.name){let n=c.parent;if("CloseTag"!=(null===(r=null===(t=n.parent)||void 0===t?void 0:t.lastChild)||void 0===r?void 0:r.name)&&(o=nde(i.doc,n.parent,l))&&!gde.has(o))return{range:e,changes:{from:l,to:l+(">"===i.doc.sliceString(l,l+1)?1:0),insert:`</${o}>`}}}else if(s&&"/"==n&&"IncompleteCloseTag"==c.name){let e=c.parent;if(c.from==l-2&&"CloseTag"!=(null===(a=e.lastChild)||void 0===a?void 0:a.name)&&(o=nde(i.doc,e,l))&&!gde.has(o)){let e=l+(">"===i.doc.sliceString(l,l+1)?1:0),t=`${o}>`;return{range:f6.cursor(l+t.length,-1),changes:{from:l,to:e,insert:t}}}}return{range:e}}));return!s.changes.empty&&(e.dispatch([o,i.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)})),bde=Lae({String:aoe.string,Number:aoe.number,"True False":aoe.bool,PropertyName:aoe.propertyName,Null:aoe.null,",":aoe.separator,"[ ]":aoe.squareBracket,"{ }":aoe.brace}),yde=dce.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[bde],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),Ode=doe.define({name:"json",parser:yde.configure({props:[Coe.add({Object:Loe({except:/^\s*\}/}),Array:Loe({except:/^\s*\]/})}),Boe.add({"Object Array":Uoe})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function wde(e){return 45==e||46==e||58==e||e>=65&&e<=90||95==e||e>=97&&e<=122||e>=161}let xde=null,kde=null,Sde=0;function _de(e,t){let r=e.pos+t;if(kde==e&&Sde==r)return xde;for(;9==(n=e.peek(t))||10==n||13==n||32==n;)t++;var n;let a="";for(;;){let r=e.peek(t);if(!wde(r))break;a+=String.fromCharCode(r),t++}return kde=e,Sde=r,xde=a||null}function Ede(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let t=0;t<e.length;t++)this.hash+=(this.hash<<4)+e.charCodeAt(t)+(e.charCodeAt(t)<<8)}const Tde=new uce({start:null,shift:(e,t,r,n)=>1==t?new Ede(_de(n,1)||"",e):e,reduce:(e,t)=>11==t&&e?e.parent:e,reuse(e,t,r,n){let a=t.type.id;return 1==a||13==a?new Ede(_de(n,1)||"",e):e},hash:e=>e?e.hash:0,strict:!1}),Ade=new Yle(((e,t)=>{if(60==e.next)if(e.advance(),47==e.next){e.advance();let r=_de(e,0);if(!r)return e.acceptToken(5);if(t.context&&r==t.context.name)return e.acceptToken(2);for(let n=t.context;n;n=n.parent)if(n.name==r)return e.acceptToken(3,-2);e.acceptToken(4)}else if(33!=e.next&&63!=e.next)return e.acceptToken(1)}),{contextual:!0});function Cde(e,t){return new Yle((r=>{let n=0,a=t.charCodeAt(0);e:for(;!(r.next<0);r.advance(),n++)if(r.next==a){for(let e=1;e<t.length;e++)if(r.peek(e)!=t.charCodeAt(e))continue e;break}n&&r.acceptToken(e)}))}const Pde=Cde(35,"--\x3e"),Dde=Cde(36,"?>"),$de=Cde(37,"]]>"),Rde=Lae({Text:aoe.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":aoe.angleBracket,TagName:aoe.tagName,"MismatchedCloseTag/TagName":[aoe.tagName,aoe.invalid],AttributeName:aoe.attributeName,AttributeValue:aoe.attributeValue,Is:aoe.definitionOperator,"EntityReference CharacterReference":aoe.character,Comment:aoe.blockComment,ProcessingInst:aoe.processingInstruction,DoctypeDecl:aoe.documentMeta,Cdata:aoe.special(aoe.string)}),Mde=dce.deserialize({version:14,states:",SOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DS'#DSOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C{'#C{O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C|'#C|O$dOrO,59^OOOP,59^,59^OOOS'#C}'#C}O$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6y-E6yOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6z-E6zOOOP1G.x1G.xOOOS-E6{-E6{OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'jO!bO,59eOOOO-E6w-E6wO'xOpO1G.uO'xOpO1G.uOOOP1G.u1G.uO(QOpO7+$fOOOP7+$f7+$fO(YO!bO<<GuOOOP<<Gu<<GuOOOP<<G}<<G}O'bOpO1G.qO'bOpO1G.qO(eO#tO'#CnOOOO1G.q1G.qO(sOpO7+$aOOOP7+$a7+$aOOOP<<HQ<<HQOOOPAN=aAN=aOOOPAN=iAN=iO'bOpO7+$]OOOO7+$]7+$]OOOO'#Cz'#CzO({O#tO,59YOOOO,59Y,59YOOOP<<G{<<G{OOOO<<Gw<<GwOOOO-E6x-E6xOOOO1G.t1G.t",stateData:")Z~OPQOSVOTWOVWOWWOXWOiXOxPO}TO!PUO~OuZOw]O~O^`Oy^O~OPQOQcOSVOTWOVWOWWOXWOxPO}TO!PUO~ORdO~P!SOseO|gO~OthO!OjO~O^lOy^O~OuZOwoO~O^qOy^O~O[vO`sOdwOy^O~ORyO~P!SO^{Oy^O~OseO|}O~OthO!O!PO~O^!QOy^O~O[!SOy^O~O[!VO`sOd!WOy^O~Oa!YOy^O~Oy^O[mX`mXdmX~O[!VO`sOd!WO~O^!]Oy^O~O[!_Oy^O~O[!aOy^O~O[!cO`sOd!dOy^O~O[!cO`sOd!dO~Oa!eOy^O~Oy^Oz!gO~Oy^O[ma`madma~O[!jOy^O~O[!kOy^O~O[!lO`sOd!mO~OW!pOX!pOz!rO{!pO~O[!sOy^O~OW!pOX!pOz!vO{!pO~O",goto:"%[wPPPPPPPPPPxxP!OP!UPP!_!iP!oxxxP!u!{#R$Z$j$p$v$|PPPP%SXWORYbXRORYb_t`qru!T!U!bQ!h!YS!o!e!fR!t!nQdRRybXSORYbQYORmYQ[PRn[Q_QQkVjp_krz!R!T!X!Z!^!`!f!i!nQr`QzcQ!RlQ!TqQ!XsQ!ZtQ!^{Q!`!QQ!f!YQ!i!]R!n!eQu`S!UqrU![u!U!bR!b!TQ!q!gR!u!qQbRRxbQfTR|fQiUR!OiSXOYTaRb",nodeNames:"⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",maxTerm:47,context:Tde,nodeProps:[["closedBy",1,"SelfCloseEndTag EndTag",13,"CloseTag MissingCloseTag"],["openedBy",12,"StartTag StartCloseTag",19,"OpenTag",20,"StartTag"],["isolate",-6,13,18,19,21,22,24,""]],propSources:[Rde],skippedNodes:[0],repeatNodeCount:8,tokenData:"Jy~R!XOX$nXY&kYZ&kZ]$n]^&k^p$npq&kqr$nrs'ssv$nvw(Zw}$n}!O,^!O!P$n!P!Q.m!Q![$n![!]0V!]!^$n!^!_3h!_!`El!`!aF_!a!bGQ!b!c$n!c!}0V!}#P$n#P#QHj#Q#R$n#R#S0V#S#T$n#T#o0V#o%W$n%W%o0V%o%p$n%p&a0V&a&b$n&b1p0V1p4U$n4U4d0V4d4e$n4e$IS0V$IS$I`$n$I`$Ib0V$Ib$Kh$n$Kh%#t0V%#t&/x$n&/x&Et0V&Et&FV$n&FV;'S0V;'S;:j3b;:j;=`&e<%l?&r$n?&r?Ah0V?Ah?BY$n?BY?Mn0V?MnO$nX$uWVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nP%dTVPOv%_w!^%_!_;'S%_;'S;=`%s<%lO%_P%vP;=`<%l%_W&OT{WOr%ysv%yw;'S%y;'S;=`&_<%lO%yW&bP;=`<%l%yX&hP;=`<%l$n_&t_VP{WyUOX$nXY&kYZ&kZ]$n]^&k^p$npq&kqr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZ'zTzYVPOv%_w!^%_!_;'S%_;'S;=`%s<%lO%_~(^ast)c![!]*g!c!}*g#R#S*g#T#o*g%W%o*g%p&a*g&b1p*g4U4d*g4e$IS*g$I`$Ib*g$Kh%#t*g&/x&Et*g&FV;'S*g;'S;:j,W?&r?Ah*g?BY?Mn*g~)fQ!Q![)l#l#m)z~)oQ!Q![)l!]!^)u~)zOX~~)}R!Q![*W!c!i*W#T#Z*W~*ZS!Q![*W!]!^)u!c!i*W#T#Z*W~*jg}!O*g!O!P*g!Q![*g![!]*g!]!^,R!c!}*g#R#S*g#T#o*g$}%O*g%W%o*g%p&a*g&b1p*g1p4U*g4U4d*g4e$IS*g$I`$Ib*g$Je$Jg*g$Kh%#t*g&/x&Et*g&FV;'S*g;'S;:j,W?&r?Ah*g?BY?Mn*g~,WOW~~,ZP;=`<%l*gZ,eYVP{WOr$nrs%_sv$nw}$n}!O-T!O!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZ-[YVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!a-z!a;'S$n;'S;=`&e<%lO$nZ.TW|QVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n].tYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!a/d!a;'S$n;'S;=`&e<%lO$n]/mWdSVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n_0b!O`S^QVP{WOr$nrs%_sv$nw}$n}!O0V!O!P0V!P!Q$n!Q![0V![!]0V!]!^$n!^!_%y!_!c$n!c!}0V!}#R$n#R#S0V#S#T$n#T#o0V#o$}$n$}%O0V%O%W$n%W%o0V%o%p$n%p&a0V&a&b$n&b1p0V1p4U0V4U4d0V4d4e$n4e$IS0V$IS$I`$n$I`$Ib0V$Ib$Je$n$Je$Jg0V$Jg$Kh$n$Kh%#t0V%#t&/x$n&/x&Et0V&Et&FV$n&FV;'S0V;'S;:j3b;:j;=`&e<%l?&r$n?&r?Ah0V?Ah?BY$n?BY?Mn0V?MnO$n_3eP;=`<%l0VX3mW{WOq%yqr4Vsv%yw!a%y!a!bEU!b;'S%y;'S;=`&_<%lO%yX4[]{WOr%ysv%yw}%y}!O5T!O!f%y!f!g6V!g!}%y!}#O;f#O#W%y#W#XAr#X;'S%y;'S;=`&_<%lO%yX5YV{WOr%ysv%yw}%y}!O5o!O;'S%y;'S;=`&_<%lO%yX5vT}P{WOr%ysv%yw;'S%y;'S;=`&_<%lO%yX6[V{WOr%ysv%yw!q%y!q!r6q!r;'S%y;'S;=`&_<%lO%yX6vV{WOr%ysv%yw!e%y!e!f7]!f;'S%y;'S;=`&_<%lO%yX7bV{WOr%ysv%yw!v%y!v!w7w!w;'S%y;'S;=`&_<%lO%yX7|V{WOr%ysv%yw!{%y!{!|8c!|;'S%y;'S;=`&_<%lO%yX8hV{WOr%ysv%yw!r%y!r!s8}!s;'S%y;'S;=`&_<%lO%yX9SV{WOr%ysv%yw!g%y!g!h9i!h;'S%y;'S;=`&_<%lO%yX9nX{WOr9irs:Zsv9ivw:Zw!`9i!`!a:x!a;'S9i;'S;=`;`<%lO9iP:^TO!`:Z!`!a:m!a;'S:Z;'S;=`:r<%lO:ZP:rOiPP:uP;=`<%l:ZX;PTiP{WOr%ysv%yw;'S%y;'S;=`&_<%lO%yX;cP;=`<%l9iX;kX{WOr%ysv%yw!e%y!e!f<W!f#V%y#V#W?f#W;'S%y;'S;=`&_<%lO%yX<]V{WOr%ysv%yw!f%y!f!g<r!g;'S%y;'S;=`&_<%lO%yX<wV{WOr%ysv%yw!c%y!c!d=^!d;'S%y;'S;=`&_<%lO%yX=cV{WOr%ysv%yw!v%y!v!w=x!w;'S%y;'S;=`&_<%lO%yX=}V{WOr%ysv%yw!c%y!c!d>d!d;'S%y;'S;=`&_<%lO%yX>iV{WOr%ysv%yw!}%y!}#O?O#O;'S%y;'S;=`&_<%lO%yX?VT{WxPOr%ysv%yw;'S%y;'S;=`&_<%lO%yX?kV{WOr%ysv%yw#W%y#W#X@Q#X;'S%y;'S;=`&_<%lO%yX@VV{WOr%ysv%yw#T%y#T#U@l#U;'S%y;'S;=`&_<%lO%yX@qV{WOr%ysv%yw#h%y#h#iAW#i;'S%y;'S;=`&_<%lO%yXA]V{WOr%ysv%yw#T%y#T#U>d#U;'S%y;'S;=`&_<%lO%yXAwV{WOr%ysv%yw#c%y#c#dB^#d;'S%y;'S;=`&_<%lO%yXBcV{WOr%ysv%yw#V%y#V#WBx#W;'S%y;'S;=`&_<%lO%yXB}V{WOr%ysv%yw#h%y#h#iCd#i;'S%y;'S;=`&_<%lO%yXCiV{WOr%ysv%yw#m%y#m#nDO#n;'S%y;'S;=`&_<%lO%yXDTV{WOr%ysv%yw#d%y#d#eDj#e;'S%y;'S;=`&_<%lO%yXDoV{WOr%ysv%yw#X%y#X#Y9i#Y;'S%y;'S;=`&_<%lO%yXE]T!PP{WOr%ysv%yw;'S%y;'S;=`&_<%lO%yZEuWaQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n_FhW[UVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZGXYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!aGw!a;'S$n;'S;=`&e<%lO$nZHQW!OQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZHqYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_#P$n#P#QIa#Q;'S$n;'S;=`&e<%lO$nZIhYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!aJW!a;'S$n;'S;=`&e<%lO$nZJaWwQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n",tokenizers:[Ade,Pde,Dde,$de,0,1,2,3],topRules:{Document:[0,6]},tokenPrec:0});function Nde(e,t){let r=t&&t.getChild("TagName");return r?e.sliceString(r.from,r.to):""}function Ide(e,t){let r=t&&t.firstChild;return r&&"OpenTag"==r.name?Nde(e,r):""}function Lde(e){for(let t=e&&e.parent;t;t=t.parent)if("Element"==t.name)return t;return null}let jde=class{constructor(e,t,r){this.attrs=t,this.attrValues=r,this.children=[],this.name=e.name,this.completion=Object.assign(Object.assign({type:"type"},e.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"</"+this.name+">",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=e.textContent?e.textContent.map((e=>({label:e,type:"text"}))):[]}};const Bde=/^[:\-\.\w\u00b7-\uffff]*$/;function Ude(e){return Object.assign(Object.assign({type:"property"},e.completion||{}),{label:e.name})}function Fde(e){return"string"==typeof e?{label:`"${e}"`,type:"constant"}:/^"/.test(e.label)?e:Object.assign(Object.assign({},e),{label:`"${e.label}"`})}function Qde(e,t){let r=[],n=[],a=Object.create(null);for(let e of t){let t=Ude(e);r.push(t),e.global&&n.push(t),e.values&&(a[e.name]=e.values.map(Fde))}let o=[],i=[],s=Object.create(null);for(let t of e){let e=n,l=a;t.attributes&&(e=e.concat(t.attributes.map((e=>"string"==typeof e?r.find((t=>t.label==e))||{label:e,type:"property"}:(e.values&&(l==a&&(l=Object.create(l)),l[e.name]=e.values.map(Fde)),Ude(e))))));let c=new jde(t,e,l);s[c.name]=c,o.push(c),t.top&&i.push(c)}i.length||(i=o);for(let t=0;t<o.length;t++){let r=e[t],n=o[t];if(r.children)for(let e of r.children)s[e]&&n.children.push(s[e]);else n.children=o}return e=>{var t;let{doc:r}=e.state,l=function(e,t){var r;let n=poe(e).resolveInner(t,-1),a=null;for(let e=n;!a&&e.parent;e=e.parent)"OpenTag"!=e.name&&"CloseTag"!=e.name&&"SelfClosingTag"!=e.name&&"MismatchedCloseTag"!=e.name||(a=e);if(a&&(a.to>t||a.lastChild.type.isError)){let e=a.parent;if("TagName"==n.name)return"CloseTag"==a.name||"MismatchedCloseTag"==a.name?{type:"closeTag",from:n.from,context:e}:{type:"openTag",from:n.from,context:Lde(e)};if("AttributeName"==n.name)return{type:"attrName",from:n.from,context:a};if("AttributeValue"==n.name)return{type:"attrValue",from:n.from,context:a};let r=n==a||"Attribute"==n.name?n.childBefore(t):n;return"StartTag"==(null==r?void 0:r.name)?{type:"openTag",from:t,context:Lde(e)}:"StartCloseTag"==(null==r?void 0:r.name)&&r.to<=t?{type:"closeTag",from:t,context:e}:"Is"==(null==r?void 0:r.name)?{type:"attrValue",from:t,context:a}:r?{type:"attrName",from:t,context:a}:null}if("StartCloseTag"==n.name)return{type:"closeTag",from:t,context:n.parent};for(;n.parent&&n.to==t&&!(null===(r=n.lastChild)||void 0===r?void 0:r.type.isError);)n=n.parent;return"Element"==n.name||"Text"==n.name||"Document"==n.name?{type:"tag",from:t,context:"Element"==n.name?n:Lde(n)}:null}(e.state,e.pos);if(!l||"tag"==l.type&&!e.explicit)return null;let{type:c,from:u,context:d}=l;if("openTag"==c){let e=i,t=Ide(r,d);if(t){let r=s[t];e=(null==r?void 0:r.children)||o}return{from:u,options:e.map((e=>e.completion)),validFor:Bde}}if("closeTag"==c){let n=Ide(r,d);return n?{from:u,to:e.pos+(">"==r.sliceString(e.pos,e.pos+1)?1:0),options:[(null===(t=s[n])||void 0===t?void 0:t.closeNameCompletion)||{label:n+">",type:"type"}],validFor:Bde}:null}if("attrName"==c){let e=s[Nde(r,d)];return{from:u,options:(null==e?void 0:e.attrs)||n,validFor:Bde}}if("attrValue"==c){let t=function(e,t,r){let n=t&&t.getChildren("Attribute").find((e=>e.from<=r&&e.to>=r)),a=n&&n.getChild("AttributeName");return a?e.sliceString(a.from,a.to):""}(r,d,u);if(!t)return null;let n=s[Nde(r,d)],o=((null==n?void 0:n.attrValues)||a)[t];return o&&o.length?{from:u,to:e.pos+('"'==r.sliceString(e.pos,e.pos+1)?1:0),options:o,validFor:/^"[^"]*"?$/}:null}if("tag"==c){let t=Ide(r,d),n=s[t],a=[],l=d&&d.lastChild;!t||l&&"CloseTag"==l.name&&Nde(r,l)==t||a.push(n?n.closeCompletion:{label:"</"+t+">",type:"type",boost:2});let c=a.concat(((null==n?void 0:n.children)||(d?o:i)).map((e=>e.openCompletion)));if(d&&(null==n?void 0:n.text.length)){let t=d.firstChild;t.to>e.pos-20&&!/\S/.test(e.state.sliceDoc(t.to,e.pos))&&(c=c.concat(n.text))}return{from:u,options:c,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}return null}}const zde=doe.define({name:"xml",parser:Mde.configure({props:[Coe.add({Element(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit}),Boe.add({Element(e){let t=e.firstChild,r=e.lastChild;return t&&"OpenTag"==t.name?{from:t.to,to:"CloseTag"==r.name?r.from:e.to}:null}}),yie.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/$/}});function qde(e,t,r=e.length){if(!t)return"";let n=t.firstChild,a=n&&n.getChild("TagName");return a?e.sliceString(a.from,Math.min(a.to,r)):""}const Hde=_re.inputHandler.of(((e,t,r,n,a)=>{if(e.composing||e.state.readOnly||t!=r||">"!=n&&"/"!=n||!zde.isActiveAt(e.state,t,-1))return!1;let o=a(),{state:i}=o,s=i.changeByRange((e=>{var t,r,a;let o,{head:s}=e,l=i.doc.sliceString(s-1,s)==n,c=poe(i).resolveInner(s,-1);if(l&&">"==n&&"EndTag"==c.name){let n=c.parent;if("CloseTag"!=(null===(r=null===(t=n.parent)||void 0===t?void 0:t.lastChild)||void 0===r?void 0:r.name)&&(o=qde(i.doc,n.parent,s)))return{range:e,changes:{from:s,to:s+(">"===i.doc.sliceString(s,s+1)?1:0),insert:`</${o}>`}}}else if(l&&"/"==n&&"StartCloseTag"==c.name){let e=c.parent;if(c.from==s-2&&"CloseTag"!=(null===(a=e.lastChild)||void 0===a?void 0:a.name)&&(o=qde(i.doc,e,s))){let e=s+(">"===i.doc.sliceString(s,s+1)?1:0),t=`${o}>`;return{range:f6.cursor(s+t.length,-1),changes:{from:s,to:e,insert:t}}}}return{range:e}}));return!s.changes.empty&&(e.dispatch([o,i.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)})),Vde=63;class Zde{constructor(e,t,r){this.parent=e,this.depth=t,this.type=r,this.hash=(e?e.hash+e.hash<<8:0)+t+(t<<4)+r}}function Wde(e,t){for(let r=0,n=t-e.pos-1;;n--,r++){let t=e.peek(n);if(Gde(t)||-1==t)return r}}function Xde(e){return 32==e||9==e}function Gde(e){return 10==e||13==e}function Yde(e){return Xde(e)||Gde(e)}function Kde(e){return e<0||Yde(e)}Zde.top=new Zde(null,-1,0);const Jde=new uce({start:Zde.top,reduce:(e,t)=>3!=e.type||20!=t&&34!=t?e:e.parent,shift(e,t,r,n){if(3==t)return new Zde(e,Wde(n,n.pos),1);if(65==t||5==t)return new Zde(e,Wde(n,n.pos),2);if(t==Vde)return e.parent;if(19==t||33==t)return new Zde(e,0,3);if(13==t&&4==e.type)return e.parent;if(47==t){let t=/[1-9]/.exec(n.read(n.pos,r.pos));if(t)return new Zde(e,e.depth+ +t[0],4)}return e},hash:e=>e.hash});function epe(e,t,r=0){return e.peek(r)==t&&e.peek(r+1)==t&&e.peek(r+2)==t&&Kde(e.peek(r+3))}const tpe=new Yle(((e,t)=>{if(-1==e.next&&t.canShift(64))return e.acceptToken(64);let r=e.peek(-1);if((Gde(r)||r<0)&&3!=t.context.type){if(epe(e,45)){if(!t.canShift(Vde))return e.acceptToken(1,3);e.acceptToken(Vde)}if(epe(e,46)){if(!t.canShift(Vde))return e.acceptToken(2,3);e.acceptToken(Vde)}let r=0;for(;32==e.next;)r++,e.advance();!(r<t.context.depth)&&(r!=t.context.depth||1!=t.context.type||45==e.next&&Kde(e.peek(1)))||-1==e.next||Gde(e.next)||35==e.next||e.acceptToken(Vde,-r)}}),{contextual:!0}),rpe=new Yle(((e,t)=>{if(3!=t.context.type)if(45==e.next)e.advance(),Kde(e.next)&&e.acceptToken(1==t.context.type&&t.context.depth==Wde(e,e.pos-1)?4:3);else if(63==e.next)e.advance(),Kde(e.next)&&e.acceptToken(2==t.context.type&&t.context.depth==Wde(e,e.pos-1)?6:5);else{let r=e.pos;for(;;)if(Xde(e.next)){if(e.pos==r)return;e.advance()}else if(33==e.next)ope(e);else{if(38!=e.next){if(42==e.next){ipe(e);break}if(39==e.next||34==e.next){if(spe(e,!0))break;return}if(91==e.next||123==e.next){if(!lpe(e))return;break}ppe(e,!0,!1,0);break}ipe(e)}for(;Xde(e.next);)e.advance();if(58==e.next){if(e.pos==r&&t.canShift(29))return;Kde(e.peek(1))&&e.acceptTokenTo(2==t.context.type&&t.context.depth==Wde(e,r)?66:65,r)}}else 63==e.next&&(e.advance(),Kde(e.next)&&e.acceptToken(7))}),{contextual:!0});function npe(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function ape(e,t){return 37==e.next?(e.advance(),npe(e.next)&&e.advance(),npe(e.next)&&e.advance(),!0):!!((r=e.next)>32&&r<127&&34!=r&&37!=r&&44!=r&&60!=r&&62!=r&&92!=r&&94!=r&&96!=r&&123!=r&&124!=r&&125!=r||t&&44==e.next)&&(e.advance(),!0);var r}function ope(e){if(e.advance(),60==e.next){for(e.advance();;)if(!ape(e,!0)){62==e.next&&e.advance();break}}else for(;ape(e,!1););}function ipe(e){for(e.advance();!Kde(e.next)&&"f"!=upe(e.tag);)e.advance()}function spe(e,t){let r=e.next,n=!1,a=e.pos;for(e.advance();;){let o=e.next;if(o<0)break;if(e.advance(),o==r){if(39!=o)break;if(39!=e.next)break;e.advance()}else if(92==o&&34==r)e.next>=0&&e.advance();else if(Gde(o)){if(t)return!1;n=!0}else if(t&&e.pos>=a+1024)return!1}return!n}function lpe(e){for(let t=[],r=e.pos+1024;;)if(91==e.next||123==e.next)t.push(e.next),e.advance();else if(39==e.next||34==e.next){if(!spe(e,!0))return!1}else if(93==e.next||125==e.next){if(t[t.length-1]!=e.next-2)return!1;if(t.pop(),e.advance(),!t.length)return!0}else{if(e.next<0||e.pos>r||Gde(e.next))return!1;e.advance()}}const cpe="iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif";function upe(e){return e<33?"u":e>125?"s":cpe[e-33]}function dpe(e,t){let r=upe(e);return"u"!=r&&!(t&&"f"==r)}function ppe(e,t,r,n){if("s"!=upe(e.next)&&(63!=e.next&&58!=e.next&&45!=e.next||!dpe(e.peek(1),r)))return!1;e.advance();let a=e.pos;for(;;){let o=e.next,i=0,s=n+1;for(;Yde(o);){if(Gde(o)){if(t)return!1;s=0}else s++;o=e.peek(++i)}if(!(o>=0&&(58==o?dpe(e.peek(i+1),r):35==o?32!=e.peek(i-1):dpe(o,r)))||!r&&s<=n||0==s&&!r&&(epe(e,45,i)||epe(e,46,i)))break;if(t&&"f"==upe(o))return!1;for(let t=i;t>=0;t--)e.advance();if(t&&e.pos>a+1024)return!1}return!0}const hpe=new Yle(((e,t)=>{if(33==e.next)ope(e),e.acceptToken(12);else if(38==e.next||42==e.next){let t=38==e.next?10:11;ipe(e),e.acceptToken(t)}else 39==e.next||34==e.next?(spe(e,!1),e.acceptToken(9)):ppe(e,!1,3==t.context.type,t.context.depth)&&e.acceptToken(8)})),fpe=new Yle(((e,t)=>{let r=4==t.context.type?t.context.depth:-1,n=e.pos;e:for(;;){let a=0,o=e.next;for(;32==o;)o=e.peek(++a);if(!a&&(epe(e,45,a)||epe(e,46,a)))break;if(!Gde(o)&&(r<0&&(r=Math.max(t.context.depth+1,a)),a<r))break;for(;;){if(e.next<0)break e;let t=Gde(e.next);if(e.advance(),t)continue e;n=e.pos}}e.acceptTokenTo(13,n)})),mpe=Lae({DirectiveName:aoe.keyword,DirectiveContent:aoe.attributeValue,"DirectiveEnd DocEnd":aoe.meta,QuotedLiteral:aoe.string,BlockLiteralHeader:aoe.special(aoe.string),BlockLiteralContent:aoe.content,Literal:aoe.content,"Key/Literal Key/QuotedLiteral":aoe.definition(aoe.propertyName),"Anchor Alias":aoe.labelName,Tag:aoe.typeName,Comment:aoe.lineComment,": , -":aoe.separator,"?":aoe.punctuation,"[ ]":aoe.squareBracket,"{ }":aoe.brace}),gpe=dce.deserialize({version:14,states:"5lQ!ZQgOOO#PQfO'#CpO#uQfO'#DOOOQR'#Dv'#DvO$qQgO'#DRO%gQdO'#DUO%nQgO'#DUO&ROaO'#D[OOQR'#Du'#DuO&{QgO'#D^O'rQgO'#D`OOQR'#Dt'#DtO(iOqO'#DbOOQP'#Dj'#DjO(zQaO'#CmO)YQgO'#CmOOQP'#Cm'#CmQ)jQaOOQ)uQgOOQ]QgOOO*PQdO'#CrO*nQdO'#CtOOQO'#Dw'#DwO+]Q`O'#CxO+hQdO'#CwO+rQ`O'#CwOOQO'#Cv'#CvO+wQdO'#CvOOQO'#Cq'#CqO,UQ`O,59[O,^QfO,59[OOQR,59[,59[OOQO'#Cx'#CxO,eQ`O'#DPO,pQdO'#DPOOQO'#Dx'#DxO,zQdO'#DxO-XQ`O,59jO-aQfO,59jOOQR,59j,59jOOQR'#DS'#DSO-hQcO,59mO-sQgO'#DVO.TQ`O'#DVO.YQcO,59pOOQR'#DX'#DXO#|QfO'#DWO.hQcO'#DWOOQR,59v,59vO.yOWO,59vO/OOaO,59vO/WOaO,59vO/cQgO'#D_OOQR,59x,59xO0VQgO'#DaOOQR,59z,59zOOQP,59|,59|O0yOaO,59|O1ROaO,59|O1aOqO,59|OOQP-E7h-E7hO1oQgO,59XOOQP,59X,59XO2PQaO'#DeO2_QgO'#DeO2oQgO'#DkOOQP'#Dk'#DkQ)jQaOOO3PQdO'#CsOOQO,59^,59^O3kQdO'#CuOOQO,59`,59`OOQO,59c,59cO4VQdO,59cO4aQdO'#CzO4kQ`O'#CzOOQO,59b,59bOOQU,5:Q,5:QOOQR1G.v1G.vO4pQ`O1G.vOOQU-E7d-E7dO4xQdO,59kOOQO,59k,59kO5SQdO'#DQO5^Q`O'#DQOOQO,5:d,5:dOOQU,5:R,5:ROOQR1G/U1G/UO5cQ`O1G/UOOQU-E7e-E7eO5kQgO'#DhO5xQcO1G/XOOQR1G/X1G/XOOQR,59q,59qO6TQgO,59qO6eQdO'#DiO6lQgO'#DiO7PQcO1G/[OOQR1G/[1G/[OOQR,59r,59rO#|QfO,59rOOQR1G/b1G/bO7_OWO1G/bO7dOaO1G/bOOQR,59y,59yOOQR,59{,59{OOQP1G/h1G/hO7lOaO1G/hO7tOaO1G/hO8POaO1G/hOOQP1G.s1G.sO8_QgO,5:POOQP,5:P,5:POOQP,5:V,5:VOOQP-E7i-E7iOOQO,59_,59_OOQO,59a,59aOOQO1G.}1G.}OOQO,59f,59fO8oQdO,59fOOQR7+$b7+$bP,XQ`O'#DfOOQO1G/V1G/VOOQO,59l,59lO8yQdO,59lOOQR7+$p7+$pP9TQ`O'#DgOOQR'#DT'#DTOOQR,5:S,5:SOOQR-E7f-E7fOOQR7+$s7+$sOOQR1G/]1G/]O9YQgO'#DYO9jQ`O'#DYOOQR,5:T,5:TO#|QfO'#DZO9oQcO'#DZOOQR-E7g-E7gOOQR7+$v7+$vOOQR1G/^1G/^OOQR7+$|7+$|O:QOWO7+$|OOQP7+%S7+%SO:VOaO7+%SO:_OaO7+%SOOQP1G/k1G/kOOQO1G/Q1G/QOOQO1G/W1G/WOOQR,59t,59tO:jQgO,59tOOQR,59u,59uO#|QfO,59uOOQR<<Hh<<HhOOQP<<Hn<<HnO:zOaO<<HnOOQR1G/`1G/`OOQR1G/a1G/aOOQPAN>YAN>Y",stateData:";S~O!fOS!gOS^OS~OP_OQbORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!V[O!cTO~O`cO~P]OVkOWROXROYeOZfO[dOcPOmhOqQO~OboO~P!bOVtOWROXROYeOZfO[dOcPOmrOqQO~OpwO~P#WORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!cTO~OSvP!avP!bvP~P#|OWROXROYeOZfO[dOcPOqQO~OmzO~P%OOm!OOUzP!azP!bzP!dzP~P#|O^!SO!b!QO!f!TO!g!RO~ORSOTUOWROXROcPOqQO!PVO!cTO~OY!UOP!QXQ!QX!V!QX!`!QXS!QX!a!QX!b!QXU!QXm!QX!d!QX~P&aO[!WOP!SXQ!SX!V!SX!`!SXS!SX!a!SX!b!SXU!SXm!SX!d!SX~P&aO^!ZO!W![O!b!YO!f!]O!g!YO~OP!_O!V[OQaX!`aX~OPaXQaX!VaX!`aX~P#|OP!bOQ!cO!V[O~OP_O!V[O~P#|OWROXROY!fOcPOqQObfXmfXofXpfX~OWROXRO[!hOcPOqQObhXmhXohXphX~ObeXmlXoeX~ObkXokX~P%OOm!kO~Om!lObnPonP~P%OOb!pOo!oO~Ob!pO~P!bOm!sOosXpsX~OosXpsX~P%OOm!uOotPptP~P%OOo!xOp!yO~Op!yO~P#WOS!|O!a#OO!b#OO~OUyX!ayX!byX!dyX~P#|Om#QO~OU#SO!a#UO!b#UO!d#RO~Om#WOUzX!azX!bzX!dzX~O]#XO~O!b#XO!g#YO~O^#ZO!b#XO!g#YO~OP!RXQ!RX!V!RX!`!RXS!RX!a!RX!b!RXU!RXm!RX!d!RX~P&aOP!TXQ!TX!V!TX!`!TXS!TX!a!TX!b!TXU!TXm!TX!d!TX~P&aO!b#^O!g#^O~O^#_O!b#^O!f#`O!g#^O~O^#_O!W#aO!b#^O!g#^O~OPaaQaa!Vaa!`aa~P#|OP#cO!V[OQ!XX!`!XX~OP!XXQ!XX!V!XX!`!XX~P#|OP_O!V[OQ!_X!`!_X~P#|OWROXROcPOqQObgXmgXogXpgX~OWROXROcPOqQObiXmiXoiXpiX~Obkaoka~P%OObnXonX~P%OOm#kO~Ob#lOo!oO~Oosapsa~P%OOotXptX~P%OOm#pO~Oo!xOp#qO~OSwP!awP!bwP~P#|OS!|O!a#vO!b#vO~OUya!aya!bya!dya~P#|Om#xO~P%OOm#{OU}P!a}P!b}P!d}P~P#|OU#SO!a$OO!b$OO!d#RO~O]$QO~O!b$QO!g$RO~O!b$SO!g$SO~O^$TO!b$SO!g$SO~O^$TO!b$SO!f$UO!g$SO~OP!XaQ!Xa!V!Xa!`!Xa~P#|Obnaona~P%OOotapta~P%OOo!xO~OU|X!a|X!b|X!d|X~P#|Om$ZO~Om$]OU}X!a}X!b}X!d}X~O]$^O~O!b$_O!g$_O~O^$`O!b$_O!g$_O~OU|a!a|a!b|a!d|a~P#|O!b$cO!g$cO~O",goto:",]!mPPPPPPPPPPPPPPPPP!nPP!v#v#|$`#|$c$f$j$nP%VPPP!v%Y%^%a%{&O%a&R&U&X&_&b%aP&e&{&e'O'RPP']'a'g'm's'y(XPPPPPPPP(_)e*X+c,VUaObcR#e!c!{ROPQSTUXY_bcdehknrtvz!O!U!W!_!b!c!f!h!k!l!s!u!|#Q#R#S#W#c#k#p#x#{$Z$]QmPR!qnqfPQThknrtv!k!l!s!u#R#k#pR!gdR!ieTlPnTjPnSiPnSqQvQ{TQ!mkQ!trQ!vtR#y#RR!nkTsQvR!wt!RWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]RySR#t!|R|TR|UQ!PUR#|#SR#z#RR#z#SyZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]R!VXR!XYa]O^abc!a!c!eT!da!eQnPR!rnQvQR!{vQ!}yR#u!}Q#T|R#}#TW^Obc!cS!^^!aT!aa!eQ!eaR#f!eW`Obc!cQxSS}U#SQ!`_Q#PzQ#V!OQ#b!_Q#d!bQ#s!|Q#w#QQ$P#WQ$V#cQ$Y#xQ$[#{Q$a$ZR$b$]xZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]Q!VXQ!XYQ#[!UR#]!W!QWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]pfPQThknrtv!k!l!s!u#R#k#pQ!gdQ!ieQ#g!fR#h!hSgPn^pQTkrtv#RQ!jhQ#i!kQ#j!lQ#n!sQ#o!uQ$W#kR$X#pQuQR!zv",nodeNames:"⚠ DirectiveEnd DocEnd - - ? ? ? Literal QuotedLiteral Anchor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document",maxTerm:74,context:Jde,nodeProps:[["isolate",-3,8,9,14,""],["openedBy",18,"[",32,"{"],["closedBy",19,"]",33,"}"]],propSources:[mpe],skippedNodes:[0],repeatNodeCount:6,tokenData:"-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv|#P|}&e}![#P![!]'O!]!`#P!`!a'i!a!}#P!}#O*g#O#P#P#P#Q+Q#Q#o#P#o#p+k#p#q'i#q#r,U#r;'S#P;'S;=`#z<%l?HT#P?HT?HU,o?HUO#PQ#UU!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PQ#kTOY#PZs#Pt;'S#P;'S;=`#z<%lO#PQ#}P;=`<%l#P~$VQ!f~XY$Qpq$Q~$bO!g~~$gS^~OY$bZ;'S$b;'S;=`$s<%lO$b~$vP;=`<%l$bR%OX!WQOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR%rX!WQ!VPOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR&bP;=`<%l%kR&lUoP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'VUmP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'p[!PP!WQOY#PZp#Ppq#hq{#P{|(f|}#P}!O(f!O!R#P!R![)p![;'S#P;'S;=`#z<%lO#PR(mW!PP!WQOY#PZp#Ppq#hq!R#P!R![)V![;'S#P;'S;=`#z<%lO#PR)^U!PP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR)wY!PP!WQOY#PZp#Ppq#hq{#P{|)V|}#P}!O)V!O;'S#P;'S;=`#z<%lO#PR*nUcP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+XUbP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+rUqP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,]UpP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,vU`P!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#P",tokenizers:[tpe,rpe,hpe,fpe,0,1],topRules:{Stream:[0,15]},tokenPrec:0}),vpe=doe.define({name:"yaml",parser:gpe.configure({props:[Coe.add({Stream:e=>{for(let t=e.node.resolve(e.pos,-1);t&&t.to>=e.pos;t=t.parent){if("BlockLiteralContent"==t.name&&t.from<t.to)return e.baseIndentFor(t);if("BlockLiteral"==t.name)return e.baseIndentFor(t)+e.unit;if("BlockSequence"==t.name||"BlockMapping"==t.name)return e.column(t.from,1);if("QuotedLiteral"==t.name)return null;if("Literal"==t.name){let r=e.column(t.from,1);if(r==e.lineIndent(t.from,1))return r;if(t.to>e.pos)return null}}return null},FlowMapping:Noe({closing:"}"}),FlowSequence:Noe({closing:"]"})}),Boe.add({"FlowMapping FlowSequence":Uoe,"Item Pair BlockLiteral":(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*[\]\}]$/}});function bpe(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,r=arguments[1];if(r&&"object"==typeof r&&null==r.nodeType&&!Array.isArray(r)){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)){var a=r[n];"string"==typeof a?e.setAttribute(n,a):null!=a&&(e[n]=a)}t++}for(;t<arguments.length;t++)ype(e,arguments[t]);return e}function ype(e,t){if("string"==typeof t)e.appendChild(document.createTextNode(t));else if(null==t);else if(null!=t.nodeType)e.appendChild(t);else{if(!Array.isArray(t))throw new RangeError("Unsupported child node: "+t);for(var r=0;r<t.length;r++)ype(e,t[r])}}class Ope{constructor(e,t,r){this.from=e,this.to=t,this.diagnostic=r}}class wpe{constructor(e,t,r){this.diagnostics=e,this.panel=t,this.selected=r}static init(e,t,r){let n=e,a=r.facet($pe).markerFilter;a&&(n=a(n,r));let o=e.slice().sort(((e,t)=>e.from-t.from||e.to-t.to)),i=new s7,s=[],l=0;for(let e=0;;){let t,n,a=e==o.length?null:o[e];if(!a&&!s.length)break;for(s.length?(t=l,n=s.reduce(((e,t)=>Math.min(e,t.to)),a&&a.from>t?a.from:1e8)):(t=a.from,n=a.to,s.push(a),e++);e<o.length;){let r=o[e];if(r.from!=t||!(r.to>r.from||r.to==t)){n=Math.min(r.from,n);break}s.push(r),e++,n=Math.min(r.to,n)}let c=Fpe(s);if(s.some((e=>e.from==e.to||e.from==e.to-1&&r.doc.lineAt(e.from).to==e.from)))i.add(t,t,$9.widget({widget:new Npe(c),diagnostics:s.slice()}));else{let e=s.reduce(((e,t)=>t.markClass?e+" "+t.markClass:e),"");i.add(t,n,$9.mark({class:"cm-lintRange cm-lintRange-"+c+e,diagnostics:s.slice(),inclusiveEnd:s.some((e=>e.to>n))}))}l=n;for(let e=0;e<s.length;e++)s[e].to<=l&&s.splice(e--,1)}let c=i.finish();return new wpe(c,t,xpe(c))}}function xpe(e,t=null,r=0){let n=null;return e.between(r,1e9,((e,r,{spec:a})=>{if(!(t&&a.diagnostics.indexOf(t)<0))if(n){if(a.diagnostics.indexOf(n.diagnostic)<0)return!1;n=new Ope(n.from,r,n.diagnostic)}else n=new Ope(e,r,t||a.diagnostics[0])})),n}function kpe(e,t){return e.field(Tpe,!1)?t:t.concat(z6.appendConfig.of(Qpe))}const Spe=z6.define(),_pe=z6.define(),Epe=z6.define(),Tpe=S6.define({create:()=>new wpe($9.none,null,null),update(e,t){if(t.docChanged&&e.diagnostics.size){let r=e.diagnostics.map(t.changes),n=null,a=e.panel;if(e.selected){let a=t.changes.mapPos(e.selected.from,1);n=xpe(r,e.selected.diagnostic,a)||xpe(r,null,a)}!r.size&&a&&t.state.facet($pe).autoPanel&&(a=null),e=new wpe(r,a,n)}for(let r of t.effects)if(r.is(Spe)){let n=t.state.facet($pe).autoPanel?r.value.length?Lpe.open:null:e.panel;e=wpe.init(r.value,n,t.state)}else r.is(_pe)?e=new wpe(e.diagnostics,r.value?Lpe.open:null,e.selected):r.is(Epe)&&(e=new wpe(e.diagnostics,e.panel,r.value));return e},provide:e=>[bne.from(e,(e=>e.panel)),_re.decorations.from(e,(e=>e.diagnostics))]}),Ape=$9.mark({class:"cm-lintRange cm-lintRange-active"});function Cpe(e,t){return bpe("ul",{class:"cm-tooltip-lint"},t.map((t=>Mpe(e,t,!1))))}const Ppe=e=>{let t=e.state.field(Tpe,!1);return!(!t||!t.panel||(e.dispatch({effects:_pe.of(!1)}),0))},Dpe=Aee.fromClass(class{constructor(e){this.view=e,this.timeout=-1,this.set=!0;let{delay:t}=e.state.facet($pe);this.lintTime=Date.now()+t,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,t)}run(){clearTimeout(this.timeout);let e=Date.now();if(e<this.lintTime-10)this.timeout=setTimeout(this.run,this.lintTime-e);else{this.set=!1;let{state:e}=this.view,{sources:t}=e.facet($pe);t.length&&function(e,t,r){let n=[],a=-1;for(let o of e)o.then((r=>{n.push(r),clearTimeout(a),n.length==e.length?t(n):a=setTimeout((()=>t(n)),200)}),r)}(t.map((e=>Promise.resolve(e(this.view)))),(t=>{this.view.state.doc==e.doc&&this.view.dispatch(function(e,t){return{effects:kpe(e,[Spe.of(t)])}}(this.view.state,t.reduce(((e,t)=>e.concat(t)))))}),(e=>{See(this.view.state,e)}))}}update(e){let t=e.state.facet($pe);(e.docChanged||t!=e.startState.facet($pe)||t.needsRefresh&&t.needsRefresh(e))&&(this.lintTime=Date.now()+t.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,t.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),$pe=v6.define({combine:e=>Object.assign({sources:e.map((e=>e.source)).filter((e=>null!=e))},t7(e.map((e=>e.config)),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,t)=>e?t?r=>e(r)||t(r):e:t}))});function Rpe(e){let t=[];if(e)e:for(let{name:r}of e){for(let e=0;e<r.length;e++){let n=r[e];if(/[a-zA-Z]/.test(n)&&!t.some((e=>e.toLowerCase()==n.toLowerCase()))){t.push(n);continue e}}t.push("")}return t}function Mpe(e,t,r){var n;let a=r?Rpe(t.actions):[];return bpe("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},bpe("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),null===(n=t.actions)||void 0===n?void 0:n.map(((r,n)=>{let o=!1,i=n=>{if(n.preventDefault(),o)return;o=!0;let a=xpe(e.state.field(Tpe).diagnostics,t);a&&r.apply(e,a.from,a.to)},{name:s}=r,l=a[n]?s.indexOf(a[n]):-1,c=l<0?s:[s.slice(0,l),bpe("u",s.slice(l,l+1)),s.slice(l+1)];return bpe("button",{type:"button",class:"cm-diagnosticAction",onclick:i,onmousedown:i,"aria-label":` Action: ${s}${l<0?"":` (access key "${a[n]})"`}.`},c)})),t.source&&bpe("div",{class:"cm-diagnosticSource"},t.source))}class Npe extends P9{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return bpe("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class Ipe{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=Mpe(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Lpe{constructor(e){this.view=e,this.items=[],this.list=bpe("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(27==t.keyCode)Ppe(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:r}=this.items[this.selectedIndex],n=Rpe(r.actions);for(let a=0;a<n.length;a++)if(n[a].toUpperCase().charCodeAt(0)==t.keyCode){let t=xpe(this.view.state.field(Tpe).diagnostics,r);t&&r.actions[a].apply(e,t.from,t.to)}}}t.preventDefault()},onclick:e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)}}),this.dom=bpe("div",{class:"cm-panel-lint"},this.list,bpe("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>Ppe(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Tpe).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(Tpe),r=0,n=!1,a=null,o=new Set;for(e.between(0,this.view.state.doc.length,((e,i,{spec:s})=>{for(let e of s.diagnostics){if(o.has(e))continue;o.add(e);let i,s=-1;for(let t=r;t<this.items.length;t++)if(this.items[t].diagnostic==e){s=t;break}s<0?(i=new Ipe(this.view,e),this.items.splice(r,0,i),n=!0):(i=this.items[s],s>r&&(this.items.splice(r,s-r),n=!0)),t&&i.diagnostic==t.diagnostic?i.dom.hasAttribute("aria-selected")||(i.dom.setAttribute("aria-selected","true"),a=i):i.dom.hasAttribute("aria-selected")&&i.dom.removeAttribute("aria-selected"),r++}}));r<this.items.length&&!(1==this.items.length&&this.items[0].diagnostic.from<0);)n=!0,this.items.pop();0==this.items.length&&(this.items.push(new Ipe(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),n=!0),a?(this.list.setAttribute("aria-activedescendant",a.id),this.view.requestMeasure({key:this,read:()=>({sel:a.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let r=t.height/this.list.offsetHeight;e.top<t.top?this.list.scrollTop-=(t.top-e.top)/r:e.bottom>t.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/r)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),n&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){for(;e!=r.dom;)t();e=r.dom.nextSibling}else this.list.insertBefore(r.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=xpe(this.view.state.field(Tpe).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:Epe.of(t)})}static open(e){return new Lpe(e)}}function jpe(e){return function(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const Bpe=_re.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:jpe("#d11")},".cm-lintRange-warning":{backgroundImage:jpe("orange")},".cm-lintRange-info":{backgroundImage:jpe("#999")},".cm-lintRange-hint":{backgroundImage:jpe("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function Upe(e){return"error"==e?4:"warning"==e?3:"info"==e?2:1}function Fpe(e){let t="hint",r=1;for(let n of e){let e=Upe(n.severity);e>r&&(r=e,t=n.severity)}return t}const Qpe=[Tpe,_re.decorations.compute([Tpe],(e=>{let{selected:t,panel:r}=e.field(Tpe);return t&&r&&t.from!=t.to?$9.set([Ape.range(t.from,t.to)]):$9.none})),function(e,t={}){let r=z6.define(),n=S6.define({create:()=>[],update(e,n){if(e.length&&(t.hideOnChange&&(n.docChanged||n.selection)?e=[]:t.hideOn&&(e=e.filter((e=>!t.hideOn(n,e)))),n.docChanged)){let t=[];for(let r of e){let e=n.changes.mapPos(r.pos,-1,a6.TrackDel);if(null!=e){let a=Object.assign(Object.create(null),r);a.pos=e,null!=a.end&&(a.end=n.changes.mapPos(a.end)),t.push(a)}}e=t}for(let t of n.effects)t.is(r)&&(e=t.value),t.is(hne)&&(e=[]);return e},provide:e=>sne.from(e)});return{active:n,extension:[n,Aee.define((a=>new une(a,e,n,r,t.hoverTime||300))),cne]}}((function(e,t,r){let n,{diagnostics:a}=e.state.field(Tpe),o=-1,i=-1;a.between(t-(r<0?1:0),t+(r>0?1:0),((e,a,{spec:s})=>{if(t>=e&&t<=a&&(e==a||(t>e||r>0)&&(t<a||r<0)))return n=s.diagnostics,o=e,i=a,!1}));let s=e.state.facet($pe).tooltipFilter;return n&&s&&(n=s(n,e.state)),n?{pos:o,end:i,above:e.state.doc.lineAt(o).to<i,create:()=>({dom:Cpe(e,n)})}:null}),{hideOn:function(e,t){let r=t.pos,n=t.end||r,a=e.state.facet($pe).hideOn(e,r,n);if(null!=a)return a;let o=e.startState.doc.lineAt(t.pos);return!(!e.effects.some((e=>e.is(Spe)))&&!e.changes.touchesRange(o.from,Math.max(o.to,n)))}}),Bpe],zpe=(({theme:e,settings:t={},styles:r=[]})=>{const n={".cm-gutters":{}},a={};t.background&&(a.backgroundColor=t.background),t.backgroundImage&&(a.backgroundImage=t.backgroundImage),t.foreground&&(a.color=t.foreground),t.fontSize&&(a.fontSize=t.fontSize),(t.background||t.foreground)&&(n["&"]=a),t.fontFamily&&(n["&.cm-editor .cm-scroller"]={fontFamily:t.fontFamily}),t.gutterBackground&&(n[".cm-gutters"].backgroundColor=t.gutterBackground),t.gutterForeground&&(n[".cm-gutters"].color=t.gutterForeground),t.gutterBorder&&(n[".cm-gutters"].borderRightColor=t.gutterBorder),t.caret&&(n[".cm-content"]={caretColor:t.caret},n[".cm-cursor, .cm-dropCursor"]={borderLeftColor:t.caret});const o={};return t.gutterActiveForeground&&(o.color=t.gutterActiveForeground),t.lineHighlight&&(n[".cm-activeLine"]={backgroundColor:t.lineHighlight},o.backgroundColor=t.lineHighlight),n[".cm-activeLineGutter"]=o,t.selection&&(n["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:t.selection+" !important"}),t.selectionMatch&&(n["& .cm-selectionMatch"]={backgroundColor:t.selectionMatch}),[_re.theme(n,{dark:"dark"===e}),lie(aie.define(r))]})({theme:"light",settings:{background:"var(--scalar-background-2)",foreground:"var(--scalar-color-1)",caret:"var(--scalar-color-1)",selectionMatch:"#e3dcce",gutterBackground:"var(--scalar-background-2)",gutterForeground:"var(--scalar-color-3)",gutterBorder:"transparent",lineHighlight:"var(--scalar-background-3)",fontFamily:"var(--scalar-font-code)"},styles:[{tag:[aoe.standard(aoe.tagName),aoe.tagName],color:"var(--scalar-color-purple)"},{tag:[aoe.comment],color:"var(--scalar-color-3)"},{tag:[aoe.className],color:"var(--scalar-color-orange)"},{tag:[aoe.variableName,aoe.propertyName,aoe.attributeName],color:"var(--scalar-color-1)"},{tag:[aoe.operator],color:"var(--scalar-color-2)"},{tag:[aoe.keyword,aoe.typeName,aoe.typeOperator],color:"var(--scalar-color-green)"},{tag:[aoe.string],color:"var(--scalar-color-blue)"},{tag:[aoe.bracket,aoe.regexp,aoe.meta],color:"var(--scalar-color-3)"},{tag:[aoe.number],color:"var(--scalar-color-orange)"},{tag:[aoe.name,aoe.quote],color:"var(--scalar-color-3)"},{tag:[aoe.heading],color:"var(--scalar-color-3)",fontWeight:"bold"},{tag:[aoe.emphasis],color:"var(--scalar-color-3)",fontStyle:"italic"},{tag:[aoe.deleted],color:"var(--scalar-color-3)",backgroundColor:"transparent"},{tag:[aoe.atom,aoe.bool,aoe.special(aoe.variableName)],color:"var(--scalar-color-3)"},{tag:[aoe.url,aoe.escape,aoe.regexp,aoe.link],color:"var(--scalar-color-1)"},{tag:aoe.link,textDecoration:"underline"},{tag:aoe.strikethrough,textDecoration:"line-through"},{tag:aoe.invalid,color:"var(--scalar-color-3)"}]}),qpe=new Ure({regexp:/(\{[^}]+\})/g,decoration:()=>$9.mark({attributes:{class:"api-client-url-variable"}})}),Hpe=()=>Aee.fromClass(class{constructor(e){a(this,"variables"),this.variables=qpe.createDeco(e)}update(e){this.variables=qpe.updateDeco(e,this.variables)}},{decorations:e=>e.variables,provide:e=>_re.atomicRanges.of((t=>{var r;return(null==(r=t.plugin(e))?void 0:r.variables)||$9.none}))}),Vpe=e=>"provider"in e&&!!Co(e.provider),Zpe={key:"Mod-a",run:e=>(e.dispatch({selection:{anchor:0,head:e.state.doc.length},scrollIntoView:!1}),!0)},Wpe=e=>{const t=So(null),r=(e="")=>{t.value&&t.value.state.doc.toString()!==e&&t.value.dispatch({changes:{from:0,to:t.value.state.doc.length,insert:e},selection:{anchor:Math.min(t.value.state.selection.main.anchor,e.length)}})},n=hc((()=>({onChange:e.onChange,onBlur:e.onBlur,onFocus:e.onFocus,disableTabIndent:Co(e.disableTabIndent),language:Co(e.language),classes:Co(e.classes),readOnly:Co(e.readOnly),lineNumbers:Co(e.lineNumbers),withVariables:Co(e.withVariables),forceFoldGutter:Co(e.forceFoldGutter),disableEnter:Co(e.disableEnter),disableCloseBrackets:Co(e.disableCloseBrackets),withoutTheme:Co(e.withoutTheme),lint:Co(e.lint),additionalExtensions:Co(e.extensions),placeholder:Co(e.placeholder)})));function a(){if(e.codeMirrorRef.value){const a=Vpe(e)?Co(e.provider):null,o=Gpe({...n.value,provider:a});t.value=new _re({parent:e.codeMirrorRef.value,extensions:o}),Vpe(e)||r(Co(e.content))}}return ul(e.codeMirrorRef,(()=>{var e;null==(e=t.value)||e.destroy(),a()}),{immediate:!0}),es((()=>{var e;return null==(e=t.value)?void 0:e.destroy()})),ul((()=>Vpe(e)?Co(e.provider):null),(()=>{var r;Vpe(e)&&(null==(r=t.value)||r.destroy(),a())})),ul(n,(()=>{if(!t.value)return;const r=Vpe(e)?Co(e.provider):null,a=Gpe({...n.value,provider:r});requestAnimationFrame((()=>{var e;null==(e=t.value)||e.dispatch({effects:z6.reconfigure.of(a)})}))}),{immediate:!0}),ul((()=>Co(e.content)),(()=>{Vpe(e)||r(Co(e.content))}),{immediate:!0}),{setCodeMirrorContent:r,codeMirror:t}},Xpe={html:function(e={}){let t,r="";!1===e.matchClosingTags&&(r="noMatch"),!0===e.selfClosingTags&&(r=(r?r+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(t=due((e.nestedLanguages||[]).concat(pde),(e.nestedAttributes||[]).concat(hde)));let n=t?fde.configure({wrap:t,dialect:r}):r?mde.configure({dialect:r}):mde;return new xoe(n,[mde.data.of({autocomplete:ude(e)}),!1!==e.autoCloseTags?vde:[],zue().support,Bce().support])},json:function(){return new xoe(Ode)},yaml:function(){return new xoe(vpe)},css:Bce,xml:function(e={}){let t=[zde.data.of({autocomplete:Qde(e.elements||[],e.attributes||[])})];return!1!==e.autoCloseTags&&t.push(Hde),new xoe(zde,t)}};function Gpe({onChange:e,onBlur:t,onFocus:r,provider:n,language:a,classes:o=[],readOnly:i=!1,lineNumbers:s=!1,withVariables:l=!1,forceFoldGutter:c=!1,disableEnter:u=!1,disableCloseBrackets:d=!1,disableTabIndent:p=!1,withoutTheme:h=!1,lint:f=!1,additionalExtensions:m=[],placeholder:g}){const v=[Vre(),Ole(),Rre.of(Lle),lie(uie,{fallback:!0}),_re.theme({".cm-line":{lineHeight:"20px",padding:"0 2px 0 4px"},".cm-gutterElement":{lineHeight:"20px"},".cm-tooltip":{border:"1px solid #f5c6cb",fontSize:"12px"},".cm-tooltip-lint":{backgroundColor:"#ffffff"},".cm-diagnostic-error":{borderLeft:"0",color:"#dc1b19"},".cm-foldPlaceholder":{background:"var(--scalar-background-1)",border:"none",fontFamily:"var(--scalar-font)"}}),_re.updateListener.of((t=>{t.docChanged&&(null==e||e(t.state.doc.toString()))})),_re.domEventHandlers({blur:(e,r)=>{null==t||t(r.state.doc.toString())},focus:(e,t)=>{null==r||r(t.state.doc.toString())}}),_re.editorAttributes.of({class:o.join(" ")}),...m];var b;if(n&&v.push(n),h||v.push(zpe),i?v.push(_re.editable.of(!1)):(v.push(e7.transactionFilter.of((e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let r=e.newDoc,{head:n}=e.newSelection.main,a=r.lineAt(n);if(n>a.from+200)return e;let o=r.sliceString(a.from,n);if(!t.some((e=>e.test(o))))return e;let{state:i}=e,s=-1,l=[];for(let{head:e}of i.selection.ranges){let t=i.doc.lineAt(e);if(t.from==s)continue;s=t.from;let r=Toe(i,t.from);if(null==r)continue;let n=/^\s*/.exec(t.text)[0],a=Eoe(i,r);n!=a&&l.push({from:t.from,to:t.from+n.length,insert:a})}return l.length?[e,{changes:l,sequential:!0}]:e})),bie(),function(e={}){return[Dse,kse,ise.of(e),Cse,fle,$se]}(),Rre.of([...hle,Zpe]),bie()),d||v.push([ale,Jse],Rre.of([...ole])),p?v.push(Rre.of([{key:"Tab",run:()=>!1,shift:()=>!1}])):v.push(Rre.of([Ule]))),g&&v.push((b=g,Aee.fromClass(class{constructor(e){this.view=e,this.placeholder=b?$9.set([$9.widget({widget:new Gre(b),side:1}).range(0)]):$9.none}get decorations(){return this.view.state.doc.length?$9.none:this.placeholder}},{decorations:e=>e.decorations}))),s&&v.push(function(e={}){return[Nne.of(e),Ene(),jne]}()),c&&v.push(rie({markerDOM:e=>{const t=document.createElement("div");t.classList.add("cm-foldMarker");const r=fc(p5,{icon:e?"ChevronDown":"ChevronRight",size:"md"});return Pu(r,t),t}})),a&&Xpe[a]&&(v.push(Xpe[a]()),c||v.push(rie({markerDOM:e=>{const t=document.createElement("div");t.classList.add("cm-foldMarker");const r=fc(p5,{icon:e?"ChevronDown":"ChevronRight",size:"md"});return Pu(r,t),t}}))),f&&"json"===a){const e=function(e,t={}){return[$pe.of({source:e,config:t}),Dpe,Qpe]}((e=>{const t=[],r=e.state.doc.toString();if(r.trim())try{JSON.parse(r)}catch(r){r instanceof Error&&t.push({from:0,to:e.state.doc.length,severity:"error",message:r.message})}return t}));v.push(e)}return l&&v.push(Hpe()),u?v.push(Rre.of([{key:"Enter",run:()=>!0},{key:"Ctrl-Enter",mac:"Cmd-Enter",run:()=>!0},{key:"Shift-Enter",run:()=>!0}])):v.push(Rre.of([{key:"Enter",run:jle}])),v}function Ype(e){return Array.isArray?Array.isArray(e):"[object Array]"===nhe(e)}function Kpe(e){return"string"==typeof e}function Jpe(e){return"number"==typeof e}function ehe(e){return"object"==typeof e}function the(e){return null!=e}function rhe(e){return!e.trim().length}function nhe(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const ahe=Object.prototype.hasOwnProperty;class ohe{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let r=ihe(e);this._keys.push(r),this._keyMap[r.id]=r,t+=r.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function ihe(e){let t=null,r=null,n=null,a=1,o=null;if(Kpe(e)||Ype(e))n=e,t=she(e),r=lhe(e);else{if(!ahe.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const i=e.name;if(n=i,ahe.call(e,"weight")&&(a=e.weight,a<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(i));t=she(i),r=lhe(i),o=e.getFn}return{path:t,id:r,weight:a,src:n,getFn:o}}function she(e){return Ype(e)?e:e.split(".")}function lhe(e){return Ype(e)?e.join("."):e}const che={useExtendedSearch:!1,getFn:function(e,t){let r=[],n=!1;const a=(e,t,o)=>{if(the(e))if(t[o]){const i=e[t[o]];if(!the(i))return;if(o===t.length-1&&(Kpe(i)||Jpe(i)||function(e){return!0===e||!1===e||function(e){return ehe(e)&&null!==e}(e)&&"[object Boolean]"==nhe(e)}(i)))r.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(i));else if(Ype(i)){n=!0;for(let e=0,r=i.length;e<r;e+=1)a(i[e],t,o+1)}else t.length&&a(i,t,o+1)}else r.push(e)};return a(e,Kpe(t)?t.split("."):t,0),n?r:r[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var uhe={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...che};const dhe=/[^ ]+/g;class phe{constructor({getFn:e=uhe.getFn,fieldNormWeight:t=uhe.fieldNormWeight}={}){this.norm=function(e=1,t=3){const r=new Map,n=Math.pow(10,t);return{get(t){const a=t.match(dhe).length;if(r.has(a))return r.get(a);const o=1/Math.pow(a,.5*e),i=parseFloat(Math.round(o*n)/n);return r.set(a,i),i},clear(){r.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach(((e,t)=>{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,Kpe(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();Kpe(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,r=this.size();t<r;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!the(e)||rhe(e))return;let r={v:e,i:t,n:this.norm.get(e)};this.records.push(r)}_addObject(e,t){let r={i:t,$:{}};this.keys.forEach(((t,n)=>{let a=t.getFn?t.getFn(e):this.getFn(e,t.path);if(the(a))if(Ype(a)){let e=[];const t=[{nestedArrIndex:-1,value:a}];for(;t.length;){const{nestedArrIndex:r,value:n}=t.pop();if(the(n))if(Kpe(n)&&!rhe(n)){let t={v:n,i:r,n:this.norm.get(n)};e.push(t)}else Ype(n)&&n.forEach(((e,r)=>{t.push({nestedArrIndex:r,value:e})}))}r.$[n]=e}else if(Kpe(a)&&!rhe(a)){let e={v:a,n:this.norm.get(a)};r.$[n]=e}})),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function hhe(e,t,{getFn:r=uhe.getFn,fieldNormWeight:n=uhe.fieldNormWeight}={}){const a=new phe({getFn:r,fieldNormWeight:n});return a.setKeys(e.map(ihe)),a.setSources(t),a.create(),a}function fhe(e,{errors:t=0,currentLocation:r=0,expectedLocation:n=0,distance:a=uhe.distance,ignoreLocation:o=uhe.ignoreLocation}={}){const i=t/e.length;if(o)return i;const s=Math.abs(n-r);return a?i+s/a:s?1:i}const mhe=32;function ghe(e){let t={};for(let r=0,n=e.length;r<n;r+=1){const a=e.charAt(r);t[a]=(t[a]||0)|1<<n-r-1}return t}const vhe=String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):e=>e;class bhe{constructor(e,{location:t=uhe.location,threshold:r=uhe.threshold,distance:n=uhe.distance,includeMatches:a=uhe.includeMatches,findAllMatches:o=uhe.findAllMatches,minMatchCharLength:i=uhe.minMatchCharLength,isCaseSensitive:s=uhe.isCaseSensitive,ignoreDiacritics:l=uhe.ignoreDiacritics,ignoreLocation:c=uhe.ignoreLocation}={}){if(this.options={location:t,threshold:r,distance:n,includeMatches:a,findAllMatches:o,minMatchCharLength:i,isCaseSensitive:s,ignoreDiacritics:l,ignoreLocation:c},e=s?e:e.toLowerCase(),e=l?vhe(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const u=(e,t)=>{this.chunks.push({pattern:e,alphabet:ghe(e),startIndex:t})},d=this.pattern.length;if(d>mhe){let e=0;const t=d%mhe,r=d-t;for(;e<r;)u(this.pattern.substr(e,mhe),e),e+=mhe;if(t){const e=d-mhe;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,ignoreDiacritics:r,includeMatches:n}=this.options;if(e=t?e:e.toLowerCase(),e=r?vhe(e):e,this.pattern===e){let t={isMatch:!0,score:0};return n&&(t.indices=[[0,e.length-1]]),t}const{location:a,distance:o,threshold:i,findAllMatches:s,minMatchCharLength:l,ignoreLocation:c}=this.options;let u=[],d=0,p=!1;this.chunks.forEach((({pattern:t,alphabet:r,startIndex:h})=>{const{isMatch:f,score:m,indices:g}=function(e,t,r,{location:n=uhe.location,distance:a=uhe.distance,threshold:o=uhe.threshold,findAllMatches:i=uhe.findAllMatches,minMatchCharLength:s=uhe.minMatchCharLength,includeMatches:l=uhe.includeMatches,ignoreLocation:c=uhe.ignoreLocation}={}){if(t.length>mhe)throw new Error("Pattern length exceeds max of 32.");const u=t.length,d=e.length,p=Math.max(0,Math.min(n,d));let h=o,f=p;const m=s>1||l,g=m?Array(d):[];let v;for(;(v=e.indexOf(t,f))>-1;){let e=fhe(t,{currentLocation:v,expectedLocation:p,distance:a,ignoreLocation:c});if(h=Math.min(e,h),f=v+u,m){let e=0;for(;e<u;)g[v+e]=1,e+=1}}f=-1;let b=[],y=1,O=u+d;const w=1<<u-1;for(let n=0;n<u;n+=1){let o=0,s=O;for(;o<s;)fhe(t,{errors:n,currentLocation:p+s,expectedLocation:p,distance:a,ignoreLocation:c})<=h?o=s:O=s,s=Math.floor((O-o)/2+o);O=s;let l=Math.max(1,p-s+1),v=i?d:Math.min(p+s,d)+u,x=Array(v+2);x[v+1]=(1<<n)-1;for(let o=v;o>=l;o-=1){let i=o-1,s=r[e.charAt(i)];if(m&&(g[i]=+!!s),x[o]=(x[o+1]<<1|1)&s,n&&(x[o]|=(b[o+1]|b[o])<<1|1|b[o+1]),x[o]&w&&(y=fhe(t,{errors:n,currentLocation:i,expectedLocation:p,distance:a,ignoreLocation:c}),y<=h)){if(h=y,f=i,f<=p)break;l=Math.max(1,2*p-f)}}if(fhe(t,{errors:n+1,currentLocation:p,expectedLocation:p,distance:a,ignoreLocation:c})>h)break;b=x}const x={isMatch:f>=0,score:Math.max(.001,y)};if(m){const e=function(e=[],t=uhe.minMatchCharLength){let r=[],n=-1,a=-1,o=0;for(let i=e.length;o<i;o+=1){let i=e[o];i&&-1===n?n=o:i||-1===n||(a=o-1,a-n+1>=t&&r.push([n,a]),n=-1)}return e[o-1]&&o-n>=t&&r.push([n,o-1]),r}(g,s);e.length?l&&(x.indices=e):x.isMatch=!1}return x}(e,t,r,{location:a+h,distance:o,threshold:i,findAllMatches:s,minMatchCharLength:l,includeMatches:n,ignoreLocation:c});f&&(p=!0),d+=m,f&&g&&(u=[...u,...g])}));let h={isMatch:p,score:p?d/this.chunks.length:1};return p&&n&&(h.indices=u),h}}class yhe{constructor(e){this.pattern=e}static isMultiMatch(e){return Ohe(e,this.multiRegex)}static isSingleMatch(e){return Ohe(e,this.singleRegex)}search(){}}function Ohe(e,t){const r=e.match(t);return r?r[1]:null}class whe extends yhe{constructor(e,{location:t=uhe.location,threshold:r=uhe.threshold,distance:n=uhe.distance,includeMatches:a=uhe.includeMatches,findAllMatches:o=uhe.findAllMatches,minMatchCharLength:i=uhe.minMatchCharLength,isCaseSensitive:s=uhe.isCaseSensitive,ignoreDiacritics:l=uhe.ignoreDiacritics,ignoreLocation:c=uhe.ignoreLocation}={}){super(e),this._bitapSearch=new bhe(e,{location:t,threshold:r,distance:n,includeMatches:a,findAllMatches:o,minMatchCharLength:i,isCaseSensitive:s,ignoreDiacritics:l,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class xhe extends yhe{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,r=0;const n=[],a=this.pattern.length;for(;(t=e.indexOf(this.pattern,r))>-1;)r=t+a,n.push([t,r-1]);const o=!!n.length;return{isMatch:o,score:o?0:1,indices:n}}}const khe=[class extends yhe{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},xhe,class extends yhe{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends yhe{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends yhe{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends yhe{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends yhe{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},whe],She=khe.length,_he=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Ehe=new Set([whe.type,xhe.type]);const The=[];function Ahe(e,t){for(let r=0,n=The.length;r<n;r+=1){let n=The[r];if(n.condition(e,t))return new n(e,t)}return new bhe(e,t)}const Che="$and",Phe="$path",Dhe=e=>!(!e[Che]&&!e.$or),$he=e=>({[Che]:Object.keys(e).map((t=>({[t]:e[t]})))});function Rhe(e,t,{auto:r=!0}={}){const n=e=>{let a=Object.keys(e);const o=(e=>!!e[Phe])(e);if(!o&&a.length>1&&!Dhe(e))return n($he(e));if((e=>!Ype(e)&&ehe(e)&&!Dhe(e))(e)){const n=o?e[Phe]:a[0],i=o?e.$val:e[n];if(!Kpe(i))throw new Error((e=>`Invalid value for key ${e}`)(n));const s={keyId:lhe(n),pattern:i};return r&&(s.searcher=Ahe(i,t)),s}let i={children:[],operator:a[0]};return a.forEach((t=>{const r=e[t];Ype(r)&&r.forEach((e=>{i.children.push(n(e))}))})),i};return Dhe(e)||(e=$he(e)),n(e)}function Mhe(e,t){const r=e.matches;t.matches=[],the(r)&&r.forEach((e=>{if(!the(e.indices)||!e.indices.length)return;const{indices:r,value:n}=e;let a={indices:r,value:n};e.key&&(a.key=e.key.src),e.idx>-1&&(a.refIndex=e.idx),t.matches.push(a)}))}function Nhe(e,t){t.score=e.score}class Ihe{constructor(e,t={},r){this.options={...uhe,...t},this.options.useExtendedSearch,this._keyStore=new ohe(this.options.keys),this.setCollection(e,r)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof phe))throw new Error("Incorrect 'index' type");this._myIndex=t||hhe(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){the(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const t=[];for(let r=0,n=this._docs.length;r<n;r+=1){const a=this._docs[r];e(a,r)&&(this.removeAt(r),r-=1,n-=1,t.push(a))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){const{includeMatches:r,includeScore:n,shouldSort:a,sortFn:o,ignoreFieldNorm:i}=this.options;let s=Kpe(e)?Kpe(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,{ignoreFieldNorm:t=uhe.ignoreFieldNorm}){e.forEach((e=>{let r=1;e.matches.forEach((({key:e,norm:n,score:a})=>{const o=e?e.weight:null;r*=Math.pow(0===a&&o?Number.EPSILON:a,(o||1)*(t?1:n))})),e.score=r}))}(s,{ignoreFieldNorm:i}),a&&s.sort(o),Jpe(t)&&t>-1&&(s=s.slice(0,t)),function(e,t,{includeMatches:r=uhe.includeMatches,includeScore:n=uhe.includeScore}={}){const a=[];return r&&a.push(Mhe),n&&a.push(Nhe),e.map((e=>{const{idx:r}=e,n={item:t[r],refIndex:r};return a.length&&a.forEach((t=>{t(e,n)})),n}))}(s,this._docs,{includeMatches:r,includeScore:n})}_searchStringList(e){const t=Ahe(e,this.options),{records:r}=this._myIndex,n=[];return r.forEach((({v:e,i:r,n:a})=>{if(!the(e))return;const{isMatch:o,score:i,indices:s}=t.searchIn(e);o&&n.push({item:e,idx:r,matches:[{score:i,value:e,norm:a,indices:s}]})})),n}_searchLogical(e){const t=Rhe(e,this.options),r=(e,t,n)=>{if(!e.children){const{keyId:r,searcher:a}=e,o=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(t,r),searcher:a});return o&&o.length?[{idx:n,item:t,matches:o}]:[]}const a=[];for(let o=0,i=e.children.length;o<i;o+=1){const i=e.children[o],s=r(i,t,n);if(s.length)a.push(...s);else if(e.operator===Che)return[]}return a},n=this._myIndex.records,a={},o=[];return n.forEach((({$:e,i:n})=>{if(the(e)){let i=r(t,e,n);i.length&&(a[n]||(a[n]={idx:n,item:e,matches:[]},o.push(a[n])),i.forEach((({matches:e})=>{a[n].matches.push(...e)})))}})),o}_searchObjectList(e){const t=Ahe(e,this.options),{keys:r,records:n}=this._myIndex,a=[];return n.forEach((({$:e,i:n})=>{if(!the(e))return;let o=[];r.forEach(((r,n)=>{o.push(...this._findMatches({key:r,value:e[n],searcher:t}))})),o.length&&a.push({idx:n,item:e,matches:o})})),a}_findMatches({key:e,value:t,searcher:r}){if(!the(t))return[];let n=[];if(Ype(t))t.forEach((({v:t,i:a,n:o})=>{if(!the(t))return;const{isMatch:i,score:s,indices:l}=r.searchIn(t);i&&n.push({score:s,key:e,value:t,idx:a,norm:o,indices:l})}));else{const{v:a,n:o}=t,{isMatch:i,score:s,indices:l}=r.searchIn(a);i&&n.push({score:s,key:e,value:a,norm:o,indices:l})}return n}}Ihe.version="7.1.0",Ihe.createIndex=hhe,Ihe.parseIndex=function(e,{getFn:t=uhe.getFn,fieldNormWeight:r=uhe.fieldNormWeight}={}){const{keys:n,records:a}=e,o=new phe({getFn:t,fieldNormWeight:r});return o.setKeys(n),o.setIndexRecords(a),o},Ihe.config=uhe,Ihe.parseQuery=Rhe,function(...e){The.push(...e)}(class{constructor(e,{isCaseSensitive:t=uhe.isCaseSensitive,ignoreDiacritics:r=uhe.ignoreDiacritics,includeMatches:n=uhe.includeMatches,minMatchCharLength:a=uhe.minMatchCharLength,ignoreLocation:o=uhe.ignoreLocation,findAllMatches:i=uhe.findAllMatches,location:s=uhe.location,threshold:l=uhe.threshold,distance:c=uhe.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:r,includeMatches:n,minMatchCharLength:a,findAllMatches:i,ignoreLocation:o,location:s,threshold:l,distance:c},e=t?e:e.toLowerCase(),e=r?vhe(e):e,this.pattern=e,this.query=function(e,t={}){return e.split("|").map((e=>{let r=e.trim().split(_he).filter((e=>e&&!!e.trim())),n=[];for(let e=0,a=r.length;e<a;e+=1){const a=r[e];let o=!1,i=-1;for(;!o&&++i<She;){const e=khe[i];let r=e.isMultiMatch(a);r&&(n.push(new e(r,t)),o=!0)}if(!o)for(i=-1;++i<She;){const e=khe[i];let r=e.isSingleMatch(a);if(r){n.push(new e(r,t));break}}}return n}))}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:n,ignoreDiacritics:a}=this.options;e=n?e:e.toLowerCase(),e=a?vhe(e):e;let o=0,i=[],s=0;for(let n=0,a=t.length;n<a;n+=1){const a=t[n];i.length=0,o=0;for(let t=0,n=a.length;t<n;t+=1){const n=a[t],{isMatch:l,indices:c,score:u}=n.search(e);if(!l){s=0,o=0,i.length=0;break}if(o+=1,s+=u,r){const e=n.constructor.type;Ehe.has(e)?i=[...i,...c]:i.push(c)}}if(o){let e={isMatch:!0,score:s/o};return r&&(e.indices=i),e}}return{isMatch:!1,score:1}}});
|
||
/*!
|
||
* vue-router v4.4.5
|
||
* (c) 2024 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/
|
||
const Lhe="undefined"!=typeof document;function jhe(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}const Bhe=Object.assign;function Uhe(e,t){const r={};for(const n in t){const a=t[n];r[n]=Qhe(a)?a.map(e):e(a)}return r}const Fhe=()=>{},Qhe=Array.isArray,zhe=/#/g,qhe=/&/g,Hhe=/\//g,Vhe=/=/g,Zhe=/\?/g,Whe=/\+/g,Xhe=/%5B/g,Ghe=/%5D/g,Yhe=/%5E/g,Khe=/%60/g,Jhe=/%7B/g,efe=/%7C/g,tfe=/%7D/g,rfe=/%20/g;function nfe(e){return encodeURI(""+e).replace(efe,"|").replace(Xhe,"[").replace(Ghe,"]")}function afe(e){return nfe(e).replace(Whe,"%2B").replace(rfe,"+").replace(zhe,"%23").replace(qhe,"%26").replace(Khe,"`").replace(Jhe,"{").replace(tfe,"}").replace(Yhe,"^")}function ofe(e){return null==e?"":function(e){return nfe(e).replace(zhe,"%23").replace(Zhe,"%3F")}(e).replace(Hhe,"%2F")}function ife(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}const sfe=/\/$/;function lfe(e,t,r="/"){let n,a={},o="",i="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(n=t.slice(0,l),o=t.slice(l+1,s>-1?s:t.length),a=e(o)),s>-1&&(n=n||t.slice(0,s),i=t.slice(s,t.length)),n=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),a=n[n.length-1];".."!==a&&"."!==a||n.push("");let o,i,s=r.length-1;for(o=0;o<n.length;o++)if(i=n[o],"."!==i){if(".."!==i)break;s>1&&s--}return r.slice(0,s).join("/")+"/"+n.slice(o).join("/")}(null!=n?n:t,r),{fullPath:n+(o&&"?")+o+i,path:n,query:a,hash:ife(i)}}function cfe(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ufe(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!dfe(e[r],t[r]))return!1;return!0}function dfe(e,t){return Qhe(e)?pfe(e,t):Qhe(t)?pfe(t,e):e===t}function pfe(e,t){return Qhe(t)?e.length===t.length&&e.every(((e,r)=>e===t[r])):1===e.length&&e[0]===t}const hfe={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var ffe,mfe,gfe,vfe;(mfe=ffe||(ffe={})).pop="pop",mfe.push="push",(vfe=gfe||(gfe={})).back="back",vfe.forward="forward",vfe.unknown="";const bfe=/^[^#]+#/;function yfe(e,t){return e.replace(bfe,"#")+t}function Ofe(e,t){return(history.state?history.state.position-t:-1)+e}const wfe=new Map;function xfe(e=""){let t=[],r=[""],n=0;function a(e){n++,n!==r.length&&r.splice(n),r.push(e)}const o={location:"",state:{},base:e=function(e){if(!e)if(Lhe){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),(e=>e.replace(sfe,""))(e)}(e),createHref:yfe.bind(null,e),replace(e){r.splice(n--,1),a(e)},push(e,t){a(e)},listen:e=>(t.push(e),()=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)}),destroy(){t=[],r=[""],n=0},go(e,a=!0){const o=this.location,i=e<0?gfe.back:gfe.forward;n=Math.max(0,Math.min(n+e,r.length-1)),a&&function(e,r,{direction:n,delta:a}){const o={direction:n,delta:a,type:ffe.pop};for(const n of t)n(e,r,o)}(this.location,o,{direction:i,delta:e})}};return Object.defineProperty(o,"location",{enumerable:!0,get:()=>r[n]}),o}function kfe(e){return"string"==typeof e||"symbol"==typeof e}const Sfe=Symbol("");var _fe,Efe;function Tfe(e,t){return Bhe(new Error,{type:e,[Sfe]:!0},t)}function Afe(e,t){return e instanceof Error&&Sfe in e&&(null==t||!!(e.type&t))}(Efe=_fe||(_fe={}))[Efe.aborted=4]="aborted",Efe[Efe.cancelled=8]="cancelled",Efe[Efe.duplicated=16]="duplicated";const Cfe="[^/]+?",Pfe={sensitive:!1,strict:!1,start:!0,end:!0},Dfe=/[.+*?^${}()[\]/\\]/g;function $fe(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function Rfe(e,t){let r=0;const n=e.score,a=t.score;for(;r<n.length&&r<a.length;){const e=$fe(n[r],a[r]);if(e)return e;r++}if(1===Math.abs(a.length-n.length)){if(Mfe(n))return 1;if(Mfe(a))return-1}return a.length-n.length}function Mfe(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Nfe={type:0,value:""},Ife=/[a-zA-Z0-9_]/;function Lfe(e,t,r){const n=function(e,t){const r=Bhe({},Pfe,t),n=[];let a=r.start?"^":"";const o=[];for(const t of e){const e=t.length?[]:[90];r.strict&&!t.length&&(a+="/");for(let n=0;n<t.length;n++){const i=t[n];let s=40+(r.sensitive?.25:0);if(0===i.type)n||(a+="/"),a+=i.value.replace(Dfe,"\\$&"),s+=40;else if(1===i.type){const{value:e,repeatable:r,optional:l,regexp:c}=i;o.push({name:e,repeatable:r,optional:l});const u=c||Cfe;if(u!==Cfe){s+=10;try{new RegExp(`(${u})`)}catch(t){throw new Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=r?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;n||(d=l&&t.length<2?`(?:/${d})`:"/"+d),l&&(d+="?"),a+=d,s+=20,l&&(s+=-8),r&&(s+=-20),".*"===u&&(s+=-50)}e.push(s)}n.push(e)}if(r.strict&&r.end){const e=n.length-1;n[e][n[e].length-1]+=.7000000000000001}r.strict||(a+="/?"),r.end?a+="$":r.strict&&(a+="(?:/|$)");const i=new RegExp(a,r.sensitive?"":"i");return{re:i,score:n,keys:o,parse:function(e){const t=e.match(i),r={};if(!t)return null;for(let e=1;e<t.length;e++){const n=t[e]||"",a=o[e-1];r[a.name]=n&&a.repeatable?n.split("/"):n}return r},stringify:function(t){let r="",n=!1;for(const a of e){n&&r.endsWith("/")||(r+="/"),n=!1;for(const e of a)if(0===e.type)r+=e.value;else if(1===e.type){const{value:o,repeatable:i,optional:s}=e,l=o in t?t[o]:"";if(Qhe(l)&&!i)throw new Error(`Provided param "${o}" is an array but it is not repeatable (* or + modifiers)`);const c=Qhe(l)?l.join("/"):l;if(!c){if(!s)throw new Error(`Missing required param "${o}"`);a.length<2&&(r.endsWith("/")?r=r.slice(0,-1):n=!0)}r+=c}}return r||"/"}}}(function(e){if(!e)return[[]];if("/"===e)return[[Nfe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${r})/"${c}": ${e}`)}let r=0,n=r;const a=[];let o;function i(){o&&a.push(o),o=[]}let s,l=0,c="",u="";function d(){c&&(0===r?o.push({type:0,value:c}):1===r||2===r||3===r?(o.length>1&&("*"===s||"+"===s)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),c="")}function p(){c+=s}for(;l<e.length;)if(s=e[l++],"\\"!==s||2===r)switch(r){case 0:"/"===s?(c&&d(),i()):":"===s?(d(),r=1):p();break;case 4:p(),r=n;break;case 1:"("===s?r=2:Ife.test(s)?p():(d(),r=0,"*"!==s&&"?"!==s&&"+"!==s&&l--);break;case 2:")"===s?"\\"==u[u.length-1]?u=u.slice(0,-1)+s:r=3:u+=s;break;case 3:d(),r=0,"*"!==s&&"?"!==s&&"+"!==s&&l--,u="";break;default:t("Unknown state")}else n=r,r=4;return 2===r&&t(`Unfinished custom RegExp for param "${c}"`),d(),i(),a}(e.path),r),a=Bhe(n,{record:e,parent:t,children:[],alias:[]});return t&&!a.record.aliasOf==!t.record.aliasOf&&t.children.push(a),a}function jfe(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function Bfe(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ufe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Ufe(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]="object"==typeof r?r[n]:r;return t}function Ffe(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Qfe(e){return e.reduce(((e,t)=>Bhe(e,t.meta)),{})}function zfe(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function qfe({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Hfe(e){const t={};if(""===e||"?"===e)return t;const r=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;e<r.length;++e){const n=r[e].replace(Whe," "),a=n.indexOf("="),o=ife(a<0?n:n.slice(0,a)),i=a<0?null:ife(n.slice(a+1));if(o in t){let e=t[o];Qhe(e)||(e=t[o]=[e]),e.push(i)}else t[o]=i}return t}function Vfe(e){let t="";for(let r in e){const n=e[r];(r=afe(r).replace(Vhe,"%3D"),null!=n)?(Qhe(n)?n.map((e=>e&&afe(e))):[n&&afe(n)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+r,null!=e&&(t+="="+e))})):void 0!==n&&(t+=(t.length?"&":"")+r)}return t}function Zfe(e){const t={};for(const r in e){const n=e[r];void 0!==n&&(t[r]=Qhe(n)?n.map((e=>null==e?null:""+e)):null==n?n:""+n)}return t}const Wfe=Symbol(""),Xfe=Symbol(""),Gfe=Symbol(""),Yfe=Symbol(""),Kfe=Symbol("");function Jfe(){let e=[];return{add:function(t){return e.push(t),()=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function eme(e,t,r,n,a,o=e=>e()){const i=n&&(n.enterCallbacks[a]=n.enterCallbacks[a]||[]);return()=>new Promise(((s,l)=>{const c=e=>{var o;!1===e?l(Tfe(4,{from:r,to:t})):e instanceof Error?l(e):"string"==typeof(o=e)||o&&"object"==typeof o?l(Tfe(2,{from:t,to:e})):(i&&n.enterCallbacks[a]===i&&"function"==typeof e&&i.push(e),s())},u=o((()=>e.call(n&&n.instances[a],t,r,c)));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch((e=>l(e)))}))}function tme(e,t,r,n,a=e=>e()){const o=[];for(const i of e)for(const e in i.components){let s=i.components[e];if("beforeRouteEnter"===t||i.instances[e])if(jhe(s)){const l=(s.__vccOpts||s)[t];l&&o.push(eme(l,r,n,i,e,a))}else{let l=s();o.push((()=>l.then((o=>{if(!o)throw new Error(`Couldn't resolve component "${e}" at "${i.path}"`);const s=(l=o).__esModule||"Module"===l[Symbol.toStringTag]||l.default&&jhe(l.default)?o.default:o;var l;i.mods[e]=o,i.components[e]=s;const c=(s.__vccOpts||s)[t];return c&&eme(c,r,n,i,e,a)()}))))}}return o}function rme(e){const t=Bs(Gfe),r=Bs(Yfe),n=hc((()=>{const r=Ao(e.to);return t.resolve(r)})),a=hc((()=>{const{matched:e}=n.value,{length:t}=e,a=e[t-1],o=r.matched;if(!a||!o.length)return-1;const i=o.findIndex(cfe.bind(null,a));if(i>-1)return i;const s=ame(e[t-2]);return t>1&&ame(a)===s&&o[o.length-1].path!==s?o.findIndex(cfe.bind(null,e[t-2])):i})),o=hc((()=>a.value>-1&&function(e,t){for(const r in t){const n=t[r],a=e[r];if("string"==typeof n){if(n!==a)return!1}else if(!Qhe(a)||a.length!==n.length||n.some(((e,t)=>e!==a[t])))return!1}return!0}(r.params,n.value.params))),i=hc((()=>a.value>-1&&a.value===r.matched.length-1&&ufe(r.params,n.value.params)));return{route:n,href:hc((()=>n.value.href)),isActive:o,isExactActive:i,navigate:function(r={}){return function(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}(r)?t[Ao(e.replace)?"replace":"push"](Ao(e.to)).catch(Fhe):Promise.resolve()}}}const nme=Li({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:rme,setup(e,{slots:t}){const r=uo(rme(e)),{options:n}=Bs(Gfe),a=hc((()=>({[ome(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[ome(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive})));return()=>{const n=t.default&&t.default(r);return e.custom?n:fc("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},n)}}});function ame(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ome=(e,t,r)=>null!=e?e:null!=t?t:r;function ime(e,t){if(!e)return null;const r=e(t);return 1===r.length?r[0]:r}const sme=Li({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=Bs(Kfe),a=hc((()=>e.route||n.value)),o=Bs(Xfe,0),i=hc((()=>{let e=Ao(o);const{matched:t}=a.value;let r;for(;(r=t[e])&&!r.components;)e++;return e})),s=hc((()=>a.value.matched[i.value]));js(Xfe,hc((()=>i.value+1))),js(Wfe,s),js(Kfe,a);const l=So();return ul((()=>[l.value,s.value,e.name]),(([e,t,r],[n,a,o])=>{t&&(t.instances[r]=e,a&&a!==t&&e&&e===n&&(t.leaveGuards.size||(t.leaveGuards=a.leaveGuards),t.updateGuards.size||(t.updateGuards=a.updateGuards))),!e||!t||a&&cfe(t,a)&&n||(t.enterCallbacks[r]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const n=a.value,o=e.name,i=s.value,c=i&&i.components[o];if(!c)return ime(r.default,{Component:c,route:n});const u=i.props[o],d=u?!0===u?n.params:"function"==typeof u?u(n):u:null,p=fc(c,Bhe({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(i.instances[o]=null)},ref:l}));return ime(r.default,{Component:p,route:n})||p}}});function lme(e){const t=function(e,t){const r=[],n=new Map;function a(e,r,n){const s=!n,l=Bfe(e);l.aliasOf=n&&n.record;const c=zfe(t,e),u=[l];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(Bfe(Bhe({},l,{components:n?n.record.components:l.components,path:e,aliasOf:n?n.record:l})))}let d,p;for(const t of u){const{path:u}=t;if(r&&"/"!==u[0]){const e=r.record.path,n="/"===e[e.length-1]?"":"/";t.path=r.record.path+(u&&n+u)}if(d=Lfe(t,r,c),n?n.alias.push(d):(p=p||d,p!==d&&p.alias.push(d),s&&e.name&&!Ffe(d)&&o(e.name)),qfe(d)&&i(d),l.children){const e=l.children;for(let t=0;t<e.length;t++)a(e[t],d,n&&n.children[t])}n=n||d}return p?()=>{o(p)}:Fhe}function o(e){if(kfe(e)){const t=n.get(e);t&&(n.delete(e),r.splice(r.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{const t=r.indexOf(e);t>-1&&(r.splice(t,1),e.record.name&&n.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function i(e){const t=function(e,t){let r=0,n=t.length;for(;r!==n;){const a=r+n>>1;Rfe(e,t[a])<0?n=a:r=a+1}const a=function(e){let t=e;for(;t=t.parent;)if(qfe(t)&&0===Rfe(e,t))return t}(e);return a&&(n=t.lastIndexOf(a,n-1)),n}(e,r);r.splice(t,0,e),e.record.name&&!Ffe(e)&&n.set(e.record.name,e)}return t=zfe({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>a(e))),{addRoute:a,resolve:function(e,t){let a,o,i,s={};if("name"in e&&e.name){if(a=n.get(e.name),!a)throw Tfe(1,{location:e});i=a.record.name,s=Bhe(jfe(t.params,a.keys.filter((e=>!e.optional)).concat(a.parent?a.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&jfe(e.params,a.keys.map((e=>e.name)))),o=a.stringify(s)}else if(null!=e.path)o=e.path,a=r.find((e=>e.re.test(o))),a&&(s=a.parse(o),i=a.record.name);else{if(a=t.name?n.get(t.name):r.find((e=>e.re.test(t.path))),!a)throw Tfe(1,{location:e,currentLocation:t});i=a.record.name,s=Bhe({},t.params,e.params),o=a.stringify(s)}const l=[];let c=a;for(;c;)l.unshift(c.record),c=c.parent;return{name:i,path:o,params:s,matched:l,meta:Qfe(l)}},removeRoute:o,clearRoutes:function(){r.length=0,n.clear()},getRoutes:function(){return r},getRecordMatcher:function(e){return n.get(e)}}}(e.routes,e),r=e.parseQuery||Hfe,n=e.stringifyQuery||Vfe,a=e.history,o=Jfe(),i=Jfe(),s=Jfe(),l=_o(hfe);let c=hfe;Lhe&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Uhe.bind(null,(e=>""+e)),d=Uhe.bind(null,ofe),p=Uhe.bind(null,ife);function h(e,o){if(o=Bhe({},o||l.value),"string"==typeof e){const n=lfe(r,e,o.path),i=t.resolve({path:n.path},o),s=a.createHref(n.fullPath);return Bhe(n,i,{params:p(i.params),hash:ife(n.hash),redirectedFrom:void 0,href:s})}let i;if(null!=e.path)i=Bhe({},e,{path:lfe(r,e.path,o.path).path});else{const t=Bhe({},e.params);for(const e in t)null==t[e]&&delete t[e];i=Bhe({},e,{params:d(t)}),o.params=d(o.params)}const s=t.resolve(i,o),c=e.hash||"";s.params=u(p(s.params));const h=function(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}(n,Bhe({},e,{hash:(f=c,nfe(f).replace(Jhe,"{").replace(tfe,"}").replace(Yhe,"^")),path:s.path}));var f;const m=a.createHref(h);return Bhe({fullPath:h,hash:c,query:n===Vfe?Zfe(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function f(e){return"string"==typeof e?lfe(r,e,l.value.path):Bhe({},e)}function m(e,t){if(c!==e)return Tfe(8,{from:t,to:e})}function g(e){return b(e)}function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:r}=t;let n="function"==typeof r?r(e):r;return"string"==typeof n&&(n=n.includes("?")||n.includes("#")?n=f(n):{path:n},n.params={}),Bhe({query:e.query,hash:e.hash,params:null!=n.path?{}:e.params},n)}}function b(e,t){const r=c=h(e),a=l.value,o=e.state,i=e.force,s=!0===e.replace,u=v(r);if(u)return b(Bhe(f(u),{state:"object"==typeof u?Bhe({},o,u.state):o,force:i,replace:s}),t||r);const d=r;let p;return d.redirectedFrom=t,!i&&function(e,t,r){const n=t.matched.length-1,a=r.matched.length-1;return n>-1&&n===a&&cfe(t.matched[n],r.matched[a])&&ufe(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}(n,a,r)&&(p=Tfe(16,{to:d,from:a}),P(a,a,!0,!1)),(p?Promise.resolve(p):w(d,a)).catch((e=>Afe(e)?Afe(e,2)?e:C(e):A(e,d,a))).then((e=>{if(e){if(Afe(e,2))return b(Bhe({replace:s},f(e.to),{state:"object"==typeof e.to?Bhe({},o,e.to.state):o,force:i}),t||d)}else e=k(d,a,!0,s,o);return x(d,a,e),e}))}function y(e,t){const r=m(e,t);return r?Promise.reject(r):Promise.resolve()}function O(e){const t=R.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function w(e,t){let r;const[n,a,s]=function(e,t){const r=[],n=[],a=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const o=t.matched[i];o&&(e.matched.find((e=>cfe(e,o)))?n.push(o):r.push(o));const s=e.matched[i];s&&(t.matched.find((e=>cfe(e,s)))||a.push(s))}return[r,n,a]}(e,t);r=tme(n.reverse(),"beforeRouteLeave",e,t);for(const a of n)a.leaveGuards.forEach((n=>{r.push(eme(n,e,t))}));const l=y.bind(null,e,t);return r.push(l),N(r).then((()=>{r=[];for(const n of o.list())r.push(eme(n,e,t));return r.push(l),N(r)})).then((()=>{r=tme(a,"beforeRouteUpdate",e,t);for(const n of a)n.updateGuards.forEach((n=>{r.push(eme(n,e,t))}));return r.push(l),N(r)})).then((()=>{r=[];for(const n of s)if(n.beforeEnter)if(Qhe(n.beforeEnter))for(const a of n.beforeEnter)r.push(eme(a,e,t));else r.push(eme(n.beforeEnter,e,t));return r.push(l),N(r)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),r=tme(s,"beforeRouteEnter",e,t,O),r.push(l),N(r)))).then((()=>{r=[];for(const n of i.list())r.push(eme(n,e,t));return r.push(l),N(r)})).catch((e=>Afe(e,8)?e:Promise.reject(e)))}function x(e,t,r){s.list().forEach((n=>O((()=>n(e,t,r)))))}function k(e,t,r,n,o){const i=m(e,t);if(i)return i;const s=t===hfe,c=Lhe?history.state:{};r&&(n||s?a.replace(e.fullPath,Bhe({scroll:s&&c&&c.scroll},o)):a.push(e.fullPath,o)),l.value=e,P(e,t,r,s),C()}let S;let _,E=Jfe(),T=Jfe();function A(e,t,r){C(e);const n=T.list();return n.length?n.forEach((n=>n(e,t,r))):console.error(e),Promise.reject(e)}function C(e){return _||(_=!e,S||(S=a.listen(((e,t,r)=>{if(!M.listening)return;const n=h(e),o=v(n);if(o)return void b(Bhe(o,{replace:!0}),n).catch(Fhe);c=n;const i=l.value;var s,u;Lhe&&(s=Ofe(i.fullPath,r.delta),u={left:window.scrollX,top:window.scrollY},wfe.set(s,u)),w(n,i).catch((e=>Afe(e,12)?e:Afe(e,2)?(b(e.to,n).then((e=>{Afe(e,20)&&!r.delta&&r.type===ffe.pop&&a.go(-1,!1)})).catch(Fhe),Promise.reject()):(r.delta&&a.go(-r.delta,!1),A(e,n,i)))).then((e=>{(e=e||k(n,i,!1))&&(r.delta&&!Afe(e,8)?a.go(-r.delta,!1):r.type===ffe.pop&&Afe(e,20)&&a.go(-1,!1)),x(n,i,e)})).catch(Fhe)}))),E.list().forEach((([t,r])=>e?r(e):t())),E.reset()),e}function P(t,r,n,a){const{scrollBehavior:o}=e;if(!Lhe||!o)return Promise.resolve();const i=!n&&function(e){const t=wfe.get(e);return wfe.delete(e),t}(Ofe(t.fullPath,0))||(a||!n)&&history.state&&history.state.scroll||null;return Ko().then((()=>o(t,r,i))).then((e=>e&&function(e){let t;if("el"in e){const r=e.el,n="string"==typeof r&&r.startsWith("#"),a="string"==typeof r?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!a)return;t=function(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}(a,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}(e))).catch((e=>A(e,t,r)))}const D=e=>a.go(e);let $;const R=new Set,M={currentRoute:l,listening:!0,addRoute:function(e,r){let n,a;return kfe(e)?(n=t.getRecordMatcher(e),a=r):a=e,t.addRoute(a,n)},removeRoute:function(e){const r=t.getRecordMatcher(e);r&&t.removeRoute(r)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:h,options:e,push:g,replace:function(e){return g(Bhe(f(e),{replace:!0}))},go:D,back:()=>D(-1),forward:()=>D(1),beforeEach:o.add,beforeResolve:i.add,afterEach:s.add,onError:T.add,isReady:function(){return _&&l.value!==hfe?Promise.resolve():new Promise(((e,t)=>{E.add([e,t])}))},install(e){e.component("RouterLink",nme),e.component("RouterView",sme),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Ao(l)}),Lhe&&!$&&l.value===hfe&&($=!0,g(a.location).catch((e=>{})));const t={};for(const e in hfe)Object.defineProperty(t,e,{get:()=>l.value[e],enumerable:!0});e.provide(Gfe,this),e.provide(Yfe,po(t)),e.provide(Kfe,l);const r=e.unmount;R.add(e),e.unmount=function(){R.delete(e),R.size<1&&(c=hfe,S&&S(),S=null,l.value=hfe,$=!1,_=!1),r()}}};function N(e){return e.reduce(((e,t)=>e.then((()=>O(t)))),Promise.resolve())}return M}function cme(){return Bs(Gfe)}function ume(e){return Bs(Yfe)}function dme(e){return(null==e?void 0:e.color)||"#FFFFFF"}function pme(e){return e.flatMap((e=>{if("value"===e.key)try{const t=JSON.parse(e.value);return Object.keys(t).map((r=>({key:r,value:t[r],source:e.source})))}catch{}return[e]}))}const hme={key:0,class:"gap-1/2 flex flex-col"},fme=["onClick"],mme={class:"flex items-center gap-2 whitespace-nowrap"},gme={class:"w-20 overflow-hidden text-right text-ellipsis whitespace-nowrap"},vme=Li({__name:"EnvironmentVariableDropdown",props:{query:{},environment:{},envVariables:{},dropdownPosition:{}},emits:["select"],setup(e,{expose:t,emit:r}){const n=e,a=r,o=So(!0),i=So(null),s=So(0),l=cme(),c=()=>{if(!l)return;const{currentRoute:e,push:t}=l;t({name:"environment.default",params:{workspace:e.value.params.workspace}}),o.value=!1},u=new Ihe(pme(n.envVariables),{keys:["key","value"]}),d=hc((()=>{const e=n.query;if(!e)return pme(n.envVariables).slice(-4).filter((({key:e,value:t})=>""!==e||""!==t));const t=u.search(e,{limit:10});return t.length>0?t.map((e=>e.item)).filter((({key:e,value:t})=>""!==e||""!==t)):[]})),p=e=>{a("select",e)};t({handleArrowKey:e=>{const t="up"===e?-1:1,r=d.value.length;0!==r&&(s.value=(s.value+t+r)%r)},handleSelect:()=>{if(s.value>=0){const e=d.value[s.value];e&&p(e.key)}}}),Yi((()=>{s.value=0}));const h=hc((()=>{var e,t;return{left:((null==(e=n.dropdownPosition)?void 0:e.left)??0)+"px",top:((null==(t=n.dropdownPosition)?void 0:t.top)??0)+5+"px"}}));return function(e,t,r={}){const{window:n=zj,ignore:a=[],capture:o=!0,detectIframe:i=!1}=r;if(!n)return Nj;Ij&&!Vj&&(Vj=!0,Array.from(n.document.body.children).forEach((e=>e.addEventListener("click",Nj))),n.document.documentElement.addEventListener("click",Nj));let s=!0;const l=e=>a.some((t=>{if("string"==typeof t)return Array.from(n.document.querySelectorAll(t)).some((t=>t===e.target||e.composedPath().includes(t)));{const r=Qj(t);return r&&(e.target===r||e.composedPath().includes(r))}}));[Hj(n,"click",(r=>{const n=Qj(e);n&&n!==r.target&&!r.composedPath().includes(n)&&(0===r.detail&&(s=!l(r)),s?t(r):s=!0)}),{passive:!0,capture:o}),Hj(n,"pointerdown",(t=>{const r=Qj(e);s=!l(t)&&!(!r||t.composedPath().includes(r))}),{passive:!0}),i&&Hj(n,"blur",(r=>{setTimeout((()=>{var a;const o=Qj(e);"IFRAME"!==(null==(a=n.document.activeElement)?void 0:a.tagName)||(null==o?void 0:o.contains(n.document.activeElement))||t(r)}),0)}))].filter(Boolean)}(i,(()=>{o.value=!1}),{ignore:[i]}),(e,t)=>o.value?(Pl(),Nl(Ao(qW),{key:0,class:"scalar-client"},{default:ci((()=>[Ul("div",{ref_key:"dropdownRef",ref:i,class:"custom-scroll fixed top-0 left-0 flex max-h-[60svh] w-56 flex-col rounded border p-0.75",style:jn(h.value)},[d.value.length?(Pl(),Ml("ul",hme,[(Pl(!0),Ml(Sl,null,ps(d.value,((t,r)=>(Pl(),Ml("li",{key:t.key,class:zn(["font-code text-xxs hover:bg-b-2 flex h-8 cursor-pointer items-center justify-between gap-1.5 rounded p-1.5 transition-colors duration-150",{"bg-b-2":r===s.value}]),onClick:e=>p(t.key)},[Ul("div",mme,["collection"===t.source?(Pl(),Ml("span",{key:0,class:"h-2.25 w-2.25 min-w-2.25 rounded-full",style:jn({backgroundColor:Ao(dme)(e.environment)})},null,4)):(Pl(),Nl(Ao(p5),{key:1,class:"-ml-1/2 h-2.5 w-2.5",icon:"Globe"})),ql(" "+Gn(t.key),1)]),Ul("span",gme,Gn(t.value),1)],10,fme)))),128))])):Ao(l)?(Pl(),Nl(Ao(iz),{key:1,class:"font-code text-xxs hover:bg-b-2 flex h-8 w-full justify-start gap-2 px-1.5 transition-colors duration-150",variant:"outlined",onClick:c},{default:ci((()=>[Fl(Ao(p5),{icon:"Add",size:"sm"}),t[0]||(t[0]=ql(" Add Variable "))])),_:1,__:[0]})):Vl("",!0),t[1]||(t[1]=Ul("div",{class:"bg-b-1 brightness-lifted absolute inset-0 -z-1 rounded shadow-lg"},null,-1))],4)])),_:1})):Vl("",!0)}}),bme={class:"group-[.alert]:outline-orange group-[.error]:outline-red w-full pr-10 -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline"},yme={class:"text-c-1 whitespace-nowrap"},Ome={class:"text-c-1 overflow-hidden text-ellipsis"},wme={class:"overflow-hidden text-ellipsis"},xme={class:"flex h-4 w-4 items-center justify-center"},kme=Li({__name:"DataTableInputSelect",props:{modelValue:{},value:{},default:{},canAddCustomValue:{type:Boolean,default:!0},type:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=t,a=hc((()=>r.value??[])),o=So(!1),i=So(""),s=So(null);ul(i,(e=>{n("update:modelValue",e)}));const l=e=>{n("update:modelValue",e),o.value=!1},c=()=>{i.value.trim()&&l(i.value)},u=()=>{i.value.trim()||n("update:modelValue",""),o.value=!1},d=e=>r.modelValue.toString()===e;ul(o,(e=>{e&&Ko((()=>{var e;null==(e=s.value)||e.focus()}))}));const p=hc((()=>void 0!==r.modelValue?r.modelValue:r.default)),h=hc((()=>{const e=new Set(r.modelValue.toString().split(", "));return a.value.filter((t=>e.has(t))).map((e=>({id:e,label:e,value:e})))})),f=hc((()=>a.value.map((e=>({id:e,label:e,value:e}))))),m=e=>{const t=e.map((e=>e.value));n("update:modelValue",t.join(", "))};return(e,t)=>(Pl(),Ml("div",bme,["array"===e.type?(Pl(),Nl(Ao(XW),{key:0,modelValue:h.value,options:f.value,"onUpdate:modelValue":m},{default:ci((()=>[Fl(Ao(iz),{class:"custom-scroll h-full justify-start gap-1.5 px-2 py-1.5 pr-6 font-normal outline-none",fullWidth:"",variant:"ghost"},{default:ci((()=>[Ul("span",yme,Gn(h.value.length>0?h.value.map((e=>e.label)).join(", "):"Select a value"),1),Fl(Ao(p5),{icon:"ChevronDown",size:"md",class:"min-w-4"})])),_:1})])),_:1},8,["modelValue","options"])):o.value?ui((Pl(),Ml("input",{key:1,ref_key:"inputRef",ref:s,"onUpdate:modelValue":t[0]||(t[0]=e=>i.value=e),class:"text-c-1 w-full min-w-0 border-none px-2 py-1.5 outline-none",placeholder:"Value",type:"text",onBlur:u,onKeyup:Eu(c,["enter"])},null,544)),[[pu,i.value]]):(Pl(),Nl(Ao(JW),{key:2,resize:"",value:p.value},{items:ci((()=>[(Pl(!0),Ml(Sl,null,ps(a.value,(e=>(Pl(),Nl(Ao(y8),{key:e,class:"group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",value:e,onClick:t=>l(e)},{default:ci((()=>[Ul("div",{class:zn(["flex h-4 w-4 items-center justify-center rounded-full p-[3px]",d(e)?"bg-c-accent text-b-1":"shadow-border text-transparent"])},[Fl(Ao(p5),{class:"size-2.5",icon:"Checkmark",thickness:"3"})],2),Ul("span",wme,Gn(e),1)])),_:2},1032,["value","onClick"])))),128)),e.canAddCustomValue?(Pl(),Ml(Sl,{key:0},[a.value.length?(Pl(),Nl(Ao(N5),{key:0})):Vl("",!0),Fl(Ao(y8),{class:"flex items-center gap-1.5",onClick:t[1]||(t[1]=e=>o.value=!0)},{default:ci((()=>[Ul("div",xme,[Fl(Ao(p5),{icon:"Add",size:"sm"})]),t[2]||(t[2]=Ul("span",null,"Add value",-1))])),_:1,__:[2]})],64)):Vl("",!0)])),default:ci((()=>[Fl(Ao(iz),{class:"h-full justify-start gap-1.5 overflow-auto px-2 py-1.5 font-normal whitespace-nowrap outline-none",fullWidth:"",variant:"ghost"},{default:ci((()=>[Ul("span",Ome,Gn(p.value||"Select a value"),1),Fl(Ao(p5),{icon:"ChevronDown",size:"md"})])),_:1})])),_:1},8,["value"]))]))}});var Sme=Object.defineProperty,_me=(e,t,r)=>((e,t,r)=>t in e?Sme(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);let Eme=class e extends P9{constructor(e,t,r,n,a){super(),_me(this,"app"),_me(this,"uid"),_me(this,"environment"),_me(this,"envVariables"),_me(this,"workspace"),_me(this,"isReadOnly"),this.variableName=e,this.variableName=e,this.environment=t,this.envVariables=r,this.workspace=n,this.isReadOnly=a??!1,this.uid=QW()}toDOM(){const e=document.createElement("span");e.className="cm-pill",e.textContent=`${this.variableName}`;const t=Li({props:{variableName:{type:String,default:null}},render:()=>{var t;const r=this.envVariables?pme(this.envVariables).find((e=>e.key===this.variableName)):void 0,n="global"===(null==r?void 0:r.source),a=n?"#FFFFFF":r&&this.environment?dme(this.environment):"#FFFFFF";e.style.setProperty("--tw-bg-base",a),e.style.opacity=null!=r&&r.value?"1":"0.5";const o=fc("div",{class:"flex items-center gap-1 whitespace-nowrap"},[(n||"No Environment"===(null==(t=this.environment)?void 0:t.name)&&(null==r?void 0:r.value))&&fc(p5,{class:"size-2.5 -ml-1",icon:"Globe"}),fc("span",this.variableName)]),i=null!=r&&r.value?fc("div",{class:"p-2"},r.value):fc("div",{class:"divide-y divide-1/2 grid"},[fc("span",{class:"p-2 opacity-25"},"No value"),!this.isReadOnly&&fc("div",{class:"p-1"},[fc(iz,{class:"gap-1.5 justify-start font-normal px-1 py-1.5 h-auto transition-colors rounded no-underline text-xxs w-full hover:bg-b-2",variant:"ghost",onClick:()=>{var e;window.location.href=`/workspace/${null==(e=this.workspace)?void 0:e.uid}/environment`}},{default:()=>[fc(p5,{class:"w-2",icon:"Add",size:"xs"}),"Add variable"]})])]);return fc(g8,{align:"center",class:"w-full",delay:0,side:"bottom",sideOffset:6},{trigger:()=>o,content:()=>fc("div",{class:["border w-content rounded bg-b-1 brightness-lifted text-xxs leading-5 text-c-1"]},i)})}});return this.app=Du(t,{variableName:this.variableName}),this.app.mount(e),e}destroy(){this.app&&this.app.unmount()}eq(t){return t instanceof e&&t.variableName===this.variableName&&t.uid===this.uid}ignoreEvent(){return!1}};const Tme=e=>Aee.fromClass(class{constructor(e){_me(this,"decorations"),this.decorations=this.buildDecorations(e)}update(e){(e.docChanged||e.viewportChanged)&&requestAnimationFrame((()=>{this.decorations=this.buildDecorations(e.view),e.view.update([])}))}buildDecorations(t){const r=new s7;for(const{from:n,to:a}of t.visibleRanges){const o=t.state.doc.sliceString(n,a);let i;for(;null!==(i=GL.VARIABLES.exec(o));){const t=n+i.index,a=t+i[0].length,o=i[1]??"";r.add(t,a,$9.widget({widget:new Eme(o,e.environment,e.envVariables,e.workspace,e.isReadOnly),side:1}))}}return r.finish()}},{decorations:e=>e.decorations}),Ame=_re.domEventHandlers({keydown(e,t){if("Backspace"===e.key){const{state:r}=t,{from:n,to:a}=r.selection.main;if(0===n&&a===r.doc.length)return t.dispatch({changes:{from:0,to:r.doc.length},selection:{anchor:0}}),e.preventDefault(),!0;if(n===a&&n>0&&"}}"===r.doc.sliceString(n-2,n))return t.dispatch({changes:{from:n-2,to:a},selection:{anchor:n-2}}),e.preventDefault(),!0}return!1}}),Cme=Symbol(),Pme=()=>({layout:Bs(Cme,"desktop")}),Dme={class:"whitespace-nowrap"},$me=["id"],Rme={key:0,class:"scalar-code-copy z-context"},Mme={key:1,class:"z-context text-c-2 absolute right-1.5 bottom-1 hidden font-sans group-has-[:focus-visible]/input:block",role:"alert"},Nme={key:5,class:"centered-y text-orange absolute right-7 text-xs"},Ime={key:6,class:"centered-y absolute right-0 flex h-full items-center p-1.5 group-has-[.cm-focused]:z-1"},Lme={key:7,class:"required centered-y text-xxs text-c-3 group-[.error]:text-red bg-b-1 pointer-events-none absolute right-0 mr-0.5 pt-px pr-2 opacity-100 shadow-[-8px_0_4px_var(--scalar-background-1)] transition-opacity duration-150 group-[.alert]:bg-transparent group-[.alert]:shadow-none group-[.error]:bg-transparent group-[.error]:shadow-none peer-has-[.cm-focused]:opacity-0"},jme=Li({inheritAttrs:!1,__name:"CodeInput",props:{colorPicker:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},modelValue:{},error:{type:Boolean},emitOnBlur:{type:Boolean,default:!0},extensions:{default:()=>[]},lineNumbers:{type:Boolean},lint:{type:Boolean},disableTabIndent:{type:Boolean,default:!1},language:{},handleFieldSubmit:{},handleFieldChange:{},placeholder:{},required:{type:Boolean},disableEnter:{type:Boolean,default:!1},disableCloseBrackets:{type:Boolean,default:!1},enum:{},examples:{},type:{},nullable:{type:Boolean,default:!1},withVariables:{type:Boolean,default:!0},importCurl:{type:Boolean},isCopyable:{type:Boolean,default:!1},default:{},environment:{},envVariables:{},workspace:{},lineWrapping:{type:Boolean,default:!1}},emits:["submit","update:modelValue","curl","blur"],setup(e,{expose:t,emit:r}){var n;const a=e,o=r,i=Os(),s=i.id||`id-${QW()}`,l=So(!1),c=So(!1),u=So(""),d=So({left:0,top:0}),p=So(null),{layout:h}=Pme(),{copyToClipboard:f}=VV();function m(e){var t;return e===a.modelValue?null:a.importCurl&&e.trim().toLowerCase().startsWith("curl")?(o("curl",e),null==(t=x.value)||t.dispatch({changes:{from:0,to:x.value.state.doc.length,insert:String(a.modelValue)}}),null):a.handleFieldChange?a.handleFieldChange(e):o("update:modelValue",e)}function g(e){return a.handleFieldSubmit?a.handleFieldSubmit(e):o("submit",e)}function v(e){l.value=!1,a.emitOnBlur&&a.modelValue&&g(e),o("blur",e)}const b=[...a.extensions];a.colorPicker&&b.push(Vie);const y=hc((()=>Tme({environment:a.environment,envVariables:a.envVariables,workspace:a.workspace,isReadOnly:"modal"===h}))),O=hc((()=>[...b,y.value,Ame])),w=So(null),{codeMirror:x}=Wpe({content:Io((()=>void 0!==a.modelValue?String(a.modelValue):"")),onChange:e=>{m(e),S()},onFocus:()=>l.value=!0,onBlur:e=>v(e),codeMirrorRef:w,disableTabIndent:Io((()=>a.disableTabIndent)),disableEnter:Io((()=>a.disableEnter)),disableCloseBrackets:Io((()=>a.disableCloseBrackets)),lineNumbers:Io((()=>a.lineNumbers)),language:Io((()=>a.language)),lint:Io((()=>a.lint)),extensions:O,placeholder:Io((()=>a.placeholder))});null==(n=x.value)||n.focus(),ul(x,(()=>{x.value&&Object.prototype.hasOwnProperty.call(i,"autofocus")&&x.value.focus()}));const{handleDropdownSelect:k,updateDropdownVisibility:S}=function(e){const{codeMirror:t,query:r,showDropdown:n,dropdownPosition:a}=e;function o(){var e;return(null==(e=t.value)?void 0:e.state.selection.main.head)||0}function i(e){var r;return null==(r=t.value)?void 0:r.coordsAtPos(e)}function s(){const e=o();requestAnimationFrame((()=>{const t=i(e-r.value.length-2);t&&(a.value={left:t.left,top:Math.max(t.bottom)})}))}function l(){var e;const l=o(),c=(null==(e=t.value)?void 0:e.state.doc.sliceString(0,l))||"",u=c.lastIndexOf("{{");u>c.lastIndexOf("}}")?(r.value=c.slice(u+2),n.value=!0,a.value=i(l)||{left:0,top:0},""===r.value&&s()):n.value=!1}return ul(r,s),ul((()=>{var e;return null==(e=t.value)?void 0:e.state.doc.toString()}),l),{handleDropdownSelect:function(e){var a;const i=`{{${e}}}`,s=o(),l=Math.max(0,s-r.value.length-2),c=s;null==(a=t.value)||a.dispatch({changes:{from:l,to:c,insert:i}}),n.value=!1},updateDropdownVisibility:l}}({codeMirror:x,query:u,showDropdown:c,dropdownPosition:d}),_=hc((()=>a.nullable?["true","false","null"]:["true","false"])),E=(e,t)=>{var r,n,o;c.value?"down"===e?(t.preventDefault(),null==(r=p.value)||r.handleArrowKey("down")):"up"===e?(t.preventDefault(),null==(n=p.value)||n.handleArrowKey("up")):"enter"===e&&(t.preventDefault(),null==(o=p.value)||o.handleSelect()):"escape"===e?a.disableTabIndent||t.stopPropagation():"enter"===e&&t.target instanceof HTMLDivElement&&g(t.target.textContent??"")},T=hc((()=>Array.isArray(a.type)?a.type.find((e=>"null"!==e))??"string":a.type)),A=hc((()=>c.value&&a.withVariables&&"modal"!==h&&a.environment));return t({focus:()=>{var e;null==(e=x.value)||e.focus()},handleChange:m,handleSubmit:g,handleBlur:v,booleanOptions:_,codeMirror:x,modelValue:a.modelValue}),(e,t)=>{var r;return Pl(),Ml(Sl,null,[e.disabled?(Pl(),Ml("div",{key:0,class:zn(["text-c-2 flex cursor-default items-center justify-center","modal"===Ao(h)?"font-code pr-2 pl-1 text-base":"px-2"]),"data-testid":"code-input-disabled"},[Ul("span",Dme,Gn(e.modelValue),1)],2)):a.enum&&a.enum.length?(Pl(),Nl(kme,{key:1,default:a.default,modelValue:e.modelValue,type:T.value,value:a.enum,"onUpdate:modelValue":t[0]||(t[0]=e=>o("update:modelValue",e))},null,8,["default","modelValue","type","value"])):"boolean"===e.type||null!=(r=e.type)&&r.includes("boolean")?(Pl(),Nl(kme,{key:2,default:a.default,modelValue:e.modelValue,value:_.value,"onUpdate:modelValue":t[1]||(t[1]=e=>o("update:modelValue",e))},null,8,["default","modelValue","value"])):a.examples&&a.examples.length?(Pl(),Nl(kme,{key:3,default:a.default,modelValue:a.modelValue,value:a.examples,"onUpdate:modelValue":t[2]||(t[2]=e=>o("update:modelValue",e))},null,8,["default","modelValue","value"])):(Pl(),Ml("div",Gl({key:4,id:Ao(s)},e.$attrs,{ref_key:"codeMirrorRef",ref:w,class:["group/input group-[.alert]:outline-orange group-[.error]:outline-red font-code peer relative w-full overflow-hidden text-xs leading-[1.44] whitespace-nowrap -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline",{"line-wrapping has-[:focus-visible]:bg-b-1 has-[:focus-visible]:absolute has-[:focus-visible]:z-1":e.lineWrapping,"flow-code-input--error":e.error}],onKeydown:[t[4]||(t[4]=Eu(Su((e=>E("down",e)),["stop"]),["down"])),t[5]||(t[5]=Eu((e=>E("enter",e)),["enter"])),t[6]||(t[6]=Eu((e=>E("escape",e)),["escape"])),t[7]||(t[7]=Eu(Su((e=>E("up",e)),["stop"]),["up"]))]}),[e.isCopyable?(Pl(),Ml("div",Rme,[Ul("button",{class:"copy-button",type:"button",onClick:t[3]||(t[3]=t=>Ao(f)(Ao(rj)(e.modelValue)))},[t[8]||(t[8]=Ul("span",{class:"sr-only"},"Copy content",-1)),Fl(Ao(p5),{icon:"Clipboard",size:"md"})])])):Vl("",!0),e.disableTabIndent?Vl("",!0):(Pl(),Ml("div",Mme,t[9]||(t[9]=[ql(" Press "),Ul("kbd",{class:"-mx-0.25 rounded border px-0.5 font-mono"},"Esc",-1),ql(" then "),Ul("kbd",{class:"-mx-0.25 rounded border px-0.5 font-mono"},"Tab",-1),ql(" to exit ")])))],16,$me)),e.$slots.warning?(Pl(),Ml("div",Nme,[fs(e.$slots,"warning",{},void 0,!0)])):Vl("",!0),e.$slots.icon?(Pl(),Ml("div",Ime,[fs(e.$slots,"icon",{},void 0,!0)])):Vl("",!0),e.required?(Pl(),Ml("div",Lme," Required ")):Vl("",!0),A.value?(Pl(),Nl(vme,{key:8,ref_key:"dropdownRef",ref:p,dropdownPosition:d.value,envVariables:e.envVariables,environment:e.environment,query:u.value,onSelect:Ao(k)},null,8,["dropdownPosition","envVariables","environment","query","onSelect"])):Vl("",!0)],64)}}}),Bme=P8(jme,[["__scopeId","data-v-b356b2d9"]]),Ume=Li({__name:"HttpMethod",props:{isSquare:{type:Boolean,default:!1},method:{},isEditable:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){const r=e,n=t,a=hc((()=>kj(r.method))),o=Object.entries(xj).map((([e])=>({id:e,label:e.toUpperCase(),color:kj(e).colorClass}))),i=hc({get:()=>o.find((({id:e})=>e===r.method)),set:e=>(null==e?void 0:e.id)&&n("change",e.id)}),s=WQ({base:"text-center font-code text-3xs justify-center items-center flex",variants:{isSquare:{true:"px-2.5 whitespace-nowrap font-bold border-r h-fit m-auto",false:"rounded-full"},isEditable:{true:"http-bg-gradient rounded-md border border-r",false:"cursor-auto"}}}),l=hc((()=>a.value.short));return(e,t)=>e.isEditable?(Pl(),Nl(Ao(C5),{key:0,modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=e=>i.value=e),class:"font-code scalar-client mt-1 text-sm",options:Ao(o)},{default:ci((()=>[Ul("div",{class:zn(["h-full",{"pointer-events-none":!e.isEditable}])},[Ul("button",{class:zn(["relative h-full",Ao(XQ)(Ao(s)({isSquare:e.isSquare,isEditable:e.isEditable}),a.value.colorClass)]),type:"button"},[Ul("span",null,Gn(l.value),1)],2)],2)])),_:1},8,["modelValue","options"])):(Pl(),Ml("div",{key:1,class:zn(["relative gap-1 whitespace-nowrap",Ao(XQ)(Ao(s)({isSquare:e.isSquare,isEditable:e.isEditable}),a.value.colorClass)]),type:"button"},Gn(a.value.short),3))}}),Fme=P8(Ume,[["__scopeId","data-v-076b14a1"]]),Qme=(e,t=2)=>e>1e3?(e/1e3).toFixed(t)+"s":e+"ms",zme={100:{color:"text-yellow"},200:{color:"text-green"},202:{color:"text-green"},300:{color:"text-blue"},304:{color:"text-blue"},400:{color:"text-red"},401:{color:"text-orange"},422:{color:"text-yellow"},423:{color:"text-purple"},505:{color:"text-orange"}},qme=e=>zme[e]||{color:"text-grey"},Hme=Tt.union([Tt.string().brand(),Tt.string().brand().array()]).array().default([]),Vme=Tt.union([Tt.object({description:Tt.string().optional(),default:Tt.string().default("")}),Tt.string()]),Zme=Tt.object({description:Tt.string().optional(),color:Tt.string().optional(),variables:Tt.record(Tt.string(),Vme)}),Wme=Tt.record(Tt.string(),Zme),Xme=Tt.object({description:Tt.string().optional(),example:Tt.string().optional()}),Gme=Tt.record(Tt.string(),Xme),Yme=Tt.string().min(7).optional().default((()=>QW())),Kme=Tt.object({description:Tt.string().optional()}),Jme=Tt.object({uid:Yme.brand(),nameKey:Tt.string().optional().default("")}),ege=Kme.extend({type:Tt.literal("apiKey"),name:Tt.string().optional().default(""),in:Tt.enum(["query","header","cookie"]).optional().default("header").catch("header")}),tge=Tt.object({value:Tt.string().default("")}),rge=ege.merge(Jme).merge(tge),nge=Kme.extend({type:Tt.literal("http"),scheme:Tt.string().toLowerCase().pipe(Tt.enum(["basic","bearer"])).optional().default("basic"),bearerFormat:Tt.union([Tt.literal("JWT"),Tt.string()]).optional().default("JWT")}),age=Tt.object({username:Tt.string().default(""),password:Tt.string().default(""),token:Tt.string().default("")}),oge=nge.merge(Jme).merge(age),ige=Kme.extend({type:Tt.literal("openIdConnect"),openIdConnectUrl:Tt.string().optional().default("")}),sge=ige.merge(Jme),lge=Tt.string().default(""),cge=Tt.string().default(""),uge=Tt.object({refreshUrl:Tt.string().optional().default(""),scopes:Tt.record(Tt.string(),Tt.string().optional().default("")).optional().default({}).catch({}),selectedScopes:Tt.array(Tt.string()).optional().default([]),"x-scalar-client-id":Tt.string().optional().default(""),token:Tt.string().default(""),"x-scalar-security-query":Tt.record(Tt.string(),Tt.string()).optional(),"x-scalar-security-body":Tt.record(Tt.string(),Tt.string()).optional(),"x-tokenName":Tt.string().optional()}),dge="undefined"!=typeof window?window.location.origin+window.location.pathname:"",pge=["SHA-256","plain","no"],hge=Kme.extend({type:Tt.literal("oauth2"),"x-default-scopes":Tt.string().or(Tt.array(Tt.string())).optional(),flows:Tt.object({implicit:uge.extend({type:Tt.literal("implicit").default("implicit"),authorizationUrl:lge,"x-scalar-redirect-uri":Tt.string().optional().default(dge)}),password:uge.extend({type:Tt.literal("password").default("password"),tokenUrl:cge,clientSecret:Tt.string().default(""),username:Tt.string().default(""),password:Tt.string().default("")}),clientCredentials:uge.extend({type:Tt.literal("clientCredentials").default("clientCredentials"),tokenUrl:cge,clientSecret:Tt.string().default("")}),authorizationCode:uge.extend({type:Tt.literal("authorizationCode").default("authorizationCode"),authorizationUrl:lge,"x-usePkce":Tt.enum(pge).optional().default("no"),"x-scalar-redirect-uri":Tt.string().optional().default(dge),tokenUrl:cge,clientSecret:Tt.string().default("")})}).partial().default({implicit:{type:"implicit",authorizationUrl:"http://localhost:8080"}})}),fge=hge.merge(Jme),mge=Tt.record(Tt.string(),Tt.array(Tt.string()).optional().default([]));Tt.union([ege,nge,hge,ige]);const gge=Tt.discriminatedUnion("type",[rge,oge,sge,fge]).transform((e=>{var t;return"oauth2"===e.type&&(null==(t=e["x-default-scopes"])?void 0:t.length)&&Object.keys(e.flows).forEach((t=>{var r;(null==(r=e.flows[t])?void 0:r.selectedScopes)&&e["x-default-scopes"]&&(e.flows[t].selectedScopes=[e["x-default-scopes"]].flat())})),e})),vge=e=>Array.isArray(e)?e.map((e=>"object"==typeof e&&null!==e?vge(e):e)):Object.fromEntries(Object.entries(e).filter((([e,t])=>void 0!==t)).map((([e,t])=>"object"==typeof t&&null!==t?[e,vge(t)]:[e,t]))),bge=Tt.object({name:Tt.string().optional().nullable().catch(null),identifier:Tt.string().optional().catch(void 0),url:Tt.string().url().optional().catch(void 0)}).transform(vge),yge=Tt.object({name:Tt.string().optional(),url:Tt.string().url().optional().catch(void 0),email:Tt.string().optional().catch(void 0)}).transform(vge),Oge=Tt.object({title:Tt.string().catch("API"),summary:Tt.string().optional().catch(void 0),description:Tt.string().optional().catch(void 0),termsOfService:Tt.string().url().optional().catch(void 0),contact:yge.optional().catch(void 0),license:bge.optional().catch(void 0),version:Tt.string().catch("1.0")}).merge(sj).transform(vge),wge=Tt.object({description:Tt.string().optional().catch(void 0),url:Tt.string()}).transform(vge),xge=Tt.object({tagName:Tt.string()}).array(),kge=Tt.object({type:Tt.literal("tag").optional().default("tag"),name:Tt.string(),description:Tt.string().optional().catch(void 0),externalDocs:wge.optional(),"x-scalar-children":xge.default([]).optional(),"x-internal":Tt.boolean().optional(),"x-scalar-ignore":Tt.boolean().optional()}).extend({uid:Yme.brand(),children:Tt.union([Tt.string().brand(),Tt.string().brand()]).array().default([])}),Sge=Tt.object({type:Tt.literal("collection").optional().default("collection"),openapi:Tt.union([Tt.string(),Tt.literal("3.0.0"),Tt.literal("3.1.0"),Tt.literal("4.0.0")]).optional().default("3.1.0"),jsonSchemaDialect:Tt.string().optional(),info:Oge.catch({title:"API",version:"1.0"}),security:Tt.array(mge).optional().default([]),externalDocs:wge.optional().catch(void 0),components:Tt.record(Tt.string(),Tt.unknown()).optional(),webhooks:Tt.record(Tt.string(),Tt.unknown()).optional(),"x-scalar-icon":Tt.string().optional().default("interface-content-folder"),"x-scalar-active-environment":Tt.string().optional(),"x-scalar-environments":Wme.optional(),"x-scalar-secrets":Gme.optional()}),_ge=Tt.object({uid:Yme.brand(),securitySchemes:Tt.string().array().default([]),selectedSecuritySchemeUids:Hme,selectedServerUid:Tt.string().brand().optional(),servers:Tt.string().brand().array().default([]),requests:Tt.string().brand().array().default([]),tags:Tt.string().brand().array().default([]),children:Tt.union([Tt.string().brand(),Tt.string().brand()]).array().default([]),documentUrl:Tt.string().optional(),watchMode:Tt.boolean().optional().default(!1),integration:Tt.string().nullable().optional(),useCollectionSecurity:Tt.boolean().optional().default(!1),watchModeStatus:Tt.enum(["IDLE","WATCHING","ERROR"]).optional().default("IDLE")}),Ege=Sge.merge(_ge),Tge=Tt.enum(["path","query","header","cookie"]),Age=Tt.enum(["matrix","simple","form","label","spaceDelimited","pipeDelimited","deepObject"]);Tt.unknown();const Cge=Tt.object({in:Tge,name:Tt.string(),description:Tt.string().optional(),required:Tt.boolean().optional().default(!1),deprecated:Tt.boolean().optional().default(!1),schema:Tt.unknown().optional(),content:Tt.unknown().optional(),style:Age.optional(),explode:Tt.boolean().optional(),example:Tt.unknown().optional(),examples:Tt.union([Tt.record(Tt.string(),Tt.object({value:Tt.unknown().optional(),summary:Tt.string().optional(),externalValue:Tt.string().optional()})),Tt.array(Tt.unknown())]).optional()}),Pge=Tt.object({enum:Tt.array(Tt.string()).optional(),default:Tt.string().optional(),description:Tt.string().optional()}).extend({value:Tt.string().optional()}).refine((e=>(Array.isArray(e.enum)&&!e.enum.includes(e.default??"")&&e.enum.length>0&&(e.default=e.enum[0]),Array.isArray(e.enum)&&0===e.enum.length&&delete e.enum,!0))),Dge=Tt.object({url:Tt.string(),description:Tt.string().optional(),variables:Tt.record(Tt.string(),Pge).optional()}).extend({uid:Yme.brand()});var $ge=(e=>(e.Deprecated="deprecated",e.Experimental="experimental",e.Stable="stable",e))($ge||{});const Rge={"date-time":(new Date).toISOString(),date:(new Date).toISOString().split("T")[0],email:"hello@example.com",hostname:"example.com","idn-email":"jane.doe@example.com","idn-hostname":"example.com",ipv4:"127.0.0.1",ipv6:"51d4:7fab:bfbf:b7d7:b2cb:d4b4:3dad:d998","iri-reference":"/entitiy/1",iri:"https://example.com/entity/123","json-pointer":"/nested/objects",password:"super-secret",regex:"/[a-z]/","relative-json-pointer":"1/nested/objects",time:(new Date).toISOString().split("T")[1].split(".")[0],"uri-reference":"../folder","uri-template":"https://example.com/{id}",uri:"https://example.com",uuid:"123e4567-e89b-12d3-a456-426614174000","object-id":"6592008029c8c3e4dc76256c"};function Mge(e,t=!1,r=""){return"binary"===e.format?new File([""],"filename"):t?Rge[e.format]??r:""}const Nge=new WeakMap;function Ige(e,t){return"object"!=typeof t||null===t||Nge.set(e,t),t}const Lge=(e,t,r=0,n,a)=>{var o,i,s,l,c,u,d,p,h,f,m,g,v,b,y,O,w;if(Nge.has(e))return Nge.get(e);if(6===r)try{JSON.stringify(e)}catch{return"[Circular Reference]"}const x=!!(null==t?void 0:t.emptyString);if(e.deprecated)return;if("write"===(null==t?void 0:t.mode)&&e.readOnly||"read"===(null==t?void 0:t.mode)&&e.writeOnly)return;if(e["x-variable"]){const r=null==(o=null==t?void 0:t.variables)?void 0:o[e["x-variable"]];if(void 0!==r)return"number"===e.type||"integer"===e.type?Number.parseInt(r,10):Ige(e,r)}if(Array.isArray(e.examples)&&e.examples.length>0)return Ige(e,e.examples[0]);if(void 0!==e.example)return Ige(e,e.example);if(void 0!==e.default)return Ige(e,e.default);if(Array.isArray(e.enum)&&e.enum.length>0)return Ige(e,e.enum[0]);if(!("object"===e.type||"array"===e.type||(null==(s=null==(i=e.allOf)?void 0:i.at)?void 0:s.call(i,0))||(null==(c=null==(l=e.anyOf)?void 0:l.at)?void 0:c.call(l,0))||(null==(d=null==(u=e.oneOf)?void 0:u.at)?void 0:d.call(u,0))||!0!==(null==t?void 0:t.omitEmptyAndOptionalProperties)||!0===e.required||!0===(null==n?void 0:n.required)||(null==(p=null==n?void 0:n.required)?void 0:p.includes(a??e.name))))return;if("object"===e.type||void 0!==e.properties){const n={};let a=0;if(void 0!==e.properties)for(const o in e.properties)if(Object.prototype.hasOwnProperty.call(e.properties,o)){if(r>3&&a>=10){n["..."]="[Additional Properties Truncated]";break}const i=e.properties[o],s=(null==t?void 0:t.xml)?null==(h=i.xml)?void 0:h.name:void 0,l=Lge(i,t,r+1,e,o);void 0!==l&&(n[s??o]=l,a++)}if(void 0!==e.patternProperties)for(const a in e.patternProperties)if(Object.prototype.hasOwnProperty.call(e.patternProperties,a)){const o=e.patternProperties[a],i=a;n[i]=Lge(o,t,r+1,e,i)}if(void 0!==e.additionalProperties){const a=!0===e.additionalProperties||"object"==typeof e.additionalProperties&&!Object.keys(e.additionalProperties).length,o="object"==typeof e.additionalProperties&&e.additionalProperties["x-additionalPropertiesName"]&&"string"==typeof e.additionalProperties["x-additionalPropertiesName"]&&e.additionalProperties["x-additionalPropertiesName"].trim().length>0?`${e.additionalProperties["x-additionalPropertiesName"].trim()}*`:"propertyName*";a?n[o]="anything":!1!==e.additionalProperties&&(n[o]=Lge(e.additionalProperties,t,r+1))}return void 0!==e.anyOf?Object.assign(n,Lge(e.anyOf[0],t,r+1)):void 0!==e.oneOf?Object.assign(n,Lge(e.oneOf[0],t,r+1)):void 0!==e.allOf&&Object.assign(n,...e.allOf.map((n=>Lge(n,t,r+1,e))).filter((e=>void 0!==e))),Ige(e,n)}if("array"===e.type||void 0!==e.items){const n=null==(m=null==(f=null==e?void 0:e.items)?void 0:f.xml)?void 0:m.name,a=!!((null==t?void 0:t.xml)&&(null==(g=e.xml)?void 0:g.wrapped)&&n);if(void 0!==e.example)return Ige(e,a?{[n]:e.example}:e.example);if(e.items){if(e.items.allOf){if("object"===e.items.allOf[0].type){const o=Lge({type:"object",allOf:e.items.allOf},t,r+1,e);return Ige(e,a?[{[n]:o}]:[o])}const o=e.items.allOf.map((n=>Lge(n,t,r+1,e))).filter((e=>void 0!==e));return Ige(e,a?o.map((e=>({[n]:e}))):o)}const o=["anyOf","oneOf"];for(const i of o){if(!e.items[i])continue;const o=e.items[i].slice(0,1).map((n=>Lge(n,t,r+1,e))).filter((e=>void 0!==e));return Ige(e,a?[{[n]:o}]:o)}}const o="object"===(null==(v=e.items)?void 0:v.type)||void 0!==(null==(b=e.items)?void 0:b.properties),i="array"===(null==(y=e.items)?void 0:y.type)||void 0!==(null==(O=e.items)?void 0:O.items);if((null==(w=e.items)?void 0:w.type)||o||i){const o=Lge(e.items,t,r+1);return a?[{[n]:o}]:[o]}return[]}const k={string:Mge(e,x,null==t?void 0:t.emptyString),boolean:!0,integer:e.min??1,number:e.min??1,array:[]};if(void 0!==e.type&&void 0!==k[e.type])return Ige(e,k[e.type]);const S=e.oneOf||e.anyOf;if(Array.isArray(S)&&S.length>0){const e=S[0];return Lge(e,t,r+1)}if(Array.isArray(e.allOf)){let n=null;return e.allOf.forEach((e=>{const a=Lge(e,t,r+1);n="object"==typeof a&&"object"==typeof n?{...n??{},...a}:Array.isArray(a)&&Array.isArray(n)?[...n??{},...a]:a})),Ige(e,n)}if(Array.isArray(e.type)){if(e.type.includes("null"))return null;const t=k[e.type[0]];if(void 0!==t)return Ige(e,t)}return null};function jge(e=[],t=[],r,n=!0){return[...t||[],...e||[]].filter((e=>e.in===r)).filter((e=>n&&e.required||!n)).map((e=>({name:e.name??"Unknown Parameter",description:e.description??null,value:e.example?e.example:e.schema?Lge(e.schema,{mode:"write"}):"",required:e.required??!1,enabled:e.required??!1}))).sort(((e,t)=>e.required&&!t.required?-1:!e.required&&t.required?1:0))}function Bge(e,t=!1,r){return Object.entries(e).flatMap((([e,n])=>{const a=r??e;return Array.isArray(n)&&!t?Bge(n,!0,e):("object"!=typeof n||n instanceof File||null===n||(n=JSON.stringify(n)),[{name:a,value:n}])}))}const Uge=["application/json","application/octet-stream","application/x-www-form-urlencoded","application/xml","multipart/form-data","text/plain"],Fge=Tt.object({key:Tt.string().default(""),value:Tt.coerce.string().default(""),enabled:Tt.boolean().default(!0),file:Tt.any().optional(),description:Tt.string().optional(),required:Tt.boolean().optional(),enum:Tt.array(Tt.string()).optional(),examples:Tt.array(Tt.any()).optional(),type:Tt.union([Tt.string(),Tt.array(Tt.string())]).optional(),format:Tt.string().optional(),minimum:Tt.number().optional(),maximum:Tt.number().optional(),default:Tt.any().optional(),nullable:Tt.boolean().optional()}).transform((e=>{const t={...e};return Array.isArray(t.type)&&t.type.includes("null")&&(t.nullable=!0),Array.isArray(t.type)&&2===t.type.length&&t.type.includes("null")&&(t.type=t.type.find((e=>"null"!==e))),t})),Qge=Tt.object({url:Tt.string(),base64:Tt.string().optional()}).nullable();Tt.union([Tt.object({type:Tt.literal("string"),value:Tt.string()}),Tt.object({type:Tt.literal("file"),file:Qge})]);const zge=Tt.object({raw:Tt.object({encoding:Tt.enum(["json","text","html","javascript","xml","yaml","edn"]),value:Tt.string().default(""),mimeType:Tt.string().optional()}).optional(),formData:Tt.object({encoding:Tt.union([Tt.literal("form-data"),Tt.literal("urlencoded")]).default("form-data"),value:Fge.array().default([])}).optional(),binary:Tt.instanceof(Blob).optional(),activeBody:Tt.union([Tt.literal("raw"),Tt.literal("formData"),Tt.literal("binary")]).default("raw")}),qge=Tt.object({encoding:Tt.enum(["application/json","text/plain","text/html","application/javascript","application/xml","application/yaml","application/edn","application/octet-stream","application/x-www-form-urlencoded","multipart/form-data","binary"]),content:Tt.union([Tt.record(Tt.string(),Tt.any()),Tt.string()]),file:Qge.optional()}),Hge=Tt.object({uid:Yme.brand(),type:Tt.literal("requestExample").optional().default("requestExample"),requestUid:Tt.string().brand().optional(),name:Tt.string().optional().default("Name"),body:zge.optional().default({}),parameters:Tt.object({path:Fge.array().default([]),query:Fge.array().default([]),headers:Fge.array().default([{key:"Accept",value:"*/*",enabled:!0}]),cookies:Fge.array().default([])}).optional().default({}),serverVariables:Tt.record(Tt.string(),Tt.array(Tt.string())).optional()}),Vge=Tt.record(Tt.string(),Tt.string()).optional(),Zge=Tt.object({name:Tt.string().optional(),body:qge.optional(),parameters:Tt.object({path:Vge,query:Vge,headers:Vge,cookies:Vge})});function Wge(e,t,r){var n;const a={path:[],query:[],cookie:[],header:[],headers:[{key:"Accept",value:"*/*",enabled:!0}]};null==(n=e.parameters)||n.forEach((e=>a[e.in].push(function(e){var t;const r=e.schema,n=(()=>{if(e.examples&&!Array.isArray(e.examples)&&Ej(e.examples).length>0){const t=Object.entries(e.examples).map((([e,t])=>t.externalValue?t.externalValue:t.value));return{value:t[0],examples:t}}if(mj(e.example))return{value:e.example};if(Array.isArray(e.examples)&&e.examples.length>0)return{value:e.examples[0]};if(mj(null==r?void 0:r.example))return{value:r.example};if(Array.isArray(null==r?void 0:r.examples)&&r.examples.length>0)return"boolean"===(null==r?void 0:r.type)?{value:r.default??!1}:{value:r.examples[0]};if(e.content){const t=Ej(e.content)[0];if(t){const r=e.content[t];if(null==r?void 0:r.examples){const e=Object.keys(r.examples)[0];if(e){const t=r.examples[e];if(mj(null==t?void 0:t.value))return{value:t.value}}}if(mj(null==r?void 0:r.example))return{value:r.example}}}return null})(),a=String((null==n?void 0:n.value)??(null==r?void 0:r.default)??""),o=(null==r?void 0:r.enum)&&"string"!==(null==r?void 0:r.type)?null==(i=r.enum)?void 0:i.map(String):(null==(s=null==r?void 0:r.items)?void 0:s.enum)&&"array"===(null==r?void 0:r.type)?r.items.enum.map(String):null==r?void 0:r.enum;var i,s;const l=(null==n?void 0:n.examples)||((null==r?void 0:r.examples)&&"string"!==(null==r?void 0:r.type)?null==(t=r.examples)?void 0:t.map(String):null==r?void 0:r.examples);return nj({...r,key:e.name,value:a,description:e.description,required:e.required,enabled:!!e.required,enum:o,examples:l},Fge,!1)||(console.warn(`Example at ${e.name} is invalid.`),Fge.parse({}))}(e)))),a.header.length>0&&(a.headers=a.header,a.header=[]);const o=a.headers.find((e=>"content-type"===e.key.toLowerCase())),i={activeBody:"raw"};if(e.requestBody||(null==o?void 0:o.value)){const t=function(e){var t,r,n,a;const o=tj(null==(t=e.requestBody)?void 0:t.content),i=Uge.find((e=>!!(null==o?void 0:o[e])))??(Object.keys(o??{})[0]||"application/json"),s=i.includes("json")||i.endsWith("+json"),l=(null==(r=null==o?void 0:o[i])?void 0:r.examples)??(null==(n=null==o?void 0:o["application/json"])?void 0:n.examples),c=null==l?void 0:l[Object.keys(l??{})[0]??""];if(c)return{mimeType:i,text:rj(null==c?void 0:c.value)};const u=jge(e.parameters??[],[],"body",!1);if(u.length>0)return{mimeType:"application/json",text:rj((null==(a=u[0])?void 0:a.value)??"")};const d=jge(e.parameters??[],[],"formData",!1);if(d.length>0)return{mimeType:"application/x-www-form-urlencoded",params:d.map((e=>({name:e.name,value:"string"==typeof e.value?e.value:JSON.stringify(e.value)})))};if(!i)return null;const p=null==o?void 0:o[i],h=(null==p?void 0:p.example)?null==p?void 0:p.example:void 0;if(s){const e=(null==p?void 0:p.schema)?Lge(null==p?void 0:p.schema,{mode:"write",omitEmptyAndOptionalProperties:!1}):null,t=h??e;return{mimeType:i,text:t?"string"==typeof t?t:JSON.stringify(t,null,2):void 0}}if("application/xml"===i){const e=(null==p?void 0:p.schema)?Lge(null==p?void 0:p.schema,{xml:!0,mode:"write"}):null;return{mimeType:i,text:h??bj(e," ")}}if("application/octet-stream"===i)return{mimeType:i,text:"BINARY"};if("text/plain"===i){const e=(null==p?void 0:p.schema)?Lge(null==p?void 0:p.schema,{xml:!0,mode:"write"}):null;return{mimeType:i,text:h??e??""}}if("multipart/form-data"===i||"application/x-www-form-urlencoded"===i){const e=(null==p?void 0:p.schema)?Lge(null==p?void 0:p.schema,{xml:!0,mode:"write"}):null;return{mimeType:i,params:Bge(h??e??{})}}return null}(e),r=e.requestBody?null==t?void 0:t.mimeType:null==o?void 0:o.value;((null==r?void 0:r.includes("/json"))||(null==r?void 0:r.endsWith("+json")))&&(i.activeBody="raw",i.raw={encoding:"json",mimeType:r,value:(null==t?void 0:t.text)??JSON.stringify({})}),"application/xml"===r&&(i.activeBody="raw",i.raw={encoding:"xml",value:(null==t?void 0:t.text)??""}),"application/octet-stream"===r&&(i.activeBody="binary",i.binary=void 0),"application/x-www-form-urlencoded"!==r&&"multipart/form-data"!==r||(i.activeBody="formData",i.formData={encoding:"application/x-www-form-urlencoded"===r?"urlencoded":"form-data",value:((null==t?void 0:t.params)||[]).map((e=>e.value instanceof File?{key:e.name,value:"BINARY",file:e.value,enabled:!0}:{key:e.name,value:e.value||"",enabled:!0}))}),!(null==t?void 0:t.mimeType)||o||t.mimeType.startsWith("multipart/")||a.headers.push({key:"Content-Type",value:t.mimeType,enabled:!0})}return nj({requestUid:e.uid,parameters:a,name:t,body:i,serverVariables:{}},Hge,!1)||(console.warn(`Example at ${e.uid} is invalid.`),Hge.parse({}))}const Xge=Tt.any(),Gge=Tt.object({tags:Tt.string().array().optional(),summary:Tt.string().optional(),description:Tt.string().optional(),operationId:Tt.string().optional(),security:Tt.array(mge).optional(),requestBody:Xge.optional(),parameters:Cge.array().optional(),externalDocs:wge.optional(),deprecated:Tt.boolean().optional(),responses:Tt.record(Tt.string(),Tt.any()).optional(),callbacks:Tt.record(Tt.string(),Tt.record(Tt.string(),Tt.record(Tt.string(),Tt.any()))).optional(),"x-scalar-examples":Tt.record(Tt.string(),Zge).optional(),"x-internal":Tt.boolean().optional(),"x-scalar-ignore":Tt.boolean().optional()}),Yge=Tt.object({"x-scalar-stability":Tt.enum([$ge.Deprecated,$ge.Experimental,$ge.Stable]).optional().catch(void 0)}),Kge=Tt.object({type:Tt.literal("request").optional().default("request"),uid:Yme.brand(),path:Tt.string().optional().default(""),method:Tt.enum(["connect","delete","get","head","options","patch","post","put","trace"]).default("get"),servers:Tt.string().brand().array().default([]),selectedServerUid:Tt.string().brand().optional().nullable().default(null),examples:Tt.string().brand().array().default([]),selectedSecuritySchemeUids:Hme}),Jge=Gge.omit({"x-scalar-examples":!0}).merge(ij).merge(Yge).merge(Kge).merge(uj);function eve(e,t,r){const n=t.split(".");return n.reduce(((e,t,a)=>(a===n.length-1&&(e[t]=r),e[t])),e),e}function tve(e,t){return t.split(".").reduce(((e,t)=>e[t]),e)}class rve{constructor(e,t=5e3,r=!1){a(this,"parentData"),a(this,"maxRecords"),a(this,"records",[]),a(this,"sideEffects",[]),a(this,"idx",0),a(this,"debug"),this.maxRecords=t,this.parentData=e,this.debug=r}_unsavedMutate(e,t){eve(this.parentData,e,t),this.runSideEffects(e)}addSideEffect(e,t,r,n=!0){this.sideEffects.push({triggers:e,effect:t,name:r}),n&&(t(this.parentData),this.debug&&console.info(`Running mutation side effect: ${r}`,"debug"))}runSideEffects(e){this.sideEffects.forEach((({effect:t,triggers:r,name:n})=>{(r.some((t=>e.includes(t)))||e.length<1)&&(t(this.parentData),this.debug&&console.info(`Running mutation side effect: ${n}`,"debug"))}))}mutate(e,t,r=null){this.idx<this.records.length-1&&this.records.splice(this.idx+1);const n=tve(this.parentData,e);n!==t&&(eve(this.parentData,e,t),this.runSideEffects(e),this.records.push({prev:r??n,value:t,path:e}),this.idx=this.records.length-1,this.records.length>this.maxRecords&&this.records.shift(),this.debug&&console.info(`Set object '${this.idx}' '${e}' to ${t}`,"debug"))}undo(){if(this.idx<0||this.records.length<1)return!1;this.debug&&console.info("Undoing Mutation","debug");const e=this.records[this.idx];return this.idx-=1,e&&this._unsavedMutate(e.path,e.prev),!0}redo(){if(this.idx>this.records.length-2)return!1;this.debug&&console.info("Redoing Mutation","debug");const e=this.records[this.idx+1];return this.idx+=1,e&&this._unsavedMutate(e.path,e.value),!0}}const nve=328,ave=1e3,{parse:ove,stringify:ive}=JSON,{keys:sve}=Object,lve=String,cve="string",uve={},dve="object",pve=(e,t)=>t,hve=e=>e instanceof lve?lve(e):e,fve=(e,t)=>typeof t===cve?new lve(t):t,mve=(e,t,r,n)=>{const a=[];for(let o=sve(r),{length:i}=o,s=0;s<i;s++){const i=o[s],l=r[i];if(l instanceof lve){const o=e[l];typeof o!==dve||t.has(o)?r[i]=n.call(r,i,o):(t.add(o),r[i]=uve,a.push({k:i,a:[e,t,o,n]}))}else r[i]!==uve&&(r[i]=n.call(r,i,l))}for(let{length:e}=a,t=0;t<e;t++){const{k:e,a:o}=a[t];r[e]=n.call(r,e,mve.apply(null,o))}return r},gve=(e,t,r)=>{const n=lve(t.push(r)-1);return e.set(r,n),n},vve=(e,t)=>{const r=ove(e,fve).map(hve),n=r[0],a=pve,o=typeof n===dve&&n?mve(r,new Set,n,a):n;return a.call({"":o},"",o)},bve=(e,t,r)=>{const n=pve,a=new Map,o=[],i=[];let s=+gve(a,o,n.call({"":e},"",e)),l=!s;for(;s<o.length;)l=!0,i[s]=ive(o[s++],c,r);return"["+i.join(",")+"]";function c(e,t){if(l)return l=!l,t;const r=n.call(this,e,t);switch(typeof r){case dve:if(null===r)return r;case cve:return a.get(r)||gve(a,o,r)}return r}};function yve(e,t,r,n=500){function a(r){const n=t[r];return n||console.warn(`Missing ${e[r]?"mutator":"object"} for uid: ${r}`),n??null}const o=r?function(e,t,{maxWait:r}={}){let n=null,a=null;return function(...o){n&&clearTimeout(n),n=setTimeout((()=>{null!==a&&clearTimeout(a),a=null,e.apply(this,o)}),t),r&&!a&&(a=setTimeout((()=>{null!==n&&clearTimeout(n),a=null,e.apply(this,o)}),r))}}((()=>localStorage.setItem(r,bve(e))),nve,{maxWait:ave}):()=>null;return{add:r=>{e[r.uid]=r,t[r.uid]=new rve(r,n),o()},delete:r=>{r?(delete e[r],delete t[r],o()):console.warn("[@scalar/object-utils] No uid provided to delete")},set:r=>{e[r.uid]=r,t[r.uid]=new rve(r,n),o()},edit:(e,t,r)=>{if(!e)return void console.warn("[@scalar/object-utils] No uid provided to edit",t,r);const n=a(e);null==n||n.mutate(t,r),o()},untrackedEdit:(e,t,r)=>{const n=a(e);null==n||n._unsavedMutate(t,r),o()},undo:e=>{const t=a(e);null==t||t.undo(),o()},redo:e=>{const t=a(e);null==t||t.redo(),o()},reset:()=>{Object.keys(e).forEach((r=>{delete e[r],delete t[r]})),o()}}}function Ove({requests:e,requestMutators:t,requestExamples:r,requestExampleMutators:n,workspaces:a,workspaceMutators:o,collections:i,collectionMutators:s,tagMutators:l,serverMutators:c}){return{addCollection:(e,t)=>{const r=Ege.parse(e),n=a[t];return n&&o.edit(t,"collections",[...n.collections,r.uid]),s.add(r),r},deleteCollection:(a,u)=>{var d,p;if(u.uid){if("Drafts"===(null==(p=null==(d=i[a.uid])?void 0:d.info)?void 0:p.title))return void console.warn("The drafts collection cannot be deleted");if(1===Object.values(i).length)return void console.warn("You must have at least one collection");a.tags.forEach((e=>l.delete(e))),a.requests.forEach((a=>{const o=e[a];o&&(t.delete(a),o.examples.forEach((e=>r[e]&&n.delete(e))))})),a.servers.forEach((e=>{e&&c.delete(e)})),o.edit(u.uid,"collections",u.collections.filter((e=>e!==a.uid))),s.delete(a.uid)}},addCollectionEnvironment:(e,t,r)=>{const n=i[r];if(n){const a=n["x-scalar-environments"]||{};s.edit(r,"x-scalar-environments",{...a,[e]:t})}},removeCollectionEnvironment:(e,t)=>{const r=i[t];if(r){const n=r["x-scalar-environments"]||{};e in n&&(delete n[e],s.edit(t,"x-scalar-environments",n))}}}}const wve=Tt.object({uid:Tt.string().brand(),name:Tt.string().optional().default("Default Environment"),color:Tt.string().optional().default("#FFFFFF"),value:Tt.string().default(""),isDefault:Tt.boolean().optional()});function xve(){const e=new Set;function t(t){return e.add(t),()=>r(t)}function r(t){e.delete(t)}return{on:t,once:function(e){return t((function t(...n){r(t),e(...n)}))},off:r,emit:function(t){null==e||e.forEach((e=>e(t)))},reset:function(){e.clear()},listeners:()=>Array.from(e)}}const kve=async(e,{shouldLoad:t=!0,dereferencedDocument:r}={})=>{const{schema:n,errors:a}=r?{schema:r,errors:[]}:await(async(e,{shouldLoad:t=!0}={})=>{if(null===e||"string"==typeof e&&""===e.trim())return console.warn("[@scalar/oas-utils] Empty OpenAPI document provided."),{schema:{},errors:[]};let r=e,n=[];if(t){const t=await async function(e){var t,r;const n=[];let a;if(a=_f(e),void 0===a)return n.push({code:"NO_CONTENT",message:Fu.NO_CONTENT}),{specification:null,filesystem:[],errors:n};let o=Ef(a,{filename:null});const i=qu(o).references??Vu(a);if(0===i.length)return{specification:null==(t=qu(o))?void 0:t.specification,filesystem:o,errors:n};for(const e of i);return{specification:null==(r=qu(o))?void 0:r.specification,filesystem:o,errors:n}}(e).catch((e=>({errors:[{code:e.code,message:e.message}],filesystem:[]})));r=t.filesystem,n=t.errors??[]}const{specification:a}=Ff(r),{schema:o,errors:i=[]}=await $f(a);return{schema:o,errors:[...n,...i]}})(e??"",{shouldLoad:t});return n||console.warn("[@scalar/oas-utils] OpenAPI Parser Warning: Schema is undefined"),{schema:Array.isArray(n)?{}:n,errors:a}},Sve=(e,t=[],r)=>(e[0]&&!t.length?[e[0]]:t).map((e=>Array.isArray(e)?e.map((e=>r[e])).filter(mj):r[e])).filter(mj),_ve=e=>`slug-uid-${e}`;function Eve(e){try{const t=new URL(e);return`${t.protocol}//${t.hostname}${t.port?`:${t.port}`:""}`}catch{return}}function Tve(e,{baseServerURL:t,documentUrl:r}={}){if(!(null==e?void 0:e.length)&&r){const e=Eve(r);if(e)return[Dge.parse({url:e})]}return e&&Array.isArray(e)?e.map((e=>{var n;try{const a=Dge.parse(e);if(null==(n=null==a?void 0:a.url)?void 0:n.startsWith("/")){if(t)return a.url=gj(t,a.url),a;if(r){const e=Eve(r);return e&&(a.url=gj(e,a.url)),a}const e=Ave();if(e)return a.url=gj(e,a.url.replace(/^\//,"")),a}return a}catch(t){return console.warn("Oops, that's an invalid server configuration."),console.warn("Server:",e),void console.warn("Error:",t)}})).filter(mj):[]}function Ave(){var e;if("undefined"!=typeof window&&"string"==typeof(null==(e=null==window?void 0:window.location)?void 0:e.origin))return window.location.origin}const Cve=(e,t="An unknown error has occurred.")=>(console.error(e),e instanceof Error?(e.message=Pve(e.message),e):"string"==typeof e?new Error(Pve(e)):new Error(t)),Pve=e=>"Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'."===e?"File uploads are not saved in history, you must re-upload the file.":"Failed to construct 'URL': Invalid URL"===e?"The URL seems to be invalid. Try adding a valid URL.":"Failed to execute 'fetch' on 'Window': Invalid name"===e?"There is an invalid header present, please double check your params.":e,Dve={};function $ve({collections:e,tags:t}){return function(r){const n=Object.values(e).find((e=>{var t;return null==(t=e.requests)?void 0:t.includes(r.uid)}));if(!n)return[];const a=Object.keys(t).reduce(((e,t)=>(e[t]=[],e)),{[null==n?void 0:n.uid]:[]});!function e(r,n){n.forEach((e=>{var t;return null==(t=a[e])?void 0:t.push(...r.children)})),r.children.forEach((r=>{t[r]&&e(t[r],[...n,r])}))}(n,[n.uid]);const o=new Set;return Object.entries(a).forEach((([e,t])=>{t.includes(r.uid)&&o.add(e)})),[...o]}}function Rve(){return{request:Jge.parse({method:"get",parameters:[],path:"",summary:"My First Request",examples:[]})}}const Mve="/* basic theme */\n:root {\n --scalar-text-decoration: underline;\n --scalar-text-decoration-hover: underline;\n}\n.light-mode {\n --scalar-background-1: #fff;\n --scalar-background-2: #f6f6f6;\n --scalar-background-3: #e7e7e7;\n --scalar-background-accent: #8ab4f81f;\n\n --scalar-color-1: #2a2f45;\n --scalar-color-2: #757575;\n --scalar-color-3: #8e8e8e;\n\n --scalar-color-accent: #0099ff;\n --scalar-border-color: #dfdfdf;\n}\n.dark-mode {\n --scalar-background-1: #0f0f0f;\n --scalar-background-2: #1a1a1a;\n --scalar-background-3: #272727;\n\n --scalar-color-1: #e7e7e7;\n --scalar-color-2: #a4a4a4;\n --scalar-color-3: #797979;\n\n --scalar-color-accent: #00aeff;\n --scalar-background-accent: #3ea6ff1f;\n\n --scalar-border-color: #2d2d2d;\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-hover-color: currentColor;\n\n --scalar-sidebar-item-active-background: var(--scalar-background-2);\n --scalar-sidebar-color-active: var(--scalar-color-1);\n\n --scalar-sidebar-indent-border: var(--scalar-sidebar-border-color);\n --scalar-sidebar-indent-border-hover: var(--scalar-sidebar-border-color);\n --scalar-sidebar-indent-border-active: var(--scalar-sidebar-border-color);\n\n --scalar-sidebar-search-background: transparent;\n --scalar-sidebar-search-color: var(--scalar-color-3);\n --scalar-sidebar-search-border-color: var(--scalar-border-color);\n}\n/* advanced */\n.light-mode {\n --scalar-color-green: #069061;\n --scalar-color-red: #ef0006;\n --scalar-color-yellow: #edbe20;\n --scalar-color-blue: #0082d0;\n --scalar-color-orange: #ff5800;\n --scalar-color-purple: #5203d1;\n\n --scalar-link-color: var(--scalar-color-1);\n --scalar-link-color-hover: var(--scalar-link-color);\n\n --scalar-button-1: rgba(0, 0, 0, 1);\n --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n\n --scalar-tooltip-background: color-mix(in srgb, #1a1a1a, transparent 10%);\n --scalar-tooltip-color: color-mix(in srgb, #fff, transparent 15%);\n\n --scalar-color-alert: color-mix(in srgb, var(--scalar-color-orange), var(--scalar-color-1) 20%);\n --scalar-color-danger: color-mix(in srgb, var(--scalar-color-red), var(--scalar-color-1) 20%);\n\n --scalar-background-alert: color-mix(in srgb, var(--scalar-color-orange), var(--scalar-background-1) 95%);\n --scalar-background-danger: color-mix(in srgb, var(--scalar-color-red), var(--scalar-background-1) 95%);\n}\n.dark-mode {\n --scalar-color-green: #00b648;\n --scalar-color-red: #dc1b19;\n --scalar-color-yellow: #ffc90d;\n --scalar-color-blue: #4eb3ec;\n --scalar-color-orange: #ff8d4d;\n --scalar-color-purple: #b191f9;\n\n --scalar-link-color: var(--scalar-color-1);\n --scalar-link-color-hover: var(--scalar-link-color);\n\n --scalar-button-1: rgba(255, 255, 255, 1);\n --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n --scalar-button-1-color: black;\n\n --scalar-tooltip-background: color-mix(in srgb, var(--scalar-background-1), #fff 10%);\n --scalar-tooltip-color: color-mix(in srgb, #fff, transparent 5%);\n\n --scalar-color-danger: color-mix(in srgb, var(--scalar-color-red), var(--scalar-background-1) 20%);\n\n --scalar-background-alert: color-mix(in srgb, var(--scalar-color-orange), var(--scalar-background-1) 95%);\n --scalar-background-danger: color-mix(in srgb, var(--scalar-color-red), var(--scalar-background-1) 95%);\n}\n@supports (color: color(display-p3 1 1 1)) {\n .light-mode {\n --scalar-color-accent: color(display-p3 0.0 0.6 1.0 / 1.0);\n --scalar-color-green: color(display-p3 0.023529 0.564706 0.380392 / 1.0);\n --scalar-color-red: color(display-p3 0.937255 0.0 0.023529 / 1.0);\n --scalar-color-yellow: color(display-p3 0.929412 0.745098 0.12549 / 1.0);\n --scalar-color-blue: color(display-p3 0.0 0.509804 0.815686 / 1.0);\n --scalar-color-orange: color(display-p3 1.0 0.4 0.02);\n --scalar-color-purple: color(display-p3 0.321569 0.011765 0.819608 / 1.0);\n }\n .dark-mode {\n --scalar-color-accent: color(display-p3 0.07 0.67 1);\n --scalar-color-green: color(display-p3 0.0 0.713725 0.282353 / 1.0);\n --scalar-color-red: color(display-p3 0.862745 0.105882 0.098039 / 1.0);\n --scalar-color-yellow: color(display-p3 1.0 0.788235 0.05098 / 1.0);\n --scalar-color-blue: color(display-p3 0.305882 0.701961 0.92549 / 1.0);\n --scalar-color-orange: color(display-p3 1.0 0.552941 0.301961 / 1.0);\n --scalar-color-purple: color(display-p3 0.694118 0.568627 0.976471 / 1.0);\n }\n}\n";function Nve(){if("undefined"==typeof window)return!1;const e=document.createElement("div");e.setAttribute("style","width:30px;height:30px;overflow-y:scroll;"),e.classList.add("scrollbar-test");const t=document.createElement("div");t.setAttribute("style","width:100%;height:40px"),e.appendChild(t),document.body.appendChild(e);const r=30-e.firstChild.clientWidth;return document.body.removeChild(e),!!r}const Ive={default:"Default",alternate:"Alternate",moon:"Moon",purple:"Purple",solarized:"Solarized",elysiajs:"Elysia.js",fastify:"Fastify",bluePlanet:"Blue Planet",saturn:"Saturn",kepler:"Kepler-11e",mars:"Mars",deepSpace:"Deep Space",laserwave:"Laserwave",none:""},Lve={default:{uid:"qTQR9jSM8E-LihpyZzPOi",name:"Default",description:"Default Scalar theme",theme:Mve,slug:"default"},alternate:{uid:"2skUDSH4S8HYFF9yXysr-",name:"Alternate",description:"Alternate Scalar theme",theme:"/* basic theme */\n:root {\n --scalar-text-decoration: underline;\n --scalar-text-decoration-hover: underline;\n}\n\n.dark-mode {\n --scalar-background-1: #131313;\n --scalar-background-2: #1d1d1d;\n --scalar-background-3: #272727;\n --scalar-background-card: #1d1d1d;\n\n --scalar-color-1: rgba(255, 255, 255, 0.9);\n --scalar-color-2: rgba(255, 255, 255, 0.62);\n --scalar-color-3: rgba(255, 255, 255, 0.44);\n\n --scalar-color-accent: var(--scalar-color-1);\n --scalar-background-accent: var(--scalar-background-3);\n\n --scalar-border-color: #2a2b2a;\n}\n\n.light-mode,\n.light-mode .dark-mode {\n --scalar-background-1: #f9f9f9;\n --scalar-background-2: #f1f1f1;\n --scalar-background-3: #e7e7e7;\n --scalar-background-card: #fff;\n\n --scalar-color-1: #2a2f45;\n --scalar-color-2: #757575;\n --scalar-color-3: #8e8e8e;\n\n --scalar-color-accent: var(--scalar-color-1);\n --scalar-background-accent: var(--scalar-background-3);\n\n --scalar-border-color: rgba(0, 0, 0, 0.1);\n}\n\n/* Document Sidebar */\n.t-doc__sidebar {\n --scalar-color-green: var(--scalar-color-1);\n --scalar-color-red: var(--scalar-color-1);\n --scalar-color-yellow: var(--scalar-color-1);\n --scalar-color-blue: var(--scalar-color-1);\n --scalar-color-orange: var(--scalar-color-1);\n --scalar-color-purple: var(--scalar-color-1);\n}\n\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-hover-color: currentColor;\n\n --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n --scalar-sidebar-color-active: var(--scalar-color-accent);\n\n --scalar-sidebar-search-background: transparent;\n --scalar-sidebar-search-color: var(--scalar-color-3);\n --scalar-sidebar-search-border-color: var(--scalar-border-color);\n}\n/* advanced */\n.light-mode .dark-mode,\n.light-mode {\n --scalar-color-green: #069061;\n --scalar-color-red: #ef0006;\n --scalar-color-yellow: #edbe20;\n --scalar-color-blue: #0082d0;\n --scalar-color-orange: #fb892c;\n --scalar-color-purple: #5203d1;\n\n --scalar-button-1: rgba(0, 0, 0, 1);\n --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --scalar-color-green: #00b648;\n --scalar-color-red: #dd2f2c;\n --scalar-color-yellow: #ffc90d;\n --scalar-color-blue: #4eb3ec;\n --scalar-color-orange: #ff8d4d;\n --scalar-color-purple: #b191f9;\n\n --scalar-button-1: rgba(255, 255, 255, 1);\n --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n --scalar-button-1-color: black;\n}\n\n.scalar-api-client__item,\n.scalar-card,\n.dark-mode .dark-mode.scalar-card {\n --scalar-background-1: var(--scalar-background-card);\n --scalar-background-2: var(--scalar-background-1);\n --scalar-background-3: var(--scalar-background-1);\n}\n.dark-mode .dark-mode.scalar-card {\n --scalar-background-3: var(--scalar-background-3);\n}\n\n.light-mode *::selection {\n background-color: color-mix(in srgb, var(--scalar-color-blue), transparent 70%);\n}\n.dark-mode *::selection {\n background-color: color-mix(in srgb, var(--scalar-color-blue), transparent 50%);\n}\n",slug:"alternate"},moon:{uid:"DG9ZUNp5lJhDeX_kPX4Bl",name:"Moon",description:"Lunar styles",theme:".light-mode {\n color-scheme: light;\n --scalar-color-1: #000000;\n --scalar-color-2: #000000;\n --scalar-color-3: #000000;\n --scalar-color-accent: #645b0f;\n --scalar-background-1: #ccc9b3;\n --scalar-background-2: #c2bfaa;\n --scalar-background-3: #b8b5a1;\n --scalar-background-accent: #000000;\n\n --scalar-border-color: rgba(0, 0, 0, 0.2);\n --scalar-scrollbar-color: rgba(0, 0, 0, 0.18);\n --scalar-scrollbar-color-active: rgba(0, 0, 0, 0.36);\n --scalar-lifted-brightness: 1;\n --scalar-backdrop-brightness: 1;\n\n --scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);\n --scalar-shadow-2: rgba(0, 0, 0, 0.08) 0px 13px 20px 0px, rgba(0, 0, 0, 0.08) 0px 3px 8px 0px,\n var(--scalar-border-color) 0px 0 0 1px;\n\n --scalar-button-1: rgb(49 53 56);\n --scalar-button-1-color: #fff;\n --scalar-button-1-hover: rgb(28 31 33);\n\n --scalar-color-red: #b91c1c;\n --scalar-color-orange: #a16207;\n --scalar-color-green: #047857;\n --scalar-color-blue: #1d4ed8;\n --scalar-color-orange: #c2410c;\n --scalar-color-purple: #6d28d9;\n}\n\n.dark-mode {\n color-scheme: dark;\n --scalar-color-1: #fffef3;\n --scalar-color-2: #fffef3;\n --scalar-color-3: #fffef3;\n --scalar-color-accent: #c3b531;\n --scalar-background-1: #313332;\n --scalar-background-2: #393b3a;\n --scalar-background-3: #414342;\n --scalar-background-accent: #fffef3;\n\n --scalar-border-color: #505452;\n --scalar-scrollbar-color: rgba(255, 255, 255, 0.24);\n --scalar-scrollbar-color-active: rgba(255, 255, 255, 0.48);\n --scalar-lifted-brightness: 1.45;\n --scalar-backdrop-brightness: 0.5;\n\n --scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);\n --scalar-shadow-2: rgba(15, 15, 15, 0.2) 0px 3px 6px, rgba(15, 15, 15, 0.4) 0px 9px 24px, 0 0 0 1px\n rgba(255, 255, 255, 0.1);\n\n --scalar-button-1: #f6f6f6;\n --scalar-button-1-color: #000;\n --scalar-button-1-hover: #e7e7e7;\n\n --scalar-color-green: #00b648;\n --scalar-color-red: #dc1b19;\n --scalar-color-yellow: #ffc90d;\n --scalar-color-blue: #4eb3ec;\n --scalar-color-orange: #ff8d4d;\n --scalar-color-purple: #b191f9;\n}\n\n/* Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-hover-color: currentColor;\n\n --scalar-sidebar-item-active-background: var(--scalar-background-3);\n --scalar-sidebar-color-active: var(--scalar-color-1);\n\n --scalar-sidebar-search-background: transparent;\n --scalar-sidebar-search-color: var(--scalar-color-3);\n --scalar-sidebar-search-border-color: var(--scalar-border-color);\n}\n*::selection {\n background-color: color-mix(in srgb, var(--scalar-color-accent), transparent 80%);\n}\n",slug:"moon"},purple:{uid:"pE_1ysxcZ-y2LM1GGNBUv",name:"Purple",description:"Purple Scalar theme",theme:"/* basic theme */\n.light-mode {\n --scalar-background-1: #fff;\n --scalar-background-2: #f5f6f8;\n --scalar-background-3: #eceef1;\n\n --scalar-color-1: #2a2f45;\n --scalar-color-2: #757575;\n --scalar-color-3: #8e8e8e;\n\n --scalar-color-accent: #5469d4;\n --scalar-background-accent: #5469d41f;\n\n --scalar-border-color: rgba(215, 215, 206, 0.68);\n}\n.dark-mode {\n --scalar-background-1: #15171c;\n --scalar-background-2: #1c1e24;\n --scalar-background-3: #22252b;\n\n --scalar-color-1: #fafafa;\n --scalar-color-2: #c9ced8;\n --scalar-color-3: #8c99ad;\n\n --scalar-color-accent: #5469d4;\n --scalar-background-accent: #5469d41f;\n\n --scalar-border-color: #3f4145;\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-3);\n\n --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n --scalar-sidebar-color-active: var(--scalar-color-accent);\n\n --scalar-sidebar-search-background: var(--scalar-background-1);\n --scalar-sidebar-search-color: var(--scalar-color-3);\n --scalar-sidebar-search-border-color: var(--scalar-border-color);\n}\n\n/* advanced */\n.light-mode {\n --scalar-color-green: #17803d;\n --scalar-color-red: #e10909;\n --scalar-color-yellow: #edbe20;\n --scalar-color-blue: #1763a6;\n --scalar-color-orange: #e25b09;\n --scalar-color-purple: #5c3993;\n\n --scalar-button-1: rgba(0, 0, 0, 1);\n --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --scalar-color-green: #30a159;\n --scalar-color-red: #dc1b19;\n --scalar-color-yellow: #eec644;\n --scalar-color-blue: #2b7abf;\n --scalar-color-orange: #f07528;\n --scalar-color-purple: #7a59b1;\n\n --scalar-button-1: rgba(255, 255, 255, 1);\n --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n --scalar-button-1-color: black;\n}\n.light-mode *::selection {\n background-color: color-mix(in srgb, var(--scalar-color-accent), transparent 70%);\n}\n.dark-mode *::selection {\n background-color: color-mix(in srgb, var(--scalar-color-accent), transparent 50%);\n}\n",slug:"purple"},solarized:{uid:"BdGVG1vf-4nYl3wJKyj8l",name:"Solarized",description:"Solarized Scalar theme",theme:".light-mode {\n color-scheme: light;\n --scalar-color-1: #584c27;\n --scalar-color-2: #616161;\n --scalar-color-3: #a89f84;\n --scalar-color-accent: #b58900;\n --scalar-background-1: #fdf6e3;\n --scalar-background-2: #eee8d5;\n --scalar-background-3: #ddd6c1;\n --scalar-background-accent: #b589001f;\n\n --scalar-border-color: #ded8c8;\n --scalar-scrollbar-color: rgba(0, 0, 0, 0.18);\n --scalar-scrollbar-color-active: rgba(0, 0, 0, 0.36);\n --scalar-lifted-brightness: 1;\n --scalar-backdrop-brightness: 1;\n\n --scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);\n --scalar-shadow-2: rgba(0, 0, 0, 0.08) 0px 13px 20px 0px, rgba(0, 0, 0, 0.08) 0px 3px 8px 0px, #eeeeed 0px 0 0 1px;\n\n --scalar-button-1: rgb(49 53 56);\n --scalar-button-1-color: #fff;\n --scalar-button-1-hover: rgb(28 31 33);\n\n --scalar-color-red: #b91c1c;\n --scalar-color-orange: #a16207;\n --scalar-color-green: #047857;\n --scalar-color-blue: #1d4ed8;\n --scalar-color-orange: #c2410c;\n --scalar-color-purple: #6d28d9;\n}\n\n.dark-mode {\n color-scheme: dark;\n --scalar-color-1: #fff;\n --scalar-color-2: #cccccc;\n --scalar-color-3: #6d8890;\n --scalar-color-accent: #007acc;\n --scalar-background-1: #00212b;\n --scalar-background-2: #012b36;\n --scalar-background-3: #004052;\n --scalar-background-accent: #015a6f;\n\n --scalar-border-color: #2f4851;\n --scalar-scrollbar-color: rgba(255, 255, 255, 0.24);\n --scalar-scrollbar-color-active: rgba(255, 255, 255, 0.48);\n --scalar-lifted-brightness: 1.45;\n --scalar-backdrop-brightness: 0.5;\n\n --scalar-shadow-1: 0 1px 3px 0 rgb(0, 0, 0, 0.1);\n --scalar-shadow-2: rgba(15, 15, 15, 0.2) 0px 3px 6px, rgba(15, 15, 15, 0.4) 0px 9px 24px, 0 0 0 1px\n rgba(255, 255, 255, 0.1);\n\n --scalar-button-1: #f6f6f6;\n --scalar-button-1-color: #000;\n --scalar-button-1-hover: #e7e7e7;\n\n --scalar-color-green: #00b648;\n --scalar-color-red: #dc1b19;\n --scalar-color-yellow: #ffc90d;\n --scalar-color-blue: #4eb3ec;\n --scalar-color-orange: #ff8d4d;\n --scalar-color-purple: #b191f9;\n}\n\n/* Sidebar */\n.light-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-color-active: var(--scalar-color-accent);\n --scalar-sidebar-search-background: var(--scalar-background-2);\n --scalar-sidebar-search-border-color: var(--scalar-sidebar-search-background);\n --scalar-sidebar-search--color: var(--scalar-color-3);\n}\n\n.dark-mode .sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-color-active: var(--scalar-sidebar-color-1);\n --scalar-sidebar-search-background: var(--scalar-background-2);\n --scalar-sidebar-search-border-color: var(--scalar-sidebar-search-background);\n --scalar-sidebar-search--color: var(--scalar-color-3);\n}\n*::selection {\n background-color: color-mix(in srgb, var(--scalar-color-accent), transparent 70%);\n}\n",slug:"solarized"},bluePlanet:{uid:"X12IfAvl7ue-42V2lW40S",name:"Blue Planet",description:"Blue Planet Scalar theme",theme:"/* basic theme */\n:root {\n --scalar-text-decoration: underline;\n --scalar-text-decoration-hover: underline;\n}\n.light-mode {\n --scalar-background-1: #f0f2f5;\n --scalar-background-2: #eaecf0;\n --scalar-background-3: #e0e2e6;\n --scalar-border-color: rgb(213 213 213);\n\n --scalar-color-1: rgb(9, 9, 11);\n --scalar-color-2: rgb(113, 113, 122);\n --scalar-color-3: rgba(25, 25, 28, 0.5);\n\n --scalar-color-accent: var(--scalar-color-1);\n --scalar-background-accent: #8ab4f81f;\n}\n.light-mode .scalar-card.dark-mode,\n.dark-mode {\n --scalar-background-1: #000e23;\n --scalar-background-2: #01132e;\n --scalar-background-3: #03193b;\n --scalar-border-color: #2e394c;\n\n --scalar-color-1: #fafafa;\n --scalar-color-2: rgb(161, 161, 170);\n --scalar-color-3: rgba(255, 255, 255, 0.533);\n\n --scalar-color-accent: var(--scalar-color-1);\n --scalar-background-accent: #8ab4f81f;\n\n --scalar-code-language-color-supersede: var(--scalar-color-1);\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-hover-color: currentColor;\n\n --scalar-sidebar-item-active-background: var(--scalar-background-3);\n --scalar-sidebar-color-active: var(--scalar-color-accent);\n\n --scalar-sidebar-search-background: rgba(255, 255, 255, 0.1);\n --scalar-sidebar-search-border-color: var(--scalar-border-color);\n --scalar-sidebar-search-color: var(--scalar-color-3);\n z-index: 1;\n}\n.light-mode .t-doc__sidebar {\n --scalar-sidebar-search-background: white;\n}\n/* advanced */\n.light-mode {\n --scalar-color-green: #069061;\n --scalar-color-red: #ef0006;\n --scalar-color-yellow: #edbe20;\n --scalar-color-blue: #0082d0;\n --scalar-color-orange: #fb892c;\n --scalar-color-purple: #5203d1;\n\n --scalar-button-1: rgba(0, 0, 0, 1);\n --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --scalar-color-green: rgba(69, 255, 165, 0.823);\n --scalar-color-red: #ff8589;\n --scalar-color-yellow: #ffcc4d;\n --scalar-color-blue: #6bc1fe;\n --scalar-color-orange: #f98943;\n --scalar-color-purple: #b191f9;\n\n --scalar-button-1: rgba(255, 255, 255, 1);\n --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n --scalar-button-1-color: black;\n}\n/* Custom theme */\n/* Document header */\n@keyframes headerbackground {\n from {\n background: transparent;\n backdrop-filter: none;\n }\n to {\n background: var(--scalar-header-background-1);\n backdrop-filter: blur(12px);\n }\n}\n\n.light-mode .t-doc__header,\n.dark-mode .t-doc__header {\n animation: headerbackground forwards;\n animation-timeline: scroll();\n animation-range: 0px 200px;\n}\n\n/* Document Layout */\n.dark-mode .t-doc .layout-content {\n background: transparent;\n}\n\n.dark-mode h2.t-editor__heading,\n.dark-mode .t-editor__page-title h1,\n.dark-mode h1.section-header:not(::selection),\n.dark-mode .markdown h1,\n.dark-mode .markdown h2,\n.dark-mode .markdown h3,\n.dark-mode .markdown h4,\n.dark-mode .markdown h5,\n.dark-mode .markdown h6 {\n -webkit-text-fill-color: transparent;\n background-image: linear-gradient(to right bottom, rgb(255, 255, 255) 30%, rgba(255, 255, 255, 0.38));\n -webkit-background-clip: text;\n background-clip: text;\n}\n/* Hero Section Flare */\n.section-flare-item:nth-of-type(1) {\n --c1: #ffffff;\n --c2: #babfd8;\n --c3: #2e8bb2;\n --c4: #1a8593;\n --c5: #0a143e;\n --c6: #0a0f52;\n --c7: #2341b8;\n\n --solid: var(--c1), var(--c2), var(--c3), var(--c4), var(--c5), var(--c6), var(--c7);\n --solid-wrap: var(--solid), var(--c1);\n --trans:\n var(--c1), transparent, var(--c2), transparent, var(--c3),\n transparent, var(--c4), transparent, var(--c5), transparent, var(--c6),\n transparent, var(--c7);\n --trans-wrap: var(--trans), transparent, var(--c1);\n\n background: radial-gradient(circle, var(--trans)), conic-gradient(from 180deg, var(--trans-wrap)),\n radial-gradient(circle, var(--trans)), conic-gradient(var(--solid-wrap));\n width: 70vw;\n height: 700px;\n border-radius: 50%;\n filter: blur(100px);\n z-index: 0;\n right: 0;\n position: absolute;\n transform: rotate(-45deg);\n top: -300px;\n opacity: 0.3;\n}\n.section-flare-item:nth-of-type(3) {\n --star-color: #6b9acc;\n --star-color2: #446b8d;\n --star-color3: #3e5879;\n background-image: radial-gradient(2px 2px at 20px 30px, var(--star-color2), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 40px 70px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 50px 160px, var(--star-color3), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 90px 40px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 130px 80px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 160px 120px, var(--star-color3), rgba(0, 0, 0, 0));\n background-repeat: repeat;\n background-size: 200px 200px;\n width: 100%;\n height: 100%;\n mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);\n}\n.section-flare {\n top: -150px !important;\n height: 100vh;\n background: linear-gradient(#000, var(--scalar-background-1));\n width: 100vw;\n overflow-x: hidden;\n}\n.light-mode .section-flare {\n display: none;\n}\n.light-mode .scalar-card {\n --scalar-background-1: #fff;\n --scalar-background-2: #fff;\n --scalar-background-3: #fff;\n}\n\n*::selection {\n background-color: color-mix(in srgb, var(--scalar-color-blue), transparent 60%);\n}\n\n@media (max-width: 1000px) {\n .light-mode .t-doc__sidebar,\n .dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n }\n .light-mode .t-doc__header,\n .dark-mode .t-doc__header {\n animation: none;\n background: var(--scalar-header-background-1);\n backdrop-filter: blur(12px);\n }\n}\n",slug:"blue-planet"},deepSpace:{uid:"K8b38NWQiicq4-zXGXKdI",name:"Deep Space",description:"Deep Space Scalar theme",theme:'/* basic theme */\n:root {\n --scalar-text-decoration: underline;\n --scalar-text-decoration-hover: underline;\n}\n.light-mode {\n --scalar-color-1: rgb(9, 9, 11);\n --scalar-color-2: rgb(113, 113, 122);\n --scalar-color-3: rgba(25, 25, 28, 0.5);\n --scalar-color-accent: var(--scalar-color-1);\n\n --scalar-background-1: #fff;\n --scalar-background-2: #f4f4f5;\n --scalar-background-3: #e3e3e6;\n --scalar-background-accent: #8ab4f81f;\n\n --scalar-border-color: rgb(228, 228, 231);\n --scalar-code-language-color-supersede: var(--scalar-color-1);\n}\n.dark-mode {\n --scalar-color-1: #fafafa;\n --scalar-color-2: rgb(161, 161, 170);\n --scalar-color-3: rgba(255, 255, 255, 0.533);\n --scalar-color-accent: var(--scalar-color-1);\n\n --scalar-background-1: #09090b;\n --scalar-background-2: #18181b;\n --scalar-background-3: #2c2c30;\n --scalar-background-accent: #8ab4f81f;\n\n --scalar-border-color: rgba(255, 255, 255, 0.16);\n --scalar-code-language-color-supersede: var(--scalar-color-1);\n}\n\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n\n --scalar-sidebar-item-active-background: var(--scalar-background-3);\n --scalar-sidebar-color-active: var(--scalar-color-accent);\n\n --scalar-sidebar-search-background: transparent;\n --scalar-sidebar-search-border-color: var(--scalar-border-color);\n --scalar-sidebar-search-color: var(--scalar-color-3);\n}\n.light-mode .t-doc__sidebar {\n --scalar-sidebar-item-active-background: var(--scalar-background-2);\n}\n/* advanced */\n.light-mode {\n --scalar-color-green: #069061;\n --scalar-color-red: #ef0006;\n --scalar-color-yellow: #edbe20;\n --scalar-color-blue: #0082d0;\n --scalar-color-orange: #fb892c;\n --scalar-color-purple: #5203d1;\n\n --scalar-button-1: rgba(0, 0, 0, 1);\n --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --scalar-color-green: rgba(69, 255, 165, 0.823);\n --scalar-color-red: #ff8589;\n --scalar-color-yellow: #ffcc4d;\n --scalar-color-blue: #6bc1fe;\n --scalar-color-orange: #f98943;\n --scalar-color-purple: #b191f9;\n\n --scalar-button-1: rgba(255, 255, 255, 1);\n --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n --scalar-button-1-color: black;\n}\n/* Custom theme */\n.dark-mode h2.t-editor__heading,\n.dark-mode .t-editor__page-title h1,\n.dark-mode h1.section-header:not(::selection),\n.dark-mode .markdown h1,\n.dark-mode .markdown h2,\n.dark-mode .markdown h3,\n.dark-mode .markdown h4,\n.dark-mode .markdown h5,\n.dark-mode .markdown h6 {\n -webkit-text-fill-color: transparent;\n background-image: linear-gradient(to right bottom, rgb(255, 255, 255) 30%, rgba(255, 255, 255, 0.38));\n -webkit-background-clip: text;\n background-clip: text;\n}\n.examples .scalar-card-footer {\n --scalar-background-3: transparent;\n padding-top: 0;\n}\n/* Hero section flare */\n.section-flare {\n width: 100vw;\n height: 550px;\n position: absolute;\n}\n.section-flare-item:nth-of-type(1) {\n position: absolute;\n width: 100vw;\n height: 550px;\n --stripesDark: repeating-linear-gradient(100deg, #000 0%, #000 7%, transparent 10%, transparent 12%, #000 16%);\n --rainbow: repeating-linear-gradient(100deg, #fff 10%, #fff 16%, #fff 22%, #fff 30%);\n background-image: var(--stripesDark), var(--rainbow);\n background-size: 300%, 200%;\n background-position: 50% 50%, 50% 50%;\n filter: invert(100%);\n -webkit-mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);\n mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);\n pointer-events: none;\n opacity: 0.07;\n}\n.dark-mode .section-flare-item:nth-of-type(1) {\n background-image: var(--stripesDark), var(--rainbow);\n filter: opacity(50%) saturate(200%);\n opacity: 0.25;\n height: 350px;\n}\n.section-flare-item:nth-of-type(1):after {\n content: "";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-image: var(--stripesDark), var(--rainbow);\n background-size: 200%, 100%;\n background-attachment: fixed;\n mix-blend-mode: difference;\n}\n.dark-mode .section-flare:after {\n background-image: var(--stripesDark), var(--rainbow);\n}\n.section-flare-item:nth-of-type(2) {\n --star-color: #fff;\n --star-color2: #fff;\n --star-color3: #fff;\n width: 100%;\n height: 100%;\n position: absolute;\n background-image: radial-gradient(2px 2px at 20px 30px, var(--star-color2), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 40px 70px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 50px 160px, var(--star-color3), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 90px 40px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 130px 80px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 160px 120px, var(--star-color3), rgba(0, 0, 0, 0));\n background-repeat: repeat;\n background-size: 200px 200px;\n mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);\n opacity: 0.2;\n}\n.light-mode *::selection {\n background-color: color-mix(in srgb, var(--scalar-color-blue), transparent 70%);\n}\n.dark-mode *::selection {\n background-color: color-mix(in srgb, var(--scalar-color-blue), transparent 50%);\n}\n\n/* document header */\n.light-mode .t-doc__header,\n.dark-mode .t-doc__header {\n animation: headerbackground forwards;\n animation-timeline: scroll();\n animation-range: 0px 200px;\n}\n@keyframes headerbackground {\n from {\n background: transparent;\n backdrop-filter: none;\n }\n to {\n background: var(--scalar-header-background-1);\n backdrop-filter: blur(12px);\n }\n}\n/* remove flare on safari to prevent dropped frames on scroll */\n@supports (-webkit-hyphens: none) {\n .section-flare {\n display: none;\n }\n}\n\n/* document background */\n.light-mode .t-doc .layout-content,\n.dark-mode .t-doc .layout-content {\n background: transparent;\n}\n',slug:"deep-space"},saturn:{uid:"1jyAjmbIZQG-RUU4Ugk9o",name:"Saturn",description:"Saturn Scalar theme",theme:"/* basic theme */\n.light-mode {\n --scalar-background-1: #f3f3ee;\n --scalar-background-2: #e8e8e3;\n --scalar-background-3: #e4e4df;\n --scalar-border-color: rgba(215, 215, 206, 0.85);\n\n --scalar-color-1: #2a2f45;\n --scalar-color-2: #757575;\n --scalar-color-3: #8e8e8e;\n\n --scalar-color-accent: #1763a6;\n --scalar-background-accent: #1f648e1f;\n}\n.dark-mode {\n --scalar-background-1: #09090b;\n --scalar-background-2: #18181b;\n --scalar-background-3: #2c2c30;\n --scalar-border-color: rgba(255, 255, 255, 0.17);\n\n --scalar-color-1: #fafafa;\n --scalar-color-2: rgb(161, 161, 170);\n --scalar-color-3: rgba(255, 255, 255, 0.533);\n\n --scalar-color-accent: #4eb3ec;\n --scalar-background-accent: #8ab4f81f;\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-hover-color: currentColor;\n\n --scalar-sidebar-item-active-background: var(--scalar-background-3);\n --scalar-sidebar-color-active: var(--scalar-color-1);\n\n --scalar-sidebar-search-background: var(--scalar-background-1);\n --scalar-sidebar-search-border-color: var(--scalar-border-color);\n --scalar-sidebar-search-color: var(--scalar-color-3);\n}\n\n/* advanced */\n.light-mode {\n --scalar-color-green: #17803d;\n --scalar-color-red: #e10909;\n --scalar-color-yellow: #edbe20;\n --scalar-color-blue: #1763a6;\n --scalar-color-orange: #e25b09;\n --scalar-color-purple: #5c3993;\n\n --scalar-button-1: rgba(0, 0, 0, 1);\n --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --scalar-color-green: #30a159;\n --scalar-color-red: #dc1b19;\n --scalar-color-yellow: #eec644;\n --scalar-color-blue: #2b7abf;\n --scalar-color-orange: #f07528;\n --scalar-color-purple: #7a59b1;\n\n --scalar-button-1: rgba(255, 255, 255, 1);\n --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n --scalar-button-1-color: black;\n}\n.dark-mode h2.t-editor__heading,\n.dark-mode .t-editor__page-title h1,\n.dark-mode h1.section-header:not(::selection),\n.dark-mode .markdown h1,\n.dark-mode .markdown h2,\n.dark-mode .markdown h3,\n.dark-mode .markdown h4,\n.dark-mode .markdown h5,\n.dark-mode .markdown h6 {\n -webkit-text-fill-color: transparent;\n background-image: linear-gradient(to right bottom, rgb(255, 255, 255) 30%, rgba(255, 255, 255, 0.38));\n -webkit-background-clip: text;\n background-clip: text;\n}\n.light-mode *::selection {\n background-color: color-mix(in srgb, var(--scalar-color-accent), transparent 70%);\n}\n.dark-mode *::selection {\n background-color: color-mix(in srgb, var(--scalar-color-accent), transparent 50%);\n}\n",slug:"saturn"},kepler:{uid:"jZ6dnWbtqQ0Hz3s9jLPH0",name:"Kepler-11e",description:"Kepler-11e Scalar theme",theme:"/* basic theme */\n.light-mode {\n --scalar-color-1: #2a2f45;\n --scalar-color-2: #757575;\n --scalar-color-3: #8e8e8e;\n --scalar-color-accent: #7070ff;\n\n --scalar-background-1: #fff;\n --scalar-background-2: #f6f6f6;\n --scalar-background-3: #e7e7e7;\n --scalar-background-accent: #7070ff1f;\n\n --scalar-border-color: rgba(0, 0, 0, 0.1);\n\n --scalar-code-language-color-supersede: var(--scalar-color-3);\n}\n.dark-mode {\n --scalar-color-1: #f7f8f8;\n --scalar-color-2: rgb(180, 188, 208);\n --scalar-color-3: #b4bcd099;\n --scalar-color-accent: #828fff;\n\n --scalar-background-1: #000212;\n --scalar-background-2: #0d0f1e;\n --scalar-background-3: #232533;\n --scalar-background-accent: #8ab4f81f;\n\n --scalar-border-color: #313245;\n --scalar-code-language-color-supersede: var(--scalar-color-3);\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-color-active: var(--scalar-color-accent);\n --scalar-sidebar-search-background: rgba(0, 0, 0, 0.05);\n --scalar-sidebar-search-border-color: 1px solid rgba(0, 0, 0, 0.05);\n --scalar-sidebar-search-color: var(--scalar-color-3);\n --scalar-background-2: rgba(0, 0, 0, 0.03);\n}\n.dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-active-background: rgba(255, 255, 255, 0.1);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-color-active: var(--scalar-color-accent);\n --scalar-sidebar-search-background: rgba(255, 255, 255, 0.1);\n --scalar-sidebar-search-border-color: 1px solid rgba(255, 255, 255, 0.05);\n --scalar-sidebar-search-color: var(--scalar-color-3);\n}\n/* advanced */\n.light-mode {\n --scalar-color-green: #069061;\n --scalar-color-red: #ef0006;\n --scalar-color-yellow: #edbe20;\n --scalar-color-blue: #0082d0;\n --scalar-color-orange: #fb892c;\n --scalar-color-purple: #5203d1;\n\n --scalar-button-1: rgba(0, 0, 0, 1);\n --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --scalar-color-green: #00b648;\n --scalar-color-red: #dc1b19;\n --scalar-color-yellow: #ffc90d;\n --scalar-color-blue: #4eb3ec;\n --scalar-color-orange: #ff8d4d;\n --scalar-color-purple: #b191f9;\n\n --scalar-button-1: rgba(255, 255, 255, 1);\n --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n --scalar-button-1-color: black;\n}\n/* Custom Theme */\n.dark-mode h2.t-editor__heading,\n.dark-mode .t-editor__page-title h1,\n.dark-mode h1.section-header:not(::selection),\n.dark-mode .markdown h1,\n.dark-mode .markdown h2,\n.dark-mode .markdown h3,\n.dark-mode .markdown h4,\n.dark-mode .markdown h5,\n.dark-mode .markdown h6 {\n -webkit-text-fill-color: transparent;\n background-image: linear-gradient(to right bottom, rgb(255, 255, 255) 30%, rgba(255, 255, 255, 0.38));\n -webkit-background-clip: text;\n background-clip: text;\n}\n.sidebar-search {\n backdrop-filter: blur(12px);\n}\n@keyframes headerbackground {\n from {\n background: transparent;\n backdrop-filter: none;\n }\n to {\n background: var(--scalar-header-background-1);\n backdrop-filter: blur(12px);\n }\n}\n.dark-mode .scalar-card {\n background: rgba(255, 255, 255, 0.05) !important;\n}\n.dark-mode .scalar-card * {\n --scalar-background-2: transparent !important;\n --scalar-background-1: transparent !important;\n}\n.light-mode .dark-mode.scalar-card *,\n.light-mode .dark-mode.scalar-card {\n --scalar-background-1: #0d0f1e !important;\n --scalar-background-2: #0d0f1e !important;\n --scalar-background-3: #191b29 !important;\n}\n.light-mode .dark-mode.scalar-card {\n background: #191b29 !important;\n}\n.badge {\n box-shadow: 0 0 0 1px var(--scalar-border-color);\n margin-right: 6px;\n}\n\n.table-row.required-parameter .table-row-item:nth-of-type(2):after {\n background: transparent;\n box-shadow: none;\n}\n/* Hero Section Flare */\n.section-flare {\n width: 100vw;\n background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 119, 198, 0.3), transparent);\n height: 100vh;\n}\n.light-mode *::selection {\n background-color: color-mix(in srgb, var(--scalar-color-accent), transparent 70%);\n}\n.dark-mode *::selection {\n background-color: color-mix(in srgb, var(--scalar-color-accent), transparent 50%);\n}\n\n/* document layout */\n.light-mode .t-doc .layout-content,\n.dark-mode .t-doc .layout-content {\n background: transparent;\n}\n",slug:"kepler-11e"},mars:{uid:"YY4LQgwiXix55-TmMz9qd",name:"Mars",description:"Mars Scalar theme",theme:"/* basic theme */\n:root {\n --scalar-text-decoration: underline;\n --scalar-text-decoration-hover: underline;\n}\n.light-mode {\n --scalar-background-1: #f9f6f0;\n --scalar-background-2: #f2efe8;\n --scalar-background-3: #e9e7e2;\n --scalar-border-color: rgba(203, 165, 156, 0.6);\n\n --scalar-color-1: #c75549;\n --scalar-color-2: #c75549;\n --scalar-color-3: #c75549;\n\n --scalar-color-accent: #c75549;\n --scalar-background-accent: #dcbfa81f;\n\n --scalar-code-language-color-supersede: var(--scalar-color-1);\n}\n.dark-mode {\n --scalar-background-1: #140507;\n --scalar-background-2: #20090c;\n --scalar-background-3: #321116;\n --scalar-border-color: #3c3031;\n\n --scalar-color-1: rgba(255, 255, 255, 0.9);\n --scalar-color-2: rgba(255, 255, 255, 0.62);\n --scalar-color-3: rgba(255, 255, 255, 0.44);\n\n --scalar-color-accent: rgba(255, 255, 255, 0.9);\n --scalar-background-accent: #441313;\n\n --scalar-code-language-color-supersede: var(--scalar-color-1);\n}\n\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n\n --scalar-sidebar-item-active-background: var(--scalar-background-3);\n --scalar-sidebar-color-active: var(--scalar-color-accent);\n\n --scalar-sidebar-search-background: rgba(255, 255, 255, 0.1);\n --scalar-sidebar-search-color: var(--scalar-color-3);\n --scalar-sidebar-search-border-color: var(--scalar-border-color);\n z-index: 1;\n}\n/* advanced */\n.light-mode {\n --scalar-color-green: #09533a;\n --scalar-color-red: #aa181d;\n --scalar-color-yellow: #ab8d2b;\n --scalar-color-blue: #19689a;\n --scalar-color-orange: #b26c34;\n --scalar-color-purple: #4c2191;\n\n --scalar-button-1: rgba(0, 0, 0, 1);\n --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --scalar-color-green: rgba(69, 255, 165, 0.823);\n --scalar-color-red: #ff8589;\n --scalar-color-yellow: #ffcc4d;\n --scalar-color-blue: #6bc1fe;\n --scalar-color-orange: #f98943;\n --scalar-color-purple: #b191f9;\n\n --scalar-button-1: rgba(255, 255, 255, 1);\n --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n --scalar-button-1-color: black;\n}\n/* Custom Theme */\n.dark-mode h2.t-editor__heading,\n.dark-mode .t-editor__page-title h1,\n.dark-mode h1.section-header:not(::selection),\n.dark-mode .markdown h1,\n.dark-mode .markdown h2,\n.dark-mode .markdown h3,\n.dark-mode .markdown h4,\n.dark-mode .markdown h5,\n.dark-mode .markdown h6 {\n -webkit-text-fill-color: transparent;\n background-image: linear-gradient(to right bottom, rgb(255, 255, 255) 30%, rgba(255, 255, 255, 0.38));\n -webkit-background-clip: text;\n background-clip: text;\n}\n.light-mode .t-doc__sidebar {\n --scalar-sidebar-search-background: white;\n}\n.examples .scalar-card-footer {\n --scalar-background-3: transparent;\n padding-top: 0;\n}\n/* Hero section flare */\n.section-flare {\n overflow-x: hidden;\n height: 100vh;\n left: initial;\n}\n.section-flare-item:nth-of-type(1) {\n background: #d25019;\n position: relative;\n top: -150px;\n right: -400px;\n width: 80vw;\n height: 500px;\n margin-top: -150px;\n border-radius: 50%;\n filter: blur(100px);\n z-index: 0;\n}\n.light-mode .section-flare {\n display: none;\n}\n*::selection {\n background-color: color-mix(in srgb, var(--scalar-color-red), transparent 75%);\n}\n\n/* document layout */\n.dark-mode .t-doc .layout-content {\n background: transparent;\n}\n",slug:"mars"},laserwave:{uid:"c5fZEi-K-hP-xXf885dkf",name:"Laserwave",description:"Laserwave Scalar theme",theme:"/* basic theme */\n.light-mode {\n color-scheme: light;\n --scalar-color-1: #322b3b;\n --scalar-color-2: #645676;\n --scalar-color-3: #9789a9;\n --scalar-color-accent: #40b4c4;\n\n --scalar-background-1: #fff;\n --scalar-background-2: #f4f2f7;\n --scalar-background-3: #cfc7dc;\n --scalar-background-accent: #f3fafb;\n\n --scalar-border-color: #e4e0eb;\n}\n.dark-mode {\n color-scheme: dark;\n --scalar-color-1: #fff;\n --scalar-color-2: #b8b6ba;\n --scalar-color-3: #706c74;\n --scalar-color-accent: #ed78c2;\n\n --scalar-background-1: #27212e;\n --scalar-background-2: #322c39;\n --scalar-background-3: #4c4059;\n --scalar-background-accent: #eb64b91f;\n\n --scalar-border-color: rgba(255, 255, 255, 0.1);\n}\n\n/* Sidebar */\n.light-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-color-active: var(--scalar-color-accent);\n --scalar-sidebar-search-background: var(--scalar-background-2);\n --scalar-sidebar-search-border-color: var(--scalar-sidebar-border-color);\n --scalar-sidebar-search--color: var(--scalar-color-3);\n}\n.dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-color-active: var(--scalar-color-accent);\n --scalar-sidebar-search-background: var(--scalar-background-2);\n --scalar-sidebar-search-border-color: #514c56;\n --scalar-sidebar-search--color: var(--scalar-color-3);\n}\n/* advanced */\n.light-mode {\n --scalar-button-1: rgb(49 53 56);\n --scalar-button-1-color: #fff;\n --scalar-button-1-hover: rgb(28 31 33);\n\n --scalar-color-green: #74dfc4;\n --scalar-color-red: #d887f5;\n --scalar-color-yellow: #ffe261;\n --scalar-color-blue: #40b4c4;\n --scalar-color-orange: #ff52bf;\n --scalar-color-purple: #91889b;\n\n --scalar-scrollbar-color: rgba(0, 0, 0, 0.18);\n --scalar-scrollbar-color-active: rgba(0, 0, 0, 0.36);\n}\n.dark-mode {\n --scalar-button-1: #f6f6f6;\n --scalar-button-1-color: #27212e;\n --scalar-button-1-hover: #e7e7e7;\n\n --scalar-color-green: #74dfc4;\n --scalar-color-red: #d887f5;\n --scalar-color-yellow: #ffe261;\n --scalar-color-blue: #40b4c4;\n --scalar-color-orange: #ff52bf;\n --scalar-color-purple: #91889b;\n\n --scalar-scrollbar-color: rgba(255, 255, 255, 0.24);\n --scalar-scrollbar-color-active: rgba(255, 255, 255, 0.48);\n}\n/* Radius */\n:root {\n --scalar-radius: 2px;\n --scalar-radius-lg: 3px;\n --scalar-radius-xl: 4px;\n}\n/* P3 color support */\n@supports (color: color(display-p3 1 1 1)) {\n .light-mode {\n --scalar-color-accent: color(display-p3 0.25098 0.705882 0.768627 / 1.0);\n --scalar-color-green: color(display-p3 0.454902 0.87451 0.768627 / 1.0);\n --scalar-color-red: color(display-p3 0.847059 0.529412 0.960784 / 1.0);\n --scalar-color-yellow: color(display-p3 1.0 0.886275 0.380392 / 1.0);\n --scalar-color-blue: color(display-p3 0.25098 0.705882 0.768627 / 1.0);\n --scalar-color-orange: color(display-p3 1.0 0.321569 0.74902 / 1.0);\n --scalar-color-purple: color(display-p3 0.568627 0.533333 0.607843 / 1.0);\n }\n .dark-mode {\n --scalar-color-accent: color(display-p3 0.929412 0.470588 0.760784 / 1.0);\n --scalar-color-green: color(display-p3 0.454902 0.87451 0.768627 / 1.0);\n --scalar-color-red: color(display-p3 0.847059 0.529412 0.960784 / 1.0);\n --scalar-color-yellow: color(display-p3 1.0 0.886275 0.380392 / 1.0);\n --scalar-color-blue: color(display-p3 0.25098 0.705882 0.768627 / 1.0);\n --scalar-color-orange: color(display-p3 1.0 0.321569 0.74902 / 1.0);\n --scalar-color-purple: color(display-p3 0.568627 0.533333 0.607843 / 1.0);\n }\n}\n",slug:"laserwave"},elysiajs:{uid:"nEVZkRmCylPkT0o9YJa7y",name:"Elysia.js",description:"Elysia.js theme",theme:'.light-mode {\n --scalar-color-1: #2a2f45;\n --scalar-color-2: #757575;\n --scalar-color-3: #8e8e8e;\n --scalar-color-accent: #f06292;\n\n --scalar-background-1: #fff;\n --scalar-background-2: #f6f6f6;\n --scalar-background-3: #e7e7e7;\n\n --scalar-border-color: rgba(0, 0, 0, 0.1);\n}\n.dark-mode {\n --scalar-color-1: rgba(255, 255, 255, 0.9);\n --scalar-color-2: rgba(156, 163, 175, 1);\n --scalar-color-3: rgba(255, 255, 255, 0.44);\n --scalar-color-accent: #f06292;\n\n --scalar-background-1: #111728;\n --scalar-background-2: #1e293b;\n --scalar-background-3: #334155;\n --scalar-background-accent: #f062921f;\n\n --scalar-border-color: rgba(255, 255, 255, 0.1);\n}\n\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-hover-color: currentColor;\n\n --scalar-sidebar-item-active-background: #f062921f;\n --scalar-sidebar-color-active: var(--scalar-color-accent);\n\n --scalar-sidebar-search-background: transparent;\n --scalar-sidebar-search-color: var(--scalar-color-3);\n --scalar-sidebar-search-border-color: var(--scalar-border-color);\n}\n\n/* advanced */\n.light-mode {\n --scalar-button-1: rgb(49 53 56);\n --scalar-button-1-color: #fff;\n --scalar-button-1-hover: rgb(28 31 33);\n\n --scalar-color-green: #069061;\n --scalar-color-red: #ef0006;\n --scalar-color-yellow: #edbe20;\n --scalar-color-blue: #0082d0;\n --scalar-color-orange: #fb892c;\n --scalar-color-purple: #5203d1;\n\n --scalar-scrollbar-color: rgba(0, 0, 0, 0.18);\n --scalar-scrollbar-color-active: rgba(0, 0, 0, 0.36);\n}\n.dark-mode {\n --scalar-button-1: #f6f6f6;\n --scalar-button-1-color: #000;\n --scalar-button-1-hover: #e7e7e7;\n\n --scalar-color-green: #a3ffa9;\n --scalar-color-red: #ffa3a3;\n --scalar-color-yellow: #fffca3;\n --scalar-color-blue: #a5d6ff;\n --scalar-color-orange: #e2ae83;\n --scalar-color-purple: #d2a8ff;\n\n --scalar-scrollbar-color: rgba(255, 255, 255, 0.24);\n --scalar-scrollbar-color-active: rgba(255, 255, 255, 0.48);\n}\n.section-flare {\n width: 100%;\n height: 400px;\n position: absolute;\n}\n.section-flare-item:first-of-type:before {\n content: "";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n --stripes: repeating-linear-gradient(100deg, #fff 0%, #fff 0%, transparent 2%, transparent 12%, #fff 17%);\n --stripesDark: repeating-linear-gradient(100deg, #000 0%, #000 0%, transparent 10%, transparent 12%, #000 17%);\n --rainbow: repeating-linear-gradient(100deg, #60a5fa 10%, #e879f9 16%, #5eead4 22%, #60a5fa 30%);\n contain: strict;\n contain-intrinsic-size: 100vw 40vh;\n background-image: var(--stripesDark), var(--rainbow);\n background-size: 300%, 200%;\n background-position: 50% 50%, 50% 50%;\n filter: opacity(20%) saturate(200%);\n -webkit-mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);\n mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);\n pointer-events: none;\n}\n.section-flare-item:first-of-type:after {\n content: "";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-image: var(--stripes), var(--rainbow);\n background-size: 200%, 100%;\n background-attachment: fixed;\n mix-blend-mode: difference;\n background-image: var(--stripesDark), var(--rainbow);\n pointer-events: none;\n}\n.light-mode .section-flare-item:first-of-type:after,\n.light-mode .section-flare-item:first-of-type:before {\n background-image: var(--stripes), var(--rainbow);\n filter: opacity(4%) saturate(200%);\n}\n',slug:"elysiajs"},fastify:{uid:"nTZcdcM2_yHFZFxTQe9Kk",name:"Fastify",description:"Fastify theme",theme:".light-mode {\n color-scheme: light;\n --scalar-color-1: #1c1e21;\n --scalar-color-2: #757575;\n --scalar-color-3: #8e8e8e;\n --scalar-color-disabled: #b4b1b1;\n --scalar-color-ghost: #a7a7a7;\n --scalar-color-accent: #2f8555;\n --scalar-background-1: #fff;\n --scalar-background-2: #f5f5f5;\n --scalar-background-3: #ededed;\n --scalar-background-4: rgba(0, 0, 0, 0.06);\n --scalar-background-accent: #2f85551f;\n\n --scalar-border-color: rgba(0, 0, 0, 0.1);\n --scalar-scrollbar-color: rgba(0, 0, 0, 0.18);\n --scalar-scrollbar-color-active: rgba(0, 0, 0, 0.36);\n --scalar-lifted-brightness: 1;\n --scalar-backdrop-brightness: 1;\n\n --scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);\n --scalar-shadow-2: rgba(0, 0, 0, 0.08) 0px 13px 20px 0px, rgba(0, 0, 0, 0.08) 0px 3px 8px 0px, #eeeeed 0px 0 0 1px;\n\n --scalar-button-1: rgb(49 53 56);\n --scalar-button-1-color: #fff;\n --scalar-button-1-hover: rgb(28 31 33);\n\n --scalar-color-green: #007300;\n --scalar-color-red: #af272b;\n --scalar-color-yellow: #b38200;\n --scalar-color-blue: #3b8ba5;\n --scalar-color-orange: #fb892c;\n --scalar-color-purple: #5203d1;\n}\n\n.dark-mode {\n color-scheme: dark;\n --scalar-color-1: rgba(255, 255, 255, 0.9);\n --scalar-color-2: rgba(255, 255, 255, 0.62);\n --scalar-color-3: rgba(255, 255, 255, 0.44);\n --scalar-color-disabled: rgba(255, 255, 255, 0.34);\n --scalar-color-ghost: rgba(255, 255, 255, 0.26);\n --scalar-color-accent: #27c2a0;\n --scalar-background-1: #1b1b1d;\n --scalar-background-2: #242526;\n --scalar-background-3: #3b3b3b;\n --scalar-background-4: rgba(255, 255, 255, 0.06);\n --scalar-background-accent: #27c2a01f;\n\n --scalar-border-color: rgba(255, 255, 255, 0.1);\n --scalar-scrollbar-color: rgba(255, 255, 255, 0.24);\n --scalar-scrollbar-color-active: rgba(255, 255, 255, 0.48);\n --scalar-lifted-brightness: 1.45;\n --scalar-backdrop-brightness: 0.5;\n\n --scalar-shadow-1: 0 1px 3px 0 rgb(0, 0, 0, 0.1);\n --scalar-shadow-2: rgba(15, 15, 15, 0.2) 0px 3px 6px, rgba(15, 15, 15, 0.4) 0px 9px 24px, 0 0 0 1px\n rgba(255, 255, 255, 0.1);\n\n --scalar-button-1: #f6f6f6;\n --scalar-button-1-color: #000;\n --scalar-button-1-hover: #e7e7e7;\n\n --scalar-color-green: #26b226;\n --scalar-color-red: #fb565b;\n --scalar-color-yellow: #ffc426;\n --scalar-color-blue: #6ecfef;\n --scalar-color-orange: #ff8d4d;\n --scalar-color-purple: #b191f9;\n}\n",slug:"fastify"}},jve=Tt.enum(["Meta","Control","Shift","Alt","default"]).optional().default("default"),Bve=Tt.array(jve).optional().default(["default"]),Uve=Tt.record(Tt.enum(["Space","Backspace","Tab","Enter","Escape","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Delete","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","*","+","-",".","/","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12",";","=",",","-",".","/","`","[","\\","]",""]),Tt.object({modifiers:Bve.optional(),event:Tt.enum(["addTopNav","closeModal","closeTopNav","createNew","executeRequest","focusAddressBar","focusRequestSearch","jumpToLastTab","jumpToTab","navigateSearchResultsDown","navigateSearchResultsUp","navigateTopNavLeft","navigateTopNavRight","openCommandPalette","selectSearchResult","toggleSidebar"])})),Fve=Tt.object({modifiers:Bve,hotKeys:Uve.optional()}).optional(),Qve=Tt.object({uid:Yme.brand(),name:Tt.string().default("Default Workspace"),description:Tt.string().default("Basic Scalar Workspace"),collections:Tt.array(Tt.string().brand()).default([]),environments:Tt.record(Tt.string()).default({}),hotKeyConfig:Fve,activeEnvironmentId:Tt.string().optional().default("default"),cookies:Tt.array(Tt.string().brand()).default([]),proxyUrl:Tt.string().optional(),themeId:Tt.enum(["alternate","default","moon","purple","solarized","bluePlanet","deepSpace","saturn","kepler","elysiajs","fastify","mars","laserwave","none"]).optional().default("default").catch("default"),selectedHttpClient:Tt.object({targetKey:Tt.string(),clientKey:Tt.string()}).optional().default({targetKey:"shell",clientKey:"curl"})}),zve=({useLocalStorage:e=!0,showSidebar:t=!0,proxyUrl:r,theme:n,hideClientButton:a=!1,_integration:o})=>{const{collections:i,collectionMutators:s}=function(e){const t=uo({});return{collections:t,collectionMutators:yve(t,uo({}),e&&"collection")}}(e),{tags:l,tagMutators:c}=function(e){const t=uo({});return{tags:t,tagMutators:yve(t,uo({}),e&&"tag")}}(e),{requests:u,requestMutators:d}=function(e){const t=uo({});return{requests:t,requestMutators:yve(t,uo({}),e&&"request")}}(e),{requestExamples:p,requestExampleMutators:h}=function(e){const t=uo({});return{requestExamples:t,requestExampleMutators:yve(t,uo({}),e&&"requestExample")}}(e),{cookies:f,cookieMutators:m}=function(e){const t=uo({});return{cookies:t,cookieMutators:yve(t,uo({}),e&&"cookie")}}(e),{environments:g,environmentMutators:v}=function(e){const t=uo({}),r=yve(t,uo({}),e&&"environment");return r.add(wve.parse({uid:"default",name:"Default Environment",color:"#FFFFFF",value:JSON.stringify({exampleKey:"exampleValue"},null,2),isDefault:!0})),{environments:t,environmentMutators:r}}(e),{servers:b,serverMutators:y}=function(e){const t=uo({});return{servers:t,serverMutators:yve(t,uo({}),e&&"server")}}(e),{securitySchemes:O,securitySchemeMutators:w}=function(e){const t=uo({});return{securitySchemes:t,securitySchemeMutators:yve(t,uo({}),e&&"securityScheme")}}(e),{workspaces:x,workspaceMutators:k}=function(e){const t=uo({});return{workspaces:t,workspaceMutators:yve(t,uo({}),e&&jL)}}(e),S={collections:i,collectionMutators:s,tags:l,tagMutators:c,requests:u,requestMutators:d,requestExamples:p,requestExampleMutators:h,environmentMutators:v,serverMutators:y,securitySchemeMutators:w,workspaces:x,workspaceMutators:k},{addTag:_,deleteTag:E}=function({collectionMutators:e,collections:t,requests:r,requestMutators:n,tagMutators:a}){return{addTag:(r,n)=>{const o=t[n],i=nj(r,kge,!1);return i&&o?(e.edit(n,"tags",[...o.tags,i.uid]),e.edit(n,"children",[...o.children,i.uid]),a.add(i),i):console.error("INVALID TAG DATA",r)},deleteTag:(o,i)=>{const s=t[i];s&&(e.edit(i,"tags",s.tags.filter((e=>e!==o.uid))),e.edit(i,"children",s.children.filter((e=>e!==o.uid))),o.children.forEach((t=>{var a;const l=r[t];if(!l)return;const c=null==(a=l.tags)?void 0:a.filter((e=>e!==o.name));n.edit(l.uid,"tags",c),(null==c||!c.length)&&!s.children.includes(t)&&e.edit(i,"children",[...s.children,t])})),a.delete(o.uid))}}}(S),{addRequest:T,deleteRequest:A,findRequestParents:C}=function({requestExamples:e,requestExampleMutators:t,requestMutators:r,collectionMutators:n,collections:a,tags:o,tagMutators:i},s){return{addRequest:(l,c)=>{var u;const d=nj(l,Jge,!1);if(!d)return console.error("INVALID REQUEST DATA",l);const p=a[c],h=Wge(d,_j((d.summary??"Example")+" #1",(t=>d.examples.some((r=>{var n;return t===(null==(n=e[r])?void 0:n.name)})))));return d.examples.push(h.uid),r.add(d),t.add(h),p&&n.edit(c,"requests",[...p.requests,d.uid]),null!=(u=d.tags)&&u.length?d.tags.forEach((e=>{const t=null==p?void 0:p.tags.find((t=>{var r;return(null==(r=o[t])?void 0:r.name)===e}));t&&o[t]?i.edit(t,"children",[...o[t].children,d.uid]):s({name:e,children:[d.uid]},c)})):p&&n.edit(c,"children",[...p.children,d.uid]),d},deleteRequest:(e,s)=>{var l;const c=a[s];e.examples.forEach((e=>t.delete(e))),c&&(n.edit(s,"requests",c.requests.filter((t=>t!==e.uid))),n.edit(s,"children",c.children.filter((t=>t!==e.uid))),null==(l=e.tags)||l.forEach((t=>{var r;const n=c.tags.find((e=>{var r;return(null==(r=o[e])?void 0:r.name)===t}));n&&i.edit(n,"children",(null==(r=o[n])?void 0:r.children.filter((t=>t!==e.uid)))||[])}))),r.delete(e.uid)},findRequestParents:$ve({collections:a,tags:o})}}(S,_),{deleteEnvironment:P}=function({environmentMutators:e}){return{deleteEnvironment:t=>{"default"!==t?e.delete(t):console.warn("Default environment cannot be deleted.")}}}(S),{addServer:D,deleteServer:$}=function({serverMutators:e,collections:t,collectionMutators:r,requests:n,requestMutators:a}){return{addServer:(o,i)=>{const s=Dge.parse(o);return t[i]?r.edit(i,"servers",[...t[i].servers,s.uid]):n[i]&&a.edit(i,"servers",[...n[i].servers,s.uid]),e.add(s),s},deleteServer:(n,a)=>{t[a]&&(r.edit(a,"servers",t[a].servers.filter((e=>e!==n))),e.delete(n))}}}(S),{addCollection:R,deleteCollection:M}=Ove(S),{addRequestExample:N,deleteRequestExample:I}=function({requestExamples:e,requestExampleMutators:t,requestMutators:r,requests:n}){return{addRequestExample:(n,a)=>{const o=a??_j((n.summary??"Example")+" #1",(t=>n.examples.some((r=>{var n;return(null==(n=e[r])?void 0:n.name)===t})))),i=Wge(n,o);return t.add(i),r.edit(n.uid,"examples",[...n.examples,i.uid]),i},deleteRequestExample:e=>{var a;e.requestUid&&(r.edit(e.requestUid,"examples",(null==(a=n[e.requestUid])?void 0:a.examples.filter((t=>t!==e.uid)))||[]),t.delete(e.uid))}}}(S),{addWorkspace:L,deleteWorkspace:j}=function({workspaces:e,workspaceMutators:t,collectionMutators:r,requestMutators:n,requestExampleMutators:a}){return{addWorkspace:(e={})=>{const{request:o}=Rve(),i=Hge.parse({name:"Example",requestUid:o.uid});o.examples.push(i.uid);const s=Ege.parse({info:{title:"Drafts"},children:[o.uid],requests:[o.uid]}),l=Qve.parse({...e,collections:[s.uid]});return a.add(i),n.add(o),r.add(s),t.add(l),l},deleteWorkspace:r=>{Object.keys(e).length<=1?console.warn("The last workspace cannot be deleted."):t.delete(r)}}}(S),{addSecurityScheme:B,deleteSecurityScheme:U}=function({securitySchemeMutators:e,collectionMutators:t,collections:r,requests:n,requestMutators:a}){return{addSecurityScheme:(n,a)=>{const o=gge.parse(n);return e.add(o),a&&r[a]&&t.edit(a,"securitySchemes",[...r[a].securitySchemes,o.uid]),o},deleteSecurityScheme:o=>{Object.values(r).forEach((e=>{e.securitySchemes.includes(o)&&t.edit(e.uid,"securitySchemes",e.securitySchemes.filter((e=>e!==o)))})),Object.values(n).forEach((e=>{var t,r,i,s;null!=(t=e.security)&&t.some((e=>Object.keys(e).includes(o)))&&a.edit(e.uid,"security",null==(i=null==(r=n[e.uid])?void 0:r.security)?void 0:i.filter((e=>!Object.keys(e).includes(o)))),e.selectedSecuritySchemeUids.flat().includes(o)&&a.edit(e.uid,"selectedSecuritySchemeUids",null==(s=e.selectedSecuritySchemeUids)?void 0:s.filter((e=>Array.isArray(e)?!e.includes(o):e!==o)))})),e.delete(o)}}}(S),{addCollectionEnvironment:F,removeCollectionEnvironment:Q}=Ove(S),z=uo([]),{importSpecFile:q,importSpecFromUrl:H}=function({requestMutators:e,collectionMutators:t,serverMutators:r,tagMutators:n,securitySchemeMutators:a,requestExampleMutators:o,workspaceMutators:i,workspaces:s}){const l=async(l,c,u={})=>{var d;const p=Oo(l),h=await async function(e,{dereferencedDocument:t,authentication:r,baseServerURL:n,documentUrl:a,servers:o,useCollectionSecurity:i=!1,slug:s,shouldLoad:l,watchMode:c=!1}={}){var u,d,p,h;const{schema:f,errors:m}=await kve(e,{shouldLoad:l,dereferencedDocument:t}),g=[...m.map((e=>e.message))];if(!f)return{importWarnings:g,error:!0,collection:void 0};const v=performance.now(),b=[],y=Tve(o||f.servers,{baseServerURL:n,documentUrl:a}),O=[];if(!y.length){const e=Ave();e&&y.push(Dge.parse({url:e}))}const w=new Set,x=(null==(u=f.components)?void 0:u.securitySchemes)??(null==f?void 0:f.securityDefinitions)??{};((null==r?void 0:r.oAuth2)||(null==r?void 0:r.apiKey)||(null==r?void 0:r.http))&&console.warn("DEPRECATION WARNING: It looks like you're using legacy authentication config. Please migrate to use the updated config. See https://github.com/scalar/scalar/blob/main/documentation/configuration.md#authentication-partial This will be removed in a future version.");const k=null==(p=(d=Object.entries(x)).map)?void 0:p.call(d,(([e,t])=>{var n,a,o,i,s;const l={...t,...(null==(n=null==r?void 0:r.securitySchemes)?void 0:n[e])??{},nameKey:e};"oauth2"===l.type&&l.flows?Object.keys(l.flows).forEach((n=>{var a,o,i,s,c;if(!(null==(a=l.flows)?void 0:a[n])||"oauth2"!==t.type)return;const u=(null==(s=null==(i=null==(o=null==r?void 0:r.securitySchemes)?void 0:o[e])?void 0:i.flows)?void 0:s[n])??{};l.flows[n]={...(null==(c=t.flows)?void 0:c[n])??{},...u};const d=l.flows[n];d.type=n,(null==r?void 0:r.oAuth2)&&(r.oAuth2.accessToken&&(d.token=r.oAuth2.accessToken),r.oAuth2.clientId&&(d["x-scalar-client-id"]=r.oAuth2.clientId),r.oAuth2.scopes&&(d.selectedScopes=r.oAuth2.scopes),"password"===d.type&&(d.username=r.oAuth2.username,d.password=r.oAuth2.password)),Array.isArray(d.scopes)&&(d.scopes=d.scopes.reduce(((e,t)=>({...e,[t]:""})),{})),d["x-defaultClientId"]&&(d["x-scalar-client-id"]=d["x-defaultClientId"])})):r&&("apiKey"===l.type&&(null==(a=r.apiKey)?void 0:a.token)?l.value=r.apiKey.token:"http"===l.type&&("basic"===l.scheme&&(null==(o=r.http)?void 0:o.basic)?(l.username=r.http.basic.username??"",l.password=r.http.basic.password??""):"bearer"===l.scheme&&(null==(s=null==(i=r.http)?void 0:i.bearer)?void 0:s.token)&&(l.token=r.http.bearer.token??"")));const c=nj(l,gge,!1);return c||g.push(`Security scheme ${e} is invalid.`),c})).filter((e=>!!e)),S={};var _;k.forEach((e=>{S[e.nameKey]=e.uid})),(_=f.paths??{},_?Object.keys(_).map((e=>String(e))):[]).forEach((e=>{var t;const n=null==(t=null==f?void 0:f.paths)?void 0:t[e];if(!n)return;const a=Dge.array().parse(n.servers??[]);for(const e of a)y.push(e);Object.keys(n).filter(rP).forEach((t=>{var o,s;const l=n[t];if(!l)return;const c=Dge.array().parse(l.servers??[]);for(const e of c)O.push(e);null==(o=l.tags)||o.forEach((e=>w.add(e)));const{security:u,...d}=l,p=(u??f.security??[]).map((e=>{const t=Object.keys(e);return t.length>1?t:t[0]})).filter(mj),h=[(null==r?void 0:r.preferredSecurityScheme)??[]].flat().filter((e=>Array.isArray(e)?p.some((t=>Array.isArray(t)&&t.length===e.length&&t.every(((t,r)=>t===e[r])))):p.includes(e))),m=p.length&&!i?Sve(p,h,S):[],v={...d,method:t,path:e,security:u,selectedServerUid:null==(s=null==c?void 0:c[0])?void 0:s.uid,selectedSecuritySchemeUids:m,parameters:[...(null==n?void 0:n.parameters)??[],...l.parameters??[]],servers:[...a,...c].map((e=>e.uid))};v.examples&&(console.warn("[@scalar/api-client] operation.examples is not a valid openapi property"),delete v.examples);const y=nj(v,Jge,!1);y?b.push(y):g.push(`${t} Request at ${n} is invalid.`)}))}));const E=nj((null==f?void 0:f.tags)??[],kge.array(),!1)??[];E.forEach((e=>w.delete(e.name))),w.forEach((e=>e&&E.push(kge.parse({name:e}))));const T={};E.forEach((e=>{T[e.name]=e}));const A=new Set(E.map((e=>e.uid)));E.forEach((e=>{var t;null==(t=e["x-scalar-children"])||t.forEach((t=>{var r;const n=null==(r=T[t.tagName])?void 0:r.uid;n&&(e.children.push(n),A.delete(n))}))})),b.forEach((e=>{var t;(null==(t=e.tags)?void 0:t.length)?e.tags.forEach((t=>{var r;null==(r=T[t])||r.children.push(e.uid)})):A.add(e.uid)}));const C=[];b.forEach((e=>{const t=Wge(e,"Default Example");C.push(t),e.examples.push(t.uid)}));const P=(f.security??[]).map((e=>{const t=Object.keys(e);return t.length>1?t:t[0]})).filter(mj),D=[(null==r?void 0:r.preferredSecurityScheme)??[]].flat(),$=(P.length||(null==D?void 0:D.length))&&i?Sve(P,D,S):[],R=(null==s?void 0:s.length)?{uid:_ve(s)}:{},M=Ege.parse({...R,...f,watchMode:c,documentUrl:a,useCollectionSecurity:i,requests:b.map((e=>e.uid)),servers:y.map((e=>e.uid)),tags:E.map((e=>e.uid)),children:[...A],security:f.security??[{}],selectedServerUid:null==(h=null==y?void 0:y[0])?void 0:h.uid,selectedSecuritySchemeUids:$,components:{...f.components},securitySchemes:k.map((e=>e.uid))}),N=performance.now();return console.log(`workspace: ${Math.round(N-v)} ms`),{error:!1,servers:[...y,...O],schema:f,requests:b,examples:C,collection:M,tags:E,securitySchemes:k}}(p,u);return h.error?(console.group("IMPORT ERRORS"),h.importWarnings.forEach((e=>console.warn(e))),void console.groupEnd()):(u.documentUrl&&"string"==typeof p&&(Dve[u.documentUrl]={hash:fj(p),schema:h.schema}),h.examples.forEach((e=>o.add(e))),h.requests.forEach((t=>e.add(t))),h.tags.forEach((e=>n.add(e))),h.servers.forEach((e=>r.add(e))),h.securitySchemes.forEach((e=>a.add(e))),t.add(h.collection),i.edit(c,"collections",[...(null==(d=s[c])?void 0:d.collections)??[],h.collection.uid]),h)};return{importSpecFile:l,importSpecFromUrl:async function(e,t,{proxyUrl:r,...n}={}){try{const a=await ej(e,r);return[null,await l(a,t,{documentUrl:e,...n})]}catch(e){return console.error("Failed to fetch spec from URL:",e),[Cve(e),null]}}}}(S),V=So((e?null==localStorage?void 0:localStorage.getItem("sidebarWidth"):void 0)||"280px"),Z=w8();Object.values(x).forEach((({uid:e})=>{r&&k.edit(e,"proxyUrl",r),n&&k.edit(e,"themeId",n)})),typeof window<"u"&&(window.dataDump=()=>({collections:Oo(i),cookies:Oo(f),environments:Oo(g),requestExamples:Oo(p),requests:Oo(u),securitySchemes:Oo(O),servers:Oo(b),tags:Oo(l),workspaces:Oo(x)}));const W={executeRequest:xve(),focusAddressBar:xve(),cancelRequest:xve(),requestStatus:xve(),commandPalette:xve(),hotKeys:xve()};return{workspaces:x,collections:i,tags:l,cookies:f,environments:g,requestExamples:p,requests:u,servers:b,securitySchemes:O,modalState:Z,events:W,sidebarWidth:V,setSidebarWidth:t=>{V.value=t,e&&(null==localStorage||localStorage.setItem("sidebarWidth",t))},proxyUrl:r,hideClientButton:a,showSidebar:t,integration:o,importSpecFile:q,importSpecFromUrl:H,cookieMutators:m,collectionMutators:{...s,rawAdd:s.add,add:R,delete:M,addEnvironment:F,removeEnvironment:Q},environmentMutators:{...v,delete:P},requestMutators:{...d,rawAdd:d.add,add:T,delete:A},findRequestParents:C,requestExampleMutators:{...h,rawAdd:h.add,add:N,delete:I},requestHistory:z,securitySchemeMutators:{...w,rawAdd:w.add,add:B,delete:U},serverMutators:{...y,rawAdd:y.add,add:D,delete:$},tagMutators:{...c,rawAdd:c.add,add:_,delete:E},workspaceMutators:{...k,rawAdd:k.add,add:L,delete:j},addCollectionEnvironment:F,removeCollectionEnvironment:Q}},qve=Symbol(),Hve=()=>{const e=Bs(qve);if(!e)throw new Error("Workspace store not provided");return e},Vve={class:"min-w-0"},Zve={class:"text-c-1 min-w-0 truncate"},Wve=Li({__name:"AddressBarHistory",props:{operation:{},target:{}},setup(e){const{requestHistory:t}=Hve(),r=hc((()=>t.filter((t=>t.request.requestUid===e.operation.uid)).slice().reverse()));return(e,t)=>(Pl(),Nl(Ao(dF),{as:"div"},{default:ci((({open:n})=>[Fl(Ao(HW),{offset:0,resize:"",target:e.target},hs({default:ci((()=>{var e;return[null!=(e=r.value)&&e.length?(Pl(),Nl(Ao(pF),{key:0,class:"address-bar-history-button z-context-plus text-c-3 focus:text-c-1 relative mr-1 rounded-lg p-1.5"},{default:ci((()=>[Fl(Ao(p5),{icon:"History",size:"sm",thickness:"2.25"}),t[0]||(t[0]=Ul("span",{class:"sr-only"},"Request History",-1))])),_:1,__:[0]})):Vl("",!0)]})),_:2},[n?{name:"floating",fn:ci((({width:e})=>[Fl(Ao(hF),{class:"custom-scroll grid max-h-[inherit] grid-cols-[44px_1fr_repeat(3,auto)] items-center border-t p-0.75",static:"",style:jn({width:e})},{default:ci((()=>[(Pl(!0),Ml(Sl,null,ps(r.value,((e,t)=>(Pl(),Nl(Ao(fF),{key:e.timestamp,as:"button",class:"font-code ui-active:*:bg-b-2 text-c-2 contents text-sm font-medium *:flex *:h-8 *:cursor-pointer *:items-center *:rounded-none *:px-1.5 *:first:rounded-l *:last:rounded-r",value:t,onClick:t=>function(e){console.warn("Restoring from the request history doesn't work yet. Request History Item:",e)}(e)},{default:ci((()=>{var t;return[e.response.method?(Pl(),Nl(Fme,{key:0,class:"text-[11px]",method:e.response.method},null,8,["method"])):Vl("",!0),Ul("div",Vve,[Ul("div",Zve,Gn(e.response.path),1)]),Ul("div",null,Gn(Ao(Qme)(e.response.duration)),1),Ul("div",{class:zn([Ao(qme)(e.response.status).color])},Gn(e.response.status),3),Ul("div",null,Gn(null==(t=Ao(Sj)[e.response.status])?void 0:t.name),1)]})),_:2},1032,["value","onClick"])))),128))])),_:2},1032,["style"]),Fl(Ao(VW),{class:"-top-(--scalar-address-bar-height) rounded-lg"})])),key:"0"}:void 0]),1032,["target"])])),_:1}))}}),Xve=P8(Wve,[["__scopeId","data-v-a93fa60f"]]),Gve={key:0,class:"sr-only"},Yve=Li({__name:"ServerVariablesSelect",props:{enum:{},value:{},controls:{}},emits:["change"],setup(e,{emit:t}){const r=e,n=t,a=hc((()=>r.enum.map((e=>({id:e,label:e}))))),o=hc({get:()=>a.value.find((e=>e.id===r.value)),set:e=>n("change",(null==e?void 0:e.id)??"")});return(e,t)=>(Pl(),Nl(Ao(C5),{modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),options:a.value},{default:ci((()=>[Fl(Ao(iz),{"aria-controls":e.controls,class:"h-8 p-1.5 font-normal",variant:"ghost"},{default:ci((()=>[Ul("span",{class:zn({"text-c-1":e.value})},[e.value?(Pl(),Ml("span",Gve," Selected: ")):Vl("",!0),ql(" "+Gn(e.value||"Select value"),1)],2),Fl(Ao(p5),{class:"ml-1",icon:"ChevronDown",size:"sm"})])),_:1},8,["aria-controls"])])),_:1},8,["modelValue","options"]))}}),Kve=Li({__name:"ServerVariablesTextbox",props:{value:{},controls:{}},emits:["change"],setup(e,{emit:t}){const r=e,n=t,a=hc({get:()=>r.value,set:e=>n("change",e)});return(e,t)=>ui((Pl(),Ml("input",Gl({"onUpdate:modelValue":t[0]||(t[0]=e=>a.value=e)},e.controls?{...e.$attrs,"aria-controls":e.controls}:{},{autocomplete:"off",class:"text-c-1 w-full border-transparent px-1.5 -outline-offset-1 group-last/label:rounded-br-lg",placeholder:"value",spellcheck:"false",type:"text"}),null,16)),[[pu,a.value]])}}),Jve={class:"mr-1.5 flex items-center py-1.5 pl-3 group-has-[input]/label:mr-0 after:content-[':']"},ebe=Li({__name:"ServerVariablesForm",props:{variables:{},values:{},controls:{},layout:{default:"client"}},emits:["update:variable"],setup(e,{emit:t}){const r=t;function n(e,t){r("update:variable",e,t)}const a=t=>{var r,n,a;return((null==(r=e.values)?void 0:r[t])??(null==(a=null==(n=e.variables)?void 0:n[t])?void 0:a.default)??"").toString()};return(e,t)=>e.variables&&Object.keys(e.variables??{}).length?(Pl(!0),Ml(Sl,{key:0},ps(Object.keys(e.variables),(t=>{var r,o,i,s,l;return Pl(),Ml("label",{key:t,class:zn(["group/label flex w-full","reference"===e.layout&&"rounded-b-lg border-x border-b"])},[Ul("span",Jve,Gn(t),1),null!=(i=null==(o=null==(r=e.variables)?void 0:r[t])?void 0:o.enum)&&i.length?(Pl(),Nl(Yve,{key:0,controls:e.controls,enum:(null==(l=null==(s=e.variables[t])?void 0:s.enum)?void 0:l.map((e=>`${e}`)))??[],label:t,value:a(t),onChange:e=>n(t,e)},null,8,["controls","enum","label","value","onChange"])):(Pl(),Nl(Kve,{key:1,controls:e.controls,value:a(t),onChange:e=>n(t,e)},null,8,["controls","value","onChange"]))],2)})),128)):Vl("",!0)}}),tbe=["aria-expanded"],rbe={class:"overflow-hidden text-ellipsis whitespace-nowrap"},nbe=["id"],abe={key:0},obe={class:"description text-c-3 px-3 py-1.5"},ibe=Li({__name:"ServerDropdownItem",props:{collection:{},operation:{},server:{},serverOption:{},type:{}},emits:["update:variable"],setup(e,{emit:t}){const r=e,n=t,a=ji(),{collectionMutators:o,requestMutators:i,servers:s}=Hve(),l=hc((()=>{var e;return"collection"===r.type?r.collection.selectedServerUid===r.serverOption.id&&!(null!=(e=r.operation)&&e.selectedServerUid):!("request"!==r.type||!r.operation)&&r.operation.selectedServerUid===r.serverOption.id})),c=e=>{if(!e)return!1;const t=s[e];return Object.keys((null==t?void 0:t.variables)??{}).length>0},u=hc((()=>{var e;return l.value&&c((null==(e=r.server)?void 0:e.uid)??"")})),d=(e,t)=>{n("update:variable",e,t)};return(e,t)=>{var n,s;return Pl(),Ml("div",{class:zn(["group/item flex min-h-fit flex-col rounded border",{"border-transparent":!l.value}])},[Ul("button",Gl(u.value?{"aria-controls":Ao(a)}:{},{"aria-expanded":u.value,class:["flex min-h-8 cursor-pointer items-center gap-1.5 rounded px-1.5",l.value?"text-c-1 bg-b-2":"hover:bg-b-2"],type:"button",onClick:t[0]||(t[0]=t=>((e,t)=>{var n,a,s,u;if(c(e)&&(null==t||t.stopPropagation()),l.value)return null!=(a=null==(n=r.operation)?void 0:n.servers)&&a.length&&i.edit(r.operation.uid,"selectedServerUid",null),void("collection"===r.type?o.edit(r.collection.uid,"selectedServerUid",void 0):"request"===r.type&&r.operation&&i.edit(r.operation.uid,"selectedServerUid",null));"collection"===r.type&&r.collection?(null!=(u=null==(s=r.operation)?void 0:s.servers)&&u.length&&i.edit(r.operation.uid,"selectedServerUid",null),o.edit(r.collection.uid,"selectedServerUid",e)):"request"===r.type&&r.operation&&i.edit(r.operation.uid,"selectedServerUid",e)})(e.serverOption.id,t))}),[Fl(Ao(rZ),{selected:l.value},null,8,["selected"]),Ul("span",rbe,Gn(e.serverOption.label),1)],16,tbe),u.value?(Pl(),Ml("div",{key:0,id:Ao(a),class:"bg-b-2 divide divide-y rounded-b border-t *:pl-4",onClick:t[1]||(t[1]=Su((()=>{}),["stop"]))},[Fl(ebe,{variables:null==(n=e.server)?void 0:n.variables,"onUpdate:variable":d},null,8,["variables"]),null!=(s=e.server)&&s.description?(Pl(),Ml("div",abe,[Ul("div",obe,[Fl(Ao(D5),{value:e.server.description},null,8,["value"])])])):Vl("",!0)],8,nbe)):Vl("",!0)],2)}}}),sbe=P8(ibe,[["__scopeId","data-v-e86ebacd"]]),lbe=["onClick"],cbe={class:"flex h-4 w-4 items-center justify-center"},ube=Li({__name:"ServerDropdown",props:{collection:{},operation:{},server:{},target:{}},setup(e){const{layout:t}=Pme(),{servers:r,collectionMutators:n,events:a,serverMutators:o}=Hve(),i=hc((()=>{var t,n;return null==(n=null==(t=e.operation)?void 0:t.servers)?void 0:n.map((e=>{var t;return{id:e,label:(null==(t=r[e])?void 0:t.url)??"Unknown server"}}))})),s=hc((()=>{var t,n;return null==(n=null==(t=e.collection)?void 0:t.servers)?void 0:n.filter((t=>{var r,n;return!(null!=(n=null==(r=e.operation)?void 0:r.servers)&&n.includes(t))})).map((e=>{var t;return{id:e,label:(null==(t=r[e])?void 0:t.url)??"Unknown server"}}))})),l=hc((()=>{var e,t;return(null==(e=i.value)?void 0:e.length)&&(null==(t=s.value)?void 0:t.length)}));ul([()=>e.collection,()=>e.operation],(([t,r])=>{var a;if(!t||t.selectedServerUid||null!=r&&r.selectedServerUid)return;const o=null==(a=e.collection.servers)?void 0:a[0];o&&n.edit(e.collection.uid,"selectedServerUid",o)}));const c=()=>a.commandPalette.emit({commandName:"Add Server"}),u=hc((()=>{var t,r,n;return null!=(r=null==(t=e.server)?void 0:t.url)&&r.endsWith("/")?e.server.url.slice(0,-1):(null==(n=e.server)?void 0:n.url)||""})),d=(t,r)=>{if(!e.server)return;const n=e.server.variables||{};n[t]={...n[t],default:r},o.edit(e.server.uid,"variables",n)};return(e,r)=>(Pl(),Nl(Ao(I5),{class:"max-h-[inherit] p-0 text-base",focus:"",offset:0,placement:"bottom-start",resize:"",target:e.target,teleport:`#${e.target}`},{popover:ci((({close:n})=>[Ul("div",{class:"custom-scroll flex max-h-[inherit] flex-col gap-1 border-t p-1",onClick:n},[(Pl(!0),Ml(Sl,null,ps(i.value,(t=>(Pl(),Nl(sbe,{key:t.id,collection:e.collection,operation:e.operation,server:e.server,serverOption:t,type:"request","onUpdate:variable":d},null,8,["collection","operation","server","serverOption"])))),128)),l.value?(Pl(),Ml(Sl,{key:0},[Fl(Ao(N5)),r[2]||(r[2]=Ul("div",{class:"text-xxs text-c-2 px-2.5 py-1"},"Collection",-1))],64)):Vl("",!0),(Pl(!0),Ml(Sl,null,ps(s.value,(t=>(Pl(),Nl(sbe,{key:t.id,collection:e.collection,operation:e.operation,server:e.server,serverOption:t,type:"collection","onUpdate:variable":d},null,8,["collection","operation","server","serverOption"])))),128)),"modal"!==Ao(t)?(Pl(),Ml("button",{key:1,class:"text-xxs hover:bg-b-2 flex cursor-pointer items-center gap-1.5 rounded p-1.75",type:"button",onClick:c},[Ul("div",cbe,[Fl(Ao(p5),{icon:"Add",size:"sm"})]),r[3]||(r[3]=Ul("span",null,"Add Server",-1))])):Vl("",!0)],8,lbe)])),backdrop:ci((()=>[Fl(Ao(VW),{class:"-top-(--scalar-address-bar-height) rounded-lg"})])),default:ci((()=>[Fl(Ao(iz),{class:"z-context-plus hover:bg-b-2 font-code text-c-2 ml-0.75 h-auto gap-0.75 rounded border px-1.5 text-base whitespace-nowrap",variant:"ghost"},{default:ci((()=>{var t;return[null!=(t=e.operation)&&t.selectedServerUid||e.collection.selectedServerUid?(Pl(),Ml(Sl,{key:0},[r[0]||(r[0]=Ul("span",{class:"sr-only"},"Server:",-1)),ql(" "+Gn(u.value),1)],64)):(Pl(),Ml(Sl,{key:1},[r[1]||(r[1]=Ul("span",{class:"sr-only"},"Add Server",-1)),Fl(Ao(p5),{icon:"Add",size:"xs"})],64))]})),_:1})])),_:1},8,["target","teleport"]))}}),dbe=["id"],pbe={class:"address-bar-bg-states text-xxs group relative order-last flex w-full max-w-[calc(100dvw-24px)] flex-1 flex-row items-stretch rounded-lg p-0.75 lg:order-none lg:max-w-[580px] lg:min-w-[580px] xl:max-w-[720px] xl:min-w-[720px]"},hbe={class:"pointer-events-none absolute top-0 left-0 block h-full w-full overflow-hidden rounded-lg border"},fbe={class:"z-context-plus flex gap-1"},mbe={class:"scroll-timeline-x scroll-timeline-x-hidden z-context-plus relative flex w-full bg-blend-normal"},gbe={"aria-hidden":"true",class:"inline-flex items-center gap-1"},vbe={class:"sr-only"},bbe=Li({__name:"AddressBar",props:{collection:{},operation:{},server:{},environment:{},envVariables:{},workspace:{}},emits:["importCurl"],setup(e){const t=ji(),{requestMutators:r,events:n}=Hve(),{layout:a}=Pme(),o=So(null),i=So(null);ul((()=>e.operation.path),(t=>{t&&(t=>{e.operation.path!==t&&r.edit(e.operation.uid,"path",t)})(t)}));const s=So(100),l=So(0),c=So(!1),u=So();function d(){c.value?s.value-=(s.value-15)/60:s.value-=l.value/20,s.value<=0&&(clearInterval(u.value),u.value=void 0,s.value=100,c.value=!1)}function p(t){r.edit(e.operation.uid,"method",t)}function h(){const{method:t}=e.operation;return xj[t].colorVar}function f(){c.value||(c.value=!0,n.executeRequest.emit({requestUid:e.operation.uid}))}function m(t){r.edit(e.operation.uid,"path",t)}return n.requestStatus.on((e=>{"start"===e&&(u.value||(c.value=!0,u.value=setInterval(d,20))),"stop"===e&&(l.value=s.value,c.value=!1),"abort"===e&&(clearInterval(u.value),u.value=void 0,s.value=100,c.value=!1)})),n.focusAddressBar.on((()=>{var e,t,r;"modal"===a?null==(t=null==(e=i.value)?void 0:e.$el)||t.focus():null==(r=o.value)||r.focus()})),n.hotKeys.on((e=>{var t;null!=e&&e.focusAddressBar&&(null==(t=o.value)||t.focus()),null!=e&&e.executeRequest&&f()})),(e,r)=>{var n;return Pl(),Ml("div",{id:Ao(t),class:"scalar-address-bar order-last flex h-(--scalar-address-bar-height) w-full [--scalar-address-bar-height:32px] lg:order-none lg:w-auto"},[Ul("div",pbe,[Ul("div",hbe,[Ul("div",{class:"absolute top-0 left-0 z-[1002] h-full w-full",style:jn({backgroundColor:`color-mix(in srgb, transparent 90%, ${h()})`,transform:`translate3d(-${s.value}%,0,0)`})},null,4)]),Ul("div",fbe,[Fl(Fme,{isEditable:"modal"!==Ao(a),isSquare:"",method:e.operation.method,teleport:"",onChange:p},null,8,["isEditable","method"])]),Ul("div",mbe,[e.collection.servers.length?(Pl(),Nl(Ao(ube),{key:0,collection:e.collection,layout:"client",operation:e.operation,server:e.server,target:Ao(t)},null,8,["collection","operation","server","target"])):Vl("",!0),r[1]||(r[1]=Ul("div",{class:"fade-left"},null,-1)),Fl(Bme,{ref_key:"addressBarRef",ref:o,"aria-label":"Path",class:"min-w-fit outline-none",disableCloseBrackets:"",disabled:"modal"===Ao(a),disableEnter:"",disableTabIndent:"",emitOnBlur:!1,envVariables:e.envVariables,environment:e.environment,importCurl:"",modelValue:e.operation.path,placeholder:null!=(n=e.server)&&n.uid&&e.collection.servers.includes(e.server.uid)?"":"Enter a URL or cURL command",server:"",workspace:e.workspace,onCurl:r[0]||(r[0]=t=>e.$emit("importCurl",t)),onSubmit:f,"onUpdate:modelValue":m},null,8,["disabled","envVariables","environment","modelValue","placeholder","workspace"]),r[2]||(r[2]=Ul("div",{class:"fade-right"},null,-1))]),Fl(Xve,{operation:e.operation,target:Ao(t)},null,8,["operation","target"]),Fl(Ao(iz),{ref_key:"sendButtonRef",ref:i,class:"z-context-plus relative h-auto shrink-0 overflow-hidden py-1 pr-2.5 pl-2 font-bold",disabled:c.value,onClick:f},{default:ci((()=>{var t;return[Ul("span",gbe,[Fl(Ao(p5),{class:"relative shrink-0 fill-current",icon:"Play",size:"xs"}),r[3]||(r[3]=Ul("span",{class:"text-xxs hidden lg:flex"},"Send",-1))]),Ul("span",vbe," Send "+Gn(e.operation.method)+" request to "+Gn((null==(t=e.server)?void 0:t.url)??"")+Gn(e.operation.path),1)]})),_:1},8,["disabled"])])],8,dbe)}}}),ybe=P8(bbe,[["__scopeId","data-v-78c9dbb9"]]),Obe={xs:"(min-width: 400px)",sm:"(min-width: 600px)",md:"(min-width: 800px)",lg:"(min-width: 1000px)",xl:"(min-width: 1200px)",zoomed:"(max-width: 720px) and (max-height: 480px)"};function wbe(){const e=Object.fromEntries(Object.entries(Obe).map((([e,t])=>[e,Wj(t)]))),t=hc((()=>Object.fromEntries(Object.entries(e).map((([e,t])=>[e,Ao(t)])))));return{screens:Obe,mediaQueries:e,breakpoints:t}}const xbe=Symbol(),kbe=()=>{const e=Bs(xbe);if(!e)throw new Error("useSidebar must have injected SIDEBAR_SYMBOL");const{collapsedSidebarFolders:t,isSidebarOpen:r}=e;return{collapsedSidebarFolders:ho(t),isSidebarOpen:ho(r),setCollapsedSidebarFolder:(e,r)=>t[e]=r,toggleSidebarFolder:e=>t[e]=!t[e],setSidebarOpen:e=>r.value=e,toggleSidebarOpen:()=>r.value=!r.value}},Sbe={key:0,class:"xl:min-h-header flex min-h-12 items-center justify-between px-3 py-1.5 text-sm md:px-[18px] md:py-2.5"},_be={class:"m-0 text-sm font-medium whitespace-nowrap"},Ebe={class:"bg-b-1 relative sticky bottom-0 z-10 w-[inherit] pt-0 has-[.empty-sidebar-item]:border-t md:px-2.5 md:pb-2.5"},Tbe=Li({__name:"Sidebar",props:{title:{}},setup(e){const{isSidebarOpen:t}=kbe(),{sidebarWidth:r,setSidebarWidth:n}=Hve(),{layout:a}=Pme(),o=So(!1),i=So(null),{breakpoints:s}=wbe(),l=e=>{e.preventDefault();const t=e.clientX,a=Number.parseInt(getComputedStyle(i.value).width||r.value,10),s=e=>{o.value=!0,document.body.classList.add("dragging");let r=a+e.clientX-t;r>420&&(r=420+.2*(r-420)),r<240&&(r=240),n(`${r}px`)},l=()=>{o.value=!1,document.body.classList.remove("dragging"),document.documentElement.removeEventListener("mousemove",s,!1),document.documentElement.removeEventListener("mouseup",l,!1),Number.parseInt(r.value,10)>420?n("360px"):Number.parseInt(r.value,10)<240&&n("240px")};document.documentElement.addEventListener("mousemove",s,!1),document.documentElement.addEventListener("mouseup",l,!1)};return(e,n)=>ui((Pl(),Ml("aside",{ref_key:"sidebarRef",ref:i,class:zn(["sidebar bg-b-1 relative flex min-w-full flex-1 flex-col overflow-hidden leading-3 md:min-w-fit md:flex-none md:border-r md:border-b-0",{dragging:o.value}]),style:jn({width:Ao(s).lg?Ao(r):"100%"})},[fs(e.$slots,"header",{},void 0,!0),"modal"!==Ao(a)&&e.title?(Pl(),Ml("div",Sbe,[Ul("h2",_be,Gn(e.title),1),Ao(s).lg?Vl("",!0):fs(e.$slots,"button",{key:0},void 0,!0)])):Vl("",!0),Ul("div",{class:zn(["custom-scroll sidebar-height w-[inherit] pb-0 md:pb-[37px]",{"sidebar-mask":"modal"!==Ao(a)}])},[fs(e.$slots,"content",{},void 0,!0)],2),Ao(s).lg?(Pl(),Ml(Sl,{key:1},[Ul("div",Ebe,[fs(e.$slots,"button",{},void 0,!0)]),Ul("div",{class:"resizer",onMousedown:l},null,32)],64)):Vl("",!0)],6)),[[Fc,Ao(t)]])}}),Abe=P8(Tbe,[["__scopeId","data-v-72824faa"]]);function Cbe({multiple:e,accept:t,onChange:r,onError:n}={}){const a=So(null);let o;return typeof document<"u"&&(o=document.createElement("input"),o.type="file",o.onchange=e=>{const t=e.target;a.value=t.files,null==r||r(a.value)},o.onerror=()=>null==n?void 0:n(),o.multiple=e,o.accept=t),{files:ho(a),open:()=>{if(!o)return null==n?void 0:n();o.click()}}}var Pbe={removeLeadingAndTrailingHTTPWhitespace:e=>e.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,""),removeTrailingHTTPWhitespace:e=>e.replace(/[ \t\n\r]+$/u,""),isHTTPWhitespaceChar:e=>" "===e||"\t"===e||"\n"===e||"\r"===e,solelyContainsHTTPTokenCodePoints:e=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(e),soleyContainsHTTPQuotedStringTokenCodePoints:e=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(e),asciiLowercase:e=>e.replace(/[A-Z]/gu,(e=>e.toLowerCase())),collectAnHTTPQuotedString:(e,t)=>{let r="";for(t++;;){for(;t<e.length&&'"'!==e[t]&&"\\"!==e[t];)r+=e[t],++t;if(t>=e.length)break;const n=e[t];if(++t,"\\"!==n)break;if(t>=e.length){r+="\\";break}r+=e[t],++t}return[r,t]}};const{asciiLowercase:Dbe,solelyContainsHTTPTokenCodePoints:$be,soleyContainsHTTPQuotedStringTokenCodePoints:Rbe}=Pbe;var Mbe=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=Dbe(String(e)),this._map.get(e)}has(e){return e=Dbe(String(e)),this._map.has(e)}set(e,t){if(e=Dbe(String(e)),t=String(t),!$be(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!Rbe(t))throw new Error(`Invalid MIME type parameter value "${t}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,t)}clear(){this._map.clear()}delete(e){return e=Dbe(String(e)),this._map.delete(e)}forEach(e,t){this._map.forEach(e,t)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}};const{removeLeadingAndTrailingHTTPWhitespace:Nbe,removeTrailingHTTPWhitespace:Ibe,isHTTPWhitespaceChar:Lbe,solelyContainsHTTPTokenCodePoints:jbe,soleyContainsHTTPQuotedStringTokenCodePoints:Bbe,asciiLowercase:Ube,collectAnHTTPQuotedString:Fbe}=Pbe,{solelyContainsHTTPTokenCodePoints:Qbe}=Pbe,zbe=Mbe,{asciiLowercase:qbe,solelyContainsHTTPTokenCodePoints:Hbe}=Pbe,Vbe=Qf(class{constructor(e){const t=(e=>{e=Nbe(e);let t=0,r="";for(;t<e.length&&"/"!==e[t];)r+=e[t],++t;if(0===r.length||!jbe(r))return null;if(t>=e.length)return null;++t;let n="";for(;t<e.length&&";"!==e[t];)n+=e[t],++t;if(n=Ibe(n),0===n.length||!jbe(n))return null;const a={type:Ube(r),subtype:Ube(n),parameters:new Map};for(;t<e.length;){for(++t;Lbe(e[t]);)++t;let r="";for(;t<e.length&&";"!==e[t]&&"="!==e[t];)r+=e[t],++t;if(r=Ube(r),t<e.length){if(";"===e[t])continue;++t}let n=null;if('"'===e[t])for([n,t]=Fbe(e,t);t<e.length&&";"!==e[t];)++t;else{for(n="";t<e.length&&";"!==e[t];)n+=e[t],++t;if(n=Ibe(n),""===n)continue}r.length>0&&jbe(r)&&Bbe(n)&&!a.parameters.has(r)&&a.parameters.set(r,n)}return a})(e=String(e));if(null===t)throw new Error(`Could not parse MIME type string "${e}"`);this._type=t.type,this._subtype=t.subtype,this._parameters=new zbe(t.parameters)}static parse(e){try{return new this(e)}catch(e){return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(0===(e=qbe(String(e))).length)throw new Error("Invalid type: must be a non-empty string");if(!Hbe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(0===(e=qbe(String(e))).length)throw new Error("Invalid subtype: must be a non-empty string");if(!Hbe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return(e=>{let t=`${e.type}/${e.subtype}`;if(0===e.parameters.size)return t;for(let[r,n]of e.parameters)t+=";",t+=r,t+="=",Qbe(n)&&0!==n.length||(n=n.replace(/(["\\])/gu,"\\$1"),n=`"${n}"`),t+=n;return t})(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||0===this._parameters.size;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||0===this._parameters.size;default:return!1}default:return!1}}isXML(){return"xml"===this._subtype&&("text"===this._type||"application"===this._type)||this._subtype.endsWith("+xml")}isHTML(){return"html"===this._subtype&&"text"===this._type}});function Zbe(e){const t=hc((()=>ko(e.data)?e.data.value:e.data)),r=hc((()=>ko(e.headers)?e.headers.value:e.headers)),n=hc((()=>{var e;const t=(null==(e=r.value.find((e=>"content-type"===e.name.toLowerCase())))?void 0:e.value)??"";return new Vbe(t)})),a=hc((()=>{var e;return function(e){var t,r;let n="";if(e){const a=(null==(t=e.match(/filename\*=UTF-8''([^;]+)/))?void 0:t[1])??(null==(r=e.match(/filename\s*=\s*"?([^";]+)"?/))?void 0:r[1]);a&&(n=(e=>{try{return decodeURIComponent(e)}catch{return e}})(a.trim()))}return n}((null==(e=r.value.find((e=>"content-disposition"===e.name.toLowerCase())))?void 0:e.value)??"")})),o=hc((()=>t.value instanceof Blob?URL.createObjectURL(t.value):"string"==typeof t.value?URL.createObjectURL(new Blob([t.value],{type:n.value.toString()})):t.value instanceof Object&&Object.keys(t.value).length?URL.createObjectURL(new Blob([JSON.stringify(t.value)],{type:n.value.toString()})):""));return{mimeType:n,attachmentFilename:a,dataUrl:o}}function Wbe(e,t){const r=e.split(".").reduce(((e,t)=>null==e?void 0:e[t]),t);return"string"==typeof r?r:JSON.stringify(r)}function Xbe(e,t){let r=e;const n=new Set;return r=r.replace(GL.VARIABLES,((e,r)=>{const a=r.trim();n.add(a);const o=Wbe(a,t);return mj(o)&&""!==o?o:`{{${a}}}`})),r=r.replace(GL.PATH,((e,r)=>{const a=r.trim();if(n.has(a))return`{${a}}`;const o=Wbe(a,t);return mj(o)&&""!==o?o:`{${a}}`})),r=r.replace(/:\b[\w.]+\b/g,(e=>{const r=e.slice(1);if(n.has(r))return e;const a=Wbe(r,t);return mj(a)&&""!==a?a:e})),r}function Gbe(e){return function e(t,r){const n=Object.keys(t),a=[];return n.forEach((n=>{const o=r?`${r}.${n}`:n;"object"==typeof t[n]?a.push(...e(t[n],o)):a.push([o,String(t[n])])})),a}(e)}var Ybe=(e=>(e.Request="request",e.Examples="examples",e.Cookies="cookies",e.Collection="collection",e.Schema="schema",e.Environment="environment",e.Servers="servers",e.Workspace="workspace",e.Settings="settings",e))(Ybe||{});const Kbe=[{name:"request.root",path:"",component:()=>Promise.resolve().then((()=>Wje)),redirect:e=>({name:"request",params:{...e.params,request:"default"}}),children:[{name:"request",path:"request/:request",component:()=>Promise.resolve().then((()=>jUe))},{name:"request.examples",path:"request/:request/examples/:examples",component:()=>Promise.resolve().then((()=>jUe))},{name:"collection",path:"collection/:collection",component:()=>Promise.resolve().then((()=>JUe)),redirect:()=>({name:"collection.overview"}),children:[{name:"collection.overview",path:"overview",component:()=>Promise.resolve().then((()=>lFe))},{name:"collection.servers",path:"servers",component:()=>Promise.resolve().then((()=>xFe)),children:[{name:"collection.servers.edit",path:":servers",component:()=>Promise.resolve().then((()=>xFe))}]},{name:"collection.environment",path:"environment",component:()=>Promise.resolve().then((()=>HFe))},{name:"collection.authentication",path:"authentication",component:()=>Promise.resolve().then((()=>KFe))},{name:"collection.cookies",path:"cookies",component:()=>Promise.resolve().then((()=>eQe))},{name:"collection.scripts",path:"scripts",component:()=>Promise.resolve().then((()=>rQe))},{name:"collection.sync",path:"sync",component:()=>Promise.resolve().then((()=>aQe))},{name:"collection.settings",path:"settings",component:()=>Promise.resolve().then((()=>gQe))}]}]}],Jbe=[{name:"root",path:"/",redirect:function(){const e=localStorage.getItem("activeWorkspace");return e?{name:"request.root",params:{workspace:e}}:{name:"workspace.default"}}},{name:"workspace.default",path:"/workspace",redirect:{name:"workspace",params:{workspace:"default"}}},{name:"workspace",path:"/workspace/:workspace",redirect:{name:"request.root"},children:Kbe}],eye=({collections:e,requestExamples:t,requests:r,router:n,servers:a,workspaces:o})=>{const i=hc(function(e){return()=>{const t={[Ybe.Collection]:"default",[Ybe.Environment]:"default",[Ybe.Request]:"default",[Ybe.Examples]:"default",[Ybe.Schema]:"default",[Ybe.Cookies]:"default",[Ybe.Servers]:"default",[Ybe.Workspace]:"default",[Ybe.Settings]:"default"},r=null==e?void 0:e.currentRoute.value;return r&&Object.keys(t).forEach((e=>{r.params[e]&&(t[e]=r.params[e])})),t}}(n)),s=hc((()=>o[i.value[Ybe.Workspace]]??Object.values(o)[0])),l=hc((()=>{var t;return(null==(t=s.value)?void 0:t.collections.map((t=>e[t])).filter(mj).sort(((e,t)=>{var r,n;return"Drafts"===(null==(r=e.info)?void 0:r.title)?1:"Drafts"===(null==(n=t.info)?void 0:n.title)?-1:0})))??[]})),c=hc((()=>{var e;return null==(e=l.value)?void 0:e.flatMap((e=>e.servers.map((e=>a[e]))))})),u=hc((()=>{var e;return(null==(e=l.value)?void 0:e.flatMap((e=>e.requests)))??[]})),d=hc((()=>{var e,t,r,n,a,o,i,c,u;if(null==(e=s.value)||!e.activeEnvironmentId)return wve.parse({uid:"default",color:"#FFFFFF",name:"No Environment",value:JSON.stringify(null==(t=s.value)?void 0:t.environments,null,2)});const d=l.value.find((e=>{var t,r;return null==(r=e["x-scalar-environments"])?void 0:r[(null==(t=s.value)?void 0:t.activeEnvironmentId)??""]}));return d&&null!=(r=s.value)&&r.activeEnvironmentId?wve.parse({uid:s.value.activeEnvironmentId,name:s.value.activeEnvironmentId,value:JSON.stringify(null==(o=null==(a=d["x-scalar-environments"])?void 0:a[null==(n=s.value)?void 0:n.activeEnvironmentId])?void 0:o.variables,null,2),color:(null==(u=null==(c=d["x-scalar-environments"])?void 0:c[null==(i=s.value)?void 0:i.activeEnvironmentId])?void 0:u.color)||"#FFFFFF",isDefault:!1}):wve.parse({uid:"default",color:"#FFFFFF",name:"No Environment",value:JSON.stringify(s.value.environments,null,2)})})),p=hc((()=>{var t;const n=i.value[Ybe.Request],a=e[i.value.collection]||e[(null==(t=s.value)?void 0:t.collections[0])??""];return r[n]||r[(null==a?void 0:a.requests[0])??""]||Object.values(r)[0]})),h=hc((()=>{var e;const r="default"===i.value[Ybe.Examples]?(null==(e=p.value)?void 0:e.examples[0])||"":i.value[Ybe.Examples];return t[r]})),f=hc((()=>{var t,r,n;const a=e[i.value[Ybe.Collection]];if(a)return a;const o=null==(t=p.value)?void 0:t.uid;if(o)return Object.values(e).find((e=>{var t;return null==(t=e.requests)?void 0:t.includes(o)}));const l=(null==(r=s.value)?void 0:r.collections[0])??(null==(n=e[0])?void 0:n.uid)??"";return e[l]})),m=hc((()=>{var e,t;if(null!=(e=p.value)&&e.selectedServerUid){const e=a[p.value.selectedServerUid];if(e)return e}if(null!=(t=f.value)&&t.selectedServerUid){const e=a[f.value.selectedServerUid];if(e)return e}})),g=hc((()=>{var e;return"default"===i.value[Ybe.Cookies]?(null==(e=s.value)?void 0:e.cookies[0])??"default":i.value[Ybe.Cookies]})),v=hc((()=>{var e;const t=(null==(e=s.value)?void 0:e.environments)??{},r=d.value.uid?JSON.parse(d.value.value):{},n=Gbe(t).map((([e,t])=>({key:e,value:t,source:"global"}))),a=Gbe(r).map((([e,t])=>({key:e,value:t,source:"collection"}))),o=new Map;return a.forEach((e=>{o.set(e.key,e)})),n.forEach((e=>{o.has(e.key)||o.set(e.key,e)})),Array.from(o.values())}));return{activeCollection:f,activeCookieId:g,activeExample:h,activeRequest:p,activeRouterParams:i,activeEnvironment:d,activeServer:m,activeWorkspace:s,activeWorkspaceCollections:l,activeWorkspaceServers:c,activeEnvVariables:v,activeWorkspaceRequests:u}},tye=Symbol(),rye=()=>{const e=Bs(tye);if(!e)throw new Error("Active entities store not provided");return e},nye=e=>new Promise((t=>setTimeout(t,e))),aye=(e,t)=>{const r=e.__vccOpts||e;for(const[e,n]of t)r[e]=n;return r},oye={class:"references-classic-header-container"},iye={class:"references-classic-header"},sye={class:"references-classic-header-content"},lye=aye({},[["render",function(e,t){return Pl(),Ml("div",oye,[Ul("div",iye,[Ul("div",sye,[fs(e.$slots,"default",{},void 0,!0)]),fs(e.$slots,"dark-mode-toggle",{},void 0,!0)])])}],["__scopeId","data-v-9198d025"]]),cye={class:"text-c-2 mb-4 text-sm leading-normal"},uye={class:"flex justify-between gap-2"},dye=Li({__name:"DeleteRequestAuthModal",props:{state:{},scheme:{}},emits:["close","delete"],setup(e,{emit:t}){const r=e,n=t,{securitySchemeMutators:a}=Hve(),o=()=>{var e;null!=(e=r.scheme)&&e.id&&a.delete(r.scheme.id),n("delete")};return(e,t)=>(Pl(),Nl(Ao(k8),{size:"xxs",state:e.state,title:"Delete Security Scheme"},{default:ci((()=>{var r;return[Ul("p",cye," This cannot be undone. You're about to delete the "+Gn(null==(r=e.scheme)?void 0:r.label)+" security scheme from the collection. ",1),Ul("div",uye,[Fl(Ao(iz),{class:"flex h-8 cursor-pointer items-center gap-1.5 px-3 shadow-none focus:outline-none",type:"button",variant:"outlined",onClick:t[0]||(t[0]=e=>n("close"))},{default:ci((()=>t[1]||(t[1]=[ql(" Cancel ")]))),_:1,__:[1]}),Fl(Ao(iz),{class:"flex h-8 cursor-pointer items-center gap-1.5 px-3 shadow-none focus:outline-none",type:"submit",onClick:o},{default:ci((()=>{var t;return[ql(" Delete "+Gn(null==(t=e.scheme)?void 0:t.label),1)]})),_:1})])]})),_:1},8,["state"]))}}),pye=(e,t,r,{securitySchemeMutators:n,securitySchemes:a},o=!1)=>{var i;if(n.edit(e,t,r),o)try{const n=JSON.parse(zL().getItem(FL)??"{}"),o=a[e];n&&null!=o&&o.nameKey&&((n[i=o.nameKey]||(n[i]={}))[t]=r,zL().setItem(FL,JSON.stringify(n)))}catch(e){console.error(e)}},hye=Li({inheritAttrs:!1,__name:"DataTableCell",props:{is:{default:"td"}},setup(e){const{cx:t}=GQ();return(e,r)=>(Pl(),Nl(cs(e.is),Gl(Ao(t)("box-content max-h-8 min-h-8 min-w-8 border-l-0 border-t border-b-0 border-r flex text-base last:border-r-0 group-last:border-b-transparent p-0 m-0 relative"),{class:"group-[.alert]:bg-b-alert group-[.error]:bg-b-danger"}),{default:ci((()=>[fs(e.$slots,"default")])),_:3},16))}}),fye={class:"group contents"},mye=P8({},[["render",function(e,t){return Pl(),Ml("tr",fye,[fs(e.$slots,"default")])}]]),gye=["checked","disabled"],vye=Li({__name:"DataTableCheckbox",props:{modelValue:{type:Boolean},disabled:{type:Boolean},align:{default:"center"}},emits:["update:modelValue"],setup(e){const t=WQ({base:"w-8 h-8 flex items-center justify-center text-border peer-checked:text-c-1 pointer-events-none absolute",variants:{align:{left:"left-0",center:"centered"}}});return(e,r)=>(Pl(),Nl(hye,{class:"group/cell relative flex min-w-8"},{default:ci((()=>[Ul("input",{checked:e.modelValue,class:"peer absolute inset-0 cursor-pointer opacity-0 disabled:cursor-default",disabled:!!e.disabled,type:"checkbox",onChange:r[0]||(r[0]=t=>e.$emit("update:modelValue",t.target.checked))},null,40,gye),Ul("div",{class:zn(Ao(t)({align:e.align}))},[Ul("div",{class:zn(["absolute m-auto size-3/4 rounded border-[1px] opacity-0",!e.disabled&&"group-has-[:focus-visible]/cell:border-c-accent group-hover/cell:opacity-100 group-has-[:focus-visible]/cell:opacity-100"])},null,2),Fl(Ao(p5),{icon:"Checkmark",size:"xs",thickness:"2.5"})],2)])),_:1}))}}),bye={class:"flex h-fit w-full"},yye={class:"flex-1"},Oye={class:"flex items-center gap-1.75"},wye={class:"grid auto-rows-auto",style:{gridTemplateColumns:"1fr auto"}},xye={key:0},kye={class:"font-code text-xs"},Sye=Li({__name:"OAuthScopesInput",props:{flow:{},updateScheme:{type:Function}},setup(e){const t=hc((()=>{var t;return Object.entries((null==(t=e.flow)?void 0:t.scopes)??{}).map((([e,t])=>({id:e,label:e,description:t})))})),r=hc((()=>{var t;return(null==(t=e.flow)?void 0:t.selectedScopes)||[]}));function n(){var t;e.updateScheme(`flows.${e.flow.type}.selectedScopes`,Object.keys((null==(t=e.flow)?void 0:t.scopes)??{}))}return(a,o)=>(Pl(),Nl(Ao(hye),{class:"h-auto !max-h-[initial] min-h-8 items-center"},{default:ci((()=>[Ul("div",bye,[o[1]||(o[1]=Ul("div",{class:"text-c-1 h-full items-center"},null,-1)),Fl(Ao(qU),{as:"div",class:"bl flex w-full flex-col"},{default:ci((()=>{var i,s;return[Fl(Ao(HU),{class:zn(["group/scopes-accordion hover:text-c-1 flex h-auto min-h-8 cursor-pointer items-center gap-1.5 pr-2.25 pl-3 text-left",((null==(s=null==(i=a.flow)?void 0:i.selectedScopes)?void 0:s.length)||0)>0?"text-c-1":"text-c-3"])},{default:ci((({open:e})=>{var t,r,i,s,l,c,u,d;return[Ul("div",yye," Scopes Selected "+Gn((null==(r=null==(t=a.flow)?void 0:t.selectedScopes)?void 0:r.length)||0)+" / "+Gn(Object.keys((null==(i=a.flow)?void 0:i.scopes)??{}).length||0),1),Ul("div",Oye,[(null==(l=null==(s=a.flow)?void 0:s.selectedScopes)?void 0:l.length)>4&&e&&(null==(u=null==(c=a.flow)?void 0:c.selectedScopes)?void 0:u.length)<Object.keys((null==(d=a.flow)?void 0:d.scopes)??{}).length?(Pl(),Nl(Ao(iz),{key:0,class:"text-c-3 hover:bg-b-2 hover:text-c-1 rounded px-1.5",size:"sm",onClick:Su(n,["stop"])},{default:ci((()=>o[0]||(o[0]=[ql(" Select All ")]))),_:1,__:[0]})):Vl("",!0),Fl(Ao(p5),{class:"text-c-3 group-hover/scopes-accordion:text-c-2",icon:e?"ChevronDown":"ChevronRight",size:"md"},null,8,["icon"])])]})),_:1},8,["class"]),Fl(Ao(VU),{as:"template"},{default:ci((()=>[Ul("table",wye,[(Pl(!0),Ml(Sl,null,ps(t.value,(({id:t,label:n,description:a})=>(Pl(),Nl(Ao(mye),{key:t,class:"text-c-2",onClick:n=>function(t,n){n?e.updateScheme(`flows.${e.flow.type}.selectedScopes`,[...r.value,t]):e.updateScheme(`flows.${e.flow.type}.selectedScopes`,r.value.filter((e=>e!==t)))}(t,!r.value.includes(t))},{default:ci((()=>[Fl(Ao(hye),{class:"hover:text-c-1 box-border !max-h-[initial] w-full cursor-pointer px-3 py-1.5"},{default:ci((()=>[a?(Pl(),Ml("div",xye,[Ul("span",kye,Gn(n),1),ql(" – "+Gn(a),1)])):Vl("",!0)])),_:2},1024),Fl(Ao(vye),{modelValue:r.value.includes(t),"onUpdate:modelValue":()=>{}},null,8,["modelValue"])])),_:2},1032,["onClick"])))),128))])])),_:1})]})),_:1})])])),_:1}))}}),_ye=["for"],Eye={class:"relative flex min-w-0 flex-1"},Tye=["readOnly","type","value"],Aye={key:1,class:"centered-y text-orange absolute right-7 text-xs"},Cye=Li({inheritAttrs:!1,__name:"DataTableInput",props:{id:{},type:{},containerClass:{},required:{type:Boolean,default:!1},modelValue:{},canAddCustomEnumValue:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},enum:{},min:{},max:{},environment:{},envVariables:{},workspace:{},description:{},lineWrapping:{type:Boolean,default:!1}},emits:["update:modelValue","inputFocus","inputBlur","selectVariable"],setup(e,{emit:t}){const r=e,n=t,a=So(!0),o=So(!1),i=So(null),s=()=>{o.value||n("inputBlur")},l=hc((()=>"password"===r.type?"text":r.type??"text")),c=()=>{var e,t;(null==(e=r.enum)||!e.length)&&!r.readOnly&&(null==(t=i.value)||t.focus())};return(e,t)=>(Pl(),Nl(hye,{class:zn(["relative flex",e.containerClass])},{default:ci((()=>[e.$slots.default?(Pl(),Ml("div",{key:0,class:"text-c-1 flex items-center pr-0 pl-3",for:e.id??"",onClick:c},[fs(e.$slots,"default",{},void 0,!0),t[5]||(t[5]=ql(": "))],8,_ye)):Vl("",!0),Ul("div",Eye,[r.enum&&r.enum.length?(Pl(),Nl(kme,{key:0,canAddCustomValue:r.canAddCustomEnumValue,modelValue:r.modelValue,value:r.enum,"onUpdate:modelValue":t[0]||(t[0]=e=>n("update:modelValue",e))},null,8,["canAddCustomValue","modelValue","value"])):(Pl(),Ml(Sl,{key:1},[a.value&&"password"===e.type?(Pl(),Ml("input",Gl({key:0},e.id?{...e.$attrs,id:e.id}:e.$attrs,{autocomplete:"off",class:["text-c-1 disabled:text-c-2 peer w-full min-w-0 border-none px-2 py-1.25 -outline-offset-1",{"scalar-password-input":"password"===e.type}],"data-1p-ignore":"",readOnly:e.readOnly,spellcheck:"false",type:l.value,value:e.modelValue,onInput:t[1]||(t[1]=e=>n("update:modelValue",e.target.value??""))}),null,16,Tye)):(Pl(),Nl(Bme,Gl({key:1},e.$attrs,{id:e.id,ref_key:"codeInput",ref:i,class:["text-c-1 disabled:text-c-2 peer w-full min-w-0 border-none -outline-offset-1",["password"===e.type&&e.description&&"pr-12",e.description&&"pr-8","password"===e.type&&"scalar-password-input"]],description:e.description,disableCloseBrackets:"",disableTabIndent:"",envVariables:e.envVariables,environment:e.environment,lineWrapping:!!e.lineWrapping,max:e.max,min:e.min,modelValue:e.modelValue??"",readOnly:e.readOnly,required:!!e.required,spellcheck:"false",type:l.value,workspace:e.workspace,onBlur:s,onFocus:t[2]||(t[2]=e=>n("inputFocus")),"onUpdate:modelValue":t[3]||(t[3]=e=>n("update:modelValue",e))}),null,16,["id","class","description","envVariables","environment","lineWrapping","max","min","modelValue","readOnly","required","type","workspace"]))],64))]),e.$slots.warning?(Pl(),Ml("div",Aye,[fs(e.$slots,"warning",{},void 0,!0)])):Vl("",!0),fs(e.$slots,"icon",{},void 0,!0),"password"===e.type?(Pl(),Nl(Ao(E5),{key:2,class:"-ml-.5 mr-1.25 h-6 w-6 self-center p-1.25",icon:a.value?"Show":"Hide",label:a.value?"Show Password":"Hide Password",onClick:t[4]||(t[4]=e=>a.value=!a.value)},null,8,["icon","label"])):Vl("",!0)])),_:3},8,["class"]))}}),Pye=P8(Cye,[["__scopeId","data-v-f7d71ae7"]]),Dye=["for"],$ye=Li({__name:"RequestAuthDataTableInput",props:{type:{},containerClass:{},required:{type:Boolean,default:!1},modelValue:{},readOnly:{type:Boolean,default:!1},environment:{},envVariables:{},workspace:{}},emits:["update:modelValue","inputFocus","inputBlur","selectVariable"],setup(e,{emit:t}){const r=e,n=t,a=ji();return(e,t)=>(Pl(),Nl(Pye,Gl({id:Ao(a),canAddCustomEnumValue:!r.readOnly,containerClass:r.containerClass},e.$attrs,{envVariables:r.envVariables,environment:r.environment,lineWrapping:"",modelValue:r.modelValue,readOnly:r.readOnly,required:r.required,type:r.type,workspace:r.workspace,onInputBlur:t[0]||(t[0]=e=>n("inputBlur")),onInputFocus:t[1]||(t[1]=e=>n("inputFocus")),onSelectVariable:t[2]||(t[2]=e=>n("selectVariable",e)),"onUpdate:modelValue":t[3]||(t[3]=e=>n("update:modelValue",e))}),{default:ci((()=>[Ul("label",{for:Ao(a)},[fs(e.$slots,"default")],8,Dye)])),icon:ci((()=>[fs(e.$slots,"icon")])),_:3},16,["id","canAddCustomEnumValue","containerClass","envVariables","environment","modelValue","readOnly","required","type","workspace"]))}}),Rye=async(e,t,{code:r,pkce:n,proxyUrl:a}={})=>{if(!e)return[new Error("OAuth2 flow was not defined"),null];const o=new URLSearchParams;o.set("client_id",e["x-scalar-client-id"]),t&&("clientCredentials"===e.type||"password"===e.type)&&o.set("scope",t),e.clientSecret&&o.set("client_secret",e.clientSecret),"x-scalar-redirect-uri"in e&&e["x-scalar-redirect-uri"]&&o.set("redirect_uri",e["x-scalar-redirect-uri"]),r?(o.set("code",r),o.set("grant_type","authorization_code"),n&&o.set("code_verifier",n.codeVerifier)):"password"===e.type?(o.set("grant_type","password"),o.set("username",e.username),o.set("password",e.password)):o.set("grant_type","client_credentials"),e["x-scalar-security-body"]&&Object.entries(e["x-scalar-security-body"]).forEach((([e,t])=>{t&&o.set(e,t)}));try{const t={"Content-Type":"application/x-www-form-urlencoded"};e.clientSecret&&(t.Authorization=`Basic ${btoa(`${e["x-scalar-client-id"]}:${e.clientSecret}`)}`);const r=JL(a,e.tokenUrl)?`${a}?${new URLSearchParams([["scalar_url",e.tokenUrl]]).toString()}`:e.tokenUrl;return[null,(await(await fetch(r,{method:"POST",headers:t,body:o})).json())[e["x-tokenName"]||"access_token"]]}catch{return[new Error("Failed to get an access token. Please check your credentials."),null]}},Mye={class:"flex h-8 items-center justify-end gap-2 border-t"},Nye={class:"flex h-8 w-full items-center justify-end border-t"},Iye=Li({__name:"OAuth2",props:{collection:{},environment:{},envVariables:{},flow:{},persistAuth:{type:Boolean,default:!1},scheme:{},server:{},workspace:{}},setup(e){const t=ez(),{toast:r}=qV(),n=Hve(),a=(t,r)=>pye(e.scheme.uid,t,r,n,e.persistAuth),o=async()=>{var n,o;if(t.isLoading||null==(n=e.collection)||!n.uid)return;if(!e.server)return void r("No server selected","error");t.startLoading();const[i,s]=await(async(e,t,r)=>{try{if(!e)return[new Error("Flow not found"),null];const n=e.selectedScopes.join(" ");if("clientCredentials"===e.type||"password"===e.type)return Rye(e,n,{proxyUrl:r});const a=(Math.random()+1).toString(36).substring(2,10),o=new URL(e.authorizationUrl);let i=null;if("implicit"===e.type)o.searchParams.set("response_type","token");else if("authorizationCode"===e.type&&(o.searchParams.set("response_type","code"),"no"!==e["x-usePkce"])){const t=(()=>{const e=new Uint8Array(32);return crypto.getRandomValues(e),btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")})(),r=await(async(e,t)=>{if("plain"===t)return e;const r=(new TextEncoder).encode(e),n=await crypto.subtle.digest("SHA-256",r);return btoa(String.fromCharCode(...new Uint8Array(n))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")})(t,e["x-usePkce"]);i={codeVerifier:t,codeChallenge:r,codeChallengeMethod:"SHA-256"===e["x-usePkce"]?"S256":"plain"},o.searchParams.set("code_challenge",r),o.searchParams.set("code_challenge_method",i.codeChallengeMethod)}if(e["x-scalar-redirect-uri"].startsWith("/")){const r=t.url||window.location.origin+window.location.pathname,n=new URL(e["x-scalar-redirect-uri"],r).toString();o.searchParams.set("redirect_uri",n)}else o.searchParams.set("redirect_uri",e["x-scalar-redirect-uri"]);e["x-scalar-security-query"]&&Object.keys(e["x-scalar-security-query"]).forEach((t=>{var r;const n=null==(r=e["x-scalar-security-query"])?void 0:r[t];n&&o.searchParams.set(t,n)})),o.searchParams.set("client_id",e["x-scalar-client-id"]),o.searchParams.set("state",a),n&&o.searchParams.set("scope",n);const s=window.open(o,"openAuth2Window","left=100,top=100,width=800,height=600");return s?new Promise((t=>{const o=setInterval((()=>{var l;let c=null,u=null,d=null,p=null;try{const t=new URL(s.location.href).searchParams,r=e["x-tokenName"]||"access_token";c=t.get(r),u=t.get("code"),d=t.get("error"),p=t.get("error_description");const n=new URLSearchParams(s.location.href.split("#")[1]);c||(c=n.get(r)),u||(u=n.get("code")),d||(d=n.get("error")),p||(p=n.get("error_description"))}catch{}if(s.closed||c||u||d)if(clearInterval(o),s.close(),d)t([new Error(`OAuth error: ${d}${p?` (${p})`:""}`),null]);else if(c){const e=null==(l=s.location.href.match(/state=([^&]*)/))?void 0:l[1];t(e===a?[null,c]:[new Error("State mismatch"),null])}else u?new URL(s.location.href).searchParams.get("state")===a?Rye(e,n,{code:u,pkce:i,proxyUrl:r}).then(t):t([new Error("State mismatch"),null]):(clearInterval(o),t([new Error("Window was closed without granting authorization"),null]))}),200)})):[new Error("Failed to open auth window"),null]}catch{return[new Error("Failed to authorize oauth2 flow"),null]}})(e.flow,e.server,null==(o=e.workspace)?void 0:o.proxyUrl).finally((()=>t.stopLoading()));s?a(`flows.${e.flow.type}.token`,s):(console.error(i),r((null==i?void 0:i.message)??"Failed to authorize","error"))},i={environment:e.environment,envVariables:e.envVariables,workspace:e.workspace};return(e,r)=>(Pl(),Ml(Sl,null,[e.flow.token?(Pl(),Ml(Sl,{key:0},[Fl(Ao(mye),null,{default:ci((()=>[Fl($ye,Gl(i,{class:"border-r-transparent",modelValue:e.flow.token,placeholder:"QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",type:"password","onUpdate:modelValue":r[0]||(r[0]=t=>a(`flows.${e.flow.type}.token`,t))}),{default:ci((()=>r[10]||(r[10]=[ql(" Access Token ")]))),_:1,__:[10]},16,["modelValue"])])),_:1}),Fl(Ao(mye),{class:"min-w-full"},{default:ci((()=>[Ul("div",Mye,[Fl(Ao(iz),{class:"mr-1 p-0 px-2 py-0.5",loading:Ao(t),size:"sm",variant:"outlined",onClick:r[1]||(r[1]=t=>a(`flows.${e.flow.type}.token`,""))},{default:ci((()=>r[11]||(r[11]=[ql(" Clear ")]))),_:1,__:[11]},8,["loading"])])])),_:1})],64)):(Pl(),Ml(Sl,{key:1},[Fl(Ao(mye),null,{default:ci((()=>["authorizationUrl"in e.flow?(Pl(),Nl($ye,Gl({key:0},i,{containerClass:"border-r-0",modelValue:e.flow.authorizationUrl,placeholder:"https://galaxy.scalar.com/authorize","onUpdate:modelValue":r[2]||(r[2]=t=>a(`flows.${e.flow.type}.authorizationUrl`,t))}),{default:ci((()=>r[12]||(r[12]=[ql(" Auth URL ")]))),_:1,__:[12]},16,["modelValue"])):Vl("",!0),"tokenUrl"in e.flow?(Pl(),Nl($ye,Gl({key:1},i,{modelValue:e.flow.tokenUrl,placeholder:"https://galaxy.scalar.com/token","onUpdate:modelValue":r[3]||(r[3]=t=>a(`flows.${e.flow.type}.tokenUrl`,t))}),{default:ci((()=>r[13]||(r[13]=[ql(" Token URL ")]))),_:1,__:[13]},16,["modelValue"])):Vl("",!0)])),_:1}),"x-scalar-redirect-uri"in e.flow?(Pl(),Nl(Ao(mye),{key:0},{default:ci((()=>[Fl($ye,Gl(i,{modelValue:e.flow["x-scalar-redirect-uri"],placeholder:"https://galaxy.scalar.com/callback","onUpdate:modelValue":r[4]||(r[4]=t=>a(`flows.${e.flow.type}.x-scalar-redirect-uri`,t))}),{default:ci((()=>r[14]||(r[14]=[ql(" Redirect URL ")]))),_:1,__:[14]},16,["modelValue"])])),_:1})):Vl("",!0),"password"===e.flow.type?(Pl(),Ml(Sl,{key:1},[Fl(Ao(mye),null,{default:ci((()=>[Fl($ye,Gl(i,{class:"text-c-2",modelValue:e.flow.username,placeholder:"janedoe","onUpdate:modelValue":r[5]||(r[5]=t=>a(`flows.${e.flow.type}.username`,t))}),{default:ci((()=>r[15]||(r[15]=[ql(" Username ")]))),_:1,__:[15]},16,["modelValue"])])),_:1}),Fl(Ao(mye),null,{default:ci((()=>[Fl($ye,Gl(i,{modelValue:e.flow.password,placeholder:"********",type:"password","onUpdate:modelValue":r[6]||(r[6]=t=>a(`flows.${e.flow.type}.password`,t))}),{default:ci((()=>r[16]||(r[16]=[ql(" Password ")]))),_:1,__:[16]},16,["modelValue"])])),_:1})],64)):Vl("",!0),Fl(Ao(mye),null,{default:ci((()=>[Fl($ye,Gl(i,{modelValue:e.flow["x-scalar-client-id"],placeholder:"12345","onUpdate:modelValue":r[7]||(r[7]=t=>a(`flows.${e.flow.type}.x-scalar-client-id`,t))}),{default:ci((()=>r[17]||(r[17]=[ql(" Client ID ")]))),_:1,__:[17]},16,["modelValue"])])),_:1}),"clientSecret"in e.flow?(Pl(),Nl(Ao(mye),{key:2},{default:ci((()=>[Fl($ye,Gl(i,{modelValue:e.flow.clientSecret,placeholder:"XYZ123",type:"password","onUpdate:modelValue":r[8]||(r[8]=t=>a(`flows.${e.flow.type}.clientSecret`,t))}),{default:ci((()=>r[18]||(r[18]=[ql(" Client Secret ")]))),_:1,__:[18]},16,["modelValue"])])),_:1})):Vl("",!0),"x-usePkce"in e.flow?(Pl(),Nl(Ao(mye),{key:3},{default:ci((()=>[Fl($ye,Gl(i,{enum:Ao(pge),modelValue:e.flow["x-usePkce"],readOnly:"","onUpdate:modelValue":r[9]||(r[9]=t=>a(`flows.${e.flow.type}.x-usePkce`,t))}),{default:ci((()=>r[19]||(r[19]=[ql(" Use PKCE ")]))),_:1,__:[19]},16,["enum","modelValue"])])),_:1})):Vl("",!0),Object.keys(e.flow.scopes??{}).length?(Pl(),Nl(Ao(mye),{key:4},{default:ci((()=>[Fl(Sye,{flow:e.flow,updateScheme:a},null,8,["flow"])])),_:1})):Vl("",!0)],64)),e.flow.token?Vl("",!0):(Pl(),Nl(Ao(mye),{key:2,class:"min-w-full"},{default:ci((()=>[Ul("div",Nye,[Fl(Ao(iz),{class:"mr-0.75 p-0 px-2 py-0.5",loading:Ao(t),size:"sm",variant:"outlined",onClick:o},{default:ci((()=>r[20]||(r[20]=[ql(" Authorize ")]))),_:1,__:[20]},8,["loading"])])])),_:1}))],64))}}),Lye={key:0,class:"flex min-h-8 border-t text-base"},jye={class:"flex h-8 max-w-full gap-2.5 overflow-x-auto px-3"},Bye=["onClick"],Uye={class:"relative z-10"},Fye=Li({__name:"RequestAuthTab",props:{collection:{},environment:{},envVariables:{},layout:{},persistAuth:{type:Boolean,default:!1},securitySchemeUids:{},server:{},workspace:{}},setup(e){const t=Hve(),{collectionMutators:r,securitySchemes:n,securitySchemeMutators:a}=t,o=hc((()=>e.securitySchemeUids.map((e=>({scheme:n[e]}))))),i=So(""),s=e=>{const t=e.description?`: ${e.description}`:"",r=`${Pn(e.nameKey)}${t||`: ${e.type}`}`;if("apiKey"===e.type)return`${Pn(e.nameKey)}${t||`: ${e.in}`}`;if("oauth2"===e.type){const r=Object.values(e.flows??{})[0];return`${Pn(e.nameKey)}: ${i.value?i.value:(null==r?void 0:r.type)??""}${t}`}return"http"===e.type?`${Pn(e.nameKey)}: ${e.scheme}${t}`:`${r}${t}`},l=(r,n,a)=>{pye(r,n,a,t,e.persistAuth)};Yi((()=>{if(!e.persistAuth)return;const t=JSON.parse(zL().getItem(FL)??"{}"),o=Object.keys(n).reduce(((e,t)=>{const r=n[t];return r&&(e[r.nameKey]=r.uid),e}),{});Object.entries(t).forEach((([e,t])=>{const r=o[e];r&&Object.entries(t).forEach((([e,t])=>{a.edit(r,e,t)}))}));try{const t=JSON.parse(zL().getItem(QL)??"").map((e=>Array.isArray(e)?e.map((e=>o[e])).filter(mj):o[e])).filter(mj);r.edit(e.collection.uid,"selectedSecuritySchemeUids",t)}catch{}}));const c={environment:e.environment,envVariables:e.envVariables,workspace:e.workspace};return(e,t)=>(Pl(!0),Ml(Sl,null,ps(o.value,(({scheme:r})=>(Pl(),Ml(Sl,{key:null==r?void 0:r.uid},[o.value.length>1?(Pl(),Nl(Ao(mye),{key:0,class:zn({"request-example-references-header":"reference"===e.layout})},{default:ci((()=>[Fl(Ao(hye),{class:zn(["text-c-2 flex items-center pl-3","reference"===e.layout&&"border-b"])},{default:ci((()=>[ql(Gn(s(r)),1)])),_:2},1032,["class"])])),_:2},1032,["class"])):Vl("",!0),null!=r&&r.description&&o.value.length<=1?(Pl(),Nl(Ao(mye),{key:1},{default:ci((()=>[Fl(Ao(hye),{"aria-label":r.description,class:"text-c-2 auth-description-container group/auth flex items-center whitespace-nowrap outline-none hover:whitespace-normal"},{default:ci((()=>[Fl(Ao(D5),{class:"auth-description bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full px-3 py-1.25 *:first:line-clamp-1 *:first:text-ellipsis group-hover/auth:*:first:line-clamp-none",value:r.description},null,8,["value"])])),_:2},1032,["aria-label"])])),_:2},1024)):Vl("",!0),"http"===(null==r?void 0:r.type)?(Pl(),Ml(Sl,{key:2},["bearer"===r.scheme?(Pl(),Nl(Ao(mye),{key:0},{default:ci((()=>[Fl($ye,Gl({ref_for:!0},c,{containerClass:"reference"===e.layout&&"border-t",modelValue:r.token,placeholder:"Token",type:"password","onUpdate:modelValue":e=>l(r.uid,"token",e)}),{default:ci((()=>t[0]||(t[0]=[ql(" Bearer Token ")]))),_:2,__:[0]},1040,["containerClass","modelValue","onUpdate:modelValue"])])),_:2},1024)):"basic"===(null==r?void 0:r.scheme)?(Pl(),Ml(Sl,{key:1},[Fl(Ao(mye),null,{default:ci((()=>[Fl($ye,Gl({ref_for:!0},c,{class:"text-c-2",containerClass:"reference"===e.layout&&"auth-blend-required border-t",modelValue:r.username,placeholder:"janedoe",required:"","onUpdate:modelValue":e=>l(r.uid,"username",e)}),{default:ci((()=>t[1]||(t[1]=[ql(" Username ")]))),_:2,__:[1]},1040,["containerClass","modelValue","onUpdate:modelValue"])])),_:2},1024),Fl(Ao(mye),null,{default:ci((()=>[Fl($ye,Gl({ref_for:!0},c,{modelValue:r.password,placeholder:"********",type:"password","onUpdate:modelValue":e=>l(r.uid,"password",e)}),{default:ci((()=>t[2]||(t[2]=[ql(" Password ")]))),_:2,__:[2]},1040,["modelValue","onUpdate:modelValue"])])),_:2},1024)],64)):Vl("",!0)],64)):"apiKey"===(null==r?void 0:r.type)?(Pl(),Ml(Sl,{key:3},[Fl(Ao(mye),null,{default:ci((()=>[Fl($ye,Gl({ref_for:!0},c,{containerClass:"reference"===e.layout&&"border-t",modelValue:r.name,placeholder:"api-key","onUpdate:modelValue":e=>l(r.uid,"name",e)}),{default:ci((()=>t[3]||(t[3]=[ql(" Name ")]))),_:2,__:[3]},1040,["containerClass","modelValue","onUpdate:modelValue"])])),_:2},1024),Fl(Ao(mye),null,{default:ci((()=>[Fl($ye,Gl({ref_for:!0},c,{modelValue:r.value,placeholder:"QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",type:"password","onUpdate:modelValue":e=>l(r.uid,"value",e)}),{default:ci((()=>t[4]||(t[4]=[ql(" Value ")]))),_:2,__:[4]},1040,["modelValue","onUpdate:modelValue"])])),_:2},1024)],64)):"oauth2"===(null==r?void 0:r.type)?(Pl(),Ml(Sl,{key:4},[Fl(Ao(mye),null,{default:ci((()=>[Object.keys(r.flows).length>1?(Pl(),Ml("div",Lye,[Ul("div",jye,[(Pl(!0),Ml(Sl,null,ps(null==r?void 0:r.flows,((t,r,n)=>(Pl(),Ml("button",{key:r,class:zn(["floating-bg text-c-3 relative cursor-pointer border-b-[1px] border-transparent py-1 text-base font-medium",{"!text-c-1 !rounded-none border-b-[1px] !border-current":"reference"!==e.layout&&(i.value===r||0===n&&!i.value),"!text-c-1 !rounded-none border-b-[1px] !border-current opacity-100":"reference"===e.layout&&(i.value===r||0===n&&!i.value)}]),type:"button",onClick:e=>i.value=r},[Ul("span",Uye,Gn(r),1)],10,Bye)))),128))])])):Vl("",!0)])),_:2},1024),(Pl(!0),Ml(Sl,null,ps(null==r?void 0:r.flows,((t,n,a)=>(Pl(),Ml(Sl,{key:n},[i.value===n||0===a&&!i.value?(Pl(),Nl(Iye,Gl({key:0,ref_for:!0},c,{collection:e.collection,flow:t,persistAuth:e.persistAuth,scheme:r,server:e.server,workspace:e.workspace}),null,16,["collection","flow","persistAuth","scheme","server","workspace"])):Vl("",!0)],64)))),128))],64)):"openIdConnect"===(null==r?void 0:r.type)?(Pl(),Ml("div",{key:5,class:zn(["text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-t border-b-0 px-4 text-base",{"rounded-b-lg":"reference"===e.layout}])}," Coming soon ",2)):Vl("",!0)],64)))),128))}}),Qye=P8(Fye,[["__scopeId","data-v-0b5ee843"]]),zye=["role"],qye={key:0,class:"sr-only"},Hye=Li({__name:"DataTable",props:{columns:{},scroll:{type:Boolean},presentational:{type:Boolean}},setup(e){const{cx:t}=GQ();return(e,r)=>(Pl(),Ml("div",qn(Ql(Ao(t)(e.scroll?"overflow-x-auto custom-scroll":"overflow-visible","scalar-data-table"))),[Ul("table",{class:zn(["mb-0 grid min-h-8 auto-rows-auto",{"w-max min-w-full":e.scroll}]),role:e.presentational?"presentation":"table",style:jn({gridTemplateColumns:e.columns.map((e=>e||"1fr")).join(" ")})},[e.$slots.caption?(Pl(),Ml("caption",qye,[fs(e.$slots,"caption")])):Vl("",!0),fs(e.$slots,"default")],14,zye)],16))}}),Vye=["onClick"],Zye={class:"relative z-10 font-medium whitespace-nowrap"},Wye={key:0,class:"absolute inset-x-1 bottom-[var(--scalar-border-width)] left-1/2 z-1 h-px w-full -translate-x-1/2 bg-current"},Xye=Li({__name:"RequestAuthDataTable",props:{collection:{},environment:{},envVariables:{},layout:{default:"client"},persistAuth:{type:Boolean,default:!1},selectedSchemeOptions:{default:()=>[]},server:{},workspace:{}},setup(e){const t=w8(),r=So(null),n=So(0),a=hc((()=>{const t=e.selectedSchemeOptions[n.value];if(!t)return[];const r=null==t?void 0:t.id.split(",");return r.length>1?r:[t.id]}));return ul((()=>e.selectedSchemeOptions),(e=>{e[n.value]||(n.value=Math.max(0,n.value-1))})),(e,o)=>(Pl(),Ml("form",{onSubmit:o[1]||(o[1]=Su((()=>{}),["prevent"]))},[e.selectedSchemeOptions.length>1?(Pl(),Ml("div",{key:0,class:zn(["box-content flex h-8 flex-wrap gap-x-2.5 overflow-hidden border border-b-0 px-3","client"===e.layout&&"border-x-0"])},[(Pl(!0),Ml(Sl,null,ps(e.selectedSchemeOptions,((e,t)=>(Pl(),Ml("div",{key:e.id,class:zn(["relative z-1 -mb-[var(--scalar-border-width)] flex h-8 cursor-pointer",[n.value===t?"text-c-1":"text-c-3"]])},[Ul("button",{class:"floating-bg relative cursor-pointer border-b-[1px] border-transparent py-1 text-sm font-medium",type:"button",onClick:e=>n.value=t},[Ul("span",Zye,Gn(e.label),1)],8,Vye),n.value===t?(Pl(),Ml("div",Wye)):Vl("",!0)],2)))),128))],2)):Vl("",!0),a.value.length?(Pl(),Nl(Ao(Hye),{key:1,class:zn(["flex-1","reference"===e.layout&&"bg-b-1 rounded-b-lg border border-t-0"]),columns:[""],presentational:""},{default:ci((()=>[Fl(Qye,{collection:e.collection,envVariables:e.envVariables,environment:e.environment,layout:e.layout,persistAuth:e.persistAuth,securitySchemeUids:a.value,server:e.server,workspace:e.workspace},null,8,["collection","envVariables","environment","layout","persistAuth","securitySchemeUids","server","workspace"])])),_:1},8,["class"])):(Pl(),Ml("div",{key:2,class:zn(["text-c-3 bg-b-1 flex min-h-16 items-center justify-center border-t px-4 text-sm","reference"===e.layout&&"min-h-[calc(4rem+0.5px)] rounded-b-lg border"])}," No authentication selected ",2)),Fl(dye,{scheme:r.value,state:Ao(t),onClose:o[0]||(o[0]=e=>Ao(t).hide())},null,8,["scheme","state"])],32))}}),Gye=P8(Xye,[["__scopeId","data-v-3e25725c"]]),Yye=["aria-labelledby"],Kye={class:"text-c-1 m-0 flex flex-1 items-center gap-1.5 leading-[20px]"},Jye=["id"],eOe={key:0,class:"sr-only"},tOe={key:0,class:"bg-b-2 text-c-2 inline-flex h-5 w-5 items-center justify-center rounded-full border text-xs font-semibold"},rOe={class:"sr-only"},nOe={key:0,class:"ui-not-open:invisible flex items-center gap-2 pr-2"},aOe=Li({__name:"ViewLayoutCollapse",props:{defaultOpen:{type:Boolean,default:!0},itemCount:{default:0},layout:{default:"client"}},emits:["update:modelValue"],setup(e,{emit:t}){const r=t,n=ji(),a=So(e.defaultOpen),o=()=>{a.value=!a.value,r("update:modelValue",a.value)};return Yi((()=>{r("update:modelValue",a.value)})),(e,t)=>(Pl(),Nl(Ao(qU),{as:"div",class:zn(["group/collapse focus-within:text-c-1 text-c-2 border-b",{"last-of-type:first-of-type:border-b-0":"reference"===e.layout}]),defaultOpen:e.defaultOpen,static:"reference"===e.layout||void 0,onClick:o},{default:ci((({open:t})=>[Ul("section",{"aria-labelledby":Ao(n),class:"contents"},[Ul("div",{class:zn(["bg-b-2 flex items-center","reference"===e.layout&&"rounded-t-lg border border-b-0"])},[Fl(Ao(HU),{class:zn(["hover:text-c-1 group box-content flex max-h-8 flex-1 items-center gap-2.5 overflow-hidden px-1 py-1.5 text-base font-medium outline-none md:px-1.5 xl:pr-0.5 xl:pl-2",{"!pl-3":"reference"===e.layout}]),disabled:"reference"===e.layout},{default:ci((()=>["reference"!==e.layout?(Pl(),Nl(Ao(p5),{key:0,class:zn(["text-c-3 group-hover:text-c-1 ui-open:rotate-90 ui-not-open:rotate-0 rounded-px outline-offset-2 group-focus-visible:outline"]),icon:"ChevronRight",size:"md"})):Vl("",!0),Ul("h2",Kye,[Ul("span",{id:Ao(n),class:"contents"},[fs(e.$slots,"title",{open:t}),t?Vl("",!0):(Pl(),Ml("span",eOe," (Collapsed) "))],8,Jye),!t&&e.itemCount?(Pl(),Ml("span",tOe,[ql(Gn(e.itemCount)+" ",1),Ul("span",rOe,"Item"+Gn(1===e.itemCount?"":"s"),1)])):Vl("",!0)])])),_:2},1032,["class","disabled"]),e.$slots.actions?(Pl(),Ml("div",nOe,[fs(e.$slots,"actions",{open:t})])):Vl("",!0)],2),Fl(Ao(VU),Gl(e.$attrs,{class:"diclosure-panel h-full max-h-fit rounded-b"}),{default:ci((()=>[fs(e.$slots,"default",{open:t})])),_:2},1040)],8,Yye)])),_:3},8,["class","defaultOpen","static"]))}}),oOe=Object.entries({apiKeyCookie:{label:"API Key in Cookies",payload:{type:"apiKey",in:"cookie",nameKey:"apiKeyCookie"}},apiKeyHeader:{label:"API Key in Headers",payload:{type:"apiKey",in:"header",nameKey:"apiKeyHeader"}},apiKeyQuery:{label:"API Key in Query Params",payload:{type:"apiKey",in:"query",nameKey:"apiKeyQuery"}},httpBasic:{label:"HTTP Basic",payload:{type:"http",scheme:"basic",nameKey:"httpBasic"}},httpBearer:{label:"HTTP Bearer",payload:{type:"http",scheme:"bearer",nameKey:"httpBearer"}},oauth2Implicit:{label:"Oauth2 Implicit Flow",payload:{type:"oauth2",nameKey:"oauth2Implicit",flows:{implicit:{type:"implicit"}}}},oauth2Password:{label:"Oauth2 Password Flow",payload:{type:"oauth2",nameKey:"oauth2Password",flows:{password:{type:"password"}}}},oauth2ClientCredentials:{label:"Oauth2 Client Credentials",payload:{type:"oauth2",nameKey:"oauth2ClientCredentials",flows:{clientCredentials:{type:"clientCredentials"}}}},oauth2AuthorizationFlow:{label:"Oauth2 Authorization Code",payload:{type:"oauth2",nameKey:"oauth2AuthorizationFlow",flows:{authorizationCode:{type:"authorizationCode"}}}}}).map((([e,t])=>({id:e,isDeletable:!1,...t}))),iOe=e=>({id:e.uid,label:"openIdConnect"===e.type?`${e.nameKey} (coming soon)`:e.nameKey}),sOe=(e,t)=>iOe(e.reduce(((e,r,n)=>{const a=t[r];return a&&(e.nameKey+=`${n>0?" & ":""}${a.nameKey}`,e.uid=`${e.uid}${n>0?",":""}${a.uid}`),e}),{type:"complex",nameKey:"",uid:""})),lOe=["id"],cOe={class:"absolute right-1 flex flex-1"},uOe={class:"text-c-1"},dOe=Li({__name:"RequestAuth",props:{collection:{},environment:{},envVariables:{},layout:{},operation:{},persistAuth:{type:Boolean,default:!1},selectedSecuritySchemeUids:{},server:{},title:{},workspace:{}},setup(e){const{layout:t}=Pme(),{securitySchemes:r,securitySchemeMutators:n,requestMutators:a,collectionMutators:o}=Hve(),i=ji(),s=So(null),l=w8(),c=So(null),u=So(!1),d=hc((()=>{const t=((e,t)=>{var r;return"[{}]"===JSON.stringify(null==e?void 0:e.security)&&null!=(r=null==t?void 0:t.security)&&r.length?null!=t&&t.security.find((e=>"{}"===JSON.stringify(e)))?t.security:[...t.security,{}]:(null==e?void 0:e.security)??(null==t?void 0:t.security)??[]})(e.operation,e.collection);return{filteredRequirements:t.filter((e=>Object.keys(e).length)),requirements:t}})),p=hc((()=>{const{filteredRequirements:e,requirements:t}=d.value;if(!t.length)return null;const r=!t.some((e=>Object.keys(e).length>1))&&e.length<t.length;return{icon:r?"Unlock":"Lock",text:r?"Optional":"Required"}})),h=hc((()=>e.selectedSecuritySchemeUids.map((e=>{if(Array.isArray(e))return sOe(e,r);const t=r[e??""];return t?iOe(t):void 0})).filter(mj)));function f(t){var r;const a=t.find((e=>e.payload)),o=t.filter((e=>!e.payload)).map((({id:e})=>{const t=e.split(",");return t.length>1?t:e}));if(null!=a&&a.payload){const t=n.add(a.payload,null==(r=e.collection)?void 0:r.uid);t&&o.push(t.uid)}m(o)}const m=t=>{var n;if(e.collection.useCollectionSecurity){if(o.edit(e.collection.uid,"selectedSecuritySchemeUids",t),!e.persistAuth)return;const n=t.map((e=>{var t;return Array.isArray(e)?e.map((e=>{var t;return null==(t=r[e])?void 0:t.nameKey})):null==(t=r[e])?void 0:t.nameKey}));zL().setItem(QL,JSON.stringify(n))}else null!=(n=e.operation)&&n.uid&&a.edit(e.operation.uid,"selectedSecuritySchemeUids",t)};function g({id:e,label:t}){c.value={id:e,label:t},l.show()}const v=hc((()=>{var n;return((e,t,r,n=!1)=>{{const a=t.reduce(((e,t)=>{const n=r[t];return n&&(e[n.nameKey]=n),e}),{}),o=e.flatMap((e=>{const t=Object.keys(e);if(t.length>1){const e=t.map((e=>{var t;return null==(t=a[e])?void 0:t.uid})).filter(mj);return sOe(e,r)}if(t[0]){const e=a[t[0]];if(e)return iOe(e)}return[]})),i=t.filter((e=>!o.some((t=>t.id===e)))).map((e=>{const t=r[e];return t?iOe(t):null})).filter(mj),s=[{label:"Required authentication",options:o},{label:"Available authentication",options:i}];return n?o.length?s:i:(s.push({label:"Add new authentication",options:oOe}),s)}})(d.value.filteredRequirements,(null==(n=e.collection)?void 0:n.securitySchemes)??[],r,"modal"===t||"reference"===e.layout)})),b=e=>{var t;u.value&&e.stopPropagation(),null==(t=s.value)||t.$el.click()};return(r,n)=>(Pl(),Nl(aOe,{class:"group/params relative",itemCount:h.value.length,layout:r.layout,"onUpdate:modelValue":n[2]||(n[2]=e=>u.value=e)},{title:ci((()=>[Ul("div",{id:Ao(i),class:"inline-flex items-center gap-0.5 leading-[20px]"},[Ul("span",null,Gn(r.title),1),p.value?(Pl(),Ml("span",{key:0,class:zn(["text-c-3 hover:bg-b-3 hover:text-c-1 -mr-1 cursor-pointer rounded px-1 py-0.5 text-xs leading-[normal]",{"text-c-1":"Required"===p.value.text}]),onClick:b},Gn(p.value.text),3)):Vl("",!0)],8,lOe)])),actions:ci((()=>[Ul("div",cOe,[Fl(Ao(XW),{class:"w-72 text-xs",isDeletable:"modal"!==Ao(t)&&"reference"!==r.layout,modelValue:h.value,teleport:"",multiple:"",placement:"bottom-end",options:v.value,onDelete:g,"onUpdate:modelValue":f},{default:ci((()=>[Fl(Ao(iz),{ref_key:"comboboxButtonRef",ref:s,"aria-describedby":Ao(i),class:"hover:bg-b-3 text-c-1 hover:text-c-1 h-fit px-1.5 py-0.25 font-normal",fullWidth:"",variant:"ghost"},{default:ci((()=>{var e;return[Ul("div",uOe,[0===h.value.length?(Pl(),Ml(Sl,{key:0},[n[3]||(n[3]=Ul("span",{class:"sr-only"},"Select",-1)),n[4]||(n[4]=ql(" Auth Type "))],64)):1===h.value.length?(Pl(),Ml(Sl,{key:1},[n[5]||(n[5]=Ul("span",{class:"sr-only"},"Selected Auth Type:",-1)),ql(" "+Gn(null==(e=h.value[0])?void 0:e.label),1)],64)):(Pl(),Ml(Sl,{key:2},[n[6]||(n[6]=ql(" Multiple ")),n[7]||(n[7]=Ul("span",{class:"sr-only"},"Auth Types Selected",-1))],64))]),Fl(Ao(p5),{class:"ml-1 shrink-0",icon:"ChevronDown",size:"sm"})]})),_:1},8,["aria-describedby"])])),_:1},8,["isDeletable","modelValue","options"])])])),default:ci((()=>[Fl(Gye,{collection:r.collection,envVariables:r.envVariables,environment:r.environment,layout:r.layout,persistAuth:r.persistAuth,selectedSchemeOptions:h.value,server:r.server,workspace:r.workspace},null,8,["collection","envVariables","environment","layout","persistAuth","selectedSchemeOptions","server","workspace"]),Fl(dye,{scheme:c.value,state:Ao(l),onClose:n[0]||(n[0]=e=>Ao(l).hide()),onDelete:n[1]||(n[1]=t=>{var r;return(t=>{var r;if(!t)return;const n=e.selectedSecuritySchemeUids.filter((e=>{const r=t.split(",");return r.length>1&&Array.isArray(e)&&r.length===e.length?e.every((e=>!r.includes(e))):e!==t}));m(n),null==(r=s.value)||r.$el.focus(),l.hide()})(null==(r=c.value)?void 0:r.id)})},null,8,["scheme","state"])])),_:1},8,["itemCount","layout"]))}}),pOe=P8(dOe,[["__scopeId","data-v-ae6b8295"]]),hOe=(e,t)=>(Object.keys(e).forEach((r=>{Object.hasOwn(t,r)||delete e[r]})),Object.assign(e,t),e),fOe=(e=[])=>{const t=new URLSearchParams;return e.forEach((e=>{t.append(e.name,e.value)})),t};class mOe{constructor({indent:e,join:t}={}){this.postProcessors=[],this.code=[],this.indentationCharacter="",this.lineJoin="\n",this.indentLine=(e,t=0)=>`${this.indentationCharacter.repeat(t)}${e}`,this.unshift=(e,t)=>{const r=this.indentLine(e,t);this.code.unshift(r)},this.push=(e,t)=>{const r=this.indentLine(e,t);this.code.push(r)},this.blank=()=>{this.code.push("")},this.join=()=>{const e=this.code.join(this.lineJoin);return this.postProcessors.reduce(((e,t)=>t(e)),e)},this.addPostProcessor=e=>{this.postProcessors=[...this.postProcessors,e]},this.indentationCharacter=e||"",this.lineJoin=null!=t?t:"\n"}}function gOe(e,t={}){const{delimiter:r='"',escapeChar:n="\\",escapeNewlines:a=!0}=t;return[...e.toString()].map((e=>"\b"===e?`${n}b`:"\t"===e?`${n}t`:"\n"===e?a?`${n}n`:e:"\f"===e?`${n}f`:"\r"===e?a?`${n}r`:e:e===n?n+n:e===r?n+r:e<" "||e>"~"?JSON.stringify(e).slice(1,-1):e)).join("")}const vOe=e=>gOe(e,{delimiter:"'"}),bOe=e=>gOe(e,{delimiter:'"'}),yOe={info:{key:"libcurl",title:"Libcurl",link:"http://curl.haxx.se/libcurl",description:"Simple REST and HTTP API Client for C"},convert:({method:e,fullUrl:t,headersObj:r,allHeaders:n,postData:a})=>{const{push:o,blank:i,join:s}=new mOe({indent:" "});o("CURL *hnd = curl_easy_init();"),i(),o(`curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "${e.toUpperCase()}");`),o(`curl_easy_setopt(hnd, CURLOPT_URL, "${t}");`);const l=Object.keys(r);return l.length&&(i(),o("struct curl_slist *headers = NULL;"),l.forEach((e=>{r[e]?o(`headers = curl_slist_append(headers, "${e}: ${bOe(r[e])}");`):o(`headers = curl_slist_append(headers, "${e};");`)})),o("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")),n.cookie&&(i(),o(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${n.cookie}");`)),null!=a&&(i(),a.text?o(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(a.text)});`):"application/x-www-form-urlencoded"===a.mimeType&&a.params?o(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "${fOe(a.params).toString()}");`):"multipart/form-data"===a.mimeType&&a.params&&(o("curl_mime *mime = curl_mime_init(hnd);"),a.params.forEach((e=>{i(),o("{"),o("curl_mimepart *part = curl_mime_addpart(mime);",1),e.name&&o(`curl_mime_name(part, "${e.name}");`,1),e.fileName?o(`curl_mime_filedata(part, "${e.fileName}");`,1):e.value&&o(`curl_mime_data(part, "${bOe(e.value)}", CURL_ZERO_TERMINATED);`,1),o("}")})),i(),o("curl_easy_setopt(hnd, CURLOPT_MIMEPOST, mime);"))),i(),o("CURLcode ret = curl_easy_perform(hnd);"),s()}};function OOe(e,t){var r,n,a,o;const i=new URL((null==t?void 0:t.url)??""),s="/"===i.pathname?i.origin:i.toString(),l={method:(null==t?void 0:t.method)??"GET",url:s,httpVersion:"HTTP/1.1",cookies:[],headers:(null==t?void 0:t.headers)??[],headersSize:-1,bodySize:-1,queryString:Array.from(i.searchParams.entries()).map((([e,t])=>({name:e,value:t}))),postData:null==t?void 0:t.postData},c=((null==l?void 0:l.headers)??[]).reduce(((e,t)=>({...e,[t.name]:t.value})),{}),u=(l.queryString??[]).reduce(((e,t)=>({...e,[t.name]:t.value})),{}),d=(l.cookies??[]).reduce(((e,t)=>({...e,[t.name]:t.value})),{}),p=new URL(l.url),h={protocol:p.protocol,hostname:p.hostname,host:p.hostname,port:p.port,pathname:p.pathname.split("/").map((e=>encodeURIComponent(decodeURIComponent(e)))).join("/")+p.search,path:p.pathname.split("/").map((e=>encodeURIComponent(decodeURIComponent(e)))).join("/")+p.search,search:p.search,hash:p.hash,href:p.href,origin:p.origin,password:p.password,searchParams:p.searchParams,username:p.username,toString:p.toString,toJSON:()=>p.toJSON()},f={url:l.url,uriObj:h,method:(null==(r=l.method)?void 0:r.toLocaleUpperCase())??"GET",httpVersion:l.httpVersion,cookies:l.cookies??[],headers:l.headers??[],headersSize:l.headersSize,headersObj:c??{},bodySize:l.bodySize,queryString:l.queryString??[],postData:l.postData?{mimeType:l.postData.mimeType??"application/json",text:l.postData.text??"",params:l.postData.params??[],paramsObj:(null==(n=l.postData.params)?void 0:n.reduce(((e,t)=>(t.name&&void 0!==t.value&&(e[t.name]=t.value),e)),{}))??{}}:void 0,allHeaders:c??{},fullUrl:l.url,queryObj:u??{},cookiesObj:d??{}};if("application/json"===(null==(a=f.postData)?void 0:a.mimeType)&&(null==(o=f.postData)?void 0:o.text))try{f.postData.jsonObj=JSON.parse(f.postData.text)}catch(e){console.error("Error parsing JSON:",e)}return"function"==typeof e.convert?e.convert(f):""}const wOe={target:"c",client:"libcurl",title:"Libcurl",generate:e=>OOe(yOe,e)},xOe=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase())),kOe=(e,t)=>{const r=xOe(e,t);if(r)return e[r]},SOe=(e,t)=>Boolean(xOe(e,t));class _Oe{constructor(e){this.name="",this.toString=()=>`:${this.name}`,this.name=e}}let EOe=class{constructor(e){this.path="",this.toString=()=>`(clojure.java.io/file "${this.path}")`,this.path=e}};const TOe=e=>void 0===e?null:null===e?"null":e.constructor.name.toLowerCase(),AOe=e=>"object"===TOe(e)&&0===Object.keys(e).length,COe=e=>(Object.keys(e).filter((t=>AOe(e[t]))).forEach((t=>{delete e[t]})),e),POe=(e,t)=>{const r=" ".repeat(e);return t.replace(/\n/g,`\n${r}`)},DOe=e=>{switch(TOe(e)){case"string":return`"${e.replace(/"/g,'\\"')}"`;case"file":case"keyword":default:return e.toString();case"null":return"nil";case"regexp":return`#"${e.source}"`;case"object":{const t=Object.keys(e).reduce(((t,r)=>`${t}:${r} ${POe(r.length+2,DOe(e[r]))}\n `),"").trim();return`{${POe(1,t)}}`}case"array":{const t=e.reduce(((e,t)=>`${e} ${DOe(t)}`),"").trim();return`[${POe(1,t)}]`}}},$Oe={info:{key:"clj_http",title:"clj-http",link:"https://github.com/dakrone/clj-http",description:"An idiomatic clojure http client wrapping the apache client."},convert:({queryObj:e,method:t,postData:r,url:n,allHeaders:a},o)=>{const{push:i,join:s}=new mOe({indent:null==o?void 0:o.indent});if(t=t.toLowerCase(),!["get","post","put","delete","patch","head","options"].includes(t))return i("Method not supported"),s();const l={headers:a,"query-params":e};switch(e&&Object.keys(e).length>0&&(n=n.split("?")[0]),null==r?void 0:r.mimeType){case"application/json":{l["content-type"]=new _Oe("json"),l["form-params"]=r.jsonObj;const e=xOe(l.headers,"content-type");e&&delete l.headers[e]}break;case"application/x-www-form-urlencoded":{l["form-params"]=r.paramsObj;const e=xOe(l.headers,"content-type");e&&delete l.headers[e]}break;case"text/plain":{l.body=r.text;const e=xOe(l.headers,"content-type");e&&delete l.headers[e]}break;case"multipart/form-data":if(r.params){l.multipart=r.params.map((e=>e.fileName&&!e.value?{name:e.name,content:new EOe(e.fileName)}:{name:e.name,content:e.value}));const e=xOe(l.headers,"content-type");e&&delete l.headers[e]}}if("application/json"===kOe(l.headers,"accept")){l.accept=new _Oe("json");const e=xOe(l.headers,"accept");e&&delete l.headers[e]}if(i("(require '[clj-http.client :as client])\n"),AOe(COe(l)))i(`(client/${t} "${n}")`);else{const e=11+t.length+n.length;i(`(client/${t} "${n}" ${POe(e,DOe(COe(l)))})`)}return s()}},ROe={target:"clojure",client:"clj_http",title:"clj-http",generate:e=>OOe($Oe,e)},MOe={info:{key:"httpclient",title:"HttpClient",link:"https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient",description:".NET Standard HTTP Client"},convert:({allHeaders:e,postData:t,method:r,fullUrl:n},a)=>{let o,i;const s={indent:" ",...a},{push:l,join:c}=new mOe({indent:s.indent});l("using System.Net.Http.Headers;");let u="";const d=Boolean(e.cookie),p=(e=>{let t=kOe(e,"accept-encoding");if(!t)return[];const r={gzip:"DecompressionMethods.GZip",deflate:"DecompressionMethods.Deflate"},n=[];return"string"==typeof t&&(t=[t]),t.forEach((e=>{e.split(",").forEach((e=>{const t=/\s*([^;\s]+)/.exec(e);if(t){const e=r[t[1]];e&&n.push(e)}}))})),n})(e);(d||p.length)&&(u="clientHandler",l("var clientHandler = new HttpClientHandler"),l("{"),d&&l("UseCookies = false,",1),p.length&&l(`AutomaticDecompression = ${p.join(" | ")},`,1),l("};")),l(`var client = new HttpClient(${u});`),l("var request = new HttpRequestMessage"),l("{"),r=(r=r.toUpperCase())&&["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS","TRACE"].includes(r)?`HttpMethod.${r[0]}${r.substring(1).toLowerCase()}`:`new HttpMethod("${r}")`,l(`Method = ${r},`,1),l(`RequestUri = new Uri("${n}"),`,1);const h=Object.keys(e).filter((e=>{switch(e.toLowerCase()){case"content-type":case"content-length":case"accept-encoding":return!1;default:return!0}}));if(h.length&&(l("Headers =",1),l("{",1),h.forEach((t=>{l(`{ "${t}", "${bOe(e[t])}" },`,2)})),l("},",1)),null==t?void 0:t.text){const e=t.mimeType;switch(e){case"application/x-www-form-urlencoded":l("Content = new FormUrlEncodedContent(new Dictionary<string, string>",1),l("{",1),null===(o=t.params)||void 0===o||o.forEach((e=>{l(`{ "${e.name}", "${e.value}" },`,2)})),l("}),",1);break;case"multipart/form-data":l("Content = new MultipartFormDataContent",1),l("{",1),null===(i=t.params)||void 0===i||i.forEach((e=>{l(`new StringContent(${JSON.stringify(e.value||"")})`,2),l("{",2),l("Headers =",3),l("{",3),e.contentType&&l(`ContentType = new MediaTypeHeaderValue("${e.contentType}"),`,4),l('ContentDisposition = new ContentDispositionHeaderValue("form-data")',4),l("{",4),l(`Name = "${e.name}",`,5),e.fileName&&l(`FileName = "${e.fileName}",`,5),l("}",4),l("}",3),l("},",2)})),l("},",1);break;default:l(`Content = new StringContent(${JSON.stringify((null==t?void 0:t.text)||"")})`,1),l("{",1),l("Headers =",2),l("{",2),l(`ContentType = new MediaTypeHeaderValue("${e}")`,3),l("}",2),l("}",1)}}return l("};"),l("using (var response = await client.SendAsync(request))"),l("{"),l("response.EnsureSuccessStatusCode();",1),l("var body = await response.Content.ReadAsStringAsync();",1),l("Console.WriteLine(body);",1),l("}"),c()}},NOe={target:"csharp",client:"httpclient",title:"HttpClient",generate:e=>OOe(MOe,e)},IOe={info:{key:"restsharp",title:"RestSharp",link:"http://restsharp.org/",description:"Simple REST and HTTP API Client for .NET"},convert:({allHeaders:e,method:t,fullUrl:r,headersObj:n,cookies:a,postData:o})=>{const{push:i,join:s}=new mOe;if(!["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].includes(t.toUpperCase()))return"Method not supported";if(i(`var client = new RestClient("${r}");`),i(`var request = new RestRequest(Method.${t.toUpperCase()});`),Object.keys(n).forEach((e=>{i(`request.AddHeader("${e}", "${bOe(n[e])}");`)})),null==a||a.forEach((({name:e,value:t})=>{i(`request.AddCookie("${e}", "${t}");`)})),null==o?void 0:o.text){const t=kOe(e,"content-type"),r=JSON.stringify(o.text);i(`request.AddParameter("${t}", ${r}, ParameterType.RequestBody);`)}return i("IRestResponse response = client.Execute(request);"),s()}},LOe={target:"csharp",client:"restsharp",title:"RestSharp",generate:e=>OOe(IOe,e)},jOe={target:"dart",client:"http",title:"Http",generate(e,t){var r,n,a;const o={method:"GET",...e};o.method=o.method.toUpperCase();let i="import 'package:http/http.dart' as http;\n\nvoid main() async {\n",s="",l="";o.cookies&&o.cookies.length>0&&(l=o.cookies.map((e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`)).join("; "),s=` "Cookie": "${l}",\n`);const c=(null==(r=o.headers)?void 0:r.reduce(((e,t)=>(t.value&&!/[; ]/.test(t.name)&&(e[t.name]=t.value),e)),{}))||{};if(null==t?void 0:t.auth){const{username:e,password:r}=t.auth;if(e&&r){const t=`${e}:${r}`;c.Authorization=`'Basic ' + base64Encode(utf8.encode('${t}'))`}}if(s&&(c.Cookie=l),Object.keys(c).length>0){i+=" final headers = <String,String>{\n";for(const[e,t]of Object.entries(c))t.includes("utf8.encode")?i+=` '${e}': ${t},\n`:i+=` '${e}': '${t}',\n`;i+=" };\n\n"}const u=(null==(n=o.queryString)?void 0:n.length)?"?"+o.queryString.map((e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`)).join("&"):"",d=`${o.url}${u}`;let p="";if(o.postData)if("application/json"===o.postData.mimeType)p=` final body = r'${o.postData.text}';\n\n`;else if("application/x-www-form-urlencoded"===o.postData.mimeType)p=` final body = '${(null==(a=o.postData.params)?void 0:a.map((e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value??"")}`)).join("&"))||""}';\n\n`;else if("multipart/form-data"===o.postData.mimeType){p=" final body = <String,String>{\n";for(const e of o.postData.params||[]){const t=e.value||"",r=e.fileName||"";p+=` '${e.name}': '${r||t}',\n`}p+=" };\n\n"}else"application/octet-stream"===o.postData.mimeType&&(p=` final body = '${o.postData.text}';\n\n`);return p&&(i+=p),i+=` final response = await http.${o.method.toLowerCase()}(Uri.parse('${d}')${Object.keys(c).length>0?", headers: headers":""}${p?", body: body":""});\n`,i+=" print(response.body);\n",i+="}",i}},BOe={info:{key:"native",title:"NewRequest",link:"http://golang.org/pkg/net/http/#NewRequest",description:"Golang HTTP client request"},convert:({postData:e,method:t,allHeaders:r,fullUrl:n},a={})=>{const{blank:o,push:i,join:s,addPostProcessor:l}=new mOe({indent:"\t"}),{showBoilerplate:c=!0,checkErrors:u=!1,printBody:d=!0,timeout:p=-1,insecureSkipVerify:h=!1}=a,f=u?"err":"_",m=c?1:0,g=()=>{u&&(i("if err != nil {",m),i("panic(err)",m+1),i("}",m))},v=new Set;c&&(i("package main"),o(),i("import ()"),l((e=>{const t=[...v];t.sort();const r=t.map((e=>`\t"${e}"`)).join("\n");return e.replace(/import \(\)/,`import (\n${r}\n)`)})),v.add("fmt"),v.add("net/http"),o(),i("func main() {")),h&&(v.add("crypto/tls"),i("insecureTransport := http.DefaultTransport.(*http.Transport).Clone()",m),i("insecureTransport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}",m));const b=p>0,y=b||h,O=y?"client":"http.DefaultClient";return y&&(i("client := http.Client{",m),b&&(v.add("time"),i(`Timeout: time.Duration(${p} * time.Second),`,m+1)),h&&i("Transport: insecureTransport,",m+1),i("}",m),o()),i(`url := "${n}"`,m),o(),null!=e&&(e.params||e.text)?"application/x-www-form-urlencoded"===e.mimeType&&e.params?(v.add("net/url"),v.add("strings"),i("postData := url.Values{}",m),e.params.forEach((e=>{i(`postData.Set("${e.name}", "${bOe(e.value)}")`,m)})),o(),i(`req, ${f} := http.NewRequest("${t}", url, strings.NewReader(postData.Encode()))`,m)):"multipart/form-data"===e.mimeType&&e.params?(v.add("bytes"),v.add("mime/multipart"),i("payload := &bytes.Buffer{}",m),i("writer := multipart.NewWriter(payload)",m),e.params.forEach((e=>{o(),e.fileName?(i(`part, ${f} := writer.CreateFormFile("${e.name}", "${e.fileName}")`,m),g(),o(),i(`f, ${f} := os.Open("${e.fileName}")`,m),g(),i("defer f.Close()",m),o(),i(`_, ${f} = io.Copy(part, f)`,m),g()):(i(`${f} = writer.WriteField("${e.name}", "${bOe(e.value)}")`,m),g())})),i("writer.Close()",m),o(),i(`req, ${f} := http.NewRequest("${t}", url, payload)`,m)):(v.add("strings"),i(`payload := strings.NewReader(${JSON.stringify(e.text)})`,m),o(),i(`req, ${f} := http.NewRequest("${t}", url, payload)`,m)):i(`req, ${f} := http.NewRequest("${t}", url, nil)`,m),g(),o(),null!=e&&"multipart/form-data"===e.mimeType&&e.params&&i('req.Header.Set("Content-Type", writer.FormDataContentType())',m),Object.keys(r).length&&(Object.keys(r).forEach((e=>{i(`req.Header.Add("${e}", "${bOe(r[e])}")`,m)})),o()),i(`res, ${f} := ${O}.Do(req)`,m),g(),d&&(v.add("io"),o(),i("defer res.Body.Close()",m),i(`body, ${f} := io.ReadAll(res.Body)`,m),g()),o(),i("fmt.Println(res)",m),d&&i("fmt.Println(string(body))",m),c&&(o(),i("}")),s()}},UOe={target:"go",client:"native",title:"NewRequest",generate:e=>OOe(BOe,e)},FOe={target:"http",client:"http1.1",title:"HTTP/1.1",generate(e){const t={method:"GET",headers:[],queryString:[],...e};let r,n;t.method=t.method.toUpperCase();try{r=new URL(t.url||"http://"),n=r.pathname+(r.search||"")}catch(e){n=t.url||"/"}const a=(null==r?void 0:r.hostname)||"UNKNOWN_HOSTNAME";let o=`${t.method} ${n} HTTP/1.1\r\n`;if(t.queryString.length){const e=t.queryString.map((e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`)).join("&");o=`${t.method} ${n}?${e} HTTP/1.1\r\n`}const i=new Map;if(i.set("Host",a),t.headers.forEach((e=>{i.has(e.name)?i.set(e.name,`${i.get(e.name)}, ${e.value}`):i.set(e.name,e.value)})),t.queryString.length){const e=t.queryString.map((e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`)).join("&");o=`${t.method} ${n}?${e} HTTP/1.1\r\n`}let s="";if(t.postData)if("application/json"===t.postData.mimeType&&t.postData.text)i.set("Content-Type","application/json"),s=t.postData.text;else if("application/octet-stream"===t.postData.mimeType&&t.postData.text)i.set("Content-Type","application/octet-stream"),s=t.postData.text;else if("application/x-www-form-urlencoded"===t.postData.mimeType&&t.postData.params){const e=t.postData.params.map((e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value??"")}`)).join("&");i.set("Content-Type","application/x-www-form-urlencoded"),s=e}else if("multipart/form-data"===t.postData.mimeType&&t.postData.params){const e="----WebKitFormBoundary7MA4YWxkTrZu0gW";i.set("Content-Type",`multipart/form-data; boundary=${e}`),s=t.postData.params.map((t=>t.fileName?`--${e}\r\nContent-Disposition: form-data; name="${t.name}"; filename="${t.fileName}"\r\n\r\n`:`--${e}\r\nContent-Disposition: form-data; name="${t.name}"\r\n\r\n${t.value}\r\n`)).join("")+`--${e}--\r\n`}return i.forEach(((e,t)=>{o+=`${t}: ${e}\r\n`})),o+=`\r\n${s}`,o}},QOe={info:{key:"asynchttp",title:"AsyncHttp",link:"https://github.com/AsyncHttpClient/async-http-client",description:"Asynchronous Http and WebSocket Client library for Java"},convert:({method:e,allHeaders:t,postData:r,fullUrl:n},a)=>{const o={indent:" ",...a},{blank:i,push:s,join:l}=new mOe({indent:o.indent});return s("AsyncHttpClient client = new DefaultAsyncHttpClient();"),s(`client.prepare("${e.toUpperCase()}", "${n}")`),Object.keys(t).forEach((e=>{s(`.setHeader("${e}", "${bOe(t[e])}")`,1)})),(null==r?void 0:r.text)&&s(`.setBody(${JSON.stringify(r.text)})`,1),s(".execute()",1),s(".toCompletableFuture()",1),s(".thenAccept(System.out::println)",1),s(".join();",1),i(),s("client.close();"),l()}},zOe={target:"java",client:"asynchttp",title:"AsyncHttp",generate:e=>OOe(QOe,e)},qOe={info:{key:"nethttp",title:"java.net.http",link:"https://openjdk.java.net/groups/net/httpclient/intro.html",description:"Java Standardized HTTP Client API"},convert:({allHeaders:e,fullUrl:t,method:r,postData:n},a)=>{const o={indent:" ",...a},{push:i,join:s}=new mOe({indent:o.indent});return i("HttpRequest request = HttpRequest.newBuilder()"),i(`.uri(URI.create("${t}"))`,2),Object.keys(e).forEach((t=>{i(`.header("${t}", "${bOe(e[t])}")`,2)})),(null==n?void 0:n.text)?i(`.method("${r.toUpperCase()}", HttpRequest.BodyPublishers.ofString(${JSON.stringify(n.text)}))`,2):i(`.method("${r.toUpperCase()}", HttpRequest.BodyPublishers.noBody())`,2),i(".build();",2),i("HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"),i("System.out.println(response.body());"),s()}},HOe={target:"java",client:"nethttp",title:"java.net.http",generate:e=>OOe(qOe,e)},VOe={info:{key:"okhttp",title:"OkHttp",link:"http://square.github.io/okhttp/",description:"An HTTP Request Client Library"},convert:({postData:e,method:t,fullUrl:r,allHeaders:n},a)=>{const o={indent:" ",...a},{push:i,blank:s,join:l}=new mOe({indent:o.indent});return i("OkHttpClient client = new OkHttpClient();"),s(),null!=e&&("application/x-www-form-urlencoded"===e.mimeType&&e.params?(i("FormBody formBody = new FormBody.Builder()"),e.params.forEach((e=>{i(`.addEncoded("${e.name}", "${e.value}")`,1)})),i(".build();",1),s()):"multipart/form-data"===e.mimeType&&e.params?(i("MultipartBody body = new MultipartBody.Builder()"),i(".setType(MultipartBody.FORM)",1),e.params.forEach((e=>{void 0!==e.fileName?i(`.addFormDataPart("${e.name}", "${e.fileName}", RequestBody.create(MediaType.parse("application/octet-stream"), new File("${e.fileName}")))`,1):void 0!==e.value&&i(`.addFormDataPart("${e.name}", "${e.value}")`,1)})),i(".build();",1),s()):(i(`MediaType mediaType = MediaType.parse("${e.mimeType}");`),i(`RequestBody body = RequestBody.create(mediaType, ${JSON.stringify(e.text)});`))),i("Request request = new Request.Builder()"),i(`.url("${r}")`,1),["GET","POST","PUT","DELETE","PATCH","HEAD"].includes(t.toUpperCase())?["POST","PUT","DELETE","PATCH"].includes(t.toUpperCase())?(null==e?void 0:e.text||e.params)?i(`.${t.toLowerCase()}(body)`,1):i(`.${t.toLowerCase()}(null)`,1):i(`.${t.toLowerCase()}()`,1):(null==e?void 0:e.text)?i(`.method("${t.toUpperCase()}", body)`,1):i(`.method("${t.toUpperCase()}", null)`,1),Object.keys(n).forEach((e=>{i(`.addHeader("${e}", "${bOe(n[e])}")`,1)})),i(".build();",1),s(),i("Response response = client.newCall(request).execute();"),l()}},ZOe={target:"java",client:"okhttp",title:"OkHttp",generate:e=>OOe(VOe,e)},WOe={info:{key:"unirest",title:"Unirest",link:"http://unirest.io/java.html",description:"Lightweight HTTP Request Client Library"},convert:({method:e,allHeaders:t,postData:r,fullUrl:n},a)=>{const o={indent:" ",...a},{join:i,push:s}=new mOe({indent:o.indent});return["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].includes(e.toUpperCase())?s(`HttpResponse<String> response = Unirest.${e.toLowerCase()}("${n}")`):s(`HttpResponse<String> response = Unirest.customMethod("${e.toUpperCase()}","${n}")`),Object.keys(t).forEach((e=>{s(`.header("${e}", "${bOe(t[e])}")`,1)})),(null==r?void 0:r.text)&&s(`.body(${JSON.stringify(r.text)})`,1),s(".asString();",1),i()}},XOe={target:"java",client:"unirest",title:"Unirest",generate:e=>OOe(WOe,e)},{toString:GOe}=Object.prototype,{propertyIsEnumerable:YOe}=Object.prototype;function KOe(e,t,r){const n=[];return function e(t,r={},a=""){const o=r.indent||"\t";let i;i=void 0===r.inlineCharacterLimit?{newline:"\n",newlineOrSpace:"\n",pad:a,indent:a+o}:{newline:"@@__STRINGIFY_OBJECT_NEW_LINE__@@",newlineOrSpace:"@@__STRINGIFY_OBJECT_NEW_LINE_OR_SPACE__@@",pad:"@@__STRINGIFY_OBJECT_PAD__@@",indent:"@@__STRINGIFY_OBJECT_INDENT__@@"};const s=e=>{if(void 0===r.inlineCharacterLimit)return e;const t=e.replace(new RegExp(i.newline,"g"),"").replace(new RegExp(i.newlineOrSpace,"g")," ").replace(new RegExp(i.pad+"|"+i.indent,"g"),"");return t.length<=r.inlineCharacterLimit?t:e.replace(new RegExp(i.newline+"|"+i.newlineOrSpace,"g"),"\n").replace(new RegExp(i.pad,"g"),a).replace(new RegExp(i.indent,"g"),a+o)};if(n.includes(t))return'"[Circular]"';if(null==t||"number"==typeof t||"boolean"==typeof t||"function"==typeof t||"symbol"==typeof t||(l=t,"[object RegExp]"===GOe.call(l)))return String(t);var l,c;if(t instanceof Date)return`new Date('${t.toISOString()}')`;if(Array.isArray(t)){if(0===t.length)return"[]";n.push(t);const l="["+i.newline+t.map(((n,s)=>{const l=t.length-1===s?i.newline:","+i.newlineOrSpace;let c=e(n,r,a+o);return r.transform&&(c=r.transform(t,s,c)),i.indent+c+l})).join("")+i.pad+"]";return n.pop(),s(l)}if(function(e){const t=typeof e;return null!==e&&("object"===t||"function"===t)}(t)){let l=(c=t,[...Object.keys(c),...Object.getOwnPropertySymbols(c).filter((e=>YOe.call(c,e)))]);if(r.filter&&(l=l.filter((e=>r.filter(t,e)))),0===l.length)return"{}";n.push(t);const u="{"+i.newline+l.map(((n,s)=>{const c=l.length-1===s?i.newline:","+i.newlineOrSpace,u="symbol"==typeof n,d=!u&&/^[a-z$_][$\w]*$/i.test(n),p=u||d?n:e(n,r);let h=e(t[n],r,a+o);return r.transform&&(h=r.transform(t,n,h)),i.indent+String(p)+": "+h+c})).join("")+i.pad+"}";return n.pop(),s(u)}return t=t.replace(/\\/g,"\\\\"),t=String(t).replace(/[\r\n]/g,(e=>"\n"===e?"\\n":"\\r")),!1===r.singleQuotes?`"${t=t.replace(/"/g,'\\"')}"`:`'${t=t.replace(/'/g,"\\'")}'`}(e,t,r)}const JOe={info:{key:"axios",title:"Axios",link:"https://github.com/axios/axios",description:"Promise based HTTP client for the browser and node.js"},convert:({allHeaders:e,method:t,url:r,queryObj:n,postData:a},o)=>{const i={indent:" ",...o},{blank:s,push:l,join:c,addPostProcessor:u}=new mOe({indent:i.indent});l("import axios from 'axios';"),s();const d={method:t,url:r};switch(Object.keys(n).length&&(d.params=n),Object.keys(e).length&&(d.headers=e),null==a?void 0:a.mimeType){case"application/x-www-form-urlencoded":a.params&&(l("const encodedParams = new URLSearchParams();"),a.params.forEach((e=>{l(`encodedParams.set('${e.name}', '${e.value}');`)})),s(),d.data="encodedParams,",u((e=>e.replace(/'encodedParams,'/,"encodedParams,"))));break;case"application/json":a.jsonObj&&(d.data=a.jsonObj);break;case"multipart/form-data":if(!a.params)break;l("const form = new FormData();"),a.params.forEach((e=>{l(`form.append('${e.name}', '${e.value||e.fileName||""}');`)})),s(),d.data="[form]";break;default:(null==a?void 0:a.text)&&(d.data=a.text)}const p=KOe(d,{indent:" ",inlineCharacterLimit:80}).replace('"[form]"',"form");return l(`const options = ${p};`),s(),l("try {"),l("const { data } = await axios.request(options);",1),l("console.log(data);",1),l("} catch (error) {"),l("console.error(error);",1),l("}"),c()}},ewe={target:"js",client:"axios",title:"Axios",generate:e=>OOe(JOe,e)};function twe(e){return/\s|-/.test(e)}class rwe{constructor(e){this.value=e}}function nwe(e,t=0){const r=[],n=" ".repeat(t),a=" ".repeat(t+2);for(const[n,o]of Object.entries(e)){const e=twe(n)?`'${n}'`:n;if(o instanceof rwe){const t=o.value.split("\n");let n=`${o.value}`;t.length>1&&(n=t.map(((e,t)=>0===t?e:`${a}${e}`)).join("\n")),r.push(`${a}${e}: ${n}`)}else if(Array.isArray(o)){const n=o.map((e=>"string"==typeof e?`'${e}'`:e&&"object"==typeof e?nwe(e,t+2):e)).join(`, ${a}`);r.push(`${a}${e}: [${n}]`)}else if(o&&"object"==typeof o)r.push(`${a}${e}: ${nwe(o,t+2)}`);else if("string"==typeof o){const t=`'${o}'`;r.push(`${a}${e}: ${t}`)}else r.push(`${a}${e}: ${o}`)}return`{\n${r.join(",\n")}\n${n}}`}const awe={target:"js",client:"fetch",title:"Fetch",generate(e){var t,r;const n={method:"GET",...e};let a="";n.method=n.method.toUpperCase();const o={method:"GET"===n.method?void 0:n.method},i=fOe(n.queryString),s=i.size?`?${i.toString()}`:"";if((null==(t=n.headers)?void 0:t.length)&&(o.headers={},n.headers.forEach((e=>{o.headers[e.name]=e.value}))),(null==(r=n.cookies)?void 0:r.length)&&(o.headers=o.headers||{},n.cookies.forEach((e=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${e.name}=${e.value}`:`${e.name}=${e.value}`}))),Object.keys(o).forEach((e=>{void 0===o[e]&&delete o[e]})),n.postData){const{mimeType:e,text:t,params:r}=n.postData;if("application/json"===e&&t)try{o.body=new rwe(`JSON.stringify(${nwe(JSON.parse(t))})`)}catch(e){o.body=t}else if("multipart/form-data"===e&&r)a="const formData = new FormData()\n",r.forEach((e=>{void 0!==e.fileName?a+=`formData.append('${e.name}', new Blob([]), '${e.fileName}')\n`:void 0!==e.value&&(a+=`formData.append('${e.name}', '${e.value}')\n`)})),a+="\n",o.body=new rwe("formData");else if("application/x-www-form-urlencoded"===e&&r){const e=Object.fromEntries(r.map((e=>[e.name,e.value])));o.body=new rwe(`new URLSearchParams(${nwe(e)})`)}else o.body=n.postData.text}const l=Object.keys(o).length?`, ${nwe(o)}`:"";return`${a}fetch('${n.url}${s}'${l})`}},owe={info:{key:"jquery",title:"jQuery",link:"http://api.jquery.com/jquery.ajax/",description:"Perform an asynchronous HTTP (Ajax) requests with jQuery"},convert:({fullUrl:e,method:t,allHeaders:r,postData:n},a)=>{let o;const i={indent:" ",...a},{blank:s,push:l,join:c}=new mOe({indent:i.indent}),u={async:!0,crossDomain:!0,url:e,method:t,headers:r};switch(null==n?void 0:n.mimeType){case"application/x-www-form-urlencoded":u.data=n.paramsObj?n.paramsObj:n.text;break;case"application/json":u.processData=!1,u.data=n.text;break;case"multipart/form-data":if(!n.params)break;if(l("const form = new FormData();"),n.params.forEach((e=>{l(`form.append('${e.name}', '${e.value||e.fileName||""}');`)})),u.processData=!1,u.contentType=!1,u.mimeType="multipart/form-data",u.data="[form]",SOe(r,"content-type")&&(null===(o=kOe(r,"content-type"))||void 0===o?void 0:o.includes("boundary"))){const e=xOe(r,"content-type");e&&delete u.headers[e]}s();break;default:(null==n?void 0:n.text)&&(u.data=n.text)}const d=KOe(u,{indent:i.indent}).replace("'[form]'","form");return l(`const settings = ${d};`),s(),l("$.ajax(settings).done(function (response) {"),l("console.log(response);",1),l("});"),c()}},iwe={target:"js",client:"jquery",title:"jQuery",generate:e=>OOe(owe,e)},swe={target:"js",client:"ofetch",title:"ofetch",generate(e){var t,r;const n={method:"GET",...e};n.method=n.method.toUpperCase();const a={method:"GET"===n.method?void 0:n.method};a.query=n.queryString,(null==(t=n.headers)?void 0:t.length)&&(a.headers={},n.headers.forEach((e=>{a.headers[e.name]=e.value}))),(null==(r=n.cookies)?void 0:r.length)&&(a.headers=a.headers||{},n.cookies.forEach((e=>{a.headers["Set-Cookie"]=a.headers["Set-Cookie"]?`${a.headers["Set-Cookie"]}; ${e.name}=${e.value}`:`${e.name}=${e.value}`}))),Object.keys(a).forEach((e=>{void 0===a[e]&&delete a[e]})),n.postData&&(a.body=n.postData.text,"application/json"===n.postData.mimeType&&(a.body=JSON.parse(a.body)));const o=Object.keys(a).length?`, ${nwe(a)}`:"";return`import { ofetch } from 'ofetch'\n\nofetch('${n.url}'${o})`}},lwe={info:{key:"xhr",title:"XMLHttpRequest",link:"https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest",description:"W3C Standard API that provides scripted client functionality"},convert:({postData:e,allHeaders:t,method:r,fullUrl:n},a)=>{let o;const i={indent:" ",cors:!0,...a},{blank:s,push:l,join:c}=new mOe({indent:i.indent});switch(null==e?void 0:e.mimeType){case"application/json":l(`const data = JSON.stringify(${KOe(e.jsonObj,{indent:i.indent})});`),s();break;case"multipart/form-data":if(!e.params)break;if(l("const data = new FormData();"),e.params.forEach((e=>{l(`data.append('${e.name}', '${e.value||e.fileName||""}');`)})),SOe(t,"content-type")&&(null===(o=kOe(t,"content-type"))||void 0===o?void 0:o.includes("boundary"))){const e=xOe(t,"content-type");e&&delete t[e]}s();break;default:l(`const data = ${(null==e?void 0:e.text)?`'${e.text}'`:"null"};`),s()}return l("const xhr = new XMLHttpRequest();"),i.cors&&l("xhr.withCredentials = true;"),s(),l("xhr.addEventListener('readystatechange', function () {"),l("if (this.readyState === this.DONE) {",1),l("console.log(this.responseText);",2),l("}",1),l("});"),s(),l(`xhr.open('${r}', '${n}');`),Object.keys(t).forEach((e=>{l(`xhr.setRequestHeader('${e}', '${vOe(t[e])}');`)})),s(),l("xhr.send(data);"),c()}},cwe={target:"js",client:"xhr",title:"XHR",generate:e=>OOe(lwe,e)},uwe={info:{key:"okhttp",title:"OkHttp",link:"http://square.github.io/okhttp/",description:"An HTTP Request Client Library"},convert:({postData:e,fullUrl:t,method:r,allHeaders:n},a)=>{const o={indent:" ",...a},{blank:i,join:s,push:l}=new mOe({indent:o.indent});return l("val client = OkHttpClient()"),i(),null!=e&&("application/x-www-form-urlencoded"===e.mimeType&&e.params?(l("val formBody = FormBody.Builder()"),e.params.forEach((e=>{l(`.addEncoded("${e.name}", "${e.value}")`,1)})),l(".build()",1),i()):"multipart/form-data"===e.mimeType&&e.params?(l("val body = MultipartBody.Builder()"),l(".setType(MultipartBody.FORM)",1),e.params.forEach((e=>{void 0!==e.fileName?l(`.addFormDataPart("${e.name}", "${e.fileName}", RequestBody.create(MediaType.parse("application/octet-stream"), File("${e.fileName}")))`,1):void 0!==e.value&&l(`.addFormDataPart("${e.name}", "${e.value}")`,1)})),l(".build()",1),i()):(l(`val mediaType = MediaType.parse("${e.mimeType}")`),l(`val body = RequestBody.create(mediaType, ${JSON.stringify(e.text)})`))),l("val request = Request.Builder()"),l(`.url("${t}")`,1),["GET","POST","PUT","DELETE","PATCH","HEAD"].includes(r.toUpperCase())?["POST","PUT","DELETE","PATCH"].includes(r.toUpperCase())?(null==e?void 0:e.text||e.params)?l(`.${r.toLowerCase()}(body)`,1):l(`.${r.toLowerCase()}(null)`,1):l(`.${r.toLowerCase()}()`,1):(null==e?void 0:e.text)?l(`.method("${r.toUpperCase()}", body)`,1):l(`.method("${r.toUpperCase()}", null)`,1),Object.keys(n).forEach((e=>{l(`.addHeader("${e}", "${bOe(n[e])}")`,1)})),l(".build()",1),i(),l("val response = client.newCall(request).execute()"),s()}},dwe={target:"kotlin",client:"okhttp",title:"OkHttp",generate:e=>OOe(uwe,e)},pwe={info:{key:"axios",title:"Axios",link:"https://github.com/axios/axios",description:"Promise based HTTP client for the browser and node.js"},convert:({method:e,url:t,queryObj:r,allHeaders:n,postData:a},o)=>{const i={indent:" ",...o},{blank:s,join:l,push:c,addPostProcessor:u}=new mOe({indent:i.indent});c("const axios = require('axios').default;");const d={method:e,url:t};switch(Object.keys(r).length&&(d.params=r),Object.keys(n).length&&(d.headers=n),null==a?void 0:a.mimeType){case"application/x-www-form-urlencoded":a.params&&(c("const { URLSearchParams } = require('url');"),s(),c("const encodedParams = new URLSearchParams();"),a.params.forEach((e=>{c(`encodedParams.set('${e.name}', '${e.value}');`)})),s(),d.data="encodedParams,",u((e=>e.replace(/'encodedParams,'/,"encodedParams,"))));break;case"application/json":s(),a.jsonObj&&(d.data=a.jsonObj);break;default:s(),(null==a?void 0:a.text)&&(d.data=a.text)}const p=KOe(d,{indent:" ",inlineCharacterLimit:80});return c(`const options = ${p};`),s(),c("try {"),c("const { data } = await axios.request(options);",1),c("console.log(data);",1),c("} catch (error) {"),c("console.error(error);",1),c("}"),l()}},hwe={target:"node",client:"axios",title:"Axios",generate:e=>OOe(pwe,e)},fwe={target:"node",client:"fetch",title:"Fetch",generate(e){var t,r;const n={method:"GET",...e};let a="";n.method=n.method.toUpperCase();const o={method:"GET"===n.method?void 0:n.method},i=fOe(n.queryString),s=i.size?`?${i.toString()}`:"";if((null==(t=n.headers)?void 0:t.length)&&(o.headers={},n.headers.forEach((e=>{o.headers[e.name]=e.value}))),(null==(r=n.cookies)?void 0:r.length)&&(o.headers=o.headers||{},n.cookies.forEach((e=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${e.name}=${e.value}`:`${e.name}=${e.value}`}))),Object.keys(o).forEach((e=>{void 0===o[e]&&delete o[e]})),n.postData){const{mimeType:e,text:t,params:r}=n.postData;let i=!1;if("application/json"===e&&t)try{o.body=new rwe(`JSON.stringify(${nwe(JSON.parse(t))})`)}catch(e){o.body=t}else if("multipart/form-data"===e&&r)a="const formData = new FormData()\n",r.forEach((e=>{void 0!==e.fileName?(i||(a=`import fs from 'node:fs'\n\n${a}`,i=!0),a+=`formData.append('${e.name}', new Blob([fs.readFileSync('${e.fileName}')]), '${e.fileName}')\n`):void 0!==e.value&&(a+=`formData.append('${e.name}', '${e.value}')\n`)})),a+="\n",o.body=new rwe("formData");else if("application/x-www-form-urlencoded"===e&&r){const e=Object.fromEntries(r.map((e=>[e.name,e.value])));o.body=new rwe(`new URLSearchParams(${nwe(e)})`)}else o.body=n.postData.text}const l=Object.keys(o).length?`, ${nwe(o)}`:"";return`${a}fetch('${n.url}${s}'${l})`}},mwe={target:"node",client:"ofetch",title:"ofetch",generate(e){var t,r;const n={method:"GET",...e};n.method=n.method.toUpperCase();const a={method:"GET"===n.method?void 0:n.method};a.query=n.queryString,(null==(t=n.headers)?void 0:t.length)&&(a.headers={},n.headers.forEach((e=>{a.headers[e.name]=e.value}))),(null==(r=n.cookies)?void 0:r.length)&&(a.headers=a.headers||{},n.cookies.forEach((e=>{a.headers["Set-Cookie"]=a.headers["Set-Cookie"]?`${a.headers["Set-Cookie"]}; ${e.name}=${e.value}`:`${e.name}=${e.value}`}))),Object.keys(a).forEach((e=>{void 0===a[e]&&delete a[e]})),n.postData&&(a.body=n.postData.text,"application/json"===n.postData.mimeType&&(a.body=JSON.parse(a.body)));const o=Object.keys(a).length?`, ${nwe(a)}`:"";return`import { ofetch } from 'ofetch'\n\nofetch('${n.url}'${o})`}},gwe={target:"node",client:"undici",title:"undici",generate(e){var t,r;const n={method:"GET",...e};n.method=n.method.toUpperCase();const a={method:"GET"===n.method?void 0:n.method},o=fOe(n.queryString),i=o.size?`?${o.toString()}`:"";(null==(t=n.headers)?void 0:t.length)&&(a.headers={},n.headers.forEach((e=>{a.headers[e.name]=e.value}))),(null==(r=n.cookies)?void 0:r.length)&&(a.headers=a.headers||{},n.cookies.forEach((e=>{a.headers["Set-Cookie"]=a.headers["Set-Cookie"]?`${a.headers["Set-Cookie"]}; ${e.name}=${e.value}`:`${e.name}=${e.value}`}))),Object.keys(a).forEach((e=>{void 0===a[e]&&delete a[e]})),n.postData&&(a.body=n.postData.text,"application/json"===n.postData.mimeType&&(a.body=new rwe(`JSON.stringify(${nwe(JSON.parse(a.body))})`)));const s=Object.keys(a).length?`, ${nwe(a)}`:"";return`import { request } from 'undici'\n\nconst { statusCode, body } = await request('${n.url}${i}'${s})`}},vwe=(e,t,r,n)=>{const a=`${e} *${t} = `;return`${a}${bwe(r,n?a.length:void 0)};`},bwe=(e,t)=>{const r=void 0===t?", ":`,\n ${" ".repeat(t)}`;switch(Object.prototype.toString.call(e)){case"[object Number]":return`@${e}`;case"[object Array]":return`@[ ${e.map((e=>bwe(e))).join(r)} ]`;case"[object Object]":{const t=[];for(const r in e)t.push(`@"${r}": ${bwe(e[r])}`);return`@{ ${t.join(r)} }`}case"[object Boolean]":return e?"@YES":"@NO";default:return null==e?"":`@"${e.toString().replace(/"/g,'\\"')}"`}},ywe={info:{key:"nsurlsession",title:"NSURLSession",link:"https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLSession_class/index.html",description:"Foundation's NSURLSession request"},convert:({allHeaders:e,postData:t,method:r,fullUrl:n},a)=>{let o;const i={indent:" ",pretty:!0,timeout:10,...a},{push:s,join:l,blank:c}=new mOe({indent:i.indent}),u={hasHeaders:!1,hasBody:!1};if(s("#import <Foundation/Foundation.h>"),Object.keys(e).length&&(u.hasHeaders=!0,c(),s(vwe("NSDictionary","headers",e,i.pretty))),t&&(t.text||t.jsonObj||t.params))switch(u.hasBody=!0,t.mimeType){case"application/x-www-form-urlencoded":if(null===(o=t.params)||void 0===o?void 0:o.length){c();const[e,...r]=t.params;s(`NSMutableData *postData = [[NSMutableData alloc] initWithData:[@"${e.name}=${e.value}" dataUsingEncoding:NSUTF8StringEncoding]];`),r.forEach((({name:e,value:t})=>{s(`[postData appendData:[@"&${e}=${t}" dataUsingEncoding:NSUTF8StringEncoding]];`)}))}else u.hasBody=!1;break;case"application/json":t.jsonObj&&(s(vwe("NSDictionary","parameters",t.jsonObj,i.pretty)),c(),s("NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];"));break;case"multipart/form-data":s(vwe("NSArray","parameters",t.params||[],i.pretty)),s(`NSString *boundary = @"${t.boundary}";`),c(),s("NSError *error;"),s("NSMutableString *body = [NSMutableString string];"),s("for (NSDictionary *param in parameters) {"),s('[body appendFormat:@"--%@\\r\\n", boundary];',1),s('if (param[@"fileName"]) {',1),s('[body appendFormat:@"Content-Disposition:form-data; name=\\"%@\\"; filename=\\"%@\\"\\r\\n", param[@"name"], param[@"fileName"]];',2),s('[body appendFormat:@"Content-Type: %@\\r\\n\\r\\n", param[@"contentType"]];',2),s('[body appendFormat:@"%@", [NSString stringWithContentsOfFile:param[@"fileName"] encoding:NSUTF8StringEncoding error:&error]];',2),s("if (error) {",2),s('NSLog(@"%@", error);',3),s("}",2),s("} else {",1),s('[body appendFormat:@"Content-Disposition:form-data; name=\\"%@\\"\\r\\n\\r\\n", param[@"name"]];',2),s('[body appendFormat:@"%@", param[@"value"]];',2),s("}",1),s("}"),s('[body appendFormat:@"\\r\\n--%@--\\r\\n", boundary];'),s("NSData *postData = [body dataUsingEncoding:NSUTF8StringEncoding];");break;default:c(),s(`NSData *postData = [[NSData alloc] initWithData:[@"${t.text}" dataUsingEncoding:NSUTF8StringEncoding]];`)}return c(),s(`NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"${n}"]`),s(" cachePolicy:NSURLRequestUseProtocolCachePolicy"),s(` timeoutInterval:${i.timeout.toFixed(1)}];`),s(`[request setHTTPMethod:@"${r}"];`),u.hasHeaders&&s("[request setAllHTTPHeaderFields:headers];"),u.hasBody&&s("[request setHTTPBody:postData];"),c(),s("NSURLSession *session = [NSURLSession sharedSession];"),s("NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request"),s(" completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {"),s(" if (error) {",1),s(' NSLog(@"%@", error);',2),s(" } else {",1),s(" NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;",2),s(' NSLog(@"%@", httpResponse);',2),s(" }",1),s(" }];"),s("[dataTask resume];"),l()}},Owe={target:"objc",client:"nsurlsession",title:"NSURLSession",generate:e=>OOe(ywe,e)},wwe={info:{key:"cohttp",title:"CoHTTP",link:"https://github.com/mirage/ocaml-cohttp",description:"Cohttp is a very lightweight HTTP server using Lwt or Async for OCaml"},convert:({fullUrl:e,allHeaders:t,postData:r,method:n},a)=>{const o={indent:" ",...a},{push:i,blank:s,join:l}=new mOe({indent:o.indent});i("open Cohttp_lwt_unix"),i("open Cohttp"),i("open Lwt"),s(),i(`let uri = Uri.of_string "${e}" in`);const c=Object.keys(t);1===c.length?i(`let headers = Header.add (Header.init ()) "${c[0]}" "${bOe(t[c[0]])}" in`):c.length>1&&(i("let headers = Header.add_list (Header.init ()) ["),c.forEach((e=>{i(`("${e}", "${bOe(t[e])}");`,1)})),i("] in")),(null==r?void 0:r.text)&&i(`let body = Cohttp_lwt_body.of_string ${JSON.stringify(r.text)} in`),s();const u=c.length?"~headers ":"",d=(null==r?void 0:r.text)?"~body ":"",p=["get","post","head","delete","patch","put","options"].includes(n.toLowerCase())?`\`${n.toUpperCase()}`:`(Code.method_of_string "${n}")`;return i(`Client.call ${u}${d}${p} uri`),i(">>= fun (res, body_stream) ->"),i("(* Do stuff with the result *)",1),l()}},xwe={target:"ocaml",client:"cohttp",title:"Cohttp",generate:e=>OOe(wwe,e)},kwe={target:"php",client:"curl",title:"cURL",generate(e,t){var r,n,a,o,i;const s={method:"GET",...e};s.method=s.method.toUpperCase();const l=[],c=(null==(r=s.queryString)?void 0:r.length)?"?"+s.queryString.map((e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`)).join("&"):"",u=`${s.url}${c}`;if(l.push(`$ch = curl_init("${u}");`),l.push(""),"POST"===s.method&&l.push("curl_setopt($ch, CURLOPT_POST, true);"),(null==(n=null==t?void 0:t.auth)?void 0:n.username)&&(null==(a=null==t?void 0:t.auth)?void 0:a.password)&&l.push(`curl_setopt($ch, CURLOPT_USERPWD, '${t.auth.username}:${t.auth.password}');`),null==(o=s.headers)?void 0:o.length){const e=s.headers.map((e=>`'${e.name}: ${e.value}'`));l.push(`curl_setopt($ch, CURLOPT_HTTPHEADER, [${e.join(", ")}]);`);const t=s.headers.find((e=>"accept-encoding"===e.name.toLowerCase()));t&&/gzip|deflate/.test(t.value)&&l.push("curl_setopt($ch, CURLOPT_ENCODING, '');")}if(null==(i=s.cookies)?void 0:i.length){const e=s.cookies.map((e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`)).join("; ");l.push(`curl_setopt($ch, CURLOPT_COOKIE, '${e}');`)}if(s.postData)if("application/json"===s.postData.mimeType){if(s.postData.text)try{const e=_we(JSON.parse(s.postData.text));l.push(`curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(${e}));`)}catch{l.push(`curl_setopt($ch, CURLOPT_POSTFIELDS, '${s.postData.text}');`)}}else if("multipart/form-data"===s.postData.mimeType&&s.postData.params){const e=s.postData.params.reduce(((e,t)=>(void 0!==t.fileName?e.push(`'${t.name}' => '@${t.fileName}'`):void 0!==t.value&&e.push(`'${t.name}' => '${t.value}'`),e)),[]);l.push("curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: multipart/form-data']);"),l.push(`curl_setopt($ch, CURLOPT_POSTFIELDS, [${e.join(", ")}]);`)}else if("application/x-www-form-urlencoded"===s.postData.mimeType&&s.postData.params){const e=s.postData.params.map((e=>`${encodeURIComponent(e.name)}=${e.value?encodeURIComponent(e.value):""}`)).join("&");l.push("curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/x-www-form-urlencoded']);"),l.push(`curl_setopt($ch, CURLOPT_POSTFIELDS, '${e}');`)}else if("application/octet-stream"===s.postData.mimeType)l.push("curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/octet-stream']);"),l.push(`curl_setopt($ch, CURLOPT_POSTFIELDS, '${s.postData.text||""}');`);else if(s.postData.text)try{const e=_we(JSON.parse(s.postData.text));l.push(`curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(${e}));`)}catch{l.push(`curl_setopt($ch, CURLOPT_POSTFIELDS, '${s.postData.text}');`)}return l.push(""),l.push("curl_exec($ch);"),l.push(""),l.push("curl_close($ch);"),l.join("\n").replace(/\n\n\n/g,"\n\n")}};function Swe(e){return" ".repeat(2*e)}function _we(e,t=0){if(null==e)return"null";if("string"==typeof e)return`'${e.replace(/'/g,"\\'")}'`;if("number"==typeof e||"boolean"==typeof e)return String(e);if(Array.isArray(e)){if(0===e.length)return"[]";const r=e.map((e=>_we(e,t+1))).join(",\n"+Swe(t+1));return`[\n${Swe(t+1)}${r}\n${Swe(t)}]`}if("object"==typeof e){const r=Object.entries(e);if(0===r.length)return"[]";const n=r.map((([e,r])=>`'${e}' => ${_we(r,t+1)}`)).join(",\n"+Swe(t+1));return`[\n${Swe(t+1)}${n}\n${Swe(t)}]`}return"null"}const Ewe={target:"php",client:"guzzle",title:"Guzzle",generate(e,t){var r;if(!e)return"";const n={},a=(e.method||"GET").toUpperCase(),o=e.url||"";if(e.headers&&Array.isArray(e.headers)&&e.headers.length>0){const t={};e.headers.forEach((e=>{void 0===t[e.name]?t[e.name]=e.value:Array.isArray(t[e.name])?t[e.name].push(e.value):t[e.name]=[t[e.name],e.value]})),n.headers=t}if(e.queryString&&e.queryString.length>0){const t={};e.queryString.forEach((e=>{t[e.name]=e.value})),n.query=t}if(e.cookies&&e.cookies.length>0){const t={};e.cookies.forEach((e=>{t[e.name]=e.value})),n.cookies=t}if((null==(r=null==t?void 0:t.auth)?void 0:r.username)&&t.auth.password&&(n.auth=[t.auth.username,t.auth.password]),e.postData)if("application/json"===e.postData.mimeType)try{n.json=JSON.parse(e.postData.text||"{}")}catch(t){n.body=e.postData.text}else if("multipart/form-data"===e.postData.mimeType){if(e.postData.params)n.multipart=e.postData.params.map((e=>({name:e.name,contents:e.fileName?`fopen('${e.fileName}', 'r')`:e.value||""})));else if(e.postData.text)try{n.form_params=JSON.parse(e.postData.text)}catch(t){n.body=e.postData.text}}else if("application/x-www-form-urlencoded"===e.postData.mimeType){if(e.postData.params){const t={};e.postData.params.forEach((e=>{t[e.name]=e.value||""})),n.form_params=t}}else n.body=e.postData.text;e.headers&&Array.isArray(e.headers)&&e.headers.some((e=>"Accept-Encoding"===e.name&&e.value.includes("gzip")))&&(n.decode_content=!0);let i="$client = new GuzzleHttp\\Client();\n\n";return Object.keys(n).length>0?i+=`$response = $client->request('${a}', '${o}', ${Twe(n)});`:i+=`$response = $client->request('${a}', '${o}');`,i}};function Twe(e,t=0){if(0===Object.keys(e).length)return"[]";const r=" ".repeat(4);let n="[\n";for(const[a,o]of Object.entries(e)){const e=Awe(o,t+1);n+=`${r.repeat(t+1)}'${a}' => ${e},\n`}return n+=`${r.repeat(t)}]`,n}function Awe(e,t){if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e&&e.startsWith("fopen("))return e;if("string"==typeof e)return`'${e}'`;if("number"==typeof e)return e.toString();if(Array.isArray(e)){if(0===e.length)return"[]";const r=" ".repeat(4);let n="[\n";return e.forEach((e=>{const a=Awe(e,t+1);n+=`${r.repeat(t+1)}${a},\n`})),n+=`${r.repeat(t)}]`,n}return"object"==typeof e?Twe(e,t):`'${e}'`}const Cwe=e=>({method:t,headersObj:r,cookies:n,uriObj:a,fullUrl:o,postData:i,allHeaders:s})=>{const{push:l,join:c}=new mOe;if(!["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].includes(t.toUpperCase()))return"Method not supported";const u=[],d=Object.keys(r);return d.length&&(l("$headers=@{}"),d.forEach((e=>{"connection"!==e&&l(`$headers.Add("${e}", "${gOe(r[e],{escapeChar:"`"})}")`)})),u.push("-Headers $headers")),n.length&&(l("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"),n.forEach((e=>{l("$cookie = New-Object System.Net.Cookie"),l(`$cookie.Name = '${e.name}'`),l(`$cookie.Value = '${e.value}'`),l(`$cookie.Domain = '${a.host}'`),l("$session.Cookies.Add($cookie)")})),u.push("-WebSession $session")),(null==i?void 0:i.text)&&(u.push(`-ContentType '${gOe(kOe(s,"content-type"),{delimiter:"'",escapeChar:"`"})}'`),u.push(`-Body '${i.text}'`)),l(`$response = ${e} -Uri '${o}' -Method ${t} ${u.join(" ")}`),c()},Pwe={info:{key:"restmethod",title:"Invoke-RestMethod",link:"https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Utility/Invoke-RestMethod",description:"Powershell Invoke-RestMethod client"},convert:Cwe("Invoke-RestMethod")},Dwe={target:"powershell",client:"restmethod",title:"Invoke-RestMethod",generate:e=>OOe(Pwe,e)},$we={info:{key:"webrequest",title:"Invoke-WebRequest",link:"https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Utility/Invoke-WebRequest",description:"Powershell Invoke-WebRequest client"},convert:Cwe("Invoke-WebRequest")},Rwe={target:"powershell",client:"webrequest",title:"Invoke-WebRequest",generate:e=>OOe($we,e)},Mwe={info:{key:"python3",title:"http.client",link:"https://docs.python.org/3/library/http.client.html",description:"Python3 HTTP Client"},convert:({uriObj:{path:e,protocol:t,host:r},postData:n,allHeaders:a,method:o},i={})=>{const{insecureSkipVerify:s=!1}=i,{push:l,blank:c,join:u}=new mOe;l("import http.client"),s&&l("import ssl"),c(),"https:"===t?(l(`conn = http.client.HTTPSConnection("${r}"${s?", context = ssl._create_unverified_context()":""})`),c()):(l(`conn = http.client.HTTPConnection("${r}")`),c());const d=JSON.stringify(null==n?void 0:n.text);d&&(l(`payload = ${d}`),c());const p=a,h=Object.keys(p).length;if(1===h)for(const e in p)l(`headers = { '${e}': "${bOe(p[e])}" }`),c();else if(h>1){let e=1;l("headers = {");for(const t in p)e++!==h?l(` '${t}': "${bOe(p[t])}",`):l(` '${t}': "${bOe(p[t])}"`);l("}"),c()}return l(d&&h?`conn.request("${o}", "${e}", payload, headers)`:d&&!h?`conn.request("${o}", "${e}", payload)`:!d&&h?`conn.request("${o}", "${e}", headers=headers)`:`conn.request("${o}", "${e}")`),c(),l("res = conn.getresponse()"),l("data = res.read()"),c(),l('print(data.decode("utf-8"))'),u()}},Nwe={target:"python",client:"python3",title:"http.client",generate:e=>OOe(Mwe,e)};function Iwe(e){const t=[["true","True"],["false","False"],["null","None"]];let r=e;for(const[e,n]of t){const t=[`(: )${e}(?=,|\\n)`,`^( +)${e}(?=,|\\n)`];for(const e of t)r=r.replace(new RegExp(e,"gm"),`$1${n}`)}return r}function Lwe(e,t,r){var n,a,o,i,s,l;const c={url:"https://example.com",method:"get",...t},u=c.method.toLowerCase(),d={};if((null==(n=c.headers)?void 0:n.length)&&(d.headers=c.headers.reduce(((e,t)=>(t.name in e||(e[t.name]=t.value),e)),{})),(null==(a=c.queryString)?void 0:a.length)&&(d.params=Object.fromEntries(c.queryString.map((e=>[e.name,e.value])))),(null==(o=c.cookies)?void 0:o.length)&&(d.cookies=Object.fromEntries(c.cookies.map((e=>[e.name,e.value])))),(null==(i=null==r?void 0:r.auth)?void 0:i.username)&&(null==(s=null==r?void 0:r.auth)?void 0:s.password)&&(d.auth=[r.auth.username,r.auth.password]),c.postData){const{mimeType:e,text:t,params:r}=c.postData;if("application/json"===e&&t)try{d.json=JSON.parse(t)}catch{d.data=t}else if("application/octet-stream"===e&&t)d.data=t;else if("multipart/form-data"===e&&r){const e=[],t={};r.forEach((r=>{void 0!==r.fileName?e.push({key:r.name,file:`open("${r.fileName}", "rb")`}):void 0!==r.value&&(t[r.name]=r.value)})),Object.keys(e).length&&(d.files=e),Object.keys(t).length&&(d.data=t)}else"application/x-www-form-urlencoded"===e&&r&&(d.data=Object.fromEntries(r.map((e=>[e.name,e.value]))))}const p=[],h=`"${c.url}"`;c.url.length>40?p.push(h):p.push("");for(const[e,t]of Object.entries(d))if("auth"===e)p.push(`${e}=(${Iwe(JSON.stringify(t[0]))}, ${Iwe(JSON.stringify(t[1]))})`);else if("files"===e){const r="[\n"+t.map((({key:e,file:t})=>` ("${e}", ${t})`)).join(",\n")+"\n ]";p.push(`${e}=${r}`)}else if("json"===e){const r=Iwe(JSON.stringify(t,null,2).split("\n").map(((e,t)=>0===t?e:" "+e)).join("\n"));p.push(`${e}=${r}`)}else if("data"===e&&"application/octet-stream"===(null==(l=c.postData)?void 0:l.mimeType))p.push(`${e}=b"${t}"`);else{const r=Iwe(JSON.stringify(t,null,2).split("\n").map(((e,t)=>0===t?e:" "+e)).join("\n"));p.push(`${e}=${r}`)}return c.url.length>40?`${e}.${u}(\n ${p.join(",\n ")}\n)`:p.length<=1?`${e}.${u}(${h})`:`${e}.${u}(${h}${p.length>1?",":""}\n ${p.slice(1).join(",\n ")}\n)`}const jwe={target:"python",client:"requests",title:"Requests",generate:(e,t)=>Lwe("requests",e,t)},Bwe={target:"python",client:"httpx_sync",title:"HTTPX (Sync)",generate:(e,t)=>Lwe("httpx",e,t)},Uwe={target:"python",client:"httpx_async",title:"HTTPX (Async)",generate(e,t){let r=Lwe("await client",e,t);return r=r.split("\n").map((e=>""===e.trim()?e:" "+e)).join("\n"),`with httpx.AsyncClient() as client:\n${r}`}},Fwe={info:{key:"httr",title:"httr",link:"https://cran.r-project.org/web/packages/httr/vignettes/quickstart.html",description:"httr: Tools for Working with URLs and HTTP"},convert:({url:e,queryObj:t,queryString:r,postData:n,allHeaders:a,method:o},i={})=>{let s,l;const{push:c,blank:u,join:d}=new mOe({indent:null!==(s=i.indent)&&void 0!==s?s:" "});c("library(httr)"),u(),c(`url <- "${e}"`),u();const p=t;delete t.key;const h=Object.entries(p),f=h.length;if(1===f){const e=h[0];c(`queryString <- list(${e[0]} = "${e[1]}")`),u()}else f>1&&(c("queryString <- list("),h.forEach((([e,t],r)=>{c(`${e} = "${t}"${r!==f-1?",":""}`,1)})),c(")"),u());const m=JSON.stringify(null==n?void 0:n.text);if(m&&(c(`payload <- ${m}`),u()),n&&(n.text||n.jsonObj||n.params))switch(n.mimeType){case"application/x-www-form-urlencoded":c('encode <- "form"'),u();break;case"application/json":c('encode <- "json"'),u();break;case"multipart/form-data":c('encode <- "multipart"'),u();break;default:c('encode <- "raw"'),u()}const g=kOe(a,"cookie"),v=kOe(a,"accept"),b=g?`set_cookies(\`${String(g).replace(/;/g,'", `').replace(/` /g,"`").replace(/[=]/g,'` = "')}")`:void 0,y=v?`accept("${bOe(v)}")`:void 0,O=`content_type("${bOe(null!==(l=null==n?void 0:n.mimeType)&&void 0!==l?l:"application/octet-stream")}")`,w=Object.entries(a).filter((([e])=>!["cookie","accept","content-type"].includes(e.toLowerCase()))).map((([e,t])=>`'${e}' = '${vOe(t)}'`)).join(", "),x=w?`add_headers(${w})`:void 0;let k=`response <- VERB("${o}", url`;m&&(k+=", body = payload"),r.length&&(k+=", query = queryString");const S=[x,O,y,b].filter((e=>!!e)).join(", ");return S&&(k+=`, ${S}`),n&&(n.text||n.jsonObj||n.params)&&(k+=", encode = encode"),k+=")",c(k),u(),c('content(response, "text")'),d()}},Qwe={target:"r",client:"httr",title:"httr",generate:e=>OOe(Fwe,e)},zwe={info:{key:"native",title:"net::http",link:"http://ruby-doc.org/stdlib-2.2.1/libdoc/net/http/rdoc/Net/HTTP.html",description:"Ruby HTTP client"},convert:({uriObj:e,method:t,fullUrl:r,postData:n,allHeaders:a},o={})=>{const{insecureSkipVerify:i=!1}=o,{push:s,blank:l,join:c}=new mOe;s("require 'uri'"),s("require 'net/http'"),l();const u=t.toUpperCase(),d=u.charAt(0)+u.substring(1).toLowerCase();["GET","POST","HEAD","DELETE","PATCH","PUT","OPTIONS","COPY","LOCK","UNLOCK","MOVE","TRACE"].includes(u)||(s(`class Net::HTTP::${d} < Net::HTTPRequest`),s(` METHOD = '${u.toUpperCase()}'`),s(` REQUEST_HAS_BODY = '${(null==n?void 0:n.text)?"true":"false"}'`),s(" RESPONSE_HAS_BODY = true"),s("end"),l()),s(`url = URI("${r}")`),l(),s("http = Net::HTTP.new(url.host, url.port)"),"https:"===e.protocol&&(s("http.use_ssl = true"),i&&s("http.verify_mode = OpenSSL::SSL::VERIFY_NONE")),l(),s(`request = Net::HTTP::${d}.new(url)`);const p=Object.keys(a);return p.length&&p.forEach((e=>{s(`request["${e}"] = '${vOe(a[e])}'`)})),(null==n?void 0:n.text)&&s(`request.body = ${JSON.stringify(n.text)}`),l(),s("response = http.request(request)"),s("puts response.read_body"),c()}},qwe={target:"ruby",client:"native",title:"net::http",generate:e=>OOe(zwe,e)};function Hwe(e){return`"${function(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\0/g,"\\0")}(e)}"`}const Vwe={target:"rust",client:"reqwest",title:"reqwest",generate(e,t){const r=Gwe(e),n=Ywe(r.queryString),a=Kwe(r.url,n),o=Jwe(r),i=[],s=exe(null==t?void 0:t.auth);s&&i.push(s),i.push(...txe(o));const l=rxe(r.postData);return l&&i.push(l),nxe(a,r.method,i)}},Zwe=(e,t)=>`${" ".repeat(4*e)}${t}`,Wwe=(e,...t)=>Zwe(1,`.${e}(${t.join(", ")})`),Xwe=e=>e.fileName?[Zwe(2,`let part = reqwest::multipart::Part::text(${Hwe(e.value||"")})`),Zwe(3,`.file_name(${Hwe(e.fileName)});`),Zwe(2,`form = form.part(${Hwe(e.name)}, part);`)].join("\n"):Zwe(2,`form = form.text(${Hwe(e.name)}, ${Hwe(e.value||"")});`),Gwe=e=>({...e,method:(e.method||"GET").toUpperCase()}),Ywe=e=>(null==e?void 0:e.length)?`?${e.map((e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`)).join("&")}`:"",Kwe=(e,t)=>`${e}${t}`,Jwe=e=>{var t;const r={};if(e.headers)for(const t of e.headers)t.value&&!/[; ]/.test(t.name)&&(r[t.name]=t.value);if((null==(t=e.cookies)?void 0:t.length)>0){const t=e.cookies.map((e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`)).join("; ");r.Cookie=t}return r},exe=e=>(null==e?void 0:e.username)&&(null==e?void 0:e.password)?Wwe("basic_auth",Hwe(e.username),Hwe(e.password)):null,txe=e=>Object.entries(e).map((([e,t])=>Wwe("header",Hwe(e),Hwe(t)))),rxe=e=>{if(!e)return null;const{mimeType:t,text:r,params:n}=e;switch(t){case"application/json":{const e=(e=>{try{const t=JSON.parse(e),r=JSON.stringify(t,null,4).split("\n");return r.map(((e,t)=>0===t?e:(r.length,Zwe(1,e)))).join("\n")}catch{return e}})(r);return Wwe("json",`&serde_json::json!(${e})`)}case"application/x-www-form-urlencoded":{const e=(null==n?void 0:n.map((e=>`(${Hwe(e.name)}, ${Hwe(e.value||"")})`)).join(", "))||"";return Wwe("form",`&[${e}]`)}case"multipart/form-data":{const e=(null==n?void 0:n.map(Xwe).join("\n"))||"",t=[".multipart({",Zwe(2,"let mut form = reqwest::multipart::Form::new();"),e,Zwe(3,"form"),Zwe(2,"})")].join("\n");return Zwe(1,t)}default:return Wwe("body",Hwe(r||""))}},nxe=(e,t,r)=>{const n=["let client = reqwest::Client::new();",""];r.length>0?(n.push("let request = client"),n.push(Zwe(1,`.${t.toLowerCase()}(${Hwe(e)})`)),n.push(...r)):n.push(`let request = client.${t.toLowerCase()}(${Hwe(e)})`);const a=n[n.length-1];return n[n.length-1]=a+";",n.push(""),n.push("let response = request.send().await?;"),n.join("\n")},axe=(e="")=>/^[a-z0-9-_/.@%^=:]+$/i.test(e)?e:`'${e.replace(/'/g,"'\\''")}'`,oxe={info:{key:"httpie",title:"HTTPie",link:"http://httpie.org/",description:"a CLI, cURL-like tool for humans"},convert:({allHeaders:e,postData:t,queryObj:r,fullUrl:n,method:a,url:o},i)=>{var s,l;const c={body:!1,cert:!1,headers:!1,indent:" ",pretty:!1,print:!1,queryParams:!1,short:!1,style:!1,timeout:!1,verbose:!1,verify:!1,...i},{push:u,join:d,unshift:p}=new mOe({indent:c.indent,join:!1!==c.indent?` \\\n${c.indent}`:" "});let h=!1;const f=[];return c.headers&&f.push(c.short?"-h":"--headers"),c.body&&f.push(c.short?"-b":"--body"),c.verbose&&f.push(c.short?"-v":"--verbose"),c.print&&f.push(`${c.short?"-p":"--print"}=${c.print}`),c.verify&&f.push(`--verify=${c.verify}`),c.cert&&f.push(`--cert=${c.cert}`),c.pretty&&f.push(`--pretty=${c.pretty}`),c.style&&f.push(`--style=${c.style}`),c.timeout&&f.push(`--timeout=${c.timeout}`),c.queryParams&&Object.keys(r).forEach((e=>{const t=r[e];Array.isArray(t)?t.forEach((t=>{u(`${e}==${axe(t)}`)})):u(`${e}==${axe(t)}`)})),Object.keys(e).sort().forEach((t=>{u(`${t}:${axe(e[t])}`)})),"application/x-www-form-urlencoded"===(null==t?void 0:t.mimeType)?(null==(s=t.params)?void 0:s.length)&&(f.push(c.short?"-f":"--form"),t.params.forEach((e=>{u(`${e.name}=${axe(e.value)}`)}))):"multipart/form-data"===(null==t?void 0:t.mimeType)?(null==(l=t.params)?void 0:l.length)&&(f.push("--multipart"),t.params.forEach((e=>{e.fileName?u(`${e.name}@${axe(e.fileName)}`):u(`${e.name}='${axe(e.value)}'`)}))):h=!0,p(`http ${f.length?`${f.join(" ")} `:""}${a} ${o=axe(c.queryParams?o:n)}`),h&&(null==t?void 0:t.text)&&p(`echo ${axe(t.text)} | `),d()}},ixe={info:{key:"wget",title:"Wget",link:"https://www.gnu.org/software/wget/",description:"a free software package for retrieving files using HTTP, HTTPS"},convert:({method:e,postData:t,allHeaders:r,fullUrl:n},a)=>{const o={indent:" ",short:!1,verbose:!1,...a},{push:i,join:s}=new mOe({indent:o.indent,join:!1!==o.indent?` \\\n${o.indent}`:" "});var l;return o.verbose?i("wget "+(o.short?"-v":"--verbose")):i("wget "+(o.short?"-q":"--quiet")),i(`--method ${axe(e)}`),Object.keys(r).forEach((e=>{const t=`${e}: ${r[e]}`;i(`--header ${axe(t)}`)})),(null==t?void 0:t.text)&&i(`--body-data ${l=axe(t.text),l.replace(/\r/g,"\\r").replace(/\n/g,"\\n")}`),i(o.short?"-O":"--output-document"),i(`- ${axe(n)}`),s()}},sxe=(e,t)=>t.repeat(e),lxe=(e,t,r,n)=>{const a=sxe(n,r),o=sxe(n-1,r),i=t?`,\n${a}`:", ";return t?`[\n${a}${e.join(i)}\n${o}]`:`[${e.join(i)}]`},cxe=(e,t,r)=>`let ${e} = ${uxe(t,r)}`,uxe=(e,t,r)=>{switch(r=void 0===r?1:r+1,Object.prototype.toString.call(e)){case"[object Number]":return e;case"[object Array]":{let n=!1;const a=e.map((e=>("[object Object]"===Object.prototype.toString.call(e)&&(n=Object.keys(e).length>1),uxe(e,t,r))));return lxe(a,n,t.indent,r)}case"[object Object]":{const n=[];for(const a in e)n.push(`"${a}": ${uxe(e[a],t,r)}`);return lxe(n,t.pretty&&n.length>1,t.indent,r)}case"[object Boolean]":return e.toString();default:return null==e?"":`"${e.toString().replace(/"/g,'\\"')}"`}},dxe={info:{key:"nsurlsession",title:"NSURLSession",link:"https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLSession_class/index.html",description:"Foundation's NSURLSession request"},convert:({allHeaders:e,postData:t,fullUrl:r,method:n},a)=>{let o;const i={indent:" ",pretty:!0,timeout:"10",...a},{push:s,blank:l,join:c}=new mOe({indent:i.indent}),u={hasHeaders:!1,hasBody:!1};if(s("import Foundation"),Object.keys(e).length&&(u.hasHeaders=!0,l(),s(cxe("headers",e,i))),t&&(t.text||t.jsonObj||t.params))switch(u.hasBody=!0,t.mimeType){case"application/x-www-form-urlencoded":if(l(),null===(o=t.params)||void 0===o?void 0:o.length){const[e,...r]=t.params;s(`let postData = NSMutableData(data: "${e.name}=${e.value}".data(using: String.Encoding.utf8)!)`),r.forEach((({name:e,value:t})=>{s(`postData.append("&${e}=${t}".data(using: String.Encoding.utf8)!)`)}))}else u.hasBody=!1;break;case"application/json":t.jsonObj&&(s(`${cxe("parameters",t.jsonObj,i)} as [String : Any]`),l(),s("let postData = JSONSerialization.data(withJSONObject: parameters, options: [])"));break;case"multipart/form-data":s(cxe("parameters",t.params,i)),l(),s(`let boundary = "${t.boundary}"`),l(),s('var body = ""'),s("var error: NSError? = nil"),s("for param in parameters {"),s('let paramName = param["name"]!',1),s('body += "--\\(boundary)\\r\\n"',1),s('body += "Content-Disposition:form-data; name=\\"\\(paramName)\\""',1),s('if let filename = param["fileName"] {',1),s('let contentType = param["content-type"]!',2),s("let fileContent = String(contentsOfFile: filename, encoding: String.Encoding.utf8)",2),s("if (error != nil) {",2),s("print(error as Any)",3),s("}",2),s('body += "; filename=\\"\\(filename)\\"\\r\\n"',2),s('body += "Content-Type: \\(contentType)\\r\\n\\r\\n"',2),s("body += fileContent",2),s('} else if let paramValue = param["value"] {',1),s('body += "\\r\\n\\r\\n\\(paramValue)"',2),s("}",1),s("}");break;default:l(),s(`let postData = NSData(data: "${t.text}".data(using: String.Encoding.utf8)!)`)}return l(),s(`let request = NSMutableURLRequest(url: NSURL(string: "${r}")! as URL,`),s(" cachePolicy: .useProtocolCachePolicy,"),s(` timeoutInterval: ${Number.parseInt(i.timeout,10).toFixed(1)})`),s(`request.httpMethod = "${n}"`),u.hasHeaders&&s("request.allHTTPHeaderFields = headers"),u.hasBody&&s("request.httpBody = postData as Data"),l(),s("let session = URLSession.shared"),s("let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in"),s("if (error != nil) {",1),s("print(error as Any)",2),s("} else {",1),s("let httpResponse = response as? HTTPURLResponse",2),s("print(httpResponse)",2),s("}",1),s("})"),l(),s("dataTask.resume()"),c()}},pxe=[{key:"c",title:"C",default:"libcurl",clients:[wOe]},{key:"csharp",title:"C#",default:"restsharp",clients:[NOe,LOe]},{key:"clojure",title:"Clojure",default:"clj_http",clients:[ROe]},{key:"dart",title:"Dart",default:"http",clients:[jOe]},{key:"go",title:"Go",default:"native",clients:[UOe]},{key:"http",title:"HTTP",default:"http1.1",clients:[FOe]},{key:"java",title:"Java",default:"unirest",clients:[zOe,HOe,ZOe,XOe]},{key:"js",title:"JavaScript",default:"fetch",clients:[awe,ewe,swe,iwe,cwe]},{key:"kotlin",title:"Kotlin",default:"okhttp",clients:[dwe]},{key:"node",title:"Node.js",default:"fetch",clients:[fwe,hwe,mwe,gwe]},{key:"objc",title:"Objective-C",default:"nsurlsession",clients:[Owe]},{key:"ocaml",title:"OCaml",default:"cohttp",clients:[xwe]},{key:"php",title:"PHP",default:"curl",clients:[kwe,Ewe]},{key:"powershell",title:"Powershell",default:"webrequest",clients:[Rwe,Dwe]},{key:"python",title:"Python",default:"python3",clients:[Nwe,jwe,Bwe,Uwe]},{key:"r",title:"R",default:"httr",clients:[Qwe]},{key:"ruby",title:"Ruby",default:"native",clients:[qwe]},{key:"rust",title:"Rust",default:"reqwest",clients:[Vwe]},{key:"shell",title:"Shell",default:"curl",clients:[{target:"shell",client:"curl",title:"Curl",generate(e,t){var r,n,a,o,i;const s={method:"GET",...e};s.method=s.method.toUpperCase();const l=["curl"],c=(null==(r=s.queryString)?void 0:r.length)?"?"+s.queryString.map((e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`)).join("&"):"",u=`${s.url}${c}`,d=/[\s<>[\]{}|\\^%$]/.test(u),p=c||d?`'${u}'`:u;if(l[0]=`curl ${p}`,"GET"!==s.method&&l.push(`--request ${s.method}`),(null==(n=null==t?void 0:t.auth)?void 0:n.username)&&(null==(a=null==t?void 0:t.auth)?void 0:a.password)&&l.push(`--user '${t.auth.username}:${t.auth.password}'`),null==(o=s.headers)?void 0:o.length){s.headers.forEach((e=>{l.push(`--header '${e.name}: ${e.value}'`)}));const e=s.headers.find((e=>"accept-encoding"===e.name.toLowerCase()));e&&/gzip|deflate/.test(e.value)&&l.push("--compressed")}if(null==(i=s.cookies)?void 0:i.length){const e=s.cookies.map((e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`)).join("; ");l.push(`--cookie '${e}'`)}if(s.postData)if("application/json"===s.postData.mimeType){if(s.postData.text)try{const e=JSON.parse(s.postData.text),t=JSON.stringify(e,null,2);l.push(`--data '${t}'`)}catch{l.push(`--data '${s.postData.text}'`)}}else if("application/octet-stream"===s.postData.mimeType)l.push(`--data-binary '${s.postData.text}'`);else if("application/x-www-form-urlencoded"===s.postData.mimeType&&s.postData.params)s.postData.params.forEach((e=>{l.push(`--data-urlencode '${encodeURIComponent(e.name)}=${e.value}'`)}));else if("multipart/form-data"===s.postData.mimeType&&s.postData.params)s.postData.params.forEach((e=>{void 0!==e.fileName?l.push(`--form '${e.name}=@${e.fileName}'`):l.push(`--form '${e.name}=${e.value}'`)}));else try{const e=JSON.parse(s.postData.text??""),t=JSON.stringify(e,null,2);l.push(`--data '${t}'`)}catch{l.push(`--data '${s.postData.text}'`)}return l.join(" \\\n ")}},{target:"shell",client:"wget",title:"Wget",generate:e=>OOe(ixe,e)},{target:"shell",client:"httpie",title:"HTTPie",generate:e=>OOe(oxe,e)}]},{key:"swift",title:"Swift",default:"nsurlsession",clients:[{target:"swift",client:"nsurlsession",title:"NSURLSession",generate:e=>OOe(dxe,e)}]}];function hxe(){function e(e,t){var r;return null==(r=pxe.find((({key:t})=>t===e)))?void 0:r.clients.find((e=>e.client===t))}return{print(t,r,n){var a;return null==(a=e(t,r))?void 0:a.generate(n)},clients:()=>pxe,plugins:()=>pxe.flatMap((({key:e,clients:t})=>t.map((t=>({target:e,client:t.client}))))),findPlugin:e,hasPlugin:(t,r)=>Boolean(e(t,r))}}const fxe={targetKey:"shell",clientKey:"curl"},{clients:mxe}=hxe();function gxe(e){var t;return(null==(t=Oxe.value.find((t=>t.key===e.targetKey)))?void 0:t.title)??e.targetKey}function vxe(e){var t,r;return(null==(r=null==(t=Oxe.value.find((t=>t.key===e.targetKey)))?void 0:t.clients.find((t=>t.client===e.clientKey)))?void 0:r.title)??e.clientKey}const bxe=hc((()=>gxe(Txe))),yxe=hc((()=>vxe(Txe))),Oxe=hc((()=>{return e=mxe(),!0===(t=wxe).value?[]:e.flatMap((e=>{var r;return"object"!=typeof t.value?[]:Array.isArray(t.value)?(e.clients=e.clients.filter((e=>!t.value.includes(e.client))),e.clients.length?[e]:[]):!0===t.value[e.key]?[]:(Array.isArray(t.value[e.key])&&(e.clients=e.clients.filter((r=>!t.value[e.key].includes(r.client)))),(null==(r=null==e?void 0:e.clients)?void 0:r.length)?[e]:[])}));var e,t})),wxe=So({}),xxe=So();function kxe(e){void 0!==e&&(xxe.value=e,Axe(Sxe()))}const Sxe=()=>{var e,t,r,n;return _xe(xxe.value)?xxe.value:_xe(fxe)?fxe:{targetKey:null==(e=Oxe.value[0])?void 0:e.key,clientKey:null==(n=null==(r=null==(t=Oxe.value[0])?void 0:t.clients)?void 0:r[0])?void 0:n.client}};function _xe(e){return void 0!==e&&!!Oxe.value.find((t=>t.key===e.targetKey&&t.clients.find((t=>t.client===e.clientKey))))}function Exe(){hOe(Txe,Sxe())}const Txe=uo(Sxe()),Axe=e=>{Object.assign(Txe,{...Txe,...e}),zL().setItem(BL,JSON.stringify(Txe))},Cxe=()=>({httpClient:ho(Txe),resetState:Exe,setHttpClient:Axe,setDefaultHttpClient:kxe,excludedClients:ho(wxe),setExcludedClients:e=>{wxe.value=e,hOe(Txe,Sxe())},availableTargets:Oxe,getClientTitle:vxe,getTargetTitle:gxe,httpTargetTitle:bxe,httpClientTitle:yxe});function Pxe(){const{availableTargets:e}=Cxe(),t=[{targetKey:"shell",clientKey:"curl"},{targetKey:"ruby",clientKey:"native"},{targetKey:"node",clientKey:"undici"},{targetKey:"php",clientKey:"guzzle"},{targetKey:"python",clientKey:"python3"}].filter((t=>e.value.find((e=>e.key===t.targetKey&&e.clients.find((e=>e.client===t.clientKey))))));return{featuredClients:t,isFeatured:e=>t.some((t=>t.targetKey===e.targetKey&&t.clientKey===e.clientKey))}}const Dxe={class:"client-libraries-text"},$xe=["aria-controls","value"],Rxe=["label"],Mxe=["aria-label","value"],Nxe={"aria-hidden":"true",class:"client-libraries-icon__more"},Ixe={key:1,class:"client-libraries-icon",height:"50",role:"presentation",viewBox:"0 0 50 50",width:"50",xmlns:"http://www.w3.org/2000/svg"},Lxe={key:0,class:"client-libraries-text client-libraries-text-more"},jxe=aye(Li({__name:"ClientSelector",props:{morePanel:{}},setup(e){const{httpClient:t,setHttpClient:r,availableTargets:n,getClientTitle:a,getTargetTitle:o}=Cxe(),{featuredClients:i,isFeatured:s}=Pxe(),l=So(),c=e=>`programming-language-${"js"===e?"javascript":e}`;return(e,u)=>(Pl(),Ml("div",{ref_key:"containerRef",ref:l,class:"client-libraries-content"},[(Pl(!0),Ml(Sl,null,ps(Ao(i),(e=>{return Pl(),Nl(Ao(VF),{key:e.clientKey,class:zn(["client-libraries rendered-code-sdks",{"client-libraries__active":(r=e,r.targetKey===t.targetKey&&r.clientKey===t.clientKey)}])},{default:ci((()=>[Ul("div",{class:zn(`client-libraries-icon__${e.targetKey}`)},[Fl(Ao(p5),{class:"client-libraries-icon",icon:c(e.targetKey)},null,8,["icon"])],2),Ul("span",Dxe,Gn(Ao(o)(e)),1)])),_:2},1032,["class"]);var r})),128)),Ul("label",{class:zn(["client-libraries client-libraries__select",{"client-libraries__active":Ao(t)&&!Ao(s)(Ao(t))}])},[Ul("select",{"aria-controls":e.morePanel,class:"language-select",value:JSON.stringify(Ao(t)),onInput:u[0]||(u[0]=e=>Ao(r)(JSON.parse(e.target.value)))},[(Pl(!0),Ml(Sl,null,ps(Ao(n),(e=>(Pl(),Ml("optgroup",{key:e.key,label:e.title},[(Pl(!0),Ml(Sl,null,ps(e.clients,(t=>(Pl(),Ml("option",{key:t.client,"aria-label":`${e.title} ${Ao(a)({targetKey:e.key,clientKey:t.client})}`,value:JSON.stringify({targetKey:e.key,clientKey:t.client})},Gn(Ao(a)({targetKey:e.key,clientKey:t.client})),9,Mxe)))),128))],8,Rxe)))),128))],40,$xe),Ul("div",Nxe,[Ao(t)&&!Ao(s)(Ao(t))?(Pl(),Ml("div",{key:0,class:zn(`client-libraries-icon__${Ao(t).targetKey}`)},[Fl(Ao(p5),{class:"client-libraries-icon",icon:c(Ao(t).targetKey)},null,8,["icon"])],2)):(Pl(),Ml("svg",Ixe,u[1]||(u[1]=[Ul("g",{fill:"currentColor","fill-rule":"nonzero"},[Ul("path",{d:"M10.71 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M21.13 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M31.55 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0"})],-1)])))]),Ao(n).length?(Pl(),Ml("span",Lxe," More ")):Vl("",!0),u[2]||(u[2]=Ul("span",{class:"sr-only"},"Select from all clients",-1))],2)],512))}}),[["__scopeId","data-v-82c08547"]]),Bxe={key:0},Uxe=["id"],Fxe={key:1,class:"selected-client card-footer border-t-0 p-0",role:"tabpanel",tabindex:"1"},Qxe=["id"],zxe=Li({__name:"ClientLibraries",setup(e){const{availableTargets:t,httpTargetTitle:r,httpClientTitle:n,getClientTitle:a,getTargetTitle:o,httpClient:i,setHttpClient:s}=Cxe(),{featuredClients:l,isFeatured:c}=Pxe(),u=Hve(),d=So(0),p=ji(),h=ji();function f(e){const t=l[e];t&&s(t)}ul(i,(e=>{e&&(d.value=l.findIndex((t=>t.targetKey===e.targetKey&&t.clientKey===e.clientKey)))}),{immediate:!0}),Yi((()=>{const e=localStorage.getItem(BL);e&&s(JSON.parse(e))}));const m=hc((()=>{var e;const t=Object.values(u.collections)[0],r=null==(e=null==t?void 0:t.info)?void 0:e["x-scalar-sdk-installation"];if(!Array.isArray(r)||!(null==r?void 0:r.length))return;const n=r.find((e=>{var t;return e.lang.toLowerCase()===(null==(t=null==i?void 0:i.targetKey)?void 0:t.toLowerCase())}));return n||void 0}));return(e,s)=>Ao(t).length?(Pl(),Ml("div",Bxe,[Fl(Ao(qF),{manual:"",selectedIndex:d.value,onChange:f},{default:ci((()=>[Ul("div",{id:Ao(p),class:"client-libraries-heading"}," Client Libraries ",8,Uxe),Fl(Ao(HF),{"aria-labelledby":Ao(p),class:"client-libraries-list"},{default:ci((()=>[Fl(jxe,{featured:Ao(l),morePanel:Ao(h)},null,8,["featured","morePanel"])])),_:1},8,["aria-labelledby"]),Fl(Ao(ZF),null,{default:ci((()=>{var e,t;return[(null==(e=m.value)?void 0:e.source)||(null==(t=m.value)?void 0:t.description)?(Pl(),Ml(Sl,{key:0},[m.value.description?(Pl(),Ml("div",{key:0,class:zn(["selected-client card-footer -outline-offset-2",m.value.source&&"rounded-b-none"]),role:"tabpanel",tabindex:"0"},[Fl(Ao(D5),{value:m.value.description},null,8,["value"])],2)):Vl("",!0),m.value.source?(Pl(),Ml("div",Fxe,[Fl(Ao(GV),{lang:"shell",content:m.value.source,copy:!0,class:"rounded-t-none rounded-b-lg px-3 py-2 -outline-offset-1 has-focus:outline"},null,8,["content"])])):Vl("",!0)],64)):Ao(i)&&Ao(c)(Ao(i))?(Pl(!0),Ml(Sl,{key:1},ps(Ao(l),((e,t)=>(Pl(),Nl(Ao(WF),{key:t,class:"selected-client card-footer -outline-offset-2"},{default:ci((()=>[ql(Gn(Ao(a)(e))+" "+Gn(Ao(o)(e)),1)])),_:2},1024)))),128)):(Pl(),Ml("div",{key:2,id:Ao(h),class:"selected-client card-footer -outline-offset-2",role:"tabpanel",tabindex:"0"},Gn(Ao(n))+" "+Gn(Ao(r)),9,Qxe))]})),_:1})])),_:1},8,["selectedIndex"])])):Vl("",!0)}}),qxe=aye(zxe,[["__scopeId","data-v-d0decf3e"]]),Hxe={class:"overflow-x-auto"},Vxe={key:1,class:"text-c-1 flex h-auto w-full items-center gap-0.75 rounded-b-lg px-3 py-1.5 text-base leading-[20px] whitespace-nowrap"},Zxe={class:"overflow-x-auto"},Wxe=Li({__name:"ServerSelector",props:{collection:{},server:{},target:{}},emits:["updateServer"],setup(e,{emit:t}){const r=t,{servers:n,collectionMutators:a}=Hve(),o=hc((()=>{var t;return null==(t=e.collection)?void 0:t.servers.map((e=>{var t;return{id:e,label:(null==(t=n[e])?void 0:t.url)??"Unknown server"}}))})),i=hc({get:()=>e.server?o.value.find((t=>t.id===e.server.uid)):void 0,set:t=>{var o;if(!t)return;a.edit(e.collection.uid,"selectedServerUid",t.id);const i=null==(o=n[t.id])?void 0:o.url;i&&r("updateServer",i)}});ul((()=>e.collection),(t=>{var o,i;if(!t||t.selectedServerUid)return;const s=null==(o=e.collection.servers)?void 0:o[0];s&&(a.edit(e.collection.uid,"selectedServerUid",s),null!=(i=n[s])&&i.url&&r("updateServer",n[s].url))}));const s=hc((()=>{var t,r,n;return null!=(r=null==(t=e.server)?void 0:t.url)&&r.endsWith("/")?e.server.url.slice(0,-1):(null==(n=e.server)?void 0:n.url)||""}));return(e,t)=>o.value.length>1?(Pl(),Nl(Ao(C5),{key:0,modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=e=>i.value=e),options:o.value,placement:"bottom-start",resize:"",target:e.target,teleport:`#${e.target}`},{default:ci((()=>[Fl(Ao(iz),{class:"bg-b-1 text-c-1 h-auto w-full justify-start gap-0.75 overflow-x-auto rounded-t-none rounded-b-lg px-3 py-1.5 text-base font-normal whitespace-nowrap -outline-offset-1",variant:"ghost"},{default:ci((()=>[t[1]||(t[1]=Ul("span",{class:"sr-only"},"Server:",-1)),Ul("span",Hxe,Gn(s.value),1),Fl(Ao(p5),{class:"text-c-2",icon:"ChevronDown",size:"sm"})])),_:1,__:[1]})])),_:1},8,["modelValue","options","target","teleport"])):(Pl(),Ml("div",Vxe,[t[2]||(t[2]=Ul("span",{class:"sr-only"},"Server:",-1)),Ul("span",Zxe,Gn(s.value),1)]))}}),Xxe=Symbol(),Gxe=()=>Bs(Xxe,hc((()=>zt.parse({})))),Yxe=["id"],Kxe=Li({__name:"BaseUrl",props:{collection:{},server:{}},setup(e){const{serverMutators:t}=Hve(),r=ji(),n=Gxe(),a=(r,n)=>{if(!e.server)return;const a=e.server.variables||{};a[r]={...a[r],default:n},t.edit(e.server.uid,"variables",a)},o=e=>{var t,r;null==(r=(t=n.value).onServerChange)||r.call(t,e)};return(e,t)=>{var n,i,s,l,c,u;return Pl(),Ml(Sl,null,[t[0]||(t[0]=Ul("label",{class:"bg-b-2 flex h-8 items-center rounded-t-lg border border-b-0 px-3 py-2.5 font-medium"}," Server ",-1)),Ul("div",{id:Ao(r),class:zn(["border",{"rounded-b-lg":!(null==(n=e.server)?void 0:n.description)&&!(null==(i=e.server)?void 0:i.variables)}])},[(null==(l=null==(s=e.collection)?void 0:s.servers)?void 0:l.length)?(Pl(),Nl(Ao(Wxe),{key:0,collection:e.collection,server:e.server,target:Ao(r),onUpdateServer:o},null,8,["collection","server","target"])):Vl("",!0)],10,Yxe),Fl(Ao(ebe),{variables:null==(c=e.server)?void 0:c.variables,layout:"reference","onUpdate:variable":a},null,8,["variables"]),(null==(u=e.server)?void 0:u.description)?(Pl(),Nl(Ao(D5),{key:0,class:"text-c-3 rounded-b-lg border border-t-0 px-3 py-1.5",value:e.server.description},null,8,["value"])):Vl("",!0)],64)}}}),Jxe={class:"badge"},eke=aye({},[["render",function(e,t){return Pl(),Ml("div",Jxe,[fs(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-f1bc5cda"]]),tke={class:"mb-3 flex h-auto min-h-8 max-w-full items-center gap-2 overflow-auto text-xs whitespace-nowrap xl:mb-1.5"},rke=aye({},[["render",function(e,t){return Pl(),Ml("div",tke,[fs(e.$slots,"default")])}]]),nke=Li({__name:"IntersectionObserver",props:{id:{},is:{}},emits:["intersecting"],setup(e,{emit:t}){const r=e,n=t,a=So(),o=e=>{const t=e.offsetHeight;return`${t/2}px 0px ${t/2}px 0px`};return Yi((()=>{if(a.value){const t={rootMargin:o(a.value),threshold:(e=a.value,e.offsetHeight<window.innerHeight?.8:.5)};!function(e,t,r={}){const{root:n,rootMargin:a="0px",threshold:o=.1,window:i=zj,immediate:s=!0}=r,l=Zj((()=>i&&"IntersectionObserver"in i)),c=hc((()=>{const t=Dj(e);return(Array.isArray(t)?t:[t]).map(Qj).filter(Rj)}));let u=Nj;const d=So(s),p=l.value?ul((()=>[c.value,Qj(n),d.value]),(([e,r])=>{if(u(),!d.value)return;if(!e.length)return;const n=new IntersectionObserver(t,{root:Qj(r),rootMargin:a,threshold:o});e.forEach((e=>e&&n.observe(e))),u=()=>{n.disconnect(),u=Nj}}),{immediate:s,flush:"post"}):Nj;Pj((()=>{u(),p(),d.value=!1}))}(a,(([{isIntersecting:e}])=>{e&&r.id&&n("intersecting")}),t)}var e})),(e,t)=>(Pl(),Nl(cs(e.is??"div"),{id:e.id,ref_key:"intersectionObserverRef",ref:a},{default:ci((()=>[fs(e.$slots,"default")])),_:3},8,["id"]))}}),ake=Symbol(),oke=So(!1),ike=So(""),ske=So(""),lke=e=>{const{isIntersectionEnabled:t,hash:r,hashPrefix:n}=Bs(ake,{isIntersectionEnabled:oke,hash:ike,hashPrefix:ske}),a=e??Gxe(),o=e=>{var t;if(!a.value.pathRouting)return"";const r=new RegExp("^"+(null==(t=a.value.pathRouting)?void 0:t.basePath)+"/?");return decodeURIComponent(e.replace(r,""))},i=()=>a.value.pathRouting?o(window.location.pathname):decodeURIComponent(window.location.hash.replace(/^#/,"")).slice(n.value.length),s=e=>"function"==typeof a.value.generateTagSlug?`tag/${a.value.generateTagSlug(e)}`:`tag/${JC(e.name??"")}`;return{hash:r,setHashPrefix:e=>{n.value=e},getFullHash:(e=r.value)=>`${n.value}${e}`,getHashedUrl:(e,t=window.location.href,r=window.location.search)=>{const o=new URL(t);return a.value.pathRouting?o.pathname=gj(a.value.pathRouting.basePath,e):o.hash=n.value+e,o.search=r,o.toString()},replaceUrlState:(e,t=window.location.href)=>{const o=new URL(t);a.value.pathRouting?o.pathname=gj(a.value.pathRouting.basePath,e):o.hash=n.value+e,r.value=e,window.history.replaceState({},"",o)},getReferenceId:i,getWebhookId:(e,t)=>{if(!(null==e?void 0:e.name))return"webhooks";const r=t?`${s(t)}/`:"";return"function"==typeof a.value.generateWebhookSlug?`${r}webhook/${a.value.generateWebhookSlug(e)}`:`${r}webhook/${e.method}/${JC(e.name)}`},getModelId:(e,t)=>{if(!(null==e?void 0:e.name))return"models";const r=t?`${s(t)}/`:"";return"function"==typeof a.value.generateModelSlug?`${r}model/${a.value.generateModelSlug(e)}`:`${r}model/${JC(e.name)}`},getHeadingId:e=>"function"==typeof a.value.generateHeadingSlug?`${a.value.generateHeadingSlug(e)}`:e.slug?`description/${e.slug}`:"",getOperationId:(e,t)=>"function"==typeof a.value.generateOperationSlug?`${s(t)}/${a.value.generateOperationSlug({path:e.path,operationId:e.operationId,method:e.method,summary:e.summary})}`:`${s(t)}/${e.method}${e.path}`,getPathRoutingId:o,getSectionId:(e=r.value)=>{var t;const n=null==(t=e.match(/(tag\/[^/]+)/))?void 0:t[0],a=e.startsWith("model")?"models":"",o=e.startsWith("webhook")?"webhooks":"";return n||a||o},getTagId:s,isIntersectionEnabled:t,updateHash:()=>r.value=i()}},cke=Gj(Symbol());function uke(e){const t=new KC;return((e,t)=>e.map((e=>({...e,slug:t.slug(e.value)}))))(WC(e),t)}const dke="introduction",pke=(e,t)=>{let r=e.get(t);return r||(r={entries:[],tag:{name:t}},e.set(t,r)),r},hke=(e,t,r="Unknown",n,a,o)=>{var i;const s=o({...e,method:t,path:r},n),l=(null==(i=e.summary)?void 0:i.trim())?e.summary:r;return a.set(s,l),{id:s,title:l,path:r,method:t,operation:e}},fke=(e,t="Unkown",r,n,a)=>{const o=n({name:t},a),i=e.title??t;return r.set(o,i),{id:o,title:i,name:t,schema:e}},mke=(e,t,r,n,a=!1)=>{const o=r(e),i=e["x-displayName"]||e.name||"Untitled Tag";return t.set(o,i),{id:o,title:i,tag:e,children:n,isGroup:a}},gke=(e,t,r,{getTagId:n,tagsSorter:a,operationsSorter:o})=>{const i=e.includes("default"),s=i?e.filter((e=>"default"!==e)):e;return"alpha"===a?s.sort(((e,r)=>{const n=pke(t,e).tag["x-displayName"]||e||"Untitle Tag",a=pke(t,r).tag["x-displayName"]||r||"Untitled Tag";return n.localeCompare(a)})):"function"==typeof a&&s.sort(((e,r)=>a(pke(t,e).tag,pke(t,r).tag))),i&&s.push("default"),s.flatMap((e=>{const{tag:a,entries:i}=pke(t,e);return a["x-internal"]||a["x-scalar-ignore"]?[]:("alpha"===o?i.sort(((e,t)=>"method"in e&&"method"in t?e.title.localeCompare(t.title):0)):"method"===o?i.sort(((e,t)=>"method"in e&&"method"in t?e.method.localeCompare(t.method):0)):"function"==typeof o&&i.sort(((e,t)=>{if(!("method"in e)||!("method"in t))return 0;const r="path"in e?e.path:e.name,n="path"in t?t.path:t.name,a="operation"in e?e.operation:e.webhook,i="operation"in t?t.operation:t.webhook;return o({method:e.method,httpVerb:e.method,path:r,operation:a},{method:t.method,httpVerb:t.method,path:n,operation:i})})),i.length?mke(a,r,n,i):[])}))},vke=(e,t,r="Unknown",n,a,o)=>{const i=e.summary||r,s=a({name:r,method:t},o);return n.set(s,i),{id:s,title:i,name:r,webhook:e,method:t}},bke=(e,{config:t,getHeadingId:r,getOperationId:n,getWebhookId:a,getModelId:o,getTagId:i})=>{var s,l,c;const u=new Map,d=new Map((null==(s=e.tags)?void 0:s.map((e=>[e.name??"Untitled Tag",{tag:e,entries:[]}])))??[]);((e,t,r,n)=>{Object.entries(e.paths??{}).forEach((([e,a])=>{Object.entries(a??{}).forEach((([a,o])=>{var i,s;if(!o["x-internal"]&&!o["x-scalar-ignore"]&&tP.has(a))if(null==(i=o.tags)?void 0:i.length)o.tags.forEach((i=>{var s;const{tag:l}=pke(t,i);null==(s=t.get(i))||s.entries.push(hke(o,a,e,l,r,n))}));else{const{tag:i}=pke(t,"default");null==(s=t.get("default"))||s.entries.push(hke(o,a,e,i,r,n))}}))}))})(e,d,u,n);const p=((e,t,r)=>{var n;if(!(null==e?void 0:e.trim()))return[];const a=uke(e),o=(e=>{const t=Math.min(...e.map((e=>e.depth)));return t>=1&&t<=6?t:1})(a),i=[];let s=null;if(e&&!e.trim().startsWith("#")){const e={depth:1,value:"Introduction",slug:dke},n=r(e),a=e.value;i.push({id:n,title:a}),t.set(n,a)}for(const e of a){if(e.depth!==o&&e.depth!==o+1)continue;const a={id:r(e),title:e.value};t.set(a.id,a.title),e.depth===o?(a.children=[],i.push(a),s=a):s&&(null==(n=s.children)||n.push(a))}return i})(null==(l=e.info)?void 0:l.description,u,r),h=((e,t,r,n)=>{const a=[];return Object.entries(e.webhooks??{}).forEach((([e,o])=>{Object.entries(o??{}).forEach((([o,i])=>{var s;i["x-internal"]||i["x-scalar-ignore"]||((null==(s=i.tags)?void 0:s.length)?i.tags.forEach((a=>{var s;const{tag:l}=pke(t,a);null==(s=t.get(a))||s.entries.push(vke(i,o,e,r,n,l))})):a.push(vke(i,o,e,r,n)))}))})),a})(e,d,u,a),f=((e,t,r,{getTagId:n,tagsSorter:a,operationsSorter:o})=>{if(e["x-tagGroups"])return e["x-tagGroups"].flatMap((e=>{const i=gke(e.tags??[],t,r,{getTagId:n,tagsSorter:a,operationsSorter:o});return i.length?mke(e,r,n,i,!0):[]}));const i=Array.from(t.keys()),s=gke(i,t,r,{getTagId:n,tagsSorter:a,operationsSorter:o});return 1===s.length&&"default"===s[0].title?s[0].children??[]:s})(e,d,u,{getTagId:i,tagsSorter:t.value.tagsSorter,operationsSorter:t.value.operationsSorter});if(p.push(...f),h.length&&p.push({id:a(),isWebhooks:!0,title:"Webhooks",children:h}),!t.value.hideModels&&(null==(c=e.components)?void 0:c.schemas)){const t=((e,t,r,n)=>{var a,o;const i=(null==(a=e.components)?void 0:a.schemas)??{},s=[];for(const e in i)i[e]["x-internal"]||i[e]["x-scalar-ignore"]||!Object.hasOwn(i,e)||((null==(o=i[e]["x-tags"])?void 0:o.length)?i[e]["x-tags"].forEach((a=>{var o;const{tag:s}=pke(t,a);null==(o=t.get(a))||o.entries.push(fke(i[e],e,r,n,s))})):s.push(fke(i[e],e,r,n)));return s})(e,d,u,o);t.length&&p.push({id:o(),title:"Models",children:t})}return{entries:p,titles:u}},yke=async(e,t)=>{const r=e=>{e.scrollIntoView(),t&&e.focus()},n=document.getElementById(e);if(n)return void r(n);const a=Date.now()+1e3,o=()=>{const t=document.getElementById(e);t?r(t):Date.now()<a&&requestAnimationFrame(o)};requestAnimationFrame(o)},Oke=(e,t)=>{const r=performance.now(),n=t(),a=performance.now(),o=Math.round(a-r);return console.info(`${e}: ${o} ms`),n},wke=Symbol(),xke=(e,t)=>{if(e&&t){const r=((e,t)=>{const r=uo({}),n=So(!1),a=(e,t)=>r[e]=t,o=hc((()=>{const r=Oke("traverse-document",(()=>bke(e.value,t)));return t.config.value.defaultOpenAllTags&&r.entries.forEach((e=>a(e.id,!0))),r}));return{collapsedSidebarItems:r,isSidebarOpen:n,items:o,scrollToOperation:(e,n)=>{const o=t.getSectionId(e);if(o&&o!==e)if(r[o])yke(e,n);else{const t=cke.on((r=>{r.id===e&&(yke(e,n),t())}));a(o,!0)}},setCollapsedSidebarItem:a,toggleCollapsedSidebarItem:e=>r[e]=!r[e]}})(e,t);return js(wke,r),r}const r=Bs(wke);if(!r)throw new Error("useSidebar() was called without a collection and no sidebar instance was found. Make sure to call useSidebar(collection) in a parent component first.");return r},kke="get",Ske=e=>{if("string"!=typeof e)return console.warn(`Request method is not a string. Using ${kke} as the default.`),kke;const t=e.trim().toLowerCase();return rP(t)?t:(console.warn(`${e||"Request method"} is not a valid request method. Using ${kke} as the default.`),kke)},_ke=Li({__name:"HttpMethod",props:{as:{},property:{},short:{type:Boolean},method:{}},setup(e){const t=e,r=hc((()=>kj(t.method))),n=hc((()=>Ske(t.method)));return(e,t)=>(Pl(),Nl(cs(e.as??"span"),{class:"uppercase",style:jn({[e.property||"color"]:r.value.colorVar})},{default:ci((()=>[fs(e.$slots,"default"),ql(" "+Gn(e.short?r.value.short:n.value),1)])),_:3},8,["style"]))}}),Eke=aye(Li({__name:"SidebarHttpBadge",props:{method:{},active:{type:Boolean}},setup:e=>(e,t)=>(Pl(),Nl(Ao(_ke),{class:zn(["sidebar-heading-type",`sidebar-heading-type--${e.method.toLowerCase()}`,{"sidebar-heading-type-active":e.active}]),method:e.method,property:"--method-color",short:""},{default:ci((()=>[fs(e.$slots,"default",{},void 0,!0)])),_:3},8,["class","method"]))}),[["__scopeId","data-v-522f945c"]]),Tke=["id"],Ake={key:0,class:"sidebar-heading-chevron"},Cke=["aria-expanded"],Pke=["href","tabindex"],Dke={class:"sidebar-heading-link-title"},$ke={key:0,class:"sidebar-heading-link-method"},Rke={key:1,class:"action-menu"},Mke=aye(Li({__name:"SidebarElement",props:{id:{},item:{},isActive:{type:Boolean},hasChildren:{type:Boolean},open:{type:Boolean}},emits:["toggleOpen"],setup(e,{emit:t}){const r=e,n=t,{getFullHash:a,isIntersectionEnabled:o,replaceUrlState:i}=lke(),s=Gxe(),l=async()=>{o.value=!1,r.hasChildren&&n("toggleOpen"),await nye(100),o.value=!0},c=()=>{if(s.value.pathRouting)return gj(s.value.pathRouting.basePath,r.item.id);if("undefined"!=typeof window){const e=new URL(window.location.href);return e.hash=a(r.item.id),`${e.pathname}${e.search}${e.hash}`}return`#${a(r.item.id)}`},u=async e=>{var t,a;null==(a=(t=s.value).onSidebarClick)||a.call(t,r.item.id),s.value.pathRouting&&(e.preventDefault(),r.hasChildren&&n("toggleOpen"),n("toggleOpen"),o.value=!1,i(r.item.id),yke(r.item.id),await nye(100),o.value=!0)};return(e,t)=>(Pl(),Ml("li",{id:e.id,class:"sidebar-group-item"},[Ul("div",{class:zn(["sidebar-heading",{"sidebar-group-item__folder":e.hasChildren,active_page:e.isActive,deprecated:"operation"in e.item&&Ao(dj)(e.item.operation)}]),onClick:l},[e.hasChildren&&!Ao(s).defaultOpenAllTags?(Pl(),Ml("p",Ake,[Ul("button",{"aria-expanded":e.open,class:"toggle-nested-icon",type:"button",onClick:Su(l,["stop"])},[Fl(Ao(K5),{open:e.open},{label:ci((()=>[ql(Gn(e.open?"Collapse":"Expand")+" "+Gn(e.item.title),1)])),_:1},8,["open"])],8,Cke),t[0]||(t[0]=ql(" "))])):Vl("",!0),Ul("a",{class:"sidebar-heading-link",href:c(),tabindex:e.hasChildren?-1:0,onClick:u},[Ul("p",Dke,Gn(e.item.title),1),"method"in e.item&&!e.hasChildren?(Pl(),Ml("p",$ke,[t[1]||(t[1]=ql(" ")),t[2]||(t[2]=Ul("span",{class:"sr-only"},"HTTP Method: ",-1)),Fl(Eke,{class:"min-w-9.75 justify-end text-right",active:e.isActive,method:e.item.method},{default:ci((()=>["webhook"in e.item?(Pl(),Nl(Ao(eV),{key:0,weight:"bold",style:jn({color:Ao(kj)(e.item.method).colorVar})},null,8,["style"])):Vl("",!0)])),_:1},8,["active","method"])])):Vl("",!0)],8,Pke)],2),e.open?fs(e.$slots,"default",{key:0},void 0,!0):Vl("",!0),e.$slots["action-menu"]?(Pl(),Ml("div",Rke,[fs(e.$slots,"action-menu",{},void 0,!0)])):Vl("",!0)],8,Tke))}}),[["__scopeId","data-v-fa7fb2b8"]]),Nke=aye(Li({__name:"SidebarGroup",props:{level:{}},setup:e=>(e,t)=>(Pl(),Ml("ul",{class:"sidebar-group sidebar-indent-nested",style:jn({"--scalar-sidebar-level":e.level})},[fs(e.$slots,"default",{},void 0,!0)],4))}),[["__scopeId","data-v-a0601651"]]),Ike={class:"sidebar"},Lke=["aria-label"],jke={class:"sidebar-group-title"},Bke=aye(Li({__name:"Sidebar",props:{title:{}},setup(e){const{hash:t,isIntersectionEnabled:r}=lke(),{items:n,toggleCollapsedSidebarItem:a,collapsedSidebarItems:o}=xke(),i=So(null),s=So(!0);ul(t,(e=>{r.value&&!s.value&&"undefined"!=typeof window&&l(e)}));const l=e=>{var t,r,n,a;const o=document.getElementById(`sidebar-${e}`);if(!o||!i.value)return;let s=-160;"heading"===o.getAttribute("data-sidebar-type")?s+=o.offsetTop+(null==(t=o.getElementsByClassName("sidebar-heading"))?void 0:t[0]).offsetHeight:s+=o.offsetTop+((null==(r=o.parentElement)?void 0:r.offsetTop)??0)+((null==(a=null==(n=o.parentElement)?void 0:n.parentElement)?void 0:a.offsetTop)??0),i.value.scrollTo({top:s,behavior:"smooth"})},c=e=>t.value===e||!!t.value.includes("/description/")&&t.value.split("/description/")[0]===e;Yi((()=>{const e=(e=>{if(!i.value)return;const t=new MutationObserver(((t,r)=>{document.getElementById(`sidebar-${e}`)&&(l(e),s.value=!1,r.disconnect())}));return t.observe(i.value,{childList:!0,subtree:!0}),t})(t.value);t.value||setTimeout((()=>s.value=!1),300),ts((()=>{null==e||e.disconnect()}))}));const u=e=>{var t;return"children"in e&&((null==(t=e.children)?void 0:t.length)??0)>0};return(e,t)=>(Pl(),Ml("div",Ike,[fs(e.$slots,"sidebar-start",{},void 0,!0),Ul("nav",{ref_key:"scrollerEl",ref:i,"aria-label":`Table of contents for ${e.title}`,class:"sidebar-pages custom-scroll custom-scroll-self-contain-overflow"},[Fl(Nke,{level:0},{default:ci((()=>[(Pl(!0),Ml(Sl,null,ps(Ao(n).entries,(e=>(Pl(),Ml(Sl,{key:e.id},["isGroup"in e&&e.isGroup?(Pl(),Ml(Sl,{key:0},[Ul("li",jke,Gn(e.title),1),(Pl(!0),Ml(Sl,null,ps(e.children,(e=>(Pl(),Nl(Mke,{key:e.id,id:`sidebar-${e.id}`,"data-sidebar-type":"heading",hasChildren:u(e),isActive:c(e.id),item:e,open:Ao(o)[e.id]??!1,onToggleOpen:async()=>{s.value=!0,Ao(a)(e.id),await Ao(nye)(100),s.value=!1}},{default:ci((()=>[u(e)?(Pl(),Nl(Nke,{key:0,level:1},{default:ci((()=>[(Pl(!0),Ml(Sl,null,ps(e.children,(e=>(Pl(),Nl(Mke,{key:e.id,id:`sidebar-${e.id}`,isActive:c(e.id),item:e},null,8,["id","isActive","item"])))),128))])),_:2},1024)):Vl("",!0)])),_:2},1032,["id","hasChildren","isActive","item","open","onToggleOpen"])))),128))],64)):(Pl(),Nl(Mke,{key:1,id:`sidebar-${e.id}`,"data-sidebar-type":"heading",hasChildren:u(e),isActive:c(e.id),item:e,open:Ao(o)[e.id]??!1,onToggleOpen:async()=>{s.value=!0,Ao(a)(e.id),await Ao(nye)(100),s.value=!1}},{default:ci((()=>[u(e)?(Pl(),Nl(Nke,{key:0,level:1},{default:ci((()=>[(Pl(!0),Ml(Sl,null,ps(e.children,(e=>(Pl(),Nl(Mke,{key:e.id,id:`sidebar-${e.id}`,isActive:c(e.id),item:e},null,8,["id","isActive","item"])))),128))])),_:2},1024)):Vl("",!0)])),_:2},1032,["id","hasChildren","isActive","item","open","onToggleOpen"]))],64)))),128))])),_:1})],8,Lke),fs(e.$slots,"sidebar-end",{},void 0,!0)]))}}),[["__scopeId","data-v-db673c0a"]]),Uke=aye(Li({__name:"Section",props:{id:{},label:{}},setup(e){const t=e,{getSectionId:r,isIntersectionEnabled:n,replaceUrlState:a}=lke(),{setCollapsedSidebarItem:o}=xke();function i(){var e,i;t.label&&n.value&&(a(t.id??""),((null==(e=t.id)?void 0:e.startsWith("model"))||(null==(i=t.id)?void 0:i.startsWith("webhook")))&&o(r(t.id),!0))}return(e,t)=>(Pl(),Nl(nke,{is:"section",id:e.id,class:"section",onIntersecting:i},{default:ci((()=>[fs(e.$slots,"default",{},void 0,!0)])),_:3},8,["id"]))}}),[["__scopeId","data-v-393971a5"]]),Fke={class:"section-accordion-button-content"},Qke={key:0,class:"section-accordion-button-actions"},zke={key:0,class:"section-accordion-description"},qke={class:"section-accordion-content-card"},Hke=aye(Li({__name:"SectionAccordion",props:{id:{},transparent:{type:Boolean}},setup(e){const t=So(),r=function(e,t={}){const{delayEnter:r=0,delayLeave:n=0,window:a=zj}=t,o=So(!1);let i;const s=e=>{const t=e?r:n;i&&(clearTimeout(i),i=void 0),t?i=setTimeout((()=>o.value=e),t):o.value=e};return a?(Hj(e,"mouseenter",(()=>s(!0)),{passive:!0}),Hj(e,"mouseleave",(()=>s(!1)),{passive:!0}),o):o}(t);return(e,n)=>(Pl(),Nl(nke,{id:e.id,class:"section-wrapper"},{default:ci((()=>[Fl(Ao(qU),{as:"section",class:zn(["section-accordion",{"section-accordion-transparent":e.transparent}])},{default:ci((({open:n})=>[Fl(Ao(HU),{ref_key:"button",ref:t,class:"section-accordion-button"},{default:ci((()=>[Ul("div",Fke,[fs(e.$slots,"title",{},void 0,!0)]),e.$slots.actions?(Pl(),Ml("div",Qke,[fs(e.$slots,"actions",{active:Ao(r)||n},void 0,!0)])):Vl("",!0),Fl(Ao(nq),{class:zn(["section-accordion-chevron size-4.5 transition-transform",{"rotate-90":n}])},null,8,["class"])])),_:2},1536),Fl(Ao(VU),{class:"section-accordion-content"},{default:ci((()=>[e.$slots.description?(Pl(),Ml("div",zke,[fs(e.$slots,"description",{},void 0,!0)])):Vl("",!0),Ul("div",qke,[fs(e.$slots,"default",{},void 0,!0)])])),_:3})])),_:3},8,["class"])])),_:3},8,["id"]))}}),[["__scopeId","data-v-c13102ab"]]),Vke={class:"section-column"},Zke=aye({},[["render",function(e,t){return Pl(),Ml("div",Vke,[fs(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-699c28e3"]]),Wke={class:"section-columns"},Xke=aye({},[["render",function(e,t){return Pl(),Ml("div",Wke,[fs(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-8b9602bf"]]),Gke={class:"section-container"},Yke=aye({},[["render",function(e,t){return Pl(),Ml("div",Gke,[fs(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-3afcb4e7"]]),Kke={class:"section-accordion-wrapper"},Jke={class:"section-accordion-title"},eSe=aye(Li({__name:"SectionContainerAccordion",setup:e=>(e,t)=>(Pl(),Ml("div",Kke,[Fl(Ao(qU),{as:"div",class:"section-accordion",defaultOpen:""},{default:ci((({open:t})=>[Fl(Ao(HU),{class:"section-accordion-button"},{default:ci((()=>[Fl(Ao(nq),{class:zn(["section-accordion-chevron size-5 transition-transform",{"rotate-90":t}])},null,8,["class"]),Ul("div",Jke,[fs(e.$slots,"title",{},void 0,!0)])])),_:2},1024),Fl(Ao(VU),{class:"section-accordion-content"},{default:ci((()=>[fs(e.$slots,"default",{},void 0,!0)])),_:3})])),_:3})]))}),[["__scopeId","data-v-88109f3f"]]),tSe=aye(Li({__name:"LoadingSkeleton",props:{lines:{default:1}},setup:e=>(e,t)=>(Pl(!0),Ml(Sl,null,ps([...Array(e.lines).keys()],(t=>(Pl(),Ml("div",{key:t,class:zn(["loading",{"single-line":1===e.lines}])},null,2)))),128))}),[["__scopeId","data-v-c90b2c46"]]),rSe={class:"section-content"},nSe=aye(Li({__name:"SectionContent",props:{loading:{type:Boolean,default:!1}},setup:e=>(e,t)=>(Pl(),Ml("div",rSe,[e.loading?(Pl(),Nl(tSe,{key:1,lines:8})):fs(e.$slots,"default",{key:0},void 0,!0)]))}),[["__scopeId","data-v-9735459e"]]),aSe={class:"section-header-wrapper xl:gap-12"},oSe=aye(Li({__name:"SectionHeader",props:{loading:{type:Boolean},tight:{type:Boolean}},setup:e=>(e,t)=>(Pl(),Ml("div",aSe,[e.loading?(Pl(),Nl(tSe,{key:0})):(Pl(),Ml("div",{key:1,class:zn(["section-header",{tight:e.tight}])},[fs(e.$slots,"default",{},void 0,!0)],2)),e.$slots.links?fs(e.$slots,"links",{key:2},void 0,!0):Vl("",!0)]))}),[["__scopeId","data-v-465a7a78"]]),iSe=aye(Li({__name:"SectionHeaderTag",props:{level:{default:1}},setup:e=>(e,t)=>(Pl(),Nl(cs(`h${e.level}`),{class:"section-header-label"},{default:ci((()=>[fs(e.$slots,"default",{},void 0,!0)])),_:3}))}),[["__scopeId","data-v-f1ac6c38"]]),sSe={key:0,class:"screenreader-only"},lSe=aye(Li({__name:"ScreenReader",props:{if:{type:Boolean,default:!0}},setup:e=>(e,t)=>e.$props.if?(Pl(),Ml("span",sSe,[fs(e.$slots,"default",{},void 0,!0)])):fs(e.$slots,"default",{key:1},void 0,!0)}),[["__scopeId","data-v-df2e1026"]]),cSe={class:"label"},uSe=["id"],dSe={class:"anchor"},pSe=["aria-describedby"],hSe=aye(Li({__name:"Anchor",props:{id:{}},setup(e){const t=ji(),{copyToClipboard:r}=VV(),{getHashedUrl:n}=lke(),a=()=>{r(n(e.id))};return(e,r)=>(Pl(),Ml("span",cSe,[Ul("span",{id:Ao(t),class:"contents"},[fs(e.$slots,"default",{},void 0,!0)],8,uSe),Ul("span",dSe,[r[2]||(r[2]=Ul("span",null,"",-1)),Ul("button",{"aria-describedby":Ao(t),class:"anchor-copy",type:"button",onClick:Su(a,["stop"])},[r[1]||(r[1]=Ul("span",{"aria-hidden":"true"},"#",-1)),Fl(lSe,null,{default:ci((()=>r[0]||(r[0]=[ql("Copy link")]))),_:1,__:[0]})],8,pSe)])]))}}),[["__scopeId","data-v-2f3e206c"]]),fSe={class:"collapsible-section"},mSe=["id","aria-controls","aria-expanded"],gSe=aye(Li({__name:"CompactSection",props:{id:{},label:{}},setup(e){const t=e,{hash:r}=lke(),n=So(!1),a=ji();return ul(r,(async e=>{e!==t.id||n.value||(n.value=!0,await Ko(),yke(t.id))}),{immediate:!0}),(e,t)=>(Pl(),Ml("div",fSe,[Ul("button",{id:e.id,"aria-controls":Ao(a),"aria-expanded":n.value,class:zn(["collapsible-section-trigger",{"collapsible-section-trigger-open":n.value}]),type:"button",onClick:t[0]||(t[0]=e=>n.value=!n.value)},[Fl(Ao(p5),{icon:n.value?"ChevronDown":"ChevronRight",size:"md",thickness:"1.5"},null,8,["icon"]),Fl(hSe,{id:e.id,class:"collapsible-section-header"},{default:ci((()=>[fs(e.$slots,"heading",{},void 0,!0)])),_:3},8,["id"])],10,mSe),n.value?(Pl(),Nl(Uke,{key:0,id:Ao(a),class:"collapsible-section-content",label:e.label},{default:ci((()=>[fs(e.$slots,"default",{},void 0,!0)])),_:3},8,["id","label"])):Vl("",!0)]))}}),[["__scopeId","data-v-4b9f7b57"]]),vSe=Gj(Symbol("download"));function bSe(e,t,r){const n="json"===r||!mj(r)&&VL(e),a=function(e,t){return t&&!VL(e)?(e=>JSON.stringify(e,null,2))(_f(e)):!t&&VL(e)?(e=>kf(e))(_f(e)):e}(e,n),o=n?".json":".yaml",i=t?t+o:"openapi"+o,s=new Blob([a],{type:n?"application/json":"application/x-yaml"}),l=URL.createObjectURL(s),c=document.createElement("a");c.href=l,c.download=i,c.dispatchEvent(function(){try{return new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})}catch{return new MouseEvent("click",{bubbles:!0,cancelable:!0})}}()),setTimeout((()=>{window.URL.revokeObjectURL(l),c.remove()}),100)}const ySe=aye(Li({__name:"DownloadLink",props:{title:{}},setup(e){const t=Gxe(),r=new KC,n=hc((()=>r.slug(e.title??""))),a=e=>{vSe.emit({id:"",filename:n.value,format:e})};return(e,r)=>{var n,o,i,s,l,c;return"none"!==(null==(n=Ao(t))?void 0:n.documentDownloadType)?(Pl(),Ml("div",{key:0,class:zn([{"download-both":"both"===(null==(o=Ao(t))?void 0:o.documentDownloadType)},"download-container group"])},["json"===(null==(i=Ao(t))?void 0:i.documentDownloadType)||"both"===(null==(s=Ao(t))?void 0:s.documentDownloadType)?(Pl(),Ml("button",{key:0,type:"button",class:"download-button",onClick:r[0]||(r[0]=Su((e=>a("json")),["prevent"])),variant:"ghost"},[r[3]||(r[3]=Ul("span",null," Download OpenAPI Document ",-1)),Fl(eke,{class:"extension hidden group-hover:flex"},{default:ci((()=>r[2]||(r[2]=[ql("json")]))),_:1,__:[2]})])):Vl("",!0),"yaml"===(null==(l=Ao(t))?void 0:l.documentDownloadType)||"both"===(null==(c=Ao(t))?void 0:c.documentDownloadType)?(Pl(),Ml("button",{key:1,type:"button",class:"download-button",onClick:r[1]||(r[1]=Su((e=>a("yaml")),["prevent"])),variant:"ghost"},[r[5]||(r[5]=Ul("span",null," Download OpenAPI Document ",-1)),Fl(eke,{class:"extension hidden group-hover:flex"},{default:ci((()=>r[4]||(r[4]=[ql("yaml")]))),_:1,__:[4]})])):Vl("",!0)],2)):Vl("",!0)}}}),[["__scopeId","data-v-929c417a"]]),OSe=Symbol("openApiVersion"),wSe={key:0,class:"group flex items-center last:border-r-0 xl:border-r xl:first:ml-auto"},xSe=["href"],kSe={key:0,class:"ml-1 empty:hidden"},SSe={key:1,class:"ml-1 empty:hidden"},_Se=Li({__name:"ExternalDocs",props:{value:{}},setup:e=>(e,t)=>e.value?(Pl(),Ml("div",wSe,[Ul("a",{href:e.value.url,class:"text-c-1 hover:bg-b-2 mr-2 flex min-h-7 min-w-7 items-center rounded-lg border px-2 py-1 no-underline group-last:mr-0 xl:border-none",target:"_blank",rel:"noopener noreferrer"},[Fl(Ao(Iz),{weight:"bold",class:"size-3 text-current"}),e.value.description?(Pl(),Ml("span",kSe,Gn(e.value.description),1)):(Pl(),Ml("span",SSe,Gn(e.value.url),1))],8,xSe)])):Vl("",!0)}),ESe={key:0,class:"group flex items-center last:border-r-0 xl:border-r xl:first:ml-auto"},TSe=["href"],ASe={class:"ml-1 empty:hidden"},CSe=Li({__name:"Contact",props:{value:{}},setup(e){const t=WQ({base:"text-c-1 mr-2 flex min-h-7 min-w-7 items-center rounded-lg border px-2 py-1 group-last:mr-0 xl:border-none",variants:{link:{true:"no-underline hover:bg-b-2"}}});return(e,r)=>{var n,a,o;return e.value?(Pl(),Ml("div",ESe,[(null==(n=e.value)?void 0:n.email)?(Pl(),Ml("a",{key:0,class:zn(Ao(t)({link:!0})),href:`mailto:${null==(a=e.value)?void 0:a.email}`},[Fl(Ao(Dq),{weight:"bold",class:"size-3 text-current"}),Ul("span",ASe,Gn(e.value.name),1)],10,TSe)):(null==(o=e.value)?void 0:o.name)?(Pl(),Ml("span",{key:1,class:zn(Ao(t)({link:!1}))},Gn(e.value.name),3)):Vl("",!0)])):Vl("",!0)}}}),PSe={class:"group flex h-fit items-center last:border-r-0 xl:border-r xl:first:ml-auto"},DSe=["href"],$Se={class:"ml-1 empty:hidden"},RSe={key:1,class:"ml-1 empty:hidden"},MSe=Li({__name:"License",props:{value:{}},setup:e=>(e,t)=>{var r,n,a;return Pl(),Ml("div",PSe,[(null==(r=e.value)?void 0:r.url)?(Pl(),Ml("a",{key:0,class:"text-c-1 hover:bg-b-2 mr-2 flex min-h-7 min-w-7 items-center rounded-lg border px-2 py-1 no-underline group-last:mr-0 xl:border-none",href:e.value.url,target:"_blank",rel:"noopener noreferrer"},[Fl(Ao(jq),{weight:"bold",class:"size-3 text-current"}),Ul("span",$Se,Gn((null==(n=e.value)?void 0:n.name)||e.value.identifier||e.value.url),1)],8,DSe)):(Pl(),Ml("span",RSe,Gn(null==(a=e.value)?void 0:a.name),1))])}}),NSe={key:0,class:"group flex items-center last:border-r-0 xl:border-r xl:first:ml-auto"},ISe=["href"],LSe=Li({__name:"TermsOfService",props:{value:{}},setup:e=>(e,t)=>e.value?(Pl(),Ml("div",NSe,[Ul("a",{class:"text-c-1 hover:bg-b-2 mr-2 flex min-h-7 min-w-7 items-center rounded-lg border px-2 py-1 no-underline group-last:mr-0 xl:border-none",href:e.value,target:"_blank",rel:"noopener noreferrer"},[Fl(Ao(pH),{weight:"bold",class:"size-3 text-current"}),t[0]||(t[0]=Ul("span",{class:"ml-1 empty:hidden"},"Terms of Service",-1))],8,ISe)])):Vl("",!0)}),jSe=({plugins:e=[]})=>{const t=new Map;return e.forEach((e=>{const r=e();t.set(r.name,r)})),{getSpecificationExtensions:e=>{const r=[];for(const n of t.values())for(const t of n.extensions)t.name===e&&r.push(t);return r}}},BSe=Symbol(),USe={key:0,class:"text-base"},FSe=Li({__name:"SpecificationExtension",props:{value:{}},setup(e){const{getSpecificationExtensions:t}=Bs(BSe)||jSe({}),r=hc((()=>{return t=e.value,Object.keys(t??{}).filter((e=>e.startsWith("x-")));var t})),n=hc((()=>r.value.flatMap((e=>t(e))).filter((e=>e.component))));return(e,t)=>"object"==typeof e.value&&n.value.length?(Pl(),Ml("div",USe,[(Pl(!0),Ml(Sl,null,ps(n.value,(t=>(Pl(),Nl(Ao(rX),null,{default:ci((()=>{var r,n;return[t.renderer?(Pl(),Nl(cs(t.renderer),Gl({key:0,ref_for:!0},{[t.name]:null==(r=e.value)?void 0:r[t.name],component:t.component}),null,16)):(Pl(),Nl(cs(t.component),Gl({key:1,ref_for:!0},{[t.name]:null==(n=e.value)?void 0:n[t.name]}),null,16))]})),_:2},1024)))),256))])):Vl("",!0)}}),QSe={key:0,class:"introduction-description"},zSe=aye(Li({__name:"Description",props:{value:{}},setup(e){const t=e,r=hc((()=>{if(!t.value)return[];const e=new KC;return function(e){var t;const r=ZC(e),n=[];let a=[];return null==(t=r.children)||t.forEach((e=>{"heading"===e.type?(a.length&&n.push(a),n.push([e]),a=[]):a.push(e)})),a.length&&n.push(a),n.map((e=>function(e){return XE().use(OE).use(__).stringify({type:"root",children:e}).trim()}(e)))}(t.value).map((t=>{const[r]=WC(t);return{id:r?n({...r,slug:e.slug(r.value)}):void 0,content:t}}))})),{getHeadingId:n,getFullHash:a,isIntersectionEnabled:o,replaceUrlState:i}=lke(),s=new KC,l=e=>(e.data={hProperties:{id:n({depth:e.depth,value:e.children[0].value,slug:s.slug(e.children[0].value)})}},e);return(e,t)=>e.value?(Pl(),Ml("div",QSe,[(Pl(!0),Ml(Sl,null,ps(r.value,(e=>(Pl(),Ml(Sl,{key:e.id},[e.id?(Pl(),Nl(nke,{key:0,id:Ao(a)(e.id),class:"introduction-description-heading",onIntersecting:()=>function(e=""){o.value&&i(e)}(e.id)},{default:ci((()=>[Fl(Ao(D5),{transform:l,transformType:"heading",value:e.content},null,8,["value"])])),_:2},1032,["id","onIntersecting"])):(Pl(),Nl(Ao(D5),{key:1,value:e.content,withImages:""},null,8,["value"]))],64)))),128))])):Vl("",!0)}}),[["__scopeId","data-v-d2a06436"]]),qSe={class:"flex gap-1.5"},HSe={class:"links"},VSe={class:"sticky-cards"},ZSe=aye(Li({__name:"Introduction",props:{document:{}},setup(e){const{getHeadingId:t}=lke(),r=Bs(OSe),n=hc((()=>{var t,r;return"string"==typeof(null==(t=e.document.info)?void 0:t.version)?e.document.info.version.toString().match(/^\d/)?`v${e.document.info.version}`:e.document.info.version:"number"==typeof(null==(r=e.document.info)?void 0:r.version)?`v${e.document.info.version}`:void 0})),a=Gxe();return Yi((()=>{var e,t;return null==(t=(e=a.value).onLoaded)?void 0:t.call(e)})),(e,o)=>(Pl(),Nl(Ao(Yke),null,{default:ci((()=>[Fl(Ao(Uke),{class:"introduction-section z-1 gap-12",id:Ao(t)({slug:Ao(dke),depth:1,value:"Introduction"})},{default:ci((()=>{var t,o,i,s;return[Fl(Ao(nSe),{loading:Ao(a).isLoading??(!(null==(o=null==(t=e.document)?void 0:t.info)?void 0:o.description)&&!(null==(s=null==(i=e.document)?void 0:i.info)?void 0:s.title))},{default:ci((()=>{var t;return[Ul("div",qSe,[n.value?(Pl(),Nl(Ao(eke),{key:0},{default:ci((()=>[ql(Gn(n.value),1)])),_:1})):Vl("",!0),Ao(r)?(Pl(),Nl(Ao(eke),{key:1},{default:ci((()=>[ql("OAS "+Gn(Ao(r)),1)])),_:1})):Vl("",!0)]),Fl(Ao(oSe),{loading:!(null==(t=e.document.info)?void 0:t.title),tight:""},{links:ci((()=>[Fl(Ao(rke),null,{default:ci((()=>{var t,r,n,a,o,i;return[Fl(Ao(_Se),{value:e.document.externalDocs},null,8,["value"]),(null==(t=e.document.info)?void 0:t.contact)?(Pl(),Nl(Ao(CSe),{key:0,value:null==(r=e.document.info)?void 0:r.contact},null,8,["value"])):Vl("",!0),(null==(n=e.document.info)?void 0:n.license)?(Pl(),Nl(Ao(MSe),{key:1,value:null==(a=e.document.info)?void 0:a.license},null,8,["value"])):Vl("",!0),(null==(o=e.document.info)?void 0:o.termsOfService)?(Pl(),Nl(Ao(LSe),{key:2,value:null==(i=e.document.info)?void 0:i.termsOfService},null,8,["value"])):Vl("",!0)]})),_:1})])),default:ci((()=>[Fl(Ao(iSe),{level:1},{default:ci((()=>{var t;return[ql(Gn(null==(t=e.document.info)?void 0:t.title),1)]})),_:1})])),_:1},8,["loading"]),Fl(Ao(Xke),null,{default:ci((()=>[Fl(Ao(Zke),null,{default:ci((()=>{var t,r;return[Ul("div",HSe,[Fl(Ao(ySe),{title:null==(t=e.document.info)?void 0:t.title},null,8,["title"])]),Fl(zSe,{value:null==(r=e.document.info)?void 0:r.description},null,8,["value"])]})),_:1}),e.$slots.aside?(Pl(),Nl(Ao(Zke),{key:0},{default:ci((()=>[Ul("div",VSe,[fs(e.$slots,"aside",{},void 0,!0)])])),_:3})):Vl("",!0)])),_:3}),Fl(Ao(FSe),{value:e.document},null,8,["value"]),Fl(Ao(FSe),{value:e.document.info},null,8,["value"])]})),_:3},8,["loading"]),fs(e.$slots,"after",{},void 0,!0)]})),_:3},8,["id"])])),_:3}))}}),[["__scopeId","data-v-d9560193"]]),WSe=Li({__name:"Lazy",props:{id:{},isLazy:{type:Boolean,default:!0},lazyTimeout:{default:0}},setup(e){const t=e,r=So(!t.isLazy);return t.isLazy?((e=()=>{})=>{"undefined"==typeof window||("requestIdleCallback"in window?setTimeout((()=>window.requestIdleCallback(e)),t.lazyTimeout):setTimeout((()=>Ko(e)),t.lazyTimeout??300))})((()=>{r.value=!0,t.id&&Ko((()=>cke.emit({id:t.id})))})):t.id&&Ko((()=>cke.emit({id:t.id}))),(e,t)=>r.value?fs(e.$slots,"default",{key:0}):Vl("",!0)}}),XSe=Symbol("discriminator-context"),GSe=Symbol("example-context");function YSe(e,t){var r;if(!e||!t||"object"!==e.type||!e.properties)return null;for(const[n,a]of Object.entries(t))if("object"==typeof a&&null!==a&&"discriminator"in a&&(null==(r=a.discriminator)?void 0:r.propertyName)){const t=a.discriminator.propertyName;if(e.properties[t])return n}return null}const KSe=e=>{if(null===e||"object"!=typeof e||Array.isArray(e))return!1;if("oneOf"in e||"anyOf"in e||"allOf"in e||"not"in e)return!1;const t="type"in e;if(t&&Array.isArray(e.type))return e.type.includes("object");const r=t&&"object"===e.type;return!!r||!(t&&!r)&&("properties"in e||"additionalProperties"in e||"patternProperties"in e)},JSe={key:0,class:"schema-type"},e_e=["title"],t_e=aye(Li({__name:"SchemaHeading",props:{value:{type:[Object,Boolean]},name:{}},setup:e=>(e,t)=>"object"==typeof e.value?(Pl(),Ml("span",JSe,[Ul("span",{class:"schema-type-icon",title:"string"==typeof e.value.type?e.value.type:Array.isArray(e.value.type)?e.value.type.join(" | "):"unkown type"},["object"===e.value.type?(Pl(),Ml(Sl,{key:0},[ql(" {} ")],64)):Vl("",!0),"array"===e.value.type?(Pl(),Ml(Sl,{key:1},[ql(" [] ")],64)):Vl("",!0),e.value.enum?(Pl(),Ml(Sl,{key:2},[ql(" enum ")],64)):Vl("",!0)],8,e_e),e.name?(Pl(),Ml(Sl,{key:0},[ql(Gn(e.name),1)],64)):(Pl(),Ml(Sl,{key:1},[ql(Gn(e.value.type),1)],64))])):Vl("",!0)}),[["__scopeId","data-v-eec32394"]]);function r_e(e,t=0){return t>=20||!Array.isArray(e)||0===e.length?{}:e.reduce(((e,r)=>{if(!r||"object"!=typeof r)return e;if(r.allOf){const n=r_e(r.allOf,t+1);return r_e([e,n],t+1)}const n="object"==typeof e?{...e}:{};if(r.properties&&(n.properties=n_e(n.properties||{},r.properties,t+1)),r.items)if("array"===r.type)n.items=a_e(n.items||{},r.items,t+1);else if("string"==typeof r.type&&["object","string"].includes(r.type)&&r.items.allOf){const e=r_e(r.items.allOf,t+1);n.properties=n_e(n.properties||{},e.properties||{},t+1)}return o_e(n,r,t+1)}),{})}function n_e(e,t,r=0){if(r>=20)return e;const n="object"==typeof e?{...e}:{};return Object.entries(t).forEach((([e,t])=>{var a;if(t&&"object"==typeof t)if(n[e])if(t.allOf)n[e]=r_e([n[e],...t.allOf],r+1);else if("array"===t.type&&t.items)n[e]={...n[e],type:"array",items:a_e(n[e].items||{},t.items,r+1)};else{const a=n[e].properties||t.properties?n_e(n[e].properties||{},t.properties||{},r+1):void 0;n[e]={...n[e],...t},a&&(n[e].properties=a)}else"array"===t.type&&(null==(a=t.items)?void 0:a.allOf)?n[e]={...t,items:r_e(t.items.allOf,r+1)}:t.allOf?n[e]=r_e(t.allOf,r+1):n[e]=t;else n[e]=t})),n}function a_e(e,t,r=0){if(r>=20)return e;if(e.allOf||t.allOf)return r_e([...e.allOf||[e],...t.allOf||[t]],r+1);const n={...e,...t};return(n.properties||t.properties)&&(n.properties=n_e(n.properties||{},t.properties||{},r+1)),n}const o_e=(e,t,r=0)=>{if(r>=20)return e;const n="object"==typeof e?{...e}:{};return t.required&&Array.isArray(t.required)&&(n.required=[...e.required||[],...t.required]),t.type&&!e.type&&(n.type=t.type),t.title&&!e.title&&(n.title=t.title),t.name&&!e.name&&(n.name=t.name),t.description&&!e.description&&(n.description=t.description),["oneOf","anyOf"].forEach((e=>{const a=t[e];a&&a.forEach((e=>{e.properties&&(n.properties=n_e(n.properties||{},e.properties,r+1))}))})),n},i_e=["oneOf","anyOf","allOf","not"],s_e={class:"property-enum-value"},l_e={class:"property-enum-value-content"},c_e={class:"property-enum-value-label"},u_e={key:0,class:"property-enum-value-description"},d_e=aye(Li({__name:"SchemaEnumPropertyItem",props:{label:{},description:{}},setup:e=>(e,t)=>(Pl(),Ml("li",s_e,[Ul("div",l_e,[Ul("span",c_e,Gn(e.label),1),e.description?(Pl(),Ml("span",u_e,[Fl(Ao(D5),{value:e.description},null,8,["value"])])):Vl("",!0)])]))}),[["__scopeId","data-v-ac891053"]]),p_e={key:0,class:"property-enum"},h_e={key:0,class:"property-enum-values"},f_e={key:1,class:"property-enum-values"},m_e=aye(Li({__name:"SchemaEnumValues",props:{value:{},isDiscriminator:{type:Boolean}},setup(e){const t=(t,r)=>{var n,a,o,i;const s=(null==(a=null==(n=e.value)?void 0:n["x-enum-varnames"])?void 0:a[r])??(null==(i=null==(o=e.value)?void 0:o["x-enumNames"])?void 0:i[r]);return s?`${t} = ${s}`:String(t)},r=t=>{var r,n;const a=null==(r=e.value)?void 0:r["x-enum-descriptions"];if(Array.isArray(a))return a[t];const o=null==(n=e.value)?void 0:n["x-enumDescriptions"];return Array.isArray(o)?o[t]:void 0},n=t=>{var r,n;const a=null==(r=e.value)?void 0:r["x-enumDescriptions"];if(a&&!Array.isArray(a))return a[t];const o=null==(n=e.value)?void 0:n["x-enum-descriptions"];return o&&!Array.isArray(o)?o[t]:void 0},a=hc((()=>{return(t=e.value)&&(t.enum||(null==(r=t.items)?void 0:r.enum))||[];var t,r})),o=hc((()=>a.value.length>0)),i=hc((()=>a.value.length>9)),s=hc((()=>i.value?5:9)),l=hc((()=>a.value.slice(0,s.value))),c=hc((()=>a.value.slice(s.value)));hc((()=>{var t,r;const n=(null==(t=e.value)?void 0:t["x-enumDescriptions"])??(null==(r=e.value)?void 0:r["x-enum-descriptions"]);return n&&"object"==typeof n&&!Array.isArray(n)}));const u=hc((()=>{var t,r;const n=(null==(t=e.value)?void 0:t["x-enumDescriptions"])??(null==(r=e.value)?void 0:r["x-enum-descriptions"]);return n&&"object"==typeof n&&!Array.isArray(n)})),d=hc((()=>o.value&&!e.isDiscriminator));return(e,o)=>d.value?(Pl(),Ml("div",p_e,[u.value?(Pl(),Ml("ul",h_e,[(Pl(!0),Ml(Sl,null,ps(a.value,((e,t)=>(Pl(),Nl(d_e,{key:e,label:e,description:u.value?n(e):r(t)},null,8,["label","description"])))),128))])):(Pl(),Ml("ul",f_e,[(Pl(!0),Ml(Sl,null,ps(l.value,((e,n)=>(Pl(),Nl(d_e,{key:e,label:t(e,n),description:r(n)},null,8,["label","description"])))),128)),i.value?(Pl(),Nl(Ao(qU),{key:0},{default:ci((({open:e})=>[Fl(Ao(VU),null,{default:ci((()=>[(Pl(!0),Ml(Sl,null,ps(c.value,((e,n)=>(Pl(),Nl(d_e,{key:e,label:t(e,s.value+n),description:r(s.value+n)},null,8,["label","description"])))),128))])),_:1}),Fl(Ao(HU),{class:"enum-toggle-button"},{default:ci((()=>[Fl(Ao(p5),{class:zn(["enum-toggle-button-icon",{"enum-toggle-button-icon--open":e}]),icon:"Add",size:"sm"},null,8,["class"]),ql(" "+Gn(e?"Hide values":"Show all values"),1)])),_:2},1024)])),_:1})):Vl("",!0)]))])):Vl("",!0)}}),[["__scopeId","data-v-904ae9e7"]]),g_e=e=>{var t;if(void 0!==(null==e?void 0:e.const))return"const";if(Array.isArray(null==e?void 0:e.type)){if(e.type.includes("array")&&e.items){const t=g_e(e.items),r=(null==t?void 0:t.includes(" | "))?`(${t})`:t,n=t?`array ${r}[]`:"array",a=e.type.filter((e=>"array"!==e));return a.length>0?`${n} | ${a.join(" | ")}`:n}return e.type.join(" | ")}if("array"===(null==e?void 0:e.type)&&e.items){const t=g_e(e.items),r=(null==t?void 0:t.includes(" | "))?`(${t})`:t,n=t?`array ${r}[]`:"array";return e.nullable?`${n} | null`:n}return(null==e?void 0:e.title)?e.title:(null==e?void 0:e.name)?e.name:(null==(t=null==e?void 0:e.xml)?void 0:t.name)?e.xml.name:(null==e?void 0:e.type)&&e.contentEncoding?`${e.type} • ${e.contentEncoding}`:(null==e?void 0:e.type)??""},v_e=["oneOf","anyOf","allOf","not"];function b_e(e){return v_e.some((t=>void 0!==e[t]))}const y_e={class:"property-rule"},O_e={class:"composition-selector bg-b-1.5 hover:bg-b-2 flex w-full cursor-pointer items-center gap-1 rounded-t-lg border border-b-0 px-2 py-1.25 pr-3 text-left",type:"button"},w_e={class:"text-c-2"},x_e={class:"composition-selector-label text-c-1"},k_e={class:"composition-panel"},S_e=Li({__name:"SchemaComposition",props:{composition:{},schemas:{},name:{},value:{},level:{},compact:{type:Boolean},hideHeading:{type:Boolean}},setup(e){const t=So(0),r=hc((()=>s.value)),n=hc((()=>r.value.map(((e,t)=>({id:String(t),label:g_e(e)||"Schema"}))))),a=hc({get:()=>n.value.find((e=>e.id===String(t.value))),set:e=>t.value=Number(e.id)}),o=hc((()=>{var t;const r=["oneOf","anyOf"].includes(e.composition),n="allOf"===e.composition&&(null==(t=e.value[e.composition])?void 0:t.some((e=>b_e(e))));return r||n})),i=e=>e.allOf&&Array.isArray(e.allOf)?(e=>!(!e.allOf||!Array.isArray(e.allOf))&&e.allOf.some((e=>e.oneOf||e.anyOf||e.allOf)))(e)?e:r_e(e.allOf):e,s=hc((()=>{const t=e.value[e.composition],r=(e=>e.find((e=>b_e(e))))(t);return!r||"allOf"!==e.composition&&r.allOf?t.map(i):(r.oneOf||r.anyOf||r.allOf).map(i)})),l=t=>{var r,n;if("allOf"===t){const a=null==(n=null==(r=e.value)?void 0:r[t])?void 0:n.find((e=>b_e(e)));if(null==a?void 0:a.oneOf)return"One of";if(null==a?void 0:a.anyOf)return"Any of"}return t.replace(/([A-Z])/g," $1").replace(/^./,(e=>e.toUpperCase())).toLowerCase().replace(/^(\w)/,(e=>e.toUpperCase()))},c=hc((()=>s.value[t.value])),u=hc((()=>{var e;return(null==(e=c.value)?void 0:e.oneOf)?"oneOf":"anyOf"})),d=hc((()=>{var e;const t=u.value;return null==(e=c.value)?void 0:e[t]})),p=hc((()=>{const e=c.value;return!!e&&!!(e.properties||e.type||e.nullable||void 0!==e.const||e.enum||e.allOf||e.oneOf||e.anyOf||e.items)}));return(e,t)=>{var r,i,s;const h=ss("SchemaComposition",!0);return Pl(),Ml("div",y_e,["allOf"===e.composition&&e.value[e.composition].some((e=>e.oneOf||e.anyOf))?(Pl(!0),Ml(Sl,{key:0},ps(e.value[e.composition].filter((e=>!e.oneOf&&!e.anyOf)),((t,r)=>(Pl(),Nl(cEe,{key:r,compact:e.compact,level:e.level,name:e.name,noncollapsible:0==e.level,schemas:e.schemas,value:t},null,8,["compact","level","name","noncollapsible","schemas","value"])))),128)):Vl("",!0),o.value?(Pl(),Ml(Sl,{key:1},[Fl(Ao(C5),{modelValue:a.value,"onUpdate:modelValue":t[0]||(t[0]=e=>a.value=e),options:n.value,resize:""},{default:ci((()=>{var t;return[Ul("button",O_e,[Ul("span",w_e,Gn(l(e.composition)),1),Ul("span",x_e,Gn((null==(t=a.value)?void 0:t.label)||"Schema"),1),Fl(Ao(Gz))])]})),_:1},8,["modelValue","options"]),Ul("div",k_e,[p.value?(Pl(),Nl(cEe,{key:0,compact:e.compact,level:e.level+1,hideHeading:e.hideHeading,name:e.name,noncollapsible:!0,schemas:e.schemas,value:(null==(r=c.value)?void 0:r.properties)?{type:"object",properties:c.value.properties,required:c.value.required}:c.value},null,8,["compact","level","hideHeading","name","schemas","value"])):Vl("",!0),(null==(i=c.value)?void 0:i.oneOf)||(null==(s=c.value)?void 0:s.anyOf)?(Pl(),Nl(h,{key:1,compact:e.compact,composition:u.value,hideHeading:e.hideHeading,level:e.level+1,name:e.name,noncollapsible:!0,schemas:e.schemas,value:{[u.value]:d.value}},null,8,["compact","composition","hideHeading","level","name","schemas","value"])):Vl("",!0)])],64)):(Pl(),Nl(cEe,{key:2,compact:e.compact,level:e.level,name:e.name,noncollapsible:0==e.level,schemas:e.schemas,value:Ao(r_e)(e.value[e.composition])},null,8,["compact","level","name","noncollapsible","schemas","value"]))])}}}),__e={class:"bg-b-1.5 hover:bg-b-2 mt-2 flex w-full items-center gap-1 rounded border px-2 py-1.25",type:"button"},E_e={class:"composition-selector-label text-c-1 relative"},T_e=Li({__name:"SchemaDiscriminator",props:{discriminatorMapping:{},discriminator:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=So(""),n=t,a=hc((()=>e.discriminatorMapping?Object.keys(e.discriminatorMapping).map((e=>({id:e,label:e}))):[])),o=hc({get:()=>a.value.find((t=>t.id===e.discriminator)),set:e=>{var t;(null==e?void 0:e.id)&&(t=e.id,r.value=t,n("update:modelValue",t))}});return(e,t)=>(Pl(),Nl(Ao(C5),{modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),options:a.value,resize:""},{default:ci((()=>{var e;return[Ul("button",__e,[Ul("span",E_e,Gn((null==(e=o.value)?void 0:e.label)||"Schema"),1),Fl(Ao(Gz),{class:"z-1"})])]})),_:1},8,["modelValue","options"]))}});function A_e(e){if(!e)return null;if("title"in e&&e.title)return e.title;if("name"in e&&e.name)return e.name;if("$ref"in e){const t=e.$ref.match(/\/([^\/]+)$/);if(t)return t[1]}return null}function C_e(e,t){return"array"===e?`${e} ${t}[]`:`${e} ${t}`}const P_e=Li({__name:"RenderString",props:{value:{}},setup(e){const t=hc((()=>""===e.value?"''":null===e.value?"null":void 0===e.value?"undefined":e.value));return(e,r)=>Gn(t.value)}}),D_e={key:0,class:"property-detail-prefix"},$_e={key:1,class:"property-detail-value"},R_e={key:2,class:"property-detail-value"},M_e=aye(Li({__name:"SchemaPropertyDetail",props:{truncate:{type:Boolean},code:{type:Boolean}},setup:e=>(e,t)=>(Pl(),Ml("span",{class:zn(["property-detail",{"property-detail-truncate":e.truncate}])},[e.$slots.prefix?(Pl(),Ml("div",D_e,[fs(e.$slots,"prefix",{},void 0,!0),t[0]||(t[0]=ql(" "))])):Vl("",!0),e.code?(Pl(),Ml("code",$_e,[fs(e.$slots,"default",{},void 0,!0)])):(Pl(),Ml("span",R_e,[fs(e.$slots,"default",{},void 0,!0)]))],2))}),[["__scopeId","data-v-3ae98a1b"]]);function N_e(e){return Array.isArray(e)?`[${e.map((e=>"string"==typeof e?`"${e.toString().trim()}"`:"object"==typeof e?JSON.stringify(e):void 0===e?"undefined":null===e?"null":e)).join(", ")}]`:null===e?"null":"object"==typeof e?"value"in e?e.value:"externalValue"in e?e.externalValue:JSON.stringify(e):void 0===e?"undefined":"string"==typeof e?e.trim():e.toString().trim()}const I_e={key:0,class:"property-example"},L_e={class:"property-example-value-list"},j_e={key:1,class:"property-example"},B_e={type:"button",class:"property-example-label"},U_e={class:"property-example-value-list"},F_e=["onClick"],Q_e=aye(Li({__name:"SchemaPropertyExamples",props:{examples:{},example:{}},setup(e){const{copyToClipboard:t}=VV();return(e,r)=>(Pl(),Ml(Sl,null,[e.example?(Pl(),Ml("div",I_e,[r[1]||(r[1]=Ul("button",{type:"button",class:"property-example-label"},[Ul("span",null,"Example")],-1)),Ul("div",L_e,[Ul("button",{type:"button",class:"property-example-value group",onClick:r[0]||(r[0]=r=>Ao(t)(String(Ao(N_e)(e.example))))},[Ul("span",null,Gn(Ao(N_e)(e.example)),1),Fl(Ao(p5),{icon:"Clipboard",size:"xs",class:"group-hover:text-c-1 text-c-3 ml-auto min-h-3 min-w-3"})])])])):Vl("",!0),e.examples&&"object"==typeof e.examples&&Object.keys(e.examples).length>0?(Pl(),Ml("div",j_e,[Ul("button",B_e,[Ul("span",null,Gn(1===Object.keys(e.examples).length?"Example":"Examples"),1)]),Ul("div",U_e,[(Pl(!0),Ml(Sl,null,ps(e.examples,((e,r)=>(Pl(),Ml("button",{type:"button",key:r,class:"property-example-value group",onClick:r=>Ao(t)(String(Ao(N_e)(e)))},[Ul("span",null,Gn(Ao(N_e)(e)),1),Fl(Ao(p5),{icon:"Clipboard",size:"xs",class:"text-c-3 group-hover:text-c-1 ml-auto min-h-3 min-w-3"})],8,F_e)))),128))])])):Vl("",!0)],64))}}),[["__scopeId","data-v-1c1ebd80"]]),z_e={class:"property-heading"},q_e={key:1,class:"property-discriminator"},H_e={key:3,class:"property-additional"},V_e={key:4,class:"property-deprecated"},Z_e={key:5,class:"property-const"},W_e={key:7,class:"property-write-only"},X_e={key:8,class:"property-read-only"},G_e={key:9,class:"property-required"},Y_e=aye(Li({__name:"SchemaPropertyHeading",props:{value:{},enum:{type:Boolean},required:{type:Boolean,default:!1},additional:{type:Boolean},withExamples:{type:Boolean,default:!0},hideModelNames:{type:Boolean,default:!1},schemas:{}},setup(e){const t=hc((()=>{var t,r,n,a,o,i;if(void 0!==(null==(t=e.value)?void 0:t.const))return null==(r=e.value)?void 0:r.const;if(1===(null==(a=null==(n=e.value)?void 0:n.enum)?void 0:a.length))return e.value.enum[0];if(null==(o=e.value)?void 0:o.items){if(mj(e.value.items.const))return e.value.items.const;if(1===(null==(i=e.value.items.enum)?void 0:i.length))return e.value.items.enum[0]}})),r=hc((()=>e.value?function(e,t,r=!1,n){if(!(null==e?void 0:e.type))return null;if(r)return null;const a=A_e(e);if(a&&(e.title||e.name))return"array"===e.type?`array ${a}[]`:a;if("array"===e.type&&e.items){if(n){const r=n(e.items,t);if(r)return C_e(e.type,r)}if(e.items.title||e.items.name)return C_e(e.type,e.items.title||e.items.name);const r=A_e(e.items);return r&&r!==e.items.type?C_e(e.type,r):e.items.type?C_e(e.type,e.items.type):C_e(e.type,"object")}return a&&a!==e.type?a.startsWith("Array of ")?`array ${a.replace("Array of ","")}[]`:a:null}(e.value,e.schemas,e.hideModelNames,YSe):null));return(e,n)=>{var a,o,i,s,l,c,u,d,p,h,f,m;return Pl(),Ml("div",z_e,[e.$slots.name?(Pl(),Ml("div",{key:0,class:zn(["property-name",{deprecated:null==(a=e.value)?void 0:a.deprecated}])},[fs(e.$slots,"name",{},void 0,!0)],2)):Vl("",!0),(null==(o=e.value)?void 0:o.isDiscriminator)?(Pl(),Ml("div",q_e," Discriminator ")):Vl("",!0),e.value?(Pl(),Ml(Sl,{key:2},[(null==(i=e.value)?void 0:i.type)?(Pl(),Nl(M_e,{key:0},{default:ci((()=>[Fl(lSe,null,{default:ci((()=>n[0]||(n[0]=[ql("Type: ")]))),_:1,__:[0]}),r.value?(Pl(),Ml(Sl,{key:0},[ql(Gn(r.value),1)],64)):(Pl(),Ml(Sl,{key:1},[ql(Gn(Ao(g_e)(e.value)),1)],64))])),_:1})):Vl("",!0),e.value.minItems||e.value.maxItems?(Pl(),Nl(M_e,{key:1},{default:ci((()=>[ql(Gn(e.value.minItems)+"…"+Gn(e.value.maxItems),1)])),_:1})):Vl("",!0),e.value.minLength?(Pl(),Nl(M_e,{key:2},{prefix:ci((()=>n[1]||(n[1]=[ql("min: ")]))),default:ci((()=>[ql(" "+Gn(e.value.minLength),1)])),_:1})):Vl("",!0),e.value.maxLength?(Pl(),Nl(M_e,{key:3},{prefix:ci((()=>n[2]||(n[2]=[ql("max: ")]))),default:ci((()=>[ql(" "+Gn(e.value.maxLength),1)])),_:1})):Vl("",!0),e.value.uniqueItems?(Pl(),Nl(M_e,{key:4},{default:ci((()=>n[3]||(n[3]=[ql(" unique! ")]))),_:1,__:[3]})):Vl("",!0),e.value.format?(Pl(),Nl(M_e,{key:5},{default:ci((()=>[Fl(lSe,null,{default:ci((()=>n[4]||(n[4]=[ql("Format:")]))),_:1,__:[4]}),ql(" "+Gn(e.value.format),1)])),_:1})):Vl("",!0),Ao(mj)(e.value.exclusiveMinimum)?(Pl(),Nl(M_e,{key:6},{prefix:ci((()=>n[5]||(n[5]=[ql("greater than: ")]))),default:ci((()=>[ql(" "+Gn(e.value.exclusiveMinimum),1)])),_:1})):Vl("",!0),Ao(mj)(e.value.minimum)?(Pl(),Nl(M_e,{key:7},{prefix:ci((()=>n[6]||(n[6]=[ql("min: ")]))),default:ci((()=>[ql(" "+Gn(e.value.minimum),1)])),_:1})):Vl("",!0),Ao(mj)(e.value.exclusiveMaximum)?(Pl(),Nl(M_e,{key:8},{prefix:ci((()=>n[7]||(n[7]=[ql("less than: ")]))),default:ci((()=>[ql(" "+Gn(e.value.exclusiveMaximum),1)])),_:1})):Vl("",!0),Ao(mj)(e.value.maximum)?(Pl(),Nl(M_e,{key:9},{prefix:ci((()=>n[8]||(n[8]=[ql("max: ")]))),default:ci((()=>[ql(" "+Gn(e.value.maximum),1)])),_:1})):Vl("",!0),Ao(mj)(e.value.multipleOf)?(Pl(),Nl(M_e,{key:10},{prefix:ci((()=>n[9]||(n[9]=[ql("multiple of: ")]))),default:ci((()=>[ql(" "+Gn(e.value.multipleOf),1)])),_:1})):Vl("",!0),e.value.pattern?(Pl(),Nl(M_e,{key:11,code:"",truncate:""},{default:ci((()=>[Fl(lSe,null,{default:ci((()=>n[10]||(n[10]=[ql("Pattern:")]))),_:1,__:[10]}),ql(" "+Gn(e.value.pattern),1)])),_:1})):Vl("",!0),e.$props.enum?(Pl(),Nl(M_e,{key:12},{default:ci((()=>n[11]||(n[11]=[ql("enum")]))),_:1,__:[11]})):Vl("",!0),void 0!==e.value.default?(Pl(),Nl(M_e,{key:13,truncate:""},{prefix:ci((()=>n[12]||(n[12]=[ql("default: ")]))),default:ci((()=>{return[ql(" "+Gn((t=e.value,null===(null==t?void 0:t.default)?"null":Array.isArray(null==t?void 0:t.default)&&1===t.default.length?t.default[0]:"string"==typeof(null==t?void 0:t.default)||Array.isArray(null==t?void 0:t.default)?JSON.stringify(t.default):null==t?void 0:t.default)),1)];var t})),_:1})):Vl("",!0)],64)):Vl("",!0),e.additional?(Pl(),Ml("div",H_e,[(null==(s=e.value)?void 0:s["x-additionalPropertiesName"])?(Pl(),Ml(Sl,{key:0},[ql(Gn(e.value["x-additionalPropertiesName"]),1)],64)):(Pl(),Ml(Sl,{key:1},[ql("additional properties")],64))])):Vl("",!0),(null==(l=e.value)?void 0:l.deprecated)?(Pl(),Ml("div",V_e,[Fl(Ao(eke),null,{default:ci((()=>n[13]||(n[13]=[ql("deprecated")]))),_:1,__:[13]})])):Vl("",!0),void 0!==t.value?(Pl(),Ml("div",Z_e,[Fl(M_e,{truncate:""},{prefix:ci((()=>n[14]||(n[14]=[ql("const: ")]))),default:ci((()=>[Fl(P_e,{value:t.value},null,8,["value"])])),_:1})])):(Pl(),Ml(Sl,{key:6},[!0===(null==(c=e.value)?void 0:c.nullable)?(Pl(),Nl(M_e,{key:0},{default:ci((()=>n[15]||(n[15]=[ql(" nullable ")]))),_:1,__:[15]})):Vl("",!0)],64)),(null==(u=e.value)?void 0:u.writeOnly)?(Pl(),Ml("div",W_e," write-only ")):(null==(d=e.value)?void 0:d.readOnly)?(Pl(),Ml("div",X_e," read-only ")):Vl("",!0),e.required?(Pl(),Ml("div",G_e," required ")):Vl("",!0),e.withExamples?(Pl(),Nl(Q_e,{key:10,examples:null==(p=e.value)?void 0:p.examples,example:(null==(h=e.value)?void 0:h.example)||(null==(m=null==(f=e.value)?void 0:f.items)?void 0:m.example)},null,8,["examples","example"])):Vl("",!0)])}}}),[["__scopeId","data-v-10b9288a"]]),K_e={key:0,class:"property-name-pattern-properties"},J_e={key:1,class:"property-name-additional-properties"},eEe={key:1,class:"property-description"},tEe={key:2,class:"property-description"},rEe={key:3,class:"children"},nEe={key:0,class:"children"},aEe=aye(Li({__name:"SchemaProperty",props:{is:{},value:{},noncollapsible:{type:Boolean},level:{default:0},name:{},required:{type:Boolean,default:!1},compact:{type:Boolean,default:!1},description:{},withExamples:{type:Boolean,default:!0},hideModelNames:{type:Boolean,default:!1},schemas:{},hideHeading:{type:Boolean},discriminatorMapping:{},discriminatorPropertyName:{},isDiscriminator:{type:Boolean},variant:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=t,a={integer:{_default:"Integer numbers.",int32:"Signed 32-bit integers (commonly used integer type).",int64:"Signed 64-bit integers (long type)."},string:{date:"full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21","date-time":"the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z",password:"a hint to UIs to mask the input",base64:"base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",byte:"base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",binary:"binary data, used to describe files"}},o=(e,t)=>(null==t?void 0:t.properties)||(null==t?void 0:t.additionalProperties)||(null==t?void 0:t.patternProperties)||(null==t?void 0:t.allOf)?null:e||(null==t?void 0:t.description)||null,i=e=>e&&a[e.type]?a[e.type][e.format||e.contentEncoding||"_default"]:null,s=e=>{var t;return(null==e?void 0:e.enum)||(null==(t=null==e?void 0:e.items)?void 0:t.enum)||[]},l=hc((()=>function(e){var t;if(!e||"object"!=typeof e)return e;let r={...e};const n=i_e.find((e=>null==r?void 0:r[e]));if(!n)return r;if("not"===n)return r;const a=null==r?void 0:r[n];if(!Array.isArray(a))return r;const o=a.map((e=>{if(e.allOf&&Array.isArray(e.allOf)){const t=r_e(e.allOf);return Object.keys(e).forEach((r=>{i_e.includes(r)||r in t||(t[r]=e[r])})),t}return e}));o.some((e=>"null"===e.type))&&(r.nullable=!0);const i=o.filter((e=>!("null"===e.type)));return 1===i.length&&(null==r?void 0:r[n])?(r={...r,...i[0]},null==r||delete r[n],r):(Array.isArray(null==r?void 0:r[n])&&(null==(t=null==r?void 0:r[n])?void 0:t.length)>1&&(r[n]=i),r)}(r.value))),c=Bs(XSe,null),u=hc((()=>{var e;return r.level>0?l.value:(null==(e=null==c?void 0:c.value)?void 0:e.mergedSchema)?c.value.mergedSchema:l.value})),d=hc((()=>{var e;return(null==(e=null==c?void 0:c.value)?void 0:e.selectedType)||(r.discriminatorMapping?Object.keys(r.discriminatorMapping)[0]:"")})),p=e=>{n("update:modelValue",e)},h=hc((()=>{const e=l.value;if(!(null==e?void 0:e.items)||"object"!=typeof e.items)return!1;const t=e.items;return"type"in t&&["object"].includes(t.type)||"$ref"in t||"discriminator"in t||"allOf"in t||"oneOf"in t||"anyOf"in t})),f=e=>{const t=l.value;return!(!(null==t?void 0:t.items)||"object"!=typeof t.items||!(e in t.items)||h.value)},m=hc((()=>h.value)),g=hc((()=>{if(!l.value)return!1;const e=l.value,t="object"===e.type||Array.isArray(e.type)&&e.type.includes("object"),r=e.properties||e.additionalProperties;return t&&r}));return(e,t)=>{var r;return Pl(),Nl(cs(e.is??"li"),{class:zn(["property",[(o(e.description,l.value),""),`property--level-${e.level}`,{"property--compact":e.compact,"property--deprecated":null==(r=l.value)?void 0:r.deprecated}]])},{default:ci((()=>{var t,r,n,a,c;return[(n=l.value,a=e.name,c=e.required,a||(null==n?void 0:n.deprecated)||void 0!==(null==n?void 0:n.const)||(null==n?void 0:n.enum)&&1===n.enum.length||(null==n?void 0:n.type)||!0===(null==n?void 0:n.nullable)||(null==n?void 0:n.writeOnly)||(null==n?void 0:n.readOnly)||c?(Pl(),Nl(Y_e,{key:0,enum:s(l.value).length>0,required:e.required,value:l.value,schemas:e.schemas,hideModelNames:e.hideModelNames},hs({_:2},[e.name?{name:"name",fn:ci((()=>["patternProperties"===e.variant?(Pl(),Ml("span",K_e,Gn(e.name),1)):"additionalProperties"===e.variant?(Pl(),Ml("span",J_e,Gn(e.name),1)):(Pl(),Ml(Sl,{key:2},[ql(Gn(e.name),1)],64))])),key:"0"}:void 0,(null==(t=l.value)?void 0:t.example)?{name:"example",fn:ci((()=>[ql(" Example: "+Gn(l.value.example),1)])),key:"1"}:void 0]),1032,["enum","required","value","schemas","hideModelNames"])):Vl("",!0)),o(e.description,l.value)?(Pl(),Ml("div",eEe,[Fl(Ao(D5),{value:o(e.description,l.value)},null,8,["value"])])):i(l.value)?(Pl(),Ml("div",tEe,[Fl(Ao(D5),{value:i(l.value)||""},null,8,["value"])])):Vl("",!0),Fl(m_e,{value:l.value},null,8,["value"]),g.value?(Pl(),Ml("div",rEe,[Fl(cEe,{compact:e.compact,level:e.level+1,name:e.name,noncollapsible:e.noncollapsible,value:u.value,resolvedSchema:u.value,discriminatorMapping:e.discriminatorMapping,discriminatorPropertyName:e.discriminatorPropertyName,schemas:e.schemas,"onUpdate:modelValue":p},null,8,["compact","level","name","noncollapsible","value","resolvedSchema","discriminatorMapping","discriminatorPropertyName","schemas"])])):Vl("",!0),(null==(r=l.value)?void 0:r.items)&&"object"==typeof l.value.items?(Pl(),Ml(Sl,{key:4},[m.value?(Pl(),Ml("div",nEe,[Fl(cEe,{compact:e.compact,level:e.level+1,name:e.name,noncollapsible:e.noncollapsible,value:u.value&&"object"==typeof u.value&&"items"in u.value?u.value.items:l.value.items,resolvedSchema:u.value&&"object"==typeof u.value&&"items"in u.value?u.value.items:l.value.items,discriminatorMapping:e.discriminatorMapping,discriminatorPropertyName:e.discriminatorPropertyName,schemas:e.schemas,"onUpdate:modelValue":p},null,8,["compact","level","name","noncollapsible","value","resolvedSchema","discriminatorMapping","discriminatorPropertyName","schemas"])])):Vl("",!0)],64)):Vl("",!0),(Pl(!0),Ml(Sl,null,ps(Ao(i_e),(t=>{var r,n,a;return Pl(),Ml(Sl,{key:t},[!(null==(r=l.value)?void 0:r[t])||(null==(n=l.value)?void 0:n.items)&&"string"==typeof t&&"object"==typeof l.value.items&&t in l.value.items?f(t)?(Pl(),Nl(S_e,{key:1,compact:e.compact,composition:t,hideHeading:e.hideHeading,level:e.level,name:e.name,noncollapsible:e.noncollapsible,schemas:e.schemas,value:null==(a=l.value)?void 0:a.items},null,8,["compact","composition","hideHeading","level","name","noncollapsible","schemas","value"])):Vl("",!0):(Pl(),Nl(S_e,{key:0,compact:e.compact,composition:t,hideHeading:e.hideHeading,level:e.level,name:e.name,noncollapsible:e.noncollapsible,schemas:e.schemas,value:l.value},null,8,["compact","composition","hideHeading","level","name","noncollapsible","schemas","value"]))],64)})),128)),e.isDiscriminator&&e.discriminatorMapping&&e.compact?(Pl(),Nl(T_e,{key:5,"discriminator-mapping":e.discriminatorMapping,discriminator:d.value,"onUpdate:modelValue":p},null,8,["discriminator-mapping","discriminator"])):Vl("",!0),Fl(Ao(FSe),{value:l.value},null,8,["value"])]})),_:1},8,["class"])}}}),[["__scopeId","data-v-7f7d1229"]]),oEe=Li({__name:"SchemaObjectProperties",props:{schema:{type:[Object,Boolean]},compact:{type:Boolean},hideHeading:{type:Boolean},level:{default:0},hideModelNames:{type:Boolean,default:!1},schemas:{},discriminator:{},discriminatorMapping:{},discriminatorPropertyName:{},hasDiscriminator:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const r=t,n=e=>{r("update:modelValue",e)},a=e=>!0===e||"object"==typeof e&&0===Object.keys(e).length||"object"!=typeof e||!("type"in e)?{type:"anything",..."object"==typeof e?e:{}}:e;return(e,t)=>{return Pl(),Ml(Sl,null,[e.schema.properties?(Pl(!0),Ml(Sl,{key:0},ps(Object.keys(e.schema.properties),(t=>{var r,a,o,i,s,l;return Pl(),Nl(aEe,{key:t,compact:e.compact,hideHeading:e.hideHeading,level:e.level,name:t,hideModelNames:e.hideModelNames,required:(null==(r=e.schema.required)?void 0:r.includes(t))||!0===(null==(a=e.schema.properties[t])?void 0:a.required),schemas:e.schemas,resolvedSchema:e.schema.properties[t],value:{...e.schema.properties[t],parent:e.schema,isDiscriminator:t===e.discriminatorPropertyName||(null==(o=e.schema.discriminator)?void 0:o.propertyName)===t},discriminatorMapping:(null==(i=e.schema.discriminator)?void 0:i.mapping)||e.discriminatorMapping,discriminatorPropertyName:(null==(s=e.schema.discriminator)?void 0:s.propertyName)||e.discriminatorPropertyName,isDiscriminator:t===((null==(l=e.schema.discriminator)?void 0:l.propertyName)||e.discriminatorPropertyName),modelValue:e.discriminator,"onUpdate:modelValue":n},null,8,["compact","hideHeading","level","name","hideModelNames","required","schemas","resolvedSchema","value","discriminatorMapping","discriminatorPropertyName","isDiscriminator","modelValue"])})),128)):Vl("",!0),e.schema.patternProperties?(Pl(!0),Ml(Sl,{key:1},ps(Object.keys(e.schema.patternProperties),(t=>(Pl(),Nl(aEe,{key:t,variant:"patternProperties",compact:e.compact,hideHeading:e.hideHeading,level:e.level,name:t,hideModelNames:e.hideModelNames,schemas:e.schemas,resolvedSchema:e.schema.patternProperties[t],value:{...e.schema.patternProperties[t]},discriminatorMapping:e.discriminatorMapping,discriminatorPropertyName:e.discriminatorPropertyName,isDiscriminator:!1,modelValue:e.discriminator,"onUpdate:modelValue":n},null,8,["compact","hideHeading","level","name","hideModelNames","schemas","resolvedSchema","value","discriminatorMapping","discriminatorPropertyName","modelValue"])))),128)):Vl("",!0),e.schema.additionalProperties?(Pl(),Nl(aEe,{key:2,variant:"additionalProperties",compact:e.compact,hideHeading:e.hideHeading,level:e.level,name:(r=e.schema.additionalProperties,"object"==typeof r&&"string"==typeof r["x-additionalPropertiesName"]&&r["x-additionalPropertiesName"].trim().length>0?`${r["x-additionalPropertiesName"].trim()}*`:"propertyName*"),hideModelNames:e.hideModelNames,schemas:e.schemas,resolvedSchema:a(e.schema.additionalProperties),value:a(e.schema.additionalProperties),discriminatorMapping:e.discriminatorMapping,discriminatorPropertyName:e.discriminatorPropertyName,isDiscriminator:!1,modelValue:e.discriminator,noncollapsible:"","onUpdate:modelValue":n},null,8,["compact","hideHeading","level","name","hideModelNames","schemas","resolvedSchema","value","discriminatorMapping","discriminatorPropertyName","modelValue"])):Vl("",!0)],64);var r}}}),iEe={key:0,class:"schema-card-description"},sEe={key:0,class:"schema-properties"},lEe=Li({__name:"Schema",props:{value:{type:[Object,Boolean]},level:{default:0},name:{},compact:{type:Boolean},noncollapsible:{type:Boolean,default:!1},hideHeading:{type:Boolean},additionalProperties:{type:Boolean},hideModelNames:{type:Boolean,default:!1},schemas:{},discriminator:{},discriminatorMapping:{},discriminatorPropertyName:{},hasDiscriminator:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=t,a=Bs(XSe,null),o=hc((()=>{var e;return(null==(e=null==a?void 0:a.value)?void 0:e.discriminatorMapping)||r.discriminatorMapping||{}})),i=hc((()=>{var e;return(null==(e=null==a?void 0:a.value)?void 0:e.discriminatorPropertyName)||r.discriminatorPropertyName||""})),s=hc((()=>{var e;return(null==(e=null==a?void 0:a.value)?void 0:e.selectedType)||r.discriminator})),l=hc((()=>{var e;const t=null==(e=null==a?void 0:a.value)?void 0:e.mergedSchema,n=r.value;return t&&0===r.level&&r.hasDiscriminator&&KSe(n)&&KSe(t)?t:r.value})),c=hc((()=>!r.noncollapsible&&0!==r.level)),u=hc((()=>{var e;return!(!(null==(e=l.value)?void 0:e.description)||"string"!=typeof l.value.description||l.value.allOf||l.value.oneOf||l.value.anyOf||l.value.enum||!(l.value.properties||l.value.patternProperties||l.value.additionalProperties)||0===r.level)})),d=e=>r.noncollapsible&&e.stopPropagation(),p=e=>{n("update:modelValue",e)};return(e,t)=>"object"==typeof e.value&&Object.keys(e.value).length?(Pl(),Nl(Ao(qU),{key:0,defaultOpen:e.noncollapsible},{default:ci((({open:r})=>{var n,a;return[Ul("div",{class:zn(["schema-card",[`schema-card--level-${e.level}`,{"schema-card--compact":e.compact,"schema-card--open":r},{"border-t":e.additionalProperties&&r}]])},[u.value?(Pl(),Ml("div",iEe,[(null==(n=l.value)?void 0:n.enum)?Vl("",!0):(Pl(),Nl(Ao(D5),{key:0,value:null==(a=l.value)?void 0:a.description},null,8,["value"]))])):Vl("",!0),Ul("div",{class:zn(["schema-properties",{"schema-properties-open":r}])},[e.additionalProperties?ui((Pl(),Ml("div",sEe,[Fl(Ao(HU),{as:"button",class:"schema-card-title schema-card-title--compact",onClickCapture:d},{default:ci((()=>[Fl(Ao(p5),{class:"schema-card-title-icon",icon:"Add",size:"sm"}),t[0]||(t[0]=ql(" Show additional properties ")),e.name?(Pl(),Nl(lSe,{key:0},{default:ci((()=>[ql("for "+Gn(e.name),1)])),_:1})):Vl("",!0)])),_:1,__:[0]})],512)),[[Fc,!r]]):c.value?ui((Pl(),Nl(Ao(HU),{key:1,as:e.noncollapsible?"div":"button",class:zn(["schema-card-title",{"schema-card-title--compact":e.compact}]),style:jn({top:`calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${e.level}))`}),onClickCapture:d},{default:ci((()=>{var t,n,a;return[e.compact?(Pl(),Ml(Sl,{key:0},[Fl(Ao(p5),{class:zn(["schema-card-title-icon",{"schema-card-title-icon--open":r}]),icon:"Add",size:"sm"},null,8,["class"]),r?(Pl(),Ml(Sl,{key:0},[ql(" Hide "+Gn((null==(t=e.value)?void 0:t.title)??"Child Attributes"),1)],64)):(Pl(),Ml(Sl,{key:1},[ql(" Show "+Gn((null==(n=e.value)?void 0:n.title)??"Child Attributes"),1)],64)),e.name?(Pl(),Nl(lSe,{key:2},{default:ci((()=>[ql("for "+Gn(e.name),1)])),_:1})):Vl("",!0)],64)):(Pl(),Ml(Sl,{key:1},[Fl(Ao(p5),{class:zn(["schema-card-title-icon",{"schema-card-title-icon--open":r}]),icon:"Add",size:"sm"},null,8,["class"]),Fl(t_e,{name:(null==(a=e.value)?void 0:a.title)??e.name,value:e.value},null,8,["name","value"])],64))]})),_:2},1032,["as","class","style"])),[[Fc,!(e.hideHeading||e.noncollapsible&&e.compact)]]):Vl("",!0),!e.additionalProperties||r?(Pl(),Nl(Ao(VU),{key:2,as:"ul",static:!c.value},{default:ci((()=>{var t;return[Ao(KSe)(l.value)?(Pl(),Nl(oEe,{key:0,schema:l.value,compact:e.compact,hideHeading:e.hideHeading,level:e.level+1,hideModelNames:e.hideModelNames,schemas:e.schemas,discriminator:s.value,discriminatorMapping:o.value,discriminatorPropertyName:i.value,hasDiscriminator:e.hasDiscriminator,"onUpdate:modelValue":p},null,8,["schema","compact","hideHeading","level","hideModelNames","schemas","discriminator","discriminatorMapping","discriminatorPropertyName","hasDiscriminator"])):(Pl(),Ml(Sl,{key:1},[l.value?(Pl(),Nl(aEe,{key:0,compact:e.compact,hideHeading:e.hideHeading,hideModelNames:e.hideModelNames,level:e.level,name:l.value.name,schemas:e.schemas,value:(null==(t=e.value.discriminator)?void 0:t.propertyName)===e.name?e.value:l.value,discriminatorMapping:o.value,discriminatorPropertyName:i.value,modelValue:s.value,"onUpdate:modelValue":p},null,8,["compact","hideHeading","hideModelNames","level","name","schemas","value","discriminatorMapping","discriminatorPropertyName","modelValue"])):Vl("",!0)],64))]})),_:1},8,["static"])):Vl("",!0)],2)],2)]})),_:1},8,["defaultOpen"])):Vl("",!0)}}),cEe=aye(lEe,[["__scopeId","data-v-67eca159"]]),uEe=["href"],dEe=aye(Li({__name:"OperationsListItem",props:{transformedOperation:{},collection:{},isCollapsed:{type:Boolean}},setup(e){const{scrollToOperation:t}=xke(),r=hc((()=>{var t,r;return(null==(t=e.transformedOperation)?void 0:t.name)||(null==(r=e.transformedOperation)?void 0:r.path)}));return(e,n)=>(Pl(),Ml("li",{key:e.transformedOperation.id,class:"contents"},[e.isCollapsed?(Pl(),Nl(Ao(iSe),{key:0,class:"sr-only",level:3},{default:ci((()=>[ql(Gn(r.value)+" (Hidden) ",1)])),_:1})):Vl("",!0),Ul("a",{class:"endpoint",href:`#${e.transformedOperation.id}`,onClick:n[0]||(n[0]=Su((r=>(async e=>{t(e.id,!0)})(e.transformedOperation)),["prevent"]))},[Fl(Ao(_ke),{class:"endpoint-method items-center justify-end gap-2",method:e.transformedOperation.httpVerb},{default:ci((()=>[e.transformedOperation.isWebhook?(Pl(),Nl(Ao(eV),{key:0,class:"size-3.5"})):Vl("",!0)])),_:1},8,["method"]),Ul("span",{class:zn(["endpoint-path",{deprecated:Ao(dj)(e.transformedOperation.information)}])},Gn(e.transformedOperation.path),3)],8,uEe)]))}}),[["__scopeId","data-v-19af3744"]]),pEe=["aria-label"],hEe=aye(Li({__name:"OperationsList",props:{tag:{},collection:{},isCollapsed:{type:Boolean}},setup(e){const t=e,r=hc((()=>t.tag["x-displayName"]??t.tag.name));return(e,t)=>{var n;return(null==(n=e.tag.operations)?void 0:n.length)>0?(Pl(),Nl(Ao(lz),{key:0,class:"endpoints-card"},{default:ci((()=>[Fl(Ao(pz),null,{default:ci((()=>[Fl(lSe,null,{default:ci((()=>[ql(Gn(r.value),1)])),_:1}),t[0]||(t[0]=ql(" Operations "))])),_:1,__:[0]}),Fl(Ao(cz),{class:"custom-scroll"},{default:ci((()=>[Ul("ul",{"aria-label":`${r.value} endpoints`,class:"endpoints"},[(Pl(!0),Ml(Sl,null,ps(e.tag.operations,(t=>(Pl(),Nl(dEe,{key:t.id,collection:e.collection,isCollapsed:e.isCollapsed,transformedOperation:t},null,8,["collection","isCollapsed","transformedOperation"])))),128))],8,pEe)])),_:1})])),_:1})):Vl("",!0)}}}),[["__scopeId","data-v-d9656fb3"]]),fEe=Li({__name:"Tag",props:{id:{},tag:{},collection:{},headerId:{},isCollapsed:{type:Boolean}},setup(e){const t=e,{getTagId:r}=lke(),n=Gxe(),a=hc((()=>t.id||r(t.tag)||"")),o=hc((()=>t.tag["x-displayName"]??t.tag.name));return(e,t)=>(Pl(),Nl(Ao(Uke),{id:a.value,label:e.tag.name.toUpperCase(),role:"none"},{default:ci((()=>[ui(Fl(Ao(oSe),null,{default:ci((()=>[Fl(Ao(hSe),{id:a.value},{default:ci((()=>[Fl(Ao(iSe),{id:e.headerId,level:2},{default:ci((()=>[ql(Gn(o.value)+" ",1),e.isCollapsed?(Pl(),Nl(lSe,{key:0},{default:ci((()=>t[0]||(t[0]=[ql(" (Collapsed)")]))),_:1,__:[0]})):Vl("",!0)])),_:1},8,["id"])])),_:1},8,["id"])])),_:1},512),[[Fc,!Ao(n).isLoading]]),Fl(Ao(nSe),{loading:Ao(n).isLoading},{default:ci((()=>[Fl(Ao(Xke),null,{default:ci((()=>[Fl(Ao(Zke),null,{default:ci((()=>[Fl(Ao(D5),{clamp:!!e.isCollapsed&&"7",value:e.tag.description,withImages:""},null,8,["clamp","value"])])),_:1}),Fl(Ao(Zke),null,{default:ci((()=>[Fl(hEe,{collection:e.collection,tag:e.tag},null,8,["collection","tag"])])),_:1})])),_:1})])),_:1},8,["loading"]),Fl(Ao(FSe),{value:e.tag},null,8,["value"])])),_:1},8,["id","label"]))}}),mEe=aye(Li({__name:"ShowMoreButton",props:{id:{}},setup(e){const{setCollapsedSidebarItem:t}=xke(),r=Gxe(),n=()=>{var n,a;t(e.id,!0),null==(a=(n=r.value).onShowMore)||a.call(n,e.id)};return(e,t)=>(Pl(),Ml("button",{class:"show-more",type:"button",onClick:n},[t[0]||(t[0]=ql(" Show More ")),Fl(Ao(p5),{class:"show-more-icon",icon:"ChevronDown"})]))}}),[["__scopeId","data-v-c46d29d9"]]),gEe=aye(Li({__name:"TagSection",props:{id:{},tag:{},collection:{},spec:{}},setup(e){const t=e,r=So(),n=So(),a=ji(),{collapsedSidebarItems:o}=xke(),{getTagId:i}=lke(),s=hc((()=>t.id||i(t.tag)||"")),l=hc((()=>{var e,r;return(null==(e=t.spec.tags)?void 0:e.length)&&(null==(r=t.spec.tags)?void 0:r.length)>1})),c=hc((()=>{var e,r;return l.value||"default"!==(null==(e=t.tag)?void 0:e.name)||""!==(null==(r=t.tag)?void 0:r.description)}));async function u(){var e,t;await Ko(),null==(t=null==(e=n.value)?void 0:e.querySelector("button"))||t.focus()}return(e,t)=>(Pl(),Nl(Ao(Yke),{ref_key:"sectionContainerRef",ref:r,"aria-labelledby":Ao(a),class:"tag-section-container",role:"region"},{default:ci((()=>[c.value?(Pl(),Nl(fEe,{key:0,id:e.id,collection:e.collection,headerId:Ao(a),isCollapsed:!Ao(o)[s.value],tag:e.tag},null,8,["id","collection","headerId","isCollapsed","tag"])):Vl("",!0),!Ao(o)[s.value]&&l.value?(Pl(),Nl(mEe,{key:1,id:s.value,"aria-label":`Show all ${e.tag["x-displayName"]??e.tag.name} endpoints`,onClick:u},null,8,["id","aria-label"])):(Pl(),Ml("div",{key:2,ref_key:"contentsRef",ref:n,class:"contents"},[fs(e.$slots,"default",{},void 0,!0)],512))])),_:3},8,["aria-labelledby"]))}}),[["__scopeId","data-v-e5bbfee4"]]),vEe=["aria-controls","aria-selected","tabindex"],bEe=Li({__name:"SectionFilterButton",props:{selected:{type:Boolean},controls:{}},setup:e=>(e,t)=>(Pl(),Ml("button",{"aria-controls":e.controls??"","aria-selected":!!e.selected,class:zn(["hover:bg-b-2 flex w-fit cursor-pointer items-center rounded p-1 px-2 text-center font-medium whitespace-nowrap has-[:focus-visible]:outline",{"text-c-1 pointer-events-none":e.selected}]),role:"tab",tabindex:e.selected?0:-1,type:"button"},[fs(e.$slots,"default")],10,vEe))}),yEe={class:"request-section-content request-section-content-filter fade-request-section-content text-c-3 pointer-events-auto relative hidden w-full justify-end gap-[1.5px] rounded py-1.75 text-xs xl:flex"},OEe={class:"filter-button context-bar-group-hover:text-c-1 absolute -right-[30px] flex items-center"},wEe={class:"context-bar-group-hover:hidden mr-1.5"},xEe=Li({__name:"SectionFilter",props:xs({filters:{default:()=>[]},filterIds:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=fl(e,"modelValue"),r=So(),n=n=>{const a="prev"===n?-1:1,o=t.value?e.filters.indexOf(t.value):0,i=e.filters.length,s=(o+a+i)%i;t.value=e.filters[s],Ko((()=>{if(r.value){const e=r.value.querySelector('button[aria-selected="true"]');e&&e.focus()}}))};return(e,a)=>(Pl(),Ml("div",{ref_key:"tablist",ref:r,class:"filter-hover context-bar-group ml-auto hidden lg:flex",role:"tablist",onKeydown:[a[0]||(a[0]=Eu((e=>n("prev")),["left"])),a[1]||(a[1]=Eu((e=>n("next")),["right"]))]},[Ul("div",yEe,[(Pl(!0),Ml(Sl,null,ps(e.filters,(r=>{var n;return Pl(),Nl(bEe,{key:r,class:"filter-hover-item",controls:null==(n=e.filterIds)?void 0:n[r],role:"tab",selected:t.value===r,onClick:e=>t.value=r},{default:ci((()=>[ql(Gn(r),1)])),_:2},1032,["controls","selected","onClick"])})),128)),Ul("div",OEe,[Ul("span",wEe,Gn(t.value),1),Fl(Ao(p5),{icon:"FilterList",size:"md",thickness:"2"})])])],544))}}),kEe=P8(xEe,[["__scopeId","data-v-f97cc68c"]]),SEe={key:0,class:"request-response-header bg-b-1 -mb-1/2 sticky top-0 z-1 flex min-h-11 items-center border-b px-2.5 text-base font-medium xl:rounded-none"},_Ee=Li({inheritAttrs:!1,__name:"ViewLayoutSection",setup(e){const{cx:t}=GQ();return(e,r)=>(Pl(),Ml("section",qn(Ql(Ao(t)("xl:custom-scroll bg-b-1 flex flex-1 flex-col xl:h-full xl:min-w-0"))),[e.$slots.title?(Pl(),Ml("div",SEe,[fs(e.$slots,"title")])):Vl("",!0),fs(e.$slots,"default")],16))}}),EEe=Tt.object({uid:Yme.brand(),name:Tt.string().default(""),value:Tt.string().default(""),domain:Tt.string().optional(),path:Tt.string().optional()}),TEe=(e,t)=>{if(!e||!t)return!0;try{const r=e.startsWith("http")?e:`http://${e}`,n=new URL(r).hostname,a=!t,o=t===n,i=t.startsWith(".")&&t===`.${n}`,s=t.startsWith(".")&&(null==n?void 0:n.endsWith(t));return a||o||s||i}catch{return!1}},AEe=Li({__name:"DataTableHeader",setup(e){const{cx:t}=GQ();return(e,r)=>(Pl(),Nl(hye,Gl({is:"th"},Ao(t)("items-center font-medium px-2 min-w-0 -outline-offset-1")),{default:ci((()=>[fs(e.$slots,"default")])),_:3},16))}}),CEe=e=>!!(e.description||e.type||e.default||e.format||e.minimum||e.maximum),PEe=e=>hc((()=>{if(void 0===e.value||""===e.value)return!1;if(e.type){if("integer"===e.type){const t=Number(e.value);if(isNaN(t)||!Number.isInteger(t))return"Value must be a whole number (e.g., 42)";if(void 0!==e.minimum&&t<e.minimum)return`Value must be ${e.minimum} or greater`;if(void 0!==e.maximum&&t>e.maximum)return`Value must be ${e.maximum} or less`}if("number"===e.type){const t=Number(e.value);if(isNaN(t))return"Value must be a number (e.g., 42.5)";if(void 0!==e.minimum&&t<e.minimum)return`Value must be ${e.minimum} or greater`;if(void 0!==e.maximum&&t>e.maximum)return`Value must be ${e.maximum} or less`}if("string"===e.type&&e.format){if("date"===e.format&&!/^\d{4}-\d{2}-\d{2}$/.test(e.value))return"Please enter a valid date in YYYY-MM-DD format (e.g., 2024-03-20)";if("date-time"===e.format&&!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2})$/.test(e.value))return"Please enter a valid date and time in RFC 3339 format (e.g., 2024-03-20T13:45:30Z)";if("email"===e.format&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.value))return"Please enter a valid email address (e.g., user@example.com)";if("uri"===e.format&&!/^[a-zA-Z][a-zA-Z0-9+.-]*:.+$/.test(e.value))return"Please enter a valid URI (e.g., https://example.com)"}}return!1})),DEe=["aria-label","role"],$Ee={class:"w-content text-xxs text-c-1 grid min-w-48 gap-1.5 rounded px-1.5 pt-2 pb-1.5 leading-none"},REe={key:0,class:"text-error-1"},MEe={key:1,class:"schema text-c-2 flex items-center"},NEe={key:0},IEe={key:1},LEe={key:2},jEe={key:3},BEe={key:4},UEe={key:2,class:"text-sm leading-snug text-pretty",style:{maxWidth:"16rem"}},FEe=Li({__name:"RequestTableTooltip",props:{item:{}},setup(e){const t=hc((()=>!!PEe(e.item).value));return(e,r)=>(Pl(),Nl(Ao(I5),{teleport:"",offset:4,placement:"left"},{popover:ci((()=>[Ul("div",$Ee,[t.value?(Pl(),Ml("div",REe,Gn(Ao(PEe)(e.item).value),1)):e.item.type||e.item.format||e.item.minimum||e.item.maximum||e.item.default?(Pl(),Ml("div",MEe,[e.item.type?(Pl(),Ml("span",NEe,Gn(e.item.type),1)):Vl("",!0),e.item.format?(Pl(),Ml("span",IEe,Gn(e.item.format),1)):Vl("",!0),e.item.minimum?(Pl(),Ml("span",LEe,"min: "+Gn(e.item.minimum),1)):Vl("",!0),e.item.maximum?(Pl(),Ml("span",jEe,"max: "+Gn(e.item.maximum),1)):Vl("",!0),e.item.default?(Pl(),Ml("span",BEe,"default: "+Gn(e.item.default),1)):Vl("",!0)])):Vl("",!0),e.item.description&&!t.value?(Pl(),Ml("span",UEe,Gn(e.item.description),1)):Vl("",!0)])])),default:ci((()=>[Ul("button",{type:"button","aria-label":t.value?"Input is invalid":"More Information",class:"text-c-2 hover:text-c-1 hover:bg-b-2 rounded p-1",role:t.value?"alert":"none"},[t.value?(Pl(),Nl(Ao(ZH),{key:0,class:"text-orange size-3.5 brightness-90 hover:brightness-75"})):(Pl(),Nl(Ao(Hq),{key:1,class:"text-c-2 hover:text-c-1 size-3.5"}))],8,DEe)])),_:1}))}}),QEe=P8(FEe,[["__scopeId","data-v-4df72868"]]),zEe={class:"text-c-2 filemask flex w-full max-w-[100%] items-end justify-end overflow-hidden p-1"},qEe=["onClick"],HEe={key:1,class:"p-0.5"},VEe=Li({__name:"RequestTable",props:{items:{},hasCheckboxDisabled:{type:Boolean,default:!1},showUploadButton:{type:Boolean,default:!1},isGlobal:{type:Boolean,default:!1},isReadOnly:{type:Boolean,default:!1},environment:{},envVariables:{},workspace:{},invalidParams:{},label:{}},emits:["updateRow","toggleRow","addRow","deleteRow","inputFocus","inputBlur","uploadFile","removeFile"],setup(e,{emit:t}){const r=e,n=t,a=["","","36px"],o=(e,t,r)=>{n("updateRow",e,t,r)},i=e=>Array.isArray(e.default)&&1===e.default.length?e.default[0]:e.default,s=e=>!(!e.key&&!e.value);return(e,t)=>(Pl(),Nl(Hye,{class:"group/table flex-1",columns:a},{default:ci((()=>[Fl(mye,{class:"sr-only !block"},{default:ci((()=>[Fl(AEe,null,{default:ci((()=>[ql(Gn(e.label)+" Enabled",1)])),_:1}),Fl(AEe,null,{default:ci((()=>[ql(Gn(e.label)+" Key",1)])),_:1}),Fl(AEe,null,{default:ci((()=>[ql(Gn(e.label)+" Value",1)])),_:1})])),_:1}),(Pl(!0),Ml(Sl,null,ps(e.items,((a,l)=>(Pl(),Nl(mye,{id:a.key,key:l,class:zn({alert:Ao(PEe)(a).value,error:e.invalidParams&&e.invalidParams.has(a.key)})},{default:ci((()=>[e.isGlobal?(Pl(),Nl(Ao(nme),{key:0,class:"text-c-2 flex items-center justify-center border-t !border-r",to:a.route??{}},{default:ci((()=>[t[4]||(t[4]=Ul("span",{class:"sr-only"},"Global",-1)),Fl(Ao(g8),{content:"Global cookies are shared across the whole workspace.",placement:"top"},{default:ci((()=>[Fl(Ao(p5),{tabindex:"0",class:"text-c-1",icon:"Globe",size:"xs"})])),_:1})])),_:2,__:[4]},1032,["to"])):(Pl(),Nl(vye,{key:1,class:"!border-r",disabled:r.hasCheckboxDisabled,modelValue:a.enabled,"onUpdate:modelValue":e=>n("toggleRow",l,e)},null,8,["disabled","modelValue","onUpdate:modelValue"])),Fl(hye,null,{default:ci((()=>[Fl(Bme,{"aria-label":`${e.label} Key`,disableCloseBrackets:"",disabled:r.isReadOnly,disableEnter:"",disableTabIndent:"",lineWrapping:"",envVariables:e.envVariables,environment:e.environment,modelValue:a.key,placeholder:"Key",required:!!a.required,workspace:e.workspace,onBlur:t[0]||(t[0]=e=>n("inputBlur")),onFocus:t[1]||(t[1]=e=>n("inputFocus")),onSelectVariable:e=>o(l,"key",e),"onUpdate:modelValue":e=>n("updateRow",l,"key",e)},null,8,["aria-label","disabled","envVariables","environment","modelValue","required","workspace","onSelectVariable","onUpdate:modelValue"])])),_:2},1024),Fl(hye,null,{default:ci((()=>[Fl(Bme,{"aria-label":`${e.label} Value`,class:zn(Ao(CEe)(a)?"pr-6 group-hover:pr-10 group-has-[.cm-focused]:pr-10":"group-hover:pr-6 group-has-[.cm-focused]:pr-6"),default:a.default,disableCloseBrackets:"",disabled:r.isReadOnly,disableEnter:"",disableTabIndent:"",lineWrapping:"",enum:a.enum??[],envVariables:e.envVariables,environment:e.environment,examples:a.examples??[],max:a.maximum,min:a.minimum,modelValue:a.value,nullable:!!a.nullable,placeholder:"Value",type:a.type,workspace:e.workspace,onBlur:t[2]||(t[2]=e=>n("inputBlur")),onFocus:t[3]||(t[3]=e=>n("inputFocus")),onSelectVariable:e=>o(l,"value",e),"onUpdate:modelValue":e=>n("updateRow",l,"value",e)},{icon:ci((()=>[s(a)&&!a.required?(Pl(),Nl(Ao(iz),{key:0,class:zn([{"-mr-0.5":Ao(CEe)(a)},"text-c-2 hover:text-c-1 hover:bg-b-2 z-context hidden h-fit rounded p-1 group-hover:flex group-has-[.cm-focused]:flex"]),size:"sm",variant:"ghost",onClick:e=>n("deleteRow",l)},{default:ci((()=>[Fl(Ao(UH),{class:"size-3.5"})])),_:2},1032,["class","onClick"])):Vl("",!0),Ao(CEe)(a)?(Pl(),Nl(QEe,{key:1,item:{...a,default:i(a)}},null,8,["item"])):Vl("",!0)])),_:2},1032,["aria-label","class","default","disabled","enum","envVariables","environment","examples","max","min","modelValue","nullable","type","workspace","onSelectVariable","onUpdate:modelValue"])])),_:2},1024),e.showUploadButton?(Pl(),Nl(hye,{key:2,class:"group/upload flex items-center justify-center whitespace-nowrap"},{default:ci((()=>{var e;return[a.file?(Pl(),Ml(Sl,{key:0},[Ul("div",zEe,[Ul("span",null,Gn(null==(e=a.file)?void 0:e.name),1)]),Ul("button",{class:"bg-b-2 centered-x centered-y absolute hidden w-[calc(100%_-_8px)] rounded p-0.5 text-center text-xs font-medium group-hover/upload:block",type:"button",onClick:e=>n("removeFile",l)}," Delete ",8,qEe)],64)):(Pl(),Ml("div",HEe,[Fl(Ao(iz),{class:"bg-b-2 hover:bg-b-3 text-c-2 h-fit border-0 py-px shadow-none",size:"sm",variant:"outlined",onClick:e=>(e=>{n("uploadFile",e)})(l)},{default:ci((()=>[t[5]||(t[5]=Ul("span",null,"Upload File",-1)),Fl(Ao(p5),{class:"ml-1",icon:"Upload",size:"xs",thickness:"2.5"})])),_:2,__:[5]},1032,["onClick"])]))]})),_:2},1024)):Vl("",!0)])),_:2},1032,["id","class"])))),128))])),_:1}))}}),ZEe=P8(VEe,[["__scopeId","data-v-5831422d"]]),WEe={key:0,class:"text-c-3 flex min-h-10 w-full items-center justify-center border-t p-2 text-sm"},XEe={key:1,class:"flex items-center justify-center overflow-hidden border-t p-1.5"},GEe={class:"text-c-2 w-full max-w-full overflow-hidden rounded border px-1.5 py-1 text-xs whitespace-nowrap"},YEe=Li({__name:"RequestBody",props:{example:{},operation:{},environment:{},envVariables:{},workspace:{},title:{}},setup(e){const{requestExampleMutators:t}=Hve(),r={json:"json",xml:"xml",yaml:"yaml",edn:"edn",other:"html"},n=Object.entries({multipartForm:"Multipart Form",formUrlEncoded:"Form URL Encoded",binaryFile:"Binary File",json:"JSON",xml:"XML",yaml:"YAML",edn:"EDN",other:"Other",none:"None"}).map((([e,t])=>({id:e,label:t}))),a=hc((()=>{var t;const{activeBody:r,formData:n,raw:a}=e.example.body;return"formData"===r?"urlencoded"===(null==n?void 0:n.encoding)?"formUrlEncoded":"multipartForm":"binary"===r?"binaryFile":"raw"===r&&null!=a&&a.encoding?"html"===a.encoding?"other":a.encoding:Object.keys((null==(t=e.operation.requestBody)?void 0:t.content)||{})[0]||"none"})),o=hc({get:()=>n.find((e=>e.id===a.value))??n[n.length-1]??n[0],set:e=>{null!=e&&e.id&&g(e.id)}}),i=So(null),s=hc((()=>{var e;const t=null==(e=o.value)?void 0:e.id;return r[t]??"plaintext"})),l=r=>{const n=u.value;if(n.length>r){const a=[...n];a.splice(r,1),t.edit(e.example.uid,"body.formData.value",a)}},c=(r,n,a)=>{var o,s,l,c,d,h,f;const m=u.value;if(m.length>r){const i=[...m];i[r]={...i[r],value:(null==(o=i[r])?void 0:o.value)||"",key:(null==(s=i[r])?void 0:s.key)||"",enabled:(null==(l=i[r])?void 0:l.enabled)??!1,[n]:a||""},(""!==(null==(c=i[r])?void 0:c.key)||""!==(null==(d=i[r])?void 0:d.value))&&(i[r].enabled=!0),""===(null==(h=i[r])?void 0:h.key)&&""===(null==(f=i[r])?void 0:f.value)&&i.splice(r,1),t.edit(e.example.uid,"body.formData.value",i)}else{const r=[Fge.parse({[n]:a})];t.edit(e.example.uid,"body.formData.value",r),Ko((()=>{var e;i.value&&(null==(e=i.value.querySelectorAll("input")["key"===n?0:1])||e.focus())}))}r===m.length-1&&p()},u=hc((()=>{var t;return(null==(t=e.example.body.formData)?void 0:t.value)??[]})),d=()=>{const e=u.value[u.value.length-1];(!e||""!==e.key||""!==e.value)&&p()},p=()=>{const r=Fge.parse({enabled:!1}),n=[...u.value,r];e.example.body.formData?t.edit(e.example.uid,"body.formData.value",n):t.edit(e.example.uid,"body.formData",{value:n,encoding:"form-data"})},h=(r,n)=>{const a=u.value;if(a.length>r){const o=[...a];o[r]&&(o[r].enabled=n),t.edit(e.example.uid,"body.formData.value",o)}},f=r=>t.edit(e.example.uid,"body.raw.value",r),m=t=>{var r;return"multipartForm"===t?{activeBody:"formData",encoding:"form-data",header:"multipart/form-data"}:"formUrlEncoded"===t?{activeBody:"formData",encoding:"urlencoded",header:"application/x-www-form-urlencoded"}:"binaryFile"===t?{activeBody:"binary",encoding:void 0,header:"application/octet-stream"}:"json"===t?{activeBody:"raw",encoding:"json",header:Object.keys((null==(r=e.operation.requestBody)?void 0:r.content)??{}).find((e=>e.includes("json")||e.endsWith("+json")))||"application/json"}:"xml"===t?{activeBody:"raw",encoding:"xml",header:"application/xml"}:"yaml"===t?{activeBody:"raw",encoding:"yaml",header:"application/yaml"}:"edn"===t?{activeBody:"raw",encoding:"edn",header:"application/edn"}:"other"===t?{activeBody:"raw",encoding:"html",header:"application/html"}:{activeBody:"raw",encoding:void 0,header:void 0}},g=r=>{var n,a;const{activeBody:o,encoding:i,header:s}=m(r);if(t.edit(e.example.uid,"body.activeBody",o),i&&"raw"===o)t.edit(e.example.uid,"body.raw",{encoding:i,value:(null==(n=e.example.body.raw)?void 0:n.value)??""});else if(i&&"formData"===o)t.edit(e.example.uid,"body.formData",{encoding:i,value:(null==(a=e.example.body.formData)?void 0:a.value)??[]});else if(!i&&"binary"!==o){const{raw:r,...n}=e.example.body;t.edit(e.example.uid,"body",n)}const l=[...e.example.parameters.headers],c=l.findIndex((e=>"content-type"===e.key.toLowerCase()));if(c>=0)s&&l[c]?l[c].value=s:l[c]&&("raw"!==o||"none"===r)&&l.splice(c,1);else if(s){const e=l[l.length-1];e&&""===e.key&&""===e.value?l.splice(l.length-1,0,{key:"Content-Type",value:s,enabled:!0}):l.push({key:"Content-Type",value:s,enabled:!0})}t.edit(e.example.uid,"parameters.headers",l)},v=async r=>{const{open:n}=Cbe({onChange:async n=>{var a,o;const i=null==n?void 0:n[0];if(i){const n=[...u.value];n[r]={...n[r],file:i,value:(null==(a=n[r])?void 0:a.value)||i.name,key:(null==(o=n[r])?void 0:o.key)||i.name,enabled:!0},t.edit(e.example.uid,"body.formData.value",n),d()}},multiple:!1,accept:"*/*"});n()},b=()=>t.edit(e.example.uid,"body.binary",void 0);function y(r){const n=u.value,a=[...n],o=n[r],i=null==o?void 0:o.file;n.length>1&&((null==o||!o.key)&&(null==o||!o.value)||i&&(null==o?void 0:o.key)===i.name&&(null==o?void 0:o.value)===i.name)?a.splice(r,1):a[r]&&(a[r].file=void 0),t.edit(e.example.uid,"body.formData.value",a)}function O(){const{open:r}=Cbe({onChange:async r=>{const n=null==r?void 0:r[0];n&&t.edit(e.example.uid,"body.binary",n)},multiple:!1,accept:"*/*"});r()}ul(o,(e=>{["multipartForm","formUrlEncoded"].includes((null==e?void 0:e.id)||"")&&d()}),{immediate:!0}),ul((()=>e.example.uid),(()=>{e.operation.method&&wj(e.operation.method)&&g(a.value),["multipartForm","formUrlEncoded"].includes(a.value)&&d()}),{immediate:!0});const w=hc((()=>{var t,r,n;const a=null==(t=o.value)?void 0:t.id,{header:i}=m(a),s=(null==(r=e.operation.requestBody)?void 0:r.content)||{},l=i&&(null==(n=s[i])?void 0:n.examples)||{};return Object.entries(l).map((([e,t])=>({id:e,label:e,value:t})))})),x=hc({get:()=>{var t;const r=(null==(t=e.example.body.raw)?void 0:t.value)??"{}",n=JSON.parse(r);return w.value.find((e=>{const t=e.value;return JSON.stringify(t.value)===JSON.stringify(n)}))??w.value[0]},set:e=>{if(null!=e&&e.id){const t=w.value.find((t=>t.id===e.id));if(t){const e=t.value;f(JSON.stringify(e.value,null,2))}}}});return(e,t)=>(Pl(),Nl(aOe,null,{title:ci((()=>[ql(Gn(e.title),1)])),default:ci((()=>[Fl(Hye,{columns:[""],presentational:""},{default:ci((()=>[Fl(mye,null,{default:ci((()=>[Fl(AEe,{class:"relative col-span-full flex h-8 cursor-pointer items-center justify-between !p-0"},{default:ci((()=>[Fl(Ao(C5),{modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),options:Ao(n),teleport:""},{default:ci((()=>[Fl(Ao(iz),{class:"text-c-2 hover:text-c-1 flex h-full w-fit gap-1.5 px-3 font-normal",fullWidth:"",variant:"ghost"},{default:ci((()=>{var e;return[Ul("span",null,Gn(null==(e=o.value)?void 0:e.label),1),Fl(Ao(p5),{icon:"ChevronDown",size:"md"})]})),_:1})])),_:1},8,["modelValue","options"]),w.value.length>0?(Pl(),Nl(Ao(C5),{key:0,modelValue:x.value,"onUpdate:modelValue":t[1]||(t[1]=e=>x.value=e),options:w.value,side:"left",teleport:""},{default:ci((()=>[Fl(Ao(iz),{class:"text-c-2 hover:text-c-1 flex h-full w-fit gap-1.5 px-2 font-normal",fullWidth:"",variant:"ghost"},{default:ci((()=>{var e;return[Ul("span",null,Gn(null==(e=x.value)?void 0:e.label),1),Fl(Ao(p5),{icon:"ChevronDown",size:"md"})]})),_:1})])),_:1},8,["modelValue","options"])):Vl("",!0)])),_:1})])),_:1}),Fl(mye,null,{default:ci((()=>{var r,n,a,d,p,m;return["none"===(null==(r=o.value)?void 0:r.id)?(Pl(),Ml("div",WEe,t[2]||(t[2]=[Ul("span",null,"No Body",-1)]))):"binaryFile"===(null==(n=o.value)?void 0:n.id)?(Pl(),Ml("div",XEe,[e.example.body.binary?(Pl(),Ml(Sl,{key:0},[Ul("span",GEe,Gn(e.example.body.binary.name),1),Fl(Ao(iz),{class:"bg-b-2 hover:bg-b-3 text-c-2 ml-1 border-0 shadow-none",size:"sm",variant:"outlined",onClick:b},{default:ci((()=>t[3]||(t[3]=[ql(" Delete ")]))),_:1,__:[3]})],64)):(Pl(),Nl(Ao(iz),{key:1,class:"bg-b-2 hover:bg-b-3 text-c-2 border-0 shadow-none",size:"sm",variant:"outlined",onClick:O},{default:ci((()=>[t[4]||(t[4]=Ul("span",null,"Upload File",-1)),Fl(Ao(p5),{class:"ml-1",icon:"Upload",size:"xs",thickness:"2.5"})])),_:1,__:[4]}))])):"multipartForm"==(null==(a=o.value)?void 0:a.id)?(Pl(),Nl(ZEe,{key:2,ref_key:"tableWrapperRef",ref:i,class:"!m-0 rounded-t-none border-t-0 border-r-0 border-b-0 border-l-0 shadow-none",columns:["32px","","","104px"],envVariables:e.envVariables,environment:e.environment,items:u.value,showUploadButton:"",workspace:e.workspace,onDeleteRow:l,onRemoveFile:y,onToggleRow:h,onUpdateRow:c,onUploadFile:v},null,8,["envVariables","environment","items","workspace"])):"formUrlEncoded"==(null==(d=o.value)?void 0:d.id)?(Pl(),Nl(ZEe,{key:3,ref_key:"tableWrapperRef",ref:i,class:"!m-0 rounded-t-none border-t-0 border-r-0 border-b-0 border-l-0 shadow-none",columns:["32px","","","104px"],envVariables:e.envVariables,environment:e.environment,items:u.value,showUploadButton:"",workspace:e.workspace,onDeleteRow:l,onRemoveFile:y,onToggleRow:h,onUpdateRow:c,onUploadFile:v},null,8,["envVariables","environment","items","workspace"])):(Pl(),Nl(Bme,{key:4,class:"border-t px-1",content:"",envVariables:e.envVariables,environment:e.environment,language:s.value,lineNumbers:"",lint:"",modelValue:(null==(m=null==(p=e.example.body)?void 0:p.raw)?void 0:m.value)??"",workspace:e.workspace,"onUpdate:modelValue":f},null,8,["envVariables","environment","language","modelValue","workspace"]))]})),_:1}),Fl(mye)])),_:1})])),_:1}))}}),KEe=P8(YEe,[["__scopeId","data-v-49d6ce0d"]]),JEe={class:"text-c-2 request-meta-buttons flex whitespace-nowrap opacity-0 group-hover/params:opacity-100 has-[:focus-visible]:opacity-100"},eTe={class:"sr-only"},tTe=Li({__name:"RequestParams",props:{example:{},environment:{},envVariables:{},workspace:{},title:{},label:{},paramKey:{},readOnlyEntries:{default:()=>[]},invalidParams:{}},setup(e){const{requestExampleMutators:t}=Hve(),r=hc((()=>e.example.parameters[e.paramKey]??[]));Yi((()=>{Ko((()=>{c()}))}));const n=()=>{const n=Fge.parse({enabled:!1}),a=[...r.value,n];t.edit(e.example.uid,`parameters.${e.paramKey}`,a)},a=So(null),o=(o,i,s)=>{const l=r.value;if(l.length>o){const r=[...l];if(!r[o])return;r[o]={...r[o],[i]:s},(""!==r[o].key||""!==r[o].value)&&(r[o].enabled=!0),""===r[o].key&&""===r[o].value&&r.splice(o,1),t.edit(e.example.uid,`parameters.${e.paramKey}`,r)}else{const r=[Fge.parse({[i]:s})];t.edit(e.example.uid,`parameters.${e.paramKey}`,r),Ko((()=>{var e;a.value&&(null==(e=a.value.querySelectorAll("input")["key"===i?0:1])||e.focus())}))}o===l.length-1&&n()},i=(r,n)=>t.edit(e.example.uid,`parameters.${e.paramKey}.${r}.enabled`,n),s=()=>{const a=r.value.filter((e=>e.required));t.edit(e.example.uid,`parameters.${e.paramKey}`,a),Ko((()=>n()))},l=n=>{const a=r.value;if(a.length>n){const r=[...a];r.splice(n,1),t.edit(e.example.uid,`parameters.${e.paramKey}`,r)}};function c(){if(0===r.value.length)n();else if(r.value.length>=1){const e=r.value[r.value.length-1];e&&""!==e.key&&""!==e.value&&n()}}const u=hc((()=>r.value.filter((e=>e.key||e.value)).length)),d=hc((()=>r.value.length>1));ul((()=>e.example),((e,t)=>{e!==t&&c()}),{immediate:!0});const p=hc((()=>(e.readOnlyEntries??[]).length>0));return(e,t)=>(Pl(),Nl(aOe,{class:"group/params",itemCount:u.value},{title:ci((()=>[ql(Gn(e.title),1)])),actions:ci((()=>[Ul("div",JEe,[d.value?(Pl(),Nl(Ao(g8),{key:0,content:"Clear optional parameters",placement:"left"},{default:ci((()=>[Fl(Ao(iz),{class:"pr-0.75 pl-1 transition-none",size:"sm",variant:"ghost",onClick:Su(s,["stop"])},{default:ci((()=>[t[0]||(t[0]=ql(" Clear ")),Ul("span",eTe,"All "+Gn(e.title),1)])),_:1,__:[0]})])),_:1})):Vl("",!0)])])),default:ci((()=>[Ul("div",{ref_key:"tableWrapperRef",ref:a},[p.value?(Pl(),Nl(ZEe,{key:0,class:zn(["flex-1",{"bg-c-3/5":p.value}]),columns:["32px","",""],envVariables:e.envVariables,environment:e.environment,invalidParams:e.invalidParams,isGlobal:"",isReadOnly:"",items:e.readOnlyEntries,label:e.label,workspace:e.workspace},null,8,["class","envVariables","environment","invalidParams","items","label","workspace"])):Vl("",!0),Fl(ZEe,{class:"flex-1",columns:["32px","",""],envVariables:e.envVariables,environment:e.environment,invalidParams:e.invalidParams,items:r.value,label:e.label,workspace:e.workspace,onToggleRow:i,onUpdateRow:o,onDeleteRow:l},null,8,["envVariables","environment","invalidParams","items","label","workspace"])],512)])),_:1},8,["itemCount"]))}}),rTe=Li({__name:"RequestPathParams",props:{example:{},operation:{},paramKey:{},title:{},environment:{},envVariables:{},workspace:{},invalidParams:{}},setup(e){const{requestMutators:t,requestExampleMutators:r}=Hve(),n=hc((()=>e.example.parameters[e.paramKey].map((e=>({...e,enum:e.enum}))))),a=(n,a,o)=>{var i,s;const l=e.example.parameters[e.paramKey],c=null==(i=l[n])?void 0:i.key;if(c){if("key"===a){if(null!=(s=l[n])&&s.required)return;if(o){const r=encodeURIComponent(c),n=encodeURIComponent(o),a=new RegExp(`(?<=/):${r}(?=[/?#]|$)`,"g"),i=e.operation.path.replace(a,`:${n}`);t.edit(e.operation.uid,"path",i)}else{l.splice(n,1);const r=new RegExp(`/:${encodeURIComponent(c)}(?=[/?#]|$)`,"g"),a=e.operation.path.replace(r,"");t.edit(e.operation.uid,"path",a)}}r.edit(e.example.uid,`parameters.${e.paramKey}.${n}.${a}`,o)}},o=t=>{const a=n.value;if(a.length>t){const n=[...a];n.splice(t,1),r.edit(e.example.uid,`parameters.${e.paramKey}`,n)}},i=t=>{t&&(t=>{var n;const a=(null==(n=t.match(GL.PATH))?void 0:n.map((e=>e.slice(1,-1))))||[],o=e.example.parameters[e.paramKey],i=new Map(o.map((e=>[e.key,e]))),s=a.map((e=>i.get(e)||{key:e,value:"",enabled:!0}));o.forEach((e=>{!a.includes(e.key)&&(e.value||e.required)&&s.push(e)})),o.splice(0,o.length,...s),r.edit(e.example.uid,`parameters.${e.paramKey}`,o)})(t)};return ul((()=>e.operation.path),(e=>{e&&i(e)})),(e,t)=>(Pl(),Nl(aOe,{itemCount:n.value.length},{title:ci((()=>[ql(Gn(e.title),1)])),default:ci((()=>[n.value.length?(Pl(),Nl(ZEe,{key:0,class:"flex-1",columns:["32px","",""],envVariables:e.envVariables,environment:e.environment,invalidParams:e.invalidParams,items:n.value,workspace:e.workspace,onUpdateRow:a,onDeleteRow:o},null,8,["envVariables","environment","invalidParams","items","workspace"])):Vl("",!0)])),_:1},8,["itemCount"]))}}),nTe=(e=[],t={},r="")=>{const n={},a=[],o=new URLSearchParams;return e.forEach((e=>{var i;if("apiKey"===e.type){const i=Xbe(e.value,t)||r;"header"===e.in&&(n[e.name]=i),"query"===e.in&&o.append(e.name,i),"cookie"===e.in&&a.push(EEe.parse({uid:e.uid,name:e.name,value:i,path:"/"}))}if("http"===e.type)if("basic"===e.scheme){const r=`${Xbe(e.username,t)}:${Xbe(e.password,t)}`;n.Authorization=`Basic ${":"===r?"username:password":btoa(r)}`}else{const a=Xbe(e.token,t);n.Authorization=`Bearer ${a||r}`}if("oauth2"===e.type){const t=null==(i=Object.values(e.flows).filter(mj).find((e=>e.token)))?void 0:i.token;n.Authorization=`Bearer ${t||r}`}})),{headers:n,cookies:a,urlParams:o}},aTe="ws://replace.me",oTe=(e,t,r)=>{var n;try{if(!r.url)return[new Error("Please enter a URL to see a code snippet"),null];const a=r.url.startsWith("/")?"":"/";try{new URL(r.url)}catch(e){console.error("[getSnippet] Invalid URL",e),r.url=`${aTe}${a}${r.url}`}if("application/json"===(null==(n=r.postData)?void 0:n.mimeType))try{JSON.parse(r.postData.text||"{}")}catch(e){return console.error("[getSnippet] Invalid JSON body",e),[new Error("Invalid JSON body"),null]}const o=e.replace("javascript","js");if(hxe().hasPlugin(o,t)){const e=hxe().print(o,t,r);return e?[null,e.replace(`${aTe}${a}`,"")]:[new Error("Error generating snippet"),null]}}catch(e){return console.error("[getSnippet] Error generating snippet",e),[new Error("Error generating snippet"),null]}return[new Error("No snippet found"),null]},iTe={key:0,class:"text-c-3 flex min-h-16 items-center justify-center px-4 text-sm"},sTe=Li({__name:"CodeSnippet",props:{target:{},client:{},operation:{},server:{},example:{},securitySchemes:{default:()=>[]},environment:{}},setup(e){const t=hc((()=>e.securitySchemes.flatMap((e=>"apiKey"===e.type?e.value:"http"===(null==e?void 0:e.type)?[e.token,e.password,btoa(`${e.username}:${e.password}`)]:"oauth2"===e.type?Object.values(e.flows).map((e=>null==e?void 0:e.token)).filter(mj):[])))),r=hc((()=>{const t=(({operation:e,example:t,server:r,securitySchemes:n=[],environment:a})=>{const o=a&&Array.isArray(a)?Object.fromEntries(a.map((e=>[e.key,e.value]))):a||{},i=(()=>{if(null!=r&&r.url&&(GL.VARIABLES.test(r.url)||GL.PATH.test(r.url))){const e=Object.entries((null==r?void 0:r.variables)||{}).reduce(((e,[r,n])=>{var a,i;const s=null==(i=null==(a=null==t?void 0:t.parameters)?void 0:a.path.find((e=>e.enabled&&e.key===r)))?void 0:i.value;return s?e[r]=Xbe(s,o):n.default&&(e[r]=Xbe(n.default,o)),e}),{});return Xbe(Xbe(r.url,o),e)}return null==r?void 0:r.url})(),s=(()=>{var r;const n=(null==e?void 0:e.path)??"/";if(n&&(GL.VARIABLES.test(n)||GL.PATH.test(n))){const e=((null==(r=null==t?void 0:t.parameters)?void 0:r.path)??[]).reduce(((e,t)=>(t.enabled&&(e[t.key]=Xbe(t.value,o)),e)),{});return Xbe(Xbe(n,o),e)}return n})(),l=nTe(n,o,"YOUR_SECRET_TOKEN"),c=[...((null==t?void 0:t.parameters.headers)??[]).map((e=>({...e,value:GL.VARIABLES.test(e.value)||GL.PATH.test(e.value)?Xbe(e.value,o):e.value})))??[],...Object.entries(l.headers).map((([e,t])=>({key:e,value:t,enabled:!0})))],u=[...((null==t?void 0:t.parameters.cookies)??[]).map((e=>({...e,value:GL.VARIABLES.test(e.value)||GL.PATH.test(e.value)?Xbe(e.value,o):e.value})))??[],...l.cookies.map((e=>({key:e.name,value:e.value,enabled:!0})))],d=[...((null==t?void 0:t.parameters.query)??[]).map((e=>({...e,value:GL.VARIABLES.test(e.value)||GL.PATH.test(e.value)?Xbe(e.value,o):e.value})))??[],...Array.from(l.urlParams.entries()).map((([e,t])=>({key:e,value:t,enabled:!0})))],p=(()=>{var e;const r=null==t?void 0:t.body;return null!=(e=null==r?void 0:r.raw)&&e.value&&(GL.VARIABLES.test(r.raw.value)||GL.PATH.test(r.raw.value))?{...r,raw:{...r.raw,value:Xbe(r.raw.value,o)}}:r})();return(({baseUrl:e="",method:t,body:r,path:n,cookies:a,headers:o,query:i})=>{var s,l,c;const u=vj(e,n,void 0,!0),d={method:t.toUpperCase(),url:u.toString(),httpVersion:"HTTP/1.1",headers:[],queryString:[],cookies:[],headersSize:-1,bodySize:-1};if(a.length&&(d.cookies=a.filter((e=>e.enabled)).map((({key:e,value:t})=>({name:e,value:t})))),o.length&&(d.headers=o.filter((e=>e.enabled&&!("accept"===e.key.toLowerCase()&&"*/*"===e.value))).map((({key:e,value:t})=>({name:e.replace(/\b\w/g,(e=>e.toUpperCase())),value:t})))),i.length&&(d.queryString=i.filter((e=>e.enabled)).map((({key:e,value:t})=>({name:e,value:t})))),r)try{const e=null==(s=o.find((e=>"content-type"===e.key.toLowerCase())))?void 0:s.value;if("formData"===r.activeBody&&r.formData){const t=[];r.formData.value.forEach((({key:e,value:r,file:n,enabled:a})=>{a&&(n?t.push({name:e||"blob",value:"BINARY",fileName:n.name,contentType:n.type||"application/octet-stream"}):t.push({name:e,value:r}))})),"urlencoded"===(null==(l=r.formData)?void 0:l.encoding)?d.postData={mimeType:e||"application/x-www-form-urlencoded",params:t}:d.postData={mimeType:e||"multipart/form-data",params:t}}else"raw"===r.activeBody&&r.raw&&(d.postData={mimeType:e||"application/json",text:(null==(c=r.raw)?void 0:c.value)??""})}catch{}return d})({baseUrl:i,method:(null==e?void 0:e.method)??"get",path:s,body:p,cookies:u,headers:c,query:d})})({operation:e.operation,example:e.example,server:e.server,securitySchemes:e.securitySchemes,environment:e.environment}),[r,n]=oTe(e.target,e.client,t);return{error:r,payload:n}})),n=hc((()=>"shell"===e.target&&"curl"===e.client?"curl":e.target??"plaintext"));return(e,a)=>r.value.error?(Pl(),Ml("div",iTe,Gn(r.value.error.message),1)):r.value.payload?(Pl(),Nl(Ao(GV),{key:1,class:"w-full",content:r.value.payload,hideCredentials:t.value,lang:n.value,lineNumbers:""},null,8,["content","hideCredentials","lang"])):Vl("",!0)}}),lTe={class:"w-full"},cTe={class:"-mx-1 flex flex-1"},uTe={class:"bg-b-1 flex items-center justify-center overflow-hidden border-t"},dTe=Li({__name:"RequestCodeExample",props:{collection:{},example:{},operation:{},server:{},workspace:{},environment:{}},setup(e){var t,r,n,a;const{securitySchemes:o,workspaceMutators:i}=Hve(),s=hc((()=>{var t,r,n;return"custom"===c.value.targetKey&&(null==(t=l.value)?void 0:t.some((e=>e.lang===c.value.clientKey)))?c.value:{targetKey:(null==(r=e.workspace.selectedHttpClient)?void 0:r.targetKey)??"js",clientKey:(null==(n=e.workspace.selectedHttpClient)?void 0:n.clientKey)??"fetch"}})),l=hc((()=>e.operation["x-codeSamples"]||e.operation["x-code-samples"]||e.operation["x-custom-examples"])),c=So(null!=(t=l.value)&&t.length?{targetKey:"custom",clientKey:null==(r=l.value[0])?void 0:r.lang}:{targetKey:(null==(n=e.workspace.selectedHttpClient)?void 0:n.targetKey)??"js",clientKey:(null==(a=e.workspace.selectedHttpClient)?void 0:a.clientKey)??"fetch"}),u=hc((()=>(e.operation.selectedSecuritySchemeUids||e.collection.selectedSecuritySchemeUids||[]).flat().map((e=>o[e])).filter((e=>!!e)))),d=hc((()=>{const t={},r=hxe().clients().map((e=>({label:e.title,options:e.clients.map((r=>(t[`${e.key},${r.client}`]=r.title,{id:`${e.key},${r.client}`,label:r.title})))}))),n=(e.operation["x-codeSamples"]||e.operation["x-code-samples"]||e.operation["x-custom-examples"]||[]).map((e=>({id:`custom,${e.lang}`,label:e.label||e.lang}))),a=n.length>0?[{id:"customExamples",label:"Code Examples",options:n.map((e=>({id:e.id,label:e.label??e.id})))},...r]:r;return n.forEach((e=>{t[e.id]=e.label??e.id})),{options:a,dict:t}})),p=hc((()=>{const e=s.value;if("custom"===e.targetKey){const t=`custom,${e.clientKey}`;return{id:t,label:d.value.dict[t]??"Unknown"}}const t=`${e.targetKey},${e.clientKey}`;return{id:t,label:d.value.dict[t]??"Unknown"}})),h=hc((()=>s.value.targetKey)),f=hc((()=>s.value.clientKey)),m=({id:t})=>{const[r,n]=t.split(",");!r||!n||(c.value={targetKey:r,clientKey:n},"custom"!==r&&i.edit(e.workspace.uid,"selectedHttpClient",{targetKey:r,clientKey:n}))},g=hc((()=>{var e;if(!p.value.id.startsWith("custom,"))return;const t=p.value.id.split(",")[1],r=null==(e=l.value)?void 0:e.find((e=>e.lang===t));return null==r?void 0:r.source}));return(e,t)=>(Pl(),Ml("div",lTe,[Fl(aOe,{class:"group/preview w-full border-b-0",defaultOpen:!1},{title:ci((()=>t[0]||(t[0]=[ql("Code Snippet")]))),actions:ci((()=>[Ul("div",cTe,[Fl(Ao(WW),{modelValue:p.value,options:d.value.options,placement:"bottom-end","onUpdate:modelValue":m},{default:ci((()=>[Fl(Ao(iz),{class:"text-c-1 hover:bg-b-3 flex h-full w-fit gap-1.5 px-1.5 py-0.75 font-normal",fullWidth:"",variant:"ghost"},{default:ci((()=>{var e;return[Ul("span",null,Gn(null==(e=p.value)?void 0:e.label),1),Fl(Ao(p5),{icon:"ChevronDown",size:"md"})]})),_:1})])),_:1},8,["modelValue","options"])])])),default:ci((()=>[Fl(Hye,{columns:[""],presentational:""},{default:ci((()=>[Fl(mye,null,{default:ci((()=>[Ul("div",uTe,[g.value?(Pl(),Nl(Ao(GV),{key:0,class:"px-3 py-1.5",content:g.value,lang:p.value.id.split(",")[1]??"plaintext"},null,8,["content","lang"])):(Pl(),Nl(Ao(sTe),{key:1,class:"px-3 py-1.5",client:f.value,example:e.example,operation:e.operation,securitySchemes:u.value,server:e.server,target:h.value,environment:e.environment},null,8,["client","example","operation","securitySchemes","server","target","environment"]))])])),_:1})])),_:1})])),_:1})]))}}),pTe=P8(dTe,[["__scopeId","data-v-9e7d5436"]]),hTe=({plugins:e=[]})=>{const t=new Map;return e.forEach((e=>{const r=e();t.set(r.name,r)})),{getViewComponents:e=>Array.from(t.values()).flatMap((t=>{var r;return(null==(r=t.views)?void 0:r[e])||[]})),executeHook:(e,...r)=>{const n=Array.from(t.values()).flatMap((t=>{var r;return(null==(r=t.hooks)?void 0:r[e])||[]}));return Promise.all(n.filter((e=>null!=e)).map((e=>null==e?void 0:e(...r))))}}},fTe=Symbol(),mTe=()=>Bs(fTe)||hTe({}),gTe={class:"group pointer-events-none flex flex-1 items-center gap-1 lg:pr-24"},vTe=["for"],bTe=["id","placeholder","value"],yTe={key:2,class:"text-c-1 flex h-8 items-center"},OTe=["id","role"],wTe=Li({__name:"RequestSection",props:{collection:{},environment:{},envVariables:{},example:{},invalidParams:{},operation:{},selectedSecuritySchemeUids:{},server:{},workspace:{}},setup(e){const t=["Auth","Variables","Cookies","Headers","Query","Body"],{requestMutators:r,cookies:n,securitySchemes:a}=Hve(),{layout:o}=Pme(),i=hc((()=>{const r=new Set(["All",...t]);return e.example.parameters.path.length||r.delete("Variables"),wj(e.operation.method??"get")||r.delete("Body"),l.value&&r.delete("Auth"),[...r]})),s=hc((()=>Object.fromEntries(i.value.map((e=>[e,ji()]))))),l=hc((()=>"modal"===o&&!e.operation.security&&!Object.keys(a??{}).length)),c=So("All");ul((()=>e.operation),(e=>{"Body"===c.value&&e&&!wj(e.method)&&(c.value="All")}));const u=t=>{const n=t.target;r.edit(e.operation.uid,"summary",n.value)},d=hc((()=>(e.workspace.cookies??[]).map((e=>n[e])).filter(mj).filter((e=>e.name)).filter((t=>{var r;return TEe((null==(r=e.server)?void 0:r.url)||e.operation.path,t.domain)})).map((e=>({key:e.name,value:e.value,route:{name:"cookies",params:{cookies:e.uid}},enabled:!0}))))),p=ji(),h=mTe().getViewComponents("request.section"),f=(t,n)=>r.edit(e.operation.uid,t,n);return ul((()=>l.value),(e=>{e&&"Auth"===c.value&&(c.value="All")})),(t,r)=>(Pl(),Nl(_Ee,{"aria-label":`Request: ${t.operation.summary}`},{title:ci((()=>[Ul("div",gTe,["modal"!==Ao(o)?(Pl(),Ml("label",{key:0,class:"pointer-events-auto absolute top-0 left-0 h-full w-full cursor-text opacity-0",for:Ao(p)},null,8,vTe)):Vl("",!0),"modal"!==Ao(o)?(Pl(),Ml("input",{key:1,id:Ao(p),class:"text-c-1 group-hover-input pointer-events-auto relative z-10 -ml-0.5 h-8 w-full rounded pl-1.25 has-[:focus-visible]:outline md:-ml-1.25",placeholder:e.operation.summary?e.operation.summary:e.operation.path.replace(GL.PROTOCOL,"")?e.operation.path.replace(GL.PROTOCOL,""):"Request Name",value:t.operation.summary,onInput:u},null,40,bTe)):(Pl(),Ml("span",yTe,Gn(t.operation.summary),1))]),Fl(kEe,{modelValue:c.value,"onUpdate:modelValue":r[0]||(r[0]=e=>c.value=e),filterIds:s.value,filters:i.value},null,8,["modelValue","filterIds","filters"])])),default:ci((()=>[Ul("div",{id:s.value.All,class:"request-section-content custom-scroll relative flex flex-1 flex-col",role:"All"===c.value?"tabpanel":"none"},[t.collection&&t.workspace&&("modal"!==Ao(o)||Object.keys(Ao(a)??{}).length)?ui((Pl(),Nl(pOe,{key:0,id:s.value.Auth,class:"request-section-content-auth",collection:t.collection,envVariables:t.envVariables,environment:t.environment,layout:"client",operation:t.operation,role:"All"===c.value?"none":"tabpanel",selectedSecuritySchemeUids:t.selectedSecuritySchemeUids,server:t.server,title:"Authentication",workspace:t.workspace},null,8,["id","collection","envVariables","environment","operation","role","selectedSecuritySchemeUids","server","workspace"])),[[Fc,!l.value&&("All"===c.value||"Auth"===c.value)]]):Vl("",!0),ui(Fl(rTe,{id:s.value.Variables,class:"request-section-content-path-params",envVariables:t.envVariables,environment:t.environment,example:t.example,invalidParams:t.invalidParams,operation:t.operation,paramKey:"path",role:"All"===c.value?"none":"tabpanel",title:"Variables",workspace:t.workspace},null,8,["id","envVariables","environment","example","invalidParams","operation","role","workspace"]),[[Fc,("All"===c.value||"Variables"===c.value)&&t.example.parameters.path.length]]),ui(Fl(tTe,{id:s.value.Cookies,class:"request-section-content-cookies",envVariables:t.envVariables,environment:t.environment,example:t.example,invalidParams:t.invalidParams,label:"Cookie",operation:t.operation,paramKey:"cookies",readOnlyEntries:d.value,role:"All"===c.value?"none":"tabpanel",title:"Cookies",workspace:t.workspace},null,8,["id","envVariables","environment","example","invalidParams","operation","readOnlyEntries","role","workspace"]),[[Fc,"All"===c.value||"Cookies"===c.value]]),ui(Fl(tTe,{id:s.value.Headers,class:"request-section-content-headers",envVariables:t.envVariables,environment:t.environment,example:t.example,invalidParams:t.invalidParams,label:"Header",operation:t.operation,paramKey:"headers",role:"All"===c.value?"none":"tabpanel",title:"Headers",workspace:t.workspace},null,8,["id","envVariables","environment","example","invalidParams","operation","role","workspace"]),[[Fc,"All"===c.value||"Headers"===c.value]]),ui(Fl(tTe,{id:s.value.Query,class:"request-section-content-query",envVariables:t.envVariables,environment:t.environment,example:t.example,invalidParams:t.invalidParams,label:"Parameter",operation:t.operation,paramKey:"query",role:"All"===c.value?"none":"tabpanel",title:"Query Parameters",workspace:t.workspace},null,8,["id","envVariables","environment","example","invalidParams","operation","role","workspace"]),[[Fc,"All"===c.value||"Query"===c.value]]),t.operation.method&&("All"===c.value||"Body"===c.value)&&Ao(wj)(t.operation.method)?(Pl(),Nl(KEe,{key:1,id:s.value.Body,class:"request-section-content-body",envVariables:t.envVariables,environment:t.environment,example:t.example,operation:t.operation,role:"All"===c.value?"none":"tabpanel",title:"Body",workspace:t.workspace},null,8,["id","envVariables","environment","example","operation","role","workspace"])):Vl("",!0),(Pl(!0),Ml(Sl,null,ps(Ao(h),(e=>(Pl(),Nl(Ao(rX),{key:e.component},{default:ci((()=>[ui((Pl(),Nl(cs(e.component),{"onUpdate:operation":f,operation:t.operation},null,40,["operation"])),[[Fc,"All"===c.value||c.value===e.title]])])),_:2},1024)))),128)),r[1]||(r[1]=Ul("div",{class:"flex flex-grow"},null,-1)),Fl(Ao(rX),null,{default:ci((()=>[Fl(pTe,{class:"request-section-content-code-example -mt-1/2 border-t",collection:t.collection,example:t.example,operation:t.operation,server:t.server,workspace:t.workspace,environment:t.envVariables},null,8,["collection","example","operation","server","workspace","environment"])])),_:1})],8,OTe)])),_:1},8,["aria-label"]))}}),xTe=P8(wTe,[["__scopeId","data-v-ca5f9f37"]]),kTe=e=>"apiKey"===e.type?{...e,"x-scalar-secret-token":e.value}:"http"===e.type?{...e,"x-scalar-secret-token":e.token,"x-scalar-secret-username":e.username,"x-scalar-secret-password":e.password}:"oauth2"===e.type?{...e,flows:Object.fromEntries(Object.entries(e.flows).map((([e,t])=>[e,t?{...t,"x-scalar-secret-token":t.token}:t])))}:e,STe=Symbol(),_Te=e=>{if(e)return js(STe,e),e;const t=Bs(STe);if(!t)throw new Error("useStore() was called without a store and no store instance was found. Make sure to call useStore(store) in a parent component first.");return t},ETe={key:0},TTe=Li({__name:"OperationPath",props:{path:{},deprecated:{type:Boolean}},setup(e){const t=e,r=e=>e.startsWith("{")&&e.endsWith("}"),n=hc((()=>t.path.split(/({[^}]+})/)));return(e,t)=>(Pl(),Ml("span",{class:zn(["operation-path",{deprecated:e.deprecated}])},[(Pl(!0),Ml(Sl,null,ps(n.value,((e,t)=>(Pl(),Ml(Sl,{key:t},[r(e)?(Pl(),Ml("em",ETe,Gn(e),1)):(Pl(),Ml(Sl,{key:1},[ql(Gn(e),1)],64))],64)))),128))],2))}}),ATe=aye(TTe,[["__scopeId","data-v-ec6c8861"]]),CTe=e=>MI.includes(e),PTe=(e,t)=>{var r;const n=null==(r=e[0])?void 0:r.options[0];if(t)for(const r of e){const e=r.options.find((e=>e.id===t));if(e)return e}if(!(null==n?void 0:n.id.startsWith("custom")))for(const t of e){const e=t.options.find((e=>"shell/curl"===e.id));if(e)return e}return n},DTe=e=>`custom/${e.lang}`,$Te=e=>{if("header"===e.in)return{style:"simple",explode:"explode"in e&&void 0!==e.explode&&e.explode};if("cookie"===e.in)return{style:"form",explode:!("explode"in e)||void 0===e.explode||e.explode};const t={path:"simple",query:"form",header:"simple",cookie:"form"}[e.in],r="style"in e&&e.style?e.style:t;return{style:r,explode:"explode"in e&&void 0!==e.explode?e.explode:"form"===r}},RTe=(e,t,r,n,a)=>{switch(n){case"matrix":if(a){if(Array.isArray(r)){const n=r.map((e=>`${t.name}=${e}`)).join(";");return e.replace(`{;${t.name}}`,`;${n}`)}if("object"==typeof r&&null!==r){const n=Object.entries(r).map((([e,t])=>`${e}=${t}`)).join(";");return e.replace(`{;${t.name}}`,`;${n}`)}return e.replace(`{;${t.name}}`,`;${t.name}=${r}`)}if(Array.isArray(r))return e.replace(`{;${t.name}}`,`;${t.name}=${r.join(",")}`);if("object"==typeof r&&null!==r){const n=Object.entries(r).map((([e,t])=>`${e},${t}`)).join(",");return e.replace(`{;${t.name}}`,`;${t.name}=${n}`)}return e.replace(`{;${t.name}}`,`;${t.name}=${r}`);case"label":if(a){if(Array.isArray(r))return e.replace(`{.${t.name}}`,`.${r.join(".")}`);if("object"==typeof r&&null!==r){const n=Object.entries(r).map((([e,t])=>`${e}=${t}`)).join(".");return e.replace(`{.${t.name}}`,`.${n}`)}return e.replace(`{.${t.name}}`,`.${r}`)}if(Array.isArray(r))return e.replace(`{.${t.name}}`,`.${r.join(",")}`);if("object"==typeof r&&null!==r){const n=Object.entries(r).map((([e,t])=>`${e},${t}`)).join(",");return e.replace(`{.${t.name}}`,`.${n}`)}return e.replace(`{.${t.name}}`,`.${r}`);case"simple":if(a){if(Array.isArray(r))return e.replace(`{${t.name}}`,r.join(","));if("object"==typeof r&&null!==r){const n=Object.entries(r).map((([e,t])=>`${e}=${t}`)).join(",");return e.replace(`{${t.name}}`,n)}return e.replace(`{${t.name}}`,String(r))}if(Array.isArray(r))return e.replace(`{${t.name}}`,r.join(","));if("object"==typeof r&&null!==r){const n=Object.entries(r).map((([e,t])=>`${e},${t}`)).join(",");return e.replace(`{${t.name}}`,n)}return e.replace(`{${t.name}}`,String(r));default:return e.replace(`{${t.name}}`,String(r))}},MTe=(e,t=0)=>{var r;if(e&&!(t>10)){if(void 0!==(null==(r=e.examples)?void 0:r[0]))return e.examples[0];if(void 0!==e.example)return e.example;if("object"===e.type&&e.properties){const r={};let n=!1;for(const[a,o]of Object.entries(e.properties)){const e=MTe(o,t+1);void 0!==e&&(r[a]=e,n=!0)}return n?r:void 0}if("array"===e.type&&e.items){const r=MTe(e.items,t+1);return void 0!==r?[r]:void 0}}},NTe=e=>{const t=[];for(const[r,n]of Object.entries(e))if(null!=n)if(Array.isArray(n))for(const e of n)t.push({name:r,value:String(e)});else if("object"==typeof n){const e=NTe(n);for(const n of e)t.push({name:`${r}.${n.name}`,value:n.value})}else t.push({name:r,value:String(n)});return t},ITe=({operation:e,contentType:t,method:r,path:n,server:a,securitySchemes:o,example:i})=>{var s,l;const c={method:r,url:n,headers:[],queryString:[],postData:void 0,httpVersion:"HTTP/1.1",cookies:[],headersSize:-1,bodySize:-1};if((null==a?void 0:a.url)&&(c.url=((e,t)=>{if(!e.url)return t;const r=e.url;if(e.variables){const n=function(e,t){const r=(e,r)=>{var n;return"function"==typeof t?t(r):(null==(n=t[r])?void 0:n.toString())||`{${r}}`};return e.replace(/{{\s*([\w.-]+)\s*}}/g,r).replace(/{\s*([\w.-]+)\s*}/g,r)}(r,Object.entries(e.variables).reduce(((e,[t,r])=>(void 0!==r.default&&(e[t]=r.default),e)),{}));return vj(n,t)}return vj(r,t)})(a,n)),e.parameters){const{url:t,headers:r,queryString:n,cookies:a}=((e,t,r)=>{const n=[...e.headers],a=[...e.queryString];let o=e.url;const i=nP(s=t)?[]:(s??[]).filter((e=>!nP(e)));var s;for(const t of i){if(!t.in||!t.name)continue;const i=r&&"object"==typeof r?r[t.name]:void 0;if(void 0===i)continue;const{style:s,explode:l}=$Te(t);switch(t.in){case"path":o=RTe(o,t,i,s,l);break;case"query":switch(s){case"form":if(l)if(Array.isArray(i))for(const e of i)a.push({name:t.name,value:String(e)});else if("object"==typeof i&&null!==i)for(const[e,t]of Object.entries(i))a.push({name:e,value:String(t)});else a.push({name:t.name,value:String(i)});else if(Array.isArray(i))a.push({name:t.name,value:i.join(",")});else if("object"==typeof i&&null!==i){const e=Object.entries(i).map((([e,t])=>`${e},${t}`)).join(",");a.push({name:t.name,value:e})}else a.push({name:t.name,value:String(i)});break;case"spaceDelimited":if(Array.isArray(i))a.push({name:t.name,value:i.join(" ")});else if("object"==typeof i&&null!==i){const e=Object.entries(i).map((([e,t])=>`${e} ${t}`)).join(" ");a.push({name:t.name,value:e})}break;case"pipeDelimited":if(Array.isArray(i))a.push({name:t.name,value:i.join("|")});else if("object"==typeof i&&null!==i){const e=Object.entries(i).flat().join("|");a.push({name:t.name,value:e})}break;case"deepObject":if(l&&"object"==typeof i&&null!==i)for(const[e,r]of Object.entries(i))a.push({name:`${t.name}[${e}]`,value:String(r)});break;default:a.push({name:t.name,value:String(i)})}break;case"header":if(l)if(Array.isArray(i))for(const e of i)n.push({name:t.name,value:String(e)});else if("object"==typeof i&&null!==i){const e=Object.entries(i).map((([e,t])=>`${e}=${t}`)).join(",");n.push({name:t.name,value:e})}else n.push({name:t.name,value:String(i)});else if(Array.isArray(i))n.push({name:t.name,value:i.join(",")});else if("object"==typeof i&&null!==i){const e=Object.entries(i).map((([e,t])=>`${e},${t}`)).join(",");n.push({name:t.name,value:e})}else n.push({name:t.name,value:String(i)});break;case"cookie":if(l)if(Array.isArray(i))for(const r of i)e.cookies.push({name:t.name,value:null===r?"null":String(r)});else if("object"==typeof i&&null!==i)for(const[t,r]of Object.entries(i))e.cookies.push({name:t,value:null===r?"null":String(r)});else e.cookies.push({name:t.name,value:null===i?"null":String(i)});else if(Array.isArray(i)){const r=i.map((e=>null===e?"null":String(e))).join(",");e.cookies.push({name:t.name,value:r})}else if("object"==typeof i&&null!==i){const r=e=>{const t=[];for(const[n,a]of Object.entries(e))"object"!=typeof a||null===a||Array.isArray(a)?t.push(n,null===a?"null":String(a)):t.push(n,...r(a));return t},n=r(i).join(",");e.cookies.push({name:t.name,value:n})}else e.cookies.push({name:t.name,value:null===i?"null":String(i)})}}return{url:o,headers:n,queryString:a,cookies:e.cookies}})(c,e.parameters,i);c.url=t,c.headers=r,c.queryString=n,c.cookies=a}if(!nP(e.requestBody)&&(null==(s=e.requestBody)?void 0:s.content)){const r=(({operation:e,contentType:t,example:r})=>{var n;const a=!e.requestBody||nP(e.requestBody)?{}:e.requestBody.content,o=t||Object.keys(a)[0],i="multipart/form-data"===o||"application/x-www-form-urlencoded"===o;if(r)return i&&"object"==typeof r&&null!==r?{mimeType:o,params:NTe(r)}:{mimeType:o,text:JSON.stringify(r)};const s=null==(n=a[o])?void 0:n.schema;if(s){const e=MTe(s);if(void 0!==e)return i&&"object"==typeof e&&null!==e?{mimeType:o,params:NTe(e)}:{mimeType:o,text:JSON.stringify(e)}}return{mimeType:o,text:"null"}})({operation:e,contentType:t,example:i});c.postData=r,c.bodySize=(null==(l=r.text)?void 0:l.length)??-1,r.mimeType&&!c.headers.some((e=>"content-type"===e.name.toLowerCase()))&&c.headers.push({name:"Content-Type",value:r.mimeType})}if(o){const{headers:e,queryString:t,cookies:r}=(e=>{const t={headers:[],queryString:[],cookies:[]};for(const r of e)if("apiKey"!==r.type){if("http"!==r.type){if("oauth2"===r.type&&r.flows){const e=Object.values(r.flows).find((e=>e["x-scalar-secret-token"])),n=(null==e?void 0:e["x-scalar-secret-token"])||"YOUR_SECRET_TOKEN";t.headers.push({name:"Authorization",value:`Bearer ${n}`})}}else if("basic"===r.scheme){const e=`${r["x-scalar-secret-username"]||""}:${r["x-scalar-secret-password"]||""}`,n=":"===e?"username:password":Buffer.from(e).toString("base64");t.headers.push({name:"Authorization",value:`Basic ${n}`})}else if("bearer"===r.scheme){const e=r["x-scalar-secret-token"]||"YOUR_SECRET_TOKEN";t.headers.push({name:"Authorization",value:`Bearer ${e}`})}}else{const e=r["x-scalar-secret-token"]||"YOUR_SECRET_TOKEN";if(!r.name)continue;const n={name:r.name,value:e};switch(r.in){case"header":t.headers.push(n);break;case"query":t.queryString.push(n);break;case"cookie":t.cookies.push(n)}}return t})(o);c.headers.push(...e),c.queryString.push(...t),c.cookies.push(...r)}const u=c.headers.map((e=>`${e.name}: ${e.value}`)).join("\r\n");return c.headersSize=u.length,c};function LTe(e,t,r){const n=new CustomEvent(t,{detail:r,bubbles:!0,composed:!0,cancelable:!0});e.dispatchEvent(n)}function jTe(e,t,r){ul((()=>e.value),(e=>{e&&e.addEventListener(t,r)}),{immediate:!0}),es((()=>{e.value&&e.value.removeEventListener(t,r)}))}const BTe={class:"overflow-hidden text-ellipsis"},UTe=Li({__name:"ExamplePicker",props:xs({examples:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const r=e,n=fl(e,"modelValue"),a=e=>{if(!e)return"Select an example";const t=r.examples[e];return(null==t?void 0:t.summary)??e};return t({getLabel:a,selectedExampleKey:n}),(e,t)=>(Pl(),Nl(Ao(JW),{placement:"bottom-start"},{items:ci((()=>[(Pl(!0),Ml(Sl,null,ps(e.examples,((e,t)=>(Pl(),Nl(Ao(y8),{key:t,onClick:e=>(e=>{n.value=e})(t)},{default:ci((()=>[Ul("div",{class:zn(["flex h-4 w-4 items-center justify-center rounded-full p-[3px]",n.value===t?"bg-c-accent text-b-1":"shadow-border text-transparent"])},[Fl(Ao(p5),{class:"size-2.5",icon:"Checkmark",thickness:"3"})],2),Ul("span",BTe,Gn(a(t)),1)])),_:2},1032,["onClick"])))),128))])),default:ci((()=>[Fl(Ao(iz),{"data-testid":"example-picker",class:"text-c-2 hover:text-c-1 flex h-full w-fit gap-1.5 px-1.5 py-0.75 text-base font-normal",fullWidth:"",variant:"ghost"},{default:ci((()=>[Ul("span",null,Gn(a(n.value)),1),Fl(Ao(Gz))])),_:1})])),_:1}))}}),FTe=["innerHTML"],QTe={class:"text-base"},zTe=["id"],qTe={key:0,class:"request-card-footer-addon"},HTe={class:"request-header"},VTe=aye(Li({__name:"RequestExample",props:{allowedClients:{},selectedClient:{},selectedServer:{default:()=>({url:"/"})},selectedContentType:{},selectedExample:{},securitySchemes:{default:()=>[]},method:{},path:{},operation:{},fallback:{type:Boolean},generateLabel:{type:Function},hideClientSelector:{type:Boolean,default:!1}},setup(e){const t=hc((()=>{var t,r;if(nP(e.operation.requestBody))return{};const n=(null==(t=e.operation.requestBody)?void 0:t.content)??{};return(null==(r=n[e.selectedContentType||Object.keys(n)[0]])?void 0:r.examples)??{}})),r=So(e.selectedExample??Object.keys(t.value)[0]),n=hc((()=>["x-custom-examples","x-codeSamples","x-code-samples"].flatMap((t=>e.operation[t]??[])))),a=hc((()=>((e,t)=>{const r=hxe().clients().flatMap((e=>{const r=e.clients.flatMap((r=>{const n=`${e.key}/${r.client}`;return t&&!t.includes(n)?[]:{id:n,lang:"curl"===r.client?"curl":e.key,title:`${Pn(e.title)} ${r.title}`,label:r.title}}));return 0===r.length?[]:{label:e.title,options:r}})),n=e.map((e=>{const t=DTe(e),r=e.label||e.lang||t;return{id:t,lang:e.lang||"plaintext",title:r,label:r}}));return n.length>0&&r.unshift({label:"Code Examples",options:n}),r})(n.value,e.allowedClients))),o=So(PTe(a.value,e.selectedClient));ul((()=>e.selectedClient),(e=>{const t=PTe(a.value,e);t&&(o.value=t)}));const i=hc((()=>{var a;try{if(o.value.id.startsWith("custom"))return(null==(a=n.value.find((e=>DTe(e)===o.value.id)))?void 0:a.source)??"Custom example not found";const i=t.value[r.value||""],s=(null==i?void 0:i.value)??(null==i?void 0:i.summary);return(({clientId:e,operation:t,method:r,path:n,example:a,contentType:o,server:i,securitySchemes:s})=>{if(nP(t))return"";const l=ITe({operation:t,contentType:o,method:r,path:n,server:i,securitySchemes:s,example:a}),[c,u]=e.split("/"),[d,p]=oTe(c,u,l);return d?d.message??"Error generating code snippet":p})({clientId:o.value.id,operation:e.operation,method:e.method,server:e.selectedServer,securitySchemes:e.securitySchemes,contentType:e.selectedContentType,path:e.path,example:s})}catch(e){return console.error("[generateSnippet]",e),""}})),s=hc((()=>e.securitySchemes.flatMap((e=>"apiKey"===e.type?e["x-scalar-secret-token"]:"http"===(null==e?void 0:e.type)?[e["x-scalar-secret-token"],e["x-scalar-secret-username"],e["x-scalar-secret-password"],btoa(`${e["x-scalar-secret-username"]}:${e["x-scalar-secret-password"]}`)]:"oauth2"===e.type?Object.values(e.flows).map((e=>e["x-scalar-secret-token"])):[])).filter(mj))),l=So(null),c=ji();return(e,n)=>(Pl(),Ml(Sl,null,[e.operation.externalDocs?(Pl(),Nl(Ao(rke),{key:0},{default:ci((()=>[Fl(Ao(_Se),{value:e.operation.externalDocs},null,8,["value"])])),_:1})):Vl("",!0),a.value.length?(Pl(),Nl(Ao(lz),{key:1,class:"request-card dark-mode",ref_key:"elem",ref:l},{default:ci((()=>[Fl(Ao(pz),{class:"pr-0.5"},hs({default:ci((()=>[n[3]||(n[3]=Ul("span",{class:"sr-only"},"Request Example for",-1)),Fl(Ao(_ke),{as:"span",class:"request-method",method:e.method},null,8,["method"]),e.generateLabel?(Pl(),Ml("span",{key:0,innerHTML:e.generateLabel()},null,8,FTe)):fs(e.$slots,"header",{key:1},void 0,!0)])),_:2},[e.hideClientSelector?void 0:{name:"actions",fn:ci((()=>[Fl(Ao(WW),{class:"max-h-80",modelValue:o.value,options:a.value,teleport:"",placement:"bottom-end","onUpdate:modelValue":n[0]||(n[0]=e=>(e=>{var t;if(l.value){const e=(e=>{if(!e)return()=>null;const t=e.getBoundingClientRect().top;let r=null;const n=new MutationObserver((n=>{n.some((e=>"childList"===e.type||"attributes"===e.type&&("style"===e.attributeName||"class"===e.attributeName)))&&(null!==r&&cancelAnimationFrame(r),r=requestAnimationFrame((()=>{const n=e.getBoundingClientRect().top;if(n!==t){const e=n-t;window.scrollBy(0,e)}r=null})))}));return n.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"],characterData:!1}),()=>{null!==r&&cancelAnimationFrame(r),n.disconnect()}})(l.value.$el);setTimeout((()=>{e()}),300)}o.value=e,e.id.startsWith("custom")||LTe(null==(t=l.value)?void 0:t.$el,"scalar-update-selected-client",e.id)})(e))},{default:ci((()=>[Fl(Ao(iz),{"data-testid":"client-picker",class:"text-c-2 hover:text-c-1 flex h-full w-fit gap-2 px-1",fullWidth:"",variant:"ghost"},{default:ci((()=>[Ul("span",QTe,Gn(o.value.title),1),Fl(Ao(Gz),{class:"size-3.5"})])),_:1})])),_:1},8,["modelValue","options"])])),key:"0"}]),1024),Fl(Ao(cz),{class:"request-editor-section custom-scroll p-0"},{default:ci((()=>[Ul("div",{id:`${Ao(c)}-example`,class:"code-snippet"},[Fl(Ao(GV),{class:"bg-b-2 !min-h-full -outline-offset-2",content:i.value,hideCredentials:s.value,lang:o.value.lang,lineNumbers:""},null,8,["content","hideCredentials","lang"])],8,zTe)])),_:1}),Object.keys(t.value).length||e.$slots.footer?(Pl(),Nl(Ao(hz),{key:0,class:"request-card-footer bg-b-3"},{default:ci((()=>[Object.keys(t.value).length?(Pl(),Ml("div",qTe,[Fl(UTe,{examples:t.value,modelValue:r.value,"onUpdate:modelValue":[n[1]||(n[1]=e=>r.value=e),n[2]||(n[2]=e=>{var t;return Ao(LTe)(null==(t=l.value)?void 0:t.$el,"scalar-update-selected-example",e)})]},null,8,["examples","modelValue"])])):Vl("",!0),fs(e.$slots,"footer",{},void 0,!0)])),_:3})):Vl("",!0)])),_:3},512)):e.fallback?(Pl(),Nl(Ao(lz),{key:2,class:"request-card dark-mode"},{default:ci((()=>[Fl(Ao(cz),{class:"request-card-simple"},{default:ci((()=>[Ul("div",HTe,[Fl(Ao(_ke),{as:"span",class:"request-method",method:e.method},null,8,["method"]),fs(e.$slots,"header",{},void 0,!0)]),fs(e.$slots,"footer",{},void 0,!0)])),_:3})])),_:3})):Vl("",!0)],64))}}),[["__scopeId","data-v-03733855"]]),ZTe={key:2,class:"empty-state"},WTe=aye(Li({__name:"ExampleResponse",props:{response:{}},setup:e=>(e,t)=>{var r,n,a,o;return void 0!==(null==(r=e.response)?void 0:r.example)?(Pl(),Nl(Ao(GV),{key:0,class:"bg-b-2 -outline-offset-2",content:null==(n=e.response)?void 0:n.example,lang:"json"},null,8,["content"])):(null==(a=e.response)?void 0:a.schema)?(Pl(),Nl(Ao(GV),{key:1,class:"bg-b-2 -outline-offset-2",content:Ao(Lge)(null==(o=e.response)?void 0:o.schema,{emptyString:"string",mode:"read"}),lang:"json"},null,8,["content"])):(Pl(),Ml("div",ZTe," No Body "))}}),[["__scopeId","data-v-157f3a0c"]]),XTe=aye(Li({__name:"ExampleResponseTab",setup:e=>(e,t)=>(Pl(),Nl(Ao(VF),{as:"template"},{default:ci((({selected:t})=>[Ul("button",{class:zn(["tab",{"tab-selected":t}]),type:"button"},[Ul("span",null,[fs(e.$slots,"default",{},void 0,!0)])],2)])),_:3}))}),[["__scopeId","data-v-c8207e48"]]),GTe=aye(Li({__name:"ExampleResponseTabList",emits:["change"],setup(e,{emit:t}){const r=t,n=e=>{r("change",e)};return(e,t)=>(Pl(),Nl(Ao(pz),{class:"scalar-card-header scalar-card-header-tabs"},{actions:ci((()=>[fs(e.$slots,"actions",{},void 0,!0)])),default:ci((()=>[Fl(Ao(qF),{onChange:n},{default:ci((()=>[Fl(Ao(HF),{class:"tab-list custom-scroll"},{default:ci((()=>[fs(e.$slots,"default",{},void 0,!0)])),_:3})])),_:3})])),_:3}))}}),[["__scopeId","data-v-fec8fbbb"]]),YTe={key:1,class:"scalar-card-checkbox"},KTe=["aria-controls"],JTe={key:1,class:"response-description"},eAe=aye(Li({__name:"ExampleResponses",props:{responses:{}},setup(e){const t=ji(),{copyToClipboard:r}=VV(),n=hc((()=>Object.keys(e.responses??{}).sort())),a=hc((()=>!!s.value.examples)),o=So(0),i=hc((()=>{var t;const r=n.value[o.value];return null==(t=e.responses)?void 0:t[r]})),s=hc((()=>{var e;const t=tj(null==(e=i.value)?void 0:e.content),r=Ej(t??{});return(null==t?void 0:t["application/json"])??(null==t?void 0:t["application/xml"])??(null==t?void 0:t["text/plain"])??(null==t?void 0:t["text/html"])??(null==t?void 0:t["*/*"])??(null==t?void 0:t[r[0]])??i.value})),l=So(Object.keys(s.value.examples??{})[0]??""),c=()=>{if(!a.value)return s.value.example;if(Array.isArray(s.value.examples))return s.value.examples[0];const e=Object.keys(s.value.examples)[0],t=s.value.examples[e];return(null==t?void 0:t.value)??t},u=hc((()=>({...s.value,example:a.value&&l.value?s.value.examples[l.value].value??s.value.examples[l.value]:c()}))),d=e=>{o.value=e,l.value=""},p=So(!1);return(e,o)=>n.value.length?(Pl(),Nl(Ao(lz),{key:0,"aria-label":"Example Responses",role:"region",class:"response-card"},{default:ci((()=>{var e;return[Fl(GTe,{onChange:d},{actions:ci((()=>{var e,n;return[(null==(e=s.value)?void 0:e.example)?(Pl(),Ml("button",{key:0,class:"code-copy",type:"button",onClick:o[0]||(o[0]=()=>{var e;return Ao(r)(null==(e=s.value)?void 0:e.example)})},[Fl(Ao(p5),{icon:"Clipboard",width:"12px"})])):Vl("",!0),(null==(n=s.value)?void 0:n.schema)?(Pl(),Ml("label",YTe,[o[4]||(o[4]=ql(" Show Schema ")),ui(Ul("input",{"onUpdate:modelValue":o[1]||(o[1]=e=>p.value=e),"aria-controls":Ao(t),class:"scalar-card-checkbox-input",type:"checkbox"},null,8,KTe),[[hu,p.value]]),o[5]||(o[5]=Ul("span",{class:"scalar-card-checkbox-checkmark"},null,-1))])):Vl("",!0)]})),default:ci((()=>[(Pl(!0),Ml(Sl,null,ps(n.value,(e=>(Pl(),Nl(XTe,{key:e,"aria-controls":Ao(t)},{default:ci((()=>[Fl(lSe,null,{default:ci((()=>o[3]||(o[3]=[ql("Status:")]))),_:1,__:[3]}),ql(" "+Gn(e),1)])),_:2},1032,["aria-controls"])))),128))])),_:1}),Fl(Ao(cz),{class:"grid flex-1"},{default:ci((()=>{var e;return[(null==(e=s.value)?void 0:e.schema)?(Pl(),Ml(Sl,{key:0},[p.value&&u.value?(Pl(),Nl(Ao(GV),{key:0,id:Ao(t),class:"-outline-offset-2",content:u.value,lang:"json"},null,8,["id","content"])):(Pl(),Nl(WTe,{key:1,id:Ao(t),response:u.value},null,8,["id","response"]))],64)):(Pl(),Nl(WTe,{key:1,id:Ao(t),response:u.value},null,8,["id","response"]))]})),_:1}),(null==(e=i.value)?void 0:e.description)||a.value?(Pl(),Nl(Ao(hz),{key:0,class:"response-card-footer"},{default:ci((()=>{var e,t;return[a.value?(Pl(),Nl(Ao(UTe),{key:0,class:"response-example-selector",examples:null==(e=s.value)?void 0:e.examples,modelValue:l.value,"onUpdate:modelValue":o[2]||(o[2]=e=>l.value=e)},null,8,["examples","modelValue"])):(null==(t=i.value)?void 0:t.description)?(Pl(),Ml("div",JTe,[Fl(Ao(D5),{class:"markdown",value:i.value.description},null,8,["value"])])):Vl("",!0)]})),_:1})):Vl("",!0)]})),_:1})):Vl("",!0)}}),[["__scopeId","data-v-abb75157"]]),tAe=Li({__name:"ContentTypeSelect",props:{requestBody:{},defaultValue:{}},emits:["selectContentType"],setup(e,{emit:t}){const r=e,n=t,a=e=>{(null==e?void 0:e.id)&&n("selectContentType",{contentType:e.id})},o=hc((()=>{var e;return(null==(e=r.requestBody)?void 0:e.content)?Object.keys(r.requestBody.content):[]})),i=So(r.defaultValue||o.value[0]),s=hc({get:()=>l.value.find((e=>e.id===i.value)),set:e=>{e&&(i.value=e.id)}}),l=hc((()=>o.value.map((e=>({id:e,label:e}))))),c=WQ({base:"font-normal text-c-2 bg-b-2 py-0.75 flex cursor-pointer items-center gap-1 rounded-full text-xs",variants:{dropdown:{true:"border hover:text-c-1 pl-2 pr-1.5",false:"px-2"}}});return(e,t)=>(null==r?void 0:r.requestBody)&&o.value.length>1?(Pl(),Nl(Ao(C5),{key:0,modelValue:s.value,"onUpdate:modelValue":[t[0]||(t[0]=e=>s.value=e),a],class:"font-normal",options:l.value,placement:"bottom-end"},{default:ci((()=>[Fl(Ao(iz),{class:zn(["h-fit",Ao(c)({dropdown:!0})]),variant:"ghost"},{default:ci((()=>[Fl(lSe,null,{default:ci((()=>t[1]||(t[1]=[ql("Selected Content Type:")]))),_:1,__:[1]}),Ul("span",null,Gn(i.value),1),Fl(Ao(p5),{class:"ui-open:rotate-180 ml-auto",icon:"ChevronDown",size:"sm",thickness:"2"})])),_:1},8,["class"])])),_:1},8,["modelValue","options"])):(Pl(),Ml("div",{key:1,class:zn([Ao(c)({dropdown:!1}),"selected-content-type"]),tabindex:"0"},[Ul("span",null,Gn(i.value),1)],2))}}),rAe=aye(Li({__name:"ParameterHeaders",props:{headers:{}},setup(e){function t(e){return void 0!==e.schema}return(e,r)=>(Pl(),Nl(Ao(qU),null,{default:ci((({open:r})=>[Ul("div",{class:zn(["headers-card headers-card--compact",[{"headers-card--open":r}]])},[Ul("div",{class:zn(["headers-properties",{"headers-properties-open":r}])},[Fl(Ao(HU),{class:"headers-card-title headers-card-title--compact",style:{top:"calc(var(--refs-header-height)))"}},{default:ci((()=>[Fl(Ao(p5),{class:zn(["headers-card-title-icon",{"headers-card-title-icon--open":r}]),icon:"Add",size:"sm"},null,8,["class"]),r?(Pl(),Ml(Sl,{key:0},[ql(" Hide Headers ")],64)):(Pl(),Ml(Sl,{key:1},[ql(" Show Headers ")],64))])),_:2},1024),Fl(Ao(VU),null,{default:ci((()=>[(Pl(!0),Ml(Sl,null,ps(e.headers,((e,r)=>(Pl(),Nl(aEe,{key:r,description:e.description,name:`${r}`,value:t(e)?e.schema:void 0},null,8,["description","name","value"])))),128))])),_:1})],2)],2)])),_:1}))}}),[["__scopeId","data-v-9293fa9e"]]),nAe={key:0,class:"parameter-item group/parameter-item relative"},aAe={class:"parameter-item-name"},oAe={class:"parameter-item-type"},iAe={class:"absolute top-2.5 right-0 opacity-0 group-focus-within/parameter-item:opacity-100 group-hover/parameter-item:opacity-100"},sAe=aye(Li({__name:"ParameterListItem",props:{parameter:{},showChildren:{type:Boolean,default:!1},collapsableItems:{type:Boolean,default:!1},withExamples:{type:Boolean,default:!0},schemas:{}},setup(e){const t=e,r=So(hc((()=>t.parameter.content?Object.keys(t.parameter.content):[])).value[0]);t.parameter.content&&"application/json"in t.parameter.content&&(r.value="application/json");const n=hc((()=>!(!t.collapsableItems||!(t.parameter.content||t.parameter.headers||t.parameter.schema)))),a=hc((()=>!0!==t.parameter.readOnly));return(e,o)=>a.value?(Pl(),Ml("li",nAe,[Fl(Ao(qU),null,{default:ci((({open:t})=>[n.value?(Pl(),Nl(Ao(HU),{key:0,class:zn(["parameter-item-trigger flex",{"parameter-item-trigger-open":t}])},{default:ci((()=>[Fl(Ao(p5),{class:"parameter-item-icon size-4.5",icon:t?"ChevronDown":"ChevronRight",thickness:"1.5"},null,8,["icon"]),Ul("span",aAe,Gn(e.parameter.name),1),Ul("span",oAe,[e.parameter.description?(Pl(),Nl(Ao(D5),{key:0,class:"markdown",value:e.parameter.description},null,8,["value"])):Vl("",!0)])])),_:2},1032,["class"])):Vl("",!0),Fl(Ao(VU),{class:"parameter-item-container parameter-item-container-markdown",static:!n.value},{default:ci((()=>{var t,a,o,i,s;return[e.parameter.headers?(Pl(),Nl(rAe,{key:0,headers:e.parameter.headers},null,8,["headers"])):Vl("",!0),Fl(Ao(aEe),{is:"div",compact:"",description:n.value?"":e.parameter.description,name:n.value?"":e.parameter.name,noncollapsible:!0,required:e.parameter.required,schemas:e.schemas,value:{...e.parameter.content?null==(a=null==(t=e.parameter.content)?void 0:t[r.value])?void 0:a.schema:e.parameter.schema,deprecated:e.parameter.deprecated,...Ao(mj)(e.parameter.example)&&{example:e.parameter.example},examples:e.parameter.content?{...e.parameter.examples,...null==(i=null==(o=e.parameter.content)?void 0:o[r.value])?void 0:i.examples}:e.parameter.examples||(null==(s=e.parameter.schema)?void 0:s.examples)},withExamples:e.withExamples},null,8,["description","name","required","schemas","value","withExamples"])]})),_:1},8,["static"])])),_:1}),Ul("div",iAe,[n.value&&t.parameter.content?(Pl(),Nl(tAe,{key:0,class:"parameter-item-content-type",defaultValue:r.value,requestBody:t.parameter,onSelectContentType:o[0]||(o[0]=({contentType:e})=>r.value=e)},null,8,["defaultValue","requestBody"])):Vl("",!0)])])):Vl("",!0)}}),[["__scopeId","data-v-47696a96"]]),lAe={key:0,class:"parameter-list"},cAe={class:"parameter-list-title"},uAe={class:"parameter-list-items"},dAe=aye(Li({__name:"ParameterList",props:{parameters:{},showChildren:{type:Boolean,default:!1},collapsableItems:{type:Boolean,default:!1},withExamples:{type:Boolean,default:!0},schemas:{}},setup:e=>(e,t)=>{var r;return(null==(r=e.parameters)?void 0:r.length)?(Pl(),Ml("div",lAe,[Ul("div",cAe,[fs(e.$slots,"title",{},void 0,!0)]),Ul("ul",uAe,[(Pl(!0),Ml(Sl,null,ps(e.parameters,(t=>(Pl(),Nl(sAe,{key:t.name,collapsableItems:e.collapsableItems,parameter:t,schemas:e.schemas,showChildren:e.showChildren,withExamples:e.withExamples},null,8,["collapsableItems","parameter","schemas","showChildren","withExamples"])))),128))])])):Vl("",!0)}}),[["__scopeId","data-v-dabf3ac7"]]),pAe={key:0,class:"request-body"},hAe={class:"request-body-header"},fAe={class:"request-body-title"},mAe={key:0,class:"request-body-required"},gAe={key:0,class:"request-body-description"},vAe={key:0,class:"request-body-schema"},bAe={key:1,class:"request-body-schema"},yAe=aye(Li({__name:"RequestBody",props:{requestBody:{},schemas:{}},emits:["update:modelValue"],setup(e,{emit:t}){var r;const n=t,a=hc((()=>{var t;return Object.keys((null==(t=e.requestBody)?void 0:t.content)??{})})),o=So("application/json");(null==(r=e.requestBody)?void 0:r.content)&&a.value.length>0&&(o.value=a.value[0]);const i=hc((()=>{var t,r,n;const a=null==(n=null==(r=null==(t=e.requestBody)?void 0:t.content)?void 0:r[o.value])?void 0:n.schema;if("object"!==(null==a?void 0:a.type)||!a.properties)return null;const i=Object.entries(a.properties);if(i.length<13)return null;const{properties:s,...l}=a;return{visibleProperties:{...l,properties:Object.fromEntries(i.slice(0,12))},collapsedProperties:{...l,properties:Object.fromEntries(i.slice(12))}}})),s=e=>{n("update:modelValue",e)};return(e,t)=>{var r,n,a;return e.requestBody?(Pl(),Ml("div",pAe,[Ul("div",hAe,[Ul("span",fAe,[fs(e.$slots,"title",{},void 0,!0),e.requestBody.required?(Pl(),Ml("div",mAe," required ")):Vl("",!0)]),Fl(tAe,{defaultValue:o.value,requestBody:e.requestBody,onSelectContentType:t[0]||(t[0]=({contentType:e})=>o.value=e)},null,8,["defaultValue","requestBody"]),e.requestBody.description?(Pl(),Ml("div",gAe,[Fl(Ao(D5),{value:e.requestBody.description},null,8,["value"])])):Vl("",!0)]),i.value?(Pl(),Ml("div",vAe,[Fl(Ao(cEe),{compact:"",name:"Request Body",noncollapsible:"",schemas:e.schemas,value:i.value.visibleProperties,"onUpdate:modelValue":s},null,8,["schemas","value"]),Fl(Ao(cEe),{additionalProperties:"",compact:"",name:"Request Body",schemas:e.schemas,value:i.value.collapsedProperties},null,8,["schemas","value"])])):(null==(r=e.requestBody.content)?void 0:r[o.value])?(Pl(),Ml("div",bAe,[Fl(Ao(cEe),{compact:"",name:"Request Body",noncollapsible:"",schemas:e.schemas,value:null==(a=null==(n=e.requestBody.content)?void 0:n[o.value])?void 0:a.schema,"onUpdate:modelValue":s},null,8,["schemas","value"])])):Vl("",!0)])):Vl("",!0)}}}),[["__scopeId","data-v-f3b8e406"]]),OAe=Li({__name:"OperationParameters",props:{parameters:{default:()=>[]},requestBody:{},schemas:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=t,n=e=>{r("update:modelValue",e)},a=t=>{var r;return(null==(r=e.parameters)?void 0:r.filter((e=>e.in===t)))??[]};return(e,t)=>(Pl(),Ml(Sl,null,[Fl(dAe,{parameters:a("path"),schemas:e.schemas},{title:ci((()=>t[0]||(t[0]=[ql("Path Parameters")]))),_:1},8,["parameters","schemas"]),Fl(dAe,{parameters:a("query"),schemas:e.schemas},{title:ci((()=>t[1]||(t[1]=[ql("Query Parameters")]))),_:1},8,["parameters","schemas"]),Fl(dAe,{parameters:a("header"),schemas:e.schemas},{title:ci((()=>t[2]||(t[2]=[ql("Headers")]))),_:1},8,["parameters","schemas"]),Fl(dAe,{parameters:a("cookie"),schemas:e.schemas},{title:ci((()=>t[3]||(t[3]=[ql("Cookies")]))),_:1},8,["parameters","schemas"]),e.requestBody?(Pl(),Nl(yAe,{key:0,requestBody:e.requestBody,schemas:e.schemas,"onUpdate:modelValue":n},{title:ci((()=>t[4]||(t[4]=[ql("Body")]))),_:1},8,["requestBody","schemas"])):Vl("",!0)],64))}}),wAe=Li({__name:"OperationResponses",props:{responses:{},collapsableItems:{type:Boolean,default:!0},schemas:{}},setup(e){const t=e,{responses:r}=function(e){return{responses:hc((()=>{const t=[];return e?(Object.entries(e).forEach((([e,r])=>{var n;t.push({name:e,description:r.description,content:r.content,headers:r.headers,schema:null==(n=r.content)?void 0:n.schema})})),t):t}))}}(t.responses);return(e,t)=>(Pl(),Nl(dAe,{collapsableItems:e.collapsableItems,parameters:Ao(r),schemas:e.schemas,withExamples:!1},{title:ci((()=>t[0]||(t[0]=[ql("Responses")]))),_:1},8,["collapsableItems","parameters","schemas"]))}}),xAe={class:"group callback-list-item"},kAe={class:"font-code bg-b-1 callback-sticky-offset callback-list-item-title sticky flex cursor-pointer flex-row items-center gap-2 border-t py-3 text-sm group-open:flex-wrap"},SAe={class:"text-c-1 min-w-0 flex-1 truncate leading-3 group-open:whitespace-normal"},_Ae={class:"text-c-2"},EAe={class:"callback-operation-container flex flex-col gap-2"},TAe=aye(Li({__name:"Callback",props:{callback:{},method:{},path:{},operationMethod:{},name:{},schemas:{},url:{}},setup:e=>(e,t)=>(Pl(),Ml("details",xAe,[Ul("summary",kAe,[Fl(Ao(nq),{class:"callback-list-item-icon text-c-3 group-hover:text-c-1 absolute -left-5 size-4 transition-transform group-open:rotate-90"}),Fl(Ao(_ke),{as:"span",class:"request-method",method:e.method},null,8,["method"]),Ul("div",SAe,[ql(Gn(e.name)+" ",1),Ul("span",_Ae,Gn(e.url),1)])]),Ul("div",EAe,[Fl(OAe,{requestBody:e.callback.requestBody,parameters:e.callback.parameters,schemas:e.schemas},null,8,["requestBody","parameters","schemas"]),Fl(wAe,{collapsableItems:!1,responses:e.callback.responses,schemas:e.schemas},null,8,["responses","schemas"])])]))}),[["__scopeId","data-v-45f1f948"]]),AAe={class:"callbacks-list gap-3"},CAe=Li({__name:"Callbacks",props:{path:{},method:{},callbacks:{},schemas:{}},setup(e){const{resolve:t}=_Te();return ul((()=>e.callbacks),(r=>Object.values(r).forEach((r=>{nP(r)&&t(["paths",e.path,e.method])}))),{immediate:!0}),(t,r)=>(Pl(),Ml("div",AAe,[r[0]||(r[0]=Ul("div",{class:"callbacks-title text-c-1 my-3 text-lg font-medium"}," Callbacks ",-1)),(Pl(!0),Ml(Sl,null,ps(t.callbacks,((r,n)=>(Pl(),Ml(Sl,{key:n},[Ao(nP)(r)?Vl("",!0):(Pl(!0),Ml(Sl,{key:0},ps(r,((r,a)=>(Pl(),Ml(Sl,null,[(Pl(!0),Ml(Sl,null,ps(r,((r,o)=>(Pl(),Ml(Sl,{key:o},[Ao(rP)(o)?(Pl(),Nl(TAe,{key:0,callback:r,method:o,operationMethod:e.method,name:n,path:t.path,schemas:t.schemas,url:a},null,8,["callback","method","operationMethod","name","path","schemas","url"])):Vl("",!0)],64)))),128))],64)))),256))],64)))),128))]))}}),PAe={Date:!0,RegExp:!0,String:!0,Number:!0};function DAe(e,t,r={cyclesFix:!0},n=[]){var a,o;let i=[];const s=Array.isArray(e);for(const l in e){const c=e[l],u=s?+l:l;if(!(l in t)){i.push({type:"REMOVE",path:[u],oldValue:e[l]});continue}const d=t[l],p="object"==typeof c&&"object"==typeof d&&Array.isArray(c)===Array.isArray(d);!(c&&d&&p)||PAe[null==(o=null==(a=Object.getPrototypeOf(c))?void 0:a.constructor)?void 0:o.name]||r.cyclesFix&&n.includes(c)?c===d||Number.isNaN(c)&&Number.isNaN(d)||p&&(isNaN(c)?c+""==d+"":+c==+d)||i.push({path:[u],type:"CHANGE",value:d,oldValue:c}):i.push.apply(i,DAe(c,d,r,r.cyclesFix?n.concat([c]):[]).map((e=>(e.path.unshift(u),e))))}const l=Array.isArray(t);for(const r in t)r in e||i.push({type:"CREATE",path:[l?+r:r],value:t[r]});return i}const $Ae=(e,t=[])=>{const r=[];let n=!1;for(let a=0;a<e.length;a++){if(n){n=!1;continue}const o=e[a],i=e[a+1];if(o){if(t.length)o.path=[...t,...o.path],i&&(i.path=[...t,...i.path]);else if("paths"!==o.path[0]){r.push(o);continue}if("REMOVE"===o.type&&"CREATE"===(null==i?void 0:i.type)){const[,e,a]=o.path,[,s,l]=i.path,c=["paths",s].filter((e=>"string"==typeof e));if(e!==s&&r.push({type:"CHANGE",path:["paths","path"],oldValue:e,value:s}),a&&"string"==typeof l&&a!==l&&s&&(r.push({type:"CHANGE",path:["paths",s,"method"],oldValue:a,value:l}),c.push(l)),0===t.length){const e=DAe(o.oldValue,i.value);if(e.length){const t=$Ae(e,c);r.push(...t)}}n=!0}else"CREATE"===o.type&&o.path.length>3&&"number"!=typeof o.path.at(-1)?r.push({...o,type:"CHANGE",oldValue:void 0}):"REMOVE"===o.type&&o.path.length>3&&"number"!=typeof o.path.at(-1)?r.push({...o,type:"CHANGE",value:void 0}):r.push(o)}}return r},RAe=(e,t,r)=>{for(const n of e){const e=t[n];if(e&&r(e))return e}return null},MAe=e=>e instanceof Tt.ZodOptional?MAe(e.unwrap()):e instanceof Tt.ZodDefault?MAe(e._def.innerType):e instanceof Tt.ZodEffects?MAe(e._def.schema):e instanceof Tt.ZodCatch?MAe(e._def.innerType):e,NAe=(e,t)=>{const r=((e,t)=>{let r=e;for(const e of t){if(r=MAe(r),r instanceof Tt.ZodAny)return r;if(r instanceof Tt.ZodObject&&"string"==typeof e&&e in r.shape)r=r.shape[e];else if(r instanceof Tt.ZodArray)if("number"==typeof e)r=r.element;else{if("string"!=typeof e)return null;if(r=r.element,!(r instanceof Tt.ZodObject&&e in r.shape))return null;r=r.shape[e]}else{if(!(r instanceof Tt.ZodRecord))return null;r=r.valueSchema}r=MAe(r)}return r})(e,t.path);if(!r)return null;const n=t.path.join("."),a=t.path.slice(0,-1).join(".");if("REMOVE"===t.type)return{path:n,pathMinusOne:a,value:void 0};const o=nj(t.value,r,!1);return typeof o>"u"||null===o?null:{path:n,pathMinusOne:a,value:o}},IAe=(e,t)=>{const{requests:r,requestExamples:n,requestExampleMutators:a}=t,o=r[e];null==o||o.examples.forEach((e=>{var t;const r=Wge(o,(null==(t=n[e])?void 0:t.name)??"Default");r&&a.set({...r,uid:e})}))},LAe=(e,{activeCollection:t},{securitySchemes:r,securitySchemeMutators:n})=>{if(!t.value)return!1;const[,,a,...o]=e.path,i=r[a]??RAe(t.value.securitySchemes,r,(e=>e.nameKey===a));if(null!=o&&o.length){const t=((e,t,r)=>{const n=MAe(e);if(n instanceof Tt.ZodUnion||n instanceof Tt.ZodDiscriminatedUnion)for(const e of n.options)if(e instanceof Tt.ZodObject&&t in e.shape&&e.shape[t]instanceof Tt.ZodLiteral&&e.shape[t].value===r)return e;return null})(gge,"type",(null==i?void 0:i.type)??"");if(!t||!i)return!1;const r=NAe(t,{...e,path:o});if(!r)return!1;const a=r.path;n.edit(i.uid,a,r.value)}else if("REMOVE"===e.type){if(!i)return!1;n.delete(i.uid)}else"CREATE"===e.type&&n.add(gge.parse(e.value),t.value.uid);return!0},jAe=So(),BAe=So();function UAe(e){return"function"==typeof e?e():Ao(e)}"undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope);const FAe=e=>null!=e
|
||
/*!
|
||
* tabbable 6.2.0
|
||
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
||
*/;var QAe=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],zAe=QAe.join(","),qAe="undefined"==typeof Element,HAe=qAe?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,VAe=!qAe&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},ZAe=function e(t,r){var n;void 0===r&&(r=!0);var a=null==t||null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,"inert");return""===a||"true"===a||r&&t&&e(t.parentNode)},WAe=function(e,t,r){if(ZAe(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(zAe));return t&&HAe.call(e,zAe)&&n.unshift(e),n.filter(r)},XAe=function e(t,r,n){for(var a=[],o=Array.from(t);o.length;){var i=o.shift();if(!ZAe(i,!1))if("SLOT"===i.tagName){var s=i.assignedElements(),l=e(s.length?s:i.children,!0,n);n.flatten?a.push.apply(a,l):a.push({scopeParent:i,candidates:l})}else{HAe.call(i,zAe)&&n.filter(i)&&(r||!t.includes(i))&&a.push(i);var c=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),u=!ZAe(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(c&&u){var d=e(!0===c?i.children:c.children,!0,n);n.flatten?a.push.apply(a,d):a.push({scopeParent:i,candidates:d})}else o.unshift.apply(o,i.children)}}return a},GAe=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},YAe=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,r=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===r||"true"===r}(e))&&!GAe(e)?0:e.tabIndex},KAe=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},JAe=function(e){return"INPUT"===e.tagName},eCe=function(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;return 0===r&&0===n},tCe=function(e,t){return!(t.disabled||ZAe(t)||function(e){return JAe(e)&&"hidden"===e.type}(t)||function(e,t){var r=t.displayCheck,n=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var a=HAe.call(e,"details>summary:first-of-type")?e.parentElement:e;if(HAe.call(a,"details:not([open]) *"))return!0;if(r&&"full"!==r&&"legacy-full"!==r){if("non-zero-area"===r)return eCe(e)}else{if("function"==typeof n){for(var o=e;e;){var i=e.parentElement,s=VAe(e);if(i&&!i.shadowRoot&&!0===n(i))return eCe(e);e=e.assignedSlot?e.assignedSlot:i||s===e.ownerDocument?i:s.host}e=o}if(function(e){var t,r,n,a,o=e&&VAe(e),i=null===(t=o)||void 0===t?void 0:t.host,s=!1;if(o&&o!==e)for(s=!!(null!==(r=i)&&void 0!==r&&null!==(n=r.ownerDocument)&&void 0!==n&&n.contains(i)||null!=e&&null!==(a=e.ownerDocument)&&void 0!==a&&a.contains(e));!s&&i;){var l,c,u;s=!(null===(c=i=null===(l=o=VAe(i))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(i))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==r)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var r=0;r<t.children.length;r++){var n=t.children.item(r);if("LEGEND"===n.tagName)return!!HAe.call(t,"fieldset[disabled] *")||!n.contains(e)}return!0}t=t.parentElement}return!1}(t))},rCe=function(e,t){return!(function(e){return function(e){return JAe(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,r=e.form||VAe(e),n=function(e){return r.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=n(window.CSS.escape(e.name));else try{t=n(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var a=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]}(t,e.form);return!a||a===e}(e)}(t)||YAe(t)<0||!tCe(e,t))},nCe=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},aCe=function e(t){var r=[],n=[];return t.forEach((function(t,a){var o=!!t.scopeParent,i=o?t.scopeParent:t,s=function(e,t){var r=YAe(e);return r<0&&t&&!GAe(e)?0:r}(i,o),l=o?e(t.candidates):i;0===s?o?r.push.apply(r,l):r.push(i):n.push({documentOrder:a,tabIndex:s,item:t,isScope:o,content:l})})),n.sort(KAe).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(r)},oCe=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==HAe.call(e,zAe)&&rCe(t,e)},iCe=QAe.concat("iframe").join(","),sCe=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==HAe.call(e,iCe)&&tCe(t,e)};
|
||
/*!
|
||
* focus-trap 7.6.2
|
||
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
||
*/function lCe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function cCe(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uCe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function dCe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?uCe(Object(r),!0).forEach((function(t){cCe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uCe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var pCe=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},hCe=function(e){return pCe(e)&&!e.shiftKey},fCe=function(e){return pCe(e)&&e.shiftKey},mCe=function(e){return setTimeout(e,0)},gCe=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return"function"==typeof e?e.apply(void 0,r):e},vCe=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},bCe=[],yCe=function(e,t){var r,n=(null==t?void 0:t.document)||document,a=(null==t?void 0:t.trapStack)||bCe,o=dCe({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:hCe,isKeyBackward:fCe},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s=function(e,t,r){return e&&void 0!==e[t]?e[t]:o[r||t]},l=function(e,t){var r="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return i.containerGroups.findIndex((function(t){var n=t.container,a=t.tabbableNodes;return n.contains(e)||(null==r?void 0:r.includes(n))||a.find((function(t){return t===e}))}))},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.hasFallback,a=void 0!==r&&r,i=t.params,s=void 0===i?[]:i,l=o[e];if("function"==typeof l&&(l=l.apply(void 0,function(e){return function(e){if(Array.isArray(e))return lCe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return lCe(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lCe(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(s))),!0===l&&(l=void 0),!l){if(void 0===l||!1===l)return l;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var c=l;if("string"==typeof l){try{c=n.querySelector(l)}catch(t){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!c&&!a)throw new Error("`".concat(e,"` as selector refers to no known node"))}return c},u=function(){var e=c("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!sCe(e,o.tabbableOptions))if(l(n.activeElement)>=0)e=n.activeElement;else{var t=i.tabbableGroups[0];e=t&&t.firstTabbableNode||c("fallbackFocus")}else null===e&&(e=c("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(i.containerGroups=i.containers.map((function(e){var t=function(e,t){var r;return r=(t=t||{}).getShadowRoot?XAe([e],t.includeContainer,{filter:rCe.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:nCe}):WAe(e,t.includeContainer,rCe.bind(null,t)),aCe(r)}(e,o.tabbableOptions),r=function(e,t){return(t=t||{}).getShadowRoot?XAe([e],t.includeContainer,{filter:tCe.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):WAe(e,t.includeContainer,tCe.bind(null,t))}(e,o.tabbableOptions),n=t.length>0?t[0]:void 0,a=t.length>0?t[t.length-1]:void 0,i=r.find((function(e){return oCe(e)})),s=r.slice().reverse().find((function(e){return oCe(e)})),l=!!t.find((function(e){return YAe(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:r,posTabIndexesFound:l,firstTabbableNode:n,lastTabbableNode:a,firstDomTabbableNode:i,lastDomTabbableNode:s,nextTabbableNode:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=t.indexOf(e);return a<0?n?r.slice(r.indexOf(e)+1).find((function(e){return oCe(e)})):r.slice(0,r.indexOf(e)).reverse().find((function(e){return oCe(e)})):t[a+(n?1:-1)]}}})),i.tabbableGroups=i.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),i.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find((function(e){return e.posTabIndexesFound}))&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},p=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?p(t.shadowRoot):t},h=function(e){!1!==e&&e!==p(document)&&(e&&e.focus?(e.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):h(u()))},f=function(e){var t=c("setReturnFocus",{params:[e]});return t||!1!==t&&e},m=function(e){var t=e.target,r=e.event,n=e.isBackward,a=void 0!==n&&n;t=t||vCe(r),d();var s=null;if(i.tabbableGroups.length>0){var u=l(t,r),p=u>=0?i.containerGroups[u]:void 0;if(u<0)s=a?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(a){var h=i.tabbableGroups.findIndex((function(e){var r=e.firstTabbableNode;return t===r}));if(h<0&&(p.container===t||sCe(t,o.tabbableOptions)&&!oCe(t,o.tabbableOptions)&&!p.nextTabbableNode(t,!1))&&(h=u),h>=0){var f=0===h?i.tabbableGroups.length-1:h-1,m=i.tabbableGroups[f];s=YAe(t)>=0?m.lastTabbableNode:m.lastDomTabbableNode}else pCe(r)||(s=p.nextTabbableNode(t,!1))}else{var g=i.tabbableGroups.findIndex((function(e){var r=e.lastTabbableNode;return t===r}));if(g<0&&(p.container===t||sCe(t,o.tabbableOptions)&&!oCe(t,o.tabbableOptions)&&!p.nextTabbableNode(t))&&(g=u),g>=0){var v=g===i.tabbableGroups.length-1?0:g+1,b=i.tabbableGroups[v];s=YAe(t)>=0?b.firstTabbableNode:b.firstDomTabbableNode}else pCe(r)||(s=p.nextTabbableNode(t))}}else s=c("fallbackFocus");return s},g=function(e){var t=vCe(e);l(t,e)>=0||(gCe(o.clickOutsideDeactivates,e)?r.deactivate({returnFocus:o.returnFocusOnDeactivate}):gCe(o.allowOutsideClick,e)||e.preventDefault())},v=function(e){var t=vCe(e),r=l(t,e)>=0;if(r||t instanceof Document)r&&(i.mostRecentlyFocusedNode=t);else{var n;e.stopImmediatePropagation();var a=!0;if(i.mostRecentlyFocusedNode)if(YAe(i.mostRecentlyFocusedNode)>0){var s=l(i.mostRecentlyFocusedNode),c=i.containerGroups[s].tabbableNodes;if(c.length>0){var d=c.findIndex((function(e){return e===i.mostRecentlyFocusedNode}));d>=0&&(o.isKeyForward(i.recentNavEvent)?d+1<c.length&&(n=c[d+1],a=!1):d-1>=0&&(n=c[d-1],a=!1))}}else i.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return YAe(e)>0}))}))||(a=!1);else a=!1;a&&(n=m({target:i.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(i.recentNavEvent)})),h(n||i.mostRecentlyFocusedNode||u())}i.recentNavEvent=void 0},b=function(e){(o.isKeyForward(e)||o.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];i.recentNavEvent=e;var r=m({event:e,isBackward:t});r&&(pCe(e)&&e.preventDefault(),h(r))}(e,o.isKeyBackward(e))},y=function(e){(function(e){return"Escape"===(null==e?void 0:e.key)||"Esc"===(null==e?void 0:e.key)||27===(null==e?void 0:e.keyCode)})(e)&&!1!==gCe(o.escapeDeactivates,e)&&(e.preventDefault(),r.deactivate())},O=function(e){var t=vCe(e);l(t,e)>=0||gCe(o.clickOutsideDeactivates,e)||gCe(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},w=function(){if(i.active)return function(e,t){if(e.length>0){var r=e[e.length-1];r!==t&&r.pause()}var n=e.indexOf(t);-1===n||e.splice(n,1),e.push(t)}(a,r),i.delayInitialFocusTimer=o.delayInitialFocus?mCe((function(){h(u())})):h(u()),n.addEventListener("focusin",v,!0),n.addEventListener("mousedown",g,{capture:!0,passive:!1}),n.addEventListener("touchstart",g,{capture:!0,passive:!1}),n.addEventListener("click",O,{capture:!0,passive:!1}),n.addEventListener("keydown",b,{capture:!0,passive:!1}),n.addEventListener("keydown",y),r},x=function(){if(i.active)return n.removeEventListener("focusin",v,!0),n.removeEventListener("mousedown",g,!0),n.removeEventListener("touchstart",g,!0),n.removeEventListener("click",O,!0),n.removeEventListener("keydown",b,!0),n.removeEventListener("keydown",y),r},k="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver((function(e){e.some((function(e){return Array.from(e.removedNodes).some((function(e){return e===i.mostRecentlyFocusedNode}))}))&&h(u())})):void 0,S=function(){k&&(k.disconnect(),i.active&&!i.paused&&i.containers.map((function(e){k.observe(e,{subtree:!0,childList:!0})})))};return(r={get active(){return i.active},get paused(){return i.paused},activate:function(e){if(i.active)return this;var t=s(e,"onActivate"),r=s(e,"onPostActivate"),a=s(e,"checkCanFocusTrap");a||d(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=n.activeElement,null==t||t();var o=function(){a&&d(),w(),S(),null==r||r()};return a?(a(i.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(e){if(!i.active)return this;var t=dCe({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,x(),i.active=!1,i.paused=!1,S(),function(e,t){var r=e.indexOf(t);-1!==r&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}(a,r);var n=s(t,"onDeactivate"),l=s(t,"onPostDeactivate"),c=s(t,"checkCanReturnFocus"),u=s(t,"returnFocus","returnFocusOnDeactivate");null==n||n();var d=function(){mCe((function(){u&&h(f(i.nodeFocusedBeforeActivation)),null==l||l()}))};return u&&c?(c(f(i.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(e){if(i.paused||!i.active)return this;var t=s(e,"onPause"),r=s(e,"onPostPause");return i.paused=!0,null==t||t(),x(),S(),null==r||r(),this},unpause:function(e){if(!i.paused||!i.active)return this;var t=s(e,"onUnpause"),r=s(e,"onPostUnpause");return i.paused=!1,null==t||t(),d(),w(),S(),null==r||r(),this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return i.containers=t.map((function(e){return"string"==typeof e?n.querySelector(e):e})),i.active&&d(),S(),this}}).updateContainerElements(e),r};const OCe=()=>{var e;return"undefined"!=typeof navigator&&((null==(e=navigator.userAgentData)?void 0:e.platform)?navigator.userAgentData.platform.toLowerCase().includes("mac"):/Mac/.test(navigator.userAgent))},wCe=["Escape","ArrowDown","ArrowUp","Enter","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"],xCe={Escape:{event:"closeModal"},Enter:{event:"executeRequest",modifiers:["default"]},b:{event:"toggleSidebar",modifiers:["default"]},k:{event:"openCommandPalette",modifiers:["default"]},l:{event:"focusAddressBar",modifiers:["default"]}},kCe={Alt:"altKey",Control:"ctrlKey",Shift:"shiftKey",Meta:"metaKey"},SCe=e=>e.map((e=>"default"===e?OCe()?"metaKey":"ctrlKey":kCe[e])),_Ce={class:"scalar scalar-app"},ECe={class:"scalar-container"},TCe=["id"],ACe=Li({__name:"ApiClientModal",setup(e){const{activeWorkspace:t}=rye(),{modalState:r,events:n}=Hve(),a=So(null),o=ji(),{activate:i,deactivate:s}=function(e,t={}){let r;const{immediate:n,...a}=t,o=So(!1),i=So(!1),s=e=>r&&r.activate(e),l=e=>r&&r.deactivate(e);var c;return ul(hc((()=>{const t=UAe(e);return(Array.isArray(t)?t:[t]).map((e=>{const t=UAe(e);return"string"==typeof t?t:function(e){var t;const r=UAe(e);return null!=(t=null==r?void 0:r.$el)?t:r}(t)})).filter(FAe)})),(e=>{e.length&&(r=yCe(e,{...a,onActivate(){o.value=!0,t.onActivate&&t.onActivate()},onDeactivate(){o.value=!1,t.onDeactivate&&t.onDeactivate()}}),n&&s())}),{flush:"post"}),c=()=>l(),ra()&&na(c),{hasFocus:o,isPaused:i,activate:s,deactivate:l,pause:()=>{r&&(r.pause(),i.value=!0)},unpause:()=>{r&&(r.unpause(),i.value=!1)}}}(a,{allowOutsideClick:!0,fallbackFocus:`#${o}`}),l=e=>{var r;return((e,t,{hotKeys:r=xCe,modifiers:n=["default"]}={})=>{const a=" "===e.key?"Space":e.key,o=r[a];o&&("Escape"===a?t.emit({[o.event]:e}):SCe(o.modifiers||n).every((t=>!0===e[t]))?t.emit({[o.event]:e}):!(e=>{if(!(e.target instanceof HTMLElement))return!1;const t=e.target;return"INPUT"===t.tagName?!wCe.includes(e.key):!("TEXTAREA"!==t.tagName&&!t.getAttribute("contenteditable")&&"true"!==t.contentEditable)})(e)&&void 0===o.modifiers&&t.emit({[o.event]:e}))})(e,n.hotKeys,null==(r=t.value)?void 0:r.hotKeyConfig)};ul((()=>r.open),(e=>{e?(window.addEventListener("keydown",l),document.documentElement.style.overflow="hidden",i({checkCanFocusTrap:()=>Ko()})):(window.removeEventListener("keydown",l),document.documentElement.style.removeProperty("overflow"),s())})),Gi((()=>T8()));const c=e=>(null==e?void 0:e.closeModal)&&r.open&&r.hide();return Yi((()=>n.hotKeys.on(c))),es((()=>{document.documentElement.style.removeProperty("overflow"),n.hotKeys.off(c)})),(e,t)=>ui((Pl(),Ml("div",_Ce,[Ul("div",ECe,[Ul("div",{id:Ao(o),ref_key:"client",ref:a,"aria-label":"API Client","aria-modal":"true",class:"scalar-app-layout scalar-client",role:"dialog",tabindex:"-1"},[Fl(Ao(o8),null,{default:ci((()=>[Fl(Ao(sme),{key:"$route.fullPath"})])),_:1})],8,TCe),Ul("div",{class:"scalar-app-exit",onClick:t[0]||(t[0]=e=>Ao(r).hide())})])],512)),[[Fc,Ao(r).open]])}}),CCe=P8(ACe,[["__scopeId","data-v-45e9730e"]]),PCe=Symbol(),DCe="2.5.0",$Ce="scalar_api_client_data_version",RCe=e=>{const t=localStorage.getItem(e)||"[{}]";return"["===t[0]?vve(t):JSON.parse(t)},MCe=(e,t)=>{const r=e=>{const[t=0,r=0,n=0]=e.split(".").map((e=>Number.parseInt(e,10)));return{major:t,minor:r,patch:n}},{major:n,minor:a,patch:o}=r(e),{major:i,minor:s,patch:l}=r(t);return n<i||!(n>i)&&(a<s||!(a>s)&&o<l)},NCe=(e,t,r)=>e.forEach((e=>{const n=nj(e,t,!1);n&&r(n)})),ICe=({el:e,appComponent:t,configuration:r={},isReadOnly:n=!1,store:a,persistData:o=!0,mountOnInitialize:i=!0,layout:s="desktop",router:l})=>{const c=So(Bt.parse(r)),u=a||zve({proxyUrl:c.value.proxyUrl,theme:c.value.theme,showSidebar:c.value.showSidebar??!0,hideClientButton:c.value.hideClientButton??!1,_integration:c.value._integration,useLocalStorage:o}),d=eye({...u,router:l}),p=(({layout:e})=>({collapsedSidebarFolders:uo({}),isSidebarOpen:So("modal"!==e)}))({layout:s}),h=hTe({plugins:c.value.plugins??[]}),f=()=>{try{return typeof window<"u"&&void 0!==window.localStorage}catch{return!1}};if(f()&&localStorage.getItem(jL)&&!n)try{const e={};let t=0,r=0,n="";for(n in localStorage)Object.prototype.hasOwnProperty.call(localStorage,n)&&(r=2*(localStorage[n].length+n.length),t+=r,e[n]=(r/1024).toFixed(2)+" KB");e.Total=(t/1024).toFixed(2)+" KB",console.table(e),(e=>{const{collectionMutators:t,cookieMutators:r,environmentMutators:n,tagMutators:a,requestExampleMutators:o,requestMutators:i,serverMutators:s,securitySchemeMutators:l,workspaceMutators:c}=e;try{const{collections:e,cookies:u,environments:d,requestExamples:p,requests:h,servers:f,securitySchemes:m,tags:g,workspaces:v}=(()=>{const e=(()=>{const e=localStorage.getItem("collection"),t=localStorage.getItem($Ce);if(t)return t;if(!(null==e?void 0:e.length)||"{"===(null==e?void 0:e[0]))return"0.0.0";try{const[t]=Object.values(vve(e)??{});return"collection"===(null==t?void 0:t.type)?"2.1.0":"0.0.0"}catch(e){return console.error(e),"0.0.0"}})();console.info("Data version: "+e);let t={collections:RCe("collection"),cookies:RCe("cookie"),environments:RCe("environment"),requestExamples:RCe("requestExample"),requests:RCe("request"),securitySchemes:RCe("securityScheme"),servers:RCe("server"),tags:RCe("tag"),workspaces:RCe("workspace")};return MCe(e,"2.1.0")&&(t=(e=>{console.info("Performing data migration v-0.0.0 to v-2.1.0");const t={...e,folders:RCe("folder")},r=e=>e.reduce(((e,n)=>{var a;const o=t.requests[n];if(o)e.requestUids.add(n),null==(a=o.securitySchemeUids)||a.forEach((t=>e.authUids.add(t)));else if(t.folders[n]){const{requestUids:a,tagUids:o,authUids:i}=r(t.folders[n].childUids??[]);e.tagUids.add(n),a.forEach((t=>e.requestUids.add(t))),o.forEach((t=>e.tagUids.add(t))),i.forEach((t=>e.authUids.add(t)))}return e}),{requestUids:new Set,tagUids:new Set,authUids:new Set}),n={},a=Object.values(t.collections??{}).reduce(((e,a)=>{var o,i,s,l,c,u,d;const{requestUids:p,tagUids:h,authUids:f}=r(a.childUids??[]),m=[...new Set([...f,...Object.values(a.securitySchemeDict??{})])];p.forEach((e=>n[e]=m));const g=m.reduce(((e,r)=>{const n=t.securitySchemes[r];return(null==n?void 0:n.uid)&&e&&(e[r]=(e=>"apiKey"===e.type?{type:"apiKey",name:e.name,value:e.value??""}:"http"===e.type?{type:"http",username:e.value??"",password:e.secondValue??"",token:e.value??""}:"oauth2"===e.type&&"implicit"===e.flow.type?{type:"oauth-implicit",token:e.flow.token??""}:"oauth2"===e.type&&"password"===e.flow.type?{type:"oauth-password",token:e.flow.token??"",username:e.flow.value??"",password:e.flow.secondValue??"",clientSecret:e.flow.clientSecret??""}:"oauth2"===e.type&&"clientCredentials"===e.flow.type?{type:"oauth-clientCredentials",token:e.flow.token??"",clientSecret:e.flow.clientSecret??""}:"oauth2"===e.type&&"authorizationCode"===e.flow.type?{type:"oauth-authorizationCode",token:e.flow.token??"",clientSecret:e.flow.clientSecret??""}:{type:"apiKey",name:"",value:""})(n)),e}),{});return e[a.uid]={type:"collection",openapi:(null==(o=a.spec)?void 0:o.openapi)||"3.1.0",info:(null==(i=a.spec)?void 0:i.info)||{title:"OpenAPI Spec",version:"0.0.1"},security:(null==(s=a.spec)?void 0:s.security)||[],externalDocs:null==(l=a.spec)?void 0:l.externalDocs,uid:a.uid,securitySchemes:m,selectedSecuritySchemeUids:[],selectedServerUid:a.selectedServerUid||(null==(u=null==(c=a.spec)?void 0:c.serverUids)?void 0:u[0])||"",servers:(null==(d=a.spec)?void 0:d.serverUids)||[],requests:[...p],tags:[...h],auth:g,children:a.childUids||[],"x-scalar-icon":"interface-content-folder",watchMode:!1,watchModeStatus:"IDLE"},e}),{}),o=t.cookies??{},i=Object.values(t.environments??{}).reduce(((e,t)=>(e[t.uid]={...t,value:t.raw??""},e)),{}),s=Object.values(t.requests??{}).reduce(((e,t)=>{var r,a,o,i,s;const l=[...Object.values((null==(r=t.parameters)?void 0:r.path)??{}),...Object.values((null==(a=t.parameters)?void 0:a.query)??{}),...Object.values((null==(o=t.parameters)?void 0:o.headers)??{}),...Object.values((null==(i=t.parameters)?void 0:i.cookies)??{})].filter((e=>e)),c=(t.selectedSecuritySchemeUids||[]).filter((e=>{var r;return null==(r=n[t.uid])?void 0:r.includes(e)}));return e[t.uid]={...t,parameters:l,type:"request",method:(null==(s=t.method)?void 0:s.toLowerCase())??"get",examples:t.childUids||[],selectedSecuritySchemeUids:c,selectedServerUid:"",servers:[]},e}),{}),l=Object.values(t.requestExamples??{}).reduce(((e,t)=>(e[t.uid]={...t,type:"requestExample"},e)),{}),c=e=>{const t={refreshUrl:e.refreshUrl||"",selectedScopes:e.selectedScopes||[],scopes:e.scopes||{}};return"implicit"===e.type?{...e,...t,type:"implicit","x-scalar-redirect-uri":("redirectUri"in e?e.redirectUri:"")||""}:"password"===e.type||"clientCredentials"===e.type?{...e,...t,tokenUrl:e.tokenUrl||""}:{...e,...t,"x-usePkce":"no","x-scalar-redirect-uri":("redirectUri"in e?e.redirectUri:"")||"",authorizationUrl:e.authorizationUrl||"",tokenUrl:e.tokenUrl||""}},u=e=>{switch(null==e?void 0:e.type){case"apiKey":return`${yj(e.in)}`;case"http":return`${yj(e.scheme)} Authentication`;case"oauth2":return((e="")=>e.replace(/([A-Z]{2,})/g," $1").replace(/([A-Z])(?=[a-z])/g," $1").replace(/^./,(e=>e.toUpperCase())).trim())(e.flow.type);case"openIdConnect":return"Open ID Connect";default:return"None"}},d=Object.values(t.securitySchemes??{}).reduce(((e,t)=>(e[t.uid]="oauth2"===t.type?{...t,nameKey:u(t),"x-scalar-client-id":t.clientId||"",flow:c(t.flow)}:{...t,nameKey:u(t)},e)),{}),p=Object.values(t.servers??{}).reduce(((e,t)=>(e[t.uid]={...t,variables:t.variables??{}},e)),{});return{collections:a,cookies:o,environments:i,requestExamples:l,requests:s,securitySchemes:d,servers:p,tags:Object.values(t.folders??{}).reduce(((e,t)=>(e[t.uid]={type:"tag",uid:t.uid,name:t.name||"unknownTag",description:t.description,children:t.childUids||[],"x-scalar-children":[]},e)),{}),workspaces:Object.values(t.workspaces??{}).reduce(((e,t)=>(e[t.uid]={...t,description:t.description??"Basic Scalar Workspace",cookies:t.cookieUids||[],collections:t.collectionUids||[],environments:t.environmentUids||[]},e)),{})}})(t)),MCe(e,"2.2.0")&&(t=(e=>{console.info("Performing data migration v-2.1.0 to v-2.2.0");const t=Object.values(e.securitySchemes).reduce(((t,r)=>{var n;const a=Object.values(e.collections).find((e=>e.securitySchemes.includes(r.uid))),o=null==(n=null==a?void 0:a.auth)?void 0:n[r.uid];if(!o)return t;const i=((e,t)=>{if("apiKey"===e.type&&"apiKey"===t.type)return{...e,value:t.value};if("http"===e.type&&"http"===t.type)return{...e,username:t.username,password:t.password,token:t.token};if("oauth2"===e.type){const{flow:r,...n}=e;if("implicit"===r.type&&"oauth-implicit"===t.type)return{...n,flows:{implicit:{...r,scopes:r.scopes,token:t.token,"x-scalar-client-id":n["x-scalar-client-id"]}}};if("password"===r.type&&"oauth-password"===t.type)return{...n,flows:{password:{...r,username:t.username,password:t.password,token:t.token,clientSecret:t.clientSecret,scopes:r.scopes,"x-scalar-client-id":n["x-scalar-client-id"]}}};if("clientCredentials"===r.type&&"oauth-clientCredentials"===t.type)return{...n,flows:{clientCredentials:{...r,token:t.token,clientSecret:t.clientSecret,scopes:r.scopes,"x-scalar-client-id":n["x-scalar-client-id"]}}};if("authorizationCode"===r.type&&"oauth-authorizationCode"===t.type)return{...n,flows:{authorizationCode:{...r,token:t.token,clientSecret:t.clientSecret,scopes:r.scopes,"x-scalar-client-id":n["x-scalar-client-id"]}}}}return null})(r,o);return i&&(t[r.uid]=i),t}),{}),r=e.servers;return{...e,securitySchemes:t,servers:r}})(t)),MCe(e,"2.3.0")&&(t=(e=>{console.info("Performing data migration v-2.2.0 to v-2.3.0");const t=e.environments,r=Object.values(e.workspaces).reduce(((e,r)=>{const n={};return Object.entries(t).forEach((([e,t])=>{const r="string"==typeof t.value?JSON.parse(t.value):t.value;"default"===e&&Object.assign(n,r)})),e[r.uid]={...r,environments:n},e}),{}),n=Object.values(e.collections).reduce(((e,t)=>(e[t.uid]={...t,"x-scalar-environments":t["x-scalar-environments"]||{}},e)),{});return Object.values(r).forEach((e=>{Object.entries(t).forEach((([t,r])=>{if("default"!==t){const a="string"==typeof r.value?JSON.parse(r.value):r.value,o=r.name;Object.values(n).forEach((r=>{r["x-scalar-environments"]=r["x-scalar-environments"]||{},r["x-scalar-environments"][o]={variables:a},e.activeEnvironmentId===t&&(r["x-scalar-active-environment"]=o??"")}))}}))})),{...e,collections:n,workspaces:r}})(t)),MCe(e,"2.4.0")&&(t=(e=>{console.info("Performing data migration v-2.3.0 to v-2.4.0");const t=Object.values(e.collections).reduce(((t,r)=>{var n;return"Drafts"===(null==(n=r.info)?void 0:n.title)&&(r.servers=[],Object.values(e.requests).forEach((t=>{if(t.selectedServerUid&&r.requests.includes(t.uid)){const r=e.servers[t.selectedServerUid];r&&(t.path=`${r.url}${t.path}`),t.selectedServerUid=""}}))),t[r.uid]=r,t}),{});return{...e,collections:t}})(t)),MCe(e,"2.5.0")&&(t=(e=>{console.info("Performing data migration v-2.4.0 to v-2.5.0");const t=Object.entries(e.cookies||{}).reduce(((e,[t,r])=>(e[t]={...r,uid:r.uid},e)),{}),r=Object.entries(e.collections||{}).reduce(((e,[t,r])=>(e[t]={...r,info:r.info??{title:"API",version:"1.0"},uid:r.uid,selectedSecuritySchemeUids:r.selectedSecuritySchemeUids,servers:r.servers.map((e=>e)),tags:r.tags.map((e=>e)),requests:r.requests.map((e=>e)),children:r.children.map((e=>e)),selectedServerUid:r.selectedServerUid,useCollectionSecurity:!1},e)),{}),n=Object.entries(e.environments||{}).reduce(((e,[t,r])=>(e[t]={...r,uid:r.uid},e)),{}),a=Object.entries(e.requests||{}).reduce(((e,[t,r])=>(e[t]={...r,uid:r.uid,servers:r.servers,selectedServerUid:r.selectedServerUid,examples:r.examples,selectedSecuritySchemeUids:r.selectedSecuritySchemeUids},e)),{}),o=Object.entries(e.requestExamples||{}).reduce(((e,[t,r])=>{const n=r.parameters.headers;return n.some((e=>"accept"===e.key.toLowerCase()))||n.unshift({key:"Accept",value:"*/*",enabled:!0}),e[t]={...r,uid:r.uid,requestUid:r.requestUid,parameters:{...r.parameters,headers:n}},e}),{}),i=Object.entries(e.securitySchemes||{}).reduce(((e,[t,r])=>(e[t]={...r,uid:r.uid},e)),{}),s=Object.entries(e.servers||{}).reduce(((e,[t,r])=>(e[t]={...r,uid:r.uid,variables:Object.entries(r.variables||{}).reduce(((e,[t,r])=>{var n;return e[t]={default:r.default??"",description:r.description??"",...(null==(n=r.enum)?void 0:n.length)&&{enum:r.enum}},e}),{})},e)),{}),l=Object.entries(e.tags||{}).reduce(((e,[t,r])=>(e[t]={...r,uid:r.uid,children:r.children},e)),{}),c=Object.entries(e.workspaces||{}).reduce(((e,[t,r])=>(e[t]={...r,uid:r.uid,collections:r.collections.map((e=>e)),cookies:r.cookies.map((e=>e)),selectedHttpClient:{targetKey:"shell",clientKey:"curl"}},e)),{});return{...e,collections:r,cookies:t,environments:n,requests:a,requestExamples:o,securitySchemes:i,servers:s,tags:l,workspaces:c}})(t)),t={collections:Object.values(t.collections),cookies:Object.values(t.cookies),environments:Object.values(t.environments),requestExamples:Object.values(t.requestExamples),requests:Object.values(t.requests),securitySchemes:Object.values(t.securitySchemes),servers:Object.values(t.servers),tags:Object.values(t.tags),workspaces:Object.values(t.workspaces)},t})();NCe(e,Ege,t.rawAdd),NCe(u,EEe,r.add),NCe(d,wve,n.add),NCe(p,Hge,o.rawAdd),NCe(h,Jge,i.rawAdd),NCe(f,Dge,s.rawAdd),NCe(m,gge,l.rawAdd),NCe(g,kge,a.rawAdd),NCe(v,Qve,c.rawAdd),localStorage.setItem($Ce,DCe)}catch(e){console.error(e)}})(u)}catch(e){console.warn("Failed to load from localStorage:",e)}else if(n||c.value.url||c.value.content){const e=Qve.parse({uid:"default",name:"Workspace",proxyUrl:c.value.proxyUrl});u.workspaceMutators.rawAdd(e)}else if(u.workspaceMutators.add({uid:"default",name:"Workspace",proxyUrl:c.value.proxyUrl}),f())try{localStorage.setItem($Ce,DCe)}catch(e){console.warn("Failed to set localStorage version:",e)}const m=Du(t);m.use(l),m.provide(qve,u),m.provide(Cme,s),m.provide(tye,d),m.provide(xbe,p),m.provide(PCe,c),m.provide(fTe,h),m.config.idPrefix="scalar-client";const{collectionMutators:g,importSpecFile:v,importSpecFromUrl:b,modalState:y,requests:O,securitySchemes:w,securitySchemeMutators:x,servers:k,workspaceMutators:S,requestExampleMutators:_}=u,{activeCollection:E,activeWorkspace:T}=d,A=(t=e)=>{t?m.mount(t):console.error("[@scalar/api-client-modal] Could not create the API client.","Invalid HTML element provided.","Read more: https://github.com/scalar/scalar/tree/main/packages/api-client")};i&&A();const C=e=>{const t=((e,t)=>{const{requestUid:r,method:n,path:a}=t??{};if(r)return r;if(!a||!n)return Object.keys(e)[0];const o=Object.values(e),i=o.find((e=>e.path.toLowerCase()===a.toLowerCase()&&e.method.toLowerCase()===n.toLowerCase()));if(i)return i.uid;const{request:s}=((e,t,r)=>{let n=[];return{request:r.find((r=>{if(r.method.toLowerCase()!==t.toLowerCase())return!1;if(r.path===e)return!0;const a=(e=>{const t="^"+e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/\\\{([^}]+)\\\}/g,"([^/]+)")+"$";return new RegExp(t)})(r.path),o=e.match(a);return!!o&&(n=o.slice(1).flatMap(((e,t)=>{var n;const a=null==(n=r.path.split("{")[t+1])?void 0:n.split("}")[0];return a?[{key:a,value:e}]:[]})),!0)})),pathParams:n}})(a,n,o);return(null==s?void 0:s.uid)||Object.keys(e)[0]})(O,e);t?l.push({name:"request",query:null!=e&&e._source?{source:e._source}:{},params:{workspace:"default",request:t}}):console.warn("[@scalar/api-client] Could not find request for path and method",e)},P=()=>{var e;u.collectionMutators.reset(),u.requestMutators.reset(),u.requestExampleMutators.reset(),u.securitySchemeMutators.reset(),u.serverMutators.reset(),u.tagMutators.reset(),S.edit(null==(e=T.value)?void 0:e.uid,"collections",[])};return{app:m,resetStore:P,updateConfig:async e=>{var t,r;const a=Bt.parse(e);if(a.url||a.content||a.servers||a.authentication||a.slug||a.title||a.baseServerURL||a.proxyUrl||a.showSidebar){P();const e={...a,useCollectionSecurity:n};c.value=e,a.url?await b(a.url,(null==(t=T.value)?void 0:t.uid)??"default",e):a.content?await v(a.content,(null==(r=T.value)?void 0:r.uid)??"default",e):console.error("[@scalar/api-client-modal] Could not create the API client.",'Please provide an OpenAPI document: { url: "…" }',"Read more: https://github.com/scalar/scalar/tree/main/packages/api-client")}},updateServer:e=>{var t;const r=Object.values(k).find((t=>t.url===e));r&&E.value&&g.edit(null==(t=E.value)?void 0:t.uid,"selectedServerUid",r.uid)},onUpdateServer:e=>{ul((()=>{var e;return null==(e=E.value)?void 0:e.selectedServerUid}),(t=>{const r=Object.values(k).find((e=>e.uid===t));null!=r&&r.url&&e(r.url)}))},updateAuth:({nameKey:e,propertyKey:t,value:r})=>{const n=Object.values(w).find((t=>t.nameKey===e));n&&x.edit(n.uid,t,r)},route:C,open:e=>{const{method:t,path:r,requestUid:n}=e??{};(t&&r||n)&&C(e),y.open=!0},mount:A,modalState:y,store:u,updateExample:(e,t)=>{var r,n,a,o,i;if(!e||!t)return;const s=Object.values(O).find((({operationId:e,path:r})=>e===t||r===t));if(!s)return;const l=Object.keys((null==(r=s.requestBody)?void 0:r.content)||{})[0]||"",c=null==(i=null==(o=null==(a=null==(n=s.requestBody)?void 0:n.content)?void 0:a[l])?void 0:o.examples)?void 0:i[e];c&&_.edit(s.examples[0],"body.raw.value",rj(c.value))}}},LCe=So(null),jCe=()=>({client:LCe,init:async e=>{const t=await(async({el:e=null,configuration:t={},mountOnInitialize:r=!0,store:n})=>{const a={...t},o=ICe({el:e,appComponent:CCe,configuration:a,persistData:!1,isReadOnly:!0,store:n,mountOnInitialize:r,router:lme({history:xfe(),routes:Jbe}),layout:"modal"}),{importSpecFile:i,importSpecFromUrl:s}=o.store;return n||(t.url?await s(t.url,"default",{proxyUrl:t.proxyUrl,useCollectionSecurity:!0,...t}):t.content&&await i(t.content,"default",{useCollectionSecurity:!0,...t})),o})(e);return LCe.value=t,t}}),BCe=Li({__name:"ApiClientModal",props:{configuration:{},dereferencedDocument:{}},setup(e){const t=So(null),{client:r,init:n}=jCe(),{selectedExampleKey:a,operationId:o}={selectedExampleKey:jAe,operationId:BAe},i=rye(),s=Hve(),{isIntersectionEnabled:l}=lke(),c=()=>({name:"on-before-request",hooks:{onBeforeRequest:e.configuration.onBeforeRequest}});return Yi((()=>{t.value&&n({el:t.value,configuration:{...e.configuration,plugins:e.configuration.onBeforeRequest?[c]:[]},store:s})})),Fj((()=>e.dereferencedDocument),(t=>{var n,a;t&&(i.activeCollection.value&&(null==(n=r.value)||n.resetStore()),s.importSpecFile(void 0,"default",{dereferencedDocument:t,shouldLoad:!1,documentUrl:null==(a=e.configuration)?void 0:a.url,useCollectionSecurity:!0,...e.configuration}))})),Fj((()=>e.configuration),((t,r)=>{if(!r||!i.activeCollection.value)return;const n=i.activeCollection.value,a=DAe(r,t),o=a.some((e=>"url"===e.path[0]||"content"===e.path[0]||"url"===e.path[1]||"content"===e.path[1]));if(o);else if(a.forEach((e=>{"authentication"===e.path[0]&&LAe(e,i,s)})),t.servers||r.servers){n.servers.forEach((e=>{s.serverMutators.delete(e,n.uid)}));const r=Tve(t.servers??e.dereferencedDocument.servers,{baseServerURL:t.baseServerURL});r.forEach((e=>{s.serverMutators.add(e,n.uid)})),r.length&&s.collectionMutators.edit(n.uid,"selectedServerUid",r[r.length-1].uid)}l.value=!1,setTimeout((()=>{l.value=!0}),1e3)}),{deep:!0,debounce:300}),ul(a,(e=>{r.value&&e&&o.value&&r.value.updateExample(e,o.value)})),es((()=>{var e;return null==(e=r.value)?void 0:e.app.unmount()})),(e,r)=>(Pl(),Ml("div",{ref_key:"el",ref:t},null,512))}}),UCe=["method"],FCe=aye(Li({__name:"TestRequestButton",props:{method:{},path:{}},setup(e){const{client:t}=jCe(),r=Gxe(),n=hc((()=>!0!==r.value.hideTestRequestButton)),a=()=>{var r;null==(r=t.value)||r.open({method:e.method,path:e.path})};return(e,t)=>n.value?(Pl(),Ml("button",{key:0,class:"show-api-client-button",method:e.method,type:"button",onClick:Su(a,["stop"])},[Fl(Ao(oH),{class:"size-3",weight:"fill"}),t[0]||(t[0]=Ul("span",null,"Test Request",-1)),Fl(lSe,null,{default:ci((()=>[ql("("+Gn(e.method)+" "+Gn(e.path)+")",1)])),_:1})],8,UCe)):(Pl(),Ml(Sl,{key:1},[ql(" ")],64))}}),[["__scopeId","data-v-976c9c1f"]]),QCe={class:"operation-title"},zCe={class:"operation-details"},qCe={class:"endpoint-label"},HCe={class:"endpoint-label-path"},VCe={class:"endpoint-label-name"},ZCe={class:"endpoint-content"},WCe={class:"operation-details-card"},XCe={class:"operation-details-card-item"},GCe={class:"operation-details-card-item"},YCe={key:0,class:"operation-details-card-item"},KCe=aye(Li({__name:"ClassicLayout",props:{id:{},path:{},method:{},operation:{},oldOperation:{},isWebhook:{type:Boolean},server:{},securitySchemes:{},schemas:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=hc((()=>e.operation.summary||e.path||"")),{copyToClipboard:n}=VV(),{workspace:a}=_Te(),o=Gxe(),i=t,s=e=>{i("update:modelValue",e)};return(e,t)=>(Pl(),Nl(Ao(Hke),{id:e.id,class:"reference-endpoint",transparent:""},hs({title:ci((()=>[Ul("div",QCe,[Ul("div",zCe,[Fl(Ao(_ke),{class:"endpoint-type",method:e.method,short:""},null,8,["method"]),Fl(Ao(hSe),{id:e.id,class:"endpoint-anchor"},{default:ci((()=>[Ul("h3",qCe,[Ul("div",HCe,[Fl(ATe,{deprecated:Ao(dj)(e.operation),path:e.path},null,8,["deprecated","path"])]),Ul("div",VCe,Gn(r.value),1),Ao(pj)(e.operation)?(Pl(),Nl(Ao(eke),{key:0,class:zn(Ao(hj)(e.operation))},{default:ci((()=>[ql(Gn(Ao(pj)(e.operation)),1)])),_:1},8,["class"])):Vl("",!0),e.isWebhook?(Pl(),Nl(Ao(eke),{key:1,class:"font-code text-green flex w-fit items-center justify-center gap-1"},{default:ci((()=>[Fl(Ao(eV),{weight:"bold"}),t[1]||(t[1]=ql("Webhook "))])),_:1,__:[1]})):Vl("",!0)])])),_:1},8,["id"])])])])),actions:ci((({active:r})=>{var a;return[r&&!e.isWebhook?(Pl(),Nl(Ao(FCe),{key:0,method:e.method,path:e.path},null,8,["method","path"])):(null==(a=Ao(o))?void 0:a.hideTestRequestButton)?Vl("",!0):(Pl(),Nl(Ao(oH),{key:1,class:"endpoint-try-hint size-4.5"})),Fl(Ao(E5),{class:"endpoint-copy p-0.5",icon:Ao(Sq),label:"Copy endpoint URL",size:"xs",variant:"ghost",onClick:t[0]||(t[0]=Su((t=>Ao(n)(e.path)),["stop"]))},null,8,["icon"])]})),default:ci((()=>{var t;return[Ul("div",ZCe,[Ul("div",WCe,[Ul("div",XCe,[Fl(OAe,{parameters:e.oldOperation.parameters,requestBody:e.oldOperation.requestBody,schemas:e.schemas,"onUpdate:modelValue":s},null,8,["parameters","requestBody","schemas"])]),Ul("div",GCe,[Fl(wAe,{collapsableItems:!1,responses:e.oldOperation.responses,schemas:e.schemas},null,8,["responses","schemas"])]),(null==(t=e.operation)?void 0:t.callbacks)?(Pl(),Ml("div",YCe,[Fl(CAe,{method:e.method,path:e.path,callbacks:e.operation.callbacks,schemas:e.schemas},null,8,["method","path","callbacks","schemas"])])):Vl("",!0)]),Fl(Ao(eAe),{class:"operation-example-card",responses:e.operation.responses},null,8,["responses"]),Fl(Ao(rX),null,{default:ci((()=>[Fl(Ao(VTe),{class:"operation-example-card",method:e.method,selectedServer:e.server,selectedClient:Ao(a)["x-scalar-default-client"],securitySchemes:e.securitySchemes,path:e.path,fallback:"",operation:e.operation,"onUpdate:modelValue":s},null,8,["method","selectedServer","selectedClient","securitySchemes","path","operation"])])),_:1})])]})),_:2},[e.operation.description?{name:"description",fn:ci((()=>[Fl(Ao(D5),{value:e.operation.description,withImages:"",withAnchors:"",transformType:"heading",anchorPrefix:e.id},null,8,["value","anchorPrefix"])])),key:"0"}:void 0]),1032,["id"]))}}),[["__scopeId","data-v-043cd959"]]),JCe={class:"operation-details"},ePe={class:"examples"},tPe=aye(Li({__name:"ModernLayout",props:{id:{},path:{},method:{},operation:{},oldOperation:{},isWebhook:{type:Boolean},securitySchemes:{},server:{},schemas:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=hc((()=>e.operation.summary||e.path||"")),n=t,a=ji(),{workspace:o}=_Te(),i=Gxe(),s=e=>{n("update:modelValue",e)};return(e,t)=>(Pl(),Nl(Ao(Uke),{id:e.id,"aria-labelledby":Ao(a),label:r.value,tabindex:"-1"},{default:ci((()=>[Fl(Ao(nSe),{loading:Ao(i).isLoading},{default:ci((()=>[Ao(pj)(e.operation)?(Pl(),Nl(Ao(eke),{key:0,class:zn(["capitalize",Ao(hj)(e.operation)])},{default:ci((()=>[ql(Gn(Ao(pj)(e.operation)),1)])),_:1},8,["class"])):Vl("",!0),e.isWebhook?(Pl(),Nl(Ao(eke),{key:1,class:"font-code text-green flex w-fit items-center justify-center gap-1"},{default:ci((()=>[Fl(Ao(eV),{weight:"bold"}),t[0]||(t[0]=ql("Webhook "))])),_:1,__:[0]})):Vl("",!0),Ul("div",{class:zn(Ao(dj)(e.operation)?"deprecated":"")},[Fl(Ao(oSe),null,{default:ci((()=>[Fl(Ao(hSe),{id:e.id},{default:ci((()=>[Fl(Ao(iSe),{id:Ao(a),level:3},{default:ci((()=>[ql(Gn(r.value),1)])),_:1},8,["id"])])),_:1},8,["id"])])),_:1})],2),Fl(Ao(Xke),null,{default:ci((()=>[Fl(Ao(Zke),null,{default:ci((()=>[Ul("div",JCe,[Fl(Ao(D5),{value:e.operation.description,withImages:"",withAnchors:"",transformType:"heading",anchorPrefix:e.id},null,8,["value","anchorPrefix"]),Fl(OAe,{parameters:e.oldOperation.parameters,requestBody:e.oldOperation.requestBody,schemas:e.schemas,"onUpdate:modelValue":s},null,8,["parameters","requestBody","schemas"]),Fl(wAe,{responses:e.oldOperation.responses,schemas:e.schemas},null,8,["responses","schemas"]),Fl(Ao(rX),null,{default:ci((()=>[e.operation.callbacks?(Pl(),Nl(CAe,{key:0,class:"mt-6",path:e.path,callbacks:e.operation.callbacks,method:e.method,schemas:e.schemas},null,8,["path","callbacks","method","schemas"])):Vl("",!0)])),_:1})])])),_:1}),Fl(Ao(Zke),null,{default:ci((()=>[Ul("div",ePe,[Fl(Ao(rX),null,{default:ci((()=>[Fl(Ao(VTe),{method:e.method,selectedServer:e.server,securitySchemes:e.securitySchemes,selectedClient:Ao(o)["x-scalar-default-client"],path:e.path,fallback:"",operation:e.operation,"onUpdate:modelValue":s},hs({header:ci((()=>{var t;return[Fl(ATe,{class:"font-code text-c-2 [&_em]:text-c-1 [&_em]:not-italic",deprecated:null==(t=e.operation)?void 0:t.deprecated,path:e.path},null,8,["deprecated","path"])]})),_:2},[e.isWebhook?void 0:{name:"footer",fn:ci((()=>[Fl(Ao(FCe),{method:e.method,path:e.path},null,8,["method","path"])])),key:"0"}]),1032,["method","selectedServer","securitySchemes","selectedClient","path","operation"])])),_:1}),Fl(Ao(rX),null,{default:ci((()=>[Fl(Ao(eAe),{responses:e.operation.responses,style:{"margin-top":"12px"}},null,8,["responses"])])),_:1})])])),_:1})])),_:1})])),_:1},8,["loading"])])),_:1},8,["id","aria-labelledby","label"]))}}),[["__scopeId","data-v-789699aa"]]),rPe=Li({__name:"Operation",props:{path:{},method:{},isWebhook:{type:Boolean},layout:{default:"modern"},id:{},server:{},collection:{},document:{}},setup(e){var t,r;const{workspace:n}=_Te(),a=hc((()=>{var t,r,a;const o=e.isWebhook?"webhooks":"paths",i=null==(a=null==(r=null==(t=n.activeDocument)?void 0:t[o])?void 0:r[e.path])?void 0:a[e.method];return nP(i)?null:i})),o=hc((()=>{var t,r,n,a,o,i;return e.isWebhook?null==(n=null==(r=null==(t=e.document)?void 0:t.webhooks)?void 0:r[e.path])?void 0:n[e.method]:null==(i=null==(o=null==(a=e.document)?void 0:a.paths)?void 0:o[e.path])?void 0:i[e.method]})),{handleDiscriminatorChange:i}=function(e,t){var r,n,a;const o=null==(a=null==(n=null==(r=null==e?void 0:e.requestBody)?void 0:r.content)?void 0:n["application/json"])?void 0:a.schema,i=hc((()=>{return!(!(e=o)||!(e.discriminator||"array"===e.type&&e.items&&"object"==typeof e.items&&"discriminator"in e.items));var e})),s=i.value?function({schema:e,schemas:t,onSchemaChange:r}){const n=hc((()=>function(e){if(e)return"array"===e.type&&e.items&&"object"==typeof e.items&&!("$ref"in e.items)?e.items:e}(e))),a=hc((()=>function(e){var t;if(null==(t=null==e?void 0:e.discriminator)?void 0:t.mapping)return e.discriminator.mapping}(n.value))),o=hc((()=>a.value&&Object.keys(a.value)[0]||"")),i=So(o.value);ul(o,(e=>{e&&!i.value&&(i.value=e)}),{immediate:!0});const s=hc((()=>function(e){var t;return null==(t=null==e?void 0:e.discriminator)?void 0:t.propertyName}(n.value))),l=hc((()=>function(e){return void 0!==(null==e?void 0:e.discriminator)}(n.value))),c=hc((()=>{if(!n.value||!t||!i.value)return e;const a=function(e,t,r){var n;if(!(null==(n=e.discriminator)?void 0:n.mapping)||!t)return;const a=e.discriminator.mapping[t];if(!a)return;const o=a.split("/").pop();if(!o||!r[o])return;const i=r[o];if(i.allOf){const t={type:i.type||"object",properties:{},required:[],...e.title?{title:e.title}:{},...e.name?{name:e.name}:{}},n={},a=new Set;e.required&&e.required.forEach((e=>a.add(e)));for(const e of i.allOf)if("$ref"in e){const t=e.$ref.split("/").pop();if(t&&r[t]){const e=r[t];e.properties&&Object.assign(n,e.properties),e.required&&e.required.forEach((e=>a.add(e)))}}else"properties"in e&&(Object.assign(n,e.properties),"required"in e&&Array.isArray(e.required)&&e.required.forEach((e=>a.add(e))));return t.properties=n,t.required=Array.from(a),t}return{type:i.type||e.type,properties:{...e.properties||{},...i.properties||{}},required:[...e.required||[],...i.required||[]],discriminator:e.discriminator,...e.title?{title:e.title}:{},...e.name?{name:e.name}:{}}}(n.value,i.value,t);if(!a)return e;const o="array"===(null==e?void 0:e.type)?{type:"array",items:a,...e.title?{title:e.title}:{},...e.name?{name:e.name}:{}}:a;return null==r||r(o),o}));return{selectedType:i,discriminatorMapping:a,defaultType:o,discriminatorPropertyName:s,hasDiscriminator:l,mergedSchema:c,generateExampleValue:(e=!1)=>{if(!c.value)return e?[]:{};const t={},r="array"===c.value.type?c.value.items:c.value;"properties"in r&&r.properties&&Object.entries(r.properties).forEach((([e,r])=>{const n=r;null!==n&&(t[e]=(e=>{if("default"in e)return e.default;if("example"in e)return e.example;switch(e.type){case"string":return"";case"integer":case"number":return e.nullable?null:0;case"boolean":return!1;case"array":return[];case"object":return{};default:return null}})(n))})),s.value&&i.value&&(t[s.value]=i.value);const n=e?[t]:t;return JSON.parse(JSON.stringify(n))}}}({schema:o,schemas:t,onSchemaChange:t=>{var r,n;(null==(n=null==(r=null==e?void 0:e.requestBody)?void 0:r.content)?void 0:n["application/json"])&&(e.requestBody.content["application/json"].schema=t)}}):{selectedType:So(""),discriminatorMapping:hc((()=>({}))),discriminatorPropertyName:hc((()=>"")),hasDiscriminator:hc((()=>!1)),mergedSchema:hc((()=>o)),generateExampleValue:()=>({})},{selectedType:l,discriminatorMapping:c,discriminatorPropertyName:u,hasDiscriminator:d,mergedSchema:p,generateExampleValue:h}=s;if(i.value){const e=hc((()=>({selectedType:l.value||void 0,discriminatorMapping:c.value||{},discriminatorPropertyName:u.value||"",hasDiscriminator:d.value,mergedSchema:p.value})));js(XSe,e),js(GSe,{generateExampleValue:h})}else js(XSe,hc((()=>null))),js(GSe,{generateExampleValue:()=>({})});return{hasSchemaDiscriminator:i,handleDiscriminatorChange:e=>{i.value&&(l.value=e)}}}(o.value,null==(r=null==(t=e.document)?void 0:t.components)?void 0:r.schemas),{securitySchemes:s}=Hve(),l=hc((()=>{var t,r;return((e,t=[],r={})=>{const n=new Set(e.map((e=>Object.keys(e).sort().join(","))));return t.reduce(((e,t)=>{const a=Array.isArray(t)?t:[t],o=a.map((e=>{var t;return null==(t=r[e])?void 0:t.nameKey})).sort().join(",");return n.has(o)&&e.push(...a.map((e=>r[e])).filter(mj)),e}),[])})((null==(t=a.value)?void 0:t.security)||(null==(r=e.document)?void 0:r.security),e.collection.selectedSecuritySchemeUids,s).map(kTe)}));return(e,t)=>{var r,n,s,c;return a.value?(Pl(),Ml(Sl,{key:0},["classic"===e.layout?(Pl(),Nl(KCe,{key:0,id:e.id,isWebhook:e.isWebhook,method:e.method,operation:a.value,oldOperation:o.value,securitySchemes:l.value,path:e.path,schemas:null==(n=null==(r=e.document)?void 0:r.components)?void 0:n.schemas,server:e.server,"onUpdate:modelValue":Ao(i)},null,8,["id","isWebhook","method","operation","oldOperation","securitySchemes","path","schemas","server","onUpdate:modelValue"])):(Pl(),Nl(tPe,{key:1,id:e.id,isWebhook:e.isWebhook,method:e.method,oldOperation:o.value,securitySchemes:l.value,path:e.path,operation:a.value,schemas:null==(c=null==(s=e.document)?void 0:s.components)?void 0:c.schemas,server:e.server,"onUpdate:modelValue":Ao(i)},null,8,["id","isWebhook","method","oldOperation","securitySchemes","path","operation","schemas","server","onUpdate:modelValue"]))],64)):Vl("",!0)}}}),nPe=aye(Li({__name:"TagAccordion",props:{tag:{}},setup(e){const{getTagId:t}=lke();return(e,r)=>(Pl(),Nl(Ao(eSe),{class:"tag-section"},{title:ci((()=>[Fl(Ao(oSe),{class:"tag-name"},{default:ci((()=>[Fl(Ao(hSe),{id:Ao(t)(e.tag)},{default:ci((()=>[Fl(Ao(iSe),{level:2},{default:ci((()=>[ql(Gn(e.tag.name),1)])),_:1})])),_:1},8,["id"])])),_:1}),Fl(Ao(D5),{class:"tag-description",value:e.tag.description,withImages:""},null,8,["value"])])),default:ci((()=>[fs(e.$slots,"default",{},void 0,!0)])),_:3}))}}),[["__scopeId","data-v-ab8ddc14"]]),aPe=Li({__name:"TagList",props:{id:{},document:{},collection:{},tags:{},spec:{},layout:{},server:{}},setup(e){const{getTagId:t,hash:r}=lke(),{collapsedSidebarItems:n}=xke(),a=hc((()=>"classic"===e.layout?nPe:gEe)),o=hc((()=>e.tags.findIndex((e=>!n[t(e)]))+1)),i=t=>"classic"!==e.layout&&!r.value.startsWith("model")&&t>o.value;return(e,r)=>(Pl(!0),Ml(Sl,null,ps(e.tags,((r,o)=>(Pl(),Nl(Ao(WSe),{id:e.id||Ao(t)(r),key:e.id||Ao(t)(r),isLazy:i(o)},{default:ci((()=>[(Pl(),Nl(cs(a.value),{id:e.id||Ao(t)(r),collection:e.collection,spec:e.spec,tag:r},{default:ci((()=>[(Pl(!0),Ml(Sl,null,ps(r.operations,((a,s)=>(Pl(),Nl(Ao(WSe),{id:a.id,key:a.id,isLazy:i(o)||Ao(n)[Ao(t)(r)]&&s>0},{default:ci((()=>[Fl(Ao(rX),null,{default:ci((()=>[Fl(Ao(rPe),{path:a.path,method:a.httpVerb,isWebhook:a.isWebhook,id:a.id,document:e.document,collection:e.collection,layout:e.layout,server:e.server},null,8,["path","method","isWebhook","id","document","collection","layout","server"])])),_:2},1024)])),_:2},1032,["id","isLazy"])))),128))])),_:2},1032,["id","collection","spec","tag"]))])),_:2},1032,["id","isLazy"])))),128))}});function oPe(e){var t,r;try{const n=null==(r=null==(t=null==e?void 0:e.requestBody)?void 0:t.content)?void 0:r["application/json"];if(!n)throw new Error("Body not found");return function(e){var t;const r=["Body"],n=null==(t=null==e?void 0:e.schema)?void 0:t.properties;return n&&Object.keys(n).forEach((t=>{if(!e.schema)return;r.push(function(e,t){var r;let n=e;return n+=(null==(r=t.required)?void 0:r.includes(e))?" REQUIRED ":" optional ",t.properties[e]&&(n+=t.properties[e].type,t.properties[e].description&&(n+=" "+t.properties[e].description)),n}(t,e.schema));const a=n[t];"object"===a.type&&a.properties&&a.properties&&Object.keys(a.properties).forEach((e=>{var t,n;r.push(`${e} ${null==(n=null==(t=a.properties)?void 0:t[e])?void 0:n.type}`)}))})),r}(n)}catch(e){return!1}}function iPe(e){var t,r;if(!e)return{};const n=Object.keys((null==(t=null==e?void 0:e.components)?void 0:t.schemas)??{}).length?null==(r=null==e?void 0:e.components)?void 0:r.schemas:{};return Object.keys(n??{}).forEach((e=>{var t,r;!0!==(null==(t=n[e])?void 0:t["x-internal"])&&!0!==(null==(r=n[e])?void 0:r["x-scalar-ignore"])||delete n[e]})),n}function sPe(e,t){for(const[r,n]of Object.entries(e))null!==n&&"object"==typeof n?(t[r]??(t[r]=new n.__proto__.constructor),sPe(n,t[r])):void 0!==n&&(t[r]=n);return t}function lPe(e){return sPe({},{info:{title:"",description:"",termsOfService:"",version:"",license:{name:"",url:""},contact:{email:""}},servers:[],tags:[]})}function cPe(e){const t={path:[],query:[],header:[],cookie:[],body:[],formData:[]};e.pathParameters&&e.pathParameters.forEach((e=>{"path"===e.in?t.path.push(e):"query"===e.in?t.query.push(e):"header"===e.in?t.header.push(e):"cookie"===e.in?t.cookie.push(e):"body"===e.in?t.body.push(e):"formData"===e.in&&t.formData.push(e)}));const r=e.parameters??[];return r&&r.forEach((e=>{(e=>"object"==typeof e&&null!==e&&!("$ref"in e&&"string"==typeof e.$ref))(e)&&("path"===e.in?t.path.push(e):"query"===e.in?t.query.push(e):"header"===e.in?t.header.push(e):"cookie"===e.in?t.cookie.push(e):"body"===e.in?t.body.push(e):"formData"===e.in&&t.formData.push(e))})),t}const uPe=So(!1),dPe=Li({__name:"Loading",props:{document:{},collection:{},server:{},layout:{default:"modern"},parsedSpec:{}},setup(e){const t=So(!1),r=So([]),n=So([]),{getModelId:a,getSectionId:o,getTagId:i,hash:s,isIntersectionEnabled:l}=lke(),c=So(!uPe.value&&"classic"!==e.layout&&s.value);ul((()=>{var t;return null==(t=e.parsedSpec.tags)?void 0:t.length}),(a=>{var c,u;if(!s.value||"number"!=typeof a||!e.parsedSpec.tags)return;const d=o();if(d.startsWith("tag")){let n=0;const a=(null==(c=e.parsedSpec.tags)?void 0:c.findIndex((e=>i(e)===d)))??0;n=null==(u=e.parsedSpec.tags[a])?void 0:u.operations.findIndex((({id:e})=>e===s.value));const o=e.parsedSpec.tags[a];if(!o)return;"default"!==o.name&&(t.value=d!==s.value&&d.startsWith("tag")),r.value.push({...o,lazyOperations:o.operations.slice(n,n+2).map((e=>({...e,id:"lazy-"+e.id})))}),s.value.includes("/description/")&&("undefined"!=typeof window&&yke(s.value),setTimeout((()=>l.value=!0),1e3))}else if(s.value.startsWith("model")){const t=Object.keys(iPe(e.document)??{}),[,r]=s.value.toLowerCase().split("/"),a="models"===s.value?0:t.findIndex((e=>e.toLowerCase()===r));if(-1===a)return;n.value=t.slice(a,a+3)}else"undefined"!=typeof window&&yke(s.value),setTimeout((()=>l.value=!0),1e3)}),{immediate:!0});const u=cke.on((({id:e})=>{const t=s.value;t&&e===t&&(u(),setTimeout((()=>{"undefined"!=typeof window&&yke(t),c.value=!1,uPe.value=!0,setTimeout((()=>{l.value=!0}),1e3)}),300))}));return Yi((()=>{s.value||(uPe.value=!0,setTimeout((()=>{l.value=!0}),1e3))})),(e,o)=>ui((Pl(),Ml("div",{class:zn(["references-loading",{"references-loading-hidden-tag":t.value,"references-loading-top-spacer":r.value.length}])},[(Pl(!0),Ml(Sl,null,ps(r.value,((t,r)=>(Pl(),Ml(Sl,{key:t.name+r},[t.operations&&t.operations.length>0?(Pl(),Nl(Ao(gEe),{key:0,collection:e.collection,spec:e.parsedSpec,id:"lazy-{{ getTagId(tag) }}",tag:t},{default:ci((()=>[(Pl(!0),Ml(Sl,null,ps(t.lazyOperations,(t=>(Pl(),Nl(Ao(rPe),{path:t.path,method:t.httpVerb,isWebhook:t.isWebhook,key:t.id,id:t.id,collection:e.collection,layout:e.layout,server:e.server},null,8,["path","method","isWebhook","id","collection","layout","server"])))),128))])),_:2},1032,["collection","spec","tag"])):Vl("",!0)],64)))),128)),n.value.length?(Pl(),Nl(Ao(Yke),{key:0},{default:ci((()=>[(Pl(!0),Ml(Sl,null,ps(n.value,(t=>(Pl(),Nl(Ao(Uke),{key:t,label:t},{default:ci((()=>{var r;return[(null==(r=Ao(iPe)(e.document))?void 0:r[t])?(Pl(),Nl(Ao(nSe),{key:0},{default:ci((()=>{var r;return[Fl(Ao(oSe),null,{default:ci((()=>[Fl(Ao(hSe),{id:"lazy-"+Ao(a)({name:t})},{default:ci((()=>[Fl(Ao(iSe),{level:2},{default:ci((()=>{var r;return[ql(Gn((null==(r=Ao(iPe)(e.document))?void 0:r[t]).title??t),1)]})),_:2},1024)])),_:2},1032,["id"])])),_:2},1024),Fl(Ao(cEe),{name:t,noncollapsible:"",value:null==(r=Ao(iPe)(e.document))?void 0:r[t]},null,8,["name","value"])]})),_:2},1024)):Vl("",!0)]})),_:2},1032,["label"])))),128))])),_:1})):Vl("",!0)],2)),[[Fc,c.value]])}}),pPe=aye(Li({__name:"Models",props:{schemas:{}},setup(e){const t=e,r=ji(),{collapsedSidebarItems:n}=xke(),{getModelId:a}=lke(),o=hc((()=>Object.keys(t.schemas??{}).length<=10||n[a()])),i=hc((()=>{const e=Object.keys(t.schemas??{});return o.value?e:e.slice(0,10)}));return(e,t)=>e.schemas?(Pl(),Nl(Ao(Yke),{key:0,id:"models"},{default:ci((()=>[Fl(Ao(Uke),{"aria-labelledby":Ao(r)},{default:ci((()=>[Fl(Ao(oSe),null,{default:ci((()=>[Fl(Ao(iSe),{id:Ao(r),level:2},{default:ci((()=>t[0]||(t[0]=[ql(" Models ")]))),_:1,__:[0]},8,["id"])])),_:1}),Fl(Ao(WSe),{id:"models",isLazy:!1}),Ul("div",{class:zn(["models-list",{"models-list-truncated":!o.value}])},[(Pl(!0),Ml(Sl,null,ps(i.value,(t=>(Pl(),Nl(Ao(WSe),{id:Ao(a)({name:t}),key:t,isLazy:""},{default:ci((()=>[Fl(Ao(gSe),{id:Ao(a)({name:t}),class:"models-list-item",label:t},{heading:ci((()=>[Fl(Ao(iSe),{level:3},{default:ci((()=>{var r;return[Fl(Ao(t_e),{name:e.schemas[t].title??(null==(r=e.schemas[t].xml)?void 0:r.name)??t,value:e.schemas[t]},null,8,["name","value"])]})),_:2},1024)])),default:ci((()=>[Fl(Ao(rX),null,{default:ci((()=>[Fl(Ao(cEe),{noncollapsible:"",hideHeading:!0,hideModelNames:!0,schemas:e.schemas,level:1,value:e.schemas[t]},null,8,["schemas","value"])])),_:2},1024)])),_:2},1032,["id","label"])])),_:2},1032,["id"])))),128))],2),o.value?Vl("",!0):(Pl(),Nl(mEe,{key:0,id:Ao(a)(),class:"show-more-models"},null,8,["id"]))])),_:1},8,["aria-labelledby"])])),_:1})):Vl("",!0)}}),[["__scopeId","data-v-3d574132"]]),hPe={key:0,class:"properties"},fPe={key:1},mPe=aye(Li({__name:"ModelsAccordion",props:{schemas:{}},setup(e){const t=e,r=hc((()=>t.schemas?Object.entries(t.schemas).map((([e,t])=>({name:e,schema:t}))):[])),{getModelId:n}=lke();return(e,a)=>t.schemas?(Pl(),Nl(Ao(eSe),{key:0,class:"reference-models"},{title:ci((()=>[Fl(Ao(oSe),{level:2},{default:ci((()=>a[0]||(a[0]=[ql("Models")]))),_:1,__:[0]})])),default:ci((()=>[(Pl(!0),Ml(Sl,null,ps(r.value,(({name:e,schema:t})=>(Pl(),Nl(Ao(Hke),{id:Ao(n)({name:e}),key:e,label:e},{title:ci((()=>[Fl(Ao(hSe),{id:Ao(n)({name:e}),class:"reference-models-anchor"},{default:ci((()=>[Fl(Ao(iSe),{level:3},{default:ci((()=>[Fl(Ao(t_e),{class:"reference-models-label",name:t.title??e,value:t},null,8,["name","value"])])),_:2},1024)])),_:2},1032,["id"])])),default:ci((()=>[(null==t?void 0:t.properties)?(Pl(),Ml("div",hPe,[(Pl(!0),Ml(Sl,null,ps(Object.entries(t.properties),(([e,r])=>{var n,a,o;return Pl(),Nl(Ao(aEe),{key:e,name:e,required:(null==(n=t.required)?void 0:n.includes(e))||!0===(null==(o=null==(a=t.properties)?void 0:a[e])?void 0:o.required),value:r},null,8,["name","required","value"])})),128))])):(Pl(),Ml("div",fPe,[Fl(Ao(aEe),{value:t},null,8,["value"])]))])),_:2},1032,["id","label"])))),128))])),_:1})):Vl("",!0)}}),[["__scopeId","data-v-ce1dd773"]]),gPe={class:"narrow-references-container"},vPe={key:0,class:"scalar-reference-intro-server scalar-client introduction-card-item text-base leading-normal [--scalar-address-bar-height:0px]"},bPe={key:1,class:"scalar-reference-intro-auth scalar-client introduction-card-item leading-normal"},yPe=Li({__name:"Content",props:{document:{},parsedSpec:{},layout:{default:"modern"}},setup(e){const t=e,r=Gxe(),{collections:n,securitySchemes:a,servers:o}=Hve(),{activeCollection:i,activeEnvVariables:s,activeEnvironment:l,activeWorkspace:c}=rye(),u=hc((()=>{if(r.value.slug){const e=n[_ve(r.value.slug)];if(e)return e}return i.value})),d=hc((()=>{if(u.value){if(u.value.selectedServerUid){const e=o[u.value.selectedServerUid];if(e)return e}return o[u.value.servers[0]]}})),p=hc((()=>"classic"===t.layout?"after":"aside"));return(e,t)=>{var n,o,i,h,f,m,g,v,b,y,O;return Pl(),Ml(Sl,null,[t[0]||(t[0]=Hl('<div class="section-flare" data-v-848f1f5e><div class="section-flare-item" data-v-848f1f5e></div><div class="section-flare-item" data-v-848f1f5e></div><div class="section-flare-item" data-v-848f1f5e></div><div class="section-flare-item" data-v-848f1f5e></div><div class="section-flare-item" data-v-848f1f5e></div><div class="section-flare-item" data-v-848f1f5e></div><div class="section-flare-item" data-v-848f1f5e></div><div class="section-flare-item" data-v-848f1f5e></div></div>',1)),Ul("div",gPe,[fs(e.$slots,"start",{},void 0,!0),u.value?(Pl(),Nl(Ao(dPe),{key:0,document:e.document,collection:u.value,layout:e.layout,parsedSpec:e.parsedSpec,server:d.value},null,8,["document","collection","layout","parsedSpec","server"])):Vl("",!0),(null==(o=null==(n=e.document)?void 0:n.info)?void 0:o.title)||(null==(h=null==(i=e.document)?void 0:i.info)?void 0:h.description)?(Pl(),Nl(Ao(ZSe),{key:1,document:e.document},{[p.value]:ci((()=>[Fl(Ao(rX),null,{default:ci((()=>{var t,n,o;return[Ul("div",{class:zn(["introduction-card",{"introduction-card-row":"classic"===e.layout}])},[(null==(n=null==(t=u.value)?void 0:t.servers)?void 0:n.length)?(Pl(),Ml("div",vPe,[Fl(Ao(Kxe),{collection:u.value,server:d.value},null,8,["collection","server"])])):Vl("",!0),u.value&&Ao(c)&&Object.keys(Ao(a)??{}).length?(Pl(),Ml("div",bPe,[Fl(Ao(pOe),{collection:u.value,envVariables:Ao(s),environment:Ao(l),layout:"reference",persistAuth:Ao(r).persistAuth,selectedSecuritySchemeUids:(null==(o=u.value)?void 0:o.selectedSecuritySchemeUids)??[],server:d.value,title:"Authentication",workspace:Ao(c)},null,8,["collection","envVariables","environment","persistAuth","selectedSecuritySchemeUids","server","workspace"])])):Vl("",!0),Fl(Ao(qxe),{class:"introduction-card-item scalar-reference-intro-clients"})],2)]})),_:1})])),_:2},1032,["document"])):fs(e.$slots,"empty-state",{key:2},void 0,!0),e.parsedSpec.tags&&u.value?(Pl(),Ml(Sl,{key:3},[e.parsedSpec["x-tagGroups"]?(Pl(!0),Ml(Sl,{key:0},ps(e.parsedSpec["x-tagGroups"],(t=>(Pl(),Nl(Ao(aPe),{document:e.document,key:t.name,collection:u.value,layout:e.layout,server:d.value,spec:e.parsedSpec,tags:t.tags.map((t=>{var r;return null==(r=e.parsedSpec.tags)?void 0:r.find((e=>e.name===t))})).filter((e=>!!e))},null,8,["document","collection","layout","server","spec","tags"])))),128)):(Pl(),Nl(Ao(aPe),{key:1,collection:u.value,document:e.document,layout:e.layout,server:d.value,spec:e.parsedSpec,tags:e.parsedSpec.tags},null,8,["collection","document","layout","server","spec","tags"]))],64)):Vl("",!0),(null==(f=e.parsedSpec.webhooks)?void 0:f.length)&&u.value?(Pl(),Nl(Ao(aPe),{key:4,document:e.document,id:"webhooks",collection:u.value,layout:e.layout,server:d.value,spec:e.parsedSpec,tags:[{name:"Webhooks",description:"",operations:e.parsedSpec.webhooks}]},null,8,["document","collection","layout","server","spec","tags"])):Vl("",!0),(null==(g=null==(m=e.document)?void 0:m.components)?void 0:g.schemas)&&!Ao(r).hideModels?(Pl(),Ml(Sl,{key:5},["classic"===e.layout?(Pl(),Nl(Ao(mPe),{key:0,schemas:null==(b=null==(v=e.document)?void 0:v.components)?void 0:b.schemas},null,8,["schemas"])):(Pl(),Nl(Ao(pPe),{key:1,schemas:null==(O=null==(y=e.document)?void 0:y.components)?void 0:O.schemas},null,8,["schemas"]))],64)):Vl("",!0),fs(e.$slots,"end",{},void 0,!0)])],64)}}}),OPe=aye(yPe,[["__scopeId","data-v-848f1f5e"]]),wPe={class:"start custom-scroll"},xPe={class:"start-copy"},kPe={class:"start-cta"},SPe={class:"start-row"},_Pe={class:"start-section start-section-colors"},EPe=["onClick"],TPe=aye(Li({__name:"GettingStarted",props:{theme:{}},emits:["changeTheme","loadSwaggerFile","linkSwaggerFile","updateContent"],setup(e,{emit:t}){const r=t,n=["default","alternate","moon","purple","solarized","bluePlanet","saturn","kepler","mars","deepSpace"];async function a(){const e=await fetch("https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml");r("updateContent",await e.text())}return(e,t)=>(Pl(),Ml("div",wPe,[Ul("div",xPe,[t[3]||(t[3]=Hl('<div class="start-logo" data-v-0aca3a20><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-0aca3a20></path></svg></div><h1 class="start-h1" data-v-0aca3a20>Swagger Editor</h1><p class="start-p" data-v-0aca3a20> Welcome to the Scalar API References + Swagger Editor, a Free & Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>',3)),Ul("div",kPe,[Fl(Ao(iz),{fullWidth:"",onClick:a},{default:ci((()=>t[1]||(t[1]=[ql(" Show Example ")]))),_:1,__:[1]}),Fl(Ao(iz),{fullWidth:"",variant:"outlined",onClick:t[0]||(t[0]=t=>e.$emit("loadSwaggerFile"))},{default:ci((()=>t[2]||(t[2]=[ql(" Upload File ")]))),_:1,__:[2]})])]),Ul("div",SPe,[t[5]||(t[5]=Hl('<div class="start-section start-section-integrations" data-v-0aca3a20><div class="start-h2" data-v-0aca3a20>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/integrations/fastify#readme" target="_blank" data-v-0aca3a20><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-0aca3a20></path></svg><span data-v-0aca3a20>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/documentation/integrations/html-js.md#html" target="_blank" data-v-0aca3a20><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><g data-v-0aca3a20><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-0aca3a20></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-0aca3a20></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-0aca3a20></path></g></svg><span data-v-0aca3a20>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference/README.md#vuejs" target="_blank" data-v-0aca3a20><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><g fill="currentColor" fill-rule="nonzero" data-v-0aca3a20><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-0aca3a20></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-0aca3a20></polygon></g></svg><span data-v-0aca3a20>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference-react/README.md#usage" target="_blank" data-v-0aca3a20><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><g fill="none" fill-rule="evenodd" data-v-0aca3a20><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-0aca3a20></circle><g stroke="currentColor" data-v-0aca3a20><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-0aca3a20></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-0aca3a20></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-0aca3a20></ellipse></g></g></svg><span data-v-0aca3a20>React</span></a></div>',1)),Ul("div",_Pe,[t[4]||(t[4]=Ul("p",{class:"start-h2"},"THEMING",-1)),(Pl(),Ml(Sl,null,ps(n,(t=>Ul("div",{key:t,class:zn(["start-item",{"start-item-active":t===e.theme}]),onClick:r=>e.$emit("changeTheme",{id:t,label:Ao(Ive)[t]})},Gn(Ao(Ive)[t]),11,EPe))),64))])]),t[6]||(t[6]=Hl('<p class="start-h1" data-v-0aca3a20>Features</p><ul class="start-ul" data-v-0aca3a20><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Customize</p> Bring your typography & color palettes, or use our themes! </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Testing</p> A deeply integrated Rest API Client (Also Free & Open-Source) </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>OpenAPI & Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>',2))]))}}),[["__scopeId","data-v-0aca3a20"]]),APe={class:"references-mobile-header t-doc__header"},CPe={class:"references-mobile-breadcrumbs"},PPe={class:"references-mobile-header-actions"},DPe=aye(Li({__name:"MobileHeader",props:{breadcrumb:{}},setup(e){const{isSidebarOpen:t}=xke();return(e,r)=>(Pl(),Ml("div",APe,[Fl(Ao(E5),{icon:Ao(t)?"Close":"Menu",label:Ao(t)?"Close Menu":"Open Menu",size:"md",onClick:r[0]||(r[0]=e=>t.value=!Ao(t))},null,8,["icon","label"]),Ul("span",CPe,Gn(e.breadcrumb),1),Ul("div",PPe,[fs(e.$slots,"actions",{},void 0,!0)])]))}}),[["__scopeId","data-v-fa8b013a"]]);function $Pe({originalDocument:e,dereferencedDocument:t,configuration:r}){const{originalDocument:n}=function({configuration:e}){const t=So("");return ul((()=>Co(e)),(async r=>{var n;if(!r)return;const a=await(async({url:e,content:t},r)=>{if(e&&!t)try{const t=await Oke(`fetch(${e})`,(async()=>await ej(e,r)));return console.info("size:",Math.round(t.length/1024),"kB"),t}catch(e){console.error("Failed to fetch OpenAPI document from URL:",e)}const n="function"==typeof t?t():t;return"string"==typeof n?n:"object"==typeof n?rj(n):void 0})(r,null==(n=Co(e))?void 0:n.proxyUrl);"string"==typeof a&&(t.value=a.trim())}),{immediate:!0,deep:!0}),{originalDocument:t}}({configuration:r}),a=hc((()=>Co(e||n))),o=So(""),i=hc((()=>Co(t||s))),s=So({openapi:"3.1.0",info:{title:"",version:""},paths:{}});ul((()=>Co(a)),(async e=>{if(!e)return;const r=_f(e);if(void 0===r)return void console.error("Failed to parse the OpenAPI document:",e);if(o.value="object"==typeof r&&(r.openapi||r.swagger)||"",t)return;const n=o.value.startsWith("3.1")?r:Oke("upgrade",(()=>{const{specification:e}=Ff(r);return e})),a=await Oke("dereference",(async()=>{const{schema:e,errors:t}=await $f(n);return(null==t?void 0:t.length)&&console.warn("Please open an issue on https://github.com/scalar/scalar\n","Scalar OpenAPI Parser Warning:\n",t),void 0===e&&console.error("Failed to dereference the OpenAPI document",t),e}));s.value=a}),{immediate:!0});const l=zve({useLocalStorage:!1,...Co(r)??zt.parse({})}),c=eye(l);return{originalDocument:a,originalOpenApiVersion:o,dereferencedDocument:i,workspaceStore:l,activeEntitiesStore:c}}const RPe={class:"sr-only"},MPe={class:"inline-flex items-center gap-1"},NPe={class:"sr-only"},IPe=aye(Li({__name:"SearchModal",props:{parsedSpec:{},modalState:{},hideModels:{type:Boolean}},setup(e){const t=e,r=Io(t,"parsedSpec"),n=QW(),a=`${n}-search-result`,o=`${n}-search-instructions`,i=e=>`${n}${e}`,{resetSearch:s,fuseSearch:l,selectedSearchIndex:c,selectedSearchResult:u,searchResultsWithPlaceholderResults:d,searchText:p}=function({specification:e,hideModels:t=!1}){const{getHeadingId:r,getModelId:n,getTagId:a}=lke(),o=So([]),i=So([]),s=So(),l=So(""),c=new Ihe(o.value,{keys:[{name:"title",weight:.7},{name:"description",weight:.3},{name:"body",weight:.2},{name:"operationId",weight:.6},{name:"path",weight:.5},{name:"tag",weight:.4},{name:"httpVerb",weight:.3}],threshold:.3,distance:100,includeScore:!0,includeMatches:!0,minMatchCharLength:2,ignoreLocation:!0,useExtendedSearch:!0,findAllMatches:!0}),u=()=>{s.value=0,i.value=c.search(l.value)};ul(l,(e=>{e.length?u():i.value=[]}));const d=hc((()=>0===l.value.length?o.value.slice(0,25).map((e=>({item:e}))):i.value.slice(0,25))),p=hc((()=>"number"==typeof s.value?d.value[s.value]:void 0));return ul(e,(e=>{var i,s,l;o.value=[];const u=[],d=uke((null==(i=null==e?void 0:e.info)?void 0:i.description)??"");if(d.length&&(d.forEach((e=>{u.push({type:"heading",title:e.value,description:"Introduction",href:`#${r(e)}`,tag:e.slug,body:""})})),o.value=o.value.concat(u)),null==(s=null==e?void 0:e.tags)?void 0:s.length)null==(l=null==e?void 0:e.tags)||l.forEach((e=>{const t={title:e["x-displayName"]??e.name,href:`#${a(e)}`,description:e.description,type:"tag",tag:e.name,body:""};o.value.push(t),e.operations&&e.operations.forEach((t=>{var r;const n=cPe(t.information),a=oPe(t.information)||n;let i=null;"boolean"!=typeof a&&(i=a);const s={type:"req",title:t.name??t.path,href:`#${t.id}`,operationId:null==(r=t.information)?void 0:r.operationId,description:t.description??"",httpVerb:t.httpVerb,path:t.path,tag:e.name,operation:t};i&&(s.body=i),o.value.push(s)}))}));else if(null==e?void 0:e.paths){const t=e.paths;Object.keys(t??{}).forEach((e=>{Object.keys((null==t?void 0:t[e])??{}).forEach((r=>{var n,a;const i=null==(n=null==t?void 0:t[e])?void 0:n[r];if(rP(r)&&i){const e=cPe(i),t=oPe(i)||e;let r=null;"boolean"!=typeof t&&(r=t);const n={type:"req",title:i.name??i.path,href:`#${i.id}`,operationId:null==(a=i.information)?void 0:a.operationId,description:i.description??"",httpVerb:i.httpVerb,path:i.path,operation:i};r&&(n.body=r),o.value.push(n)}}))}))}const p=null==e?void 0:e.webhooks,h=[];p&&p.forEach((e=>{h.push({type:"webhook",title:`${e.name}`,href:`#${e.id}`,description:"Webhook",httpVerb:e.httpVerb,tag:e.name,body:""}),o.value=o.value.concat(h)}));const f=t?{}:iPe(e),m=[];f&&(Object.keys(f).forEach((e=>{m.push({type:"model",title:`${f[e].title??e}`,href:`#${n({name:e})}`,description:"Model",tag:e,body:""})})),o.value=o.value.concat(m)),c.setCollection(o.value)}),{immediate:!0}),{resetSearch:function(){l.value="",s.value=void 0,i.value=[]},fuseSearch:u,selectedSearchIndex:s,selectedSearchResult:p,searchResultsWithPlaceholderResults:d,searchText:l}}({specification:r,hideModels:t.hideModels}),h={heading:RH,model:zz,req:EH,tag:yH,webhook:EH},f={heading:"Document Heading",req:"Request",tag:"Tag",model:"Model",webhook:"Webhook"},m=So(null);ul((()=>t.modalState.open),(e=>{e&&s()}));const{setCollapsedSidebarItem:g}=xke(),v=/#(tag\/[^/]*)/;function b(e){let r="models";const n=e.item.href.match(v);(null==n?void 0:n.length)&&n.length>1&&(r=n[1]),g(r,!0);const a=e.item.href.replace("#","");if(document.getElementById(a))yke(a),t.modalState.hide();else{const e=cke.on((r=>{r.id===a&&(yke(a),e(),t.modalState.hide())}))}}ul(c,(e=>{var t;if("number"!=typeof e)return;const r=d.value[e],n=i(null==r?void 0:r.item.href);null==(t=document.getElementById(n))||t.scrollIntoView({behavior:"smooth",block:"nearest"})}));const y=e=>{const t="up"===e?-1:1,r=d.value.length;if("number"==typeof c.value){const e=(c.value+t+r)%r;c.value=e}else c.value=-1===t?r-1:0};function O(e){const t=new URL(window.location.href);return t.hash=e,t.toString()}function w(){if(!mj(c.value))return;const e=d.value;0!==e.length&&b(e[c.value])}return(e,t)=>(Pl(),Nl(Ao(k8),{"aria-label":"Reference Search",state:e.modalState,variant:"search"},{default:ci((()=>[Ul("div",{ref_key:"searchModalRef",ref:m,class:"ref-search-container",role:"search"},[Fl(Ao(j5),{modelValue:Ao(p),"onUpdate:modelValue":t[0]||(t[0]=e=>ko(p)?p.value=e:null),"aria-activedescendant":Ao(u)?i(Ao(u).item.href):void 0,"aria-autocomplete":"list","aria-controls":a,"aria-describedby":o,role:"combobox",onBlur:t[1]||(t[1]=e=>c.value=void 0),onInput:Ao(l),onKeydown:[t[2]||(t[2]=Eu(Su((e=>y("down")),["stop","prevent"]),["down"])),Eu(Su(w,["stop","prevent"]),["enter"]),t[3]||(t[3]=Eu(Su((e=>y("up")),["stop","prevent"]),["up"]))]},null,8,["modelValue","aria-activedescendant","onInput","onKeydown"])],512),Fl(Ao(B5),{id:a,"aria-label":"Reference Search Results",class:"ref-search-results custom-scroll",noResults:!Ao(d).length},{query:ci((()=>[ql(Gn(Ao(p)),1)])),default:ci((()=>[(Pl(!0),Ml(Sl,null,ps(Ao(d),((e,r)=>(Pl(),Nl(Ao(Z5),{id:i(e.item.href),key:e.refIndex,href:O(e.item.href),icon:h[e.item.type],selected:Ao(c)===r,onClick:t=>b(e),onFocus:e=>c.value=r},hs({default:ci((()=>{var r,n,a,o;return[Ul("span",{class:zn({deprecated:null==(n=null==(r=e.item.operation)?void 0:r.information)?void 0:n.deprecated})},[Ul("span",RPe,[ql(Gn(f[e.item.type])+": ",1),(null==(o=null==(a=e.item.operation)?void 0:a.information)?void 0:o.deprecated)?(Pl(),Ml(Sl,{key:0},[ql(" (Deprecated) ")],64)):Vl("",!0)]),ql(" "+Gn(e.item.title)+" ",1),t[4]||(t[4]=Ul("span",{class:"sr-only"},",",-1))],2)]})),_:2},["webhook"!==e.item.type&&(e.item.httpVerb||e.item.path)&&e.item.path!==e.item.title?{name:"description",fn:ci((()=>[Ul("span",MPe,["req"===e.item.type?(Pl(),Ml(Sl,{key:0},[Fl(Eke,{"aria-hidden":"true",method:e.item.httpVerb??"get"},null,8,["method"]),Ul("span",NPe," HTTP Method: "+Gn(e.item.httpVerb??"get"),1)],64)):Vl("",!0),t[5]||(t[5]=Ul("span",{class:"sr-only"},"Path: ",-1)),ql(" "+Gn(e.item.path),1)])])),key:"0"}:e.item.description?{name:"description",fn:ci((()=>[t[6]||(t[6]=Ul("span",{class:"sr-only"},"Description: ",-1)),ql(" "+Gn(e.item.description),1)])),key:"1"}:void 0]),1032,["id","href","icon","selected","onClick","onFocus"])))),128))])),_:1},8,["noResults"]),Ul("div",{id:o,class:"ref-search-meta"},t[7]||(t[7]=[Ul("span",{"aria-hidden":"true",class:"contents"},[Ul("span",null,"↑↓ Navigate"),Ul("span",null,"⏎ Select")],-1),Ul("span",{class:"sr-only"}," Press up arrow / down arrow to navigate, enter to select, type to filter results ",-1)]))])),_:1},8,["state"]))}}),[["__scopeId","data-v-6fcd2762"]]),LPe=Li({__name:"SearchButton",props:{spec:{},searchHotKey:{default:"k"},hideModels:{type:Boolean,default:!1}},setup(e){const t=So(),r=w8(),{client:n}=jCe(),a=t=>{var a;(OCe()?t.metaKey:t.ctrlKey)&&t.key===e.searchHotKey&&!(null==(a=n.value)?void 0:a.modalState.open)&&(t.preventDefault(),t.stopPropagation(),r.open?r.hide():r.show())};function o(){r.show()}return ul((()=>r.open),((e,r)=>{!e&&r&&Ko((()=>{var e;null==(e=t.value)||e.$el.focus()}))})),Yi((()=>window.addEventListener("keydown",a))),es((()=>window.removeEventListener("keydown",a))),(e,n)=>(Pl(),Ml(Sl,null,[Fl(Ao(t8),{ref_key:"button",ref:t,class:zn(["w-full",e.$attrs.class]),onClick:o},{shortcut:ci((()=>[Ao(OCe)()?(Pl(),Ml(Sl,{key:0},[ql("⌘")],64)):(Pl(),Ml(Sl,{key:1},[n[0]||(n[0]=Ul("span",{class:"sr-only"},"CTRL",-1)),n[1]||(n[1]=Ul("span",{"aria-hidden":"true"},"⌃",-1))],64)),ql(" "+Gn(e.searchHotKey),1)])),default:ci((()=>[n[2]||(n[2]=Ul("span",{class:"sr-only"},"Open Search",-1)),n[3]||(n[3]=Ul("span",{"aria-hidden":"true",class:"sidebar-search-placeholder"}," Search ",-1))])),_:1,__:[2,3]},8,["class"]),Fl(IPe,{modalState:Ao(r),hideModels:e.hideModels,parsedSpec:e.spec},null,8,["modalState","hideModels","parsedSpec"])],64))}}),jPe=(e,t)=>{let r={};r=e&&"object"==typeof e?e:lPe(),r.tags||(r.tags=[]),r.paths||(r.paths={}),r.components||(r.components={}),r.webhooks||(r.webhooks={}),r.servers||(r.servers=[]),r.security||(r.security=[]);const n=[],a=e=>{var t;"children"in e&&(null==(t=e.children)?void 0:t.length)&&e.children.forEach((t=>{var n,o,i,s,l,c;let u=null==(n=r.tags)?void 0:n.findIndex((t=>"tag"in e&&t.name===e.tag.name));-1===u&&"tag"in e&&(r.tags.push({name:e.tag.name,operations:[]}),u=r.tags.length-1),(o=r.tags[u]).operations||(o.operations=[]),"tag"in t?a(t):"operation"in t?r.tags[u].operations.push({id:t.id,httpVerb:Ske(t.method),path:t.path,name:t.operation.summary||t.path||"",description:t.operation.description||"",isWebhook:!1,information:t.operation,pathParameters:null==(s=null==(i=r.paths)?void 0:i[t.path??""])?void 0:s.parameters}):"webhook"in t&&r.tags[u].operations.push({id:t.id,httpVerb:Ske(t.method),path:t.name,name:t.webhook.summary||t.name||"",description:t.webhook.description||"",isWebhook:!0,information:t.webhook,pathParameters:null==(c=null==(l=r.webhooks)?void 0:l[t.name??""])?void 0:c.parameters})}))};return null==t||t.forEach((e=>{var t,o,i,s,l;if(e.id.startsWith("tag/default")&&"operation"in e){let n=null==(t=r.tags)?void 0:t.findIndex((e=>"default"===e.name));-1===n&&(r.tags.push({name:"default",description:"",operations:[]}),n=r.tags.length-1),r.tags[n].operations.push({id:e.id,httpVerb:Ske(e.method),path:e.path,name:e.operation.summary||e.path||"",description:e.operation.description||"",isWebhook:!1,information:e.operation,pathParameters:null==(i=null==(o=r.paths)?void 0:o[e.path??""])?void 0:i.parameters})}"tag"in e&&e.isGroup&&(null==(s=e.children)?void 0:s.length)?e.children.forEach(a):"tag"in e&&a(e),"isWebhooks"in e&&e.isWebhooks&&(null==(l=e.children)?void 0:l.length)&&e.children.forEach((e=>{var t,a;"webhook"in e&&e.name&&e.method&&n.push({id:e.id,httpVerb:Ske(e.method),path:e.name,name:e.webhook.summary||e.name||"",description:e.webhook.description||"",isWebhook:!0,information:e.webhook,pathParameters:null==(a=null==(t=r.webhooks)?void 0:t[e.name??""])?void 0:a.parameters})}))})),{...r,webhooks:n}},BPe=["innerHTML"],UPe={class:"references-header"},FPe=["aria-label"],QPe={class:"references-navigation-list"},zPe={key:0},qPe={key:1,class:"scalar-api-references-standalone-search"},HPe={key:1},VPe={class:"references-editor"},ZPe={class:"references-editor-textarea"},WPe=["aria-label"],XPe={key:0,class:"w-64 *:!p-0 empty:hidden"},GPe={key:0,class:"references-footer"},YPe=Li({inheritAttrs:!1,__name:"ApiReferenceLayout",props:{configuration:{},dereferencedDocument:{},originalDocument:{},isDark:{type:Boolean},parsedSpec:{},rawSpec:{}},emits:["changeTheme","updateContent","loadSwaggerFile","linkSwaggerFile","toggleDarkMode"],setup(e){const t=hc((()=>zt.parse(e.configuration))),{initializeToasts:r,toast:n}=qV();r((e=>n(e)));const{originalDocument:a,originalOpenApiVersion:o,dereferencedDocument:i,workspaceStore:s,activeEntitiesStore:l}=$Pe({configuration:t,dereferencedDocument:e.dereferencedDocument,originalDocument:e.originalDocument});js(OSe,o),js(qve,s),js(tye,l);const c=Wj("(min-width: 1150px)"),u=So("100dvh"),d=So(null);!function(e,t,r={}){const{window:n=zj,...a}=r;let o;const i=Zj((()=>n&&"ResizeObserver"in n)),s=()=>{o&&(o.disconnect(),o=void 0)},l=ul(hc((()=>Array.isArray(e)?e.map((e=>Qj(e))):[Qj(e)])),(e=>{if(s(),i.value&&n){o=new ResizeObserver(t);for(const t of e)t&&o.observe(t,a)}}),{immediate:!0,flush:"post"});Pj((()=>{s(),l()}))}(d,(e=>{u.value=e[0].contentRect.height+"px"}));const p=hc(Nve),h=lke(t),{isSidebarOpen:f,setCollapsedSidebarItem:m,scrollToOperation:g,items:v}=xke(i,{...h,config:t}),{getReferenceId:b,getPathRoutingId:y,getSectionId:O,getTagId:w,hash:x,isIntersectionEnabled:k,updateHash:S,replaceUrlState:_}=h;if(t.value.redirect&&"undefined"!=typeof window){const e=t.value.redirect((t.value.pathRouting?window.location.pathname:"")+window.location.hash);e&&history.replaceState({},"",e)}Gi((()=>{S(),T8()}));const E=async e=>{var t;k.value=!1,S(),e?g(e):null==(t=d.value)||t.scrollTo(0,0),await nye(100),k.value=!0},T=So(0);Yi((()=>{var e,r,n;history.scrollRestoration="manual";const a=null==(r=null==(e=d.value)?void 0:e.parentElement)?void 0:r.getBoundingClientRect(),o=null==(n=d.value)?void 0:n.getBoundingClientRect();if(a&&o){const e=o.top-a.top;T.value=e<2?0:e}window.onhashchange=()=>{E(b())},window.onpopstate=()=>t.value.pathRouting&&E(y(window.location.pathname)),window.addEventListener("scroll",C,{passive:!0})}));const A=hc((()=>c.value||!t.value.isEditable)),C=Uj((()=>{window.scrollY<50&&_("")})),P=So(!1);ul(i,(e=>{var t;if(x.value){const e=O(x.value);e&&m(e,!0)}else{const r=null==(t=e.tags)?void 0:t[0];r&&m(w(r),!0)}P.value=!0}));const D=So(lPe());ul(i,(async e=>{if(!e)return;const t=await((e,t)=>new Promise(((r,n)=>{try{return r(e?jPe(e,t):jPe(lPe()))}catch(e){console.error("[@scalar/api-reference]","Failed to parse the OpenAPI document. It might be invalid?"),console.error(e),n(e)}return r(jPe(lPe()))})))(e,v.value.entries);D.value=t}),{immediate:!0});const $=hc((()=>{var e;return{spec:D.value,breadcrumb:(null==(e=v.value)?void 0:e.titles.get(x.value))??""}}));Yi((()=>vSe.on((({filename:t,format:r})=>{bSe(Co(a)||Co(e.rawSpec)||"",t,r)})))),ts((()=>{window.removeEventListener("scroll",C),vSe.reset()})),js(tB,(()=>ji())),js(Cme,"modal"),js(Xxe,t),js(BSe,jSe({plugins:t.value.plugins}));const R=hc((()=>`<style>\n ${((e,t)=>{var r;const{fonts:n=!0,layer:a="scalar-theme"}=t??{},o=[(null==(r=Lve[e||"default"])?void 0:r.theme)??Mve,n?'/* Inter (--scalar-font) */\n/* cyrillic-ext */\n@font-face {\n font-family: "Inter";\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(https://fonts.scalar.com/inter-cyrillic-ext.woff2) format("woff2");\n unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: "Inter";\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(https://fonts.scalar.com/inter-cyrillic.woff2) format("woff2");\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* greek-ext */\n@font-face {\n font-family: "Inter";\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(https://fonts.scalar.com/inter-greek-ext.woff2) format("woff2");\n unicode-range: U+1F00-1FFF;\n}\n/* greek */\n@font-face {\n font-family: "Inter";\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(https://fonts.scalar.com/inter-greek.woff2) format("woff2");\n unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;\n}\n/* vietnamese */\n@font-face {\n font-family: "Inter";\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(https://fonts.scalar.com/inter-vietnamese.woff2) format("woff2");\n unicode-range:\n U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,\n U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,\n U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: "Inter";\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(https://fonts.scalar.com/inter-latin-ext.woff2) format("woff2");\n unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,\n U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: "Inter";\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(https://fonts.scalar.com/inter-latin.woff2) format("woff2");\n unicode-range:\n U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,\n U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,\n U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* JetBrains Mono (--scalar-font-code) */\n/* cyrillic-ext */\n@font-face {\n font-family: "JetBrains Mono";\n font-style: normal;\n font-weight: 400;\n src: url(https://fonts.scalar.com/mono-cyrillic-ext.woff2) format("woff2");\n unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: "JetBrains Mono";\n font-style: normal;\n font-weight: 400;\n src: url(https://fonts.scalar.com/mono-cyrillic.woff2) format("woff2");\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* greek */\n@font-face {\n font-family: "JetBrains Mono";\n font-style: normal;\n font-weight: 400;\n src: url(https://fonts.scalar.com/mono-greek.woff2) format("woff2");\n unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;\n}\n/* vietnamese */\n@font-face {\n font-family: "JetBrains Mono";\n font-style: normal;\n font-weight: 400;\n src: url(https://fonts.scalar.com/mono-vietnamese.woff2) format("woff2");\n unicode-range:\n U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,\n U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,\n U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: "JetBrains Mono";\n font-style: normal;\n font-weight: 400;\n src: url(https://fonts.scalar.com/mono-latin-ext.woff2) format("woff2");\n unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,\n U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: "JetBrains Mono";\n font-style: normal;\n font-weight: 400;\n src: url(https://fonts.scalar.com/mono-latin.woff2) format("woff2");\n unicode-range:\n U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,\n U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,\n U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n':""].join("");return a?`@layer ${a} {\n${o}}`:o})(t.value.theme,{fonts:t.value.withDefaultFonts})}</style>`)),{mediaQueries:M}=wbe();return ul(M.lg,((e,t)=>{t&&!e&&(f.value=!1)})),ul(x,((e,t)=>{e&&e!==t&&(f.value=!1)})),(e,r)=>{var n,a,o,s,l;return Pl(),Ml(Sl,null,[Ul("div",{innerHTML:R.value},null,8,BPe),Ul("div",{ref_key:"documentEl",ref:d,class:zn(["scalar-app scalar-api-reference references-layout",[{"scalar-api-references-standalone-mobile":t.value.showSidebar??!0,"scalar-scrollbars-obtrusive":p.value,"references-editable":t.value.isEditable,"references-sidebar":t.value.showSidebar,"references-sidebar-mobile-open":Ao(f),"references-classic":"classic"===t.value.layout},e.$attrs.class]]),style:jn({"--scalar-y-offset":`var(--scalar-custom-header-height, ${T.value}px)`})},[Ul("div",UPe,["modern"===t.value.layout&&(t.value.showSidebar??1)?(Pl(),Nl(DPe,{key:0,breadcrumb:$.value.breadcrumb},null,8,["breadcrumb"])):Vl("",!0),fs(e.$slots,"header",qn(Ql($.value)),void 0,!0)]),t.value.showSidebar?(Pl(),Ml("aside",{key:0,"aria-label":`Sidebar for ${null==(a=null==(n=Ao(i))?void 0:n.info)?void 0:a.title}`,class:"references-navigation t-doc__sidebar"},[Ul("div",QPe,[Fl(Ao(rX),null,{default:ci((()=>{var n,a;return[Fl(Ao(Bke),{title:(null==(a=null==(n=Ao(i))?void 0:n.info)?void 0:a.title)??"The OpenAPI Schema"},{"sidebar-start":ci((()=>{var r,n;return[e.$slots["document-selector"]?(Pl(),Ml("div",zPe,[fs(e.$slots,"document-selector",{},void 0,!0)])):Vl("",!0),t.value.hideSearch?Vl("",!0):(Pl(),Ml("div",qPe,[Fl(Ao(LPe),{searchHotKey:null==(r=t.value)?void 0:r.searchHotKey,hideModels:null==(n=t.value)?void 0:n.hideModels,spec:D.value},null,8,["searchHotKey","hideModels","spec"])])),fs(e.$slots,"sidebar-start",qn(Ql($.value)),void 0,!0)]})),"sidebar-end":ci((()=>[fs(e.$slots,"sidebar-end",qn(Ql($.value)),(()=>[Fl(Ao(G5),{class:"darklight-reference"},{toggle:ci((()=>[t.value.hideDarkModeToggle?(Pl(),Ml("span",HPe)):(Pl(),Nl(Ao(eZ),{key:0,modelValue:e.isDark,"onUpdate:modelValue":r[0]||(r[0]=t=>e.$emit("toggleDarkMode"))},null,8,["modelValue"]))])),default:ci((()=>[t.value.hideClientButton?Vl("",!0):(Pl(),Nl(Ao(D8),{key:0,buttonSource:"sidebar",integration:t.value._integration,isDevelopment:!1,url:t.value.url},null,8,["integration","url"]))])),_:1})]),!0)])),_:3},8,["title"])]})),_:3})])],8,FPe)):Vl("",!0),ui(Ul("div",VPe,[Ul("div",ZPe,[fs(e.$slots,"editor",qn(Ql($.value)),void 0,!0)])],512),[[Fc,t.value.isEditable]]),A.value?(Pl(),Ml(Sl,{key:1},[Ul("main",{"aria-label":`Open API Documentation for ${null==(s=null==(o=Ao(i))?void 0:o.info)?void 0:s.title}`,class:"references-rendered"},[Fl(Ao(OPe),{layout:t.value.layout,document:Ao(i),parsedSpec:D.value},hs({start:ci((()=>[fs(e.$slots,"content-start",qn(Ql($.value)),(()=>["classic"===t.value.layout?(Pl(),Nl(lye,{key:0},{"dark-mode-toggle":ci((()=>[t.value.hideDarkModeToggle?Vl("",!0):(Pl(),Nl(Ao(KV),{key:0,class:"text-c-2 hover:text-c-1",mode:e.isDark?"dark":"light",style:{transform:"scale(1.4)"},variant:"icon",onClick:r[1]||(r[1]=t=>e.$emit("toggleDarkMode"))},null,8,["mode"]))])),default:ci((()=>{var r;return[e.$slots["document-selector"]?(Pl(),Ml("div",XPe,[fs(e.$slots,"document-selector",{},void 0,!0)])):Vl("",!0),t.value.hideSearch?Vl("",!0):(Pl(),Nl(Ao(LPe),{key:1,class:"t-doc__sidebar max-w-64",searchHotKey:t.value.searchHotKey,hideModels:null==(r=t.value)?void 0:r.hideModels,spec:D.value},null,8,["searchHotKey","hideModels","spec"]))]})),_:3})):Vl("",!0)]),!0)])),end:ci((()=>[fs(e.$slots,"content-end",qn(Ql($.value)),void 0,!0)])),_:2},[(null==(l=t.value)?void 0:l.isEditable)?{name:"empty-state",fn:ci((()=>{var n;return[Fl(TPe,{theme:(null==(n=t.value)?void 0:n.theme)||"default",onChangeTheme:r[2]||(r[2]=t=>e.$emit("changeTheme",t)),onLinkSwaggerFile:r[3]||(r[3]=t=>e.$emit("linkSwaggerFile")),onLoadSwaggerFile:r[4]||(r[4]=t=>e.$emit("loadSwaggerFile")),onUpdateContent:r[5]||(r[5]=t=>e.$emit("updateContent",t))},null,8,["theme"])]})),key:"0"}:void 0]),1032,["layout","document","parsedSpec"])],8,WPe),e.$slots.footer?(Pl(),Ml("div",GPe,[fs(e.$slots,"footer",qn(Ql($.value)),void 0,!0)])):Vl("",!0)],64)):Vl("",!0),Fl(Ao(BCe),{configuration:t.value,dereferencedDocument:Ao(i)},null,8,["configuration","dereferencedDocument"])],6),Fl(Ao(HV))],64)}}}),KPe=aye(YPe,[["__scopeId","data-v-b90254d8"]]),JPe={key:0,class:"document-selector -mb-1 p-3 pb-0"},eDe={class:"group/dropdown-label hover:bg-b-2 text-c-2 flex h-8 w-full cursor-pointer items-center rounded border px-2 py-1.75",type:"button"},tDe={class:"text-c-1 overflow-hidden text-base text-ellipsis"},rDe=Li({__name:"DocumentSelector",props:{options:{},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=t,n=hc((()=>{var t;return e.options&&(null==(t=e.options)?void 0:t.length)>1})),a=hc((()=>{var t;return(null==(t=e.options)?void 0:t.map(((e,t)=>({id:String(t),label:e.title||e.slug||`API #${t+1}`}))))||[]})),o=hc({get:()=>a.value.find((({id:t})=>t===String(e.modelValue))),set:e=>r("update:modelValue",Number(e.id))});return(e,t)=>n.value?(Pl(),Ml("div",JPe,[Fl(Ao(C5),{modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),options:a.value,resize:""},{default:ci((()=>{var e;return[Ul("button",eDe,[Fl(Ao(uq),{class:"mr-1 size-4 text-current"}),Ul("span",tDe,Gn((null==(e=o.value)?void 0:e.label)||"Select API"),1)])]})),_:1},8,["modelValue","options"])])):Vl("",!0)}}),nDe=new KC,aDe=({configuration:e,initialIndex:t,isIntersectionEnabled:r,hash:n,hashPrefix:a})=>{const o=hc((()=>(e=>e?(Array.isArray(e)?e:[e]).flatMap((e=>{if(qt(e)){const{sources:t,...r}=e;return(null==t?void 0:t.map((e=>({...r,...e}))))??[]}return[e]})).map(((e,t)=>e&&((e,t=0)=>{const r={...e,...e.spec??{}};if((null==r?void 0:r.url)||(null==r?void 0:r.content))return nDe.reset(),r.title?{...r,slug:r.slug||nDe.slug(r.title),title:r.title}:r.slug?{...r,title:r.slug}:{...r,slug:`api-${t+1}`,title:`API #${t+1}`}})(e,t))).filter(mj):[])(e.value))),i=So((()=>{if("undefined"==typeof window)return"number"==typeof t?t:0;const e=new URL(window.location.href).searchParams.get("api");if(e){const t=o.value.findIndex((t=>t.slug===e));if(-1!==t)return t;const r=Number.parseInt(e,10);if(!isNaN(r)&&r>=0&&r<o.value.length)return r}const r=o.value.findIndex((e=>"default"in e&&!0===e.default));return-1!==r?r:"number"==typeof t?t:0})()),s=hc((()=>{var t,r;return e.value&&qt(e.value)?{...e.value,...null==(r=null==(t=e.value)?void 0:t.sources)?void 0:r[i.value],...o.value[i.value]}:{...[e.value].flat()[i.value]??{},...o.value[i.value]}}));return ul(i,(e=>{var t,i,l;if("undefined"==typeof window)return;if(1===o.value.length)return;const c=new URL(window.location.href),u=o.value[e];s.value.pathRouting&&(c.pathname=(null==(t=s.value.pathRouting)?void 0:t.basePath)??"");const d=(null==u?void 0:u.slug)??e.toString();c.searchParams.set("api",d),c.hash="",window.history.replaceState({},"",c.toString()),n.value="",a.value="",r.value=!1,"undefined"!=typeof window&&window.scrollTo({top:0,behavior:"instant"}),null==(l=(i=s.value).onDocumentSelect)||l.call(i)}),{flush:"sync"}),{selectedConfiguration:s,availableDocuments:o,selectedDocumentIndex:i,isIntersectionEnabled:r,hash:n,hashPrefix:a}},oDe=Li({__name:"ApiReferenceWorkspace",props:{configuration:{},getWorkspaceStore:{type:Function}},setup(e){const t=e,{availableDocuments:r,selectedConfiguration:n,selectedDocumentIndex:a,isIntersectionEnabled:o,hash:i,hashPrefix:s}=aDe({configuration:Io(t,"configuration"),isIntersectionEnabled:So(!1),hash:So(""),hashPrefix:So("")}),{httpClient:l,setExcludedClients:c,setDefaultHttpClient:u}=Cxe(),d=(e,t)=>fetch(KL(n.value.proxyUrl,e.toString()),t);js(ake,{isIntersectionEnabled:o,hash:i,hashPrefix:s});const p=Ui("root"),h=t.getWorkspaceStore();_Te(h);const f=r,m=e=>{if(void 0===h.workspace.documents[e.slug??"default"]){if(e.content){const t="string"==typeof e.content?(e=>{if("string"!=typeof e)return e;const t=HL.parseSafe(e,null);if(t)return t;if(e.length>0&&["{","["].includes(e[0]??""))throw Error("Invalid JSON or YAML");return qL.parseSafe(e,(e=>{throw Error(e)}))})(e.content):e.content;return h.addDocumentSync({name:e.slug??"default",document:"function"==typeof t?t():t})}return e.url?h.addDocument({name:e.slug??"default",url:e.url,fetch:d}):void 0}};f.value.forEach((e=>{e.content&&m(e)})),rs((()=>{f.value.forEach((e=>{e.url&&m(e)}))})),Yi((()=>{f.value.forEach((e=>{e.url&&m(e)}));const e=zL().getItem(UL);CTe(e)&&!h.workspace["x-scalar-default-client"]&&h.update("x-scalar-default-client",e)})),jTe(p,"scalar-update-dark-mode",(e=>{h.update("x-scalar-dark-mode",e.detail.value)})),jTe(p,"scalar-update-active-document",(e=>{h.update("x-scalar-active-document",e.detail.value)})),jTe(p,"scalar-update-selected-client",(e=>{h.update("x-scalar-default-client",e.detail),zL().setItem(UL,e.detail);const[t,r]=e.detail.split("/");u({targetKey:t,clientKey:r})})),ul((()=>n.value.hiddenClients),(e=>e&&c(e))),ul(l,(e=>{var t;const r=`${e.targetKey}/${e.clientKey}`;e&&(null==(t=h.workspace.activeDocument)?void 0:t["x-scalar-default-client"])!==r&&CTe(r)&&h.update("x-scalar-default-client",r)})),ul((()=>n.value.defaultHttpClient),(e=>{if(e){const{targetKey:t,clientKey:r}=e,n=`${t}/${r}`;CTe(n)&&h.update("x-scalar-default-client",n),u(e)}}),{immediate:!0});const{toggleColorMode:g,isDarkMode:v}=Cj({initialColorMode:n.value.darkMode?"dark":void 0,overrideColorMode:n.value.forceDarkModeState});return ul((()=>n.value.darkMode),(e=>h.update("x-scalar-dark-mode",!!e))),ul((()=>v.value),(e=>h.update("x-scalar-dark-mode",e)),{immediate:!0}),ul((()=>a.value),(e=>{var t;return h.update("x-scalar-active-document",null==(t=r.value[e])?void 0:t.slug)}),{immediate:!0}),ul((()=>r.value),(e=>{e.forEach(m)})),n.value.metaData&&function(e){const{title:t,titleTemplate:r,...n}=e;Bu({title:t,titleTemplate:r,_flatMeta:n},{transform(e){const t=pr({...e._flatMeta});return delete e._flatMeta,{...e,meta:t}}})}(n.value.metaData),function(e=null,t={}){const{baseUrl:r="",rel:n="icon",document:a=qj}=t,o=function(...e){if(1!==e.length)return Io(...e);const t=e[0];return"function"==typeof t?ho(Ro((()=>({get:t,set:Nj})))):So(t)}(e);ul(o,((e,t)=>{"string"==typeof e&&e!==t&&(e=>{const t=null==a?void 0:a.head.querySelectorAll(`link[rel*="${n}"]`);if(t&&0!==t.length)null==t||t.forEach((t=>t.href=`${r}${e}`));else{const t=null==a?void 0:a.createElement("link");t&&(t.rel=n,t.href=`${r}${e}`,t.type=`image/${e.split(".").pop()}`,null==a||a.head.append(t))}})(e)}),{immediate:!0})}(hc((()=>n.value.favicon))),(e,t)=>{var o;return Pl(),Ml("div",{ref_key:"root",ref:p},[(null==(o=Ao(n))?void 0:o.customCss)?(Pl(),Nl(cs("style"),{key:0},{default:ci((()=>[ql(Gn(Ao(n).customCss),1)])),_:1})):Vl("",!0),Fl(KPe,{configuration:Ao(n),isDark:!!Ao(h).workspace["x-scalar-dark-mode"],onToggleDarkMode:t[1]||(t[1]=()=>Ao(g)()),onUpdateContent:t[2]||(t[2]=t=>e.$emit("updateContent",t))},{footer:ci((()=>[fs(e.$slots,"footer")])),"content-end":ci((()=>[fs(e.$slots,"footer")])),"document-selector":ci((()=>[Fl(Ao(rDe),{modelValue:Ao(a),"onUpdate:modelValue":t[0]||(t[0]=e=>ko(a)?a.value=e:null),options:Ao(r)},null,8,["modelValue","options"])])),"sidebar-start":ci((()=>[fs(e.$slots,"sidebar-start")])),_:3},8,["configuration","isDark"])],512)}}}),iDe=Li({__name:"ApiReference",props:{configuration:{}},setup(e){const t=(e=>{const t={},r={},n={},a=uo({...null==e?void 0:e.meta,documents:{},get activeDocument(){const e=a[mP]??Object.keys(a.documents)[0]??"";return a.documents[e]}});function o(){return a[mP]??Object.keys(a.documents)[0]??""}function i(e){const{name:o,meta:i}=e,s=IL(RI,Ff(e.document).specification);t[o]=hm({...s,...i}),r[o]=hm({...s,...i}),n[o]=e.config??{},void 0===s[uP]&&(s[uP]=cP(s,e.config??{}).entries),a.documents[o]=xm({...s,...i})}const s=new Set;return{get workspace(){return a},update(e,t){if("__proto__"===e||"constructor"===e||"prototype"===e)throw new Error("Invalid key: cannot modify prototype");Object.assign(a,{[e]:t})},updateDocument(e,t,r){const n=a.documents["active"===e?o():e];if(!n)throw"Please select a valid document";Object.assign(n,{[t]:r})},resolve:async e=>{const t=a.activeDocument,r=ym(t,e);if(dm(r))return cm(r,{root:t,plugins:[um()],hooks:{onResolveStart:e=>{e.$status="loading"},onResolveError:e=>{e.$status="error"}},visitedNodes:s});console.error(`Invalid path provided for resolution. Path: [${e.join(", ")}]. Found value of type: ${typeof r}. Expected an object.`)},addDocument:async e=>{const{name:t,meta:r,config:n}=e,o=await async function(e){return"url"in e?um({fetch:e.fetch}).exec(e.url):{ok:!0,data:e.document}}(e);return o.ok?dm(o.data)?void i({document:o.data,name:t,meta:r,config:n}):(console.error(`Failed to load document '${t}': response data is not a valid object`),void(a.documents[t]={...r,openapi:"3.1.0",info:{title:`Document '${t}' could not be loaded`,version:"unknown"}})):(console.error(`Failed to fetch document '${t}': request was not successful`),void(a.documents[t]={...r,openapi:"3.1.0",info:{title:`Document '${t}' could not be loaded`,version:"unknown"}}))},addDocumentSync:i,get config(){return Om(Om(LL,{}),n[o()]??{})},exportDocument:(e,t)=>{const n=r[e];if(n)return"json"===t?JSON.stringify(n):Sf.stringify(n)},saveDocument(e){const t=r[e],n=Oo(km(a.documents[e]));if(t&&n)return vm(t,n)},revertDocumentChanges(e){const t=r[e],n=km(a.documents[e]);t&&n&&vm(n,t)},commitDocument(e){console.warn(`Commit operation for document '${e}' is not implemented yet.`)},exportWorkspace:()=>JSON.stringify({documents:{...Object.fromEntries(Object.entries(a.documents).map((([e,t])=>[e,Oo(km(t))])))},meta:{},documentConfigs:n,originalDocuments:t,intermediateDocuments:r}),loadWorkspace(e){const o=IL(ZI,JSON.parse(e));fm(a.documents,Object.fromEntries(Object.entries(o.documents).map((([e,t])=>[e,xm(t)])))),fm(t,o.originalDocuments),fm(r,o.intermediateDocuments),fm(n,o.documentConfigs),fm(a,o.meta)}}})();return"undefined"!=typeof window&&(window.dataDumpWorkspace=()=>t),(e,r)=>(Pl(),Nl(oDe,{getWorkspaceStore:()=>Ao(t),configuration:e.configuration},null,8,["getWorkspaceStore","configuration"]))}}),sDe=e=>e.getElementById("api-reference"),lDe=(e,t)=>{const r="scalar-refs",n=uo({configuration:t??e??{}});let a=Du((()=>fc(iDe,n)));if(a.use(Iu()),a.config.idPrefix=r,t){const t="string"==typeof e?document.querySelector(e):e;t?a.mount(t):console.error("Could not find a mount point for API References:",e)}document.addEventListener("scalar:reload-references",(()=>{if(console.warn("scalar:reload-references event has been deprecated, please use the scalarInstance.app.mount method instead."),!n.configuration)return;const t="string"==typeof e?document.querySelector(e):e;t&&(t&&!document.body.contains(t)&&document.body.appendChild(t),a.unmount(),a=Du((()=>fc(iDe,n))),a.use(Iu()),a.config.idPrefix=r,a.mount(t))}),!1);const o=()=>{delete n.configuration,a.unmount()};return document.addEventListener("scalar:destroy-references",(()=>{console.warn("scalar:destroy-references event has been deprecated, please use scalarInstance.destroy instead."),o()}),!1),document.addEventListener("scalar:update-references-config",(e=>{console.warn("scalar:update-references-config event has been deprecated, please use scalarInstance.updateConfiguration instead."),"detail"in e&&Object.assign(n,e.detail)}),!1),{app:a,getConfiguration:()=>n.configuration??{},updateConfiguration:e=>{n.configuration=e},destroy:o}};console.info("@scalar/api-reference@1.32.10"),"object"==typeof window&&(window.Scalar={createApiReference:lDe}),function(e,t){var r,n;const a=e.querySelector("[data-spec]"),o=e.querySelector("[data-spec-url]");(null==t?void 0:t.darkMode)?null==(r=e.body)||r.classList.add("dark-mode"):null==(n=e.body)||n.classList.add("light-mode");const i=((e,t)=>{var r;let n=null;const a=sDe(e);return a?(n=e.createElement("div"),null==(r=null==a?void 0:a.parentNode)||r.insertBefore(n,a)):t&&(n=t),n})(e,a||o);i&&lDe(i,t)}(document,function(e){const t=e.querySelector("[data-spec]"),r=e.querySelector("[data-spec-url]"),n=e.querySelector("#api-reference[data-configuration]"),a=()=>{if(n){const e=n.getAttribute("data-configuration");if(e)return{_integration:"html",...JSON.parse(e.split(""").join('"'))}}return zt.parse({_integration:"html"})},o=()=>{var t,n,o;if(a().url)return a().url;if(null==(t=a().spec)?void 0:t.url)return null==(n=a().spec)?void 0:n.url;const i=sDe(e);if(i){const e=null==(o=i.getAttribute("data-url"))?void 0:o.trim();if(e)return e}if(r){console.warn('[@scalar/api-reference] The [data-spec-url] HTML API is deprecated. Use the new <script id="api-reference" data-url="/scalar.json" /> API instead.');const e=r.getAttribute("data-spec-url");if(e)return e}},i=()=>{var r,n;const a=sDe(e);if(a){const e=null==(r=a.innerHTML)?void 0:r.trim();if(e)return e}if(t){console.warn('[@scalar/api-reference] The [data-spec] HTML API is deprecated. Use the new <script id="api-reference" type="application/json">{"openapi":"3.1.0","info":{"title":"Example"},"paths":{}}<\/script> API instead.');const e=null==(n=t.getAttribute("data-spec"))?void 0:n.trim();if(e)return e}},s=()=>{const t=sDe(e);if(t){const e=t.getAttribute("data-proxy-url");if(e)return e.trim()}};if(r||t||sDe(e)){const e=i()?{content:i()}:{url:o()};return zt.parse({_integration:"html",proxyUrl:s(),...a(),...e})}return zt.parse({_integration:"html"})}(document));const cDe={parse(e){try{return{error:!1,data:JSON.parse(e)}}catch(e){return{error:!0,message:e.message?String(e.message):"Unknown Error"}}}},uDe=["aria-pressed"],dDe={class:"sr-only"},pDe={class:"size-4",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},hDe={"clip-path":"url(#mask)"},fDe=Li({__name:"SidebarToggle",setup(e){const{isSidebarOpen:t,toggleSidebarOpen:r}=kbe();return(e,n)=>(Pl(),Ml("button",{"aria-pressed":Ao(t),class:"scalar-sidebar-toggle text-c-3 hover:bg-b-2 active:text-c-1 rounded-lg p-2",type:"button",onClick:n[0]||(n[0]=(...e)=>Ao(r)&&Ao(r)(...e))},[Ul("span",dDe,Gn(Ao(t)?"Hide":"Show")+" sidebar",1),(Pl(),Ml("svg",pDe,[n[1]||(n[1]=Ul("defs",null,[Ul("clipPath",{id:"mask"},[Ul("path",{"clip-rule":"evenodd",d:"M9 3.2H4c-1.7 0-3 1.3-3 3v11.5c0 1.7 1.3 3 3 3h5V3.2z"})])],-1)),Ul("g",hDe,[Ul("path",{class:zn(["transition-transform duration-300",Ao(t)?"translate-x-0":"-translate-x-1/2"]),d:"M1 3.2h8v17.5H1z",fill:"currentColor"},null,2)]),n[2]||(n[2]=Ul("path",{d:"M20 20.8H4c-1.7 0-3-1.3-3-3V6.2c0-1.7 1.3-3 3-3h16c1.7 0 3 1.3 3 3v11.5c0 1.7-1.3 3-3 3zM9 3.2v17.5",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},null,-1))]))],8,uDe))}}),mDe=()=>{const{toast:e}=qV(),t=rye(),r=Hve(),{activeCollection:n,activeWorkspace:a}=t,{collectionMutators:o}=r,i=t=>e(`[useOpenApiWatcher] Changes to the ${t} were not applied`,"error"),s=e=>{"info"===e.path[0]||"security"===e.path[0]?((e,{activeCollection:t},{collectionMutators:r})=>{if(!t.value)return!1;if("number"!=typeof e.path[e.path.length-1]||"CREATE"!==e.type&&"REMOVE"!==e.type){const n=NAe(Ege,e);if(!n)return!1;r.edit(t.value.uid,n.path,n.value)}else{const n=NAe(Ege,{...e,path:e.path});if(!n)return!1;const a=[...tve(t.value,n.pathMinusOne)];"CREATE"===e.type?a.push(n.value):"REMOVE"===e.type&&a.pop(),r.edit(t.value.uid,n.pathMinusOne,a)}return!0})(e,t,r)||i("collection"):"components"===e.path[0]&&"securitySchemes"===e.path[1]?LAe(e,t,r)||i("securitySchemes"):"servers"===e.path[0]?((e,{activeCollection:t},{servers:r,serverMutators:n})=>{if(!t.value)return!1;const[,a,...o]=e.path;if(null!=o&&o.length){const i=t.value.servers[a];if(!i)return!1;const s=r[i],l=NAe(Dge,{...e,path:o});if(!s||!l)return!1;const c="REMOVE"===e.type&&"variables"===o[o.length-1]?{}:l.value;n.edit(i,l.path,c)}else if("REMOVE"===e.type){if(!t.value.servers[a])return!1;n.delete(t.value.servers[a],t.value.uid)}else if("CREATE"===e.type){const r=nj(e.value,Dge,!1);if(!r)return!1;n.add(r,t.value.uid)}return!0})(e,t,r)||i("servers"):"tags"===e.path[0]?((e,{activeCollection:t},{tags:r,tagMutators:n})=>{if(!t.value)return!1;const[,a,...o]=e.path;if(null!=o&&o.length){const i=t.value.tags[a];if(!i)return!1;const s=r[i],l=NAe(kge,{...e,path:o});if(!s||!l)return!1;n.edit(i,l.path,l.value)}else if("REMOVE"===e.type){const e=t.value.tags[a];if(!e)return!1;const o=r[e];if(!o)return!1;n.delete(o,t.value.uid)}else if("CREATE"===e.type){const r=nj(e.value,kge,!1);if(!r)return!1;n.add(r,t.value.uid)}return!0})(e,t,r)||i("tags"):"paths"===e.path[0]&&(((e,{activeCollection:t},r)=>{if(!t.value)return!1;const{requests:n,requestMutators:a}=r,[,o,i,...s]=e.path;if("path"===o&&"CHANGE"===e.type)t.value.requests.forEach((t=>{var r;(null==(r=n[t])?void 0:r.path)===e.oldValue&&a.edit(t,"path",e.value)}));else if("method"===i&&"CHANGE"===e.type)t.value.requests.forEach((t=>{var r,i;(null==(r=n[t])?void 0:r.method)===e.oldValue&&(null==(i=n[t])?void 0:i.path)===o&&a.edit(t,"method",e.value)}));else if("CHANGE"!==e.type&&"number"==typeof s.at(-1)){const s=RAe(t.value.requests,n,(e=>e.path===o&&e.method===i)),l=NAe(Jge,{...e,path:e.path.slice(3)});if(!s||!l)return!1;const c=[...tve(s,l.pathMinusOne)];"CREATE"===e.type?c.push(l.value):"REMOVE"===e.type&&c.pop(),a.edit(s.uid,l.pathMinusOne,c),("parameters"===e.path[3]||"requestBody"===e.path[3])&&IAe(s.uid,r)}else if("CREATE"===e.type){const[r]=Object.entries(e.value??{}),[n,s]=r??[],l=i?e.value:s,c=i||n,u=Dge.array().parse(l.servers??[]),{security:d,...p}=l,h={...p,method:rP(c)?c:"get",path:o,parameters:l.parameters??[],servers:u.map((e=>e.uid))};null!=d&&d.length&&(h.security=d.map((e=>{if(Object.keys(e).length){const[t]=Object.keys(e);return t?{[t]:e[t]}:e}return e})));const f=nj(h,Jge,!1);if(!f)return!1;a.add(f,t.value.uid)}else if("REMOVE"===e.type){const e=RAe(t.value.requests,n,(e=>e.path===o&&e.method===i));if(!e)return!1;a.delete(e,t.value.uid)}else if("CHANGE"===e.type){const l=RAe(t.value.requests,n,(e=>e.path===o&&e.method===i)),c=NAe(Jge,{...e,path:s});if(!l||!c)return!1;a.edit(l.uid,c.path,c.value),("parameters"===e.path[3]||"requestBody"===e.path[3])&&IAe(l.uid,r)}return!0})(e,t,r)||i("requests"))},{pause:l,resume:c}=function(e,t){const{start:r}=function(e,t,r={}){const{immediate:n=!0}=r,a=So(!1);let o=null;function i(){o&&(clearTimeout(o),o=null)}function s(){a.value=!1,i()}function l(...r){i(),a.value=!0,o=setTimeout((()=>{a.value=!1,o=null,e(...r)}),Dj(t))}return n&&(a.value=!0,$j&&l()),Pj(s),{isPending:ho(a),start:l,stop:s}}(a,t,{immediate:!1}),n=So(!1);async function a(){n.value&&(await e(),r())}function o(){n.value=!1}return Pj(o),{isActive:n,pause:o,resume:function(){n.value||(n.value=!0,a())}}}((async()=>{var t,r;const i=null==(t=n.value)?void 0:t.documentUrl;if(!i)return;const u=Dve[i];try{const e=await ej(i,null==(r=a.value)?void 0:r.proxyUrl,!1),t=fj(e);if(o.edit(n.value.uid,"watchModeStatus","WATCHING"),null!=u&&u.hash)if(u.hash&&u.hash!==t){const{schema:r}=await kve(e),n=DAe(u.schema,r),a=$Ae(n);try{a.forEach(s),Dve[i]={hash:t,schema:r}}catch(e){console.error("[useOpenApiWatcher] Error:",e)}}else console.log("[useOpenApiWatcher] No changes detected yet…");else{const{schema:r}=await kve(e);r&&(Dve[i]={hash:t,schema:r})}}catch(t){console.error("[useOpenApiWatcher] Error:",t),console.info("[useOpenApiWatcher] Pausing watcher for 60 seconds"),l(),o.edit(n.value.uid,"watchModeStatus","ERROR"),e("[useOpenApiWatcher] Unable to fetch the spec file, paused the watcher for 60 seconds","error"),setTimeout((()=>{console.info("[useOpenApiWatcher] Resuming watcher"),c()}),6e4)}}),5e3);ul([()=>{var e;return null==(e=n.value)?void 0:e.documentUrl},()=>{var e;return null==(e=n.value)?void 0:e.watchMode}],(([e,t])=>{e&&t?(console.info(`[useOpenApiWatcher] Watching ${e} …`),c()):n.value&&(l(),o.edit(n.value.uid,"watchModeStatus","IDLE"))}),{immediate:!0})},gDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function vDe(e,t){return Pl(),Ml("svg",gDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m10.812 2.492-8.32 8.32a1.68 1.68 0 0 0 0 2.377l8.32 8.319a1.68 1.68 0 0 0 2.377 0l8.319-8.32a1.68 1.68 0 0 0 0-2.377l-8.32-8.319a1.68 1.68 0 0 0-2.377 0Z"},null,-1)]))}const bDe={render:vDe},yDe=Object.freeze(Object.defineProperty({__proto__:null,default:bDe,render:vDe},Symbol.toStringTag,{value:"Module"})),ODe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function wDe(e,t){return Pl(),Ml("svg",ODe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M20.711 16.963V7.044a1.37 1.37 0 0 0-.759-1.229l-7.338-3.67a1.37 1.37 0 0 0-1.227 0l-7.34 3.662a1.37 1.37 0 0 0-.758 1.23v9.919a1.37 1.37 0 0 0 .759 1.229l7.34 3.67a1.38 1.38 0 0 0 1.229 0l7.34-3.663a1.37 1.37 0 0 0 .754-1.23Z"},null,-1)]))}const xDe={render:wDe},kDe=Object.freeze(Object.defineProperty({__proto__:null,default:xDe,render:wDe},Symbol.toStringTag,{value:"Module"})),SDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function _De(e,t){return Pl(),Ml("svg",SDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M2 12a10 10 0 1 0 20 0 10 10 0 0 0-20 0"},null,-1)]))}const EDe={render:_De},TDe=Object.freeze(Object.defineProperty({__proto__:null,default:EDe,render:_De},Symbol.toStringTag,{value:"Module"})),ADe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function CDe(e,t){return Pl(),Ml("svg",ADe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2"},null,-1)]))}const PDe={render:CDe},DDe=Object.freeze(Object.defineProperty({__proto__:null,default:PDe,render:CDe},Symbol.toStringTag,{value:"Module"})),$De={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function RDe(e,t){return Pl(),Ml("svg",$De,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M3.334 4.82v6.768a10.58 10.58 0 0 0 6.783 9.878l.926.356a2.67 2.67 0 0 0 1.914 0l.926-.356a10.58 10.58 0 0 0 6.783-9.878V4.821a1.32 1.32 0 0 0-.771-1.211A19.3 19.3 0 0 0 12 2a19.3 19.3 0 0 0-7.895 1.61 1.32 1.32 0 0 0-.771 1.21"},null,-1)]))}const MDe={render:RDe},NDe=Object.freeze(Object.defineProperty({__proto__:null,default:MDe,render:RDe},Symbol.toStringTag,{value:"Module"})),IDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function LDe(e,t){return Pl(),Ml("svg",IDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M3 20h18M5 4h14a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2"},null,-1)]))}const jDe={render:LDe},BDe=Object.freeze(Object.defineProperty({__proto__:null,default:jDe,render:LDe},Symbol.toStringTag,{value:"Module"})),UDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function FDe(e,t){return Pl(),Ml("svg",UDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8m-5 4h5m6-7h2a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2"},null,-1)]))}const QDe={render:FDe},zDe=Object.freeze(Object.defineProperty({__proto__:null,default:QDe,render:FDe},Symbol.toStringTag,{value:"Module"})),qDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function HDe(e,t){return Pl(),Ml("svg",qDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M20.522 14.167V6.64a2.13 2.13 0 0 0-2.13-2.13H5.608a2.13 2.13 0 0 0-2.13 2.13v7.526m17.044 0H3.478m17.044 0 1.364 4.778a1.066 1.066 0 0 1-.959 1.545H3.073a1.065 1.065 0 0 1-.959-1.545l1.364-4.778m6.855 3.333h3.334"},null,-1)]))}const VDe={render:HDe},ZDe=Object.freeze(Object.defineProperty({__proto__:null,default:VDe,render:HDe},Symbol.toStringTag,{value:"Module"})),WDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function XDe(e,t){return Pl(),Ml("svg",WDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M8.333 2h7.334s2.666 0 2.666 2.667v14.666s0 2.667-2.666 2.667H8.333s-2.666 0-2.666-2.667V4.667S5.667 2 8.333 2"},null,-1),Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M9.186 4.563h1.246s.889 0 .889.889V9.88s0 .889-.889.889H9.186s-.89 0-.89-.89V5.453s0-.89.89-.89"},null,-1)]))}const GDe={render:XDe},YDe=Object.freeze(Object.defineProperty({__proto__:null,default:GDe,render:XDe},Symbol.toStringTag,{value:"Module"})),KDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function JDe(e,t){return Pl(),Ml("svg",KDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.667 2H8.333a2.667 2.667 0 0 0-2.666 2.667v14.666A2.667 2.667 0 0 0 8.333 22h7.334a2.667 2.667 0 0 0 2.666-2.667V4.667A2.667 2.667 0 0 0 15.667 2"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11 5a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const e$e={render:JDe},t$e=Object.freeze(Object.defineProperty({__proto__:null,default:e$e,render:JDe},Symbol.toStringTag,{value:"Module"})),r$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function n$e(e,t){return Pl(),Ml("svg",r$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.667 2H8.333a2.667 2.667 0 0 0-2.666 2.667v14.666A2.667 2.667 0 0 0 8.333 22h7.334a2.667 2.667 0 0 0 2.666-2.667V4.667A2.667 2.667 0 0 0 15.667 2"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M8 5a1 1 0 1 1 2 0 1 1 0 0 1-2 0m3 2a1 1 0 1 1 2 0 1 1 0 0 1-2 0M8 9a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const a$e={render:n$e},o$e=Object.freeze(Object.defineProperty({__proto__:null,default:a$e,render:n$e},Symbol.toStringTag,{value:"Module"})),i$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function s$e(e,t){return Pl(),Ml("svg",i$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M7.198 2h9.603s1.74 0 1.74 1.74v16.52s0 1.74-1.74 1.74H7.198s-1.74 0-1.74-1.74V3.74S5.459 2 7.199 2Z"},null,-1),Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M14.684 4.935H9.315a.94.94 0 0 1-.932-.8L8.067 2h7.865l-.315 2.133a.94.94 0 0 1-.933.802"},null,-1)]))}const l$e={render:s$e},c$e=Object.freeze(Object.defineProperty({__proto__:null,default:l$e,render:s$e},Symbol.toStringTag,{value:"Module"})),u$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function d$e(e,t){return Pl(),Ml("svg",u$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M21 11V7a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h6m1.034-7.319a.499.499 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z"},null,-1)]))}const p$e={render:d$e},h$e=Object.freeze(Object.defineProperty({__proto__:null,default:p$e,render:d$e},Symbol.toStringTag,{value:"Module"})),f$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function m$e(e,t){return Pl(),Ml("svg",f$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.667 22H8.333a2.667 2.667 0 0 1-2.666-2.667V4.667A2.667 2.667 0 0 1 8.333 2h7.334a2.667 2.667 0 0 1 2.666 2.667v14.666A2.667 2.667 0 0 1 15.667 22"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11 19a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const g$e={render:m$e},v$e=Object.freeze(Object.defineProperty({__proto__:null,default:g$e,render:m$e},Symbol.toStringTag,{value:"Module"})),b$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function y$e(e,t){return Pl(),Ml("svg",b$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M10 7.5v2.813M14 7.5v2.813M14 7.5h2.5a1.125 1.125 0 0 1 1.125 1.125v5.062a1.125 1.125 0 0 1-1.125 1.125h-.543c-.373 0-.73.149-.994.412l-.864.864a1.4 1.4 0 0 1-.994.412h-2.21c-.373 0-.73-.148-.994-.412l-.864-.864a1.4 1.4 0 0 0-.994-.412H7.5a1.125 1.125 0 0 1-1.125-1.125V8.625A1.125 1.125 0 0 1 7.5 7.5zM4.2 3h15.6S21 3 21 4.2v15.6s0 1.2-1.2 1.2H4.2S3 21 3 19.8V4.2S3 3 4.2 3"},null,-1)]))}const O$e={render:y$e},w$e=Object.freeze(Object.defineProperty({__proto__:null,default:O$e,render:y$e},Symbol.toStringTag,{value:"Module"})),x$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function k$e(e,t){return Pl(),Ml("svg",x$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M22 12c0 5.523-4.477 10-10 10m10-10c0-5.523-4.477-10-10-10m10 10H2m10 10C6.477 22 2 17.523 2 12m10 10a14.5 14.5 0 0 1 0-20m0 20a14.5 14.5 0 0 0 0-20M2 12C2 6.477 6.477 2 12 2"},null,-1)]))}const S$e={render:k$e},_$e=Object.freeze(Object.defineProperty({__proto__:null,default:S$e,render:k$e},Symbol.toStringTag,{value:"Module"})),E$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function T$e(e,t){return Pl(),Ml("svg",E$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M2 8.82a15 15 0 0 1 20 0M5 12.859a10 10 0 0 1 14 0m-10.5 3.57a5 5 0 0 1 7 0"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const A$e={render:T$e},C$e=Object.freeze(Object.defineProperty({__proto__:null,default:A$e,render:T$e},Symbol.toStringTag,{value:"Module"})),P$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function D$e(e,t){return Pl(),Ml("svg",P$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M14.7 10.2v3.6m2.556-6.147a3.6 3.6 0 0 0-5.094 0m7.632-2.547a7.2 7.2 0 0 0-10.179 0M4.8 13.8h14.4a1.8 1.8 0 0 1 1.8 1.8v3.6a1.8 1.8 0 0 1-1.8 1.8H4.8A1.8 1.8 0 0 1 3 19.2v-3.6a1.8 1.8 0 0 1 1.8-1.8"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M6 17.5a1 1 0 1 1 2 0 1 1 0 0 1-2 0m4 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const $$e={render:D$e},R$e=Object.freeze(Object.defineProperty({__proto__:null,default:$$e,render:D$e},Symbol.toStringTag,{value:"Module"})),M$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function N$e(e,t){return Pl(),Ml("svg",M$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M8.5 2h7m-5.3 1v6.774a1.8 1.8 0 0 1-.19.807l-4.562 9.114A.9.9 0 0 0 6.258 21h11.484a.9.9 0 0 0 .81-1.305l-4.562-9.114a1.8 1.8 0 0 1-.19-.807V3M7.5 15.6h9"},null,-1)]))}const I$e={render:N$e},L$e=Object.freeze(Object.defineProperty({__proto__:null,default:I$e,render:N$e},Symbol.toStringTag,{value:"Module"})),j$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function B$e(e,t){return Pl(),Ml("svg",j$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M4.802 13.8a.899.899 0 0 1-.702-1.467l8.908-9.178a.45.45 0 0 1 .774.414l-1.728 5.417A.9.9 0 0 0 12.9 10.2h6.298a.899.899 0 0 1 .702 1.467l-8.908 9.178a.45.45 0 0 1-.774-.414l1.728-5.417A.9.9 0 0 0 11.1 13.8z"},null,-1)]))}const U$e={render:B$e},F$e=Object.freeze(Object.defineProperty({__proto__:null,default:U$e,render:B$e},Symbol.toStringTag,{value:"Module"})),Q$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function z$e(e,t){return Pl(),Ml("svg",Q$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9.286a2.5 2.5 0 1 1 2.5 2.5m-2.5-2.5a2.5 2.5 0 1 0-2.5 2.5m2.5-2.5v.833m2.5 1.667a2.5 2.5 0 1 1-2.5 2.5m2.5-2.5h-.833m-4.167 0a2.5 2.5 0 1 0 2.5 2.5m-2.5-2.5h.833M12 10.119c-.92 0-1.667.746-1.667 1.667M12 10.119c.92 0 1.667.746 1.667 1.667M12 14.286v-.834m0 .834V20.5m-1.667-8.714c0 .92.746 1.666 1.667 1.666m1.667-1.666c0 .92-.746 1.666-1.667 1.666M4.2 3h15.6S21 3 21 4.2v15.6s0 1.2-1.2 1.2H4.2S3 21 3 19.8V4.2S3 3 4.2 3"},null,-1)]))}const q$e={render:z$e},H$e=Object.freeze(Object.defineProperty({__proto__:null,default:q$e,render:z$e},Symbol.toStringTag,{value:"Module"})),V$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function Z$e(e,t){return Pl(),Ml("svg",V$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m10.812 2.492-8.32 8.32a1.68 1.68 0 0 0 0 2.377l8.32 8.319a1.68 1.68 0 0 0 2.377 0l8.319-8.32a1.68 1.68 0 0 0 0-2.377l-8.32-8.319a1.68 1.68 0 0 0-2.377 0ZM12 8v4"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11 16a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const W$e={render:Z$e},X$e=Object.freeze(Object.defineProperty({__proto__:null,default:W$e,render:Z$e},Symbol.toStringTag,{value:"Module"})),G$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function Y$e(e,t){return Pl(),Ml("svg",G$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9.57v4.296m7.926 7.516H4.074c-.798 0-1.318-.84-.96-1.554L11.04 3.976a1.074 1.074 0 0 1 1.92 0l7.927 15.852a1.074 1.074 0 0 1-.96 1.554Z"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11 18a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const K$e={render:Y$e},J$e=Object.freeze(Object.defineProperty({__proto__:null,default:K$e,render:Y$e},Symbol.toStringTag,{value:"Module"})),eRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function tRe(e,t){return Pl(),Ml("svg",eRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10"},null,-1),Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":"10",d:"M12 17v-6 0a.5.5 0 0 0-.5-.5l-.5.001h-1M12 17h-2m2 0h2"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M10.75 7.5a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const rRe={render:tRe},nRe=Object.freeze(Object.defineProperty({__proto__:null,default:rRe,render:tRe},Symbol.toStringTag,{value:"Module"})),aRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function oRe(e,t){return Pl(),Ml("svg",aRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M4.999 21.002H19M11.56 3.264a.5.5 0 0 1 .877 0l2.953 5.605a1 1 0 0 0 1.516.294L21.185 5.5a.5.5 0 0 1 .798.519l-2.835 10.248a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.018 6.019a.5.5 0 0 1 .798-.52l4.277 3.665a1 1 0 0 0 1.516-.294l2.953-5.606Z"},null,-1)]))}const iRe={render:oRe},sRe=Object.freeze(Object.defineProperty({__proto__:null,default:iRe,render:oRe},Symbol.toStringTag,{value:"Module"})),lRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function cRe(e,t){return Pl(),Ml("svg",lRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M13.527 3.525a1.8 1.8 0 0 0-1.273-.527H5.798a1.8 1.8 0 0 0-1.8 1.8v6.456c0 .478.19.936.527 1.273l7.836 7.836a2.184 2.184 0 0 0 3.078 0l5.924-5.924a2.184 2.184 0 0 0 0-3.078z"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M8 8a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const uRe={render:cRe},dRe=Object.freeze(Object.defineProperty({__proto__:null,default:uRe,render:cRe},Symbol.toStringTag,{value:"Module"})),pRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function hRe(e,t){return Pl(),Ml("svg",pRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"},null,-1)]))}const fRe={render:hRe},mRe=Object.freeze(Object.defineProperty({__proto__:null,default:fRe,render:hRe},Symbol.toStringTag,{value:"Module"})),gRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function vRe(e,t){return Pl(),Ml("svg",gRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M11 14h1v4m4-16v4M3 10h18M8 2v4M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2"},null,-1)]))}const bRe={render:vRe},yRe=Object.freeze(Object.defineProperty({__proto__:null,default:bRe,render:vRe},Symbol.toStringTag,{value:"Module"})),ORe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function wRe(e,t){return Pl(),Ml("svg",ORe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M17.333 5.01c1.39-.224 2.796-.34 4.205-.346.121 0 .238.044.329.125.085.084.133.2.133.32v14a.453.453 0 0 1-.444.444C14.186 19.66 12 21.997 12 21.997m0 0V7.091m0 14.906s-2.187-2.337-9.556-2.444A.453.453 0 0 1 2 19.109v-14c0-.12.048-.236.133-.32a.5.5 0 0 1 .33-.125C9.822 4.762 12 7.091 12 7.091m0 0a5.5 5.5 0 0 1 1.458-3.05 6.9 6.9 0 0 1 3.235-2.017.53.53 0 0 1 .436.053.41.41 0 0 1 .204.356V16.31a7.27 7.27 0 0 0-3.875 2.186A5.33 5.33 0 0 0 12 21.562"},null,-1)]))}const xRe={render:wRe},kRe=Object.freeze(Object.defineProperty({__proto__:null,default:xRe,render:wRe},Symbol.toStringTag,{value:"Module"})),SRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function _Re(e,t){return Pl(),Ml("svg",SRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M11 3v8l3-3 3 3V3M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2"},null,-1)]))}const ERe={render:_Re},TRe=Object.freeze(Object.defineProperty({__proto__:null,default:ERe,render:_Re},Symbol.toStringTag,{value:"Module"})),ARe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function CRe(e,t){return Pl(),Ml("svg",ARe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 3v4a2 2 0 0 0 2 2h4m-5-6H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8z"},null,-1)]))}const PRe={render:CRe},DRe=Object.freeze(Object.defineProperty({__proto__:null,default:PRe,render:CRe},Symbol.toStringTag,{value:"Module"})),$Re={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function RRe(e,t){return Pl(),Ml("svg",$Re,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M13 6h6a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.93a2 2 0 0 1 1.67.9l.81 1.2a2 2 0 0 0 1.69.9"},null,-1)]))}const MRe={render:RRe},NRe=Object.freeze(Object.defineProperty({__proto__:null,default:MRe,render:RRe},Symbol.toStringTag,{value:"Module"})),IRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function LRe(e,t){return Pl(),Ml("svg",IRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2m1-2h6a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1"},null,-1)]))}const jRe={render:LRe},BRe=Object.freeze(Object.defineProperty({__proto__:null,default:jRe,render:LRe},Symbol.toStringTag,{value:"Module"})),URe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function FRe(e,t){return Pl(),Ml("svg",URe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m20.72 11.12-8.51 8.51a5.559 5.559 0 1 1-7.86-7.861l7.935-7.936a3.71 3.71 0 0 1 5.25 5.241L9.581 17.01a1.853 1.853 0 1 1-2.62-2.62l7.861-7.853"},null,-1)]))}const QRe={render:FRe},zRe=Object.freeze(Object.defineProperty({__proto__:null,default:QRe,render:FRe},Symbol.toStringTag,{value:"Module"})),qRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function HRe(e,t){return Pl(),Ml("svg",qRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M10.2 16.8a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0m0 0V5.7a2.1 2.1 0 0 0-4.125-.56L3.13 15.844m10.67.956a3.6 3.6 0 1 0 7.2 0 3.6 3.6 0 0 0-7.2 0m0 0V5.7a2.1 2.1 0 0 1 4.125-.56l2.945 10.7M10.2 9.6h3.6V12h-3.6z"},null,-1)]))}const VRe={render:HRe},ZRe=Object.freeze(Object.defineProperty({__proto__:null,default:VRe,render:HRe},Symbol.toStringTag,{value:"Module"})),WRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function XRe(e,t){return Pl(),Ml("svg",WRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 6V4m2 2.983 1.414-1.415M18 9h2m-3 2 1.2 1.2M4 20 15 9m-1.8-1.8L12 6"},null,-1)]))}const GRe={render:XRe},YRe=Object.freeze(Object.defineProperty({__proto__:null,default:GRe,render:XRe},Symbol.toStringTag,{value:"Module"})),KRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function JRe(e,t){return Pl(),Ml("svg",KRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M13.8 15.6v-1.8A1.8 1.8 0 0 0 12 12H4.8A1.8 1.8 0 0 1 3 10.2V7.5a1.8 1.8 0 0 1 1.8-1.8h1.8M19.2 3H8.4a1.8 1.8 0 0 0-1.8 1.8v1.8a1.8 1.8 0 0 0 1.8 1.8h10.8A1.8 1.8 0 0 0 21 6.6V4.8A1.8 1.8 0 0 0 19.2 3m-4.5 12.6h-1.8a.9.9 0 0 0-.9.9v3.6a.9.9 0 0 0 .9.9h1.8a.9.9 0 0 0 .9-.9v-3.6a.9.9 0 0 0-.9-.9"},null,-1)]))}const eMe={render:JRe},tMe=Object.freeze(Object.defineProperty({__proto__:null,default:eMe,render:JRe},Symbol.toStringTag,{value:"Module"})),rMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function nMe(e,t){return Pl(),Ml("svg",rMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M16.494 3.913a2.56 2.56 0 0 1 1.855-.905 2.58 2.58 0 0 1 1.923.749 2.54 2.54 0 0 1 .741 1.915 2.53 2.53 0 0 1-.924 1.835l-12.13 12.13-4.943 1.348 1.348-4.942z"},null,-1)]))}const aMe={render:nMe},oMe=Object.freeze(Object.defineProperty({__proto__:null,default:aMe,render:nMe},Symbol.toStringTag,{value:"Module"})),iMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function sMe(e,t){return Pl(),Ml("svg",iMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526M18 8A6 6 0 1 1 6 8a6 6 0 0 1 12 0"},null,-1)]))}const lMe={render:sMe},cMe=Object.freeze(Object.defineProperty({__proto__:null,default:lMe,render:sMe},Symbol.toStringTag,{value:"Module"})),uMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function dMe(e,t){return Pl(),Ml("svg",uMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M4.8 14.7s.9-.9 3.6-.9 4.5 1.8 7.2 1.8 3.6-.9 3.6-.9V3.9s-.9.9-3.6.9S11.1 3 8.4 3s-3.6.9-3.6.9zm0 0V21"},null,-1)]))}const pMe={render:dMe},hMe=Object.freeze(Object.defineProperty({__proto__:null,default:pMe,render:dMe},Symbol.toStringTag,{value:"Module"})),fMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function mMe(e,t){return Pl(),Ml("svg",fMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7z"},null,-1)]))}const gMe={render:mMe},vMe=Object.freeze(Object.defineProperty({__proto__:null,default:gMe,render:mMe},Symbol.toStringTag,{value:"Module"})),bMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function yMe(e,t){return Pl(),Ml("svg",bMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.12 2.12 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16z"},null,-1)]))}const OMe={render:yMe},wMe=Object.freeze(Object.defineProperty({__proto__:null,default:OMe,render:yMe},Symbol.toStringTag,{value:"Module"})),xMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function kMe(e,t){return Pl(),Ml("svg",xMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M4 3v4M2 5h4m14 12v2m-1-1h2m-6.937-2.5a2 2 0 0 1 1.437-1.437l6.135-1.582a.5.5 0 0 0 0-.962L15.5 9.936A2 2 0 0 1 14.063 8.5l-1.582-6.135a.5.5 0 0 0-.963 0L9.937 8.5A2 2 0 0 1 8.5 9.937l-6.135 1.581a.5.5 0 0 0 0 .964L8.5 14.063A2 2 0 0 1 9.937 15.5l1.582 6.135a.5.5 0 0 0 .963 0z"},null,-1)]))}const SMe={render:kMe},_Me=Object.freeze(Object.defineProperty({__proto__:null,default:SMe,render:kMe},Symbol.toStringTag,{value:"Module"})),EMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function TMe(e,t){return Pl(),Ml("svg",EMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M7 11v4a2 2 0 0 0 2 2h4"},null,-1),Ul("circle",{cx:"7",cy:"7",r:"3.25",stroke:"currentColor"},null,-1),Ul("circle",{cx:"17",cy:"17",r:"3.25",stroke:"currentColor"},null,-1)]))}const AMe={render:TMe},CMe=Object.freeze(Object.defineProperty({__proto__:null,default:AMe,render:TMe},Symbol.toStringTag,{value:"Module"})),PMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function DMe(e,t){return Pl(),Ml("svg",PMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 21v-6a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v6M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"},null,-1)]))}const $Me={render:DMe},RMe=Object.freeze(Object.defineProperty({__proto__:null,default:$Me,render:DMe},Symbol.toStringTag,{value:"Module"})),MMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function NMe(e,t){return Pl(),Ml("svg",MMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M13.414 17.657 12 19.07A5 5 0 0 1 4.929 12l1.414-1.414m4.243-4.243L12 4.93A5 5 0 0 1 19.071 12l-1.414 1.414m-8.485 1.414 5.656-5.656"},null,-1)]))}const IMe={render:NMe},LMe=Object.freeze(Object.defineProperty({__proto__:null,default:IMe,render:NMe},Symbol.toStringTag,{value:"Module"})),jMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function BMe(e,t){return Pl(),Ml("svg",jMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32 1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0"},null,-1)]))}const UMe={render:BMe},FMe=Object.freeze(Object.defineProperty({__proto__:null,default:UMe,render:BMe},Symbol.toStringTag,{value:"Module"})),QMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function zMe(e,t){return Pl(),Ml("svg",QMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M5.778 10h12.444c.982 0 1.778.895 1.778 2v8c0 1.105-.796 2-1.778 2H5.778C4.796 22 4 21.105 4 20v-8c0-1.105.796-2 1.778-2M7 10V7a5 5 0 1 1 10 0v3"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11 16a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const qMe={render:zMe},HMe=Object.freeze(Object.defineProperty({__proto__:null,default:qMe,render:zMe},Symbol.toStringTag,{value:"Module"})),VMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function ZMe(e,t){return Pl(),Ml("svg",VMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M5.778 10h12.444c.982 0 1.778.895 1.778 2v8c0 1.105-.796 2-1.778 2H5.778C4.796 22 4 21.105 4 20v-8c0-1.105.796-2 1.778-2M7 10V7a5 5 0 1 1 10 0v3"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11 16a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const WMe={render:ZMe},XMe=Object.freeze(Object.defineProperty({__proto__:null,default:WMe,render:ZMe},Symbol.toStringTag,{value:"Module"})),GMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function YMe(e,t){return Pl(),Ml("svg",GMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M7.5 21a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11m3.9-9.4L19 4m-3.5 3.5 3 3M22 7l-3-3"},null,-1)]))}const KMe={render:YMe},JMe=Object.freeze(Object.defineProperty({__proto__:null,default:KMe,render:YMe},Symbol.toStringTag,{value:"Module"})),eNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function tNe(e,t){return Pl(),Ml("svg",eNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M11 19a8 8 0 1 0 0-16 8 8 0 0 0 0 16m10 2-4.35-4.35"},null,-1)]))}const rNe={render:tNe},nNe=Object.freeze(Object.defineProperty({__proto__:null,default:rNe,render:tNe},Symbol.toStringTag,{value:"Module"})),aNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function oNe(e,t){return Pl(),Ml("svg",aNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M2 11.78v.44a2 2 0 0 0 2 2h.18a2 2 0 0 1 1.73 1l.25.43a2 2 0 0 1 0 2l-.08.15a2 2 0 0 0 .73 2.73l.38.22a2 2 0 0 0 2.73-.73l.1-.15a2 2 0 0 1 1.72-1h.51a2 2 0 0 1 1.74 1l.09.15a2 2 0 0 0 2.73.73l.38-.22a2 2 0 0 0 .73-2.73l-.08-.15a2 2 0 0 1 0-2l.25-.43a2 2 0 0 1 1.73-1H20a2 2 0 0 0 2-2v-.44a2 2 0 0 0-2-2h-.18a2 2 0 0 1-1.73-1l-.25-.43a2 2 0 0 1 0-2l.08-.15a2 2 0 0 0-.73-2.73l-.39-.22a2 2 0 0 0-2.73.73l-.08.15a2 2 0 0 1-1.74 1h-.5a2 2 0 0 1-1.74-1l-.09-.15a2 2 0 0 0-2.73-.73l-.38.22a2 2 0 0 0-.73 2.73l.08.15a2 2 0 0 1 0 2l-.25.43a2 2 0 0 1-1.73 1H4a2 2 0 0 0-2 2"},null,-1),Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 0-6 0 3 3 0 0 0 6 0"},null,-1)]))}const iNe={render:oNe},sNe=Object.freeze(Object.defineProperty({__proto__:null,default:iNe,render:oNe},Symbol.toStringTag,{value:"Module"})),lNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function cNe(e,t){return Pl(),Ml("svg",lNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M16 9a5 5 0 0 1 0 6m3.364 3.364a9 9 0 0 0 0-12.728M11 4.702a.706.706 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z"},null,-1)]))}const uNe={render:cNe},dNe=Object.freeze(Object.defineProperty({__proto__:null,default:uNe,render:cNe},Symbol.toStringTag,{value:"Module"})),pNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function hNe(e,t){return Pl(),Ml("svg",pNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M11.566 18.582v2.778s3.367-.611 4.445-2.222c.58-.87.599-2.196.465-3.334m-10.698-3.01H3s.611-3.367 2.222-4.445c.87-.58 2.196-.6 3.334-.465m-.82 8.883-1.571-1.571-.625-.625a20.2 20.2 0 0 1 1.837-4.667 10.76 10.76 0 0 1 5.199-4.825c2.26-1.003 4.914-1.314 7.712-.903.486 3.46.349 9.4-5.665 12.92a20.6 20.6 0 0 1-4.73 1.828l-.586-.585zm0 0L6.165 18.34"},null,-1)]))}const fNe={render:hNe},mNe=Object.freeze(Object.defineProperty({__proto__:null,default:fNe,render:hNe},Symbol.toStringTag,{value:"Module"})),gNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function vNe(e,t){return Pl(),Ml("svg",gNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m9 15 3-3m5 1a6 6 0 0 0-6-6m10 6A10 10 0 0 0 11 3m-7 7a7.31 7.31 0 0 0 10 10z"},null,-1)]))}const bNe={render:vNe},yNe=Object.freeze(Object.defineProperty({__proto__:null,default:bNe,render:vNe},Symbol.toStringTag,{value:"Module"})),ONe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function wNe(e,t){return Pl(),Ml("svg",ONe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M4 3v4M2 5h4m14 12v2m-1-1h2m-10.582-5.578L5.368 13.5a.763.763 0 0 1-.906-.574l-.439-1.757a.875.875 0 0 1 .565-1.034l11.036-3.629m-2.35 5.307 3.541-.755m-1.546 8.317L12.73 14.3M7.225 9.268l.91 3.642m.596 6.465 2.537-5.075m4.397-7.233a1.635 1.635 0 0 1 1.19-1.982l.89-.222a.817.817 0 0 1 .99.594l1.239 4.953a.82.82 0 0 1-.594.99l-.891.223a1.634 1.634 0 0 1-1.982-1.189zm-2.03 5.77a1.635 1.635 0 1 1-3.27 0 1.635 1.635 0 0 1 3.27 0"},null,-1)]))}const xNe={render:wNe},kNe=Object.freeze(Object.defineProperty({__proto__:null,default:xNe,render:wNe},Symbol.toStringTag,{value:"Module"})),SNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function _Ne(e,t){return Pl(),Ml("svg",SNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m7.59 13.51 6.83 3.98m-.01-10.98-6.82 3.98M20 5a3 3 0 1 1-6 0 3 3 0 0 1 6 0M8 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0m12 7a3 3 0 1 1-6 0 3 3 0 0 1 6 0"},null,-1)]))}const ENe={render:_Ne},TNe=Object.freeze(Object.defineProperty({__proto__:null,default:ENe,render:_Ne},Symbol.toStringTag,{value:"Module"})),ANe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function CNe(e,t){return Pl(),Ml("svg",ANe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M18 12h-1.488a1.2 1.2 0 0 0-1.158.876l-1.41 5.016a.15.15 0 0 1-.288 0L10.344 6.108a.15.15 0 0 0-.288 0l-1.41 5.016A1.2 1.2 0 0 1 7.494 12H6"},null,-1),Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2"},null,-1)]))}const PNe={render:CNe},DNe=Object.freeze(Object.defineProperty({__proto__:null,default:PNe,render:CNe},Symbol.toStringTag,{value:"Module"})),$Ne={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function RNe(e,t){return Pl(),Ml("svg",$Ne,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6l4 2M2 12a10 10 0 1 0 20 0 10 10 0 0 0-20 0"},null,-1)]))}const MNe={render:RNe},NNe=Object.freeze(Object.defineProperty({__proto__:null,default:MNe,render:RNe},Symbol.toStringTag,{value:"Module"})),INe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function LNe(e,t){return Pl(),Ml("svg",INe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M17.263 5.71v.181c0 .558-.222 1.094-.617 1.489l-3.157 3.158a2.105 2.105 0 0 1-2.978 0L7.353 7.38a2.1 2.1 0 0 1-.616-1.489v-.18m10.526 0V3.605A2.105 2.105 0 0 0 15.158 1.5H8.842a2.105 2.105 0 0 0-2.105 2.105v2.106m10.526 0H6.737m0 15.789h10.526m-10.526 0 3.948-3.158a2.105 2.105 0 0 1 2.63 0l3.948 3.158m-10.526 0v-4.391c0-.559.222-1.094.616-1.489l3.158-3.158a2.105 2.105 0 0 1 2.978 0l3.157 3.158c.395.395.617.93.617 1.489V21.5"},null,-1)]))}const jNe={render:LNe},BNe=Object.freeze(Object.defineProperty({__proto__:null,default:jNe,render:LNe},Symbol.toStringTag,{value:"Module"})),UNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function FNe(e,t){return Pl(),Ml("svg",UNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2m20 0v-2a4 4 0 0 0-3-3.87m-3-12a4 4 0 0 1 0 7.75M13 7a4 4 0 1 1-8 0 4 4 0 0 1 8 0"},null,-1)]))}const QNe={render:FNe},zNe=Object.freeze(Object.defineProperty({__proto__:null,default:QNe,render:FNe},Symbol.toStringTag,{value:"Module"})),qNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function HNe(e,t){return Pl(),Ml("svg",qNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 2a7.071 7.071 0 1 0 10 10M12 2a10 10 0 0 0-7.071 17.071M12 2a10 10 0 0 0-7.071 17.071M22 12a10 10 0 0 1-17.071 7.071M22 12a10 10 0 0 1-17.071 7.071"},null,-1)]))}const VNe={render:HNe},ZNe=Object.freeze(Object.defineProperty({__proto__:null,default:VNe,render:HNe},Symbol.toStringTag,{value:"Module"})),WNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function XNe(e,t){return Pl(),Ml("svg",WNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"},null,-1)]))}const GNe={render:XNe},YNe=Object.freeze(Object.defineProperty({__proto__:null,default:GNe,render:XNe},Symbol.toStringTag,{value:"Module"})),KNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function JNe(e,t){return Pl(),Ml("svg",KNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M11.023 12.976a1.8 1.8 0 0 0-.603-.397L3.284 9.718a.45.45 0 0 1 .021-.843l17.098-5.85a.446.446 0 0 1 .572.572l-5.85 17.098a.45.45 0 0 1-.843.021l-2.861-7.138a1.8 1.8 0 0 0-.398-.601Zm0 0 9.845-9.843"},null,-1)]))}const eIe={render:JNe},tIe=Object.freeze(Object.defineProperty({__proto__:null,default:eIe,render:JNe},Symbol.toStringTag,{value:"Module"})),rIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function nIe(e,t){return Pl(),Ml("svg",rIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7m2-3h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2"},null,-1)]))}const aIe={render:nIe},oIe=Object.freeze(Object.defineProperty({__proto__:null,default:aIe,render:nIe},Symbol.toStringTag,{value:"Module"})),iIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function sIe(e,t){return Pl(),Ml("svg",iIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12h5M9 8h5m-9 9V5a2 2 0 0 1 2-2h13m0 0a2 2 0 0 0-2 2v14a2 2 0 0 1-2 2m4-18a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1h-3m-2 13H4a2 2 0 0 1-2-2v-1a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1a2 2 0 0 0 2 2"},null,-1)]))}const lIe={render:sIe},cIe=Object.freeze(Object.defineProperty({__proto__:null,default:lIe,render:sIe},Symbol.toStringTag,{value:"Module"})),uIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function dIe(e,t){return Pl(),Ml("svg",uIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 2v20m5-17H9.5a3.5 3.5 0 1 0 0 7h5a3.5 3.5 0 1 1 0 7H6"},null,-1)]))}const pIe={render:dIe},hIe=Object.freeze(Object.defineProperty({__proto__:null,default:pIe,render:dIe},Symbol.toStringTag,{value:"Module"})),fIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function mIe(e,t){return Pl(),Ml("svg",fIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m22 7-8.5 8.5-5-5L2 17M22 7h-6m6 0v6"},null,-1)]))}const gIe={render:mIe},vIe=Object.freeze(Object.defineProperty({__proto__:null,default:gIe,render:mIe},Symbol.toStringTag,{value:"Module"})),bIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function yIe(e,t){return Pl(),Ml("svg",bIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M8 17v-7m4 7v-4m4 4V8M5 21h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2"},null,-1)]))}const OIe={render:yIe},wIe=Object.freeze(Object.defineProperty({__proto__:null,default:OIe,render:yIe},Symbol.toStringTag,{value:"Module"})),xIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function kIe(e,t){return Pl(),Ml("svg",xIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M3.011 20.99c1.124-.887 2.04-1.775 3.506-1.977 1.268 0 2.49.481 3.416 1.348a3.595 3.595 0 0 0 5.561-2.115 3.146 3.146 0 0 0 3.317-4.599 3.148 3.148 0 0 0 1.234-5.241 3.145 3.145 0 1 0-4.45-4.45 3.147 3.147 0 0 0-5.24 1.234 3.146 3.146 0 0 0-4.6 3.317 3.596 3.596 0 0 0-2.11 5.533c.714 1.035 1.532 2.197 1.344 3.444-.247 1.477-1.066 2.366-1.978 3.506m0 0L16.494 7.507"},null,-1)]))}const SIe={render:kIe},_Ie=Object.freeze(Object.defineProperty({__proto__:null,default:SIe,render:kIe},Symbol.toStringTag,{value:"Module"})),EIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function TIe(e,t){return Pl(),Ml("svg",EIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M21.038 16.44v2.71a1.81 1.81 0 0 1-1.97 1.807 17.9 17.9 0 0 1-7.794-2.773 17.6 17.6 0 0 1-5.42-5.42 17.9 17.9 0 0 1-2.773-7.83 1.806 1.806 0 0 1 1.798-1.97h2.71a1.806 1.806 0 0 1 1.806 1.554 11.6 11.6 0 0 0 .632 2.538 1.8 1.8 0 0 1-.406 1.906l-1.147 1.147a14.45 14.45 0 0 0 5.42 5.42l1.146-1.148a1.81 1.81 0 0 1 1.906-.406c.82.305 1.671.518 2.538.632a1.807 1.807 0 0 1 1.554 1.833"},null,-1)]))}const AIe={render:TIe},CIe=Object.freeze(Object.defineProperty({__proto__:null,default:AIe,render:TIe},Symbol.toStringTag,{value:"Module"})),PIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function DIe(e,t){return Pl(),Ml("svg",PIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m8.21 2.5 1.782 1.781m4.016 0L15.79 2.5M9.158 7.36v-.947a2.845 2.845 0 1 1 5.684 0v.947M12 19.553c-3.126 0-5.684-2.558-5.684-5.685v-2.842a3.79 3.79 0 0 1 3.79-3.79h3.789a3.79 3.79 0 0 1 3.79 3.79v2.842c0 3.127-2.559 5.685-5.685 5.685m0 0v-8.527M6.818 9.132c-1.829-.19-3.344-1.8-3.344-3.79m2.842 7.58h-3.79m.948 7.578c0-1.99 1.61-3.695 3.6-3.79M20.498 5.342c0 1.99-1.516 3.6-3.316 3.79m4.292 3.79h-3.79m-.758 3.788c1.99.095 3.6 1.8 3.6 3.79"},null,-1)]))}const $Ie={render:DIe},RIe=Object.freeze(Object.defineProperty({__proto__:null,default:$Ie,render:DIe},Symbol.toStringTag,{value:"Module"})),MIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function NIe(e,t){return Pl(),Ml("svg",MIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M17.662 18.661a4.33 4.33 0 1 0-2.455-7.891 6.662 6.662 0 1 0-6.537 7.89h8.993Z"},null,-1)]))}const IIe={render:NIe},LIe=Object.freeze(Object.defineProperty({__proto__:null,default:IIe,render:NIe},Symbol.toStringTag,{value:"Module"})),jIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function BIe(e,t){return Pl(),Ml("svg",jIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M20 12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2m16 0H4m16 0a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2"},null,-1),Ul("path",{fill:"currentColor",d:"M18 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2m0 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2"},null,-1),Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M6 8h4m-4 8h4"},null,-1)]))}const UIe={render:BIe},FIe=Object.freeze(Object.defineProperty({__proto__:null,default:UIe,render:BIe},Symbol.toStringTag,{value:"Module"})),QIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function zIe(e,t){return Pl(),Ml("svg",QIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M3 6.601c0 .955.948 1.87 2.636 2.546S9.613 10.2 12 10.2s4.676-.38 6.364-1.054C20.052 8.47 21 7.556 21 6.6m-18 0c0-.955.948-1.87 2.636-2.546C7.324 3.38 9.613 3.001 12 3.001s4.676.38 6.364 1.054C20.052 4.731 21 5.646 21 6.601m-18 0v5.4m18-5.4v5.4M3 12c0 1.987 4.03 3.6 9 3.6s9-1.612 9-3.6M3 12v5.4c0 1.987 4.03 3.6 9 3.6s9-1.613 9-3.6V12"},null,-1)]))}const qIe={render:zIe},HIe=Object.freeze(Object.defineProperty({__proto__:null,default:qIe,render:zIe},Symbol.toStringTag,{value:"Module"})),VIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function ZIe(e,t){return Pl(),Ml("svg",VIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M9 3H4a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1m11 0h-5a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1m0 11h-5a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1M9 14H4a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1"},null,-1)]))}const WIe={render:ZIe},XIe=Object.freeze(Object.defineProperty({__proto__:null,default:WIe,render:ZIe},Symbol.toStringTag,{value:"Module"})),GIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function YIe(e,t){return Pl(),Ml("svg",GIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M20 14h-5a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1M9 14H4a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1m5-11H9a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1"},null,-1)]))}const KIe={render:YIe},JIe=Object.freeze(Object.defineProperty({__proto__:null,default:KIe,render:YIe},Symbol.toStringTag,{value:"Module"})),eLe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function tLe(e,t){return Pl(),Ml("svg",eLe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m3.3 7 8.7 5m0 0 8.7-5M12 12v10m9-14a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"},null,-1)]))}const rLe={render:tLe},nLe=Object.freeze(Object.defineProperty({__proto__:null,default:rLe,render:tLe},Symbol.toStringTag,{value:"Module"})),aLe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function oLe(e,t){return Pl(),Ml("svg",aLe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m7 14 2.5-2.5L7 9m5 7.5h5M5 4h14c1.105 0 2 .796 2 1.778v12.444c0 .982-.895 1.778-2 1.778H5c-1.105 0-2-.796-2-1.778V5.778C3 4.796 3.895 4 5 4"},null,-1)]))}const iLe={render:oLe},sLe=Object.freeze(Object.defineProperty({__proto__:null,default:iLe,render:oLe},Symbol.toStringTag,{value:"Module"})),lLe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function cLe(e,t){return Pl(),Ml("svg",lLe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.347",d:"M2.02 3.015h1.796l2.39 11.156a1.8 1.8 0 0 0 1.796 1.42h8.784a1.796 1.796 0 0 0 1.752-1.411l1.482-6.674H4.777"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M7 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0m9 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const uLe={render:cLe},dLe=Object.freeze(Object.defineProperty({__proto__:null,default:uLe,render:cLe},Symbol.toStringTag,{value:"Module"})),pLe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function hLe(e,t){return Pl(),Ml("svg",pLe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8v13m0-13c-.362-1.49-.985-2.765-1.787-3.657C9.41 3.451 8.465 2.983 7.5 3a2.5 2.5 0 1 0 0 5M12 8c.362-1.49.985-2.765 1.787-3.657.803-.892 1.748-1.36 2.713-1.343a2.5 2.5 0 0 1 0 5m2.5 4v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7M4 8h16a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1"},null,-1)]))}const fLe={render:hLe},mLe=Object.freeze(Object.defineProperty({__proto__:null,default:fLe,render:hLe},Symbol.toStringTag,{value:"Module"})),gLe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function vLe(e,t){return Pl(),Ml("svg",gLe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M3 9h18M3 9v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9M3 9l2.45-4.9A2 2 0 0 1 7.24 3h9.52a2 2 0 0 1 1.8 1.1L21 9m-9-6v6"},null,-1)]))}const bLe={render:vLe},yLe=Object.freeze(Object.defineProperty({__proto__:null,default:bLe,render:vLe},Symbol.toStringTag,{value:"Module"})),OLe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function wLe(e,t){return Pl(),Ml("svg",OLe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M4.929 19.071a10 10 0 0 0 14.142 0m0-14.142a10 10 0 0 0-14.142 0M4 15.5v-7l2.8 7v-7m5.6 7H11a1.4 1.4 0 0 1-1.4-1.4V9.9A1.4 1.4 0 0 1 11 8.5h1.4m-2.8 4.2h2.8m2.8-4.2v1.883a8.4 8.4 0 0 0 .601 3.119L16.6 15.5l1.4-4.9 1.4 4.9.8-1.998a8.4 8.4 0 0 0 .6-3.12V8.5"},null,-1)]))}const xLe={render:wLe},kLe=Object.freeze(Object.defineProperty({__proto__:null,default:xLe,render:wLe},Symbol.toStringTag,{value:"Module"})),SLe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function _Le(e,t){return Pl(),Ml("svg",SLe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M7 20.5 8 14h1.08a1.48 1.48 0 0 0 1.18-.58 1.44 1.44 0 0 0 .27-1.28l-.75-3A1.49 1.49 0 0 0 8.33 8H3m16-3h-3.753a1.49 1.49 0 0 0-1.45 1.14l-.75 3a1.44 1.44 0 0 0 .28 1.28 1.48 1.48 0 0 0 1.18.58h1.58l.78 4.75a1.5 1.5 0 0 0 1.46 1.25h2M2 12a10 10 0 1 0 20 0 10 10 0 0 0-20 0"},null,-1)]))}const ELe={render:_Le},TLe=Object.freeze(Object.defineProperty({__proto__:null,default:ELe,render:_Le},Symbol.toStringTag,{value:"Module"})),ALe=function(e){const t=Object.entries(e).map((([e,t])=>{const r=e.replace("./icons/","").replace(".svg","");return{icon:{src:r,title:r.replaceAll("-"," "),tags:[]},rawData:t}})),r=t.map((e=>e.icon)),n=Object.fromEntries(t.map((e=>[e.icon.src,e.rawData])));return{iconDefinitionList:r,iconDataMap:n}}(Object.assign({"./icons/basic-shape-diamond.svg":yDe,"./icons/basic-shape-hexagon.svg":kDe,"./icons/basic-shape-primary-circle-ellipse-round.svg":TDe,"./icons/basic-shape-primary-square-rectangle.svg":DDe,"./icons/basic-shape-shield.svg":NDe,"./icons/computer-device-desktop-monitor.svg":BDe,"./icons/computer-device-desktop.svg":zDe,"./icons/computer-device-laptop.svg":ZDe,"./icons/computer-device-mobile-phone-android-samsung-back.svg":YDe,"./icons/computer-device-mobile-phone-android-samsung.svg":t$e,"./icons/computer-device-mobile-phone-iphone-x-back.svg":o$e,"./icons/computer-device-mobile-phone-iphone-x.svg":c$e,"./icons/computer-device-mobile-tablet-touch.svg":h$e,"./icons/computer-device-mobile-tablet.svg":v$e,"./icons/computer-device-network-ethernet-cat6.svg":w$e,"./icons/computer-device-network-lan-www.svg":_$e,"./icons/computer-device-network-wifi-connection.svg":C$e,"./icons/computer-device-network-wifi-router.svg":R$e,"./icons/ecology-science-erlenmeyer-flask.svg":L$e,"./icons/image-flash-lightning.svg":F$e,"./icons/image-picture-flower.svg":H$e,"./icons/interface-alert-exclamation-diamond.svg":X$e,"./icons/interface-alert-exclamation-triangle-warning.svg":J$e,"./icons/interface-alert-information-circle.svg":nRe,"./icons/interface-award-crown.svg":sRe,"./icons/interface-bookmark-tag.svg":dRe,"./icons/interface-bookmark.svg":mRe,"./icons/interface-calendar-date-one.svg":yRe,"./icons/interface-content-book-open-pages.svg":kRe,"./icons/interface-content-book-page.svg":TRe,"./icons/interface-content-file.svg":DRe,"./icons/interface-content-folder.svg":NRe,"./icons/interface-copy-clipboard.svg":BRe,"./icons/interface-edit-attachment.svg":zRe,"./icons/interface-edit-binocular.svg":ZRe,"./icons/interface-edit-magic-wand.svg":YRe,"./icons/interface-edit-tool-paint-roller.svg":tMe,"./icons/interface-edit-tool-pencil.svg":oMe,"./icons/interface-favorite-award.svg":cMe,"./icons/interface-favorite-flag.svg":hMe,"./icons/interface-favorite-heart.svg":vMe,"./icons/interface-favorite-star.svg":wMe,"./icons/interface-favorite-stars-sparkles.svg":_Me,"./icons/interface-hierarchy-flowchart.svg":CMe,"./icons/interface-home-house.svg":RMe,"./icons/interface-hyperlink.svg":LMe,"./icons/interface-lighting-brightness.svg":FMe,"./icons/interface-lock-closed.svg":HMe,"./icons/interface-lock-open-unlock.svg":XMe,"./icons/interface-login-key.svg":JMe,"./icons/interface-search.svg":nNe,"./icons/interface-setting-cog.svg":sNe,"./icons/interface-share-megaphone-bullhorn.svg":dNe,"./icons/interface-share-rocket.svg":mNe,"./icons/interface-share-satellite.svg":yNe,"./icons/interface-share-space-ship.svg":kNe,"./icons/interface-share.svg":TNe,"./icons/interface-signal-square.svg":DNe,"./icons/interface-time-clock-circle.svg":NNe,"./icons/interface-time-hour-glass.svg":BNe,"./icons/interface-users-multiple.svg":zNe,"./icons/interface-weather-moon.svg":ZNe,"./icons/mail-chat-bubble-square.svg":YNe,"./icons/mail-send-email-paper-airplane.svg":tIe,"./icons/mail-send-envelope.svg":oIe,"./icons/money-cashier-receipt.svg":cIe,"./icons/money-currency-dollar-pay.svg":hIe,"./icons/money-graph-arrow-increase.svg":vIe,"./icons/money-graph-bar-chart-increase.svg":wIe,"./icons/nature-ecology-leaf.svg":_Ie,"./icons/phone-telephone.svg":CIe,"./icons/programming-bug.svg":RIe,"./icons/programming-cloud.svg":LIe,"./icons/programming-computer-database-server.svg":FIe,"./icons/programming-computer-database.svg":HIe,"./icons/programming-module-four-layout.svg":XIe,"./icons/programming-module-three.svg":JIe,"./icons/programming-module.svg":nLe,"./icons/programming-script-code.svg":sLe,"./icons/shopping-cart.svg":dLe,"./icons/shopping-gift-present.svg":mLe,"./icons/shopping-shipping-box-parcel-package.svg":yLe,"./icons/tag-new-circle.svg":kLe,"./icons/travel-map-earth-globe.svg":TLe})),CLe=ALe.iconDefinitionList,PLe=ALe.iconDataMap,DLe=Li({__name:"LibraryIcon",props:{src:{}},setup(e){const t=e,r=hc((()=>(e=>PLe[e])(t.src)));return(e,t)=>r.value?(Pl(),Nl(cs(r.value),{key:0})):Vl("",!0)}}),$Le={class:"m-0 flex items-center gap-1.5 font-medium whitespace-nowrap"},RLe={class:"flex h-4 w-4 items-center justify-center"},MLe=Li({__name:"EnvironmentSelector",setup(e){const{activeCollection:t,activeWorkspace:r,activeEnvironment:n}=rye(),{collectionMutators:a}=Hve(),{layout:o}=Pme(),i=cme(),s=e=>{t.value&&r.value&&(a.edit(t.value.uid,"x-scalar-active-environment",e),r.value.activeEnvironmentId=e)},l=()=>{var e;return i.push({name:"environment.default",params:{[Ybe.Workspace]:null==(e=r.value)?void 0:e.uid}})},c=hc((()=>{const{value:e}=n,{value:r}=t;return(null==e?void 0:e.name)||(null==r?void 0:r["x-scalar-active-environment"])||"No Environment"})),u=hc((()=>{const{value:e}=t,r=null==e?void 0:e["x-scalar-environments"];return r?Object.entries(r).map((([e,t])=>({...t,uid:e,name:e}))):[]}));ul(u,((e,t)=>{e.length>t.length&&(()=>{const e=u.value;if(e.length>0){const t=e[e.length-1];null!=t&&t.uid&&s(t.uid)}})()}));const d=e=>{const n=e["x-scalar-active-environment"];n&&t.value&&r.value?(t.value["x-scalar-active-environment"]=n,r.value.activeEnvironmentId=n):r.value&&(r.value.activeEnvironmentId="")};return ul(t,(e=>e&&d(e))),Yi((()=>{t.value&&d(t.value)})),(e,r)=>(Pl(),Nl(Ao(JW),{teleport:""},{items:ci((()=>[(Pl(!0),Ml(Sl,null,ps(u.value,(e=>(Pl(),Nl(Ao(y8),{key:e.uid,class:"group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",onClick:Su((t=>s(e.uid)),["stop"])},{default:ci((()=>{var r;return[Fl(Ao(rZ),{selected:(null==(r=Ao(t))?void 0:r["x-scalar-active-environment"])===e.uid},null,8,["selected"]),ql(" "+Gn(e.name),1)]})),_:2},1032,["onClick"])))),128)),Fl(Ao(y8),{class:"group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",onClick:r[0]||(r[0]=Su((e=>s("")),["stop"]))},{default:ci((()=>{var e,a,o;return[Fl(Ao(rZ),{selected:""===(null==(e=Ao(n))?void 0:e.uid)&&""===(null==(a=Ao(t))?void 0:a["x-scalar-active-environment"])||"No Environment"===(null==(o=Ao(n))?void 0:o.name)},null,8,["selected"]),r[1]||(r[1]=ql(" No Environment "))]})),_:1,__:[1]}),Fl(Ao(N5)),"modal"!==Ao(o)?(Pl(),Nl(Ao(y8),{key:0,class:"flex items-center gap-1.5",onClick:l},{default:ci((()=>[Ul("div",RLe,[Fl(Ao(p5),{icon:"Brackets",size:"sm"})]),r[2]||(r[2]=Ul("span",{class:"leading-none"},"Manage Environments",-1))])),_:1,__:[2]})):Vl("",!0)])),default:ci((()=>[Fl(Ao(iz),{class:"text-c-1 hover:bg-b-2 line-clamp-1 h-auto w-fit justify-start px-1.5 py-1.5 font-normal",fullWidth:"",variant:"ghost"},{default:ci((()=>[Ul("h2",$Le,Gn(c.value),1)])),_:1})])),_:1}))}}),NLe=Li({__name:"ScalarAsciiArt",props:{art:{},animate:{type:Boolean}},setup(e){const t=e,r=hc((()=>t.art.split("\n"))),n=(e,t)=>{var n,a,o,i;return{animationDuration:100*e+"ms, 500ms",animationTimingFunction:`steps(${e}), step-end`,animationDelay:100*t+"ms, 0ms",animationIterationCount:"1, "+100*(((null==(n=r.value)?void 0:n.length)??0)+((null==(i=null==(o=r.value)?void 0:o[(null==(a=r.value)?void 0:a.length)-1])?void 0:i.length)??0)+5)/500}};return(e,t)=>(Pl(),Ml("div",{"aria-hidden":"true",class:zn(["ascii-art font-code flex flex-col items-start text-[6px] leading-[7px]",{"ascii-art-animate":e.animate}]),role:"presentation",inert:""},[(Pl(!0),Ml(Sl,null,ps(r.value,((e,t)=>(Pl(),Ml("span",{key:t,class:"inline-block",style:jn({width:`calc(${e.length+1}ch)`})},[Ul("span",{class:"inline-block whitespace-pre overflow-hidden",style:jn(n(e.length,t))},Gn(e),5)],4)))),128))],2))}}),ILe=P8(NLe,[["__scopeId","data-v-69ebd973"]]);const LLe={"aria-hidden":"true"},jLe={class:"sr-only"},BLe=Li({__name:"ScalarHotkey",props:{hotkey:{},modifier:{default:()=>["Meta"]}},setup(e){const t={"⌘":"Command","^":"Control","⌥":"Option","⇧":"Shift","⇪":"Caps Lock","↵":"Enter","←":"Left Arrow","→":"Right Arrow","↑":"Up Arrow","↓":"Down Arrow"},r={Meta:OCe()?"⌘":"^",default:OCe()?"⌘":"^",Shift:"⇧",Alt:"⌥",Control:"^"},{cx:n}=GQ(),a=hc((()=>`${e.modifier.map((e=>r[e])).join("+")} ${e.hotkey}`)),o=hc((()=>`${e.modifier.map((e=>"Meta"===e?OCe()?"Command":"Control":e)).join("+")} ${t[e.hotkey]??e.hotkey}`));return(e,t)=>(Pl(),Ml("div",qn(Ql(Ao(n)("border-(--scalar-background-3) inline-block overflow-hidden rounded border text-xxs rounded-b px-1 font-medium uppercase"))),[Ul("span",LLe,Gn(a.value),1),Ul("span",jLe,Gn(o.value),1)],16))}}),ULe=Li({__name:"SidebarButton",props:{click:{type:Function},hotkey:{}},setup(e){const t=e,{layout:r}=Pme(),n=()=>{t.click()};return(e,t)=>(Pl(),Nl(Ao(iz),{class:"bg-b-1 text-c-1 hover:bg-b-2 group relative h-auto w-auto border px-2 py-1 md:w-full md:p-1.5",icon:"Plus",variant:"outlined",onClick:n},{default:ci((()=>[fs(e.$slots,"title"),e.hotkey&&"desktop"===Ao(r)?(Pl(),Nl(BLe,{key:0,class:"text-c-2 add-item-hotkey absolute right-2 hidden group-hover:opacity-80 md:block",hotkey:e.hotkey},null,8,["hotkey"])):Vl("",!0)])),_:3}))}}),FLe={class:"flex justify-between gap-10"},QLe=Li({__name:"SidebarListElementForm",props:{danger:{type:Boolean},label:{}},emits:["cancel","submit"],setup(e,{emit:t}){const r=t;return(e,t)=>(Pl(),Ml("form",{class:"flex flex-col gap-4 text-base",onSubmit:t[1]||(t[1]=Su((e=>r("submit")),["prevent"]))},[fs(e.$slots,"default",{},void 0,!0),Ul("div",FLe,[Fl(Ao(iz),{class:"flex h-8 cursor-pointer items-center gap-1.5 px-2.5 shadow-none focus:outline-none",type:"button",variant:"outlined",onClick:t[0]||(t[0]=e=>r("cancel"))},{default:ci((()=>t[2]||(t[2]=[ql(" Cancel ")]))),_:1,__:[2]}),Fl(Ao(iz),{class:"custom-scroll h-8 gap-1.5 px-2.5 font-medium whitespace-nowrap shadow-none focus:outline-none",type:"submit",variant:e.danger?"danger":"solid"},{default:ci((()=>[ql(Gn(e.label??"Save"),1)])),_:1},8,["variant"])])],32))}}),zLe=P8(QLe,[["__scopeId","data-v-a93bfefe"]]),qLe={key:0,class:"text-c-2 text-sm leading-normal text-pretty"},HLe=Li({__name:"DeleteSidebarListElement",props:{variableName:{},warningMessage:{}},emits:["close","delete"],setup(e,{emit:t}){const r=e,n=t,a=hc((()=>r.variableName.length>18?r.variableName.slice(0,18)+"…":r.variableName));return(e,t)=>(Pl(),Nl(zLe,{danger:"",label:`Delete ${a.value}`,onCancel:t[0]||(t[0]=e=>n("close")),onSubmit:t[1]||(t[1]=e=>n("delete"))},{default:ci((()=>[e.warningMessage?(Pl(),Ml("p",qLe,Gn(e.warningMessage),1)):Vl("",!0)])),_:1},8,["label"]))}}),VLe={class:"flex text-sm"},ZLe={class:"bg-b-1 custom-scroll grid w-dvw max-w-[420px] auto-rows-[32px] grid-cols-[repeat(auto-fill,minmax(32px,1fr))] content-between justify-between rounded border p-1"},WLe=Li({__name:"IconSelector",props:{modelValue:{},placement:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=t,a=hc({get:()=>r.modelValue,set:e=>n("update:modelValue",e)});return(e,t)=>(Pl(),Nl(Ao(I5),{class:"bg-b-2 rounded",focus:"",placement:e.placement??"bottom"},{popover:ci((({close:r})=>[Fl(Ao($F),{modelValue:a.value,"onUpdate:modelValue":t[0]||(t[0]=e=>a.value=e),class:"flex flex-col"},{default:ci((()=>[Ul("div",VLe,[Fl(Ao(IF),{class:"text-c-2 px-1 py-1"},{default:ci((()=>[fs(e.$slots,"title",{},(()=>[t[1]||(t[1]=ql("Select an icon"))]))])),_:3})]),Ul("ul",ZLe,[(Pl(!0),Ml(Sl,null,ps(Ao(CLe),(e=>(Pl(),Nl(Ao(NF),{key:e.src,as:"li",class:"text-c-3 hover:text-c-2 hover:bg-b-2 ui-checked:bg-b-3 ui-active:bg-b-2 flex cursor-pointer items-center justify-center rounded p-2",value:e.src,onClick:r},{default:ci((()=>[Fl(Ao(IF),{class:"sr-only"},{default:ci((()=>[ql(Gn(e.src.replaceAll("-"," "))+" Icon ",1)])),_:2},1024),Fl(Ao(DLe),{class:"stroke-[1.5]",src:e.src},null,8,["src"])])),_:2},1032,["value","onClick"])))),128))])])),_:2},1032,["modelValue"])])),default:ci((()=>[fs(e.$slots,"default")])),_:3},8,["placement"]))}}),XLe={class:"grid grid-cols-[auto_1fr] gap-2"},GLe={class:"flex aspect-square"},YLe=Li({__name:"EditSidebarListCollection",props:{name:{},icon:{}},emits:["close","edit"],setup(e,{emit:t}){const r=e,n=t,a=So(r.name),o=So(r.icon);return(e,t)=>(Pl(),Nl(zLe,{onCancel:t[2]||(t[2]=e=>n("close")),onSubmit:t[3]||(t[3]=e=>n("edit",a.value,o.value))},{default:ci((()=>[Ul("div",XLe,[Ul("div",GLe,[Fl(WLe,{modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),placement:"bottom-start"},{default:ci((()=>[Fl(Ao(iz),{class:"aspect-square h-auto px-0",variant:"outlined"},{default:ci((()=>[Fl(Ao(DLe),{class:"text-c-2 size-4",src:o.value},null,8,["src"])])),_:1})])),_:1},8,["modelValue"])]),Fl(Ao(p8),{modelValue:a.value,"onUpdate:modelValue":t[1]||(t[1]=e=>a.value=e),autofocus:"",class:"flex-1"},null,8,["modelValue"])])])),_:1}))}}),KLe=Li({__name:"EditSidebarListElement",props:{name:{}},emits:["close","edit"],setup(e,{emit:t}){const r=t,n=So(e.name);return(e,t)=>(Pl(),Nl(zLe,{onCancel:t[1]||(t[1]=e=>r("close")),onSubmit:t[2]||(t[2]=e=>r("edit",n.value))},{default:ci((()=>[Fl(Ao(p8),{modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=e=>n.value=e),autofocus:""},null,8,["modelValue"])])),_:1}))}}),JLe=Li({__name:"RequestSidebarItemMenu",props:{menuItem:{}},emits:["closeMenu","toggleWatchMode","clearDrafts"],setup(e,{emit:t}){const r=e,n=t,{replace:a}=cme(),{activeRouterParams:o,activeWorkspaceCollections:i,activeWorkspaceRequests:s}=rye(),{events:l,requestMutators:c}=Hve(),u=w8(),d=w8(),p=w8(),h=()=>{var e;return l.commandPalette.emit({commandName:"Add Example",metaData:{itemUid:null==(e=r.menuItem.item)?void 0:e.entity.uid}})},f=(e,t)=>{var n;null==(n=r.menuItem.item)||n.edit(e,t),u.hide()},m=()=>{var e,t,n;if(null==(e=r.menuItem.item)||e.delete(),!s.value.length){const{request:e}=Rve(),t=i.value.find((e=>{var t;return"Drafts"===(null==(t=e.info)?void 0:t.title)}));t&&(c.add(e,t.uid),a({name:"request",params:{[Ybe.Request]:e.uid}}))}if(o.value[Ybe.Request]===(null==(t=r.menuItem.item)?void 0:t.entity.uid)&&a({name:"request",params:{[Ybe.Request]:"default"}}),o.value[Ybe.Examples]===(null==(n=r.menuItem.item)?void 0:n.entity.uid)&&a({name:"request",params:{[Ybe.Request]:"default"}}),i.value[0]){const e=i.value[0].requests[0];a({name:"request",params:{[Ybe.Request]:e}})}d.hide()},g=So(null);ul([()=>r.menuItem.open,g],(async([e])=>{var t,r;e&&null!=(r=null==(t=g.value)?void 0:t.$parent)&&r.$el&&g.value.$parent.$el.focus()}));const v=()=>r.menuItem.open&&n("closeMenu");Yi((()=>window.addEventListener("click",v))),es((()=>window.removeEventListener("click",v)));const b=()=>{n("toggleWatchMode",r.menuItem.item)},y=()=>{n("clearDrafts"),p.hide()},O=hc((()=>{var e;return"Drafts"===(null==(e=r.menuItem.item)?void 0:e.title)}));return(e,t)=>{var r,n;return Pl(),Ml(Sl,null,[e.menuItem.targetRef&&e.menuItem.open?(Pl(),Nl(Ao(HW),{key:0,placement:"right-start",target:e.menuItem.targetRef,teleport:""},{floating:ci((()=>[Fl(Ao(KW),{onKeydown:t[3]||(t[3]=Eu((t=>e.$emit("closeMenu")),["escape"]))},{default:ci((()=>{var r,n;return["request"===(null==(r=e.menuItem.item)?void 0:r.entity.type)?(Pl(),Nl(Ao(R5),{key:0,class:"flex gap-2",onClick:h},{default:ci((()=>[Fl(Ao(p5),{class:"inline-flex",icon:"Example",size:"md",thickness:"1.5"}),t[8]||(t[8]=Ul("span",null,"Add Example",-1))])),_:1,__:[8]})):Vl("",!0),O.value?Vl("",!0):(Pl(),Nl(Ao(R5),{key:1,ref_key:"menuRef",ref:g,class:"flex gap-2",onClick:t[0]||(t[0]=e=>Ao(u).show())},{default:ci((()=>{var t;return[Fl(Ao(p5),{class:"inline-flex",icon:"Edit",size:"md",thickness:"1.5"}),Ul("span",null,["collection"===(null==(t=e.menuItem.item)?void 0:t.entity.type)?(Pl(),Ml(Sl,{key:0},[ql(" Edit ")],64)):(Pl(),Ml(Sl,{key:1},[ql(" Rename ")],64))])]})),_:1},512)),null!=(n=e.menuItem.item)&&n.documentUrl?(Pl(),Nl(Ao(R5),{key:2,ref_key:"menuRef",ref:g,class:"flex gap-2",onClick:b},{default:ci((()=>{var t,r;return[Fl(Ao(p5),{class:"inline-flex",icon:null!=(t=e.menuItem.item)&&t.watchMode?"Unwatch":"Watch",size:"md",thickness:"1.5"},null,8,["icon"]),Ul("span",null,Gn(null!=(r=e.menuItem.item)&&r.watchMode?"Disable Watch Mode":"Enable Watch Mode"),1)]})),_:1},512)):Vl("",!0),O.value?Vl("",!0):(Pl(),Nl(Ao(R5),{key:3,class:"flex gap-2",onClick:t[1]||(t[1]=e=>Ao(d).show())},{default:ci((()=>[Fl(Ao(p5),{class:"inline-flex",icon:"Delete",size:"md",thickness:"1.5"}),t[9]||(t[9]=Ul("span",null,"Delete",-1))])),_:1,__:[9]})),O.value?(Pl(),Nl(Ao(R5),{key:4,class:"flex gap-2",onClick:t[2]||(t[2]=e=>Ao(p).show())},{default:ci((()=>[Fl(Ao(p5),{class:"inline-flex",icon:"Delete",size:"md",thickness:"1.5"}),t[10]||(t[10]=Ul("span",null,"Clear Drafts",-1))])),_:1,__:[10]})):Vl("",!0)]})),_:1})])),_:1},8,["target"])):Vl("",!0),Fl(Ao(k8),{size:"xxs",state:Ao(d),title:`Delete ${null==(r=e.menuItem.item)?void 0:r.resourceTitle}`},{default:ci((()=>{var r,n;return[Fl(HLe,{variableName:(null==(r=e.menuItem.item)?void 0:r.title)??"",warningMessage:null==(n=e.menuItem.item)?void 0:n.warning,onClose:t[4]||(t[4]=e=>Ao(d).hide()),onDelete:m},null,8,["variableName","warningMessage"])]})),_:1},8,["state","title"]),Fl(Ao(k8),{size:"xxs",state:Ao(u),title:`Edit ${null==(n=e.menuItem.item)?void 0:n.resourceTitle}`},{default:ci((()=>{var r,n,a,o;return["Collection"===(null==(r=e.menuItem.item)?void 0:r.resourceTitle)?(Pl(),Nl(YLe,{key:0,icon:(null==(n=e.menuItem.item)?void 0:n.icon)||"interface-content-folder",name:null==(a=e.menuItem.item)?void 0:a.title,onClose:t[5]||(t[5]=e=>Ao(u).hide()),onEdit:f},null,8,["icon","name"])):(Pl(),Nl(KLe,{key:1,name:(null==(o=e.menuItem.item)?void 0:o.title)??"",onClose:t[6]||(t[6]=e=>Ao(u).hide()),onEdit:f},null,8,["name"]))]})),_:1},8,["state","title"]),Fl(Ao(k8),{size:"xxs",state:Ao(p),title:"Clear Drafts"},{default:ci((()=>[Fl(HLe,{variableName:"All Drafts",warningMessage:"This action will clear all drafts. This cannot be undone.",onClose:t[7]||(t[7]=e=>Ao(p).hide()),onDelete:y})])),_:1},8,["state"])],64)}}}),eje=P8(JLe,[["__scopeId","data-v-709241c2"]]),tje=So(null),rje=So(null),nje=["draggable"],aje=Li({__name:"Draggable",props:{ceiling:{default:.8},floor:{default:.2},isDraggable:{type:Boolean,default:!0},isDroppable:{type:[Boolean,Function],default:!0},parentIds:{},id:{}},emits:["onDragEnd","onDragStart"],setup(e,{expose:t,emit:r}){const n=r,a=hc((()=>e.parentIds.at(-1)??null)),o=t=>{!t.dataTransfer||!(t.target instanceof HTMLElement)||!e.isDraggable||(t.target.classList.add("dragging"),t.dataTransfer.dropEffect="move",t.dataTransfer.effectAllowed="move",tje.value={id:e.id,parentId:a.value},n("onDragStart",{id:e.id,parentId:a.value}))},i=(e=>{let t=!1;return(...r)=>{t||(e(...r),t=!0,setTimeout((()=>t=!1),25))}})((t=>{var r,n;if(!tje.value||tje.value.id===e.id||e.parentIds.includes((null==(r=tje.value)?void 0:r.id)??""))return;const o=null==(n=rje.value)?void 0:n.offset,i=t.target.offsetHeight,s=e.floor*i,l=e.ceiling*i;let c=3;t.offsetY<=0&&o&&3!==o?c=o:t.offsetY<=s?c=0:t.offsetY>=l?c=1:t.offsetY>s&&t.offsetY<l&&(c=2),(t=>"function"==typeof e.isDroppable?e.isDroppable(tje.value,{id:e.id,parentId:a.value,offset:t}):e.isDroppable)(c)&&(rje.value={id:e.id,parentId:a.value,offset:c})})),s=["above","below","asChild"],l=hc((()=>{var t;let r="sidebar-indent-nested";return e.id===(null==(t=rje.value)?void 0:t.id)&&(r+=` dragover-${s[rje.value.offset]}`),r})),c=()=>{if(!rje.value||!tje.value)return;const e={...tje.value},t={...rje.value};tje.value=null,rje.value=null,document.querySelectorAll("div.dragging").forEach((e=>e.classList.remove("dragging"))),e.id!==t.id&&n("onDragEnd",e,t)};return t({draggingItem:tje,hoveredItem:rje}),(e,t)=>(Pl(),Ml("div",{class:zn(l.value),draggable:e.isDraggable,onDragend:c,onDragover:t[0]||(t[0]=Su(((...e)=>Ao(i)&&Ao(i)(...e)),["prevent","stop"])),onDragstart:Su(o,["stop"])},[fs(e.$slots,"default",{},void 0,!0)],42,nje))}}),oje=((e,t)=>{const r=e.__vccOpts||e;for(const[e,n]of t)r[e]=n;return r})(aje,[["__scopeId","data-v-a89d6a6e"]]),ije={class:"line-clamp-1 w-full pl-2 break-all"},sje={class:"flex flex-row items-center gap-1"},lje={class:"relative"},cje={class:"flex items-start"},uje={class:"flex flex-1 flex-row justify-between font-medium"},dje={class:"line-clamp-1 w-full text-left break-all"},pje={class:"relative flex h-fit justify-end"},hje={class:"flex items-center justify-center",type:"button"},fje=["aria-expanded"],mje={class:"flex h-5 max-w-[14px] items-center justify-center"},gje={class:"flex flex-1 flex-row justify-between"},vje={class:"line-clamp-1 w-full text-left font-medium break-all"},bje={class:"relative flex h-fit justify-end"},yje={class:"flex items-center justify-center",type:"button"},Oje={key:3},wje="hover:bg-sidebar-b-active indent-padding-left",xje=Li({__name:"RequestSidebarItem",props:{isDraggable:{type:Boolean,default:!1},isDroppable:{type:[Boolean,Function],default:!1},parentUids:{},uid:{},menuItem:{}},emits:["onDragEnd","newTab","openMenu"],setup(e,{emit:t}){qc((e=>({eae2c57a:x.value,"7c91ad9b":k.value})));const r=t,{activeCollection:n,activeRequest:a,activeRouterParams:o,activeWorkspace:i}=rye(),{collections:s,tags:l,requests:c,requestExamples:u,collectionMutators:d,tagMutators:p,requestMutators:h,requestExampleMutators:f,events:m}=Hve(),g=cme(),{collapsedSidebarFolders:v,toggleSidebarFolder:b}=kbe(),{layout:y}=Pme(),O=hc((()=>{var t,r,n,a,o,m;const g=s[e.uid],v=l[e.uid],b=c[e.uid],y=u[e.uid];return g?{title:(null==(t=g.info)?void 0:t.title)||"Untitled Collection",entity:g,resourceTitle:"Collection",children:g.children,icon:g["x-scalar-icon"],documentUrl:g.documentUrl,watchMode:g.watchMode,to:g.uid&&"Drafts"!==(null==(r=null==g?void 0:g.info)?void 0:r.title)?{name:"collection",params:{[Ybe.Workspace]:null==(n=i.value)?void 0:n.uid,[Ybe.Collection]:g.uid}}:void 0,warning:"This cannot be undone. You're about to delete the collection and all folders and requests inside it.",edit:(e,t)=>{d.edit(g.uid,"info.title",e),t&&d.edit(g.uid,"x-scalar-icon",t)},delete:()=>{i.value&&d.delete(g,i.value)}}:v?{title:v.name,entity:v,resourceTitle:"Tag",children:v.children,warning:"This cannot be undone. You're about to delete the tag and all requests inside it",edit:e=>p.edit(v.uid,"name",e),delete:()=>e.parentUids[0]&&p.delete(v,e.parentUids[0])}:b?{title:b.summary??b.path,to:{name:"request",params:{workspace:null==(a=i.value)?void 0:a.uid,request:b.uid}},method:b.method,entity:b,resourceTitle:"Request",warning:"This cannot be undone. You're about to delete the request.",children:b.examples.slice(1),edit:e=>h.edit(b.uid,"summary",e),delete:()=>e.parentUids[0]&&h.delete(b,e.parentUids[0])}:null!=y&&y.requestUid?{title:y.name,to:{name:"request.examples",params:{workspace:null==(o=i.value)?void 0:o.uid,request:y.requestUid,examples:y.uid}},method:null==(m=c[y.requestUid])?void 0:m.method,entity:y,resourceTitle:"Example",warning:"This cannot be undone. You're about to delete the example from the request.",children:[],edit:e=>f.edit(y.uid,"name",e),delete:()=>f.delete(y)}:{title:"Unknown",entity:{uid:"",type:"unknown"},resourceTitle:"Unknown",children:[],edit:()=>null,delete:()=>null}})),w=hc((()=>"collection"===O.value.entity.type&&"Drafts"===O.value.title)),x=hc((()=>e.parentUids.length?"modal"===y?12*(e.parentUids.length-1)+"px":12*e.parentUids.length+"px":"12px")),k=hc((()=>e.parentUids.length?"modal"===y?12*(e.parentUids.length-1)+"px":12*e.parentUids.length+"px":"0px")),S=hc((()=>{var t;return v[e.uid]||(null==(t=a.value)?void 0:t.uid)===e.uid&&O.value.entity.examples.length>1})),_=hc((()=>{var t;return"string"==typeof g.currentRoute.value.name&&g.currentRoute.value.name.startsWith("request")&&"default"===o.value[Ybe.Request]&&(null==(t=a.value)?void 0:t.uid)===e.uid})),E=So(null),T=hc((()=>{let e=.5,t=.5;if(!E.value)return{ceiling:e,floor:t};const{draggingItem:r}=E.value;return s[null==r?void 0:r.id]||"collection"!==O.value.entity.type?"tag"===O.value.entity.type&&(e=.8,t=.2):(e=1,t=0),{ceiling:e,floor:t}})),A=(e,t)=>!("modal"===y||u[t.id]||s[e.id]);function C(t){var r,n,a;const o=e.parentUids[0]?(null==(r=s[e.parentUids[0]])?void 0:r.uid)||"":t,c=e.parentUids[0]&&null!=(n=l[t])&&n.name?{tags:[l[t].name]}:{},u=h.add(c,o);u&&(g.push({name:"request",params:{workspace:null==(a=i.value)?void 0:a.uid,request:u.uid}}),m.hotKeys.emit({focusAddressBar:new KeyboardEvent("keydown",{key:"l"})}))}const P=hc((()=>{const{uid:e,watchModeStatus:t}=n.value||{};return e!==O.value.entity.uid?"text-c-3":"WATCHING"===t?"text-c-1":"ERROR"===t?"text-red":"text-c-3"})),D=hc((()=>"Drafts"===O.value.title&&"modal"!==y&&O.value.children.length>0)),$=hc((()=>{const t=c[e.uid];if(t)return!aj(t);const r=l[e.uid];return!r||!aj(r)}));return(e,t)=>{const n=ss("RequestSidebarItem",!0);return $.value?(Pl(),Ml("li",{key:0,class:zn(["relative flex flex-row",["modal"===Ao(y)&&e.parentUids.length>1||"modal"!==Ao(y)&&e.parentUids.length?"before:bg-border indent-border-line-offset mb-[.5px] before:pointer-events-none before:absolute before:top-0 before:left-[calc(.75rem_+_.5px)] before:z-1 before:h-[calc(100%_+_.5px)] before:w-[.5px] last:mb-0 last:before:h-full":""]])},[Fl(Ao(oje),{id:O.value.entity.uid,ref_key:"draggableRef",ref:E,ceiling:T.value.ceiling,class:"gap-1/2 flex flex-1 flex-col text-base",floor:T.value.floor,isDraggable:e.isDraggable,isDroppable:e.isDroppable,parentIds:e.parentUids,onOnDragEnd:t[12]||(t[12]=(...t)=>e.$emit("onDragEnd",...t))},{default:ci((()=>{var a;return["request"!==O.value.entity.type&&"requestExample"!==O.value.entity.type||!O.value.to?("modal"!==Ao(y)||e.parentUids.length)&&"collection"===O.value.entity.type&&O.value.to?(Pl(),Nl(Ao(nme),{key:1,"aria-expanded":!!Ao(v)[O.value.entity.uid],class:zn(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 no-underline focus-visible:z-10",[wje,{"bg-sidebar-b-active text-sidebar-c-active transition-none":"string"==typeof Ao(g).currentRoute.value.name&&Ao(g).currentRoute.value.name.startsWith("collection")&&Ao(g).currentRoute.value.params[Ao(Ybe).Collection]===O.value.entity.uid,"text-c-2":"Untitled Collection"===O.value.title}]]),to:O.value.to},{default:ci((()=>{var r;return[Ul("span",{class:"flex h-5 max-w-[14px] cursor-pointer items-center justify-center",onClick:t[2]||(t[2]=Su((e=>Ao(b)(O.value.entity.uid)),["stop","prevent"]))},[fs(e.$slots,"leftIcon",{},(()=>[Fl(Ao(K5),{class:"text-c-3 shrink-0",open:!!Ao(v)[O.value.entity.uid]},null,8,["open"])]),!0),t[15]||(t[15]=ql(" "))]),Ul("div",uje,[Ul("span",dje,Gn(O.value.title),1),Ul("div",pje,[Ul("div",{class:zn(["items-center gap-px opacity-0 group-hover:flex group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",{flex:e.menuItem.open,hidden:!e.menuItem.open||(null==(r=e.menuItem.item)?void 0:r.entity.uid)!==O.value.entity.uid}])},["modal"!==Ao(y)&&!w.value||w.value&&D.value?(Pl(),Nl(Ao(iz),{key:0,class:"hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",size:"sm",variant:"ghost",onClick:t[3]||(t[3]=Su((t=>e.$emit("openMenu",{item:O.value,parentUids:e.parentUids,targetRef:t.currentTarget.parentNode,open:!0})),["stop","prevent"]))},{default:ci((()=>[Fl(Ao(p5),{icon:"Ellipses",size:"md"})])),_:1})):Vl("",!0),"modal"!==Ao(y)?(Pl(),Nl(Ao(iz),{key:1,class:"hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",size:"sm",variant:"ghost",onClick:t[4]||(t[4]=Su((e=>C(O.value.entity.uid)),["stop","prevent"]))},{default:ci((()=>[Fl(Ao(p5),{icon:"Add",size:"md",thickness:"2"})])),_:1})):Vl("",!0)],2),O.value.watchMode?(Pl(),Nl(Ao(g8),{key:0,placement:"right",offset:12,content:`Watching: ${O.value.documentUrl}`},{default:ci((()=>[Ul("button",hje,[Fl(Ao(p5),{class:zn(["ml-0.5 text-sm",P.value]),icon:"Watch",size:"md",thickness:"2"},null,8,["class"])])])),_:1},8,["content"])):Vl("",!0),t[16]||(t[16]=Ul("span",null," ",-1))])])]})),_:3},8,["aria-expanded","class","to"])):"modal"!==Ao(y)||e.parentUids.length?(Pl(),Ml("button",{key:2,"aria-expanded":!!Ao(v)[O.value.entity.uid],class:zn(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 focus-visible:z-10",[wje]]),type:"button",onClick:t[7]||(t[7]=e=>Ao(b)(O.value.entity.uid))},[Ul("span",mje,[fs(e.$slots,"leftIcon",{},(()=>[Fl(Ao(K5),{class:"text-c-3 hover:text-c-1 shrink-0",open:!!Ao(v)[O.value.entity.uid]},null,8,["open"])]),!0),t[17]||(t[17]=ql(" "))]),Ul("div",gje,[Ul("span",vje,Gn(O.value.title),1),Ul("div",bje,[Ul("div",{class:zn(["items-center gap-px opacity-0 group-hover:flex group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",{flex:e.menuItem.open,hidden:!e.menuItem.open||(null==(a=e.menuItem.item)?void 0:a.entity.uid)!==O.value.entity.uid}])},["modal"!==Ao(y)&&!w.value||w.value&&D.value?(Pl(),Nl(Ao(iz),{key:0,class:"hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",size:"sm",variant:"ghost",onClick:t[5]||(t[5]=Su((t=>e.$emit("openMenu",{item:O.value,parentUids:e.parentUids,targetRef:t.currentTarget.parentNode,open:!0})),["stop","prevent"]))},{default:ci((()=>[Fl(Ao(p5),{icon:"Ellipses",size:"md"})])),_:1})):Vl("",!0),"modal"!==Ao(y)?(Pl(),Nl(Ao(iz),{key:1,class:"hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",size:"sm",variant:"ghost",onClick:t[6]||(t[6]=Su((e=>C(O.value.entity.uid)),["stop","prevent"]))},{default:ci((()=>[Fl(Ao(p5),{icon:"Add",size:"md",thickness:"2"})])),_:1})):Vl("",!0)],2),O.value.watchMode?(Pl(),Nl(Ao(g8),{key:0,content:"Watching: {{ item.documentUrl }}",placement:"right",offset:12},{default:ci((()=>[Ul("button",yje,[Fl(Ao(p5),{class:zn(["ml-0.5 text-sm",P.value]),icon:"Watch",size:"md",thickness:"2"},null,8,["class"])])])),_:1})):Vl("",!0),t[18]||(t[18]=Ul("span",null," ",-1))])])],10,fje)):Vl("",!0):(Pl(),Nl(Ao(nme),{key:0,class:"group no-underline",to:O.value.to,onClick:t[1]||(t[1]=Su((e=>((e,t)=>{e&&(SCe(["default"]).some((t=>e[t]))?r("newTab",t.title||"",t.entity.uid):t.to&&g.push(t.to),Ko((()=>m.focusAddressBar.emit())))})(e,O.value)),["prevent"]))},{default:ci((({isExactActive:r})=>{var n,a;return[Ul("div",{class:zn(["relative flex min-h-8 w-full cursor-pointer flex-row items-start justify-between gap-0.5 rounded py-1.5 pr-2",[wje,r||_.value?"bg-sidebar-b-active text-sidebar-c-active font-medium transition-none":"text-sidebar-c-2"]])},[Ul("span",ije,Gn(O.value.title||"Untitled"),1),Ul("div",sje,[Ul("div",lje,["modal"!==Ao(y)?(Pl(),Nl(Ao(iz),{key:0,class:zn(["hover:bg-b-3 hidden aspect-square h-fit px-0.5 py-0 opacity-0 group-hover:flex group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",{flex:(null==(a=null==(n=e.menuItem)?void 0:n.item)?void 0:a.entity.uid)===O.value.entity.uid&&e.menuItem.open}]),size:"sm",type:"button",variant:"ghost",onClick:t[0]||(t[0]=Su((t=>e.$emit("openMenu",{item:O.value,parentUids:e.parentUids,targetRef:t.currentTarget,open:!e.menuItem.open})),["stop","prevent"]))},{default:ci((()=>[Fl(Ao(p5),{icon:"Ellipses",size:"md"})])),_:1},8,["class"])):Vl("",!0)]),Ul("span",cje,[t[13]||(t[13]=ql(" ")),t[14]||(t[14]=Ul("span",{class:"sr-only"},"HTTP Method:",-1)),O.value.method?(Pl(),Nl(Ao(Fme),{key:0,class:"font-bold",method:O.value.method},null,8,["method"])):Vl("",!0)])])],2)]})),_:1},8,["to"])),S.value?(Pl(),Ml("ul",Oje,[(Pl(!0),Ml(Sl,null,ps(O.value.children,(r=>(Pl(),Nl(n,{key:r,isDraggable:!Ao(u)[r],isDroppable:A,menuItem:e.menuItem,parentUids:[...e.parentUids,e.uid],uid:r,onNewTab:t[8]||(t[8]=(t,r)=>e.$emit("newTab",t,r)),onOnDragEnd:t[9]||(t[9]=(...t)=>e.$emit("onDragEnd",...t)),onOpenMenu:t[10]||(t[10]=t=>e.$emit("openMenu",t))},null,8,["isDraggable","menuItem","parentUids","uid"])))),128)),0===O.value.children.length?(Pl(),Nl(Ao(iz),{key:0,class:zn(["text-c-1 hover:bg-b-2 flex h-8 w-full justify-start gap-1.5 py-0 text-xs",e.parentUids.length?"pl-9":""]),variant:"ghost",onClick:t[11]||(t[11]=e=>C(O.value.entity.uid))},{default:ci((()=>[Fl(Ao(p5),{icon:"Add",size:"sm"}),t[19]||(t[19]=Ul("span",null,"Add Request",-1))])),_:1,__:[19]},8,["class"])):Vl("",!0)])):Vl("",!0)]})),_:3},8,["id","ceiling","floor","isDraggable","isDroppable","parentIds"])],2)):Vl("",!0)}}}),kje=P8(xje,[["__scopeId","data-v-4dedda07"]]),Sje={class:"flex w-[inherit] items-center text-base"},_je={class:"m-0 flex items-center gap-1.5 font-bold"},Eje={class:"line-clamp-1 text-left"},Tje={class:"overflow-hidden text-ellipsis"},Aje={class:"flex h-4 w-4 items-center justify-center"},Cje=Li({__name:"WorkspaceDropdown",setup(e){const{activeWorkspace:t}=rye(),{workspaces:r,workspaceMutators:n,events:a}=Hve(),{push:o}=cme(),i=hc((()=>1===Object.keys(r).length)),s=()=>a.commandPalette.emit({commandName:"Create Workspace"}),l=So(""),c=So(""),u=w8(),d=w8(),p=e=>{const t=r[e];t&&(l.value=t.name,c.value=e,u.show())},h=e=>{e.trim()&&(n.edit(c.value,"name",e.trim()),u.hide())},f=e=>{const t=r[e];t&&(l.value=t.name,c.value=e,d.show())},m=async()=>{var e;if(!i.value){const a=(null==(e=t.value)?void 0:e.uid)===c.value,i={...r};if(delete i[c.value],n.delete(c.value),a){const e=Object.keys(i)[0];await o({name:"workspace",params:{workspace:e}})}}d.hide()};return(e,n)=>(Pl(),Ml("div",null,[Ul("div",Sje,[Fl(Ao(JW),null,{items:ci((()=>[(Pl(!0),Ml(Sl,null,ps(Ao(r),((e,r)=>(Pl(),Nl(Ao(y8),{key:r,class:"group/item flex w-full items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",onClick:Su((r=>(e=>{var r;e!==(null==(r=t.value)?void 0:r.uid)&&o({name:"workspace",params:{workspace:e}})})(e.uid)),["stop"])},{default:ci((()=>{var a;return[Fl(Ao(rZ),{selected:(null==(a=Ao(t))?void 0:a.uid)===r},null,8,["selected"]),Ul("span",Tje,Gn(e.name),1),Fl(Ao(JW),{placement:"right-start",teleport:""},{items:ci((()=>[Fl(Ao(y8),{class:"flex gap-2",onMousedown:t=>p(e.uid),onTouchend:Su((t=>p(e.uid)),["prevent"])},{default:ci((()=>[Fl(Ao(p5),{class:"inline-flex",icon:"Edit",size:"md",thickness:"1.5"}),n[2]||(n[2]=Ul("span",null,"Rename",-1))])),_:2,__:[2]},1032,["onMousedown","onTouchend"]),i.value?Vl("",!0):(Pl(),Nl(Ao(y8),{key:0,class:"flex gap-2",onMousedown:Su((t=>f(e.uid)),["prevent"]),onTouchend:Su((t=>f(e.uid)),["prevent"])},{default:ci((()=>[Fl(Ao(p5),{class:"inline-flex",icon:"Delete",size:"md",thickness:"1.5"}),n[3]||(n[3]=Ul("span",null,"Delete",-1))])),_:2,__:[3]},1032,["onMousedown","onTouchend"]))])),default:ci((()=>[Fl(Ao(iz),{class:"hover:bg-b-3 -mr-1 ml-auto aspect-square h-fit px-0.5 py-0 group-hover/item:flex",size:"sm",type:"button",variant:"ghost"},{default:ci((()=>[Fl(Ao(p5),{icon:"Ellipses",size:"sm"})])),_:1})])),_:2},1024)]})),_:2},1032,["onClick"])))),128)),Fl(Ao(N5)),Fl(Ao(y8),{class:"flex items-center gap-1.5",onClick:s},{default:ci((()=>[Ul("div",Aje,[Fl(Ao(p5),{icon:"Add",size:"sm"})]),n[4]||(n[4]=Ul("span",null,"Create Workspace",-1))])),_:1,__:[4]})])),default:ci((()=>[Fl(Ao(iz),{class:"text-c-1 hover:bg-b-2 line-clamp-1 h-full w-fit justify-start px-1.5 py-1.5 font-normal",fullWidth:"",variant:"ghost"},{default:ci((()=>{var e;return[Ul("div",_je,[Ul("h2",Eje,Gn(null==(e=Ao(t))?void 0:e.name),1)])]})),_:1})])),_:1})]),Fl(Ao(k8),{size:"xxs",state:Ao(d),title:"Delete workspace"},{default:ci((()=>[Fl(HLe,{variableName:l.value,warningMessage:"This cannot be undone. You're about to delete the workspace and everything inside it.",onClose:n[0]||(n[0]=e=>Ao(d).hide()),onDelete:m},null,8,["variableName"])])),_:1},8,["state"]),Fl(Ao(k8),{size:"xxs",state:Ao(u),title:"Rename Workspace"},{default:ci((()=>[Fl(KLe,{name:l.value,onClose:n[1]||(n[1]=e=>Ao(u).hide()),onEdit:h},null,8,["name"])])),_:1},8,["state"])]))}}),Pje={class:"bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3"},Dje={key:1,class:"text-c-3"},$je=["aria-pressed"],Rje={class:"sr-only"},Mje={key:0,class:"search-button-fade sticky top-12 z-10 px-3 py-2.5 pt-0 focus-within:z-20",role:"search"},Nje={key:1,class:"contents"},Ije={key:0,class:"empty-sidebar-item-content px-2.5 py-2.5"},Lje={class:"rabbit-ascii relative m-auto mt-2 h-[68px] w-[60px]"},jje=Li({__name:"RequestSidebar",emits:["newTab","clearDrafts"],setup(e,{emit:t}){const r=t,{collapsedSidebarFolders:n,isSidebarOpen:a,setCollapsedSidebarFolder:o,toggleSidebarOpen:i}=kbe(),{layout:s}=Pme(),l=Hve(),{activeCollection:c,activeWorkspaceCollections:u,activeRequest:d,activeWorkspaceRequests:p,activeWorkspace:h}=rye(),{findRequestParents:f,events:m,requestMutators:g,requests:v}=l,{handleDragEnd:b,isDroppable:y}=function(e,{collections:t,collectionMutators:r,tags:n,tagMutators:a,workspaceMutators:o}){const{layout:i}=Pme(),s=(e,t)=>{"collection"===e.type?r.edit(e.uid,"children",t):"tag"===e.type&&a.edit(e.uid,"children",t)};return{handleDragEnd:(i,l)=>{var c,u,d,p;if(!i||!l)return;const{id:h,parentId:f}=i,{id:m,parentId:g,offset:v}=l;if(f?t[f]?r.edit(f,"children",t[f].children.filter((e=>e!==h))):n[f]&&a.edit(f,"children",n[f].children.filter((e=>e!==h))):o.edit(null==(c=e.value)?void 0:c.uid,"collections",(null==(u=e.value)?void 0:u.collections.filter((e=>e!==h)))??[]),2===v){const e=t[m]||n[m];e&&s(e,[...e.children??[],h])}else if(g){const e=t[g]||n[g];if(!e)return;const r=[...e.children??[]],a=r.findIndex((e=>m===e))??0;r.splice(a+v,0,h),s(e,r)}else{const t=[...(null==(d=e.value)?void 0:d.collections)??[]],r=t.findIndex((e=>m===e))??0;t.splice(r+v,0,h),o.edit(null==(p=e.value)?void 0:p.uid,"collections",t)}},isDroppable:(e,r)=>{var n,a;return!("modal"===i||!t[e.id]&&2!==r.offset||t[e.id]&&"Drafts"===(null==(a=null==(n=t[r.id])?void 0:n.info)?void 0:a.title))}}}(h,l),{replace:O}=cme(),w=()=>{m.commandPalette.emit({commandName:"Import from OpenAPI/Swagger/Postman/cURL"})},x=ji(),{toast:k}=qV(),S=uo({open:!1}),_=So(!1);ul(d,(e=>{e&&f(e).forEach((e=>o(e,!0)))}),{immediate:!0});const{searchText:E,searchResultsWithPlaceholderResults:T,selectedSearchResult:A,onSearchResultClick:C,fuseSearch:P,searchInputRef:D,searchResultRefs:$,navigateSearchResults:R,selectSearchResult:M}=function(){const e=cme(),{activeWorkspace:t,activeWorkspaceRequests:r,activeWorkspaceCollections:n}=rye(),{requests:a,tags:o}=Hve(),i=So([]),s=So([]),l=So(0),c=So(""),u=So(null),d=So([]),p=new Ihe(i.value,{keys:["title","description","body"]}),h=r=>{i.value=r.filter((e=>!aj(e))).filter((e=>{var t;const r=null==(t=n.value)?void 0:t.find((t=>t.requests.includes(e.uid)));return!(null!=r&&r.tags.map((e=>o[e])).filter(mj).filter((t=>{var r;return null==(r=e.tags)?void 0:r.includes(t.name)})).filter((e=>aj(e))).length)})).map((r=>{var n,a;return{id:r.uid,title:r.summary??r.method,description:r.description??"",httpVerb:r.method,path:r.path,link:null==(a=null==e?void 0:e.resolve({name:"request",params:{[Ybe.Request]:r.uid,[Ybe.Workspace]:null==(n=t.value)?void 0:n.uid}}))?void 0:a.href}})),p.setCollection(i.value)},f=()=>{l.value=0,s.value=p.search(c.value)};ul(c,(e=>{e.length?f():s.value=[]}));const m=hc((()=>r.value.map((e=>a[e])).filter(mj)));ul(r,(()=>{h(m.value)}),{immediate:!0});const g=t=>{e.push(t.item.id),c.value="",l.value=0,s.value=[],u.value instanceof HTMLInputElement&&u.value.blur()},v=hc((()=>0===c.value.length?i.value.map((e=>({item:e}))):s.value));return{searchText:c,searchResultsWithPlaceholderResults:v,selectedSearchResult:l,onSearchResultClick:g,fuseSearch:f,searchInputRef:u,searchResultRefs:d,navigateSearchResults:e=>{const t="up"===e?-1:1,r=v.value.length;l.value=(l.value+t+r)%r,Ko((()=>{const e=d.value[l.value];e instanceof HTMLElement&&e.scrollIntoView({behavior:"smooth",block:"center"})}))},selectSearchResult:()=>{if(l.value>=0){const e=v.value[l.value];e&&g(e)}},populateFuseDataArray:h}}(),N=So(),I=e=>{var t;e&&(e.toggleSidebar&&i(),e.focusRequestSearch&&(null==(t=D.value)||t.focus()))};Yi((()=>m.hotKeys.on(I))),es((()=>{m.hotKeys.off(I)}));const L=e=>{if(null!=e&&e.documentUrl){e.watchMode=!e.watchMode;const t=u.value.find((t=>t.uid===e.entity.uid));t&&(t.watchMode=e.watchMode)}};ul((()=>u.value.map((e=>e.watchMode))),((e,t)=>{e.forEach(((e,r)=>{var n,a,o;if("modal"!==s&&e!==t[r]&&"Drafts"!==(null==(a=null==(n=u.value[r])?void 0:n.info)?void 0:a.title)&&u.value[r]){const t=u.value[r];if(!t)return;const n=`${null==(o=t.info)?void 0:o.title}: Watch Mode ${e?"enabled":"disabled"}`;k(n,"info")}}))}));const j=hc((()=>{var e;const t=T.value;if(!t.length)return"No results found";const r=null==(e=t[A.value])?void 0:e.item;if(!r)return"No result selected";const n=E.value.length?`${t.length} result${1===t.length?"":"s"} found, `:"",a=`, HTTP Method ${r.httpVerb}, Path ${r.path}`;return`${n}Selected: ${r.title} ${a}`})),B=()=>{const e=u.value.find((e=>{var t;return"Drafts"===(null==(t=e.info)?void 0:t.title)}));if(e&&e.requests.forEach((t=>{v[t]&&g.delete(v[t],e.uid)})),p.value.length){const e=u.value[0],t=null==e?void 0:e.requests[0];t&&O({name:"request",params:{[Ybe.Request]:t}})}else{const{request:t}=Rve();e&&(g.add(t,e.uid),O({name:"request",params:{[Ybe.Request]:t.uid}}))}};ul(_,(e=>{e||(E.value="")}));const U=hc((()=>((e,t,r)=>{var n;const a=e.find((e=>{var t;return"Drafts"===(null==(t=e.info)?void 0:t.title)})),o=1===t.length;if(!t[0])return!1;const i=null==a?void 0:a.requests.includes(t[0]);if(!i)return!1;const s="My First Request"!==(null==(n=r[(null==a?void 0:a.requests[0])??""])?void 0:n.summary);return o&&i&&!s})(u.value,p.value,v))),F=hc((()=>"modal"===s&&c.value?[c.value]:u.value));function Q(e){!E.value&&e.relatedTarget!==N.value&&(_.value=!1)}return(e,t)=>(Pl(),Ml(Sl,null,[ui(Fl(Ao(Abe),{class:zn([Ao(a)?"sidebar-active-width":""])},hs({content:ci((()=>[Ul("div",Pje,[Ul("div",{class:zn(["size-8",{"xl:hidden":"modal"!==Ao(s)}])},null,2),"modal"!==Ao(s)?(Pl(),Nl(Ao(Cje),{key:0})):Vl("",!0),"modal"!==Ao(s)?(Pl(),Ml("span",Dje," / ")):Vl("",!0),"modal"!==Ao(s)?(Pl(),Nl(MLe,{key:2})):Vl("",!0),Ul("button",{ref_key:"searchToggleRef",ref:N,"aria-pressed":_.value,class:"ml-auto",type:"button",onClick:t[0]||(t[0]=e=>_.value=!_.value)},[Ul("span",Rje,Gn(_.value?"Hide":"Show")+" search ",1),Fl(Ao(p5),{class:"text-c-3 hover:bg-b-2 max-h-8 max-w-8 rounded-lg p-1.75 text-sm",icon:"Search"})],8,$je)]),_.value?(Pl(),Ml("div",Mje,[Fl(Ao(n8),{ref_key:"searchInputRef",ref:D,modelValue:Ao(E),"onUpdate:modelValue":t[1]||(t[1]=e=>ko(E)?E.value=e:null),autofocus:"","aria-controls":Ao(x),label:j.value,onInput:Ao(P),onKeydown:[t[2]||(t[2]=Eu(Su((e=>Ao(R)("down")),["stop"]),["down"])),t[3]||(t[3]=Eu(Su((e=>Ao(M)()),["stop"]),["enter"])),t[4]||(t[4]=Eu(Su((e=>Ao(R)("up")),["stop"]),["up"]))],onBlur:Q},null,8,["modelValue","aria-controls","label","onInput"])])):Vl("",!0),Ul("div",{class:zn(["gap-1/2 flex flex-1 flex-col overflow-visible overflow-y-auto px-3 pt-0 pb-3",[{"pb-14":"modal"!==Ao(s)},{"h-[calc(100%-273.5px)]":U.value}]]),onDragenter:t[7]||(t[7]=Su((()=>{}),["prevent"])),onDragover:t[8]||(t[8]=Su((()=>{}),["prevent"]))},[Ao(E)?(Pl(),Nl(Ao(B5),{key:0,id:Ao(x),"aria-label":"Search Results",class:"gap-px",noResults:!Ao(T).length},{default:ci((()=>[(Pl(!0),Ml(Sl,null,ps(Ao(T),((e,r)=>(Pl(),Nl(Ao(Z5),{id:`#search-input-${e.item.id}`,key:e.refIndex,ref_for:!0,ref:e=>Ao($)[r]=e,selected:Ao(A)===r,class:"px-2",href:e.item.link,onClick:Su((t=>Ao(C)(e)),["prevent"]),onFocus:e=>A.value=r},{addon:ci((()=>[t[10]||(t[10]=Ul("span",{class:"sr-only"},"HTTP Method:",-1)),Fl(Fme,{class:"font-bold",method:e.item.httpVerb??"get"},null,8,["method"])])),default:ci((()=>[ql(Gn(e.item.title)+" ",1)])),_:2},1032,["id","selected","href","onClick","onFocus"])))),128))])),_:1},8,["id","noResults"])):(Pl(),Ml("nav",Nje,[(Pl(!0),Ml(Sl,null,ps(F.value,(e=>{var a;return Pl(),Nl(kje,{key:e.uid,isDraggable:"modal"!==Ao(s)&&"Drafts"!==(null==(a=e.info)?void 0:a.title),isDroppable:Ao(y),menuItem:S,parentUids:[],uid:e.uid,onNewTab:t[5]||(t[5]=(e,t)=>r("newTab",{name:e,uid:t})),onOnDragEnd:Ao(b),onOpenMenu:t[6]||(t[6]=e=>Object.assign(S,e))},{leftIcon:ci((()=>{var t;return["Drafts"===(null==(t=e.info)?void 0:t.title)?(Pl(),Nl(Ao(p5),{key:0,class:"text-sidebar-c-2 group-hover:hidden",icon:"Scribble",thickness:"2.25"})):(Pl(),Nl(Ao(DLe),{key:1,class:"text-sidebar-c-2 size-3.5 min-w-3.5 stroke-2 group-hover:hidden",src:e["x-scalar-icon"]||"interface-content-folder"},null,8,["src"])),Ul("div",{class:zn({"rotate-90":Ao(n)[e.uid]})},[Fl(Ao(p5),{class:"text-c-3 hover:text-c-1 hidden text-sm group-hover:block",icon:"ChevronRight",size:"md"})],2)]})),_:2},1032,["isDraggable","isDroppable","menuItem","uid","onOnDragEnd"])})),128))]))],34)])),button:ci((()=>[Ul("div",{class:zn({"empty-sidebar-item":U.value})},[U.value?(Pl(),Ml("div",Ije,[Ul("div",Lje,[Fl(ILe,{art:Ao(' ,\\\n \\\\\\,_\n \\` ,\\\n __,.-" =__)\n ." )\n,_/ , \\/\\_\n\\_| )_-\\ \\_-`\n `-----` `--`'),class:"rabbitsit font-bold"},null,8,["art"]),Fl(ILe,{art:Ao(' __\n // \\,_\n \\` ,\\\n __,.-" =__)\n ." )\n,_/ , \\/\\ \n\\_| // / / /\n / / '),class:"rabbitjump absolute top-0 left-0 font-bold"},null,8,["art"])]),t[11]||(t[11]=Ul("div",{class:"mt-2 mb-2 text-center text-sm text-balance"},[Ul("b",{class:"font-medium"},"Let's Get Started"),Ul("p",{class:"mt-2"}," Create request, folder, collection or import from OpenAPI/Postman ")],-1))])):Vl("",!0),"modal"!==Ao(s)?(Pl(),Nl(Ao(iz),{key:1,class:zn(["mb-1.5 hidden h-fit w-full p-1.5 opacity-0",{"flex opacity-100":U.value}]),onClick:w},{default:ci((()=>t[12]||(t[12]=[ql(" Import Collection ")]))),_:1,__:[12]},8,["class"])):Vl("",!0),"modal"!==Ao(s)?(Pl(),Nl(ULe,{key:2,click:Ao(m).commandPalette.emit,hotkey:"K"},{title:ci((()=>t[13]||(t[13]=[ql(" Add Item ")]))),_:1},8,["click"])):Vl("",!0)],2)])),_:2},["modal"!==Ao(s)?{name:"header",fn:ci((()=>[])),key:"0"}:void 0]),1032,["class"]),[[Fc,Ao(a)]]),"modal"!==Ao(s)&&S?(Pl(),Nl(eje,{key:0,menuItem:S,onClearDrafts:B,onCloseMenu:t[9]||(t[9]=e=>S.open=!1),onToggleWatchMode:L},null,8,["menuItem"])):Vl("",!0)],64))}}),Bje=P8(jje,[["__scopeId","data-v-bca9c474"]]),Uje={"application/epub+zip":{extension:".epub"},"application/gzip":{extension:".gz"},"application/java-archive":{extension:".jar"},"application/javascript":{extension:".js",raw:!0},"application/json":{extension:".json",raw:!0,language:"json"},"application/ld+json":{extension:".jsonld",raw:!0,language:"json"},"application/problem+json":{extension:".json",raw:!0,language:"json"},"application/vnd.api+json":{extension:".json",raw:!0,language:"json"},"application/dns-json":{extension:".json",raw:!0,language:"json"},"application/msword":{extension:".doc"},"application/octet-stream":{extension:".bin"},"application/ogg":{extension:".ogx"},"application/pdf":{extension:".pdf",preview:"object"},"application/rtf":{extension:".rtf",raw:!0},"application/vnd.amazon.ebook":{extension:".azw"},"application/vnd.apple.installer+xml":{extension:".mpkg",raw:!0,language:"xml"},"application/vnd.mozilla.xul+xml":{extension:".xul",raw:!0,language:"xml"},"application/vnd.ms-excel":{extension:".xls"},"application/vnd.ms-fontobject":{extension:".eot"},"application/vnd.ms-powerpoint":{extension:".ppt"},"application/vnd.oasis.opendocument.presentation":{extension:".odp"},"application/vnd.oasis.opendocument.spreadsheet":{extension:".ods"},"application/vnd.oasis.opendocument.text":{extension:".odt"},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{extension:".pptx"},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{extension:".xlsx"},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{extension:".docx"},"application/vnd.rar":{extension:".rar"},"application/vnd.visio":{extension:".vsd"},"application/x-7z-compressed":{extension:".7z"},"application/x-abiword":{extension:".abw"},"application/x-bzip":{extension:".bz"},"application/x-bzip2":{extension:".bz2"},"application/x-cdf":{extension:".cda"},"application/x-csh":{extension:".csh"},"application/x-freearc":{extension:".arc"},"application/x-httpd-php":{extension:".php",raw:!0},"application/x-sh":{extension:".sh",raw:!0},"application/x-tar":{extension:".tar"},"application/xhtml+xml":{extension:".xhtml",raw:!0,language:"html"},"application/xml":{extension:".xml",raw:!0,language:"xml"},"application/yaml":{extension:".yaml",raw:!0,language:"yaml"},"application/zip":{extension:".zip"},"audio/aac":{extension:".aac"},"audio/midi":{extension:".midi"},"audio/mpeg":{extension:".mp3",preview:"audio"},"audio/ogg":{extension:".oga"},"audio/wav":{extension:".wav"},"audio/webm":{extension:".weba"},"font/otf":{extension:".otf"},"font/ttf":{extension:".ttf"},"font/woff":{extension:".woff"},"font/woff2":{extension:".woff2"},"image/apng":{extension:".apng",preview:"image",alpha:!0},"image/avif":{extension:".avif",preview:"image"},"image/bmp":{extension:".bmp",preview:"image"},"image/gif":{extension:".gif",preview:"image",alpha:!0},"image/jpeg":{extension:".jpg",preview:"image"},"image/png":{extension:".png",preview:"image",alpha:!0},"image/svg+xml":{extension:".svg",raw:!0,language:"xml",preview:"image",alpha:!0},"image/tiff":{extension:".tiff"},"image/vnd.microsoft.icon":{extension:".ico",preview:"image"},"image/webp":{extension:".webp",preview:"image",alpha:!0},"text/calendar":{extension:".ics",raw:!0},"text/css":{extension:".css",raw:!0,language:"css"},"text/csv":{extension:".csv",raw:!0},"text/html":{extension:".html",raw:!0,language:"html",preview:"object"},"text/javascript":{extension:".js",raw:!0},"text/plain":{extension:".txt",raw:!0},"text/xml":{extension:".xml",raw:!0,language:"xml"},"text/yaml":{extension:".yaml",raw:!0,language:"yaml"},"video/3gpp":{extension:".3gp"},"audio/3gpp":{extension:".3gp"},"video/3gpp2":{extension:".3g2"},"audio/3gpp2":{extension:".3g2"},"video/mp2t":{extension:".ts"},"video/mp4":{extension:".mp4",preview:"video"},"video/mpeg":{extension:".mpeg"},"video/ogg":{extension:".ogv"},"video/webm":{extension:".webm",preview:"video"},"video/x-msvideo":{extension:".avi"}};function Fje(e){return Uje[e]||(e.endsWith("+json")?{extension:".json",raw:!0,language:"json"}:void 0)}Object.entries(Uje).filter((([,e])=>null==e?void 0:e.raw)).map((([e])=>e));const Qje=()=>typeof window<"u"&&"electron"in window,zje=({environment:e,example:t,globalCookies:r,proxyUrl:n,request:a,securitySchemes:o,selectedSecuritySchemeUids:i=[],server:s,status:l,pluginManager:c})=>{try{const u=e??{},d=new AbortController,p=t.parameters.path.reduce(((e,t)=>(t.enabled&&(e[t.key]=Xbe(t.value,u)),e)),{}),h=Xbe((null==s?void 0:s.url)??"",u),f=Xbe(Xbe(a.path,u),p);let m=h||f;if(!m)throw"The address bar input seems to be empty. Try adding a URL.";Object.entries((null==s?void 0:s.variables)??{}).forEach((([e,t])=>{m=Xbe(m,{[e]:p[e]||t.default})}));const g=function(e,t,r){const n=new URLSearchParams,a=((null==r?void 0:r.parameters)??[]).reduce(((e,t)=>("query"===t.in&&(e[t.name]=t),e)),{});return e.parameters.query.forEach((e=>{if(!e.enabled)return;const r=a[e.key];switch(e.type){case"array":{const a=Xbe(e.value??"",t).split(/,\ ?/);if(!1===(null==r?void 0:r.explode)){const t=a.join(",");n.append(e.key,t)}else a.forEach((t=>{n.append(e.key,t.trim())}));break}default:{const r=Xbe(e.value??"",t);n.append(e.key,r.trim());break}}})),n}(t,u,a),v=function(e,t){const r={};return e.parameters.headers.forEach((e=>{const n=e.key.trim().toLowerCase();e.enabled&&("content-type"!==n||"multipart/form-data"!==e.value)&&(r[n]=Xbe(e.value,t))})),r}(t,u),{body:b}=function(e,t,r){var n,a,o;if(!wj(e))return{body:void 0,contentType:void 0};if("formData"===t.body.activeBody&&t.body.formData){const e="form-data"===t.body.formData.encoding?"multipart/form-data":"application/x-www-form-urlencoded",n="form-data"===t.body.formData.encoding?new FormData:new URLSearchParams;return t.body.formData.value.forEach((e=>{!e.enabled||!e.key||(e.file&&n instanceof FormData?n.append(e.key,e.file,e.file.name):void 0!==e.value&&n.append(e.key,Xbe(e.value,r)))})),{body:n,contentType:e}}return"raw"===t.body.activeBody?{body:Xbe((null==(n=t.body.raw)?void 0:n.value)??"",r),contentType:null==(a=t.body.raw)?void 0:a.encoding}:"binary"===t.body.activeBody?{body:t.body.binary,contentType:null==(o=t.body.binary)?void 0:o.type}:{body:void 0,contentType:void 0}}(a.method,t,u),{cookieParams:y}=function({example:e,env:t,globalCookies:r,serverUrl:n,proxyUrl:a}){const o=[],i=(e=>{const t=new URL(e.startsWith("http")?e:`http://${e}`).hostname;return t.match(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/)||t.match(/^[a-fA-F0-9:]+$/)||t.startsWith(".")?t:`.${t}`})(JL(a,n)?a:n??"http://localhost");return r.forEach((e=>{const{name:t,value:r,domain:a,...i}=e;!TEe(n,a)||!t||o.push(EEe.parse({name:t,value:r,domain:a,path:i.path}))})),e.parameters.cookies.forEach((e=>{!e.enabled||!e.key||o.push(EEe.parse({name:e.key,value:Xbe(e.value,t),domain:i,path:"/"}))})),{cookieParams:o}}({example:t,env:u,globalCookies:r,serverUrl:m,proxyUrl:n}),O=i.flat().map((e=>o[e])).filter(mj),w=nTe(O,u),x={...Object.entries(w.headers).reduce(((e,[t,r])=>(e[t.toLowerCase()]=r,e)),{}),...v},k=[...y,...w.cookies],S=new URLSearchParams([...g,...w.urlParams]);Qje()&&x["user-agent"]&&(x["X-Scalar-User-Agent"]=x["user-agent"]),m=vj(m,f,S);const _=Xbe(((e,t)=>{const r=e.map((e=>`${e.name}=${e.value}`)).join("; ");return t?`${t}; ${r}`.trim():r.trim()})(k,x.Cookie),u);_&&(Qje()||JL(n,m)?(console.warn("We're using a `X-Scalar-Cookie` custom header to the request. The proxy will forward this as a `Cookie` header. We do this to avoid the browser omitting the `Cookie` header for cross-origin requests for security reasons."),x["X-Scalar-Cookie"]=_):(console.warn("We're trying to add a Cookie header, but browsers often omit them for cross-origin requests for various security reasons. If it's not working, that's probably why. Here are the requirements for it to work:\n\n - The browser URL must be on the same domain as the server URL.\n - The connection must be made over HTTPS.\n "),x.Cookie=_));const E=KL(n,m),T=new Request(E,{method:a.method.toUpperCase(),body:b??null,headers:x});return[null,{request:T,sendRequest:async()=>{var e,r,o;null==l||l.emit("start"),c&&c.executeHook("onBeforeRequest",{request:T});const i=Date.now();try{const s=await fetch(T,{signal:d.signal}),u=null==(e=s.headers.get("content-type"))?void 0:e.startsWith("text/event-stream");null==l||l.emit("stop");const p=Date.now()-i,h=s.clone(),g=((e,t=!1)=>{var r,n;const a=Object.fromEntries(e);t&&["Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers"].map((e=>e.toLowerCase())).forEach((e=>delete a[e]));const o=Object.keys(a).find((e=>"x-scalar-modified-headers"===e.toLowerCase())),i=o?(null==(n=null==(r=a[o])?void 0:r.toString().split(", "))?void 0:n.map((e=>e.toLowerCase())))??[]:[];return Object.keys(a).forEach((e=>{i.includes(e.toLowerCase())&&delete a[e]})),o&&delete a[o],Object.keys(a).forEach((e=>{const t=/^x-scalar-original-/i;if(t.test(e)){const r=e.replace(t,"");a[e]&&(a[r]=a[e],delete a[e])}})),Object.keys(a).forEach((e=>{const t=(e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.toLowerCase().slice(1))).join("-"))(e);e!==t&&a[e]&&(a[t]=a[e],delete a[e])})),Object.fromEntries(Object.entries(a).sort((([e],[t])=>e.localeCompare(t))))})(s.headers,JL(n,m)),v=s.headers.get("content-type")??"text/plain;charset=UTF-8",b=await h.arrayBuffer(),y=function(e,t){const r=new Vbe(t);return function(e){var t;return!(null==(t=Fje(e))||!t.raw)}(r.essence)?new TextDecoder(r.parameters.get("charset")).decode(e):new Blob([e],{type:r.essence})}(b,v),O=s.clone(),w=O.statusText||(null==(r=Sj[O.status])?void 0:r.name)||"",x=[204,205,304].includes(O.status),k=new Response(x?null:O.body,{status:O.status,statusText:w,headers:O.headers});c&&c.executeHook("onResponseReceived",{response:k,operation:a});const S="getSetCookie"in k.headers&&"function"==typeof k.headers.getSetCookie?k.headers.getSetCookie():[];return u&&s.body?[null,{timestamp:Date.now(),request:t,response:{...k,headers:g,cookieHeaderKeys:S,reader:null==(o=s.body)?void 0:o.getReader(),duration:p,method:a.method,path:f}}]:[null,{timestamp:Date.now(),request:t,response:{...s,headers:g,cookieHeaderKeys:S,data:y,size:b.byteLength,duration:Date.now()-i,method:a.method,status:s.status,path:f}}]}catch(e){return null==l||l.emit("abort"),[Cve(e,"An error occurred while making the request"),null]}},controller:d}]}catch(e){return console.error(e),null==l||l.emit("abort"),[Cve(e),null]}},qje={class:"flex h-full"},Hje={class:"flex h-full flex-1 flex-col"},Vje=Li({__name:"RequestRoot",emits:["newTab"],setup(e){const t=Hve(),{toast:r}=qV(),{layout:n}=Pme(),a=Bs(PCe,So(Bt.parse({}))),{isSidebarOpen:o}=kbe(),{activeCollection:i,activeExample:s,activeEnvironment:l,activeRequest:c,activeWorkspace:u,activeServer:d}=rye(),{cookies:p,requestHistory:h,showSidebar:f,securitySchemes:m,events:g}=t,v=mTe(),b=So(),y=So(),O=So(new Set),w=So(null),x=hc((()=>{var e,t,r;return(null!=(e=i.value)&&e.useCollectionSecurity?null==(t=i.value)?void 0:t.selectedSecuritySchemeUids:null==(r=c.value)?void 0:r.selectedSecuritySchemeUids)??[]})),k=async()=>{var e,t,n,o,f,b;if(!c.value||!s.value||!i.value)return;O.value=(e=>{const t=new Set;return e&&["path","query","headers","cookies"].some((r=>{var n,a;return null==(a=null==(n=e.parameters)?void 0:n[r])?void 0:a.some((e=>{e.required&&""===e.value&&t.add(e.key)}))})),t})(s.value);const k="object"==typeof l.value?l.value.value:"{}",S=cDe.parse(k);S.error&&console.error("INVALID ENVIRONMENT!");const E=S.error||"object"!=typeof S.data?{}:S.data??{},T=(null==(e=u.value)?void 0:e.cookies.map((e=>p[e])).filter(mj))??[],A="Drafts"===(null==(n=null==(t=i.value)?void 0:t.info)?void 0:n.title)?void 0:d.value,[C,P]=zje({request:c.value,example:s.value,selectedSecuritySchemeUids:x.value,proxyUrl:(null==(o=u.value)?void 0:o.proxyUrl)??"",environment:E,globalCookies:T,status:g.requestStatus,securitySchemes:m,server:A,pluginManager:v});if(null==(b=null==(f=a.value)?void 0:f.onRequestSent)||b.call(f,c.value.path??""),C)return void r(C.message,"error");y.value=P.controller;const[D,$]=await P.sendRequest();w.value=$,D?r(D.message,"error"):h.push(_($))},S=async()=>{var e;return null==(e=y.value)?void 0:e.abort("The request has been cancelled")};Yi((()=>{g.executeRequest.on(k),g.cancelRequest.on(S)})),mDe(),es((()=>g.executeRequest.off(k))),ul((()=>{var e;return null==(e=s.value)?void 0:e.parameters}),(()=>{O.value.clear()}),{deep:!0});const _=e=>{var t;try{return structuredClone(e)}catch{const r={...e};return null!=(t=e.response)&&t.data&&(e.response.data instanceof Blob||e.response.data instanceof ArrayBuffer?r.response.data=e.response.data:r.response.data=JSON.parse(JSON.stringify(e.response.data))),r}};return(e,t)=>(Pl(),Ml("div",{ref_key:"element",ref:b,class:zn(["bg-b-1 relative z-0 flex h-full flex-1 flex-col overflow-hidden pt-0",{"!mr-0 !mb-0 !border-0":"modal"===Ao(n)}])},[Ao(f)?(Pl(),Nl(fDe,{key:0,modelValue:Ao(o),"onUpdate:modelValue":t[0]||(t[0]=e=>ko(o)?o.value=e:null),class:zn(["absolute top-2 left-3 z-50",[{hidden:Ao(o)},{"xl:!flex":!Ao(o)},{"!flex":"modal"===Ao(n)}]])},null,8,["modelValue","class"])):Vl("",!0),Ul("div",qje,[Ao(f)?(Pl(),Nl(Bje,{key:0,onNewTab:t[1]||(t[1]=t=>e.$emit("newTab",t))})):Vl("",!0),Ul("div",Hje,[Fl(Ao(sme),{invalidParams:O.value,selectedSecuritySchemeUids:x.value,requestResult:w.value},null,8,["invalidParams","selectedSecuritySchemeUids","requestResult"])])])],2))}}),Zje=P8(Vje,[["__scopeId","data-v-8a88f90a"]]),Wje=Object.freeze(Object.defineProperty({__proto__:null,default:Zje},Symbol.toStringTag,{value:"Module"})),Xje=" .:=+++++=================-\n .--#* :.\n .-:-** -.\n .:-::-+* =:\n .:-:::-=# ::\n .-:::----** ..\n .-:::::---=# ..\n :-::::::----** ..\n.:-::::::::----*= ..\n.-::::::::------+- ..\n..::::::::-------= ..\n .:::::----------++ ..\n .:::----------+**+*++*+*++*+++*++++++++++:.\n ------------+*+=-=======================.\n .----------+*+=========================:.\n :--------+*+=-========================.\n .=------+*+=-========================:.\n .=----+*+=-------=================+-.\n .----+*+=----------================.\n .:=-+*+=----------=-==============-\n .-+*+=----------------===========.\n .-+=------------------====-====:.",Gje={class:"flex-center flex w-full scale-75"},Yje={class:"relative"},Kje={class:"relative -ml-12"},Jje=Li({__name:"EmptyState",setup:e=>(e,t)=>(Pl(),Ml("div",Gje,[Ul("div",Yje,[Fl(BLe,{class:"keycap-hotkey right-14 border-transparent text-xl",hotkey:""}),Fl(ILe,{art:Ao(Xje),class:"text-c-3 !leading-[6px]"},null,8,["art"])]),Ul("div",Kje,[t[0]||(t[0]=Ul("div",{class:"keycap-hotkey right-16 text-xl"},"K",-1)),Fl(ILe,{art:Ao(Xje),class:"keycap-n !leading-[6px]"},null,8,["art"])])]))}),eBe=P8(Jje,[["__scopeId","data-v-6e1f579f"]]),tBe=Li({__name:"ViewLayout",setup(e){const{cx:t}=GQ();return(e,r)=>(Pl(),Ml("div",qn(Ql(Ao(t)("flex flex-col min-h-0 flex-1 *:border-t first:*:border-t-0 md:*:border-t-0 xl:overflow-hidden md:flex-row leading-3"))),[fs(e.$slots,"default")],16))}}),rBe={class:"custom-scroll flex flex-col pr-0 *:border-t *:first:border-t-0 xl:flex-row *:xl:border-t-0 *:xl:border-l *:first:xl:border-l-0"},nBe=P8({},[["render",function(e,t){return Pl(),Ml("div",rBe,[fs(e.$slots,"default")])}]]);for(var aBe="(?:"+["\\|\\|","\\&\\&",";;","\\|\\&","\\<\\(","\\<\\<\\<",">>",">\\&","<\\&","[&;()|<>]"].join("|")+")",oBe=new RegExp("^"+aBe+"$"),iBe="|&;()<> \\t",sBe=/^#$/,lBe="",cBe=0;cBe<4;cBe++)lBe+=(4294967296*Math.random()).toString(16);var uBe=new RegExp("^"+lBe);var dBe=function(e,t,r){var n=function(e,t,r){r||(r={});var n=r.escape||"\\",a=new RegExp(["("+aBe+")","((\\"+n+"['\""+iBe+"]|[^\\s'\""+iBe+"])+|\"((\\\\\"|[^\"])*?)\"|'((\\\\'|[^'])*?)')+"].join("|"),"g"),o=function(e,t){for(var r,n=t.lastIndex,a=[];r=t.exec(e);)a.push(r),t.lastIndex===r.index&&(t.lastIndex+=1);return t.lastIndex=n,a}(e,a);if(0===o.length)return[];t||(t={});var i=!1;return o.map((function(r){var a=r[0];if(a&&!i){if(oBe.test(a))return{op:a};var o,s=!1,l=!1,c="",u=!1;for(o=0;o<a.length;o++){var d=a.charAt(o);if(u=u||!s&&("*"===d||"?"===d),l)c+=d,l=!1;else if(s)d===s?s=!1:"'"==s?c+=d:d===n?(o+=1,c+='"'===(d=a.charAt(o))||d===n||"$"===d?d:n+d):c+="$"===d?h():d;else if('"'===d||"'"===d)s=d;else{if(oBe.test(d))return{op:a};if(sBe.test(d)){i=!0;var p={comment:e.slice(r.index+o+1)};return c.length?[c,p]:[p]}d===n?l=!0:c+="$"===d?h():d}}return u?{op:"glob",pattern:c}:c}function h(){var e,r;o+=1;var n=a.charAt(o);if("{"===n){if(o+=1,"}"===a.charAt(o))throw new Error("Bad substitution: "+a.slice(o-2,o+1));if((e=a.indexOf("}",o))<0)throw new Error("Bad substitution: "+a.slice(o));r=a.slice(o,e),o=e}else if(/[*@#?$!_-]/.test(n))r=n,o+=1;else{var i=a.slice(o);(e=i.match(/[^\w\d_]/))?(r=i.slice(0,e.index),o+=e.index-1):(r=i,o=a.length)}return function(e,t,r){var n="function"==typeof e?e(r):e[r];return void 0===n&&""!=r?n="":void 0===n&&(n="$"),"object"==typeof n?""+lBe+JSON.stringify(n)+lBe:""+n}(t,0,r)}})).reduce((function(e,t){return void 0===t?e:e.concat(t)}),[])}(e,t,r);return"function"!=typeof t?n:n.reduce((function(e,t){if("object"==typeof t)return e.concat(t);var r=t.split(RegExp("("+lBe+".*?"+lBe+")","g"));return 1===r.length?e.concat(r[0]):e.concat(r.filter(Boolean).map((function(e){return uBe.test(e)?JSON.parse(e.split(lBe)[1]):e})))}),[])};function pBe(e,t){t.method=e.next().value.toLowerCase()}function hBe(e,t){const r=new URL(e.next().value.replace(/['"]/g,""));t.servers=[r.origin],t.path="/"!==r.pathname?r.pathname:"",t.url=t.servers[0]+t.path;const n=gBe(r.search);t.queryParameters=t.queryParameters?[...t.queryParameters,...n]:n}function fBe(e,t){const r=e.next().value.split(/:(.*)/);t.headers=t.headers||{},void 0!==r[1]?t.headers[r[0].trim()]=r[1].trim():t.headers[r[0].trim()]=""}function mBe(e,t){const r=e.next().value.replace(/['"]/g,"").split("=");t.pathVariables=t.pathVariables||{},void 0!==r[1]?t.pathVariables[r[0].trim()]=r[1].trim():t.pathVariables[r[0].trim()]=""}function gBe(e){const t=[];return new URL(e,"http://example.com").searchParams.forEach(((e,r)=>{t.push({key:r,value:e})})),t}function vBe(e,t){const r=e.replace(/['"]/g,"").split(/:(.+)/);t.headers=t.headers||{},r[0]&&(void 0!==r[1]?t.headers[r[0].trim()]=r[1].trim():t.headers[r[0].trim()]="")}function bBe(e,t){const r=e.next().value;try{const e=btoa(r);t.headers=t.headers||{},t.headers.Authorization=`Basic ${e}`}catch(e){console.warn("Could not base64 encode these HTTP basic auth credentials:",r,e)}}function yBe(e,t){const r=e.next().value;t.headers=t.headers||{},t.headers.Cookie?t.headers.Cookie+=`; ${r}`:t.headers.Cookie=r.replace(/;$/,"")}function OBe(e,t,r){const n=e.next().value;if("string"==typeof n&&(n.startsWith("@")?t.body="":t.body=n,!t.url||r.includes("-G"))){const e=gBe(`?${t.body}`);t.queryParameters=t.queryParameters?[...t.queryParameters,...e]:e}}function wBe(e){const t=function(e){const t=dBe(e).map((e=>"object"==typeof e&&"op"in e&&"glob"===e.op?e.pattern.trim():"string"==typeof e?e.trim():e)).filter((e=>""!==e)),r={url:""},n=t[Symbol.iterator]();let a=n.next().value;for(;a;)"-X"===a||"--request"===a?pBe(n,r):"--url"===a?hBe(n,r):"-H"===a||"--header"===a?fBe(n,r):"--data"===a||"-d"===a||"--data-raw"===a||"--data-urlencode"===a||"--data-binary"===a||"--data-ascii"===a?OBe(n,r,e):"string"!=typeof a||r.url||!a.startsWith("http")&&!a.startsWith("www.")?"-P"===a?mBe(n,r):"string"==typeof a&&a.toLowerCase().includes("content-type")?vBe(a,r):"-u"===a||"--user"===a?bBe(n,r):("-b"===a||"--cookie"===a)&&yBe(n,r):hBe([a][Symbol.iterator](),r),a=n.next().value;return r}(e),{method:r="get",url:n,body:a="",headers:o={},servers:i,queryParameters:s=[]}=t,l=new URL(n).pathname,c=null!=a&&a.includes("=")&&!a.startsWith("{")?"application/x-www-form-urlencoded":o["Content-Type"]||"",u=a?function(e){try{return JSON.parse(e)}catch{const t={};return e.split("&").forEach((e=>{const[r,n]=e.split("=");r&&n&&(t[decodeURIComponent(r)]=decodeURIComponent(n))})),t}}(a):{},d=[...Array.isArray(s)?s.map((({key:e,value:t})=>({name:e,in:"query",schema:{type:typeof t,examples:[t]}}))):[],...Object.entries(o||{}).map((([e,t])=>({name:e,in:"header",schema:{type:typeof t},example:t})))];return{method:r,url:n,path:l,headers:o,servers:i??[],...Object.keys(u).length>0&&{requestBody:{content:{[c]:{schema:{type:"object",properties:Object.fromEntries(Object.entries(u).map((([e,t])=>[e,{type:typeof t}])))},example:u}}}},parameters:d}}const xBe={class:"lg:min-h-header t-app__top-container flex w-full flex-wrap items-center justify-center border-b p-2 pt-2 lg:p-1 lg:pt-1"},kBe={class:"mb-2 flex w-1/2 flex-row items-center gap-1 lg:mb-0 lg:flex-1 lg:px-1"},SBe={class:"mb-2 flex w-1/2 flex-row items-center justify-end gap-1 lg:mb-0 lg:flex-1 lg:px-2.5"},_Be=Li({__name:"RequestSubpageHeader",props:{collection:{},operation:{},server:{},environment:{},envVariables:{},workspace:{}},emits:["hideModal","importCurl"],setup(e){const{hideClientButton:t,showSidebar:r,integration:n}=Hve(),{isSidebarOpen:a}=kbe(),{layout:o}=Pme(),{currentRoute:i}=cme();return(e,s)=>(Pl(),Ml("div",xBe,[Ul("div",kBe,[Ao(r)?(Pl(),Ml("div",{key:0,class:zn(["size-8",{hidden:"modal"===Ao(o)&&!Ao(a)}])},null,2)):Vl("",!0)]),Fl(ybe,{collection:e.collection,envVariables:e.envVariables,environment:e.environment,operation:e.operation,server:e.server,workspace:e.workspace,onImportCurl:s[0]||(s[0]=t=>e.$emit("importCurl",t))},null,8,["collection","envVariables","environment","operation","server","workspace"]),Ul("div",SBe,["modal"===Ao(o)&&e.collection.documentUrl&&!Ao(t)?(Pl(),Nl(Ao(D8),{key:0,buttonSource:"modal",class:"!w-fit lg:-mr-1",integration:Ao(n)??e.collection.integration??null,source:"gitbook"===Ao(i).query.source?"gitbook":"api-reference",url:e.collection.documentUrl},null,8,["integration","source","url"])):Vl("",!0),"modal"===Ao(o)?(Pl(),Ml("button",{key:1,class:"app-exit-button gitbook-hidden zoomed:static zoomed:p-1 fixed top-2 right-2 rounded-full p-2",type:"button",onClick:s[1]||(s[1]=t=>e.$emit("hideModal"))},[Fl(Ao(p5),{icon:"Close",size:"lg",thickness:"2"}),s[3]||(s[3]=Ul("span",{class:"sr-only"},"Close Client",-1))])):Vl("",!0),"modal"===Ao(o)?(Pl(),Ml("button",{key:2,class:"text-c-1 hover:bg-b-2 active:text-c-1 gitbook-show -mr-1.5 rounded p-2",type:"button",onClick:s[2]||(s[2]=t=>e.$emit("hideModal"))},[Fl(Ao(p5),{icon:"Close",size:"md",thickness:"1.75"}),s[4]||(s[4]=Ul("span",{class:"sr-only"},"Close Client",-1))])):Vl("",!0)])]))}}),EBe=P8(_Be,[["__scopeId","data-v-c8df97c6"]]),TBe={class:"flex-1 px-2 py-1.5 whitespace-nowrap"},ABe=Li({__name:"DataTableText",props:{text:{}},setup:e=>(e,t)=>(Pl(),Nl(hye,{class:"relative flex"},{default:ci((()=>[Ul("span",TBe,[fs(e.$slots,"default",{},(()=>[ql(Gn(e.text),1)]))])])),_:3}))}),CBe=["href"],PBe=Li({__name:"HelpfulLink",props:{href:{}},setup:e=>(e,t)=>(Pl(),Ml("a",{class:"decoration-c-3 cursor-help underline underline-offset-2",href:e.href,rel:"noopener noreferrer",target:"_blank"},[fs(e.$slots,"default")],8,CBe))}),DBe=[{name:"Accept",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept"},{name:"Accept-CH",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-CH"},{name:"Accept-CH-Lifetime",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-CH-Lifetime"},{name:"Accept-Charset",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Charset"},{name:"Accept-Encoding",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding"},{name:"Accept-Language",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language"},{name:"Accept-Patch",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Patch"},{name:"Accept-Post",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Post"},{name:"Accept-Ranges",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Ranges"},{name:"Access-Control-Allow-Credentials",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials"},{name:"Access-Control-Allow-Headers",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers"},{name:"Access-Control-Allow-Methods",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods"},{name:"Access-Control-Allow-Origin",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin"},{name:"Access-Control-Expose-Headers",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers"},{name:"Access-Control-Max-Age",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age"},{name:"Access-Control-Request-Headers",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Headers"},{name:"Access-Control-Request-Method",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Method"},{name:"Age",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Age"},{name:"Allow",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Allow"},{name:"Alt-Svc",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Alt-Svc"},{name:"Alt-Used",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Alt-Used"},{name:"Authorization",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization"},{name:"Cache-Control",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control"},{name:"Clear-Site-Data",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Clear-Site-Data"},{name:"Connection",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Connection"},{name:"Content-Disposition",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition"},{name:"Content-DPR",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-DPR"},{name:"Content-Encoding",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding"},{name:"Content-Language",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Language"},{name:"Content-Length",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Length"},{name:"Content-Location",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Location"},{name:"Content-Range",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range"},{name:"Content-Security-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy"},{name:"Content-Security-Policy-Report-Only",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only"},{name:"Content-Type",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type"},{name:"Cookie",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cookie"},{name:"Critical-CH",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Critical-CH"},{name:"Cross-Origin-Embedder-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Embedder-Policy"},{name:"Cross-Origin-Opener-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Opener-Policy"},{name:"Cross-Origin-Resource-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Resource-Policy"},{name:"Date",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Date"},{name:"Device-Memory",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Device-Memory"},{name:"Digest",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Digest"},{name:"DNT",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/DNT"},{name:"Downlink",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Downlink"},{name:"DPR",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/DPR"},{name:"Early-Data",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Early-Data"},{name:"ECT",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ECT"},{name:"ETag",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag"},{name:"Expect",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect"},{name:"Expect-CT",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect-CT"},{name:"Expires",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expires"},{name:"Forwarded",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded"},{name:"From",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/From"},{name:"Host",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Host"},{name:"If-Match",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match"},{name:"If-Modified-Since",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since"},{name:"If-None-Match",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match"},{name:"If-Range",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Range"},{name:"If-Unmodified-Since",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Unmodified-Since"},{name:"Keep-Alive",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Keep-Alive"},{name:"Large-Allocation",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Large-Allocation"},{name:"Last-Modified",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified"},{name:"Link",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Link"},{name:"Location",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Location"},{name:"Max-Forwards",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Max-Forwards"},{name:"NEL",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/NEL"},{name:"Origin",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin"},{name:"Permissions-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy"},{name:"Pragma",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Pragma"},{name:"Proxy-Authenticate",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Proxy-Authenticate"},{name:"Proxy-Authorization",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Proxy-Authorization"},{name:"Range",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range"},{name:"Referer",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer"},{name:"Referrer-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy"},{name:"Retry-After",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After"},{name:"RTT",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/RTT"},{name:"Save-Data",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Save-Data"},{name:"Sec-CH-Prefers-Reduced-Motion",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-Prefers-Reduced-Motion"},{name:"Sec-CH-Prefers-Reduced-Transparency",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-Prefers-Reduced-Transparency"},{name:"Sec-CH-UA",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA"},{name:"Sec-CH-UA-Arch",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Arch"},{name:"Sec-CH-UA-Bitness",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Bitness"},{name:"Sec-CH-UA-Full-Version",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Full-Version"},{name:"Sec-CH-UA-Full-Version-List",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Full-Version-List"},{name:"Sec-CH-UA-Mobile",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Mobile"},{name:"Sec-CH-UA-Model",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Model"},{name:"Sec-CH-UA-Platform",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Platform"},{name:"Sec-CH-UA-Platform-Version",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Platform-Version"},{name:"Sec-Fetch-Dest",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Dest"},{name:"Sec-Fetch-Mode",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Mode"},{name:"Sec-Fetch-Site",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Site"},{name:"Sec-Fetch-User",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-User"},{name:"Sec-GPC",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-GPC"},{name:"Sec-Purpose",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Purpose"},{name:"Sec-WebSocket-Accept",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-WebSocket-Accept"},{name:"Server",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Server"},{name:"Server-Timing",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Server-Timing"},{name:"Service-Worker-Navigation-Preload",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Service-Worker-Navigation-Preload"},{name:"Set-Cookie",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie"},{name:"SourceMap",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/SourceMap"},{name:"Strict-Transport-Security",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security"},{name:"TE",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/TE"},{name:"Timing-Allow-Origin",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Timing-Allow-Origin"},{name:"Tk",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Tk"},{name:"Trailer",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Trailer"},{name:"Transfer-Encoding",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Transfer-Encoding"},{name:"Upgrade",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Upgrade"},{name:"Upgrade-Insecure-Requests",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Upgrade-Insecure-Requests"},{name:"User-Agent",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent"},{name:"Vary",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Vary"},{name:"Via",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Via"},{name:"Viewport-Width",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Viewport-Width"},{name:"Want-Digest",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Want-Digest"},{name:"Warning",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Warning"},{name:"Width",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Width"},{name:"WWW-Authenticate",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/WWW-Authenticate"},{name:"X-Content-Type-Options",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options"},{name:"X-DNS-Prefetch-Control",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-DNS-Prefetch-Control"},{name:"Non-standard",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Non-standard"},{name:"X-Forwarded-For",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For"},{name:"Non-standard",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Non-standard"},{name:"X-Forwarded-Host",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host"},{name:"Non-standard",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Non-standard"},{name:"X-Forwarded-Proto",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Proto"},{name:"Non-standard",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Non-standard"},{name:"X-Frame-Options",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options"},{name:"X-XSS-Protection",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection"},{name:"Cf-Cache-Status",url:"https://developers.cloudflare.com/cache/concepts/default-cache-behavior/#cloudflare-cache-responses"},{name:"Cf-Ray",url:"https://developers.cloudflare.com/fundamentals/get-started/reference/http-request-headers/#cf-ray"},{name:"Report-To",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/report-to"},{name:"X-Cloud-Trace-Context",url:"https://cloud.google.com/trace/docs/trace-context#legacy-http-header"},{name:"Speculation-Rules",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Speculation-Rules"}],$Be={key:0,class:"max-h-[calc(100%-32px)] overflow-y-auto"},RBe={key:1,class:"text-c-3 bg-b-1 flex min-h-12 items-center justify-center rounded border px-4 text-base"},MBe=Li({__name:"RequestHeaders",props:{headers:{}},setup(e){const t=e=>DBe.find((t=>t.name.toLowerCase()===e.toLowerCase()));return(e,r)=>(Pl(),Nl(aOe,{class:"overflow-auto",defaultOpen:!1,itemCount:e.headers.length},{title:ci((()=>r[0]||(r[0]=[ql("Request Headers")]))),default:ci((()=>[e.headers.length?(Pl(),Ml("div",$Be,[Fl(Hye,{columns:["minmax(auto, min-content)","minmax(50%, 1fr)"],scroll:""},{default:ci((()=>[Fl(mye,{class:"sr-only !block"},{default:ci((()=>[Fl(Ao(AEe),null,{default:ci((()=>r[1]||(r[1]=[ql("Header Key")]))),_:1,__:[1]}),Fl(Ao(AEe),null,{default:ci((()=>r[2]||(r[2]=[ql("Header Value")]))),_:1,__:[2]})])),_:1}),(Pl(!0),Ml(Sl,null,ps(e.headers,(e=>(Pl(),Nl(mye,{key:e.name,class:"group/row text-c-1"},{default:ci((()=>[Fl(ABe,{class:"bg-b-1 sticky left-0 z-1 max-w-48 group-first/row:border-t-0"},{default:ci((()=>{var r;return["string"==typeof(null==(r=t(e.name))?void 0:r.url)?(Pl(),Nl(PBe,{key:0,class:"decoration-c-3",href:t(e.name).url},{default:ci((()=>[ql(Gn(e.name),1)])),_:2},1032,["href"])):(Pl(),Ml(Sl,{key:1},[ql(Gn(e.name),1)],64))]})),_:2},1024),Fl(ABe,{class:"z-0 group-first/row:border-t-0",text:e.value},null,8,["text"])])),_:2},1024)))),128))])),_:1})])):(Pl(),Ml("div",RBe," No Headers "))])),_:1},8,["itemCount"]))}}),NBe=["download","href"],IBe=Li({__name:"ResponseBodyDownload",props:{href:{},type:{},filename:{}},setup(e){const t=e,r=hc((()=>{var e;const r=(null==(e=Fje(t.type??""))?void 0:e.extension)??".unknown";return t.filename?t.filename:`response${r}`}));return(e,t)=>(Pl(),Ml("a",{class:"text-c-3 text-xxs hover:bg-b-3 flex items-center gap-1 rounded px-1.5 py-0.5 no-underline",download:`${r.value}`,href:e.href,onClick:t[0]||(t[0]=Su((()=>{}),["stop"]))},[Fl(Ao(p5),{icon:"Download",size:"xs"}),t[1]||(t[1]=Ul("span",null,[Ul("span",null,"Download"),Ul("span",{class:"sr-only"},"Response Body")],-1))],8,NBe))}}),LBe={class:"flex justify-center px-2 py-3"},jBe={class:"text-c-3 p-2 text-sm"},BBe=P8({},[["render",function(e,t){return Pl(),Ml("div",LBe,[Ul("div",jBe,[fs(e.$slots,"default")])])}]]),UBe=["src"],FBe=["src","type"],QBe=["src","type"],zBe=["data","type"],qBe=Li({__name:"ResponseBodyPreview",props:{src:{},type:{},mode:{},alpha:{type:Boolean,default:!1}},setup(e){const t=So(!1);return ul((()=>e.src),(()=>t.value=!1)),(e,r)=>!t.value&&e.src?(Pl(),Ml("div",{key:0,class:zn(["flex justify-center overflow-auto rounded-b",{"bg-preview p-2":e.alpha}])},["image"===e.mode?(Pl(),Ml("img",{key:0,class:zn(["h-full max-w-full",{rounded:e.alpha}]),src:e.src,onError:r[0]||(r[0]=e=>t.value=!0)},null,42,UBe)):"video"===e.mode?(Pl(),Ml("video",{key:1,autoplay:"",controls:"",width:"100%",onError:r[1]||(r[1]=e=>t.value=!0)},[Ul("source",{src:e.src,type:e.type},null,8,FBe)],32)):"audio"===e.mode?(Pl(),Ml("audio",{key:2,class:"my-12",controls:"",onError:r[2]||(r[2]=e=>t.value=!0)},[Ul("source",{src:e.src,type:e.type},null,8,QBe)],32)):(Pl(),Ml("object",{key:3,class:"aspect-[4/3] w-full",data:e.src,type:e.type,onError:r[3]||(r[3]=e=>t.value=!0)},null,40,zBe))],2)):(Pl(),Nl(BBe,{key:1},{default:ci((()=>r[4]||(r[4]=[ql("Preview unavailable")]))),_:1,__:[4]}))}}),HBe=P8(qBe,[["__scopeId","data-v-0956ad2d"]]),VBe={class:"body-raw grid min-h-0 overflow-hidden p-px outline-none has-[:focus-visible]:outline"},ZBe={key:0,class:"scalar-code-copy"},WBe={class:"body-raw-scroller relative overflow-auto overscroll-contain",tabindex:"0"},XBe=Li({__name:"ResponseBodyRaw",props:{content:{},language:{}},setup(e){const t=e,r=So(null),{copyToClipboard:n}=VV(),{codeMirror:a}=Wpe({codeMirrorRef:r,readOnly:!0,lineNumbers:!0,content:Io((()=>rj(t.content))),language:Io((()=>t.language)),forceFoldGutter:!0}),o=()=>{var e;return(null==(e=a.value)?void 0:e.state.doc.toString())||""};return(e,t)=>(Pl(),Ml("div",VBe,[o()?(Pl(),Ml("div",ZBe,[Ul("button",{class:"copy-button",type:"button",onClick:t[0]||(t[0]=e=>Ao(n)(o()))},[t[1]||(t[1]=Ul("span",{class:"sr-only"},"Copy content",-1)),Fl(Ao(p5),{icon:"Clipboard",size:"md"})])])):Vl("",!0),Ul("div",WBe,[Ul("div",{ref_key:"codeMirrorRef",ref:r},null,512)])]))}}),GBe=P8(XBe,[["__scopeId","data-v-27e5c2e0"]]),YBe={class:"text-c-3 text-xxs -my-1 flex justify-center gap-0.5 rounded p-0.5"},KBe=Li({__name:"ResponseBodyToggle",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup:e=>(e,t)=>(Pl(),Ml("div",YBe,[Ul("button",{class:zn(["hover:bg-b-3 rounded px-1",{"bg-b-3 text-c-1 cursor-default":e.modelValue}]),type:"button",onClick:t[0]||(t[0]=Su((t=>e.$emit("update:modelValue",!0)),["stop"]))}," Preview ",2),Ul("button",{class:zn(["hover:bg-b-3 rounded px-1",{"bg-b-3 text-c-1 cursor-default":!e.modelValue}]),type:"button",onClick:t[1]||(t[1]=Su((t=>e.$emit("update:modelValue",!1)),["stop"]))}," Raw ",2)]))}),JBe={key:0,class:"bg-b-1 flex max-h-[calc(100%-32px)] flex-col overflow-hidden"},eUe={class:"box-content flex min-h-8 items-center justify-between border-y px-3"},tUe={class:"text-xxs font-code leading-3"},rUe=Li({__name:"ResponseBody",props:{title:{},layout:{},data:{},headers:{}},setup(e){const t=e,r=So(!0),n=hc((()=>{var e;return!(null==(e=c.value)||!e.raw||!c.value.preview)})),a=hc((()=>r.value||!n.value)),o=hc((()=>!r.value||!n.value)),{mimeType:i,attachmentFilename:s,dataUrl:l}=Zbe({data:Io(t,"data"),headers:Io(t,"headers")}),c=hc((()=>Fje(i.value.essence)));return(e,t)=>(Pl(),Nl(aOe,{class:"max-h-content overflow-y-hidden",layout:e.layout},hs({title:ci((()=>[ql(Gn(e.title),1)])),default:ci((()=>{var s,u,d,p;return[e.data?(Pl(),Ml("div",JBe,[Ul("div",eUe,[Ul("span",tUe,Gn(Ao(i).essence),1),n.value?(Pl(),Nl(KBe,{key:0,modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=e=>r.value=e)},null,8,["modelValue"])):Vl("",!0)]),null!=(s=c.value)&&s.raw&&o.value?(Pl(),Nl(GBe,{key:Ao(l),content:e.data,language:c.value.language},null,8,["content","language"])):Vl("",!0),null!=(u=c.value)&&u.preview&&a.value?(Pl(),Nl(HBe,{key:Ao(l),alpha:c.value.alpha,mode:c.value.preview,src:Ao(l),type:Ao(i).essence},null,8,["alpha","mode","src","type"])):Vl("",!0),null!=(d=c.value)&&d.raw||null!=(p=c.value)&&p.preview?Vl("",!0):(Pl(),Nl(BBe,{key:2},{default:ci((()=>t[1]||(t[1]=[ql(" Binary file ")]))),_:1,__:[1]}))])):Vl("",!0)]})),_:2},[e.data&&Ao(l)?{name:"actions",fn:ci((()=>[Fl(IBe,{filename:Ao(s),href:Ao(l),type:Ao(i).essence},null,8,["filename","href","type"])])),key:"0"}:void 0]),1032,["layout"]))}}),nUe=P8(rUe,[["__scopeId","data-v-17966bf4"]]),aUe={class:"flex w-full items-center justify-between"},oUe={key:0,class:"mr-2 flex items-center gap-2"},iUe={key:0,class:"text-red bg-b-danger sticky top-0 border-b p-2"},sUe={key:1,class:"p-2"},lUe=Li({__name:"ResponseBodyStreaming",props:{reader:{}},setup(e){const t=ez(),r=So(""),n=So(null),a=new TextDecoder,o=So(null),i=()=>{o.value&&(o.value.scrollTop=o.value.scrollHeight)};return ul(r,(()=>{Ko(i)})),Yi((()=>{t.startLoading(),async function(){try{for(;t.isLoading;){const{done:n,value:o}=await e.reader.read();if(n){t.stopLoading();break}o&&(r.value+=a.decode(o,{stream:!0}))}}catch(e){console.error("Error reading stream:",e),t.stopLoading(),n.value=e}finally{r.value+=a.decode()}}(),n.value=null})),es((()=>{e.reader.cancel(),t.stopLoading()})),(e,a)=>(Pl(),Nl(aOe,{class:"max-h-content overflow-y-hidden"},{title:ci((()=>[Ul("div",aUe,[a[1]||(a[1]=Ul("div",null,"Body",-1)),Ao(t).isLoading?(Pl(),Ml("div",oUe,[Fl(Ao(nz),{loadingState:Ao(t),size:"xs"},null,8,["loadingState"]),a[0]||(a[0]=Ul("span",{class:"text-c-2"}," Listening… ",-1))])):Vl("",!0)])])),default:ci((()=>[Ul("div",{ref_key:"contentContainer",ref:o,class:"text-xxs font-code h-full overflow-auto leading-2 whitespace-pre-wrap"},[n.value?(Pl(),Ml("div",iUe,Gn(n.value.message),1)):Vl("",!0),r.value?(Pl(),Ml("div",sUe,Gn(r.value),1)):Vl("",!0)],512)])),_:1}))}}),cUe=Li({__name:"ResponseBodyVirtual",props:{content:{},data:{},headers:{}},setup(e){const t=e,r=hc((()=>ZL(t.content))),{mimeType:n,attachmentFilename:a,dataUrl:o}=Zbe({data:Io(t,"data"),headers:Io(t,"headers")});return(e,t)=>(Pl(),Nl(aOe,{class:"!max-h-100% response-body-virtual overflow-x-auto"},hs({title:ci((()=>[t[0]||(t[0]=ql("Body"))])),default:ci((()=>[t[1]||(t[1]=Ul("div",{class:"font-code text-xxs rounded-t border border-b-0 px-2.5 py-1.5"}," This response body is massive! Syntax highlighting won't work here. ",-1)),Fl(Ao(v8),{containerClass:"custom-scroll scalar-code-block border rounded-b flex flex-1 max-h-screen",contentClass:"language-plaintext whitespace-pre font-code text-base",lineHeight:20,text:r.value},null,8,["text"])])),_:2},[Ao(o)?{name:"actions",fn:ci((()=>[Fl(IBe,{filename:Ao(a),href:Ao(o),type:Ao(n).essence},null,8,["filename","href","type"])])),key:"0"}:void 0]),1024))}}),uUe={key:1,class:"text-c-3 bg-b-1 flex min-h-[65px] items-center justify-center border-t px-4 text-sm"},dUe=Li({__name:"ResponseCookies",props:{cookies:{}},setup:e=>(e,t)=>(Pl(),Nl(aOe,{defaultOpen:!1},{title:ci((()=>t[0]||(t[0]=[ql("Cookies")]))),default:ci((()=>[(Pl(),Ml(Sl,{key:0},[e.cookies.length?(Pl(),Nl(Hye,{key:0,class:"flex-1",columns:["",""]},{default:ci((()=>[(Pl(!0),Ml(Sl,null,ps(e.cookies,(e=>(Pl(),Nl(mye,{key:e.name},{default:ci((()=>[Fl(ABe,{text:e.name},null,8,["text"]),Fl(ABe,{text:e.value},null,8,["text"])])),_:2},1024)))),128))])),_:1})):(Pl(),Ml("div",uUe," No cookies "))],64))])),_:1}))}),pUe={class:"flex-center relative flex flex-1 flex-col gap-6 p-2 capitalize"},hUe={key:0,class:"scalar-version-number"},fUe={class:"text-c-3 right-4 mt-auto flex w-full flex-col items-end gap-2 text-sm"},mUe=Li({__name:"ResponseEmpty",props:{collection:{},operation:{},workspace:{},numWorkspaceRequests:{}},setup(e){const{events:t,requestMutators:r}=Hve(),n=ume(),a=cme(),{layout:o}=Pme(),i=()=>{var n;const o=null!=(n=e.operation.tags)&&n.length?{tags:e.operation.tags[0]?[e.operation.tags[0]]:[]}:{},i=r.add(o,e.collection.uid);i&&(a.push({name:"request",params:{workspace:e.workspace.uid,request:i.uid}}),Ko((()=>{t.hotKeys.emit({focusAddressBar:new KeyboardEvent("keydown",{key:"l"})})})))},s=e=>{null!=e&&e.createNew&&"request"===n.name&&i()};return Yi((()=>t.hotKeys.on(s))),es((()=>t.hotKeys.off(s))),(e,r)=>(Pl(),Ml("div",pUe,[Ul("div",{class:zn(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center",{"hidden opacity-0":e.numWorkspaceRequests<=1&&"modal"!==Ao(o)}])},["modal"!==Ao(o)?(Pl(),Ml("div",hUe,[ql(" Scalar App V"+Gn(Ao("2.5.19"))+" Beta ",1),r[3]||(r[3]=Ul("div",{class:"mt-2"},[Ul("a",{href:"https://github.com/scalar/scalar/issues/2669",target:"_blank"}," Roadmap ")],-1))])):Vl("",!0),r[4]||(r[4]=Ul("a",{class:"gitbook-show scalar-version-number",href:"https://www.scalar.com",target:"_blank"}," Powered By Scalar.com ",-1)),Fl(ILe,{art:Ao(" .,,uod8B8bou,,.\n ..,uod8BBBBBBBBBBBBBBBBRPFT?l!i:.\n ||||||||||||||!?TFPRBBBBBBBBBBBBBBB8m=,\n |||| '\"\"^^!!||||||||||TFPRBBBVT!:...!\n |||| '\"\"^^!!|||||?!:.......!\n |||| ||||.........!\n |||| ||||.........!\n |||| ||||.........!\n |||| ||||.........!\n |||| ||||.........!\n |||| ||||.........!\n ||||, ||||.........`\n |||||!!-._ ||||.......;.\n ':!|||||||||!!-._ ||||.....bBBBBWdou,.\n bBBBBB86foi!|||||||!!-..:|||!..bBBBBBBBBBBBBBBY!\n ::!?TFPRBBBBBB86foi!||||||||!!bBBBBBBBBBBBBBBY..!\n :::::::::!?TFPRBBBBBB86ftiaabBBBBBBBBBBBBBBY....!\n :::;`\"^!:;::::::!?TFPRBBBBBBBBBBBBBBBBBBBY......!\n ;::::::...''^::::::::::!?TFPRBBBBBBBBBBY........!\n .ob86foi;::::::::::::::::::::::::!?TFPRBY..........`\n .b888888888886foi;:::::::::::::::::::::::..........`\n .b888888888888888888886foi;::::::::::::::::..........\n.b888888888888888888888888888886foi;:::::::::......`\n!Tf998888888888888888888888888888888886foi;:::....`\n '\"^!|Tf9988888888888888888888888888888888!::..`\n '\"^!|Tf998888888888888888888888889!! '`\n '\"^!|Tf9988888888888888888!!` iBBbo.\n '\"^!|Tf998888888889!` WBBBBbo.\n '\"^!|Tf9989!` YBBBP^'\n '\"^!` `\n"),class:"text-c-3"},null,8,["art"])],2),"modal"!==Ao(o)?(Pl(),Ml("div",{key:0,class:zn(["hidden h-[calc(100%_-_50px)] items-center justify-center pb-5",{"!flex opacity-100":1==e.numWorkspaceRequests}])},[Fl(eBe)],2)):Vl("",!0),Ul("div",fUe,["modal"!==Ao(o)?(Pl(),Ml("button",{key:0,class:"flex items-center gap-1.5",type:"button",onClick:r[0]||(r[0]=e=>Ao(t).commandPalette.emit())},[r[5]||(r[5]=ql(" Get Started ")),Fl(BLe,{hotkey:"k"})])):Vl("",!0),"desktop"===Ao(o)?(Pl(),Ml("button",{key:1,class:"flex items-center gap-1.5",type:"button",onClick:r[1]||(r[1]=e=>i())},[r[6]||(r[6]=ql(" New Request ")),Fl(BLe,{hotkey:"N"})])):Vl("",!0),Ul("button",{class:"flex items-center gap-1.5",type:"button",onClick:r[2]||(r[2]=e=>Ao(t).executeRequest.emit())},[r[7]||(r[7]=ql(" Send Request ")),Fl(BLe,{hotkey:"↵"})])])]))}}),gUe=P8(mUe,[["__scopeId","data-v-bb2369d4"]]),vUe={key:0,class:"max-h-[calc(100%-32px)] overflow-y-auto"},bUe={key:1,class:"text-c-3 bg-b-1 flex min-h-12 items-center justify-center rounded border px-4 text-base"},yUe=Li({__name:"ResponseHeaders",props:{headers:{}},setup(e){const t=e=>DBe.find((t=>t.name.toLowerCase()===e.toLowerCase()));return(e,r)=>(Pl(),Nl(aOe,{class:"overflow-auto",defaultOpen:!1,itemCount:e.headers.length},{title:ci((()=>r[0]||(r[0]=[ql("Response Headers")]))),default:ci((()=>[e.headers.length?(Pl(),Ml("div",vUe,[Fl(Hye,{columns:["minmax(auto, min-content)","minmax(50%, 1fr)"],scroll:""},{default:ci((()=>[Fl(mye,{class:"sr-only !block"},{default:ci((()=>[Fl(Ao(AEe),null,{default:ci((()=>r[1]||(r[1]=[ql("Header Key")]))),_:1,__:[1]}),Fl(Ao(AEe),null,{default:ci((()=>r[2]||(r[2]=[ql("Header Value")]))),_:1,__:[2]})])),_:1}),(Pl(!0),Ml(Sl,null,ps(e.headers,(e=>(Pl(),Nl(mye,{key:e.name,class:"group/row text-c-1"},{default:ci((()=>[Fl(ABe,{class:"bg-b-1 sticky left-0 z-1 max-w-48 group-first/row:border-t-0"},{default:ci((()=>{var r;return["string"==typeof(null==(r=t(e.name))?void 0:r.url)?(Pl(),Nl(PBe,{key:0,class:"decoration-c-3",href:t(e.name).url},{default:ci((()=>[ql(Gn(e.name),1)])),_:2},1032,["href"])):(Pl(),Ml(Sl,{key:1},[ql(Gn(e.name),1)],64))]})),_:2},1024),Fl(ABe,{class:"z-0 group-first/row:border-t-0",text:e.value},null,8,["text"])])),_:2},1024)))),128))])),_:1})])):(Pl(),Ml("div",bUe," No Headers "))])),_:1},8,["itemCount"]))}}),OUe={key:0,class:"bg-b-1 z-overlay absolute inset-0 flex flex-col items-center justify-center gap-6"},wUe=Li({__name:"ResponseLoadingOverlay",setup(e){const{events:t}=Hve(),r=ez(),n=So();return t.requestStatus.on((e=>{"start"===e?n.value=setTimeout((()=>r.startLoading()),1e3):(clearTimeout(n.value),n.value=void 0,r.stopLoading())})),(e,n)=>(Pl(),Nl(Tc,null,{default:ci((()=>[Ao(r).isLoading?(Pl(),Ml("div",OUe,[Fl(Ao(nz),{class:"text-c-3",loadingState:Ao(r),size:"3xl"},null,8,["loadingState"]),Fl(Ao(iz),{variant:"ghost",onClick:n[0]||(n[0]=e=>Ao(t).cancelRequest.emit())},{default:ci((()=>n[1]||(n[1]=[ql(" Cancel ")]))),_:1,__:[1]})])):Vl("",!0)])),_:1}))}}),xUe=P8(wUe,[["__scopeId","data-v-62b8db3f"]]);function kUe(e,t={}){if(!Number.isFinite(e))throw new TypeError("Expected a finite number");t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);const r=[],n=(e,n,a,o)=>{if(!(0!==r.length&&t.colonNotation||0!==e||t.colonNotation&&"m"===a))return;let i,s;if(o=(o||e||"0").toString(),t.colonNotation){i=r.length>0?":":"",s="";const e=o.includes(".")?o.split(".")[0].length:o.length,t=r.length>0?2:1;o="0".repeat(Math.max(0,t-e))+o}else i="",s=t.verbose?" "+(l=n,1===e?l:`${l}s`):a;var l;r.push(i+o+s)},a=function(e){if("number"!=typeof e)throw new TypeError("Expected a number");const t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(1e3*e)%1e3,nanoseconds:t(1e6*e)%1e3}}(e);if(n(Math.trunc(a.days/365),"year","y"),n(a.days%365,"day","d"),n(a.hours,"hour","h"),n(a.minutes,"minute","m"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(n(a.seconds,"second","s"),t.formatSubMilliseconds)n(a.milliseconds,"millisecond","ms"),n(a.microseconds,"microsecond","µs"),n(a.nanoseconds,"nanosecond","ns");else{const e=a.milliseconds+a.microseconds/1e3+a.nanoseconds/1e6,r="number"==typeof t.millisecondsDecimalDigits?t.millisecondsDecimalDigits:0,o=e>=1?Math.round(e):Math.ceil(e),i=r?e.toFixed(r):o;n(Number.parseFloat(i),"millisecond","ms",i)}else{const r=((e,t)=>{const r=Math.floor(e*10**t+1e-7);return(Math.round(r)/10**t).toFixed(t)})(e/1e3%60,"number"==typeof t.secondsDecimalDigits?t.secondsDecimalDigits:1),a=t.keepDecimalsOnWholeSeconds?r:r.replace(/\.0+$/,"");n(Number.parseFloat(a),"second","s",a)}if(0===r.length)return"0"+(t.verbose?" milliseconds":"ms");if(t.compact)return r[0];if("number"==typeof t.unitCount){const e=t.colonNotation?"":" ";return r.slice(0,Math.max(t.unitCount,1)).join(e)}return t.colonNotation?r.join(""):r.join(" ")}const SUe={class:"text-c-1 flex gap-1.5"},_Ue={key:0},EUe={key:0},TUe={key:1},AUe=Li({__name:"ResponseMetaInformation",props:{response:{}},setup(e){const t=e,{events:r}=Hve(),n=So(),a=So(0);r.requestStatus.on((e=>{"start"===e?n.value=setInterval((()=>a.value+=1e3),1e3):(clearInterval(n.value),n.value=void 0,a.value=0)}));const o=e=>{var t,r;const n=Number.parseInt((null==(t=e.headers)?void 0:t["Content-Length"])||(null==(r=e.headers)?void 0:r["content-length"])||"0",10);return n?function(e,t){if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);const r=(t={bits:!1,binary:!1,space:!0,...t}).bits?t.binary?iX:oX:t.binary?aX:nX,n=t.space?" ":"";if(t.signed&&0===e)return` 0${n}${r[0]}`;const a=e<0,o=a?"-":t.signed?"+":"";let i;if(a&&(e=-e),void 0!==t.minimumFractionDigits&&(i={minimumFractionDigits:t.minimumFractionDigits}),void 0!==t.maximumFractionDigits&&(i={maximumFractionDigits:t.maximumFractionDigits,...i}),e<1)return o+sX(e,t.locale,i)+n+r[0];const s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),r.length-1);return e/=(t.binary?1024:1e3)**s,i||(e=e.toPrecision(3)),o+sX(Number(e),t.locale,i)+n+r[s]}(n):void 0},i=hc((()=>{const e=t.response.status;if(e)return Sj[e]??void 0}));return(e,t)=>(Pl(),Ml("div",SUe,[n.value&&a.value?(Pl(),Ml("span",_Ue,Gn(Ao(kUe)(a.value)),1)):(Pl(),Ml(Sl,{key:1},[Ul("span",null,[t[0]||(t[0]=Ul("span",{class:"sr-only"},"Response Information, Duration:",-1)),ql(" "+Gn(Ao(kUe)(e.response.duration)),1)]),o(e.response)?(Pl(),Ml("span",EUe,[t[1]||(t[1]=Ul("span",{class:"sr-only"},", Size:",-1)),ql(" "+Gn(o(e.response)),1)])):Vl("",!0),i.value?(Pl(),Ml(Sl,{key:1},[t[2]||(t[2]=Ul("span",{class:"sr-only"},", Status:",-1)),i.value.url?(Pl(),Nl(PBe,{key:0,class:"flex items-center gap-1.5",href:i.value.url},{default:ci((()=>[ql(Gn(e.response.status)+" "+Gn(i.value.name)+" ",1),Ul("span",{class:"block h-1.5 w-1.5 rounded-full",style:jn({backgroundColor:i.value.color})},null,4)])),_:1},8,["href"])):(Pl(),Ml("span",TUe,[ql(Gn(e.response.status)+" "+Gn(i.value.name)+" ",1),Ul("span",{class:"block h-1.5 w-1.5 rounded-full",style:jn({backgroundColor:i.value.color})},null,4)]))],64)):Vl("",!0)],64))]))}}),CUe={class:"flex h-8 flex-1 items-center"},PUe=["id","role"],DUe=2e5,$Ue=Li({__name:"ResponseSection",props:{collection:{},operation:{},workspace:{},numWorkspaceRequests:{},response:{},requestResult:{}},setup(e){const t=mTe().getViewComponents("response.section"),r=hc((()=>{var t;const r=null==(t=e.response)?void 0:t.headers;return r?Object.keys(r).map((e=>({name:e,value:r[e]??"",required:!1}))):[]})),n=hc((()=>{var t;return(null==(t=e.response)?void 0:t.cookieHeaderKeys.flatMap((t=>{var r,n;const a=null==(n=null==(r=e.response)?void 0:r.headers)?void 0:n[t];return a?{name:t,value:a,required:!1}:[]})))??[]})),a=["Cookies","Headers","Body"],o=So("All"),i=hc((()=>["All",...a])),s=hc((()=>Object.fromEntries(i.value.map((e=>[e,ji()]))))),l=hc((()=>{var t,r;if(!e.response||!("size"in e.response))return!1;const n=(null==(t=e.response.headers)?void 0:t["content-type"])||(null==(r=e.response.headers)?void 0:r["Content-Type"]);return!(!n||(e.response.size??0)<=DUe||n.includes("text/html"))&&["text/","application/json","application/ld+json","application/problem+json","application/vnd.api+json","application/xml","application/atom+xml","application/rss+xml","application/problem+xml","application/javascript","application/ecmascript","application/x-yaml","application/yaml","application/x-httpd-php","application/x-sh","application/x-perl","application/x-python","application/x-ruby","application/x-java-source","application/x-www-form-urlencoded"].some((e=>n.includes(e)))&&(e.response.size??0)>DUe})),c=hc((()=>{var t;return(null==(t=e.requestResult)?void 0:t.request.parameters.headers.filter((e=>e.enabled)).map((e=>({name:e.key,value:e.value,required:!0}))))??[]}));return(e,a)=>(Pl(),Nl(_Ee,{"aria-label":"Response"},{title:ci((()=>[Ul("div",CUe,[Ul("div",{"aria-live":"polite",class:zn(["flex items-center",{"animate-response-heading":e.response}])},[a[1]||(a[1]=Ul("span",{class:"response-heading pointer-events-none absolute"}," Response ",-1)),e.response?(Pl(),Nl(AUe,{key:0,class:"animate-response-children",response:e.response},null,8,["response"])):Vl("",!0)],2),Fl(kEe,{modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=e=>o.value=e),filterIds:s.value,filters:i.value},null,8,["modelValue","filterIds","filters"])])])),default:ci((()=>{var a,i,u;return[Ul("div",{id:s.value.All,class:zn(["custom-scroll response-section-content relative grid h-full justify-stretch",{"content-start":e.response}]),role:"All"===o.value&&e.response?"tabpanel":"none"},[e.response?(Pl(),Ml(Sl,{key:1},["All"===o.value||"Cookies"===o.value?(Pl(),Nl(dUe,{key:0,class:"response-section-content-cookies",id:s.value.Cookies,cookies:n.value,role:"All"===o.value?"none":"tabpanel"},null,8,["id","cookies","role"])):Vl("",!0),"All"===o.value||"Headers"===o.value?(Pl(),Nl(MBe,{key:1,class:"response-section-content-headers",id:s.value.Headers,headers:c.value,role:"All"===o.value?"none":"tabpanel"},null,8,["id","headers","role"])):Vl("",!0),"All"===o.value||"Headers"===o.value?(Pl(),Nl(yUe,{key:2,class:"response-section-content-headers",id:s.value.Headers,headers:r.value,role:"All"===o.value?"none":"tabpanel"},null,8,["id","headers","role"])):Vl("",!0),(Pl(!0),Ml(Sl,null,ps(Ao(t),(e=>(Pl(),Nl(Ao(rX),{key:e.component},{default:ci((()=>[ui((Pl(),Nl(cs(e.component),Gl({ref_for:!0},e.props??{}),null,16)),[[Fc,"All"===o.value||o.value===e.title]])])),_:2},1024)))),128)),"All"===o.value||"Body"===o.value?(Pl(),Ml(Sl,{key:3},["reader"in e.response?(Pl(),Nl(lUe,{key:0,class:"response-section-content-body",id:s.value.Body,reader:e.response.reader},null,8,["id","reader"])):l.value&&"string"==typeof(null==(a=e.response)?void 0:a.data)?(Pl(),Nl(cUe,{key:1,id:s.value.Body,content:e.response.data,data:null==(i=e.response)?void 0:i.data,headers:r.value,role:"All"===o.value?"none":"tabpanel"},null,8,["id","content","data","headers","role"])):(Pl(),Nl(nUe,{key:2,class:"response-section-content-body",id:s.value.Body,layout:"client",active:!0,data:null==(u=e.response)?void 0:u.data,headers:r.value,role:"All"===o.value?"none":"tabpanel",title:"Body"},null,8,["id","data","headers","role"]))],64)):Vl("",!0)],64)):(Pl(),Nl(gUe,{key:0,collection:e.collection,operation:e.operation,workspace:e.workspace,numWorkspaceRequests:e.numWorkspaceRequests},null,8,["collection","operation","workspace","numWorkspaceRequests"])),Fl(xUe)],10,PUe)]})),_:1}))}}),RUe=P8($Ue,[["__scopeId","data-v-7138ed84"]]),MUe={class:"flex h-full"},NUe={key:0,class:"flex h-full flex-1 flex-col"},IUe=Li({__name:"Request",props:{invalidParams:{},selectedSecuritySchemeUids:{},requestResult:{}},emits:["newTab"],setup(e){const{events:t}=Hve(),{isSidebarOpen:r}=kbe(),n=Hve(),{layout:a}=Pme(),{activeCollection:o,activeExample:i,activeRequest:s,activeWorkspace:l,activeServer:c,activeEnvVariables:u,activeEnvironment:d,activeWorkspaceRequests:p}=rye(),{modalState:h,requestHistory:f}=n,m=hc((()=>f.findLast((e=>{var t;return e.request.uid===(null==(t=i.value)?void 0:t.uid)}))));function g(e){var r;t.commandPalette.emit({commandName:"Import from cURL",metaData:{parsedCurl:wBe(e),collectionUid:null==(r=o.value)?void 0:r.uid}})}return(e,t)=>Ao(o)&&Ao(l)?(Pl(),Ml("div",{key:0,class:zn(["bg-b-1 relative z-0 flex h-full flex-1 flex-col overflow-hidden pt-0",{"!mr-0 !mb-0 !border-0":"modal"===Ao(a)}])},[Ul("div",MUe,[Ao(s)?(Pl(),Ml("div",NUe,[Fl(EBe,{modelValue:Ao(r),"onUpdate:modelValue":t[0]||(t[0]=e=>ko(r)?r.value=e:null),collection:Ao(o),envVariables:Ao(u),environment:Ao(d),operation:Ao(s),server:Ao(c),workspace:Ao(l),onHideModal:t[1]||(t[1]=()=>Ao(h).hide()),onImportCurl:g},null,8,["modelValue","collection","envVariables","environment","operation","server","workspace"]),Fl(tBe,null,{default:ci((()=>[Ao(i)?(Pl(),Nl(nBe,{key:0,class:zn(["flex-1",[Ao(r)?"sidebar-active-hide-layout":""]])},{default:ci((()=>{var t;return[Fl(xTe,{collection:Ao(o),envVariables:Ao(u),environment:Ao(d),example:Ao(i),invalidParams:e.invalidParams,operation:Ao(s),selectedSecuritySchemeUids:e.selectedSecuritySchemeUids,server:Ao(c),workspace:Ao(l)},null,8,["collection","envVariables","environment","example","invalidParams","operation","selectedSecuritySchemeUids","server","workspace"]),Fl(RUe,{collection:Ao(o),operation:Ao(s),workspace:Ao(l),requestResult:e.requestResult,numWorkspaceRequests:Ao(p).length,response:null==(t=m.value)?void 0:t.response},null,8,["collection","operation","workspace","requestResult","numWorkspaceRequests","response"])]})),_:1},8,["class"])):Vl("",!0)])),_:1})])):(Pl(),Nl(eBe,{key:1}))])],2)):(Pl(),Nl(eBe,{key:1}))}}),LUe=P8(IUe,[["__scopeId","data-v-cbe958dd"]]),jUe=Object.freeze(Object.defineProperty({__proto__:null,default:LUe},Symbol.toStringTag,{value:"Module"})),BUe=["for"],UUe=["id","placeholder","value"],FUe=Li({__name:"LabelInput",props:{inputId:{},placeholder:{},value:{},layout:{}},emits:["updateValue"],setup(e,{emit:t}){const r=t,{cx:n}=GQ(),a=e=>{const t=e.target;r("updateValue",t.value)};return(e,t)=>(Pl(),Ml("div",qn(Ql(Ao(n)("flex-1 flex gap-1 items-center pointer-events-none group"))),["modal"!==e.layout?(Pl(),Ml(Sl,{key:0},[Ul("label",Gl(Ao(n)("absolute w-full h-full top-0 left-0 pointer-events-auto opacity-0 cursor-text"),{for:e.inputId}),null,16,BUe),Ul("input",Gl(Ao(n)("flex-1 text-c-1 rounded pointer-events-auto relative w-full pl-1.25 -ml-0.5 md:-ml-1.25 h-8 group-hover-input has-[:focus-visible]:outline z-10"),{id:e.inputId,placeholder:e.placeholder,value:e.value,onInput:a}),null,16,UUe)],64)):(Pl(),Ml("span",qn(Gl({key:1},Ao(n)("flex items-center text-c-1 h-8"))),Gn(e.value),17))],16))}}),QUe=P8(FUe,[["__scopeId","data-v-fced736a"]]),zUe=["aria-label"],qUe={class:"group relative ml-1.25"},HUe=Li({__name:"CollectionInfoForm",setup(e){const{activeCollection:t}=rye(),{collectionMutators:r}=Hve(),n=hc((()=>{var e;return(null==(e=null==t?void 0:t.value)?void 0:e["x-scalar-icon"])||"interface-content-folder"})),a=e=>{t.value&&r.edit(t.value.uid,"info.title",e)},o=hc((()=>{var e,r,n,a,o,i,s;return{icon:null==(e=null==t?void 0:t.value)?void 0:e["x-scalar-icon"],title:null==(n=null==(r=null==t?void 0:t.value)?void 0:r.info)?void 0:n.title,description:null==(o=null==(a=null==t?void 0:t.value)?void 0:a.info)?void 0:o.description,version:null==(s=null==(i=null==t?void 0:t.value)?void 0:i.info)?void 0:s.version}}));return(e,i)=>(Pl(),Ml("div",{"aria-label":`Collection: ${o.value.title}`,class:"mx-auto flex h-fit w-full flex-col gap-2 pt-6 pb-3 md:mx-auto md:max-w-[720px]"},[Fl(WLe,{modelValue:n.value,placement:"bottom-start","onUpdate:modelValue":i[0]||(i[0]=e=>(e=>{var n,a;null!=(n=null==t?void 0:t.value)&&n.uid&&r.edit(null==(a=null==t?void 0:t.value)?void 0:a.uid,"x-scalar-icon",e)})(e))},{default:ci((()=>[Fl(Ao(iz),{class:"hover:bg-b-2 aspect-square h-7 w-7 cursor-pointer rounded border border-transparent p-0 hover:border-inherit",variant:"ghost"},{default:ci((()=>[Fl(Ao(DLe),{class:"text-c-2 size-5",src:n.value,"stroke-width":"2"},null,8,["src"])])),_:1})])),_:1},8,["modelValue"]),Ul("div",qUe,[Fl(QUe,{class:"text-xl font-bold",inputId:"collectionName",placeholder:"Untitled Collection",value:o.value.title,onUpdateValue:a},null,8,["value"])])],8,zUe))}}),VUe=P8(HUe,[["__scopeId","data-v-68d5218e"]]),ZUe={class:"bg-b-1 sticky -top-[104px] z-10 mx-auto w-full"},WUe={key:0,class:"flex max-w-40 items-center"},XUe={class:"text-c-1 mr-[6.25px] hidden overflow-hidden px-2 font-medium text-ellipsis whitespace-nowrap md:block"},GUe=Li({__name:"CollectionNavigation",props:{isSticky:{type:Boolean}},setup(e){const{currentRoute:t}=cme(),{activeCollection:r}=rye(),n=hc((()=>{var e,t,n,a;return[{displayName:"Overview",to:{name:"collection.overview",params:{[Ybe.Collection]:null==(e=r.value)?void 0:e.uid}}},{displayName:"Servers",to:{name:"collection.servers",params:{[Ybe.Collection]:null==(t=r.value)?void 0:t.uid}}},{displayName:"Authentication",to:{name:"collection.authentication",params:{[Ybe.Collection]:null==(n=r.value)?void 0:n.uid}}},{displayName:"Environment",to:{name:"collection.environment",params:{[Ybe.Collection]:null==(a=r.value)?void 0:a.uid}}},{displayName:"Settings",to:{name:"collection.settings"}}]}));return(e,a)=>{var o,i,s;return Pl(),Ml("div",ZUe,[Fl(VUe),Ul("div",{class:zn(["items-center text-sm font-medium",e.isSticky?"h-fit border-b md:grid md:grid-cols-[1fr_720px_1fr] md:px-4":"flex md:mx-auto md:max-w-[720px]"])},[e.isSticky?(Pl(),Ml("div",WUe,[Fl(Ao(DLe),{class:"text-c-2 hidden size-3.5 md:block",src:(null==(o=Ao(r))?void 0:o["x-scalar-icon"])||"interface-content-folder","stroke-width":"2"},null,8,["src"]),Ul("span",XUe,Gn(null==(s=null==(i=Ao(r))?void 0:i.info)?void 0:s.title),1)])):Vl("",!0),Ul("div",{class:zn(["flex w-full max-w-[720px] gap-2 pl-1.5 md:ml-1.5 md:pl-0",!e.isSticky&&"border-b"])},[(Pl(!0),Ml(Sl,null,ps(n.value,(({to:e,displayName:r},n)=>(Pl(),Nl(Ao(nme),{key:n,class:"-ml-2 flex h-10 cursor-pointer items-center px-2 text-center text-sm font-medium whitespace-nowrap no-underline -outline-offset-1 has-[:focus-visible]:outline",to:e},{default:ci((()=>{var n;return[Ul("span",{class:zn(["flex-center h-full w-full border-b","string"==typeof e.name&&"string"==typeof Ao(t).name&&null!=(n=Ao(t).name)&&n.startsWith(e.name)?"text-c-1 border-c-1":"text-c-2 hover:text-c-1 border-transparent"])},Gn(r),3)]})),_:2},1032,["to"])))),128))],2)],2)])}}}),YUe={class:"w-full md:mx-auto md:max-w-[720px]"},KUe=Li({__name:"Collection",setup(e){const{activeCollection:t}=rye(),r=cme(),n=So(null),{y:a}=function(e,t={}){const{throttle:r=0,idle:n=200,onStop:a=Nj,onScroll:o=Nj,offset:i={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:l="auto",window:c=zj,onError:u=e=>{console.error(e)}}=t,d=So(0),p=So(0),h=hc({get:()=>d.value,set(e){m(e,void 0)}}),f=hc({get:()=>p.value,set(e){m(void 0,e)}});function m(t,r){var n,a,o,i;if(!c)return;const s=Dj(e);if(!s)return;null==(o=s instanceof Document?c.document.body:s)||o.scrollTo({top:null!=(n=Dj(r))?n:f.value,left:null!=(a=Dj(t))?a:h.value,behavior:Dj(l)});const u=(null==(i=null==s?void 0:s.document)?void 0:i.documentElement)||(null==s?void 0:s.documentElement)||s;null!=h&&(d.value=u.scrollLeft),null!=f&&(p.value=u.scrollTop)}const g=So(!1),v=uo({left:!0,right:!1,top:!0,bottom:!1}),b=uo({left:!1,right:!1,top:!1,bottom:!1}),y=e=>{g.value&&(g.value=!1,b.left=!1,b.right=!1,b.top=!1,b.bottom=!1,a(e))},O=Uj(y,r+n),w=e=>{var t;if(!c)return;const r=(null==(t=null==e?void 0:e.document)?void 0:t.documentElement)||(null==e?void 0:e.documentElement)||Qj(e),{display:n,flexDirection:a}=getComputedStyle(r),o=r.scrollLeft;b.left=o<d.value,b.right=o>d.value;const s=Math.abs(o)<=(i.left||0),l=Math.abs(o)+r.clientWidth>=r.scrollWidth-(i.right||0)-1;"flex"===n&&"row-reverse"===a?(v.left=l,v.right=s):(v.left=s,v.right=l),d.value=o;let u=r.scrollTop;e!==c.document||u||(u=c.document.body.scrollTop),b.top=u<p.value,b.bottom=u>p.value;const h=Math.abs(u)<=(i.top||0),f=Math.abs(u)+r.clientHeight>=r.scrollHeight-(i.bottom||0)-1;"flex"===n&&"column-reverse"===a?(v.top=f,v.bottom=h):(v.top=h,v.bottom=f),p.value=u},x=e=>{var t;if(!c)return;const r=null!=(t=e.target.documentElement)?t:e.target;w(r),g.value=!0,O(e),o(e)};return Hj(e,"scroll",r?function(e,t=200,r=!1,n=!0,a=!1){return Lj(function(...e){let t,r,n,a,o,i,s=0,l=!0,c=Nj;ko(e[0])||"object"!=typeof e[0]?[n,a=!0,o=!0,i=!1]=e:({delay:n,trailing:a=!0,leading:o=!0,rejectOnCancel:i=!1}=e[0]);const u=()=>{t&&(clearTimeout(t),t=void 0,c(),c=Nj)};return e=>{const d=Dj(n),p=Date.now()-s,h=()=>r=e();return u(),d<=0?(s=Date.now(),h()):(p>d&&(o||!l)?(s=Date.now(),h()):a&&(r=new Promise(((e,r)=>{c=i?r:e,t=setTimeout((()=>{s=Date.now(),l=!0,e(h()),u()}),Math.max(0,d-p))}))),o||t||(t=setTimeout((()=>l=!0),d)),l=!1,r)}}(t,r,n,a),e)}(x,r,!0,!1):x,s),function(e,t=!0,r){tc()?Yi(e,r):t?e():Ko(e)}((()=>{try{const t=Dj(e);if(!t)return;w(t)}catch(e){u(e)}})),Hj(e,"scrollend",y,s),{x:h,y:f,isScrolling:g,arrivedState:v,directions:b,measure(){const t=Dj(e);c&&t&&w(t)}}}(n),o=hc((()=>a.value>104));return ul(t,(e=>{var t;if("Drafts"===(null==(t=null==e?void 0:e.info)?void 0:t.title)){const t=e.requests[0];r.push({name:"request",params:{[Ybe.Request]:t}})}}),{immediate:!0}),(e,t)=>(Pl(),Nl(tBe,{ref_key:"el",ref:n,class:"h-fit overflow-auto pb-6 xl:overflow-auto"},{default:ci((()=>[Fl(_Ee,{class:"xl:h-fit"},{default:ci((()=>[Fl(GUe,{isSticky:o.value},null,8,["isSticky"]),Ul("div",YUe,[Fl(Ao(sme))])])),_:1})])),_:1},512))}}),JUe=Object.freeze(Object.defineProperty({__proto__:null,default:KUe},Symbol.toStringTag,{value:"Module"})),eFe={class:"flex h-full w-full flex-col gap-2 pt-8"},tFe={class:"flex min-h-8 items-center justify-between gap-2 pl-1.5"},rFe={class:"has-[:focus-visible]:bg-b-1 group relative z-1 flex flex-col rounded-lg"},nFe={class:"flex h-full min-h-[calc(1rem*4)] flex-col"},aFe={key:1,class:"text-c-3 flex h-full items-center justify-center rounded-lg border p-4"},oFe=Li({__name:"MarkdownInput",props:{modelValue:{},environment:{},envVariables:{},workspace:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=t,n=So("preview"),a=So(null);ul(n,(e=>{"edit"===e&&Ko((()=>{var e;null==(e=a.value)||e.focus()}))}));const o=()=>{requestAnimationFrame((()=>{n.value="preview"}))};return(e,t)=>(Pl(),Ml("div",eFe,[Ul("div",tFe,[t[5]||(t[5]=Ul("h3",{class:"font-bold"},"Description",-1)),"preview"===n.value?(Pl(),Nl(Ao(iz),{key:0,class:"text-c-2 hover:text-c-1 flex items-center gap-2",size:"sm",type:"button",variant:"outlined",onClick:t[0]||(t[0]=e=>n.value="edit")},{default:ci((()=>[Fl(Ao(p5),{icon:"Pencil",size:"sm",thickness:"1.5"}),t[4]||(t[4]=Ul("span",null,"Edit",-1))])),_:1,__:[4]})):Vl("",!0)]),Ul("div",rFe,[Ul("div",nFe,["preview"===n.value?(Pl(),Ml(Sl,{key:0},[e.modelValue&&e.modelValue.trim().length?(Pl(),Ml(Sl,{key:0},[e.modelValue?(Pl(),Nl(Ao(D5),{key:0,class:"h-full flex-1 rounded border border-transparent p-1.5 hover:border-(--scalar-background-3)",value:e.modelValue,withImages:"",onDblclick:t[1]||(t[1]=e=>n.value="edit")},null,8,["value"])):Vl("",!0),t[6]||(t[6]=Ul("div",{class:"brightness-lifted bg-b-1 absolute inset-0 -z-1 hidden rounded group-hover:block group-has-[:focus-visible]:hidden"},null,-1))],64)):(Pl(),Ml("div",aFe,[Fl(Ao(iz),{class:"hover:bg-b-2 hover:text-c-1 text-c-2 flex items-center gap-2",size:"sm",variant:"ghost",onClick:t[2]||(t[2]=e=>n.value="edit")},{default:ci((()=>[Fl(Ao(p5),{icon:"Pencil",size:"sm",thickness:"1.5"}),t[7]||(t[7]=Ul("span",null,"Write a description",-1))])),_:1,__:[7]})]))],64)):Vl("",!0),"edit"===n.value?(Pl(),Nl(Bme,{key:1,ref_key:"codeInputRef",ref:a,class:"h-full flex-1 border px-0.5 py-0",envVariables:e.envVariables,environment:e.environment,modelValue:e.modelValue,workspace:e.workspace,onBlur:o,"onUpdate:modelValue":t[3]||(t[3]=e=>r("update:modelValue",e))},null,8,["envVariables","environment","modelValue","workspace"])):Vl("",!0)])])]))}}),iFe=P8(oFe,[["__scopeId","data-v-5997a667"]]),sFe=Li({__name:"CollectionOverview",setup(e){const{activeCollection:t,activeEnvironment:r,activeEnvVariables:n,activeWorkspace:a}=rye(),{collectionMutators:o}=Hve(),i=e=>{t.value&&o.edit(t.value.uid,"info.description",e)};return(e,o)=>(Pl(),Nl(_Ee,null,{default:ci((()=>{var e,o;return[Ao(r)&&Ao(a)?(Pl(),Nl(iFe,{key:0,envVariables:Ao(n),environment:Ao(r),modelValue:(null==(o=null==(e=Ao(t))?void 0:e.info)?void 0:o.description)??"",workspace:Ao(a),"onUpdate:modelValue":i},null,8,["envVariables","environment","modelValue","workspace"])):Vl("",!0)]})),_:1}))}}),lFe=Object.freeze(Object.defineProperty({__proto__:null,default:sFe},Symbol.toStringTag,{value:"Module"})),cFe={key:0},uFe={class:"flex flex-1 flex-col gap-1.5"},dFe=["for"],pFe={class:"centered-y bg-b-2 flex-center absolute right-1 z-1 rounded px-1 py-0.5"},hFe=Li({__name:"Form",props:{title:{},options:{},data:{},onUpdate:{type:Function}},setup(e){const{activeEnvVariables:t,activeEnvironment:r,activeWorkspace:n}=rye(),a=ji();return(e,o)=>(Pl(),Nl(_Ee,{class:"last:rounded-b-lg"},hs({default:ci((()=>[Ul("div",uFe,[Object.keys(e.data).length>0&&Ao(n)?(Pl(),Nl(Hye,{key:0,columns:[""],class:"rounded-b-lg"},{default:ci((()=>[(Pl(!0),Ml(Sl,null,ps(e.options,((o,i)=>(Pl(),Nl(mye,{key:i,class:zn({"border-t":0===i})},{default:ci((()=>[Fl(Pye,{class:"pr-9",lineWrapping:"",id:Ao(a),envVariables:Ao(t),environment:Ao(r),modelValue:e.data[o.key]??"",placeholder:o.placeholder,workspace:Ao(n),"onUpdate:modelValue":t=>e.onUpdate(o.key,t)},hs({default:ci((()=>[Ul("label",{for:Ao(a)},Gn(o.label),9,dFe)])),_:2},["description"===o.key?{name:"icon",fn:ci((()=>[Ul("div",pFe,[Fl(Ao(p5),{icon:"Markdown",size:"lg"})])])),key:"0"}:void 0]),1032,["id","envVariables","environment","modelValue","placeholder","workspace","onUpdate:modelValue"])])),_:2},1032,["class"])))),128))])),_:1})):Vl("",!0)])])),_:2},[e.title||e.$slots.title?{name:"title",fn:ci((()=>[e.title?(Pl(),Ml("span",cFe,Gn(e.title),1)):fs(e.$slots,"title",{key:1})])),key:"0"}:void 0]),1024))}}),fFe=Li({__name:"CollectionServerForm",props:{collectionId:{default:""},serverUid:{default:""}},setup(e){const t=e,{activeWorkspaceCollections:r}=rye(),{servers:n,serverMutators:a}=Hve(),o=[{label:"URL",key:"url",placeholder:"https://void.scalar.com",type:"text"},{label:"Description",key:"description",placeholder:"Production",type:"text"}],i=hc((()=>{const e=r.value.find((e=>e.uid===t.collectionId));return n[e&&"string"==typeof t.serverUid&&"default"===t.serverUid?e.servers[0]??"":(null==e?void 0:e.servers.find((e=>e===t.serverUid)))??""]})),s=hc((()=>{var e,t;return null!=(e=i.value)&&e.url?(null==(t=i.value.url.match(GL.PATH))?void 0:t.map((e=>e.slice(1,-1))))??[]:[]}));ul(s,(e=>{if(!i.value)return;const t=i.value.variables?{...i.value.variables}:{};Object.keys(t).forEach((r=>{e.includes(r)||delete t[r]})),e.forEach((e=>{t[e]||(t[e]={default:""})})),a.edit(i.value.uid,"variables",t)}),{immediate:!0});const l=(e,t)=>{!r.value||!i.value||a.edit(i.value.uid,e,t)},c=(e,t)=>{if(!i.value)return;const r=i.value.variables||{};r[e]={...r[e],default:t},a.edit(i.value.uid,"variables",r)};return(e,t)=>{var r;return Pl(),Ml("div",{class:zn(["divide-0.5 flex w-full flex-col divide-y rounded-b-lg text-sm",(null==(r=i.value)?void 0:r.variables)&&"bg-b-1"])},[i.value?(Pl(),Ml(Sl,{key:0},[Fl(hFe,{data:i.value,onUpdate:l,options:o},null,8,["data"]),i.value.variables?(Pl(),Nl(ebe,{key:0,variables:i.value.variables,"onUpdate:variable":c},null,8,["variables"])):Vl("",!0)],64)):Vl("",!0)],2)}}}),mFe={class:"flex h-full w-full flex-col gap-12 px-1.5 pt-8"},gFe={class:"flex flex-col gap-4"},vFe={class:"rounded-lg border"},bFe={class:"bg-b-2 flex items-start justify-between rounded-t-lg py-1 pr-1 pl-3 text-sm"},yFe={key:1,class:"self-center"},OFe={class:"text-c-3 flex h-full items-center justify-center rounded-lg border p-4"},wFe=Li({__name:"CollectionServers",setup(e){const{activeCollection:t}=rye(),{servers:r,events:n,serverMutators:a}=Hve(),o=w8(),i=So(null),s=hc((()=>{var e;return r&&null!=(e=t.value)&&e.servers?Object.values(r).filter((e=>{var r;return null==(r=t.value)?void 0:r.servers.includes(e.uid)})):[]})),l=()=>n.commandPalette.emit({commandName:"Add Server"}),c=()=>{var e;null==(e=t.value)||!e.uid||!i.value||(a.delete(i.value,t.value.uid),o.hide())};return(e,n)=>{var a;return Pl(),Ml("div",mFe,[Ul("div",gFe,[n[2]||(n[2]=Hl('<div class="flex items-start justify-between gap-2"><div class="flex flex-col gap-2"><div class="flex h-8 items-center"><h3 class="font-bold">Servers</h3></div><p class="text-sm"> Add different base URLs for your API. You can use <code class="font-code text-c-2">{variables}</code> for dynamic parts. </p></div></div>',1)),(Pl(!0),Ml(Sl,null,ps(s.value,((e,r)=>(Pl(),Ml("div",{key:e.uid},[Ul("div",vFe,[Ul("div",bFe,[e.description?(Pl(),Nl(Ao(D5),{key:0,value:e.description,class:"self-center"},null,8,["value"])):(Pl(),Ml("span",yFe,"Server "+Gn(r+1),1)),Fl(Ao(iz),{class:"hover:bg-b-3 hover:text-c-1 h-fit p-1.25",variant:"ghost",onClick:t=>(e=>{i.value=e,o.show()})(e.uid)},{default:ci((()=>[Fl(Ao(UH),{class:"size-3.5"})])),_:2},1032,["onClick"])]),Ao(t)?(Pl(),Nl(fFe,{key:0,collectionId:Ao(t).uid,serverUid:e.uid},null,8,["collectionId","serverUid"])):Vl("",!0)])])))),128)),Ul("div",OFe,[Fl(Ao(iz),{class:"hover:bg-b-2 hover:text-c-1 flex items-center gap-2",size:"sm",variant:"ghost",onClick:l},{default:ci((()=>[Fl(Ao(p5),{class:"inline-flex",icon:"Add",size:"sm",thickness:"1.5"}),n[1]||(n[1]=Ul("span",null,"Add Server",-1))])),_:1,__:[1]})])]),Fl(Ao(k8),{size:"xxs",state:Ao(o),title:`Delete ${i.value?null==(a=Ao(r)[i.value])?void 0:a.url:"Server"}`},{default:ci((()=>[Fl(HLe,{variableName:"Server",warningMessage:"Are you sure you want to delete this server? This action cannot be undone.",onClose:n[0]||(n[0]=e=>Ao(o).hide()),onDelete:c})])),_:1},8,["state","title"])])}}}),xFe=Object.freeze(Object.defineProperty({__proto__:null,default:wFe},Symbol.toStringTag,{value:"Module"})),kFe=["onClick"],SFe=["placeholder"],_Fe=Li({__name:"EnvironmentColors",props:{activeColor:{},selector:{type:Boolean,default:!1}},emits:["select"],setup(e,{emit:t}){const r=e,n=t,a=So(""),o=So(null),i=So(!1),s=So(!1),l=[{color:"#FFFFFF"},{color:"#EF0006"},{color:"#EDBE20"},{color:"#069061"},{color:"#FB892C"},{color:"#0082D0"},{color:"#5203D1"},{color:"#FFC0CB"}],c=hc((()=>r.activeColor&&!l.some((e=>e.color===r.activeColor))||a.value?`background-color: ${r.activeColor||a.value};`:"background: linear-gradient(to right, rgb(235, 87, 87), rgb(242, 201, 76), rgb(76, 183, 130), rgb(78, 167, 252), rgb(250, 96, 122));")),u=()=>{i.value=!i.value,r.selector&&(s.value=!1),Ko((()=>{o.value&&o.value.focus()}))};ul(a,(e=>{e&&!e.startsWith("#")&&(a.value=`#${e}`),i.value=!0}));const d=()=>{r.selector&&(s.value=!s.value)},p=e=>{n("select",e),r.selector&&(s.value=!1)};return(e,t)=>(Pl(),Ml("div",null,[i.value?Vl("",!0):(Pl(),Ml(Sl,{key:0},[r.selector&&!s.value?(Pl(),Ml("div",{key:0,class:zn(["flex cursor-pointer items-center justify-center rounded-full",r.selector?"h-4 w-4":"h-5 w-5"]),style:jn({backgroundColor:e.activeColor}),onClick:d},[e.activeColor?(Pl(),Nl(Ao(p5),{key:0,class:zn(["text-c-btn",r.selector&&"p-0.5"]),icon:"Checkmark",size:"xs"},null,8,["class"])):Vl("",!0)],6)):Vl("",!0),s.value||!r.selector?(Pl(),Ml("div",{key:1,class:zn(["color-selector flex flex-row items-center justify-between gap-1.5 space-x-1",r.selector?"h-4":"min-h-10 min-w-[296px]"])},[(Pl(),Ml(Sl,null,ps(l,(t=>Ul("div",{key:t.color,class:zn(["flex cursor-pointer items-center justify-center rounded-full",r.selector?"h-4 w-4":"h-5 w-5"]),style:jn({backgroundColor:t.color}),onClick:e=>p(t.color)},[e.activeColor!==t.color||a.value?Vl("",!0):(Pl(),Nl(Ao(p5),{key:0,class:zn(["text-c-btn",r.selector&&"p-0.5"]),icon:"Checkmark",size:"xs"},null,8,["class"]))],14,kFe))),64)),t[2]||(t[2]=Ul("hr",{class:"border-ghost h-5 w-0.5 border-l"},null,-1)),Ul("label",{class:zn(["z-10 flex cursor-pointer flex-row items-center justify-center gap-2 rounded-full",r.selector?"h-4 w-4":"h-5 w-5"]),style:jn(c.value),onClick:u},[i.value||e.activeColor!==a.value&&(!e.activeColor||l.some((t=>t.color===e.activeColor)))?Vl("",!0):(Pl(),Nl(Ao(p5),{key:0,class:"text-c-btn",icon:"Checkmark",size:"xs"}))],6)],2)):Vl("",!0)],64)),i.value?(Pl(),Ml("div",{key:1,class:zn(["color-selector flex flex-1 items-center gap-2 rounded",r.selector?"h-4":"min-h-10"])},[Ul("span",{class:zn(["absolute rounded-full border border-dashed",r.selector?"h-4 w-4":"h-5 w-5"])},null,2),Ul("span",{class:zn(["z-[1] rounded-full",r.selector?"h-4 w-4":"h-5 w-5"]),style:jn(c.value)},null,6),ui(Ul("input",{ref_key:"customColorInputRef",ref:o,"onUpdate:modelValue":t[0]||(t[0]=e=>a.value=e),class:"w-full flex-1 border-transparent text-sm outline-none",placeholder:e.activeColor||"#000000",type:"text",onInput:t[1]||(t[1]=e=>p(a.value))},null,40,SFe),[[pu,a.value]]),Ul("button",{class:"text-c-3 hover:bg-b-2 rounded-lg p-1.5",type:"button",onClick:u},[Fl(Ao(p5),{icon:"Checkmark",size:"xs"})])],2)):Vl("",!0)]))}}),EFe={class:"flex flex-col gap-4"},TFe=Li({__name:"EnvironmentColorModal",props:{state:{},selectedColor:{}},emits:["cancel","submit"],setup(e,{emit:t}){const r=e,n=t,a=So(""),o=e=>{a.value=e},i=()=>{n("submit",a.value),a.value=""};return(e,t)=>(Pl(),Nl(Ao(k8),{size:"xxs",state:e.state,title:"Edit Environment Color"},{default:ci((()=>[Ul("div",EFe,[Fl(_Fe,{activeColor:a.value||r.selectedColor,class:"w-full p-1",onSelect:o},null,8,["activeColor"]),Fl(zLe,{onCancel:t[0]||(t[0]=e=>n("cancel")),onSubmit:i})])])),_:1},8,["state"]))}}),AFe={class:"flex gap-2"},CFe={class:"flex max-h-8 flex-1"},PFe=Li({__name:"CommandActionForm",props:{loading:{},disabled:{type:Boolean,default:!1}},emits:["submit","cancel","back"],setup(e){const{cx:t}=GQ();return(e,r)=>(Pl(),Ml("form",{class:"flex w-full flex-col gap-3",onKeydown:r[0]||(r[0]=Eu(Su((()=>{}),["stop"]),["enter"])),onSubmit:r[1]||(r[1]=Su((t=>e.$emit("submit")),["prevent","stop"]))},[Ul("div",qn(Ql(Ao(t)("relative flex min-h-20 flex-col rounded"))),[fs(e.$slots,"default")],16),Ul("div",AFe,[Ul("div",CFe,[fs(e.$slots,"options")]),Fl(Ao(iz),{class:"max-h-8 p-0 px-3 text-xs",disabled:e.disabled,loading:e.loading,type:"submit"},{default:ci((()=>[fs(e.$slots,"submit",{},(()=>[r[2]||(r[2]=ql("Continue"))]))])),_:3},8,["disabled","loading"])])],32))}}),DFe=["placeholder"],$Fe=Li({inheritAttrs:!1,__name:"CommandActionInput",props:{modelValue:{},placeholder:{},autofocus:{type:Boolean}},emits:["update:modelValue","onDelete"],setup(e,{emit:t}){const r=e,n=t,a=So(null);Yi((()=>Ko((()=>{var e;r.autofocus||null==(e=a.value)||e.focus()}))));const o=hc({get:()=>r.modelValue??"",set:e=>n("update:modelValue",e)});return(e,t)=>ui((Pl(),Ml("textarea",Gl({id:"command-action-input",ref_key:"input",ref:a,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),class:"min-h-8 w-full flex-1 resize-none border border-transparent py-1.5 pl-8.5 text-sm outline-none focus:border-b-1",placeholder:r.placeholder??"",wrap:"hard"},e.$attrs,{onKeydown:[t[1]||(t[1]=Eu((e=>function(e){""===o.value&&(e.preventDefault(),e.stopPropagation(),n("onDelete",e))}(e)),["delete"])),t[2]||(t[2]=Eu((e=>function(e){var t;if(e.shiftKey||!e.target)return;e.preventDefault();const r=e.target,n=new Event("submit",{cancelable:!0});null==(t=r.form)||t.dispatchEvent(n)}(e)),["enter"]))]}),null,16,DFe)),[[pu,o.value]])}}),RFe={class:"flex items-start gap-2"},MFe=Li({__name:"EnvironmentModal",props:{state:{},activeWorkspaceCollections:{},collectionId:{}},emits:["cancel","submit"],setup(e,{emit:t}){const r=e,n=t,{events:a}=Hve(),o=So(""),i=So("#FFFFFF"),s=hc((()=>[...r.activeWorkspaceCollections.filter((e=>{var t;return"Drafts"!==(null==(t=e.info)?void 0:t.title)})).map((e=>{var t;return{id:e.uid,label:(null==(t=e.info)?void 0:t.title)??"Untitled Collection"}}))])),l=So(s.value.find((e=>e.id===r.collectionId))),{toast:c}=qV(),u=e=>{i.value=e};ul((()=>r.state.open),(e=>{e&&(o.value="",i.value="#FFFFFF",r.collectionId?l.value=s.value.find((e=>e.id===r.collectionId)):l.value=void 0)}));const d=()=>{var e,t,r,a;o.value.trim()?null!=(e=l.value)&&e.id?n("submit",{name:o.value,color:i.value,type:"global"===(null==(t=l.value)?void 0:t.id)?"global":"collection",collectionId:"global"!==(null==(r=l.value)?void 0:r.id)?null==(a=l.value)?void 0:a.id:void 0}):c("Please select a collection before adding an environment.","error"):c("Please enter a name before adding an environment.","error")},p=()=>{r.state.hide(),a.commandPalette.emit({commandName:"Create Collection"})};return(e,t)=>(Pl(),Nl(Ao(k8),{bodyClass:"border-t-0 rounded-t-lg",size:"xs",state:e.state},{default:ci((()=>[Fl(PFe,{disabled:!l.value||!o.value.trim(),onCancel:t[2]||(t[2]=e=>n("cancel")),onSubmit:d},{options:ci((()=>[Fl(Ao(C5),{modelValue:l.value,"onUpdate:modelValue":t[1]||(t[1]=e=>l.value=e),options:s.value,placeholder:"Select Type"},{default:ci((()=>[s.value.length>0?(Pl(),Nl(Ao(iz),{key:0,class:"hover:bg-b-2 max-h-8 w-fit justify-between gap-1 p-2 text-xs",variant:"outlined"},{default:ci((()=>[Ul("span",{class:zn(l.value?"text-c-1":"text-c-3")},Gn(l.value?l.value.label:"Select Collection"),3),Fl(Ao(p5),{class:"text-c-3",icon:"ChevronDown",size:"xs"})])),_:1})):(Pl(),Nl(Ao(iz),{key:1,class:"hover:bg-b-2 max-h-8 justify-between gap-1 p-2 text-xs",variant:"outlined",onClick:p},{default:ci((()=>t[3]||(t[3]=[Ul("span",{class:"text-c-1"},"Create Collection",-1)]))),_:1,__:[3]}))])),_:1},8,["modelValue","options"])])),submit:ci((()=>t[4]||(t[4]=[ql(" Add Environment ")]))),default:ci((()=>[Ul("div",RFe,[Fl(_Fe,{activeColor:i.value,class:"peer",selector:"",onSelect:u},null,8,["activeColor"]),Fl($Fe,{modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),class:"-mt-[.5px] !p-0 peer-has-[.color-selector]:hidden",placeholder:"Environment name"},null,8,["modelValue"])])])),_:1},8,["disabled"])])),_:1},8,["state"]))}}),NFe=Li({__name:"EnvironmentForm",props:{collection:{},environment:{},workspace:{},envVariables:{}},setup(e){const{collectionMutators:t}=Hve(),r=So([]),n=So(new Set),a=So(new Map),o=So(!1),i=hc((()=>{var t;if(null==(t=e.environment)||!t.value)return[{key:"",value:""}];try{const t=JSON.parse(e.environment.value),r=Object.entries(t).map((([e,t])=>({key:e,value:String(t)})));return 0===r.length?[{key:"",value:""}]:r}catch{return[{key:"",value:""}]}})),s=hc((()=>{const e=r.value[r.value.length-1];return e?e.key||e.value?[...r.value,{key:"",value:""}]:r.value:[{key:"",value:""}]})),l=hc((()=>{const e=new Map;return r.value.forEach(((t,r)=>{if(t.key){const n=e.get(t.key)||[];n.push(r),e.set(t.key,n)}})),a.value.forEach(((t,r)=>{if(t){const n=e.get(t)||[];n.push(r),e.set(t,n)}})),Array.from(e.values()).filter((e=>e.length>1)).flat()}));ul(i,(e=>{r.value=[...e],n.value=new Set(e.map((e=>e.key)).filter(Boolean))}),{immediate:!0});const c=async(i,s,l)=>{var c;if(!o.value){if("key"===s){a.value.set(i,l);const e=new Set(n.value),t=r.value[i];if(t&&e.delete(t.key),e.has(l))return}o.value=!0;try{const o=[...r.value],d=o[i];if(!d)return;o[i]={key:"key"===s?l:d.key,value:"value"===s?l:d.value},!o[i].key&&!o[i].value&&i!==o.length-1&&o.splice(i,1);const p=o.reduce(((e,{key:t,value:r})=>((t||r)&&(e[t]=r),e)),{});if(e.collection){const r={...e.collection["x-scalar-environments"],[e.environment.name]:{...null==(c=e.collection["x-scalar-environments"])?void 0:c[e.environment.name],variables:p}};await t.edit(e.collection.uid,"x-scalar-environments",r)}if(i===r.value.length-1){const e=o[o.length-1];e&&(e.key||e.value)&&await u()}await Ko(),r.value=o,"key"===s&&(n.value=new Set(o.map((e=>e.key)).filter(Boolean)),a.value.delete(i))}finally{o.value=!1}}},u=async()=>{var n;if(!o.value){o.value=!0;try{const a=[...r.value,{key:"",value:""}],o=a.reduce(((e,{key:t,value:r})=>((t||r)&&(e[t]=r),e)),{});if(e.collection){const r={...e.collection["x-scalar-environments"],[e.environment.name]:{...null==(n=e.collection["x-scalar-environments"])?void 0:n[e.environment.name],variables:o}};await t.edit(e.collection.uid,"x-scalar-environments",r)}await Ko(),r.value=a}finally{o.value=!1}}},d=async()=>{if(0===r.value.length)await u();else if(r.value.length>=1){const e=r.value[r.value.length-1];e&&(e.key||e.value)&&await u()}};return Yi((()=>{d()})),ul((()=>r.value),(()=>{d()})),(n,a)=>(Pl(),Nl(Hye,{class:"group/table flex-1",columns:["",""]},{default:ci((()=>[Fl(mye,{class:"sr-only !block"},{default:ci((()=>[Fl(AEe,null,{default:ci((()=>a[0]||(a[0]=[ql("Key")]))),_:1,__:[0]}),Fl(AEe,null,{default:ci((()=>a[1]||(a[1]=[ql("Value")]))),_:1,__:[1]})])),_:1}),(Pl(!0),Ml(Sl,null,ps(s.value,((a,i)=>(Pl(),Nl(mye,{key:i,class:zn({error:l.value.includes(i)})},{default:ci((()=>[Fl(hye,null,{default:ci((()=>[Fl(Bme,{disableCloseBrackets:"",disableEnter:"",disableTabIndent:"",lineWrapping:"",environment:n.environment,envVariables:n.envVariables,modelValue:a.key,placeholder:"Key",workspace:n.workspace,"onUpdate:modelValue":e=>c(i,"key",e)},hs({_:2},[l.value.includes(i)?{name:"icon",fn:ci((()=>[Fl(Ao(ZH),{class:"text-red mr-0.75 size-3.5 brightness-[.9]"})])),key:"0"}:void 0]),1032,["environment","envVariables","modelValue","workspace","onUpdate:modelValue"])])),_:2},1024),Fl(hye,null,{default:ci((()=>[Fl(Bme,{class:"pr-6 group-hover:pr-10 group-has-[.cm-focused]:pr-10",disableCloseBrackets:"",disableEnter:"",disableTabIndent:"",lineWrapping:"",environment:n.environment,envVariables:n.envVariables,modelValue:a.value,placeholder:"Value",workspace:n.workspace,"onUpdate:modelValue":e=>c(i,"value",e)},{icon:ci((()=>[a.key||a.value?(Pl(),Nl(Ao(iz),{key:0,class:"text-c-2 hover:text-c-1 hover:bg-b-2 z-context hidden h-fit rounded p-1 group-hover:flex group-has-[.cm-focused]:flex",size:"sm",variant:"ghost",onClick:Su((n=>(async n=>{var a;if(!o.value){o.value=!0;try{const o=[...r.value];o.splice(n,1);const i=o.reduce(((e,{key:t,value:r})=>((t||r)&&(e[t]=r),e)),{});if(e.collection){const r={...e.collection["x-scalar-environments"],[e.environment.name]:{...null==(a=e.collection["x-scalar-environments"])?void 0:a[e.environment.name],variables:i}};await t.edit(e.collection.uid,"x-scalar-environments",r)}await Ko(),r.value=o}finally{o.value=!1}}})(i)),["stop"])},{default:ci((()=>[Fl(Ao(UH),{class:"size-3.5"})])),_:2},1032,["onClick"])):Vl("",!0)])),_:2},1032,["environment","envVariables","modelValue","workspace","onUpdate:modelValue"])])),_:2},1024)])),_:2},1032,["class"])))),128))])),_:1}))}}),IFe=P8(NFe,[["__scopeId","data-v-2debec7e"]]),LFe={class:"flex h-full w-full flex-col gap-12 px-1.5 pt-8"},jFe={class:"flex flex-col gap-4"},BFe={class:"rounded-lg border"},UFe={class:"bg-b-2 flex cursor-grab items-center justify-between rounded-t-lg px-1 py-1 text-sm"},FFe={class:"flex items-center"},QFe=["onClick"],zFe={class:"text-c-3 flex h-full items-center justify-center rounded-lg border p-4"},qFe=Li({__name:"CollectionEnvironment",setup(e){const{activeCollection:t,activeWorkspace:r,activeEnvVariables:n}=rye(),{collectionMutators:a}=Hve(),o=w8(),i=w8(),s=w8(),l=w8(),c=So(""),u=So(null),d=So(void 0),p=hc((()=>{var e;return null!=(e=t.value)&&e["x-scalar-environments"]?Object.entries(t.value["x-scalar-environments"]).map((([e,t])=>({uid:e,name:e,value:JSON.stringify(t.variables||{}),color:t.color||"#FFFFFF"}))):[]})),h=()=>{var e;null==(e=t.value)||!e.uid||!u.value||(a.removeEnvironment(u.value,t.value.uid),i.hide())},f=e=>{var r;null!=(r=t.value)&&r.uid&&(a.addEnvironment(e.name,{variables:{},color:e.color},t.value.uid),s.hide())},m=e=>{var r,n,i;if(null==(r=t.value)||!r.uid||!u.value)return;const s={...t.value["x-scalar-environments"],[u.value]:{variables:(null==(i=null==(n=t.value["x-scalar-environments"])?void 0:n[u.value])?void 0:i.variables)||{},color:e}};a.edit(t.value.uid,"x-scalar-environments",s),o.hide()},g=()=>{u.value=null,d.value=void 0,l.hide()},v=e=>{var r;if(null==(r=t.value)||!r.uid||!u.value)return;const n={...t.value["x-scalar-environments"]};if(!n[u.value])return;const o={},i=Object.entries(n),s=i.findIndex((([e])=>e===u.value));i.forEach((([t,r],n)=>{n===s?o[e]=r:o[t]=r})),a.edit(t.value.uid,"x-scalar-environments",o),u.value=null,d.value=void 0,l.hide()},b=(e,r)=>{var n;if(null==(n=t.value)||!n.uid)return;const o={...t.value["x-scalar-environments"]},i={},s=Object.entries(o),l=s.findIndex((([t])=>t===e.id)),c=s.findIndex((([e])=>e===r.id));if(-1===l||-1===c)return;const u=s[l];u&&(s.splice(l,1),s.splice(c,0,u),s.forEach((([e,t])=>{i[e]=t})),a.edit(t.value.uid,"x-scalar-environments",i))};return(e,a)=>(Pl(),Nl(_Ee,null,{default:ci((()=>{var e;return[Ul("div",LFe,[Ul("div",jFe,[a[5]||(a[5]=Ul("div",{class:"flex items-start justify-between gap-2"},[Ul("div",{class:"flex flex-col gap-2"},[Ul("div",{class:"flex h-8 items-center"},[Ul("h3",{class:"font-bold"},"Environment Variables")]),Ul("p",{class:"text-sm"},[ql(" Set environment variables at your collection level. Use "),Ul("code",{class:"font-code text-c-2"},"{{ variable }}"),ql(" to add / search among the selected environment's variables in your request inputs. ")])])],-1)),(Pl(!0),Ml(Sl,null,ps(p.value,(e=>(Pl(),Nl(Ao(oje),{key:e.name,id:e.name,isDraggable:!0,isDroppable:!0,parentIds:[],onOnDragEnd:b},{default:ci((()=>[Ul("div",BFe,[Ul("div",UFe,[Ul("div",FFe,[Fl(Ao(iz),{class:"hover:bg-b-3 flex h-6 w-6 p-1",onClick:t=>(e=>{u.value=e.name,c.value=e.color||"#FFFFFF",o.show()})(e),variant:"ghost"},{default:ci((()=>[Ul("span",{style:jn({backgroundColor:e.color||"#FFFFFF"}),class:"h-2.5 w-2.5 rounded-full"},null,4)])),_:2},1032,["onClick"]),Ul("button",{class:"hover:bg-b-3 rounded px-1 py-0.5 text-sm",onClick:t=>(e=>{u.value=e,d.value=e,l.show()})(e.name)},Gn(e.name),9,QFe)]),Fl(Ao(iz),{class:"hover:bg-b-3 hover:text-c-1 h-fit p-1.25",variant:"ghost",onClick:t=>(e=>{u.value=e,i.show()})(e.name)},{default:ci((()=>[Fl(Ao(UH),{class:"size-3.5"})])),_:2},1032,["onClick"])]),Ao(t)&&Ao(r)?(Pl(),Nl(IFe,{key:0,collection:Ao(t),environment:e,envVariables:Ao(n),workspace:Ao(r)},null,8,["collection","environment","envVariables","workspace"])):Vl("",!0)])])),_:2},1032,["id"])))),128)),Ul("div",zFe,[Fl(Ao(iz),{class:"hover:bg-b-2 hover:text-c-1 flex items-center gap-2",size:"sm",variant:"ghost",onClick:a[0]||(a[0]=e=>Ao(s).show())},{default:ci((()=>[Fl(Ao(p5),{class:"inline-flex",icon:"Add",size:"sm",thickness:"1.5"}),a[4]||(a[4]=Ul("span",null,"Add Environment",-1))])),_:1,__:[4]})])]),Fl(Ao(k8),{size:"xxs",state:Ao(i),title:`Delete ${u.value||"Environment"}`},{default:ci((()=>[Fl(HLe,{variableName:"Environment",warningMessage:"Are you sure you want to delete this environment? This action cannot be undone.",onClose:a[1]||(a[1]=e=>Ao(i).hide()),onDelete:h})])),_:1},8,["state","title"]),Fl(MFe,{activeWorkspaceCollections:Ao(t)?[Ao(t)]:[],collectionId:null==(e=Ao(t))?void 0:e.uid,state:Ao(s),onCancel:a[2]||(a[2]=e=>Ao(s).hide()),onSubmit:f},null,8,["activeWorkspaceCollections","collectionId","state"]),Fl(TFe,{selectedColor:c.value,state:Ao(o),onCancel:a[3]||(a[3]=e=>Ao(o).hide()),onSubmit:m},null,8,["selectedColor","state"]),Fl(Ao(k8),{size:"xxs",state:Ao(l),title:`Edit ${u.value}`},{default:ci((()=>[Fl(KLe,{name:d.value??"",onClose:g,onEdit:v},null,8,["name"])])),_:1},8,["state","title"])])]})),_:1}))}}),HFe=Object.freeze(Object.defineProperty({__proto__:null,default:qFe},Symbol.toStringTag,{value:"Module"})),VFe={class:"flex h-full w-full flex-col gap-12 px-1.5 pt-8"},ZFe={class:"flex flex-col gap-4"},WFe={class:"flex flex-col gap-2"},XFe={class:"flex h-8 items-center justify-between"},GFe=Li({__name:"CollectionAuthentication",setup(e){const{activeCollection:t,activeEnvVariables:r,activeEnvironment:n,activeServer:a,activeWorkspace:o}=rye(),{collectionMutators:i}=Hve(),s=()=>{var e;null!=(e=t.value)&&e.uid&&i.edit(t.value.uid,"useCollectionSecurity",!t.value.useCollectionSecurity)};return(e,i)=>{var l,c,u;return Pl(),Ml("div",VFe,[Ul("div",ZFe,[Ul("div",WFe,[Ul("div",XFe,[i[0]||(i[0]=Ul("h3",{class:"font-bold"},"Authentication",-1)),Fl(Ao(m8),{class:"w-4",modelValue:(null==(l=Ao(t))?void 0:l.useCollectionSecurity)??!1,"onUpdate:modelValue":s},null,8,["modelValue"])]),i[1]||(i[1]=Ul("p",{class:"pr-6 text-sm"}," Added authentication will apply to all requests under this collection. You can override this by specifying another one in the request. ",-1))]),Ao(t)&&Ao(o)?(Pl(),Nl(Ao(pOe),{key:0,class:zn(["scalar-collection-auth",!(null!=(c=Ao(t))&&c.useCollectionSecurity)&&"pointer-events-none opacity-50 mix-blend-luminosity"]),collection:Ao(t),envVariables:Ao(r),environment:Ao(n),layout:"client",selectedSecuritySchemeUids:(null==(u=Ao(t))?void 0:u.selectedSecuritySchemeUids)??[],server:Ao(a),title:"Authentication",workspace:Ao(o)},null,8,["class","collection","envVariables","environment","selectedSecuritySchemeUids","server","workspace"])):Vl("",!0)])])}}}),YFe=P8(GFe,[["__scopeId","data-v-cc87292e"]]),KFe=Object.freeze(Object.defineProperty({__proto__:null,default:YFe},Symbol.toStringTag,{value:"Module"})),JFe=Li({__name:"CollectionCookies",setup:e=>(e,t)=>(Pl(),Nl(_Ee,null,{title:ci((()=>t[0]||(t[0]=[ql("Cookies")]))),_:1}))}),eQe=Object.freeze(Object.defineProperty({__proto__:null,default:JFe},Symbol.toStringTag,{value:"Module"})),tQe=Li({__name:"CollectionScripts",setup:e=>(e,t)=>(Pl(),Nl(_Ee,null,{title:ci((()=>t[0]||(t[0]=[ql("Scripts")]))),_:1}))}),rQe=Object.freeze(Object.defineProperty({__proto__:null,default:tQe},Symbol.toStringTag,{value:"Module"})),nQe=Li({__name:"CollectionSync",setup:e=>(e,t)=>(Pl(),Nl(_Ee,null,{title:ci((()=>t[0]||(t[0]=[ql("Sync")]))),_:1}))}),aQe=Object.freeze(Object.defineProperty({__proto__:null,default:nQe},Symbol.toStringTag,{value:"Module"})),oQe={class:"flex h-full w-full flex-col gap-12 px-1.5 pt-8"},iQe={class:"flex flex-col gap-2"},sQe={class:"bg-b-2 rounded-lg border text-sm"},lQe={class:"bg-b-1 flex items-center justify-between gap-4 rounded-t-lg p-3"},cQe={class:"text-c-1 flex items-center overflow-x-auto border-t py-1.5 whitespace-nowrap"},uQe={class:"flex items-center"},dQe=["href"],pQe={class:"flex flex-col gap-4"},hQe={class:"flex items-center justify-between rounded-lg border p-3 text-sm"},fQe=Li({__name:"CollectionSettings",setup(e){const{activeCollection:t,activeWorkspace:r,activeWorkspaceCollections:n}=rye(),{collectionMutators:a}=Hve(),{replace:o}=cme(),i=w8();function s(){var e,r;t.value&&null!=(e=t.value)&&e.documentUrl&&a.edit(t.value.uid,"watchMode",!(null!=(r=t.value)&&r.watchMode))}function l(){if(!t.value||!r.value)return;a.delete(t.value,r.value);const e=n.value[0];e&&o({name:"collection",params:{[Ybe.Workspace]:r.value.uid,[Ybe.Collection]:e.uid}}),i.hide()}return(e,r)=>{var n,a,o,c,u;return Pl(),Ml(Sl,null,[Ul("div",oQe,[Ul("div",iQe,[r[5]||(r[5]=Ul("div",{class:"flex h-8 items-center"},[Ul("h3",{class:"font-bold"},"Features")],-1)),Ul("div",sQe,[Ul("div",lQe,[r[2]||(r[2]=Ul("div",null,[Ul("h4",null,"Watch Mode"),Ul("p",{class:"text-c-2 mt-1"}," When enabled, the OpenAPI document will be polled for changes. The collection will be updated automatically. ")],-1)),Fl(Ao(m8),{class:"w-4",disabled:!(null!=(n=Ao(t))&&n.documentUrl),modelValue:(null==(a=Ao(t))?void 0:a.watchMode)??!1,"onUpdate:modelValue":s},null,8,["disabled","modelValue"])]),Ul("div",cQe,[Ul("div",uQe,[null!=(o=Ao(t))&&o.documentUrl?(Pl(),Ml(Sl,{key:0},[r[3]||(r[3]=Ul("span",{class:"bg-b-2 sticky left-0 pr-2 pl-3"},"Source",-1)),Ul("a",{class:"text-c-2 group rounded pr-3 no-underline hover:underline",href:Ao(t).documentUrl,target:"_blank"},[ql(Gn(Ao(t).documentUrl)+" ",1),Fl(Ao(p5),{class:"ml-1 hidden w-2.5 group-hover:inline",icon:"ExternalLink"})],8,dQe)],64)):(Pl(),Ml(Sl,{key:1},[Fl(Ao(p5),{class:"text-c-2 mr-2 ml-3 w-4",icon:"NotAllowed",size:"sm"}),r[4]||(r[4]=Ul("span",{class:"text-c-2 pr-3"}," No URL configured. Try importing an OpenAPI document from an URL. ",-1))],64))])])])]),Ul("div",pQe,[r[8]||(r[8]=Ul("h3",{class:"font-bold"},"Danger Zone",-1)),Ul("div",hQe,[r[7]||(r[7]=Ul("div",null,[Ul("h4",null,"Delete Collection"),Ul("p",{class:"text-c-2 mt-1"}," Be careful, my friend. Once deleted, there is no way to recover the collection. ")],-1)),Fl(Ao(iz),{class:"custom-scroll h-8 gap-1.5 px-2.5 font-medium whitespace-nowrap shadow-none focus:outline-none",variant:"danger",onClick:r[0]||(r[0]=e=>Ao(i).show())},{default:ci((()=>r[6]||(r[6]=[ql(" Delete Collection ")]))),_:1,__:[6]})])])]),Fl(Ao(k8),{size:"xxs",state:Ao(i),title:`Delete ${null==(u=null==(c=Ao(t))?void 0:c.info)?void 0:u.title}`},{default:ci((()=>{var e,n;return[Fl(HLe,{variableName:(null==(n=null==(e=Ao(t))?void 0:e.info)?void 0:n.title)??"",warningMessage:"This action cannot be undone.",onClose:r[1]||(r[1]=e=>Ao(i).hide()),onDelete:l},null,8,["variableName"])]})),_:1},8,["state","title"])],64)}}}),mQe=P8(fQe,[["__scopeId","data-v-5170f3be"]]),gQe=Object.freeze(Object.defineProperty({__proto__:null,default:mQe},Symbol.toStringTag,{value:"Module"})),vQe={class:"gap-1/2 flex flex-col px-3 pb-[75px]"},bQe=P8({},[["render",function(e,t){return Pl(),Ml("ul",vQe,[fs(e.$slots,"default")])}]]),yQe={class:"absolute right-1 flex opacity-0 group-hover:opacity-100"},OQe=Li({__name:"SidebarListElementActions",props:{variable:{},warningMessage:{},isCopyable:{type:Boolean},isDeletable:{type:Boolean},isRenameable:{type:Boolean}},emits:["delete","rename"],setup(e,{emit:t}){const r=t,n=So({action:"None",name:""}),a=w8(),{copyToClipboard:o}=VV();function i(){a.hide(),n.value={action:"None",name:""}}return(t,s)=>(Pl(),Ml(Sl,null,[Ul("div",yQe,[t.isCopyable?(Pl(),Ml("button",{key:0,class:"text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",type:"button",onClick:s[0]||(s[0]=e=>Ao(o)(t.variable.name))},[Fl(Ao(p5),{class:"h-3 w-3",icon:"Clipboard"})])):Vl("",!0),t.isRenameable?(Pl(),Ml("button",{key:1,class:"text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",type:"button",onClick:s[1]||(s[1]=e=>r("rename",t.variable.uid))},[Fl(Ao(p5),{class:"h-3 w-3",icon:"Edit"})])):Vl("",!0),!t.variable.isDefault&&t.isDeletable?(Pl(),Ml("button",{key:2,class:"text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-1",type:"button",onClick:s[2]||(s[2]=Su((t=>(n.value={action:"Delete",name:e.variable.name},void a.show())),["prevent"]))},[Fl(Ao(p5),{class:"h-3.5 w-3.5",icon:"Close"})])):Vl("",!0)]),Fl(Ao(k8),{size:"sm",state:Ao(a),title:`${n.value.action} ${n.value.name}`},{default:ci((()=>["Delete"===n.value.action?(Pl(),Nl(HLe,{key:0,variableName:n.value.name,warningMessage:t.warningMessage,onClose:i,onDelete:s[3]||(s[3]=e=>function(e){r("delete",e),i()}(t.variable.uid))},null,8,["variableName","warningMessage"])):Vl("",!0)])),_:1},8,["state","title"])],64))}}),wQe={class:"empty-variable-name line-clamp-1 text-sm break-all group-hover:pr-5"},xQe=Li({__name:"SidebarListElement",props:{variable:{},warningMessage:{},to:{},isDeletable:{type:Boolean},isCopyable:{type:Boolean},isRenameable:{type:Boolean},isDraggable:{type:Boolean,default:!1},isDroppable:{type:[Boolean,Function],default:!1},collectionId:{}},emits:["delete","colorModal","rename","onDragEnd"],setup(e,{emit:t}){const r=t,n=cme(),a=e=>{r("delete",e)},o=e=>{r("rename",e)},i=So(null),s=hc((()=>({ceiling:.5,floor:.5})));return(t,l)=>{const c=ss("router-link");return Pl(),Ml("li",null,[Fl(Ao(oje),{id:t.variable.uid,ref_key:"draggableRef",ref:i,ceiling:s.value.ceiling,floor:s.value.floor,isDraggable:t.isDraggable,isDroppable:t.isDroppable,parentIds:t.collectionId?[t.collectionId]:[],onOnDragEnd:l[2]||(l[2]=(...e)=>t.$emit("onDragEnd",...e))},{default:ci((()=>[Fl(c,{class:zn(["text-c-2 hover:bg-b-2 group relative flex h-8 items-center gap-1.5 rounded py-1 pr-1.5 font-medium no-underline",[t.variable.color?"pl-5":"pl-1.5"]]),exactActiveClass:"bg-b-2 !text-c-1",role:"button",to:t.to,onClick:l[1]||(l[1]=Su((t=>(t=>{t.metaKey?window.open(n.resolve(e.to).href,"_blank"):n.push(e.to)})(t)),["prevent"]))},{default:ci((()=>[t.variable.color?(Pl(),Ml("button",{key:0,class:"hover:bg-b-3 rounded p-1.5",type:"button",onClick:l[0]||(l[0]=e=>(e=>{r("colorModal",e)})(t.variable.uid))},[Ul("div",{class:"h-2.5 w-2.5 rounded-xl",style:jn({backgroundColor:t.variable.color})},null,4)])):Vl("",!0),t.variable.icon?(Pl(),Nl(Ao(p5),{key:1,class:"text-sidebar-c-2 size-3.5 stroke-[2.25]",icon:t.variable.icon},null,8,["icon"])):Vl("",!0),Ul("span",wQe,Gn(t.variable.name),1),Fl(OQe,{isCopyable:!!t.isCopyable,isDeletable:!!t.isDeletable,isRenameable:!!t.isRenameable,variable:{...t.variable,isDefault:t.variable.isDefault??!1},warningMessage:t.warningMessage,onDelete:a,onRename:o},null,8,["isCopyable","isDeletable","isRenameable","variable","warningMessage"])])),_:1},8,["class","to"])])),_:1},8,["id","ceiling","floor","isDraggable","isDroppable","parentIds"])])}}}),kQe=P8(xQe,[["__scopeId","data-v-0b6c70e4"]]),SQe={class:"flex-1"},_Qe=["onClick"],EQe={class:"flex h-5 max-w-[14px] items-center justify-center"},TQe=(Li({__name:"Environment",setup(e){const t=cme(),r=ume(),{activeWorkspace:n,activeEnvironment:a,activeWorkspaceCollections:o,activeEnvVariables:i}=rye(),{events:s,workspaceMutators:l,collectionMutators:c}=Hve(),{collapsedSidebarFolders:u,toggleSidebarFolder:d}=kbe(),p=w8(),h=w8(),f=w8(),m=So(null),g=So("default"),v=So(""),b=So(void 0),y=So(void 0),O=So(void 0),{toast:w}=qV();function x(e,t,r){var n;e&&(t.uid===r?w(`Environment name already used in ${null==(n=t.info)?void 0:n.title}`,"error"):w("Environment name already used in another collection","error"))}const k=hc((()=>o.value.filter((e=>{var t;return"Drafts"!==(null==(t=e.info)?void 0:t.title)}))));function S(e){k.value.some((t=>{const r=Object.keys(t["x-scalar-environments"]||{}).includes(e.name);return x(r,t,e.collectionId),r}))||(e.collectionId&&(c.addEnvironment(e.name,{variables:{},color:e.color},e.collectionId),u[e.collectionId]||d(e.collectionId),t.push({name:"environment.collection",params:{[Ybe.Collection]:e.collectionId,[Ybe.Environment]:e.name}})),h.hide())}function _(e){var t,r;if(!a)return;const i=(e=>JSON.parse(e))(e);if("default"===g.value)l.edit(null==(t=n.value)?void 0:t.uid,"environments",i);else{const e=o.value.find((e=>{var t;return null==(t=e["x-scalar-environments"])?void 0:t[g.value??""]}));if(null!=(r=null==e?void 0:e["x-scalar-environments"])&&r[g.value??""]){const t=e["x-scalar-environments"][g.value??""];t&&(t.variables=i,c.edit(e.uid,"x-scalar-environments",e["x-scalar-environments"]))}}}const E=e=>{b.value=e,h.show()},T=e=>{const t=m.value;"string"==typeof t&&(o.value.some((e=>{var r;return null==(r=e["x-scalar-environments"])?void 0:r[t]}))&&o.value.forEach((r=>{var n;null!=(n=r["x-scalar-environments"])&&n[t]&&(r["x-scalar-environments"][t].color=e,c.edit(r.uid,"x-scalar-environments",r["x-scalar-environments"]))})),p.hide())},A=()=>{var e,t,r,a;return"default"===g.value?JSON.stringify(null==(e=n.value)?void 0:e.environments,null,2):JSON.stringify(null==(a=null==(r=null==(t=o.value.find((e=>{var t;return null==(t=e["x-scalar-environments"])?void 0:t[g.value??""]})))?void 0:t["x-scalar-environments"])?void 0:r[g.value??""])?void 0:a.variables,null,2)},C=e=>u[e],P=e=>{null!=e&&e.createNew&&"environment"===r.name&&E()};function D(){y.value=void 0,b.value=void 0,O.value=void 0,f.hide()}function $(e){k.value.some((t=>{const r=Object.keys(t["x-scalar-environments"]||{}).includes(e);return x(r,t,b.value),r}))||(e&&"default"!==y.value&&o.value.forEach((t=>{var r;if(null!=(r=t["x-scalar-environments"])&&r[y.value??""]){const r=t["x-scalar-environments"],n={};Object.keys(r).forEach((t=>{const a=r[t];a&&(t===y.value?n[e]=a:n[t]=a)})),t["x-scalar-environments"]=n,c.edit(t.uid,"x-scalar-environments",t["x-scalar-environments"])}})),e&&g.value===y.value&&(g.value=e),y.value=void 0,b.value=void 0,O.value=void 0,f.hide())}ul((()=>[r.params[Ybe.Collection],r.params[Ybe.Environment]]),(([e,t])=>{g.value=e?t:"default"})),Yi((()=>{g.value=r.params[Ybe.Environment]||"default",s.hotKeys.on(P);const e=r.params[Ybe.Collection];e&&!u[e]&&d(e)})),es((()=>s.hotKeys.off(P)));const{handleDragEnd:R,isDroppable:M}=function(e,t){return{handleDragEnd:(r,n)=>{if(!r||!n)return;const{id:a,parentId:o}=r,{id:i,parentId:s,offset:l}=n;if(o!==s)return;const c=e.value.find((e=>e.uid===o));if(!c||!c["x-scalar-environments"])return;const u=c["x-scalar-environments"],d=Object.keys(u),p=d.findIndex((e=>e===a));d.splice(p,1);const h=d.findIndex((e=>e===i))+(1===l?1:0);d.splice(h,0,a);const f=d.reduce(((e,t)=>{const r=u[t];return r&&(e[t]=r),e}),{});c["x-scalar-environments"]=f,t.edit(c.uid,"x-scalar-environments",c["x-scalar-environments"])},isDroppable:(e,t)=>e.parentId===t.parentId}}(o,c);return ul((()=>r.query.openEnvironmentModal),(e=>{"true"===e&&E()}),{immediate:!0}),(e,r)=>(Pl(),Nl(tBe,null,{default:ci((()=>[Fl(Abe,{title:"Collections"},{content:ci((()=>[Ul("div",SQe,[Fl(bQe,null,{default:ci((()=>[(Pl(),Nl(kQe,{key:"default",class:"text-xs",isCopyable:!1,to:{name:"environment",params:{[Ao(Ybe).Environment]:"default"}},type:"environment",variable:{name:"Global Environment",uid:"default",icon:"Globe",isDefault:!0}},null,8,["to"])),(Pl(!0),Ml(Sl,null,ps(k.value,(e=>{var a;return Pl(),Ml("li",{key:e.uid,class:"gap-1/2 flex flex-col"},[Ul("button",{class:"hover:bg-b-2 group flex w-full items-center gap-1.5 rounded p-1.5 text-left text-sm font-medium break-words",type:"button",onClick:t=>Ao(d)(e.uid)},[Ul("span",EQe,[Fl(Ao(DLe),{class:"text-sidebar-c-2 size-3.5 min-w-3.5 stroke-2 group-hover:hidden",src:e["x-scalar-icon"]||"interface-content-folder"},null,8,["src"]),Ul("div",{class:zn({"rotate-90":Ao(u)[e.uid]})},[Fl(Ao(p5),{class:"text-c-3 hover:text-c-1 hidden text-sm group-hover:block",icon:"ChevronRight",size:"md"})],2)]),ql(" "+Gn((null==(a=e.info)?void 0:a.title)??""),1)],8,_Qe),ui(Ul("div",{class:zn({"before:bg-border relative mb-[.5px] before:pointer-events-none before:absolute before:top-0 before:left-3 before:z-1 before:h-[calc(100%_+_.5px)] before:w-[.5px] last:mb-0 last:before:h-full":Object.keys(e["x-scalar-environments"]||{}).length>0})},[(Pl(!0),Ml(Sl,null,ps(e["x-scalar-environments"],((r,a)=>(Pl(),Nl(kQe,{key:a,class:"text-xs",collectionId:e.uid,isCopyable:!1,isDeletable:!0,isRenameable:!0,isDraggable:!0,isDroppable:Ao(M),to:{name:"environment.collection",params:{[Ao(Ybe).Collection]:e.uid,[Ao(Ybe).Environment]:a}},type:"environment",variable:{name:a,uid:a,color:r.color??"#FFFFFF",isDefault:!1},warningMessage:"Are you sure you want to delete this environment?",onClick:Su((r=>((e,r,a)=>{var o,i;const s=a?{name:"environment.collection",params:{[Ybe.Workspace]:null==(o=n.value)?void 0:o.uid,[Ybe.Collection]:a,[Ybe.Environment]:r}}:{name:"environment.default",params:{[Ybe.Workspace]:null==(i=n.value)?void 0:i.uid,[Ybe.Environment]:r}};e.metaKey?window.open(t.resolve(s).href,"_blank"):t.push(s)})(r,a,e.uid)),["prevent"]),onColorModal:e=>(e=>{var t,r,n;m.value=e,v.value=(null==(n=null==(r=null==(t=o.value.find((t=>{var r;return null==(r=t["x-scalar-environments"])?void 0:r[e]})))?void 0:t["x-scalar-environments"])?void 0:r[e])?void 0:n.color)??"",p.show()})(a),onDelete:e=>function(e){var r;k.value.forEach((t=>{c.removeEnvironment(e,t.uid)}));const a=k.value.flatMap((e=>Object.keys(e["x-scalar-environments"]||{})));if(a.length>0){const e=a[a.length-1];if(!e)return;const r=o.value.find((t=>Object.keys(t["x-scalar-environments"]||{}).includes(e)));g.value=e,t.push({name:"environment.collection",params:{[Ybe.Collection]:null==r?void 0:r.uid,[Ybe.Environment]:e}}),r&&!u[r.uid]&&d(r.uid)}else g.value="default",t.push({name:"environment.default",params:{[Ybe.Workspace]:null==(r=n.value)?void 0:r.uid}})}(a),onRename:t=>((e,t)=>{y.value=e,b.value=t,O.value=e,f.show()})(a,e.uid),onOnDragEnd:Ao(R)},null,8,["collectionId","isDroppable","to","variable","onClick","onColorModal","onDelete","onRename","onOnDragEnd"])))),128)),0===Object.keys(e["x-scalar-environments"]||{}).length?(Pl(),Nl(Ao(iz),{key:0,class:"text-c-1 hover:bg-b-2 flex h-8 w-full justify-start gap-1.5 py-0 pl-6 text-xs",variant:"ghost",onClick:t=>E(e.uid)},{default:ci((()=>[Fl(Ao(p5),{icon:"Add",size:"sm"}),r[2]||(r[2]=Ul("span",null,"Add Environment",-1))])),_:2,__:[2]},1032,["onClick"])):Vl("",!0)],2),[[Fc,C(e.uid)]])])})),128))])),_:1})])])),button:ci((()=>[Fl(ULe,{click:E,hotkey:"N"},{title:ci((()=>r[3]||(r[3]=[ql(" Add Environment ")]))),_:1})])),_:1}),Fl(nBe,{class:"flex-1"},{default:ci((()=>[Fl(_Ee,null,hs({default:ci((()=>[g.value&&Ao(n)?(Pl(),Nl(Bme,{key:0,class:"py-2 pr-2 pl-px md:px-4",envVariables:Ao(i),environment:Ao(a),isCopyable:"",language:"json",lineNumbers:"",lint:"",modelValue:A(),workspace:Ao(n),"onUpdate:modelValue":_},null,8,["envVariables","environment","modelValue","workspace"])):Vl("",!0)])),_:2},[g.value?{name:"title",fn:ci((()=>[Ul("span",null,Gn("default"===g.value?"Global Environment":g.value),1)])),key:"0"}:void 0]),1024)])),_:1}),Fl(TFe,{selectedColor:v.value,state:Ao(p),onCancel:r[0]||(r[0]=e=>Ao(p).hide()),onSubmit:T},null,8,["selectedColor","state"]),Fl(MFe,{activeWorkspaceCollections:k.value,collectionId:b.value,state:Ao(h),onCancel:r[1]||(r[1]=e=>Ao(h).hide()),onSubmit:S},null,8,["activeWorkspaceCollections","collectionId","state"]),Fl(Ao(k8),{size:"xxs",state:Ao(f),title:`Edit ${y.value}`},{default:ci((()=>[Fl(KLe,{name:O.value??"",onClose:D,onEdit:$},null,8,["name"])])),_:1},8,["state","title"])])),_:1}))}}),Symbol.toStringTag,Li({__name:"CookieForm",setup(e){const{activeCookieId:t}=rye(),{cookies:r,cookieMutators:n}=Hve(),a=[{label:"Name",key:"name",placeholder:"session_id"},{label:"Value",key:"value",placeholder:"my-cookie-session-id"},{label:"Domain",key:"domain",placeholder:"example.com"}],o=hc((()=>r[t.value]||EEe.parse({name:"",value:"",domain:"",path:""}))),i=(e,r)=>{n.edit(t.value,e,r)};return(e,t)=>(Pl(),Nl(hFe,{data:o.value,onUpdate:i,options:a},null,8,["data"]))}})),AQe={class:"flex h-8 items-start gap-2 text-sm"},CQe={class:"flex h-8 items-start gap-2 text-sm"},PQe={class:"flex h-8 items-start gap-2 text-sm"},DQe=Li({__name:"CookieModal",props:{state:{}},emits:["cancel","submit"],setup(e,{emit:t}){const r=e,n=t,a=So({name:"",value:"",domain:""}),{toast:o}=qV(),i=()=>{a.value.name&&a.value.value?(n("submit",a.value),r.state.hide()):o("Please fill in all fields before adding a cookie.","error")};return ul((()=>r.state.open),(e=>{e&&(a.value={name:"",value:"",domain:""})})),(e,t)=>(Pl(),Nl(Ao(k8),{size:"xs",state:e.state,title:"Add Cookie"},{default:ci((()=>[Fl(PFe,{disabled:!a.value.name||!a.value.value,onCancel:t[3]||(t[3]=e=>n("cancel")),onSubmit:i},{submit:ci((()=>t[7]||(t[7]=[ql("Add Cookie")]))),default:ci((()=>[Ul("div",AQe,[t[4]||(t[4]=ql(" Name: ")),Fl($Fe,{modelValue:a.value.name,"onUpdate:modelValue":t[0]||(t[0]=e=>a.value.name=e),autofocus:"",class:"!p-0",placeholder:"session_id"},null,8,["modelValue"])]),Ul("div",CQe,[t[5]||(t[5]=ql(" Value: ")),Fl($Fe,{modelValue:a.value.value,"onUpdate:modelValue":t[1]||(t[1]=e=>a.value.value=e),autofocus:"",class:"!p-0",placeholder:"my-cookie-session-id"},null,8,["modelValue"])]),Ul("div",PQe,[t[6]||(t[6]=ql(" Domain: ")),Fl($Fe,{modelValue:a.value.domain,"onUpdate:modelValue":t[2]||(t[2]=e=>a.value.domain=e),autofocus:"",class:"!p-0",placeholder:"example.com"},null,8,["modelValue"])])])),_:1},8,["disabled"])])),_:1},8,["state"]))}}),$Qe=P8(DQe,[["__scopeId","data-v-694018d6"]]),RQe={class:"flex-1"},MQe={class:"relative mb-[.5px] last:mb-0"},NQe=(Li({__name:"Cookies",setup(e){const{cookies:t,cookieMutators:r,events:n,workspaceMutators:a}=Hve(),{activeWorkspace:o,activeCookieId:i}=rye(),s=cme(),l=ume(),c=w8(),u=e=>{var t,n;const i=EEe.parse({name:e.name,value:e.value,domain:e.domain,path:"/"});r.add(i),a.edit(null==(t=o.value)?void 0:t.uid,"cookies",[...(null==(n=o.value)?void 0:n.cookies)??[],i.uid]),s.push({name:"cookies",params:{cookies:i.uid}})},d=()=>{c.show()},p=e=>{null!=e&&e.createNew&&"cookies"===l.name&&d()};Yi((()=>n.hotKeys.on(p))),es((()=>n.hotKeys.off(p)));const h=hc((()=>t[i.value])),f=hc((()=>Object.keys(t).length>0&&h.value));return ul((()=>l.query.openCookieModal),(e=>{"true"===e&&d()}),{immediate:!0}),(e,n)=>(Pl(),Nl(tBe,null,{default:ci((()=>[Fl(Ao(Abe),{title:"Cookies"},{content:ci((()=>[Ul("div",RQe,[Fl(bQe,null,{default:ci((()=>[(Pl(!0),Ml(Sl,null,ps(Object.values(Ao(t)),(e=>(Pl(),Ml("li",{key:e.uid,class:"gap-1/2 flex flex-col"},[Ul("div",MQe,[(Pl(),Nl(kQe,{key:e.uid,class:"text-xs",isDeletable:"",to:{name:"cookies",params:{[Ao(Ybe).Cookies]:e.uid}},type:"cookies",variable:{name:e.name,uid:e.uid},warningMessage:"Are you sure you want to delete this cookie?",onClick:Su((t=>((e,t)=>{var r;const n={name:"cookies",params:{workspace:(null==(r=o.value)?void 0:r.uid)??"default",cookies:t}};if(e.metaKey){const e=s.resolve(n).href;window.open(e,"_blank")}else s.push(n)})(t,e.uid)),["prevent"]),onDelete:n=>(e=>{var n,i;r.delete(e),a.edit(null==(n=o.value)?void 0:n.uid,"cookies",[...((null==(i=o.value)?void 0:i.cookies)??[]).filter((t=>t!==e))]);const l=Object.values(t).filter((t=>t.uid!==e));if(l.length>0){const e=l[l.length-1];e&&s.push(e.uid)}else s.push({name:"cookies",params:{[Ybe.Cookies]:"default"}})})(e.uid)},null,8,["to","variable","onClick","onDelete"]))])])))),128))])),_:1})])])),button:ci((()=>[Fl(ULe,{click:d,hotkey:"N"},{title:ci((()=>n[1]||(n[1]=[ql(" Add Cookie ")]))),_:1})])),_:1}),Fl(nBe,{class:"flex-1"},{default:ci((()=>[f.value?(Pl(),Nl(_Ee,{key:0,class:"*:border-b-0"},{title:ci((()=>n[2]||(n[2]=[ql("Edit Cookie")]))),default:ci((()=>[Fl(TQe)])),_:1})):(Pl(),Nl(eBe,{key:1}))])),_:1}),Fl($Qe,{state:Ao(c),onCancel:n[0]||(n[0]=e=>Ao(c).hide()),onSubmit:u},null,8,["state"])])),_:1}))}}),Symbol.toStringTag,Li({__name:"IntegrationLogo",props:{integration:{}},setup(e){const t=e,r=["adonisjs","dotnet","elysiajs","express","fastapi","fastify","go","hono","laravel","litestar","nestjs","nextjs","nitro","nuxt","platformatic","react","rust","svelte"],n=hc((()=>{var e;const n="Openapi",a=null==(e=t.integration)?void 0:e.toLocaleLowerCase();if(!a)return n;const o=a.charAt(0).toUpperCase()+a.slice(1);return r.includes(a)?o:n}));return(e,t)=>(Pl(),Nl(Ao(p5),{class:"h-full w-full rounded-lg",logo:n.value},null,8,["logo"]))}})),IQe={class:"flex flex-col gap-2"},LQe=Li({__name:"SettingsAppearance",setup(e){const{colorMode:t,setColorMode:r}=Cj(),n=WQ({base:"w-full shadow-none text-c-1 justify-start pl-2 gap-2 border",variants:{active:{true:"bg-primary text-c-1 hover:bg-inherit",false:"bg-b-1 hover:bg-b-2"}}});return(e,a)=>(Pl(),Ml("div",IQe,[Fl(Ao(iz),{class:zn(Ao(XQ)(Ao(n)({active:"system"===Ao(t)}))),onClick:a[0]||(a[0]=e=>Ao(r)("system"))},{default:ci((()=>[Ul("div",{class:zn(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",{"bg-c-accent text-b-1 border-transparent":"system"===Ao(t)}])},["system"===Ao(t)?(Pl(),Nl(Ao(p5),{key:0,icon:"Checkmark",size:"xs",thickness:"3.5"})):Vl("",!0)],2),a[3]||(a[3]=ql(" System Preference (default) "))])),_:1,__:[3]},8,["class"]),Fl(Ao(iz),{class:zn(Ao(XQ)(Ao(n)({active:"light"===Ao(t)}))),onClick:a[1]||(a[1]=e=>Ao(r)("light"))},{default:ci((()=>[Ul("div",{class:zn(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",{"bg-c-accent text-b-1 border-transparent":"light"===Ao(t)}])},["light"===Ao(t)?(Pl(),Nl(Ao(p5),{key:0,icon:"Checkmark",size:"xs",thickness:"3.5"})):Vl("",!0)],2),a[4]||(a[4]=ql(" Light Mode Always "))])),_:1,__:[4]},8,["class"]),Fl(Ao(iz),{class:zn(Ao(XQ)(Ao(n)({active:"dark"===Ao(t)}))),onClick:a[2]||(a[2]=e=>Ao(r)("dark"))},{default:ci((()=>[Ul("div",{class:zn(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",{"bg-c-accent text-b-1 border-transparent":"dark"===Ao(t)}])},["dark"===Ao(t)?(Pl(),Nl(Ao(p5),{key:0,icon:"Checkmark",size:"xs",thickness:"3.5"})):Vl("",!0)],2),a[5]||(a[5]=ql(" Dark Mode Always "))])),_:1,__:[5]},8,["class"])]))}}),jQe={class:"flex flex-col gap-2"},BQe={key:0,class:"font-bold"},UQe={key:1,class:"text-c-2 mb-4 leading-[21px]"},FQe=Li({__name:"SettingsSection",setup:e=>(e,t)=>(Pl(),Ml("div",jQe,[e.$slots.title?(Pl(),Ml("h3",BQe,[fs(e.$slots,"title")])):Vl("",!0),e.$slots.description?(Pl(),Ml("p",UQe,[fs(e.$slots,"description")])):Vl("",!0),fs(e.$slots,"default")]))}),QQe={class:"bg-b-1 h-full w-full overflow-auto"},zQe={class:"mr-auto ml-auto w-full max-w-[720px] px-5 py-5"},qQe={class:"flex flex-col gap-8"},HQe={class:"flex flex-col gap-2"},VQe={class:"flex flex-col gap-2"},ZQe={class:"grid grid-cols-2 gap-2"},WQe={class:"flex items-center gap-2"},XQe={class:"flex items-center gap-1"},GQe={class:"grid grid-cols-2 gap-2"},YQe={class:"flex items-center gap-2"},KQe={class:"flex items-center gap-1"},JQe={class:"size-7 rounded-xl"},eze="https://proxy.scalar.com",tze=Li({__name:"SettingsGeneral",setup(e){const{activeWorkspace:t}=rye(),{proxyUrl:r,workspaceMutators:n}=Hve(),a=["default","alternate","purple","solarized","saturn","kepler"],o=["elysiajs","fastify"],i=e=>({default:{light:"#fff",dark:"#0f0f0f",accent:"#0099ff"},alternate:{light:"#f9f9f9",dark:"#131313",accent:"#e7e7e7"},moon:{light:"#ccc9b3",dark:"#313332",accent:"#645b0f"},purple:{light:"#f5f6f8",dark:"#22252b",accent:"#5469d4"},solarized:{light:"#fdf6e3",dark:"#00212b",accent:"#007acc"},bluePlanet:{light:"#f0f2f5",dark:"#000e23",accent:"#e0e2e6"},saturn:{light:"#e4e4df",dark:"#2c2c30",accent:"#1763a6"},kepler:{light:"#f6f6f6",dark:"#0d0f1e",accent:"#7070ff"},mars:{light:"#f2efe8",dark:"#321116",accent:"#c75549"},deepSpace:{light:"#f4f4f5",dark:"#09090b",accent:"#8ab4f8"},laserwave:{light:"#f4f2f7",dark:"#27212e",accent:"#ed78c2"},none:{light:"#ffffff",dark:"#000000",accent:"#3b82f6"}}[e]||{light:"#ffffff",dark:"#000000",accent:"#3b82f6"}),s=e=>{var r;return n.edit(null==(r=t.value)?void 0:r.uid,"themeId",e)},l=WQ({base:"w-full shadow-none text-c-1 justify-start pl-2 gap-2 border",variants:{active:{true:"bg-primary text-c-1 hover:bg-inherit",false:"bg-b-1 hover:bg-b-2"}}}),c=e=>{var r;return n.edit(null==(r=t.value)?void 0:r.uid,"proxyUrl",e)};return(e,n)=>(Pl(),Ml("div",QQe,[Ul("div",zQe,[Ul("div",qQe,[n[13]||(n[13]=Ul("div",null,[Ul("h2",{class:"mt-10 text-xl font-bold"},"Settings")],-1)),Fl(FQe,null,{title:ci((()=>n[3]||(n[3]=[ql(" CORS Proxy ")]))),description:ci((()=>n[4]||(n[4]=[ql(" Browsers block cross-origin requests for security. We provide a public proxy to "),Ul("a",{class:"hover:text-c-1 underline-offset-2",href:"https://en.wikipedia.org/wiki/Cross-origin_resource_sharing",target:"_blank"}," bypass CORS issues ",-1),ql(" . Check the "),Ul("a",{class:"hover:text-c-1 underline-offset-2",href:"https://github.com/scalar/scalar/tree/main/examples/proxy-server",target:"_blank"}," source code on GitHub ",-1),ql(" . ")]))),default:ci((()=>{var e,a,o;return[Ul("div",HQe,[Fl(Ao(iz),{class:zn(Ao(XQ)(Ao(l)({active:(null==(e=Ao(t))?void 0:e.proxyUrl)===eze}))),onClick:n[0]||(n[0]=e=>c(eze))},{default:ci((()=>{var e,r;return[Ul("div",{class:zn(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",{"bg-c-accent text-b-1 border-transparent":(null==(e=Ao(t))?void 0:e.proxyUrl)===eze}])},[(null==(r=Ao(t))?void 0:r.proxyUrl)===eze?(Pl(),Nl(Ao(p5),{key:0,icon:"Checkmark",size:"xs",thickness:"3.5"})):Vl("",!0)],2),n[5]||(n[5]=ql(" Use proxy.scalar.com (default) "))]})),_:1,__:[5]},8,["class"]),Ao(r)&&Ao(r)!==eze?(Pl(),Nl(Ao(iz),{key:0,class:zn(Ao(XQ)(Ao(l)({active:(null==(a=Ao(t))?void 0:a.proxyUrl)===Ao(r)}))),onClick:n[1]||(n[1]=e=>c(Ao(r)))},{default:ci((()=>{var e,n;return[Ul("div",{class:zn(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",{"bg-c-accent text-b-1 border-transparent":(null==(e=Ao(t))?void 0:e.proxyUrl)===Ao(r)}])},[(null==(n=Ao(t))?void 0:n.proxyUrl)===Ao(r)?(Pl(),Nl(Ao(p5),{key:0,icon:"Checkmark",size:"xs",thickness:"3.5"})):Vl("",!0)],2),ql(" Use custom proxy ("+Gn(Ao(r))+") ",1)]})),_:1},8,["class"])):Vl("",!0),Fl(Ao(iz),{class:zn(Ao(XQ)(Ao(l)({active:!(null!=(o=Ao(t))&&o.proxyUrl)}))),onClick:n[2]||(n[2]=e=>c(void 0))},{default:ci((()=>{var e,r;return[Ul("div",{class:zn(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",!(null!=(e=Ao(t))&&e.proxyUrl)&&"bg-c-accent text-b-1 border-transparent"])},[null!=(r=Ao(t))&&r.proxyUrl?Vl("",!0):(Pl(),Nl(Ao(p5),{key:0,icon:"Checkmark",size:"xs",thickness:"3.5"}))],2),n[6]||(n[6]=ql(" Skip the proxy "))]})),_:1,__:[6]},8,["class"])])]})),_:1}),Fl(FQe,null,{title:ci((()=>n[7]||(n[7]=[ql(" Themes ")]))),description:ci((()=>n[8]||(n[8]=[ql(" We've got a whole rainbow of themes for you to play with: ")]))),default:ci((()=>[Ul("div",VQe,[Ul("div",ZQe,[(Pl(),Ml(Sl,null,ps(a,(e=>{var r;return Fl(Ao(iz),{key:e,class:zn(Ao(XQ)(Ao(l)({active:(null==(r=Ao(t))?void 0:r.themeId)===e}))),onClick:t=>s(e)},{default:ci((()=>{var r,n;return[Ul("div",WQe,[Ul("div",{class:zn(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",{"bg-c-accent text-b-1 border-transparent":(null==(r=Ao(t))?void 0:r.themeId)===e}])},[(null==(n=Ao(t))?void 0:n.themeId)===e?(Pl(),Nl(Ao(p5),{key:0,icon:"Checkmark",size:"xs",thickness:"3.5"})):Vl("",!0)],2),ql(" "+Gn(Ao(Ive)[e]),1)]),Ul("div",XQe,[Ul("span",{class:"border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",style:jn({backgroundColor:i(e).light})},null,4),Ul("span",{class:"border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",style:jn({backgroundColor:i(e).dark})},null,4),Ul("span",{class:"border-c-3 inline-block h-5 w-5 rounded-full",style:jn({backgroundColor:i(e).accent})},null,4)])]})),_:2},1032,["class","onClick"])})),64))])])])),_:1}),Fl(FQe,null,{title:ci((()=>n[9]||(n[9]=[ql(" Framework Themes ")]))),description:ci((()=>n[10]||(n[10]=[ql(" Are you a real fan? Show your support by using your favorite framework's theme! ")]))),default:ci((()=>[Ul("div",GQe,[(Pl(),Ml(Sl,null,ps(o,(e=>{var r;return Fl(Ao(iz),{key:e,class:zn(Ao(XQ)(Ao(l)({active:(null==(r=Ao(t))?void 0:r.themeId)===e}))),onClick:t=>s(e)},{default:ci((()=>{var r,n;return[Ul("div",YQe,[Ul("div",{class:zn(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",{"bg-c-accent text-b-1 border-transparent":(null==(r=Ao(t))?void 0:r.themeId)===e}])},[(null==(n=Ao(t))?void 0:n.themeId)===e?(Pl(),Nl(Ao(p5),{key:0,icon:"Checkmark",size:"xs",thickness:"3.5"})):Vl("",!0)],2),ql(" "+Gn(Ao(Ive)[e]),1)]),Ul("div",KQe,[Ul("div",JQe,[Fl(NQe,{integration:e},null,8,["integration"])])])]})),_:2},1032,["class","onClick"])})),64))])])),_:1}),Fl(FQe,null,{title:ci((()=>n[11]||(n[11]=[ql(" Appearance ")]))),description:ci((()=>n[12]||(n[12]=[ql(" Choose between light, dark, or system-based appearance for your workspace. ")]))),default:ci((()=>[Fl(LQe)])),_:1})])])]))}});Li({__name:"Settings",setup(e){const t={general:{component:tze,title:"general"}},r=So("general");return(e,n)=>(Pl(),Nl(tBe,null,{default:ci((()=>[Fl(nBe,{class:"flex-1"},{default:ci((()=>[t[r.value]?(Pl(),Nl(cs(t[r.value].component),{key:0})):Vl("",!0)])),_:1})])),_:1}))}});Symbol.toStringTag}));
|
||
//# sourceMappingURL=/sm/797c39efb3efe5b2ff138738439aafd35bab1c128c519ab722440cc2849845eb.map |